ChangeLog 579 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431
  1. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added experimental support of WEB-Seeding for multi-file torrent.
  3. Due to fundamental changes in file handling in HTTP/FTP code, many
  4. functions are not working: PeerStat, ServerHost, proxy..etc
  5. * src/AbstractCommand.cc
  6. * src/AbstractCommand.h
  7. * src/BitfieldMan.cc
  8. * src/BitfieldMan.h
  9. * src/CreateRequestCommand.cc
  10. * src/CreateRequestCommand.h
  11. * src/DefaultPieceStorage.cc
  12. * src/DefaultPieceStorage.h
  13. * src/DownloadCommand.cc
  14. * src/DownloadCommand.h
  15. * src/DownloadContext.cc
  16. * src/DownloadContext.h
  17. * src/FileEntry.cc
  18. * src/FileEntry.h
  19. * src/FtpDownloadCommand.cc
  20. * src/FtpDownloadCommand.h
  21. * src/FtpFinishDownloadCommand.cc
  22. * src/FtpFinishDownloadCommand.h
  23. * src/FtpInitiateConnectionCommand.cc
  24. * src/FtpInitiateConnectionCommand.h
  25. * src/FtpNegotiationCommand.cc
  26. * src/FtpNegotiationCommand.h
  27. * src/FtpTunnelResponseCommand.cc
  28. * src/HttpDownloadCommand.cc
  29. * src/HttpDownloadCommand.h
  30. * src/HttpInitiateConnectionCommand.cc
  31. * src/HttpInitiateConnectionCommand.h
  32. * src/HttpProxyResponseCommand.cc
  33. * src/HttpRequest.cc
  34. * src/HttpRequest.h
  35. * src/HttpRequestCommand.cc
  36. * src/HttpRequestCommand.h
  37. * src/HttpResponseCommand.cc
  38. * src/HttpResponseCommand.h
  39. * src/HttpSkipResponseCommand.cc
  40. * src/HttpSkipResponseCommand.h
  41. * src/InitiateConnectionCommand.cc
  42. * src/InitiateConnectionCommand.h
  43. * src/InitiateConnectionCommandFactory.cc
  44. * src/InitiateConnectionCommandFactory.h
  45. * src/Makefile.am
  46. * src/PieceStorage.h
  47. * src/RequestGroup.cc
  48. * src/RequestGroup.h
  49. * src/RequestGroupMan.cc
  50. * src/SegmentMan.cc
  51. * src/SegmentMan.h
  52. * src/SingleFileDownloadContext.h
  53. * src/StreamFileAllocationEntry.cc
  54. * src/TrackerWatcherCommand.cc
  55. * src/UnknownLengthPieceStorage.cc
  56. * src/UnknownLengthPieceStorage.h
  57. * src/array_fun.h
  58. * src/bitfield.h
  59. * src/download_helper.cc
  60. * test/DownloadContextTest.cc
  61. * test/Makefile.am
  62. * test/MockDownloadContext.h
  63. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Added tellWaiting XML-RPC method.
  65. * src/SingleFileDownloadContext.cc
  66. * src/XmlRpcMethodFactory.cc
  67. * src/XmlRpcMethodImpl.cc
  68. * src/XmlRpcMethodImpl.h
  69. * test/XmlRpcMethodTest.cc
  70. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  71. Updated CookieStorageTest
  72. * test/CookieStorageTest.cc
  73. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  75. handle excepion inside these functions.
  76. * src/LibgnutlsTLSContext.cc
  77. * src/LibgnutlsTLSContext.h
  78. * src/LibsslTLSContext.cc
  79. * src/LibsslTLSContext.h
  80. * src/MultiUrlRequestInfo.cc
  81. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Added comment
  83. * src/RequestGroup.cc
  84. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. In CookieStorage::load() and saveNsFormat(), handle exception
  86. inside the functions. When saving Cookies, first write temporary
  87. file and after successful writes, then renames it to final
  88. destination.
  89. * src/CookieStorage.cc
  90. * src/CookieStorage.h
  91. * src/MultiUrlRequestInfo.cc
  92. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. The default value of --dir option is the absolute path to the
  94. current directory. If getcwd() is failed, then it is ".", which is
  95. the same value with old implementation. This change is necessary
  96. because after daemon() call, the current working directory is
  97. changed to /.
  98. * src/File.cc
  99. * src/File.h
  100. * src/OptionHandlerFactory.cc
  101. * src/option_processing.cc
  102. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Call daemon() with arguments(0,0), which means daemon() changes
  104. current working directory to / and redirects stdin, stdout and
  105. stderr to /dev/null.
  106. * src/option_processing.cc
  107. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Small performance optimizations.
  109. * src/RequestGroupMan.cc
  110. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Added _xmlRpc member variable to RequestGroupMan to reduce the
  112. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  113. * src/RequestGroupMan.cc
  114. * src/RequestGroupMan.h
  115. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  117. setNoWiat(true) if newly created command calls
  118. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  119. * src/HttpListenCommand.cc
  120. * src/HttpServerBodyCommand.cc
  121. * src/HttpServerCommand.cc
  122. * src/HttpServerResponseCommand.cc
  123. * src/InitiateConnectionCommand.cc
  124. * src/RequestGroup.cc
  125. * src/StreamFileAllocationEntry.cc
  126. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Removed include vector
  128. * src/BtRegistry.h
  129. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Rewritten BtRegistry
  131. * src/BtRegistry.cc
  132. * src/BtRegistry.h
  133. * src/BtSetup.cc
  134. * src/ConsoleStatCalc.cc
  135. * src/PeerInteractionCommand.cc
  136. * src/PeerReceiveHandshakeCommand.cc
  137. * src/ReceiverMSEHandshakeCommand.cc
  138. * src/RequestGroup.cc
  139. * src/XmlRpcMethodImpl.cc
  140. * test/BtRegistryTest.cc
  141. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  143. * src/DefaultBtProgressInfoFile.cc
  144. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Throw an exception if position is less than 0.
  146. * src/XmlRpcMethodImpl.cc
  147. * test/XmlRpcMethodTest.cc
  148. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Use writeFilePath() in ConsoleStatCalc.cc
  150. * src/ConsoleStatCalc.cc
  151. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Receive the return value as const reference from
  153. DownloadContext::getFileEntries().
  154. * src/DefaultPieceStorage.cc
  155. * src/RequestGroupMan.cc
  156. * src/XmlRpcMethodImpl.cc
  157. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. DownloadContext now has _fileEntries so that
  159. DownloadContext::getFileEntries() can returns its const reference.
  160. * src/DefaultBtContext.cc
  161. * src/DefaultBtContext.h
  162. * src/DownloadContext.cc
  163. * src/DownloadContext.h
  164. * src/SingleFileDownloadContext.cc
  165. * src/SingleFileDownloadContext.h
  166. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  167. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  168. writeFilePath() function template from RequestGroupMan.cc to
  169. FileEntry.h
  170. * src/FileEntry.h
  171. * src/RequestGroupMan.cc
  172. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Documented 'position' parameter is starting from 0 in man page.
  174. * doc/aria2c.1.txt
  175. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Updated doc.
  177. * src/MSEHandshake.cc
  178. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Removed _acceptFeatures and its accessor functions from
  180. RequestGroup since they are not used practically.
  181. * src/HttpRequestCommand.cc
  182. * src/RequestGroup.cc
  183. * src/RequestGroup.h
  184. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  185. Removed member _maxTries from RequestGroup class to avoid
  186. duplicate option value. Those classes who refer this variable
  187. should use option value of PREF_MAX_TRIES directly.
  188. * src/AbstractCommand.cc
  189. * src/RequestGroup.cc
  190. * src/RequestGroup.h
  191. * src/TrackerWatcherCommand.cc
  192. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. * Release 1.4.1
  194. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Fixed compiler warnings on netbsd
  196. * src/DHTConnectionImpl.cc
  197. * src/PeerListenCommand.cc
  198. * src/PeerSessionResource.cc
  199. * src/SegmentMan.cc
  200. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Updated Ukrainian translation. Thanks to all translators.
  202. * po/uk.po
  203. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  204. Bump up version number to 1.4.1.
  205. * configure.ac
  206. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Added unit tests for strjoin, strconcat and strappend.
  208. * test/a2functionalTest.cc
  209. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Rewritten strconcat and strappend using operator+ instead of
  211. append().
  212. * src/a2functional.h
  213. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  215. is enabled.
  216. * src/Makefile.am
  217. * test/Makefile.am
  218. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  219. Added countSeeder() function which counts seeder in the given
  220. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  221. * src/ConsoleStatCalc.cc
  222. * src/Peer.h
  223. * src/XmlRpcMethodImpl.cc
  224. * test/PeerTest.cc
  225. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Documented missing seeder in getPeers xml-rpc method.
  227. Documented uploadLength and numSeeders.
  228. * doc/aria2c.1.txt
  229. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  230. Added uploadLength and numSeeders to the response of tellStatus
  231. xml-rpc method. Assert that PeerStorage instance is not null
  232. instead of checking if statement. It should be non-null in this
  233. context.
  234. * src/XmlRpcMethodImpl.cc
  235. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  236. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  237. * src/XmlRpcResponse.cc
  238. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  239. Avoid intermediate object during string concatenation.
  240. * src/HttpRequest.cc
  241. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Added strjoin function template. Use it in pathJoin()
  243. * src/Util.h
  244. * src/a2functional.h
  245. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Avoid intermediate object during string concatenation. Replaced
  247. post-increment unary operator with pre-increment one in for loop.
  248. * src/AdaptiveURISelector.cc
  249. * src/AnnounceList.cc
  250. * src/AuthConfig.h
  251. * src/BtBitfieldMessage.cc
  252. * src/BtExtendedMessage.cc
  253. * src/BtHandshakeMessage.cc
  254. * src/BtPieceMessage.cc
  255. * src/BtPortMessage.cc
  256. * src/Cookie.cc
  257. * src/DHTAnnouncePeerMessage.cc
  258. * src/DHTAutoSaveCommand.cc
  259. * src/DHTGetPeersReplyMessage.cc
  260. * src/DHTNode.cc
  261. * src/DHTQueryMessage.cc
  262. * src/DHTResponseMessage.cc
  263. * src/DHTUnknownMessage.cc
  264. * src/DefaultBtAnnounce.cc
  265. * src/DefaultBtContext.cc
  266. * src/DefaultBtInteractive.cc
  267. * src/DefaultBtProgressInfoFile.cc
  268. * src/DefaultPeerStorage.cc
  269. * src/DownloadEngine.cc
  270. * src/FeatureConfig.cc
  271. * src/File.cc
  272. * src/FtpConnection.cc
  273. * src/FtpNegotiationCommand.cc
  274. * src/HandshakeExtensionMessage.cc
  275. * src/HttpConnection.cc
  276. * src/HttpRequest.cc
  277. * src/HttpResponseCommand.cc
  278. * src/HttpServer.cc
  279. * src/IndexBtMessage.cc
  280. * src/Metalink2RequestGroup.cc
  281. * src/OptionHandlerImpl.h
  282. * src/PStringBuildVisitor.cc
  283. * src/Peer.cc
  284. * src/PeerListenCommand.cc
  285. * src/Piece.cc
  286. * src/RangeBtMessage.cc
  287. * src/Request.cc
  288. * src/Request.h
  289. * src/RequestGroup.cc
  290. * src/RequestGroupMan.cc
  291. * src/ServerStat.cc
  292. * src/ServerStatMan.cc
  293. * src/UTPexExtensionMessage.cc
  294. * src/Util.cc
  295. * src/a2functional.h
  296. * src/download_helper.cc
  297. * src/messageDigest.cc
  298. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Unchoke a peer randomly at first and second choke round in seed
  300. state.
  301. * src/BtSeederStateChoke.cc
  302. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  303. Added (sock_t) to quiet compiler warnings in MinGW
  304. * src/SocketCore.cc
  305. * src/SocketCore.h
  306. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  308. * src/EpollEventPoll.h
  309. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  310. Added fork() emulation using CreateProcess() in MinGW
  311. * src/RequestGroupMan.cc
  312. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  313. * Release 1.4.0
  314. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  315. Added utf8.torrent to EXTRA_DIST
  316. * test/Makefile.am
  317. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  318. Fixed docs of aria2.addMetalink xml-rpc method.
  319. * doc/aria2c.1.txt
  320. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  321. Added Slovak translation. Updated Ukrainian and Brazilian
  322. Portuguese translation. Thanks to all translators.
  323. * po/sk.po
  324. * po/uk.po
  325. * po/pt_BR.po
  326. * po/LINGUAS
  327. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Added test case for XmlRpcProcessor to fail to parse malformed
  329. document.
  330. * test/XmlRpcRequestProcessorTest.cc
  331. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Removed *.gmo files in po because they are generated on 'make
  333. dist'
  334. * po/*.gmo
  335. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Documented max-concurrent-downloads of changeGlobalOption method
  337. in man page.
  338. * doc/aria2c.1.txt
  339. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Added max-concurrent-downloads option to changeGlobalOption
  341. xml-rpc method. Rewritten loop conditional in
  342. RequestGroupMan::fillRequestGroupFromReserver().
  343. * src/RequestGroupMan.cc
  344. * src/RequestGroupMan.h
  345. * src/XmlRpcMethod.cc
  346. * src/XmlRpcMethodImpl.cc
  347. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Documented position parameter in man page.
  349. * doc/aria2c.1.txt
  350. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  351. Added 'position' parameter to addUri, addTorrent and addMetalink
  352. xml-rpc method.
  353. * src/RequestGroupMan.cc
  354. * src/RequestGroupMan.h
  355. * src/XmlRpcMethodImpl.cc
  356. * test/XmlRpcMethodTest.cc
  357. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  358. Removed Peer.cc from compile source list when --disable-bittorrent
  359. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  360. takes Peer.
  361. * src/DefaultPieceStorage.cc
  362. * src/DefaultPieceStorage.h
  363. * src/Makefile.am
  364. * src/PieceStorage.h
  365. * src/UnknownLengthPieceStorage.cc
  366. * src/UnknownLengthPieceStorage.h
  367. * test/MockPieceStorage.h
  368. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Implemented getter methods in header files to give them more
  370. chance of optimization.
  371. Return const reference for SharadHandle if possible.
  372. * src/AbstractAuthResolver.cc
  373. * src/AbstractAuthResolver.h
  374. * src/AbstractBtMessage.cc
  375. * src/AbstractBtMessage.h
  376. * src/AbstractSingleDiskAdaptor.cc
  377. * src/AbstractSingleDiskAdaptor.h
  378. * src/AsyncNameResolver.cc
  379. * src/AsyncNameResolver.h
  380. * src/BNode.cc
  381. * src/BNode.h
  382. * src/BitfieldMan.cc
  383. * src/BitfieldMan.h
  384. * src/BtAbortOutstandingRequestEvent.h
  385. * src/BtExtendedMessage.cc
  386. * src/BtExtendedMessage.h
  387. * src/BtSeederStateChoke.cc
  388. * src/BtSeederStateChoke.h
  389. * src/Cookie.cc
  390. * src/Cookie.h
  391. * src/DHTBucket.cc
  392. * src/DHTBucket.h
  393. * src/DHTConnectionImpl.cc
  394. * src/DHTConnectionImpl.h
  395. * src/DHTFindNodeReplyMessage.cc
  396. * src/DHTFindNodeReplyMessage.h
  397. * src/DHTGetPeersReplyMessage.cc
  398. * src/DHTGetPeersReplyMessage.h
  399. * src/DHTInteractionCommand.cc
  400. * src/DHTMessage.cc
  401. * src/DHTMessage.h
  402. * src/DHTMessageDispatcherImpl.cc
  403. * src/DHTMessageEntry.cc
  404. * src/DHTMessageReceiver.cc
  405. * src/DHTMessageReceiver.h
  406. * src/DHTMessageTrackerEntry.cc
  407. * src/DHTMessageTrackerEntry.h
  408. * src/DHTPeerAnnounceEntry.cc
  409. * src/DHTPeerAnnounceEntry.h
  410. * src/DHTPeerLookupTask.cc
  411. * src/DHTPeerLookupTask.h
  412. * src/DHTRoutingTableDeserializer.cc
  413. * src/DHTRoutingTableDeserializer.h
  414. * src/DefaultBtAnnounce.cc
  415. * src/DefaultBtAnnounce.h
  416. * src/DefaultBtMessageDispatcher.cc
  417. * src/DefaultBtMessageDispatcher.h
  418. * src/DefaultBtRequestFactory.cc
  419. * src/DefaultBtRequestFactory.h
  420. * src/DiskAdaptor.cc
  421. * src/DiskAdaptor.h
  422. * src/DownloadContext.cc
  423. * src/DownloadContext.h
  424. * src/DownloadEngine.cc
  425. * src/DownloadEngine.h
  426. * src/EpollEventPoll.cc
  427. * src/EpollEventPoll.h
  428. * src/FtpConnection.cc
  429. * src/FtpConnection.h
  430. * src/HttpConnection.cc
  431. * src/HttpConnection.h
  432. * src/HttpHeader.cc
  433. * src/HttpHeader.h
  434. * src/HttpRequest.cc
  435. * src/HttpRequest.h
  436. * src/HttpResponse.cc
  437. * src/HttpResponse.h
  438. * src/LibsslTLSContext.cc
  439. * src/LibsslTLSContext.h
  440. * src/MSEHandshake.cc
  441. * src/MSEHandshake.h
  442. * src/MetalinkEntry.cc
  443. * src/MetalinkEntry.h
  444. * src/MetalinkParserController.cc
  445. * src/MetalinkParserController.h
  446. * src/MetalinkParserStateMachine.cc
  447. * src/MetalinkParserStateMachine.h
  448. * src/MultiDiskAdaptor.cc
  449. * src/MultiDiskAdaptor.h
  450. * src/NetrcAuthResolver.cc
  451. * src/NetrcAuthResolver.h
  452. * src/Peer.cc
  453. * src/Peer.h
  454. * src/PeerSessionResource.cc
  455. * src/PeerSessionResource.h
  456. * src/Piece.cc
  457. * src/Piece.h
  458. * src/PieceStatMan.cc
  459. * src/PieceStatMan.h
  460. * src/Request.cc
  461. * src/Request.h
  462. * src/RequestGroup.cc
  463. * src/RequestGroup.h
  464. * src/RequestGroupMan.cc
  465. * src/RequestGroupMan.h
  466. * src/RequestSlot.cc
  467. * src/RequestSlot.h
  468. * src/SegmentMan.cc
  469. * src/SegmentMan.h
  470. * src/SelectEventPoll.cc
  471. * src/SelectEventPoll.h
  472. * src/ServerStat.cc
  473. * src/ServerStat.h
  474. * src/Signature.cc
  475. * src/Signature.h
  476. * src/URIResult.cc
  477. * src/URIResult.h
  478. * src/UTPexExtensionMessage.cc
  479. * src/UTPexExtensionMessage.h
  480. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Fixed compile error without BitTorrent and Metalink support.
  482. * src/XmlRpcMethod.cc
  483. * src/XmlRpcMethodFactory.cc
  484. * src/XmlRpcMethodImpl.cc
  485. * src/XmlRpcMethodImpl.h
  486. * test/XmlRpcMethodTest.cc
  487. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Rewritten the help message for --allow-overwrite option.
  489. * doc/aria2c.1.txt
  490. * src/usage_text.h
  491. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Fixed typo
  493. * doc/aria2c.1.txt
  494. * src/usage_text.h
  495. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Updated README for 1.4.0 release. Use new table syntax of
  497. asciidoc.
  498. * README
  499. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Documented --xml-rpc-max-request-size option in man page.
  501. * doc/aria2c.1.txt
  502. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Moved C_* constants from BtContext to DefaultBtContext.
  504. * src/BtContext.cc: Removed.
  505. * src/BtContext.h
  506. * src/DefaultBtContext.cc
  507. * src/DefaultBtContext.h
  508. * src/Makefile.am
  509. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Use name.utf-8 and path.utf-8 key in higher priority than name and
  511. path key respectively when persing .torrent file.
  512. * src/BtContext.cc
  513. * src/BtContext.h
  514. * src/DefaultBtContext.cc
  515. * test/DefaultBtContextTest.cc
  516. * test/utf8.torrent
  517. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Added --xml-rpc-max-request-size option to limit the size of
  519. XML-RPC request.
  520. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Documented XML-RPC API in man page.
  522. * doc/aria2c.1.txt
  523. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  525. will break strict-aliasing rules
  526. * src/PeerConnection.cc
  527. * test/DHTRoutingTableSerializerTest.cc
  528. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  530. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  531. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  532. PKG_CHECK_MODULES macro uses latter name.
  533. * m4/sqlite3.m4
  534. * src/Makefile.am
  535. * test/Makefile.am
  536. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  537. Fixed typo
  538. * configure.ac
  539. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  541. presence of libgnutls using pkg-config first. If it fails, fall
  542. back to old macro libgnutls.m4.
  543. * configure.ac
  544. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  545. Use s itself instead of !s.bad()
  546. * src/CookieStorage.cc
  547. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Documented --on-download-* option and --save-cookies option in man
  549. page.
  550. * doc/aria2c.1.txt
  551. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  552. Set possible values for --load-cookie option to "/path/to/file".
  553. * src/OptionHandlerFactory.cc
  554. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Added --save-cookies option.
  556. * src/Cookie.cc
  557. * src/Cookie.h
  558. * src/CookieStorage.cc
  559. * src/CookieStorage.h
  560. * src/MultiUrlRequestInfo.cc
  561. * src/OptionHandlerFactory.cc
  562. * src/prefs.cc
  563. * src/prefs.h
  564. * src/usage_text.h
  565. * test/CookieStorageTest.cc
  566. * test/CookieTest.cc
  567. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  568. Removed tellAll XML-RPC command because its reponse tends to be
  569. big if stopped/waiting downloads pile up.
  570. * src/XmlRpcMethodFactory.cc
  571. * src/XmlRpcMethodImpl.cc
  572. * src/XmlRpcMethodImpl.h
  573. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Added the ability to execute command when download starts and
  575. stops. You can also specify command for particular cases such as
  576. complete/error download. Added --on-download-start,
  577. --on-download-stop, --on-download-complete and --on-download-error
  578. option.
  579. * src/OptionHandlerFactory.cc
  580. * src/RequestGroupMan.cc
  581. * src/prefs.cc
  582. * src/prefs.h
  583. * src/usage_text.h
  584. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Fixed test error
  586. * test/BencodeTest.cc
  587. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Added unit tests.
  589. * test/XmlRpcMethodTest.cc
  590. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Made exception message more verbose.
  592. * src/bencode.cc
  593. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  594. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  595. space in console readout. Also they are now shown in MiB/s if
  596. speed > 1024KiB/s.
  597. * src/ConsoleStatCalc.cc
  598. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Added SEED to console output, which represents the number of
  600. seeders currently the client is connecting to.
  601. * src/ConsoleStatCalc.cc
  602. * src/ConsoleStatCalc.h
  603. * src/DownloadEngine.cc
  604. * src/NullStatCalc.h
  605. * src/StatCalc.h
  606. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Added source filename(__FILE__) and line number(__LINE__) to
  608. exception message.
  609. * src/AbstractCommand.cc
  610. * src/AbstractDiskWriter.cc
  611. * src/AbstractProxyResponseCommand.cc
  612. * src/BDE.h
  613. * src/BtAllowedFastMessage.cc
  614. * src/BtHandshakeMessageValidator.h
  615. * src/BtHaveAllMessage.cc
  616. * src/BtHaveNoneMessage.cc
  617. * src/BtPieceMessage.cc
  618. * src/BtRejectMessage.cc
  619. * src/ChunkedDecoder.cc
  620. * src/CookieStorage.cc
  621. * src/DHTAnnouncePeerMessage.cc
  622. * src/DHTEntryPointNameResolveCommand.cc
  623. * src/DHTMessageFactoryImpl.cc
  624. * src/DHTMessageTracker.cc
  625. * src/DHTRoutingTableDeserializer.cc
  626. * src/DHTRoutingTableSerializer.cc
  627. * src/DHTSetup.cc
  628. * src/DHTTokenTracker.cc
  629. * src/DefaultBtAnnounce.cc
  630. * src/DefaultBtContext.cc
  631. * src/DefaultBtInteractive.cc
  632. * src/DefaultBtMessageFactory.cc
  633. * src/DefaultBtProgressInfoFile.cc
  634. * src/DefaultExtensionMessageFactory.cc
  635. * src/DlAbortEx.h
  636. * src/DlRetryEx.h
  637. * src/DownloadCommand.cc
  638. * src/DownloadEngineFactory.cc
  639. * src/DownloadFailureException.h
  640. * src/Exception.cc
  641. * src/Exception.h
  642. * src/ExpatMetalinkProcessor.cc
  643. * src/ExpatXmlRpcRequestProcessor.cc
  644. * src/FallocFileAllocationIterator.cc
  645. * src/FatalException.h
  646. * src/FtpConnection.cc
  647. * src/FtpFinishDownloadCommand.cc
  648. * src/FtpInitiateConnectionCommand.cc
  649. * src/FtpNegotiationCommand.cc
  650. * src/GZipDecoder.cc
  651. * src/HandshakeExtensionMessage.cc
  652. * src/HttpConnection.cc
  653. * src/HttpHeaderProcessor.cc
  654. * src/HttpInitiateConnectionCommand.cc
  655. * src/HttpResponse.cc
  656. * src/HttpResponseCommand.cc
  657. * src/HttpServer.cc
  658. * src/HttpSkipResponseCommand.cc
  659. * src/InitiateConnectionCommandFactory.cc
  660. * src/IteratableChunkChecksumValidator.cc
  661. * src/LibgcryptARC4Context.h
  662. * src/LibgcryptARC4Decryptor.h
  663. * src/LibgcryptARC4Encryptor.h
  664. * src/LibgcryptDHKeyExchange.h
  665. * src/LibgnutlsTLSContext.cc
  666. * src/LibsslARC4Context.h
  667. * src/LibsslARC4Decryptor.h
  668. * src/LibsslARC4Encryptor.h
  669. * src/LibsslDHKeyExchange.h
  670. * src/LibsslTLSContext.cc
  671. * src/MSEHandshake.cc
  672. * src/MessageDigestHelper.cc
  673. * src/MetalinkHelper.cc
  674. * src/MultiDiskAdaptor.cc
  675. * src/NameMatchOptionHandler.h
  676. * src/NameResolver.cc
  677. * src/Netrc.cc
  678. * src/NsCookieParser.cc
  679. * src/OptionHandlerException.cc
  680. * src/OptionHandlerException.h
  681. * src/OptionHandlerImpl.h
  682. * src/OptionParser.cc
  683. * src/ParameterizedStringParser.cc
  684. * src/PeerAbstractCommand.cc
  685. * src/PeerConnection.cc
  686. * src/PeerMessageUtil.cc
  687. * src/PeerReceiveHandshakeCommand.cc
  688. * src/Platform.cc
  689. * src/ReceiverMSEHandshakeCommand.cc
  690. * src/RecoverableException.h
  691. * src/RequestGroup.cc
  692. * src/SimpleLogger.cc
  693. * src/SocketCore.cc
  694. * src/Sqlite3MozCookieParser.cc
  695. * src/UTPexExtensionMessage.cc
  696. * src/Util.cc
  697. * src/XML2SAXMetalinkProcessor.cc
  698. * src/Xml2XmlRpcRequestProcessor.cc
  699. * src/XmlRpcMethodImpl.cc
  700. * src/bencode.cc
  701. * src/download_helper.cc
  702. * src/messageDigest.h
  703. * test/ExceptionTest.cc
  704. * test/TestUtil.cc
  705. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Bump up version number to 1.4.0
  707. * configure.ac
  708. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Added 2files.metalink to EXTRA_DIST
  710. * test/Makefile.am
  711. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  712. Added missing 2files.metalink
  713. * test/2files.metalink
  714. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Show "[MEMORY]" prefix before filename in download summary if it
  716. is downloaded into memory.
  717. * src/DownloadResult.h
  718. * src/RequestGroup.cc
  719. * src/RequestGroupMan.cc
  720. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  721. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  722. * src/ExpatXmlRpcRequestProcessor.cc
  723. * src/Xml2XmlRpcRequestProcessor.cc
  724. * src/message.h
  725. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Defined const BDEs to avoid duplicate instantiation.
  727. Defined MSG_GID_NOT_PROVIDED.
  728. * src/XmlRpcMethodImpl.cc
  729. * src/message.h
  730. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. Code cleanup
  732. * src/Xml2XmlRpcRequestProcessor.cc
  733. * src/Xml2XmlRpcRequestProcessor.h
  734. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Defined ENABLE_XML_RPC
  736. * configure.ac
  737. * configure
  738. * config.h.in
  739. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. Added ExpatXmlRpcRequestProcessor
  741. * src/ExpatXmlRpcRequestProcessor.cc
  742. * src/ExpatXmlRpcRequestProcessor.h
  743. * src/Makefile.am
  744. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Added tests for addTorrent and addMetalink command.
  746. * test/TestUtil.cc
  747. * test/TestUtil.h
  748. * test/XmlRpcMethodTest.cc
  749. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. Corrected the description of --file-allocation option.
  751. * doc/aria2c.1.txt
  752. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Added tellAll command.
  754. * src/XmlRpcMethodFactory.cc
  755. * src/XmlRpcMethodImpl.cc
  756. * src/XmlRpcMethodImpl.h
  757. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  759. * src/XmlRpcMethodImpl.cc
  760. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  761. Added changeGlobalOption command. Currently,
  762. max-overall-download-limit and max-overall-upload-limit option are
  763. available.
  764. * src/RequestGroupMan.h
  765. * src/XmlRpcMethod.cc
  766. * src/XmlRpcMethod.h
  767. * src/XmlRpcMethodFactory.cc
  768. * src/XmlRpcMethodImpl.cc
  769. * src/XmlRpcMethodImpl.h
  770. * test/XmlRpcMethodTest.cc
  771. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Added changeOption command. Currently, max-download-limit,
  773. max-upload-limit option are available in this command.
  774. * src/RequestGroup.h
  775. * src/XmlRpcMethod.cc
  776. * src/XmlRpcMethod.h
  777. * src/XmlRpcMethodFactory.cc
  778. * src/XmlRpcMethodImpl.cc
  779. * src/XmlRpcMethodImpl.h
  780. * test/XmlRpcMethodTest.cc
  781. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  782. Added purgeDownloadResult command.
  783. * src/RequestGroupMan.cc
  784. * src/RequestGroupMan.h
  785. * src/XmlRpcMethodFactory.cc
  786. * src/XmlRpcMethodImpl.cc
  787. * src/XmlRpcMethodImpl.h
  788. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Refactored.
  790. * src/XmlRpcMethod.cc
  791. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  793. XmlRpcResponse.
  794. * src/HttpServerBodyCommand.cc
  795. * src/Makefile.am
  796. * src/XmlRpcMethod.cc
  797. * src/XmlRpcMethod.h
  798. * src/XmlRpcMethodImpl.cc
  799. * src/XmlRpcResponse.cc
  800. * src/XmlRpcResponse.h
  801. * test/XmlRpcMethodTest.cc
  802. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. In XML-RPC option struct, header and index-out option can take
  804. array as value.
  805. * src/XmlRpcMethod.cc
  806. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Removed unused option member from PeerConnection.
  808. * src/InitiatorMSEHandshakeCommand.cc
  809. * src/PeerConnection.cc
  810. * src/PeerConnection.h
  811. * src/PeerInteractionCommand.cc
  812. * src/PeerReceiveHandshakeCommand.cc
  813. * src/ReceiverMSEHandshakeCommand.cc
  814. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Added "seeder" key to getPeers response.
  816. * src/XmlRpcMethodImpl.cc
  817. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Added addMetalink XML-RPC command.
  819. * src/XmlRpcMethodFactory.cc
  820. * src/XmlRpcMethodImpl.cc
  821. * src/XmlRpcMethodImpl.h
  822. * src/download_helper.cc
  823. * src/download_helper.h
  824. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Fixed the bug that POU peers are never choked in seeding.
  826. * src/BtSeederStateChoke.cc
  827. * src/BtSeederStateChoke.h
  828. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  829. Added web-seeding URI handling in addTorrent command.
  830. * src/XmlRpcMethodImpl.cc
  831. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  832. Added "length" key to getFiles response.
  833. * src/XmlRpcMethodImpl.cc
  834. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Moved --no-netrc option from ftp option section to http/ftp option
  836. section.
  837. * doc/aria2c.1.txt
  838. * src/OptionHandlerFactory.cc
  839. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Removed garbage "\" character before '
  841. * doc/aria2c.1.txt
  842. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Removed garbage "\" character before http.
  844. * doc/aria2c.1.txt
  845. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Documented additional options that can be specified in -i list.
  847. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  848. and --xml-rpc-passwd. Removed --enable-http-server and
  849. --http-server-listen-port.
  850. * doc/aria2c.1.txt
  851. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  853. * src/DefaultPeerStorage.cc
  854. * src/DefaultPeerStorage.h
  855. * src/PeerStorage.h
  856. * src/XmlRpcMethodImpl.cc
  857. * test/MockPeerStorage.h
  858. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Put a call to Socket::isReadable() in try block.
  860. * src/HttpServerBodyCommand.cc
  861. * src/HttpServerCommand.cc
  862. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  864. exception , so it is now in try block.
  865. * src/HttpServerResponseCommand.cc
  866. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. Added "amChoking" and "peerChoking" key in getPeers response.
  868. * src/XmlRpcMethodImpl.cc
  869. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  870. Added test case for zero-length filter.
  871. * test/BitfieldManTest.cc
  872. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. getFiles command now returns file data for finished/stopped
  874. downloads.
  875. * src/XmlRpcMethodImpl.cc
  876. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. DownloadResult now has the list of FileEntry. The download
  878. summary displays the path of first selected file and the number of
  879. remaining files for multi-file torrent.
  880. * src/DownloadResult.h
  881. * src/RequestGroup.cc
  882. * src/RequestGroupMan.cc
  883. * test/RequestGroupTest.cc
  884. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  885. Fixed segmentation fault error when no file is selected in
  886. multi-file torrent.
  887. * src/BitfieldMan.cc
  888. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Escaped <,>,& character in XML-RPC response.
  890. * src/XmlRpcMethod.cc
  891. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Throw DlAbortEx instead of FatalException during parsing options
  893. because we don't want for aria2 to quit when bad option is passed
  894. via XML-RPC.
  895. * src/OptionHandlerException.cc
  896. * src/OptionHandlerException.h
  897. * src/OptionHandlerImpl.h
  898. * src/OptionParser.cc
  899. * src/OptionParser.h
  900. * src/PStringSegment.cc
  901. * src/ParameterizedStringParser.cc
  902. * src/download_helper.cc
  903. * test/ParameterizedStringParserTest.cc
  904. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  905. Selecting files are now done in
  906. DefaultBtContext::setFileFileter().
  907. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  908. functions are removed because they are no longer used. Creating
  909. filter in BitfieldMan is done in new funtion
  910. PieceStorage::setupFileFilter()
  911. * src/BtContext.cc
  912. * src/BtContext.h
  913. * src/DefaultBtContext.cc
  914. * src/DefaultBtContext.h
  915. * src/DefaultPieceStorage.cc
  916. * src/DefaultPieceStorage.h
  917. * src/DiskAdaptor.cc
  918. * src/DiskAdaptor.h
  919. * src/PieceStorage.h
  920. * src/RequestGroup.cc
  921. * src/UnknownLengthPieceStorage.h
  922. * src/XmlRpcMethodImpl.cc
  923. * test/DefaultBtContextTest.cc
  924. * test/MockBtContext.h
  925. * test/MockPieceStorage.h
  926. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  927. Fixed compile error on Mac OS X
  928. * src/HttpServer.cc
  929. * src/XmlRpcMethod.h
  930. * src/XmlRpcMethodImpl.cc
  931. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  932. Use std::binary_search instead of std::find
  933. * src/DefaultPieceStorage.cc
  934. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Removed unnecessary BDE() call; leave them to implicit conversion.
  936. * src/XmlRpcMethodImpl.cc
  937. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  938. Return connections and gid in string
  939. * src/XmlRpcMethodImpl.cc
  940. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Renamed addURI as addUri
  942. * src/XmlRpcMethodFactory.cc
  943. * src/XmlRpcMethodImpl.cc
  944. * src/XmlRpcMethodImpl.h
  945. * test/XmlRpcMethodTest.cc
  946. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Renamed addTorrentFile as addTorrent
  948. * src/XmlRpcMethodFactory.cc
  949. * src/XmlRpcMethodImpl.cc
  950. * src/XmlRpcMethodImpl.h
  951. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. The information for files, URIs, peers are removed from the
  953. reponse of TellaActive, TellStatus command because they tend to be
  954. large. Instead they can be retrieved by the dedicated commands:
  955. getFiles, getUris and getPeers respectively.
  956. * src/XmlRpcMethodFactory.cc
  957. * src/XmlRpcMethodImpl.cc
  958. * src/XmlRpcMethodImpl.h
  959. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Removed --max-overall-upload-limit and
  961. --max-overall-download-limit option from listRequestOptions.
  962. * src/download_helper.cc
  963. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Log incoming host in HttpListenCommand.
  965. * src/HttpListenCommand.cc
  966. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  968. --xml-rpc-passwd option.
  969. * src/HttpServer.cc
  970. * src/HttpServer.h
  971. * src/HttpServerCommand.cc
  972. * src/OptionHandlerFactory.cc
  973. * src/prefs.cc
  974. * src/prefs.h
  975. * src/usage_text.h
  976. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  978. processing 0 length request.
  979. * src/HttpServerBodyCommand.cc
  980. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Removed --enable-http-server and --http-server-listen-port
  982. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  983. instead. The original feature for --enable-http-server that
  984. reports download progress in HTML was officially removed. Persist
  985. XML-RPC connection if client supports keep-alive.
  986. * src/DownloadEngineFactory.cc
  987. * src/HttpServerCommand.cc
  988. * src/HttpServerResponseCommand.cc
  989. * src/Makefile.am
  990. * src/Makefile.in
  991. * src/OptionHandlerFactory.cc
  992. * src/RequestGroupMan.cc
  993. * src/main.cc
  994. * src/option_processing.cc
  995. * src/prefs.cc
  996. * src/prefs.h
  997. * src/usage_text.h
  998. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Added "uris" key to the response of tellStatus command. Added
  1000. "connections" key to the response of tellStatus and tellActive
  1001. command.
  1002. * src/XmlRpcMethodImpl.cc
  1003. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1005. Added TellStatusXmlRpcMethod. Remove command can now remove
  1006. waiting RequestGroup.
  1007. * src/RequestGroupMan.cc
  1008. * src/RequestGroupMan.h
  1009. * src/XmlRpcMethodFactory.cc
  1010. * src/XmlRpcMethodImpl.cc
  1011. * src/XmlRpcMethodImpl.h
  1012. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Initialized _peerId
  1014. * src/Peer.cc
  1015. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Return fault structure for error. FailXmlRpcMethod is renamed as
  1017. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1018. in non-torrent download. Return single param value.
  1019. * src/XmlRpcMethod.cc
  1020. * src/XmlRpcMethodFactory.cc
  1021. * src/XmlRpcMethodImpl.cc
  1022. * src/XmlRpcMethodImpl.h
  1023. * test/XmlRpcMethodTest.cc
  1024. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1025. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1026. command.
  1027. * src/RequestGroup.cc
  1028. * src/RequestGroup.h
  1029. * src/RequestGroupMan.cc
  1030. * src/XmlRpcMethodImpl.cc
  1031. * test/RequestGroupTest.cc
  1032. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Added more options that can be specified in -i list and xml-rpc
  1034. add* command.
  1035. * src/download_helper.h
  1036. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. The available options in -i list should be listed in
  1038. listRequestOptions().
  1039. * src/download_helper.cc
  1040. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1042. command.
  1043. * src/XmlRpcMethodImpl.cc
  1044. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Now RequestGroup has its own copy of Option object. This will help
  1046. to give custom option for each RequestGroup.
  1047. addTorrentFile command now takes options.
  1048. * src/AbstractCommand.cc
  1049. * src/AbstractCommand.h
  1050. * src/AbstractProxyRequestCommand.cc
  1051. * src/ActivePeerConnectionCommand.cc
  1052. * src/ActivePeerConnectionCommand.h
  1053. * src/AdaptiveURISelector.cc
  1054. * src/BtCheckIntegrityEntry.cc
  1055. * src/BtDependency.cc
  1056. * src/BtDependency.h
  1057. * src/BtFileAllocationEntry.cc
  1058. * src/BtPostDownloadHandler.cc
  1059. * src/CheckIntegrityEntry.cc
  1060. * src/DownloadCommand.cc
  1061. * src/FtpDownloadCommand.cc
  1062. * src/FtpFinishDownloadCommand.cc
  1063. * src/FtpInitiateConnectionCommand.cc
  1064. * src/FtpNegotiationCommand.cc
  1065. * src/HttpInitiateConnectionCommand.cc
  1066. * src/HttpRequestCommand.cc
  1067. * src/HttpResponseCommand.cc
  1068. * src/HttpSkipResponseCommand.cc
  1069. * src/InitiateConnectionCommand.cc
  1070. * src/InitiateConnectionCommandFactory.cc
  1071. * src/InitiatorMSEHandshakeCommand.cc
  1072. * src/InitiatorMSEHandshakeCommand.h
  1073. * src/Metalink2RequestGroup.cc
  1074. * src/Metalink2RequestGroup.h
  1075. * src/MetalinkPostDownloadHandler.cc
  1076. * src/MultiUrlRequestInfo.cc
  1077. * src/MultiUrlRequestInfo.h
  1078. * src/PeerAbstractCommand.cc
  1079. * src/PeerInteractionCommand.cc
  1080. * src/PeerInteractionCommand.h
  1081. * src/PeerReceiveHandshakeCommand.cc
  1082. * src/PeerReceiveHandshakeCommand.h
  1083. * src/RequestGroup.cc
  1084. * src/RequestGroup.h
  1085. * src/TrackerWatcherCommand.cc
  1086. * src/TrackerWatcherCommand.h
  1087. * src/XmlRpcMethod.cc
  1088. * src/XmlRpcMethod.h
  1089. * src/XmlRpcMethodImpl.cc
  1090. * src/download_helper.cc
  1091. * src/download_helper.h
  1092. * src/main.cc
  1093. * test/BtDependencyTest.cc
  1094. * test/BtPostDownloadHandlerTest.cc
  1095. * test/DefaultBtMessageDispatcherTest.cc
  1096. * test/DownloadHandlerFactoryTest.cc
  1097. * test/DownloadHelperTest.cc
  1098. * test/Metalink2RequestGroupTest.cc
  1099. * test/MetalinkPostDownloadHandlerTest.cc
  1100. * test/RequestGroupManTest.cc
  1101. * test/RequestGroupTest.cc
  1102. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1103. Added tellActiveStatus xml-rpc command which reports download
  1104. status of active downloads.
  1105. * src/XmlRpcMethodFactory.cc
  1106. * src/XmlRpcMethodImpl.cc
  1107. * src/XmlRpcMethodImpl.h
  1108. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1109. Added addTorrentFile xml-rpc command which receives uploaded
  1110. torrent file and add download for it.
  1111. * src/RequestGroupMan.cc
  1112. * src/XmlRpcMethodFactory.cc
  1113. * src/XmlRpcMethodImpl.cc
  1114. * src/XmlRpcMethodImpl.h
  1115. * src/download_helper.cc
  1116. * src/download_helper.h
  1117. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Added remove xml-rpc command which removes specified download.
  1119. There is a known issue: the removed unfinished downloads are
  1120. reported ERR when aria2 exits. They should be reported as INPR.
  1121. * src/RequestGroupMan.cc
  1122. * src/RequestGroupMan.h
  1123. * src/XmlRpcMethodFactory.cc
  1124. * src/XmlRpcMethodImpl.cc
  1125. * src/XmlRpcMethodImpl.h
  1126. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. If --enable-http-server is enabled, don't stop aria2 when all
  1128. download finished and don't quit when no files to download at
  1129. start up.
  1130. * src/RequestGroupMan.cc
  1131. * src/main.cc
  1132. * src/option_processing.cc
  1133. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1134. Added missing AM_CONDITIONAL
  1135. * configure.ac
  1136. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Added xml-rpc functionality. Currently only addURI commad is
  1138. supported. To enable xml-rpc, run aria2 with
  1139. --enable-http-server. This option name is temporal and will be
  1140. changed. The feature that reports download progress in html format
  1141. is temporarily disabled.
  1142. * src/HttpServer.cc
  1143. * src/HttpServer.h
  1144. * src/HttpServerBodyCommand.cc
  1145. * src/HttpServerBodyCommand.h
  1146. * src/HttpServerCommand.cc
  1147. * src/HttpServerResponseCommand.cc
  1148. * src/Makefile.am
  1149. * src/OptionParser.cc
  1150. * src/OptionParser.h
  1151. * src/RequestGroupMan.cc
  1152. * src/RequestGroupMan.h
  1153. * src/XmlRpcMethod.cc
  1154. * src/XmlRpcMethod.h
  1155. * src/XmlRpcMethodFactory.cc
  1156. * src/XmlRpcMethodFactory.h
  1157. * src/XmlRpcMethodImpl.cc
  1158. * src/XmlRpcMethodImpl.h
  1159. * src/download_helper.cc
  1160. * src/download_helper.h
  1161. * test/Makefile.am
  1162. * test/XmlRpcMethodTest.cc
  1163. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Added xml-rpc request parser. The supported value types are:
  1165. i4/int, string, double, struct, array, base64. Currently only
  1166. libxml2 version is provided.
  1167. * src/Xml2XmlRpcRequestProcessor.cc
  1168. * src/Xml2XmlRpcRequestProcessor.h
  1169. * src/XmlRpcElements.cc
  1170. * src/XmlRpcElements.h
  1171. * src/XmlRpcRequest.h
  1172. * src/XmlRpcRequestParserController.cc
  1173. * src/XmlRpcRequestParserController.h
  1174. * src/XmlRpcRequestParserState.h
  1175. * src/XmlRpcRequestParserStateImpl.cc
  1176. * src/XmlRpcRequestParserStateImpl.h
  1177. * src/XmlRpcRequestParserStateMachine.cc
  1178. * src/XmlRpcRequestParserStateMachine.h
  1179. * src/XmlRpcRequestProcessor.h
  1180. * test/XmlRpcRequestParserControllerTest.cc
  1181. * test/XmlRpcRequestProcessorTest.cc
  1182. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. * Release 1.3.3
  1184. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1185. Fixed compile error since r1202.
  1186. * src/ExpatMetalinkProcessor.cc
  1187. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1188. Updated Ukrainian, Russian and Simplified Chinese
  1189. translations. Thanks to all translators.
  1190. * po/ru.po
  1191. * po/uk.po
  1192. * po/zh_CN.po
  1193. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Pass reference of Option object instead of pointer.
  1195. * src/download_helper.cc
  1196. * src/download_helper.h
  1197. * src/main.cc
  1198. * test/DownloadHelperTest.cc
  1199. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1201. from option directly. Instead, get them from RequestGroup.
  1202. * src/ActivePeerConnectionCommand.cc
  1203. * src/ActivePeerConnectionCommand.h
  1204. * src/PeerReceiveHandshakeCommand.cc
  1205. * src/RequestGroup.h
  1206. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1207. Removed unused uploadLimitCheck and uploadLimit from
  1208. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1209. PeerInteractionCommand.
  1210. * src/PeerAbstractCommand.cc
  1211. * src/PeerAbstractCommand.h
  1212. * src/PeerInteractionCommand.cc
  1213. * src/PeerInteractionCommand.h
  1214. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Fixed broken file renaming feature since r1202.
  1216. * src/FtpNegotiationCommand.cc
  1217. * src/FtpNegotiationCommand.h
  1218. * src/HttpResponseCommand.cc
  1219. * src/RequestGroup.cc
  1220. * src/RequestGroup.h
  1221. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Removed unused debug log
  1223. * src/SocketCore.cc
  1224. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Generated configure and Makefile.in using autoconf 2.63 and
  1226. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1227. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1228. * configure.ac
  1229. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1230. Moved piece statistics stuff to new PieceStatMan class.
  1231. Refactored PieceSelector interface.
  1232. * src/DefaultPieceStorage.cc
  1233. * src/DefaultPieceStorage.h
  1234. * src/LongestSequencePieceSelector.cc
  1235. * src/LongestSequencePieceSelector.h
  1236. * src/Makefile.am
  1237. * src/PieceSelector.h
  1238. * src/PieceStatMan.cc
  1239. * src/PieceStatMan.h
  1240. * src/RarestPieceSelector.cc
  1241. * src/RarestPieceSelector.h
  1242. * src/RequestGroup.cc
  1243. * test/DefaultPieceStorageTest.cc
  1244. * test/InOrderPieceSelector.h
  1245. * test/Makefile.am
  1246. * test/PieceStatManTest.cc
  1247. * test/RarestPieceSelectorTest.cc
  1248. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Added static member _protocolFamily to SocketCore. By default,
  1250. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1251. address. Sometime SocketCore::bind() and
  1252. SocketCore::establishConnection() use difference protocl family
  1253. and latter cannot connect to former. To avoid this situation, we
  1254. limit protocol family to AF_INET for unit tests.
  1255. * src/SocketCore.cc
  1256. * src/SocketCore.h
  1257. * test/AllTest.cc
  1258. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Avoid std::bad_alloc for negative bencode string length.
  1260. * src/bencode.cc
  1261. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Supported segmented downloading with chunked transfer encoding and
  1263. content-length.
  1264. * src/DownloadCommand.cc
  1265. * src/HttpResponseCommand.cc
  1266. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1267. Bump up version number to 1.3.3
  1268. * configure.ac
  1269. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1270. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1271. from 4096 to 65536 (for insanely large ftp login banners)
  1272. * src/FtpConnection.h
  1273. * test/FtpConnectionTest.cc
  1274. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. In DefaultBtContext::getActualBasePath(), return first
  1276. FileEntry::getPath() for single file torrent.
  1277. * src/DefaultBtContext.cc
  1278. * test/DefaultBtContextTest.cc
  1279. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1281. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1282. Removed _directIOAllowed member from DiskWriter.
  1283. * src/AbstractDiskWriter.cc
  1284. * src/AbstractDiskWriter.h
  1285. * src/AbstractSingleDiskAdaptor.cc
  1286. * src/AbstractSingleDiskAdaptor.h
  1287. * src/BinaryStream.h
  1288. * src/ByteArrayDiskWriter.h
  1289. * src/DefaultPieceStorage.cc
  1290. * src/DiskWriter.h
  1291. * src/MultiDiskAdaptor.cc
  1292. * src/MultiDiskAdaptor.h
  1293. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Now the constructor of AbstractDiskWriter takes filename as an
  1295. argument and filename argument is removed from openFile(),
  1296. initAndOpenFile(), openExistingFile() interface. storeDir member
  1297. and its accessor functions are removed from DiskAdaptor because it
  1298. is not used anymore. size() member function of DefaultDiskWriter,
  1299. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1300. opening file.
  1301. * src/AbstractDiskWriter.cc
  1302. * src/AbstractDiskWriter.h
  1303. * src/AbstractSingleDiskAdaptor.cc
  1304. * src/AbstractSingleDiskAdaptor.h
  1305. * src/ByteArrayDiskWriter.cc
  1306. * src/ByteArrayDiskWriter.h
  1307. * src/ByteArrayDiskWriterFactory.cc
  1308. * src/ByteArrayDiskWriterFactory.h
  1309. * src/DefaultDiskWriter.cc
  1310. * src/DefaultDiskWriter.h
  1311. * src/DefaultDiskWriterFactory.cc
  1312. * src/DefaultDiskWriterFactory.h
  1313. * src/DefaultPieceStorage.cc
  1314. * src/DirectDiskAdaptor.cc
  1315. * src/DirectDiskAdaptor.h
  1316. * src/DiskAdaptor.h
  1317. * src/DiskWriter.h
  1318. * src/DiskWriterFactory.h
  1319. * src/MessageDigestHelper.cc
  1320. * src/MultiDiskAdaptor.cc
  1321. * src/RequestGroup.cc
  1322. * src/UnknownLengthPieceStorage.cc
  1323. * src/Util.cc
  1324. * test/DefaultDiskWriterTest.cc
  1325. * test/DirectDiskAdaptorTest.cc
  1326. * test/FallocFileAllocationIteratorTest.cc
  1327. * test/MessageDigestHelperTest.cc
  1328. * test/MetalinkProcessorTest.cc
  1329. * test/MultiDiskAdaptorTest.cc
  1330. * test/MultiFileAllocationIteratorTest.cc
  1331. * test/SingleFileAllocationIteratorTest.cc
  1332. * test/UtilTest.cc
  1333. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Fixed the bug that aria2 aborts when --select-file is used. This
  1335. bug was introduced in r1199.
  1336. * src/MultiDiskAdaptor.cc
  1337. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1338. Code cleanup
  1339. * test/MockPieceStorage.cc
  1340. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Fixed the bug that read-only file with wrong file size will cause
  1342. error because it cannot be truncated to the correct size. Now if
  1343. file size is different than the expected one, re-open file in
  1344. writable mode.
  1345. * src/AbstractSingleDiskAdaptor.cc
  1346. * src/AbstractSingleDiskAdaptor.h
  1347. * src/BtCheckIntegrityEntry.cc
  1348. * src/DiskAdaptor.h
  1349. * src/MultiDiskAdaptor.h
  1350. * src/RequestGroup.cc
  1351. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. Fixed the bug that with --check-integrity option aria2 reports
  1353. downloaded file size is 0 even if some parts of file is correctly
  1354. downloaded. This bug is reproducible for the download that a file
  1355. includes last piece is missing. This bug doesn't reveal for
  1356. single-torrent with file allocation on.
  1357. * src/IteratableChecksumValidator.cc
  1358. * test/IteratableChecksumValidatorTest.cc
  1359. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1360. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1361. * src/RequestGroupMan.cc
  1362. * src/AdaptiveURISelector.cc
  1363. * src/AdaptiveURISelector.h
  1364. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. * Release 1.3.2
  1366. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. Updated README
  1368. * README
  1369. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1370. Updated Ukrainian translations. Thanks to Alexander10.
  1371. * po/uk.po
  1372. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1373. Code cleanup
  1374. * src/MetalinkParserStateMachine.cc
  1375. * src/MetalinkParserStateMachine.h
  1376. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1378. and expat simultaneously, MetalinkProcessor is now not base class
  1379. and it is directly implemented in XML2SAXMetalinkProcessor and
  1380. ExpatMetalinkProcessor.
  1381. * src/ExpatMetalinkProcessor.cc
  1382. * src/ExpatMetalinkProcessor.h
  1383. * src/Makefile.am
  1384. * src/MetalinkHelper.cc
  1385. * src/MetalinkProcessor.h
  1386. * src/MetalinkProcessorFactory.cc: Removed.
  1387. * src/MetalinkProcessorFactory.h: Removed
  1388. * src/XML2SAXMetalinkProcessor.cc
  1389. * src/XML2SAXMetalinkProcessor.h
  1390. * test/MetalinkProcessorTest.cc
  1391. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Bump up version number to 1.3.2
  1393. * configure.ac
  1394. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1395. Added missing file.
  1396. * test/Makefile.am
  1397. * test/url-list-singleFileEndsWithSlash.torrent
  1398. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1400. request.
  1401. * src/AnnounceList.cc
  1402. * src/AnnounceList.h
  1403. * src/BDE.cc: Added
  1404. * src/BDE.h: Added
  1405. * src/DHTAbstractMessage.cc
  1406. * src/DHTAbstractMessage.h
  1407. * src/DHTAnnouncePeerMessage.cc
  1408. * src/DHTAnnouncePeerMessage.h
  1409. * src/DHTAnnouncePeerReplyMessage.cc
  1410. * src/DHTAnnouncePeerReplyMessage.h
  1411. * src/DHTFindNodeMessage.cc
  1412. * src/DHTFindNodeMessage.h
  1413. * src/DHTFindNodeReplyMessage.cc
  1414. * src/DHTFindNodeReplyMessage.h
  1415. * src/DHTGetPeersMessage.cc
  1416. * src/DHTGetPeersMessage.h
  1417. * src/DHTGetPeersReplyMessage.cc
  1418. * src/DHTGetPeersReplyMessage.h
  1419. * src/DHTMessageFactory.h
  1420. * src/DHTMessageFactoryImpl.cc
  1421. * src/DHTMessageFactoryImpl.h
  1422. * src/DHTMessageReceiver.cc
  1423. * src/DHTMessageTracker.cc
  1424. * src/DHTMessageTracker.h
  1425. * src/DHTPingMessage.cc
  1426. * src/DHTPingMessage.h
  1427. * src/DHTPingReplyMessage.cc
  1428. * src/DHTPingReplyMessage.h
  1429. * src/DHTQueryMessage.cc
  1430. * src/DHTQueryMessage.h
  1431. * src/DHTResponseMessage.cc
  1432. * src/DHTResponseMessage.h
  1433. * src/DefaultBtAnnounce.cc
  1434. * src/DefaultBtContext.cc
  1435. * src/DefaultBtContext.h
  1436. * src/HandshakeExtensionMessage.cc
  1437. * src/Makefile.am
  1438. * src/PeerListProcessor.h
  1439. * src/UTPexExtensionMessage.cc
  1440. * src/bencode.cc
  1441. * src/bencode.h
  1442. * test/AnnounceListTest.cc
  1443. * test/BDETest.cc: Added
  1444. * test/BencodeTest.cc
  1445. * test/DHTAnnouncePeerMessageTest.cc
  1446. * test/DHTAnnouncePeerReplyMessageTest.cc
  1447. * test/DHTFindNodeMessageTest.cc
  1448. * test/DHTFindNodeReplyMessageTest.cc
  1449. * test/DHTGetPeersMessageTest.cc
  1450. * test/DHTGetPeersReplyMessageTest.cc
  1451. * test/DHTMessageFactoryImplTest.cc
  1452. * test/DHTMessageTrackerTest.cc
  1453. * test/DHTPingMessageTest.cc
  1454. * test/DHTPingReplyMessageTest.cc
  1455. * test/Makefile.am
  1456. * test/MockDHTMessageFactory.h
  1457. * test/PeerListProcessorTest.cc
  1458. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Use url-list (web-seeding) only for single-file torrent. This is
  1460. basically the same behavior with Metalink file with torrent and
  1461. URIs.
  1462. * src/RequestGroup.cc
  1463. * src/DefaultBtContext.cc
  1464. * test/DefaultBtContextTest.cc
  1465. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Rewritten expr
  1467. * src/array_fun.h
  1468. * test/array_funTest.cc
  1469. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1470. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1471. * src/DefaultBtMessageDispatcher.cc
  1472. * src/a2algo.h
  1473. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1474. Removed ExtendedMessagingAware. Instead of using inheritance,
  1475. added ExtensionMessageRegistry and it is passed to
  1476. DefaultExtensionMessageFactory.
  1477. * src/DefaultBtInteractive.cc
  1478. * src/DefaultBtInteractive.h
  1479. * src/DefaultExtensionMessageFactory.cc
  1480. * src/DefaultExtensionMessageFactory.h
  1481. * src/ExtendedMessagingAware.h: Removed.
  1482. * src/ExtensionMessageFactory.h
  1483. * src/ExtensionMessageRegistry.h: Added.
  1484. * src/Makefile.am
  1485. * src/PeerInteractionCommand.cc
  1486. * test/DefaultExtensionMessageFactoryTest.cc
  1487. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Fixed typo in log messages
  1489. * src/MSEHandshake.cc
  1490. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Fixed the bug that prevents torrent download from finishing. The
  1492. bug doesn't reveal for all torrents. The torrents affected this
  1493. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1494. of pieces.
  1495. * src/bitfield.h
  1496. * test/bitfieldTest.cc
  1497. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Code cleanup
  1499. * src/PeerListProcessor.h
  1500. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1501. Removed RequestGroupAware
  1502. * src/AbstractCommand.cc
  1503. * src/AbstractCommand.h
  1504. * src/ActivePeerConnectionCommand.cc
  1505. * src/ActivePeerConnectionCommand.h
  1506. * src/DHTGetPeersCommand.cc
  1507. * src/DHTGetPeersCommand.h
  1508. * src/InitiatorMSEHandshakeCommand.cc
  1509. * src/InitiatorMSEHandshakeCommand.h
  1510. * src/Makefile.am
  1511. * src/PeerInitiateConnectionCommand.cc
  1512. * src/PeerInitiateConnectionCommand.h
  1513. * src/PeerInteractionCommand.cc
  1514. * src/PeerInteractionCommand.h
  1515. * src/RealtimeCommand.cc
  1516. * src/RealtimeCommand.h
  1517. * src/RequestGroupAware.cc: Removed
  1518. * src/RequestGroupAware.h: Removed
  1519. * src/SeedCheckCommand.cc
  1520. * src/SeedCheckCommand.h
  1521. * src/SleepCommand.cc
  1522. * src/TrackerWatcherCommand.cc
  1523. * src/TrackerWatcherCommand.h
  1524. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1525. Rewritten PeerListProcessor
  1526. * src/PeerListProcessor.h
  1527. * src/CompactPeerListProcessor.h: Removed
  1528. * src/CompactPeerListProcessor.cc: Removed
  1529. * src/DelegatingPeerListProcessor.cc: Removed.
  1530. * src/DefaultBtAnnounce.cc
  1531. * src/Makefile.am
  1532. * src/UTPexExtensionMessage.cc
  1533. * src/DefaultPeerListProcessor.h: Removed.
  1534. * src/DefaultPeerListProcessor.cc: Removed.
  1535. * src/DelegatingPeerListProcessor.h: Removed.
  1536. * test/Makefile.am
  1537. * test/PeerListProcessorTest.cc
  1538. * test/DefaultPeerListProcessorTest.cc: Removed.
  1539. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Rewritten RequestGroupMan::calculateStat()
  1541. * src/RequestGroupMan.cc
  1542. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Removed unnecessary virtual destructor for Request class.
  1544. * src/Request.cc
  1545. * src/Request.h
  1546. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Avoid dynamic_pointer_cast.
  1548. * src/DHTGetPeersCommand.cc
  1549. * src/DHTGetPeersCommand.h
  1550. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1551. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  1552. BtEvent.
  1553. * src/AbstractBtEventListener.h: Removed.
  1554. * src/AbstractBtMessage.cc
  1555. * src/AbstractBtMessage.h
  1556. * src/BtAbortOutstandingRequestEvent.h
  1557. * src/BtCancelSendingPieceEvent.h
  1558. * src/BtChokedEvent.h: Removed.
  1559. * src/BtChokingEvent.h
  1560. * src/BtEvent.h: Removed
  1561. * src/BtEventListener.h: Removed.
  1562. * src/BtMessage.h
  1563. * src/BtPieceMessage.cc
  1564. * src/BtPieceMessage.h
  1565. * src/BtRequestMessage.cc
  1566. * src/BtRequestMessage.h
  1567. * src/DefaultBtMessageDispatcher.cc
  1568. * src/Makefile.am
  1569. * src/a2functional.h
  1570. * test/BtPieceMessageTest.cc
  1571. * test/BtRequestMessageTest.cc
  1572. * test/DefaultBtMessageDispatcherTest.cc
  1573. * test/MockBtMessage.h
  1574. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Code cleanup
  1576. * src/RequestGroupMan.cc
  1577. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1578. Code cleanup
  1579. * src/DownloadCommand.cc
  1580. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1581. Fixed segmentation fault when GZipDecoder::decode() returns 0
  1582. byte.
  1583. * src/DownloadCommand.cc
  1584. * src/bitfield.h
  1585. * test/bitfieldTest.cc
  1586. Fixed the bug that causes infinite loop if broken web server
  1587. returns chunked response without last "0" chunk-size marker and
  1588. closes connection.
  1589. * src/DownloadCommand.cc
  1590. Instantiate properly configured HttpDownloadCommand for
  1591. non-resumable downlaods.
  1592. * src/HttpResponseCommand.cc
  1593. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Rewritten array operation functions.
  1595. * src/BitfieldMan.cc
  1596. * src/array_fun.h
  1597. * test/array_funTest.cc
  1598. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1599. Removed unused variable 'query'
  1600. * src/Request.cc
  1601. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1602. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  1603. accidentally set to false in r1162.
  1604. * configure.ac
  1605. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Code cleanup
  1607. * src/BNode.cc
  1608. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Increase prefixLength for the bucket which doesn't own local node
  1610. ID when splitting bucket.
  1611. * src/DHTBucket.cc
  1612. * test/DHTBucketTest.cc
  1613. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1614. * Release 1.3.1
  1615. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Bump up version number to 1.3.1
  1617. * configure.ac
  1618. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Removed unused variable checkPoint. Also removed include directive
  1620. for TimeA2.h.
  1621. * src/SeedCheckCommand.h
  1622. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Fixed the bug that upload limit exceeds the value specified in
  1624. --seed-ratio option depending on the timing of the execution of
  1625. SeedCheckCommand.
  1626. * src/SeedCheckCommand.cc
  1627. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Fixed the bug that removed peer's session upload/download length
  1629. are counted twice in _cachedTransferStat before it is
  1630. re-calculated. This affected the calculation of shara ratio,
  1631. resulting aria2 wrongly determines that specified share ratio is
  1632. reached. Also fixed the typo in calculateStatFor function name.
  1633. * src/BtSetup.cc
  1634. * src/DefaultPeerStorage.cc
  1635. * src/ShareRatioSeedCriteria.h
  1636. * test/ShareRatioSeedCriteriaTest.cc
  1637. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. * Release 1.3.0
  1639. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1640. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  1641. Nynorsk translations. Thanks to all translators.
  1642. * po/es.po
  1643. * po/ja.po
  1644. * po/nn.po
  1645. * po/ru.po
  1646. * po/uk.po
  1647. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1648. Rewritten isInRange()
  1649. * src/DHTBucket.cc
  1650. * test/DHTBucketTest.cc
  1651. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Fixed typo
  1653. * doc/aria2c.1.txt
  1654. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  1656. malloc/realloc is not used.
  1657. * src/configure.ac
  1658. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. BitfieldMan::getMissingIndexes family functions now takes unsigned
  1660. char* bitfield instead of stl container for efficiency.
  1661. PieceSelector::select now takes this
  1662. bitfield. RarestPieceSelector::select now also performs
  1663. efficiently for this change. bitfield namespace is introduced and
  1664. it has several helper functions to handle basic bitfield
  1665. operations such as test, count set bits, etc.
  1666. * src/BitfieldMan.cc
  1667. * src/BitfieldMan.h
  1668. * src/DefaultBtRequestFactory.cc
  1669. * src/DefaultPieceStorage.cc
  1670. * src/DefaultPieceStorage.h
  1671. * src/LongestSequencePieceSelector.cc
  1672. * src/LongestSequencePieceSelector.h
  1673. * src/Makefile.am
  1674. * src/Piece.cc
  1675. * src/Piece.h
  1676. * src/PieceSelector.h
  1677. * src/RarestPieceSelector.cc
  1678. * src/RarestPieceSelector.h
  1679. * src/Util.cc
  1680. * src/Util.h
  1681. * src/bitfield.h
  1682. * test/BitfieldManTest.cc
  1683. * test/LongestSequencePieceSelectorTest.cc
  1684. * test/Makefile.am
  1685. * test/RarestPieceSelectorTest.cc
  1686. * test/UtilTest.cc
  1687. * test/bitfieldTest.cc
  1688. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1689. Made accepted socket non-block.
  1690. * src/FtpNegotiationCommand.cc
  1691. * src/HttpListenCommand.cc
  1692. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Guarded #ifdef HAVE_POSIX_FALLOCATE
  1694. * src/AbstractSingleDiskAdaptor.cc
  1695. * src/DefaultPieceStorage.cc
  1696. * src/DiskAdaptor.h
  1697. * src/DiskAdaptor.h
  1698. * src/MultiFileAllocationIterator.cc
  1699. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1700. Run
  1701. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  1702. in every 1 sec. The timeout of RequestSlot is 60s by default and
  1703. it doesn't need to be called every time when
  1704. DefaultBtInteractive::doInteractionProcessing() is called.
  1705. * src/DefaultBtInteractive.cc
  1706. * src/DefaultBtInteractive.h
  1707. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1708. Documented 'falloc' in man page.
  1709. * doc/aria2c.1.txt
  1710. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1711. Updated doc
  1712. * src/usage_text.h
  1713. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Added 'falloc' parameter for --file-allocation option. 'falloc'
  1715. allocation mode uses posix_fallocate() system call to allocate
  1716. file on disk. If you are using newer file systems such as ext4
  1717. (with extents support), btrfs or xfs, 'falloc' is your best
  1718. choice. It allocates large(few GiB) files almost instantly. Don't
  1719. use 'falloc' with legacy file systems such as ext3 because it
  1720. takes almost same time as 'prealloc' and it blocks aria2 entirely
  1721. until allocation finishes. 'falloc' may not be available if your
  1722. system doesn't have posix_fallocate() system call.
  1723. * configure.ac
  1724. * src/AbstractDiskWriter.cc
  1725. * src/AbstractDiskWriter.h
  1726. * src/AbstractSingleDiskAdaptor.cc
  1727. * src/BinaryStream.h
  1728. * src/BtCheckIntegrityEntry.cc
  1729. * src/ByteArrayDiskWriter.h
  1730. * src/CheckIntegrityEntry.cc
  1731. * src/CheckIntegrityEntry.h
  1732. * src/DefaultPieceStorage.cc
  1733. * src/DiskAdaptor.cc
  1734. * src/DiskAdaptor.h
  1735. * src/DiskWriter.h
  1736. * src/FallocFileAllocationIterator.cc
  1737. * src/FallocFileAllocationIterator.h
  1738. * src/FileAllocationEntry.cc
  1739. * src/FileAllocationEntry.h
  1740. * src/Makefile.am
  1741. * src/MultiFileAllocationIterator.cc
  1742. * src/MultiFileAllocationIterator.h
  1743. * src/OptionHandlerFactory.cc
  1744. * src/RequestGroup.cc
  1745. * src/StreamCheckIntegrityEntry.cc
  1746. * src/prefs.cc
  1747. * src/prefs.h
  1748. * src/usage_text.h
  1749. * test/FallocFileAllocationIteratorTest.cc
  1750. * test/Makefile.am
  1751. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1752. Removed duplicate enableDirectIO() call.
  1753. * src/MultiFileAllocationIterator.cc
  1754. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  1756. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  1757. cost of std::rotate().
  1758. * src/RarestPieceSelector.cc
  1759. * src/RarestPieceSelector.h
  1760. * test/RarestPieceSelectorTest.cc
  1761. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Updated usage doc for --bt-tracker-interval option.
  1763. * src/usage_text.h
  1764. * doc/aria2c.1.txt
  1765. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Documented --bt-tracker-interval option in man page.
  1767. * doc/aria2c.1.txt
  1768. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Added an option to specify the interval between tracker requests.
  1770. If non-zero value is specified, aria2 uses it and ignores the
  1771. interval value in the response of tracker. If zero is specified,
  1772. aria2 determines the inteval value based on the tarcker response
  1773. and download progress.
  1774. * src/DefaultBtAnnounce.cc
  1775. * src/DefaultBtAnnounce.h
  1776. * src/OptionHandlerFactory.cc
  1777. * src/RequestGroup.cc
  1778. * src/prefs.cc
  1779. * src/prefs.h
  1780. * src/usage_text.h
  1781. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Added operator+=, operator-=, operator-
  1783. * src/TransferStat.cc
  1784. * src/TransferStat.h
  1785. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Refactored RarestPieceSelector to reduce CPU load, especially for
  1787. addPieceStats.
  1788. * src/RarestPieceSelector.cc
  1789. * src/RarestPieceSelector.h
  1790. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1791. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  1792. getAllMissingBlockIndexes to reduce a call to
  1793. array_function_base::operator[].
  1794. * src/BitfieldMan.cc
  1795. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Cached TransferStat/download speed to avoid to sum them up in each
  1797. call.
  1798. * src/DefaultPeerStorage.cc
  1799. * src/DefaultPeerStorage.h
  1800. * src/SegmentMan.cc
  1801. * src/SegmentMan.h
  1802. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Typedefed cuid_t as int32_t in Command.h
  1804. * src/CUIDCounter.h
  1805. * src/Command.cc
  1806. * src/Command.h
  1807. * src/DownloadEngine.cc
  1808. * src/DownloadEngine.h
  1809. * src/PeerStat.h
  1810. * src/SegmentMan.cc
  1811. * src/SegmentMan.h
  1812. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1813. Reduced the number of calls to PeerStorage::calculateStat() and
  1814. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  1815. transfer rate.
  1816. * src/DefaultBtInteractive.cc
  1817. * src/DefaultBtMessageDispatcher.cc
  1818. * src/DefaultPeerStorage.cc
  1819. * src/DefaultPeerStorage.h
  1820. * src/DownloadCommand.cc
  1821. * src/DownloadEngine.cc
  1822. * src/PeerStorage.h
  1823. * src/SegmentMan.cc
  1824. * src/SegmentMan.h
  1825. * test/MockPeerStorage.h
  1826. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Prepended _dir+"/" after joining path elements in torrent file.
  1828. * src/DefaultBtContext.cc
  1829. * test/DefaultBtContextTest.cc
  1830. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. Added missing IndexBtMessageValidator.h
  1832. * src/Makefile.am
  1833. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1834. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1835. Chinese translations. Thank you for contributing our project.
  1836. * po/id.po
  1837. * po/it.po
  1838. * po/ru.po
  1839. * po/uk.po
  1840. * po/zh_CN.po
  1841. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1842. Updated README
  1843. * README
  1844. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Bump up version number to 1.3.0
  1846. * configure.ac
  1847. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Updated doc
  1849. * src/DefaultBtContext.h
  1850. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1851. Slice/joinPath for name of single torrent.
  1852. * src/DefaultBtContext.cc
  1853. * test/DefaultBtContextTest.cc
  1854. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1855. Updated man page: Documented --dry-run and --index-out
  1856. options. Changed the default value of --uri-selector and
  1857. --http-auth-challenge options. Removed --direct-file-mapping
  1858. option. Added example for --index-out
  1859. * doc/aria2c.1.txt
  1860. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1861. Updated TEXT_DRY_RUN
  1862. * src/usage_text.h
  1863. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1864. Changed the default value of --uri-selector option from 'inorder'
  1865. to 'feedback'
  1866. * src/OptionHandlerFactory.cc
  1867. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1868. Included current URI in exception message.
  1869. * src/AbstractCommand.cc
  1870. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1871. Renamed ServerStatURISelector as FeedbackURISelector.
  1872. * src/FeedbackURISelector.cc
  1873. * src/FeedbackURISelector.h
  1874. * src/Makefile.am
  1875. * src/RequestGroupMan.cc
  1876. * src/ServerStatURISelector.cc
  1877. * src/ServerStatURISelector.h
  1878. * test/FeedbackURISelectorTest.cc
  1879. * test/Makefile.am
  1880. * test/ServerStatURISelectorTest.cc
  1881. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1883. all URIs are tested and their timeout is not reached.
  1884. * src/AdaptiveURISelector.cc
  1885. * src/AdaptiveURISelector.h
  1886. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Changed the default value of --http-auth-challenge option to false.
  1888. * src/OptionHandlerFactory.cc
  1889. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1890. Reuse URIs when all unused URIs run out.
  1891. * src/OptionHandlerFactory.cc
  1892. * src/RequestGroup.cc
  1893. * src/prefs.cc
  1894. * src/prefs.h
  1895. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1896. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1897. and BtRejectMessage are derived from RangeBtMessage class.
  1898. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1899. derived from IndexBtMessage class. BtChokeMessage,
  1900. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1901. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1902. ZeroBtMessage class.
  1903. * src/AbstractBtMessage.cc
  1904. * src/AbstractBtMessage.h
  1905. * src/BtAllowedFastMessage.cc
  1906. * src/BtAllowedFastMessage.h
  1907. * src/BtAllowedFastMessageValidator.h: Removed
  1908. * src/BtBitfieldMessage.cc
  1909. * src/BtBitfieldMessage.h
  1910. * src/BtCancelMessage.cc
  1911. * src/BtCancelMessage.h
  1912. * src/BtCancelMessageValidator.h: Removed
  1913. * src/BtChokeMessage.cc
  1914. * src/BtChokeMessage.h
  1915. * src/BtExtendedMessage.cc
  1916. * src/BtExtendedMessage.h
  1917. * src/BtHandshakeMessage.cc
  1918. * src/BtHandshakeMessage.h
  1919. * src/BtHaveAllMessage.cc
  1920. * src/BtHaveAllMessage.h
  1921. * src/BtHaveMessage.cc
  1922. * src/BtHaveMessage.h
  1923. * src/BtHaveMessageValidator.h: Removed
  1924. * src/BtHaveNoneMessage.cc
  1925. * src/BtHaveNoneMessage.h
  1926. * src/BtInterestedMessage.cc
  1927. * src/BtInterestedMessage.h
  1928. * src/BtKeepAliveMessage.cc
  1929. * src/BtKeepAliveMessage.h
  1930. * src/BtNotInterestedMessage.cc
  1931. * src/BtNotInterestedMessage.h
  1932. * src/BtPieceMessage.cc
  1933. * src/BtPieceMessage.h
  1934. * src/BtPortMessage.cc
  1935. * src/BtPortMessage.h
  1936. * src/BtRejectMessage.cc
  1937. * src/BtRejectMessage.h
  1938. * src/BtRejectMessageValidator.h: Removed
  1939. * src/BtRequestMessage.cc
  1940. * src/BtRequestMessage.h
  1941. * src/BtRequestMessageValidator.h: Removed
  1942. * src/BtSuggestPieceMessage.cc
  1943. * src/BtSuggestPieceMessage.h
  1944. * src/BtSuggestPieceMessageValidator.h: Removed
  1945. * src/BtUnchokeMessage.cc
  1946. * src/BtUnchokeMessage.h
  1947. * src/DefaultBtMessageFactory.cc
  1948. * src/IndexBtMessage.cc
  1949. * src/IndexBtMessage.h
  1950. * src/IndexBtMessageValidator.h
  1951. * src/Makefile.am
  1952. * src/PeerMessageUtil.cc
  1953. * src/PeerMessageUtil.h
  1954. * src/RangeBtMessage.cc
  1955. * src/RangeBtMessage.h
  1956. * src/RangeBtMessageValidator.h
  1957. * src/SimpleBtMessage.cc
  1958. * src/SimpleBtMessage.h
  1959. * src/ZeroBtMessage.cc
  1960. * src/ZeroBtMessage.h
  1961. * test/BtRequestMessageTest.cc
  1962. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1963. Reverted usage_text.h to r1093 to avoid to lose translated
  1964. messages.
  1965. * src/usage_text.h
  1966. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1968. declared as non-const previously is now const and defined in class
  1969. definition.
  1970. * src/AbstractBtMessage.cc
  1971. * src/AbstractBtMessage.h
  1972. * src/BtAllowedFastMessage.cc
  1973. * src/BtAllowedFastMessage.h
  1974. * src/BtBitfieldMessage.h
  1975. * src/BtCancelMessage.cc
  1976. * src/BtCancelMessage.h
  1977. * src/BtChokeMessage.cc
  1978. * src/BtChokeMessage.h
  1979. * src/BtExtendedMessage.cc
  1980. * src/BtExtendedMessage.h
  1981. * src/BtHandshakeMessage.cc
  1982. * src/BtHandshakeMessage.h
  1983. * src/BtHaveAllMessage.cc
  1984. * src/BtHaveAllMessage.h
  1985. * src/BtHaveMessage.cc
  1986. * src/BtHaveMessage.h
  1987. * src/BtHaveNoneMessage.cc
  1988. * src/BtHaveNoneMessage.h
  1989. * src/BtInterestedMessage.cc
  1990. * src/BtInterestedMessage.h
  1991. * src/BtKeepAliveMessage.cc
  1992. * src/BtKeepAliveMessage.h
  1993. * src/BtMessage.h
  1994. * src/BtNotInterestedMessage.cc
  1995. * src/BtNotInterestedMessage.h
  1996. * src/BtPieceMessage.h
  1997. * src/BtPortMessage.cc
  1998. * src/BtPortMessage.h
  1999. * src/BtRejectMessage.cc
  2000. * src/BtRejectMessage.h
  2001. * src/BtRequestMessage.cc
  2002. * src/BtRequestMessage.h
  2003. * src/BtSuggestPieceMessage.cc
  2004. * src/BtSuggestPieceMessage.h
  2005. * src/BtUnchokeMessage.cc
  2006. * src/BtUnchokeMessage.h
  2007. * src/SimpleBtMessage.cc
  2008. * src/SimpleBtMessage.h
  2009. * test/MockBtMessage.h
  2010. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2011. Use FileEntry::exists()
  2012. * src/MultiDiskAdaptor.cc
  2013. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2014. Added exists()
  2015. * src/FileEntry.cc
  2016. * src/FileEntry.h
  2017. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2018. Added missing prefix dir.
  2019. * src/download_helper.cc
  2020. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2021. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2022. * src/CopyDiskAdaptor.cc: Removed
  2023. * src/CopyDiskAdaptor.h: Removed
  2024. * src/DefaultPieceStorage.cc
  2025. * src/Makefile.am
  2026. * src/OptionHandlerFactory.cc
  2027. * src/prefs.cc
  2028. * src/prefs.h
  2029. * src/usage_text.h
  2030. * test/CopyDiskAdaptorTest.cc: Removed
  2031. * test/Makefile.am
  2032. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Rewritten isSameFileBeingDownloaded()
  2034. * src/RequestGroupMan.cc
  2035. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Removed getName() from DownloadContext. getName() is declared in
  2037. BtContext.
  2038. * src/BtContext.h
  2039. * src/DownloadContext.h
  2040. * src/SingleFileDownloadContext.cc
  2041. * src/SingleFileDownloadContext.h
  2042. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2043. in AbstractSingleDiskAdaptor.
  2044. * src/AbstractSingleDiskAdaptor.h
  2045. * src/DiskAdaptor.h
  2046. * src/MultiDiskAdaptor.h
  2047. * src/RequestGroup.cc
  2048. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2049. MultiDiskAdaptor.
  2050. * src/DefaultPieceStorage.cc
  2051. * src/MultiDiskAdaptor.cc
  2052. * src/MultiDiskAdaptor.h
  2053. * test/MultiDiskAdaptorTest.cc
  2054. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. FileEntry::getPath() contains store(top level) directory to
  2056. simplify path handling operation. In the previous implementation,
  2057. store directory is concatenated to FileEntry::getPath() in
  2058. DownloadContext.
  2059. * src/BtDependency.cc
  2060. * src/BtPostDownloadHandler.cc
  2061. * src/CopyDiskAdaptor.cc
  2062. * src/DefaultBtContext.cc
  2063. * src/DirectDiskAdaptor.cc
  2064. * src/FileEntry.cc
  2065. * src/FileEntry.h
  2066. * src/FtpNegotiationCommand.cc
  2067. * src/HttpResponse.cc
  2068. * src/HttpResponseCommand.cc
  2069. * src/Metalink2RequestGroup.cc
  2070. * src/MultiDiskAdaptor.cc
  2071. * src/MultiDiskAdaptor.h
  2072. * src/MultiFileAllocationIterator.cc
  2073. * src/RequestGroup.cc
  2074. * src/SingleFileDownloadContext.cc
  2075. * src/SingleFileDownloadContext.h
  2076. * src/download_helper.cc
  2077. * test/BtDependencyTest.cc
  2078. * test/CopyDiskAdaptorTest.cc
  2079. * test/DefaultBtContextTest.cc
  2080. * test/DefaultBtProgressInfoFileTest.cc
  2081. * test/DirectDiskAdaptorTest.cc
  2082. * test/DownloadHelperTest.cc
  2083. * test/FileEntryTest.cc
  2084. * test/MultiDiskAdaptorTest.cc
  2085. * test/MultiFileAllocationIteratorTest.cc
  2086. * test/RequestGroupTest.cc
  2087. * test/SingleFileDownloadContextTest.cc
  2088. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Fixed compiler warning
  2090. * src/download_helper.cc
  2091. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Throw exception if same infohash torrent is now downloading.
  2093. * src/RequestGroup.cc
  2094. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Added --dry-run option. In this mode, aria2 just checks whether
  2096. the remote file is available and doesn't download data. This
  2097. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2098. are canceled in this mode.
  2099. * src/FtpNegotiationCommand.cc
  2100. * src/HttpResponseCommand.cc
  2101. * src/HttpResponseCommand.h
  2102. * src/OptionHandlerFactory.cc
  2103. * src/RequestGroup.cc
  2104. * src/RequestGroupMan.cc
  2105. * src/prefs.cc
  2106. * src/prefs.h
  2107. * src/usage_text.h
  2108. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Fixed compiler waring
  2110. * test/UriListParserTest.cc
  2111. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Parse options in -i list using OptionParser.
  2113. * src/UriListParser.cc
  2114. * src/UriListParser.h
  2115. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Don't reset URI in retry to avoid additional round trips because
  2117. of redirects.
  2118. * src/AbstractCommand.cc
  2119. * src/OptionHandlerFactory.cc
  2120. * src/prefs.cc
  2121. * src/prefs.h
  2122. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Declared hide() in OptionHandler.
  2124. * src/NameMatchOptionHandler.h
  2125. * src/OptionHandler.h
  2126. * src/OptionHandlerImpl.h
  2127. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Updated doc
  2129. * src/Peer.h
  2130. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Added log message in setStatusInternal()
  2132. * src/ServerStat.cc
  2133. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2135. effectively exclude failed server.
  2136. * src/AbstractCommand.cc
  2137. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Added --index-out option to specify each file path for torrent.
  2139. Here index shown in --show-files option is used to specify which
  2140. file path should be altered. For example, to change the file path
  2141. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2142. option multiple times: --index-out=1=aria2.tar.bz2
  2143. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2144. available. This option can be specified in -i list.
  2145. * src/DefaultBtContext.cc
  2146. * src/DefaultBtContext.h
  2147. * src/MultiDiskAdaptor.cc
  2148. * src/MultiDiskAdaptor.h
  2149. * src/MultiFileAllocationIterator.cc
  2150. * src/OptionHandlerFactory.cc
  2151. * src/OptionHandlerImpl.h
  2152. * src/Util.cc
  2153. * src/Util.h
  2154. * src/download_helper.cc
  2155. * src/prefs.cc
  2156. * src/prefs.h
  2157. * src/usage_text.h
  2158. * test/DefaultBtContextTest.cc
  2159. * test/MultiDiskAdaptorTest.cc
  2160. * test/MultiFileAllocationIteratorTest.cc
  2161. * test/UtilTest.cc
  2162. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2163. Use Util::pathJoin()
  2164. * src/MetalinkParserController.cc
  2165. * test/test.xml
  2166. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2167. Use Util::pathJoin()
  2168. * src/DefaultBtContext.cc
  2169. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Added Util::pathJoin()
  2171. * src/Util.h
  2172. * test/UtilTest.cc
  2173. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Applied basename function to remove directory element in
  2175. content-disposition value.
  2176. Return empty string if content-disposition value is ".." or ".".
  2177. * src/Util.cc
  2178. * test/UtilTest.cc
  2179. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2180. Added --max-overall-download-limit in man page.
  2181. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2182. * doc/aria2c.1.txt
  2183. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2184. Added --max-overall-download-limit option. Now --max-upload-limit
  2185. option is not ignored when --max-overall-upload-limit option has
  2186. non-zero value. aria2 checks download(upload) speed in the order:
  2187. first checks overall speed limit and if it is not exceeded, then
  2188. checks speed limit per download. Thus you can specify both
  2189. value. For example, set --max-overall-download-limit=1M and
  2190. --max-download-limit=500K to prevent from one download from eating
  2191. all overall speed limit.
  2192. * src/DefaultBtInteractive.cc
  2193. * src/DefaultBtInteractive.h
  2194. * src/DefaultBtMessageDispatcher.cc
  2195. * src/DefaultBtMessageDispatcher.h
  2196. * src/DownloadCommand.cc
  2197. * src/DownloadCommand.h
  2198. * src/FtpNegotiationCommand.cc
  2199. * src/HttpResponseCommand.cc
  2200. * src/OptionHandlerFactory.cc
  2201. * src/PeerInteractionCommand.cc
  2202. * src/RequestGroup.cc
  2203. * src/RequestGroup.h
  2204. * src/RequestGroupMan.cc
  2205. * src/RequestGroupMan.h
  2206. * src/prefs.cc
  2207. * src/prefs.h
  2208. * src/usage_text.h
  2209. * test/DefaultBtMessageDispatcherTest.cc
  2210. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2211. Documented select-file option in Input File section.
  2212. Documented --http-auth-challenge option.
  2213. * doc/aria2c.1.txt
  2214. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2215. Now select-file can be specified in the uri list(-i list).
  2216. * src/BtContext.cc
  2217. * src/BtContext.h
  2218. * src/RequestGroup.cc
  2219. * src/Sequence.h
  2220. * src/download_helper.cc
  2221. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Made the upper value of --max-concurrent-downloads options unlimited.
  2223. * src/OptionHandlerFactory.cc
  2224. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2225. Fixed the bug that disk writer is not created even if it shares
  2226. same piece with the preceding file if the length of previous file
  2227. is 0.
  2228. * src/MultiDiskAdaptor.cc
  2229. * test/MultiDiskAdaptorTest.cc
  2230. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. In BitTorrent, Open files in read-only mode for hash check. After
  2232. that, re-open file in read/write mode only when the download is
  2233. not finished.
  2234. * src/AbstractDiskWriter.cc
  2235. * src/AbstractDiskWriter.h
  2236. * src/AbstractSingleDiskAdaptor.cc
  2237. * src/AbstractSingleDiskAdaptor.h
  2238. * src/BtCheckIntegrityEntry.cc
  2239. * src/DiskAdaptor.h
  2240. * src/DiskWriter.h
  2241. * src/MultiDiskAdaptor.cc
  2242. * src/MultiDiskAdaptor.h
  2243. * src/RequestGroup.cc
  2244. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2245. Added --http-auth-challenge option. If it is set to true(by
  2246. default), aria2 sends HTTP authorization header only when it is
  2247. requested by the server. If false is set, then authorization
  2248. header is always sent to the server. This is useful for servers
  2249. that don't respond 401 code when authentication is required.
  2250. There is an exception: if username and password are embedded in
  2251. URI, authorization header is always sent to the server regardless
  2252. of this option.
  2253. * src/AuthConfigFactory.cc
  2254. * src/HttpSkipResponseCommand.cc
  2255. * src/OptionHandlerFactory.cc
  2256. * src/prefs.cc
  2257. * src/prefs.h
  2258. * src/usage_text.h
  2259. * test/AuthConfigFactoryTest.cc
  2260. * test/HttpRequestTest.cc
  2261. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. * Release 1.2.0
  2263. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2265. Thanks to all translators.
  2266. * po/es.po
  2267. * po/ja.po
  2268. * po/ru.po
  2269. * po/uk.po
  2270. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2271. Call deleteSocketForReadCheck() before socket is closed.
  2272. * src/HttpListenCommand.cc
  2273. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Defined virtual destructor for BObject.
  2275. * src/bencode.h
  2276. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Rewritten BDE to make it efficient.
  2278. * src/bencode.cc
  2279. * src/bencode.h
  2280. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Removed function throw list.
  2282. * src/bencode.cc
  2283. * src/bencode.h
  2284. * test/BencodeTest.cc
  2285. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2286. Enclosed all URLs in double quotes in command-line examples.
  2287. * doc/aria2c.1.txt
  2288. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Updated reference/see also section.
  2290. * README
  2291. * doc/aria2c.1.txt
  2292. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2293. Reorganized man page based on man man-pages.
  2294. * doc/aria2c.1.txt
  2295. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2296. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2297. because same documents are available in man page. Added
  2298. References section.
  2299. * README
  2300. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2302. PERFORMANCE PROFILE section.
  2303. * doc/aria2c.1.txt
  2304. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Rewritten the section for configuration file.
  2306. * README
  2307. * doc/aria2c.1.txt
  2308. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Fixed the segmentation fault during execution of choking algorithm
  2310. in leecher state because of broken compare operator
  2311. implementation.
  2312. * src/BtLeecherStateChoke.cc
  2313. * src/BtLeecherStateChoke.h
  2314. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Open file in binary mode.
  2316. * src/CookieStorage.cc
  2317. * src/DHTSetup.cc
  2318. * src/DHTUtil.cc
  2319. * src/Netrc.cc
  2320. * src/NsCookieParser.cc
  2321. * src/ProtocolDetector.cc
  2322. * src/RequestGroupMan.cc
  2323. * src/Signature.cc
  2324. * src/bencode.cc
  2325. * src/download_helper.cc
  2326. * src/option_processing.cc
  2327. * test/CookieParserTest.cc
  2328. * test/DefaultBtProgressInfoFileTest.cc
  2329. * test/FileTest.cc
  2330. * test/GZipDecoderTest.cc
  2331. * test/RequestGroupManTest.cc
  2332. * test/SignatureTest.cc
  2333. * test/SingleFileAllocationIteratorTest.cc
  2334. * test/UriListParserTest.cc
  2335. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Removed operator[] because it is ambiguous with built-in []
  2337. operator.
  2338. * src/array_fun.h
  2339. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2340. Fixed compile error
  2341. * src/OptionParser.cc
  2342. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Added missing call to arrayWrapperConst
  2344. * test/array_funTest.cc
  2345. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Use array_wrapper instead of array_ptr.
  2347. * src/DHTRoutingTableDeserializer.cc
  2348. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2350. * src/array_fun.h
  2351. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2352. Added array_wrapper template.
  2353. * src/array_fun.h
  2354. * test/array_funTest.cc
  2355. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2356. Use operator T* of array_ptr.
  2357. * src/OptionParser.cc
  2358. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Use localhost instead of 127.0.0.1
  2360. * test/FtpConnectionTest.cc
  2361. * test/MSEHandshakeTest.cc
  2362. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2363. Added operator T*
  2364. * src/array_fun.h
  2365. * test/array_funTest.cc
  2366. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Use dynamically allocated char array to detect memory access
  2368. violation.
  2369. * src/DHTRoutingTableDeserializer.cc
  2370. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2371. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2372. defined.
  2373. * src/PeerMessageUtil.cc
  2374. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2376. * configure.ac
  2377. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Added a check to see struct sockaddr_in has sin_len member.
  2379. * configure.ac
  2380. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Fixed buffer overrun.
  2382. * src/DHTRoutingTableDeserializer.cc
  2383. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2384. Added LL for long long int constant.
  2385. * test/FtpConnectionTest.cc
  2386. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Casted to unsigned int to suppress compiler warning on netbsd.
  2388. * src/BtRuntime.h
  2389. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2391. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2392. type time_t.
  2393. * src/SimpleLogger.cc
  2394. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Added test for FtpConnection::receiveSizeResponse().
  2396. * test/FtpConnectionTest.cc
  2397. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Fix epoll error on the old kernel 2.6.8 or ealier.
  2399. * src/EpollEventPoll.cc
  2400. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2401. Use Util::parseLLInt instead of sscanf for portability. The
  2402. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2403. * src/FtpConnection.cc
  2404. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2405. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2406. block. It should not filter anything.
  2407. * src/BitfieldMan.cc
  2408. * src/ConsoleStatCalc.cc
  2409. * test/BitfieldManTest.cc
  2410. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Fixed the bug that the boolean options that don't take arguments
  2412. don't work.
  2413. * src/OptionHandlerImpl.h
  2414. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. Fixed broken selected file BitTorrent download.
  2416. * src/MultiDiskAdaptor.cc
  2417. * test/MultiDiskAdaptorTest.cc
  2418. * test/MultiFileAllocationIteratorTest.cc
  2419. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2420. Fixed #define guard for EpollEventPoll
  2421. * src/EpollEventPoll.h
  2422. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. Wait 2 seconds. 1 second is sometimes not enough.
  2424. * test/TimeSeedCriteriaTest.cc
  2425. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2426. Use localhost instead of 127.0.0.1.
  2427. * test/DHTConnectionImplTest.cc
  2428. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2429. Suppressed compiler warning.
  2430. * src/AdaptiveURISelector.cc
  2431. * src/DefaultPieceStorage.cc
  2432. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2433. Defined virtual destructor.
  2434. * src/MetalinkParserState.h
  2435. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Give NULL for second argument of getaddrinfo instead of "0".
  2437. * src/NameResolver.cc
  2438. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2440. included strptime doesn't parse data for this format.
  2441. * src/FtpConnection.cc
  2442. * test/FtpConnectionTest.cc
  2443. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2444. Removed tests giving -1 for unsigned argument.
  2445. * test/SingleFileDownloadContextTest.cc
  2446. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Don't use sha256 in tests because it might not be supported by the
  2448. SSL library.
  2449. * test/MetalinkProcessorTest.cc
  2450. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Removed tests giving -1 for unsigned argument.
  2452. * test/AlphaNumberDecoratorTest
  2453. * test/BitfieldManTest.cc
  2454. * test/DefaultBtContextTest.cc
  2455. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2456. Fixed compile error without libcares when epoll is available.
  2457. * src/EpollEventPoll.cc
  2458. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2459. Included fstream instead of iostream.
  2460. * test/SignatureTest.cc
  2461. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2462. Removed #include <algorithm>
  2463. * test/RequestGroupTest.cc
  2464. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2465. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2466. using RequestGroup::extractURIResult().
  2467. * src/AdaptiveURISelector.cc
  2468. * src/RequestGroup.cc
  2469. * src/RequestGroup.h
  2470. * test/RequestGroupTest.cc
  2471. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Added tests for array_ptr.
  2473. * test/array_funTest.cc
  2474. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2475. Don't send ip parameter to a tracker if ip parameter is empty
  2476. string.
  2477. * src/DefaultBtAnnounce.cc
  2478. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Adjusted line feed.
  2480. * src/version_usage.cc
  2481. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2482. Print tags, possible values when OptionHandlerException is caught.
  2483. * src/option_processing.cc
  2484. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2485. Changed the message for FatalException.
  2486. * src/OptionParser.cc
  2487. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Documented --bt-external-ip option in man page. Updated man pages
  2489. for --proxy-method option.
  2490. * doc/aria2c.1.txt
  2491. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Use GET method for FTP via HTTP proxy.
  2493. * src/FtpInitiateConnectionCommand.cc
  2494. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Changed the default value of --proxy-method option from 'tunnel'
  2496. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2497. option.
  2498. * src/AbstractCommand.cc
  2499. * src/AbstractCommand.h
  2500. * src/FtpInitiateConnectionCommand.cc
  2501. * src/HttpDownloadCommand.cc
  2502. * src/HttpInitiateConnectionCommand.cc
  2503. * src/HttpInitiateConnectionCommand.h
  2504. * src/OptionHandlerFactory.cc
  2505. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Initialized _logger
  2507. * src/SelectEventPoll.cc
  2508. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2509. Defined a copy constructor for the same type.
  2510. * src/SharedHandle.h
  2511. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Added OptionParser::parseArg() which internally uses getopt_long
  2513. to parse command-line options. All command-line options are now
  2514. configured by OptionHandler. No manual editing of struct option*
  2515. is required any more.
  2516. * src/NameMatchOptionHandler.h
  2517. * src/OptionHandler.h
  2518. * src/OptionHandlerFactory.cc
  2519. * src/OptionHandlerImpl.h
  2520. * src/OptionParser.cc
  2521. * src/OptionParser.h
  2522. * src/array_fun.h
  2523. * src/main.cc
  2524. * src/option_processing.cc
  2525. * test/OptionHandlerTest.cc
  2526. * test/OptionParserTest.cc
  2527. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Fixed configure error with --disable-epoll
  2529. * configure.ac
  2530. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2531. Fixed compile error when HAVE_EPOLL is not defined.
  2532. Fixed linker error on bigendian systems.
  2533. * src/SocketCore.cc
  2534. * src/SocketCore.h
  2535. * test/DefaultBtProgressInfoFileTest.cc
  2536. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2537. Added --bt-external-ip option. You can specify the external IP
  2538. address to report to a BitTorrent tracker. Although this function
  2539. is named 'external', it can accept any kind of IP addresses.
  2540. * src/DefaultBtAnnounce.cc
  2541. * src/OptionHandlerFactory.cc
  2542. * src/option_processing.cc
  2543. * src/prefs.cc
  2544. * src/prefs.h
  2545. * src/usage_text.h
  2546. * test/DefaultBtAnnounceTest.cc
  2547. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2548. Extracted the algorithm to find the longest incremental sequence
  2549. as max_sequence template.
  2550. * src/LongestSequencePieceSelector.cc
  2551. * src/a2algo.h
  2552. * test/Makefile.am
  2553. * test/a2algoTest.cc
  2554. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  2556. * src/usage_text.h
  2557. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2558. Updated doc for --uri-selector, --http-server-listen-port and
  2559. --enable-http-server option. Documented --event-poll option.
  2560. * doc/aria2c.1.txt
  2561. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2562. Updated doc for --enable-http-server.
  2563. * src/usage_text.h
  2564. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Documented --http-server-listen-port and --enable-http-server in
  2566. man page.
  2567. * doc/aria2c.1.txt
  2568. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2569. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  2570. translations. Thanks to all translators.
  2571. * po/es.po
  2572. * po/id.po
  2573. * po/it.po
  2574. * po/ru.po
  2575. * po/uk.po
  2576. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2577. Bump up version number to 1.2.0
  2578. * configure.ac
  2579. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2580. BtContext::getAnnounceTiers() now returns const reference.
  2581. * src/BtContext.h
  2582. * src/DefaultBtContext.cc
  2583. * src/DefaultBtContext.h
  2584. * test/MockBtContext.h
  2585. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2586. Change the number of retries for tracker request based on the
  2587. number of available tracker in a torrent file.
  2588. * src/TrackerWatcherCommand.cc
  2589. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2590. Added _maxTries property to RequestGroup and assign the option
  2591. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  2592. RequestGroup::getMaxTries() instead of
  2593. Option::getAsInt(PREF_MAX_TRIES).
  2594. * src/AbstractCommand.cc
  2595. * src/RequestGroup.cc
  2596. * src/RequestGroup.h
  2597. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2598. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  2599. Mandriva. I modified the patch: make RequestGroup have the
  2600. timeout value and AdaptiveURISelector directly modifies that
  2601. value.
  2602. * src/AbstractCommand.cc
  2603. * src/AdaptiveURISelector.cc
  2604. * src/AdaptiveURISelector.h
  2605. * src/FtpNegotiationCommand.cc
  2606. * src/RequestGroup.cc
  2607. * src/RequestGroup.h
  2608. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2609. Fixed compiler warning
  2610. * test/IteratableChecksumValidatorTest.cc
  2611. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  2613. integrated downloads. This PieceSelector subclass finds the
  2614. longest continuous sequence in the available missing pieces and
  2615. selects the last index of such sequence. This makes HTTP/FTP
  2616. connections less interrupted by the pieces obtained by BitTorrent
  2617. peers.
  2618. * src/DefaultPieceStorage.cc
  2619. * src/DefaultPieceStorage.h
  2620. * src/LongestSequencePieceSelector.cc
  2621. * src/LongestSequencePieceSelector.h
  2622. * src/Makefile.am
  2623. * src/PieceSelector.h
  2624. * src/RarestPieceSelector.h
  2625. * src/RequestGroup.cc
  2626. * test/BtDependencyTest.cc
  2627. * test/DefaultPieceStorageTest.cc
  2628. * test/IteratableChecksumValidatorTest.cc
  2629. * test/LongestSequencePieceSelectorTest.cc
  2630. * test/Makefile.am
  2631. * test/SegmentManTest.cc
  2632. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. Fixed the bug that the average speed is wrong in
  2634. http/ftp/BitTorrent integrated download. Only the download bytes
  2635. in BitTorrent were considered.
  2636. * src/RequestGroup.cc
  2637. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2638. Choose port for BitTorrent/DHT randomly from the specified range.
  2639. * src/DHTConnectionImpl.cc
  2640. * src/PeerListenCommand.cc
  2641. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2642. Send HTTP Authorization header only if it is requested by the
  2643. server(response 401). There are some exceptions. The authorization
  2644. header for proxy is always sent if it is available without request
  2645. by the server. If username/password is specified in the URI, it
  2646. is immediately sent to the server without request by the server.
  2647. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  2648. SharedHandle<AuthConfig>().
  2649. NetrcAuthResolver::resolveAuthConfig() returns
  2650. SharedHandle<AuthConfig>() if no AuthConfig is available.
  2651. * src/AbstractAuthResolver.cc
  2652. * src/AbstractProxyRequestCommand.cc
  2653. * src/AuthConfigFactory.cc
  2654. * src/AuthConfigFactory.h
  2655. * src/HttpConnection.cc
  2656. * src/HttpRequest.cc
  2657. * src/HttpRequest.h
  2658. * src/HttpResponse.cc
  2659. * src/HttpResponseCommand.cc
  2660. * src/HttpSkipResponseCommand.cc
  2661. * test/AuthConfigFactoryTest.cc
  2662. * test/HttpRequestTest.cc
  2663. * test/HttpResponseTest.cc
  2664. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Remove leading "--" from help keyword and a substring after "="
  2666. from help keyword, so that one can query options by '-h--max-' or
  2667. '-hmax-peers=10'.
  2668. * src/option_processing.cc
  2669. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2670. Rewritten PStringVisitor and its implementation.
  2671. * src/PStringBuildVisitor.cc
  2672. * src/PStringBuildVisitor.h
  2673. * src/PStringDatum.h
  2674. * src/PStringNumLoop.h
  2675. * src/PStringSegment.cc
  2676. * src/PStringSegment.h
  2677. * src/PStringSelect.h
  2678. * src/PStringVisitor.h
  2679. * src/download_helper.cc
  2680. * test/PStringBuildVisitorTest.cc
  2681. * test/ParameterizedStringParserTest.cc
  2682. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2683. Persist connection between the built-in HTTP server and a client
  2684. if a client supports keep-alive. Fixed the bug that aria2 exits
  2685. when the HTTP server receives EOF from a client.
  2686. * src/HttpServer.cc
  2687. * src/HttpServer.h
  2688. * src/HttpServerCommand.cc
  2689. * src/HttpServerCommand.h
  2690. * src/HttpServerResponseCommand.cc
  2691. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Added experimental built-in HTTP server. Currently, when a client
  2693. accesses to the server, it responds with the current download
  2694. progress. By default, it is disabled. To enable the server, give
  2695. --enable-http-server option. To change the default port number
  2696. for the server to listen to, use --http-server-listen-port option.
  2697. The response HTML is very simple and refreshes it self each 1
  2698. second. Because of this refresh, you see flicker in normal web
  2699. browser such as Firefox. I recommend to use console-based browser
  2700. such as elinks, w3m. To connect to the server, run 'elinks
  2701. http://localhost:6800/' while running aria2. Please replace port
  2702. number '6800'(which is default) with your preference.
  2703. * src/DownloadEngineFactory.cc
  2704. * src/HttpHeader.cc
  2705. * src/HttpHeader.h
  2706. * src/HttpHeaderProcessor.cc
  2707. * src/HttpHeaderProcessor.h
  2708. * src/HttpListenCommand.cc
  2709. * src/HttpListenCommand.h
  2710. * src/HttpServer.cc
  2711. * src/HttpServer.h
  2712. * src/HttpServerCommand.cc
  2713. * src/HttpServerCommand.h
  2714. * src/HttpServerResponseCommand.cc
  2715. * src/HttpServerResponseCommand.h
  2716. * src/Makefile.am
  2717. * src/OptionHandlerFactory.cc
  2718. * src/Util.cc
  2719. * src/Util.h
  2720. * src/help_tags.h
  2721. * src/option_processing.cc
  2722. * src/prefs.cc
  2723. * src/prefs.h
  2724. * src/usage_text.h
  2725. * test/HttpHeaderProcessorTest.cc
  2726. * test/UtilTest.cc
  2727. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Removed.
  2729. * src/CheckIntegrityMan.cc
  2730. * src/FileAllocationMan.cc
  2731. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Made (piece) hash check sequential for each RequestGroup because
  2733. simultaneous hash check is slower than sequential execution.
  2734. * src/CheckIntegrityCommand.cc
  2735. * src/CheckIntegrityDispatcherCommand.cc
  2736. * src/CheckIntegrityDispatcherCommand.h
  2737. * src/CheckIntegrityMan.h
  2738. * src/ConsoleStatCalc.cc
  2739. * src/DownloadCommand.cc
  2740. * src/DownloadEngine.cc
  2741. * src/DownloadEngine.h
  2742. * src/DownloadEngineFactory.cc
  2743. * src/Makefile.am
  2744. * src/Makefile.in
  2745. * src/RequestGroup.cc
  2746. * src/StatCalc.h
  2747. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  2749. SequentialDispatcherCommand.
  2750. * src/FileAllocationDispatcherCommand.cc
  2751. * src/SequentialDispatcherCommand.h
  2752. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2753. Rewritten FileAllocationDispatcherCommand using brand new
  2754. SequentialDispatcherCommand.
  2755. * src/DownloadEngineFactory.cc
  2756. * src/FileAllocationCommand.cc
  2757. * src/FileAllocationDispatcherCommand.cc
  2758. * src/FileAllocationDispatcherCommand.h
  2759. * src/Makefile.am
  2760. * src/SequentialDispatcherCommand.h
  2761. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2762. Replaced FileAllocationMan with
  2763. SequentialPicker<FileAllocationEntry>.
  2764. * src/BtCheckIntegrityEntry.cc
  2765. * src/ConsoleStatCalc.cc
  2766. * src/DownloadEngine.cc
  2767. * src/DownloadEngine.h
  2768. * src/DownloadEngineFactory.cc
  2769. * src/FileAllocationCommand.cc
  2770. * src/FileAllocationDispatcherCommand.cc
  2771. * src/FileAllocationMan.h
  2772. * src/Makefile.am
  2773. * src/SequentialPicker.h
  2774. * src/StatCalc.h
  2775. * src/StreamCheckIntegrityEntry.cc
  2776. * test/Makefile.am
  2777. * test/SequentialPickerTest.cc
  2778. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Added doc for adaptive URI selector.
  2780. * doc/aria2c.1.txt
  2781. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2782. Added doc for adaptive URI selector.
  2783. * src/usage_text.h
  2784. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2785. Added doc for --bt-max-peers option.
  2786. * doc/aria2c.1.txt
  2787. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2788. Added doc for --bt-hash-check-seed option.
  2789. * doc/aria2c.1.txt
  2790. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Documented exit codes.
  2792. * doc/aria2c.1.txt
  2793. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Added --bt-max-peers option to specify the maximum number of peers
  2795. per torrent. 0 means unlimited number of peers.
  2796. * src/ActivePeerConnectionCommand.cc
  2797. * src/BtRuntime.h
  2798. * src/DefaultPeerStorage.cc
  2799. * src/DefaultPeerStorage.h
  2800. * src/OptionHandlerFactory.cc
  2801. * src/RequestGroup.cc
  2802. * src/option_processing.cc
  2803. * src/prefs.cc
  2804. * src/prefs.h
  2805. * src/usage_text.h
  2806. * test/DefaultPeerStorageTest.cc
  2807. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2808. Added --bt-hash-check-seed option. If true is given to this
  2809. option, after hash check using --check-integrity option and file
  2810. is complete, continue to seed file. If you want to check file and
  2811. download it only when it is damaged or incomplete, set this option
  2812. to false. This option has effect only on BitTorrent download.
  2813. The default value is true(This is the same behavior with the
  2814. previous release).
  2815. * src/BtCheckIntegrityEntry.cc
  2816. * src/OptionHandlerFactory.cc
  2817. * src/option_processing.cc
  2818. * src/prefs.cc
  2819. * src/prefs.h
  2820. * src/usage_text.h
  2821. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Updated copyright year.
  2823. * src/version_usage.cc
  2824. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Rewritten the usage text for --bt-request-peer-speed-limit option.
  2826. * doc/aria2c.1.txt
  2827. * src/usage_text.h
  2828. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2829. Made the max value of split option unlimited.
  2830. * doc/aria2c.1.txt
  2831. * src/OptionHandlerFactory.cc
  2832. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2833. Fixed compile warning/error.
  2834. * src/DownloadResult.h
  2835. * src/HttpDownloadCommand.cc
  2836. * src/ServerStat.cc
  2837. * test/RequestGroupTest.cc
  2838. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Added --event-poll option to select the method for polling events.
  2840. The available methods are "select" and "epoll". "epoll" is
  2841. available on Linux only. The earlier release has the compile
  2842. option to choose from these methods.
  2843. * configure.ac
  2844. * src/RequestGroupMan.cc
  2845. * src/OptionHandlerFactory.cc
  2846. * src/EpollEventPoll.h
  2847. * src/StreamFileAllocationEntry.cc
  2848. * src/a2io.h
  2849. * src/SelectEventPoll.h
  2850. * src/option_processing.cc
  2851. * src/prefs.h
  2852. * src/EpollEventPoll.cc
  2853. * src/EventPoll.h
  2854. * src/SocketCore.h
  2855. * src/Makefile.am
  2856. * src/main.cc
  2857. * src/DownloadEngine.h
  2858. * src/SelectEventPoll.cc
  2859. * src/DownloadEngine.cc
  2860. * src/SocketCore.cc
  2861. * src/DownloadEngineFactory.cc
  2862. * src/Makefile.in
  2863. * src/prefs.cc
  2864. * src/usage_text.h
  2865. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2866. Included RecoverableException.h from main.cc
  2867. * src/main.cc
  2868. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2869. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2870. now returns last error encountered in the HTTP/FTP downloads as a
  2871. exit status value. If all downloads finished successfully, aria2
  2872. returns 0. The error code is defined in src/DownloadResult.h.
  2873. The error occurred in the download currently in progress is not
  2874. reported as a last error. If no error has encountered but there
  2875. are in progress or waiting downloads, aria2 returns 7.
  2876. * src/AbstractCommand.cc
  2877. * src/DlAbortEx.h
  2878. * src/DlRetryEx.h
  2879. * src/DownloadCommand.cc
  2880. * src/DownloadFailureException.h
  2881. * src/DownloadResult.h
  2882. * src/FtpNegotiationCommand.cc
  2883. * src/HttpSkipResponseCommand.cc
  2884. * src/Makefile.am
  2885. * src/MultiUrlRequestInfo.cc
  2886. * src/MultiUrlRequestInfo.h
  2887. * src/RecoverableException.h
  2888. * src/RequestGroup.cc
  2889. * src/RequestGroup.h
  2890. * src/RequestGroupMan.cc
  2891. * src/RequestGroupMan.h
  2892. * src/URIResult.cc
  2893. * src/URIResult.h
  2894. * src/main.cc
  2895. * src/option_processing.cc
  2896. * test/RequestGroupTest.cc
  2897. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2899. patch adds AdaptiveURISelector, which selects one of the bests
  2900. mirrors for first and reserved connections. For supplementary
  2901. ones, it returns mirrors which has not been tested yet, and if
  2902. each of them already tested, returns mirrors which has to be
  2903. tested again. Otherwise, it doesn't return anymore mirrors.
  2904. * src/AdaptiveURISelector.cc
  2905. * src/AdaptiveURISelector.h
  2906. * src/FtpNegotiationCommand.cc
  2907. * src/HttpResponseCommand.cc
  2908. * src/Makefile.am
  2909. * src/Makefile.in
  2910. * src/OptionHandlerFactory.cc
  2911. * src/RequestGroup.cc
  2912. * src/RequestGroup.h
  2913. * src/RequestGroupMan.cc
  2914. * src/ServerStat.cc
  2915. * src/ServerStat.h
  2916. * src/ServerStatMan.cc
  2917. * src/SpeedCalc.cc
  2918. * src/URISelector.h
  2919. * src/prefs.cc
  2920. * src/prefs.h
  2921. * test/RequestGroupManTest.cc
  2922. * test/ServerStatManTest.cc
  2923. * test/ServerStatTest.cc
  2924. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2925. Fixed unit test error.
  2926. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2927. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. * Release 1.1.2
  2929. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2930. Updated Russian translation. Thanks to the translators.
  2931. * po/ru.po
  2932. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Added the description of --use-head option to man page.
  2934. * doc/aria2c.1.txt
  2935. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Bump up version number to 1.1.2
  2937. * configure.ac
  2938. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Added --use-head option to toggle whether HEAD method should be
  2940. used in the first HTTP request. By default aria2 uses HEAD method
  2941. as the first request. When the server doesn't recognize HEAD, then
  2942. give aria2 --use-head=false to force aria2 to use GET method
  2943. instead.
  2944. * src/OptionHandlerFactory.cc
  2945. * src/RequestGroupMan.cc
  2946. * src/option_processing.cc
  2947. * src/prefs.cc
  2948. * src/prefs.h
  2949. * src/usage_text.h
  2950. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2951. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2952. message is received before CHOKE message. The old implementation
  2953. doen't clear the use-bit of the piece when recieved REJECT
  2954. message.
  2955. * src/DefaultBtMessageDispatcher.cc
  2956. * test/DefaultBtMessageDispatcherTest.cc
  2957. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2958. * Release 1.1.1
  2959. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2960. Bump up version number to 1.1.1.
  2961. * configure.ac
  2962. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2963. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2964. is printed repeatedly.
  2965. * src/ConsoleStatCalc.cc
  2966. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. * Release 1.1.0
  2968. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2969. Added ifdef clause for conditional compilation.
  2970. * src/main.cc
  2971. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2972. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2973. translations. Thanks to all translators.
  2974. * po/ja.po
  2975. * po/ru.po
  2976. * po/uk.po
  2977. * po/zh_CN.po
  2978. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2979. Added the preceding ">>> " before the message "Printing the
  2980. contents of file..." to make the output more readable.
  2981. * src/main.cc
  2982. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2983. Added try-catch block in the loop in showFiles() to continue the
  2984. operation even if the exception occurred in one file.
  2985. * src/main.cc (showFiles)
  2986. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2987. Made messages in showFiles() translatable.
  2988. * po/aria2.pot
  2989. * src/main.cc
  2990. * src/message.h
  2991. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Print the contents of Torrent/Metalink files are printed without
  2993. -T/-M options.
  2994. * src/main.cc
  2995. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Escaped '--' with '\--'
  2997. * README
  2998. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2999. Updated "How to build" section in README. Mentioned about
  3000. --with-ca-bundle compile option.
  3001. * README
  3002. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3003. Bump up version number to 1.1.0.
  3004. * configure.ac
  3005. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3006. Added a note for --dht-listen-port option.
  3007. * doc/aria2c.1.txt
  3008. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3009. Update doc for --realtime-chunk-checksum option.
  3010. * doc/aria2c.1.txt
  3011. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3012. Update doc for --realtime-chunk-checksum option.
  3013. * src/usage_text.h
  3014. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Updated French, Japanese, Russian and Ukrainian translations.
  3016. Thanks to all translators.
  3017. * po/fr.po
  3018. * po/ja.po
  3019. * po/ru.po
  3020. * po/uk.po
  3021. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3022. Renamed aria2c.pot to aria2.pot
  3023. * po/aria2.pot
  3024. * po/aria2c.pot: Removed.
  3025. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3026. Removed MetaEntry.h
  3027. * src/Makefile.am
  3028. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3029. Rename file by appending digits if a local file exists and its
  3030. file size is larger than that of remote file with --continue
  3031. option. The old implementation just throws exception in such case.
  3032. * src/RequestGroup.cc
  3033. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3034. Fixed the bug that download progress summary is not printed in the
  3035. interval specified by the option.
  3036. * src/ConsoleStatCalc.cc
  3037. * src/ConsoleStatCalc.h
  3038. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3039. Fixed compiler warning
  3040. * src/Cookie.cc
  3041. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3042. Fixed the cookie implementation based on RFC2965.
  3043. Now if a value in domain field is not started with dot, then
  3044. prepend dot. That means a cookie with domain=sf.net is sent to
  3045. wiki.sf.net.
  3046. * src/Cookie.cc
  3047. * test/CookieParserTest.cc
  3048. * test/CookieStorageTest.cc
  3049. * test/CookieTest.cc
  3050. * test/NsCookieParserTest.cc
  3051. * test/Sqlite3MozCookieParserTest.cc
  3052. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3053. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3054. is enabled and the server doesn't support keep-alive.
  3055. * src/AbstractCommand.cc
  3056. * src/DownloadCommand.cc
  3057. * src/HttpDownloadCommand.cc
  3058. * src/HttpDownloadCommand.h
  3059. * src/HttpResponseCommand.cc
  3060. * src/Request.cc
  3061. * src/Request.h
  3062. * test/RequestTest.cc
  3063. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3064. Removed Dictionary/List/Data and its related classes.
  3065. * src/BencodeVisitor.cc: Removed.
  3066. * src/BencodeVisitor.h: Removed.
  3067. * src/Data.cc: Removed.
  3068. * src/Data.h: Removed.
  3069. * src/Dictionary.cc: Removed.
  3070. * src/Dictionary.h: Removed.
  3071. * src/List.cc: Removed.
  3072. * src/List.h: Removed.
  3073. * src/Makefile.am
  3074. * src/MetaEntry.h: Removed.
  3075. * src/MetaEntryVisitor.h: Removed.
  3076. * src/MetaFileUtil.cc: Removed.
  3077. * src/MetaFileUtil.h: Removed.
  3078. * test/BencodeVisitorTest.cc: Removed.
  3079. * test/DataTest.cc: Removed.
  3080. * test/DictionaryTest.cc: Removed.
  3081. * test/ListTest.cc: Removed.
  3082. * test/Makefile.am
  3083. * test/MetaFileUtilTest.cc: Removed.
  3084. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Removed include of MetaEntry.h
  3086. * test/DHTMessageTrackerEntryTest.cc
  3087. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3088. Use BDE instead of Dictionary/List/Data.
  3089. * src/AnnounceList.cc
  3090. * src/AnnounceList.h
  3091. * test/AnnounceListTest.cc
  3092. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3093. Use BDE instead of Dictionary/List/Data.
  3094. * src/DHTAbstractMessage.cc
  3095. * src/DHTAbstractMessage.h
  3096. * src/DHTAnnouncePeerMessage.cc
  3097. * src/DHTAnnouncePeerMessage.h
  3098. * src/DHTAnnouncePeerReplyMessage.cc
  3099. * src/DHTAnnouncePeerReplyMessage.h
  3100. * src/DHTFindNodeMessage.cc
  3101. * src/DHTFindNodeMessage.h
  3102. * src/DHTFindNodeReplyMessage.cc
  3103. * src/DHTFindNodeReplyMessage.h
  3104. * src/DHTGetPeersMessage.cc
  3105. * src/DHTGetPeersMessage.h
  3106. * src/DHTGetPeersReplyMessage.cc
  3107. * src/DHTGetPeersReplyMessage.h
  3108. * src/DHTMessageFactory.h
  3109. * src/DHTMessageFactoryImpl.cc
  3110. * src/DHTMessageFactoryImpl.h
  3111. * src/DHTMessageReceiver.cc
  3112. * src/DHTMessageTracker.cc
  3113. * src/DHTMessageTracker.h
  3114. * src/DHTPingMessage.cc
  3115. * src/DHTPingMessage.h
  3116. * src/DHTPingReplyMessage.cc
  3117. * src/DHTPingReplyMessage.h
  3118. * src/DHTQueryMessage.cc
  3119. * src/DHTQueryMessage.h
  3120. * src/DHTResponseMessage.cc
  3121. * src/DHTResponseMessage.h
  3122. * test/DHTAnnouncePeerMessageTest.cc
  3123. * test/DHTAnnouncePeerReplyMessageTest.cc
  3124. * test/DHTFindNodeMessageTest.cc
  3125. * test/DHTFindNodeReplyMessageTest.cc
  3126. * test/DHTGetPeersMessageTest.cc
  3127. * test/DHTGetPeersReplyMessageTest.cc
  3128. * test/DHTMessageFactoryImplTest.cc
  3129. * test/DHTMessageTrackerTest.cc
  3130. * test/DHTPingMessageTest.cc
  3131. * test/DHTPingReplyMessageTest.cc
  3132. * test/MockDHTMessageFactory.h
  3133. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3134. Added tests the case where length < 0 is specified.
  3135. * test/BencodeTest.cc
  3136. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3137. Fixed memory leak in decoderawstring()
  3138. * src/bencode.cc
  3139. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3140. Added missing #ifdef guard. Added uc() function for String and
  3141. removeKey() for Dict.
  3142. * src/bencode.cc
  3143. * src/bencode.h
  3144. * test/BencodeTest.cc
  3145. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3146. Use BDE instead of Dictionary/List/Data.
  3147. * src/HandshakeExtensionMessage.cc
  3148. * src/HandshakeExtensionMessage.h
  3149. * test/HandshakeExtensionMessageTest.cc
  3150. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3151. Added --max-overall-upload-limit option. This option limits the
  3152. overall upload speed. Stated in help message that the existing
  3153. --max-upload-limit option limits the upload speed per each
  3154. torrent. Man page is also updated.
  3155. * doc/aria2c.1.txt
  3156. * src/DefaultBtMessageDispatcher.cc
  3157. * src/DefaultBtMessageDispatcher.h
  3158. * src/OptionHandlerFactory.cc
  3159. * src/PeerInteractionCommand.cc
  3160. * src/option_processing.cc
  3161. * src/prefs.cc
  3162. * src/prefs.h
  3163. * src/usage_text.h
  3164. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Use BDE instead of Dictionary/List/Data classes.
  3166. * src/CompactPeerListProcessor.cc
  3167. * src/CompactPeerListProcessor.h
  3168. * src/DefaultBtAnnounce.cc
  3169. * src/DefaultBtContext.cc
  3170. * src/DefaultBtContext.h
  3171. * src/DefaultPeerListProcessor.cc
  3172. * src/DefaultPeerListProcessor.h
  3173. * src/DelegatingPeerListProcessor.cc
  3174. * src/DelegatingPeerListProcessor.h
  3175. * src/PeerListProcessor.h
  3176. * src/UTPexExtensionMessage.cc
  3177. * src/Util.h
  3178. * src/message.h
  3179. * test/DefaultBtContextTest.cc
  3180. * test/DefaultPeerListProcessorTest.cc
  3181. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3182. Added bencode helper functions and BDE class.
  3183. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3184. * src/Makefile.am
  3185. * src/bencode.cc
  3186. * src/bencode.h
  3187. * test/BencodeTest.cc
  3188. * test/Makefile.am
  3189. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3190. Fixed the bug that bad URI is sent to the tracker when the announe
  3191. URI in torrent file includes query.
  3192. * src/DefaultBtAnnounce.cc
  3193. * test/DefaultBtAnnounceTest.cc
  3194. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Added Option::blank().
  3196. Use !Option::blank(name) instead of Option::defined(name) for
  3197. the options that take filename.
  3198. * src/MultiUrlRequestInfo.cc
  3199. * src/Option.cc
  3200. * src/Option.h
  3201. * src/main.cc
  3202. * src/option_processing.cc
  3203. * test/OptionTest.cc
  3204. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3205. Documented the default value of --check-certificate option in man
  3206. page.
  3207. * doc/aria2c.1.txt
  3208. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3209. Enabled --check-certificate by default. Added compile
  3210. time(configure) option --with-ca-bundle to specify CA bundle.
  3211. Warn if --check-certificate=true and --ca-certificate is not
  3212. specified or loading CA certificate is failed.
  3213. * configure.ac
  3214. * src/MultiUrlRequestInfo.cc
  3215. * src/OptionHandlerFactory.cc
  3216. * src/message.h
  3217. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Mentioned https tag in help option.
  3219. * doc/aria2c.1.txt
  3220. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Added `https' tag to help option category. Added https tag to
  3222. --ca-certificate, --certificate, --check-certificate and
  3223. --private-key option.
  3224. * src/OptionHandlerFactory.cc
  3225. * src/help_tags.h
  3226. * src/option_processing.cc
  3227. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3228. Changed the package name from `aria2c' to `aria2' in order to fix
  3229. the packaging issue in Debian and Fedora. The name of the
  3230. executable is not changed.
  3231. * configure.ac
  3232. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Fixed typos
  3234. * src/usage_text.h
  3235. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Fixed typos and updated doc.
  3237. * README
  3238. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3239. Fixed typos
  3240. * doc/aria2c.1.txt
  3241. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3242. Fixed typos
  3243. * src/usage_text.h
  3244. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Print a message when no files to download.
  3246. * src/download_helper.cc
  3247. * src/main.cc
  3248. * src/message.h
  3249. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3250. RFC3986 complied Percent-Encoding(urlencode).
  3251. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3252. ones.
  3253. * src/Request.cc
  3254. * src/Util.cc
  3255. * src/Util.h
  3256. * test/BtHandshakeMessageTest.cc
  3257. * test/DefaultBtAnnounceTest.cc
  3258. * test/DefaultBtContextTest.cc
  3259. * test/RequestTest.cc
  3260. * test/UtilTest.cc
  3261. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3262. Fixed the bug that prevents aria2 from downloading 0-length files
  3263. via HTTP/FTP.
  3264. * src/DefaultBtContext.cc
  3265. * src/DefaultBtContext.h
  3266. * src/DownloadContext.h
  3267. * src/FtpNegotiationCommand.cc
  3268. * src/HttpResponseCommand.cc
  3269. * src/HttpResponseCommand.h
  3270. * src/RequestGroup.cc
  3271. * src/SingleFileDownloadContext.cc
  3272. * src/SingleFileDownloadContext.h
  3273. * test/BtPostDownloadHandlerTest.cc
  3274. * test/MetalinkPostDownloadHandlerTest.cc
  3275. * test/MockBtContext.h
  3276. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3277. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3278. * src/option_processing.cc
  3279. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. Applied aria2-1.0.1-mingw.patch.
  3281. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3282. mingw.
  3283. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3284. * src/SocketCore.cc
  3285. * src/a2netcompat.h
  3286. * test/SocketCoreTest.cc
  3287. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3288. * Release 1.0.1
  3289. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3290. Updated Ukrainian and Norwegian Nynorsk translations.
  3291. Thanks to all translators.
  3292. * po/nn.po
  3293. * po/uk.po
  3294. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3295. Don't show download result when -S option is used.
  3296. * src/main.cc
  3297. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3298. Bump up version number to 1.0.1
  3299. * configure.ac
  3300. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3301. Closed files after the test cases in MultiDiskWriterTest::
  3302. testResetDiskWriterEntries(). This will fix the unit test error
  3303. in mingw32 build.
  3304. * test/MultiDiskWriterTest.cc
  3305. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3306. Use HEAD method to get file size from HTTP server for segmented
  3307. downloading.
  3308. The request to the BitTorrent Tracker always uses GET method because
  3309. the response of the tracker is small and it doesn't need segmented
  3310. download.
  3311. * src/FtpNegotiationCommand.cc
  3312. * src/HttpRequest.cc
  3313. * src/HttpResponseCommand.cc
  3314. * src/HttpSkipResponseCommand.cc
  3315. * src/RequestGroup.cc
  3316. * src/RequestGroup.h
  3317. * src/TrackerWatcherCommand.cc
  3318. * test/HttpRequestTest.cc
  3319. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3320. Fixed the bug that causes floating exception when -T option is used and
  3321. no URIs are given.
  3322. * src/download_helper.cc
  3323. * test/DownloadHelperTest.cc
  3324. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3325. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3326. errors in MinGW:
  3327. Closed file after saving server stats (RequestGroupMan.cc)
  3328. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3329. Ignored case & handled 2-digit years (strptime.c)
  3330. Added missing suseconds_t definition (a2time.h)
  3331. Fixed socket CLOSE() define (SocketCore.cc)
  3332. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3333. Changed utime() test values from x000 to x00000 as MinGW failed on
  3334. values less than timezone offset from Unix epoch
  3335. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3336. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3337. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3338. handle negative dates (CookieParserTest.cc)
  3339. * src/a2time.h
  3340. * src/FtpConnection.cc
  3341. * src/RequestGroupMan.cc
  3342. * src/SocketCore.cc
  3343. * src/strptime.c
  3344. * test/CookieParserTest.cc
  3345. * test/CopyDiskAdaptorTest.cc
  3346. * test/FileTest.cc
  3347. * test/FtpConnectionTest.cc
  3348. * test/MultiDiskAdaptorTest.cc
  3349. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3351. * doc/aria2c.1.txt
  3352. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3353. * Release 1.0.0
  3354. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3355. Added '~' to reserved characters.
  3356. * src/Util.cc
  3357. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3358. Do not urlencode Request::url in setUrl() because we want unmodified
  3359. URL using Request::getUrl()
  3360. * src/Request.cc
  3361. * src/Request.h
  3362. * test/RequestTest.cc
  3363. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3364. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3365. Thanks to all translators.
  3366. * po/bg.po
  3367. * po/fr.po
  3368. * po/ja.po
  3369. * po/ru.po
  3370. * po/uk.po
  3371. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Bump up version number to 1.0.0
  3373. * configure.ac
  3374. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. Added nosqlite3 build to build_test.sh.
  3376. Renamed noxml as expat.
  3377. * build_test.sh
  3378. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3379. Updated INPUT FILE section.
  3380. * doc/aria2c.1.txt
  3381. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3382. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3383. on big endian systems because test .aria2 files are made for little
  3384. endian systems.
  3385. * test/DefaultBtProgressInfoFileTest.cc
  3386. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3387. Dropped ares support.
  3388. * README
  3389. * configure.ac
  3390. * m4/libares.m4: Removed.
  3391. * src/AsyncNameResolver.cc
  3392. * src/Makefile.am
  3393. * test/Makefile.am
  3394. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3395. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3396. Removed const qualifier from DiskWriter::size().
  3397. * src/AbstractDiskWriter.cc
  3398. * src/AbstractDiskWriter.h
  3399. * src/ByteArrayDiskWriter.cc
  3400. * src/ByteArrayDiskWriter.h
  3401. * src/DiskWriter.h
  3402. * test/ByteArrayDiskWriterTest.cc
  3403. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3404. Fixed the bug that causes segmentation fault/bus error during executing
  3405. choking algorithm while seeding. This is caused by improper
  3406. implementation of compare function which returns inconsistent results
  3407. depending on the timing of last unchoke.
  3408. * src/BtSeederStateChoke.cc
  3409. * src/BtSeederStateChoke.h
  3410. * src/DefaultPeerStorage.cc
  3411. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3412. Removed TODO
  3413. * TODO
  3414. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Added a section that explains how to pass argument to options that
  3416. takes optional arguments with its short form.
  3417. * doc/aria2c.1.txt
  3418. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Added -u for the short form of --max-upload-limit option.
  3420. * doc/aria2c.1.txt
  3421. * src/option_processing.cc
  3422. * src/usage_text.h
  3423. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3424. Added -V for the short form of --check-integrity option.
  3425. Now the argument of --check-integrity option is optional:
  3426. if it is omitted, it is evaluated as true.
  3427. * doc/aria2c.1.txt
  3428. * src/option_processing.cc
  3429. * src/usage_text.h
  3430. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3431. Made the default value of --ftp-pasv option set to true and it can take
  3432. true/false values.
  3433. * src/OptionHandlerFactory.cc
  3434. * src/option_processing.cc
  3435. * src/usage_text.h
  3436. * doc/aria2c.1.txt
  3437. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3438. Given custom random number generator to std::random_shuffle.
  3439. * src/AnnounceList.cc
  3440. * src/BtLeecherStateChoke.cc
  3441. * src/BtSeederStateChoke.cc
  3442. * src/DefaultBtRequestFactory.cc
  3443. * src/MetalinkEntry.cc
  3444. * src/RarestPieceSelector.cc
  3445. * src/SimpleRandomizer.cc
  3446. * src/SimpleRandomizer.h
  3447. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3448. Now the default value of --enable-direct-io is true.
  3449. * src/OptionHandlerFactory.cc
  3450. * doc/aria2c.1.txt
  3451. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. Erase peer before executing onReturningPeer and onErasingPeer
  3453. because choking algorithm called from onReturningPeer doesn't
  3454. like erasing peer in the active peer list.
  3455. * src/DefaultPeerStorage.cc
  3456. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3457. Instead of creating special filename in createDownloadResult() if
  3458. inMemoryDownload() is true, now it is done in getFilePath().
  3459. * src/RequestGroup.cc
  3460. * test/RequestGroupTest.cc
  3461. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3462. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3463. processed in memory. This is the fix for previous comment out.
  3464. * src/MemoryBufferPreDownloadHandler.cc
  3465. * src/RequestGroup.cc
  3466. * src/RequestGroup.h
  3467. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3468. Commented out the code which sets virtual directory path "[MEMORY]"
  3469. propagate directory to store to following RequestGroup.
  3470. * src/MemoryBufferPreDownloadHandler.cc
  3471. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3472. Bump up version number to 1.0.0b
  3473. * configure.ac
  3474. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3475. Added input_uris.txt to EXTRA_DIST
  3476. * test/Makefile.am
  3477. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3478. Removed PeerObject.h from Makefile.am
  3479. * src/Makefile.am
  3480. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3481. Avoid slow seeding
  3482. * src/PeerInteractionCommand.cc
  3483. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3484. Updated usage for -i option.
  3485. * src/usage_text.h (TEXT_INPUT_FILE)
  3486. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3487. Added INPUT FILE section to man page.
  3488. Escaped fake URLs.
  3489. * doc/aria2c.1.txt
  3490. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Fixed wrong note position for -o option.
  3492. * doc/aria2c.1.txt
  3493. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Fixed compile error without SSL/XML library.
  3495. * src/DefaultBtProgressInfoFile.cc
  3496. * src/DefaultBtProgressInfoFile.h
  3497. * src/FileMetalinkParserState.cc
  3498. * src/RequestGroup.h
  3499. * src/SocketCore.cc
  3500. * src/SocketCore.h
  3501. * src/VerificationMetalinkParserState.cc
  3502. * src/download_helper.h
  3503. * src/main.cc
  3504. * test/DefaultBtProgressInfoFileTest.cc
  3505. * test/DownloadHelperTest.cc
  3506. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3507. Rewritten URI handling functions. They are now provided as a testable
  3508. functions.
  3509. * src/Makefile.am
  3510. * src/RequestGroup.cc
  3511. * src/RequestGroup.h
  3512. * src/download_helper.cc
  3513. * src/download_helper.h
  3514. * src/main.cc
  3515. * test/DownloadHelperTest.cc
  3516. * test/Makefile.am
  3517. * test/input_uris.txt
  3518. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3519. Quickly terminate commands when ctrl-c is pressed.
  3520. * src/DownloadEngine.cc
  3521. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Quickly terminate idle commands when download finished.
  3523. * src/AbstractCommand.cc
  3524. * src/DownloadCommand.cc
  3525. * src/DownloadEngine.cc
  3526. * src/DownloadEngine.h
  3527. * src/SleepCommand.cc
  3528. * src/SleepCommand.h
  3529. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3530. Added the ability to specify output filename and directory in input
  3531. file.
  3532. Additional parameters are added in the following line of URIs
  3533. with proceeding white space(s), 1 parameter in 1 line.
  3534. The parameter names are the same with the command-line option name
  3535. without proceeding "--". Not all the options are available here:
  3536. at the moment, 'dir' and 'out' options are avialable.
  3537. Please note that out option has no effect against Metalink or BitTorrent
  3538. downloads.
  3539. Example input file:
  3540. http://host/foo-1.1.tar.bz2
  3541. out=foo.tar.bz2
  3542. dir=/tmp/downloads
  3543. http://host/thundermonkey-2.0.tar.bz2
  3544. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  3545. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  3546. thundermonkey-2.0.tar.bz2 is saved as
  3547. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  3548. * src/BtPostDownloadHandler.cc
  3549. * src/Metalink2RequestGroup.cc
  3550. * src/Metalink2RequestGroup.h
  3551. * src/MetalinkPostDownloadHandler.cc
  3552. * src/UriListParser.cc
  3553. * src/UriListParser.h
  3554. * src/main.cc
  3555. * test/Metalink2RequestGroupTest.cc
  3556. * test/UriListParserTest.cc
  3557. * test/filelist1.txt
  3558. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3559. Fixed error when SSL library is not found.
  3560. * configure.ac
  3561. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3562. Cross referenced among -s, -C and -j options.
  3563. Updated usage of -C and -s options.
  3564. * src/usage_text.h
  3565. * doc/aria2c.1.txt
  3566. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Fixed bad cast in 32bit platforms.
  3568. * test/DefaultPieceStorageTest.cc
  3569. (DefaultPieceStorageTest::testGetCompletedLength)
  3570. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3571. Fixed unit test fails on 32bit platforms.
  3572. * test/CookieParserTest.cc
  3573. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. Show an average download speed in Download results.
  3575. * src/BtFileAllocationEntry.cc
  3576. * src/DefaultPieceStorage.cc
  3577. * src/DownloadContext.cc
  3578. * src/DownloadContext.h
  3579. * src/DownloadResult.h
  3580. * src/RequestGroup.cc
  3581. * src/RequestGroupMan.cc
  3582. * src/StreamFileAllocationEntry.cc
  3583. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Fixed the bug that metalink file is not processed if Content-Type
  3585. field has a paramter.
  3586. * src/HttpResponse.cc
  3587. * src/HttpResponse.h
  3588. * test/HttpResponseTest.cc
  3589. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3590. Removed unused code.
  3591. * src/DefaultBtAnnounce.cc
  3592. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3593. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  3594. the value larger than DefaultPieceStorage::getTotalLength() when
  3595. in flight pieces are involved.
  3596. * src/DefaultPieceStorage.cc
  3597. * test/DefaultPieceStorageTest.cc
  3598. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3599. Bump up version number to 1.0.0a.
  3600. * configure.ac
  3601. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Updated configure.ac
  3603. * configure.ac
  3604. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3605. Added usege for proxy.
  3606. * doc/aria2c.1.txt
  3607. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3608. Added usage for --ca-certificate, --certificate, --private-key and
  3609. --check-certificate options.
  3610. * doc/aria2c.1.txt
  3611. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3612. Updated man page
  3613. * doc/aria2c.1.txt
  3614. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3615. Added --no-proxy option. It receives comman separated hostname or
  3616. domains to which proxy should not be used.
  3617. aria2 honors the environment variable no_proxy to override no-proxy
  3618. value in configuration file. The user can override the environment
  3619. variable no_proxy with --no-proxy command-line option.
  3620. * src/AbstractCommand.cc
  3621. * src/OptionHandlerFactory.cc
  3622. * src/option_processing.cc
  3623. * src/prefs.cc
  3624. * src/prefs.h
  3625. * src/usage_text.h
  3626. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3627. Added the ability to verify peer in SSL/TLS using given CA certificates.
  3628. The CA certificates are specified in --ca-certificate option.
  3629. By default, the verification is disabled. Use --check-certificate
  3630. option to enable it.
  3631. * src/HttpRequestCommand.cc
  3632. * src/LibgnutlsTLSContext.cc
  3633. * src/LibgnutlsTLSContext.h
  3634. * src/LibsslTLSContext.cc
  3635. * src/LibsslTLSContext.h
  3636. * src/MultiUrlRequestInfo.cc
  3637. * src/OptionHandlerFactory.cc
  3638. * src/SocketCore.cc
  3639. * src/SocketCore.h
  3640. * src/a2functional.h
  3641. * src/message.h
  3642. * src/option_processing.cc
  3643. * src/prefs.cc
  3644. * src/prefs.h
  3645. * src/usage_text.h
  3646. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3647. Added client certificate authentication for SSL/TLS.
  3648. Currently a private key must be decrypted for use with aria2.
  3649. If a user accidentally gives encrypted file to aria2 then following
  3650. thing happens:
  3651. If encrypted private key is given to aria2, it behaves differently
  3652. depending on the ssl library it uses. If aria2 built with openssl then
  3653. openssl prompts the user for password. If aria2 build with gnutls then
  3654. aria2 exists with error at start up.
  3655. * src/DownloadEngineFactory.cc
  3656. * src/MultiUrlRequestInfo.cc
  3657. * src/OptionHandlerFactory.cc
  3658. * src/option_processing.cc
  3659. * src/prefs.cc
  3660. * src/prefs.h
  3661. * src/usage_text.h
  3662. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3663. Introduced TLSContext that holds TLS related data that can be shared
  3664. with multiple SSL connections.
  3665. * src/DownloadEngineFactory.cc
  3666. * src/LibgnutlsTLSContext.cc
  3667. * src/LibgnutlsTLSContext.h
  3668. * src/LibsslTLSContext.cc
  3669. * src/LibsslTLSContext.h
  3670. * src/Makefile.am
  3671. * src/SocketCore.cc
  3672. * src/SocketCore.h
  3673. * src/TLSContext.h
  3674. * src/message.h
  3675. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3676. Fixed the bug that the DiskWriter of the first FileEntry whose
  3677. `needsFileAllocation' property is false is not created
  3678. even if it shares a piece with next FileEntry which `requested' property
  3679. is true.
  3680. Fixed the bug that zero-length file is not created if pre file
  3681. allocation is not done.
  3682. * src/MultiDiskAdaptor.cc
  3683. * src/MultiDiskAdaptor.h
  3684. * test/MultiDiskAdaptorTest.cc
  3685. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3686. Added the ability to pool proxy connection.
  3687. The conneciton in FTP with proxy-method=GET is not pooled.
  3688. Proxy-Connection header will not be sent when sending CONNECT method.
  3689. * src/DownloadEngine.cc
  3690. * src/DownloadEngine.h
  3691. * src/FtpFinishDownloadCommand.cc
  3692. * src/FtpInitiateConnectionCommand.cc
  3693. * src/FtpNegotiationCommand.cc
  3694. * src/HttpDownloadCommand.cc
  3695. * src/HttpInitiateConnectionCommand.cc
  3696. * src/HttpRequest.cc
  3697. * src/HttpRequest.h
  3698. * src/HttpResponse.cc
  3699. * src/HttpSkipResponseCommand.cc
  3700. * test/HttpRequestTest.cc
  3701. * test/HttpResponseTest.cc
  3702. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3703. Handle date before epoch.
  3704. To create *bad* Time object, call Time::null().
  3705. * src/CookieParser.cc
  3706. * src/FtpConnection.cc
  3707. * src/FtpConnection.h
  3708. * src/FtpNegotiationCommand.cc
  3709. * src/RequestGroup.cc
  3710. * src/TimeA2.cc
  3711. * src/TimeA2.h
  3712. * test/CookieParserTest.cc
  3713. * test/FtpConnectionTest.cc
  3714. * test/TimeTest.cc
  3715. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3716. Added support for following envrionment variables: http_proxy,
  3717. https_proxy, ftp_proxy and all_proxy.
  3718. Each variable is equivalent to the aria2 option whose name is the
  3719. variable name with '_' replaced with '-'.
  3720. They overrides options specified in aria2.conf file.
  3721. The envrionment variables can be overrode using command-line option.
  3722. * src/option_processing.cc
  3723. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3724. Renamed --http-proxy-method as --proxy-method.
  3725. * src/AbstractCommand.cc
  3726. * src/FtpInitiateConnectionCommand.cc
  3727. * src/HttpInitiateConnectionCommand.cc
  3728. * src/OptionHandlerFactory.cc
  3729. * src/option_processing.cc
  3730. * src/prefs.cc
  3731. * src/prefs.h
  3732. * src/usage_text.h
  3733. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3734. Deprecated --http-proxy-user and --http-proxy-passwd options.
  3735. Added --https-proxy, --ftp-proxy and --all-proxy options.
  3736. Above 3 options and --http-proxy option can handle proxy in URL format
  3737. like: http://user:passwd@host:port.
  3738. If a proxy requires user/password, they must be specified in a URL.
  3739. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  3740. instead.
  3741. * src/AbstractCommand.cc
  3742. * src/AbstractCommand.h
  3743. * src/AbstractProxyRequestCommand.cc
  3744. * src/AbstractProxyRequestCommand.h
  3745. * src/AuthConfigFactory.cc
  3746. * src/AuthConfigFactory.h
  3747. * src/FtpFinishDownloadCommand.cc
  3748. * src/FtpInitiateConnectionCommand.cc
  3749. * src/FtpInitiateConnectionCommand.h
  3750. * src/FtpNegotiationCommand.cc
  3751. * src/FtpTunnelRequestCommand.cc
  3752. * src/FtpTunnelRequestCommand.h
  3753. * src/HttpDownloadCommand.cc
  3754. * src/HttpInitiateConnectionCommand.cc
  3755. * src/HttpInitiateConnectionCommand.h
  3756. * src/HttpProxyRequestCommand.cc
  3757. * src/HttpProxyRequestCommand.h
  3758. * src/HttpRequest.cc
  3759. * src/HttpRequest.h
  3760. * src/HttpRequestCommand.cc
  3761. * src/HttpRequestCommand.h
  3762. * src/HttpSkipResponseCommand.cc
  3763. * src/InitiateConnectionCommand.cc
  3764. * src/InitiateConnectionCommand.h
  3765. * src/OptionHandlerFactory.cc
  3766. * src/OptionHandlerImpl.h
  3767. * src/Request.cc
  3768. * src/option_processing.cc
  3769. * src/prefs.cc
  3770. * src/prefs.h
  3771. * src/usage_text.h
  3772. * test/AuthConfigFactoryTest.cc
  3773. * test/HttpRequestTest.cc
  3774. * test/OptionHandlerTest.cc
  3775. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. Execute choking algorithm when unchoked and interested peer is
  3777. disconected.
  3778. * src/DefaultPeerStorage.cc
  3779. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3780. Added testcase for BtNotInterestedMessage from unchoked peer.
  3781. * test/BtNotInterestedMessageTest.cc
  3782. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3783. Execute choking algorithm when BtInterestedMessage arrives from
  3784. unchoked peer.
  3785. * src/BtInterestedMessage.cc
  3786. * src/BtInterestedMessage.h
  3787. * src/DefaultBtMessageFactory.cc
  3788. * test/BtInterestedMessageTest.cc
  3789. * test/MockPeerStorage.h
  3790. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3791. AuthConfigFactory is now part of DownloadEngine.
  3792. * src/AbstractProxyRequestCommand.cc
  3793. * src/AuthConfigFactory.h
  3794. * src/DownloadEngine.cc
  3795. * src/DownloadEngine.h
  3796. * src/FtpConnection.cc
  3797. * src/FtpConnection.h
  3798. * src/FtpNegotiationCommand.cc
  3799. * src/HttpConnection.cc
  3800. * src/HttpRequest.cc
  3801. * src/HttpRequest.h
  3802. * src/HttpRequestCommand.cc
  3803. * src/HttpResponse.cc
  3804. * src/HttpResponseCommand.cc
  3805. * src/HttpSkipResponseCommand.cc
  3806. * src/MultiUrlRequestInfo.cc
  3807. * src/main.cc
  3808. * test/FtpConnectionTest.cc
  3809. * test/HttpRequestTest.cc
  3810. * test/HttpResponseTest.cc
  3811. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3812. Corrected catched exception type.
  3813. * src/ServerStatMan.cc
  3814. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3815. DNSCache is now part of DownloadEngine.
  3816. * src/DNSCache.h
  3817. * src/DownloadEngine.cc
  3818. * src/DownloadEngine.h
  3819. * src/InitiateConnectionCommand.cc
  3820. * src/MultiUrlRequestInfo.cc
  3821. * test/Makefile.am
  3822. * test/Makefile.in
  3823. * test/SimpleDNSCacheTest.cc
  3824. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  3826. DownloadEngine.
  3827. * src/ActivePeerConnectionCommand.cc
  3828. * src/BtSetup.cc
  3829. * src/CUIDCounter.h
  3830. * src/DHTSetup.cc
  3831. * src/DownloadCommand.cc
  3832. * src/DownloadEngine.cc
  3833. * src/DownloadEngine.h
  3834. * src/DownloadEngineFactory.cc
  3835. * src/FileAllocationDispatcherCommand.cc
  3836. * src/InitiatorMSEHandshakeCommand.cc
  3837. * src/PeerInitiateConnectionCommand.cc
  3838. * src/PeerInteractionCommand.cc
  3839. * src/PeerListenCommand.cc
  3840. * src/RequestGroup.cc
  3841. * src/StreamFileAllocationEntry.cc
  3842. * src/TrackerWatcherCommand.cc
  3843. * src/main.cc
  3844. * test/RequestGroupManTest.cc
  3845. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3846. Implemented commented code in BtSeederStateChoke
  3847. * src/BtSeederStateChoke.cc
  3848. * src/Peer.cc
  3849. * src/Peer.h
  3850. * src/PeerInteractionCommand.cc
  3851. * src/PeerSessionResource.cc
  3852. * src/PeerSessionResource.h
  3853. * test/MockBtMessageDispatcher.h
  3854. * test/PeerSessionResourceTest.cc
  3855. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3857. its object.
  3858. * src/AbstractBtMessage.cc
  3859. * src/ActivePeerConnectionCommand.cc
  3860. * src/ActivePeerConnectionCommand.h
  3861. * src/BtContextAwareCommand.cc
  3862. * src/BtContextAwareCommand.h
  3863. * src/BtExtendedMessage.cc
  3864. * src/BtExtendedMessage.h
  3865. * src/BtInterestedMessage.cc
  3866. * src/BtInterestedMessage.h
  3867. * src/BtNotInterestedMessage.cc
  3868. * src/BtNotInterestedMessage.h
  3869. * src/BtRegistry.cc
  3870. * src/BtRegistry.h
  3871. * src/BtSeederStateChoke.cc
  3872. * src/BtSetup.cc
  3873. * src/DHTGetPeersCommand.cc
  3874. * src/DHTGetPeersCommand.h
  3875. * src/DHTPeerAnnounceEntry.cc
  3876. * src/DHTPeerAnnounceEntry.h
  3877. * src/DHTPeerAnnounceStorage.cc
  3878. * src/DHTPeerAnnounceStorage.h
  3879. * src/DHTPeerLookupTask.cc
  3880. * src/DHTPeerLookupTask.h
  3881. * src/DHTSetup.cc
  3882. * src/DHTSetup.h
  3883. * src/DHTTaskFactory.h
  3884. * src/DHTTaskFactoryImpl.cc
  3885. * src/DHTTaskFactoryImpl.h
  3886. * src/DefaultBtAnnounce.cc
  3887. * src/DefaultBtInteractive.cc
  3888. * src/DefaultBtInteractive.h
  3889. * src/DefaultBtMessageDispatcher.cc
  3890. * src/DefaultBtMessageDispatcher.h
  3891. * src/DefaultBtMessageFactory.cc
  3892. * src/DefaultBtMessageFactory.h
  3893. * src/DefaultBtMessageReceiver.cc
  3894. * src/DefaultBtProgressInfoFile.cc
  3895. * src/DefaultBtProgressInfoFile.h
  3896. * src/DefaultBtRequestFactory.cc
  3897. * src/DefaultBtRequestFactory.h
  3898. * src/DefaultExtensionMessageFactory.cc
  3899. * src/DefaultExtensionMessageFactory.h
  3900. * src/DefaultPeerStorage.cc
  3901. * src/DefaultPeerStorage.h
  3902. * src/DownloadEngine.cc
  3903. * src/DownloadEngine.h
  3904. * src/InitiatorMSEHandshakeCommand.cc
  3905. * src/InitiatorMSEHandshakeCommand.h
  3906. * src/MSEHandshake.cc
  3907. * src/MSEHandshake.h
  3908. * src/Makefile.am
  3909. * src/Makefile.in
  3910. * src/PeerChokeCommand.cc
  3911. * src/PeerChokeCommand.h
  3912. * src/PeerInitiateConnectionCommand.cc
  3913. * src/PeerInitiateConnectionCommand.h
  3914. * src/PeerInteractionCommand.cc
  3915. * src/PeerInteractionCommand.h
  3916. * src/PeerObject.h
  3917. * src/PeerReceiveHandshakeCommand.cc
  3918. * src/PeerReceiveHandshakeCommand.h
  3919. * src/ReceiverMSEHandshakeCommand.cc
  3920. * src/RequestGroup.cc
  3921. * src/RequestGroup.h
  3922. * src/RequestGroupMan.cc
  3923. * src/RequestGroupMan.h
  3924. * src/SeedCheckCommand.cc
  3925. * src/SeedCheckCommand.h
  3926. * src/ShareRatioSeedCriteria.h
  3927. * src/SimpleBtMessage.cc
  3928. * src/TrackerWatcherCommand.cc
  3929. * src/TrackerWatcherCommand.h
  3930. * src/UTPexExtensionMessage.cc
  3931. * src/UTPexExtensionMessage.h
  3932. * test/BtCancelMessageTest.cc
  3933. * test/BtChokeMessageTest.cc
  3934. * test/BtExtendedMessageTest.cc
  3935. * test/BtInterestedMessageTest.cc
  3936. * test/BtNotInterestedMessageTest.cc
  3937. * test/BtPieceMessageTest.cc
  3938. * test/BtPortMessageTest.cc
  3939. * test/BtRegistryTest.cc
  3940. * test/BtRejectMessageTest.cc
  3941. * test/BtRequestMessageTest.cc
  3942. * test/DHTPeerAnnounceEntryTest.cc
  3943. * test/DHTPeerAnnounceStorageTest.cc
  3944. * test/DefaultBtMessageDispatcherTest.cc
  3945. * test/DefaultBtMessageFactoryTest.cc
  3946. * test/DefaultBtProgressInfoFileTest.cc
  3947. * test/DefaultBtRequestFactoryTest.cc
  3948. * test/DefaultExtensionMessageFactoryTest.cc
  3949. * test/MSEHandshakeTest.cc
  3950. * test/MockDHTTaskFactory.h
  3951. * test/ShareRatioSeedCriteriaTest.cc
  3952. * test/UTPexExtensionMessageTest.cc
  3953. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3954. Fixed compiler warning.
  3955. * test/UtilTest.cc
  3956. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3957. Treat Cookie object as session cookie if expiry = 0 is given.
  3958. With this change, you can specify session scoped cookies in an external
  3959. file setting expiry value to 0.
  3960. * src/Cookie.cc
  3961. * src/Cookie.h
  3962. * test/CookieParserTest.cc
  3963. * test/CookieStorageTest.cc
  3964. * test/CookieTest.cc
  3965. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3966. Changed signature of DHTMessageFactory::createResponseMessage().
  3967. Removed unused validateIDMatch.
  3968. * src/DHTMessageFactory.h
  3969. * src/DHTMessageFactoryImpl.cc
  3970. * src/DHTMessageFactoryImpl.h
  3971. * src/DHTMessageTracker.cc
  3972. * test/DHTMessageFactoryImplTest.cc
  3973. * test/MockDHTMessageFactory.h
  3974. Dropped DHT message coming from same ID of localhost.
  3975. * src/DHTMessageReceiver.cc
  3976. Rejected adding node whose ID is the same as localhost's.
  3977. * src/DHTRoutingTable.cc
  3978. * test/BtPortMessageTest.cc
  3979. * test/DHTRoutingTableTest.cc
  3980. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3981. Pool connection when redirection occurs with Content-Length = 0.
  3982. * src/HttpSkipResponseCommand.cc
  3983. * src/HttpSkipResponseCommand.h
  3984. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3985. Fixed the bug that causes time out when redirection occurs with
  3986. content-length 0.
  3987. * src/HttpResponseCommand.cc
  3988. * src/HttpSkipResponseCommand.cc
  3989. * src/HttpSkipResponseCommand.h
  3990. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Now each status legends is shown only when it appears in Download
  3992. Result. If Download Result has no item, then status legend will not
  3993. be printed.
  3994. * src/RequestGroupMan.cc
  3995. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. Removed duplicate creation of OptionHandlers.
  3997. * src/option_processing.cc
  3998. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3999. Fixed the bug that causes segmentation fault when accessing files which
  4000. don't exist or are not included in --select-file option while
  4001. validating chunk checksum.
  4002. * src/MultiDiskAdaptor.cc
  4003. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Fixed compiler warning.
  4005. * test/UtilTest.cc
  4006. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4007. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4008. * src/IteratableChecksumValidator.cc
  4009. * src/IteratableChunkChecksumValidator.cc
  4010. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4011. * Release 0.16.2
  4012. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4013. Added Serbian translation. Updated Ukrainian translation.
  4014. Thanks to all translators.
  4015. * po/sr.po
  4016. * po/uk.po
  4017. * po/LINGUAS
  4018. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4019. Bump up version number to 0.16.2
  4020. * configure.ac
  4021. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4022. Added length equality test to operator== to drop a piece message
  4023. whose length does not match to the requested one.
  4024. * src/RequestSlot.cc
  4025. * test/DefaultBtMessageDispatcherTest.cc
  4026. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4027. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4028. recieved.
  4029. In this fix, if a request larger than 16KiB length is received, aria2
  4030. disconnects the peer.
  4031. * src/BtConstants.h
  4032. * src/PeerMessageUtil.cc
  4033. * src/PeerMessageUtil.h
  4034. * test/BtRequestMessageTest.cc
  4035. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4036. * Release 0.16.1
  4037. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4039. * doc/aria2c.1.txt
  4040. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4041. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4042. Updated French, Simplified Chinese and Japanese translations.
  4043. Thanks to all translators.
  4044. en@quot and en@boldquot are also added.
  4045. * po/LINGUAS
  4046. * po/fr.po
  4047. * po/ja.po
  4048. * po/uk.po
  4049. * po/vi.po
  4050. * po/zh_CN.po
  4051. * po/zh_TW.po
  4052. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4053. Bump up version number to 0.16.1.
  4054. * configure.ac
  4055. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4056. Updated README.
  4057. * README
  4058. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4059. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4060. not to replace '--' with em dash character.
  4061. * doc/aria2c.1.txt
  4062. * doc/makeman
  4063. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4064. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4065. every SEC seconds.
  4066. * src/DownloadEngineFactory.cc
  4067. * src/OptionHandlerFactory.cc
  4068. * src/option_processing.cc
  4069. * src/usage_text.h
  4070. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4071. Fixed compile warning on linux-amd64
  4072. * src/FtpConnection.cc
  4073. * src/IteratableChunkChecksumValidator.cc
  4074. * src/MultiDiskAdaptor.cc
  4075. Fixed the bug that unit test fails on linux-amd64
  4076. * test/UtilTest.cc
  4077. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4078. Added --dht-file-path option to change the path to dht.dat, which is a
  4079. serialized DHT routing table.
  4080. * src/OptionHandlerFactory.cc
  4081. * src/option_processing.cc
  4082. * src/usage_text.h
  4083. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. Fixed possible underflow.
  4085. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4086. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4087. Fixed the bug that last character in URI is not encoded.
  4088. * src/Request.cc
  4089. * test/RequestTest.cc
  4090. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4091. Fixed the bug that referer header field contains fragment.
  4092. Now Request class removes fragment part of URI and encodes it
  4093. in Request::setUri() and setReferer().
  4094. * src/Request.h
  4095. * src/Request.cc
  4096. * test/RequestTest.cc
  4097. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4098. Added missing m4 macros.
  4099. * m4/cppunit.m4
  4100. * m4/libgcrypt.m4
  4101. * m4/libgnutls-extra.m4
  4102. * m4/libgnutls.m4
  4103. * m4/libxml2.m4
  4104. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4105. Fixed compile error with gcc-4.4(snapshot)
  4106. * src/File.cc
  4107. * src/FtpConnection.cc
  4108. * src/OptionHandlerImpl.h
  4109. * src/Util.cc
  4110. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. Removed assert()
  4112. * src/SocketBuffer.cc (SocketBuffer::send)
  4113. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4114. Changed the type of _numNewConnection to unsigned int.
  4115. * src/ActivePeerConnectionCommand.cc
  4116. * src/ActivePeerConnectionCommand.h
  4117. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4118. * Release 0.16.0
  4119. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4120. Updated doc
  4121. * README
  4122. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4123. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4124. translations. Thanks to all translators.
  4125. * po/bg.po
  4126. * po/de.po
  4127. * po/fr.po
  4128. * po/ja.po
  4129. * po/zh_CN.po
  4130. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4131. Bump up version number to 0.16.0.
  4132. * configure.ac
  4133. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4134. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4135. int32_t.
  4136. Changed the type of count to int32_t.
  4137. * src/Metalink2RequestGroup.cc
  4138. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4139. Added test for Time::elapsed(time_t).
  4140. * test/TimeTest.cc
  4141. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4143. Util::difftv() should be used instead.
  4144. * src/TimeA2.cc
  4145. * src/TimeA2.h
  4146. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. Made socket for dht connections non-blocking
  4148. * src/DHTAbstractMessage.cc
  4149. * src/DHTAbstractMessage.h
  4150. * src/DHTConnection.h
  4151. * src/DHTConnectionImpl.cc
  4152. * src/DHTConnectionImpl.h
  4153. * src/DHTMessage.h
  4154. * src/DHTMessageDispatcherImpl.cc
  4155. * src/DHTMessageDispatcherImpl.h
  4156. * src/DHTUnknownMessage.cc
  4157. * src/DHTUnknownMessage.h
  4158. * src/SocketCore.cc
  4159. * src/SocketCore.h
  4160. * test/MockDHTMessage.h
  4161. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4162. Changed the type of offset to int.
  4163. * src/ParameterizedStringParser.cc
  4164. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4165. Made getAsInt() return int32_t
  4166. * src/Option.h
  4167. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4168. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4169. build.
  4170. * configure.ac
  4171. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4172. Use sqlite3_open if sqlite3_open_v2 is not available.
  4173. * src/Sqlite3MozCookieParser.cc
  4174. * src/Sqlite3MozCookieParser.h
  4175. * m4/sqlite3.m4
  4176. * test/Sqlite3MozCookieParserTest.cc
  4177. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4178. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4179. * src/BtPieceMessage.cc
  4180. * src/DHTPeerAnnounceStorage.cc
  4181. * src/DefaultPieceStorage.cc
  4182. * src/DownloadCommand.cc
  4183. * src/DownloadEngine.cc
  4184. * src/FtpConnection.cc
  4185. * src/PeerConnection.cc
  4186. * src/PeerMessageUtil.cc
  4187. * src/RequestGroup.cc
  4188. * src/RequestGroupMan.cc
  4189. * src/SimpleBtMessage.cc
  4190. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4191. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4192. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4193. * src/AbstractDiskWriter.cc
  4194. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Don't set Request::supportsPersistentConnection() in HttpConnection
  4196. since this code is also used in AbstractProxyResponseCommand.
  4197. Moved those code to HttpResponse.
  4198. * src/HttpResponse.cc
  4199. * src/HttpResponse.h
  4200. * src/HttpConnection.cc
  4201. * src/HttpConnection.h
  4202. * src/HttpResponseCommand.cc
  4203. * test/HttpResponseTest.cc
  4204. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4205. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4206. The configuration is minimum: no torrent, no metalink, so there may be
  4207. other compile error on their code.
  4208. * src/a2netcompat.h
  4209. * src/File.cc
  4210. * src/File.h
  4211. * src/SocketCore.cc
  4212. * src/SocketCore.h
  4213. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Made a socket of incoming peer non-blocking.
  4215. * src/PeerListenCommand.cc
  4216. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4217. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4218. whole message data is not sent in one send() call.
  4219. * src/BtPieceMessage.cc
  4220. * src/BtPieceMessage.h
  4221. * src/PeerConnection.cc
  4222. * src/PeerConnection.h
  4223. * src/SimpleBtMessage.cc
  4224. * src/SimpleBtMessage.h
  4225. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Fixed the bug that aria2 downloads faster than max-download-limit when
  4227. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4228. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4229. , instead of sum of them.
  4230. * src/ActivePeerConnectionCommand.cc
  4231. * src/DefaultBtInteractive.cc
  4232. * src/DownloadCommand.cc
  4233. * src/PeerInteractionCommand.cc
  4234. * src/PeerReceiveHandshakeCommand.cc
  4235. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4236. Fixed the bug that HTTPS download fails.
  4237. * src/AbstractCommand.cc
  4238. * src/AbstractCommand.h
  4239. * src/DownloadCommand.cc
  4240. * src/FtpConnection.cc
  4241. * src/HttpConnection.cc
  4242. * src/HttpRequestCommand.cc
  4243. * src/HttpResponseCommand.cc
  4244. * src/HttpSkipResponseCommand.cc
  4245. * src/MSEHandshake.cc
  4246. * src/PeerConnection.cc
  4247. * src/SocketCore.cc
  4248. * src/SocketCore.h
  4249. Fixed the bug that aria2 doesn't download whole content body and cannot
  4250. reuse connection if chunked transfer encoding and gzip content encoding
  4251. are set.
  4252. * src/DownloadCommand.cc
  4253. * src/HttpSkipResponseCommand.cc
  4254. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4255. Updated man page.
  4256. * doc/aria2c.1.txt
  4257. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4258. When error occurred while aria2 was parsing an .aria2.conf file, print
  4259. the usage of the option that caused error.
  4260. * src/option_processing.cc
  4261. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4262. Fixed compile error on OptionHandlerException
  4263. * src/Makefile.am
  4264. * src/OptionHandlerException.cc
  4265. * src/OptionHandlerException.h
  4266. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Moved message of the error to OptionHandlerException.h
  4268. * src/NameMatchOptionHandler.h
  4269. * src/OptionHandlerException.h
  4270. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4271. When error occurs while aria2 is parsing an command-line option, print
  4272. the usage of the option.
  4273. * src/Makefile.am
  4274. * src/NameMatchOptionHandler.h
  4275. * src/OptionHandlerException.h
  4276. * src/option_processing.cc
  4277. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Reverted previous change.
  4279. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4280. username is not in URI.
  4281. * src/HttpRequest.cc
  4282. * src/Request.cc
  4283. * test/HttpRequestTest.cc
  4284. * test/RequestTest.cc
  4285. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. Now colon is required for username and password in FTP URL, like:
  4287. ftp://username:password@host.
  4288. If colon is not there, aria2 don't parse it as a username. For example,
  4289. aria2 don't retrieve username from ftp://username@host.
  4290. This fix was made in order to login FTP server via non-transparent ftp
  4291. proxy.
  4292. * src/Request.cc
  4293. * test/RequestTest.cc
  4294. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4295. Use netrc for HTTP.
  4296. Now FTP user/password is sent in Authorization header when
  4297. --ftp-via-http-proxy=get is given.
  4298. * src/AuthConfigFactory.cc
  4299. * src/HttpRequest.cc
  4300. * src/HttpRequest.h
  4301. * src/NetrcAuthResolver.cc
  4302. * src/NetrcAuthResolver.h
  4303. * src/OptionHandlerFactory.cc
  4304. * src/option_processing.cc
  4305. * src/prefs.cc
  4306. * src/prefs.h
  4307. * test/AuthConfigFactoryTest.cc
  4308. * test/HttpRequestTest.cc
  4309. * test/NetrcAuthResolverTest.cc
  4310. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4311. Issue PWD command first and get working directory and use it as a prefix
  4312. for CWD command.
  4313. * src/DownloadEngine.cc
  4314. * src/DownloadEngine.h
  4315. * src/FtpConnection.cc
  4316. * src/FtpConnection.h
  4317. * src/FtpFinishDownloadCommand.cc
  4318. * src/FtpInitiateConnectionCommand.cc
  4319. * src/FtpNegotiationCommand.cc
  4320. * src/FtpNegotiationCommand.h
  4321. * test/FtpConnectionTest.cc
  4322. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4323. Removed default user/pass for FTP user/pass, since it should not have
  4324. precedence over netrc configuration by default.
  4325. * src/OptionHandlerFactory.cc
  4326. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Added debug log for socket event.
  4328. * src/AbstractCommand.cc
  4329. * src/PeerAbstractCommand.cc
  4330. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4331. Log microseconds.
  4332. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4333. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4334. Replaced HelpItem.cc with OptionHandler.cc.
  4335. * po/POTFILES.in
  4336. Updated po files with 'make update-po'
  4337. * po/aria2c.pot
  4338. * po/*.po
  4339. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4340. Removed possible values from the text.
  4341. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4342. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4343. Removed unused preferences:
  4344. PREF_NO_PREALLOCATION
  4345. PREF_STDOUT_LOG
  4346. PREF_TRACKER_MAX_TRIES
  4347. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4348. PREF_MIN_SEGMENT_SIZE
  4349. * src/option_processing.cc
  4350. * src/prefs.cc
  4351. * src/prefs.h
  4352. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Integrated HelpItem into OptionParser to ease the workload for adding
  4354. new options. Removed default value from usage text.
  4355. * src/HelpItem.cc: Removed.
  4356. * src/HelpItem.h: Removed.
  4357. * src/HelpItemFactory.cc: Removed.
  4358. * src/HelpItemFactory.h: Removed.
  4359. * src/Makefile.am
  4360. * src/Makefile.in
  4361. * src/NameMatchOptionHandler.h
  4362. * src/OptionHandler.cc
  4363. * src/OptionHandler.h
  4364. * src/OptionHandlerFactory.cc
  4365. * src/OptionHandlerImpl.h
  4366. * src/OptionParser.cc
  4367. * src/OptionParser.h
  4368. * src/TagContainer.cc: Removed.
  4369. * src/TagContainer.h: Removed.
  4370. * src/TaggedItem.cc: Removed.
  4371. * src/TaggedItem.h: Removed.
  4372. * src/main.cc
  4373. * src/option_processing.cc
  4374. * src/usage_text.h
  4375. * src/version_usage.cc
  4376. * test/HelpItemTest.cc: Removed.
  4377. * test/Makefile.am
  4378. * test/Makefile.in
  4379. * test/OptionHandlerTest.cc
  4380. * test/OptionParserTest.cc
  4381. * test/TagContainerTest.cc: Removed.
  4382. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4383. Moved `TransferStat stat = ...' to inside the `if' clause.
  4384. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4385. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4386. Fixed the bug that a block in a piece is requested when same block is
  4387. already requested to the same peer in end game mode.
  4388. * src/BtRequestFactory.h
  4389. * src/DefaultBtInteractive.cc
  4390. * src/DefaultBtRequestFactory.cc
  4391. * src/DefaultBtRequestFactory.h
  4392. * src/DefaultPieceStorage.cc
  4393. * src/DefaultPieceStorage.h
  4394. * src/PieceStorage.h
  4395. * src/UnknownLengthPieceStorage.cc
  4396. * src/UnknownLengthPieceStorage.h
  4397. * test/DefaultBtRequestFactoryTest.cc
  4398. * test/DefaultPieceStorageTest.cc
  4399. * test/MockBtRequestFactory.h
  4400. * test/MockPieceStorage.h
  4401. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4402. Removed _uploadLength and _downloadLength from PeerSessionResource
  4403. and use PeerStat::_sessionUploadLength and
  4404. PeerStat::_sessionDownloadLength.
  4405. * src/PeerSessionResource.cc
  4406. * src/PeerSessionResource.h
  4407. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4408. Fixed the bug that prefixLength of split bucket which doesn't include
  4409. local node ID is incremented.
  4410. * src/DHTBucket.cc
  4411. * src/DHTBucket.h
  4412. * test/DHTBucketTest.cc
  4413. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Added cookies.sqlite to EXTRA_DIST
  4415. * test/Makefile.am
  4416. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4417. Added Turkish translation. Updated French, German, Russian and
  4418. Simplified Chinese translations. Thanks to all translators.
  4419. * po/LINGUAS
  4420. * po/de.po
  4421. * po/fr.po
  4422. * po/ru.po
  4423. * po/tr.po
  4424. * po/zh_CN.po
  4425. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4426. Added deliminating text to the beginning of the log so that one can find
  4427. where the log starts easily.
  4428. * src/main.cc
  4429. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4431. to fix compile error when async DNS is not enabled by configuration.
  4432. * src/AbstractCommand.cc
  4433. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4434. If establishing conneciton to a server is failed, then mark error on
  4435. its ServerStat.
  4436. Added the cause of error to log when error event occurred.
  4437. Moved message string to message.h for translation.
  4438. * src/AbstractCommand.cc
  4439. * src/AbstractCommand.h
  4440. * src/FtpNegotiationCommand.cc
  4441. * src/HttpRequestCommand.cc
  4442. * src/PeerAbstractCommand.cc
  4443. * src/message.h
  4444. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4445. Added the function to get error message from socket.
  4446. * src/SocketCore.cc
  4447. * src/SocketCore.h
  4448. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4449. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4450. * src/RequestGroupMan.cc
  4451. * src/RequestGroupMan.h
  4452. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. If error event is received in epoll, then abort download immediately.
  4454. * src/AbstractCommand.cc
  4455. * src/Command.cc
  4456. * src/Command.h
  4457. * src/DownloadEngine.cc
  4458. * src/PeerAbstractCommand.cc
  4459. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4460. Added usage message for --uri-selector, --server-stat-of,
  4461. --server-stat-in, --server-stat-timeout options.
  4462. * src/HelpItemFactory.cc
  4463. * src/usage_text.h
  4464. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4465. Added upper limit of FTP response buffer. The current implementation
  4466. uses 4096bytes as a limit.
  4467. * src/FtpConnection.cc
  4468. * src/FtpConnection.h
  4469. * test/FtpConnectionTest.cc
  4470. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4471. Use non-blocking socket for TCP communication to avoid possible
  4472. blocking due to buffer full.
  4473. * src/AbstractProxyRequestCommand.cc
  4474. * src/FtpConnection.cc
  4475. * src/FtpConnection.h
  4476. * src/FtpNegotiationCommand.cc
  4477. * src/FtpNegotiationCommand.h
  4478. * src/HttpConnection.cc
  4479. * src/HttpConnection.h
  4480. * src/HttpRequestCommand.cc
  4481. * src/InitiatorMSEHandshakeCommand.cc
  4482. * src/InitiatorMSEHandshakeCommand.h
  4483. * src/MSEHandshake.cc
  4484. * src/MSEHandshake.h
  4485. * src/Makefile.am
  4486. * src/PeerConnection.cc
  4487. * src/PeerConnection.h
  4488. * src/PeerInteractionCommand.cc
  4489. * src/PeerListenCommand.cc
  4490. * src/ReceiverMSEHandshakeCommand.cc
  4491. * src/ReceiverMSEHandshakeCommand.h
  4492. * src/SocketBuffer.cc
  4493. * src/SocketBuffer.h
  4494. * src/SocketCore.cc
  4495. * src/SocketCore.h
  4496. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. Call setStatusRealtime() in constructor.
  4498. * src/RealtimeCommand.cc
  4499. * src/RealtimeCommand.h
  4500. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4501. Call Download::setNoWait(true) to execute newly created command without
  4502. a pause.
  4503. * src/AbstractCommand.cc
  4504. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4505. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4506. found' error from HTTP/FTP server NUM times without getting single
  4507. bytes of data, then force the download to fail.
  4508. Basically aria2 tris all URIs available. So if long list of URIs are
  4509. specified in Metalink, then aria2 will take a long time to fail
  4510. eventually if all URIs are outdated. This option eases this situation
  4511. to limit the number of servers to try.
  4512. * src/FtpNegotiationCommand.cc
  4513. * src/HelpItemFactory.cc
  4514. * src/HttpResponseCommand.cc
  4515. * src/OptionHandlerFactory.cc
  4516. * src/PeerStat.h
  4517. * src/RequestGroup.cc
  4518. * src/RequestGroup.h
  4519. * src/SegmentMan.cc
  4520. * src/SegmentMan.h
  4521. * src/option_processing.cc
  4522. * src/prefs.cc
  4523. * src/prefs.h
  4524. * src/usage_text.h
  4525. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4526. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4527. response even if more than one response is in it.
  4528. * src/FtpConnection.cc
  4529. * src/FtpConnection.h
  4530. * test/FtpConnectionTest.cc
  4531. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4532. Merged from stable-0.15
  4533. * m4/libcares.m4
  4534. Use pkg-config
  4535. * m4/sqlite3.m4
  4536. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. Removed unnecessary if statement.
  4538. * src/DefaultPieceStorage.cc (initPieceStorage)
  4539. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4540. Added --connect-timeout option to specify connect timeout in seconds.
  4541. This option is in effect for HTTP/FTP/proxy server. The timeout for
  4542. connecting to BitTorrent peer is not controlled by this option.
  4543. * src/AbstractProxyRequestCommand.cc
  4544. * src/FtpNegotiationCommand.cc
  4545. * src/HelpItemFactory.cc
  4546. * src/HttpRequestCommand.cc
  4547. * src/OptionHandlerFactory.cc
  4548. * src/option_processing.cc
  4549. * src/prefs.cc
  4550. * src/prefs.h
  4551. * src/usage_text.h
  4552. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4553. Added help message for -R option.
  4554. * src/HelpItemFactory.cc
  4555. * src/usage_text.h
  4556. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4557. Added the message that the time is in local time zone.
  4558. * src/RequestGroup.cc
  4559. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Implemented the ability to get timestamp from remote FTP server using
  4561. MDTM command described in RFC3659.
  4562. * src/FtpConnection.cc
  4563. * src/FtpConnection.h
  4564. * src/FtpNegotiationCommand.cc
  4565. * src/FtpNegotiationCommand.h
  4566. * test/FtpConnectionTest.cc
  4567. * test/Makefile.am
  4568. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4569. Implemented the ability to get timestamp from remote HTTP server and
  4570. apply it to local file. To enable this feature, --remote-time option
  4571. is added. No usage text has been written yet.
  4572. If several servers returns difference timestamp, then aria2 uses latest
  4573. one.
  4574. * src/CopyDiskAdaptor.cc
  4575. * src/CopyDiskAdaptor.h
  4576. * src/DirectDiskAdaptor.cc
  4577. * src/DirectDiskAdaptor.h
  4578. * src/DiskAdaptor.h
  4579. * src/File.cc
  4580. * src/File.h
  4581. * src/HttpHeader.cc
  4582. * src/HttpHeader.h
  4583. * src/HttpResponse.cc
  4584. * src/HttpResponse.h
  4585. * src/HttpResponseCommand.cc
  4586. * src/HttpResponseCommand.h
  4587. * src/MultiDiskAdaptor.cc
  4588. * src/MultiDiskAdaptor.h
  4589. * src/OptionHandlerFactory.cc
  4590. * src/RequestGroup.cc
  4591. * src/RequestGroup.h
  4592. * src/RequestGroupMan.cc
  4593. * src/option_processing.cc
  4594. * src/prefs.cc
  4595. * src/prefs.h
  4596. * test/CopyDiskAdaptorTest.cc
  4597. * test/FileTest.cc
  4598. * test/Makefile.am
  4599. * test/Makefile.in
  4600. * test/MultiDiskAdaptorTest.cc
  4601. * test/TestUtil.cc
  4602. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. Fixed the bug that DiskWriterEntry is not created when its
  4604. FileEntry.isRequested() is false and it doesn't share a piece with
  4605. other FileEntries that are requested. This bug causes segmentation fault
  4606. in the end.
  4607. * src/MultiDiskAdaptor.cc
  4608. * src/MultiDiskAdaptor.h
  4609. * src/MultiFileAllocationIterator.cc
  4610. * test/MultiDiskAdaptorTest.cc
  4611. * test/MultiFileAllocationIteratorTest.cc
  4612. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4613. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  4614. called if the number of file entries are greater than max open files.
  4615. * src/AbstractSingleDiskAdaptor.cc
  4616. * src/AbstractSingleDiskAdaptor.h
  4617. * src/DiskAdaptor.h
  4618. * src/MultiDiskAdaptor.cc
  4619. * src/MultiDiskAdaptor.h
  4620. * test/MultiDiskAdaptorTest.cc
  4621. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Added a constuctor that receives struct timeval.
  4623. Added operator<.
  4624. * src/TimeA2.cc
  4625. * src/TimeA2.h
  4626. * test/TimeTest.cc
  4627. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4628. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  4629. * src/CookieParser.cc
  4630. * test/CookieParserTest.cc
  4631. * test/HttpResponseTest.cc
  4632. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4633. Implmented the functions to parse date.
  4634. * src/TimeA2.cc
  4635. * src/TimeA2.h
  4636. * test/TimeTest.cc
  4637. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Added "Firefox3 Cookie" feature to FeatureConfig
  4639. * src/FeatureConfig.cc
  4640. * src/FeatureConfig.h
  4641. * test/FeatureConfigTest.cc
  4642. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. Bump up version number to 0.16.0b
  4644. * configure.ac
  4645. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Use pkg-config if is is available.
  4647. * m4/openssl.m4
  4648. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4649. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  4650. * src/BtAnnounce.h
  4651. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. If an error occurred with a URI, remove identical URI from remaining
  4653. URI list because it is likely that same error occurred in the end and it
  4654. is waste of time.
  4655. * src/AbstractCommand.cc
  4656. * src/RequestGroup.cc
  4657. * src/RequestGroup.h
  4658. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Removed wrong comment.
  4660. * src/DefaultPeerStorage.cc
  4661. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4662. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  4663. Added return value of getpid() to argument of srand() to achieve more
  4664. randomized value.
  4665. * src/SimpleRandomizer.cc
  4666. * src/SimpleRandomizer.h
  4667. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Contact tracker frequently when the number of connections are 0 and
  4669. download is not finished yet.
  4670. * src/ActivePeerConnectionCommand.cc
  4671. * src/BtAnnounce.h
  4672. * src/DefaultBtAnnounce.cc
  4673. * src/DefaultBtAnnounce.h
  4674. * test/MockBtAnnounce.h
  4675. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4676. Moved threshold values to UTPexExtensionMessage.
  4677. * src/DefaultBtInteractive.cc
  4678. * src/Peer.cc
  4679. * src/Peer.h
  4680. * src/UTPexExtensionMessage.cc
  4681. * src/UTPexExtensionMessage.h
  4682. * test/UTPexExtensionMessageTest.cc
  4683. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4684. Added _incoming member to Peer class and made it true if the peer
  4685. initiated connection. Don't add those peer to UTPex message.
  4686. If extended handshake is received, assign _incoming to false.
  4687. * src/DefaultBtInteractive.cc
  4688. * src/HandshakeExtensionMessage.cc
  4689. * src/Peer.cc
  4690. * src/Peer.h
  4691. * src/PeerListenCommand.cc
  4692. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4693. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  4694. Encoding Decoder. Removed size threshold for turning off on the fly
  4695. inflation because resulting file may or may not be inflated depending
  4696. on the file size and I think it is not expected by users.
  4697. This change fixes segmentation fault when Metalink file contains gzipped
  4698. file and its filesize is provided.
  4699. * src/HttpResponseCommand.cc
  4700. * src/HttpResponseCommand.h
  4701. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4702. Made Cookie immutable.
  4703. * src/Cookie.cc
  4704. * src/Cookie.h
  4705. * src/CookieParser.cc
  4706. * src/CookieParser.h
  4707. * src/CookieStorage.cc
  4708. * test/CookieParserTest.cc
  4709. * test/CookieStorageTest.cc
  4710. * test/NsCookieParserTest.cc
  4711. * test/Sqlite3MozCookieParserTest.cc
  4712. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4713. Removed CookieBox, CookieBoxFactory.
  4714. * src/CookieBox.cc
  4715. * src/CookieBox.h
  4716. * src/CookieBoxFactory.cc
  4717. * src/CookieBoxFactory.h
  4718. * src/Makefile.am
  4719. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4720. Use CookieStorage class instead of CookieBox class.
  4721. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  4722. * src/AbstractProxyRequestCommand.cc
  4723. * src/CookieStorage.cc
  4724. * src/DownloadEngine.cc
  4725. * src/DownloadEngine.h
  4726. * src/HttpConnection.cc
  4727. * src/HttpConnection.h
  4728. * src/HttpRequest.cc
  4729. * src/HttpRequest.h
  4730. * src/HttpRequestCommand.cc
  4731. * src/HttpResponse.cc
  4732. * src/HttpResponseCommand.cc
  4733. * src/HttpSkipResponseCommand.cc
  4734. * src/Makefile.am
  4735. * src/MultiUrlRequestInfo.cc
  4736. * src/Request.cc
  4737. * src/Request.h
  4738. * src/main.cc
  4739. * test/AllTest.cc
  4740. * test/CookieStorageTest.cc
  4741. * test/CookieTest.cc
  4742. * test/HttpRequestTest.cc
  4743. * test/HttpResponseTest.cc
  4744. * test/Makefile.am
  4745. * test/NsCookieParserTest.cc
  4746. * test/Sqlite3MozCookieParserTest.cc
  4747. * test/nscookietest.txt
  4748. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4749. Updated
  4750. * test/Cookies.sqlite
  4751. * test/nscookietest.txt
  4752. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Added tests for CookieStorage::load()
  4754. * test/CookieStorageTest.cc
  4755. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4756. Added CookieStorage class which is based on RFC2109 and manages cookies
  4757. more strictly than CookieBox and CookieBoxFactory class.
  4758. * src/CookieStorage.cc
  4759. * src/CookieStorage.h
  4760. * src/Cookie.cc
  4761. * src/Cookie.h
  4762. * test/CookieStorageTest.cc
  4763. * test/CookieTest.cc
  4764. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4765. Fixed the bug that commands are created more than the number of pieces.
  4766. * src/RequestGroup.cc
  4767. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4768. Fixed infinite loop bug in FTP when SIZE command failed.
  4769. * src/FtpNegotiationCommand.cc
  4770. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4771. Removed DirectDiskAdaptorTest.h
  4772. * test/Makefile.am
  4773. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Fixed chunk checksum validation cannot detect trailing garbage data.
  4775. BUG#2074141
  4776. * src/AbstractSingleDiskAdaptor.cc
  4777. * src/AbstractSingleDiskAdaptor.h
  4778. * src/CheckIntegrityEntry.cc
  4779. * src/CheckIntegrityEntry.h
  4780. * src/DiskAdaptor.h
  4781. * src/MultiDiskAdaptor.cc
  4782. * src/MultiDiskAdaptor.h
  4783. * src/RequestGroup.cc
  4784. * test/DirectDiskAdaptorTest.cc
  4785. * test/MultiDiskAdaptorTest.cc
  4786. * test/TestUtil.cc
  4787. * test/TestUtil.h
  4788. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Bump up version number of dht.dat file to 3. In version 3 format, time
  4790. is stored in 64bit, network byte order.
  4791. New build can load old format(version 2) but it saves the file in new
  4792. format. It means once you used new build, your dht.dat becomes
  4793. incompatible with older build.
  4794. * src/DHTRoutingTableDeserializer.cc
  4795. * src/DHTRoutingTableSerializer.cc
  4796. * test/DHTRoutingTableSerializerTest.cc
  4797. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4798. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  4799. * test/Makefile.am
  4800. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4801. Bump up version number of .aria2 control file to 0001.
  4802. New aria2 can still load version 0000 file but it saves the file in
  4803. version 0001 format. It means that new aria2 can resume download
  4804. started by old aria2 but the opposite is not true.
  4805. * src/DefaultBtProgressInfoFile.cc
  4806. * src/DefaultBtProgressInfoFile.h
  4807. * test/DefaultBtProgressInfoFileTest.cc
  4808. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. Added ntoh64 and hton64 as inline functions.
  4810. * src/Util.cc
  4811. * test/UtilTest.cc
  4812. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4813. Added sqlite3 depenency and Firefox3 cookie support.
  4814. * README
  4815. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4816. State that firefox3 cookie is supported explicitly in the usage.
  4817. * src/usage_text.h
  4818. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4819. Externalized message.
  4820. * src/RequestGroupMan.cc
  4821. * src/message.h
  4822. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4823. Save temporary file first and rename to the destination on success.
  4824. Added test cases.
  4825. * src/RequestGroupMan.cc
  4826. * test/RequestGroupManTest.cc
  4827. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Fixed the bug that the number of connected peer is exceeding the limit
  4829. (55 by default) in seeding mode.
  4830. Multiplied 0.8 to _maxUploadSpeedLimit.
  4831. * src/ActivePeerConnectionCommand.cc
  4832. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4833. Clear table item.
  4834. * src/Dictionary.cc
  4835. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4836. Fixed error handling of lseek.
  4837. * src/AbstractDiskWriter.cc
  4838. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4840. style cookie file.
  4841. * src/usage_text.h
  4842. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4843. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4844. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4845. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4846. * src/Util.cc
  4847. * src/Util.h
  4848. * src/CookieParser.cc
  4849. * test/UtilTest.cc
  4850. * test/CookieParserTest.cc
  4851. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4852. Separate the implementation to load old mozilla format of cookie to
  4853. NsCookieParser class.
  4854. * src/CookieBoxFactory.cc
  4855. * src/CookieBoxFactory.h
  4856. * src/NsCookieParser.cc
  4857. * src/NsCookieParser.h
  4858. * test/NsCookieParserTest.cc
  4859. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Made parse() const
  4861. * src/Sqlite3MozCookieParser.cc
  4862. * src/Sqlite3MozCookieParser.h
  4863. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Added firefox3 cookie support based on the patch submitted by
  4865. tizianomueller.
  4866. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4867. this functionality.
  4868. * configure.ac
  4869. * m4/sqlite3.m4
  4870. * src/CookieBoxFactory.cc
  4871. * src/CookieBoxFactory.h
  4872. * src/Makefile.am
  4873. * src/Makefile.in
  4874. * src/Sqlite3MozCookieParser.cc
  4875. * src/Sqlite3MozCookieParser.h
  4876. * src/main.cc
  4877. * test/CookieBoxFactoryTest.cc
  4878. * test/Makefile.am
  4879. * test/Makefile.in
  4880. * test/Sqlite3MozCookieParserTest.cc
  4881. * test/badcookies.sqlite
  4882. * test/cookies.sqlite
  4883. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4884. Added Danish and Greek translations.
  4885. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4886. Great thanks to all translators.
  4887. * po/LINGUAS
  4888. * po/el.po
  4889. * po/da.po
  4890. * po/es.po
  4891. * po/ca.po
  4892. * po/nn.po
  4893. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4894. Fixed man page: --follow-bittorrent should be --follow-torrent
  4895. * doc/aria2c.1.txt
  4896. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4897. Fixed: numCommand is less than the value specified in -C option.
  4898. * src/RequestGroup.cc
  4899. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Fixed occasional assertion failure in PieceSegment.
  4901. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4902. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4903. creation of duplicate segments and one of the segment was finished then
  4904. assertion failure was caused.
  4905. * src/SegmentMan.cc
  4906. * test/SegmentManTest.cc
  4907. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Added options to load/save the server's performance/status to a file
  4909. and the timeout to drop their data.
  4910. --server-stat-of=FILE specifies the file to which performance data
  4911. is saved.
  4912. --server-stat-if=FILE specifies the file to read previously saved
  4913. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4914. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4915. TIMEOUT is specified in seconds and the default value is 24hours.
  4916. * src/MultiUrlRequestInfo.cc
  4917. * src/OptionHandlerFactory.cc
  4918. * src/RequestGroupMan.cc
  4919. * src/RequestGroupMan.h
  4920. * src/ServerStatMan.cc
  4921. * src/ServerStatMan.h
  4922. * src/option_processing.cc
  4923. * src/prefs.cc
  4924. * src/prefs.h
  4925. * test/ServerStatManTest.cc
  4926. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4927. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4928. * src/ServerStatMan.cc
  4929. * src/ServerStatMan.h
  4930. * test/ServerStatManTest.cc
  4931. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. Implemented ServerStatMan::load(...) function and its test case.
  4933. * src/ServerStat.cc
  4934. * src/ServerStat.h
  4935. * src/ServerStatMan.cc
  4936. * test/ServerStatManTest.cc
  4937. * test/ServerStatTest.cc
  4938. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4939. Use time_t instead of int32_t. Use int64_t where milli second is
  4940. expected.
  4941. * src/TimeA2.cc
  4942. * src/TimeA2.h
  4943. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4944. Implemented ServerStatMan::save(...) function and its test case.
  4945. * src/ServerStat.cc
  4946. * src/ServerStat.h
  4947. * src/ServerStatMan.cc
  4948. * src/ServerStatMan.h
  4949. * test/ServerStatManTest.cc
  4950. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4951. Now aria2 uses name attribute in Metalink as local filename in
  4952. BitTorrent downloads. BUG#2033999
  4953. * src/BtContext.h
  4954. * src/BtDependency.cc
  4955. * src/DefaultBtContext.cc
  4956. * src/DefaultBtContext.h
  4957. * src/SingleFileDownloadContext.cc
  4958. * src/SingleFileDownloadContext.h
  4959. * test/BtDependencyTest.cc
  4960. * test/DefaultBtContextTest.cc
  4961. * test/MockBtContext.h
  4962. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Added AC_C_BIGENDIAN
  4964. * src/configure.ac
  4965. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4966. Limited numCommand less than or equal to the number of piece.
  4967. * src/RequestGroup.cc
  4968. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4970. directive.
  4971. * test/DefaultPieceStorageTest.cc
  4972. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. Fixed memory leak in test code
  4974. * test/AnnounceListTest.cc
  4975. * test/DefaultPeerListProcessorTest.cc
  4976. * test/DefaultPeerStorageTest.cc
  4977. * test/MetaFileUtilTest.cc
  4978. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4980. * src/DefaultPieceStorage.cc
  4981. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Initialized _directIOAllowed
  4983. * src/MultiDiskAdaptor.cc
  4984. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Fixed memory leak
  4986. * src/GZipDecoder.cc
  4987. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4988. Fixed memory leak
  4989. * src/MetalinkParserStateMachine.cc
  4990. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4991. Fixed memory leak
  4992. * src/Dictionary.cc
  4993. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4994. Fixed memory leak
  4995. * src/IteratableChunkChecksumValidator.h
  4996. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4997. Fixed unmatched malloc/free.
  4998. * src/IteratableChunkChecksumValidator.cc
  4999. * src/IteratableChecksumValidator.cc
  5000. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5001. Removed max chunk size check. This change fixes BUG#2040169
  5002. * src/ChunkedDecoder.cc
  5003. * src/ChunkedDecoder.h
  5004. * test/ChunkedDecoderTest.cc
  5005. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5006. Implemented download speed based URI selection algorithm.
  5007. Introduced new option --uri-selector.
  5008. If --uri-selector=feedback is given, aria2 uses download speed observed
  5009. in the previous downloads and chooses fastest server in the URI list.
  5010. Currently at most 10 URIs are considered to introduce randomeness for
  5011. finding better servers. The speed is average download speed in the
  5012. downloads.
  5013. On the other hand, if --uri-selector=inorder is given, which is default,
  5014. URI is tried in order in URI list.
  5015. The usage text for the new option has not been written yet.
  5016. * src/AbstractCommand.cc
  5017. * src/DownloadCommand.cc
  5018. * src/DownloadEngine.cc
  5019. * src/DownloadEngineFactory.cc
  5020. * src/InOrderURISelector.cc
  5021. * src/InOrderURISelector.h
  5022. * src/OptionHandlerFactory.cc
  5023. * src/PeerStat.h
  5024. * src/RequestGroup.cc
  5025. * src/RequestGroup.h
  5026. * src/RequestGroupMan.cc
  5027. * src/RequestGroupMan.h
  5028. * src/SegmentMan.cc
  5029. * src/SegmentMan.h
  5030. * src/ServerStat.cc
  5031. * src/ServerStat.h
  5032. * src/ServerStatMan.cc
  5033. * src/ServerStatMan.h
  5034. * src/ServerStatURISelector.cc
  5035. * src/ServerStatURISelector.h
  5036. * src/URISelector.h
  5037. * src/option_processing.cc
  5038. * src/prefs.cc
  5039. * src/prefs.h
  5040. * test/InOrderURISelectorTest.cc
  5041. * test/RequestGroupManTest.cc
  5042. * test/ServerStatManTest.cc
  5043. * test/ServerStatURISelectorTest.cc
  5044. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5045. * Release 0.15.1+2
  5046. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5047. Bump up version number to 0.15.1+2
  5048. * configure.ac
  5049. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5050. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5051. * m4/aria2_arg.m4
  5052. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. * Release 0.15.1+1
  5054. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5055. Bump up version number to 0.15.1+1
  5056. * configure.ac
  5057. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5058. Fixed the bug that causes segmentaion fault when resuming download
  5059. using metalink without size tag. Reproducible only using HTTP URI.
  5060. * src/HttpResponseCommand.cc
  5061. * src/FtpNegotiationCommand.cc
  5062. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. * Release 0.15.1
  5064. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5065. Updated Bulgarian and French translations, thanks to all translators.
  5066. * po/bg.po
  5067. * po/fr.po
  5068. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Bump up version number to 0.15.1
  5070. * configure.ac
  5071. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5072. Avoid repeated call of gettimeofday() when calculating speed.
  5073. * src/SpeedCalc.cc
  5074. * src/SpeedCalc.h
  5075. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5076. Removed writable check when socket's send buffer is full in BitTorrent
  5077. downloads to lower CPU usage.
  5078. * src/PeerInteractionCommand.cc
  5079. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Fixed broken gzip inflation.
  5081. Turn off segmented downloading if gzip content is smaller than or equal
  5082. to 1MiB and inflate the data on the fly, because HTTP response header
  5083. doesn't contain the length of inflated file we can't determin where
  5084. the chunk of data should be written.
  5085. On the other hand, if gzip content is larger than 1MB, then turn off
  5086. on the fly inflation, because some servers returns "content-type: gzip"
  5087. for *.tgz, *.gz files.
  5088. * src/DownloadCommand.cc
  5089. * src/HttpResponseCommand.cc
  5090. * src/HttpResponseCommand.h
  5091. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Applied tizianomueller's patch to fix compile error.
  5093. * test/BitfieldManTest.cc
  5094. * test/BtRequestMessageTest.cc
  5095. * test/DefaultBtContextTest.cc
  5096. * test/DefaultDiskWriterTest.cc
  5097. * test/DefaultPieceStorageTest.cc
  5098. * test/HttpHeaderProcessorTest.cc
  5099. * test/HttpResponseTest.cc
  5100. * test/Metalink2RequestGroupTest.cc
  5101. * test/MetalinkParserControllerTest.cc
  5102. * test/MetalinkProcessorTest.cc
  5103. * test/PeerSessionResourceTest.cc
  5104. * test/UtilTest.cc
  5105. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5106. * Release 0.15.0
  5107. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Reordered src files in POTFILES.in so that usage text appears first.
  5109. * po/POTFILES.in
  5110. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5111. Bump up version number to 0.15.0
  5112. * configure.ac
  5113. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5114. Added Bulgarian translation.
  5115. Updated Catalan, Spanish, French and Japanese translations.
  5116. Thanks to all translators.
  5117. * po/LINGUAS
  5118. * po/bg.po
  5119. * po/ca.po
  5120. * po/es.po
  5121. * po/fr.po
  5122. * po/ja.po
  5123. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Updated feature list. Added libz for dependency section.
  5125. Added a description about unit testing using CppUnit.
  5126. * README
  5127. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Added a test for libz. Quoted where it is necessary.
  5129. * build_test.sh
  5130. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5131. Added GZip to `Enabled Features' list.
  5132. * src/FeatureConfig.cc
  5133. * src/FeatureConfig.h
  5134. * test/FeatureConfigTest.cc
  5135. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5136. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5137. the transfer has not yet started.
  5138. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5139. * src/SegmentMan.cc
  5140. * src/SegmentMan.h
  5141. * test/SegmentManTest.cc
  5142. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. Cache last calculated average download/upload speed.
  5144. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5145. cached value.
  5146. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5147. * src/PeerStat.h
  5148. * src/SpeedCalc.cc
  5149. * src/SpeedCalc.h
  5150. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Call parseUrl directly.
  5152. * src/Request.cc (resetUrl)
  5153. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. Supported absolute/relative path in Location header field.
  5155. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5156. * src/HttpHeader.cc
  5157. * src/HttpHeader.h
  5158. * src/HttpResponse.cc
  5159. * src/HttpSkipResponseCommand.cc
  5160. * src/Request.cc
  5161. * test/HttpHeaderTest.cc
  5162. * test/HttpResponseTest.cc
  5163. * test/RequestTest.cc
  5164. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Changed help text for --load-cookie option.
  5166. * doc/aria2c.1.txt
  5167. * src/usage_text.h
  5168. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Regenerated test/Makefile.in to remove stale ChangeLog.
  5170. * test/Makefile.in
  5171. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. Updated po files.
  5173. * po/aria2c.pot
  5174. * po/*.po
  5175. * po/*.gmo
  5176. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5177. Bump up version number to 0.15.0b
  5178. * configure.ac
  5179. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5180. Externalize messages.
  5181. * src/RequestGroupMan.cc
  5182. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5183. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Use File::exists() instead of File::isFile() to allow non-regular file
  5185. such as block special files.
  5186. * src/AbstractDiskWriter.cc
  5187. * src/MultiDiskWriter.cc
  5188. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5190. * src/gai_strerror.h
  5191. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5192. Fixed compile error. Thanks gknauf for the patch.
  5193. * src/asctime_r.c
  5194. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. Included asctime_r.h from a2time.h.
  5196. * src/a2time.h
  5197. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5198. Added a message "aria2 doesn't verify signature" to log message when
  5199. signature file is saved.
  5200. * src/RequestGroupMan.cc
  5201. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5202. Added the ability to save signature when download is completed if
  5203. signature is available. The filename of signature file is the path to
  5204. download file followed by ".sig". If it already exists, then signature
  5205. will not be saved.
  5206. * src/RequestGroupMan.cc
  5207. * src/Signature.cc
  5208. * test/SignatureTest.cc
  5209. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Updated the descriptions for --bt-seed-unverified.
  5211. * doc/aria2c.1
  5212. * doc/aria2c.1.html
  5213. * doc/aria2c.1.txt
  5214. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5215. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5216. that this is not going to verify files using piece hashes.
  5217. * src/HelpItemFactory.cc
  5218. * src/OptionHandlerFactory.cc
  5219. * src/RequestGroup.cc
  5220. * src/option_processing.cc
  5221. * src/prefs.cc
  5222. * src/prefs.h
  5223. * src/usage_text.h
  5224. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5225. Added the ability to retrieve signature from Metalink file.
  5226. A retrieved signature is stored in Signature class and it is held by
  5227. DownloadContext class. Note that aria2 doesn't verify signature.
  5228. * src/DownloadContext.cc
  5229. * src/DownloadContext.h
  5230. * src/Makefile.am
  5231. * src/Makefile.in
  5232. * src/Metalink2RequestGroup.cc
  5233. * src/MetalinkEntry.cc
  5234. * src/MetalinkEntry.h
  5235. * src/MetalinkParserController.cc
  5236. * src/MetalinkParserController.h
  5237. * src/MetalinkParserStateMachine.cc
  5238. * src/MetalinkParserStateMachine.h
  5239. * src/Signature.cc
  5240. * src/Signature.h
  5241. * src/SignatureMetalinkParserState.cc
  5242. * src/SignatureMetalinkParserState.h
  5243. * src/VerificationMetalinkParserState.cc
  5244. * src/VerificationMetalinkParserState.h
  5245. * test/Metalink2RequestGroupTest.cc
  5246. * test/MetalinkParserControllerTest.cc
  5247. * test/MetalinkProcessorTest.cc
  5248. * test/test.xml
  5249. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5250. Close DiskAdaptor after renaming file.
  5251. * src/RequestGroup.cc
  5252. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5253. Corrected indentation
  5254. * src/DefaultBtProgressInfoFile.cc
  5255. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Moved the calls of std::ios::exceptions() inside of try-catch block
  5257. because if an error occurred in constructor of std::fstream, then
  5258. exception is thrown immediately when std::ios::exceptions() is called
  5259. which results unhandled exception and aria2c aborts.
  5260. * src/DefaultBtProgressInfoFile.cc
  5261. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5262. Added the test for the previous change in DefaultBtContext.cc
  5263. * test/DefaultBtContextTest.cc
  5264. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. Fixed the bug that causes infinite loop when the number of pieces are
  5266. fewer than allowed fast set size which is 10 by default.
  5267. * src/DefaultBtContext.cc
  5268. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5269. Updated the descriptions for -j, -s. Added --bt-seed.
  5270. * doc/aria2c.1
  5271. * doc/aria2c.1.html
  5272. * doc/aria2c.1.txt
  5273. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5274. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5275. aria2 seeds previously downloaded files without validating piece hashs.
  5276. * src/HelpItemFactory.cc
  5277. * src/OptionHandlerFactory.cc
  5278. * src/RequestGroup.cc
  5279. * src/option_processing.cc
  5280. * src/prefs.cc
  5281. * src/prefs.h
  5282. * src/usage_text.h
  5283. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Updated DESCRIPTION of man page.
  5285. * doc/aria2c.1
  5286. * doc/aria2c.1.html
  5287. * doc/aria2c.1.txt
  5288. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5290. Don't define `struct addrinfo' when __sun is defined.
  5291. * src/getaddrinfo.h
  5292. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5293. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5294. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5295. second argument is of type `struct _stati64'. Otherwise it is defined as
  5296. `struct stat'.
  5297. * src/AbstractDiskWriter.cc
  5298. * src/File.cc
  5299. * src/File.h
  5300. * src/a2io.h
  5301. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5302. Fixed the compile error in hurd-i386
  5303. See the original bug report:
  5304. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5305. * src/a2io.h
  5306. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Code cleanup.
  5308. * src/PeerAbstractCommand.cc
  5309. * src/PeerAbstractCommand.h
  5310. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5311. Removed TransferEncoding.
  5312. * src/DownloadCommand.cc
  5313. * src/DownloadCommand.h
  5314. * src/HttpResponseCommand.cc
  5315. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5316. Updated po files.
  5317. * po/aria2c.pot
  5318. * po/*.po
  5319. * po/*.gmo
  5320. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5322. * src/A2STR.cc
  5323. * src/A2STR.h
  5324. * src/ChunkedDecoder.cc
  5325. * src/ChunkedDecoder.h
  5326. * src/ChunkedEncoding.cc: Removed
  5327. * src/ChunkedEncoding.h: Removed
  5328. * src/DownloadCommand.cc
  5329. * src/DownloadCommand.h
  5330. * src/HttpDownloadCommand.cc
  5331. * src/HttpResponse.cc
  5332. * src/HttpResponse.h
  5333. * src/HttpResponseCommand.cc
  5334. * src/HttpSkipResponseCommand.cc
  5335. * src/HttpSkipResponseCommand.h
  5336. * src/Makefile.am
  5337. * src/TransferEncoding.h: Removed
  5338. * test/ChunkedDecoderTest.cc
  5339. * test/ChunkedEncodingTest.cc: Removed
  5340. * test/HttpResponseTest.cc
  5341. * test/Makefile.am
  5342. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5343. Use append instead of insert.
  5344. * src/GZipDecoder.cc
  5345. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5346. Updated doc
  5347. * src/Decoder.h
  5348. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Updated usage text for -s option.
  5350. * src/usage_text.h
  5351. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5353. * src/Request.cc
  5354. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Cleaned up configure.ac.
  5356. * configure.ac
  5357. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5359. AC_ARG_ENABLE.
  5360. * configure.ac
  5361. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5363. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5364. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5365. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5366. fly and writes decoded data to a local disk.
  5367. * README
  5368. * README.html
  5369. * configure.ac
  5370. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5371. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5372. * m4/libz.m4
  5373. * src/Decoder.h
  5374. * src/DownloadCommand.cc
  5375. * src/DownloadCommand.h
  5376. * src/Exception.h
  5377. * src/GZipDecoder.cc
  5378. * src/GZipDecoder.h
  5379. * src/HttpHeader.cc
  5380. * src/HttpHeader.h
  5381. * src/HttpRequest.cc
  5382. * src/HttpRequest.h
  5383. * src/HttpResponse.cc
  5384. * src/HttpResponse.h
  5385. * src/HttpResponseCommand.cc
  5386. * src/Makefile.am
  5387. * test/GZipDecoderTest.cc
  5388. * test/HttpRequestTest.cc
  5389. * test/HttpResponseTest.cc
  5390. * test/Makefile.am
  5391. * test/Makefile.in
  5392. * test/gzip_decode_test.gz
  5393. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5394. Clarified usage of -j option.
  5395. * src/usage_text.h
  5396. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5397. Disabled getting size from the response of RETR.
  5398. If SIZE command failed, then disable resuming and segmented downloading.
  5399. * src/FtpConnection.cc
  5400. * src/FtpConnection.h
  5401. * src/FtpNegotiationCommand.cc
  5402. * src/FtpNegotiationCommand.h
  5403. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5404. Use digits to find first byte of file size, which makes the intention
  5405. of the code clearer.
  5406. * src/FtpConnection.cc
  5407. Don't call validateTotalLength() when size is 0.
  5408. * src/FtpNegotiationCommand.cc
  5409. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Updated po files.
  5411. * po/aria2c.pot
  5412. * po/*.gmo
  5413. * po/*.po
  5414. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5415. Clarified usage text for --split option.
  5416. * src/usage_text.h
  5417. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5418. Bump up version number to 0.15.0dev. "dev" means "development"
  5419. version, which means I started the development of the next release!
  5420. * src/configure.ac
  5421. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5422. If FTP server returns negative response with REST raw command and
  5423. requested range is not 0, throw exception. If requested range is 0,
  5424. continue download a file from 0 byte.
  5425. * src/FtpNegotiationCommand.cc
  5426. * src/FtpNegotiationCommand.h
  5427. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. Supported FTP server which don't recognize SIZE raw command.
  5429. If SIZE raw command is failed, aria2 will try to get file size
  5430. from the response of RETR raw command. If both attempts are failed,
  5431. then resuming and segmented downloading are disabled.
  5432. * src/FtpConnection.cc
  5433. * src/FtpConnection.h
  5434. * src/FtpNegotiationCommand.cc
  5435. * src/FtpNegotiationCommand.h
  5436. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5437. * Release 0.14.0+1
  5438. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5439. Bump up version number to 0.14.0+1
  5440. * src/configure.ac
  5441. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5442. Fixed the code that refers static member variable from non-static
  5443. context.
  5444. * src/DefaultPeerStorage.cc
  5445. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. * Release 0.14.0
  5447. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5448. Added build test script
  5449. * build_test.sh
  5450. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5451. Updated ja.po
  5452. * src/ja.po
  5453. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5454. Bump up version number to 0.14.0
  5455. * src/configure.ac
  5456. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5457. Updated ja.po and fr.po. Great thanks for french translators and
  5458. Sebastien WILLEMIJNS.
  5459. * po/fr.po
  5460. * po/ja.po
  5461. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5462. Added configure option to enable/disable epoll support.
  5463. * configure.ac
  5464. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5465. Updated man page.
  5466. * doc/aria2c.1.txt
  5467. * doc/aria2c.1
  5468. * doc/aria2c.1.html
  5469. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5470. Added missing default value '5' to the usage of --split option.
  5471. * src/HelpItemFactory.cc
  5472. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5473. Filled up pieces based on the number of missing blocks, rather than
  5474. simplay the number of piece * block length.
  5475. * src/BtRequestFactory.h
  5476. * src/DefaultBtInteractive.cc
  5477. * src/DefaultBtInteractive.h
  5478. * src/DefaultBtRequestFactory.cc
  5479. * src/DefaultBtRequestFactory.h
  5480. * src/Piece.cc
  5481. * src/Piece.h
  5482. * test/BitfieldManTest.cc
  5483. * test/DefaultBtRequestFactoryTest.cc
  5484. * test/MockBtRequestFactory.h
  5485. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Made _epEvents a member variable.
  5487. * src/DownloadEngine.cc
  5488. * src/DownloadEngine.h
  5489. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5490. Cancel download if http redirect is bounded more than 20 times.
  5491. * src/AbstractCommand.cc
  5492. * src/HttpSkipResponseCommand.cc
  5493. * src/Request.cc
  5494. * src/Request.h
  5495. * test/RequestTest.cc
  5496. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Fixed unhandled exception(removed keyword `new').
  5498. * src/SocketCore.cc (initEPOLL)
  5499. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Removed visit(const MetaEntry*)
  5501. * src/MetaEntryVisitor.h:
  5502. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5503. and made them virtual.
  5504. * src/BencodeVisitor.h
  5505. * src/BencodeVisitor.cc
  5506. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. Updated po files.
  5508. * po/aria2c.pot
  5509. * po/*.po
  5510. * po/*.gmo
  5511. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5513. the number of socket to watch out.
  5514. * src/PeerInteractionCommand.cc
  5515. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. When there is not enough space in disk when writing a chunk of data,
  5517. aria2 now prints the message to the console to warn user and aborts
  5518. its download. Not all downloads are canceled because some downloads
  5519. may use another disk or partition. BUG#1640332
  5520. * src/AbstractDiskWriter.cc
  5521. * src/PeerAbstractCommand.cc
  5522. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5523. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5524. setHaltRequested(true) to cancel download.
  5525. * src/PeerInteractionCommand.h
  5526. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5528. socket from int to sock_t as sockets are unsigned in Windows.
  5529. For AsyncNameResolver, DownloadEngine, I did additional modification
  5530. for the portion of the code changed according to epoll support.
  5531. I defined sock_t in a2netcompat.h to use sock_t without including
  5532. SocketCore.h.
  5533. * src/AsyncNameResolver.cc
  5534. * src/AsyncNameResolver.h
  5535. * src/DownloadEngine.cc
  5536. * src/DownloadEngine.h
  5537. * src/SocketCore.cc
  5538. * src/SocketCore.h
  5539. * src/a2netcompat.h
  5540. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5541. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  5542. changes in the patch were applied.
  5543. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  5544. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  5545. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  5546. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  5548. a2io.h and common.h were modified.
  5549. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  5550. MinGW.
  5551. * src/common.h: Changed off_t to 64 bit in MinGW.
  5552. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5553. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5554. only a2netcompat.h is modified.
  5555. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  5556. directives.
  5557. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5558. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5559. only gai_strerror.h is modified.
  5560. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  5561. winsock errors in MinGW.
  5562. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  5564. follow sources are applied.
  5565. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  5566. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  5567. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  5568. I included locale.h from Platform.cc.
  5569. * src/main.cc: Moved common setup/teardown code to Platform class.
  5570. * test/AllTest.cc: Use Platform class.
  5571. Set locale to C in AllTest.cc to prevent the messages to be localized.
  5572. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5573. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  5574. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  5575. * test/HttpRequestTest.cc: Casted to off_t where it should.
  5576. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5577. Applied Ross's aria2-0.13.2+1-mingw.patch and
  5578. aria2-0.13.2+1-mingw-2.patch.
  5579. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  5580. systems which don't have termious.h. I moved the directive inside of
  5581. if(isTTY) { ... clause so that line is wiped out without termious.h.
  5582. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  5583. anyway.
  5584. * src/asctime_r.h
  5585. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  5586. I added 2nd argument to the prototype declaration.
  5587. * src/StringFormat.cc: Get rid of vasprintf.
  5588. * src/getaddrinfo.h: Fixed constants.
  5589. * configure.ac: Added the check for asctime_r function.
  5590. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  5591. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. Added writable test for Socket when the sending message is in progress.
  5593. Usually the sending message is piece message. Without wriable check,
  5594. upload latency is dropped to more than 1sec.
  5595. * src/PeerInteractionCommand.cc
  5596. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5597. Create only requested files and files which shares a piece with
  5598. requested file in multi-torrent downloads. Directory structures are
  5599. also created in the same rule.
  5600. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  5601. DiskWriterEntry as in the previous implementation.
  5602. * src/MultiDiskWriter.cc
  5603. * src/MultiFileAllocationIterator.cc
  5604. * src/MultiFileAllocationIterator.h
  5605. * test/MultiFileAllocationIteratorTest.cc
  5606. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Commented out -lprofiler
  5608. * src/Makefile.am
  5609. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5610. Bump up version number to 0.14.0b.
  5611. * src/configure.ac
  5612. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5613. Actively establish connection to peers in seeding, when peer cache
  5614. is not full and max upload speed limit is not reached.
  5615. * src/ActivePeerConnectionCommand.cc
  5616. * src/ActivePeerConnectionCommand.h
  5617. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  5619. to make room more fleshy, recently found peers.
  5620. Peer::_badConditionStartTime is not used anymore. Consider to remove
  5621. it.
  5622. * src/DefaultPeerStorage.cc
  5623. * test/DefaultPeerStorageTest.cc
  5624. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Returns cached data only when the previous receiveHandshake() is called
  5626. with peek = true.
  5627. * src/PeerConnection.cc (receiveHandshake)
  5628. * src/PeerConnection.h (receiveHandshake)
  5629. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5630. Changed default value of -s option from 1 to 5.
  5631. Also max value of -s option is changed from 5 to 16.
  5632. * src/HelpItemFactory.cc
  5633. * src/OptionHandlerFactory.cc
  5634. * src/option_processing.cc
  5635. * src/usage_text.h
  5636. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Changed -s options behavior. Now it means the number of connections
  5638. made simultaneously in each http/ftp download.
  5639. If 1 URL is specified, the behavior is the same with old implementation.
  5640. If -s N is given and more than N URLs are specified, first N URLs are
  5641. used and remaining URLs are used for backup. If less than N URLs are
  5642. specified, some of URLs are used more than once so that totally N
  5643. connections are made simultaneously.
  5644. * src/main.cc
  5645. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5646. Included missing iosfwd or ostream header.
  5647. * src/RequestGroupMan.cc
  5648. * src/TaggedItem.cc
  5649. * src/TaggedItem.h
  5650. * src/Util.cc
  5651. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5652. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  5653. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  5654. * src/HttpConnection.cc: Included missing sstream.
  5655. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5656. Added --bt-max-open-files option.
  5657. * src/DefaultPieceStorage.cc
  5658. * src/HelpItemFactory.cc
  5659. * src/MultiDiskAdaptor.cc
  5660. * src/MultiDiskAdaptor.h
  5661. * src/OptionHandlerFactory.cc
  5662. * src/option_processing.cc
  5663. * src/prefs.cc
  5664. * src/prefs.h
  5665. * src/usage_text.h
  5666. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5667. Fixed the bug that aria2 aborts when a path to a directory is given
  5668. in command-line.
  5669. * src/ProtocolDetector.cc
  5670. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Limited the number files opened in each BitTorrent download. The default
  5672. value is 100. The option to change this value will be added.
  5673. * src/MultiDiskAdaptor.cc
  5674. * src/MultiDiskAdaptor.h
  5675. * src/MultiFileAllocationIterator.cc
  5676. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Fixed the bug that HTTP downloads don't start with old libraries.
  5678. * src/HttpHeaderProcessor.cc
  5679. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5680. Use empty() instead of size() > 0.
  5681. * src/HttpConnection.cc
  5682. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5683. Drop connection if the incoming peer ID is the same with localhost's
  5684. one. The previous implementation drops connection when incoming peer's
  5685. IP address is the same with localhost's one.
  5686. * src/PeerListenCommand.cc
  5687. * src/DefaultBtInteractive.cc
  5688. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5689. Returns cached data without checking whether socket is readable
  5690. if the cache is available.
  5691. * src/PeerConnection.cc (receiveHandshake)
  5692. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Included stdint.h
  5694. * src/common.h
  5695. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Removed duplicate HAVE_GETTIMEOFDAY
  5697. * src/Makefile.am
  5698. * src/Makefile.in
  5699. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Use interval as a minInterval when minInterval is not supplied.
  5701. * src/DefaultBtAnnounce.cc
  5702. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5703. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  5704. attempt is failed, then 2nd attempt get kicked out more quickly.
  5705. And it is now static const member of DefaultBtAnnounce.
  5706. * src/DefaultBtAnnounce.h
  5707. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  5709. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  5710. * src/ActivePeerConnectionCommand.cc
  5711. * src/BtConstants.h
  5712. * src/BtRuntime.h
  5713. * src/DHTGetPeersCommand.cc
  5714. * src/DefaultBtAnnounce.cc
  5715. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  5716. BtRuntime::MAX_PEERS.
  5717. * src/DefaultPeerStorage.h
  5718. * src/InitiatorMSEHandshakeCommand.cc
  5719. * src/PeerInitiateConnectionCommand.cc
  5720. * src/PeerInteractionCommand.cc
  5721. * src/PeerReceiveHandshakeCommand.cc
  5722. * src/TrackerWatcherCommand.cc
  5723. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5724. Always Connect to _numNewConnection
  5725. * src/ActivePeerConnectionCommand.cc
  5726. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. Made `begin' unsigned int.
  5728. * src/GrowSegment.h
  5729. * src/Piece.cc
  5730. * src/Piece.h
  5731. * src/PiecedSegment.cc
  5732. * src/PiecedSegment.h
  5733. * src/Segment.h
  5734. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5735. Calculate piece hash when data is arrived if the data is arrived in
  5736. order. This removes additional read operation for hash calculation.
  5737. If the data is arrived in out of order, the hash is calucated when the
  5738. piece is completed. This is the same behavior as the old implementation.
  5739. * src/BtPieceMessage.cc
  5740. * src/DefaultBtProgressInfoFile.cc
  5741. * src/DefaultPieceStorage.cc
  5742. * src/DownloadCommand.cc
  5743. * src/DownloadCommand.h
  5744. * src/DownloadEngine.cc
  5745. * src/GrowSegment.cc
  5746. * src/GrowSegment.h
  5747. * src/Piece.cc
  5748. * src/Piece.h
  5749. * src/PiecedSegment.cc
  5750. * src/PiecedSegment.h
  5751. * src/Segment.h
  5752. * test/PieceTest.cc
  5753. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Try to keep the ordering of outgoing piece message.
  5755. * src/DefaultBtMessageDispatcher.cc
  5756. (DefaultBtMessageDispatcher::sendMessages)
  5757. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Fixed busy loop when error/hup epoll events occur.
  5759. * src/AbstractCommand.cc
  5760. * src/PeerAbstractCommand.cc
  5761. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5762. Added --bt-request-peer-speed-limit option, which was a constant
  5763. SLOW_SPEED_THRESHOLD.
  5764. * src/ActivePeerConnectionCommand.cc
  5765. * src/ActivePeerConnectionCommand.h
  5766. * src/BtConstants.h
  5767. * src/HelpItemFactory.cc
  5768. * src/OptionHandlerFactory.cc
  5769. * src/PeerReceiveHandshakeCommand.cc
  5770. * src/option_processing.cc
  5771. * src/prefs.cc
  5772. * src/prefs.h
  5773. * src/usage_text.h
  5774. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. Removed repeated call of getTopDirPath(). Instead, call it once and
  5776. cache the result.
  5777. * src/MultiDiskAdaptor.cc
  5778. * src/MultiDiskAdaptor.h
  5779. (mkdir, openFile, initAndOpenFile, openExistingFile)
  5780. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Fixed compile error on debian etch.
  5782. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  5783. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  5784. it is undefined.
  5785. * src/Util.cc (ULLONG_MAX)
  5786. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5787. Added epoll support. Use epoll if it is available. If not, use select.
  5788. When async dns is enabled in compile time, epoll support is enabled
  5789. only when aria2 is built with c-ares. This condition statement is
  5790. defined in a2io.h.
  5791. Currently aria2 supports both c-ares and ares, but ares is maintained
  5792. for quite a while and debian already has c-ares package, ares support
  5793. will be dropped in the future version.
  5794. * configure.ac
  5795. * src/AbstractCommand.cc
  5796. * src/AsyncNameResolver.cc
  5797. * src/AsyncNameResolver.h
  5798. * src/Command.cc
  5799. * src/Command.h
  5800. * src/DownloadEngine.cc
  5801. * src/DownloadEngine.h
  5802. * src/PeerAbstractCommand.cc
  5803. * src/SocketCore.cc
  5804. * src/SocketCore.h
  5805. * src/a2io.h
  5806. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  5808. directive.
  5809. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5810. Do not do write operation to /dev/null file.
  5811. * src/LogFactory.cc
  5812. * src/SimpleLogger.cc
  5813. Replaced vasprintf with vsnprintf
  5814. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5815. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. * src/BtRequestMessage.cc
  5817. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  5818. for segmentation fault caused by previous commit.
  5819. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Reduced the usage of gettimeofday().
  5821. * src/DefaultBtMessageDispatcher.cc
  5822. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  5823. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5824. * src/RequestSlot.cc
  5825. * src/RequestSlot.h
  5826. (RequestSlot::isTimeout)
  5827. Made RequestSlot have a reference to Piece object to avoid find
  5828. Piece repeatedly.
  5829. * src/DefaultBtMessageDispatcher.cc
  5830. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5831. * src/RequestSlot.cc
  5832. * src/RequestSlot.h
  5833. (RequestSlot::getPiece)
  5834. * test/DefaultBtMessageDispatcherTest.cc
  5835. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5836. * src/TimeA2.cc
  5837. * src/TimeA2.h
  5838. (Time::difference): New function.
  5839. (Time::elapsed): Done optimization.
  5840. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5841. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5842. directive.
  5843. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5844. * src/option_processing.cc: Added missing `defined' keyword to #if
  5845. directive.
  5846. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5847. Bump up version number to 0.13.2+1
  5848. * src/configure.ac
  5849. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5850. Refactored broken outstanding piece handling.
  5851. * src/DefaultPieceStorage.cc
  5852. * src/DefaultPieceStorage.h
  5853. * src/Piece.cc
  5854. * src/Piece.h
  5855. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5856. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5857. name collision of static variable and predefined macro.
  5858. * src/BtContext.cc
  5859. * src/BtContext.h
  5860. * src/CookieBoxFactory.cc
  5861. * src/CookieBoxFactory.h
  5862. * src/CookieParser.cc
  5863. * src/CookieParser.h
  5864. * src/DefaultBtContext.cc
  5865. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. * src/RequestGroup.cc
  5867. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5868. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. * Release 0.13.2
  5870. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5872. * po/fr.po
  5873. * po/ja.po
  5874. * po/aria2c.pot
  5875. * po/*.po
  5876. * po/*.gmo
  5877. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Bump up version number to 0.13.2
  5879. * src/configure.ac
  5880. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5881. Refactord.
  5882. * src/RequestGroupMan.cc
  5883. (removeStoppedGroup)
  5884. (fillRequestGroupFromReserver)
  5885. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Fixed compile error on Ubuntu.
  5887. * src/BtPieceMessage.cc
  5888. * src/MessageDigestHelper.cc
  5889. * src/Util.cc
  5890. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5891. Fixed compile error when configured with --disable-bittorrent
  5892. * test/DownloadHandlerFactoryTest.cc
  5893. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Done make update-po
  5895. * po/aria2c.pot
  5896. * po/*.po
  5897. * po/*.gmo
  5898. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5899. Bump up version number to 0.13.2rc.
  5900. * src/configure.ac
  5901. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5902. Made option name bold. Updated SYNOPSIS to make it more readable.
  5903. * doc/aria2c.1.txt
  5904. * doc/aria2c.1
  5905. * doc/aria2c.1.html
  5906. * src/version_usage.cc
  5907. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. Refactored. Use std::string instead of size and char*.
  5909. * Data.cc
  5910. * Data.h
  5911. * test/Data.cc
  5912. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5913. Added trimSelf(). Rewritten trim() to use trimSelf().
  5914. * Util.cc
  5915. * Util.h
  5916. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5918. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5919. Fixed compile error when configured with --disable-metalink.
  5920. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5921. * test/FeatureConfigTest.cc
  5922. * test/DownloadHandlerFactoryTest.cc
  5923. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5924. Fixed compile error when configured with --without-gnutls
  5925. --without-openssl
  5926. * src/main.cc
  5927. * test/DefaultBtProgressInfoFileTest.cc
  5928. * test/SegmentManTest.cc
  5929. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Fixed compile error with OpenSSL.
  5931. * src/IteratableChunkChecksumValidator.cc
  5932. * src/LibsslDHKeyExchange.h
  5933. * src/MessageDigestHelper.cc
  5934. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Revert the default value of --max-concurrent-downloads to 5.
  5936. Revert the default value of --metalink-servers to 5.
  5937. Man pages was also updated.
  5938. * src/option_processing.cc
  5939. * doc/aria2c.1.txt
  5940. * doc/aria2c.1.html
  5941. * doc/aria2c.1
  5942. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5943. Returns const reference:
  5944. DownloadContext::getPieceHash, DownloadContext::getName,
  5945. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5946. BtContext::getInfoHashAsString,
  5947. * src/BtContext.h
  5948. * src/DefaultBtContext.cc
  5949. * src/DefaultBtContext.h
  5950. * src/DownloadContext.h
  5951. * src/SingleFileDownloadContext.h
  5952. * test/MockBtContext.h
  5953. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5954. * src/RequestGroup.h (getDir): Removed.
  5955. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Returns const reference. The internal urlencode function was optimized
  5957. a little bit.
  5958. * src/Request.cc
  5959. * src/Request.h
  5960. * src/HttpRequest.cc
  5961. * src/HttpRequest.h
  5962. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. Defined option name and possible values as std::string to reduce
  5964. temporary string object creation in runtime.
  5965. * src/HelpItemFactory.cc
  5966. * src/LogFactory.cc
  5967. * src/Option.cc
  5968. * src/OptionHandlerFactory.cc
  5969. * src/option_processing.cc
  5970. * src/prefs.cc
  5971. * src/prefs.h
  5972. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Return const reference.
  5974. * src/DownloadHandlerConstants.cc
  5975. * src/DownloadHandlerConstants.h
  5976. (getMetalinkExtensions)
  5977. (getMetalinkContentTypes)
  5978. (getBtExtensions)
  5979. (getBtContentTypes)
  5980. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. * src/HttpHeader.cc (get): Rewritten.
  5982. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5983. Make HttpHeader::getFirst(...) return const reference.
  5984. * src/HttpHeader.cc
  5985. * src/HttpHeader.h
  5986. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5987. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5988. it with V_TRUE.
  5989. * src/DefaultPieceStorage.cc
  5990. * src/DownloadCommand.cc
  5991. * src/FtpNegotiationCommand.cc
  5992. * src/HttpRequest.cc
  5993. * src/InitiateConnectionCommand.cc
  5994. * src/RequestGroup.cc
  5995. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. Made Option::get(...) return const reference of std::string.
  5997. * src/Option.cc
  5998. * src/Option.h
  5999. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Replaced std:copy with insert.
  6001. * src/DefaultBtMessageDispatcher.cc
  6002. * src/DefaultPieceStorage.cc
  6003. * src/DownloadEngineFactory.cc
  6004. * src/RequestGroup.cc
  6005. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6006. Included SocketCore.h to fix compiler warning.
  6007. * src/InitiateConnectionCommand.cc
  6008. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Put piece selection strategy algorithm to RarestPieceSelector class,
  6010. Added a switch to choose whether randomized selection so that unit
  6011. tests emit same results in, possibly, win32.
  6012. * src/DefaultPieceStorage.cc
  6013. * src/DefaultPieceStorage.h
  6014. * src/RarestPieceSelector.cc
  6015. * src/RarestPieceSelector.h
  6016. * test/DefaultPieceStorageTest.cc
  6017. * test/RarestPieceSelectorTest.cc
  6018. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6019. Don't pool connection if HTTP proxy is enabled.
  6020. * src/FtpFinishDownloadCommand.cc
  6021. * src/FtpNegotiationCommand.cc
  6022. * src/HttpSkipResponseCommand.cc
  6023. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6024. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6025. * src/AbstractCommand.cc
  6026. * src/AbstractCommand.h
  6027. * src/ActivePeerConnectionCommand.cc
  6028. * src/FtpInitiateConnectionCommand.cc
  6029. * src/HttpInitiateConnectionCommand.cc
  6030. * src/InitiateConnectionCommandFactory.cc
  6031. * src/PeerAbstractCommand.cc
  6032. * src/PeerAbstractCommand.h
  6033. * src/PeerInitiateConnectionCommand.cc
  6034. * src/TrackerWatcherCommand.cc
  6035. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Sort RequestSlot in ascending order and manipulate them using
  6037. lower_bound.
  6038. * src/DefaultBtMessageDispatcher.cc
  6039. * src/DefaultBtMessageDispatcher.h
  6040. (getMessageQueue): Added const qualifier.
  6041. (getRequestSlots): Added const qualifier.
  6042. (sendMessages): Use empty() instead of size().
  6043. (doCancelSendingPieceAction): Use HandleEvent object.
  6044. (doAbortOutstandingRequestAction): Rewritten.
  6045. (doChokedAction): Rewritten.
  6046. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6047. (isOutstandingRequest): Rewritten.
  6048. (getOutstandingRequest): Rewritten.
  6049. (removeOutstandingRequest): Rewritten.
  6050. (addOutstandingRequest): Rewritten.
  6051. * src/RequestSlot.cc
  6052. * src/RequestSlot.h
  6053. (operator=): Rewritten.
  6054. (operator!=): New function.
  6055. (operator<): New function.
  6056. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. * src/DefaultBtRequestFactory.cc
  6058. (doChokedAction): Rewritten.
  6059. (removeCompletedPiece): Rewritten.
  6060. (removeTargetPiece): Rewritten.
  6061. (createRequestMessages): Added the debug log.
  6062. (createRequestMessagesOnEndGame: Added the debug log.
  6063. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. Added the debug log message.
  6065. * src/BtPieceMessage.cc (doReceivedAction)
  6066. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6068. used lower_bound to process them rather than linear search.
  6069. * src/DHTPeerAnnounceStorage.cc
  6070. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6072. peer has at least one completed piece.
  6073. * src/Peer.cc
  6074. * src/Peer.h
  6075. * src/PeerInteractionCommand.cc
  6076. * src/PeerSessionResource.cc
  6077. * src/PeerSessionResource.h
  6078. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Removed unnecessary sorting
  6080. * src/DefaultPieceStorage (DefaultPieceStorage)
  6081. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6082. Rewritten the portion of the code that mangaes allowed fast indexes.
  6083. * src/PeerSessionResource.cc
  6084. * src/PeerSessionResource.h
  6085. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Removed the invalid string including '\r' from ru.po and
  6087. did make update-po.
  6088. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Added --log-level and --summary-interval to man page.
  6090. * doc/aria2c.1.txt
  6091. * doc/aria2c.1.html
  6092. * doc/aria2c.1
  6093. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Added --log-level option to specify log level. Log messages under
  6095. the specified level are not output. Default value is `debug'.
  6096. * src/HelpItemFactory.cc
  6097. * src/LogFactory.cc
  6098. * src/LogFactory.h
  6099. * src/Logger.h
  6100. * src/OptionHandlerFactory.cc
  6101. * src/SimpleLogger.cc
  6102. * src/SimpleLogger.h
  6103. * src/main.cc
  6104. * src/option_processing.cc
  6105. * src/prefs.h
  6106. * src/usage_text.h
  6107. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6108. Print download progress summary of all parallel downloads in specified
  6109. interval, default 60 secs. While aria2 could download several files
  6110. in parallel (see -j option), it displayed just first download progress,
  6111. and the other downloads are hidden from the users. This new feature
  6112. prints all downloads currently in-progress to the console so that you
  6113. can check the status of all downloads. The interval can be adjusted
  6114. by --summary-interval option.
  6115. The progress readout is now cut so that all fits in the one line of
  6116. console.
  6117. * src/ConsoleStatCalc.cc
  6118. * src/ConsoleStatCalc.h
  6119. * src/HelpItemFactory.cc
  6120. * src/OptionHandlerFactory.cc
  6121. * src/RequestGroupMan.cc
  6122. * src/RequestGroupMan.h
  6123. * src/main.cc
  6124. * src/option_processing.cc
  6125. * src/prefs.h
  6126. * src/usage_text.h
  6127. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6129. * src/DownloadEngine.cc (DownloadEngine)
  6130. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6132. defined.
  6133. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6134. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Use erase+lower_bound+insert instead of sort.
  6136. * src/DefaultPieceStorage.cc (addPieceStats)
  6137. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6139. * src/A2STR.cc
  6140. * src/A2STR.h
  6141. * src/OptionParser.cc (parse)
  6142. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Defined fake filename `[tracker.announce]' as static const std::string.
  6144. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6145. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Defined default filename `index.html' as static const std::string
  6147. * src/SingleFileDownloadContext.cc
  6148. * src/SingleFileDownloadContext.h
  6149. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Defined "[MEMORY]" as static const std::string.
  6151. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6152. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Defined control file's version number as static const std::string.
  6154. * src/DefaultBtProgressInfoFile.cc
  6155. * src/DefaultBtProgressInfoFile.h
  6156. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Use Request::METHOD_GET
  6158. * src/RequestGroup.cc (createNextCommandWithAdj)
  6159. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Defined "OK", "ERR", "INPR" as static const std::string
  6161. * src/RequestGroupMan.cc (showDownloadResults)
  6162. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Defined default client used in extended handshake as static const
  6164. std::string
  6165. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6166. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6167. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6168. * src/HttpConnection.cc (eraseConfidentialInfo)
  6169. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6170. Defined default ftp user and password as static const std::string
  6171. * src/AuthConfigFactory.cc
  6172. * src/AuthConfigFactory.h
  6173. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Defined strings used in netrc as static const std::string
  6175. * src/Netrc.cc
  6176. * src/Netrc.h
  6177. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6178. Defined HTTP status as static const std::string
  6179. * src/AbstractProxyResponseCommand.cc
  6180. * src/HttpHeader.cc
  6181. * src/HttpHeader.h
  6182. * src/HttpResponse.cc
  6183. * src/HttpResponseCommand.cc
  6184. * src/HttpSkipResponseCommand.cc
  6185. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Defined "\r\n", "A", "I" as static const std::string
  6187. * src/A2STR.cc
  6188. * src/A2STR.h
  6189. * src/FtpConnection.cc
  6190. * src/FtpConnection.h
  6191. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6192. Added COLON_C(".") and used it in Request::parseUrl()
  6193. * src/A2STR.cc
  6194. * src/A2STR.h
  6195. * src/Request.cc (parseUrl)
  6196. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6197. Changed the type of padName from `const std::string&' to `const char*'.
  6198. * src/MSEHandshake.cc (verifyPadLength)
  6199. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. Defined "sha1" as static const std::string.
  6201. * src/MetalinkParserController.cc
  6202. * src/MetalinkParserController.h
  6203. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6204. Defined message digest algorithm name as static const std::string
  6205. * src/DHTTokenTracker.cc
  6206. * src/DHTUtil.cc
  6207. * src/DefaultBtContext.cc
  6208. * src/MSEHandshake.cc
  6209. * src/MessageDigestHelper.cc
  6210. * src/Peer.cc
  6211. * src/messageDigest.cc
  6212. * src/messageDigest.h
  6213. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6214. Made string literals used in SAX parser static const std::string.
  6215. * src/FileMetalinkParserState.cc
  6216. * src/FileMetalinkParserState.h
  6217. * src/FilesMetalinkParserState.cc
  6218. * src/FilesMetalinkParserState.h
  6219. * src/InitialMetalinkParserState.cc
  6220. * src/InitialMetalinkParserState.h
  6221. * src/MetalinkMetalinkParserState.cc
  6222. * src/MetalinkMetalinkParserState.h
  6223. * src/PiecesMetalinkParserState.cc
  6224. * src/PiecesMetalinkParserState.h
  6225. * src/ResourcesMetalinkParserState.cc
  6226. * src/ResourcesMetalinkParserState.h
  6227. * src/VerificationMetalinkParserState.cc
  6228. * src/VerificationMetalinkParserState.h
  6229. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6230. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6231. * src/A2STR.cc
  6232. * src/A2STR.h
  6233. * src/File.cc
  6234. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6235. Defined static const std::string IP("ip"), PORT("port") and use them
  6236. instead of string literals.
  6237. * src/DefaultPeerListProcessor.cc
  6238. * src/DefaultPeerListProcessor.h
  6239. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Made string literals for torrent file processing static const
  6241. std::string.
  6242. * src/BtContext.cc
  6243. * src/BtContext.h
  6244. * src/DefaultBtContext.cc
  6245. * src/DefaultBtContext.h
  6246. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Made string literal for tracker response static const std::string
  6248. * src/BtAnnounce.cc
  6249. * src/BtAnnounce.h
  6250. * src/DefaultBtAnnounce.cc
  6251. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Use DHTMessage::T instead of "t".
  6253. * src/DHTMessageTracker.cc (messageArrived)
  6254. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Made keyName static const. Made trimmed charset static const
  6256. std::string.
  6257. * src/Util.cc (getContentDispositionFilename)
  6258. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6259. Made USER_AGENT const. Made "/" static const std::string.
  6260. * src/A2STR.cc
  6261. * src/A2STR.h
  6262. * src/HttpRequest.cc
  6263. * src/HttpRequest.h
  6264. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Made string listeral to static const std::string:
  6266. "Content-Range", "Content-Length"
  6267. * src/HttpHeader.cc
  6268. * src/HttpHeader.h
  6269. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Made string listeral to static const std::string.
  6271. * src/HttpConnection.cc
  6272. * src/HttpHeader.cc
  6273. * src/HttpHeader.h
  6274. * src/HttpResponse.cc
  6275. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Made string listeral to static const std::string.
  6277. * src/A2STR.cc
  6278. * src/A2STR.h
  6279. * src/SimpleLogger.cc
  6280. * src/SimpleLogger.h
  6281. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6282. Made string literal to static const std::string.
  6283. Rewritten CookieParser::setField.
  6284. * src/A2STR.cc
  6285. * src/A2STR.h
  6286. * src/CookieBoxFactory.cc
  6287. * src/CookieBoxFactory.h
  6288. * src/CookieParser.cc
  6289. * src/CookieParser.h
  6290. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Made string literal to static const std::string
  6292. * src/DHTAbstractMessage.cc
  6293. * src/DHTAnnouncePeerMessage.cc
  6294. * src/DHTAnnouncePeerMessage.h
  6295. * src/DHTAnnouncePeerReplyMessage.cc
  6296. * src/DHTAnnouncePeerReplyMessage.h
  6297. * src/DHTFindNodeMessage.cc
  6298. * src/DHTFindNodeMessage.h
  6299. * src/DHTFindNodeReplyMessage.cc
  6300. * src/DHTFindNodeReplyMessage.h
  6301. * src/DHTGetPeersMessage.cc
  6302. * src/DHTGetPeersMessage.h
  6303. * src/DHTGetPeersReplyMessage.cc
  6304. * src/DHTGetPeersReplyMessage.h
  6305. * src/DHTMessage.cc
  6306. * src/DHTMessage.h
  6307. * src/DHTMessageFactoryImpl.cc
  6308. * src/DHTMessageReceiver.cc
  6309. * src/DHTPingMessage.cc
  6310. * src/DHTPingMessage.h
  6311. * src/DHTPingReplyMessage.cc
  6312. * src/DHTPingReplyMessage.h
  6313. * src/DHTQueryMessage.cc
  6314. * src/DHTQueryMessage.h
  6315. * src/DHTResponseMessage.cc
  6316. * src/DHTResponseMessage.h
  6317. * src/DHTUnknownMessage.cc
  6318. * src/DHTUnknownMessage.h
  6319. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6320. Made string literal to static const std::string
  6321. * src/BtChokeMessage.cc (toString)
  6322. * src/BtHaveAllMessage.cc (toString)
  6323. * src/BtHaveNoneMessage.cc (toString)
  6324. * src/BtInterestedMessage.cc (toString)
  6325. * src/BtNotInterestedMessage.cc (toString)
  6326. * src/BtUnchokeMessage.cc (toString)
  6327. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Replaced "" with static const variable A2STR::NIL.
  6329. Replaced string comparison against "" with std::string::empty().
  6330. Added PROTO_* to Request class and use them as a protocol string
  6331. constant.
  6332. Made "started", "stopped", "completed" static const variable in
  6333. AnnounceList class.
  6334. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. Updated translations. Great thanks to translators.
  6336. * po/ca.po
  6337. * po/de.po
  6338. * po/fr.po
  6339. * po/it.po
  6340. * po/ja.po
  6341. * po/ru.po
  6342. * po/zh_CN.po
  6343. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6344. Updated man page; categorized options and fixed typo.
  6345. * doc/aria2c.1.txt
  6346. * doc/aria2c.1.html
  6347. * doc/aria2c.1
  6348. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6349. Removed const ref
  6350. * src/MetalinkEntry.cc (AddProtocolPreference)
  6351. * src/RequestGroup.cc (FindServerHostByHostname)
  6352. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Rewritten Accept-Features handling.
  6354. * src/HttpRequestCommand.cc (createHttpRequest)
  6355. * src/a2functional.h
  6356. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Changed method signature:
  6358. DHTAbstractNodeLookupTask::toEntries
  6359. * src/DHTAbstractNodeLookupTask.cc
  6360. * src/DHTAbstractNodeLookupTask.h
  6361. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Changed method signature:
  6363. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6364. * src/BtContext.h
  6365. * src/DefaultBtContext.cc
  6366. * src/DefaultBtContext.h
  6367. * src/DefaultBtInteractive.cc
  6368. * test/DefaultBtContextTest.cc
  6369. * test/MockBtContext.h
  6370. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Changed method signature:
  6372. MultiFileAllocationIterator::makeDiskWriterEntries
  6373. * src/MultiFileAllocationIterator.cc
  6374. * src/MultiFileAllocationIterator.h
  6375. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Changed method sinature:
  6377. MetalinkEntry::toFileEntry,
  6378. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6379. Metalinker::queryEntry
  6380. * src/Metalink2RequestGroup.cc
  6381. * src/MetalinkEntry.cc
  6382. * src/MetalinkEntry.h
  6383. * src/MetalinkHelper.cc
  6384. * src/MetalinkHelper.h
  6385. * src/Metalinker.cc
  6386. * src/Metalinker.h
  6387. * src/main.cc
  6388. * test/MetalinkHelperTest.cc
  6389. * test/MetalinkerTest.cc
  6390. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Changed method sinature:
  6392. RequestGroup::getURIs
  6393. * src/RequestGroup.cc
  6394. * src/RequestGroup.h
  6395. * test/Metalink2RequestGroupTest.cc
  6396. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Changed method signature:
  6398. PeerListProcessor::extractPeer
  6399. * src/CompactPeerListProcessor.cc
  6400. * src/CompactPeerListProcessor.h
  6401. * src/DefaultBtAnnounce.cc
  6402. * src/DefaultPeerListProcessor.cc
  6403. * src/DefaultPeerListProcessor.h
  6404. * src/DelegatingPeerListProcessor.cc
  6405. * src/DelegatingPeerListProcessor.h
  6406. * src/PeerListProcessor.h
  6407. * src/UTPexExtensionMessage.cc
  6408. * test/DefaultPeerListProcessorTest.cc
  6409. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6410. Changed method signature:
  6411. BtRequestFactory::createRequestMessages,
  6412. BtRequestFactory::createRequestMessagesOnEndGame
  6413. * src/BtRequestFactory.h
  6414. * src/DefaultBtInteractive.cc
  6415. * src/DefaultBtRequestFactory.cc
  6416. * src/DefaultBtRequestFactory.h
  6417. * test/DefaultBtRequestFactoryTest.cc
  6418. * test/MockBtRequestFactory.h
  6419. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Changed method signature:
  6421. PieceStorage::getInFlightPieces
  6422. * src/DefaultBtProgressInfoFile.cc
  6423. * src/DefaultPieceStorage.cc
  6424. * src/DefaultPieceStorage.h
  6425. * src/PieceStorage.h
  6426. * src/UnknownLengthPieceStorage.cc
  6427. * src/UnknownLengthPieceStorage.h
  6428. * test/DefaultBtProgressInfoFileTest.cc
  6429. * test/MockPieceStorage.h
  6430. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Changed method signature:
  6432. PostDownloadHandler::getNextRequestGroups
  6433. Metalink2RequestGroup::generate
  6434. RequestGroup::postDownloadProcessing
  6435. * src/BtPostDownloadHandler.cc
  6436. * src/BtPostDownloadHandler.h
  6437. * src/Metalink2RequestGroup.cc
  6438. * src/Metalink2RequestGroup.h
  6439. * src/MetalinkPostDownloadHandler.cc
  6440. * src/MetalinkPostDownloadHandler.h
  6441. * src/PostDownloadHandler.h
  6442. * src/RequestGroup.cc
  6443. * src/RequestGroup.h
  6444. * src/RequestGroupMan.cc
  6445. * src/main.cc
  6446. * test/BtPostDownloadHandlerTest.cc
  6447. * test/Metalink2RequestGroupTest.cc
  6448. * test/MetalinkPostDownloadHandlerTest.cc
  6449. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Rewritten AccRequestGroup
  6451. * src/main.cc
  6452. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Rewritten.
  6454. * src/TaggedItem.cc (toTagString)
  6455. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. Rewritten Accept-Features handling.
  6457. * src/HttpRequestCommand.cc (createHttpRequest)
  6458. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Rewritten accept types handling.
  6460. * HttpRequest.cc (createRequest)
  6461. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Rewritten
  6463. * src/FeatureConfig.cc (featureSummary)
  6464. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6465. Changed method signature:
  6466. PeerStorage::getActivePeers
  6467. * src/DHTPeerAnnounceEntry.cc
  6468. * src/DefaultPeerStorage.cc
  6469. * src/DefaultPeerStorage.h
  6470. * src/PeerStorage.h
  6471. * test/DefaultPeerStorageTest.cc
  6472. * test/MockPeerStorage.h
  6473. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6474. Changed method signature:
  6475. DHTPeerAnnounceStorage::getPeers,
  6476. DHTPeerAnnounceEntry::getPeers
  6477. * src/DHTGetPeersMessage.cc
  6478. * src/DHTPeerAnnounceEntry.cc
  6479. * src/DHTPeerAnnounceEntry.h
  6480. * src/DHTPeerAnnounceStorage.cc
  6481. * src/DHTPeerAnnounceStorage.h
  6482. * test/DHTAnnouncePeerMessageTest.cc
  6483. * test/DHTPeerAnnounceEntryTest.cc
  6484. * test/DHTPeerAnnounceStorageTest.cc
  6485. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6486. Changed method signature:
  6487. NameResolver::resolve
  6488. * src/DHTEntryPointNameResolveCommand.cc
  6489. * src/InitiateConnectionCommand.cc
  6490. * src/NameResolver.cc
  6491. * src/NameResolver.h
  6492. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6493. Changed method signature:
  6494. PieceStorage::getAdvertisedPieceIndexes
  6495. * src/DefaultBtInteractive.cc
  6496. * src/DefaultPieceStorage.cc
  6497. * src/DefaultPieceStorage.h
  6498. * src/PieceStorage.h
  6499. * src/UnknownLengthPieceStorage.h
  6500. * test/MockPieceStorage.h
  6501. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Changed method signature:
  6503. SegmentMan::getInFlightSegment
  6504. * src/AbstractCommand.cc
  6505. * src/SegmentMan.cc
  6506. * src/SegmentMan.h
  6507. * test/SegmentManTest.cc
  6508. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6509. Changed method signature:
  6510. DHTAbstractNodeLookupTask::getNodesFromMessage
  6511. * src/DHTAbstractNodeLookupTask.cc
  6512. * src/DHTAbstractNodeLookupTask.h
  6513. * src/DHTNodeLookupTask.cc
  6514. * src/DHTNodeLookupTask.h
  6515. * src/DHTPeerLookupTask.cc
  6516. * src/DHTPeerLookupTask.h
  6517. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6519. * src/AbstractCommand.cc
  6520. * src/BtCheckIntegrityEntry.cc
  6521. * src/BtCheckIntegrityEntry.h
  6522. * src/BtFileAllocationEntry.cc
  6523. * src/BtFileAllocationEntry.h
  6524. * src/BtSetup.cc
  6525. * src/BtSetup.h
  6526. * src/CheckIntegrityCommand.cc
  6527. * src/CheckIntegrityEntry.h
  6528. * src/ChecksumCheckIntegrityEntry.cc
  6529. * src/ChecksumCheckIntegrityEntry.h
  6530. * src/DHTSetup.cc
  6531. * src/DHTSetup.h
  6532. * src/DownloadEngine.cc
  6533. * src/FileAllocationCommand.cc
  6534. * src/FileAllocationEntry.h
  6535. * src/RequestGroup.cc
  6536. * src/RequestGroup.h
  6537. * src/RequestGroupMan.cc
  6538. * src/RequestGroupMan.h
  6539. * src/StreamCheckIntegrityEntry.cc
  6540. * src/StreamCheckIntegrityEntry.h
  6541. * src/StreamFileAllocationEntry.cc
  6542. * src/StreamFileAllocationEntry.h
  6543. * src/TrackerWatcherCommand.cc
  6544. * src/a2functional.h
  6545. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. Changed method signature:
  6547. BNode::findClosestKNodes, BNode:: enumerateBucket,
  6548. DHTBucket::getGoodNodes,
  6549. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  6550. * src/BNode.cc
  6551. * src/BNode.h
  6552. * src/DHTAbstractNodeLookupTask.cc
  6553. * src/DHTAutoSaveCommand.cc
  6554. * src/DHTBucket.cc
  6555. * src/DHTBucket.h
  6556. * src/DHTBucketRefreshTask.cc
  6557. * src/DHTFindNodeMessage.cc
  6558. * src/DHTGetPeersMessage.cc
  6559. * src/DHTRoutingTable.cc
  6560. * src/DHTRoutingTable.h
  6561. * test/BNodeTest.cc
  6562. * test/DHTBucketTest.cc
  6563. * test/DHTRoutingTableTest.cc
  6564. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6565. In piece selection functions, Pass std::deque<...> by reference rather
  6566. than returning it.
  6567. * src/BitfieldMan.cc
  6568. * src/BitfieldMan.h
  6569. * src/DefaultBtRequestFactory.cc
  6570. * src/DefaultPieceStorage.cc
  6571. * src/Piece.cc
  6572. * src/Piece.h
  6573. * test/BitfieldManTest.cc
  6574. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6575. Implemented rarest piece first piece selection strategy.
  6576. * src/AbstractBtMessage.cc
  6577. * src/AbstractBtMessage.h
  6578. * src/BitfieldMan.cc
  6579. * src/BitfieldMan.h
  6580. * src/BtBitfieldMessage.cc
  6581. * src/BtHaveAllMessage.cc
  6582. * src/BtHaveMessage.cc
  6583. * src/DefaultPieceStorage.cc
  6584. * src/DefaultPieceStorage.h
  6585. * src/PeerInteractionCommand.cc
  6586. * src/PieceStorage.h
  6587. * src/UnknownLengthPieceStorage.h
  6588. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Rewritten readData and writeData.
  6590. * src/MultiDiskAdaptor.cc
  6591. * src/MultiDiskAdaptor.h
  6592. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6593. Move \n out of the message "Usage: ...".
  6594. * src/version_usage.cc
  6595. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6596. Bump up version number to 0.13.2b.
  6597. * configure.ac
  6598. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6599. Added const qualifier to argument Exception& e.
  6600. * src/Logger.h
  6601. * src/SimpleLogger.cc
  6602. * src/SimpleLogger.h
  6603. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Pool connection when CWD, SIZE command fails.
  6605. * src/FtpNegotiationCommand.cc
  6606. * src/FtpNegotiationCommand.h
  6607. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6608. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  6609. * src/HttpResponseCommand.cc
  6610. * src/HttpSkipResponseCommand.cc
  6611. * src/HttpSkipResponseCommand.h
  6612. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6613. Pool connection when a server returns 4xx, 5xx responses.
  6614. * src/HttpNullDownloadCommand.cc
  6615. * src/HttpNullDownloadCommand.h
  6616. * src/HttpResponse.cc
  6617. * src/HttpResponse.h
  6618. * src/HttpResponseCommand.cc
  6619. * src/HttpResponseCommand.h
  6620. * test/HttpResponseTest.cc
  6621. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Print usage when no URL is specifed or bad command-line option is
  6623. specified.
  6624. * src/HelpItemFactory.cc
  6625. * src/help_tags.h
  6626. * src/option_processing.cc
  6627. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6628. Removed duplicate log message.
  6629. * src/AbstractCommand.cc (asyncResolveHostname)
  6630. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6631. Updated man page: --async-dns and --ftp-reuse-connection were added.
  6632. Changed -j option's default value from 5 to 1.
  6633. Added new examples using protocol auto detection feature.
  6634. Removed -T, -M usage where it can be omitted.
  6635. * doc/aria2c.1.txt
  6636. * doc/aria2c.1.html
  6637. * doc/aria2c.1.txt
  6638. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6639. Updated command-line usage text, so that it tells users that they
  6640. can specify any number of torrent files and metalink files in
  6641. command-line.
  6642. * src/version_usage.cc
  6643. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6644. Changed the default value of -j option to 1.
  6645. * src/HelpItemFactory.cc
  6646. * src/option_processing.cc
  6647. * src/usage_text.h
  6648. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Added the ability to reuse connection in FTP and it is enabled by
  6650. default. It can be disabled by --ftp-reuse-connection=false option.
  6651. * src/Command.cc
  6652. * src/DownloadCommand.cc
  6653. * src/FtpDownloadCommand.cc
  6654. * src/FtpDownloadCommand.h
  6655. * src/FtpFinishDownloadCommand.cc
  6656. * src/FtpFinishDownloadCommand.h
  6657. * src/FtpInitiateConnectionCommand.cc
  6658. * src/FtpNegotiationCommand.cc
  6659. * src/FtpNegotiationCommand.h
  6660. * src/HelpItemFactory.cc
  6661. * src/Makefile.am
  6662. * src/Makefile.in
  6663. * src/OptionHandlerFactory.cc
  6664. * src/option_processing.cc
  6665. * src/prefs.h
  6666. * src/usage_text.h
  6667. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Call Command::transitStatus() before calling Command::execute(),
  6669. so that the status change made in execute() is not cleared.
  6670. * src/DownloadEngine.cc
  6671. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6672. Removed forward declaration of SocketCore class.
  6673. * src/HttpDownloadCommand.h
  6674. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6675. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  6676. in InitiateConnectionCommandFactory. They should be set only when
  6677. the protocol is HTTP or HTTPS.
  6678. * src/InitiateConnectionCommandFactory.cc
  6679. * src/RequestGroup.cc
  6680. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. Fixed infinite loop in checksum checking.
  6682. * src/IteratableChecksumValidator.cc
  6683. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Set _supportsPersistentConnection to true by default.
  6685. * src/Request.cc
  6686. * src/RequestGroup.cc
  6687. * test/HttpRequestTest.cc
  6688. * test/RequestTest.cc
  6689. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Added timeout to socket pool. The default timeout is 15 seconds,
  6691. which is the same value Apache uses.
  6692. * src/DownloadEngine.cc
  6693. * src/DownloadEngine.h
  6694. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. Fixed misuse of multimap::find()
  6696. * src/HttpHeader.cc
  6697. * test/HttpHeaderTest.cc
  6698. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6699. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  6700. option.
  6701. The asynchronous DNS is not capable of IPv6 yet.
  6702. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  6703. least for HTTP download.
  6704. * src/AbstractCommand.cc
  6705. * src/AbstractCommand.h
  6706. * src/AsyncNameResolver.cc
  6707. * src/AsyncNameResolver.h
  6708. * src/DHTEntryPointNameResolveCommand.cc
  6709. * src/DHTEntryPointNameResolveCommand.h
  6710. * src/DownloadEngine.cc
  6711. * src/DownloadEngine.h
  6712. * src/FtpInitiateConnectionCommand.cc
  6713. * src/FtpInitiateConnectionCommand.h
  6714. * src/HelpItemFactory.cc
  6715. * src/HttpInitiateConnectionCommand.cc
  6716. * src/HttpInitiateConnectionCommand.h
  6717. * src/InitiateConnectionCommand.cc
  6718. * src/InitiateConnectionCommand.h
  6719. * src/Makefile.am
  6720. * src/Makefile.in
  6721. * src/NameResolver.cc
  6722. * src/NameResolver.h
  6723. * src/OptionHandlerFactory.cc
  6724. * src/SocketCore.cc
  6725. * src/SocketCore.h
  6726. * src/Util.cc
  6727. * src/Util.h
  6728. * src/option_processing.cc
  6729. * src/prefs.h
  6730. * src/usage_text.h
  6731. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Updated man page: --quiet, --header were added.
  6733. --metalink-servers and --enable-http-keep-alive option were updated.
  6734. * doc/aria2c.1
  6735. * doc/aria2c.1.html
  6736. * doc/aria2c.1.txt
  6737. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. Enable HTTP keep-alive by default.
  6739. * src/HelpItemFactory.cc
  6740. * src/option_processing.cc
  6741. * src/usage_text.h
  6742. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. Disable http keep-alive if the remote server is not HTTP/1.1.
  6744. * src/HttpConnection.cc
  6745. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6746. Receive content body of 302 response so that the connection can be
  6747. reused later when http keep-alive is enabled.
  6748. * src/HttpNullDownloadCommand.cc
  6749. * src/HttpNullDownloadCommand.h
  6750. * src/HttpResponseCommand.cc
  6751. * src/HttpResponseCommand.h
  6752. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. const SharedHandle<Request> -> const SharedHandle<Request>&
  6754. * src/FtpDowndloadCommand.cc
  6755. * src/FtpDowndloadCommand.h
  6756. * src/HttpDownloadCommand.cc
  6757. * src/HttpDownloadCommand.h
  6758. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. Fixed the bug that the control file(.aria2 file) is not renamed
  6760. according to tryAutoFileRenaming().
  6761. tryAutoFileRenaming() was rewritten so that if both renamed file and
  6762. its control file exist, use them and continue download.
  6763. The old implementation didn't take into account of control file's
  6764. existence, so basically you couldn't continue download of renamed file.
  6765. * src/BtProgressInfoFile.h
  6766. * src/DefaultBtProgressInfoFile.cc
  6767. * src/DefaultBtProgressInfoFile.h
  6768. * src/NullProgressInfoFile.h
  6769. * src/RequestGroup.cc
  6770. * test/DefaultBtProgressInfoFileTest.cc
  6771. * test/MockBtProgressInfoFile.h
  6772. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6773. Change the default value of --metalink-servers option from `5' to `1'.
  6774. * src/HelpItemFactory.cc
  6775. * src/option_processing.cc
  6776. * src/usage_text.h
  6777. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6778. Reimplemented transparent metalink using Accept request header.
  6779. * src/HttpRequest.cc
  6780. * src/HttpRequest.h
  6781. * src/HttpRequestCommand.cc
  6782. * src/Metalink2RequestGroup.cc
  6783. * src/RequestGroup.cc
  6784. * src/RequestGroup.h
  6785. * test/HttpRequestTest.cc
  6786. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. Bump up version number to 0.13.2a
  6788. * configure.ac
  6789. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6790. Updated configure.ac using the result of autoscan.
  6791. * configure.ac
  6792. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Fixed compilation error without gcrypt/openssl.
  6794. * src/DownloadCommand.cc
  6795. * src/DownloadCommand.h
  6796. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. Reorganized version information so that it can be displayed in a
  6798. standard terminal screen without scrolling.
  6799. Removed http, ftp from Configuration section, because they are always
  6800. enabled.
  6801. * src/FeatureConfig.cc
  6802. * src/FeatureConfig.h
  6803. * src/main.cc
  6804. * src/messageDigest.cc
  6805. * src/messageDigest.h
  6806. * src/version_usage.cc
  6807. * test/FeatureConfigTest.cc
  6808. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. Masked user ID in log.
  6810. * src/FtpConnection.cc (sendUser)
  6811. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6812. Removed query part from filename in HTTP download. The query part means
  6813. the substring after "?" in URL. Firefox seems do the same thing.
  6814. A query part is sometimes very long and not suitable to filename,
  6815. so I think it is better to remove it from filename.
  6816. * src/HttpRequest.cc
  6817. * src/HttpRequest.h
  6818. * src/Request.cc
  6819. * src/Request.h
  6820. * test/HttpRequestTest.cc
  6821. * test/RequestTest.cc
  6822. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6823. Rewritten Exception class. Throw exception object, not its pointer and
  6824. catch by reference, so that remove problematic delete operator for
  6825. catched exception.
  6826. * src/Exception.cc
  6827. * src/Exception.h
  6828. * test/ExceptionTest.cc
  6829. * src/*: All files throwing/catching exception.
  6830. * test/*: All files throwing/catching exception.
  6831. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6832. Now auto protocol detection is enabled without -Z option.
  6833. But there is a important difference between with/without -Z optoin.
  6834. For example, if you type:
  6835. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6836. then, aria2 interprets there are 3 request groups:
  6837. (1) http://host/file, http://mirror/file <-- multi-source download
  6838. (2) file1.torrent
  6839. (3) file2.metalink
  6840. On the other hand, if you invoke above command with -Z option, it is
  6841. interpreted as 4 request groups:
  6842. (1) http://host/file
  6843. (2) file1.torrent
  6844. (3) file2.metalink
  6845. (4) http://mirror/file
  6846. I think usually user don't mix multi-source URLs and torrent files, so
  6847. there is no big problem here.
  6848. * src/main.cc
  6849. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6850. Fixed the bug that causes segmentaion fault when reading XML containing
  6851. unescapsed character like '&'.
  6852. Also a modification was made which avoids adding unnecessary
  6853. characters stack and appending unused string.
  6854. * src/ExpatMetalinkProcessor.cc
  6855. * src/FileMetalinkParserState.h
  6856. * src/FilesMetalinkParserState.h
  6857. * src/FinMetalinkParserState.h
  6858. * src/HashMetalinkParserState.h
  6859. * src/InitialMetalinkParserState.h
  6860. * src/LanguageMetalinkParserState.h
  6861. * src/MetalinkMetalinkParserState.h
  6862. * src/MetalinkParserState.h
  6863. * src/MetalinkParserStateMachine.cc
  6864. * src/MetalinkParserStateMachine.h
  6865. * src/OSMetalinkParserState.h
  6866. * src/PieceHashMetalinkParserState.h
  6867. * src/PiecesMetalinkParserState.h
  6868. * src/ResourcesMetalinkParserState.h
  6869. * src/SizeMetalinkParserState.h
  6870. * src/SkipTagMetalinkParserState.h
  6871. * src/URLMetalinkParserState.h
  6872. * src/VerificationMetalinkParserState.h
  6873. * src/VersionMetalinkParserState.h
  6874. * src/XML2SAXMetalinkProcessor.cc
  6875. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Added StringFormat class, which internally calls vasprintf.
  6877. operator<< is defined for this class, so it can be used with iostream
  6878. classes nicely. SimpleLogger and following functions are rewritten
  6879. using StringFormat class.
  6880. Besides, now Logger class's methods are non-const, many classes
  6881. that has a const Logger* as a member variable are modified to remove
  6882. const qualifier from the variable declaration.
  6883. * src/HelpItemFactory.cc
  6884. * src/Request.cc
  6885. * src/SimpleLogger.cc
  6886. * src/StringFormat.cc
  6887. * src/StringFormat.h
  6888. * src/Util.cc
  6889. * src/option_processing.cc
  6890. * src/version_usage.cc
  6891. * test/StringFormatTest.cc
  6892. * src/*.h: The classes that has const Logger* as a member variable.
  6893. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6895. failed. Also fixed memory link when exception is thrown there.
  6896. * src/main.cc (AccRequestGroup)
  6897. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6898. Added build-in "Accept-Features" support. For now only "metalink" is
  6899. used in this header field.
  6900. This "metalink" value is removed from the list when connecting URLs
  6901. fed by metalink file to avoid loop in "transparent" metlaink.
  6902. * src/HttpRequest.cc
  6903. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6904. header is also held in this variable. Also renamed setUserHeaders as
  6905. addHeader and it was rewritten to add header not just to clear the old
  6906. value.
  6907. * src/HttpRequestCommand.cc
  6908. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6909. from "Accept-Features" list.
  6910. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6911. default.
  6912. * src/RequestGroup.h
  6913. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6914. * src/a2functional.h: Included <string> because Concat class depends on
  6915. it.
  6916. * test/HttpRequestTest.cc
  6917. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6918. Added comment
  6919. * src/RequestGroup.cc (createNextCommand)
  6920. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6921. Capitalized METHOD_GET and METHOD_HEAD
  6922. * src/Request.cc
  6923. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Added getDownloadResults() method
  6925. * src/RequestGroupMan.cc
  6926. * src/RequestGroupMan.h
  6927. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. Fixed the bug that aria2 exits when commands is empty() but
  6929. _routineCommands are not.
  6930. * src/DownloadEngine.cc
  6931. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6932. Use the default value pulled from Option object in HelpItemFactory.
  6933. except options whose defualt value is embedded in a usage text.
  6934. * src/HelpItemFactory.cc
  6935. * src/HelpItemFactory.h
  6936. * src/option_processing.cc
  6937. * src/version_usage.cc
  6938. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Added --quiet option to make aria2 quiet (no console output).
  6940. --quiet option is tagged with ADVANCED.
  6941. * src/HelpItemFactory.cc
  6942. * src/LogFactory.cc
  6943. * src/LogFactory.h
  6944. * src/MultiUrlRequestInfo.cc
  6945. * src/MultiUrlRequestInfo.h
  6946. * src/NullStatCalc.h: New class. This class prints nothing.
  6947. * src/OptionHandlerFactory.cc
  6948. * src/main.cc
  6949. * src/option_processing.cc
  6950. * src/prefs.h
  6951. * src/usage_text.h
  6952. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6954. * src/HelpItemFactory.cc (createHelpItems):
  6955. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Fixed compilation error in ExpatMetalinkProcessor.cc
  6957. * src/ExpatMetalinkProcessor.cc
  6958. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Reuse socket if the origin server supports HTTP keep-alive and
  6960. --enable-http-keep-alive or --enable-http-pipelining is given.
  6961. The current implementation doesn't reuse the connections established
  6962. against proxy server.
  6963. * src/AbstractCommand.cc
  6964. * src/DownloadEngine.cc
  6965. * src/DownloadEngine.h
  6966. * src/HttpDownloadCommand.cc
  6967. * src/HttpInitiateConnectionCommand.cc
  6968. * src/HttpResponseCommand.cc
  6969. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6970. Rewritten HTTP keep-alive and pipelining routine.
  6971. * src/AbstractCommand.cc
  6972. * src/HttpConnection.cc
  6973. * src/HttpDownloadCommand.cc
  6974. * src/HttpRequest.cc
  6975. * src/HttpRequestCommand.cc
  6976. * src/HttpResponseCommand.cc
  6977. * src/Request.cc
  6978. * src/Request.h
  6979. * src/RequestGroup.cc
  6980. * test/HttpRequestTest.cc
  6981. * test/HttpResponseTest.cc
  6982. * test/RequestTest.cc
  6983. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6984. Added missing setUserHeaders call
  6985. * src/HttpRequestCommand.cc
  6986. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6988. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6989. waste of time because it is more likey false.
  6990. * src/FileAllocationDispatcherCommand.cc (execute)
  6991. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. Now HTTP status and version are a member variable of HttpHeader.
  6993. HTTP status is processed as a string, not integer.
  6994. * src/AbstractProxyResponseCommand.cc
  6995. * src/HttpConnection.cc
  6996. * src/HttpHeader.cc
  6997. * src/HttpHeader.h
  6998. * src/HttpHeaderProcessor.cc
  6999. * src/HttpHeaderProcessor.h
  7000. * src/HttpResponse.cc
  7001. * src/HttpResponse.h
  7002. * test/HttpHeaderProcessorTest.cc
  7003. * test/HttpResponseTest.cc
  7004. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7005. Added --header option. You can specify any number of additional HTTP headers
  7006. like:
  7007. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7008. Unlike other commad-line option, you can use --header option multiple times.
  7009. * src/HelpItemFactory.cc
  7010. * src/HttpRequest.{cc, h}
  7011. * src/HttpRequestCommand.cc
  7012. * src/OptionHandlerFactory.cc
  7013. * src/OptionHandlerImpl.h
  7014. * src/option_processing.cc
  7015. * src/prefs.h
  7016. * src/usage_text.h
  7017. * test/HttpRequestTest.cc (testUserHeaders)
  7018. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. Eliminates the time lag between sequential downloads and commands in
  7020. the same RequestGroup.
  7021. In old implementation, aria2 occasionally waits 1 seconds before
  7022. executing next command or RequestGroup.
  7023. This is really a waste of time, and new implementation eliminates
  7024. this unnecessary time lag.
  7025. * src/AbstractCommand.cc
  7026. * src/AutoSaveCommand.cc
  7027. * src/CheckIntegrityCommand.cc
  7028. * src/Command.{cc, h}
  7029. * src/DownloadEngine.{cc, h}
  7030. * src/DownloadEngineFactory.cc
  7031. * src/FileAllocationCommand.cc
  7032. * src/FileAllocationDispatcherCommand.cc
  7033. * src/FillRequestGroupCommand.cc
  7034. * src/FtpInitiateConnectionCommand.cc
  7035. * src/HaveEraseCommand.cc
  7036. * src/HttpInitiateConnectionCommand.cc
  7037. * src/HttpResponseCommand.cc
  7038. * src/RealtimeCommand.cc
  7039. * src/RequestGroup.cc
  7040. * src/RequestGroupMan.cc
  7041. * src/StreamFileAllocationEntry.cc
  7042. * src/TimeBasedCommand.{cc, h}
  7043. * src/TimedHaltCommand.cc
  7044. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7045. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7046. keyword explicit and SharedHandle's default constructor initializes
  7047. its internal obj to null, old implementation initializes it using
  7048. obj's default constructor.
  7049. To assign null, write SharedHandle<T> x(...); x.reset();
  7050. TODO: test/SharedHandleTest.cc needs more tests.
  7051. * src/SharedHandle.h
  7052. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Fixed type in man page.
  7054. * doc/aria2c.1.txt
  7055. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7057. * src/SimpleLogger.{cc, h}
  7058. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Implemented auto protocol detection.
  7060. Now you can do:
  7061. aria2c -Z http://host/file file1.torrent file2.metalink
  7062. (Note: -Z option is required for auto protcol detection.)
  7063. Then aria2c downloads 3 files simultaneously:
  7064. 1. http://host/file
  7065. 2. file1.torrent <-- read local torrent file
  7066. 3. file2.metalink <-- read local Metalink file.
  7067. Same thing goes with -i option. Assume your uris.txt contans:
  7068. http://host/file
  7069. file1.torrent
  7070. file2.metalink
  7071. Then you can do: aria2c -i uris.txt
  7072. (Note: -Z option is not needed if -i option is given.)
  7073. * src/main.cc
  7074. * src/ProtocolDetector.{cc, h}
  7075. * test/ProtocolDetectorTest.cc
  7076. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7077. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7078. installed
  7079. * src/ARC4Encryptor.h
  7080. * src/ARC4Decryptor.h
  7081. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Renamed argument from 'errno' to 'err', since errno is confused with
  7083. errno defined in errno.h.
  7084. * src/LibgcryptARC4Decryptor.h
  7085. * src/LibgcryptARC4Context.h
  7086. * src/LibgcryptDHKeyExchange.h
  7087. * src/LibgcryptARC4Encryptor.h
  7088. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Rewritten choking algorithm.
  7090. * src/PeerChokeCommand.{cc, h}
  7091. * src/BtInterestedMessage.cc
  7092. * src/PeerSessionResource.{cc, h}
  7093. * src/DefaultPeerStorage.{cc, h}
  7094. * src/BtNotInterestedMessage.cc
  7095. * src/DefaultBtMessageDispatcher.{cc, h}
  7096. * src/BtMessageDispatcher.h
  7097. * src/Peer.{cc, h}
  7098. * src/BtLeecherStateChoke.{cc, h}
  7099. * src/BtSetup.cc
  7100. * src/BtSeederStateChoke.{cc, h}
  7101. * src/PeerStorage.h
  7102. * test/MockPeerStorage.h
  7103. * test/MockBtMessageDispatcher.h
  7104. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Fixed compilation error on x84-64 platform.
  7106. * src/AuthConfig.cc: Included ostream.
  7107. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7108. Rewritten getBasename() and getDirname(), without standard library
  7109. basename(), dirname().
  7110. * src/File.cc
  7111. * test/FileTest.cc
  7112. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Added Simplified Chinese translation. Also updated the following
  7114. translations: Polish, Dutch, German. Great thanks to all translators.
  7115. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Suppress content-range error when 'Content-Range' response header
  7117. doesn't contains bytes-unit specifier 'bytes'
  7118. * src/HttpHeader.cc (getRange)
  7119. * test/HttpHeaderTest.cc
  7120. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7121. Fixed compilation error with g++-4.3
  7122. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7123. Added missing include files for MinGW
  7124. * test/HttpHeaderProcessorTest.cc
  7125. * test/DHTRoutingTableSerializerTest.cc
  7126. * test/DHTRoutingTableDeserializerTest.cc
  7127. * test/UriListParserTest.cc
  7128. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7129. Now download line is printed nicely with no garbage at the end of
  7130. line. I use ioctl to get the columns of terminal.
  7131. If stdout is redirected to another device, instead of carriage return,
  7132. end of line '\n' character is used. This is feature request#1909659
  7133. * src/ConsoleStatCalc.cc (calculateStat)
  7134. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Included a2time.h
  7136. * src/DHTMessageDispatcher.h
  7137. * src/DHTMessageEntry.h
  7138. * src/DHTReplaceNodeTask.h
  7139. * src/DHTMessageTracker.h
  7140. * src/Util.h
  7141. * src/CookieBox.h
  7142. * src/SocketCore.h
  7143. * src/DefaultBtMessageDispatcher.h
  7144. * src/SocketCore.cc
  7145. * src/Util.cc
  7146. * src/DHTPingTask.h
  7147. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Fixed high memory footprint when DHT is enabled.
  7149. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7150. queued than it is processed and the queue is getting longer. As a
  7151. consequence, momory usage is increased.
  7152. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7153. replacement cache in DHTBucket which is described in Kademlia paper.
  7154. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7155. DHTReplaceNodeTask.
  7156. * src/DHTBucket.{h, cc}
  7157. (cacheNode): New function.
  7158. (getCachedNodes): New function.
  7159. (dropNode): Push back cached node to _nodes.
  7160. * test/DHTBucketTest.cc
  7161. (testCacheNode): New test
  7162. (testDropNode): New test
  7163. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7164. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7165. the unused 4KB memory when ssl is not used.
  7166. * src/SocketCore.cc
  7167. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Added summary log for peer announce storage.
  7169. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7170. Removed cast
  7171. * src/DefaultPeerStorage.cc (addPeer)
  7172. Log exception message
  7173. * src/DHTMessageTracker.cc (handleTimeout)
  7174. Fixed casting
  7175. * test/HttpRequestTest.cc
  7176. * test/MetalinkProcessorTest.cc
  7177. * test/PieceTest.cc
  7178. * test/MetalinkEntryTest.cc
  7179. * test/SequenceTest.cc
  7180. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. * src/ParameterizedStringParser.cc (createLoop):
  7182. Removed unused variable sstep.
  7183. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7184. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7185. * src/Util.{h, cc}
  7186. (parseUInt): New function.
  7187. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7188. The actual range is uint32_t.
  7189. * test/UtilTest.cc
  7190. * src/ParameterizedStringParser.cc:
  7191. Use Util::parseUInt() for loop variables.
  7192. * test/ParameterizedStringParserTest.cc
  7193. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7194. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Rewritten the functions for binding port.
  7196. * src/DHTConnectionImpl.{h, cc}
  7197. * src/PeerListenCommand.{h, cc}
  7198. * src/DHTSetup.cc
  7199. * src/BtSetup.cc
  7200. * test/DHTConnectionImplTest.cc
  7201. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. type cleanup for allmost all remaining files.
  7203. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Type clarification
  7205. * src/PeerSessionResource.{h, cc}
  7206. * src/DefaultPieceStorage.{h, cc}
  7207. * src/Peer.{h, cc}
  7208. * test/PeerSessionResourceTest.cc
  7209. Use div function
  7210. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7211. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7212. Type clarification
  7213. * src/DefaultPeerStorage.{h, cc}
  7214. * test/DefaultPeerStorageTest.cc
  7215. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Type clarification: size_t for length or size, uint64_t for file
  7217. length, off_t for file offset.
  7218. * src/DefaultBtProgressInfoFile.cc
  7219. * src/DefaultBtContext.{h, cc}
  7220. * src/DefaultBtInteractive.cc
  7221. * src/DownloadCommand.{h, cc}
  7222. * src/IteratableChunkChecksumValidator.{h, cc}
  7223. * src/SegmentMan.{h, cc}
  7224. * src/SingleFileDownloadContext.{h, cc}
  7225. * src/IteratableChecksumValidator.{h, cc}
  7226. * src/BtContext.h
  7227. * src/IteratableValidator.h
  7228. * src/DownloadContext.h
  7229. * test/SingleFileDownloadContextTest.cc
  7230. * test/DefaultBtContextTest.cc
  7231. * test/MockBtContext.h
  7232. * test/Metalink2RequestGroupTest.cc
  7233. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Type clarification: size_t for length or size, uint64_t for file
  7235. length, off_t for file offset.
  7236. * src/PiecedSegment.cc
  7237. * src/GrowSegment.h
  7238. * src/DefaultBtRequestFactory.h
  7239. * src/DefaultBtProgressInfoFile.cc
  7240. * src/UnknownLengthPieceStorage.h
  7241. * src/DefaultPieceStorage.cc
  7242. * src/UnknownLengthPieceStorage.cc
  7243. * src/DefaultBtInteractive.cc
  7244. * src/GrowSegment.cc
  7245. * src/BitfieldMan.h
  7246. * src/DownloadCommand.cc
  7247. * src/BtRequestFactory.h
  7248. * src/PiecedSegment.h
  7249. * src/DefaultPieceStorage.h
  7250. * src/Piece.cc
  7251. * src/DefaultBtRequestFactory.cc
  7252. * src/PieceStorage.h
  7253. * src/Segment.h
  7254. * src/Piece.h
  7255. * src/BitfieldMan.cc
  7256. * src/Util.cc
  7257. * test/DefaultBtProgressInfoFileTest.cc
  7258. * test/DefaultPieceStorageTest.cc
  7259. * test/MockPieceStorage.h
  7260. * test/BtRequestMessageTest.cc
  7261. * test/DefaultBtMessageDispatcherTest.cc
  7262. * test/BitfieldManTest.cc
  7263. * test/GrowSegmentTest.cc
  7264. * test/PieceTest.cc
  7265. * test/SegmentTest.cc
  7266. * test/SegmentManTest.cc
  7267. * test/DefaultBtRequestFactoryTest.cc
  7268. * test/MockBtRequestFactory.h
  7269. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Fixed compilation error with --disable-nls
  7271. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7272. in gettext.h causes the problem.
  7273. * src/common.h
  7274. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7275. Removed subPiece related functions.
  7276. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7277. * src/DefaultPieceStorage.{h, cc}
  7278. * test/PieceTest.cc
  7279. * test/DefaultPieceStorageTest.cc
  7280. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Use unsigned char for data store.
  7282. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. Bump up version number to 0.13.0+1
  7284. * configure.ac
  7285. * Release 0.13.0+1
  7286. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7287. Changed inactive connection timeout to 120.
  7288. To accept more mulually interested peers, disconnect peer when there
  7289. is no interest between us after certain time passed.
  7290. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7291. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7293. when compiled with async DNS support.
  7294. * src/DownloadEngine.cc
  7295. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7296. value '10' will be a little bit short when some DNS servers are
  7297. offline and several DNS servers are tried. It should be configured
  7298. by command-line option.
  7299. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Merged Ross's mingw patch.
  7301. * src/DHTRoutingTableDeserializer.cc
  7302. * src/DHTRoutingTableSerializer.cc
  7303. * src/Platform.{h, cc}
  7304. * src/timegm.h
  7305. * src/gettimeofday.h
  7306. * src/getaddrinfo.h
  7307. * src/SocketCore.h
  7308. * src/common.h
  7309. * src/inet_aton.h
  7310. * src/DownloadEngine.h
  7311. * src/gai_strerror.h
  7312. * src/a2netcompat.h
  7313. * configure.ac
  7314. * configure
  7315. * aclocal.m4
  7316. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7317. Included missing iostream.
  7318. * test/AllTest.cc
  7319. * test/BtDependencyTest.cc
  7320. * test/BtExtendedMessageTest.cc
  7321. * test/DHTConnectionImplTest.cc
  7322. * test/DHTMessageFactoryImplTest.cc
  7323. * test/DHTMessageTrackerEntryTest.cc
  7324. * test/DHTNodeTest.cc
  7325. * test/DHTRoutingTableSerializerTest.cc
  7326. * test/DefaultBtAnnounceTest.cc
  7327. * test/DefaultBtContextTest.cc
  7328. * test/DefaultBtMessageFactoryTest.cc
  7329. * test/DefaultExtensionMessageFactoryTest.cc
  7330. * test/HandshakeExtensionMessageTest.cc
  7331. * test/HttpResponseTest.cc
  7332. * test/MetalinkProcessorTest.cc
  7333. * test/MultiFileAllocationIteratorTest.cc
  7334. * test/SocketCoreTest.cc
  7335. * test/UTPexExtensionMessageTest.cc
  7336. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7337. Reorganized includes.
  7338. * src/NameResolver.cc
  7339. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Fixed compilation error without ares/c-ares
  7341. * src/NameResolver.h:
  7342. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7343. Added a test for large file.
  7344. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7345. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Fixed the bug that file size is ignored if size > INT32_MAX
  7347. * src/SizeMetalinkParserState.cc (endElement):
  7348. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Bump up version number to 0.13.0
  7350. * configure.ac
  7351. * Release 0.13.0
  7352. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. Updated Makfefile.am to make 'make dist' work.
  7354. Now packaged filename is aria2c-VERSION.tar.bz2.
  7355. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7356. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7357. Large file support is now configured by configure script.
  7358. * configure.ac
  7359. Removed unsused source files
  7360. * src/
  7361. * test/
  7362. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7363. Peer.h and BtContext.h respectively.
  7364. * src/Peer.h
  7365. * src/BtContext.h
  7366. Updated translations.
  7367. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7368. translations. Great thanks to all translators!;)
  7369. * po/*.{po, gmo}
  7370. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7372. statically declared sha1 MessageDigestContext.
  7373. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7374. initialization of short-lived MessageDigestContext.
  7375. * src/MessageDigestHelper.{h, cc}
  7376. * src/main.cc
  7377. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7378. the initialization of MessageDigestContext every time in validating
  7379. chunk checksum.
  7380. * src/DownloadCommand.{h, cc}
  7381. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7382. Add a file descriptor which connected to fast peer(latency<1500) to
  7383. select(). This change reduced CPU load.
  7384. * src/PeerInteractionCommand.cc
  7385. * src/DefaultBtInteractive.{h, cc}
  7386. * src/BtInteractive.h
  7387. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Fixed the previous insufficient fix for possible busy loop.
  7389. * src/MSEHandshake.cc (identifyHandshakeType)
  7390. Removed unused functions.
  7391. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7392. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Fixed possible busy loop if first 20 bytes are not received for a few
  7394. minutes.
  7395. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7396. * src/ReceiverMSEHandshakeCommand.cc
  7397. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Fixed compilation error
  7399. * src/ExpatMetalinkProcessor.cc
  7400. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7401. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7402. * src/DHTBucket.cc
  7403. Removed unnecessary cast.
  7404. * src/HandshakeExtensionMessage.cc
  7405. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7407. is missing.
  7408. * src/OptionHandlerFactory.cc
  7409. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7410. Fixed the bug that HAVE message is not sent for a piece they are
  7411. downloaded fom http/ftp server before any BitTorrent handshake is done
  7412. with peers.
  7413. * src/DefaultBtInteractive.cc
  7414. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7416. * src/Makefile.am
  7417. * src/Makefile.in
  7418. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7419. Updated README. Added html version of README and man page.
  7420. * README
  7421. * README.html
  7422. * readme2html: Shell script to generate README.html from README using
  7423. asciidoc.
  7424. * doc/aria2c.1.html
  7425. * doc/makeman: Added the line to generate aria2c.1.html
  7426. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7427. Fixed offset calculation.
  7428. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7429. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Rewritten itos and uitos using template. llitos and ullitos are
  7431. replaced with itos and uitos respectively.
  7432. * src/Util.{h, cc}
  7433. * test/UtilTest.cc
  7434. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7435. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7436. of the number of bytes required for storing public key and shared
  7437. secret.
  7438. * src/LibgcryptDHKeyExchange.h
  7439. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7440. * src/MSEHandshake.cc
  7441. * test/DHKeyExchangeTest.cc
  7442. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7443. Removed since they are not used.
  7444. * src/Xml2MetalinkProcessor.{h, cc}
  7445. * src/Socket.cc
  7446. * src/SegmentSplitter.{h, cc}
  7447. * test/Xml2MetalinkProcessorTest.cc
  7448. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7449. Fixed the bug that prevents aria2 from stopping other than by pressing
  7450. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7451. option. aria2 doesn't stop even after --seed-time is satisfied and
  7452. continues to output blank lines in the console.
  7453. * src/ReceiverMSEHandshakeCommand.cc
  7454. * src/PeerReceiveHandshakeCommand.cc
  7455. * src/PeerListenCommand.cc
  7456. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7457. Bump up version number to 0.13.0rc
  7458. * configure.ac
  7459. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7460. Updated man page and some usage text.
  7461. * doc/aria2c.1.txt
  7462. * src/usage_text.h
  7463. * po/*.{po, gmo}
  7464. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7465. Updated translations. Added Finnish and Hebrew translations.
  7466. Great thanks to all translators!
  7467. * po/*.{po, gmo}
  7468. * po/LINGUAS
  7469. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7470. Log more detailed information about each message.
  7471. * src/DHTQueryMessage.{h, cc}
  7472. * src/DHTGetPeersMessage.{h, cc}
  7473. * src/DHTFindNodeReplyMessage.{h, cc}
  7474. * src/DHTGetPeersReplyMessage.{h, cc}
  7475. * src/DHTAnnouncePeerMessage.{h, cc}
  7476. * src/DHTResponseMessage.{h, cc}
  7477. * src/DHTFindNodeMessage.{h, cc}
  7478. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7479. Use constants defined in prefs.h
  7480. * src/option_processing.cc
  7481. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7482. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7483. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7484. Make room for future enchancements for IPv6 addresses.
  7485. Bump up version number of dht.dat file format to 2.
  7486. Not compatible with previous version.
  7487. * src/DHTRoutingTableSerializer.cc
  7488. * src/DHTRoutingTableDeserializer.cc
  7489. * test/DHTRoutingTableSerializerTest.cc
  7490. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7491. Added handling for the return values from
  7492. PeerMessageUtil::createcompact().
  7493. * src/DefaultBtContext.cc (computeFastSet):
  7494. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Fixed abort when peer's ip address is IPv4-mapped address.
  7496. * src/DefaultBtContext.cc (computeFastSet)
  7497. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7498. cannot handle IPv4-mapped addresses.
  7499. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7500. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Proper return value handling for OpenSSL functions.
  7502. * src/LibsslDHKeyExchange.h
  7503. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Random bytes generation using libgcrypt and OpenSSL.
  7505. * src/DHTUtil.{h, cc}
  7506. * test/DHTUtilTest.cc
  7507. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7508. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7509. received.
  7510. * src/DHTMessageReceiver.cc (receiveMessage)
  7511. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Fixed the bug that a return code is always 0. BUG#1897704
  7513. If error occurred during the download or there exist unfinished
  7514. downloads, aria2 returns with code 1.
  7515. * src/RequestGroupMan.{h, cc}
  7516. * src/MultiUrlRequestInfo.{h, cc}
  7517. * src/main.cc
  7518. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7519. IPv6 support for SocketCore class.
  7520. TODO: In SocketCore::establishConnection(), this is insufficient to
  7521. determin the failure of connect() here because the socket is
  7522. non-blocking state. The next addresses should be tried after select().
  7523. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7524. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7525. instead which address family independent.
  7526. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7527. information in a compact peer format which is for IPv4 only.
  7528. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7529. this is a spec of BitTorrent protocol.
  7530. * src/SocketCore.{h, cc}
  7531. * src/PeerMessageUtil.cc
  7532. * test/SocketCoreTest.cc
  7533. * test/PeerMessageUtilTest.cc
  7534. * test/DHTConnectionImplTest.cc
  7535. Handle IPv4-mapped addresses.
  7536. * src/DHTNode.cc: Now identity is determined by node id.
  7537. * src/DHTMessageTrackerEntry.cc
  7538. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7539. should handle it.
  7540. * src/DHTRoutingTableDeserializer.cc
  7541. * src/DHTMessageFactoryImpl.cc
  7542. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Change the unit of --stop option from a minute to a second.
  7544. * src/usage_text.h
  7545. * src/DownloadEngineFactory.cc
  7546. * src/OptionHandlerFactory.cc
  7547. * src/message.h
  7548. * src/TimedHaltCommand.cc
  7549. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7550. Make listening socket non-block mode.
  7551. * src/FtpConnection.cc
  7552. * src/FtpNegotiationCommand.{h, cc}
  7553. * src/PeerListenCommand.cc
  7554. Fixed the bug that cause slow ftp negotiation.
  7555. * src/FtpNegotiationCommand.{h, cc}
  7556. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7557. Added basic tag to --enable-dht, --dht-listen-port option.
  7558. * src/HelpItemFactory.cc (createHelpItems)
  7559. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Updated text.
  7561. * src/usage_text.h
  7562. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7563. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  7564. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Determin _threadtholdSpeed in each constructor for
  7566. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  7567. * src/ActivePeerConnectionCommand.{h, cc}
  7568. * src/PeerReceiveHandshakeCommand.{h, cc}
  7569. * src/BtSetup.cc
  7570. * src/BtConstants.h
  7571. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Added --bt-min-crypto-level and --bt-require-crypto options.
  7573. * src/OptionHandlerFactory.cc
  7574. * src/MSEHandshake.cc
  7575. * src/HelpItemFactory.cc
  7576. * src/option_processing.cc
  7577. * src/ReceiverMSEHandshakeCommand.cc
  7578. * src/prefs.h
  7579. * src/DefaultBtAnnounce.cc
  7580. * src/InitiatorMSEHandshakeCommand.cc
  7581. * src/usage_text.h
  7582. * test/MSEHandshakeTest.cc
  7583. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Bump version number to 0.13.0b
  7585. * configure.ac
  7586. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Updated doc.
  7588. * src/MessageDigestHelper.h:
  7589. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Use raw message digest as a token instead of its hexadecimal
  7591. representation.
  7592. * src/DHTTokenTracker.cc (generateToken)
  7593. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7594. Added Message Stream Encryption(MSE) support.
  7595. Currently, aria2 accepts incoming connections with Obfuscation Header
  7596. and legacy BitTorrent Header and establishes connections with
  7597. Obfuscation Header first and if failed then retry with legacy
  7598. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  7599. choose ARC4. The new option to change the default behavior is planned.
  7600. For tracker extension, "supportcrypto=1" is added statically.
  7601. * src/PeerInitiateConnectionCommand.{h, cc}
  7602. * src/PeerConnection.{h, cc}
  7603. * src/HandleRegistry.h
  7604. * src/SocketCore.h
  7605. * src/PeerReceiveHandshakeCommand.{h, cc}
  7606. * src/BtRegistry.{h, cc}
  7607. * src/PeerListenCommand.cc
  7608. * src/InitiatorMSEHandshakeCommand.{h, cc}
  7609. * src/ReceiverMSEHandshakeCommand.{h, cc}
  7610. * src/MSEHandshake.{h, cc}
  7611. * src/ARC4Encryptor.h
  7612. * src/ARC4Decryptor.h
  7613. * src/LibgcryptARC4Encryptor.h
  7614. * src/LibgcryptARC4Decryptor.h
  7615. * src/LibgcryptARC4Context.h
  7616. * src/LibsslARC4Encryptor.h
  7617. * src/LibsslARC4Decryptor.h
  7618. * src/LibsslARC4Context.h
  7619. * src/DHKeyExchange.h
  7620. * src/LibgcryptDHKeyExchange.h
  7621. * src/LibsslDHKeyExchange.h
  7622. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  7623. * test/DefaultBtAnnounceTest.cc
  7624. * test/ARC4Test.cc
  7625. * test/DHKeyExchangeTest.cc
  7626. Removed prepareForRetry() because it is not used.
  7627. * src/PeerAbstractCommand.{h, cc}
  7628. * src/PeerInteractionCommand.{h, cc}
  7629. * src/PeerInitiateConnectionCommand.{h, cc}
  7630. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Added the ability to load nodes from torrent file. These nodes are
  7632. added to the routing table when downloading that torrent.
  7633. * src/BtContext.h
  7634. * src/DefaultBtContext.{h, cc}
  7635. * src/DHTSetup.cc
  7636. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  7637. hostname and port pair, and resolves all of them.
  7638. * src/NameResolver.{h, cc}: Added reset().
  7639. * src/RequestGroup.cc
  7640. * test/DefaultBtContextTest.cc
  7641. * test/MockBtContext.h
  7642. Removed assert() from DefaultBtContext and throw exception instead.
  7643. * src/DefaultBtContext.cc
  7644. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7645. Fixed segmentation fault bug when exiting if dht is disabled.
  7646. * src/RequestGroup.cc
  7647. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. Fixed typo in log message and define the message in message.h
  7649. * src/TimedHaltCommand.cc
  7650. * src/message.h
  7651. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7652. Included RecoverableException.h to fix compilation error.
  7653. * test/DHTMessageFactoryImplTest.cc
  7654. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7655. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  7656. * test/DHTPingMessageTest.cc
  7657. * test/DHTGetPeersMessageTest.cc
  7658. * test/DHTFindNodeMessageTest.cc
  7659. * test/DHTAnnouncePeerMessageTest.cc
  7660. * test/MockDHTMessage.h
  7661. * test/MockDHTMessageFactory.h
  7662. * test/MockDHTMessageDispatcher.h: New class.
  7663. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  7665. virtual.
  7666. * src/DHTMessageDispatcher.h
  7667. * src/DHTMessageDispatcherImpl.{h, cc}
  7668. * src/DHTSetup.cc
  7669. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Adding handling of DHT error message. Just log error message and
  7671. throw exception.
  7672. * src/DHTMessageFactoryImpl.cc
  7673. * test/DHTMessageFactoryImplTest.cc
  7674. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. Added handling of dynamic cast failure.
  7676. * src/DHTNodeLookupTask.cc
  7677. * src/DHTPeerLookupTask.cc
  7678. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7679. Added the ability to stop aria2 itself when given time has passed
  7680. from start. Use --stop option to specify time in minutes.
  7681. When 0 is given, this feature is disabled.
  7682. * src/OptionHandlerFactory.cc
  7683. * src/TimeBasedCommand.h: Make _interval protected scope.
  7684. * src/HelpItemFactory.cc
  7685. * src/option_processing.cc
  7686. * src/prefs.h
  7687. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  7688. before calling RequestGroupMan::fillRequestGroupFromReserver().
  7689. Without this modification, the result list shows "ERR" when aria2 is
  7690. stopped by --stop option. It should be "INPR".
  7691. * src/DownloadEngine.{h, cc}
  7692. * src/DownloadEngineFactory.cc
  7693. * src/usage_text.h
  7694. * src/TimedHaltCommand.{h, cc}: New class.
  7695. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Bootstrap through node added by port message.
  7697. Currently bootstrap is executed if the number of buckets in routing
  7698. table is 1.
  7699. * src/BtPortMessage.{h, cc}
  7700. * src/DefaultBtMessageFactory.{h, cc}
  7701. * src/PeerInteractionCommand.cc
  7702. * test/BtPortMessageTest.cc
  7703. * test/MockDHTTask.h
  7704. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Extract the Peer class's member variables, which are only needed after
  7706. PeerInteractionCommand, into PeerSessionResource class.
  7707. This class is instantiated in PeerInteractionCommand class's ctor and
  7708. released in its dtor.
  7709. This will make Peer class lightweight and uses less memory for peers
  7710. which are not connected and wait in the queue.
  7711. * src/PeerChokeCommand.cc
  7712. * src/PeerSessionResource.{h, cc}
  7713. * src/PeerInteractionCommand.cc
  7714. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  7715. * src/DefaultBtInteractive.cc
  7716. * src/BtPieceMessage.cc
  7717. * src/BtInterestedMessage.cc
  7718. * src/BtUnchokeMessage.cc
  7719. * src/DefaultPeerStorage.{h, cc}
  7720. * src/PeerInitiateConnectionCommand.cc
  7721. * src/ActivePeerConnectionCommand.cc
  7722. * src/BtNotInterestedMessage.cc
  7723. * src/DefaultBtMessageDispatcher.cc
  7724. * src/BtChokeMessage.cc
  7725. * src/BtRequestMessage.cc
  7726. * src/Peer.{h, cc}
  7727. * src/BtRegistry.h
  7728. * src/TrackerWatcherCommand.cc
  7729. * src/PeerReceiveHandshakeCommand.cc
  7730. * test/BtExtendedMessageTest.cc
  7731. * test/BtAllowedFastMessageTest.cc
  7732. * test/BtCancelMessageTest.cc
  7733. * test/DefaultPieceStorageTest.cc
  7734. * test/BtBitfieldMessageTest.cc
  7735. * test/BtHaveMessageTest.cc
  7736. * test/BtNotInterestedMessageTest.cc
  7737. * test/BtRequestMessageTest.cc
  7738. * test/PeerSessionResourceTest.cc
  7739. * test/DefaultBtMessageDispatcherTest.cc
  7740. * test/PeerTest.cc
  7741. * test/BtInterestedMessageTest.cc
  7742. * test/BtRejectMessageTest.cc
  7743. * test/BtChokeMessageTest.cc
  7744. * test/DefaultPeerStorageTest.cc
  7745. * test/BtHaveNoneMessageTest.cc
  7746. * test/BtHaveAllMessageTest.cc
  7747. * test/DefaultExtensionMessageFactoryTest.cc
  7748. * test/BtUnchokeMessageTest.cc
  7749. * test/DefaultBtMessageFactoryTest.cc
  7750. * test/HandshakeExtensionMessageTest.cc
  7751. * test/UTPexExtensionMessageTest.cc
  7752. * test/DefaultBtRequestFactoryTest.cc
  7753. * test/BtPieceMessageTest.cc
  7754. Removed typedef PeerStats.
  7755. * src/PeerStat.h
  7756. * src/SegmentMan.cc
  7757. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Added std namespace to copy, remove_copy, back_inserter,
  7759. front_inserter.
  7760. * src/RequestGroupMan.cc
  7761. * src/DefaultPieceStorage.cc
  7762. * src/StreamFileAllocationEntry.cc
  7763. * src/BtFileAllocationEntry.cc
  7764. * src/RequestGroup.cc
  7765. * src/MetalinkEntry.cc
  7766. * src/DelegatingPeerListProcessor.cc
  7767. * src/DefaultBtRequestFactory.cc
  7768. * src/DefaultBtMessageDispatcher.cc
  7769. * src/version_usage.cc: Included <algorithm>
  7770. * src/main.cc
  7771. * src/MetalinkParserController.cc
  7772. * src/DefaultBtContext.cc
  7773. * src/DownloadEngineFactory.cc
  7774. * src/a2algo.h
  7775. Removed.
  7776. * test/StreamUriListParserTest.cc
  7777. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7778. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  7779. ActivePeerConnectionCommand when it is given and
  7780. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  7781. * src/ActivePeerConnectionCommand.{h, cc}
  7782. * src/BtSetup.cc
  7783. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. Only add socket to DownloadEngine's select routine when peer or
  7785. localhost is unchoked and interested. This lowers CPU usage a
  7786. little bit.
  7787. * src/PeerInteractionCommand.cc
  7788. * src/PeerAbstractCommand.{h, cc}
  7789. * src/BtInteractive.h
  7790. * src/DefaultBtInteractive.{h, cc}
  7791. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7792. Revert previous change because get_peers message is needed for
  7793. announce_peer anyway.
  7794. * src/DHTGetPeersCommand.cc
  7795. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7796. Request peers thought DHT only when download hasn't finished.
  7797. * src/DHTGetPeersCommand.cc
  7798. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7799. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  7800. * src/DHTBucketRefreshTask.{h, cc}
  7801. * src/DHTSetup.cc
  7802. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  7804. standard classes.
  7805. Included string.h where mem* function are used.
  7806. Added namespace aria2.
  7807. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Create directory before saving DHT routing table.
  7809. Now ios::failure is now handled properly.
  7810. * src/DHTAutoSaveCommand.cc
  7811. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7812. Removed unnecessary cerr.
  7813. * src/DownloadEngine.cc
  7814. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Catch exception inside DHTMessageReceiver::receiveMessage().
  7816. Log unknown message.
  7817. * src/DHTMessageReceiver.{h, cc}
  7818. * src/DHTMessageFactory.h
  7819. * src/DHTMessageFactoryImpl.{h, cc}
  7820. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  7821. * src/DHTInteractionCommand.cc
  7822. * src/DHTUnknownMessage.{h, cc}
  7823. * test/DHTUnknownMessageTest.cc
  7824. * test/MockDHTMessageFactory.h
  7825. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7826. Commented out ip address comparison because a host can have multiple
  7827. ip addresses and it is hard to predict the hostname is resolved into
  7828. which one.
  7829. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7830. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. * po/Makefile.in: Removed since this is generated by configure.
  7832. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Fixed compiler warning about redefinition of SIZE_MAX.
  7834. Use common.h instead of config.h directly here.
  7835. * src/Platform.{h, cc}
  7836. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7837. here.
  7838. * common.h
  7839. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7840. Updated gettext related files.
  7841. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7842. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7843. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7844. Added DHT functionality, compatible with mainline.
  7845. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7846. You may need to specify entry point to DHT network using
  7847. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7848. Use --dht-listen-port to specify port number. Make sure that your
  7849. firewall configuration can pass through UDP traffic to the port.
  7850. The routing table is saved in $HOME/.aria2/dht.dat.
  7851. * src/DHT*
  7852. * src/BNode.{h, cc}
  7853. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7854. particular torrent.
  7855. * src/Data.cc: Rewritten ctor.
  7856. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7857. --dht-entry-point.
  7858. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7859. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7860. ends, remove BtContext from DHTPeerAnnounceStorage.
  7861. * src/BtPortMessage.{h, cc}: Rewritten.
  7862. * src/message.h
  7863. * src/OptionHandlerImpl.cc
  7864. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7865. --dht-entry-point.
  7866. * src/Dictionary.{h, cc} (remove): New function.
  7867. * src/prefs.h
  7868. * src/DefaultBtMessageFactory.h
  7869. * src/BtHandshakeMessage.cc
  7870. * src/ActivePeerConnectionCommand.cc
  7871. * src/SocketCore.{h, cc}: Added datagram socket support.
  7872. * src/DefaultBtMessageFactory.cc
  7873. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7874. Create DHT commands.
  7875. * src/BtMessageFactory.h
  7876. * src/PeerMessageUtil.{h, cc}
  7877. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7878. Fixed the bug that log file is not written when configuration file doesn't exist.
  7879. This is caused by using Logger class before LogFactory is not configured.
  7880. BUG #1875079
  7881. * src/option_processing.cc
  7882. Warning message "configuration doesn't exist" is only printed when --conf is
  7883. given.
  7884. * src/option_processing.cc
  7885. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7887. ShaVisitor is now deprecated and slated to be removed.
  7888. * src/DefaultBtContext.cc
  7889. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7890. Externalize message to message.h
  7891. * src/Platform.cc
  7892. * src/message.h
  7893. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Set default domain and default path to cookie.
  7895. * src/HttpResponse.cc
  7896. * src/CookieBox.{h, cc}
  7897. * src/CookieParser.{h, cc}
  7898. * test/CookieParserTest.cc
  7899. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. Added --no-conf and --conf-path command-line option.
  7901. --no-conf option disables loading aria2.conf file.
  7902. --conf-path option changes the configuration file path. The default
  7903. file path is $HOME/.aria2/aria2.conf
  7904. Added a warning message when the configuration file is not found.
  7905. * src/HelpItemFactory.cc
  7906. * src/option_processing.cc
  7907. * src/prefs.h
  7908. * src/usage_text.h
  7909. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. Added the message to inform users that other help categories are
  7911. available in -h option.
  7912. * src/version_usage.cc
  7913. * src/TagContainer.{h, cc}
  7914. * test/TagContainerTest.cc
  7915. * src/TaggedItem.{h, cc}
  7916. * test/TaggedItemTest.cc
  7917. * src/HelpItem.h
  7918. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7919. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7920. from PiecedSegment's ctor.
  7921. Previously Piece::getAllMissingBlockIndexes() is called from
  7922. PiecedSegment() but it is rather expensive since only first element is
  7923. used.
  7924. * src/PiecedSegment.cc
  7925. * src/Piece.{h, cc}
  7926. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7927. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7928. each time these functions are called.
  7929. * src/BitfieldMan.{h, cc}
  7930. * test/BitfieldManTest.cc
  7931. * src/array_fun.h
  7932. * test/array_funTest.cc
  7933. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7934. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7935. filtered. Removed unnecessary cast to int32_t.
  7936. * src/BitfieldMan.{h, cc}
  7937. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7939. payload length(4bytes) are received. This happens because lenbufLength
  7940. is not updated in this particular case and successive call of
  7941. receiveMessage() overwrites payload length with bytes recieved which
  7942. are payload body.
  7943. * src/PeerConnection.{h, cc}
  7944. * src/message.h
  7945. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7946. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7947. peer if there are peers that have same ipaddr and port.
  7948. I've experiened segmentation fault and "pure virtual function was
  7949. called" error.
  7950. * src/Peer.h
  7951. * test/PeerTest.cc
  7952. * src/DefaultPeerStorage.cc
  7953. * test/DefaultPeerStorageTest.cc
  7954. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7955. Removed a call to isPowerOf() because it is no longer necessary here
  7956. and a request block is not always power of 2.
  7957. BUG#1866924
  7958. * src/PeerMessageUtil.cc (checkLength)
  7959. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. Fixed the bug that always first found Segment is removed from
  7961. usedSegmentEntries. Removed unused functions.
  7962. * src/SegmentMan.{h, cc}
  7963. * test/SegmentManTest.cc
  7964. Fixed the bug that ServerHost is not removed.
  7965. * src/RequestGroup.cc
  7966. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7967. Fixed the bug that SegmentMan::completeSegment() is not called
  7968. even if Segment is complete when --lowest-speed-limit is enabled.
  7969. BUG#1864525
  7970. * src/DownloadCommand.{h, cc}
  7971. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7972. Fixed: hash algorithm 'sha1' is always used.
  7973. * src/DownloadCommand.cc (validatePieceHash)
  7974. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7975. Added --enable-peer-exchange command-line option.
  7976. * src/OptionHandlerFactory.cc
  7977. * src/HelpItemFactory.cc
  7978. * src/option_processing.cc
  7979. * src/usage_text.h
  7980. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7981. Move extension from BtRuntime to ExtensionMessageFactory, because
  7982. extension can be specified per peer, not per torrent.
  7983. * src/DefaultBtInteractive.cc
  7984. * src/BtRuntime.h
  7985. * src/ExtendedMessagingAware.h
  7986. * src/ExtensionMessageFactory.h
  7987. * src/DefaultExtensionMessageFactory.cc
  7988. * test/DefaultExtensionMessageFactoryTest.cc
  7989. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Added categorized option help. Specify category using --help option.
  7991. Also added the ability to search options in forward match.
  7992. * src/HelpItem.{h, cc}
  7993. * test/HelpItemTest.cc
  7994. * src/HelpItemFactory.{h, cc}
  7995. * src/TagContainer.{h, cc}
  7996. * test/TagContainerTest.cc
  7997. * src/option_processing.cc
  7998. * src/prefs.h
  7999. * src/TaggedItem.{h, cc}
  8000. * test/TaggedItemTest.cc
  8001. * src/version_usage.cc
  8002. * src/help_tags.h
  8003. * src/usage_text.h
  8004. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8005. Fixed segmentation fault when bad torrent metainfo is parsed.
  8006. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8007. and then throw exception or skip it.
  8008. * src/DefaultBtContext.{h, cc}
  8009. * test/DefaultBtContextTest.cc
  8010. * src/AnnounceList.cc
  8011. * src/CompactPeerListProcessor.cc
  8012. * src/message.h
  8013. * src/DefaultBtAnnounce.{h, cc}
  8014. * test/DefaultBtAnnounceTest.cc
  8015. * src/BencodeVisitor.cc
  8016. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8017. Added missing "B"(=Byte). So now the message looks like this:
  8018. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8019. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8020. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. Show the seed ratio after torrent downloads.
  8022. For example, after torrent download completed and --seed-time and
  8023. --seed-ratio conditions are fulfilled, following message is printed
  8024. right after "Download complete: .....":
  8025. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8026. * src/RequestGroupMan.cc
  8027. * src/RequestGroup.{h, cc}
  8028. * src/message.h
  8029. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8030. Remove a defunct control file. A defunct control file means that while
  8031. it exists, but the corresponding download file is missing.
  8032. After its removal, a download restarts from the beginning.
  8033. * src/RequestGroup.cc
  8034. * src/message.h
  8035. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8036. Allocate bitfield in Peer when it is really used. More specifically,
  8037. bitfield in Peer is allocated after the connection is established and
  8038. deallocated when the connection is dropped.
  8039. Since 2 parameters(piece length and total length) was removed from the
  8040. constructor of Peer class, many test classes were modified accordingly.
  8041. See svn log for more detailed information.
  8042. * src/PeerInteractionCommand.cc
  8043. * src/CompactPeerListProcessor.cc
  8044. * src/Peer.cc
  8045. * src/DefaultPeerListProcessor.cc
  8046. * src/PeerListenCommand.cc
  8047. * src/PeerReceiveHandshakeCommand.cc
  8048. Fixed memory leak
  8049. * src/Piece.cc
  8050. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8052. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8053. command-line options.
  8054. * src/option_processing.cc
  8055. * src/ActivePeerConnectionCommand.cc
  8056. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8057. Send have message to peer if it already has the piece.
  8058. * src/BtHaveMessage.{h, cc}
  8059. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8060. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8061. port.
  8062. * src/DefaultPeerStorage.{h, cc}
  8063. * test/DefaultPeerStorageTest.cc
  8064. * src/HandshakeExtensionMessage.cc
  8065. * test/HandshakeExtensionMessageTest.cc
  8066. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8067. * src/PeerStorage.h
  8068. * test/MockPeerStorage.h
  8069. * src/PeerListenCommand.cc
  8070. * src/PeerReceiveHandshakeCommand.cc
  8071. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8072. Added --metalink-enable-unique-protocol option.
  8073. * src/Metalink2RequestGroup.cc
  8074. * src/option_processing.cc
  8075. * src/prefs.h
  8076. * src/version_usage.cc
  8077. * doc/aria2c.1.txt
  8078. * doc/aria2c.1
  8079. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Allow a peer in incomingPeer to be added peers.
  8081. * src/DefaultPeerStorage.cc
  8082. * test/DefaultPeerStorageTest.cc
  8083. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8084. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8085. I could reproduce this bug in following procedure:
  8086. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8087. 2. Restart aria2.
  8088. 3. You see the download stopped around 99%.
  8089. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8090. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8091. If timeout is reached, then _nextCommand is unused and it may contains
  8092. segments and they won't be canceled. Actually, timeout is not needed
  8093. here because if the server dropped connection, then retry is made.
  8094. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Added uTorrent compatible Peer Exchange.
  8096. * src/BencodeVisitor.{h, cc}
  8097. * test/BencodeVisitorTest.cc
  8098. * src/BtConstants.h
  8099. * src/BtContext.h: Added 'private' flag.
  8100. * src/BtExtendedMessage.{h, cc}
  8101. * test/BtExtendedMessageTest.cc
  8102. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8103. reserved field.
  8104. * test/BtHandshakeMessageTest.cc
  8105. * src/BtMessageFactory.h
  8106. * src/BtRegistry.h
  8107. * src/BtRuntime.h: This class holds default extension message IDs for
  8108. aria2. By default, aria2 uses ID 8 for ut_pex.
  8109. * src/DefaultBtContext.cc
  8110. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8111. When it is true, aria2 enables ut_pex. This value is set by
  8112. PeerInteractionCommand.
  8113. * src/DefaultBtMessageFactory.{h, cc}
  8114. * test/DefaultBtMessageFactoryTest.cc
  8115. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8116. handling to DefaultBtInteractive class.
  8117. * src/DefaultExtensionMessageFactory.{h, cc}
  8118. * test/DefaultExtensionMessageFactoryTest.cc
  8119. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8120. the container(peers and incomingPeers. The equality is determined by
  8121. Peer::id).
  8122. * test/DefaultPeerStorageTest.cc
  8123. * src/ExtensionMessage.h
  8124. * test/MockExtensionMessage.h
  8125. * src/ExtensionMessageFactory.h
  8126. * test/MockExtensionMessageFactory.h
  8127. * src/HandshakeExtensionMessage.{h, cc}
  8128. * test/HandshakeExtensionMessageTest.cc
  8129. * src/MetaEntry.h
  8130. * src/Peer.{h, cc}
  8131. * src/PeerInteractionCommand.cc
  8132. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8133. addIncomingPeer.
  8134. * src/PeerMessageUtil.{h, cc}
  8135. * src/PeerObject.h
  8136. * src/UTPexExtensionMessage.{h, cc}
  8137. * test/UTPexExtensionMessageTest.cc
  8138. * src/message.h
  8139. * src/prefs.h
  8140. Fixed the bug that returns incomplete data when it contains null
  8141. character. A convenient constructor was also added.
  8142. * src/Data.{h, cc}
  8143. Rewritten.
  8144. * src/CompactPeerListProcessor.cc
  8145. Fixed typos.
  8146. * src/message.h
  8147. * src/MetaFileUtil.cc
  8148. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Added "Status Legend" label to the explanation text of 'stat' in
  8150. download result and moved it to the last. BUG#1848214
  8151. * src/RequestGroupMan.cc
  8152. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8154. * src/Makefie.am
  8155. * test/Makefile.am
  8156. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8157. Fixed the bug that prevents aria2 from loading cookie file when expire
  8158. value is greater than 2^31-1. BUG#1851066
  8159. * src/CookieBoxFactory.cc
  8160. * test/CookieBoxFactoryTest.cc
  8161. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Fixed possible memory leak when an exception is thrown.
  8163. * src/XML2SAXMetalinkProcessor.cc
  8164. Added Expat support. If both libxml2 and Expat are installed, then
  8165. libxml2 is used by default.
  8166. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8167. ExpatMetalinkProcessor according to the configuration.
  8168. * src/ExpatMetalinkProcessor.{h, cc}
  8169. * src/main.cc: Removed libxml2 specific header and init/free function.
  8170. * src/MetalinkProcessorFactory.{h, cc}
  8171. * src/MetalinkHelper.cc
  8172. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8173. * src/MetalinkProcessor.h
  8174. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8175. MetalinkProcessorTest is used instead.
  8176. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8177. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8178. MetalinkProcessorFactory::newInstance().
  8179. * m4/libexpat.m4
  8180. * configure.ac: Added configuration options for libexpat.
  8181. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8182. Disabled -s option in metalink download.
  8183. * src/Metalink2RequestGroup.cc
  8184. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8185. If several protocols are available for a mirror in metalink file,
  8186. aria2 now use one of them. --metalink-preferred-protocol option was
  8187. added to specify the preference of protocol.
  8188. * src/AbstractCommand.cc
  8189. * src/OptionHandlerFactory.cc
  8190. * src/ServerHost.{h, cc}
  8191. * src/Metalink2RequestGroup.cc
  8192. * src/RequestGroup.{h, cc}
  8193. * test/RequestGroupTest.cc
  8194. * src/option_processing.cc
  8195. * src/prefs.h
  8196. * src/HttpResponseCommand.cc
  8197. * src/MetalinkResource.{h, cc}
  8198. * src/FtpNegotiationCommand.cc
  8199. * src/MetalinkEntry.{h, cc}
  8200. * src/MetalinkEntryTest.cc
  8201. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Code cleanup and added debug log.
  8203. * src/PeerConnection.cc
  8204. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8205. Compiler error fix: applied the patch by Tiziano Mueller
  8206. * src/RequestGroup.cc
  8207. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8209. in stopped and completed event.
  8210. * src/AnnounceList.{h, cc}
  8211. * test/AnnounceListTest.cc
  8212. * src/DefaultBtAnnounce.cc
  8213. * test/DefaultBtAnnounceTest.cc
  8214. Sorted URLs.
  8215. * test/Metalink2RequestGroupTest.cc
  8216. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8217. Removed unnecessary string copy. Updated doc and corrected indentation.
  8218. * src/Base64.cc
  8219. Fixed compilation warnings
  8220. * test/DataTest.cc
  8221. * test/HttpRequestTest.cc
  8222. * test/MetaFileUtilTest.cc
  8223. * test/RequestTest.cc
  8224. * Release 0.12.0
  8225. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Updated translations
  8227. * po/{de,fr,ja,nl,ru}.po
  8228. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8229. translations. Many thanks to translators.
  8230. * po/{ca,es,it,pt_BR,sv}.po
  8231. * po/LINGUAS
  8232. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Added a notice about URL
  8234. * src/version_usage.cc
  8235. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8236. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8237. aria2 repeatedly sends stopped request when tracker returns error code.
  8238. * src/AnnounceList.cc
  8239. * test/AnnounceListTest.cc
  8240. * src/AnnounceTier.h
  8241. Added a message when ctrl-c is hit.
  8242. Now second ctrl-c is also handled in signal handler.
  8243. * src/RequestGroupMan.{h, cc}
  8244. * src/RequestGroup.{h, cc}
  8245. * src/MultiUrlRequestInfo.cc
  8246. * src/DownloadEngine.cc
  8247. * src/TrackerWatcherCommand.cc
  8248. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. Code cleanup
  8250. * src/Base64.cc (encode)
  8251. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Changed Direct/IO enable/disable procesure in file allocation routine.
  8253. * src/SingleFileAllocationIterator.cc
  8254. (SingleFileAllocationIterator):
  8255. Disable directIO if offset is not multiple of 512.
  8256. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8257. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8258. Enable created SingleFileAllocationIterator's directIO.
  8259. * src/FileAllocationEntry.cc
  8260. (FileAllocationEntry): Enable directIO here.
  8261. (~FileAllocationEntry): Disable directIO here.
  8262. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8263. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8264. * src/Peer.{h, cc}
  8265. * src/DefaultPieceStorage.cc
  8266. * test/DefaultPieceStorageTest.cc
  8267. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8268. Rewritten direct I/O support routine
  8269. * src/SingleFileAllocationIterator.cc
  8270. * src/MultiDiskAdaptor.{h, cc}
  8271. * src/ByteArrayDiskWriter.h
  8272. * src/AbstractSingleDiskAdaptor.h
  8273. * src/AbstractDiskWriter.cc
  8274. * src/DefaultPieceStorage.cc
  8275. * src/DiskWriter.h
  8276. * src/BinaryStream.h
  8277. * src/IteratableChunkChecksumValidator.cc
  8278. * src/IteratableChecksumValidator.cc
  8279. * src/CheckIntegrityEntry.cc
  8280. * src/FileAllocationEntry.cc
  8281. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. Fixed typo
  8283. * src/version_usage.cc
  8284. Updated doc
  8285. * doc/aria2c.1.txt
  8286. * doc/aria2c.1
  8287. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. Fixed compile error without message digest support.
  8289. * src/FileMetalinkParserState.cc
  8290. * src/MetalinkParserController.{h, cc}
  8291. * test/XML2SAXMetalinkProcessorTest.cc
  8292. * test/MetalinkParserControllerTest.cc
  8293. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Enable direct I/O support in checksum checking.
  8295. * src/IteratableChunkChecksumValidator.{h, cc}
  8296. * test/IteratableChunkChecksumValidatorTest.cc
  8297. * src/CheckIntegrityEntry.cc
  8298. * src/PieceHashCheckIntegrityEntry.cc
  8299. * src/IteratableChecksumValidator.{h, cc}
  8300. * src/BtCheckIntegrityEntry.cc: Added doc.
  8301. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8302. Added --allow-piece-length-change option.
  8303. * src/DefaultBtProgressInfoFile.cc
  8304. * test/DefaultBtProgressInfoFileTest.cc
  8305. * src/OptionHandlerFactory.cc
  8306. * src/option_processing.cc
  8307. * src/prefs.h
  8308. * src/version_usage.cc
  8309. * doc/aria2c.1.txt
  8310. * doc/aria2c.1
  8311. Fixed: duplicated result entry appears when exception is thrown in
  8312. RequestGroup::createInitiateConnectionCommand().
  8313. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8314. Add RequestGroup to _requestGroup after RequetGroup::
  8315. createInitiateConnectionCommand() succeeds.
  8316. Externalized message
  8317. * src/XML2SAXMetalinkProcessor.cc
  8318. * src/message.h
  8319. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8320. Forced download abort when received negative response from http/ftp
  8321. server.
  8322. * src/HttpResponseCommand.cc
  8323. * src/FtpNegotiationCommand.cc
  8324. * src/HttpResponse.cc
  8325. * src/FtpConnection.cc
  8326. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8328. the predecessor, Xml2MetalinkParser class.
  8329. I tested them against 94KB metalink file with 1234 chunk checksums.
  8330. The new one parsed it in 22msec, while it took 6000msec with old one.
  8331. * src/XML2SAXMetalinkProcessor.{h, cc}
  8332. * test/XML2SAXMetalinkProcessorTest.cc
  8333. * src/MetalinkParserController.{h, cc}
  8334. * test/MetalinkParserControllerTest.cc
  8335. * src/MetalinkParserState.h: Also added 16 subclasses.
  8336. * src/main.cc
  8337. * src/Metalink2RequestGroup.cc
  8338. * src/MetalinkHelper.cc
  8339. * src/MetalinkEntry.cc
  8340. * src/ChunkChecksum.h
  8341. Rewritten Base64 class for better performance.
  8342. * src/Base64.{h, cc}
  8343. * test/Base64Test.cc
  8344. * src/HttpRequest.cc
  8345. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. Fixed the bug#1841757: aria2 will connect to server to only get
  8347. file size.
  8348. * src/StreamFileAllocationEntry.cc
  8349. * src/option_processing.cc
  8350. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8351. downloads.
  8352. * src/FtpNegotiationCommand.cc
  8353. Suppressed wrong message when finding PreDownloadHandler
  8354. * src/RequestGroup.cc
  8355. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8356. Updated usage
  8357. * src/version_usage.cc
  8358. Updated man page
  8359. * doc/aria2c.1.txt
  8360. * doc/aria2c.1
  8361. Updated po files
  8362. * po/aria2c.pot
  8363. * po/*.po
  8364. * po/*.gmo
  8365. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Eliminated g++-4.2 warning
  8367. * src/DownloadHandlerConstants.{h, cc}
  8368. * src/Util.cc
  8369. * test/MetaFileUtilTest.cc
  8370. * test/PStringBuildVisitorTest.cc
  8371. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8372. * src/RequestGroup.cc
  8373. * src/BtCheckIntegrityEntry.cc
  8374. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8375. Fixed a2io.h
  8376. * src/a2io.h
  8377. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Added direct I/O support. The current implementation uses O_DIRECT,
  8379. which is not posix standard and is tested on linux 2.6.21.
  8380. Currently only file allocation uses direct I/O.
  8381. * src/SingleFileAllocationIterator.{h, cc}
  8382. * test/SingleFileAllocationIteratorTest.cc
  8383. * src/MultiFileAllocationIterator.{h, cc}
  8384. * test/MultiFileAllocationIteratorTest.cc
  8385. * src/BinaryStream.h
  8386. * src/DiskWriter.h
  8387. * src/AbstractDiskWriter.{h, cc}
  8388. * src/ByteArrayDiskWriter.h
  8389. * src/DiskAdaptor.h
  8390. * src/AbstractSingleDiskAdaptor.{h, cc}
  8391. * src/MultiDiskAdaptor.{h, cc}
  8392. * src/FileAllocationEntry.cc
  8393. * src/Util.{h, cc}
  8394. * src/OptionHandlerFactory.cc
  8395. * src/prefs.h
  8396. * src/version_usage.cc
  8397. * src/option_processing.cc
  8398. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8399. handleException.
  8400. * src/MultiFileAllocationIterator.cc
  8401. Added EINTR handling
  8402. * src/SocketCore.cc
  8403. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Updated usage
  8405. * src/version_usage.cc
  8406. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Applied Ross's patch for MinGW port.
  8408. * src/DownloadEngine.h
  8409. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8410. Set Content-Type to SingleFileDownloadContext when http response is
  8411. received.
  8412. * src/HttpResponseCommand.cc
  8413. * src/HttpResponse.{h, cc}
  8414. * test/HttpResponseTest.cc
  8415. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8416. Rewritten to add content-type support.
  8417. * src/DownloadHandler.{h, cc}
  8418. * src/BtPostDownloadHandler.{h, cc}
  8419. * test/BtPostDownloadHandlerTest.cc
  8420. * src/MetalinkPostDownloadHandler.{h, cc}
  8421. * test/MetalinkPostDownloadHandlerTest.cc
  8422. * src/PostDownloadHandler.{h, cc}
  8423. * src/DownloadHandlerConstants.{h, cc}
  8424. * src/RequestGroup.cc
  8425. * src/HttpResponseCommand.cc
  8426. * src/FtpNegotiationCommand.cc
  8427. * src/SingleFileDownloadContext.{h, cc}
  8428. * src/RequestGroup.h
  8429. * src/RequestGroupCriteria.h
  8430. * src/ContentTypeRequestGroupCriteria.h
  8431. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8432. If it is give, metalink/torrent file is not written to the disk, but
  8433. just is kept in memory. Parsing is occurred on memory.
  8434. * src/MetalinkHelper.{h, cc}
  8435. * src/MetalinkProcessor.h
  8436. * src/Xml2MetalinkProcessor.{h, cc}
  8437. * test/Xml2MetalinkProcessorTest.cc
  8438. * src/DownloadHandlerFactory.{h, cc}
  8439. * test/DownloadHandlerFactoryTest.cc
  8440. * src/PreDownloadHandler.{h, cc}
  8441. * src/OptionHandlerFactory.cc
  8442. * src/DefaultBtContext.{h, cc}
  8443. * test/DefaultBtContextTest.cc
  8444. * src/version_usage.cc
  8445. * src/Metalink2RequestGroup.{h, cc}
  8446. * src/RequestGroup.{h, cc}
  8447. * src/a2functional.h
  8448. * test/a2functionalTest.cc
  8449. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8450. * src/OptionHandlerImpl.h
  8451. * src/prefs.h
  8452. * src/Util.{h, cc}
  8453. * test/UtilTest.cc
  8454. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8455. memory usage.
  8456. * src/RequestGroupMan.{h, cc}
  8457. * src/DownloadEngine.cc
  8458. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8459. WeakHandle to SharedHandle because WeakHandle could be null.
  8460. * src/RequestGroup.{h, cc}
  8461. * src/DownloadEngineFactory.cc
  8462. * src/DownloadResult.h
  8463. Set totalLength after download finished
  8464. * src/UnknownLengthPieceStorage.{h, cc}
  8465. Keep torrent file specified in metalink in memory.
  8466. * src/Metalink2RequestGroup.cc
  8467. * src/BtDependency.cc
  8468. * src/TrueRequestGroupCriteria.h
  8469. Fixed the bug: seekg is used where seekp should be used.
  8470. * src/ByteArrayDiskWriter.cc
  8471. * test/ByteArraydiskWriterTest.cc
  8472. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8473. Fixed syntax error
  8474. * test/SequenceTest.cc
  8475. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8476. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8477. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8478. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8479. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8480. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8481. Added the check to see whether ares_host_callback accepts timeouts
  8482. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8483. * src/NameResolver.{h, cc}
  8484. * m4/libcares.m4
  8485. * configure.ac: Set C++ for language choice.
  8486. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8487. Fixed: compilation fails without c-ares/ares
  8488. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8489. Generate http/ftp commands only when download is incomplete.
  8490. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8491. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8492. Corrected typo. Examples are removed since they are available in man
  8493. page.
  8494. * src/version_usage.cc
  8495. Updated man page.
  8496. * doc/aria2c.1
  8497. * doc/aria2c.1.txt
  8498. * doc/makeman: Commented out sed command.
  8499. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8500. Throw DlAbortEx when a remote file is not found.
  8501. * src/HttpResponse.cc
  8502. * src/FtpNegotiationCommand.cc
  8503. * src/message.h
  8504. Overwrite an existing file if --allow-overwrite=true is given.
  8505. * src/RequestGroup.cc
  8506. Removed unused functions
  8507. * src/AbstractCommand.h
  8508. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. Removed 'extern' from 'extern typedef ...' in src/*.h
  8510. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8511. Updated usage
  8512. * src/version_usage.cc
  8513. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. Trim announce URL
  8515. * src/DefaultBtContext.cc
  8516. * test/ShaVisitorTest.cc
  8517. Trim argument s. Give trimed s to exception constructor.
  8518. * src/Util.cc (parseInt)(parseLLInt)
  8519. * test/UtilTest.cc
  8520. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8521. Set precision back to 1.
  8522. * src/ConsoleStatCalc.cc (calculateStat)
  8523. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. Replaced strtol with Util::parseInt
  8525. * src/ChunkedEncoding.cc
  8526. * src/HttpConnection.cc
  8527. * src/CookieBoxFactory.cc
  8528. * src/ParameterizedStringParser.cc
  8529. * src/Util.cc
  8530. * test/UtilTest.cc
  8531. * test/OptionHandlerTest.cc
  8532. * src/Request.cc
  8533. Throw exception when empty string is given. The message for exception
  8534. changed.
  8535. * src/Util.cc (parseInt)(parseLLInt)
  8536. * src/message.h
  8537. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8539. set to 1.
  8540. * src/ConsoleStatCalc.cc (calculateStat)
  8541. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Preallocate non-requested file which is adjacent forward to requested
  8543. file('requested' files means the files given in --select-file option)
  8544. if they share a same piece.
  8545. This fixes long pause in the file system which doesn't support sparse
  8546. files like FAT32 while downloading.
  8547. * src/MultiFileAllocationIterator.{h, cc}
  8548. * test/MultiFileAllocationIteratorTest.cc
  8549. * src/FileEntry.{h, cc}
  8550. Removed unused _option.
  8551. * src/MultiDiskAdaptor.h
  8552. * test/MultiDiskAdaptorTest.cc
  8553. * src/DefaultPieceStorage.cc
  8554. Set the default value of --seed-ratio to 1.0.
  8555. If 0.0 is given, then seeding continues regardless of share ratio.
  8556. * src/version_usage.cc
  8557. * src/option_processing.cc
  8558. * src/BtSetup.cc
  8559. * doc/aria2c.1.txt
  8560. * doc/aria2c.1
  8561. Fixed: Selective download is not working in BitTorrent
  8562. * src/RequestGroup.cc
  8563. Introduced Sequence class. Use this instead of Util::unfoldRange()
  8564. * src/PieceStorage.h
  8565. * test/MockPieceStorage.h
  8566. * src/UnknownLengthPieceStorage.h
  8567. * src/DefaultPieceStorage.{h, cc}
  8568. * src/Metalink2RequestGroup.cc
  8569. * src/RequestGroup.cc
  8570. * src/Sequence.h
  8571. * test/SequenceTest.cc
  8572. * src/IntSequence.h
  8573. * src/message.h
  8574. * src/Util.{h, cc}
  8575. * test/UtilTest.cc
  8576. Added new function 'parse' to catch exception thrown by subclass's
  8577. parseArg
  8578. * src/OptionHandler.h
  8579. * src/OptionParser.cc
  8580. * src/NameMatchOptionHandler.h
  8581. * src/OptionHandlerImpl.h
  8582. * test/OptionHandlerTest.cc
  8583. Added IntegerRangeOptionHandler. Used for --listen-port and
  8584. --select-file. Now --listen-port accepts range of port.
  8585. * src/OptionHandlerFactory.cc
  8586. * src/version_usage.cc
  8587. * src/OptionHandlerImpl.h
  8588. * src/option_processing.cc
  8589. * src/BtSetup.cc
  8590. * src/PeerListenCommand.{h, cc}
  8591. * doc/aria2c.1.txt
  8592. * doc/aria2c.1
  8593. Implemented operator< for Exception class to provide easy way to print
  8594. exception stack trace.
  8595. * src/Exception.{h, cc}
  8596. * src/main.cc
  8597. * src/option_processing.cc
  8598. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. * src/version_usage.cc
  8600. (showVersion): Reworked.
  8601. (showUsage): Added examples.
  8602. Removed Hint for total length and file name.
  8603. * src/Metalink2RequestGroup.cc
  8604. * src/RequestGroup.{h, cc}
  8605. * src/HttpResponseCommand.cc
  8606. * src/FtpNegotiationCommand.cc
  8607. Now --follow-torrent and --follow-metalink option work properly.
  8608. * src/RequestGroup.cc
  8609. Updated man page
  8610. * doc/aria2c.1.txt
  8611. * doc/aria2c.1
  8612. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8613. Removed.
  8614. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  8615. Use Segment::operator==()
  8616. * src/HttpConnection.cc
  8617. * src/Segment.h
  8618. Updated usage
  8619. * src/version_usage.cc
  8620. Added EINTR treatment.
  8621. * src/SocketCore.cc
  8622. * src/AbstractDiskWriter.cc
  8623. Rewritten.
  8624. * src/Util.cc (rangedFileCopy)
  8625. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Fixed typo.
  8627. * src/version_usage.cc
  8628. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8629. Implemented. Now -c option works fine.
  8630. * src/DefaultPieceStorage.cc (markPiecesDone)
  8631. * test/DefaultPieceStorageTest.cc
  8632. Removed.
  8633. * src/SegmentMan.{h, cc}
  8634. (markAllPiecesDone)
  8635. (markPieceDone)
  8636. Synchronized po files with
  8637. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  8638. * src/fr.po
  8639. * src/ru.po
  8640. * src/de.po
  8641. * src/ja.po
  8642. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8643. Added ifdef and some modifications to compile without BitTorrent,
  8644. Metalink, MessageDigest
  8645. support.
  8646. * src/PieceHashCheckIntegrityEntry.cc
  8647. * src/MetalinkEntry.h
  8648. * src/version_usage.cc
  8649. * src/main.cc
  8650. * src/DownloadEngine.{h, cc}
  8651. * src/Metalink2RequestGroup.cc
  8652. * src/Peer.cc
  8653. * src/RequestGroup.cc
  8654. * src/MetalinkHelper.cc
  8655. * test/DefaultPieceStorageTest.cc
  8656. * test/MetalinkPostDownloadHandlerTest.cc
  8657. * test/Metalink2RequestGroupTest.cc
  8658. Hide TOTAL SPD when all downloads complete.
  8659. * src/ConsoleStatCalc.cc
  8660. Log target system information.
  8661. * src/main.cc
  8662. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. Now --metalink-location accepts a comma-deliminated list of locations.
  8664. * src/MetalinkEntry.{h, cc}
  8665. * test/MetalinkEntryTest.cc
  8666. * src/version_usage.cc
  8667. * src/Metalink2RequestGroup.cc
  8668. * src/Xml2MetalinkProcessor.cc
  8669. * test/Xml2MetalinkProcessorTest.cc
  8670. * doc/aria2c.1.txt
  8671. * doc/aria2c.1
  8672. * src/Util.cc (toUpper)(toLower): Rewritten.
  8673. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8674. Added the ability to detect duplicate download entry which is about to
  8675. download the same file other RequestGroup is downloading.
  8676. * src/RequestGroup.cc
  8677. * src/HttpResponseCommand.cc
  8678. * src/FtpNegotiationCommand.cc
  8679. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Recalculates download progress when loading a control file,
  8681. if the piece length of DownloadContext is different from the one saved
  8682. in the control file. Currently in-flight pieces are ignored.
  8683. * src/DefaultBtProgressInfoFile.cc
  8684. * test/DefaultBtProgressInfoFileTest.cc
  8685. * src/Util.{h, cc}
  8686. * test/UtilTest.cc
  8687. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8688. Do not rotate tiers in announce-list.
  8689. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  8690. AnnounceList::allTiersFailed() used instead to detect whether all
  8691. tiers are tried and failed.
  8692. * test/DefaultBtAnnounceTest.cc
  8693. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  8694. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  8695. * test/AnnounceListTest.cc
  8696. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  8697. clause. Catch RecoverableException instead of DlRetryEx instead.
  8698. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Implemented checksum validation feature(1 checksum for each file)
  8700. The validation takes place after the download.
  8701. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  8702. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  8703. * src/CheckIntegrityCommand.cc: Changed log message.
  8704. * src/Metalink2RequestGroup.cc: Set checksum to
  8705. SingleFileDownloadContext.
  8706. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  8707. PieceHashCheckIntegrity class.
  8708. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  8709. PieceHashCheckIntegrity class.
  8710. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  8711. * src/IteratableValidator.h: New class.
  8712. * src/message.h
  8713. * src/CheckIntegrityEntry.{h, cc}
  8714. * src/IteratableChunkChecksumValidator.{h, cc}
  8715. * src/SingleFileDownloadContext.h
  8716. * src/DownloadCommand.cc
  8717. --allow-overwrite=true is no longer needed to check file integrity
  8718. before download in BitTorrent download.
  8719. * src/RequestGroup.cc (getInitialCommand)
  8720. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  8721. throws exception.
  8722. * src/RequestGroupMan.cc (getInitialCommands)
  8723. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. urlencode the given url inside Request::parseUrl(...)
  8725. * src/Request.{h, cc}
  8726. * src/Util.{h, cc}
  8727. * test/RequestTest.cc
  8728. Removed #!metalink3! notation support because it is deleted from
  8729. the metalink specification.
  8730. * src/Request.{h, cc}
  8731. * test/RequestTest.cc
  8732. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. Don't connect server before checking file integrity at startup, if
  8734. filesize and output file path are known.
  8735. * src/AbstractCommand.cc
  8736. * src/StreamFileAllocationEntry.cc
  8737. * src/Metalink2RequestGroup.cc
  8738. * src/RequestGroup.{h, cc}
  8739. * src/HttpResponseCommand.cc
  8740. * src/FtpNegotiationCommand.cc
  8741. Added DownloadFailureException. If it is thrown, RequestGroup should
  8742. halt.
  8743. * src/AbstractCommand.cc
  8744. * src/DownloadFailureException.h
  8745. * src/RequestGroup.cc
  8746. Catch RecoverableException, instead of DlAbortEx.
  8747. * src/RequestGroupMan.cc
  8748. * src/FillRequestGroupCommand.cc
  8749. * src/MetaFileUtil.cc
  8750. * src/IteratableChunkChecksumValidator.cc
  8751. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  8752. getGID())
  8753. * src/CheckIntegrityCommand.cc
  8754. * src/message.h
  8755. Print gid instead of idx.
  8756. * src/RequestGroupMan.cc
  8757. Removed exception throwers declaration.
  8758. * src/DirectDiskAdaptor.{h, cc}
  8759. * src/SocketCore.{h, cc}
  8760. * src/MultiDiskAdaptor.{h, cc}
  8761. * src/HttpConnection.{h, cc}
  8762. * src/HttpResponse.{h, cc}
  8763. * src/DiskAdaptor.{h, cc}
  8764. * src/CopyDiskAdaptor.{h, cc}
  8765. * src/MultiDiskAdaptor.{h, cc}
  8766. * src/HttpHeaderProcessor.{h, cc}
  8767. * src/AbstractSingleDiskAdaptor.{h, cc}
  8768. * src/Util.{h, cc}
  8769. * test/UtilTest.cc
  8770. * src/DefaultDiskWriter.{h, cc}
  8771. * src/FtpConnection.{h, cc}
  8772. * src/AbstractDiskWriter.{h, cc}
  8773. Removed duplicate code.
  8774. * src/StreamCheckIntegrityEntry.cc
  8775. Removed unnecessary include.
  8776. * src/DiskWriter.h
  8777. Included Exception.h
  8778. * src/option_processing.cc
  8779. Included 2 files and added doc
  8780. * src/TrackerWatcherCommand.cc
  8781. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  8782. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Changed CheckIntegrityEntry interface so that it can define
  8784. the action when all the chunk checksums are valid.
  8785. * src/CheckIntegrityEntry.h
  8786. * src/StreamCheckIntegrityEntry.{h, cc}
  8787. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  8788. are valid, then aira2 goes to seeding mode. Sometimes it is better
  8789. to exit rather than doing seeding. So, it would be good to toggle this
  8790. behavior.
  8791. * src/CheckIntegrityCommand.cc
  8792. * src/AbstractCommand.cc
  8793. * src/RequestGroup.cc
  8794. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. Reflect the download length of in-flight pieces.
  8796. It makes the download length readout more precise.
  8797. * src/DefaultPieceStorage.{h, cc}
  8798. * test/DefaultPieceStorageTest.cc
  8799. * src/a2functional.h
  8800. * test/a2functionalTest.cc
  8801. Lower CPU load when --max-download-limit is used.
  8802. There is up and down in speed indicator when enabling
  8803. http-pipelining but a download goes well. I think the problem is that
  8804. because http-pipelining is enabled, DownloadCommand is created for
  8805. each segment and in its constructor, PeerStat::downloadStart() is
  8806. called. In PeerStat::downloadStart(), speed calculation object is
  8807. reseted, which makes download speed zero.
  8808. * src/DownloadCommand.cc
  8809. Rewritten using accumulate.
  8810. * src/RequestGroupMan.cc (calculateStat)
  8811. Code clearnup.
  8812. * src/FtpNegotiationCommand.cc
  8813. * src/HttpResponseCommand.cc
  8814. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Fixed: Can not resume: aria2 reports download already finished.
  8816. * src/AbstractCommand.{h, cc}
  8817. * src/HttpResponseCommand.cc
  8818. * src/FtpNegotiateCommand.cc
  8819. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Now a file is stored in the directory specified in .metalnk file
  8821. (file[@name]).
  8822. * src/Metalink2RequestGroup.cc
  8823. Create the directory structure when opening the file if it doesn't
  8824. exist.
  8825. * src/AbstractDiskWriter.cc
  8826. * src/Util.{h, cc}
  8827. * src/File.h
  8828. * test/UtilTest.cc
  8829. Removed file name comparison
  8830. * src/Metalink2RequestGroup.cc
  8831. * src/HttpResponseCommand.cc
  8832. Rewritten using Util::mkdirs()
  8833. * src/FileEntry.cc (setupDir)
  8834. * test/FileEntryTest.cc
  8835. Updated doc
  8836. * src/SingleFileDownloadContext.h
  8837. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Now SleepCommand dispatches nextCommand when halt is requested.
  8839. It avoids a possible long wait after hitting CTRL-C.
  8840. * src/SleepCommand.{h, cc}
  8841. * src/RequestGroupAware.{h, cc}
  8842. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8844. to open listen port, then remove the port number from the tracker
  8845. request.
  8846. * src/DefaultBtAnnounce.cc
  8847. * test/DefaultBtAnnounceTest.cc
  8848. * test/MockPieceStorage.h
  8849. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8850. them more testable.
  8851. * src/DefaultBtAnnounce.{h, cc}
  8852. * src/DefaultBtContext.{h, cc}
  8853. * src/Util.{h, cc}
  8854. * test/DefaultBtAnnounceTest.cc
  8855. * test/DefaultBtContextTest.cc
  8856. * test/UtilTest.cc
  8857. Added 'B' to upload bytes readout.
  8858. * src/ConsoleStatCalc.cc
  8859. Now the listen port for BitTorrent download is opened when it is
  8860. needed.
  8861. * src/DownloadEngineFactory.cc
  8862. * src/BtSetup.{h, cc}
  8863. * src/PeerListenCommand.{h, cc}
  8864. Now an exception thrown while parsing tracker response is now logged.
  8865. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8866. called, which means no retry is made in this case, assuming a tracker
  8867. has a problem.
  8868. * src/TrackerWatcherCommand.cc
  8869. Fixed: downloading a file whose length is unkown fails.
  8870. * src/DownloadCommand.cc
  8871. Simplified prepareForNextSegment()
  8872. * src/DownloadCommand.cc
  8873. Updated
  8874. * po/POTFILES.in
  8875. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8876. Re-implemented a file listing for Metalink, which was dropped while
  8877. http/ftp/torrent integration was being implemented.
  8878. * src/MetalinkHelper.{h, cc}: New class.
  8879. * test/MetalinkHelperTest.cc
  8880. * src/main.cc
  8881. * src/Metalink2RequestGroup.cc
  8882. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Added the ability to display the detailed torrent file information.
  8884. Now -S option gives not only a file listing, but also total download
  8885. length, info hash, announce URI, piece length, the number of pieces,
  8886. and mode(single or multi-torrent).
  8887. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8888. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8889. KiB)
  8890. * test/UtilTest.cc
  8891. * src/main.cc
  8892. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8893. Added ftp://USER:PASSWD@Servername automatic parsing.
  8894. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8895. _password. Recognize username and password in URI.
  8896. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8897. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8898. * src/RequestFactory.{h, cc}: Removed.
  8899. * src/AuthConfigFactory.{h, cc}: New class.
  8900. * src/FtpConnection.cc: Use AuthConfigFactory.
  8901. * src/HttpRequest.cc: Use AuthConfigFactory.
  8902. * test/HttpRequestTest.cc: Updated.
  8903. * test/RequestTest.cc: Updated.
  8904. * test/AuthConfigFactoryTest.cc: New class.
  8905. * test/RequestFactoryTest.cc: Removed.
  8906. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Use RequestGroup::allDownloadFinished() to decide whether the control
  8908. file should be removed or saved.
  8909. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8910. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8911. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8912. Use File::renameTo()
  8913. * src/DefaultBtProgressInfoFile.cc
  8914. Added --no-file-allocation-limit command-line option.
  8915. * src/version_usage.cc
  8916. * src/option_processing.cc
  8917. * src/OptionHandlerFactory.cc
  8918. * src/RequestGroup.{h, cc}
  8919. * src/BtCheckIntegrityEntry.cc
  8920. * src/StreamCheckIntegrityEntry.cc
  8921. * src/prefs.h
  8922. * doc/aria2c.1.txt
  8923. * doc/aria2c.1
  8924. Now prealloc is the default value for --file-allocation option.
  8925. * src/version_usage.cc
  8926. * src/option_processing.cc
  8927. * doc/aria2c.1.txt
  8928. * doc/aria2c.1
  8929. Don't URL-encode user-agent.
  8930. * src/HttpRequest.cc
  8931. Updated translations
  8932. * po/LINGUAS: Added nl for Dutch translation.
  8933. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8934. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8935. * po/POTFILES.in: Updated.
  8936. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8937. Added the ability to recognize url-list in a torrent file.
  8938. The retrieved URLs are attached to the corresponding FileEntry.
  8939. * src/DefaultBtContext.{h, cc}
  8940. * src/FileEntry.{h, cc}
  8941. * test/DefaultBtContextTest.cc
  8942. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8944. after the download finishes.
  8945. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8947. the data smaller than block length.
  8948. A block length can be specified by constructor's argument.
  8949. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8950. Get a missing piece in the range of given FileEntry. This function is
  8951. not used in the program yet.
  8952. * src/Util.h: Added some macros.
  8953. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8954. Added HTTP/1.1 keep alive and pipelining support.
  8955. See --enable-http-keep-alive and --enable-http-pipelining option.
  8956. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8957. Segment.
  8958. * src/HttpDownloadCommand.{h, cc}
  8959. * src/OptionHandlerFactory.cc
  8960. * src/HttpConnection.{h, cc}
  8961. * src/version_usage.cc
  8962. * src/HttpInitiateConnectionCommand.cc
  8963. * src/FtpInitiateConnectionCommand.cc
  8964. * src/Segment.h
  8965. * src/HttpRequestCommand.{h, cc}
  8966. * src/option_processing.cc
  8967. * src/prefs.h
  8968. * src/HttpResponseCommand.cc
  8969. * src/SegmentMan.{h, cc}
  8970. * src/FtpNegotiateCommand.cc
  8971. * src/HttpProxyResponseCommand.cc
  8972. * src/Request.cc
  8973. * src/HttpRequest.cc
  8974. * src/DownloadCommand.cc
  8975. * test/HttpRequestTest.cc
  8976. * test/RequestTest.cc
  8977. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8978. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8979. finished.
  8980. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8982. catching it inside the method.
  8983. When no file entry is found in a metalink without querying user
  8984. preferences, throw the exception with the error message that suggests
  8985. metalink file is probably broken.
  8986. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8987. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8989. processed.
  8990. * src/RequestGroupMan.cc (removeStoppedGroup)
  8991. Added debug message.
  8992. * src/BtPostDownloadHandler.cc
  8993. * src/MetalinkPostDownloadHandler.cc
  8994. * src/PostDownloadHandler.{h, cc}
  8995. * src/RequestGroup.cc
  8996. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8998. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8999. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9000. stops and there are any unfinished or in-progress downloads.
  9001. Added the legend of "stat".
  9002. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Throw exception when chunck checksum verification fails.
  9004. * src/DownloadCommand.cc (validatePieceHash): New function.
  9005. * src/PiecedSegment.{h, cc} (clear): New function.
  9006. * src/GrowSegment.{h, cc} (clear): New function.
  9007. * src/Segment.h (clear): New function.
  9008. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9009. * test/SegmentTest.cc
  9010. * test/GrowSegmentTest.cc
  9011. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9012. Do not send referer when redirected.
  9013. * src/Request.cc (redirectUrl)
  9014. * test/RequestTest.cc
  9015. * test/HttpRequestTest.cc
  9016. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9017. Implemented BitTorrent/http/ftp integrated download.
  9018. I've rewritten lots of files and now some headers have forward
  9019. class declarations to reduce compile time.
  9020. The implementation is extremely alpha stage, I recommend to use this
  9021. for testing purpose only.
  9022. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9023. Fixed the compilation error on 64bit platform.
  9024. * test/HttpHeaderProcessorTest.cc
  9025. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9026. Merged Ross's patch that fixes compilation problem in MinGW
  9027. * test/DefaultBtProgressInfoFileTest.cc
  9028. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9029. Updated fr.po by sebone
  9030. * po/fr.po
  9031. Updated man page.
  9032. * doc/aria2c.1.txt
  9033. * Release 0.11.3
  9034. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9035. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9036. failure in Metalink.
  9037. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. Automatically save *.aria2 control file of http/ftp download in every
  9039. 60 seconds.
  9040. * src/AutoSaveCommand.{h, cc}: New class.
  9041. * src/TimeBasedCommand.{h, cc}: New class.
  9042. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9043. Disable parameterized URI support by default. Added -P option to
  9044. enable the feature.
  9045. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9046. * src/OptionHandlerFactory.cc
  9047. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9048. Updated Japanese translation.
  9049. * po/ja.po
  9050. Updated man page.
  9051. * doc/aria2c.1.txt
  9052. * Release 0.11.3-rc
  9053. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9054. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9055. it is successful, then renamed to *.aria2.
  9056. This prevents *.aria2 file from being truncated or corrupted when
  9057. file system becomes out of space.
  9058. * src/DefaultBtProgressInfoFile.cc (save)
  9059. * src/SegmentMan.cc (save)
  9060. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9061. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9062. Reduced the fragmentation of bitfield in http/ftp download.
  9063. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9064. * test/BitfieldManTest.cc
  9065. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Added the ability to disable segmented download in .metalink.
  9067. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9068. 'url' tag.
  9069. * src/MetalinkEntry.{h, cc}
  9070. * src/RequestResource.{h, cc}
  9071. * src/MetalinkRequestInfo.cc
  9072. * src/Xml2MetalinkProcessor.cc
  9073. * test/Xml2MetalinkProcessorTest.cc
  9074. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9075. Added parameterized URI support.
  9076. * src/main.cc: -Z option added.
  9077. * src/OptionHandlerFactory.cc
  9078. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9079. * src/PStringDatum.h: New class.
  9080. * src/PStringSegment.{h,cc}: New class.
  9081. * src/PStringNumLoop.h: New class.
  9082. * src/PStringSelect.h: New class.
  9083. * src/NumberDecorator.h: New class.
  9084. * src/FixedWidthNumberDecorator.h: New class.
  9085. * src/AlphaNumberDecorator.h: New class.
  9086. * src/PStringVisitor.h: New class.
  9087. * src/PStringBuildVisitor.{h,cc}: New class.
  9088. * src/ParameterizedStringParser.{h,cc}: New class.
  9089. * src/Util.{h,cc}
  9090. (isNumber): New function.
  9091. (isLowercase): New function.
  9092. (isUppercase): New function.
  9093. (alphaToNum): New function.
  9094. * test/ParameterizedStringParserTest.cc: New class.
  9095. * test/AlphaNumberDecoratorTest.cc: New class.
  9096. * test/PStringBuildVisitorTest.cc: New class.
  9097. * test/UtilTest.cc
  9098. (testIsNumber): New function.
  9099. (testIsLowercase): New function.
  9100. (testIsUppercase): New function.
  9101. (testAlphaToNum): New function.
  9102. Added '\n' after the error message
  9103. * src/RequestInfo.h (printDownloadAbortMessage)
  9104. Added auto file renaming feature in http(s)/ftp download.
  9105. * src/main.cc: Added --auto-file-renaming command-line option.
  9106. * src/OptionHandlerFactory.cc
  9107. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9108. * src/RequestGroup.{h, cc}
  9109. (shouldCancelDownloadForSafety): Rewritten
  9110. (tryAutoFileRenaming): New function.
  9111. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9112. * src/HttpResponseCommand.cc
  9113. (executeInternal): Removed the call to RequestGroupMan::
  9114. isSameFileBeingDownloaded()
  9115. * src/FtpNegotiateCommand.cc
  9116. (recvSize): Removed the call to RequestGroupMan::
  9117. isSameFileBeingDownloaded()
  9118. * test/RequestGroupTest.cc: New class.
  9119. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9120. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9121. IO.
  9122. * src/DefaultBtProgressInfoFile.cc
  9123. * src/MetaFileUtil.cc
  9124. * src/SimpleLogger.cc
  9125. * src/SegmentMan.cc
  9126. * src/Util.cc
  9127. * src/Platform.cc
  9128. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9129. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9130. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9131. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9132. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9133. Fixed the bug that prevents file allocation is not done when
  9134. dowloading multi-torrent file.
  9135. * src/AbstractDiskWriter.cc (openFile)
  9136. Increase the maximum number of -j option from 15 to 45.
  9137. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9138. Added fr.po, thanks to Charles Landemaine.
  9139. * po/fr.po
  9140. * po/LINGUAS
  9141. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9142. gcc 3.4.4 support:
  9143. * src/DefaultBtContext.cc: int32_t -> int
  9144. * src/main.cc: int -> int32_t, int32_t -> int
  9145. * src/messageDigest.h: uint32_t -> unsigned int
  9146. * src/NameResolver.h: int32_t -> int
  9147. * src/PeerConnection.cc: int -> int32_t
  9148. * src/SpeedCalc.cc: int32_t -> int
  9149. * src/TrackerUpdateCommand.h: int -> int32_t
  9150. * src/Util.cc: int32_t -> int
  9151. * src/Util.h: int32_t -> int
  9152. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9153. * test/AnnounceListTest.cc: int -> int32_t
  9154. * test/ChunkedEncodingTest.cc: int -> int32_t
  9155. * test/DataTest.cc: int -> int32_t
  9156. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9157. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9158. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9159. * test/FeatureConfigTest.cc: int -> int32_t
  9160. * test/MetalinkEntryTest.cc: int -> int32_t
  9161. * test/MockBtRequestFactory.h: int -> int32_t
  9162. * test/MockPieceStorage.h: int -> int32_t
  9163. * test/OptionTest.cc: int -> int32_t
  9164. * test/RequestTest.cc: int -> int32_t
  9165. * test/SegmentManTest.cc: int -> int32_t
  9166. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9167. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9168. Move sleep functions to Util class:
  9169. * src/Util.cc
  9170. (sleep): New function.
  9171. (usleep): New function.
  9172. * src/DownloadCommand.cc: sleep -> Util::sleep
  9173. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9174. MinGW build enhancements. The following files are added:
  9175. * src/timegm.{c,h}
  9176. Changes to support the above new files:
  9177. * configure.ac
  9178. * src/Makefile.am
  9179. * src/a2time.h
  9180. * src/Util.cc:
  9181. * src/strptime.c: Added support for %Z option.
  9182. Fixed MinGW non-blocking bug.
  9183. * src/SocketCore.cc
  9184. * src/HttpRequestCommand.cc
  9185. Miscellenous build fixes/enhancements.
  9186. * configure.ac: Added summary report.
  9187. * src/Platform.h: Tweaked #include's.
  9188. * src/a2netcompat.h: Tweaked #include's.
  9189. * src/strptime.h: Tweaked #include's.
  9190. * src/gai_strerror.c: Tweaked #include's.
  9191. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9192. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9193. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9194. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Increased the initial connection size in BitTorrent download to 40.
  9196. * src/BtRuntime.h
  9197. Added the usage message of --peer-id-prefix option.
  9198. * src/main.cc
  9199. * Release 0.11.2
  9200. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9201. MessageDigestHelper is introduced in order to simplify the use
  9202. of message digest. Removed repeated code.
  9203. The message digest algorithm is now specified by string, like "sha1",
  9204. "md5".
  9205. * src/messageDigest.{h, cc}
  9206. * src/MessageDigestHelper.{h, cc}: New class.
  9207. * src/DefaultPieceStorage.cc
  9208. * src/DefaultBtContext.{h, cc}
  9209. (computeFastSet): New function.
  9210. (setInfoHash): Added for unit testing.
  9211. (setNumPieces): Added for unit testing.
  9212. * src/DefaultBtInteractive.cc
  9213. * src/BtPieceMessage.cc
  9214. * src/Peer.cc
  9215. * src/Checksum.h
  9216. * src/message.h
  9217. * src/IteratableChecksumValidator.h
  9218. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9219. inside it.
  9220. * src/SegmentMan.{h, cc}
  9221. (checkIntegrity): Removed.
  9222. * src/IteratableChunkChecksumValidator.{h, cc}
  9223. * src/Util.h
  9224. (sha1Sum): Removed.
  9225. (simpleMessageDigest): Removed.
  9226. (fileChecksum): Removed.
  9227. (computeFastSet): Removed.
  9228. * src/ShaVisitor.cc
  9229. * src/ChunkChecksum.h
  9230. * src/DownloadCommand.cc
  9231. Removed messageDigest virtual functions.
  9232. * src/MultiDiskAdaptor.{h, cc}
  9233. * src/DiskAdaptor.h
  9234. * src/ByteArrayDiskWriter.h
  9235. * src/DiskWriter.h
  9236. * src/DiskAdaptorWriter.h
  9237. * src/AbstractSingleDiskAdaptor.{h, cc}
  9238. * src/AbstractDiskWriter.{h, cc}
  9239. Fixed comilation error when message digest is disabled.
  9240. * src/MetalinkEntry.{h, cc}
  9241. * src/MetalinkRequestInfo.cc
  9242. Removed srandom and random.
  9243. * src/SimpleRandomizer.h
  9244. Added size() virtual function to DiskAdaptor
  9245. * src/MultiDiskAdaptor.h
  9246. Fixed the bug that causes that files are not opened correctly in
  9247. multi-file torrent.
  9248. * src/TorrentRequestInfo.cc
  9249. * src/MultiDiskAdaptor.cc
  9250. Added SHA256 support
  9251. * src/messageDigest.cc
  9252. * src/Xml2MetalinkProcessor.cc
  9253. Show supported message digest algorithms
  9254. * src/main.cc
  9255. Updated contact info.
  9256. * src/main.cc
  9257. Applied Ross's patch
  9258. * src/a2netcompat.h
  9259. * src/main.cc
  9260. Fixed the bug that prevents a remote metalink from not being processed
  9261. even if '-o foo.metalink' is specified.
  9262. * src/MetalinkRequestInfo.cc
  9263. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Merged Dan's patch:
  9265. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9266. Use va_copy to avoid core dump on amd64:
  9267. * src/SimpleLogger.cc
  9268. Updated contact info.
  9269. * src/main.cc
  9270. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9271. digest is not available.
  9272. * src/MetalinkEntry.h
  9273. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9274. Make a2netcompat.h include a2io.h to fix compilation error:
  9275. * src/a2netcompat.h
  9276. * src/SocketCore.cc: Removed include of a2io.h
  9277. * src/Util.cc: Removed include of a2io.h
  9278. Gather time related functions to a2time.h:
  9279. * src/a2time.h: New file.
  9280. * src/DefaultPeerStorage.cc
  9281. * src/SimpleLogger.cc
  9282. * src/Util.{h, cc}
  9283. * src/SimpleRandomizer.h
  9284. * src/TimeA2.{h,cc}
  9285. * src/DownloadCommand.cc
  9286. * src/main.cc
  9287. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9288. a2netcompat.h:
  9289. * src/NameResolver.cc
  9290. Fixed compilation error without openssl:
  9291. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9292. Added default block to suppress compiler warnings:
  9293. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9294. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9295. MinGW build enhancements. The following files are added:
  9296. * src/gai_strerror.{c,h}
  9297. * src/gettimeofday.{c,h}
  9298. Changes to support the above new files:
  9299. * configure.ac
  9300. * src/Makefile.am
  9301. * src/a2netcompat.h
  9302. * src/TimeA2.cc
  9303. * src/DefaultPeerStorage.cc
  9304. * src/NameResolver.cc: removed mingw_strerror() function.
  9305. * src/SocketCore.cc: removed mingw_strerror() function.
  9306. Miscellaneous MinGW build fixes.
  9307. * src/a2io.h: Use _lseeki64() instead of lseek()
  9308. * src/common.h
  9309. * src/DefaultFileAllocator.cc
  9310. * src/GlowFileAllocator.cc
  9311. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9312. * src/NameResolver.cc
  9313. (callback): Changed int32_t to int.
  9314. (resolve): Changed int32_t to int.
  9315. * src/Platform.cc
  9316. * src/Platform.h
  9317. * test/MultiDiskWriterTest.cc
  9318. * test/PeerMessageUtilTest.cc
  9319. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9320. Other enhancements and fixes.
  9321. * src/HttpRequestCommand.cc
  9322. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9323. * src/SocketCore.cc:
  9324. (error): New function to abstract errno/WSAGetLastError().
  9325. (errorMsg): New function to abstract errno/WSAGetLastError().
  9326. (initiateSecureConnection): Added more detailed error reporting.
  9327. * src/SocketCore.h: Added private variable blocking, to allow
  9328. proper handling of OpenSSL psuedo-errors.
  9329. * src/message.h
  9330. (EX_SSL_INIT_FAILURE)
  9331. (EX_SSL_IO_ERROR)
  9332. (EX_SSL_PROTOCOL_ERROR)
  9333. (EX_SSL_UNKNOWN_ERROR)
  9334. (EX_SSL_CONNECT_ERROR)
  9335. (EX_SOCKET_BLOCKING)
  9336. (EX_SOCKET_NONBLOCKING)
  9337. (EX_SOCKET_UNKNOWN_ERROR)
  9338. * src/Util.cc
  9339. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9340. reserved name.
  9341. (httpGMT): Fixed typo.
  9342. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9343. Merged Ross's win32 patch(manually)
  9344. In the course of merging, following files are added.
  9345. * src/strptime.{h,c}
  9346. * src/libgen.{h,c}
  9347. * src/inet_aton.{h,c}
  9348. * src/Platform.{h,cc}
  9349. * src/localtime_r.{h,c}
  9350. * src/getaddrinfo.{h,c}
  9351. I've gethered network related things, and put them to following file:
  9352. * src/a2netcompat.h
  9353. Also io related things are put to following file:
  9354. * src/a2io.h
  9355. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9356. * src/message.h
  9357. (MSG_ALLOCATION_COMPLETED)
  9358. (EX_TOO_LARGE_FILE)
  9359. (EX_SIZE_MISMATCH)
  9360. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9361. (EX_INVALID_CHUNK_CHECKSUM)
  9362. (EX_INVALID_RANGE_HEADER)
  9363. * src/FileAllocationCommand.cc
  9364. * src/HttpResponse.cc
  9365. * src/RequestGroup.cc
  9366. * src/MultiDiskAdaptor.cc
  9367. * src/OptionHandlerImpl.h
  9368. * src/HttpResponseCommand.cc
  9369. * src/FtpNegotiateCommand.cc
  9370. * src/IteratableChecksumValidator.cc
  9371. * src/SegmentMan.cc
  9372. * src/ChunkChecksumValidator.cc
  9373. Added Randomizer::getRandomNumber(long int)
  9374. * src/Randomizer.h (getRandomNumber)
  9375. * src/SimpleRandomizer.h (getRandomNumber)
  9376. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9377. * src/Util.cc (randomAlpha): Use this new function.
  9378. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9379. Converted int's to in32_t. long long int's are also converted to
  9380. int64_t
  9381. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9382. Fixed the bug that prevents cookies from being sent to the server
  9383. if the domain of cookie is FQDN and starts with ".".
  9384. * src/Cookie.cc (match)
  9385. To add the ability to change peer id.
  9386. * src/DefaultBtContext.h
  9387. (_peerIdPrefix): New variable
  9388. (setPeerIdPrefix): New function.
  9389. * src/torrentRequestInfo.cc
  9390. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9391. DefaultBtContext.
  9392. * src/main.cc (main): Added peer-id-prefix command-line option.
  9393. The usage message is not added yet.
  9394. * src/DefaultBtContext.cc
  9395. (generatePeerId): Use _peerIdPrefix.
  9396. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9397. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9398. Fixed the bug that prevents filename in content-disposition from
  9399. being retrieved when filename is not quoted.
  9400. * src/Util.cc (getContentDispositionFilename)
  9401. Fixed the bug that causes infinate loop and memory leak when file open
  9402. operation failed.
  9403. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9404. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9405. Fixed the bug that causes segfault when all URIs specified are
  9406. unsupported.
  9407. * src/RequestGroupMan.cc (getInitialCommands)
  9408. Check if RequestGroup::createNextCommand() returns empty list of
  9409. commands.
  9410. * src/RequestGroup.cc (createNextCommand)
  9411. Change log level from info to error so that users can notice that
  9412. an error occurred.
  9413. Fixed the bug that causes segfault when a zero-sized file is
  9414. downloaded.
  9415. * src/BitfieldMan.cc (isAllBitSet)
  9416. Return true if bitfieldLength is 0.
  9417. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9418. * src/main.cc
  9419. (showUsage): Added 3 usage examples for metalink download.
  9420. Replace MetalinkChunkChecksum with ChunkChecksum.
  9421. * src/MetalinkChunkChecksum.h: Removed.
  9422. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9423. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9424. * src/Xml2MetalinkProcessor.cc
  9425. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9426. * src/MetalinkRequestInfo.cc (execute)
  9427. * Release 0.11.1
  9428. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9429. Reads URIs from stdin when "-i -" is specified.
  9430. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9431. * src/UriListParser.h, src/UriListParser.cc: New class.
  9432. * src/StreamUriListParser.h: New class.
  9433. * src/FileUriListParser.h: New class.
  9434. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9435. instead of UriFileListParser.
  9436. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9437. Made console readout more readable.
  9438. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9439. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9440. Fix the bug that causes -s option not to work.
  9441. * src/main.cc (main)
  9442. * src/a2algo.h: New file.
  9443. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. Create directory structure specified in metalink file.
  9445. * src/RequestGroup.h, src/RequestGroup.cc
  9446. (initAndOpenFile): Create a directory to store files if it does not
  9447. exist.
  9448. (getDir): New function.
  9449. Added ETA and download speed for an individual file to readout.
  9450. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9451. * src/RequestGroup.h
  9452. (calculateDownloadSpeed): New function.
  9453. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Made -S option work with metalink file and provided selective download
  9455. to metalink.
  9456. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9457. (filename): Removed.
  9458. (file): New variable.
  9459. (size): Removed.
  9460. (operator=): Updated.
  9461. (getPath): New function.
  9462. (getLength): New function.
  9463. (toFileEntry): New function.
  9464. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9465. (execute): Use toStream.
  9466. (showFileEntry): Removed.
  9467. * src/MetalinkRequestInfo.h
  9468. (targetFiles): New variable.
  9469. (setTargetFiles): New variable.
  9470. * src/MetalinkRequestInfo.cc
  9471. (execute): Added the ability to print file information included in
  9472. a metalink file.
  9473. Added selective download mode to metalink.
  9474. * src/main.cc
  9475. (showUsage): Updated to denote that -S and --select-file options are
  9476. applicable to metalink.
  9477. * src/FileEntry.h
  9478. (operator=): New function.
  9479. (getBasename): New function.
  9480. (getDirname): New function.
  9481. * src/Util.h, src/Util.cc
  9482. (toStream): New function.
  9483. * src/Xml2MetalinkProcessor.cc: Updated.
  9484. Made aria2 work with metalink with directory structure.
  9485. * src/File.h, src/File.cc
  9486. (getBasename): New function.
  9487. (getDirname): New function.
  9488. * src/RequestGroup.h, src/RequestGroup.cc
  9489. (_topDir): New variable.
  9490. (setTopDir): New function.
  9491. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9492. Rewrote HTTP header parsing with stringstream.
  9493. * src/HttpConnection.h, src/HttpConnection.cc
  9494. (HttpRequestEntry): New class.
  9495. (headerBuf): Removed.
  9496. (headerBufLength): Removed.
  9497. (outstandingHttpRequests): Now its element type is
  9498. HttpRequestEntryHandle.
  9499. (findEndOfHeader): Removed.
  9500. (receiveResponse): Rewritten.
  9501. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9502. Updated doc for -j option to notice that it should be used with -i
  9503. option.
  9504. * src/main.cc (showUsage)
  9505. Removed unused classes.
  9506. * src/RequestInfo.h
  9507. (FileInfo): Removed.
  9508. (checksum): Removed.
  9509. (fileInfo): Removed.
  9510. (setChecksum): Removed.
  9511. (getChecksum): Removed.
  9512. (getFileInfo): Removed.
  9513. Use ISO units.
  9514. * src/ConsoleDownloadEngine.cc
  9515. * src/TorrentConsoleDownloadEngine.cc
  9516. * src/Util.cc (abbrevSize)
  9517. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Added the default listening ports to the help message.
  9519. * src/main.cc (showUsage)
  9520. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9521. Reduce the number of calls to gettimeofday to lower CPU load.
  9522. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9523. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9524. * src/Peer.h (calculateUploadSpeed): New function.
  9525. (calculateDownloadSpeed): New function.
  9526. * src/DefaultPeerStorage.cc
  9527. (CalculateStat): Added _now variable.
  9528. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9529. and Peer::calculateUploadSpeed(const struct timeval&)
  9530. Drop connection if no request or piece message is exchanged in
  9531. a certain interval.
  9532. * src/DefaultBtInteractive.h
  9533. (btRuntime): New variable.
  9534. (inactiveCheckPoint): New variable.
  9535. (checkActiveInteraction): New function.
  9536. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9537. request or piece message is received.
  9538. (checkActiveInteraction): New function.
  9539. (doInteractionProcessing): Call checkActiveInteraction.
  9540. Fixed the bug that causes remote Metalink and Torrent files are not
  9541. processed.
  9542. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  9543. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9544. Changed format of log file.
  9545. * src/SimpleLogger.cc
  9546. * Release 0.11.0
  9547. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9548. * src/AbstractCommand.cc
  9549. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  9550. MSG_MAX_TRY from error to info.
  9551. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  9552. * src/message.h
  9553. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  9554. (MSG_DOWNLOAD_ABORTED): Added %s.
  9555. (MSG_RESTARTING_DOWNLOAD): Added %s.
  9556. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  9557. * src/PeerAbstractCommand.cc
  9558. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  9559. * src/Request.h
  9560. (cookieBox): Made ShardHandle.
  9561. * src/RequestGroup.h, src/RequestGroup.cc
  9562. (createNextCommandWithAdj): New function.
  9563. * src/FileAllocationCommand.cc
  9564. (executeInternal): Use createNextCommandWithAdj().
  9565. * src/CheckIntegrityCommand.cc
  9566. (executeInternal): Use createNextCommandWithAdj().
  9567. Added --load-cookies command-option.
  9568. * src/OptionHandlerFactory.cc
  9569. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  9570. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  9571. Now aria2 can handle cookie's expiration date.
  9572. * src/Cookie.h (expires): Changed its type to time_t.
  9573. * src/main.cc: Added --load-cookies command-line option.
  9574. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  9575. * src/Util.h, src/Util.cc (httpGMT): New function.
  9576. * src/Request.cc (Request): Initialize cookieBox using
  9577. CookieBoxFactory.
  9578. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  9579. * src/CookieParser.h, src/CookieParser.cc: New class.
  9580. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  9581. * src/HttpResponseCommand.cc
  9582. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  9583. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  9584. download.
  9585. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. Added -j command-line option.
  9587. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9588. * src/main.cc
  9589. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  9590. Rewritten using stringstream.
  9591. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  9592. Rewritten using stringstream.
  9593. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9594. Make download size shown in MB, KB.
  9595. * src/ConsoleDownloadEngine.h (sendStatistics)
  9596. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  9597. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9598. Accept incoming connections if download rate is low.
  9599. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  9600. (_lowestSpeedLimit): New variable.
  9601. (setLowestSpeedLimit): New function.
  9602. (execute): Accept incoming connections if download rate is low.
  9603. MAX_PEERS is ignored in this case.
  9604. Disable PREF_OUT in multiple concurrent download:
  9605. * src/RequestGroup.h, src/RequestGroup.cc
  9606. (setUserDefinedFilename): New function.
  9607. * src/DownloadEngineFactory.cc
  9608. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  9609. concurrent download.
  9610. * src/DefaultSegmentManFactory.cc
  9611. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  9612. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9613. RequestGroup::getNextCommand() was renamed to createNextCommand().
  9614. Added its overloaded method.
  9615. * src/RequestGroup.h
  9616. (_numConcurrentCommand): New variable.
  9617. (setNumConcurrentCommand): New function.
  9618. * src/RequestGroup.cc
  9619. Abort download if same file is being downloaded concurrently.
  9620. * src/RequestGroup.h, src/RequestGroupMan.cc
  9621. (isSameFileBeingDownloaded): New function.
  9622. * src/HttpResponseCommand.cc (executeInternal)
  9623. * src/FtpNegotiateCommand.cc (recvSize)
  9624. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  9625. * main.cc: Added help message for -i option.
  9626. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9627. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  9628. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  9629. * src/MetalinkEntry.h
  9630. (checksum): Changed to ChecksumHandle
  9631. * src/MetalinkRequestInfo.cc
  9632. (checksum): Changed to ChecksumHandle
  9633. * src/File.cc
  9634. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  9635. * src/common.h
  9636. (DIR_OPEN_MODE): New definition
  9637. * src/RequestGroup.cc
  9638. (prepareForNextAction): Added an argument.
  9639. * src/message.h
  9640. (MSG_GOOD_CHECKSUM): New definition
  9641. (MSG_BAD_CHECKSUM): New definition
  9642. * src/HttpResponseCommand.cc
  9643. (handleDefaultEncoding): Continue download sequence in new
  9644. non-segmented download.
  9645. * src/FileAllocationEntry.h
  9646. (_nextDownloadCommand): New variable.
  9647. * src/DownloadCommand.cc
  9648. (prepareForNextSegment): Create ChecksumCommand if checksum is
  9649. available.
  9650. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  9651. * src/IteratableChecksumValidator.h,
  9652. src/IteratableChecksumValidator.cc: New class.
  9653. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  9654. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9655. Change file mode to 666:
  9656. * src/common.h (OPEN_MODE): New definition.
  9657. * src/File.cc
  9658. * src/Util.cc
  9659. * src/Directry.cc
  9660. * src/AbstractDiskWriter.cc
  9661. Change the level of log message "download aborted" to debug:
  9662. * src/PeerAbstractCommand.cc (execute)
  9663. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  9664. * src/TrackerWatcherCommand.cc
  9665. (createCommand): Sleep some seconds after request failed.
  9666. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  9667. then abort tracker request.
  9668. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9669. * Added the simultaneous download feature.
  9670. * src/main.cc: Print "Exception caught: " when exception is caught.
  9671. Use CUIDCounter instead of BtRuntime::getNewCuid():
  9672. * src/ActivePeerConnectionCommand.cc
  9673. * src/PeerInteractionCommand.cc
  9674. * src/BtRuntime.h
  9675. (cuidCounter): Removed.
  9676. (getNewCuid): Removed.
  9677. * src/DownloadEngineFactory.cc
  9678. * src/PeerListenCommand.cc
  9679. * src/TrackerUpdateCommand.cc
  9680. * src/PeerInitiateConnectionCommand.cc
  9681. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. * src/PeerAbstractCommand.cc
  9683. (onAbort): Call PeerStorage::returnPeer()
  9684. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  9685. (incomingPeers): New variable.
  9686. (addIncomingPeer): New function.
  9687. (returnPeer): New function.
  9688. (onErasingPeer): New function.
  9689. (addPeer): push_back -> push_front
  9690. (getActivePeers): Rewritten.
  9691. (calculateStat): Rewritten.
  9692. * src/PeerStorage.h
  9693. (TransferStat::copy): New function.
  9694. (TransferStat::TransferStat): New function.
  9695. (TransferStat::operator=): New function.
  9696. (addIncomingPeer): New function.
  9697. (returnPeer): New function.
  9698. * src/PeerListenCommand.cc
  9699. (execute): Use PeerStorage::addIncomingPeer() instead of
  9700. Peer::addPeer().
  9701. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9702. Connect to a peer actively when download speed is lower than specified
  9703. speed in torrent download:
  9704. * src/ActivePeerConnectionCommand.h: New class.
  9705. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9706. * src/HttpRequest.cc (createRequest): url-encode user-agent
  9707. * src/main.cc: Fixed the bug that prevents download if .netrc
  9708. doesn't exist.
  9709. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9710. To cache resolved hostname:
  9711. * src/AbstractCommand.h, src/AbstractCommand.cc
  9712. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  9713. Added dns cache.
  9714. * src/FtpInitiateConnectionCommand.cc
  9715. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  9716. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  9717. NameResolver working without ares.
  9718. * src/TorrentRequestInfo.cc
  9719. (execute): Don't cache dns in torrent download.
  9720. * src/HttpInitiateConnectionCommand.cc
  9721. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  9722. * src/DNSCache.h: New class.
  9723. * src/UrlRequestInfo.cc
  9724. (execute): Use dns cache.
  9725. In http request, suppress port number in http request header if port
  9726. is 80 or 443:
  9727. * src/HttpRequest.cc (getHostText): Suppress port number in http
  9728. request header if port is 80 or 443.
  9729. (createProxyRequest): Allways send port number.
  9730. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9731. To add the command-line option which disables netrc support:
  9732. * src/OptionHandlerFactory.cc
  9733. (createOptionHandlers): Added PREF_NO_NETRC.
  9734. * src/main.cc: Added -n option.
  9735. * src/prefs.h (PREF_NO_NETRC): New definition.
  9736. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  9737. V_TRUE.
  9738. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  9739. is V_FALSE. This may get configurable in the future release.
  9740. To clear peer's error status by time basis:
  9741. * src/PeerAbstractCommand.cc
  9742. (onAbort): Call Peer::startBadCondition().
  9743. * src/Peer.h, src/Peer.cc
  9744. (error): Removed.
  9745. (_badConditionStartTime): New variable.
  9746. (_badConditionInterval): New variable. Initialized to 10 seconds.
  9747. (startBadCondition): New function.
  9748. (isGood): New function.
  9749. * src/DefaultPeerStorage.cc
  9750. (addPeer): Use Peer::isGood().
  9751. (FindFinePeer): Use Peer::isGood().
  9752. Always include port number in http request header:
  9753. * src/HttpRequest.cc (getHostText): Always include port number in
  9754. http request header.
  9755. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. To the ability to read options from a config file:
  9757. * src/main.cc: Command-line parameter validation is delegated to
  9758. OptionHandler class.
  9759. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  9760. * src/Option.h, src/Option.cc (clear): New function.
  9761. * src/OptionParser.h, src/OptionParser.cc: New class.
  9762. * src/OptionHandler.h: New class.
  9763. * src/NameMatchOptionHandler.h: New class.
  9764. * src/OptionHandlerImpl.h: New classes.
  9765. * src/prefs.h: '_' -> '-'
  9766. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  9767. (FTP_PASV): New definition.
  9768. * src/Util.h, src/Util.cc (getRealSize): New function.
  9769. To disable netrc support if .netrc file does not have correct
  9770. permissions:
  9771. * src/File.h, src/File.cc (mode): New function.
  9772. To prevent confidential information to be logged:
  9773. * src/HttpConnection.h, src/HttpConnection.cc
  9774. (eraseConfidentialInfo): New function.
  9775. (sendRequest): Call eraseConfidentialInfo().
  9776. (sendProxyRequest): Call eraseConfidentialInfo().
  9777. * src/main.cc: Validate permissions of .netrc file.
  9778. To add --user-agent command-line option:
  9779. * src/main.cc: Added new command line option: --user-agent
  9780. * src/prefs.h (PREF_USER_AGENT): New definition.
  9781. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  9782. parameter to HttpRequest object.
  9783. * src/AbstractProxyRequestCommand.cc
  9784. (executeInternal): Set user-agent option parameter to HttpRequest
  9785. object.
  9786. Marged the patches from Dan Fandrich.
  9787. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9788. Use filename and size from Metalink file instead of sending HEAD
  9789. request:
  9790. * src/UrlRequestInfo.h
  9791. (_filename): New variable.
  9792. (_totalLength): New variable.
  9793. (setTotalLength): New variable.
  9794. (setFilename): New variable.
  9795. * src/MetalinkRequestInfo.cc
  9796. (execute): Set filename and size to UrlRequestInfo
  9797. * src/UrlRequestInfo.cc
  9798. (execute): Use filename and size from Metalink instead of seding
  9799. HEAD request to servers.
  9800. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9801. To add the ability to resume downloading a partially downloaded file
  9802. which is downloaded from the beginning:
  9803. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  9804. takes this role.
  9805. * src/main.cc: Added -c option.
  9806. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  9807. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  9808. * src/prefs.h (PREF_CONTINUE): New definition.
  9809. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  9810. * src/DefaultDiskWriter.cc
  9811. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  9812. * src/AbstractDiskWriter.h
  9813. (glowFileAllocator): New variable.
  9814. * src/AbstractDiskWriter.cc
  9815. (openExistingFile): Now preallocate file space from the end of the
  9816. existing file if totalLength argument is specified and grater than 0.
  9817. * src/UrlRequestInfo.cc: If -c option is specified and the file
  9818. to download exists in local, continue the download of the file.
  9819. --allow-overwrite=true is assumed in this context.
  9820. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  9821. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  9822. Throw exception if --check-integrity=true is specified but chunk
  9823. checksums are not provided:
  9824. * src/UrlRequestInfo.cc
  9825. Do not print URLs to stdout:
  9826. * src/UrlRequestInfo.cc
  9827. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9828. * src/Request.h: Use AuthResolver to get authentication information.
  9829. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9830. set to RequestFactory object.
  9831. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9832. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9833. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9834. create Request object.
  9835. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9836. To integrate Netrc into exsiting classes:
  9837. * src/Request.h
  9838. (_userDefinedAuthConfig): New variable.
  9839. (findNetrcAuthenticator): New function.
  9840. (segment): Removed.
  9841. (setUserDefinedAuthConfig): New function.
  9842. (resolveHttpAuthConfigItem): New function.
  9843. (resolveFtpAuthConfigItem): New function.
  9844. (resolveHttpProxyAuthConfigItem): New function.
  9845. * src/HttpRequest.h
  9846. (authConfig): Removed.
  9847. (proxyAuthConfig): Removed.
  9848. (setAuthConfig): Removed.
  9849. (setProxyAuthConfig): Removed.
  9850. * src/UrlRequest.h
  9851. (getHeadResult): Added a parameter: authConfigHandle
  9852. * src/common.h
  9853. (SingletonHolder.h): New include.
  9854. * src/main.cc
  9855. (Netrc.h): New include.
  9856. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9857. Added initial value of PREF_NETRC_PATH.
  9858. Added the initialization of netrc.
  9859. * src/AuthConfig.h: New class.
  9860. * src/prefs.h
  9861. (PREF_NETRC_PATH): New definition.
  9862. * src/HttpAuthConfig.h: Removed.
  9863. * src/Netrc.cc
  9864. (getRequiredNextToken): New function.
  9865. (skipMacdef): New function.
  9866. (parse): Rewritten.
  9867. * src/Netrc.h
  9868. (getRequiredNextToken): New function.
  9869. (skipMacdef): New function.
  9870. * src/Util.h, src/Util.cc
  9871. (getHomeDir): New function.
  9872. * src/TrackerWatcherComand.cc
  9873. (createRequestCommand): Use AuthConfig.
  9874. * src/FtpConnection.cc
  9875. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9876. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9877. * src/Request.cc
  9878. (findNetrcAuthenticator): New function.
  9879. (resolveHttpAuthConfigItem): New function.
  9880. (resolveFtpAuthConfigItem): New function.
  9881. (resolveHttpProxyAuthConfigItem): New function.
  9882. * src/UrlRequestInfo.cc: Use AuthConfig.
  9883. * src/HttpRequest.cc
  9884. (createRequest): Use authConfig.
  9885. (getProxyAuthString): Use authConfig.
  9886. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9887. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9888. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. To reduce overhead to find commands whose socket is either
  9890. readable or writable in the download engine loop:
  9891. * src/Command.h, src/Command.cc
  9892. (STATUS): New enum.
  9893. (status): New variable.
  9894. (statusMatch): New function.
  9895. (setStatusActive): New function.
  9896. (setStatusInactive): New function.
  9897. * src/DownloadEngine.h, src/DownloadEngine.cc
  9898. (executeCommand): New function.
  9899. (run): Simplified.
  9900. (waitData): Call Command::setStatusActive() when command's socket is
  9901. readable or writable.
  9902. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9903. To handle Segment as SegmentHandle:
  9904. * src/AbstractCommand.cc (execute): Rewritten.
  9905. * src/SegmentMan.h: Segment -> SegmentHandle
  9906. Introducded HttpResponse class, HttpRequest class to improve code
  9907. extensiveness and make it clear:
  9908. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9909. HttpResponse class.
  9910. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9911. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9912. * src/HttpConnection.cc: Contruction of http request were moved to
  9913. HttpRequest class.
  9914. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9915. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9916. * src/HttpAuthConfig.h: New class.
  9917. * src/Range.h: New class.
  9918. To make FtpTunnel{Request, Response}Command and
  9919. HttpProxy{Request, Response}Command derived from
  9920. AbstractProxy{Request, Response}Command:
  9921. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9922. Derived from AbstractProxyRequestCommand class.
  9923. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9924. Derived from AbstractProxyResponseCommand class.
  9925. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9926. Derived from AbstractProxyRequestCommand class.
  9927. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9928. Derived from AbstractProxyResponseCommand class.
  9929. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9930. : New class.
  9931. * src/AbstractProxyResponseCommand.h,
  9932. src/AbstractProxyResponseCommand.cc: New class.
  9933. To add netrc support:
  9934. * src/Netrc.h, src/Netrc.cc: New class.
  9935. * src/Util.h, src/Util.cc (split): New function.
  9936. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9937. "Content-Range" header instead of "Range" header.
  9938. * src/HttpHeader.h
  9939. (getStatus): Removed.
  9940. (setStatus): Removed.
  9941. * src/Segment.h
  9942. (getPositionToWrite): New function.
  9943. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9944. * src/HttpHeader.h
  9945. (Range.h): New include.
  9946. (status): New variable.
  9947. (HttpHeader): Initialized status with 0.
  9948. (getStatus): New function.
  9949. (setStatus): New function.
  9950. (getRange): New function.
  9951. (HttpHeaderHandle): New function.
  9952. * src/HttpHeader.cc
  9953. (getRange): New function.
  9954. * src/Request.h
  9955. (RequestWeakHandle): New definition.
  9956. * src/HttpConnection.h
  9957. (HttpConnectionHandle): New type definition.
  9958. * src/HttpConnection.cc
  9959. (receiveResponse): Set HTTP status to headers.
  9960. * src/main.cc
  9961. (showUsage): Fixed typo.
  9962. * src/Segment.h
  9963. (SegmentHandle): New type definition.
  9964. * src/BitfieldMan.h
  9965. (getMissingUnusedLength): New function.
  9966. * src/BitfieldMan.cc
  9967. (getMissingUnusedLength): New function.
  9968. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9969. To fix static initialization order problem:
  9970. * src/BitfieldManFactory.h
  9971. (defaultRandomizer): Removed.
  9972. (factory): New variable.
  9973. (getNewFactory): Removed.
  9974. (getFactoryInstance): New function.
  9975. (setDefaultRandomizer): Rewritten.
  9976. (getDefaultRandomizer): Rewritten.
  9977. * src/BitfieldManFactory.cc
  9978. (defaultRandomizer): Removed.
  9979. (factory): Initialized to 0.
  9980. (BitfieldManFactory): Initialized randomizer to 0.
  9981. * src/DefaultPieceStorage.cc
  9982. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9983. * src/Peer.cc
  9984. (Peer): getNewFactory() -> getFactoryInstance()
  9985. * src/SegmentMan.cc
  9986. (initBitfield): getNewFactory() -> getFactoryInstance()
  9987. * src/Piece.cc
  9988. (Piece): getNewFactory() -> getFactoryInstance()
  9989. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9990. To fix the bug that causes crash on Max OS X:
  9991. * src/SimpleRandomizer.h
  9992. (getInstance): Create new instance if the static variable is null.
  9993. * src/SimpleRandomizer.cc
  9994. (randomizer): Initialized to 0.
  9995. * src/BitfieldManFactory.h
  9996. (getNewFactory): Removed the call to setRandomizer().
  9997. To fix the miscalculation of the range of checksum:
  9998. * src/BitfieldMan.h
  9999. (isBitSetOffsetRange): New function.
  10000. * src/BitfieldMan.cc
  10001. (isBitSetOffsetRange): New function.
  10002. * src/SegmentMan.cc
  10003. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10004. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10005. * Release 0.10.1
  10006. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10007. To lower CPU usage in BitTorrent download when --max-upload-limit
  10008. command-line option specified:
  10009. * src/DefaultBtMessageDispatcher.cc
  10010. (sendMessages): Calculate uploading speed only when current message
  10011. is uploading data and is not sent yet.
  10012. * src/DefaultPeerStorage.h
  10013. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10014. * src/HttpResponseCommand.cc
  10015. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10016. This fixes compile error in Soralis 10.
  10017. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10018. To fix segfault in Metalink download:
  10019. * src/UrlRequestInfo.h
  10020. (filename): Removed.
  10021. (totalLength): Removed.
  10022. (setTotalLength): Removed.
  10023. (setFilename): Removed.
  10024. * src/MetalinkRequestInfo.cc
  10025. (execute): Do not set filename and totalLength to reqInfo.
  10026. Set chunk checksum to reqInfo if it is not null.
  10027. * src/HttpResponseCommand.cc
  10028. (executeInternal): Fixed filename in log.
  10029. (handleDefaultEncoding): Removed the call to initBitfield() and
  10030. markAllPiecesDone().
  10031. (handleOtherEncoding): Added HEAD method handling.
  10032. * src/FtpNegotiateCommand.cc
  10033. (executeInternal): Added SEQ_HEAD_OK handling.
  10034. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10035. return false.
  10036. * src/FtpNegotiateCommand.h
  10037. (SEQ_HEAD_OK): New definition.
  10038. * src/SegmentMan.cc
  10039. (initBitfield): Delete bitfield.
  10040. (isChunkChecksumValidationReady): Fixed the condition.
  10041. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10042. works fine.
  10043. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10044. * src/Xml2MetalinkProcessor.h
  10045. (xpathExists): New function.
  10046. * src/Xml2MetalinkProcessor.cc
  10047. (xpathExists): New function.
  10048. Not to send HEAD request if filename and size are available in Metalink
  10049. file:
  10050. * src/UrlRequestInfo.h
  10051. (filename): New variable.
  10052. (totalLength): New variable.
  10053. (setTotalLength): New function.
  10054. (setFilename): New function.
  10055. * src/MetalinkRequestInfo.cc
  10056. (execute): Set filename and size to UrlRequestInfo.
  10057. * src/MetalinkEntry.cc
  10058. (MetalinkEntry): Initialize size with 0.
  10059. * src/UrlRequestInfo.cc
  10060. (execute): Set filename and size to SegmentMan.
  10061. Not to download rest of the files after selected files are downloaded
  10062. in BitTorrent:
  10063. * src/PieceStorage.h
  10064. (allDownloadFinished): New function.
  10065. * src/DefaultBtAnnounce.cc
  10066. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10067. downloadFinished.
  10068. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10069. * src/DefaultPieceStorage.cc
  10070. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10071. Commented out the call to finishSelectiveDownloadingMode().
  10072. (downloadFinished): Call isFilteredAllBitSet() instead of
  10073. isAllBitSet().
  10074. (allDownloadFinished): New function.
  10075. * src/DefaultBtInteractive.cc
  10076. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10077. downloadFinished().
  10078. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10079. * src/TorrentDownloadEngine.cc
  10080. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10081. * src/BitfieldMan.h
  10082. (isFilteredAllBitSet): New function.
  10083. * src/ShareRatioSeedCriteria.h
  10084. (PieceStorage.h): New include.
  10085. (pieceStorage): New variable.
  10086. (evaluate):
  10087. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10088. * src/BitfieldMan.cc
  10089. (isFilteredAllBitSet): New function.
  10090. (isAllBitSet): Filter is not took into account.
  10091. Rename --force-truncate as --allow-overwrite:
  10092. * src/TorrentRequestInfo.cc
  10093. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10094. * src/main.cc
  10095. (showUsage): --force-truncate -> --allow-overwrite
  10096. * src/message.h
  10097. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10098. * src/prefs.h
  10099. (PREF_FORCE_TRUNCATE): Removed.
  10100. (PREF_ALLOW_OVERWRITE): New definition.
  10101. * src/SegmentMan.cc
  10102. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10103. * src/MetalinkRequestInfo.cc
  10104. (execute): Queueing message are now logged in info level.
  10105. * src/common.h
  10106. (LONG_LONG_MAX): Removed.
  10107. (LONG_LONG_MIN): Removed.
  10108. * src/HttpResponseCommand.cc
  10109. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10110. * src/FtpNegotiateCommand.cc
  10111. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10112. * src/main.cc
  10113. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10114. command-line option.
  10115. (main): Added --check-integriy and --realtime-chunk-checksum
  10116. command-line option.
  10117. --force-truncate -> --allow-overwrite
  10118. Set initial value of --check-integrity option to false.
  10119. Don't show usage when error occurs while persing command-line options.
  10120. Removed deprecated --upload-limit option.
  10121. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10122. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10123. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10124. * src/BtAllowedFastMessage.cc:
  10125. * src/BtBitfieldMessage.cc
  10126. * src/BtCancelMessage.cc
  10127. * src/BtChokeMessage.cc
  10128. * src/BtHaveAllMessage.cc
  10129. * src/BtHaveMessage.cc
  10130. * src/BtHaveNoneMessage.cc
  10131. * src/BtInterestedMessage.cc
  10132. * src/BtNotInterestedMessage.cc
  10133. * src/BtPieceMessage.cc
  10134. * src/BtPortMessage.cc
  10135. * src/BtRejectMessage.cc
  10136. * src/BtRequestMessage.cc
  10137. * src/BtSuggestPieceMessage.cc
  10138. * src/BtUnchokeMessage.cc
  10139. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10140. files are affected.
  10141. * src/ChunkChecksumValidator.cc
  10142. * src/SegmentMan.cc
  10143. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10144. To add chunk checksum validation:
  10145. * src/MetalinkEntry.h
  10146. (MetalinkChunkChecksum.h): New include.
  10147. (chunkChecksum): New variable.
  10148. * src/Request.h
  10149. (method): New variable.
  10150. (setMethod): New function.
  10151. (getMethod): New function.
  10152. (METHOD_GET): New static constant.
  10153. (METHOD_HEAD): New static constant.
  10154. * src/Xml2MetalinkProcessor.h
  10155. (getPieceHash): New function.
  10156. * src/PieceStorage.h
  10157. (markAllPiecesDone): New function.
  10158. (checkIntegrity): New function.
  10159. * src/FileAllocator.h
  10160. (NullFileAllocationMonitor.h): New include.
  10161. (FileAllocator): Initialize fileAllocationMonitor with new
  10162. NullFileAllocationMonitor().
  10163. * src/MultiDiskAdaptor.h
  10164. (messageDigest.h): Remove include.
  10165. (ctx): Removed.
  10166. (hashUpdate): Added ctx.
  10167. (MultiDiskAdaptor): Removed ctx.
  10168. (sha1Sum): Renamed as messageDigest.
  10169. (messageDigest): New function.
  10170. * src/UrlRequestInfo.h
  10171. (HeadResult): New class.
  10172. (digestAlgo): New variable.
  10173. (chunkChecksumLength): New variable.
  10174. (chunkChecksums): New variable.
  10175. (getHeadResult): New function.
  10176. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10177. (setDigestAlgo): New function.
  10178. (setChunkChecksumLength): New function.
  10179. (setChunkChecksums): New function.
  10180. * src/DefaultPieceStorage.cc
  10181. (DiskAdaptorWriter.h): New include.
  10182. (ChunkChecksumValidator.h): New include.
  10183. (markAllPiecesDone): New function.
  10184. (checkIntegrity): New function.
  10185. * src/DefaultBtContext.h
  10186. (getPieceHashes): New function.
  10187. * src/TorrentRequestInfo.cc
  10188. (execute): Try to validate chunk checksum if file already exists and
  10189. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10190. * src/messageDigest.h
  10191. (~MessageDigestContext): Added digestFree().
  10192. * src/MetalinkRequestInfo.cc
  10193. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10194. * src/DiskAdaptor.h
  10195. (messageDigest.h): New include.
  10196. (sha1Sum): Renamed as messageDigest.
  10197. (messageDigest): New function.
  10198. * src/DownloadCommand.h
  10199. (PeerStat.h): New include.
  10200. (maxDownloadSpeedLimit): New variable.
  10201. (startupIdleTime): New variable.
  10202. (lowestDownloadSpeedLimit): New variable.
  10203. (peerStat): New variable.
  10204. (setMaxDownloadSpeedLimit): New function.
  10205. (setStartupIdleTime): New function.
  10206. (setLowestDownloadSPeedLimit): New function.
  10207. * src/BtContext.h
  10208. (getPieceHashes): New function.
  10209. * src/main.cc
  10210. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10211. option to true for testing purpose.
  10212. * src/BtPieceMessage.cc
  10213. (checkPieceHash): Use messageDigest
  10214. * src/DownloadEngine.cc
  10215. (SetDescriptor): Removed.
  10216. (AccumulateActiveCommand): Removed.
  10217. (waitData): Rewritten.
  10218. (updateFdSet): Rewritten.
  10219. * src/MultiDiskAdaptor.cc
  10220. (hashUpdate): Added ctx.
  10221. (sha1Sum): Renamed as messageDigest.
  10222. (messageDigest): New function.
  10223. * src/BitfieldMan.h
  10224. (isBitRangeSet): New function.
  10225. (unsetBitRange): New function.
  10226. * src/ByteArrayDiskWriter.h
  10227. (sha1Sum): Renamed as messageDigest.
  10228. (messageDigest): New function.
  10229. * src/ConsoleDownloadEngine.cc
  10230. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10231. * src/DiskWriter.h
  10232. (messageDigest.h): New include.
  10233. (sha1Sum): Renamed as messageDigest.
  10234. (messageDigest): New function.
  10235. * src/ChunkChecksumValidator.h: New class.
  10236. * src/DiskAdaptorWriter.h: New class.
  10237. * src/prefs.h
  10238. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10239. (PREF_CHECK_INTEGRITY): New definition.
  10240. * src/HttpResponseCommand.cc
  10241. (handleDefaultEncoding): Added method "HEAD" handling.
  10242. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10243. (handleOtherEncoding):
  10244. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10245. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10246. startupIdleTime, lowestDownloadSpeedLimit to command.
  10247. * src/SegmentMan.h
  10248. (getSegmentEntryByIndex): New function.
  10249. (getSegmentEntryByCuid): New function.
  10250. (getSegmentEntryIteratorByCuid): New function.
  10251. (diskWriter): DiskWriter -> DiskWriterHandle
  10252. (pieceHashes): New variable.
  10253. (chunkHashLength): New variable.
  10254. (digestAlgo): New variable.
  10255. (FindPeerStat): Removed.
  10256. (getPeerStat): Rewritten.
  10257. (markAllPiecesDone): New function.
  10258. (checkIntegrity): New function.
  10259. (tryChunkChecksumValidation): New function.
  10260. (isChunkChecksumValidationReady): New function.
  10261. * src/BitfieldMan.cc
  10262. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10263. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10264. blocks to 0.
  10265. (isBitRangeSet): New function.
  10266. (unsetBitRange): New function.
  10267. * src/FtpNegotiateCommand.cc
  10268. (executeInternal): Set maxDownloadSpeedLimit,
  10269. startupIdleTime, lowestDownloadSpeedLimit to command.
  10270. (recvSize): Added method "HEAD" handling.
  10271. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10272. * src/AbstractSingleDiskAdaptor.cc
  10273. (sha1Sum): Renamed as messageDigest.
  10274. (messageDigest): New function.
  10275. * src/AbstractSingleDiskAdaptor.h
  10276. (sha1Sum): Renamed as messageDigest.
  10277. (messageDigest): New function.
  10278. * src/Util.h
  10279. (indexRange): New function.
  10280. * src/MetalinkEntry.cc
  10281. (MetalinkEntry): Initialized chunkChecksum to 0.
  10282. * src/ShaVisitor.cc
  10283. (~ShaVisitor): Removed the call to ctx.digestFree().
  10284. * src/SegmentMan.cc
  10285. (ChunkChecksumValidator.h): New include.
  10286. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10287. to DIGEST_ALGO_SHA1.
  10288. (~SegmentMan): Removed diskWriter.
  10289. (FindSegmentEntryByIndex): Removed.
  10290. (FindSegmentEntryByCuid): Removed.
  10291. (checkoutSegment): Rewritten.
  10292. (findSlowerSegmentEntry): Rewritten.
  10293. (getSegment): Rewritten.
  10294. (updateSegment): Rewritten.
  10295. (completeSegment): Rewritten.
  10296. (markAllPiecesDone): New function.
  10297. (checkIntegrity): New function.
  10298. (isChunkChecksumValidationReady): New function.
  10299. (tryChunkChecksumValidation): New function.
  10300. * src/Xml2MetalinkProcessor.cc
  10301. (getEntry): Get size and set it to entry.
  10302. Get chunk checksum and set it to entry.
  10303. (getPieceHash): New function.
  10304. * src/Util.cc
  10305. (sha1Sum): Removed ctx.digestFree()
  10306. (fileChecksum): Removed ctx.digestFree()
  10307. (indexRange): New function.
  10308. * src/Request.cc
  10309. (METHOD_GET): New variable.
  10310. (METHOD_HEAD): New variable.
  10311. (Request): Added method.
  10312. * src/UrlRequestInfo.cc
  10313. (FatalException.h): New include.
  10314. (message.h): New include.
  10315. (operator<<): Added operator<< for class HeadResult.
  10316. (getHeadResult): New function.
  10317. (execute): Get filename and size in separate download engine.
  10318. * src/ChunkChecksumValidator.cc: New class.
  10319. * src/DownloadCommand.cc:
  10320. (DownloadCommand): Added peerStat.
  10321. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10322. the value from Option.
  10323. The buffer size is now 16KB.
  10324. Use peerStat member instead of getting it from SegmentMan.
  10325. Use startupIdleTime member instead of gettingit from Option.
  10326. Added chunk checksum validation.
  10327. * src/AbstractDiskWriter.cc
  10328. (AbstractDiskWriter): Removed ctx.
  10329. (~AbstractDiskWriter): Removed ctx.digestFree()
  10330. (writeDataInternal): Returns the return value of write.
  10331. (readDataInternal): Returns the return value of read.
  10332. (sha1Sum): Renamed as messageDigest
  10333. (messageDigest): New function.
  10334. * src/AbstractDiwkWriter.h
  10335. (messageDigest.h): Removed include.
  10336. (ctx): Removed.
  10337. (sha1Sum): Renamed as messageDigest
  10338. (messageDigest): New function.
  10339. * src/DefaultPieceStorage.h
  10340. (markAllPiecesDone): New function.
  10341. (checkIntegrity): New function.
  10342. * src/NullFileAllocationMonitor.h: New class.
  10343. * src/MetalinkChunkChecksum.h: New class.
  10344. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. To decrease CPU usage in bittorrent download, calculation results in
  10346. BitfieldMan were cached and realtime fetching PeerObject was removed
  10347. with WeakHandle introduced. Option values are set to the objects
  10348. by setter before download begins.
  10349. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10350. * src/DefaultBtRequestFactory.h
  10351. (dispatcher): BtMessageDispatcherHandle ->
  10352. BtMessageDispatcherWeakHandle.
  10353. (messageFactory): New variable.
  10354. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10355. BtMessageDispatcherWeakHandle.
  10356. (setBtMessageFactory): New function.
  10357. * src/DefaultBtMessageDispatcher.cc:
  10358. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10359. from Option.
  10360. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10361. feating the value from Option.
  10362. Use messageFactory member.
  10363. * src/PeerInteractionCommand.cc
  10364. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10365. Add reverse dependencies to factory object.
  10366. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10367. dispatcher.
  10368. Set messageFactory to receiver.
  10369. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10370. btInteractive.
  10371. Set receiver to peerObject.
  10372. Set maxDownloadSpeedLimit to this.
  10373. (executeInternal): Use maxDownloadSpeedLimit member.
  10374. * src/BtChokeMessage.cc
  10375. (doReceivedAction): Use dispatcher, requestFactory member.
  10376. (onSendComplete): Use dispatcher member.
  10377. * src/PeerInteractionCommand.h
  10378. (maxDownloadSpeedLimit): New variable.
  10379. * src/DefaultBtMessageReceiver.h
  10380. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10381. (dispatcher):
  10382. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10383. (messageFactory): New variable.
  10384. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10385. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10386. (setDispatcher):
  10387. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10388. (setBtMessageFactory): New function.
  10389. * src/DefaultBtInteractive.cc
  10390. (initiateHandshake): Use messageFactory member.
  10391. (addBitfieldMessageToQueue): Use messageFactory member.
  10392. (addAllowedFastMessageToQueue): Use messageFactory member.
  10393. (decideChoking): Use messageFactory member.
  10394. (checkHave): Use messageFactory member.
  10395. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10396. (receiveMessages): Use maxDownloadSpeedLimit member.
  10397. (decideInterest): Use messageFactory member.
  10398. * src/BtRequestMessage.cc
  10399. (doReceivedAction): Use messageFactory, dispatcher member.
  10400. (onQueued): Use dispatcher member.
  10401. * src/BtPieceMessage.cc
  10402. (doReceivedAction): Use dispatcher member.
  10403. (send): Use peerConnection member.
  10404. (onWrongPiece): Use requestFactory member.
  10405. (handleChokingEvent): Use messageFactory, dispatcher member.
  10406. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10407. * src/BtMessageDispatcher.h
  10408. (BtMessageDispatcherWeakHandle): New type definition.
  10409. * src/SimpleBtMessage.cc
  10410. (send): Use peerConnection member.
  10411. * src/BtRejectMessage.cc
  10412. (doReceivedAction): Use dispatcher member.
  10413. * src/DefaultBtMessageDispatcher.h
  10414. (Option.h): Removed include.
  10415. (messageFactory): New variable.
  10416. (option): Removed.
  10417. (maxUploadSpeedLimit): New variable.
  10418. (requestTimeout): New variable.
  10419. (DefaultBtMessageDispatcher): Removed option.
  10420. Added maxUploadSpeedLimit, requestTimeout.
  10421. (setOption): Removed.
  10422. (getOption): Removed.
  10423. (setMaxUploadSpeedLimit): New function.
  10424. (setRequestTimeout): New function.
  10425. (setBtMessageFactory): New function.
  10426. * src/DefaultBtInteractive.h
  10427. (btMessageReceiver):
  10428. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10429. (dispatcher):
  10430. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10431. (btRequestFactory):
  10432. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10433. (peerConnection):
  10434. PeerConnectionHandle -> PeerConnectionWeakHandle
  10435. (messageFactory): New variable.
  10436. (option): Removed.
  10437. (keepAliveInterval): New variable.
  10438. (maxDownloadSpeedLimit): New variable.
  10439. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10440. (setBtMessageReceiver):
  10441. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10442. (setDispatcher):
  10443. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10444. (setBtRequestFactory):
  10445. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10446. (setPeerConnection):
  10447. PeerConnectionHandle -> PeerConnectionWeakHandle
  10448. (setOption): Removed.
  10449. (setKeepAliveInterval): New function.
  10450. (setMaxDownloadSpeedLimit): New function.
  10451. (setBtMessageFactory): New function.
  10452. * src/BitfieldMan.h
  10453. (cachedNumMissingBlock): New variable.
  10454. (cachedNumFilteredBlock): New variable.
  10455. (cachedCompletedLength): New variable.
  10456. (cachedFilteredComletedLength): New variable.
  10457. (cachedFilteredTotalLength): New variable.
  10458. (countMissingBlockNow): New function.
  10459. (countFilteredBlockNow): New function.
  10460. (getFilteredTotalLengthNow): New function.
  10461. (getCompletedLengthNow): New function.
  10462. (getFilteredCompletedLengthNow): New function.
  10463. (updateCache): New function.
  10464. * src/AbstractBtMessage.h
  10465. (BtMessageDispatcher.h): New include.
  10466. (PeerConnection.h): New include.
  10467. (BtRequestFactory.h): New include
  10468. (BtMessageFactory.h): New include.
  10469. (dispatcher): New variable.
  10470. (messageFactory): New variable.
  10471. (peerConnection: New variable.
  10472. (setBtMessageDispatcher): New function.
  10473. (setPeerConnection): New function.
  10474. (setBtMessageFactory): New function.
  10475. (setBtRequestFactory): New function.
  10476. * src/DefaultBtMessageFactory.cc
  10477. (setCommonProperty): Set dispatcher, requestFactory, this,
  10478. peerConnection to msg.
  10479. * src/BtRegistry.h
  10480. (BT_MESSAGE_RECEIVER): New macro.
  10481. * src/PeerConnection.h
  10482. (PeerConnectionWeakHandle): New type definition.
  10483. * src/BtMessageFactory.h
  10484. (BtMessageFactoryWeakHandle): New type definition.
  10485. * src/BitfieldMan.cc
  10486. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10487. cachedCompletedLength, cachedFilteredComletedLength,
  10488. cachedFilteredTotalLength.
  10489. Call updateCache().
  10490. (countMissingBlock): Return cachedNumMissingBlock.
  10491. (countMissingBlockNow): New function.
  10492. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10493. (countFilteredBlockNow): New function.
  10494. (setBit): Call updateCache().
  10495. (unsetBit): Call updateCache().
  10496. (setBitfield): Call updateCache().
  10497. (clearAllBit): Call updateCache().
  10498. (setAllBit): Use setBitInternal instead of setBit.
  10499. Call updateCache().
  10500. (addFilter): Call updateCache().
  10501. (enableFilter): Call updateCache().
  10502. (disableFilter): Call updateCache().
  10503. (clearFilter): Call updateCache().
  10504. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10505. (getFilteredTotalLengthNow): New function.
  10506. (getCompletedLength): Return cachedCompletedLength.
  10507. (getCompletedLengthNow): New function.
  10508. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10509. (getFilteredCompletedLengthNow): New function.
  10510. (updateCache): New function.
  10511. * src/BtMessageReceiver.h
  10512. (BtMessageReceiverWeakHandle): New type definition.
  10513. * src/DefaultBtMessageReceiver.cc
  10514. (receiveHandshake): Use messageFactory member.
  10515. (sendHandshake): Use messageFactory member.
  10516. (receiveMessage): Use messageFactory member.
  10517. * src/DefaultBtMessageFactory.h
  10518. (dispatcher): New variable.
  10519. (requestFactory): New variable.
  10520. (peerConnection): New variablle.
  10521. (setBtMessageDispatcher): New function.
  10522. (setBtRequestFactory): New function.
  10523. (setPeerConnection): New function.
  10524. * src/SharedHandle.h
  10525. (RefCount): New class.
  10526. (WeakHandle): New class.
  10527. * src/PeerObject.h
  10528. (BtMessageReceiver.h): New include.
  10529. (PeerObject): Added btMessageReceiver.
  10530. (btMessageReceiver): New variable.
  10531. * src/Util.cc
  10532. (countBit): Simplified.
  10533. * src/BtCancelMessage.cc
  10534. (doReceivedAction): Use dispatcher member.
  10535. * src/BtRequestFactory.h
  10536. (BtRequestFactoryWeakHandle): New type definition.
  10537. * src/PeerStorage.h
  10538. (downloadSpeed): int -> uint32_t
  10539. (uploadSpeed): int -> uint32_t
  10540. (sessionDownloadLength): long long int -> uint64_t
  10541. (sessionUploadLength): long long int -> uint64_t
  10542. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10543. To add RecoverableException, FatalException:
  10544. * src/AbstractCommand.cc
  10545. (onAbort): Exception -> RecoverableException
  10546. * src/PeerAbstractCommand.h
  10547. (RecoverableException.h): New include.
  10548. (onAbort): Exception -> RecoverableException.
  10549. * src/PeerInteractionCommand.cc
  10550. (onAbort): Exception -> RecoverableException.
  10551. * src/PeerAbstractCommand.cc
  10552. (execute): Exception -> RecoverableException.
  10553. (onAbort): Exception -> RecoverableException.
  10554. * src/TorrentRequestInfo.cc
  10555. (execute): Exception -> RecoverableException.
  10556. * src/MetalinkRequestInfo.cc
  10557. (execute): Exception -> RecoverableException.
  10558. * src/MetaFileUtil.cc: RecoverableException.
  10559. * src/AbstractCommand.h
  10560. (onAbort): Exception -> RecoverableException.
  10561. * src/DlRetryEx.h: Exception -> RecoverableException.
  10562. * src/DlAbortEx.h: Exception -> RecoverableException.
  10563. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  10564. * src/Util.cc: Exception -> RecoverableException.
  10565. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  10566. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  10567. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  10568. To make ID static const int
  10569. * src/BtInterestedMessage.h
  10570. (ID_t): Removed.
  10571. (ID): New variable.
  10572. (getId): Made non-const.
  10573. * src/BtPieceMessage.h
  10574. (ID_t): Removed.
  10575. (ID): New variable.
  10576. (getId): Made non-const.
  10577. * src/BtChokeMessage.h
  10578. (ID_t): Removed.
  10579. (ID): New variable.
  10580. (getId): Made non-const.
  10581. * src/BtHaveAllMessage.h
  10582. (ID_t): Removed.
  10583. (ID): New variable.
  10584. (getId): Made non-const.
  10585. * src/BtKeepAliveMessage.h
  10586. (ID_t): Removed.
  10587. (ID): New variable.
  10588. (getId): Made non-const.
  10589. * src/BtHandshakeMessage.h
  10590. (ID): New variable.
  10591. (getId): Made non-const.
  10592. * src/BtSuggestPieceMessage.h
  10593. (ID_t): Removed.
  10594. (ID): New variable.
  10595. (getId): Made non-const.
  10596. * src/BtPortMessage.h
  10597. (ID_t): Removed.
  10598. (ID): New variable.
  10599. (getId): Made non-const.
  10600. * src/AbstractBtMessage.h
  10601. (id): Removed.
  10602. (AbstractBtMessage): Removed id.
  10603. (getId): Removed.
  10604. * src/BtHaveMessage.h
  10605. (ID_t): Removed.
  10606. (ID): New variable.
  10607. (getId): Made non-const.
  10608. * src/BtAllowedFastMessage.h
  10609. (ID_t): Removed.
  10610. (ID): New variable.
  10611. (getId): Made non-const.
  10612. * src/BtCancelMessage.h
  10613. (ID_t): Removed.
  10614. (ID): New variable.
  10615. (getId): Made non-const.
  10616. * src/BtNotInterestedMessage.h
  10617. (ID_t): Removed.
  10618. (ID): New variable.
  10619. (getId): Made non-const.
  10620. * src/BtChokeMessage.h
  10621. (ID_t): Removed.
  10622. (ID): New variable.
  10623. (getId): Made non-const.
  10624. * src/BtRejectMessage.h
  10625. (ID_t): Removed.
  10626. (ID): New variable.
  10627. (getId): Made non-const.
  10628. * src/BtBitfieldMessage.h
  10629. (ID_t): Removed.
  10630. (ID): New variable.
  10631. (getId): Made non-const.
  10632. * src/BtUnchokeMessage.h
  10633. (ID_t): Removed.
  10634. (ID): New variable.
  10635. (getId): Made non-const.
  10636. * src/BtRequestMessage.h
  10637. (ID_t): Removed.
  10638. (ID): New variable.
  10639. (getId): Made non-const.
  10640. * src/BtHaveMessage.h
  10641. (ID_t): Removed.
  10642. (ID): New variable.
  10643. (getId): Made non-const.
  10644. To add --force-truncate command-line option and a check whether
  10645. the file already exists:
  10646. * src/DirectDiskAdaptor.h
  10647. (getFilePath): Made virtual public.
  10648. * src/MultiDiskAdaptor.h
  10649. (File.h): New include.
  10650. (DiskWriterEntry::fileEntry): Made private.
  10651. (DiskWriterEntry::fileExists): New function.
  10652. (DiskWriterEntry::getFileEntry): New function.
  10653. (fileExists): New function.
  10654. (getFilePath): New function.
  10655. * src/TorrentRequestInfo.cc
  10656. (FatalException.h): New include.
  10657. (message.h): New include.
  10658. (RecoverableException.h): New include.
  10659. (execute): Added a check whether file is already exists or not.
  10660. * src/DiskAdaptor.h
  10661. (fileExists): New function.
  10662. (getFilePath): New function.
  10663. * src/main.cc
  10664. (showUsage): Added an explanation of --force-truncate command-line
  10665. option.
  10666. (main): Added --force-truncate command-line option.
  10667. * src/Exception.h
  10668. (setMsg): buf[256] -> buf[1024]
  10669. * src/CopyDiskWriter.h
  10670. (getFilePath): Made public virtual.
  10671. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  10672. (fileExists): New function.
  10673. * src/DownloadEngineFactory.cc
  10674. (newTorrentConsoleEngine): Don't open file here.
  10675. * src/message.h
  10676. (EX_FILE_ALREADY_EXISTS): New definition.
  10677. * src/prefs.h
  10678. (PREF_FOECE_TRUNCATE): New definition.
  10679. * src/HttpResponseCommand.cc
  10680. (handleDefaultEncoding): Added a check whether the file already exists.
  10681. * src/SegmentMan.h
  10682. (fileExists): New function.
  10683. (shouldCancelDownloadForSafety): New function.
  10684. * src/FtpNegotiateCommand.cc
  10685. (recvSize): Added a check whether the file already exists.
  10686. * src/AbstractSingleDiskAdaptor.cc
  10687. (File.h): New include.
  10688. (fileExists): New function.
  10689. * src/AbstractSingleDiskAdaptor.h
  10690. (getFilePath): Removed.
  10691. (fileExists): New function.
  10692. * src/SegmentMan.cc
  10693. (fileExists): New function.
  10694. (shouldCancelDownloadForSafety): New function.
  10695. To fix regression bug in torrent downloading:
  10696. * src/DefaultBtRequestFactory.cc
  10697. (doChokedAction): New function.
  10698. * src/DefaultBtRequestFactory.h
  10699. (doChokedAction): New function.
  10700. * src/DefaultBtMessageDispatcher.cc
  10701. (doChokedAction): Do not delete request if its target is in allowed
  10702. fast set.
  10703. * src/DefaultBtInteractive.cc
  10704. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  10705. (sendKeepAlive): Send keep alive message even if the outgoing message
  10706. queue is not empty.
  10707. (decideInterest): Simplified the code.
  10708. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  10709. it is already called when BtChokeMessage is received from a peer.
  10710. * src/BtRequestFactory.h
  10711. (doChokedAction): New function.
  10712. To clean up code:
  10713. * src/PeerInteractionCommand.h
  10714. (executeInternal): Added virtual keyword explicitly.
  10715. (prepareForRetry): Added virtual keyword explicitly.
  10716. (prepareForNextPeer): Added virtual keyword explicitly.
  10717. (onAbort): Added virtual keyword explicitly.
  10718. * src/RequestSlot.cc
  10719. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  10720. * src/BtPieceMessage.cc
  10721. (doReceivedAction): Added a debug log of piece's bitfield.
  10722. * src/Piece.h
  10723. (getBitfieldLength): New function.
  10724. * src/ByteArrayDiskWriter.cc
  10725. (clear): Added buf = 0 to avoid double free corruption.
  10726. * src/FileAllocator.cc
  10727. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  10728. Added cp.reset().
  10729. * src/BitfieldMan.h
  10730. (operator=): Rewritten.
  10731. * src/BitfieldMan.cc
  10732. (BitfieldMan): Initialized bitfield, useBitfield.
  10733. * src/PeerConnection.cc
  10734. (receiveMessage): Added a call to socket->readable() after getting
  10735. message length to avoid possible EOF.
  10736. * src/Util.cc
  10737. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  10738. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10739. To add an ability to pre-allocate file space:
  10740. * src/DirectDiskAdaptor.h: Rewritten.
  10741. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  10742. * src/MultiDiskAdaptor.h: Rewritten.
  10743. * src/DefaultPieceStorage.cc
  10744. (MultiDiskWriter.h): Removed include.
  10745. (PreAllocationDiskWriter.h): Removed include.
  10746. (FileAllocationMonitor.h): New include.
  10747. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  10748. (initStorage): Rewritten.
  10749. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10750. * src/FileAllocator.h: New class.
  10751. * src/FileAllocator.cc: New class.
  10752. * src/FileAllocationMonitor.h: New class.
  10753. * src/FileAllocationMonitor.cc: New class.
  10754. * src/ConsoleFileAllocationMonitor.h: New class.
  10755. * src/ConsoleFileAllocationMonitor.cc: New class.
  10756. * src/AbstractSingleDiskAdaptor.h: New class.
  10757. * src/AbstractSingleDiskAdaptor.cc: New class.
  10758. * src/DiskAdaptor.h
  10759. (Directory.h): Removed include.
  10760. (DiskWriter.h): Removed include.
  10761. (FileEntry.h): Removed include.
  10762. (diskWriter): Removed.
  10763. (DiskAdaptor): Removed diskWriter.
  10764. (openFile): Made pure virtual.
  10765. (closeFile): Made pure virtual.
  10766. (openExistingFile): Made pure virtual.
  10767. (initAndOpenFile): Made pure virtual.
  10768. (writeData): Made pure virtual.
  10769. (readData): Made pure virtual.
  10770. (sha1Sum): Made pure virtual.
  10771. (getStoreDir): Returns const reference of storeDir.
  10772. (DiskAdaptorHandle): New type definition.
  10773. * src/main.cc
  10774. (ConsoleFileAllocationMonitor.h): New include.
  10775. (showUsage): Added default value description of -s option.
  10776. Added the description of --file-allocation option.
  10777. (main): Set default value of --file-allocation option to 'none'.
  10778. Added --file-allocation command-line option.
  10779. Setup FileAllocationMonitorFactory.
  10780. * src/FtpInitiateConnectionCommand.cc
  10781. (executeInternal): Removed diskWriter related processing, which was
  10782. moved to FtpNegotiationCommand.cc.
  10783. * src/DirectDiskAdaptor.cc
  10784. (getFilePath): Made non-const.
  10785. * src/CopyDiskAdaptor.h
  10786. (DiskAdaptor.h): Removed include.
  10787. (DiskWriter.h): Removed include.
  10788. (AbstractSingleDiskAdaptor.h): New include.
  10789. (getFilePath): Made non-const. Added virtual keyword.
  10790. (CopyDiskAdaptor): Removed diskWriter.
  10791. (getTempFile): Returns const reference.
  10792. (CopyDiskAdaptorHandle): New type definition.
  10793. * src/ByteArrayDiskWriter.cc
  10794. (clear): Simplified.
  10795. (initAndOpenFile): Rewritten.
  10796. (openFile): Call initAndOpenFile()
  10797. * src/MultiDiskAdaptor.cc: Rewritten.
  10798. * src/DownloadEngineFactory.cc
  10799. (FileAllocator.h): New include.
  10800. (FileAllocationMonitor.h): New include.
  10801. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  10802. create DefaultDiskWriter with file allocator.
  10803. * src/DiskWriter.h
  10804. (initAndOpenFile): Added totalLength argument.
  10805. (openFile): Added totalLength argument.
  10806. * src/prefs.h
  10807. (PREF_FILE_ALLOCATION): New definition.
  10808. (V_PREALLOC): New definition.
  10809. (V_NONE): New definition.
  10810. * src/HttpResponseCommand.cc
  10811. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  10812. size.
  10813. * src/FtpNegotiateCommand.cc
  10814. (Util.h): New include.
  10815. (recvSize): Open file here.
  10816. * src/Util.h
  10817. (ullitos): New function.
  10818. * src/CopyDiskWriter.h
  10819. (getFilePath): Made non-const.
  10820. * src/DefaultDiskWriter.h
  10821. (Option.h): New include.
  10822. (totalLength): Removed.
  10823. (DefaultDiskWriter): Removed totalLength.
  10824. (initAndOpenFile): Added totalLength argument.
  10825. (DefaultDiskWriterHandle): New type definition.
  10826. (createNewDiskWriter): New function.
  10827. * src/Util.cc
  10828. (ullitos): New function.
  10829. * src/DefaultDiskWriter.cc
  10830. (message.h): New include.
  10831. (FileAllocator.h): New include.
  10832. (prefs.h): New include.
  10833. (Util.h): New include.
  10834. (DefaultDiskWriter): Removed totalLength.
  10835. (initAndOpenFile): Added file allocation.
  10836. (createNewDiskWriter): New function. Just for temporary solution.
  10837. It will be rewritten later.
  10838. * src/DiskAdaptor.cc
  10839. (DiskAdaptor): Removed diskWriter.
  10840. * src/AbstractDiskWriter.cc
  10841. (LogFactory.h): New include.
  10842. (AbstractDiskWriter): Added fileAllocator, logger.
  10843. (openFile): Added totalLength argument.
  10844. * src/AbstractDiskWriter.h
  10845. (FileAllocator.h): New include.
  10846. (Logger.h): New include.
  10847. (fileAllocator): New variable.
  10848. (logger): New variable.
  10849. (openFile): Added totalLength argument. Added virtual keyword
  10850. explicitly.
  10851. (openExistingFile): Added totalLength argument. Added virtual keyword
  10852. explicitly.
  10853. (closeFile): Added virtual keyword explicitly.
  10854. (sha1Sum): Added virtual keyword explicitly.
  10855. (writeData): Added virtual keyword explicitly.
  10856. (readData): Added virtual keyword explicitly.
  10857. (setFileAllocator): New function.
  10858. * src/DefaultPieceStorage.h
  10859. (FileAllocator.h): New include.
  10860. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10861. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10862. * src/FileProgressMonitor.h: New class.
  10863. To compile aria2 on PC-BSD:
  10864. * src/DefaultBtContext.cc
  10865. (libgen.h): New include.
  10866. To fix memory leak:
  10867. * src/Exception.h
  10868. (~Exception): Delete cause. Fixed memory leak.
  10869. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10870. Rewritten a portion of bittorrent implementation:
  10871. * src/BtMessageValidator.h: New class.
  10872. * src/BtBitfieldMessageValidator.h: New class.
  10873. * src/BtHandshakeMessageValidator.h: New class.
  10874. * src/BtRequestMessageValidator.h: New class.
  10875. * src/BtSuggestPieceMessageValidator.h: New class.
  10876. * src/BtAllowedFastMessageValidator.h: New class.
  10877. * src/BtRejectMessageValidator.h: New class.
  10878. * src/BtCancelMessageValidator.h: New class.
  10879. * src/BtPieceMessageValidator.h: New class.
  10880. * src/BtHaveMessageValidator.h: New class.
  10881. * src/BtEventListener.h: New class.
  10882. * src/AbstractBtEventListener.h: New class.
  10883. * src/BtEvent.h: New class.
  10884. * src/BtChokingEvent.h: New class.
  10885. * src/BtChokedEvent.h: New class.
  10886. * src/BtCancelSendingPieceEvent.h: New class.
  10887. * src/BtAbortOutstandingRequestEvent.h: New class.
  10888. * src/Randomizer.h: New class.
  10889. * src/SimpleRandomizer.h: New class.
  10890. * src/BtMessage.h: New class.
  10891. * src/AbstractBtMessage.h: New class.
  10892. * src/SimpleBtMessage.h: New class.
  10893. * src/BtHaveMessage.h: New class.
  10894. * src/BtInterestedMessage.h: New class.
  10895. * src/BtAllowedFastMessage.h: New class.
  10896. * src/BtUnchokeMessage.h: New class.
  10897. * src/BtCancelMessage.h: New class.
  10898. * src/BtNotInterestedMessage.h: New class.
  10899. * src/BtChokeMessage.h: New class.
  10900. * src/BtHaveNoneMessage.h: New class.
  10901. * src/BtHandshakeMessage.h: New class.
  10902. * src/BtSuggestPieceMessage.h: New class.
  10903. * src/BtHaveMessage.h: New class.
  10904. * src/BtPieceMessage.h: New class.
  10905. * src/BtHaveAllMessage.h: New class.
  10906. * src/BtKeepAliveMessage.h: New class.
  10907. * src/BtPortMessage.h: New class.
  10908. * src/BtRejectMessage.h: New class.
  10909. * src/BtBitfieldMessage.h: New class.
  10910. * src/BtRequestMessage.h: New class.
  10911. * src/DefaultBtRequestFactory.h: New class.
  10912. * src/DefaultBtMessageReceiver.h: New class.
  10913. * src/BtInteractive.h: New class.
  10914. * src/BtMessageDispatcher.h: New class.
  10915. * src/DefaultBtMessageDispatcher.h: New class.
  10916. * src/DefaultBtInteractive.h: New class.
  10917. * src/BitfieldManFactory.h: New class.
  10918. * src/HandleRegistry.h: New class.
  10919. * src/BtMessageFactory.h: New class.
  10920. * src/BtMessageReceiver.h: New class.
  10921. * src/DefaultBtMessageFactory.h: New class.
  10922. * src/PeerObject.h: New class.
  10923. * src/BtRequestFactory.h: New class.
  10924. * src/SuggestPieceMessage.h: Removed.
  10925. * src/PortMessage.h: Removed.
  10926. * src/SuggestPieceMessage.h: Removed.
  10927. * src/KeepAliveMessage.h: Removed.
  10928. * src/HandshakeMessage.h: Removed.
  10929. * src/PeerInteraction.h: Removed.
  10930. * src/UnchokeMessage.h: Removed.
  10931. * src/PieceMessage.h: Removed.
  10932. * src/RequestMessage.h: Removed.
  10933. * src/InterestedMessage.h: Removed.
  10934. * src/HaveMessage.h: Removed.
  10935. * src/CancelMessage.h: Removed.
  10936. * src/RejectMessage.h: Removed.
  10937. * src/AllowedFastMessage.h: Removed.
  10938. * src/HaveNoneMessage.h: Removed.
  10939. * src/SimplePeerMessage.h: Removed.
  10940. * src/HaveAllMessage.h: Removed.
  10941. * src/BitfieldMessage.h: Removed.
  10942. * src/PeerMessageFactory.h: Removed.
  10943. * src/NotInterestedMessage.h: Removed.
  10944. * src/ChokeMessage.h: Removed.
  10945. * src/PeerMessage.h: Removed.
  10946. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10947. To know root cause of exception:
  10948. * src/Exception.h
  10949. (cause): New variable.
  10950. (Exception): Added a parameter.
  10951. (getMsg): Return const reference to msg.
  10952. (getCause): New function.
  10953. * src/DlRetryEx.h
  10954. (DlRetryEx): Added a parameter 'cause'.
  10955. Added an overloaded constructor.
  10956. (DlAbortEx): Added a parameter 'cause'.
  10957. Added an overloaded constructor.
  10958. * src/SimpleLogger.cc
  10959. (writeLog): Log nested exception messages recursively.
  10960. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10961. * src/DefaultBtProgressInfoFile.cc
  10962. (load): Fixed memory leak when the infohash doesn't match.
  10963. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10964. * src/DefaultPeerStorage.cc
  10965. (calculateStat): Simplified the code by combining 2 loops into 1.
  10966. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10967. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10968. for BitTorrent download:
  10969. * src/PeerAbstractCommand.cc
  10970. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10971. * src/main.cc:
  10972. (timeoutSpecified): Removed.
  10973. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10974. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10975. * src/TorrentRequestInfo.cc
  10976. (timeoutSpecified): Removed.
  10977. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10978. timeout value.
  10979. * src/prefs.h
  10980. (PREF_BT_TIMEOUT): New definition.
  10981. Delete unused variables:
  10982. * src/TorrentRequestInfo.cc
  10983. (requestInfo): Removed.
  10984. Move setSignalHander to Util::setGlobalSignalHandler:
  10985. * src/TorrentRequestInfo.cc:
  10986. setSignalHander -> Util::setGlobalSignalHandler
  10987. * src/main.cc
  10988. (setSignalHander): Removed.
  10989. (main): setSignalHander -> Util::setGlobalSignalHandler
  10990. * src/Util.h
  10991. (setGlobalSignalHandler): New function.
  10992. * src/Util.cc
  10993. (setGlobalSignalHandler): New function.
  10994. * src/UrlRequestInfo.cc:
  10995. setSignalHander -> Util::setGlobalSignalHandler
  10996. Reset peer status in order to exit gracefully:
  10997. * src/PeerAbstractCommand.cc
  10998. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10999. To fix the bug that causes the number of bytes uploaded is not saved
  11000. to .aria2 file:
  11001. * src/DefaultPeerStorage.h
  11002. (removedPeerSessionDownloadLength): New variable.
  11003. (removedPeerSessionUploadLength): New variable.
  11004. * src/DefaultPeerStorage.cc
  11005. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11006. removedPeerSessionUploadLength(0).
  11007. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11008. through all peers, and then add removedPeerSessionDownloadLength(
  11009. removedPeerSessionUploadLength) to it.
  11010. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11011. (to) the peer to removedPeerSessionDownloadLength
  11012. (removedPeerSessionUploadLength).
  11013. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11014. To add Metalink location option:
  11015. * src/MetalinkRequestInfo.cc
  11016. (execute): Call MetalinkEntry::setLocationPreference()
  11017. * src/main.cc
  11018. (showUsage): Added the help message for --metalink-location option.
  11019. (main): Added --metalink-location option.
  11020. * src/prefs.h
  11021. (PREF_METALINK_LOCATION): New definition.
  11022. * src/MetalinkEntry.cc
  11023. (AddLocationPreference): New function object.
  11024. (setLocationPreference): New function.
  11025. * src/Xml2MetalinkProcessor.cc
  11026. (getResource): Set location attribute to MetalinkResource
  11027. To show URLs to download
  11028. * src/UrlRequestInfo.h
  11029. (printUrls): New function.
  11030. To add multiple <file> Metalink support:
  11031. * src/MetalinkEntry.h
  11032. (MetalinkResources): Removed.
  11033. (setLocationPreference): New function.
  11034. (MetalinkEntryHandle): New type definition.
  11035. (MetalinkEntries): New type definition.
  11036. * src/Xml2MetalinkProcessor.h
  11037. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11038. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11039. (parseFile): Metalinker* -> MetalinkerHandle
  11040. * src/UrlRequestInfo.h
  11041. (execute): RequestInfo* -> RequestInfos
  11042. * src/MetalinkRequestInfo.cc
  11043. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11044. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11045. (execute): RequestInfo* -> RequestInfos
  11046. Added multiple <file> support. Print filename when it is queued.
  11047. * src/MetalinkRequestInfo.h
  11048. (execute): RequestInfo* -> RequestInfos
  11049. (getDownloadEngine): Removed.
  11050. * src/RequestInfo.h
  11051. (RequestInfoHandle): New type definition.
  11052. (RequestInfos): New type definition.
  11053. (execute): RequestInfo* -> RequestInfos
  11054. (getDownloadEngine): Removed.
  11055. * src/MetalinkResource.h
  11056. (MetalinkResourceHandle): New type definition.
  11057. (MetalinkResources): New type definition.
  11058. * src/MetalinkEntry.cc
  11059. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11060. because the element is now of type MetalinkResourceHandle.
  11061. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11062. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11063. (dropUnsupportedResource): Removed the deletion of the elements of
  11064. resources because the element is now of type MetalinkResourceHandle.
  11065. * src/Xml2MetalinkProcessor.cc
  11066. (parseFile): Metalinker* -> MetalinkerHandle
  11067. MetalinkEntry* -> MetalinkEntryHandle
  11068. Removed try-catch block.
  11069. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11070. MetalinkResource* -> MetalinkResourceHandle
  11071. Removed try-catch block.
  11072. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11073. Free result by using xmlXPathFreeObject()
  11074. * src/Metalinker.cc
  11075. (~Metalinker): Removed the deletion of entries.
  11076. MetalinkEntry* -> MetalinkEntryHandle
  11077. (queryEntry): Add multiple <file> Metalink support.
  11078. * src/Metalinker.h
  11079. (MetalinkEntries): Removed.
  11080. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11081. * src/MetalinkProcessor.h
  11082. (parseFile): Metalinker* -> MetalinkerHandle
  11083. Bug fixes:
  11084. * src/PeerChokeCommand.cc
  11085. (execute): cat01->cat02
  11086. * src/DefaultPieceStorage.cc
  11087. (DefaultPieceStorage): Added diskAdaptor(0)
  11088. * src/TrackerWatcherComand.cc:
  11089. (execute): Use btAnnounce->noMoreAnnounce()
  11090. to determin whether the function returns true or not.
  11091. * src/TrackerUpdateCommand.cc:
  11092. (execute): Use btAnnounce->noMoreAnnounce()
  11093. to determin whether the function returns true or not.
  11094. * src/FtpConnection.cc
  11095. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11096. This is the fix of the busy loop bug.
  11097. * src/DownloadCommand.cc
  11098. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11099. cached PeerStat.
  11100. The value of "name" entry in torrent file is now set by
  11101. *DiskAdaptor::setTopDir(...) methods.
  11102. * src/MultiDiskAdaptor.h
  11103. (topDir): New variable.
  11104. (setTopDir): New function.
  11105. (getTopDir): New function.
  11106. * src/MultiDiskAdaptor.cc
  11107. (getFilePath): Concat storDir, "/" and topDir.
  11108. (mkdir): Use getFilePath() to get the directory path for output.
  11109. * src/DefaultPieceStorage.cc
  11110. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11111. CopyDiskAdaptor.
  11112. * src/CopyDiskAdaptor.h
  11113. (topDir): New variable.
  11114. (setTopDir): New function.
  11115. (getTopDir): New function.
  11116. * src/CopyDiskAdaptor.cc
  11117. (fixFilename): Updated.
  11118. Misc
  11119. * src/UrlRequestInfo.h
  11120. (e): Removed.
  11121. (UrlRequestInfo): Removed e.
  11122. (getDownloadEngine): Removed.
  11123. * src/UrlRequestInfo.cc
  11124. (handler): Rewritten.
  11125. (printUrls): New function.
  11126. (execute): Call printUrls().
  11127. * src/HandshakeMessage.cc
  11128. (check): peerinteraction->getBtContext() -> btContext
  11129. * src/PeerInteraction.h
  11130. (getBtContext): Removed.
  11131. * src/TorrentRequestInfo.h
  11132. (execute): RequestInfo* -> RequestInfos
  11133. (getDownloadEngine): Removed.
  11134. * src/TorrentRequestInfo.cc
  11135. (haltRequested): Removed.
  11136. (btHaltRequested): New variable.
  11137. (torrentHandler): haltRequested -> btHaltRequested
  11138. (execute): RequestInfo* -> RequestInfos
  11139. * src/TorrentConsoleDownloadEngine.cc
  11140. (afterEachIteration): haltRequested -> btHaltRequested.
  11141. * src/ConsoleDownloadEngine.h
  11142. (initStatistics): Added virtual.
  11143. (calculateStatistics): Added virtual.
  11144. (onEndOfRun): Added virtual.
  11145. (afterEachIteration): Added virtual.
  11146. * src/ConsoleDownloadEngine.cc
  11147. (haltRequested): New variable.
  11148. (afterEachIteration): New function.
  11149. * src/main.cc
  11150. (requestInfo): Removed.
  11151. * src/SegmentMan.cc
  11152. (findSlowerSegmentEntry): Refactored.
  11153. * Release 0.9.0
  11154. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11155. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11156. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11157. * src/TorrentMan.h: Removed.
  11158. * src/TorrentMan.cc: Removed.
  11159. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11160. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11161. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11162. * src/PeerAbstractCommand.cc: Use btRuntime.
  11163. * src/BtContextAwareCommand.h: New class.
  11164. * src/FileEntry.h: Added accessor methods for following variables.
  11165. (path): Made private.
  11166. (length): Made private.
  11167. (offset): Made private.
  11168. (extracted): Made private.
  11169. (requested): Made private.
  11170. (FileEntries): New definition.
  11171. (FileEntryHandle): New definition.
  11172. * src/FileEntry.cc: New file.
  11173. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11174. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11175. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11176. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11177. * src/PieceStorage.h: New file.
  11178. * src/PeerInteractionCommand.h: Use btContext.
  11179. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11180. btRuntime.
  11181. * src/DefaultBtProgressInfoFile.h: New file.
  11182. * src/DefaultBtProgressInfoFile.cc: New file.
  11183. * src/File.cc
  11184. (Util.h): New include.
  11185. (mkdirs): New function.
  11186. * src/MultiDiskAdaptor.h
  11187. (mkdir): New function.
  11188. * src/PeerListProcessor.h
  11189. (Peers): Removed.
  11190. * src/PeerInteraction.h
  11191. (torrentMan): Removed.
  11192. (btContext): New variable.
  11193. (peerStorage): New variable.
  11194. (pieceStorage): New variable.
  11195. (btAnnounce): New variable.
  11196. (getTorrentMan): Removed.
  11197. (getBtContext): New function.
  11198. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11199. btAnnounce.
  11200. * src/HandshakeMessage.h
  11201. (TorrentMan.h): Removed.
  11202. * src/HandshakeMessage.cc: Use btContext.
  11203. * src/DefaultBtAnnounce.cc: New file.
  11204. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11205. * src/DefaultPieceStorage.cc: New file.
  11206. * src/DefaultBtContext.h: New file.
  11207. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11208. Use the accessor methods of FileEntry.
  11209. * src/CookieBox.cc: Updated to use Util::slice().
  11210. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11211. * src/common.h (SharedHandle.h): New include.
  11212. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11213. pieceStorage.
  11214. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11215. * src/DiskAdaptor.h
  11216. (topDir): Removed.
  11217. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11218. (setTopDir): Removed.
  11219. (getTopDir): Removed.
  11220. * src/BtContext.h: New file.
  11221. * src/DefaultPeerStorage.h: New file.
  11222. * src/PieceMessage.h (TorrentMan.h): Removed.
  11223. * src/RequestMessage.h (TorrentMan.h): Removed.
  11224. * src/TorrentDownloadEngine.h
  11225. (uploadLength): New variable.
  11226. (btContext): New variable.
  11227. (btRuntime): New variable.
  11228. (pieceStorage): New variable.
  11229. (peerStorage): New variable.
  11230. (btAnnounce): New variable.
  11231. (btProgressInfoFile): New variable.
  11232. (torrentMan): Removed.
  11233. (setBtContext): New function.
  11234. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11235. peerStorage, btAnnounce, btProgressInfoFile.
  11236. * src/Piece.h
  11237. (toString): New function.
  11238. (Pieces): New type definition.
  11239. * src/Peer.h
  11240. (active): New variable.
  11241. (Peer): Added active.
  11242. (activate): Set active to true.
  11243. (deactivate): Set active to false.
  11244. (isActive): New function.
  11245. (Peers): New type definition.
  11246. * src/DirectDiskAdaptor.cc
  11247. (getFilePath): Use the accessor methods of FileEntry.
  11248. * src/TorrentConsoleDownloadEngine.h
  11249. (afterEachIteration): New function.
  11250. * src/TorrentConsoleDownloadEngine.cc
  11251. (haltRequested): New variable.
  11252. (sendStatistics): Use pieceStorage, btRuntime.
  11253. (afterEachIteration): New function.
  11254. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11255. * src/Directry.h
  11256. (Directory): New function.
  11257. (DirectoryHandle): New type definition.
  11258. * src/BtProgressInfoFile.h: New file.
  11259. * src/RequestMessage.cc: Use pieceStorage.
  11260. * src/BtRuntime.h: New file.
  11261. * src/DefaultBtContext.cc: New file.
  11262. * src/BitfieldMan.h
  11263. (getCompletedLength): New function(private).
  11264. (getCompletedLength): New function.
  11265. (getFilteredCompletedLength): New function.
  11266. * src/BitfieldMan.h
  11267. (getCompletedLength): New function(private).
  11268. (getCompletedLength): New function.
  11269. (getFilteredCompletedLength): New function.
  11270. * src/MultiDiskAdaptor.cc
  11271. (mkdir): New function.
  11272. (openFile): Call mkdir().
  11273. (initAndOpenFile): Call mkdir().
  11274. * src/CancelMessage.h
  11275. (TorrentMan.h): Removed.
  11276. * src/RejectMessage.h
  11277. (TorrentMan.h): Removed.
  11278. * src/DownloadEngineFactory.cc
  11279. (DefaultPieceStorage.h): New include.
  11280. (DefaultPeerStorage.h): New include.
  11281. (DefaultBtAnnounce.h): New include.
  11282. (DefaultBtProgressInfoFile.h): New include.
  11283. (newTorrentConsoleEngine): Rewritten.
  11284. * src/ShareRatioSeedCriteria.h
  11285. (torrentMan): Removed.
  11286. (btContext): New variable.
  11287. (peerStorage): New variable.
  11288. (btRuntime): New variable.
  11289. (evaluate): Use btContext, btRuntime, peerStorage.
  11290. * src/AnnounceTier.h: New file.
  11291. * src/BtAnnounce.h: New file.
  11292. * src/BtRegistry.h: New file.
  11293. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11294. * src/PeerConnection.h (TorrentMan.h): Removed.
  11295. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11296. * src/Util.h
  11297. (slice): Added an argument.
  11298. * src/Util.cc
  11299. (slice): Added an argument to control whether trim is made or not.
  11300. * src/PeerStorage.h: New file.
  11301. * src/BtRegistry.cc: New file.
  11302. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11303. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11304. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11305. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11306. * src/TorrentRequestInfo.h
  11307. (e): Removed.
  11308. (showFileEntry): Added an argument.
  11309. (getDownloadEngine): Return 0.
  11310. * src/DefaultBtAnnounce.h: New file.
  11311. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11312. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11313. * src/PeerMessageFactory.h
  11314. (btContext): New variable.
  11315. (pieceStorage): New variable.
  11316. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11317. btAnnounce.
  11318. * src/DiskAdaptor.cc
  11319. (DiskAdaptor): Removed topDir.
  11320. (~DiskAdaptor): Removed topDir.
  11321. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11322. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11323. * src/File.h (mkdirs): New function.
  11324. * src/DefaultPeerStorage): New file.
  11325. * src/DownloadEngineFactory.h
  11326. (newTorrentConsoleEngine): Use btContext.
  11327. * src/BtContextAwareCommand.cc: New file.
  11328. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11329. * src/PeerMessage.h
  11330. (btContext): New variable.
  11331. (peerStorage): New variable.
  11332. (pieceStorage): New variable.
  11333. (setBtContext): New function.
  11334. * src/Directry.cc
  11335. (Directory): New function.
  11336. (createDir): Do nothing if name.size() == 0.
  11337. * src/AnnounceList.h
  11338. (AnnounceTier): Removed.
  11339. (AnnounceTiers): Removed.
  11340. * src/DefaultPieceStorage.h: New file.
  11341. * src/Piece.cc (toString): New function.
  11342. To fix typo:
  11343. * src/main.cc (showVersion): Fixed typo.
  11344. To fix compile warning:
  11345. * src/DelegatingPeerListProcessor.cc
  11346. (canHandle): Added "return false".
  11347. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11348. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11349. make the process of announce request testable.
  11350. * src/TrackerWatcherCommand.h
  11351. (TimeA2.h): Removed.
  11352. (interval): Removed.
  11353. (checkPoint): Removed.
  11354. (createRequestCommand): Added an argument 'url'.
  11355. (TrackerWatherCommand): Removed interval.
  11356. (createCommand): New function.
  11357. * src/DownloadEngineFactory.cc
  11358. (newTorrentConsoleEngine): Updated according to the changes in
  11359. TrackerWatherCommand.
  11360. * src/TorrentMan.cc
  11361. (DelegatingPeerListProcessor.h): New includes.
  11362. (TorrentMan): Added the initialization of announceInterval.
  11363. (isStoppedAnnounceReady): New function.
  11364. (isCompletedAnnounceReady): New function.
  11365. (isDefaultAnnounceReady): New function.
  11366. (isAnnounceReady): New function.
  11367. (getAnnounceUrl): New function.
  11368. (announceStart): New function.
  11369. (announceFailure): New function.
  11370. (announceSuccess): New function.
  11371. (isAllAnnounceFailed): New function.
  11372. (resetAnnounce): New function.
  11373. (processAnnounceResponse): New function.
  11374. (needMorePeerConnection): New function.
  11375. (noMoreAnnounce): New function.
  11376. * src/TrackerUpdateCommand.h
  11377. (getTrackerResponse): int->size_t
  11378. * src/TorrentMan.h
  11379. (isStoppedAnnounceReady): New function.
  11380. (isCompletedAnnounceReady): New function.
  11381. (isDefaultAnnounceReady): New function.
  11382. (announceInterval): New variable.
  11383. (isAnnounceReady): New function.
  11384. (getAnnounceUrl): New function.
  11385. (announceStart): New function.
  11386. (announceFailure): New function.
  11387. (announceSuccess): New function.
  11388. (isAllAnnounceFailed): New function.
  11389. (resetAnnounce): New function.
  11390. (processAnnounceResponse): New function.
  11391. (needMorePeerConnection): New function.
  11392. (noMoreAnnounce): New function.
  11393. * src/TrackerWatcherCommand.cc
  11394. (TrackerWatherCommand): Removed interval and checkPoint.
  11395. (execute): Rewritten.
  11396. (createCommand): New function.
  11397. (createRequestCommand): Rewritten.
  11398. * src/TrackerUpdateCommand.cc
  11399. (MetaFileUtil.h): Removed.
  11400. (DelegatingPeerListProcessor.h): Removed.
  11401. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11402. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11403. Request -> RequestHandle:
  11404. * src/HttpResponseCommand.h: Request->RequestHandle
  11405. * src/AbstractCommand.cc: Request->RequestHandle
  11406. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11407. * src/HttpRequestCommand.cc: Request->RequestHandle
  11408. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11409. * src/AbstractCommand.h: Request->RequestHandle
  11410. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11411. * src/HttpResponseCommand.cc: Request->RequestHandle
  11412. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11413. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11414. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11415. * src/HttpConnection.h: Request->RequestHandle
  11416. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11417. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11418. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11419. * src/DownloadCommand.h: Request->RequestHandle
  11420. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11421. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11422. * src/HttpRequestCommand.h: Request->RequestHandle
  11423. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11424. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11425. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11426. * src/HttpDownloadCommand.h: Request->RequestHandle
  11427. * src/FtpConnection.cc: Request->RequestHandle
  11428. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11429. * src/UrlRequestInfo.cc: Request->RequestHandle
  11430. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11431. * src/HttpConnection.h: Request->RequestHandle
  11432. * src/DownloadCommand.cc: Request->RequestHandle
  11433. * src/FtpConnection.h: Request->RequestHandle
  11434. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11435. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11436. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11437. * src/Request.h
  11438. (SharedHandle.h): New include.
  11439. (RequestHandle): New type definition.
  11440. (Requests): Redefined.
  11441. To add MULTITRACKER support:
  11442. * src/TrackerWatcherCommand.h
  11443. (createRequestCommand): New function.
  11444. * src/DownloadEngineFactory.cc
  11445. (newTorrentConsoleEngine): Removed req.
  11446. * src/prefs.h
  11447. (PREF_TRACKER_MAX_TRIES): New definition.
  11448. * src/TorrentMan.cc
  11449. (TorrentMan): Removed req. Added trackerNumTry.
  11450. (~TorrentMan): Removed req.
  11451. (setupInternal1): Added announceList.
  11452. * src/TorrentRequestInfo.cc
  11453. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11454. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11455. * src/main.cc
  11456. (main): Added PREF_TRACKER_MAX_TRIES.
  11457. * src/TorrentMan.h
  11458. (Request.h): Removed.
  11459. (AnnounceList.h): New include.
  11460. (trackerNumTry): New variable.
  11461. (req): Removed.
  11462. (announceList): New variable.
  11463. * src/TrackerWatcherCommand.cc
  11464. (execute): Rewritten.
  11465. (createRequestCommand): New function.
  11466. * src/TrackerUpdateCommand.cc
  11467. (execute): Updated with the use of AnnounceList.
  11468. * src/AnnounceList.cc: New class.
  11469. * src/AnnounceList.h: New class.
  11470. To fix typo:
  11471. * src/prefs.h
  11472. (PREF_MAX_TRIES): max_try->max_tries
  11473. To not to decode "+" as space in URL decode:
  11474. * src/Util.cc
  11475. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11476. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11477. To add timeout to async name resolution:
  11478. * src/AbstractCommand.h
  11479. (nameResolveFinished): New function. This is not elegant way. It needs
  11480. to be more refined.
  11481. (nameResolverCheck): New variable.
  11482. * src/AbstractCommand.cc
  11483. (AbstractCommand): Added nameResolverCheck.
  11484. (execute): Added the check whether the name resolution has finished.
  11485. (setNameResolverCheck): Set nameResolverCheck to true.
  11486. (disableNameResolverCheck): Set nameResolverCheck to false.
  11487. (nameResolverFinished): New function.
  11488. * src/FtpInitiateConnectionCommand.h
  11489. (nameResolverFinished): New function.
  11490. * src/FtpInitiateConnectionCommand.cc
  11491. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11492. * src/HttpInitiateConnectionCommand.h
  11493. (nameResolverFinished): New function.
  11494. * src/HttpInitiateConnectionCommand.cc
  11495. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11496. * src/prefs.h
  11497. (PREF_DNS_TIMEOUT): New definition.
  11498. * src/main.cc
  11499. (main): Added PREF_DNS_TIMEOUT.
  11500. To add the support for a non-compact response from a tracker:
  11501. * src/PeerListProcessor.h: New class.
  11502. * src/DefaultPeerListProcessor.h: New class.
  11503. * src/DefaultPeerListProcessor.cc: New class.
  11504. * src/CompactPeerListProcessor.h: New class.
  11505. * src/CompactPeerListProcessor.cc: New class.
  11506. * src/DelegatingPeerListProcessor.h: New class.
  11507. * src/DelegatingPeerListProcessor.cc: New class.
  11508. * src/TorrentMan.cc
  11509. (addPeer): New function(overload).
  11510. (addPeer): Delete unused peers only when new peer is added.
  11511. * src/TorrentMan.h
  11512. (PeerListProcessor.h): Included.
  11513. (Peers): Removed.
  11514. (addPeer): New function(overload).
  11515. * src/TrackerUpdateCommand.cc
  11516. (netinet/in.h): Removed.
  11517. (DelegatingPeerListProcessor.h): Included.
  11518. (execute): Updated to use DelegatingPeerListProcessor.
  11519. To fix the memory leak in TorrentMan::peers:
  11520. * src/PeerAbstractCommand.cc
  11521. (onAbort): Added peer->resetStatus().
  11522. * src/Peer.h
  11523. (resetStatus): Made public.
  11524. To improve the precision of the speed calculation:
  11525. * src/SpeedCalc.h
  11526. (nextInterval): New variable.
  11527. * src/SpeedCalc.cc
  11528. (reset): Added nextInterval.
  11529. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11530. (changeSw): Set nextInterval to 15 seconds relative to the current
  11531. instant time.
  11532. * src/main.cc
  11533. (showVersion): Updated.
  11534. (showUsage): Updated.
  11535. * Release 0.8.1
  11536. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11537. * src/main.cc
  11538. (showUsage): Commented out --min-segment-size option.
  11539. (main): Commented out --min-segment-size option.
  11540. * Release 0.8.0
  11541. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11542. * src/*.{h,cc}:
  11543. Added an exception to the license which allows linking with OpenSSL.
  11544. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11545. * src/AbstractCommand.cc
  11546. (execute): Check whether the download has finished before checking
  11547. socket status.
  11548. Return true if peerStat->getStatus() == REQUEST_IDLE.
  11549. Do not exit even if no segment is available.
  11550. * src/prefs.h
  11551. (PREF_STARTUP_IDLE_TIME): New definition.
  11552. * src/PeerInteractionCommand.cc
  11553. (executeInternal): Removed max speed limit. Because it performs bad.
  11554. (receiveMessages): Added max speed limit. This was better than above,
  11555. but still a little bit to be desired. Sometimes the download speed
  11556. became much faster than I specified.
  11557. * src/SpeedCalc.h
  11558. (start): New variable.
  11559. (accumulatedLength): New variable.
  11560. (getAvgSpeed): New function.
  11561. * src/SpeedCalc.cc
  11562. (reset): Added start, accumulatedLength.
  11563. (update): Added calculation of an average speed.
  11564. (getAvgSpeed): New function.
  11565. * src/DownloadCommand.h
  11566. (sw): Removed.
  11567. * src/main.cc
  11568. (main): Added PREF_STARTUP_IDLE_TIME.
  11569. * src/PeerStat.h
  11570. (STATUS): Added REQUEST_IDLE.
  11571. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  11572. (getAvgDownloadSpeed): New function
  11573. (requestIdle): New function.
  11574. * src/SegmentMan.h
  11575. (SegmentEntryHandle): New type definition.
  11576. (SegmentEntries): Now holds SegmentEntryHandle.
  11577. (findSlowerSegmentEntry): New funtion.
  11578. * src/SegmentMan.cc
  11579. (save): Updated according to the changes in SegmentEntries.
  11580. (read): Updated according to the changes in SegmentEntries.
  11581. (FindSegmentEntryByIndex): Updated according to the changes in
  11582. SegmentEntries.
  11583. (FindSegmentEntryByCuid): Updated according to the changes in
  11584. SegmentEntries.
  11585. (checkoutSegment): Updated according to the changes in SegmentEntries.
  11586. (onNullBitfield): Updated according to the changes in SegmentEntries.
  11587. Renamed uitr as itr.
  11588. (findSlowerSegmentEntry): New function.
  11589. (getSegment): Updated according to the changes in SegmentEntries.
  11590. Added the feature that cancels the segment with slow server and fast
  11591. one takes it over.
  11592. (cancelSegment): Updated according to the changes in SegmentEntries.
  11593. (getDownloadLength): Updated according to the changes in
  11594. SegmentEntries.
  11595. (init): Assigned 0 to bitfield after deleting it.
  11596. * src/DownloadCommand.cc
  11597. (STARTUP_IDLE_TIME): Removed.
  11598. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  11599. * src/PeerChokeCommand.cc
  11600. (optUnchokingPeer): Updated according to the changes in Peer.
  11601. (ResetDelta): Removed.
  11602. (UploadFaster): Updated according to the changes in Peer.
  11603. (DownloadFaster): Updated according to the changes in Peer.
  11604. (execute): I clarify the meaning of "upload" and "download" here.
  11605. "upload" means the transfer from localhost to remote host.
  11606. "download" means the transfer from remote host to localhost.
  11607. Based on this rule, I swapped orderByUploadRate and
  11608. orderByDownloadRate.
  11609. * src/PeerInteractionCommand.cc
  11610. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  11611. (executeInternal): Removed the argument of
  11612. peerInteraction->sendMessages().
  11613. (receiveMessages): Rewritten download speed limit.
  11614. (sendKeepAlive): Removed peerInteraction->sendMessages().
  11615. * src/HttpResponseCommand.cc
  11616. (handleDefaultEncoding): If file size is unknown in torrent request,
  11617. do not call segmentMan->initBitfield() here.
  11618. Disabled persistent connection feature in torrent request.
  11619. * src/UrlRequestInfo.h
  11620. (UrlRequestInfo): Removed const qualifier from option.
  11621. * src/TorrentMan.h
  11622. (TransferStat): New class.
  11623. (deltaDownloadLength): Removed.
  11624. (deltaUploadLength): Removed.
  11625. (addDeltaDownloadLength): Removed.
  11626. (getDeltaDownloadLength): Removed.
  11627. (resetDeltaDownloadLength): Removed.
  11628. (addDeltaUploadLength): Removed.
  11629. (getDeltaUploadLength): Removed.
  11630. (resetDeltaUploadLength): Removed.
  11631. (addActivePeer): Added peer->activate().
  11632. (deleteActivePeer): Added peer->deactivate().
  11633. (calculateStat): New function.
  11634. * src/TorrentMan.cc
  11635. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  11636. (calculateStat): New function.
  11637. * src/PeerInteraction.h
  11638. (uploadLimit): Removed.
  11639. (option): New variable.
  11640. (setUploadLimit): Removed.
  11641. (getUploadSpeed): Removed.
  11642. (sendMessages): Removed the argument "currentUploadSpeed".
  11643. * src/PeerInteraction.cc
  11644. (prefs.h): Included.
  11645. (PeerInteraction): Removed uploadLimit. Added option.
  11646. (sendMessages): Rewritten upload speed limit.
  11647. (sendHandshake): Removed the argument from sendMessages().
  11648. (sendBitfield): Removed the argument from sendMessages().
  11649. * src/PeerAbstractCommand.cc
  11650. (execute): Commented out the portion of upload limit.
  11651. (onAbort): Removed peer->resetStatus().
  11652. * src/TorrentRequestInfo.cc
  11653. (timeoutSpecified): Declared extern.
  11654. (execute): Set timeout to 180 if timeout is not specified by.
  11655. command-line.
  11656. * src/PieceMessage.cc
  11657. (receivedAction): Added peer->updateDownloadLength().
  11658. Removed peer->addPeerUpload().
  11659. Removed torrentMan->addDeltaDownloadLength().
  11660. (send): Added peer->updateUploadLength().
  11661. Removed peer->addPeerDownload().
  11662. Removed torrentMan->addDeltaUploadLength().
  11663. * src/main.cc
  11664. (timeoutSpecified): New variable.
  11665. (main): Set timeoutSpecified to false.
  11666. If the command-line option "--upload-limit" is specified, then
  11667. timeoutSpecified is set to true. This option will remain in the next
  11668. release, but be deprecated in the future release.
  11669. * src/TorrentRequestInfo.h
  11670. (TorrentRequestInfo): Removed const qualifier from op.
  11671. * src/PeerStat.h
  11672. (uploadSpeed): New variable.
  11673. (PeerStat): Added default value to cuid.
  11674. (calculateUploadSpeed): New function.
  11675. (updateUploadLength): New function.
  11676. (getMaxUploadSpeed): New function.
  11677. (getAvgUploadSpeed): New function.
  11678. (reset): Added uploadSpeed. Set status to IDLE.
  11679. * src/TorrentDownloadEngine.h
  11680. (cp): Declared as Time.
  11681. (sessionDownloadLengthArray): Removed.
  11682. (sessionUploadLengthArray): Removed.
  11683. (currentCp): Removed.
  11684. (lastCalcStat): New variable
  11685. (lastElapsed): Removed.
  11686. (sessionDownloadLength): Removed.
  11687. (calculateStat): New function.
  11688. * src/TorrentDownloadEngine.cc
  11689. (initStatistics): Removed lastElapsed, cp[],
  11690. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  11691. currentCp, sessionDownloadLength.
  11692. Added cp.reset() and lastCalcStat.reset().
  11693. (calculateSpeed): Changed the name of the argument.
  11694. (calculateStatistics): Rewritten.
  11695. (calculateStat): New function.
  11696. * src/Peer.h
  11697. (PeerStat.h): Included.
  11698. (peerUpload): Removed.
  11699. (peerDownload): Removed.
  11700. (peerStat): New variable.
  11701. (sessionUploadLength): New variable.
  11702. (sessionDownloadLength): New variable.
  11703. (deltaUpload): Removed.
  11704. (deltaDownload): Removed.
  11705. (resetStatus): Made private.
  11706. (Peer): Added sessionUploadLength, sessionDownloadLength.
  11707. Removed peerUpload, peerDownload.
  11708. (updateUploadLength): New function.
  11709. (addDeltaUpload): Removed.
  11710. (updateDownloadLength): New function.
  11711. (resetDeltaUpload): Removed.
  11712. (getDeltaUpload): Removed.
  11713. (addDeltaDownload): Removed.
  11714. (calculateUploadSpeed): New function.
  11715. (resetDeltaDownload): Removed.
  11716. (getDeltaDownload): Removed.
  11717. (calculateDownloadSpeed): New function.
  11718. (getSessionUploadLength): New function.
  11719. (getSessionDownloadLength): New function.
  11720. (activate): New function.
  11721. (deactivate): New function.
  11722. (addPeerUpload): Removed.
  11723. (setPeerUpload): Removed.
  11724. (getPeerUpload): Removed.
  11725. (addPeerDownload): Removed.
  11726. (setPeerDownload): Removed.
  11727. (getPeerDownload): Removed.
  11728. * src/Peer.cc
  11729. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  11730. * src/MetalinkRequestInfo.h
  11731. (MetalinkRequestInfo): Removed const qualifier from op.
  11732. * src/RequestInfo.h
  11733. (op): Removed const qualifier.
  11734. (RequestInfo): Removed const qualifier from op.
  11735. * src/prefs.h
  11736. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  11737. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  11738. * src/PeerInteractionCommand.cc
  11739. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  11740. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  11741. * src/PeerInteraction.cc
  11742. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  11743. * src/main.cc
  11744. (showUsage): Updated the description of "--lowest-speed-limit" option.
  11745. Added the description of "--max-download-limit" option.
  11746. Removed the description of "--upload-limit" option.
  11747. Added the description of "--max-upload-limit" option.
  11748. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  11749. Added "--max-download-limit" option and "--max-upload-limit" option.
  11750. Added the warning message if "--upload-limit" option is used.
  11751. * src/DownloadCommand.cc
  11752. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  11753. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11754. To rewrite segment download mechanism for HTTP/FTP download.
  11755. Use BitfieldMan to manage segment download.
  11756. * src/HttpResponseCommand.h
  11757. (executeInternal): Pass the reference of segment.
  11758. * src/AbstractCommand.cc
  11759. (prepareForRetry): Call segmentMan->cancelSegment here.
  11760. (onAbort): Call segmentMan->cancelSegment here.
  11761. * src/HttpDownloadCommand.cc
  11762. (prepareForNextSegment): New function.
  11763. * src/DownloadEngineFactory.cc
  11764. (newConsoleEngine): Removed splitter.
  11765. (newTorrentConsoleEngine): Removed splitter.
  11766. * src/Request.h
  11767. (segment): Renamed from seg.
  11768. * src/FtpInitiateConnectionCommand.h
  11769. (executeInternal): Pass the reference of segment.
  11770. * src/AbstractCommand.h
  11771. (executeInternal): Pass the reference of segment.
  11772. * src/pref.h
  11773. (PREF_SEGMENT_SIZE): New definition.
  11774. * src/HttpProxyRequestCommand.h
  11775. (executeInternal): Pass the reference of segment.
  11776. * src/HttpResponseCommand.cc
  11777. (checkResponse): Allowed status 206 when a request range starts 0.
  11778. (handleDefaultEncoding): Rewritten the code related to Segment.
  11779. (handleOtherEncoding): Rewritten the code related to Segment.
  11780. * src/SegmentMan.h
  11781. (SegmentEntry): New class.
  11782. (SegmentEntries): New type definition.
  11783. (bitfield): New variable.
  11784. (usedSegmentEntries): New variable.
  11785. (onNullBitfield): New function.
  11786. (checkoutSegment): New function.
  11787. (segments): Removed.
  11788. (splitter): Removed.
  11789. (unregisterId): Removed.
  11790. (getSegment): New function(overload)
  11791. (getDownloadedSize): Removed.
  11792. (cancelSegment): New function.
  11793. (completeSegment): New function.
  11794. (initBitfield): New function.
  11795. (hasSegment): New function.
  11796. (getDownloadLength): New function.
  11797. * src/BitfieldMan.h
  11798. (getStartIndex): New function.
  11799. (getEndIndex): New function.
  11800. (getMissingUnusedIndex): New function(overload).
  11801. (getSparseMissingUnusedIndex): New function.
  11802. * src/BitfieldMan.cc
  11803. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  11804. (getMissingUnusedIndex): New function(overload).
  11805. (Range): New class.
  11806. (getStartIndex): New function.
  11807. (getEndIndex): New function.
  11808. (getSparseMissingUnusedIndex): New function.
  11809. (isBitSetInternal): Return false if the given index is less than 0.
  11810. * src/HttpInitiateConnectionCommand.h
  11811. (executeInternal): Pass the reference of segment.
  11812. * src/FtpNegotiateCommand.h
  11813. (executeInternal): Pass the reference of segment.
  11814. * src/FtpNegotiateCommand.cc
  11815. (recvSize): Initialize bitfield here.
  11816. * src/FtpTunnelResponseCommand.h
  11817. (executeInternal): Pass the reference of segment.
  11818. * src/HttpConnection.cc
  11819. (createRequest): Rewritten range header processing.
  11820. * src/DownloadCommand.h
  11821. (executeInternal): Pass the reference of segment.
  11822. (prepareForRetry): Removed.
  11823. (prepareForNextSegment): Added an argument segment. Made it a virtual
  11824. function.
  11825. * src/main.cc
  11826. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11827. * src/SegmentMan.cc
  11828. (SegmentMan): Added bitfield. Removed splitter.
  11829. (~SegmentMan): Added bitfield. Removed splitter.
  11830. (unregisterId): Removed.
  11831. (getSegment): Rewritten.
  11832. (updateSegment): Rewritten.
  11833. (save): Rewritten.
  11834. (read): Rewritten.
  11835. (finished): Rewritten.
  11836. (getDownloadedSize): Removed.
  11837. (initBitfield): New function.
  11838. (FindSegmentEntryByIndex): New function object.
  11839. (FindSegmentEntryByCuid): New function object.
  11840. (checkoutSegment): New function.
  11841. (onNullBitfield): New function.
  11842. (getSegment): New function(overload).
  11843. (CancelSegment): New function object.
  11844. (cancelSegment): New function.
  11845. (completeSegment): New function.
  11846. (hasSegment): New function.
  11847. (getDownloadLength): New function.
  11848. * src/FtpInitiateConnectionCommand.cc
  11849. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11850. * src/Segment.h: Rewritten.
  11851. * src/Segment.cc (operator<<): New function.
  11852. * src/HttpDownloadCommand.h
  11853. (prepareForNextSegment): New function.
  11854. * src/Request.cc
  11855. (resetUrl): Made segment null.
  11856. * src/DownloadEngine.cc
  11857. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11858. * src/HttpProxyRequestCommand.h
  11859. (executeInternal): Pass the reference of segment.
  11860. * src/DownloadCommand.cc
  11861. (executeInternal): Rewritten the code related to Segment.
  11862. (prepareForRetry): Removed.
  11863. (prepareForNextSegment): Rewritten.
  11864. * src/FtpTunnelResponseCommand.h
  11865. (executeInternal): Pass the reference of segment.
  11866. To add HTTP 1.1 persistent connection support(experimental)
  11867. * src/HttpRequestCommand.cc
  11868. (executeInternal): Disable keep alive if it is disabled by
  11869. configuration.
  11870. * src/Request.h
  11871. (keepAlive): New variable.
  11872. (isKeepAlive): New function.
  11873. (setKeepAlive): New function.
  11874. * src/pref.h
  11875. (PREF_HTTP_KEEP_ALIVE): New definition.
  11876. * src/HttpResponseCommand.cc
  11877. (executeInternal): Check the remote server supports keep alive.
  11878. * src/HttpConnection.cc
  11879. (createRequest): Send "Connection: close" only if keep alive is
  11880. disabled.
  11881. * src/main.cc
  11882. (main):
  11883. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11884. To add max download speed limit:
  11885. * src/pref.h
  11886. (PREF_MAX_SPEED_LIMIT): New definition.
  11887. * src/PeerInteractionCommand.cc
  11888. (executeInternal): Added max download speed limit. Not tested yet.
  11889. * src/SegmentMan.h
  11890. (PeerStats): New type definition.
  11891. (peerStats): New variable.
  11892. (registerPeerStat): New function.
  11893. (FindPeerStat): New function object.
  11894. (getPeerStat): New function.
  11895. (calculateDownloadSpeed): New function.
  11896. * src/SpeedCalc.h: New class.
  11897. * src/SpeedCalc.cc: New class.
  11898. * src/main.cc
  11899. (main):
  11900. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11901. download speed is not restricted).
  11902. * src/PeerStat.h: New class.
  11903. * src/SegmentMan.cc
  11904. (registerPeerStat): New function.
  11905. (calculateDownloadSpeed): New function.
  11906. * src/DownloadCommand.cc
  11907. (STARTUP_IDLE_TIME): New definition.
  11908. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11909. downloadStart.
  11910. (~DownloadCommand): Call peerStat->downloadStop.
  11911. (executeInternal): Added download speed limitter. Rewritten lowest
  11912. speed limitter.
  11913. * src/HttpConnection.cc
  11914. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11915. * src/AbstractCommand.cc
  11916. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11917. Added hostname to the error message.
  11918. * src/ConsoleDownloadEngine.cc
  11919. (calculateStatistics): Initialize psize with dlSize.
  11920. * src/PieceMessage.cc
  11921. (receivedAction): Do not call peerInteraction->abortPiece here.
  11922. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11923. * src/BitfieldMan.h
  11924. (clearAllUseBit): New function.
  11925. (setAllUseBit): New function.
  11926. * src/BitfieldMan.cc
  11927. (clearAllBit): Do not clear useBitfield here.
  11928. (clearAllUseBit): New function.
  11929. (setAllUseBit): New function.
  11930. * src/Piece.cc
  11931. (clearAllBlock): Call bitfield->clearAllUseBit().
  11932. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. To make filename URL-decoded:
  11934. * src/HttpResponseCommand.h: Updated doc.
  11935. * src/HttpResponseCommand.cc
  11936. (determinFilename): Made filename URL-decoded.
  11937. * src/FtpInitiateConnectionCommand.cc
  11938. (executeInternal): Made filename URL-decoded.
  11939. * src/Util.h (urldecode): New function.
  11940. * src/Util.cc (urldecode): New function.
  11941. To fix a bug that caused assertion failure in ares_strerror:
  11942. * src/NameResolver.cc (callback): Fixed the bug.
  11943. * Release 0.7.3
  11944. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11945. To add --seed-time and --seed-ratio command-line option:
  11946. * src/Option.h (getAsDouble): New function.
  11947. * src/Option.cc (getAsDouble): New function.
  11948. * src/SeedCheckCommand.h: New class.
  11949. * src/SeedCheckCommand.cc: New class.
  11950. * src/DownloadEngineFactory.cc
  11951. (SeedCheckCommand.h): Included.
  11952. (UnionSeedCriteria.h): Included.
  11953. (TimeSeedCriteria.h): Included.
  11954. (ShareRatioSeedCriteria.h): Included.
  11955. (newTorrentConsoleEngine): Added the processing of seed option.
  11956. * src/SeedCriteria.h: New class.
  11957. * src/ShareRatioSeedCriteria.h: New class.
  11958. * src/TimeSeedCriteria.h: New class.
  11959. * src/UnionSeedCriteria.h: New class.
  11960. * src/prefs.h
  11961. (PREF_SEED_TIME): New definition.
  11962. (PREF_SEED_RATIO): New definition.
  11963. * src/main.cc
  11964. (showUsage): Added --seed-time and --seed-ratio option.
  11965. (main): Added --seed-time and --seed-ratio option.
  11966. Made default log file name "/dev/null".
  11967. * src/SharedHandle.h
  11968. (SharedHandle): Copy constructor. Made it assignable from the
  11969. SharedHandle of the subclasses.
  11970. (operator=): Made it assignable from the SharedHandle of the
  11971. subclasses.
  11972. (getRefCount): New function.
  11973. To add notice log level and the switch to write log to stdout. This
  11974. switch is configurable per log level.
  11975. * src/Logger.h
  11976. (notice): New function.
  11977. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11978. constant.
  11979. * src/LogFactory.cc
  11980. (getInstance): The use of NullLogger was removed. A log message with
  11981. notice log level was made written to stdout along with log file.
  11982. * src/NullLogger.h
  11983. (notice): New function.
  11984. * src/SimpleLogger.h
  11985. (writeHeader): Added the 'file' argument.
  11986. (writeLog): Added the 'file' argument.
  11987. (writeFile): New function.
  11988. (stdoutField): New variable.
  11989. (SimpleLogger): Removed the default constructor.
  11990. (SimpleLogger): Made the default value of logfile 0.
  11991. (debug): Added 'virtual' keyword.
  11992. (info): Added 'virtual' keyword.
  11993. (warn): Added 'virtual' keyword.
  11994. (error): Added 'virtual' keyword.
  11995. (notice): New function.
  11996. (setStdout): New function.
  11997. * src/SimpleLogger.cc
  11998. (WRITE_LOG): Replaced writeLog with writeFile.
  11999. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12000. (SimpleLogger): Removed the default constructor.
  12001. (setStdout): New function.
  12002. (writeLog): Added the handling of NOTICE log level.
  12003. (writeFile): New function.
  12004. (notice): New function.
  12005. * src/TorrentMan.h: Updated doc.
  12006. * src/BitfieldMan.h: Updated doc.
  12007. * src/TrackerWatcherCommand.cc
  12008. (execute): Return true if error occurred in the request to the tracker
  12009. and halt is requested.
  12010. * src/TrackerUpdateCommand.cc
  12011. (execute): Return true if error occurred in the request to the tracker
  12012. and halt is requested.
  12013. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12014. DownloadEngine:
  12015. * src/TorrentConsoleDownloadEngine.h
  12016. (onSelectiveDownloadingCompletes): Removed.
  12017. * src/TorrentConsoleDownloadEngine.cc
  12018. (onSelectiveDownloadingCompletes): Removed.
  12019. * src/TorrentDownloadEngine.h
  12020. (onEndOfRun): Added 'virtual' keyword.
  12021. (afterEachIteration): Removed.
  12022. (onSelectiveDownloadingCompletes): Removed.
  12023. * src/TorrentDownloadEngine.cc
  12024. (onEndOfRun): Removed filenameFixed.
  12025. (afterEachIteration): Removed.
  12026. * src/TorrentMan.cc
  12027. (completePiece): Call onDownloadComplete here.
  12028. (onDownloadComplete): Added 2 log messages.
  12029. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12030. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12031. * src/NameResolver.h: Added the prototype declaration of callback().
  12032. To support c-ares library:
  12033. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12034. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12035. * src/FtpInitiateConnectionCommand.h:
  12036. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12037. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12038. * src/HttpInitiateConnectionCommand.h:
  12039. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12040. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12041. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12042. #1542285 by tizianomueller)
  12043. * src/HttpInitiateConnectionCommand.cc:
  12044. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12045. * src/FtpInitiateConnectionCommand.cc:
  12046. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12047. * src/DownloadEngine.h:
  12048. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12049. * src/DownloadEngine.cc:
  12050. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12051. To fix the bug that causes compilation failure with metalink-support
  12052. disabled(bug#1543587):
  12053. * src/main.cc: Fixed with the patch by tizianomueller.
  12054. * Release 0.7.2
  12055. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12056. * src/main.cc
  12057. (main): Added a message to inform users that aria2 is starting to
  12058. verify checksum.
  12059. * src/RequestInfo.cc
  12060. (printDownloadAbortMessage): Added a message to inform users that
  12061. transfer can be resumed.
  12062. * src/FeatureConfig.cc
  12063. (FEATURE_ASYNC_DNS): New definition.
  12064. (FeatureConfig): Added aysnc DNS entry.
  12065. To replace CommandUuid with Command* in SocketEntry and
  12066. NameResolverEntry:
  12067. * src/DownloadEngine.h
  12068. (CommandUuids): Removed.
  12069. (SocketEntry::commandUuid): Removed.
  12070. (SocketEntry::command): New variable.
  12071. (SocketEntry::SocketEntry): Updated.
  12072. (SocketEntry::operator==): Updated.
  12073. (NameResolverEntry::commandUuid): Removed.
  12074. (NameResolverEntry::command): New variable.
  12075. (NameResolverEntry::NameResolverEntry): Updated.
  12076. (NameResolverEntry::operator==): Updated.
  12077. (waitData): Changed the argument type.
  12078. (addSocketForReadCheck): Changed the argument type.
  12079. (deleteSocketForReadCheck): Changed the argument type.
  12080. (addSocketForWriteCheck): Changed the argument type.
  12081. (deleteSocketForWriteCheck): Changed the argument type.
  12082. (addNameResolverCheck): Changed the argument type.
  12083. (deleteNameResolverCheck): Changed the argument type.
  12084. * src/DownloadEngine.cc
  12085. (FindCommand): Removed.
  12086. (run): Removed activeUuid. Added activeCommands instead.
  12087. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12088. (AccumulateActiveCommand): New function object.
  12089. (waitData): Use AccumulateActiveCommand.
  12090. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12091. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12092. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12093. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12094. (addNameResolverCheck): Use Command instead of CommandUuid.
  12095. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12096. * src/AbstractCommand.cc
  12097. (disableReadCheckSocket): Updated according to the changes in
  12098. DownloadEngine.
  12099. (setReadCheckSocket): Updated according to the changes in
  12100. DownloadEngine.
  12101. (disableWriteCheckSocket): Updated according to the changes in
  12102. DownloadEngine.
  12103. (setWriteCheckSocket): Updated according to the changes in
  12104. DownloadEngine.
  12105. (setNameResolverCheck): Updated according to the changes in
  12106. DownloadEngine.
  12107. (disableNameResolverCheck): Updated according to the changes in
  12108. DownloadEngine.
  12109. * src/AbstractCommand.cc
  12110. (disableReadCheckSocket): Updated according to the changes in
  12111. DownloadEngine.
  12112. (setReadCheckSocket): Updated according to the changes in
  12113. DownloadEngine.
  12114. (disableWriteCheckSocket): Updated according to the changes in
  12115. DownloadEngine.
  12116. (setWriteCheckSocket): Updated according to the changes in
  12117. DownloadEngine.
  12118. * release 0.7.1
  12119. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12120. To handle the case where some BitTorrent tracker requires all letters
  12121. except for [A-Za-z0-9] is URL encoded.
  12122. * src/Util.h
  12123. (torrentUrlencode): New function.
  12124. * src/Util.cc
  12125. (ctype.h): Included.
  12126. (torrentUrlencode): New function.
  12127. * src/TrackerWatcherCommand.cc
  12128. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12129. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12130. To add asynchronous DNS support(libares):
  12131. * src/AbstractCommand.h
  12132. (setNameResolverCheck): New function.
  12133. (disableNameResolverCheck): New function
  12134. (resolveHostname): New function.
  12135. * src/AbstractCommand.cc
  12136. (setNameResolverCheck): New function.
  12137. (disableNameResolverCheck): New function
  12138. (resolveHostname): New function.
  12139. * src/FtpInitiateConnectionCommand.h
  12140. (nameResolver): New function.
  12141. * src/FtpInitiateConnectionCommand.cc
  12142. (Util.h): Included.
  12143. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12144. disableWriteCheckSocket.
  12145. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12146. (executeInternal): Added async DNS support.
  12147. * src/HttpInitiateConnectionCommand.h
  12148. (nameResolver): New function.
  12149. * src/HttpInitiateConnectionCommand.cc
  12150. (DlRetryEx.h): Included.
  12151. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12152. disableWriteCheckSocket.
  12153. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12154. (executeInternal): Added async DNS support.
  12155. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12156. by extern "C" declaration.
  12157. * src/NameResolver.cc: New class.
  12158. * src/Util.h:
  12159. (isNumberAndDotsNotation): New function
  12160. * src/Util.cc
  12161. (isNumberAndDotsNotation): New function.
  12162. * src/DownloadEngine.h
  12163. (NameResolver.h): Included.
  12164. (NameResolverEntry): New class.
  12165. (NameResolverEntries): New type definition.
  12166. (addNameResolverCheck): New function.
  12167. (deleteNameResolverCheck): New function.
  12168. * src/DownloadEngine.cc
  12169. (run): Initialize cp with 0.
  12170. (SetDescriptor::operator()): Added for NameResolverEntry.
  12171. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12172. (waitData): Check nameResolver entries.
  12173. (updateFdSet): Update fds in nameResolver entries.
  12174. (addNameResolverCheck): New function.
  12175. (deleteNameResolverCheck): new function.
  12176. * src/PeerInteractionCommand.cc
  12177. (executeInternal): Fixed wrong socket handling.
  12178. * src/main.cc
  12179. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12180. * src/Util.cc
  12181. (fileChecksum): Removed the call to ctx.digestReset().
  12182. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12183. * po/ru.po: Azamat sent me Russian translation.
  12184. * src/FtpNegotiateCommand.cc
  12185. (recvGreeting): Call disableWriteCheckSocket just after
  12186. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12187. (recvRetr): Recognized status code 125 as a acceptable response code.
  12188. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12189. case-insesitive filesystem(BUG#1531057).
  12190. * src/Time.h: Renamed as TimeA2.h.
  12191. * src/Time.cc: Renamed as TimeA2.cc.
  12192. * src/TimeA2.h: New class.
  12193. * src/TimeA2.cc: New class.
  12194. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12195. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12196. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12197. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12198. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12199. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12200. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12201. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12202. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12203. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12204. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12205. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12206. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12207. * release 0.7.0
  12208. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12209. * src/PeerChokeCommand.h
  12210. (PeerChokeCommand): Rearranged the arguments.
  12211. * src/PeerChokeCommand.cc
  12212. (PeerChokeCommand): Rearranged the arguments.
  12213. * src/MetalinkEntry.h
  12214. (Checksum.h): Included.
  12215. (md5): Removed.
  12216. (sha1): Removed.
  12217. (checksum): New variable.
  12218. (operator=): Updated.
  12219. (check): Removed.
  12220. * src/prefs.h
  12221. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12222. (PREF_FOLLOW_TORRENT): New definition.
  12223. (PREF_SELECT_FILE): New definition.
  12224. (PREF_FOLLOW_METALINK): New definition.
  12225. * src/MetalinkResource.h
  12226. (TYPE_HTTPS): Added to enum TYPE.
  12227. * src/TorrentMan.cc
  12228. (~TorrentMan): Rewritten.
  12229. * src/MultiDiskWriter.cc
  12230. (MultiDiskAdaptor): Updated according to the changes in
  12231. MessageDigestContext.
  12232. (~MultiDiskAdaptor): Updated according to the changes in
  12233. MessageDigestContext.
  12234. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12235. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12236. * src/Util.h
  12237. (fileChecksum): Updated according to the changes in
  12238. MessageDigestContext.
  12239. * src/Util.cc
  12240. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12241. (fileChecksum): Updated according to the changes in
  12242. MessageDigestContext.
  12243. * src/messageDigest.h: Rewritten.
  12244. * src/MetalinkEntry.cc
  12245. (check): Removed.
  12246. (Supported): Updated.
  12247. (dropUnsupportedResource): Fixed a memory leak.
  12248. * src/ShaVisitor.cc
  12249. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12250. (~ShaVisitor): Updated according to the changes in
  12251. MessageDigestContext.
  12252. (visit): Updated according to the changes in MessageDigestContext.
  12253. * src/main.cc
  12254. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12255. command-line option added.
  12256. * src/DownloadEngine.h
  12257. (SocketEntry): New class.
  12258. (SocketEntries): New definition.
  12259. (PairFind): Removed.
  12260. (SockCmdMap): Removed.
  12261. * src/DownloadEngine.cc
  12262. (DownloadEngine): Rewritten.
  12263. (~DownloadEngine): Rewritten.
  12264. (run): Renamed activeCommandUuids as activeUuids.
  12265. (SetDescriptor): Rewritten.
  12266. (AccumulateActiveCommandUuid): Removed.
  12267. (AccumulateActiveUuid): New function object.
  12268. (waitData): Rewritten.
  12269. (updateFdSet): Rewritten.
  12270. (addSocket): Rewritten.
  12271. (deleteSocket): Rewritten.
  12272. (addSocketForReadCheck): Rewritten.
  12273. (deleteSocketForReadCheck): Rewritten.
  12274. (addSocketForWriteCheck): Rewritten.
  12275. (deleteSocketForWriteCheck): Rewritten.
  12276. * src/Xml2MetalinkProcessor.cc
  12277. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12278. * src/DownloadCommand.cc
  12279. (executeInternal): Added the check routine for lowest speed limit.
  12280. * src/AbstractDiskWriter.cc
  12281. (AbstractDiskWriter): Updated according to the changes in
  12282. MessageDigestContext.
  12283. (~AbstractDiskWriter): Updated according to the changes in
  12284. MessageDigestContext.
  12285. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12286. * src/RequestInfo.h: New class.
  12287. * src/UrlRequestInfo.h: New class.
  12288. * src/UrlRequestInfo.cc: New class.
  12289. * src/TorrentRequestInfo.h: New class.
  12290. * src/TorrentRequestInfo.cc: New class.
  12291. * src/MetalinkRequestInfo.h: New class.
  12292. * src/MetalinkRequestInfo.cc: New class.
  12293. * src/Checksum.h: New class.
  12294. * src/DownloadEngineFactory.h: New class.
  12295. * src/DownloadEngineFactory.cc: New class.
  12296. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12297. * src/Option.h
  12298. (getAsBool): New function.
  12299. * src/Option.cc
  12300. (prefs.h): Included.
  12301. (defined): 0-length value is now recognized as undefined.
  12302. (getAsInt): Rewritten.
  12303. (getAsLLInt): Rewritten.
  12304. (getAsBool): New function.
  12305. * src/FeatureConfig.h: Rewritten.
  12306. * src/FeatureConfig.cc: Rewritten.
  12307. * src/prefs.h
  12308. (PREF_STDOUT_LOG): New definition.
  12309. (PREF_LOG): New definition.
  12310. (PREF_DIR): New definition.
  12311. (PREF_OUT): New definition.
  12312. (PREF_SPLIT): New definition.
  12313. (PREF_DAEMON): New definition.
  12314. (PREF_REFERER): New definition.
  12315. (PREF_TORRENT_FILE): New definition.
  12316. (PREF_LISTEN_PORT): New definition.
  12317. (PREF_METALINK_FILE): New definition.
  12318. (PREF_METALINK_VERSION): New definition.
  12319. (PREF_METALINK_LANGUAGE): New definition.
  12320. (PREF_METALINK_OS): New definition.
  12321. (PREF_METALINK_SERVERS): New definition.
  12322. * src/main.cc
  12323. (main): Following command-line parameters are now put into Option
  12324. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12325. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12326. metalinkLanguage, metalinkOs, metalinkServers
  12327. To fix the bug that aria2 can not handle http response header properly.
  12328. * src/HttpHeader.cc
  12329. (put): Made name lowercased.
  12330. (defined): Made name lowercased.
  12331. (getFirst): Made name lowercased.
  12332. (get): Made name lowercased.
  12333. (getFirstAsInt): Rewritten.
  12334. (getFirstAsLLInt): Rewritten.
  12335. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12336. * src/TorrentMan.h:
  12337. (advertisePiece): Updated doc.
  12338. (getAdvertisedPieceIndexes): Updated doc.
  12339. (removeAdvertisedPiece); New function.
  12340. * src/TorrentMan.cc
  12341. (FindElapsedHave): New function object.
  12342. (removeAdvertisedPiece): New function.
  12343. * src/HaveEraseCommand.h: New class.
  12344. * src/HaveEraseCommand.cc: New class.
  12345. * src/FeatureConfig.h: New class.
  12346. * src/FeatureConfig.cc: New class.
  12347. * src/Request.h
  12348. (defaultPorts): Removed.
  12349. * src/Request.cc
  12350. (FeatureConfig.h): Included.
  12351. (Request): Removed the statements related to defaultPorts.
  12352. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12353. A default port number is now retrieved from FeatureConfig.
  12354. * src/main.cc
  12355. (HaveEraseCommand.h): Included.
  12356. (showVersion): Added the output of feature list.
  12357. (main): Added HaveEraseCommand to command queue in BitTorrent
  12358. downloading.
  12359. * src/PeerInteractionCommand.h
  12360. (chokeCheckPoint): Commented out.
  12361. (periodicExecPoint): New variable.
  12362. * src/PeerInteractionCommand.cc
  12363. (executeInternal): Following methods are now called in at least every
  12364. 0.5 seconds to reduce CPU usage:
  12365. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12366. checkHave(), sendKeepAlive().
  12367. (checkLongTimePeerChoking): Commented out.
  12368. * src/BitfieldMan.h
  12369. (getNthBitIndex): Changed the method signature.
  12370. (getMissingIndexRandomly): Changed the method signature.
  12371. * src/BitfieldMan.cc
  12372. (getNthBitIndex): Rewritten
  12373. (getMissingIndexRandomly): Rewritten.
  12374. (hasMissingPiece): Rewritten.
  12375. (getMissingIndex): Refactored.
  12376. (getMissingUnusedIndex); Refactored.
  12377. (getMissingIndex): Refactored.
  12378. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12379. * src/PeerMessage.h
  12380. (Piece.h): Included.
  12381. (SharedHandle.h): Included.
  12382. (invalidate): New variable.
  12383. (uploading): New variable.
  12384. (isInvalidate): New function.
  12385. (isUploading): New function.
  12386. (onPush): New function.
  12387. (onChoked): New function.
  12388. (onCanceled): New function.
  12389. (onAbortPiece): New function.
  12390. (PeerMessageHandle): New type definition.
  12391. * src/PeerMessage.cc
  12392. (PeerMessage): Added the initialization for invalidate and uploading.
  12393. * src/CancelMessage.h
  12394. (CancelMessage): Rewritten.
  12395. * src/RejectMessage.h
  12396. (RejectMessage): Rewritten.
  12397. * src/Metalinker.h
  12398. (operator=): Defined.
  12399. * src/MetaEntry.h
  12400. (operator=): Defined.
  12401. * src/MetalinkResource.h
  12402. (operator=): Defined.
  12403. * src/AllowedFastMessage.h
  12404. (AllowedFastMessage): Rewritten.
  12405. * src/HandshakeMessage.h
  12406. (HandshakeMessage): New function(overload).
  12407. * src/HandshakeMessage.cc
  12408. (HandshakeMessage): Rewritten.
  12409. (init): New function.
  12410. * src/HaveMessage.h
  12411. (HaveMessage): Rewritten.
  12412. * src/Time.h
  12413. (operator=): Defined the function body here.
  12414. * src/Time.cc
  12415. (operator=): Removed.
  12416. * src/SocketCore.h
  12417. (operator==): Defined here.
  12418. (operator!=): Defined here.
  12419. (operator<): Defined here.
  12420. * src/SocketCore.cc
  12421. (operator==): Removed.
  12422. (operator<): Removed.
  12423. * src/BitfieldMan.h
  12424. (operator=): Defined the function body here.
  12425. * src/BitfieldMan.cc
  12426. (operator=): Removed.
  12427. * src/TorrentMan.h
  12428. (deleteErrorPeer): Removed.
  12429. (deleteUnusedPeer); New function.
  12430. * src/TorrentMan.cc
  12431. (addPeer): Call deleteUnusedPeer.
  12432. (deleteErrorPeer): Removed.
  12433. (deleteUnusedPeer): New function.
  12434. * src/PeerAbstractCommand.h
  12435. (setNoCheck): New function.
  12436. (noCheck): New variable.
  12437. * src/PeerAbstractCommand.cc
  12438. (PeerAbstractCommand): Added the initialization of noCheck.
  12439. (execute): Added a check for noCheck.
  12440. (setNoCheck): New function.
  12441. * src/Util.h
  12442. (stdio.h): Included.
  12443. * src/Util.cc
  12444. (unistd.h): Included.
  12445. * src/DefaultDiskWriter.cc
  12446. (unistd.h): Included.
  12447. * src/Peer.h
  12448. (operator==): Defined the function body here.
  12449. (operator!=): Defined the function body here.
  12450. * src/Peer.cc
  12451. (operator==): Removed.
  12452. (operator!=): Removed.
  12453. * src/Piece.h
  12454. (Piece): Defined the function body here(copy constructor).
  12455. (operator=): Defined the function body here.
  12456. (operator==): Defined the function body here.
  12457. * src/Piece.cc
  12458. (Piece): Removed(copy constructor).
  12459. (operator=): Removed.
  12460. (operator==): Removed.
  12461. * src/PeerMessageUtil.h
  12462. (ChokeMessage.h): Removed.
  12463. (UnchokeMessage.h): Removed.
  12464. (InterestedMessage.h): Removed.
  12465. (NotInterestedMessage.h): Removed.
  12466. (HaveMessage.h): Removed.
  12467. (BitfieldMessage.h): Removed.
  12468. (RequestMessage.h): Removed.
  12469. (CancelMessage.h): Removed.
  12470. (PieceMessage.h): Removed.
  12471. (HandshakeMessage.h): Removed.
  12472. (KeepAliveMessage.h): Removed.
  12473. (PortMessage.h): Removed.
  12474. (HaveAllMessage.h): Removed.
  12475. (HaveNoneMessage.h): Removed.
  12476. (PeerConnection.h): Removed.
  12477. (HandshakeMessage.h): Included.
  12478. * src/BitfieldMessage.h
  12479. (init): New function.
  12480. (BitfieldMessage): Rewritten.
  12481. (BitfieldMessage): New function(overload).
  12482. * src/RequestSlot.h
  12483. (operator=): Defined the function body here.
  12484. (operator==): Defined the function body here.
  12485. * src/RequestSlot.cc
  12486. (operator=): Removed.
  12487. (operator==): Removed.
  12488. To remove the dependency on the PeerMessage subclass from
  12489. PeerInteraction:
  12490. * src/PeerMessageFactory.h: New class.
  12491. * src/PeerMessageFactory.cc: New class.
  12492. * src/SimplePeerMessage.cc
  12493. (send): If invalidate is true then do nothing.
  12494. * src/PeerInteractionCommand.cc
  12495. (HandshakeMessage.h): Included.
  12496. (KeepAliveMessage.h): Included.
  12497. (ChokeMessage.h): Included.
  12498. (UnchokeMessage.h): Included.
  12499. (HaveMessage.h): Included.
  12500. (executeInternal): Call setNoCheck().
  12501. Removed setWriteCheckSocket(socket).
  12502. * src/PeerInteraction.h
  12503. (ChokeMessage.h): Removed.
  12504. (UnchokeMessage.h): Removed.
  12505. (InterestedMessage.h): Removed.
  12506. (NotInterestedMessage.h): Removed.
  12507. (HaveMessage.h): Removed.
  12508. (BitfieldMessage.h): Removed.
  12509. (RequestMessage.h): Removed.
  12510. (CancelMessage.h): Removed.
  12511. (PieceMessage.h): Removed.
  12512. (HandshakeMessage.h): Removed.
  12513. (KeepAliveMessage.h): Removed.
  12514. (PortMessage.h): Removed.
  12515. (HaveAllMessage.h): Removed.
  12516. (HaveNoneMessage.h): Removed.
  12517. (RejectMessage.h): Removed.
  12518. (AllowedFastMessage.h): Removed.
  12519. (SuggestPieceMessage.h): Removed.
  12520. (PeerMessageFactory.h): Included.
  12521. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12522. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12523. (PeerMessageFactory): New variable.
  12524. (createPeerMessage): Removed.
  12525. (createHandshakeMessage): Removed.
  12526. (setPeerMessageCommonProperty): Removed.
  12527. (addRequestSlot): New function.
  12528. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12529. (getPeerMessageFactory): New function.
  12530. (createRequestMessage): Removed.
  12531. (createCancelMessage): Removed.
  12532. (createPieceMessage): Removed.
  12533. (createHaveMessage): Removed.
  12534. (createChokeMessage): Removed.
  12535. (createUnchokeMessage): Removed.
  12536. (createInterestedMessage): Removed.
  12537. (createNotInterestedMessage): Removed.
  12538. (createBitfieldMessage): Removed.
  12539. (createKeepAliveMessage): Removed.
  12540. (createHaveAllMessage): Removed.
  12541. (createHaveNoneMessage): Removed.
  12542. (createRejectMessage): Removed.
  12543. (createAllowedFastMessage): Removed.
  12544. * src/PeerInteraction.cc
  12545. (PeerInteraction): Allocate PeerMessageFactory here.
  12546. (~PeerInteraction): Deallocate PeerMessageFactory here.
  12547. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  12548. PieceMessage::ID.
  12549. (addMessage): Simplified by using PeerMessage::onPush().
  12550. (addRequestSlot): New function.
  12551. (rejectAllPieceMessageInQueue): Simplified by using
  12552. PeerMessage::onChoked().
  12553. (rejectPieceMessageInQueue): Simplified by using
  12554. PeerMessage::onCanceled().
  12555. (abortPiece): Simplified by using PeerMessage::abortPiece().
  12556. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12557. (createHandshakeMessage): Removed.
  12558. (createPeerMessage): Removed.
  12559. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  12560. (setPeerMessageCommonProperty): Removed.
  12561. (createRequestMessage): Removed.
  12562. (createCancelMessage): Removed.
  12563. (createPieceMessage): Removed.
  12564. (createHaveMessage): Removed.
  12565. (createChokeMessage): Removed.
  12566. (createUnchokeMessage): Removed.
  12567. (createInterestedMessage): Removed.
  12568. (createNotInterestedMessage): Removed.
  12569. (createBitfieldMessage): Removed.
  12570. (createKeepAliveMessage): Removed.
  12571. (createHaveAllMessage): Removed.
  12572. (createHaveNoneMessage): Removed.
  12573. (createRejectMessage): Removed.
  12574. (createAllowedFastMessage): Removed.
  12575. * src/PieceMessage.h
  12576. (createRejectMessage): New function.
  12577. (PieceMessage): Rewritten.
  12578. (onChoked): New function.
  12579. (onCanceled): New function.
  12580. * src/PieceMessage.cc
  12581. (send): If invalidate is true then do nothing, just return.
  12582. (createRejectMessage): New function.
  12583. (onChoked): New function.
  12584. (onCanceled): New function.
  12585. * src/RequestMessage.h
  12586. (RequestMessage): Rewritten.
  12587. (onPush): New function.
  12588. (onAbortPiece): New function.
  12589. * src/RequestMessage.cc
  12590. (onPush): New function.
  12591. (onAbortPiece): New function.
  12592. Update fd_set when a socket is added or deleted in order to improve
  12593. performance:
  12594. * src/DownloadEngine.h
  12595. (rfdset): New variable.
  12596. (wfdset): New variable.
  12597. (updateFdSet): New function.
  12598. * src/DownloadEngine.cc
  12599. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  12600. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  12601. (waitData): Copy rfdset and wfdset.
  12602. (updateFdSet): New function.
  12603. (addSocket): Call updateFdSet.
  12604. (deleteSocket): Call updateFdSet.
  12605. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12606. To add the support for Metalink3.0 backward compatible links:
  12607. * src/Request.h
  12608. (SAFE_CHARS): Added '#'.
  12609. (METALINK_MARK): New definition.
  12610. * src/Request.cc
  12611. (parseUrl): Added the support for Metalink3.0 backward compatible
  12612. links.
  12613. etc
  12614. * src/PeerInteraction.cc
  12615. (MsgPushBack): Removed.
  12616. (sendMessages): Use STL copy and back_inserter.
  12617. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  12618. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  12619. * src/TorrentMan.h
  12620. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  12621. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12622. * src/SharedHandle.h: New class.
  12623. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  12624. * src/HttpResponseCommand.h
  12625. (HttpResponseCommand): Wrapped Socket.
  12626. * src/SocketCore.h
  12627. (operator==): New function.
  12628. (operator!=): New function.
  12629. (operator<): New function.
  12630. (getSockfd): New function.
  12631. (isOpen): New function.
  12632. (writeData): New function.
  12633. * src/SocketCore.cc
  12634. (operator==): New function.
  12635. (operator!=): New function.
  12636. (operator<): New function.
  12637. * src/AbstractCommand.h
  12638. (socket): Changed its type to SocketHandle.
  12639. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12640. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12641. (disableReadCheckSocket): New function.
  12642. (disableWriteCheckSocket): New function.
  12643. (readCheckTarget): Changed its type to SocketHandle.
  12644. (writeCheckTarget): Changed its type to SocketHandle.
  12645. (AbstractCommand): Replaced Socket with SocketHandle.
  12646. * src/AbstractCommand.cc
  12647. (AbstractCommand): Replaced Socket with SocketHandle.
  12648. (~AbstractCommand): Removed the deallocation for Socket object.
  12649. (disableReadCheckSocket): New function.
  12650. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12651. (disableWriteCheckSocket): New function.
  12652. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12653. * src/HttpDownloadCommand.cc
  12654. (DownloadCommand): Replaced Socket with SocketHandle.
  12655. * src/PeerAbstractCommand.h
  12656. (socket): Changed its type to SocketHandle.
  12657. (peer): Changed its type to PeerHandle.
  12658. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12659. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12660. (disableReadCheckSocket): New function.
  12661. (disableWriteCheckSocket): New function.
  12662. (readCheckTarget): Changed its type to SocketHandle.
  12663. (writeCheckTarget): Changed its type to SocketHandle.
  12664. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12665. Replaced Peer with PeerHandle.
  12666. * src/HttpRequestCommand.cc
  12667. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12668. Use disableReadCheckSocket.
  12669. * src/PeerInitiateConnectionCommand.h
  12670. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12671. * src/PeerChokeCommand.cc
  12672. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  12673. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  12674. (execute): Use PeerHandle.
  12675. * src/PeerConnection.h
  12676. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  12677. (socket): Changed its type to SocketHandle.
  12678. (PeerConnection): Replaced Socket with SocketHandle.
  12679. * src/PeerConnection.cc
  12680. (PeerConnection): Replaced Socket with SocketHandle.
  12681. * src/PeerInteractionCommand.h
  12682. (PeerInteractionCommand): Replaced socket with SocketHandle.
  12683. Replaced Peer with PeerHandle.
  12684. * src/PeerInteractionCommand.cc
  12685. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  12686. Replaced Peer with PeerHandle.
  12687. (executeInternal): Use disableWriteCheckSocket.
  12688. Use HandshakeMessageHandle.
  12689. (receiveMessages): Use PeerMessageHandle.
  12690. (prepareForNextPeer): Use PeerHandle.
  12691. * src/HttpProxyRequestCommand.h
  12692. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12693. * src/HttpResponseCommand.cc
  12694. (HttpResponseCommand): Replaced Socket with SocketHandle.
  12695. * src/TorrentMan.cc
  12696. (nullPeer): Added external reference.
  12697. (~TorrentMan): Removed the deallocation of the elements of peers.
  12698. (addPeer): Rewritten.
  12699. (isPeerAvailable): Use nullPeer.
  12700. (deleteOldpeers): Replaced with deleteErrorPeer.
  12701. (deleteErrorPeer): New function.
  12702. (getPeer): Use PeerHandle and nullPeer.
  12703. (hasMissingPiece): Replaced Peer with PeerHandle.
  12704. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12705. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12706. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12707. (getMissingPiece): Replaced Peer with PeerHandle.
  12708. * src/FtpNegotiateCommand.cc
  12709. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  12710. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  12711. (recvGreeting): Use disableWriteCheckSocket.
  12712. (recvPasv): Removed the allocation of Socket.
  12713. Use disableReadCheckSocket.
  12714. (sendRestPasv): Use disableWriteCheckSocket.
  12715. (recvRetr): Changed assertion.
  12716. * src/PeerInteraction.h
  12717. (SharedHandle.h): Included SharedHandle.h.
  12718. (PeerMessageHandle): New type definition.
  12719. (HandshakeMessageHandle): New type definition.
  12720. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  12721. (peer): Changed its type to PeerHandle.
  12722. (createHandshakeMessage): Replaced HandshakeMessage with
  12723. HandshakeMessageHandle.
  12724. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  12725. (PeerInteraction): Replaced Peer with PeerHandle.
  12726. Replaced Socket with SocketHandle.
  12727. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12728. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12729. (receiveHandshake): Replaced HandshakeMessage with
  12730. HandshakeMessageHandle.
  12731. * src/PeerInteraction.cc
  12732. (PeerInteraction): Replaced Peer with PeerHandle.
  12733. Replaced Socket with SocketHandle.
  12734. (~PeerInteraction): Removed the deallocation of the elements of
  12735. messageQueue.
  12736. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  12737. (isSendingMessageInProgress): Replaced PeerMessage with
  12738. PeerMessageHandle.
  12739. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  12740. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12741. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  12742. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  12743. (abortPiece): Use PeerMessageHandle.
  12744. (receiveHandshake): Replaced HandshakeMessage with
  12745. HandshakeMessageHandle. Removed try-catch block.
  12746. (createHandshakeMessage): Replaced HandshakeMessage with
  12747. HandshakeMessageHandle.
  12748. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12749. Removed try-catch block.
  12750. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  12751. * src/HttpProxyResponseCommand.cc
  12752. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12753. * src/FtpTunnelResponseCommand.h
  12754. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12755. * src/HttpConnection.cc
  12756. (HttpConnection): Replaced Socket with SocketHandle.
  12757. * src/PeerAbstractCommand.cc
  12758. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12759. (~PeerAbstractCommand): Removed the deallocation of socket.
  12760. Use disableReadCheckSocket, disableWriteCheckSocket.
  12761. (disableReadCheckSocket): New function.
  12762. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12763. (disableWriteCheckSocket): New function.
  12764. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12765. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  12766. * src/FtpTunnelRequestCommand.cc
  12767. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12768. (~FtpTunnelRequestCommand): Corrected indentation.
  12769. * src/DownloadCommand.h
  12770. (DownloadCommand): Replaced Socket with SocketHandle.
  12771. * src/PeerListenCommand.cc
  12772. (PeerListenCommand): Removed the initialization of socket.
  12773. (~PeerListenCommand): Removed the deallocation of socket.
  12774. (bindPort): Use SocketHandle.
  12775. (execute): Use SocketHandle and PeerHandle.
  12776. * src/FtpDowndloadCommand.cc
  12777. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12778. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  12779. * src/main.cc
  12780. (main): Corrected indentation.
  12781. * src/HttpInitiateConnectionCommand.cc
  12782. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  12783. (executeInternal): Removed the allocation of socket.
  12784. * src/HttpRequestCommand.h
  12785. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12786. * src/FtpNegotiationCommand.h
  12787. (dataSocket): Changed its type to SocketHandle.
  12788. (serverSocket): Changed its type to SocketHandle.
  12789. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  12790. * src/TorrentMan.h
  12791. (MAX_PEER_UPDATE): Removed.
  12792. (MAX_PEERS): New definition.
  12793. (Peers): The element is now of type PeerHandle.
  12794. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  12795. (getPeer): Replaced Peer with PeerHandle.
  12796. (deleteOldErrorPeers): Removed.
  12797. (deleteErrorPeer): New function.
  12798. (hasMissingPiece): Replaced Peer with PeerHandle.
  12799. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12800. (getMissingPiece): Replaced Peer with PeerHandle.
  12801. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12802. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12803. (addActivePeer): Replaced Peer with PeerHandle.
  12804. (deleteActivePeer): Replaced Peer with PeerHandle.
  12805. Added a check for the return value of find.
  12806. * src/FtpTunnelResponseCommand.cc
  12807. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12808. * src/FtpInitiateConnectionCommand.cc
  12809. (executeInternal): Removed the allocation of socket.
  12810. * src/DownloadEngine.h
  12811. (Sockets): An element is now of type SocketHandle.
  12812. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  12813. (CommandUuids): New type definition.
  12814. (rsockets): Changed its type to SockCmdMap.
  12815. (wsockets): Changed its type to SockCmdMap.
  12816. (addSocket): Rewritten.
  12817. (deleteSocket): Rewritten.
  12818. (addSocketForReadCheck): Rewritten.
  12819. (deleteSocketForReadCheck): Rewritten.
  12820. (addSocketForWriteCheck): Rewritten.
  12821. (deleteSocketForWriteCheck): Rewritten.
  12822. (PairFind): New template class.
  12823. * src/HttpDownloadCommand.h
  12824. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  12825. * src/FtpConnection.cc
  12826. (FtpConnection): Replaced Socket with SocketHandle.
  12827. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12828. block.
  12829. * src/InitiateConnectionCommandFactory.cc
  12830. (DlAbortEx.h): Included DlAbortEx.h.
  12831. (createInitiateConnectionCommand): Throw exception if the protocol of
  12832. requested URI is not supported.
  12833. * src/Peer.cc
  12834. (nullPeer): Changed its type to PeerHandle.
  12835. (operator==): New function.
  12836. (operator!=): New function.
  12837. * src/Peer.h
  12838. (SharedHandle.h): Included SharedHandle.h.
  12839. (operator==): New function.
  12840. (operator!=): New function.
  12841. (Peer): Added the default constructor.
  12842. Use resetStatus() to initialize member variables.
  12843. (nullPeer): Removed.
  12844. * src/TrackerUpdateCommand.cc
  12845. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12846. with MIN_PEERS.
  12847. * src/PeerListenCommand.h
  12848. (socket): Changed its type to SocketHandle.
  12849. * src/Command.h
  12850. (CommandUuid): New type definition.
  12851. (uuid): New variable.
  12852. (uuidGen): New variable.
  12853. (Command): Added the initialization of uuid.
  12854. (getUuid): New function.
  12855. * src/Socket.h
  12856. (Socket): Removed.
  12857. (SocketHandle): New type definition.
  12858. * src/DownloadEngine.h
  12859. (FindCommand): New function object.
  12860. (run): The portion of socket check was rewritten.
  12861. (SetDescriptor): New function object.
  12862. (AccumulateActiveCommandUuid): New function object.
  12863. (waitData): Rewritten.
  12864. (addSocket): Rewritten.
  12865. (deleteSocket): Rewritten.
  12866. (addSocketForReadCheck): Rewritten.
  12867. (addSocketForWriteCheck): Rewritten.
  12868. (deleteSocketForReadCheck): Rewritten.
  12869. (deleteSocketForWriteCheck): Rewritten.
  12870. * src/HttpProxyResponseCommand.h
  12871. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12872. * src/HttpConnection.h
  12873. (socket): Changed its type to SocketHandle.
  12874. (HttpConnection): Replaced Socket with SocketHandle.
  12875. * src/PeerInitiateConnectionCommand.cc
  12876. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12877. (executeInternal): Removed the allocation of socket.
  12878. (prepareForNextPeer): Use PeerHandle.
  12879. * src/PeerMessage.h
  12880. (peer): Changed its type to PeerHandle.
  12881. (getPeer): Replaced Peer with PeerHandle.
  12882. (setPeer): Replaced Peer with PeerHandle.
  12883. * src/DownloadCommand.cc
  12884. (DownloadCommand): Replaced Socket with SocketHandle.
  12885. * src/FtpConnection.h
  12886. (socket): Changed its type to SocketHandle.
  12887. (FtpConnection): Replaced Socket with SocketHandle.
  12888. (sendPort); Replaced Socket with SocketHandle.
  12889. * src/FtpDowndloadCommand.h
  12890. (ctrlSocket): Changed its type to SocketHandle.
  12891. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12892. * src/HttpProxyRequestCommand.cc
  12893. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12894. * src/FtpTunnelRequestCommand.h
  12895. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12896. etc
  12897. * src/PeerChokeCommand.h
  12898. (setAllPeerChoked): Removed.
  12899. (setAllPeerResetDelta): Removed.
  12900. * src/PeerChokeCommand.cc
  12901. (setAllPeerChoked): Removed.
  12902. (ChokePeer): New function object.
  12903. (setAllPeerResetDelta): Removed.
  12904. (ResetDelta): New function object.
  12905. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12906. (execute): Show download speed when the local node is a seeder.
  12907. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12908. using STL.
  12909. * src/TrackerWatcherCommand.h
  12910. (MIN_PEERS): Removed.
  12911. * src/TorrentMan.cc
  12912. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12913. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12914. To fix the bug that .aria2 file is not saved if downloading is stopped
  12915. by the errors:it results that aria2 can not resume downloading:
  12916. * src/main.cc
  12917. (normalDownload): Added the call to save().
  12918. (main): Added the deletion of the elements in 'reserved'.
  12919. To fix log:
  12920. * src/PeerInteraction.cc
  12921. (receiveHandshake): Fixed log.
  12922. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12923. To improve download performance in BitTorrent:
  12924. * src/TorrentMan.cc
  12925. (getPeer): Check the number of connections. Return nullPeer if
  12926. it is greater than MAX_PEER_UPDATE.
  12927. This code was originally here, but was removed in 0.5.1.
  12928. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12929. To improve the conditional compilation:
  12930. * src/MultiDiskWriter.h:
  12931. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12932. * src/MultiDiskWriter.cc:
  12933. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12934. * src/Util.h:
  12935. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12936. Added ENABLE_BITTORRENT around computeFastSet().
  12937. * src/Util.cc:
  12938. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12939. Added ENABLE_BITTORRENT around computeFastSet().
  12940. * src/messageDigest.h:
  12941. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12942. * src/ShaVisitor.h:
  12943. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12944. * src/ShaVisitor.cc:
  12945. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12946. * src/main.cc:
  12947. Added ENABLE_BITTORRENT around includes and blocks related to
  12948. BitTorrent.
  12949. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12950. digest support is not available.
  12951. * src/AbstractDiskWriter.h:
  12952. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12953. * src/AbstractDiskWriter.cc:
  12954. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12955. * src/MetalinkEntry.cc
  12956. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12957. support is not available.
  12958. To add command-line options for Metalink:
  12959. * src/main.cc:
  12960. Added metalink-version, metalink-language, metalink-os,
  12961. follow-metalink.
  12962. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12963. * src/main.cc: Use these definition.
  12964. * Release 0.6.0
  12965. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12966. To add Metalink support(http/ftp only):
  12967. * src/AbstractCommand.h
  12968. (tryReserved): New function.
  12969. * src/AbstractCommand.cc
  12970. (execute): Call tryReserved().
  12971. (tryReserved): New function.
  12972. * src/Request.h
  12973. (Requests): New type definition.
  12974. * src/SegmentMan.h
  12975. (reserved): New variable.
  12976. * src/Util.h
  12977. (fileChecksum): New function.
  12978. (toUpper): New function.
  12979. (toLower): New function.
  12980. * src/Util.cc
  12981. (messageDigest.h): Included.
  12982. (trim): Trim \r\n\t.
  12983. (fileChecksum): New function.
  12984. (toUpper): New function.
  12985. (toLower): New function.
  12986. * src/main.cc
  12987. (normalDownload): New function.
  12988. (main): Added 2 command-line options: metalink-file,
  12989. metalink-connection. Their usage has not been written yet.
  12990. * src/MetalinkProcessor.h: New class.
  12991. * src/Xml2MetalinkProcessor.h: New class.
  12992. * src/Xml2MetalinkProcessor.cc: New class.
  12993. * src/MetalinkEntry.h: New class.
  12994. * src/MetalinkEntry.cc: New class.
  12995. * src/MetalinkResource.h: New class.
  12996. * src/MetalinkResource.cc: New class.
  12997. To add md5 message digest checking:
  12998. * src/messageDigest.h: Rewritten.
  12999. * src/MultiDiskWriter.cc: Updated according to the changes in
  13000. messageDigest.h.
  13001. * src/ShaVisitor.cc: Updated according to the changes in
  13002. messageDigest.h.
  13003. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13004. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13005. messageDigest.h.
  13006. To fix a bug that causes segfault when the payload length in peer
  13007. message is less than 0:
  13008. * src/PeerConnection.cc:
  13009. (receiveMessage): Fixed the bug.
  13010. * src/PeerMessageUtil.cc
  13011. (checkLength): Throw an exception if length is less than or equals to
  13012. 0.
  13013. To add new interfaces to Base64 encoding/decoding:
  13014. * src/Base64.h
  13015. (part_encode): Changed the method signature.
  13016. (encode): New function(overload).
  13017. (decode): New function(overload).
  13018. * src/Base64.cc
  13019. (part_encode): Rewritten.
  13020. (encode): Rewritten.
  13021. (encode): New function(overload).
  13022. To prevent a peer to download same piece if there is an error in
  13023. checksum:
  13024. * src/PieceMessage.cc
  13025. (receivedAction): Call peerInteraction->abortPiece().
  13026. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13027. To fix the bug that causes same have message is sent many times to
  13028. a single peer.
  13029. * src/Time.cc
  13030. (isNewer): Use Util::difftv().
  13031. * src/Util.cc
  13032. (difftv): Added a cast to (long long int).
  13033. * src/TorrentMan.cc
  13034. (advertisePiece): Use push_front.
  13035. (getAdvertisedPieceIndexes): A performance improvement was made.
  13036. To fix the bug that sends tracker requests without a sleep interval
  13037. when the number of connections is less than 15.
  13038. * src/TrackerWatcherCommand.cc
  13039. (execute): Now the number of connections is not a factor to decide
  13040. whether or not a tracker request should be sent or not.
  13041. * src/Time.h
  13042. (setTimeInSec): New function.
  13043. * src/Time.cc
  13044. (setTimeInSec): New function.
  13045. etc.
  13046. * src/ChokeMessage.cc
  13047. (receivedAction): Removed peer->snubbing = false
  13048. * src/PeerConnection.h
  13049. (receiveHandshake): Updated doc.
  13050. * src/TorrentMan.h
  13051. (getAdvertisedPieceIndexes): Updated the method signature.
  13052. * src/TorrentMan.cc
  13053. (getAdvertisedPieceIndexes): Updated the method signature.
  13054. * src/Time.h
  13055. (getTimeInMicros): Added a cast to (long long int).
  13056. (getTimeInMillis): Added a cast to (long long int).
  13057. * Release 0.5.2
  13058. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13059. To make a listening socket non-block:
  13060. * src/SocketCore.h
  13061. (setNonBlockingMode): New function.
  13062. * src/SocketCore.cc
  13063. (setNonBlockingMode): New function.
  13064. (beginListen): Added a call to setNonBlockingMode().
  13065. (acceptConnection): Call setNonBlockingMode().
  13066. (setBlockingMode): Updated.
  13067. To handle tracker's NAT-checking:
  13068. * src/PeerConnection.cc
  13069. (receiveHandshake): 'msg' param is filled with received data and
  13070. its length is assigned to 'length' param, even if all handshake
  13071. message is not yet received.
  13072. * src/PeerInteractionCommand.cc
  13073. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13074. a new peer connects to localhost.
  13075. A call to peerInteraction->sendHandshake() was removed because
  13076. it is called from peerInteraction->receiveHandshake(true).
  13077. * src/PeerInteraction.h
  13078. (quickReplied): New variable.
  13079. (receiveHandshake): Added an argument.
  13080. * src/PeerInteraction.cc
  13081. (PeerInteraction): Added the initialization of quickReplied.
  13082. (receiveHandshake): Send handshake message as soon as the info hash
  13083. in a handshake message from a peer is correct.
  13084. To change the random part of peer id and key parameter:
  13085. * src/TorrentMan.h
  13086. (key): New variable.
  13087. * src/TorrentMan.cc
  13088. (setupInternal1): Use Util::randomAlpha() to generate random part
  13089. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13090. key is also generated by Util::randomAlpha() and it is now 8 character
  13091. long.
  13092. * src/Util.h
  13093. (randomAlpha): New function.
  13094. * src/Util.cc
  13095. (randomAlpha): New function.
  13096. * src/TrackerWatcherCommand.cc
  13097. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13098. Added no_peer_id=1.
  13099. Set snubbing flag to false when a choke message is received from a
  13100. snubbed peer.
  13101. * src/ChokeMessage.cc
  13102. (receivedAction): Set snubbing flag to false.
  13103. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13104. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13105. * src/SimpleLogger.h (writeHeader): New function.
  13106. * src/SimpleLogger.cc (writeHeader): New function.
  13107. (writeLog): Fixed the bug that causes segfaults if exception message
  13108. contains an unescaped "%" character.
  13109. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13110. when a tracker request fails.
  13111. * src/Request.cc (parseUrl): Query string is now handled properly.
  13112. * Release 0.5.1
  13113. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13114. To add Time class which represents a specific instant in time and
  13115. its precision is microseconds. Time checking procedures were rewritten
  13116. using this object.
  13117. * src/Time.h: New class.
  13118. * src/Time.cc: New class.
  13119. * src/AbstractCommand.h
  13120. (updateCheckPoint): Removed.
  13121. (isTimeoutDetected): Removed.
  13122. (checkPoint): Changed the type to Time.
  13123. (timeout): New variable.
  13124. (setTimeout): New function.
  13125. * src/AbstractCommand.cc
  13126. (AbstractCommand): Removed the initialization of checkPoint.
  13127. Added the initialization of timeout.
  13128. (updateCheckPoint): Removed.
  13129. (isTimeoutDetected): Removed.
  13130. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13131. * src/PeerChokeCommand.h
  13132. (checkPoint): Changed the type to Time.
  13133. * src/PeerChokeCommand.cc
  13134. (PeerChokeCommand): Removed the initialization of checkPoint.
  13135. (execute): Rewritten using Time object.
  13136. * src/TrackerWatcherCommand.h
  13137. (checkPoint): Changed the type to Time.
  13138. * src/TrackerWatcherCommand.cc
  13139. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13140. (execute): Rewritten.
  13141. * src/ConsoleDownloadEngine.h
  13142. (cp): Changed the type to Time.
  13143. (startup): Changed the type to Time.
  13144. * src/ConsoleDownloadEngine.cc
  13145. (initStatistics): Use cp.reset(), startup.reset().
  13146. (calculateStatistics): Rewritten using Time object.
  13147. * src/PeerAbstractCommand.h
  13148. (updateCheckPoint): Removed.
  13149. (isTimeoutDetected): Removed.
  13150. (checkPoint): Changed the type to Time.
  13151. * src/PeerAbstractCommand.cc
  13152. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13153. (updateCheckPoint): Removed.
  13154. (isTimeoutDetected): Removed.
  13155. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13156. * src/PeerInteractionCommand.cc
  13157. (PeerInteractionCommand): Removed the initializations of struct
  13158. timeval variables.
  13159. * src/PeerInteractionCommand.h
  13160. (keepAliveCheckPoint): Changed the type to Time.
  13161. (chokeCheckPoint): Changed the type to Time.
  13162. (freqCheckPoint): Changed the type to Time.
  13163. (haveCheckTime): Changed the type to Time.
  13164. * src/PeerInteractionCommand.cc
  13165. (executeInternal): Rewritten using Time object.
  13166. (detectMessageFlooding): Rewritten using Time object.
  13167. (checkLongTimePeerChoking): Rewritten using Time object.
  13168. (sendKeepAlive): Rewritten using Time object.
  13169. (checkHave): Rewritten using Time object.
  13170. * src/SleepCommand.h
  13171. (checkPoint): Changed the type to Time.
  13172. * src/SleepCommand.cc
  13173. (SleepCommand): Removed the initialization of checkPoint.
  13174. (execute): Rewritten using Time object.
  13175. * src/TorrentAutoSaveCommand.h
  13176. (checkPoint): Changed the type to Time.
  13177. * src/TorrentAutoSaveCommand.cc
  13178. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13179. (execute): Rewritten.
  13180. * src/DownloadCommand.h
  13181. (sw): Changed the type to Time.
  13182. * src/DownloadCommand.cc
  13183. (DownloadCommand): Removed the initialization of sw.
  13184. (executeInternal): Rewritten.
  13185. * src/RequestSlot.h
  13186. (dispatchedTime): Changed the type to Time.
  13187. * src/RequestSlot.cc
  13188. (RequestSlot): Removed the call to setDispatchedTime().
  13189. (setDispatchedTime): Rewirtten.
  13190. (isTimeout): Rewritten.
  13191. (getLatencyInMillis): Rewritten.
  13192. * src/TorrentDownloadEngine.h
  13193. (cp): Changed the type to Time[2].
  13194. (startup): Changed the type to Time.
  13195. * src/TorrentDownloadEngine.cc
  13196. (initStatistics): Rewritten.
  13197. (calculateStatistics): Rewritten.
  13198. * src/DownloadEngine.cc
  13199. (run): Rewritten.
  13200. To detect all attempts to connect to the tracker are failed:
  13201. * src/AbstractCommand.cc
  13202. (execute): Increment e->segmentMan->errors if a command aborted.
  13203. * src/SegmentMan.h
  13204. (errors): New variable.
  13205. * src/SegmentMan.cc
  13206. (SegmentMan): Added the initialization of errors.
  13207. (init): Added the initialization of errors.
  13208. * src/TrackerWatcherCommand.cc
  13209. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13210. request was failed.
  13211. To handle snubbed peers:
  13212. * src/PeerChokeCommand.cc
  13213. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13214. (execute): Snubbed peers don't get unchoked.
  13215. * src/PeerInteraction.h
  13216. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13217. * src/PeerInteraction.cc
  13218. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13219. back the requested 16k block in 60 seconds.
  13220. * src/PieceMessage.cc
  13221. (receivedAction): A peer's snubbed state is cleard if it sends
  13222. the requested 16k block in 60 seconds.
  13223. * src/Peer.h
  13224. (snubbing): New variable.
  13225. * src/Peer.cc
  13226. (resetStatus): Added snubbed = false.
  13227. To fix the bug that causes have message is not sent:
  13228. * src/PeerInteractionCommand.cc
  13229. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13230. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13231. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13232. * src/TorrentMan.h
  13233. (HaveEntry): New class.
  13234. (advertisePiece): Rewritten.
  13235. (getAdvertisedPieceIndexes): Rewritten.
  13236. (Haves): Changed the type.
  13237. (getAdvertisedPieceIndexes): Added an argument.
  13238. Others:
  13239. * src/TorrentMan.h
  13240. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13241. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13242. * src/TorrentMan.cc
  13243. (getPeer): Don't check the number of connections here.
  13244. (setupInternal1): Changed peerId.
  13245. * src/PeerInteractionCommand.h
  13246. (KEEP_ALIVE_INTERVAL): New definition.
  13247. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13248. * src/main.cc
  13249. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13250. * src/DownloadEngine.h: Removed unnecessary header includes.
  13251. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13252. To fix the bug that causes segfaults if a tracker returns a zero-length
  13253. list as "peers":
  13254. * src/TrackerUpdateCommand.cc
  13255. (execute): Added a check to see wether the type of peers is Data*.
  13256. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13257. * Release 0.5.0
  13258. To fix compile issue with gcc3:
  13259. * src/CancelMessage.h
  13260. (ID): Renamed as ID_t
  13261. (ID_t): New enum.
  13262. * src/RejectMessage.h
  13263. (ID): Renamed as ID_t
  13264. (ID_t): New enum.
  13265. * src/SuggestPieceMessage.h
  13266. (ID): Renamed as ID_t
  13267. (ID_t): New enum.
  13268. * src/AllowedFastMessage.h
  13269. (ID): Renamed as ID_t
  13270. (ID_t): New enum.
  13271. * src/PortMessage.h
  13272. (ID): Renamed as ID_t
  13273. (ID_t): New enum.
  13274. * src/HaveNoneMessage.h
  13275. (ID): Renamed as ID_t
  13276. (ID_t): New enum.
  13277. * src/KeepAliveMessage.h
  13278. (ID): Renamed as ID_t
  13279. (ID_t): New enum.
  13280. * src/HaveAllMessage.h
  13281. (ID): Renamed as ID_t
  13282. (ID_t): New enum.
  13283. * src/UnchokeMessage.h
  13284. (ID): Renamed as ID_t
  13285. (ID_t): New enum.
  13286. * src/BitfieldMessage.h
  13287. (ID): Renamed as ID_t
  13288. (ID_t): New enum.
  13289. * src/PieceMessage.h
  13290. (ID): Renamed as ID_t
  13291. (ID_t): New enum.
  13292. * src/RequestMessage.h
  13293. (ID): Renamed as ID_t
  13294. (ID_t): New enum.
  13295. * src/NotInterestedMessage.h
  13296. (ID): Renamed as ID_t
  13297. (ID_t): New enum.
  13298. * src/ChokeMessage.h
  13299. (ID): Renamed as ID_t
  13300. (ID_t): New enum.
  13301. * src/InterestedMessage.h
  13302. (ID): Renamed as ID_t
  13303. (ID_t): New enum.
  13304. * src/HaveMessage.h
  13305. (ID): Renamed as ID_t
  13306. (ID_t): New enum.
  13307. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13308. * src/PeerAbstractCommand.h
  13309. (beforeSocketCheck): Removed.
  13310. * src/PeerAbstractCommand.cc
  13311. Modified in order to call executeInternal() even if socket check
  13312. and upload limit check fail.
  13313. * src/PeerInteractionCommand.h
  13314. (keepAlive): Removed.
  13315. (sendKeepAlive): New function.
  13316. (checkHave): New function.
  13317. (beforeSocketCheck): Removed.
  13318. * src/PeerInteractionCommand.cc
  13319. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13320. calls to checkHave() and sendKeepAlive().
  13321. (keepAlive): Renamed to sendKeepAlive().
  13322. (sendKeepAlive): New function.
  13323. (beforeSocketCheck): Removed.
  13324. (checkHave): New function.
  13325. * src/BitfieldMan.cc
  13326. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13327. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13328. 0.
  13329. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13330. * src/TorrentMan.h
  13331. (UsedPieces): Removed.
  13332. (Pieces): New type definition.
  13333. * src/Piece.h: Updated doc.
  13334. * src/Peer.h
  13335. (totalLength): Removed.
  13336. * src/Peer.cc
  13337. (updateLatency): Fixed the latency calculation.
  13338. * src/TorrentMan.cc
  13339. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13340. than or equal to MAX_PEER_LIST_SIZE.
  13341. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13342. then return false.
  13343. (deleteOldErrorPeers): Rewritten.
  13344. (deleteUsedPiece): Fixed the miss use of STL remove.
  13345. * src/PeerInteraction.h
  13346. (Pieces): Removed.
  13347. (deleteTimeoutRequestSlot): Removed.
  13348. (deleteCompletedRequestSlot): Removed.
  13349. (checkRequestSlot): New function.
  13350. * src/PeerInteraction.cc
  13351. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13352. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13353. (checkRequestSlot): New function.
  13354. * src/DownloadEngine.cc
  13355. (run): Clear activeSockets before calling waitData().
  13356. (waitData): Removed a call to activeSockets.clear().
  13357. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13358. To attempt to handle EINTR:
  13359. * src/SocketCore.cc
  13360. (isReadable): Added EINTR handling.
  13361. (isWritable): Added EINTR handling.
  13362. To improve the performance:
  13363. * src/AbstractCommand.cc
  13364. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13365. * src/PeerInteractionCommand.h
  13366. (receiveMessage): Renamed as receiveMessages().
  13367. (receiveMessages): New function.
  13368. * src/PeerInteractionCommand.cc
  13369. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13370. () function. detectMessageFlooding() is moved here.
  13371. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13372. (). The flooding detection for have message is comment out.
  13373. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13374. Util::difftv().
  13375. (receiveMessage): Renamed as receiveMessages().
  13376. (receiveMessages): New function.
  13377. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13378. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13379. * src/SleepCommand.cc
  13380. (execute): Use Util::difftvsec() instead of Util::difftv().
  13381. * src/BitfieldMan.h
  13382. (getNthBitIndex): New function.
  13383. (hasMissingPiece): New function.
  13384. (getAllMissingIndexes): New function.
  13385. * src/BitfieldMan.cc
  13386. (countSetBit): Rewritten.
  13387. (getNthBitIndex): New function.
  13388. (getMissingIndexRandomly): Rewritten.
  13389. (hasMissingPiece): New function.
  13390. (getAllMissingIndexes): New function.
  13391. * src/TorrentMan.cc
  13392. (hasMissingPiece): New function.
  13393. (deleteUsedPiece): Rewritten using STL.
  13394. * src/PeerInteraction.cc
  13395. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13396. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13397. (addRequests): Updated the number of pending requests.
  13398. * src/PeerAbstractCommand.cc
  13399. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13400. (execute): Returns true if TorrentMan::isHalt() is true.
  13401. Corrected the condition of upload limit checking.
  13402. * src/Util.h
  13403. (countBit): New function.
  13404. * src/Util.cc
  13405. (nbits): New variable.
  13406. (countBit): New function.
  13407. * src/DownloadEngine.h
  13408. (SockCmdMap): New type definition.
  13409. (waitData): Added an argument.
  13410. (addSocket): Added an argument.
  13411. (addSocketForReadCheck): Added an argument.
  13412. (addSocketForWriteCheck): Added an argument.
  13413. * src/DownloadEngine.cc
  13414. (run): Executes only commands whose sockets are ready to read or write.
  13415. All commands are executed in every 1 second.
  13416. (waitData): Calls select() again if it returned
  13417. EINTR.
  13418. (addSocket): Saves socket and command object pair to the map.
  13419. (deleteSocket): Deletes socket and command object pair from the map.
  13420. (addSocketForReadCheck): Added an argument.
  13421. (addSocketForWriteCheck): Added an argument.
  13422. * src/DownloadCommand.cc
  13423. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13424. To send "event=stopped" to the tracker when the application finishes:
  13425. * src/PeerChokeCommand.h
  13426. (checkPoint): New variable.
  13427. * src/PeerChokeCommand.cc
  13428. (PeerChokeCommand): Added the initialization of checkPoint.
  13429. (execute): The interval check is now done by checkPoint, not
  13430. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13431. * src/TorrentMan.h
  13432. (halt): New function.
  13433. (hasMissingPiece): New function.
  13434. (isHalt): New function.
  13435. (setHalt): New function.
  13436. * src/TorrentMan.cc
  13437. (TorrentMan): Added the initialization of halt.
  13438. * src/TorrentAutoSaveCommand.h
  13439. (checkPoint): New variable.
  13440. * src/PeerListenCommand.cc
  13441. (execute): Returns true if TorrentMan::isHalt() is true.
  13442. * src/main.cc
  13443. (setSignalHander): Added flags argument.
  13444. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13445. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13446. Removed printDownloadAbortMessage() after torrent downloading loop.
  13447. * src/TorrentAutoSaveCommand.cc
  13448. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13449. (execute): Returns true if TorrentMan::isHalt() is true.
  13450. The interval check is now done by checkPoint, not SleepCommand.
  13451. * src/TrackerWatcherCommand.cc
  13452. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13453. event=stopped.
  13454. * src/TrackerUpdateCommand.cc
  13455. (prepareForRetry): Do not use SleepCommand here.
  13456. (execute): Returns true if TorrentMan::isHalt() is true.
  13457. Others:
  13458. * src/TorrentMan.cc
  13459. (getMissingPieceIndex): Updated log message.
  13460. * src/PeerInteraction.cc
  13461. (createPeerMessag): Updated log message.
  13462. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13463. To add the ability to download several pieces in mix in a command and
  13464. increase the number of request slots according to request-cancel
  13465. latency:
  13466. * src/PeerInteractionCommand.cc
  13467. (executeInternal): The number of messages to be received at a time
  13468. is increased from 10 to 50.
  13469. * src/LogFactory
  13470. (getInstance): Added NullLogger.
  13471. * src/NullLogger.h: New class.
  13472. * src/BitfieldMan.h
  13473. (getMissingIndex): New function.
  13474. * src/BitfieldMan.cc
  13475. (getMissingIndex): New function.
  13476. * src/TorrentMan.h
  13477. (checkOutPiece): New function.
  13478. (getMissingPieceIndex): New function.
  13479. (getMissingFastPieceIndex): New function.
  13480. (getMissingFastPiece): New function.
  13481. * src/TorrentMan.cc
  13482. (updatePiece): Rewritten using STL.
  13483. (syncPiece): Rewritten using STL.
  13484. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13485. checkOutPiece().
  13486. (getMissingPieceIndex): New function.
  13487. (getMissingFastPieceIndex): New function.
  13488. (getMissingFastPiece): New function.
  13489. (checkOutPiece): New function.
  13490. * src/PeerInteraction.h
  13491. (Pieces): New type definition.
  13492. (piece): Removed.
  13493. (pieces): New variable.
  13494. (getNewPieceAndSendInterest): Added the "piece" argument.
  13495. (abortPiece): Added the "piece" argument.
  13496. (abortAllPieces): New function.
  13497. (isInRequestSlot): New function.
  13498. (hasDownloadPiece): Added the "index" argument.
  13499. (setDownloadPiece): Removed.
  13500. (getDownloadPiece): Added the "index" argument.
  13501. (updatePiece): New function.
  13502. (createRequestMessage): Added the "index" argument.
  13503. * src/PeerInteraction.cc
  13504. (onChoked): Rewritten.
  13505. (abortPiece): Rewirtten.
  13506. (abortAllPieces): New function.
  13507. (deleteTimeoutRequestSlot): Rewritten.
  13508. Clarified code a little bit.
  13509. (deleteCompletedRequestSlot): Rewritten.
  13510. (isInRequestSlot): New function.
  13511. (syncPiece): Rewritten.
  13512. (updatePiece): New function.
  13513. (getNewPieceAndSendInterest): Rewritten.
  13514. (addRequests): Rewritten.
  13515. (getDownloadPiece): Rewritten.
  13516. (hasDownloadPiece): Rewritten.
  13517. (createRequestMessage): Added the "index" argument.
  13518. * src/common.h
  13519. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13520. (DIV_FLOOR): New definition.
  13521. * src/PieceMessage.cc
  13522. (receivedAction): Update request-piece latency here.
  13523. * src/RequestSlot.h
  13524. (getLatencyInMillis): New function.
  13525. * src/RequestSlot.cc
  13526. (isTimeout): Rewritten using getLatencyInMillis.
  13527. (getLatencyInMillis): New function.
  13528. * src/Piece.h
  13529. (operator==): New function.
  13530. (getMissingBlockIndex): New function.
  13531. * src/Piece.cc
  13532. (operator==): New function.
  13533. (getMissingBlockIndex): New function.
  13534. * src/Peer.h
  13535. (DEFAULT_LATENCY): New definition.
  13536. (latency): New variable.
  13537. (updateLatency): New function.
  13538. (getLatency): New function.
  13539. * src/Peer.cc
  13540. (resetStatus): Reset latecy.
  13541. (updateLatency): New function.
  13542. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13543. * src/SocketCore.cc
  13544. (isReadable): Added secure to the condition.
  13545. * src/HttpConnection.cc
  13546. (receiveResponse): Fixed a bug that causes no response header
  13547. exception.
  13548. * src/Peer.h
  13549. (getFastSet): Fixed the return value type.
  13550. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13551. To remove a wait from download loop:
  13552. * src/DownloadEngine.cc
  13553. (run): Comment out shortSleep.
  13554. To rewrite the message handling:
  13555. * src/SimplePeerMessage.h: New class.
  13556. * src/SimplePeerMessage.cc: New class.
  13557. * src/CancelMessage.h: Derived from SimplePeerMessage.
  13558. (msg): New variable.
  13559. (create): New function.
  13560. (send): Removed.
  13561. (getMessage): New function.
  13562. (getMessageLength): New function.
  13563. * src/CancelMessage.cc
  13564. (create): New function.
  13565. (receivedAction): Replaced deleteRequestMessageInQueue with
  13566. rejectPieceMessageInQueue.
  13567. (send): Removed.
  13568. (getMessage): New function.
  13569. (getMessageLength): New function.
  13570. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  13571. (msg): New variable.
  13572. (msgLength): New variable.
  13573. (~BitfieldMessage): Deleted msg.
  13574. (send): Removed.
  13575. (getMessage): New function.
  13576. (getMessageLength): New function.
  13577. * src/BitfieldMessage.cc
  13578. (create): New function.
  13579. (send): Removed.
  13580. (getMessage): New function.
  13581. (getMessageLength): New function.
  13582. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  13583. (msg): New variable.
  13584. (sendPredicate): New function.
  13585. (onSendComplete): New function.
  13586. (send): Removed.
  13587. (getMessage): New function.
  13588. (getMessageLength): New function.
  13589. (create): New function.
  13590. * src/ChokeMessage.cc
  13591. (create): New function.
  13592. (send): Removed.
  13593. (sendPredicate): New function.
  13594. (getMessage): New function.
  13595. (getMessageLength): New function.
  13596. (onSendComplete): New function.
  13597. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  13598. (msg): New variable.
  13599. (send): Removed.
  13600. (getMessage): New function.
  13601. (getMessageLength): New function.
  13602. * src/KeepAliveMessage.cc
  13603. (send): Removed.
  13604. (getMessage): New function.
  13605. (getMessageLength): New function.
  13606. * src/PortMessage.h
  13607. (create): New function.
  13608. (receivedAction): Updated log message.
  13609. * src/PortMessage.cc: New file.
  13610. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  13611. (msg): New variable.
  13612. (sendPredicate): New function.
  13613. (onSendComplete): New function.
  13614. (create): New function.
  13615. (send): Removed.
  13616. (getMessage): New function.
  13617. (getMessageLength): New function.
  13618. * src/UnchokeMessage.cc
  13619. (create): New function.
  13620. (send): Removed.
  13621. (sendPredicate): New function.
  13622. (getMessage): New function.
  13623. (getMessageLength): New function.
  13624. (onSendComplete): New function.
  13625. * src/PieceMessage.h
  13626. (leftPieceDataLength): Removed.
  13627. (leftDataLength): New variable.
  13628. (headerSend): New variable.
  13629. (pendingCount): New variable.
  13630. (msgHeader): New variable.
  13631. (sendPieceData): New function.
  13632. (incrementPendingCount): New function.
  13633. (isPendingCountMax): New function.
  13634. (create): New function.
  13635. (getMessageHeader): New function.
  13636. (getMessageHeaderLength): New function.
  13637. * src/PieceMessage.cc
  13638. (create): New function.
  13639. (getMessageHeader): New function.
  13640. (getMessageHeaderLength): New function.
  13641. (send): Rewritten.
  13642. (sendPieceData): New function.
  13643. * src/HaveMessage.h: Derived from SimplePeerMessage.
  13644. (msg): New variable.
  13645. (create): New function.
  13646. (getMessage): New function.
  13647. (getMessageLength): New function.
  13648. * src/HaveMessage.cc
  13649. (create): New function.
  13650. (send): Removed.
  13651. (sendPieceData): New function.
  13652. (getMessage): New function.
  13653. (getMessageLength): New function.
  13654. * src/RequestMessage.h: Derived from SimplePeerMessage.
  13655. (msg): New variable.
  13656. (create): New function.
  13657. (send): Removed.
  13658. (getMessage): New function.
  13659. (getMessageLength): New function.
  13660. * src/RequestMessage.cc
  13661. (create): New function.
  13662. (receivedAction): Added the handling of fast extension.
  13663. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  13664. (send): Removed.
  13665. (getMessage): New function.
  13666. (getMessageLength): New function.
  13667. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  13668. (msg): New variable.
  13669. (sendPredicate): New function.
  13670. (onSendComplete): New function.
  13671. (create): New function.
  13672. (getMessage): New function.
  13673. (getMessageLength): New function.
  13674. * src/InterestedMessage.cc
  13675. (create): New function.
  13676. (send): Removed.
  13677. (sendPieceData): New function.
  13678. (getMessage): New function.
  13679. (getMessageLength): New function.
  13680. (onSendComplete): New function.
  13681. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  13682. (msg): New variable.
  13683. (sendPieceData): New function.
  13684. (onSendComplete): New function.
  13685. (create): New function.
  13686. (send): Removed.
  13687. (getMessage): New function.
  13688. (getMessageLength): New function.
  13689. * src/NotInterestedMessage.cc
  13690. (create): New function.
  13691. (send): Removed.
  13692. (sendPredicate): New function.
  13693. (getMessage): New function.
  13694. (getMessageLength): New function.
  13695. (onSendComplete): New function.
  13696. * src/AllowedFastMessage.h: New class.
  13697. * src/AllowedFastMessage.cc: New class.
  13698. * src/RejectMessage.h: New class.
  13699. * src/RejectMessage.cc: New class.
  13700. * src/SuggestPieceMessage.h: New class.
  13701. * src/SuggestPieceMessage.cc: New class.
  13702. * src/HaveAllMessage.h: New class.
  13703. * src/HaveAllMessage.cc: New class.
  13704. * src/HaveNoneMessage.h: New class.
  13705. * src/HaveNoneMessage.cc: New class.
  13706. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  13707. (msg): New variable.
  13708. (reserved): New variable.
  13709. (create): New function.
  13710. (getId): New function.
  13711. (receivedAction): New function.
  13712. (getMessage): New function.
  13713. (getMessageLength): New function.
  13714. (isFastExtensionSupported): New function.
  13715. * src/HandshakeMessage.cc
  13716. (HandshakeMessage): Moved here from HandshakeMessage.h.
  13717. (create): New function.
  13718. (getMessage): New function.
  13719. (getMessageLength): New function.
  13720. (toString): Added the output of reserved field.
  13721. (check): Added const qualifier.
  13722. (isFastExtensionSupported): New function.
  13723. * src/PeerMessageUtil.h
  13724. (createChokeMessage): Removed.
  13725. (createUnchokeMessage): Removed.
  13726. (createInterestedMessage): Removed.
  13727. (createNotInterestedMessage): Removed.
  13728. (createHaveMessage): Removed.
  13729. (createBitfieldMessage): Removed.
  13730. (createRequestMessage): Removed.
  13731. (createCancelMessage): Removed.
  13732. (createPieceMessage): Removed.
  13733. (createPortMessage): Removed.
  13734. (createChokeMessage): Removed.
  13735. (createUnchokeMessage): Removed.
  13736. (createInterestedMessage): Removed.
  13737. (createNotInterestedMessage): Removed.
  13738. (createHaveMessage): Removed.
  13739. (createBitfieldMessage): Removed.
  13740. (createRequestMessage): Removed.
  13741. (createCancelMessage): Removed.
  13742. (createPieceMessage): Removed.
  13743. (createKeepAliveMessage): Removed.
  13744. (createHandshakeMessage): Removed.
  13745. (setIntParam): New function.
  13746. (createPeerMessageString): New function.
  13747. * src/PeerMessageUtil.cc
  13748. (createChokeMessage): Removed.
  13749. (createUnchokeMessage): Removed.
  13750. (createInterestedMessage): Removed.
  13751. (createNotInterestedMessage): Removed.
  13752. (createHaveMessage): Removed.
  13753. (createBitfieldMessage): Removed.
  13754. (createRequestMessage): Removed.
  13755. (createCancelMessage): Removed.
  13756. (createPieceMessage): Removed.
  13757. (createPortMessage): Removed.
  13758. (createRequestMessage): Removed.
  13759. (createCancelMessage): Removed.
  13760. (createPieceMessage): Removed.
  13761. (createHaveMessage): Removed.
  13762. (createChokeMessage): Removed.
  13763. (createUnchokeMessage): Removed.
  13764. (createInterestedMessage): Removed.
  13765. (createNotInterestedMessage): Removed.
  13766. (createBitfieldMessage): Removed.
  13767. (createKeepAliveMessage): Removed.
  13768. (createHandshakeMessage): Removed.
  13769. (setIntParam): New function.
  13770. (createPeerMessageString): New function.
  13771. * src/PeerConnection.h
  13772. (peer): Removed.
  13773. (torrentMan): Removed.
  13774. (createNLengthMessage): Removed.
  13775. (setIntParam): Removed.
  13776. (writeOutgoingMessageLog): Removed all overloaded functions.
  13777. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13778. (sendMessage): New function.
  13779. (sendHandshake): Removed.
  13780. (sendKeepAlive): Removed.
  13781. (sendChoke): Removed.
  13782. (sendUnchoke): Removed.
  13783. (sendInterested): Removed.
  13784. (sendNotInterested): Removed.
  13785. (sendHave): Removed.
  13786. (sendBitfield): Removed.
  13787. (sendRequest): Removed.
  13788. (sendPiece): Removed.
  13789. (sendPieceHeader): Removed.
  13790. (sendPieceData): Removed.
  13791. (sendCancel): Removed.
  13792. (getPeer): Removed.
  13793. * src/PeerConnection.cc
  13794. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13795. (sendHandshake): Removed.
  13796. (sendKeepAlive): Removed.
  13797. (createNLengthMessage): Removed.
  13798. (setIntParam): Removed.
  13799. (writeOutgoingMessageLog): Removed all overloaded functions.
  13800. (sendChoke): Removed.
  13801. (sendUnchoke): Removed.
  13802. (sendInterested): Removed.
  13803. (sendNotInterested): Removed.
  13804. (sendHave): Removed.
  13805. (sendBitfield): Removed.
  13806. (sendRequest): Removed.
  13807. (sendPiece): Removed.
  13808. (sendPieceHeader): Removed.
  13809. (sendPieceData): Removed.
  13810. (sendMessage): New function.
  13811. (sendCancel): Removed.
  13812. * src/PeerInteractionCommand.cc
  13813. (PeerInteractionCommand): Call setUploadLimit.
  13814. (executeInternal): Call setUploadLimit.
  13815. Added the handling of "inProgress" state of handshake message.
  13816. Call sendBitfield() or sendAllowdFast() instead of deprecated
  13817. sendNow().
  13818. (keepAlive): Call addMessage and sendMessage instead of deprecated
  13819. sendNow().
  13820. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  13821. * src/TorrentMan.h
  13822. (PEER_ID_LENGTH): New definition.
  13823. (hasAllPieces): New function.
  13824. * src/TorrentMan.cc
  13825. (getMissingPiece): Added the handling of fast extension.
  13826. (cancelPiece): Call updatePiece().
  13827. (hasAllPieces): New function.
  13828. * src/PeerInteraction.h
  13829. (fastSet): New variable.
  13830. (getNewPieceAndSendInterest): Changed the return type to void.
  13831. (send): Renamed as sendMessages.
  13832. (deleteAllRequestSlot): Removed.
  13833. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13834. (cancelAllRequest): Removed all overloaded functions.
  13835. (deleteAllRequestSlot): Removed.
  13836. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13837. (rejectPieceMessageInQueue): New function.
  13838. (rejectAllPieceMessageInQueue): New function.
  13839. (onChoked): New function.
  13840. (isSendingMessageInProgress): New function.
  13841. (getCorrespondingRequestSlot): Changed its arguments.
  13842. (isInFastSet): New function.
  13843. (addFastSetIndex): New function.
  13844. (addRequests): New function.
  13845. (sendNow): Removed.
  13846. (trySendNow): Removed.
  13847. (sendBitfield): New function.
  13848. (sendAllowdFast): New function.
  13849. (createHaveAllMessage): New function.
  13850. (createHaveNoneMessage): New function.
  13851. (createRejectMessage): New function.
  13852. (createAllowedFastMessage): New function.
  13853. * src/PeerInteraction.cc
  13854. (send): Renamed as sendMessages.
  13855. (sendMessages): New function.
  13856. (MsgPushBack): New class.
  13857. (isSendingMessageInProgress): New function.
  13858. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13859. (rejectAllPieceMessageInQueue): New function.
  13860. Added the handling of fast extension.
  13861. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13862. (rejectPieceMessageInQueue): New function.
  13863. Added the handling of fast extension.
  13864. (deleteRequestSlot): Replaced for loop with std::find.
  13865. (onChoked): New function.
  13866. (deleteAllRequestSlot): Removed.
  13867. (abortPiece): Rewirtten.
  13868. (deleteTimeoutRequestSlot): Updated log messages.
  13869. (getCorrespondingRequestSlot): Changed its arguments.
  13870. (cancelAllRequest): Removed all overloaded functions.
  13871. (receiveHandshake): Added the check to see whether an incoming peer
  13872. supports fast extension.
  13873. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13874. PeerMessageUtil.
  13875. (createPeerMessage): Use create() of each message class instead of
  13876. PeerMessageUtil.
  13877. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13878. AllowedFastMessage were added.
  13879. (getNewPieceAndSendInterest): Changed its return value type to void.
  13880. Added the handling of fast extension.
  13881. (addRequests): New function.
  13882. (sendNow): Removed.
  13883. (sendHandshake): Rewritten.
  13884. (trySendNow): Removed.
  13885. (sendBitfield): New function.
  13886. (sendAllowdFast): New function.
  13887. (isInFastSet): New function.
  13888. (addFastSetIndex): New function.
  13889. (createRequestMessage): Use RequestMessage::create instead of
  13890. PeerMessageUtil.
  13891. (createCancelMessage): Use CancelMessage::create instead of
  13892. PeerMessageUtil.
  13893. (createPieceMessage): Use PieceMessage::create instead of
  13894. PeerMessageUtil.
  13895. (createHaveMessage): Use HaveMessage::create instead of
  13896. PeerMessageUtil.
  13897. (createChokeMessage): Use ChokeMessage::create instead of
  13898. PeerMessageUtil.
  13899. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13900. PeerMessageUtil.
  13901. (createInterestedMessage): Use InterestedMessage::create instead of
  13902. PeerMessageUtil.
  13903. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13904. of PeerMessageUtil.
  13905. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13906. PeerMessageUtil.
  13907. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13908. PeerMessageUtil.
  13909. (createHaveAllMessage): New function.
  13910. (createHaveNoneMessage): New function.
  13911. (createRejectMessage): New function.
  13912. (createAllowedFastMessage: New function.
  13913. * src/Util.h
  13914. (sha1Sum): New function.
  13915. (computeFastSet): New function.
  13916. * src/Util.cc
  13917. (sha1Sum): New function.
  13918. (computeFastSet): New function.
  13919. * src/Peer.h
  13920. (fastExtensionEnabled): New variable.
  13921. (fastSet): New variable.
  13922. (setAllBitfield): New function.
  13923. (setFastExtensionEnabled): New function.
  13924. (isFastExtensionEnabled): New function.
  13925. (addFastSetIndex): New function.
  13926. (getFastSet): New function.
  13927. (isInFastSet): New function.
  13928. (countFastSet): New function.
  13929. * src/Peer.cc
  13930. (isInFastSet): New function.
  13931. (addFastSetIndex): New function.
  13932. (setAllBitfield): New function.
  13933. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13934. sockets.
  13935. * src/PeerAbstractCommand.cc
  13936. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13937. and uploadLimit.
  13938. (execute): Changed the procedure of checking sockets. The upload speed
  13939. checking were added.
  13940. (setUploadLimit): New function.
  13941. (setUploadLimitCheck): New function.
  13942. * src/PeerAbstractCommand.h
  13943. (setUploadLimit): New function.
  13944. (setUploadLimitCheck): New function.
  13945. (uploadLimit): New variable.
  13946. (uploadLimitCheck): New variable.
  13947. To contact a tracker regularly:
  13948. * src/TrackerWatcherCommand.h (interval): New variable.
  13949. (checkPoint): New variable.
  13950. (TrackerWatcherCommand): Added interval argument.
  13951. * src/TrackerWatcherCommand.cc
  13952. (TrackerWatcherCommand): Initialized checkPoint.
  13953. (execute): Now a tracker is contacted in every specified period.
  13954. If peer list is not needed, send request with numwant=0.
  13955. * src/TrackerUpdateCommand.cc
  13956. (execute): Updated log messages.
  13957. * src/DownloadEngine.cc
  13958. (~DownloadEngine): Removed two asserts.
  13959. (waitData): Uncommented wfds. May be a bug fix.
  13960. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13961. * src/PeerInteractionCommand.h
  13962. (checkInactiveConnection): Removed.
  13963. * src/PeerInteractionCommand.cc
  13964. (executeInternal): Removed following function calls:
  13965. detectMessageFlooding(), checkLongTimePeerChoking and
  13966. checkInactiveConnection().
  13967. (checkInactiveConnection): Removed.
  13968. (detectMessageFlooding): Removed function call to
  13969. checkInactiveConnection().
  13970. * src/PeerMessageUtil.h
  13971. (createChokeMessage): New function. Overload.
  13972. (createUnchokeMessage): New function. Overload.
  13973. (createInterestedMessage): New function. Overload.
  13974. (createNotInterestedMessage): New function. Overload.
  13975. (createHaveMessage): New function. Overload.
  13976. (createBitfieldMessage): New function. Overload.
  13977. (createRequestMessage): New function. Overload.
  13978. (createCancelMessage): New function. Overload.
  13979. (createPieceMessage): New function. Overload.
  13980. (createKeepAliveMessage): New function. Overload.
  13981. * src/PeerMessageUtil.cc
  13982. (createChokeMessage): New function. Overload.
  13983. (createUnchokeMessage): New function. Overload.
  13984. (createInterestedMessage): New function. Overload.
  13985. (createNotInterestedMessage): New function. Overload.
  13986. (createHaveMessage): New function. Overload.
  13987. (createBitfieldMessage): New function. Overload.
  13988. (createRequestMessage): New function. Overload.
  13989. (createCancelMessage): New function. Overload.
  13990. (createPieceMessage): New function. Overload.
  13991. (createKeepAliveMessage): New function. Overload.
  13992. * src/SendMessageQueue.cc
  13993. (createRequestMessage): Use PeerMessageUtil.
  13994. (createCancelMessage): Use PeerMessageUtil.
  13995. (createPieceMessage): Use PeerMessageUtil.
  13996. (createHaveMessage): Use PeerMessageUtil.
  13997. (createChokeMessage): Use PeerMessageUtil.
  13998. (createUnchokeMessage): Use PeerMessageUtil.
  13999. (createInterestedMessage): Use PeerMessageUtil.
  14000. (createNotInterestedMessage): Use PeerMessageUtil.
  14001. (createBitfieldMessage): Use PeerMessageUtil.
  14002. (createKeepAliveMessage): Use PeerMessageUtil.
  14003. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14004. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14005. * src/PeerInteraction.h: New class.
  14006. * src/PeerInteraction.cc: New class.
  14007. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14008. Each peer message has its own class.
  14009. * src/PendingMessages.h: Removed.
  14010. * src/PendingMessages.cc: Removed. The sending process was moved to
  14011. each message class.
  14012. * src/RequestSlotMan.h: Removed.
  14013. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14014. SendMessageQueue.
  14015. * src/RequestMessage.h: New class.
  14016. * src/RequestMessage.cc: New class.
  14017. * src/CancelMessage.h: New class.
  14018. * src/CancelMessage.cc: New class.
  14019. * src/BitfieldMessage.h: New class.
  14020. * src/BitfieldMessage.cc: New class.
  14021. * src/ChokeMessage.h: New class.
  14022. * src/ChokeMessage.cc: New class.
  14023. * src/KeepAliveMessage.h: New class.
  14024. * src/KeepAliveMessage.cc: New class.
  14025. * src/PortMessage.h: New class.
  14026. * src/UnchokeMessage.h: New class.
  14027. * src/UnchokeMessage.cc: New class.
  14028. * src/PieceMessage.h: New class.
  14029. * src/PieceMessage.cc: New class.
  14030. * src/HaveMessage.h: New class.
  14031. * src/HaveMessage.cc: New class.
  14032. * src/BitfieldMessage.h: New class.
  14033. * src/BitfieldMessage.cc: New class.
  14034. * src/NotInterestedMessage.h: New class.
  14035. * src/NotInterestedMessage.cc: New class.
  14036. * src/InterestedMessage.h: New class.
  14037. * src/InterestedMessage.cc: New class.
  14038. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14039. (getSendMessageQueue): New function.
  14040. (setSendMessageQueue): New function.
  14041. * src/HandshakeMessage.cc: New class.
  14042. * src/PeerConnection.h (receiveMessage): Changed return value and
  14043. arguments.
  14044. (receiveHandshake): Changed return value and arguments.
  14045. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14046. here.
  14047. (receiveHandshake): Do not create handshake class here.
  14048. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14049. (piece): Removed.
  14050. (syncPiece): Removed.
  14051. (sendInterest): Removed.
  14052. (sendMessages): Removed.
  14053. (createRequestPendingMessage): Removed.
  14054. (checkPieceHash): Removed.
  14055. (erasePieceOnDisk): Removed.
  14056. (getNewPieceAndSendInterest): Removed.
  14057. (onGotNewPice): Removed.
  14058. (onGotWrongPiece): Removed.
  14059. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14060. Removed peerConnection, piece.
  14061. (~PeerInteractionCommand): Removed peerConnection.
  14062. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14063. (syncPiece): Moved to SendMessageQueue.
  14064. (decideChoking): Removed PendingMessage.
  14065. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14066. The action after receiving peer message was moved to each message
  14067. class.
  14068. (onGotNewPice): Moved to SendMessageQueue.
  14069. (onGotWrongPiece): Moved to SendMessageQueue.
  14070. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14071. (sendInterest): Moved to SendMessageQueue.
  14072. (createRequestPendingMessage): Removed.
  14073. (sendMessages): Moved to SendMessageQueue.
  14074. (onAbort): Use SendMessageQueue::abortPiece()
  14075. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14076. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14077. (checkPieceHash): Moved to SendMessageQueue.
  14078. (erasePieceOnDisk): Moved to SendMessageQueue.
  14079. * src/PeerMessageUtil.h
  14080. (createBitfieldMessage): Removed.
  14081. (createHaveMessage): Changed return value and arguments.
  14082. (createBitfieldMessage): Changed return value and arguments.
  14083. (createRequestCancelMessage): Removed.
  14084. (createPieceMessage): Changed return value and arguments.
  14085. (getShortIntParam): New function.
  14086. (checkIndex): Changed arguments.
  14087. (checkBegin): Changed arguments.
  14088. (checkLength): Changed arguments.
  14089. (checkPieceOffset): Removed.
  14090. (checkRange): New function.
  14091. (checkBitfield): Changed arguments.
  14092. (createPeerMessage): Removed.
  14093. (checkIntegrity): Removed.
  14094. (createHandshakeMessage): Changed arguments.
  14095. (createChokeMessage): New function.
  14096. (createUnchokeMessage): New function.
  14097. (createInterestedMessage): New function.
  14098. (createNotInterestedMessage): New function.
  14099. (createRequestMessage): New function.
  14100. (createCancelMessage): New function.
  14101. (createPortMessage): New function.
  14102. * src/PeerMessageUtil.cc
  14103. (createBitfieldMessage): Removed.
  14104. (createHaveMessage): Changed return value and arguments.
  14105. (createBitfieldMessage): Changed return value and arguments.
  14106. (createRequestCancelMessage): Removed.
  14107. (createPieceMessage): Changed return value and arguments.
  14108. (getShortIntParam): New function.
  14109. (checkIndex): Changed arguments.
  14110. (checkBegin): Changed arguments.
  14111. (checkLength): Changed arguments.
  14112. (checkPieceOffset): Removed.
  14113. (checkRange): New function.
  14114. (checkBitfield): Changed arguments.
  14115. (createPeerMessage): Removed.
  14116. (checkIntegrity): Removed.
  14117. (createHandshakeMessage): Changed arguments.
  14118. (createChokeMessage): New function.
  14119. (createUnchokeMessage): New function.
  14120. (createInterestedMessage): New function.
  14121. (createNotInterestedMessage): New function.
  14122. (createRequestMessage): New function.
  14123. (createCancelMessage): New function.
  14124. (createPortMessage): New function.
  14125. * src/PeerMessage.h
  14126. (id): Removed.
  14127. (index): Removed.
  14128. (begin): Removed.
  14129. (length): Removed.
  14130. (bitfield): Removed.
  14131. (bitfieldLength): Removed.
  14132. (block): Removed.
  14133. (blockLength): Removed.
  14134. (inProgress): New variable.
  14135. (cuid): New variable.
  14136. (peer): New variable.
  14137. (sendMessageQueue): New variable.
  14138. (logger): New variable.
  14139. (setBitfield): Removed.
  14140. (getBitfield): Removed.
  14141. (setBlock): Removed.
  14142. (getBlock): Removed.
  14143. (getBitfieldLength): Removed.
  14144. (getBlockLength): Removed.
  14145. (isInProgress): New function.
  14146. (toString): Made pure virtual.
  14147. (check): New function.
  14148. (send): New function.
  14149. (receivedAction): New function.
  14150. (getId): Made pure virtual.
  14151. (setId): Removed.
  14152. (getIndex): Removed.
  14153. (setIndex): Removed.
  14154. (getBegin): Removed.
  14155. (setBegin): Removed.
  14156. (getLength): Removed.
  14157. (setLength): Removed.
  14158. (getCuid): New function.
  14159. (setCuid): New function.
  14160. (getPeer): New function.
  14161. (setPeer): New function.
  14162. (getSendMessageQueue): New function.
  14163. (setSendMessageQueue): New function.
  14164. (ID): Removed.
  14165. * src/PeerMessage.cc
  14166. (setBitfield): Removed.
  14167. (setBlock): Removed.
  14168. (toString): Removed.
  14169. * src/TorrentMan.h
  14170. (getPieceLength): New function.
  14171. (getPieceLength): New function.
  14172. * src/SendMessageQueue.h
  14173. (REQUEST_TIME_OUT): New definition.
  14174. (RequestSlots): New definition.
  14175. (MessageQueue): New definition.
  14176. (requestSlotMan): Removed.
  14177. (pendingMessages): Removed.
  14178. (requestSlots): New variable.
  14179. (messageQueue): New variable.
  14180. (torrentMan): New variable.
  14181. (peerConnection): New variable.
  14182. (peer): New variable.
  14183. (piece): New variable.
  14184. (getNewPieceAndSendInterest): New function.
  14185. (createPeerMessage): New function.
  14186. (createHandshakeMessage): New function.
  14187. (send): Made private.
  14188. (setPeerMessageCommonProperty): New function.
  14189. (deleteAllRequestSlot): New function.
  14190. (deleteRequestMessageInQueue): New function.
  14191. (cancelAllRequest): Made private.
  14192. (cancelAllRequest): Made private.
  14193. (countRequestSlot): Made private.
  14194. (addPendingMessage): Removed.
  14195. (deletePendingPieceMessage): Removed.
  14196. (deletePendingRequestMessage): Removed.
  14197. (addMessage): New function.
  14198. (deletePieceMessageInQueue): New function.
  14199. (deleteTimeoutRequestSlot): Changed argument.
  14200. (deleteCompletedRequestSlot): Changed argument.
  14201. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14202. (getCorrespondingRequestSlot): New function.
  14203. (countPendingMessage): Removed.
  14204. (countMessageInQueue): New function.
  14205. (getTorrentMan): New function.
  14206. (getPeerConnection): New function.
  14207. (hasDownloadPiece): New function.
  14208. (getDownloadPiece): New function.
  14209. (setDownloadPiece): New function.
  14210. (syncPiece): New function.
  14211. (sendMessages): New function.
  14212. (sendNow): New function.
  14213. (trySendNow): New function.
  14214. (abortPiece): New function.
  14215. (sendHandshake): New function.
  14216. (receiveMessage): New function.
  14217. (receiveHandshake): New function.
  14218. (createRequestMessage): New function.
  14219. (createCancelMessage): New function.
  14220. (createPieceMessage): New function.
  14221. (createHaveMessage): New function.
  14222. (createChokeMessage): New function.
  14223. (createUnchokeMessage): New function.
  14224. (createInterestedMessage): New function.
  14225. (createNotInterestedMessage): New function.
  14226. (createBitfieldMessage): New function.
  14227. (createKeepAliveMessage): New function.
  14228. * src/SendMessageQueue.cc
  14229. (SendMessageQueue): Removed requestSlotMan.
  14230. Instantiated peerConnection here.
  14231. (~SendMessageQueue): Removed requestSlotMan.
  14232. Added deletion of peerConnection and the contents of messageQueue.
  14233. (send): Updated according to the change of messageQueue.
  14234. (addPendingMessage): Renamed to addMessage.
  14235. (addMessage): New function.
  14236. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14237. (deletePieceMessageInQueue): New function.
  14238. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14239. (deleteRequestMessageInQueue): New function.
  14240. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14241. here.
  14242. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14243. (...) was moved here.
  14244. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14245. moved here.
  14246. (deleteCompletedRequestSlot):
  14247. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14248. (getCorrespondingRequestSlot):
  14249. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14250. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14251. (countPendingMessage): Renamed to countMessageInQueue.
  14252. (countMessageInQueue): New function.
  14253. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14254. (receiveHandshake): New function.
  14255. (createHandshakeMessage): New function.
  14256. (receiveMessage): New function.
  14257. (createPeerMessage): New function.
  14258. (syncPiece): New function.
  14259. (getNewPieceAndSendInterest): New function.
  14260. (sendMessages): New function.
  14261. (sendNow): New function.
  14262. (trySendNow): New function.
  14263. (sendHandshake): New function.
  14264. (abortPiece): New function.
  14265. (getDownloadPiece): New function.
  14266. (getPeerMessageCommonProperty): New function.
  14267. (createRequestMessage): New function.
  14268. (createCancelMessage): New function.
  14269. (createPieceMessage): New function.
  14270. (createHaveMessage): New function.
  14271. (createChokeMessage): New function.
  14272. (createUnchokeMessage): New function.
  14273. (createInterestedMessage): New function.
  14274. (createNotInterestedMessage): New function.
  14275. (createBitfieldMessage): New function.
  14276. (createKeepAliveMessage): New function.
  14277. To add simple Content-Disposition support:
  14278. * src/HttpResponseCommand.h (determinFilename): New function.
  14279. * src/HttpResponseCommand.cc (executeInternal):
  14280. Use determinFilename(headers) instead of req->getFile() when comparing
  14281. filename.
  14282. (determinFilename): New function.
  14283. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14284. req->getFile().
  14285. (handleOtherEncoding): Use determinFilename(headers) instead of
  14286. req->getFile().
  14287. * src/Util.h (getContentDispositionFilename): New function.
  14288. * src/Util.cc (getContentDispositionFilename): New function.
  14289. * src/LogFactory.h (release): New function.
  14290. * src/LogFactory.cc (release): New function.
  14291. To fix a bug that causes out-of-bound exception when HTTP status
  14292. line is wrong:
  14293. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14294. size.
  14295. * src/common.h (Deleter): New class.
  14296. * src/SegmentMan.cc
  14297. (~SegmentMan): Added deletion of splitter and diskWriter.
  14298. * src/DownloadEngine.h
  14299. (Commands): Use deque.
  14300. (clearQueue): New function.
  14301. * src/DownloadEngine.cc
  14302. (~DownloadEngine): Added deletion of segmentMan.
  14303. (cleanQueue): New function.
  14304. * src/TorrentDownloadEngine.h
  14305. (TorrentDownloadEngine): The implementation was moved to
  14306. TorrentDownloadEngine.cc.
  14307. (~TorrentDownloadEngine): The implementation was moved to
  14308. TorrentDownloadEngine.cc.
  14309. * src/TorrentDownloadEngine.cc
  14310. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14311. * src/main.cc
  14312. (clearRequest): Removed.
  14313. (handler): Added deletion of e.
  14314. (torrentHandler): Added deletion of te.
  14315. (main): Do not share splitter.
  14316. Use Deleter instead of clearRequest.
  14317. Deletion of classes were updated.
  14318. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14319. * src/main.cc (main): Fixed typo.
  14320. * src/message.h: Fixed typo.
  14321. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14322. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14323. To add --select-file command-line option:
  14324. * src/Util.cc
  14325. (unfoldRange): New function.
  14326. (getNum): New function.
  14327. (unfoldSubRange): New function
  14328. * src/main.cc
  14329. (showUsage): Added help message.
  14330. (main): Added --select-file command-line option. Updated the layout of
  14331. file listing.
  14332. * src/common.h
  14333. (Integers): New definition.
  14334. * src/SocketCore.cc
  14335. (writeData): Removed timeout argument.
  14336. (readData): Removed timeout argument.
  14337. (peekData): Removed timeout argument.
  14338. * src/Socket.cc
  14339. (writeData): Removed timeout argument.
  14340. (readData): Removed timeout argument.
  14341. (peekData): Removed timeout argument.
  14342. * Release 0.4.1
  14343. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14344. To deploy upload rate based choking algorithm:
  14345. * src/PeerInteractionCommand.cc
  14346. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14347. peer currently used.
  14348. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14349. download completes. Simplified.
  14350. (receiveMessage): Updated.
  14351. * src/TorrentMan.h
  14352. (activePeers): New variable.
  14353. (addActivePeer): New function.
  14354. (getActivePeers): New function.
  14355. (deleteActivePeer): New function.
  14356. * src/TorrentMan.cc
  14357. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14358. * src/PeerAbstractCommand.cc
  14359. (onAbort): Use peer->resetStatus().
  14360. * src/main.cc
  14361. (PeerChokeCommand.h): Included.
  14362. (main): Added the instance of ChokingCommand to the command queue.
  14363. * src/Peer.h
  14364. (amChoking): Renamed from amChocking
  14365. (chokingRequired): New variable.
  14366. (optUnchoking): New variable.
  14367. (deltaUpload): New variable.
  14368. (deltaDownload): New variable.
  14369. (addDeltaUpload): New function.
  14370. (resetDeltaUpload): New function.
  14371. (addDeltaDownload): New function.
  14372. (resetDeltaDownload): New function.
  14373. (addPeerUpload): Added a call to addDeltaUpload.
  14374. (addPeerDownload): Added a call to addDeltaDownload.
  14375. * src/Peer.cc
  14376. (shouldBeChoking): Renamed from shouldChoke.
  14377. (resetStatus): New function.
  14378. * src/PeerChokeCommand.h: New class.
  14379. * src/PeerChokeCommand.cc: New class.
  14380. To add lazy upload speed limiter:
  14381. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14382. statistics calculation to TorrentDownloadEngine.
  14383. * src/TorrentConsoleDownloadEngine.cc
  14384. (sendStatistics): Renamed from printStatistics.
  14385. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14386. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14387. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14388. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14389. calculation.
  14390. (sendStatistics): New function as pure virtual function.
  14391. (getUploadSpeed): New function.
  14392. * src/TorrentDownloadEngine.cc
  14393. (initStatistics): New function.
  14394. (calculateSpeed): New function.
  14395. (calculateStatistics): New function.
  14396. * src/SendMessageQueue.h
  14397. (uploadLength): New variable.
  14398. (send): Added an argument.
  14399. (setUploadLimit): New function.
  14400. (getUploadLimit): New function.
  14401. * src/SendMessageQueue.cc
  14402. (send): Added upload speed limiter.
  14403. * src/prefs.h
  14404. (PREF_UPLOAD_LIMIT): New definition.
  14405. * src/PeerInteractionCommand.cc
  14406. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14407. * src/main.cc
  14408. (main): Added --upload-limit option
  14409. For bug fixes:
  14410. * src/main.cc
  14411. (showUsage): Corrected --listen-port help
  14412. Other changes:
  14413. * src/TorrentMan.cc
  14414. (getPeer): Return nullPeer if connection is grather than
  14415. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14416. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14417. To add some useful information to the exception message:
  14418. * src/SocketCore.cc : Updated messages.
  14419. * src/SegmentMan.cc :
  14420. * src/TorrentMan.cc : Updated messages.
  14421. * src/MultiDiskWriter.cc : Updated messages.
  14422. * src/Util.cc : Updated messages.
  14423. * src/AbstractDiskWriter.cc : Updated messages.
  14424. * src/PreAllocationDiskWriter.cc : Updated messages.
  14425. * src/message.cc : Added new messages. Updated some messages.
  14426. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14427. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14428. Updated threshold from 30 to 15.
  14429. * src/AbstractDiskWriter.h (filename): New variable.
  14430. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14431. (createFile): Assigned filename.
  14432. * src/main.cc: Updated the help message for http-auth-scheme.
  14433. * Release 0.4.0
  14434. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14435. To add TrackerUpdateCommand with which replaces
  14436. CompactTrackerResponseProcessor:
  14437. * src/TrackerWatcherCommand.h (req): Removed.
  14438. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14439. if the number of peer connections are less than 30.
  14440. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14441. * src/SegmentMan.h (diskWriter): New function.
  14442. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14443. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14444. (main): Use TrackerUpdateCommand.
  14445. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14446. (req): New variable.
  14447. (setTrackerResponseProcessor): Removed.
  14448. (getTrackerResponseProcessor): Removed.
  14449. (processTrackerResponse): Removed.
  14450. * src/DownloadEngine.h (diskWriter): Removed.
  14451. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14452. to torrentMan->processTrackerResponse().
  14453. To add Util::expandBuffer:
  14454. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14455. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14456. * src/Util.h (expandBuffer): New function.
  14457. To fix the bug that causes segmentation fault when "-l ." is specified
  14458. in command-line option:
  14459. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14460. (openFile): New function.
  14461. (closeFile): New function.
  14462. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14463. (~SimpleLogger): Call closeFile();
  14464. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14465. * src/main.cc (main): Added a check to see logger is configured
  14466. properly.
  14467. To enable HTTP authentication without specifying "--http-auth-scheme"
  14468. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14469. * src/HttpConnection.cc (createRequest): Send Authorization header
  14470. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14471. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14472. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14473. * src/Peer.cc (shouldChoke): Updated algorithm.
  14474. * src/message.h (EX_AUTH_FAILED): New definition.
  14475. (EX_FILE_OPEN): New definition.
  14476. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14477. if status == 401.
  14478. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14479. if req->isTorrent == true.
  14480. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14481. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14482. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14483. (createFile): Updated message.
  14484. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14485. To add a readout of estimated remaining time to normal HTTP/FTP
  14486. downloads:
  14487. * src/ConsoleDownloadEngine.h (startup): New variable.
  14488. (startupLength): New variable.
  14489. (isStartupLengthSet): New variable.
  14490. (avgSpeed): New variable.
  14491. (eta): New variable.
  14492. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14493. estimated remaining time.
  14494. (initStatistics): Initialized newly added variables.
  14495. (calculateStatistics): Calculate average speed and estimated remaining
  14496. time.
  14497. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14498. * src/TrackerDownloadCommand.h: Removed.
  14499. * src/TrackerDownloadCommand.cc: Removed.
  14500. * src/TrackerInitCommand.h: Removed.
  14501. * src/TrackerInitCommand.cc: Removed.
  14502. * src/TrackerUpdateCommand.h: Removed.
  14503. * src/TrackerUpdateCommand.cc: Removed.
  14504. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14505. url written in TrackerInitCommand was moved here. Do not create
  14506. tracker request command if torrentMan->trackers != 0.
  14507. * src/CompactTrackerResponseProcessor.h: New class.
  14508. * src/CompactTrackerResponseProcessor.cc: New class.
  14509. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14510. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14511. Decoupled TorrentDownloadEngine from this.
  14512. * src/SegmentMan.h (init): New function.
  14513. * src/SegmentMan.cc (init): New function.
  14514. * src/TorrentMan.h (responseProcessor): New variable.
  14515. (trackers): New variable.
  14516. (setTrackerResponseProcessor): New function.
  14517. (getTrackerResponseProcessor): New function.
  14518. (processTrackerResponse): New function.
  14519. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14520. (processTrackerResponse): New function.
  14521. * src/main.cc (main): Use ByteArrayDiskWriter and
  14522. CompactTrackerResponseProcessor.
  14523. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14524. processTrackerResponse().
  14525. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14526. readout.
  14527. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14528. which indicates download has completed.
  14529. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14530. (closeFile): fd >= 0, not fd > 0
  14531. * src/main.cc (main): Added short cut for show-files.
  14532. Added short cut for torrent-file.
  14533. Added new command-line option listen-port.
  14534. Updated i18n messages.
  14535. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14536. To add LogFactory which creates singleton logger:
  14537. * src/LogFactory.h: New class.
  14538. * src/LogFactory.cc: New class.
  14539. * src/Command.h (logger): New variable.
  14540. (Constructor): Use LogFactory.
  14541. * src/AbstractCommand.cc: Use Command::logger
  14542. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  14543. Use LogFactory.
  14544. * src/SegmentSplitter.h : Made logger protected.
  14545. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  14546. * src/SegmentMan.cc (Constructor): Use LogFactory.
  14547. * src/DownloadEngine.h : Made logger protected.
  14548. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  14549. * src/PeerInteractionCommand.cc : Use Command::logger.
  14550. * src/HttpResponseCommand.cc : Use Command::logger.
  14551. * src/SegmentMan.h : Made logger private.
  14552. * src/TorrentMan.h : Made logger private.
  14553. * src/TorrentMan.cc : Use LogFactory.
  14554. * src/FtpNegotiateCommand.cc : Use Command::logger.
  14555. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  14556. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  14557. Use LogFactory.
  14558. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  14559. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  14560. Use LogFactory.
  14561. * src/DownloadCommand.cc : Use Command::logger.
  14562. * src/PeerAbstractCommand.cc : Use Command::logger.
  14563. * src/PeerListenCommand.cc : Use Command::logger.
  14564. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  14565. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  14566. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  14567. * src/TrackerWatcherCommand.cc : Use Command::logger.
  14568. * src/TrackerUpdateCommand.cc : Use Command::logger.
  14569. * src/TrackerDownloadCommand.cc : Use Command::logger.
  14570. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  14571. Use LogFactory.
  14572. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  14573. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  14574. Use LogFactory.
  14575. * src/main.cc (main): Use LogFactory.
  14576. * src/DiskAdaptor.h (logger): New variable.
  14577. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  14578. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  14579. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14580. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  14581. parameter to a tracker request.
  14582. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  14583. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  14584. * src/main.cc (setSignalHander): New function.
  14585. (main): Added a handler for SIGTERM.
  14586. (handler): Updated message.
  14587. (torrentHandler): Updated message.
  14588. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14589. * src/TorrentConsoleDownloadEngine.cc
  14590. (onPartialDownloadingCompletes): Renamed as
  14591. onSelectiveDownloadingCompletes.
  14592. (onSelectiveDownloadingCompletes): Updated message.
  14593. To add DiskAdaptor which abstract DiskWriter family:
  14594. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  14595. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  14596. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  14597. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  14598. MultiDiskAdaptor.h.
  14599. (readFileEntry): Changed its arguments.
  14600. (setup): setupDiskWriter is merged into this function.
  14601. (setupDiskWriter): Removed.
  14602. (setFileFilter): New function.
  14603. (readFileEntryFromMetaInfoFile): Updated according to the changes
  14604. made in readFileEntry.
  14605. (getFilePath): Removed.
  14606. (getTempFilePath): Removed.
  14607. (getSegmentFilePath): Updated due to the removal of getFilePath.
  14608. (fixFilename): Removed.
  14609. (copySingleFile): Removed.
  14610. (splitMultiFile): Removed.
  14611. (deleteTempFile): Removed.
  14612. (setFileEntriesToDownload): Removed.
  14613. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  14614. (isSelectiveDownloadingMode): New function.
  14615. (setAllMultiFileRequestedState): Removed.
  14616. (finishPartialDownloadingMode): Renamed as
  14617. finishSelectiveDownloadingMode.
  14618. (finishSelectiveDownloadingMode): New function.
  14619. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  14620. (getSelectedTotalLength): New function.
  14621. (onDownloadComplete): Use diskAdaptor.
  14622. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  14623. (Range): Removed.
  14624. (setMultiFileEntries): Renamed as setFileEntries.
  14625. (setFileEntries): New function.
  14626. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  14627. (pieceLength): New variable.
  14628. * src/main.cc (printDownloadCompeleteMessage): New function.
  14629. (torrentHandler): Use diskAdaptor instead of diskWriter.
  14630. (main): Renamed torrent-show-files to show-files.
  14631. Rewritten file contents listing.
  14632. * src/TorrentMan.h (FileEntry): Removed.
  14633. (multiFileTopDir): Removed.
  14634. (multiFileEntries): Removed.
  14635. (diskWriter): Removed.
  14636. (diskAdaptor): New variable.
  14637. * src/DefaultDiskWriter.h (totalLength): New variable.
  14638. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  14639. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  14640. diskWriter.
  14641. * src/TorrentConsoleDownloadEngine.h
  14642. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  14643. (partialTotalLength): Renamed as selectedTotalLength.
  14644. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  14645. openExistingFile, otherwise call initAndOpenFile.
  14646. (closeFile): fd > 0, not fd != 0.
  14647. * src/DirectDiskAdaptor.h: New class.
  14648. * src/DirectDiskAdaptor.cc: New class.
  14649. * src/MultiDiskAdaptor.h: New class.
  14650. * src/MultiDiskAdaptor.cc: New class.
  14651. * src/CopyDiskAdaptor.h: New class.
  14652. * src/CopyDiskAdaptor.cc: New class.
  14653. * src/DiskAdaptor.h: New class.
  14654. * src/DiskAdaptor.cc: New class.
  14655. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  14656. (PREF_SHOW_FILES): New definition.
  14657. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14658. To add the ability to download multi torrent into respective files
  14659. directly:
  14660. * src/DiskWriter.h (openFile): New function.
  14661. (seek): Removed.
  14662. * src/MultiDiskWriter.h: New class.
  14663. * src/MultiDiskWriter.cc: New class.
  14664. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  14665. protected.
  14666. (openFile): New function.
  14667. * src/AbstractDiskWriter.cc (openFile): New function.
  14668. * src/prefs.h (V_FALSE): New definition.
  14669. (PREF_DIRECT_FILE_MAPPING): New definition.
  14670. * src/TorrentMan.h (setupDiskWriter): New function.
  14671. (setAllMultiFileRequestedState): New function.
  14672. (onDownloadComplete): New function.
  14673. * src/TorrentMan.cc : Included MultiDiskWriter.h
  14674. (setupDiskWriter): New function.
  14675. (getFilePath): Updated.
  14676. (getTempFilePath): Updated.
  14677. (getSegmentFilePath): Updated.
  14678. (fixFilename): Updated.
  14679. (deleteTempFile): Updated.
  14680. (setAllMultiFileRequestedState): New function.
  14681. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  14682. (finishPartialDownloadingMode): Reset requested flags.
  14683. (onDownloadComplete): New function.
  14684. * src/main.cc: Added --direct-file-mapping option.
  14685. Use TorrentMan::setupDiskWriter().
  14686. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  14687. onDownloadComplete().
  14688. To fix ETA bug:
  14689. * src/Util.h (difftvsec): New function.
  14690. * src/Util.cc (difftvsec): New function.
  14691. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  14692. type of "elapsed" instead of long long int.
  14693. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  14694. The updates of statistics takes place every 1 seconds.
  14695. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  14696. (calculateSpeed): Changed its argument signature.
  14697. * src/PeerMessage.cc (toString): Fixed message.
  14698. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14699. To print ETA:
  14700. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  14701. completion handling when dealing with
  14702. TorrentMan::isPartialDownloadingMode() == true.
  14703. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  14704. New function.
  14705. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  14706. (sessionDownloadLength): New variable.
  14707. (avgSpeed): New variable.
  14708. (eta): New variable.
  14709. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  14710. new variables: eta, avgSpeed, startup.
  14711. (calculateSpeed): Calculate average speed and ETA.
  14712. (printStatistics): Added ETA.
  14713. * src/Util.h (secfmt): New function.
  14714. * src/Util.cc (secfmt): New function.
  14715. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14716. To detect "keep alive" flooding:
  14717. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  14718. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  14719. variable: keepAliveCount.
  14720. (detectMessageFlooding): Added "keep alive" flooding detection.
  14721. (receiveMessage): Increase keepAliveCount when "keep alive" message
  14722. received.
  14723. To add the ability to download only specified files in multi-file
  14724. torrent:
  14725. * src/BitfieldMan.h (filterBitfield): New variable.
  14726. (filterEnabled): New variable.
  14727. (setFilterBit): New function.
  14728. (enableFilter): New function.
  14729. (disableFilter): New function.
  14730. (isFilterEnabled): New function.
  14731. (getFilteredTotalLength): New function.
  14732. (getCompletedLength): New function.
  14733. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  14734. filterBitfield, filterEnabled.
  14735. (CopyConstructor): Added filterBitfield and filterEnabled.
  14736. (operator==): Added filterBitfield and filterEnabled.
  14737. (Destructor): Added filterBitfield.
  14738. (getMissingIndex): Use filterBitfield.
  14739. (getMissingUnusedIndex): Use filterBitfield.
  14740. (getFirstMissingUnusedIndex): Use filterBitfield.
  14741. (getFirstMissingUnusedIndex): Use filterBitfield.
  14742. (getAllMissingIndexes): Use filterBitfield.
  14743. (countMissingBlock): Use filterBitfield.
  14744. (countBlock): Use filterBitfield.
  14745. (setBitInternal): Added new argument on.
  14746. (setUseBit): Use setBitInternal.
  14747. (unsetUseBit): Use setBitInternal.
  14748. (setBit): Use setBitInternal.
  14749. (unsetBit): Use setBitInternal.
  14750. (isAllBitSet): Use filterBitfield.
  14751. (setFilterBit): New function.
  14752. (addFilter): New function.
  14753. (enableFilter): New function.
  14754. (disableFilter): New function.
  14755. (clearFilter): New function.
  14756. (isFilterEnabled): New function.
  14757. (getFilteredTotalLength): New function.
  14758. (getCompletedLength): New function.
  14759. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  14760. Initalized newly added variables.
  14761. [FileEntry](offset): New variable.
  14762. [FileEntry](extracted): New variable.
  14763. [FileEntry](requested): New variable.
  14764. (readFileEntry): New function.
  14765. (option): New variable.
  14766. (splitMultiFile): Removed const qualifier.
  14767. (fixFilename): Removed const qualifier.
  14768. (readFileEntryFromMetaInfoFile): New function.
  14769. (finishPartialDownloadingMode): New function.
  14770. (isPartialDownloadingMode): New function.
  14771. (setFileEntriesToDownload): New function.
  14772. (getCompletedLength): New function.
  14773. (getPartialTotalLength): New function.
  14774. * src/TorrentMan.cc (readFileEntry): New function.
  14775. (setup): Use readFileEntry. If no-preallocation option is specified,
  14776. use DefaultDiskWriter.
  14777. (readFileEntryFromMetaInfoFile): New function.
  14778. (fixFilename): Removed const qualifier.
  14779. (splitMultiFile): Removed const qualifier.
  14780. (setFileEntriesToDownload): New function.
  14781. (isPartialDownloadingMode): New function.
  14782. (finishPartialDownloadingMode): New function.
  14783. (getCompletedLength): New function.
  14784. (getPartialTotalLength): New function.
  14785. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  14786. New variable.
  14787. (partialTotalLength): New variable.
  14788. (downloadLength): New variable.
  14789. (totalLength): New variable.
  14790. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  14791. Added log.
  14792. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  14793. partialTotalLength, downloadLength, totalLength.
  14794. (calculate): Calculate downloadLength and totalLength.
  14795. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  14796. * src/main.cc (addCommand): Changed argument signature.
  14797. (main): Added new variable: args. Added new option "torrent-show-files"
  14798. "no-preallocation". Usage is not updated yet.
  14799. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14800. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  14801. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14802. Attempt to add the ability to listing file entries in a .torrent file.
  14803. This feature is not yet complete.
  14804. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  14805. * src/TorrentMan.cc (getMultiFileEntries): New function.
  14806. (getName): New function.
  14807. * src/TorrentMan.h (getMultiFileEntries): New function.
  14808. (getName): New function.
  14809. * src/main.cc (main): Use above 2 funtion.
  14810. * Release 0.3.2
  14811. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14812. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  14813. (detectMessageFlooding): Updated threshold value.
  14814. (checkLongTimePeerChoking): Updated timeout value.
  14815. (getNewPieceAndSendInterest): Added debug log.
  14816. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  14817. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  14818. (getPeer): Updated.
  14819. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  14820. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  14821. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  14822. is localhost.
  14823. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  14824. * src/PendingMessage.cc (processMessage): Not to send piece message
  14825. if peer is not interested in the pieces localhost has.
  14826. * src/Peer.cc (shouldChoke): Updated.
  14827. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14828. * src/Util.cc (isPowerOf): New function.
  14829. * src/Util.h (isPowerOf): New function.
  14830. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14831. whether or not it is power of 2.
  14832. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14833. Added new class SendMessageQueue that includes PendingMessages and
  14834. RequestSlotMan.
  14835. * src/SendMessageQueue.h: New class.
  14836. * src/SendMessageQueue.cc: New class.
  14837. * src/PendingMessage.h: Added new member variable blockIndex and its
  14838. accessors.
  14839. (createRequestMessage): Updated.
  14840. * src/PendingMessage.cc (createRequestMessage): Updated.
  14841. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14842. SendMessageQueue.
  14843. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14844. (receiveMessage): Updated with SendMessageQueue.
  14845. (deletePendingPieceMessage): Removed.
  14846. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14847. (sendInterest): Updated with SendMessageQueue.
  14848. (createRequestPendingMessage): Updated with SendMessageQueue.
  14849. (sendMessages): Updated with SendMessageQueue.
  14850. (onAbort): Updated with SendMessageQueue.
  14851. (keepAlive): Updated with SendMessageQueue.
  14852. (beforeSocketCheck): Updated SendMessageQueue.
  14853. * src/PeerInteractionCommand (sendMessages): Shuffle
  14854. missingBLockIndexes before using it.
  14855. Added its own timeout for peer connection.
  14856. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14857. setter.
  14858. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14859. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14860. Added setTimeout() call.
  14861. (executeInternal): Added setTimeout() call.
  14862. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14863. Added timeout.
  14864. (isTimeoutDetected): Updated.
  14865. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14866. option.
  14867. Added *simple* message flooding checker.
  14868. * src/PeerInteractionCommand.cc (executeInternal):
  14869. Added detectMessageFlooding() call.
  14870. (detectMessageFlooding): New function.
  14871. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14872. (beforeSocketCheck): Added detectMessageFlooding() call.
  14873. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14874. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14875. Removed deletePendingPieceMessage(), getRequestSlot(),
  14876. deleteRequestSlot(), deleteAllRequestSlot().
  14877. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14878. Added checkLongTimePeerChoking() call.
  14879. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14880. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14881. if duplicate == false.
  14882. The parameter "uploaded" and "downloaded" in the tracker request are
  14883. the size since the client sent the "started" event to the tracker.
  14884. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14885. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14886. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14887. getSessionDownloadedSize(), getSessionUploadedSize().
  14888. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14889. getSessionUploadedSize() instead of getDownloadedSize(),
  14890. getUploadedSize().
  14891. * src/PendingMessage.cc (processMessage): Do not send request message
  14892. if the peer is choking the client.
  14893. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14894. less than interval.
  14895. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14896. * configure.in: Added gnutls support. Added several CPP macros.
  14897. * m4/openssl.m4: Added.
  14898. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14899. readData(), peekData(). Added gnutls support.
  14900. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14901. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14902. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14903. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14904. Instead, added a check for whether setup method has executed
  14905. successfully.
  14906. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14907. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14908. * src/Makefile.am: Updated.
  14909. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14910. using whether OpenSSL or gcrypt, depending on the result of configure
  14911. script.
  14912. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14913. messageDigest.h.
  14914. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14915. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14916. Fixed memory leak.
  14917. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14918. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14919. Removed instantiation of TrackerInitCommand. Instead,
  14920. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14921. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14922. ENABLE_SSL.
  14923. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14924. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14925. If a piece is already acquired by another command, delete the request
  14926. slots for the piece.
  14927. * src/TrackerUpdateCommand.cc (execute):
  14928. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14929. Added a check whether peer list is null.
  14930. Fixed the bug that causes sending completed event to the tracker
  14931. several times.
  14932. * src/TrackerInitCommand.cc (execute):
  14933. Fixed the bug that causes sending completed event to the tracker
  14934. several times.
  14935. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14936. by using messageDigest.h.
  14937. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14938. * PeerConnection.cc: Replaced log message "keep-alive" with
  14939. "keep alive".
  14940. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14941. localhost long time.
  14942. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14943. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14944. at most 100 failure entry from the list. If with duplicate = false,
  14945. MAX_PEER_LIST is not checked.
  14946. * PeerListenCommand.cc: Fixed the argument order of log message.
  14947. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14948. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14949. Added warn().
  14950. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14951. Implemented warn().
  14952. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14953. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14954. * Request.h: Added AFTER_COMPLETED event.
  14955. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14956. instead of downloaded size and progress(%) after download completes.
  14957. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14958. message to the peer if it is interested in what localhost has
  14959. downloaded.
  14960. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14961. destination instead of just renaming it.
  14962. * TorrentMan.cc: Added deleteTempFile().
  14963. * PeerAbstractCommand.cc: do not stop execution after download
  14964. completes. This makes localhost a seeder.
  14965. * Util.{h,cc}: Added fileCopy().
  14966. * PeerListenCommand.cc: do not stop execution after download completes.
  14967. This makes localhost a seeder.
  14968. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14969. Added TorrentMan::deleteTempFile() to torrentHandler.
  14970. Initialized the variable dir as ".".
  14971. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14972. Deleted renameSingleFile().
  14973. Added copySingleFile(), deleteTempFile().
  14974. * DownloadEngine.h: Added virtual function afterEachIteration().
  14975. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14976. in onEndOfRun() to afterEachIteration().
  14977. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14978. true.
  14979. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14980. In rangedFileCopy(), added try-catch block to properly close file
  14981. descriptors.
  14982. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14983. Added afterEachIteration(), isFilenameFixed().
  14984. * Peer.cc: Changed choking strategy.
  14985. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14986. * TrackerInitCommand.cc: Send completed event only once.
  14987. * DownloadEngine.cc: Added a call to afterEachIteration().
  14988. * TrackerUpdateCommand.cc: Do not stop execution after download
  14989. completes.
  14990. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14991. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14992. received from a tracker.
  14993. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14994. Decreased the number of failure peers to delete to 0(just comment out
  14995. the line).
  14996. * Release 0.3.1
  14997. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14998. * PeerInteractionCommand.cc: added a call to
  14999. TorrentMan::unadvertisePiece in Destructor.
  15000. * PeerInteractionCommand.cc: make have message sent immediately
  15001. if the size of pending message queue is zero.
  15002. * TorrentMan.cc: set the maximum size of peer list to 250.
  15003. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15004. to deque.
  15005. * Util.cc: fixed rangedFileCopy.
  15006. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15007. to Constructor. Also, moved digest cleanup to Destructor.
  15008. * MetaFileUtil.cc: fixed memory leak
  15009. * replaced std::vector with std::deque.
  15010. * AbstractCommand.cc: casted timeout value to long long int.
  15011. * ChunkedEncoding.cc: fixed memory leak.
  15012. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15013. * SleepCommand.cc: casted timeout value to long long int.
  15014. * Data.cc: fixed memory leak.
  15015. * Data.cc: fixed toLLInt().
  15016. * BitfieldMan.cc: fixed memory leak.
  15017. * TorrentMan.cc: initialized storeDir to ".".
  15018. * TorrentMan.cc: fixed memory leak.
  15019. * TorrentMan.cc: corrected file paths of splitted files.
  15020. * PeerAbstractCommand.cc: casted timeout to long long int.
  15021. * main.cc: added delete(req) and delete(te->diskWriter).
  15022. * RequestSlot.cc: casted timeout value to long long int.
  15023. * Request.cc: fixed memory leak.
  15024. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15025. have the piece.
  15026. * Peer.{h,cc}: added hasPiece(int index).
  15027. * main.cc: corrected addCommand.
  15028. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15029. * BitTorrent protocol support added.
  15030. * Release 0.3.0
  15031. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15032. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15033. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15034. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15035. decoding did not work properly.
  15036. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15037. * DownloadEngine.h: included sys/time.h
  15038. * DownloadEngine.cc: remove sys/time.h
  15039. * Makefile.am (SUBDIRS): Add intl.
  15040. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15041. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15042. * main.cc: correct help message for --http-auth-scheme.
  15043. * main.cc: changed e-mail address for bug reports.
  15044. * ja.po: added japanese translation.
  15045. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15046. * SimpleLogger.cc: flush log file instead of stdout.
  15047. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15048. * main.cc: Fixed command-line option: max-tries
  15049. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15050. does not equal to seg.sp.
  15051. * DownloadCommand.cc: If EOF is got from the server and the total size
  15052. of file is not zero, then throw DlRetryEx.
  15053. * main.cc: Set the minium value of min-segment-size to 1024.
  15054. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15055. fails because of a regression since 0.2.0 release.
  15056. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15057. * HttpConnection.cc:
  15058. * common.h: defined the user agent name as macro
  15059. * DownloadEngine.{h, cc}:
  15060. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15061. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15062. * main.cc: Download complete/abort message is now generated by main.
  15063. * Makefile.am (SUBDIRS): Add m4.
  15064. (ACLOCAL_AMFLAGS): New variable.
  15065. (EXTRA_DIST): New variable.
  15066. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15067. * gettext: added gettext functionality
  15068. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15069. * AbstractCommand.cc:
  15070. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15071. unregister its cuid from SegmentMan.
  15072. * DownloadEngine.cc: .aria2 file was written when a downloading
  15073. failed with errors.
  15074. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15075. Added "User-Agent" header to CONNECT proxy request.
  15076. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15077. properly.
  15078. * Logger.h:
  15079. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15080. * ChunkedEncoding.cc: Added #include directive for strings.h
  15081. * Release 0.2.1
  15082. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15083. * Util.{h,cc}: added startsWith().
  15084. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15085. Util::endsWith().
  15086. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15087. * common.h: added #include directive of limit.h.
  15088. * DownloadEngine.cc: added #include directive of sys/time.h and
  15089. algorithm.
  15090. * Exception.h: added #include directive of stdio.h.
  15091. * AbstractCommand.h: added #include directive of sys/time.h.
  15092. * DownloadCommand.h: added #include directive of sys/time.h.
  15093. * *.h: added #include directive of common.h to all base classes.
  15094. subclasses' one was removed.
  15095. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15096. does not define these macros.
  15097. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15098. * Release 0.2.0
  15099. * main.cc:
  15100. * HttpInitiateConnectionCommand.{h,cc}:
  15101. * prefs.h:
  15102. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15103. We can now use GET command in http proxy.
  15104. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15105. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15106. that splits slowest segment of SegmentMan::commands vector.
  15107. This is the default split algorithm of aria2.
  15108. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15109. that splits first segment of SegmentMan::commands vector.
  15110. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15111. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15112. * Segment.h:
  15113. * SegmentMan.cc: Added speed field to Segment.h
  15114. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15115. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15116. * message.h: Change file size related %d to %lld.
  15117. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15118. * FtpInitiateConnectionCommand.{h,cc}:
  15119. * FtpNegotiationCommand.{h,cc}:
  15120. * FtpDownloadCommand.{h,cc}:
  15121. * FtpConnection.{h,cc}: Added FTP support
  15122. * SimpleLogger.cc: Log message now includes time information.
  15123. * main.cc: The value of --http-auth-scheme option is chagned from
  15124. 'BASIC' to 'basic'
  15125. * main.cc: Added --timeout command-line option.
  15126. * main.cc: Added --min-segment-size command-line option.
  15127. * main.cc: Added --max-retries command-line option.
  15128. * prefs.h: option string constants are now defined in prefs.h
  15129. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15130. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15131. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15132. with version 0.1.0's one.
  15133. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15134. * configure.in: Added --enable-ssl option to configure script.
  15135. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15136. cannot permit absoluteURI as Request-URI.
  15137. * HttpConnection.cc: Added Referer support.
  15138. * main.cc: Added referer command-line option.
  15139. * main.cc: Added rety-wait command-line option.
  15140. * Exception.h: Fixed formating bug in Exception::setMsg()
  15141. * SocketCore.{h,cc}:
  15142. * Socket.{h, cc}:
  15143. * Request.cc:
  15144. * InitiateConnectionCommandFactory.cc:
  15145. * HttpRequestCommand.cc: Added HTTPS support.
  15146. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15147. for SocketCore.
  15148. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15149. size is wrong
  15150. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15151. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15152. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15153. * Release 0.1.0