ChangeLog 594 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933
  1. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Made URI reusing function work.
  3. * src/CreateRequestCommand.cc
  4. * src/FileEntry.cc
  5. * src/FileEntry.h
  6. * test/FileEntryTest.cc
  7. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Add formerly fastest PeerStat's sessionDownloadLength to new
  9. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  10. bytes in a session.
  11. * src/PeerStat.cc
  12. * src/SegmentMan.cc
  13. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. If pipelining is enabled, we can always pool socket.
  15. * src/HttpDownloadCommand.cc
  16. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. In a single file download, file size becomes known just after
  18. downloading, set total length to FileEntry object when download
  19. completed.
  20. * src/DownloadCommand.cc
  21. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  22. Use std::vector::reserve() for fileEntries and pieceHashes in
  23. bittorrent_helper
  24. * src/bittorrent_helper.cc
  25. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  27. Removed hidden option PREF_RESET_URI.
  28. * src/AbstractCommand.cc
  29. * src/OptionHandlerFactory.cc
  30. * src/prefs.cc
  31. * src/prefs.h
  32. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Removed unused variable/function.
  34. * src/PeerStat.h
  35. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Show first URL in Download Results if file path is not available.
  37. * src/FileEntry.h
  38. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. Throw exception if file path doesn't exist in FTP URL.
  40. * src/InitiateConnectionCommandFactory.cc
  41. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  43. * src/BitfieldMan.cc
  44. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  46. of PeerStat in SegmentMan. peerStats is used for calculating
  47. download speed. Therefore all active PeerStats should be in
  48. there. Another one is _fastestPeerStats and it only contains
  49. fastest PeerStat for each hostname/protocol pair. They are used
  50. for updating ServerStat.
  51. * src/DownloadCommand.cc
  52. * src/Request.h
  53. * src/RequestGroupMan.cc
  54. * src/SegmentMan.cc
  55. * src/SegmentMan.h
  56. * test/SegmentManTest.cc
  57. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  58. Try all available addresses returned by DNS until it gets
  59. connected in HTTP(S)/FTP download
  60. * src/AbstractCommand.cc
  61. * src/AbstractCommand.h
  62. * src/AbstractProxyRequestCommand.cc
  63. * src/AbstractProxyRequestCommand.h
  64. * src/DNSCache.h
  65. * src/DownloadEngine.cc
  66. * src/DownloadEngine.h
  67. * src/FtpInitiateConnectionCommand.cc
  68. * src/FtpInitiateConnectionCommand.h
  69. * src/FtpNegotiationCommand.cc
  70. * src/FtpNegotiationCommand.h
  71. * src/HttpInitiateConnectionCommand.cc
  72. * src/HttpInitiateConnectionCommand.h
  73. * src/HttpRequestCommand.cc
  74. * src/HttpRequestCommand.h
  75. * src/InitiateConnectionCommand.cc
  76. * src/InitiateConnectionCommand.h
  77. * test/DNSCacheTest.cc
  78. * test/Makefile.am
  79. * test/SimpleDNSCacheTest.cc
  80. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Updated doc
  82. * src/download_helper.cc
  83. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Refactored fieldMan ctor.
  85. * src/BitfieldMan.cc
  86. * src/BitfieldMan.h
  87. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Don't print "No files to download." message if -S is given.
  89. * src/main.cc
  90. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Set referer and method to newly created Request object.
  92. * src/CreateRequestCommand.cc
  93. * src/FileEntry.cc
  94. * src/FileEntry.h
  95. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Removed ctor of AbstractCommand which doesn't take FileEntry.
  97. * src/AbstractCommand.cc
  98. * src/AbstractCommand.h
  99. * src/CreateRequestCommand.cc
  100. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Get proxy download working
  102. * src/AbstractProxyRequestCommand.cc
  103. * src/AbstractProxyRequestCommand.h
  104. * src/AbstractProxyResponseCommand.cc
  105. * src/AbstractProxyResponseCommand.h
  106. * src/FtpInitiateConnectionCommand.cc
  107. * src/FtpTunnelRequestCommand.cc
  108. * src/FtpTunnelRequestCommand.h
  109. * src/FtpTunnelResponseCommand.cc
  110. * src/FtpTunnelResponseCommand.h
  111. * src/HttpInitiateConnectionCommand.cc
  112. * src/HttpProxyRequestCommand.cc
  113. * src/HttpProxyRequestCommand.h
  114. * src/HttpProxyResponseCommand.cc
  115. * src/HttpProxyResponseCommand.h
  116. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  117. Use SegmentMan::getSegment(cuid) for single file download.
  118. * src/AbstractCommand.cc
  119. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Fixed bufSize calculation
  121. * src/DownloadCommand.cc
  122. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Don't append "/" if base URI ends with "/".
  124. * src/bittorrent_helper.cc
  125. * test/url-list-multiFile.torrent
  126. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. HTTP pipelining is now working. Fixed Segmention fault in
  128. BitfieldMan's copy ctor.
  129. * src/AbstractCommand.cc
  130. * src/BitfieldMan.cc
  131. * src/BitfieldMan.h
  132. * src/DownloadCommand.cc
  133. * src/HttpDownloadCommand.cc
  134. * src/HttpRequest.cc
  135. * src/SegmentMan.cc
  136. * src/SegmentMan.h
  137. * test/BitfieldManTest.cc
  138. * test/SegmentManTest.cc
  139. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Removed ServerHost. Same functionality is implemented using
  141. FileEntry's in-flight Request objects.
  142. * src/AbstractCommand.cc
  143. * src/BtDependency.cc
  144. * src/CreateRequestCommand.cc
  145. * src/FileEntry.cc
  146. * src/FileEntry.h
  147. * src/FtpNegotiationCommand.cc
  148. * src/HttpResponseCommand.cc
  149. * src/Makefile.am
  150. * src/Metalink2RequestGroup.cc
  151. * src/RequestGroup.cc
  152. * src/RequestGroup.h
  153. * src/ServerHost.cc: Removed
  154. * src/ServerHost.h: Removed
  155. * test/BtDependencyTest.cc
  156. * test/FileEntryTest.cc
  157. * test/RequestGroupTest.cc
  158. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  159. Rewritten PeerStat handling. In the previous implementation,
  160. faster command tries to find slower command. In this new
  161. implementation, slower command tries to find faster command.
  162. PeerStat is now created in each HTTP/FTP request to get download
  163. rate correctly. If the download range is small, the download rate
  164. tends to small and this will occur at the later stage of download.
  165. * src/AbstractCommand.cc
  166. * src/DownloadCommand.cc
  167. * src/FileEntry.cc
  168. * src/FileEntry.h
  169. * src/Request.cc
  170. * src/Request.h
  171. * src/RequestGroup.h
  172. * src/RequestGroupMan.cc
  173. * src/SegmentMan.cc
  174. * src/SegmentMan.h
  175. * test/SegmentManTest.cc
  176. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Removed _uris from RequestGroup. All functions that refer to _uris
  178. were moved to FileEntry. Exit status code are now defined in
  179. DownloadResultCode.h.
  180. * src/AbstractCommand.cc
  181. * src/AdaptiveURISelector.cc
  182. * src/AdaptiveURISelector.h
  183. * src/AutoSaveCommand.cc
  184. * src/BtPostDownloadHandler.cc
  185. * src/CheckIntegrityDispatcherCommand.cc
  186. * src/CookieStorage.cc
  187. * src/DHTAutoSaveCommand.cc
  188. * src/DHTBucketRefreshCommand.cc
  189. * src/DHTEntryPointNameResolveCommand.cc
  190. * src/DHTInteractionCommand.cc
  191. * src/DHTPeerAnnounceCommand.cc
  192. * src/DHTTokenUpdateCommand.cc
  193. * src/DlAbortEx.h
  194. * src/DlRetryEx.h
  195. * src/DownloadCommand.cc
  196. * src/DownloadContext.h
  197. * src/DownloadFailureException.h
  198. * src/DownloadResult.h
  199. * src/DownloadResultCode.h
  200. * src/FeedbackURISelector.cc
  201. * src/FeedbackURISelector.h
  202. * src/FileEntry.cc
  203. * src/FileEntry.h
  204. * src/FtpNegotiationCommand.cc
  205. * src/HttpListenCommand.cc
  206. * src/HttpResponseCommand.cc
  207. * src/HttpServerResponseCommand.cc
  208. * src/HttpSkipResponseCommand.cc
  209. * src/InOrderURISelector.cc
  210. * src/InOrderURISelector.h
  211. * src/Makefile.am
  212. * src/Makefile.in
  213. * src/Metalink2RequestGroup.cc
  214. * src/MultiUrlRequestInfo.cc
  215. * src/MultiUrlRequestInfo.h
  216. * src/OptionHandlerFactory.cc
  217. * src/PeerListenCommand.cc
  218. * src/RecoverableException.h
  219. * src/RequestGroup.cc
  220. * src/RequestGroup.h
  221. * src/RequestGroupMan.cc
  222. * src/RequestGroupMan.h
  223. * src/TimedHaltCommand.cc
  224. * src/TrackerWatcherCommand.cc
  225. * src/URIResult.cc
  226. * src/URIResult.h
  227. * src/URISelector.h
  228. * src/XmlRpcMethodImpl.cc
  229. * src/bittorrent_helper.cc
  230. * src/bittorrent_helper.h
  231. * src/download_helper.cc
  232. * src/main.cc
  233. * src/option_processing.cc
  234. * test/BtDependencyTest.cc
  235. * test/BtPostDownloadHandlerTest.cc
  236. * test/CookieStorageTest.cc
  237. * test/DefaultBtMessageDispatcherTest.cc
  238. * test/DownloadHandlerFactoryTest.cc
  239. * test/DownloadHelperTest.cc
  240. * test/FeedbackURISelectorTest.cc
  241. * test/FileEntryTest.cc
  242. * test/InOrderURISelectorTest.cc
  243. * test/Metalink2RequestGroupTest.cc
  244. * test/MetalinkPostDownloadHandlerTest.cc
  245. * test/RequestGroupManTest.cc
  246. * test/RequestGroupTest.cc
  247. * test/XmlRpcMethodTest.cc
  248. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Removed MockBtContext.h
  250. * test/Makefile.am
  251. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Removed _currentRequest from StreamCheckIntegrityEntry and
  253. StreamFileAllocationEntry.
  254. * src/AbstractCommand.cc
  255. * src/HttpResponseCommand.cc
  256. * src/RequestGroup.cc
  257. * src/StreamCheckIntegrityEntry.cc
  258. * src/StreamCheckIntegrityEntry.h
  259. * src/StreamFileAllocationEntry.cc
  260. * src/StreamFileAllocationEntry.h
  261. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Rewritten DownloadContext and removed SingleFileDownloadContext
  263. and BtContext and its derived classes. BitTorrent specific
  264. attributes are now set by DownloadContext::setAttribute() with key
  265. bittorrent::BITTORRENT.
  266. * src/AbstractBtMessage.cc
  267. * src/AbstractBtMessage.h
  268. * src/AbstractCommand.cc
  269. * src/AbstractCommand.h
  270. * src/AbstractProxyRequestCommand.cc
  271. * src/AbstractProxyResponseCommand.cc
  272. * src/ActivePeerConnectionCommand.cc
  273. * src/ActivePeerConnectionCommand.h
  274. * src/AnnounceList.cc
  275. * src/BtCheckIntegrityEntry.cc
  276. * src/BtConstants.h
  277. * src/BtContext.h: Removed
  278. * src/BtDependency.cc
  279. * src/BtExtendedMessage.cc
  280. * src/BtPieceMessage.cc
  281. * src/BtPieceMessage.h
  282. * src/BtPostDownloadHandler.cc
  283. * src/BtRegistry.cc
  284. * src/BtRegistry.h
  285. * src/BtSetup.cc
  286. * src/CheckIntegrityCommand.cc
  287. * src/CheckIntegrityEntry.cc
  288. * src/ChecksumCheckIntegrityEntry.cc
  289. * src/ConsoleStatCalc.cc
  290. * src/ContentTypeRequestGroupCriteria.cc
  291. * src/DHTGetPeersCommand.cc
  292. * src/DHTGetPeersCommand.h
  293. * src/DHTPeerLookupTask.cc
  294. * src/DHTPeerLookupTask.h
  295. * src/DHTTaskFactory.h
  296. * src/DHTTaskFactoryImpl.cc
  297. * src/DHTTaskFactoryImpl.h
  298. * src/DefaultBtAnnounce.cc
  299. * src/DefaultBtAnnounce.h
  300. * src/DefaultBtContext.cc: Removed
  301. * src/DefaultBtContext.h: Removed
  302. * src/DefaultBtInteractive.cc
  303. * src/DefaultBtInteractive.h
  304. * src/DefaultBtMessageDispatcher.cc
  305. * src/DefaultBtMessageDispatcher.h
  306. * src/DefaultBtMessageFactory.cc
  307. * src/DefaultBtMessageFactory.h
  308. * src/DefaultBtMessageReceiver.cc
  309. * src/DefaultBtMessageReceiver.h
  310. * src/DefaultBtProgressInfoFile.cc
  311. * src/DefaultBtRequestFactory.cc
  312. * src/DefaultBtRequestFactory.h
  313. * src/DefaultExtensionMessageFactory.cc
  314. * src/DefaultExtensionMessageFactory.h
  315. * src/DefaultPeerStorage.cc
  316. * src/DefaultPeerStorage.h
  317. * src/DefaultPieceStorage.cc
  318. * src/DefaultSegmentManFactory.cc
  319. * src/DiskAdaptor.cc
  320. * src/DiskAdaptor.h
  321. * src/DownloadContext.cc
  322. * src/DownloadContext.h
  323. * src/DownloadEngine.cc
  324. * src/DownloadEngineFactory.cc
  325. * src/DownloadHandler.cc
  326. * src/DownloadResult.h
  327. * src/FileAllocationCommand.cc
  328. * src/FileAllocationDispatcherCommand.cc
  329. * src/FileAllocationEntry.cc
  330. * src/FileEntry.h
  331. * src/FillRequestGroupCommand.cc
  332. * src/FtpDownloadCommand.cc
  333. * src/FtpFinishDownloadCommand.cc
  334. * src/FtpInitiateConnectionCommand.cc
  335. * src/FtpNegotiationCommand.cc
  336. * src/FtpTunnelRequestCommand.cc
  337. * src/FtpTunnelResponseCommand.cc
  338. * src/HandshakeExtensionMessage.cc
  339. * src/HandshakeExtensionMessage.h
  340. * src/HaveEraseCommand.cc
  341. * src/HttpDownloadCommand.cc
  342. * src/HttpInitiateConnectionCommand.cc
  343. * src/HttpProxyRequestCommand.cc
  344. * src/HttpProxyResponseCommand.cc
  345. * src/HttpRequest.cc
  346. * src/HttpRequest.h
  347. * src/HttpRequestCommand.cc
  348. * src/HttpResponseCommand.cc
  349. * src/HttpServerBodyCommand.cc
  350. * src/HttpServerCommand.cc
  351. * src/HttpSkipResponseCommand.cc
  352. * src/InitiateConnectionCommandFactory.cc
  353. * src/InitiatorMSEHandshakeCommand.cc
  354. * src/InitiatorMSEHandshakeCommand.h
  355. * src/IteratableChecksumValidator.cc
  356. * src/IteratableChecksumValidator.h
  357. * src/IteratableChunkChecksumValidator.cc
  358. * src/MSEHandshake.cc
  359. * src/MSEHandshake.h
  360. * src/Makefile.am
  361. * src/Makefile.in
  362. * src/Metalink2RequestGroup.cc
  363. * src/MetalinkPostDownloadHandler.cc
  364. * src/MultiDiskAdaptor.cc
  365. * src/MultiDiskAdaptor.h
  366. * src/MultiFileAllocationIterator.cc
  367. * src/MultiUrlRequestInfo.cc
  368. * src/PeerChokeCommand.cc
  369. * src/PeerChokeCommand.h
  370. * src/PeerInitiateConnectionCommand.cc
  371. * src/PeerInitiateConnectionCommand.h
  372. * src/PeerInteractionCommand.cc
  373. * src/PeerInteractionCommand.h
  374. * src/PeerReceiveHandshakeCommand.cc
  375. * src/PieceHashCheckIntegrityEntry.cc
  376. * src/RealtimeCommand.cc
  377. * src/ReceiverMSEHandshakeCommand.cc
  378. * src/RequestGroup.cc
  379. * src/RequestGroup.h
  380. * src/RequestGroupEntry.cc
  381. * src/RequestGroupMan.cc
  382. * src/SeedCheckCommand.cc
  383. * src/SeedCheckCommand.h
  384. * src/SegmentMan.cc
  385. * src/ShareRatioSeedCriteria.h
  386. * src/SingleFileDownloadContext.cc: Removed
  387. * src/SingleFileDownloadContext.h: Removed
  388. * src/SleepCommand.cc
  389. * src/StreamCheckIntegrityEntry.cc
  390. * src/TrackerWatcherCommand.cc
  391. * src/TrackerWatcherCommand.h
  392. * src/UnknownLengthPieceStorage.cc
  393. * src/Util.cc
  394. * src/Util.h
  395. * src/XmlRpcMethodImpl.cc
  396. * src/bittorrent_helper.cc
  397. * src/bittorrent_helper.h
  398. * src/download_helper.cc
  399. * src/main.cc
  400. * src/option_processing.cc
  401. * test/BitfieldManTest.cc
  402. * test/BittorrentHelperTest.cc
  403. * test/BtCancelMessageTest.cc
  404. * test/BtChokeMessageTest.cc
  405. * test/BtDependencyTest.cc
  406. * test/BtPieceMessageTest.cc
  407. * test/BtPostDownloadHandlerTest.cc
  408. * test/BtRegistryTest.cc
  409. * test/BtRejectMessageTest.cc
  410. * test/BtRequestMessageTest.cc
  411. * test/DHTPeerAnnounceStorageTest.cc
  412. * test/DefaultBtAnnounceTest.cc
  413. * test/DefaultBtContextTest.cc: Removed
  414. * test/DefaultBtMessageDispatcherTest.cc
  415. * test/DefaultBtMessageFactoryTest.cc
  416. * test/DefaultBtProgressInfoFileTest.cc
  417. * test/DefaultBtRequestFactoryTest.cc
  418. * test/DefaultExtensionMessageFactoryTest.cc
  419. * test/DefaultPeerStorageTest.cc
  420. * test/DefaultPieceStorageTest.cc
  421. * test/DirectDiskAdaptorTest.cc
  422. * test/DownloadContextTest.cc
  423. * test/DownloadHandlerFactoryTest.cc
  424. * test/DownloadHelperTest.cc
  425. * test/HandshakeExtensionMessageTest.cc
  426. * test/HttpRequestTest.cc
  427. * test/HttpResponseTest.cc
  428. * test/IteratableChecksumValidatorTest.cc
  429. * test/IteratableChunkChecksumValidatorTest.cc
  430. * test/MSEHandshakeTest.cc
  431. * test/Makefile.am
  432. * test/Makefile.in
  433. * test/Metalink2RequestGroupTest.cc
  434. * test/MetalinkPostDownloadHandlerTest.cc
  435. * test/MockBtContext.h: Removed
  436. * test/MockDHTTaskFactory.h
  437. * test/MockDownloadContext.h: Removed
  438. * test/MockPieceStorage.h
  439. * test/MultiDiskAdaptorTest.cc
  440. * test/MultiFileAllocationIteratorTest.cc
  441. * test/RequestGroupManTest.cc
  442. * test/RequestGroupTest.cc
  443. * test/SegmentManTest.cc
  444. * test/ShareRatioSeedCriteriaTest.cc
  445. * test/SingleFileDownloadContextTest.cc: Removed
  446. * test/UtilTest.cc
  447. * test/XmlRpcMethodTest.cc
  448. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Added experimental support of WEB-Seeding for multi-file torrent.
  450. Due to fundamental changes in file handling in HTTP/FTP code, many
  451. functions are not working: PeerStat, ServerHost, proxy..etc
  452. * src/AbstractCommand.cc
  453. * src/AbstractCommand.h
  454. * src/BitfieldMan.cc
  455. * src/BitfieldMan.h
  456. * src/CreateRequestCommand.cc
  457. * src/CreateRequestCommand.h
  458. * src/DefaultPieceStorage.cc
  459. * src/DefaultPieceStorage.h
  460. * src/DownloadCommand.cc
  461. * src/DownloadCommand.h
  462. * src/DownloadContext.cc
  463. * src/DownloadContext.h
  464. * src/FileEntry.cc
  465. * src/FileEntry.h
  466. * src/FtpDownloadCommand.cc
  467. * src/FtpDownloadCommand.h
  468. * src/FtpFinishDownloadCommand.cc
  469. * src/FtpFinishDownloadCommand.h
  470. * src/FtpInitiateConnectionCommand.cc
  471. * src/FtpInitiateConnectionCommand.h
  472. * src/FtpNegotiationCommand.cc
  473. * src/FtpNegotiationCommand.h
  474. * src/FtpTunnelResponseCommand.cc
  475. * src/HttpDownloadCommand.cc
  476. * src/HttpDownloadCommand.h
  477. * src/HttpInitiateConnectionCommand.cc
  478. * src/HttpInitiateConnectionCommand.h
  479. * src/HttpProxyResponseCommand.cc
  480. * src/HttpRequest.cc
  481. * src/HttpRequest.h
  482. * src/HttpRequestCommand.cc
  483. * src/HttpRequestCommand.h
  484. * src/HttpResponseCommand.cc
  485. * src/HttpResponseCommand.h
  486. * src/HttpSkipResponseCommand.cc
  487. * src/HttpSkipResponseCommand.h
  488. * src/InitiateConnectionCommand.cc
  489. * src/InitiateConnectionCommand.h
  490. * src/InitiateConnectionCommandFactory.cc
  491. * src/InitiateConnectionCommandFactory.h
  492. * src/Makefile.am
  493. * src/PieceStorage.h
  494. * src/RequestGroup.cc
  495. * src/RequestGroup.h
  496. * src/RequestGroupMan.cc
  497. * src/SegmentMan.cc
  498. * src/SegmentMan.h
  499. * src/SingleFileDownloadContext.h
  500. * src/StreamFileAllocationEntry.cc
  501. * src/TrackerWatcherCommand.cc
  502. * src/UnknownLengthPieceStorage.cc
  503. * src/UnknownLengthPieceStorage.h
  504. * src/array_fun.h
  505. * src/bitfield.h
  506. * src/download_helper.cc
  507. * test/DownloadContextTest.cc
  508. * test/Makefile.am
  509. * test/MockDownloadContext.h
  510. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Added tellWaiting XML-RPC method.
  512. * src/SingleFileDownloadContext.cc
  513. * src/XmlRpcMethodFactory.cc
  514. * src/XmlRpcMethodImpl.cc
  515. * src/XmlRpcMethodImpl.h
  516. * test/XmlRpcMethodTest.cc
  517. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Updated CookieStorageTest
  519. * test/CookieStorageTest.cc
  520. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  522. handle excepion inside these functions.
  523. * src/LibgnutlsTLSContext.cc
  524. * src/LibgnutlsTLSContext.h
  525. * src/LibsslTLSContext.cc
  526. * src/LibsslTLSContext.h
  527. * src/MultiUrlRequestInfo.cc
  528. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Added comment
  530. * src/RequestGroup.cc
  531. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  532. In CookieStorage::load() and saveNsFormat(), handle exception
  533. inside the functions. When saving Cookies, first write temporary
  534. file and after successful writes, then renames it to final
  535. destination.
  536. * src/CookieStorage.cc
  537. * src/CookieStorage.h
  538. * src/MultiUrlRequestInfo.cc
  539. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. The default value of --dir option is the absolute path to the
  541. current directory. If getcwd() is failed, then it is ".", which is
  542. the same value with old implementation. This change is necessary
  543. because after daemon() call, the current working directory is
  544. changed to /.
  545. * src/File.cc
  546. * src/File.h
  547. * src/OptionHandlerFactory.cc
  548. * src/option_processing.cc
  549. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Call daemon() with arguments(0,0), which means daemon() changes
  551. current working directory to / and redirects stdin, stdout and
  552. stderr to /dev/null.
  553. * src/option_processing.cc
  554. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Small performance optimizations.
  556. * src/RequestGroupMan.cc
  557. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Added _xmlRpc member variable to RequestGroupMan to reduce the
  559. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  560. * src/RequestGroupMan.cc
  561. * src/RequestGroupMan.h
  562. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  564. setNoWiat(true) if newly created command calls
  565. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  566. * src/HttpListenCommand.cc
  567. * src/HttpServerBodyCommand.cc
  568. * src/HttpServerCommand.cc
  569. * src/HttpServerResponseCommand.cc
  570. * src/InitiateConnectionCommand.cc
  571. * src/RequestGroup.cc
  572. * src/StreamFileAllocationEntry.cc
  573. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Removed include vector
  575. * src/BtRegistry.h
  576. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  577. Rewritten BtRegistry
  578. * src/BtRegistry.cc
  579. * src/BtRegistry.h
  580. * src/BtSetup.cc
  581. * src/ConsoleStatCalc.cc
  582. * src/PeerInteractionCommand.cc
  583. * src/PeerReceiveHandshakeCommand.cc
  584. * src/ReceiverMSEHandshakeCommand.cc
  585. * src/RequestGroup.cc
  586. * src/XmlRpcMethodImpl.cc
  587. * test/BtRegistryTest.cc
  588. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  590. * src/DefaultBtProgressInfoFile.cc
  591. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Throw an exception if position is less than 0.
  593. * src/XmlRpcMethodImpl.cc
  594. * test/XmlRpcMethodTest.cc
  595. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Use writeFilePath() in ConsoleStatCalc.cc
  597. * src/ConsoleStatCalc.cc
  598. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Receive the return value as const reference from
  600. DownloadContext::getFileEntries().
  601. * src/DefaultPieceStorage.cc
  602. * src/RequestGroupMan.cc
  603. * src/XmlRpcMethodImpl.cc
  604. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. DownloadContext now has _fileEntries so that
  606. DownloadContext::getFileEntries() can returns its const reference.
  607. * src/DefaultBtContext.cc
  608. * src/DefaultBtContext.h
  609. * src/DownloadContext.cc
  610. * src/DownloadContext.h
  611. * src/SingleFileDownloadContext.cc
  612. * src/SingleFileDownloadContext.h
  613. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  615. writeFilePath() function template from RequestGroupMan.cc to
  616. FileEntry.h
  617. * src/FileEntry.h
  618. * src/RequestGroupMan.cc
  619. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  620. Documented 'position' parameter is starting from 0 in man page.
  621. * doc/aria2c.1.txt
  622. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  623. Updated doc.
  624. * src/MSEHandshake.cc
  625. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Removed _acceptFeatures and its accessor functions from
  627. RequestGroup since they are not used practically.
  628. * src/HttpRequestCommand.cc
  629. * src/RequestGroup.cc
  630. * src/RequestGroup.h
  631. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Removed member _maxTries from RequestGroup class to avoid
  633. duplicate option value. Those classes who refer this variable
  634. should use option value of PREF_MAX_TRIES directly.
  635. * src/AbstractCommand.cc
  636. * src/RequestGroup.cc
  637. * src/RequestGroup.h
  638. * src/TrackerWatcherCommand.cc
  639. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. * Release 1.4.1
  641. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Fixed compiler warnings on netbsd
  643. * src/DHTConnectionImpl.cc
  644. * src/PeerListenCommand.cc
  645. * src/PeerSessionResource.cc
  646. * src/SegmentMan.cc
  647. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Updated Ukrainian translation. Thanks to all translators.
  649. * po/uk.po
  650. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Bump up version number to 1.4.1.
  652. * configure.ac
  653. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  654. Added unit tests for strjoin, strconcat and strappend.
  655. * test/a2functionalTest.cc
  656. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. Rewritten strconcat and strappend using operator+ instead of
  658. append().
  659. * src/a2functional.h
  660. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  662. is enabled.
  663. * src/Makefile.am
  664. * test/Makefile.am
  665. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Added countSeeder() function which counts seeder in the given
  667. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  668. * src/ConsoleStatCalc.cc
  669. * src/Peer.h
  670. * src/XmlRpcMethodImpl.cc
  671. * test/PeerTest.cc
  672. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  673. Documented missing seeder in getPeers xml-rpc method.
  674. Documented uploadLength and numSeeders.
  675. * doc/aria2c.1.txt
  676. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  677. Added uploadLength and numSeeders to the response of tellStatus
  678. xml-rpc method. Assert that PeerStorage instance is not null
  679. instead of checking if statement. It should be non-null in this
  680. context.
  681. * src/XmlRpcMethodImpl.cc
  682. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  683. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  684. * src/XmlRpcResponse.cc
  685. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  686. Avoid intermediate object during string concatenation.
  687. * src/HttpRequest.cc
  688. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Added strjoin function template. Use it in pathJoin()
  690. * src/Util.h
  691. * src/a2functional.h
  692. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Avoid intermediate object during string concatenation. Replaced
  694. post-increment unary operator with pre-increment one in for loop.
  695. * src/AdaptiveURISelector.cc
  696. * src/AnnounceList.cc
  697. * src/AuthConfig.h
  698. * src/BtBitfieldMessage.cc
  699. * src/BtExtendedMessage.cc
  700. * src/BtHandshakeMessage.cc
  701. * src/BtPieceMessage.cc
  702. * src/BtPortMessage.cc
  703. * src/Cookie.cc
  704. * src/DHTAnnouncePeerMessage.cc
  705. * src/DHTAutoSaveCommand.cc
  706. * src/DHTGetPeersReplyMessage.cc
  707. * src/DHTNode.cc
  708. * src/DHTQueryMessage.cc
  709. * src/DHTResponseMessage.cc
  710. * src/DHTUnknownMessage.cc
  711. * src/DefaultBtAnnounce.cc
  712. * src/DefaultBtContext.cc
  713. * src/DefaultBtInteractive.cc
  714. * src/DefaultBtProgressInfoFile.cc
  715. * src/DefaultPeerStorage.cc
  716. * src/DownloadEngine.cc
  717. * src/FeatureConfig.cc
  718. * src/File.cc
  719. * src/FtpConnection.cc
  720. * src/FtpNegotiationCommand.cc
  721. * src/HandshakeExtensionMessage.cc
  722. * src/HttpConnection.cc
  723. * src/HttpRequest.cc
  724. * src/HttpResponseCommand.cc
  725. * src/HttpServer.cc
  726. * src/IndexBtMessage.cc
  727. * src/Metalink2RequestGroup.cc
  728. * src/OptionHandlerImpl.h
  729. * src/PStringBuildVisitor.cc
  730. * src/Peer.cc
  731. * src/PeerListenCommand.cc
  732. * src/Piece.cc
  733. * src/RangeBtMessage.cc
  734. * src/Request.cc
  735. * src/Request.h
  736. * src/RequestGroup.cc
  737. * src/RequestGroupMan.cc
  738. * src/ServerStat.cc
  739. * src/ServerStatMan.cc
  740. * src/UTPexExtensionMessage.cc
  741. * src/Util.cc
  742. * src/a2functional.h
  743. * src/download_helper.cc
  744. * src/messageDigest.cc
  745. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Unchoke a peer randomly at first and second choke round in seed
  747. state.
  748. * src/BtSeederStateChoke.cc
  749. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  750. Added (sock_t) to quiet compiler warnings in MinGW
  751. * src/SocketCore.cc
  752. * src/SocketCore.h
  753. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  754. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  755. * src/EpollEventPoll.h
  756. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  757. Added fork() emulation using CreateProcess() in MinGW
  758. * src/RequestGroupMan.cc
  759. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. * Release 1.4.0
  761. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  762. Added utf8.torrent to EXTRA_DIST
  763. * test/Makefile.am
  764. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  765. Fixed docs of aria2.addMetalink xml-rpc method.
  766. * doc/aria2c.1.txt
  767. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  768. Added Slovak translation. Updated Ukrainian and Brazilian
  769. Portuguese translation. Thanks to all translators.
  770. * po/sk.po
  771. * po/uk.po
  772. * po/pt_BR.po
  773. * po/LINGUAS
  774. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Added test case for XmlRpcProcessor to fail to parse malformed
  776. document.
  777. * test/XmlRpcRequestProcessorTest.cc
  778. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Removed *.gmo files in po because they are generated on 'make
  780. dist'
  781. * po/*.gmo
  782. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Documented max-concurrent-downloads of changeGlobalOption method
  784. in man page.
  785. * doc/aria2c.1.txt
  786. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  787. Added max-concurrent-downloads option to changeGlobalOption
  788. xml-rpc method. Rewritten loop conditional in
  789. RequestGroupMan::fillRequestGroupFromReserver().
  790. * src/RequestGroupMan.cc
  791. * src/RequestGroupMan.h
  792. * src/XmlRpcMethod.cc
  793. * src/XmlRpcMethodImpl.cc
  794. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  795. Documented position parameter in man page.
  796. * doc/aria2c.1.txt
  797. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Added 'position' parameter to addUri, addTorrent and addMetalink
  799. xml-rpc method.
  800. * src/RequestGroupMan.cc
  801. * src/RequestGroupMan.h
  802. * src/XmlRpcMethodImpl.cc
  803. * test/XmlRpcMethodTest.cc
  804. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Removed Peer.cc from compile source list when --disable-bittorrent
  806. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  807. takes Peer.
  808. * src/DefaultPieceStorage.cc
  809. * src/DefaultPieceStorage.h
  810. * src/Makefile.am
  811. * src/PieceStorage.h
  812. * src/UnknownLengthPieceStorage.cc
  813. * src/UnknownLengthPieceStorage.h
  814. * test/MockPieceStorage.h
  815. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Implemented getter methods in header files to give them more
  817. chance of optimization.
  818. Return const reference for SharadHandle if possible.
  819. * src/AbstractAuthResolver.cc
  820. * src/AbstractAuthResolver.h
  821. * src/AbstractBtMessage.cc
  822. * src/AbstractBtMessage.h
  823. * src/AbstractSingleDiskAdaptor.cc
  824. * src/AbstractSingleDiskAdaptor.h
  825. * src/AsyncNameResolver.cc
  826. * src/AsyncNameResolver.h
  827. * src/BNode.cc
  828. * src/BNode.h
  829. * src/BitfieldMan.cc
  830. * src/BitfieldMan.h
  831. * src/BtAbortOutstandingRequestEvent.h
  832. * src/BtExtendedMessage.cc
  833. * src/BtExtendedMessage.h
  834. * src/BtSeederStateChoke.cc
  835. * src/BtSeederStateChoke.h
  836. * src/Cookie.cc
  837. * src/Cookie.h
  838. * src/DHTBucket.cc
  839. * src/DHTBucket.h
  840. * src/DHTConnectionImpl.cc
  841. * src/DHTConnectionImpl.h
  842. * src/DHTFindNodeReplyMessage.cc
  843. * src/DHTFindNodeReplyMessage.h
  844. * src/DHTGetPeersReplyMessage.cc
  845. * src/DHTGetPeersReplyMessage.h
  846. * src/DHTInteractionCommand.cc
  847. * src/DHTMessage.cc
  848. * src/DHTMessage.h
  849. * src/DHTMessageDispatcherImpl.cc
  850. * src/DHTMessageEntry.cc
  851. * src/DHTMessageReceiver.cc
  852. * src/DHTMessageReceiver.h
  853. * src/DHTMessageTrackerEntry.cc
  854. * src/DHTMessageTrackerEntry.h
  855. * src/DHTPeerAnnounceEntry.cc
  856. * src/DHTPeerAnnounceEntry.h
  857. * src/DHTPeerLookupTask.cc
  858. * src/DHTPeerLookupTask.h
  859. * src/DHTRoutingTableDeserializer.cc
  860. * src/DHTRoutingTableDeserializer.h
  861. * src/DefaultBtAnnounce.cc
  862. * src/DefaultBtAnnounce.h
  863. * src/DefaultBtMessageDispatcher.cc
  864. * src/DefaultBtMessageDispatcher.h
  865. * src/DefaultBtRequestFactory.cc
  866. * src/DefaultBtRequestFactory.h
  867. * src/DiskAdaptor.cc
  868. * src/DiskAdaptor.h
  869. * src/DownloadContext.cc
  870. * src/DownloadContext.h
  871. * src/DownloadEngine.cc
  872. * src/DownloadEngine.h
  873. * src/EpollEventPoll.cc
  874. * src/EpollEventPoll.h
  875. * src/FtpConnection.cc
  876. * src/FtpConnection.h
  877. * src/HttpConnection.cc
  878. * src/HttpConnection.h
  879. * src/HttpHeader.cc
  880. * src/HttpHeader.h
  881. * src/HttpRequest.cc
  882. * src/HttpRequest.h
  883. * src/HttpResponse.cc
  884. * src/HttpResponse.h
  885. * src/LibsslTLSContext.cc
  886. * src/LibsslTLSContext.h
  887. * src/MSEHandshake.cc
  888. * src/MSEHandshake.h
  889. * src/MetalinkEntry.cc
  890. * src/MetalinkEntry.h
  891. * src/MetalinkParserController.cc
  892. * src/MetalinkParserController.h
  893. * src/MetalinkParserStateMachine.cc
  894. * src/MetalinkParserStateMachine.h
  895. * src/MultiDiskAdaptor.cc
  896. * src/MultiDiskAdaptor.h
  897. * src/NetrcAuthResolver.cc
  898. * src/NetrcAuthResolver.h
  899. * src/Peer.cc
  900. * src/Peer.h
  901. * src/PeerSessionResource.cc
  902. * src/PeerSessionResource.h
  903. * src/Piece.cc
  904. * src/Piece.h
  905. * src/PieceStatMan.cc
  906. * src/PieceStatMan.h
  907. * src/Request.cc
  908. * src/Request.h
  909. * src/RequestGroup.cc
  910. * src/RequestGroup.h
  911. * src/RequestGroupMan.cc
  912. * src/RequestGroupMan.h
  913. * src/RequestSlot.cc
  914. * src/RequestSlot.h
  915. * src/SegmentMan.cc
  916. * src/SegmentMan.h
  917. * src/SelectEventPoll.cc
  918. * src/SelectEventPoll.h
  919. * src/ServerStat.cc
  920. * src/ServerStat.h
  921. * src/Signature.cc
  922. * src/Signature.h
  923. * src/URIResult.cc
  924. * src/URIResult.h
  925. * src/UTPexExtensionMessage.cc
  926. * src/UTPexExtensionMessage.h
  927. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Fixed compile error without BitTorrent and Metalink support.
  929. * src/XmlRpcMethod.cc
  930. * src/XmlRpcMethodFactory.cc
  931. * src/XmlRpcMethodImpl.cc
  932. * src/XmlRpcMethodImpl.h
  933. * test/XmlRpcMethodTest.cc
  934. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  935. Rewritten the help message for --allow-overwrite option.
  936. * doc/aria2c.1.txt
  937. * src/usage_text.h
  938. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Fixed typo
  940. * doc/aria2c.1.txt
  941. * src/usage_text.h
  942. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Updated README for 1.4.0 release. Use new table syntax of
  944. asciidoc.
  945. * README
  946. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Documented --xml-rpc-max-request-size option in man page.
  948. * doc/aria2c.1.txt
  949. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  950. Moved C_* constants from BtContext to DefaultBtContext.
  951. * src/BtContext.cc: Removed.
  952. * src/BtContext.h
  953. * src/DefaultBtContext.cc
  954. * src/DefaultBtContext.h
  955. * src/Makefile.am
  956. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  957. Use name.utf-8 and path.utf-8 key in higher priority than name and
  958. path key respectively when persing .torrent file.
  959. * src/BtContext.cc
  960. * src/BtContext.h
  961. * src/DefaultBtContext.cc
  962. * test/DefaultBtContextTest.cc
  963. * test/utf8.torrent
  964. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Added --xml-rpc-max-request-size option to limit the size of
  966. XML-RPC request.
  967. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Documented XML-RPC API in man page.
  969. * doc/aria2c.1.txt
  970. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  972. will break strict-aliasing rules
  973. * src/PeerConnection.cc
  974. * test/DHTRoutingTableSerializerTest.cc
  975. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  977. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  978. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  979. PKG_CHECK_MODULES macro uses latter name.
  980. * m4/sqlite3.m4
  981. * src/Makefile.am
  982. * test/Makefile.am
  983. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Fixed typo
  985. * configure.ac
  986. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  988. presence of libgnutls using pkg-config first. If it fails, fall
  989. back to old macro libgnutls.m4.
  990. * configure.ac
  991. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Use s itself instead of !s.bad()
  993. * src/CookieStorage.cc
  994. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Documented --on-download-* option and --save-cookies option in man
  996. page.
  997. * doc/aria2c.1.txt
  998. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Set possible values for --load-cookie option to "/path/to/file".
  1000. * src/OptionHandlerFactory.cc
  1001. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. Added --save-cookies option.
  1003. * src/Cookie.cc
  1004. * src/Cookie.h
  1005. * src/CookieStorage.cc
  1006. * src/CookieStorage.h
  1007. * src/MultiUrlRequestInfo.cc
  1008. * src/OptionHandlerFactory.cc
  1009. * src/prefs.cc
  1010. * src/prefs.h
  1011. * src/usage_text.h
  1012. * test/CookieStorageTest.cc
  1013. * test/CookieTest.cc
  1014. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Removed tellAll XML-RPC command because its reponse tends to be
  1016. big if stopped/waiting downloads pile up.
  1017. * src/XmlRpcMethodFactory.cc
  1018. * src/XmlRpcMethodImpl.cc
  1019. * src/XmlRpcMethodImpl.h
  1020. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Added the ability to execute command when download starts and
  1022. stops. You can also specify command for particular cases such as
  1023. complete/error download. Added --on-download-start,
  1024. --on-download-stop, --on-download-complete and --on-download-error
  1025. option.
  1026. * src/OptionHandlerFactory.cc
  1027. * src/RequestGroupMan.cc
  1028. * src/prefs.cc
  1029. * src/prefs.h
  1030. * src/usage_text.h
  1031. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Fixed test error
  1033. * test/BencodeTest.cc
  1034. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Added unit tests.
  1036. * test/XmlRpcMethodTest.cc
  1037. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1038. Made exception message more verbose.
  1039. * src/bencode.cc
  1040. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1042. space in console readout. Also they are now shown in MiB/s if
  1043. speed > 1024KiB/s.
  1044. * src/ConsoleStatCalc.cc
  1045. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Added SEED to console output, which represents the number of
  1047. seeders currently the client is connecting to.
  1048. * src/ConsoleStatCalc.cc
  1049. * src/ConsoleStatCalc.h
  1050. * src/DownloadEngine.cc
  1051. * src/NullStatCalc.h
  1052. * src/StatCalc.h
  1053. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Added source filename(__FILE__) and line number(__LINE__) to
  1055. exception message.
  1056. * src/AbstractCommand.cc
  1057. * src/AbstractDiskWriter.cc
  1058. * src/AbstractProxyResponseCommand.cc
  1059. * src/BDE.h
  1060. * src/BtAllowedFastMessage.cc
  1061. * src/BtHandshakeMessageValidator.h
  1062. * src/BtHaveAllMessage.cc
  1063. * src/BtHaveNoneMessage.cc
  1064. * src/BtPieceMessage.cc
  1065. * src/BtRejectMessage.cc
  1066. * src/ChunkedDecoder.cc
  1067. * src/CookieStorage.cc
  1068. * src/DHTAnnouncePeerMessage.cc
  1069. * src/DHTEntryPointNameResolveCommand.cc
  1070. * src/DHTMessageFactoryImpl.cc
  1071. * src/DHTMessageTracker.cc
  1072. * src/DHTRoutingTableDeserializer.cc
  1073. * src/DHTRoutingTableSerializer.cc
  1074. * src/DHTSetup.cc
  1075. * src/DHTTokenTracker.cc
  1076. * src/DefaultBtAnnounce.cc
  1077. * src/DefaultBtContext.cc
  1078. * src/DefaultBtInteractive.cc
  1079. * src/DefaultBtMessageFactory.cc
  1080. * src/DefaultBtProgressInfoFile.cc
  1081. * src/DefaultExtensionMessageFactory.cc
  1082. * src/DlAbortEx.h
  1083. * src/DlRetryEx.h
  1084. * src/DownloadCommand.cc
  1085. * src/DownloadEngineFactory.cc
  1086. * src/DownloadFailureException.h
  1087. * src/Exception.cc
  1088. * src/Exception.h
  1089. * src/ExpatMetalinkProcessor.cc
  1090. * src/ExpatXmlRpcRequestProcessor.cc
  1091. * src/FallocFileAllocationIterator.cc
  1092. * src/FatalException.h
  1093. * src/FtpConnection.cc
  1094. * src/FtpFinishDownloadCommand.cc
  1095. * src/FtpInitiateConnectionCommand.cc
  1096. * src/FtpNegotiationCommand.cc
  1097. * src/GZipDecoder.cc
  1098. * src/HandshakeExtensionMessage.cc
  1099. * src/HttpConnection.cc
  1100. * src/HttpHeaderProcessor.cc
  1101. * src/HttpInitiateConnectionCommand.cc
  1102. * src/HttpResponse.cc
  1103. * src/HttpResponseCommand.cc
  1104. * src/HttpServer.cc
  1105. * src/HttpSkipResponseCommand.cc
  1106. * src/InitiateConnectionCommandFactory.cc
  1107. * src/IteratableChunkChecksumValidator.cc
  1108. * src/LibgcryptARC4Context.h
  1109. * src/LibgcryptARC4Decryptor.h
  1110. * src/LibgcryptARC4Encryptor.h
  1111. * src/LibgcryptDHKeyExchange.h
  1112. * src/LibgnutlsTLSContext.cc
  1113. * src/LibsslARC4Context.h
  1114. * src/LibsslARC4Decryptor.h
  1115. * src/LibsslARC4Encryptor.h
  1116. * src/LibsslDHKeyExchange.h
  1117. * src/LibsslTLSContext.cc
  1118. * src/MSEHandshake.cc
  1119. * src/MessageDigestHelper.cc
  1120. * src/MetalinkHelper.cc
  1121. * src/MultiDiskAdaptor.cc
  1122. * src/NameMatchOptionHandler.h
  1123. * src/NameResolver.cc
  1124. * src/Netrc.cc
  1125. * src/NsCookieParser.cc
  1126. * src/OptionHandlerException.cc
  1127. * src/OptionHandlerException.h
  1128. * src/OptionHandlerImpl.h
  1129. * src/OptionParser.cc
  1130. * src/ParameterizedStringParser.cc
  1131. * src/PeerAbstractCommand.cc
  1132. * src/PeerConnection.cc
  1133. * src/PeerMessageUtil.cc
  1134. * src/PeerReceiveHandshakeCommand.cc
  1135. * src/Platform.cc
  1136. * src/ReceiverMSEHandshakeCommand.cc
  1137. * src/RecoverableException.h
  1138. * src/RequestGroup.cc
  1139. * src/SimpleLogger.cc
  1140. * src/SocketCore.cc
  1141. * src/Sqlite3MozCookieParser.cc
  1142. * src/UTPexExtensionMessage.cc
  1143. * src/Util.cc
  1144. * src/XML2SAXMetalinkProcessor.cc
  1145. * src/Xml2XmlRpcRequestProcessor.cc
  1146. * src/XmlRpcMethodImpl.cc
  1147. * src/bencode.cc
  1148. * src/download_helper.cc
  1149. * src/messageDigest.h
  1150. * test/ExceptionTest.cc
  1151. * test/TestUtil.cc
  1152. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Bump up version number to 1.4.0
  1154. * configure.ac
  1155. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Added 2files.metalink to EXTRA_DIST
  1157. * test/Makefile.am
  1158. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Added missing 2files.metalink
  1160. * test/2files.metalink
  1161. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1162. Show "[MEMORY]" prefix before filename in download summary if it
  1163. is downloaded into memory.
  1164. * src/DownloadResult.h
  1165. * src/RequestGroup.cc
  1166. * src/RequestGroupMan.cc
  1167. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1169. * src/ExpatXmlRpcRequestProcessor.cc
  1170. * src/Xml2XmlRpcRequestProcessor.cc
  1171. * src/message.h
  1172. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Defined const BDEs to avoid duplicate instantiation.
  1174. Defined MSG_GID_NOT_PROVIDED.
  1175. * src/XmlRpcMethodImpl.cc
  1176. * src/message.h
  1177. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1178. Code cleanup
  1179. * src/Xml2XmlRpcRequestProcessor.cc
  1180. * src/Xml2XmlRpcRequestProcessor.h
  1181. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Defined ENABLE_XML_RPC
  1183. * configure.ac
  1184. * configure
  1185. * config.h.in
  1186. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1187. Added ExpatXmlRpcRequestProcessor
  1188. * src/ExpatXmlRpcRequestProcessor.cc
  1189. * src/ExpatXmlRpcRequestProcessor.h
  1190. * src/Makefile.am
  1191. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Added tests for addTorrent and addMetalink command.
  1193. * test/TestUtil.cc
  1194. * test/TestUtil.h
  1195. * test/XmlRpcMethodTest.cc
  1196. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Corrected the description of --file-allocation option.
  1198. * doc/aria2c.1.txt
  1199. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Added tellAll command.
  1201. * src/XmlRpcMethodFactory.cc
  1202. * src/XmlRpcMethodImpl.cc
  1203. * src/XmlRpcMethodImpl.h
  1204. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1205. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1206. * src/XmlRpcMethodImpl.cc
  1207. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Added changeGlobalOption command. Currently,
  1209. max-overall-download-limit and max-overall-upload-limit option are
  1210. available.
  1211. * src/RequestGroupMan.h
  1212. * src/XmlRpcMethod.cc
  1213. * src/XmlRpcMethod.h
  1214. * src/XmlRpcMethodFactory.cc
  1215. * src/XmlRpcMethodImpl.cc
  1216. * src/XmlRpcMethodImpl.h
  1217. * test/XmlRpcMethodTest.cc
  1218. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Added changeOption command. Currently, max-download-limit,
  1220. max-upload-limit option are available in this command.
  1221. * src/RequestGroup.h
  1222. * src/XmlRpcMethod.cc
  1223. * src/XmlRpcMethod.h
  1224. * src/XmlRpcMethodFactory.cc
  1225. * src/XmlRpcMethodImpl.cc
  1226. * src/XmlRpcMethodImpl.h
  1227. * test/XmlRpcMethodTest.cc
  1228. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Added purgeDownloadResult command.
  1230. * src/RequestGroupMan.cc
  1231. * src/RequestGroupMan.h
  1232. * src/XmlRpcMethodFactory.cc
  1233. * src/XmlRpcMethodImpl.cc
  1234. * src/XmlRpcMethodImpl.h
  1235. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1236. Refactored.
  1237. * src/XmlRpcMethod.cc
  1238. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1239. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1240. XmlRpcResponse.
  1241. * src/HttpServerBodyCommand.cc
  1242. * src/Makefile.am
  1243. * src/XmlRpcMethod.cc
  1244. * src/XmlRpcMethod.h
  1245. * src/XmlRpcMethodImpl.cc
  1246. * src/XmlRpcResponse.cc
  1247. * src/XmlRpcResponse.h
  1248. * test/XmlRpcMethodTest.cc
  1249. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1250. In XML-RPC option struct, header and index-out option can take
  1251. array as value.
  1252. * src/XmlRpcMethod.cc
  1253. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Removed unused option member from PeerConnection.
  1255. * src/InitiatorMSEHandshakeCommand.cc
  1256. * src/PeerConnection.cc
  1257. * src/PeerConnection.h
  1258. * src/PeerInteractionCommand.cc
  1259. * src/PeerReceiveHandshakeCommand.cc
  1260. * src/ReceiverMSEHandshakeCommand.cc
  1261. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Added "seeder" key to getPeers response.
  1263. * src/XmlRpcMethodImpl.cc
  1264. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Added addMetalink XML-RPC command.
  1266. * src/XmlRpcMethodFactory.cc
  1267. * src/XmlRpcMethodImpl.cc
  1268. * src/XmlRpcMethodImpl.h
  1269. * src/download_helper.cc
  1270. * src/download_helper.h
  1271. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Fixed the bug that POU peers are never choked in seeding.
  1273. * src/BtSeederStateChoke.cc
  1274. * src/BtSeederStateChoke.h
  1275. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Added web-seeding URI handling in addTorrent command.
  1277. * src/XmlRpcMethodImpl.cc
  1278. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Added "length" key to getFiles response.
  1280. * src/XmlRpcMethodImpl.cc
  1281. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Moved --no-netrc option from ftp option section to http/ftp option
  1283. section.
  1284. * doc/aria2c.1.txt
  1285. * src/OptionHandlerFactory.cc
  1286. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1287. Removed garbage "\" character before '
  1288. * doc/aria2c.1.txt
  1289. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1290. Removed garbage "\" character before http.
  1291. * doc/aria2c.1.txt
  1292. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1293. Documented additional options that can be specified in -i list.
  1294. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1295. and --xml-rpc-passwd. Removed --enable-http-server and
  1296. --http-server-listen-port.
  1297. * doc/aria2c.1.txt
  1298. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1299. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1300. * src/DefaultPeerStorage.cc
  1301. * src/DefaultPeerStorage.h
  1302. * src/PeerStorage.h
  1303. * src/XmlRpcMethodImpl.cc
  1304. * test/MockPeerStorage.h
  1305. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Put a call to Socket::isReadable() in try block.
  1307. * src/HttpServerBodyCommand.cc
  1308. * src/HttpServerCommand.cc
  1309. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1310. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1311. exception , so it is now in try block.
  1312. * src/HttpServerResponseCommand.cc
  1313. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1314. Added "amChoking" and "peerChoking" key in getPeers response.
  1315. * src/XmlRpcMethodImpl.cc
  1316. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Added test case for zero-length filter.
  1318. * test/BitfieldManTest.cc
  1319. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1320. getFiles command now returns file data for finished/stopped
  1321. downloads.
  1322. * src/XmlRpcMethodImpl.cc
  1323. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. DownloadResult now has the list of FileEntry. The download
  1325. summary displays the path of first selected file and the number of
  1326. remaining files for multi-file torrent.
  1327. * src/DownloadResult.h
  1328. * src/RequestGroup.cc
  1329. * src/RequestGroupMan.cc
  1330. * test/RequestGroupTest.cc
  1331. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Fixed segmentation fault error when no file is selected in
  1333. multi-file torrent.
  1334. * src/BitfieldMan.cc
  1335. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Escaped <,>,& character in XML-RPC response.
  1337. * src/XmlRpcMethod.cc
  1338. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1339. Throw DlAbortEx instead of FatalException during parsing options
  1340. because we don't want for aria2 to quit when bad option is passed
  1341. via XML-RPC.
  1342. * src/OptionHandlerException.cc
  1343. * src/OptionHandlerException.h
  1344. * src/OptionHandlerImpl.h
  1345. * src/OptionParser.cc
  1346. * src/OptionParser.h
  1347. * src/PStringSegment.cc
  1348. * src/ParameterizedStringParser.cc
  1349. * src/download_helper.cc
  1350. * test/ParameterizedStringParserTest.cc
  1351. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1352. Selecting files are now done in
  1353. DefaultBtContext::setFileFileter().
  1354. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1355. functions are removed because they are no longer used. Creating
  1356. filter in BitfieldMan is done in new funtion
  1357. PieceStorage::setupFileFilter()
  1358. * src/BtContext.cc
  1359. * src/BtContext.h
  1360. * src/DefaultBtContext.cc
  1361. * src/DefaultBtContext.h
  1362. * src/DefaultPieceStorage.cc
  1363. * src/DefaultPieceStorage.h
  1364. * src/DiskAdaptor.cc
  1365. * src/DiskAdaptor.h
  1366. * src/PieceStorage.h
  1367. * src/RequestGroup.cc
  1368. * src/UnknownLengthPieceStorage.h
  1369. * src/XmlRpcMethodImpl.cc
  1370. * test/DefaultBtContextTest.cc
  1371. * test/MockBtContext.h
  1372. * test/MockPieceStorage.h
  1373. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Fixed compile error on Mac OS X
  1375. * src/HttpServer.cc
  1376. * src/XmlRpcMethod.h
  1377. * src/XmlRpcMethodImpl.cc
  1378. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Use std::binary_search instead of std::find
  1380. * src/DefaultPieceStorage.cc
  1381. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1382. Removed unnecessary BDE() call; leave them to implicit conversion.
  1383. * src/XmlRpcMethodImpl.cc
  1384. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Return connections and gid in string
  1386. * src/XmlRpcMethodImpl.cc
  1387. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Renamed addURI as addUri
  1389. * src/XmlRpcMethodFactory.cc
  1390. * src/XmlRpcMethodImpl.cc
  1391. * src/XmlRpcMethodImpl.h
  1392. * test/XmlRpcMethodTest.cc
  1393. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Renamed addTorrentFile as addTorrent
  1395. * src/XmlRpcMethodFactory.cc
  1396. * src/XmlRpcMethodImpl.cc
  1397. * src/XmlRpcMethodImpl.h
  1398. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. The information for files, URIs, peers are removed from the
  1400. reponse of TellaActive, TellStatus command because they tend to be
  1401. large. Instead they can be retrieved by the dedicated commands:
  1402. getFiles, getUris and getPeers respectively.
  1403. * src/XmlRpcMethodFactory.cc
  1404. * src/XmlRpcMethodImpl.cc
  1405. * src/XmlRpcMethodImpl.h
  1406. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Removed --max-overall-upload-limit and
  1408. --max-overall-download-limit option from listRequestOptions.
  1409. * src/download_helper.cc
  1410. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Log incoming host in HttpListenCommand.
  1412. * src/HttpListenCommand.cc
  1413. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1414. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1415. --xml-rpc-passwd option.
  1416. * src/HttpServer.cc
  1417. * src/HttpServer.h
  1418. * src/HttpServerCommand.cc
  1419. * src/OptionHandlerFactory.cc
  1420. * src/prefs.cc
  1421. * src/prefs.h
  1422. * src/usage_text.h
  1423. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1425. processing 0 length request.
  1426. * src/HttpServerBodyCommand.cc
  1427. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Removed --enable-http-server and --http-server-listen-port
  1429. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1430. instead. The original feature for --enable-http-server that
  1431. reports download progress in HTML was officially removed. Persist
  1432. XML-RPC connection if client supports keep-alive.
  1433. * src/DownloadEngineFactory.cc
  1434. * src/HttpServerCommand.cc
  1435. * src/HttpServerResponseCommand.cc
  1436. * src/Makefile.am
  1437. * src/Makefile.in
  1438. * src/OptionHandlerFactory.cc
  1439. * src/RequestGroupMan.cc
  1440. * src/main.cc
  1441. * src/option_processing.cc
  1442. * src/prefs.cc
  1443. * src/prefs.h
  1444. * src/usage_text.h
  1445. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Added "uris" key to the response of tellStatus command. Added
  1447. "connections" key to the response of tellStatus and tellActive
  1448. command.
  1449. * src/XmlRpcMethodImpl.cc
  1450. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1451. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1452. Added TellStatusXmlRpcMethod. Remove command can now remove
  1453. waiting RequestGroup.
  1454. * src/RequestGroupMan.cc
  1455. * src/RequestGroupMan.h
  1456. * src/XmlRpcMethodFactory.cc
  1457. * src/XmlRpcMethodImpl.cc
  1458. * src/XmlRpcMethodImpl.h
  1459. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1460. Initialized _peerId
  1461. * src/Peer.cc
  1462. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Return fault structure for error. FailXmlRpcMethod is renamed as
  1464. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1465. in non-torrent download. Return single param value.
  1466. * src/XmlRpcMethod.cc
  1467. * src/XmlRpcMethodFactory.cc
  1468. * src/XmlRpcMethodImpl.cc
  1469. * src/XmlRpcMethodImpl.h
  1470. * test/XmlRpcMethodTest.cc
  1471. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1473. command.
  1474. * src/RequestGroup.cc
  1475. * src/RequestGroup.h
  1476. * src/RequestGroupMan.cc
  1477. * src/XmlRpcMethodImpl.cc
  1478. * test/RequestGroupTest.cc
  1479. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. Added more options that can be specified in -i list and xml-rpc
  1481. add* command.
  1482. * src/download_helper.h
  1483. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. The available options in -i list should be listed in
  1485. listRequestOptions().
  1486. * src/download_helper.cc
  1487. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1489. command.
  1490. * src/XmlRpcMethodImpl.cc
  1491. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Now RequestGroup has its own copy of Option object. This will help
  1493. to give custom option for each RequestGroup.
  1494. addTorrentFile command now takes options.
  1495. * src/AbstractCommand.cc
  1496. * src/AbstractCommand.h
  1497. * src/AbstractProxyRequestCommand.cc
  1498. * src/ActivePeerConnectionCommand.cc
  1499. * src/ActivePeerConnectionCommand.h
  1500. * src/AdaptiveURISelector.cc
  1501. * src/BtCheckIntegrityEntry.cc
  1502. * src/BtDependency.cc
  1503. * src/BtDependency.h
  1504. * src/BtFileAllocationEntry.cc
  1505. * src/BtPostDownloadHandler.cc
  1506. * src/CheckIntegrityEntry.cc
  1507. * src/DownloadCommand.cc
  1508. * src/FtpDownloadCommand.cc
  1509. * src/FtpFinishDownloadCommand.cc
  1510. * src/FtpInitiateConnectionCommand.cc
  1511. * src/FtpNegotiationCommand.cc
  1512. * src/HttpInitiateConnectionCommand.cc
  1513. * src/HttpRequestCommand.cc
  1514. * src/HttpResponseCommand.cc
  1515. * src/HttpSkipResponseCommand.cc
  1516. * src/InitiateConnectionCommand.cc
  1517. * src/InitiateConnectionCommandFactory.cc
  1518. * src/InitiatorMSEHandshakeCommand.cc
  1519. * src/InitiatorMSEHandshakeCommand.h
  1520. * src/Metalink2RequestGroup.cc
  1521. * src/Metalink2RequestGroup.h
  1522. * src/MetalinkPostDownloadHandler.cc
  1523. * src/MultiUrlRequestInfo.cc
  1524. * src/MultiUrlRequestInfo.h
  1525. * src/PeerAbstractCommand.cc
  1526. * src/PeerInteractionCommand.cc
  1527. * src/PeerInteractionCommand.h
  1528. * src/PeerReceiveHandshakeCommand.cc
  1529. * src/PeerReceiveHandshakeCommand.h
  1530. * src/RequestGroup.cc
  1531. * src/RequestGroup.h
  1532. * src/TrackerWatcherCommand.cc
  1533. * src/TrackerWatcherCommand.h
  1534. * src/XmlRpcMethod.cc
  1535. * src/XmlRpcMethod.h
  1536. * src/XmlRpcMethodImpl.cc
  1537. * src/download_helper.cc
  1538. * src/download_helper.h
  1539. * src/main.cc
  1540. * test/BtDependencyTest.cc
  1541. * test/BtPostDownloadHandlerTest.cc
  1542. * test/DefaultBtMessageDispatcherTest.cc
  1543. * test/DownloadHandlerFactoryTest.cc
  1544. * test/DownloadHelperTest.cc
  1545. * test/Metalink2RequestGroupTest.cc
  1546. * test/MetalinkPostDownloadHandlerTest.cc
  1547. * test/RequestGroupManTest.cc
  1548. * test/RequestGroupTest.cc
  1549. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Added tellActiveStatus xml-rpc command which reports download
  1551. status of active downloads.
  1552. * src/XmlRpcMethodFactory.cc
  1553. * src/XmlRpcMethodImpl.cc
  1554. * src/XmlRpcMethodImpl.h
  1555. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Added addTorrentFile xml-rpc command which receives uploaded
  1557. torrent file and add download for it.
  1558. * src/RequestGroupMan.cc
  1559. * src/XmlRpcMethodFactory.cc
  1560. * src/XmlRpcMethodImpl.cc
  1561. * src/XmlRpcMethodImpl.h
  1562. * src/download_helper.cc
  1563. * src/download_helper.h
  1564. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1565. Added remove xml-rpc command which removes specified download.
  1566. There is a known issue: the removed unfinished downloads are
  1567. reported ERR when aria2 exits. They should be reported as INPR.
  1568. * src/RequestGroupMan.cc
  1569. * src/RequestGroupMan.h
  1570. * src/XmlRpcMethodFactory.cc
  1571. * src/XmlRpcMethodImpl.cc
  1572. * src/XmlRpcMethodImpl.h
  1573. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1574. If --enable-http-server is enabled, don't stop aria2 when all
  1575. download finished and don't quit when no files to download at
  1576. start up.
  1577. * src/RequestGroupMan.cc
  1578. * src/main.cc
  1579. * src/option_processing.cc
  1580. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1581. Added missing AM_CONDITIONAL
  1582. * configure.ac
  1583. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Added xml-rpc functionality. Currently only addURI commad is
  1585. supported. To enable xml-rpc, run aria2 with
  1586. --enable-http-server. This option name is temporal and will be
  1587. changed. The feature that reports download progress in html format
  1588. is temporarily disabled.
  1589. * src/HttpServer.cc
  1590. * src/HttpServer.h
  1591. * src/HttpServerBodyCommand.cc
  1592. * src/HttpServerBodyCommand.h
  1593. * src/HttpServerCommand.cc
  1594. * src/HttpServerResponseCommand.cc
  1595. * src/Makefile.am
  1596. * src/OptionParser.cc
  1597. * src/OptionParser.h
  1598. * src/RequestGroupMan.cc
  1599. * src/RequestGroupMan.h
  1600. * src/XmlRpcMethod.cc
  1601. * src/XmlRpcMethod.h
  1602. * src/XmlRpcMethodFactory.cc
  1603. * src/XmlRpcMethodFactory.h
  1604. * src/XmlRpcMethodImpl.cc
  1605. * src/XmlRpcMethodImpl.h
  1606. * src/download_helper.cc
  1607. * src/download_helper.h
  1608. * test/Makefile.am
  1609. * test/XmlRpcMethodTest.cc
  1610. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1611. Added xml-rpc request parser. The supported value types are:
  1612. i4/int, string, double, struct, array, base64. Currently only
  1613. libxml2 version is provided.
  1614. * src/Xml2XmlRpcRequestProcessor.cc
  1615. * src/Xml2XmlRpcRequestProcessor.h
  1616. * src/XmlRpcElements.cc
  1617. * src/XmlRpcElements.h
  1618. * src/XmlRpcRequest.h
  1619. * src/XmlRpcRequestParserController.cc
  1620. * src/XmlRpcRequestParserController.h
  1621. * src/XmlRpcRequestParserState.h
  1622. * src/XmlRpcRequestParserStateImpl.cc
  1623. * src/XmlRpcRequestParserStateImpl.h
  1624. * src/XmlRpcRequestParserStateMachine.cc
  1625. * src/XmlRpcRequestParserStateMachine.h
  1626. * src/XmlRpcRequestProcessor.h
  1627. * test/XmlRpcRequestParserControllerTest.cc
  1628. * test/XmlRpcRequestProcessorTest.cc
  1629. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1630. * Release 1.3.3
  1631. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Fixed compile error since r1202.
  1633. * src/ExpatMetalinkProcessor.cc
  1634. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Updated Ukrainian, Russian and Simplified Chinese
  1636. translations. Thanks to all translators.
  1637. * po/ru.po
  1638. * po/uk.po
  1639. * po/zh_CN.po
  1640. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Pass reference of Option object instead of pointer.
  1642. * src/download_helper.cc
  1643. * src/download_helper.h
  1644. * src/main.cc
  1645. * test/DownloadHelperTest.cc
  1646. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1648. from option directly. Instead, get them from RequestGroup.
  1649. * src/ActivePeerConnectionCommand.cc
  1650. * src/ActivePeerConnectionCommand.h
  1651. * src/PeerReceiveHandshakeCommand.cc
  1652. * src/RequestGroup.h
  1653. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Removed unused uploadLimitCheck and uploadLimit from
  1655. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1656. PeerInteractionCommand.
  1657. * src/PeerAbstractCommand.cc
  1658. * src/PeerAbstractCommand.h
  1659. * src/PeerInteractionCommand.cc
  1660. * src/PeerInteractionCommand.h
  1661. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1662. Fixed broken file renaming feature since r1202.
  1663. * src/FtpNegotiationCommand.cc
  1664. * src/FtpNegotiationCommand.h
  1665. * src/HttpResponseCommand.cc
  1666. * src/RequestGroup.cc
  1667. * src/RequestGroup.h
  1668. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Removed unused debug log
  1670. * src/SocketCore.cc
  1671. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1672. Generated configure and Makefile.in using autoconf 2.63 and
  1673. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1674. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1675. * configure.ac
  1676. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Moved piece statistics stuff to new PieceStatMan class.
  1678. Refactored PieceSelector interface.
  1679. * src/DefaultPieceStorage.cc
  1680. * src/DefaultPieceStorage.h
  1681. * src/LongestSequencePieceSelector.cc
  1682. * src/LongestSequencePieceSelector.h
  1683. * src/Makefile.am
  1684. * src/PieceSelector.h
  1685. * src/PieceStatMan.cc
  1686. * src/PieceStatMan.h
  1687. * src/RarestPieceSelector.cc
  1688. * src/RarestPieceSelector.h
  1689. * src/RequestGroup.cc
  1690. * test/DefaultPieceStorageTest.cc
  1691. * test/InOrderPieceSelector.h
  1692. * test/Makefile.am
  1693. * test/PieceStatManTest.cc
  1694. * test/RarestPieceSelectorTest.cc
  1695. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1696. Added static member _protocolFamily to SocketCore. By default,
  1697. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1698. address. Sometime SocketCore::bind() and
  1699. SocketCore::establishConnection() use difference protocl family
  1700. and latter cannot connect to former. To avoid this situation, we
  1701. limit protocol family to AF_INET for unit tests.
  1702. * src/SocketCore.cc
  1703. * src/SocketCore.h
  1704. * test/AllTest.cc
  1705. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Avoid std::bad_alloc for negative bencode string length.
  1707. * src/bencode.cc
  1708. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Supported segmented downloading with chunked transfer encoding and
  1710. content-length.
  1711. * src/DownloadCommand.cc
  1712. * src/HttpResponseCommand.cc
  1713. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1714. Bump up version number to 1.3.3
  1715. * configure.ac
  1716. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1718. from 4096 to 65536 (for insanely large ftp login banners)
  1719. * src/FtpConnection.h
  1720. * test/FtpConnectionTest.cc
  1721. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. In DefaultBtContext::getActualBasePath(), return first
  1723. FileEntry::getPath() for single file torrent.
  1724. * src/DefaultBtContext.cc
  1725. * test/DefaultBtContextTest.cc
  1726. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1728. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1729. Removed _directIOAllowed member from DiskWriter.
  1730. * src/AbstractDiskWriter.cc
  1731. * src/AbstractDiskWriter.h
  1732. * src/AbstractSingleDiskAdaptor.cc
  1733. * src/AbstractSingleDiskAdaptor.h
  1734. * src/BinaryStream.h
  1735. * src/ByteArrayDiskWriter.h
  1736. * src/DefaultPieceStorage.cc
  1737. * src/DiskWriter.h
  1738. * src/MultiDiskAdaptor.cc
  1739. * src/MultiDiskAdaptor.h
  1740. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1741. Now the constructor of AbstractDiskWriter takes filename as an
  1742. argument and filename argument is removed from openFile(),
  1743. initAndOpenFile(), openExistingFile() interface. storeDir member
  1744. and its accessor functions are removed from DiskAdaptor because it
  1745. is not used anymore. size() member function of DefaultDiskWriter,
  1746. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1747. opening file.
  1748. * src/AbstractDiskWriter.cc
  1749. * src/AbstractDiskWriter.h
  1750. * src/AbstractSingleDiskAdaptor.cc
  1751. * src/AbstractSingleDiskAdaptor.h
  1752. * src/ByteArrayDiskWriter.cc
  1753. * src/ByteArrayDiskWriter.h
  1754. * src/ByteArrayDiskWriterFactory.cc
  1755. * src/ByteArrayDiskWriterFactory.h
  1756. * src/DefaultDiskWriter.cc
  1757. * src/DefaultDiskWriter.h
  1758. * src/DefaultDiskWriterFactory.cc
  1759. * src/DefaultDiskWriterFactory.h
  1760. * src/DefaultPieceStorage.cc
  1761. * src/DirectDiskAdaptor.cc
  1762. * src/DirectDiskAdaptor.h
  1763. * src/DiskAdaptor.h
  1764. * src/DiskWriter.h
  1765. * src/DiskWriterFactory.h
  1766. * src/MessageDigestHelper.cc
  1767. * src/MultiDiskAdaptor.cc
  1768. * src/RequestGroup.cc
  1769. * src/UnknownLengthPieceStorage.cc
  1770. * src/Util.cc
  1771. * test/DefaultDiskWriterTest.cc
  1772. * test/DirectDiskAdaptorTest.cc
  1773. * test/FallocFileAllocationIteratorTest.cc
  1774. * test/MessageDigestHelperTest.cc
  1775. * test/MetalinkProcessorTest.cc
  1776. * test/MultiDiskAdaptorTest.cc
  1777. * test/MultiFileAllocationIteratorTest.cc
  1778. * test/SingleFileAllocationIteratorTest.cc
  1779. * test/UtilTest.cc
  1780. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Fixed the bug that aria2 aborts when --select-file is used. This
  1782. bug was introduced in r1199.
  1783. * src/MultiDiskAdaptor.cc
  1784. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1785. Code cleanup
  1786. * test/MockPieceStorage.cc
  1787. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1788. Fixed the bug that read-only file with wrong file size will cause
  1789. error because it cannot be truncated to the correct size. Now if
  1790. file size is different than the expected one, re-open file in
  1791. writable mode.
  1792. * src/AbstractSingleDiskAdaptor.cc
  1793. * src/AbstractSingleDiskAdaptor.h
  1794. * src/BtCheckIntegrityEntry.cc
  1795. * src/DiskAdaptor.h
  1796. * src/MultiDiskAdaptor.h
  1797. * src/RequestGroup.cc
  1798. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Fixed the bug that with --check-integrity option aria2 reports
  1800. downloaded file size is 0 even if some parts of file is correctly
  1801. downloaded. This bug is reproducible for the download that a file
  1802. includes last piece is missing. This bug doesn't reveal for
  1803. single-torrent with file allocation on.
  1804. * src/IteratableChecksumValidator.cc
  1805. * test/IteratableChecksumValidatorTest.cc
  1806. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1808. * src/RequestGroupMan.cc
  1809. * src/AdaptiveURISelector.cc
  1810. * src/AdaptiveURISelector.h
  1811. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1812. * Release 1.3.2
  1813. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Updated README
  1815. * README
  1816. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1817. Updated Ukrainian translations. Thanks to Alexander10.
  1818. * po/uk.po
  1819. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1820. Code cleanup
  1821. * src/MetalinkParserStateMachine.cc
  1822. * src/MetalinkParserStateMachine.h
  1823. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1824. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1825. and expat simultaneously, MetalinkProcessor is now not base class
  1826. and it is directly implemented in XML2SAXMetalinkProcessor and
  1827. ExpatMetalinkProcessor.
  1828. * src/ExpatMetalinkProcessor.cc
  1829. * src/ExpatMetalinkProcessor.h
  1830. * src/Makefile.am
  1831. * src/MetalinkHelper.cc
  1832. * src/MetalinkProcessor.h
  1833. * src/MetalinkProcessorFactory.cc: Removed.
  1834. * src/MetalinkProcessorFactory.h: Removed
  1835. * src/XML2SAXMetalinkProcessor.cc
  1836. * src/XML2SAXMetalinkProcessor.h
  1837. * test/MetalinkProcessorTest.cc
  1838. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Bump up version number to 1.3.2
  1840. * configure.ac
  1841. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1842. Added missing file.
  1843. * test/Makefile.am
  1844. * test/url-list-singleFileEndsWithSlash.torrent
  1845. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1847. request.
  1848. * src/AnnounceList.cc
  1849. * src/AnnounceList.h
  1850. * src/BDE.cc: Added
  1851. * src/BDE.h: Added
  1852. * src/DHTAbstractMessage.cc
  1853. * src/DHTAbstractMessage.h
  1854. * src/DHTAnnouncePeerMessage.cc
  1855. * src/DHTAnnouncePeerMessage.h
  1856. * src/DHTAnnouncePeerReplyMessage.cc
  1857. * src/DHTAnnouncePeerReplyMessage.h
  1858. * src/DHTFindNodeMessage.cc
  1859. * src/DHTFindNodeMessage.h
  1860. * src/DHTFindNodeReplyMessage.cc
  1861. * src/DHTFindNodeReplyMessage.h
  1862. * src/DHTGetPeersMessage.cc
  1863. * src/DHTGetPeersMessage.h
  1864. * src/DHTGetPeersReplyMessage.cc
  1865. * src/DHTGetPeersReplyMessage.h
  1866. * src/DHTMessageFactory.h
  1867. * src/DHTMessageFactoryImpl.cc
  1868. * src/DHTMessageFactoryImpl.h
  1869. * src/DHTMessageReceiver.cc
  1870. * src/DHTMessageTracker.cc
  1871. * src/DHTMessageTracker.h
  1872. * src/DHTPingMessage.cc
  1873. * src/DHTPingMessage.h
  1874. * src/DHTPingReplyMessage.cc
  1875. * src/DHTPingReplyMessage.h
  1876. * src/DHTQueryMessage.cc
  1877. * src/DHTQueryMessage.h
  1878. * src/DHTResponseMessage.cc
  1879. * src/DHTResponseMessage.h
  1880. * src/DefaultBtAnnounce.cc
  1881. * src/DefaultBtContext.cc
  1882. * src/DefaultBtContext.h
  1883. * src/HandshakeExtensionMessage.cc
  1884. * src/Makefile.am
  1885. * src/PeerListProcessor.h
  1886. * src/UTPexExtensionMessage.cc
  1887. * src/bencode.cc
  1888. * src/bencode.h
  1889. * test/AnnounceListTest.cc
  1890. * test/BDETest.cc: Added
  1891. * test/BencodeTest.cc
  1892. * test/DHTAnnouncePeerMessageTest.cc
  1893. * test/DHTAnnouncePeerReplyMessageTest.cc
  1894. * test/DHTFindNodeMessageTest.cc
  1895. * test/DHTFindNodeReplyMessageTest.cc
  1896. * test/DHTGetPeersMessageTest.cc
  1897. * test/DHTGetPeersReplyMessageTest.cc
  1898. * test/DHTMessageFactoryImplTest.cc
  1899. * test/DHTMessageTrackerTest.cc
  1900. * test/DHTPingMessageTest.cc
  1901. * test/DHTPingReplyMessageTest.cc
  1902. * test/Makefile.am
  1903. * test/MockDHTMessageFactory.h
  1904. * test/PeerListProcessorTest.cc
  1905. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Use url-list (web-seeding) only for single-file torrent. This is
  1907. basically the same behavior with Metalink file with torrent and
  1908. URIs.
  1909. * src/RequestGroup.cc
  1910. * src/DefaultBtContext.cc
  1911. * test/DefaultBtContextTest.cc
  1912. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1913. Rewritten expr
  1914. * src/array_fun.h
  1915. * test/array_funTest.cc
  1916. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1918. * src/DefaultBtMessageDispatcher.cc
  1919. * src/a2algo.h
  1920. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1921. Removed ExtendedMessagingAware. Instead of using inheritance,
  1922. added ExtensionMessageRegistry and it is passed to
  1923. DefaultExtensionMessageFactory.
  1924. * src/DefaultBtInteractive.cc
  1925. * src/DefaultBtInteractive.h
  1926. * src/DefaultExtensionMessageFactory.cc
  1927. * src/DefaultExtensionMessageFactory.h
  1928. * src/ExtendedMessagingAware.h: Removed.
  1929. * src/ExtensionMessageFactory.h
  1930. * src/ExtensionMessageRegistry.h: Added.
  1931. * src/Makefile.am
  1932. * src/PeerInteractionCommand.cc
  1933. * test/DefaultExtensionMessageFactoryTest.cc
  1934. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1935. Fixed typo in log messages
  1936. * src/MSEHandshake.cc
  1937. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1938. Fixed the bug that prevents torrent download from finishing. The
  1939. bug doesn't reveal for all torrents. The torrents affected this
  1940. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1941. of pieces.
  1942. * src/bitfield.h
  1943. * test/bitfieldTest.cc
  1944. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1945. Code cleanup
  1946. * src/PeerListProcessor.h
  1947. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1948. Removed RequestGroupAware
  1949. * src/AbstractCommand.cc
  1950. * src/AbstractCommand.h
  1951. * src/ActivePeerConnectionCommand.cc
  1952. * src/ActivePeerConnectionCommand.h
  1953. * src/DHTGetPeersCommand.cc
  1954. * src/DHTGetPeersCommand.h
  1955. * src/InitiatorMSEHandshakeCommand.cc
  1956. * src/InitiatorMSEHandshakeCommand.h
  1957. * src/Makefile.am
  1958. * src/PeerInitiateConnectionCommand.cc
  1959. * src/PeerInitiateConnectionCommand.h
  1960. * src/PeerInteractionCommand.cc
  1961. * src/PeerInteractionCommand.h
  1962. * src/RealtimeCommand.cc
  1963. * src/RealtimeCommand.h
  1964. * src/RequestGroupAware.cc: Removed
  1965. * src/RequestGroupAware.h: Removed
  1966. * src/SeedCheckCommand.cc
  1967. * src/SeedCheckCommand.h
  1968. * src/SleepCommand.cc
  1969. * src/TrackerWatcherCommand.cc
  1970. * src/TrackerWatcherCommand.h
  1971. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1972. Rewritten PeerListProcessor
  1973. * src/PeerListProcessor.h
  1974. * src/CompactPeerListProcessor.h: Removed
  1975. * src/CompactPeerListProcessor.cc: Removed
  1976. * src/DelegatingPeerListProcessor.cc: Removed.
  1977. * src/DefaultBtAnnounce.cc
  1978. * src/Makefile.am
  1979. * src/UTPexExtensionMessage.cc
  1980. * src/DefaultPeerListProcessor.h: Removed.
  1981. * src/DefaultPeerListProcessor.cc: Removed.
  1982. * src/DelegatingPeerListProcessor.h: Removed.
  1983. * test/Makefile.am
  1984. * test/PeerListProcessorTest.cc
  1985. * test/DefaultPeerListProcessorTest.cc: Removed.
  1986. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1987. Rewritten RequestGroupMan::calculateStat()
  1988. * src/RequestGroupMan.cc
  1989. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1990. Removed unnecessary virtual destructor for Request class.
  1991. * src/Request.cc
  1992. * src/Request.h
  1993. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Avoid dynamic_pointer_cast.
  1995. * src/DHTGetPeersCommand.cc
  1996. * src/DHTGetPeersCommand.h
  1997. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1998. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  1999. BtEvent.
  2000. * src/AbstractBtEventListener.h: Removed.
  2001. * src/AbstractBtMessage.cc
  2002. * src/AbstractBtMessage.h
  2003. * src/BtAbortOutstandingRequestEvent.h
  2004. * src/BtCancelSendingPieceEvent.h
  2005. * src/BtChokedEvent.h: Removed.
  2006. * src/BtChokingEvent.h
  2007. * src/BtEvent.h: Removed
  2008. * src/BtEventListener.h: Removed.
  2009. * src/BtMessage.h
  2010. * src/BtPieceMessage.cc
  2011. * src/BtPieceMessage.h
  2012. * src/BtRequestMessage.cc
  2013. * src/BtRequestMessage.h
  2014. * src/DefaultBtMessageDispatcher.cc
  2015. * src/Makefile.am
  2016. * src/a2functional.h
  2017. * test/BtPieceMessageTest.cc
  2018. * test/BtRequestMessageTest.cc
  2019. * test/DefaultBtMessageDispatcherTest.cc
  2020. * test/MockBtMessage.h
  2021. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Code cleanup
  2023. * src/RequestGroupMan.cc
  2024. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. Code cleanup
  2026. * src/DownloadCommand.cc
  2027. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2028. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2029. byte.
  2030. * src/DownloadCommand.cc
  2031. * src/bitfield.h
  2032. * test/bitfieldTest.cc
  2033. Fixed the bug that causes infinite loop if broken web server
  2034. returns chunked response without last "0" chunk-size marker and
  2035. closes connection.
  2036. * src/DownloadCommand.cc
  2037. Instantiate properly configured HttpDownloadCommand for
  2038. non-resumable downlaods.
  2039. * src/HttpResponseCommand.cc
  2040. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Rewritten array operation functions.
  2042. * src/BitfieldMan.cc
  2043. * src/array_fun.h
  2044. * test/array_funTest.cc
  2045. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2046. Removed unused variable 'query'
  2047. * src/Request.cc
  2048. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2049. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2050. accidentally set to false in r1162.
  2051. * configure.ac
  2052. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2053. Code cleanup
  2054. * src/BNode.cc
  2055. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2056. Increase prefixLength for the bucket which doesn't own local node
  2057. ID when splitting bucket.
  2058. * src/DHTBucket.cc
  2059. * test/DHTBucketTest.cc
  2060. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. * Release 1.3.1
  2062. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Bump up version number to 1.3.1
  2064. * configure.ac
  2065. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Removed unused variable checkPoint. Also removed include directive
  2067. for TimeA2.h.
  2068. * src/SeedCheckCommand.h
  2069. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Fixed the bug that upload limit exceeds the value specified in
  2071. --seed-ratio option depending on the timing of the execution of
  2072. SeedCheckCommand.
  2073. * src/SeedCheckCommand.cc
  2074. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2075. Fixed the bug that removed peer's session upload/download length
  2076. are counted twice in _cachedTransferStat before it is
  2077. re-calculated. This affected the calculation of shara ratio,
  2078. resulting aria2 wrongly determines that specified share ratio is
  2079. reached. Also fixed the typo in calculateStatFor function name.
  2080. * src/BtSetup.cc
  2081. * src/DefaultPeerStorage.cc
  2082. * src/ShareRatioSeedCriteria.h
  2083. * test/ShareRatioSeedCriteriaTest.cc
  2084. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2085. * Release 1.3.0
  2086. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2087. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2088. Nynorsk translations. Thanks to all translators.
  2089. * po/es.po
  2090. * po/ja.po
  2091. * po/nn.po
  2092. * po/ru.po
  2093. * po/uk.po
  2094. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Rewritten isInRange()
  2096. * src/DHTBucket.cc
  2097. * test/DHTBucketTest.cc
  2098. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Fixed typo
  2100. * doc/aria2c.1.txt
  2101. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2102. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2103. malloc/realloc is not used.
  2104. * src/configure.ac
  2105. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2107. char* bitfield instead of stl container for efficiency.
  2108. PieceSelector::select now takes this
  2109. bitfield. RarestPieceSelector::select now also performs
  2110. efficiently for this change. bitfield namespace is introduced and
  2111. it has several helper functions to handle basic bitfield
  2112. operations such as test, count set bits, etc.
  2113. * src/BitfieldMan.cc
  2114. * src/BitfieldMan.h
  2115. * src/DefaultBtRequestFactory.cc
  2116. * src/DefaultPieceStorage.cc
  2117. * src/DefaultPieceStorage.h
  2118. * src/LongestSequencePieceSelector.cc
  2119. * src/LongestSequencePieceSelector.h
  2120. * src/Makefile.am
  2121. * src/Piece.cc
  2122. * src/Piece.h
  2123. * src/PieceSelector.h
  2124. * src/RarestPieceSelector.cc
  2125. * src/RarestPieceSelector.h
  2126. * src/Util.cc
  2127. * src/Util.h
  2128. * src/bitfield.h
  2129. * test/BitfieldManTest.cc
  2130. * test/LongestSequencePieceSelectorTest.cc
  2131. * test/Makefile.am
  2132. * test/RarestPieceSelectorTest.cc
  2133. * test/UtilTest.cc
  2134. * test/bitfieldTest.cc
  2135. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Made accepted socket non-block.
  2137. * src/FtpNegotiationCommand.cc
  2138. * src/HttpListenCommand.cc
  2139. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2140. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2141. * src/AbstractSingleDiskAdaptor.cc
  2142. * src/DefaultPieceStorage.cc
  2143. * src/DiskAdaptor.h
  2144. * src/DiskAdaptor.h
  2145. * src/MultiFileAllocationIterator.cc
  2146. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2147. Run
  2148. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2149. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2150. it doesn't need to be called every time when
  2151. DefaultBtInteractive::doInteractionProcessing() is called.
  2152. * src/DefaultBtInteractive.cc
  2153. * src/DefaultBtInteractive.h
  2154. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Documented 'falloc' in man page.
  2156. * doc/aria2c.1.txt
  2157. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Updated doc
  2159. * src/usage_text.h
  2160. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2162. allocation mode uses posix_fallocate() system call to allocate
  2163. file on disk. If you are using newer file systems such as ext4
  2164. (with extents support), btrfs or xfs, 'falloc' is your best
  2165. choice. It allocates large(few GiB) files almost instantly. Don't
  2166. use 'falloc' with legacy file systems such as ext3 because it
  2167. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2168. until allocation finishes. 'falloc' may not be available if your
  2169. system doesn't have posix_fallocate() system call.
  2170. * configure.ac
  2171. * src/AbstractDiskWriter.cc
  2172. * src/AbstractDiskWriter.h
  2173. * src/AbstractSingleDiskAdaptor.cc
  2174. * src/BinaryStream.h
  2175. * src/BtCheckIntegrityEntry.cc
  2176. * src/ByteArrayDiskWriter.h
  2177. * src/CheckIntegrityEntry.cc
  2178. * src/CheckIntegrityEntry.h
  2179. * src/DefaultPieceStorage.cc
  2180. * src/DiskAdaptor.cc
  2181. * src/DiskAdaptor.h
  2182. * src/DiskWriter.h
  2183. * src/FallocFileAllocationIterator.cc
  2184. * src/FallocFileAllocationIterator.h
  2185. * src/FileAllocationEntry.cc
  2186. * src/FileAllocationEntry.h
  2187. * src/Makefile.am
  2188. * src/MultiFileAllocationIterator.cc
  2189. * src/MultiFileAllocationIterator.h
  2190. * src/OptionHandlerFactory.cc
  2191. * src/RequestGroup.cc
  2192. * src/StreamCheckIntegrityEntry.cc
  2193. * src/prefs.cc
  2194. * src/prefs.h
  2195. * src/usage_text.h
  2196. * test/FallocFileAllocationIteratorTest.cc
  2197. * test/Makefile.am
  2198. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Removed duplicate enableDirectIO() call.
  2200. * src/MultiFileAllocationIterator.cc
  2201. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2202. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2203. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2204. cost of std::rotate().
  2205. * src/RarestPieceSelector.cc
  2206. * src/RarestPieceSelector.h
  2207. * test/RarestPieceSelectorTest.cc
  2208. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2209. Updated usage doc for --bt-tracker-interval option.
  2210. * src/usage_text.h
  2211. * doc/aria2c.1.txt
  2212. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. Documented --bt-tracker-interval option in man page.
  2214. * doc/aria2c.1.txt
  2215. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2216. Added an option to specify the interval between tracker requests.
  2217. If non-zero value is specified, aria2 uses it and ignores the
  2218. interval value in the response of tracker. If zero is specified,
  2219. aria2 determines the inteval value based on the tarcker response
  2220. and download progress.
  2221. * src/DefaultBtAnnounce.cc
  2222. * src/DefaultBtAnnounce.h
  2223. * src/OptionHandlerFactory.cc
  2224. * src/RequestGroup.cc
  2225. * src/prefs.cc
  2226. * src/prefs.h
  2227. * src/usage_text.h
  2228. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Added operator+=, operator-=, operator-
  2230. * src/TransferStat.cc
  2231. * src/TransferStat.h
  2232. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Refactored RarestPieceSelector to reduce CPU load, especially for
  2234. addPieceStats.
  2235. * src/RarestPieceSelector.cc
  2236. * src/RarestPieceSelector.h
  2237. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2238. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2239. getAllMissingBlockIndexes to reduce a call to
  2240. array_function_base::operator[].
  2241. * src/BitfieldMan.cc
  2242. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Cached TransferStat/download speed to avoid to sum them up in each
  2244. call.
  2245. * src/DefaultPeerStorage.cc
  2246. * src/DefaultPeerStorage.h
  2247. * src/SegmentMan.cc
  2248. * src/SegmentMan.h
  2249. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Typedefed cuid_t as int32_t in Command.h
  2251. * src/CUIDCounter.h
  2252. * src/Command.cc
  2253. * src/Command.h
  2254. * src/DownloadEngine.cc
  2255. * src/DownloadEngine.h
  2256. * src/PeerStat.h
  2257. * src/SegmentMan.cc
  2258. * src/SegmentMan.h
  2259. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2260. Reduced the number of calls to PeerStorage::calculateStat() and
  2261. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2262. transfer rate.
  2263. * src/DefaultBtInteractive.cc
  2264. * src/DefaultBtMessageDispatcher.cc
  2265. * src/DefaultPeerStorage.cc
  2266. * src/DefaultPeerStorage.h
  2267. * src/DownloadCommand.cc
  2268. * src/DownloadEngine.cc
  2269. * src/PeerStorage.h
  2270. * src/SegmentMan.cc
  2271. * src/SegmentMan.h
  2272. * test/MockPeerStorage.h
  2273. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Prepended _dir+"/" after joining path elements in torrent file.
  2275. * src/DefaultBtContext.cc
  2276. * test/DefaultBtContextTest.cc
  2277. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Added missing IndexBtMessageValidator.h
  2279. * src/Makefile.am
  2280. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2281. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2282. Chinese translations. Thank you for contributing our project.
  2283. * po/id.po
  2284. * po/it.po
  2285. * po/ru.po
  2286. * po/uk.po
  2287. * po/zh_CN.po
  2288. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Updated README
  2290. * README
  2291. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Bump up version number to 1.3.0
  2293. * configure.ac
  2294. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Updated doc
  2296. * src/DefaultBtContext.h
  2297. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2298. Slice/joinPath for name of single torrent.
  2299. * src/DefaultBtContext.cc
  2300. * test/DefaultBtContextTest.cc
  2301. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Updated man page: Documented --dry-run and --index-out
  2303. options. Changed the default value of --uri-selector and
  2304. --http-auth-challenge options. Removed --direct-file-mapping
  2305. option. Added example for --index-out
  2306. * doc/aria2c.1.txt
  2307. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Updated TEXT_DRY_RUN
  2309. * src/usage_text.h
  2310. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Changed the default value of --uri-selector option from 'inorder'
  2312. to 'feedback'
  2313. * src/OptionHandlerFactory.cc
  2314. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Included current URI in exception message.
  2316. * src/AbstractCommand.cc
  2317. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Renamed ServerStatURISelector as FeedbackURISelector.
  2319. * src/FeedbackURISelector.cc
  2320. * src/FeedbackURISelector.h
  2321. * src/Makefile.am
  2322. * src/RequestGroupMan.cc
  2323. * src/ServerStatURISelector.cc
  2324. * src/ServerStatURISelector.h
  2325. * test/FeedbackURISelectorTest.cc
  2326. * test/Makefile.am
  2327. * test/ServerStatURISelectorTest.cc
  2328. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2330. all URIs are tested and their timeout is not reached.
  2331. * src/AdaptiveURISelector.cc
  2332. * src/AdaptiveURISelector.h
  2333. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Changed the default value of --http-auth-challenge option to false.
  2335. * src/OptionHandlerFactory.cc
  2336. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2337. Reuse URIs when all unused URIs run out.
  2338. * src/OptionHandlerFactory.cc
  2339. * src/RequestGroup.cc
  2340. * src/prefs.cc
  2341. * src/prefs.h
  2342. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2343. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2344. and BtRejectMessage are derived from RangeBtMessage class.
  2345. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2346. derived from IndexBtMessage class. BtChokeMessage,
  2347. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2348. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2349. ZeroBtMessage class.
  2350. * src/AbstractBtMessage.cc
  2351. * src/AbstractBtMessage.h
  2352. * src/BtAllowedFastMessage.cc
  2353. * src/BtAllowedFastMessage.h
  2354. * src/BtAllowedFastMessageValidator.h: Removed
  2355. * src/BtBitfieldMessage.cc
  2356. * src/BtBitfieldMessage.h
  2357. * src/BtCancelMessage.cc
  2358. * src/BtCancelMessage.h
  2359. * src/BtCancelMessageValidator.h: Removed
  2360. * src/BtChokeMessage.cc
  2361. * src/BtChokeMessage.h
  2362. * src/BtExtendedMessage.cc
  2363. * src/BtExtendedMessage.h
  2364. * src/BtHandshakeMessage.cc
  2365. * src/BtHandshakeMessage.h
  2366. * src/BtHaveAllMessage.cc
  2367. * src/BtHaveAllMessage.h
  2368. * src/BtHaveMessage.cc
  2369. * src/BtHaveMessage.h
  2370. * src/BtHaveMessageValidator.h: Removed
  2371. * src/BtHaveNoneMessage.cc
  2372. * src/BtHaveNoneMessage.h
  2373. * src/BtInterestedMessage.cc
  2374. * src/BtInterestedMessage.h
  2375. * src/BtKeepAliveMessage.cc
  2376. * src/BtKeepAliveMessage.h
  2377. * src/BtNotInterestedMessage.cc
  2378. * src/BtNotInterestedMessage.h
  2379. * src/BtPieceMessage.cc
  2380. * src/BtPieceMessage.h
  2381. * src/BtPortMessage.cc
  2382. * src/BtPortMessage.h
  2383. * src/BtRejectMessage.cc
  2384. * src/BtRejectMessage.h
  2385. * src/BtRejectMessageValidator.h: Removed
  2386. * src/BtRequestMessage.cc
  2387. * src/BtRequestMessage.h
  2388. * src/BtRequestMessageValidator.h: Removed
  2389. * src/BtSuggestPieceMessage.cc
  2390. * src/BtSuggestPieceMessage.h
  2391. * src/BtSuggestPieceMessageValidator.h: Removed
  2392. * src/BtUnchokeMessage.cc
  2393. * src/BtUnchokeMessage.h
  2394. * src/DefaultBtMessageFactory.cc
  2395. * src/IndexBtMessage.cc
  2396. * src/IndexBtMessage.h
  2397. * src/IndexBtMessageValidator.h
  2398. * src/Makefile.am
  2399. * src/PeerMessageUtil.cc
  2400. * src/PeerMessageUtil.h
  2401. * src/RangeBtMessage.cc
  2402. * src/RangeBtMessage.h
  2403. * src/RangeBtMessageValidator.h
  2404. * src/SimpleBtMessage.cc
  2405. * src/SimpleBtMessage.h
  2406. * src/ZeroBtMessage.cc
  2407. * src/ZeroBtMessage.h
  2408. * test/BtRequestMessageTest.cc
  2409. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2410. Reverted usage_text.h to r1093 to avoid to lose translated
  2411. messages.
  2412. * src/usage_text.h
  2413. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2415. declared as non-const previously is now const and defined in class
  2416. definition.
  2417. * src/AbstractBtMessage.cc
  2418. * src/AbstractBtMessage.h
  2419. * src/BtAllowedFastMessage.cc
  2420. * src/BtAllowedFastMessage.h
  2421. * src/BtBitfieldMessage.h
  2422. * src/BtCancelMessage.cc
  2423. * src/BtCancelMessage.h
  2424. * src/BtChokeMessage.cc
  2425. * src/BtChokeMessage.h
  2426. * src/BtExtendedMessage.cc
  2427. * src/BtExtendedMessage.h
  2428. * src/BtHandshakeMessage.cc
  2429. * src/BtHandshakeMessage.h
  2430. * src/BtHaveAllMessage.cc
  2431. * src/BtHaveAllMessage.h
  2432. * src/BtHaveMessage.cc
  2433. * src/BtHaveMessage.h
  2434. * src/BtHaveNoneMessage.cc
  2435. * src/BtHaveNoneMessage.h
  2436. * src/BtInterestedMessage.cc
  2437. * src/BtInterestedMessage.h
  2438. * src/BtKeepAliveMessage.cc
  2439. * src/BtKeepAliveMessage.h
  2440. * src/BtMessage.h
  2441. * src/BtNotInterestedMessage.cc
  2442. * src/BtNotInterestedMessage.h
  2443. * src/BtPieceMessage.h
  2444. * src/BtPortMessage.cc
  2445. * src/BtPortMessage.h
  2446. * src/BtRejectMessage.cc
  2447. * src/BtRejectMessage.h
  2448. * src/BtRequestMessage.cc
  2449. * src/BtRequestMessage.h
  2450. * src/BtSuggestPieceMessage.cc
  2451. * src/BtSuggestPieceMessage.h
  2452. * src/BtUnchokeMessage.cc
  2453. * src/BtUnchokeMessage.h
  2454. * src/SimpleBtMessage.cc
  2455. * src/SimpleBtMessage.h
  2456. * test/MockBtMessage.h
  2457. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2458. Use FileEntry::exists()
  2459. * src/MultiDiskAdaptor.cc
  2460. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. Added exists()
  2462. * src/FileEntry.cc
  2463. * src/FileEntry.h
  2464. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2465. Added missing prefix dir.
  2466. * src/download_helper.cc
  2467. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2468. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2469. * src/CopyDiskAdaptor.cc: Removed
  2470. * src/CopyDiskAdaptor.h: Removed
  2471. * src/DefaultPieceStorage.cc
  2472. * src/Makefile.am
  2473. * src/OptionHandlerFactory.cc
  2474. * src/prefs.cc
  2475. * src/prefs.h
  2476. * src/usage_text.h
  2477. * test/CopyDiskAdaptorTest.cc: Removed
  2478. * test/Makefile.am
  2479. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Rewritten isSameFileBeingDownloaded()
  2481. * src/RequestGroupMan.cc
  2482. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Removed getName() from DownloadContext. getName() is declared in
  2484. BtContext.
  2485. * src/BtContext.h
  2486. * src/DownloadContext.h
  2487. * src/SingleFileDownloadContext.cc
  2488. * src/SingleFileDownloadContext.h
  2489. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2490. in AbstractSingleDiskAdaptor.
  2491. * src/AbstractSingleDiskAdaptor.h
  2492. * src/DiskAdaptor.h
  2493. * src/MultiDiskAdaptor.h
  2494. * src/RequestGroup.cc
  2495. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2496. MultiDiskAdaptor.
  2497. * src/DefaultPieceStorage.cc
  2498. * src/MultiDiskAdaptor.cc
  2499. * src/MultiDiskAdaptor.h
  2500. * test/MultiDiskAdaptorTest.cc
  2501. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2502. FileEntry::getPath() contains store(top level) directory to
  2503. simplify path handling operation. In the previous implementation,
  2504. store directory is concatenated to FileEntry::getPath() in
  2505. DownloadContext.
  2506. * src/BtDependency.cc
  2507. * src/BtPostDownloadHandler.cc
  2508. * src/CopyDiskAdaptor.cc
  2509. * src/DefaultBtContext.cc
  2510. * src/DirectDiskAdaptor.cc
  2511. * src/FileEntry.cc
  2512. * src/FileEntry.h
  2513. * src/FtpNegotiationCommand.cc
  2514. * src/HttpResponse.cc
  2515. * src/HttpResponseCommand.cc
  2516. * src/Metalink2RequestGroup.cc
  2517. * src/MultiDiskAdaptor.cc
  2518. * src/MultiDiskAdaptor.h
  2519. * src/MultiFileAllocationIterator.cc
  2520. * src/RequestGroup.cc
  2521. * src/SingleFileDownloadContext.cc
  2522. * src/SingleFileDownloadContext.h
  2523. * src/download_helper.cc
  2524. * test/BtDependencyTest.cc
  2525. * test/CopyDiskAdaptorTest.cc
  2526. * test/DefaultBtContextTest.cc
  2527. * test/DefaultBtProgressInfoFileTest.cc
  2528. * test/DirectDiskAdaptorTest.cc
  2529. * test/DownloadHelperTest.cc
  2530. * test/FileEntryTest.cc
  2531. * test/MultiDiskAdaptorTest.cc
  2532. * test/MultiFileAllocationIteratorTest.cc
  2533. * test/RequestGroupTest.cc
  2534. * test/SingleFileDownloadContextTest.cc
  2535. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Fixed compiler warning
  2537. * src/download_helper.cc
  2538. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2539. Throw exception if same infohash torrent is now downloading.
  2540. * src/RequestGroup.cc
  2541. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Added --dry-run option. In this mode, aria2 just checks whether
  2543. the remote file is available and doesn't download data. This
  2544. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2545. are canceled in this mode.
  2546. * src/FtpNegotiationCommand.cc
  2547. * src/HttpResponseCommand.cc
  2548. * src/HttpResponseCommand.h
  2549. * src/OptionHandlerFactory.cc
  2550. * src/RequestGroup.cc
  2551. * src/RequestGroupMan.cc
  2552. * src/prefs.cc
  2553. * src/prefs.h
  2554. * src/usage_text.h
  2555. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2556. Fixed compiler waring
  2557. * test/UriListParserTest.cc
  2558. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Parse options in -i list using OptionParser.
  2560. * src/UriListParser.cc
  2561. * src/UriListParser.h
  2562. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. Don't reset URI in retry to avoid additional round trips because
  2564. of redirects.
  2565. * src/AbstractCommand.cc
  2566. * src/OptionHandlerFactory.cc
  2567. * src/prefs.cc
  2568. * src/prefs.h
  2569. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Declared hide() in OptionHandler.
  2571. * src/NameMatchOptionHandler.h
  2572. * src/OptionHandler.h
  2573. * src/OptionHandlerImpl.h
  2574. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. Updated doc
  2576. * src/Peer.h
  2577. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Added log message in setStatusInternal()
  2579. * src/ServerStat.cc
  2580. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2582. effectively exclude failed server.
  2583. * src/AbstractCommand.cc
  2584. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2585. Added --index-out option to specify each file path for torrent.
  2586. Here index shown in --show-files option is used to specify which
  2587. file path should be altered. For example, to change the file path
  2588. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2589. option multiple times: --index-out=1=aria2.tar.bz2
  2590. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2591. available. This option can be specified in -i list.
  2592. * src/DefaultBtContext.cc
  2593. * src/DefaultBtContext.h
  2594. * src/MultiDiskAdaptor.cc
  2595. * src/MultiDiskAdaptor.h
  2596. * src/MultiFileAllocationIterator.cc
  2597. * src/OptionHandlerFactory.cc
  2598. * src/OptionHandlerImpl.h
  2599. * src/Util.cc
  2600. * src/Util.h
  2601. * src/download_helper.cc
  2602. * src/prefs.cc
  2603. * src/prefs.h
  2604. * src/usage_text.h
  2605. * test/DefaultBtContextTest.cc
  2606. * test/MultiDiskAdaptorTest.cc
  2607. * test/MultiFileAllocationIteratorTest.cc
  2608. * test/UtilTest.cc
  2609. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2610. Use Util::pathJoin()
  2611. * src/MetalinkParserController.cc
  2612. * test/test.xml
  2613. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2614. Use Util::pathJoin()
  2615. * src/DefaultBtContext.cc
  2616. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Added Util::pathJoin()
  2618. * src/Util.h
  2619. * test/UtilTest.cc
  2620. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2621. Applied basename function to remove directory element in
  2622. content-disposition value.
  2623. Return empty string if content-disposition value is ".." or ".".
  2624. * src/Util.cc
  2625. * test/UtilTest.cc
  2626. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Added --max-overall-download-limit in man page.
  2628. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2629. * doc/aria2c.1.txt
  2630. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2631. Added --max-overall-download-limit option. Now --max-upload-limit
  2632. option is not ignored when --max-overall-upload-limit option has
  2633. non-zero value. aria2 checks download(upload) speed in the order:
  2634. first checks overall speed limit and if it is not exceeded, then
  2635. checks speed limit per download. Thus you can specify both
  2636. value. For example, set --max-overall-download-limit=1M and
  2637. --max-download-limit=500K to prevent from one download from eating
  2638. all overall speed limit.
  2639. * src/DefaultBtInteractive.cc
  2640. * src/DefaultBtInteractive.h
  2641. * src/DefaultBtMessageDispatcher.cc
  2642. * src/DefaultBtMessageDispatcher.h
  2643. * src/DownloadCommand.cc
  2644. * src/DownloadCommand.h
  2645. * src/FtpNegotiationCommand.cc
  2646. * src/HttpResponseCommand.cc
  2647. * src/OptionHandlerFactory.cc
  2648. * src/PeerInteractionCommand.cc
  2649. * src/RequestGroup.cc
  2650. * src/RequestGroup.h
  2651. * src/RequestGroupMan.cc
  2652. * src/RequestGroupMan.h
  2653. * src/prefs.cc
  2654. * src/prefs.h
  2655. * src/usage_text.h
  2656. * test/DefaultBtMessageDispatcherTest.cc
  2657. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Documented select-file option in Input File section.
  2659. Documented --http-auth-challenge option.
  2660. * doc/aria2c.1.txt
  2661. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2662. Now select-file can be specified in the uri list(-i list).
  2663. * src/BtContext.cc
  2664. * src/BtContext.h
  2665. * src/RequestGroup.cc
  2666. * src/Sequence.h
  2667. * src/download_helper.cc
  2668. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2669. Made the upper value of --max-concurrent-downloads options unlimited.
  2670. * src/OptionHandlerFactory.cc
  2671. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2672. Fixed the bug that disk writer is not created even if it shares
  2673. same piece with the preceding file if the length of previous file
  2674. is 0.
  2675. * src/MultiDiskAdaptor.cc
  2676. * test/MultiDiskAdaptorTest.cc
  2677. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2678. In BitTorrent, Open files in read-only mode for hash check. After
  2679. that, re-open file in read/write mode only when the download is
  2680. not finished.
  2681. * src/AbstractDiskWriter.cc
  2682. * src/AbstractDiskWriter.h
  2683. * src/AbstractSingleDiskAdaptor.cc
  2684. * src/AbstractSingleDiskAdaptor.h
  2685. * src/BtCheckIntegrityEntry.cc
  2686. * src/DiskAdaptor.h
  2687. * src/DiskWriter.h
  2688. * src/MultiDiskAdaptor.cc
  2689. * src/MultiDiskAdaptor.h
  2690. * src/RequestGroup.cc
  2691. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Added --http-auth-challenge option. If it is set to true(by
  2693. default), aria2 sends HTTP authorization header only when it is
  2694. requested by the server. If false is set, then authorization
  2695. header is always sent to the server. This is useful for servers
  2696. that don't respond 401 code when authentication is required.
  2697. There is an exception: if username and password are embedded in
  2698. URI, authorization header is always sent to the server regardless
  2699. of this option.
  2700. * src/AuthConfigFactory.cc
  2701. * src/HttpSkipResponseCommand.cc
  2702. * src/OptionHandlerFactory.cc
  2703. * src/prefs.cc
  2704. * src/prefs.h
  2705. * src/usage_text.h
  2706. * test/AuthConfigFactoryTest.cc
  2707. * test/HttpRequestTest.cc
  2708. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. * Release 1.2.0
  2710. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2712. Thanks to all translators.
  2713. * po/es.po
  2714. * po/ja.po
  2715. * po/ru.po
  2716. * po/uk.po
  2717. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2718. Call deleteSocketForReadCheck() before socket is closed.
  2719. * src/HttpListenCommand.cc
  2720. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2721. Defined virtual destructor for BObject.
  2722. * src/bencode.h
  2723. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Rewritten BDE to make it efficient.
  2725. * src/bencode.cc
  2726. * src/bencode.h
  2727. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Removed function throw list.
  2729. * src/bencode.cc
  2730. * src/bencode.h
  2731. * test/BencodeTest.cc
  2732. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Enclosed all URLs in double quotes in command-line examples.
  2734. * doc/aria2c.1.txt
  2735. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2736. Updated reference/see also section.
  2737. * README
  2738. * doc/aria2c.1.txt
  2739. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Reorganized man page based on man man-pages.
  2741. * doc/aria2c.1.txt
  2742. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2744. because same documents are available in man page. Added
  2745. References section.
  2746. * README
  2747. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2749. PERFORMANCE PROFILE section.
  2750. * doc/aria2c.1.txt
  2751. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2752. Rewritten the section for configuration file.
  2753. * README
  2754. * doc/aria2c.1.txt
  2755. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2756. Fixed the segmentation fault during execution of choking algorithm
  2757. in leecher state because of broken compare operator
  2758. implementation.
  2759. * src/BtLeecherStateChoke.cc
  2760. * src/BtLeecherStateChoke.h
  2761. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2762. Open file in binary mode.
  2763. * src/CookieStorage.cc
  2764. * src/DHTSetup.cc
  2765. * src/DHTUtil.cc
  2766. * src/Netrc.cc
  2767. * src/NsCookieParser.cc
  2768. * src/ProtocolDetector.cc
  2769. * src/RequestGroupMan.cc
  2770. * src/Signature.cc
  2771. * src/bencode.cc
  2772. * src/download_helper.cc
  2773. * src/option_processing.cc
  2774. * test/CookieParserTest.cc
  2775. * test/DefaultBtProgressInfoFileTest.cc
  2776. * test/FileTest.cc
  2777. * test/GZipDecoderTest.cc
  2778. * test/RequestGroupManTest.cc
  2779. * test/SignatureTest.cc
  2780. * test/SingleFileAllocationIteratorTest.cc
  2781. * test/UriListParserTest.cc
  2782. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2783. Removed operator[] because it is ambiguous with built-in []
  2784. operator.
  2785. * src/array_fun.h
  2786. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Fixed compile error
  2788. * src/OptionParser.cc
  2789. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2790. Added missing call to arrayWrapperConst
  2791. * test/array_funTest.cc
  2792. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2793. Use array_wrapper instead of array_ptr.
  2794. * src/DHTRoutingTableDeserializer.cc
  2795. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2796. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2797. * src/array_fun.h
  2798. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2799. Added array_wrapper template.
  2800. * src/array_fun.h
  2801. * test/array_funTest.cc
  2802. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Use operator T* of array_ptr.
  2804. * src/OptionParser.cc
  2805. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2806. Use localhost instead of 127.0.0.1
  2807. * test/FtpConnectionTest.cc
  2808. * test/MSEHandshakeTest.cc
  2809. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Added operator T*
  2811. * src/array_fun.h
  2812. * test/array_funTest.cc
  2813. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Use dynamically allocated char array to detect memory access
  2815. violation.
  2816. * src/DHTRoutingTableDeserializer.cc
  2817. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2819. defined.
  2820. * src/PeerMessageUtil.cc
  2821. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2822. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2823. * configure.ac
  2824. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Added a check to see struct sockaddr_in has sin_len member.
  2826. * configure.ac
  2827. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. Fixed buffer overrun.
  2829. * src/DHTRoutingTableDeserializer.cc
  2830. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Added LL for long long int constant.
  2832. * test/FtpConnectionTest.cc
  2833. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Casted to unsigned int to suppress compiler warning on netbsd.
  2835. * src/BtRuntime.h
  2836. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2837. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2838. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2839. type time_t.
  2840. * src/SimpleLogger.cc
  2841. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Added test for FtpConnection::receiveSizeResponse().
  2843. * test/FtpConnectionTest.cc
  2844. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2845. Fix epoll error on the old kernel 2.6.8 or ealier.
  2846. * src/EpollEventPoll.cc
  2847. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Use Util::parseLLInt instead of sscanf for portability. The
  2849. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2850. * src/FtpConnection.cc
  2851. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2852. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2853. block. It should not filter anything.
  2854. * src/BitfieldMan.cc
  2855. * src/ConsoleStatCalc.cc
  2856. * test/BitfieldManTest.cc
  2857. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2858. Fixed the bug that the boolean options that don't take arguments
  2859. don't work.
  2860. * src/OptionHandlerImpl.h
  2861. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Fixed broken selected file BitTorrent download.
  2863. * src/MultiDiskAdaptor.cc
  2864. * test/MultiDiskAdaptorTest.cc
  2865. * test/MultiFileAllocationIteratorTest.cc
  2866. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2867. Fixed #define guard for EpollEventPoll
  2868. * src/EpollEventPoll.h
  2869. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Wait 2 seconds. 1 second is sometimes not enough.
  2871. * test/TimeSeedCriteriaTest.cc
  2872. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Use localhost instead of 127.0.0.1.
  2874. * test/DHTConnectionImplTest.cc
  2875. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Suppressed compiler warning.
  2877. * src/AdaptiveURISelector.cc
  2878. * src/DefaultPieceStorage.cc
  2879. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2880. Defined virtual destructor.
  2881. * src/MetalinkParserState.h
  2882. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2883. Give NULL for second argument of getaddrinfo instead of "0".
  2884. * src/NameResolver.cc
  2885. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2887. included strptime doesn't parse data for this format.
  2888. * src/FtpConnection.cc
  2889. * test/FtpConnectionTest.cc
  2890. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2891. Removed tests giving -1 for unsigned argument.
  2892. * test/SingleFileDownloadContextTest.cc
  2893. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Don't use sha256 in tests because it might not be supported by the
  2895. SSL library.
  2896. * test/MetalinkProcessorTest.cc
  2897. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Removed tests giving -1 for unsigned argument.
  2899. * test/AlphaNumberDecoratorTest
  2900. * test/BitfieldManTest.cc
  2901. * test/DefaultBtContextTest.cc
  2902. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. Fixed compile error without libcares when epoll is available.
  2904. * src/EpollEventPoll.cc
  2905. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2906. Included fstream instead of iostream.
  2907. * test/SignatureTest.cc
  2908. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2909. Removed #include <algorithm>
  2910. * test/RequestGroupTest.cc
  2911. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2912. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2913. using RequestGroup::extractURIResult().
  2914. * src/AdaptiveURISelector.cc
  2915. * src/RequestGroup.cc
  2916. * src/RequestGroup.h
  2917. * test/RequestGroupTest.cc
  2918. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2919. Added tests for array_ptr.
  2920. * test/array_funTest.cc
  2921. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2922. Don't send ip parameter to a tracker if ip parameter is empty
  2923. string.
  2924. * src/DefaultBtAnnounce.cc
  2925. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2926. Adjusted line feed.
  2927. * src/version_usage.cc
  2928. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2929. Print tags, possible values when OptionHandlerException is caught.
  2930. * src/option_processing.cc
  2931. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2932. Changed the message for FatalException.
  2933. * src/OptionParser.cc
  2934. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2935. Documented --bt-external-ip option in man page. Updated man pages
  2936. for --proxy-method option.
  2937. * doc/aria2c.1.txt
  2938. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Use GET method for FTP via HTTP proxy.
  2940. * src/FtpInitiateConnectionCommand.cc
  2941. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2942. Changed the default value of --proxy-method option from 'tunnel'
  2943. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2944. option.
  2945. * src/AbstractCommand.cc
  2946. * src/AbstractCommand.h
  2947. * src/FtpInitiateConnectionCommand.cc
  2948. * src/HttpDownloadCommand.cc
  2949. * src/HttpInitiateConnectionCommand.cc
  2950. * src/HttpInitiateConnectionCommand.h
  2951. * src/OptionHandlerFactory.cc
  2952. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2953. Initialized _logger
  2954. * src/SelectEventPoll.cc
  2955. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Defined a copy constructor for the same type.
  2957. * src/SharedHandle.h
  2958. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2959. Added OptionParser::parseArg() which internally uses getopt_long
  2960. to parse command-line options. All command-line options are now
  2961. configured by OptionHandler. No manual editing of struct option*
  2962. is required any more.
  2963. * src/NameMatchOptionHandler.h
  2964. * src/OptionHandler.h
  2965. * src/OptionHandlerFactory.cc
  2966. * src/OptionHandlerImpl.h
  2967. * src/OptionParser.cc
  2968. * src/OptionParser.h
  2969. * src/array_fun.h
  2970. * src/main.cc
  2971. * src/option_processing.cc
  2972. * test/OptionHandlerTest.cc
  2973. * test/OptionParserTest.cc
  2974. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2975. Fixed configure error with --disable-epoll
  2976. * configure.ac
  2977. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2978. Fixed compile error when HAVE_EPOLL is not defined.
  2979. Fixed linker error on bigendian systems.
  2980. * src/SocketCore.cc
  2981. * src/SocketCore.h
  2982. * test/DefaultBtProgressInfoFileTest.cc
  2983. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Added --bt-external-ip option. You can specify the external IP
  2985. address to report to a BitTorrent tracker. Although this function
  2986. is named 'external', it can accept any kind of IP addresses.
  2987. * src/DefaultBtAnnounce.cc
  2988. * src/OptionHandlerFactory.cc
  2989. * src/option_processing.cc
  2990. * src/prefs.cc
  2991. * src/prefs.h
  2992. * src/usage_text.h
  2993. * test/DefaultBtAnnounceTest.cc
  2994. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2995. Extracted the algorithm to find the longest incremental sequence
  2996. as max_sequence template.
  2997. * src/LongestSequencePieceSelector.cc
  2998. * src/a2algo.h
  2999. * test/Makefile.am
  3000. * test/a2algoTest.cc
  3001. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3002. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3003. * src/usage_text.h
  3004. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3005. Updated doc for --uri-selector, --http-server-listen-port and
  3006. --enable-http-server option. Documented --event-poll option.
  3007. * doc/aria2c.1.txt
  3008. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3009. Updated doc for --enable-http-server.
  3010. * src/usage_text.h
  3011. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3012. Documented --http-server-listen-port and --enable-http-server in
  3013. man page.
  3014. * doc/aria2c.1.txt
  3015. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3016. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3017. translations. Thanks to all translators.
  3018. * po/es.po
  3019. * po/id.po
  3020. * po/it.po
  3021. * po/ru.po
  3022. * po/uk.po
  3023. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3024. Bump up version number to 1.2.0
  3025. * configure.ac
  3026. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3027. BtContext::getAnnounceTiers() now returns const reference.
  3028. * src/BtContext.h
  3029. * src/DefaultBtContext.cc
  3030. * src/DefaultBtContext.h
  3031. * test/MockBtContext.h
  3032. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. Change the number of retries for tracker request based on the
  3034. number of available tracker in a torrent file.
  3035. * src/TrackerWatcherCommand.cc
  3036. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3037. Added _maxTries property to RequestGroup and assign the option
  3038. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3039. RequestGroup::getMaxTries() instead of
  3040. Option::getAsInt(PREF_MAX_TRIES).
  3041. * src/AbstractCommand.cc
  3042. * src/RequestGroup.cc
  3043. * src/RequestGroup.h
  3044. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3045. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3046. Mandriva. I modified the patch: make RequestGroup have the
  3047. timeout value and AdaptiveURISelector directly modifies that
  3048. value.
  3049. * src/AbstractCommand.cc
  3050. * src/AdaptiveURISelector.cc
  3051. * src/AdaptiveURISelector.h
  3052. * src/FtpNegotiationCommand.cc
  3053. * src/RequestGroup.cc
  3054. * src/RequestGroup.h
  3055. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3056. Fixed compiler warning
  3057. * test/IteratableChecksumValidatorTest.cc
  3058. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3060. integrated downloads. This PieceSelector subclass finds the
  3061. longest continuous sequence in the available missing pieces and
  3062. selects the last index of such sequence. This makes HTTP/FTP
  3063. connections less interrupted by the pieces obtained by BitTorrent
  3064. peers.
  3065. * src/DefaultPieceStorage.cc
  3066. * src/DefaultPieceStorage.h
  3067. * src/LongestSequencePieceSelector.cc
  3068. * src/LongestSequencePieceSelector.h
  3069. * src/Makefile.am
  3070. * src/PieceSelector.h
  3071. * src/RarestPieceSelector.h
  3072. * src/RequestGroup.cc
  3073. * test/BtDependencyTest.cc
  3074. * test/DefaultPieceStorageTest.cc
  3075. * test/IteratableChecksumValidatorTest.cc
  3076. * test/LongestSequencePieceSelectorTest.cc
  3077. * test/Makefile.am
  3078. * test/SegmentManTest.cc
  3079. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3080. Fixed the bug that the average speed is wrong in
  3081. http/ftp/BitTorrent integrated download. Only the download bytes
  3082. in BitTorrent were considered.
  3083. * src/RequestGroup.cc
  3084. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Choose port for BitTorrent/DHT randomly from the specified range.
  3086. * src/DHTConnectionImpl.cc
  3087. * src/PeerListenCommand.cc
  3088. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3089. Send HTTP Authorization header only if it is requested by the
  3090. server(response 401). There are some exceptions. The authorization
  3091. header for proxy is always sent if it is available without request
  3092. by the server. If username/password is specified in the URI, it
  3093. is immediately sent to the server without request by the server.
  3094. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3095. SharedHandle<AuthConfig>().
  3096. NetrcAuthResolver::resolveAuthConfig() returns
  3097. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3098. * src/AbstractAuthResolver.cc
  3099. * src/AbstractProxyRequestCommand.cc
  3100. * src/AuthConfigFactory.cc
  3101. * src/AuthConfigFactory.h
  3102. * src/HttpConnection.cc
  3103. * src/HttpRequest.cc
  3104. * src/HttpRequest.h
  3105. * src/HttpResponse.cc
  3106. * src/HttpResponseCommand.cc
  3107. * src/HttpSkipResponseCommand.cc
  3108. * test/AuthConfigFactoryTest.cc
  3109. * test/HttpRequestTest.cc
  3110. * test/HttpResponseTest.cc
  3111. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3112. Remove leading "--" from help keyword and a substring after "="
  3113. from help keyword, so that one can query options by '-h--max-' or
  3114. '-hmax-peers=10'.
  3115. * src/option_processing.cc
  3116. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3117. Rewritten PStringVisitor and its implementation.
  3118. * src/PStringBuildVisitor.cc
  3119. * src/PStringBuildVisitor.h
  3120. * src/PStringDatum.h
  3121. * src/PStringNumLoop.h
  3122. * src/PStringSegment.cc
  3123. * src/PStringSegment.h
  3124. * src/PStringSelect.h
  3125. * src/PStringVisitor.h
  3126. * src/download_helper.cc
  3127. * test/PStringBuildVisitorTest.cc
  3128. * test/ParameterizedStringParserTest.cc
  3129. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3130. Persist connection between the built-in HTTP server and a client
  3131. if a client supports keep-alive. Fixed the bug that aria2 exits
  3132. when the HTTP server receives EOF from a client.
  3133. * src/HttpServer.cc
  3134. * src/HttpServer.h
  3135. * src/HttpServerCommand.cc
  3136. * src/HttpServerCommand.h
  3137. * src/HttpServerResponseCommand.cc
  3138. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3139. Added experimental built-in HTTP server. Currently, when a client
  3140. accesses to the server, it responds with the current download
  3141. progress. By default, it is disabled. To enable the server, give
  3142. --enable-http-server option. To change the default port number
  3143. for the server to listen to, use --http-server-listen-port option.
  3144. The response HTML is very simple and refreshes it self each 1
  3145. second. Because of this refresh, you see flicker in normal web
  3146. browser such as Firefox. I recommend to use console-based browser
  3147. such as elinks, w3m. To connect to the server, run 'elinks
  3148. http://localhost:6800/' while running aria2. Please replace port
  3149. number '6800'(which is default) with your preference.
  3150. * src/DownloadEngineFactory.cc
  3151. * src/HttpHeader.cc
  3152. * src/HttpHeader.h
  3153. * src/HttpHeaderProcessor.cc
  3154. * src/HttpHeaderProcessor.h
  3155. * src/HttpListenCommand.cc
  3156. * src/HttpListenCommand.h
  3157. * src/HttpServer.cc
  3158. * src/HttpServer.h
  3159. * src/HttpServerCommand.cc
  3160. * src/HttpServerCommand.h
  3161. * src/HttpServerResponseCommand.cc
  3162. * src/HttpServerResponseCommand.h
  3163. * src/Makefile.am
  3164. * src/OptionHandlerFactory.cc
  3165. * src/Util.cc
  3166. * src/Util.h
  3167. * src/help_tags.h
  3168. * src/option_processing.cc
  3169. * src/prefs.cc
  3170. * src/prefs.h
  3171. * src/usage_text.h
  3172. * test/HttpHeaderProcessorTest.cc
  3173. * test/UtilTest.cc
  3174. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3175. Removed.
  3176. * src/CheckIntegrityMan.cc
  3177. * src/FileAllocationMan.cc
  3178. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3179. Made (piece) hash check sequential for each RequestGroup because
  3180. simultaneous hash check is slower than sequential execution.
  3181. * src/CheckIntegrityCommand.cc
  3182. * src/CheckIntegrityDispatcherCommand.cc
  3183. * src/CheckIntegrityDispatcherCommand.h
  3184. * src/CheckIntegrityMan.h
  3185. * src/ConsoleStatCalc.cc
  3186. * src/DownloadCommand.cc
  3187. * src/DownloadEngine.cc
  3188. * src/DownloadEngine.h
  3189. * src/DownloadEngineFactory.cc
  3190. * src/Makefile.am
  3191. * src/Makefile.in
  3192. * src/RequestGroup.cc
  3193. * src/StatCalc.h
  3194. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3195. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3196. SequentialDispatcherCommand.
  3197. * src/FileAllocationDispatcherCommand.cc
  3198. * src/SequentialDispatcherCommand.h
  3199. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. Rewritten FileAllocationDispatcherCommand using brand new
  3201. SequentialDispatcherCommand.
  3202. * src/DownloadEngineFactory.cc
  3203. * src/FileAllocationCommand.cc
  3204. * src/FileAllocationDispatcherCommand.cc
  3205. * src/FileAllocationDispatcherCommand.h
  3206. * src/Makefile.am
  3207. * src/SequentialDispatcherCommand.h
  3208. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3209. Replaced FileAllocationMan with
  3210. SequentialPicker<FileAllocationEntry>.
  3211. * src/BtCheckIntegrityEntry.cc
  3212. * src/ConsoleStatCalc.cc
  3213. * src/DownloadEngine.cc
  3214. * src/DownloadEngine.h
  3215. * src/DownloadEngineFactory.cc
  3216. * src/FileAllocationCommand.cc
  3217. * src/FileAllocationDispatcherCommand.cc
  3218. * src/FileAllocationMan.h
  3219. * src/Makefile.am
  3220. * src/SequentialPicker.h
  3221. * src/StatCalc.h
  3222. * src/StreamCheckIntegrityEntry.cc
  3223. * test/Makefile.am
  3224. * test/SequentialPickerTest.cc
  3225. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Added doc for adaptive URI selector.
  3227. * doc/aria2c.1.txt
  3228. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3229. Added doc for adaptive URI selector.
  3230. * src/usage_text.h
  3231. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3232. Added doc for --bt-max-peers option.
  3233. * doc/aria2c.1.txt
  3234. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3235. Added doc for --bt-hash-check-seed option.
  3236. * doc/aria2c.1.txt
  3237. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3238. Documented exit codes.
  3239. * doc/aria2c.1.txt
  3240. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3241. Added --bt-max-peers option to specify the maximum number of peers
  3242. per torrent. 0 means unlimited number of peers.
  3243. * src/ActivePeerConnectionCommand.cc
  3244. * src/BtRuntime.h
  3245. * src/DefaultPeerStorage.cc
  3246. * src/DefaultPeerStorage.h
  3247. * src/OptionHandlerFactory.cc
  3248. * src/RequestGroup.cc
  3249. * src/option_processing.cc
  3250. * src/prefs.cc
  3251. * src/prefs.h
  3252. * src/usage_text.h
  3253. * test/DefaultPeerStorageTest.cc
  3254. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3255. Added --bt-hash-check-seed option. If true is given to this
  3256. option, after hash check using --check-integrity option and file
  3257. is complete, continue to seed file. If you want to check file and
  3258. download it only when it is damaged or incomplete, set this option
  3259. to false. This option has effect only on BitTorrent download.
  3260. The default value is true(This is the same behavior with the
  3261. previous release).
  3262. * src/BtCheckIntegrityEntry.cc
  3263. * src/OptionHandlerFactory.cc
  3264. * src/option_processing.cc
  3265. * src/prefs.cc
  3266. * src/prefs.h
  3267. * src/usage_text.h
  3268. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3269. Updated copyright year.
  3270. * src/version_usage.cc
  3271. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3272. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3273. * doc/aria2c.1.txt
  3274. * src/usage_text.h
  3275. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Made the max value of split option unlimited.
  3277. * doc/aria2c.1.txt
  3278. * src/OptionHandlerFactory.cc
  3279. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3280. Fixed compile warning/error.
  3281. * src/DownloadResult.h
  3282. * src/HttpDownloadCommand.cc
  3283. * src/ServerStat.cc
  3284. * test/RequestGroupTest.cc
  3285. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3286. Added --event-poll option to select the method for polling events.
  3287. The available methods are "select" and "epoll". "epoll" is
  3288. available on Linux only. The earlier release has the compile
  3289. option to choose from these methods.
  3290. * configure.ac
  3291. * src/RequestGroupMan.cc
  3292. * src/OptionHandlerFactory.cc
  3293. * src/EpollEventPoll.h
  3294. * src/StreamFileAllocationEntry.cc
  3295. * src/a2io.h
  3296. * src/SelectEventPoll.h
  3297. * src/option_processing.cc
  3298. * src/prefs.h
  3299. * src/EpollEventPoll.cc
  3300. * src/EventPoll.h
  3301. * src/SocketCore.h
  3302. * src/Makefile.am
  3303. * src/main.cc
  3304. * src/DownloadEngine.h
  3305. * src/SelectEventPoll.cc
  3306. * src/DownloadEngine.cc
  3307. * src/SocketCore.cc
  3308. * src/DownloadEngineFactory.cc
  3309. * src/Makefile.in
  3310. * src/prefs.cc
  3311. * src/usage_text.h
  3312. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3313. Included RecoverableException.h from main.cc
  3314. * src/main.cc
  3315. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3316. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3317. now returns last error encountered in the HTTP/FTP downloads as a
  3318. exit status value. If all downloads finished successfully, aria2
  3319. returns 0. The error code is defined in src/DownloadResult.h.
  3320. The error occurred in the download currently in progress is not
  3321. reported as a last error. If no error has encountered but there
  3322. are in progress or waiting downloads, aria2 returns 7.
  3323. * src/AbstractCommand.cc
  3324. * src/DlAbortEx.h
  3325. * src/DlRetryEx.h
  3326. * src/DownloadCommand.cc
  3327. * src/DownloadFailureException.h
  3328. * src/DownloadResult.h
  3329. * src/FtpNegotiationCommand.cc
  3330. * src/HttpSkipResponseCommand.cc
  3331. * src/Makefile.am
  3332. * src/MultiUrlRequestInfo.cc
  3333. * src/MultiUrlRequestInfo.h
  3334. * src/RecoverableException.h
  3335. * src/RequestGroup.cc
  3336. * src/RequestGroup.h
  3337. * src/RequestGroupMan.cc
  3338. * src/RequestGroupMan.h
  3339. * src/URIResult.cc
  3340. * src/URIResult.h
  3341. * src/main.cc
  3342. * src/option_processing.cc
  3343. * test/RequestGroupTest.cc
  3344. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3345. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3346. patch adds AdaptiveURISelector, which selects one of the bests
  3347. mirrors for first and reserved connections. For supplementary
  3348. ones, it returns mirrors which has not been tested yet, and if
  3349. each of them already tested, returns mirrors which has to be
  3350. tested again. Otherwise, it doesn't return anymore mirrors.
  3351. * src/AdaptiveURISelector.cc
  3352. * src/AdaptiveURISelector.h
  3353. * src/FtpNegotiationCommand.cc
  3354. * src/HttpResponseCommand.cc
  3355. * src/Makefile.am
  3356. * src/Makefile.in
  3357. * src/OptionHandlerFactory.cc
  3358. * src/RequestGroup.cc
  3359. * src/RequestGroup.h
  3360. * src/RequestGroupMan.cc
  3361. * src/ServerStat.cc
  3362. * src/ServerStat.h
  3363. * src/ServerStatMan.cc
  3364. * src/SpeedCalc.cc
  3365. * src/URISelector.h
  3366. * src/prefs.cc
  3367. * src/prefs.h
  3368. * test/RequestGroupManTest.cc
  3369. * test/ServerStatManTest.cc
  3370. * test/ServerStatTest.cc
  3371. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Fixed unit test error.
  3373. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3374. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. * Release 1.1.2
  3376. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3377. Updated Russian translation. Thanks to the translators.
  3378. * po/ru.po
  3379. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3380. Added the description of --use-head option to man page.
  3381. * doc/aria2c.1.txt
  3382. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3383. Bump up version number to 1.1.2
  3384. * configure.ac
  3385. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3386. Added --use-head option to toggle whether HEAD method should be
  3387. used in the first HTTP request. By default aria2 uses HEAD method
  3388. as the first request. When the server doesn't recognize HEAD, then
  3389. give aria2 --use-head=false to force aria2 to use GET method
  3390. instead.
  3391. * src/OptionHandlerFactory.cc
  3392. * src/RequestGroupMan.cc
  3393. * src/option_processing.cc
  3394. * src/prefs.cc
  3395. * src/prefs.h
  3396. * src/usage_text.h
  3397. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3398. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3399. message is received before CHOKE message. The old implementation
  3400. doen't clear the use-bit of the piece when recieved REJECT
  3401. message.
  3402. * src/DefaultBtMessageDispatcher.cc
  3403. * test/DefaultBtMessageDispatcherTest.cc
  3404. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. * Release 1.1.1
  3406. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3407. Bump up version number to 1.1.1.
  3408. * configure.ac
  3409. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3410. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3411. is printed repeatedly.
  3412. * src/ConsoleStatCalc.cc
  3413. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3414. * Release 1.1.0
  3415. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3416. Added ifdef clause for conditional compilation.
  3417. * src/main.cc
  3418. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3419. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3420. translations. Thanks to all translators.
  3421. * po/ja.po
  3422. * po/ru.po
  3423. * po/uk.po
  3424. * po/zh_CN.po
  3425. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3426. Added the preceding ">>> " before the message "Printing the
  3427. contents of file..." to make the output more readable.
  3428. * src/main.cc
  3429. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3430. Added try-catch block in the loop in showFiles() to continue the
  3431. operation even if the exception occurred in one file.
  3432. * src/main.cc (showFiles)
  3433. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3434. Made messages in showFiles() translatable.
  3435. * po/aria2.pot
  3436. * src/main.cc
  3437. * src/message.h
  3438. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3439. Print the contents of Torrent/Metalink files are printed without
  3440. -T/-M options.
  3441. * src/main.cc
  3442. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3443. Escaped '--' with '\--'
  3444. * README
  3445. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3446. Updated "How to build" section in README. Mentioned about
  3447. --with-ca-bundle compile option.
  3448. * README
  3449. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3450. Bump up version number to 1.1.0.
  3451. * configure.ac
  3452. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3453. Added a note for --dht-listen-port option.
  3454. * doc/aria2c.1.txt
  3455. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3456. Update doc for --realtime-chunk-checksum option.
  3457. * doc/aria2c.1.txt
  3458. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3459. Update doc for --realtime-chunk-checksum option.
  3460. * src/usage_text.h
  3461. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3462. Updated French, Japanese, Russian and Ukrainian translations.
  3463. Thanks to all translators.
  3464. * po/fr.po
  3465. * po/ja.po
  3466. * po/ru.po
  3467. * po/uk.po
  3468. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Renamed aria2c.pot to aria2.pot
  3470. * po/aria2.pot
  3471. * po/aria2c.pot: Removed.
  3472. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3473. Removed MetaEntry.h
  3474. * src/Makefile.am
  3475. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Rename file by appending digits if a local file exists and its
  3477. file size is larger than that of remote file with --continue
  3478. option. The old implementation just throws exception in such case.
  3479. * src/RequestGroup.cc
  3480. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3481. Fixed the bug that download progress summary is not printed in the
  3482. interval specified by the option.
  3483. * src/ConsoleStatCalc.cc
  3484. * src/ConsoleStatCalc.h
  3485. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3486. Fixed compiler warning
  3487. * src/Cookie.cc
  3488. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. Fixed the cookie implementation based on RFC2965.
  3490. Now if a value in domain field is not started with dot, then
  3491. prepend dot. That means a cookie with domain=sf.net is sent to
  3492. wiki.sf.net.
  3493. * src/Cookie.cc
  3494. * test/CookieParserTest.cc
  3495. * test/CookieStorageTest.cc
  3496. * test/CookieTest.cc
  3497. * test/NsCookieParserTest.cc
  3498. * test/Sqlite3MozCookieParserTest.cc
  3499. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3501. is enabled and the server doesn't support keep-alive.
  3502. * src/AbstractCommand.cc
  3503. * src/DownloadCommand.cc
  3504. * src/HttpDownloadCommand.cc
  3505. * src/HttpDownloadCommand.h
  3506. * src/HttpResponseCommand.cc
  3507. * src/Request.cc
  3508. * src/Request.h
  3509. * test/RequestTest.cc
  3510. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3511. Removed Dictionary/List/Data and its related classes.
  3512. * src/BencodeVisitor.cc: Removed.
  3513. * src/BencodeVisitor.h: Removed.
  3514. * src/Data.cc: Removed.
  3515. * src/Data.h: Removed.
  3516. * src/Dictionary.cc: Removed.
  3517. * src/Dictionary.h: Removed.
  3518. * src/List.cc: Removed.
  3519. * src/List.h: Removed.
  3520. * src/Makefile.am
  3521. * src/MetaEntry.h: Removed.
  3522. * src/MetaEntryVisitor.h: Removed.
  3523. * src/MetaFileUtil.cc: Removed.
  3524. * src/MetaFileUtil.h: Removed.
  3525. * test/BencodeVisitorTest.cc: Removed.
  3526. * test/DataTest.cc: Removed.
  3527. * test/DictionaryTest.cc: Removed.
  3528. * test/ListTest.cc: Removed.
  3529. * test/Makefile.am
  3530. * test/MetaFileUtilTest.cc: Removed.
  3531. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3532. Removed include of MetaEntry.h
  3533. * test/DHTMessageTrackerEntryTest.cc
  3534. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3535. Use BDE instead of Dictionary/List/Data.
  3536. * src/AnnounceList.cc
  3537. * src/AnnounceList.h
  3538. * test/AnnounceListTest.cc
  3539. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Use BDE instead of Dictionary/List/Data.
  3541. * src/DHTAbstractMessage.cc
  3542. * src/DHTAbstractMessage.h
  3543. * src/DHTAnnouncePeerMessage.cc
  3544. * src/DHTAnnouncePeerMessage.h
  3545. * src/DHTAnnouncePeerReplyMessage.cc
  3546. * src/DHTAnnouncePeerReplyMessage.h
  3547. * src/DHTFindNodeMessage.cc
  3548. * src/DHTFindNodeMessage.h
  3549. * src/DHTFindNodeReplyMessage.cc
  3550. * src/DHTFindNodeReplyMessage.h
  3551. * src/DHTGetPeersMessage.cc
  3552. * src/DHTGetPeersMessage.h
  3553. * src/DHTGetPeersReplyMessage.cc
  3554. * src/DHTGetPeersReplyMessage.h
  3555. * src/DHTMessageFactory.h
  3556. * src/DHTMessageFactoryImpl.cc
  3557. * src/DHTMessageFactoryImpl.h
  3558. * src/DHTMessageReceiver.cc
  3559. * src/DHTMessageTracker.cc
  3560. * src/DHTMessageTracker.h
  3561. * src/DHTPingMessage.cc
  3562. * src/DHTPingMessage.h
  3563. * src/DHTPingReplyMessage.cc
  3564. * src/DHTPingReplyMessage.h
  3565. * src/DHTQueryMessage.cc
  3566. * src/DHTQueryMessage.h
  3567. * src/DHTResponseMessage.cc
  3568. * src/DHTResponseMessage.h
  3569. * test/DHTAnnouncePeerMessageTest.cc
  3570. * test/DHTAnnouncePeerReplyMessageTest.cc
  3571. * test/DHTFindNodeMessageTest.cc
  3572. * test/DHTFindNodeReplyMessageTest.cc
  3573. * test/DHTGetPeersMessageTest.cc
  3574. * test/DHTGetPeersReplyMessageTest.cc
  3575. * test/DHTMessageFactoryImplTest.cc
  3576. * test/DHTMessageTrackerTest.cc
  3577. * test/DHTPingMessageTest.cc
  3578. * test/DHTPingReplyMessageTest.cc
  3579. * test/MockDHTMessageFactory.h
  3580. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Added tests the case where length < 0 is specified.
  3582. * test/BencodeTest.cc
  3583. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3584. Fixed memory leak in decoderawstring()
  3585. * src/bencode.cc
  3586. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3587. Added missing #ifdef guard. Added uc() function for String and
  3588. removeKey() for Dict.
  3589. * src/bencode.cc
  3590. * src/bencode.h
  3591. * test/BencodeTest.cc
  3592. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3593. Use BDE instead of Dictionary/List/Data.
  3594. * src/HandshakeExtensionMessage.cc
  3595. * src/HandshakeExtensionMessage.h
  3596. * test/HandshakeExtensionMessageTest.cc
  3597. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3598. Added --max-overall-upload-limit option. This option limits the
  3599. overall upload speed. Stated in help message that the existing
  3600. --max-upload-limit option limits the upload speed per each
  3601. torrent. Man page is also updated.
  3602. * doc/aria2c.1.txt
  3603. * src/DefaultBtMessageDispatcher.cc
  3604. * src/DefaultBtMessageDispatcher.h
  3605. * src/OptionHandlerFactory.cc
  3606. * src/PeerInteractionCommand.cc
  3607. * src/option_processing.cc
  3608. * src/prefs.cc
  3609. * src/prefs.h
  3610. * src/usage_text.h
  3611. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3612. Use BDE instead of Dictionary/List/Data classes.
  3613. * src/CompactPeerListProcessor.cc
  3614. * src/CompactPeerListProcessor.h
  3615. * src/DefaultBtAnnounce.cc
  3616. * src/DefaultBtContext.cc
  3617. * src/DefaultBtContext.h
  3618. * src/DefaultPeerListProcessor.cc
  3619. * src/DefaultPeerListProcessor.h
  3620. * src/DelegatingPeerListProcessor.cc
  3621. * src/DelegatingPeerListProcessor.h
  3622. * src/PeerListProcessor.h
  3623. * src/UTPexExtensionMessage.cc
  3624. * src/Util.h
  3625. * src/message.h
  3626. * test/DefaultBtContextTest.cc
  3627. * test/DefaultPeerListProcessorTest.cc
  3628. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3629. Added bencode helper functions and BDE class.
  3630. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3631. * src/Makefile.am
  3632. * src/bencode.cc
  3633. * src/bencode.h
  3634. * test/BencodeTest.cc
  3635. * test/Makefile.am
  3636. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3637. Fixed the bug that bad URI is sent to the tracker when the announe
  3638. URI in torrent file includes query.
  3639. * src/DefaultBtAnnounce.cc
  3640. * test/DefaultBtAnnounceTest.cc
  3641. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3642. Added Option::blank().
  3643. Use !Option::blank(name) instead of Option::defined(name) for
  3644. the options that take filename.
  3645. * src/MultiUrlRequestInfo.cc
  3646. * src/Option.cc
  3647. * src/Option.h
  3648. * src/main.cc
  3649. * src/option_processing.cc
  3650. * test/OptionTest.cc
  3651. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3652. Documented the default value of --check-certificate option in man
  3653. page.
  3654. * doc/aria2c.1.txt
  3655. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Enabled --check-certificate by default. Added compile
  3657. time(configure) option --with-ca-bundle to specify CA bundle.
  3658. Warn if --check-certificate=true and --ca-certificate is not
  3659. specified or loading CA certificate is failed.
  3660. * configure.ac
  3661. * src/MultiUrlRequestInfo.cc
  3662. * src/OptionHandlerFactory.cc
  3663. * src/message.h
  3664. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3665. Mentioned https tag in help option.
  3666. * doc/aria2c.1.txt
  3667. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3668. Added `https' tag to help option category. Added https tag to
  3669. --ca-certificate, --certificate, --check-certificate and
  3670. --private-key option.
  3671. * src/OptionHandlerFactory.cc
  3672. * src/help_tags.h
  3673. * src/option_processing.cc
  3674. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3675. Changed the package name from `aria2c' to `aria2' in order to fix
  3676. the packaging issue in Debian and Fedora. The name of the
  3677. executable is not changed.
  3678. * configure.ac
  3679. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3680. Fixed typos
  3681. * src/usage_text.h
  3682. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3683. Fixed typos and updated doc.
  3684. * README
  3685. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3686. Fixed typos
  3687. * doc/aria2c.1.txt
  3688. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3689. Fixed typos
  3690. * src/usage_text.h
  3691. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3692. Print a message when no files to download.
  3693. * src/download_helper.cc
  3694. * src/main.cc
  3695. * src/message.h
  3696. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3697. RFC3986 complied Percent-Encoding(urlencode).
  3698. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3699. ones.
  3700. * src/Request.cc
  3701. * src/Util.cc
  3702. * src/Util.h
  3703. * test/BtHandshakeMessageTest.cc
  3704. * test/DefaultBtAnnounceTest.cc
  3705. * test/DefaultBtContextTest.cc
  3706. * test/RequestTest.cc
  3707. * test/UtilTest.cc
  3708. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3709. Fixed the bug that prevents aria2 from downloading 0-length files
  3710. via HTTP/FTP.
  3711. * src/DefaultBtContext.cc
  3712. * src/DefaultBtContext.h
  3713. * src/DownloadContext.h
  3714. * src/FtpNegotiationCommand.cc
  3715. * src/HttpResponseCommand.cc
  3716. * src/HttpResponseCommand.h
  3717. * src/RequestGroup.cc
  3718. * src/SingleFileDownloadContext.cc
  3719. * src/SingleFileDownloadContext.h
  3720. * test/BtPostDownloadHandlerTest.cc
  3721. * test/MetalinkPostDownloadHandlerTest.cc
  3722. * test/MockBtContext.h
  3723. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3724. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3725. * src/option_processing.cc
  3726. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3727. Applied aria2-1.0.1-mingw.patch.
  3728. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3729. mingw.
  3730. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3731. * src/SocketCore.cc
  3732. * src/a2netcompat.h
  3733. * test/SocketCoreTest.cc
  3734. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3735. * Release 1.0.1
  3736. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3737. Updated Ukrainian and Norwegian Nynorsk translations.
  3738. Thanks to all translators.
  3739. * po/nn.po
  3740. * po/uk.po
  3741. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3742. Don't show download result when -S option is used.
  3743. * src/main.cc
  3744. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3745. Bump up version number to 1.0.1
  3746. * configure.ac
  3747. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3748. Closed files after the test cases in MultiDiskWriterTest::
  3749. testResetDiskWriterEntries(). This will fix the unit test error
  3750. in mingw32 build.
  3751. * test/MultiDiskWriterTest.cc
  3752. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3753. Use HEAD method to get file size from HTTP server for segmented
  3754. downloading.
  3755. The request to the BitTorrent Tracker always uses GET method because
  3756. the response of the tracker is small and it doesn't need segmented
  3757. download.
  3758. * src/FtpNegotiationCommand.cc
  3759. * src/HttpRequest.cc
  3760. * src/HttpResponseCommand.cc
  3761. * src/HttpSkipResponseCommand.cc
  3762. * src/RequestGroup.cc
  3763. * src/RequestGroup.h
  3764. * src/TrackerWatcherCommand.cc
  3765. * test/HttpRequestTest.cc
  3766. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3767. Fixed the bug that causes floating exception when -T option is used and
  3768. no URIs are given.
  3769. * src/download_helper.cc
  3770. * test/DownloadHelperTest.cc
  3771. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3772. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3773. errors in MinGW:
  3774. Closed file after saving server stats (RequestGroupMan.cc)
  3775. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3776. Ignored case & handled 2-digit years (strptime.c)
  3777. Added missing suseconds_t definition (a2time.h)
  3778. Fixed socket CLOSE() define (SocketCore.cc)
  3779. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3780. Changed utime() test values from x000 to x00000 as MinGW failed on
  3781. values less than timezone offset from Unix epoch
  3782. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3783. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3784. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3785. handle negative dates (CookieParserTest.cc)
  3786. * src/a2time.h
  3787. * src/FtpConnection.cc
  3788. * src/RequestGroupMan.cc
  3789. * src/SocketCore.cc
  3790. * src/strptime.c
  3791. * test/CookieParserTest.cc
  3792. * test/CopyDiskAdaptorTest.cc
  3793. * test/FileTest.cc
  3794. * test/FtpConnectionTest.cc
  3795. * test/MultiDiskAdaptorTest.cc
  3796. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3798. * doc/aria2c.1.txt
  3799. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. * Release 1.0.0
  3801. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Added '~' to reserved characters.
  3803. * src/Util.cc
  3804. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3805. Do not urlencode Request::url in setUrl() because we want unmodified
  3806. URL using Request::getUrl()
  3807. * src/Request.cc
  3808. * src/Request.h
  3809. * test/RequestTest.cc
  3810. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3811. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3812. Thanks to all translators.
  3813. * po/bg.po
  3814. * po/fr.po
  3815. * po/ja.po
  3816. * po/ru.po
  3817. * po/uk.po
  3818. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Bump up version number to 1.0.0
  3820. * configure.ac
  3821. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Added nosqlite3 build to build_test.sh.
  3823. Renamed noxml as expat.
  3824. * build_test.sh
  3825. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3826. Updated INPUT FILE section.
  3827. * doc/aria2c.1.txt
  3828. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3830. on big endian systems because test .aria2 files are made for little
  3831. endian systems.
  3832. * test/DefaultBtProgressInfoFileTest.cc
  3833. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3834. Dropped ares support.
  3835. * README
  3836. * configure.ac
  3837. * m4/libares.m4: Removed.
  3838. * src/AsyncNameResolver.cc
  3839. * src/Makefile.am
  3840. * test/Makefile.am
  3841. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3842. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3843. Removed const qualifier from DiskWriter::size().
  3844. * src/AbstractDiskWriter.cc
  3845. * src/AbstractDiskWriter.h
  3846. * src/ByteArrayDiskWriter.cc
  3847. * src/ByteArrayDiskWriter.h
  3848. * src/DiskWriter.h
  3849. * test/ByteArrayDiskWriterTest.cc
  3850. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3851. Fixed the bug that causes segmentation fault/bus error during executing
  3852. choking algorithm while seeding. This is caused by improper
  3853. implementation of compare function which returns inconsistent results
  3854. depending on the timing of last unchoke.
  3855. * src/BtSeederStateChoke.cc
  3856. * src/BtSeederStateChoke.h
  3857. * src/DefaultPeerStorage.cc
  3858. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3859. Removed TODO
  3860. * TODO
  3861. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3862. Added a section that explains how to pass argument to options that
  3863. takes optional arguments with its short form.
  3864. * doc/aria2c.1.txt
  3865. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3866. Added -u for the short form of --max-upload-limit option.
  3867. * doc/aria2c.1.txt
  3868. * src/option_processing.cc
  3869. * src/usage_text.h
  3870. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3871. Added -V for the short form of --check-integrity option.
  3872. Now the argument of --check-integrity option is optional:
  3873. if it is omitted, it is evaluated as true.
  3874. * doc/aria2c.1.txt
  3875. * src/option_processing.cc
  3876. * src/usage_text.h
  3877. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3878. Made the default value of --ftp-pasv option set to true and it can take
  3879. true/false values.
  3880. * src/OptionHandlerFactory.cc
  3881. * src/option_processing.cc
  3882. * src/usage_text.h
  3883. * doc/aria2c.1.txt
  3884. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3885. Given custom random number generator to std::random_shuffle.
  3886. * src/AnnounceList.cc
  3887. * src/BtLeecherStateChoke.cc
  3888. * src/BtSeederStateChoke.cc
  3889. * src/DefaultBtRequestFactory.cc
  3890. * src/MetalinkEntry.cc
  3891. * src/RarestPieceSelector.cc
  3892. * src/SimpleRandomizer.cc
  3893. * src/SimpleRandomizer.h
  3894. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3895. Now the default value of --enable-direct-io is true.
  3896. * src/OptionHandlerFactory.cc
  3897. * doc/aria2c.1.txt
  3898. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3899. Erase peer before executing onReturningPeer and onErasingPeer
  3900. because choking algorithm called from onReturningPeer doesn't
  3901. like erasing peer in the active peer list.
  3902. * src/DefaultPeerStorage.cc
  3903. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Instead of creating special filename in createDownloadResult() if
  3905. inMemoryDownload() is true, now it is done in getFilePath().
  3906. * src/RequestGroup.cc
  3907. * test/RequestGroupTest.cc
  3908. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3910. processed in memory. This is the fix for previous comment out.
  3911. * src/MemoryBufferPreDownloadHandler.cc
  3912. * src/RequestGroup.cc
  3913. * src/RequestGroup.h
  3914. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3915. Commented out the code which sets virtual directory path "[MEMORY]"
  3916. propagate directory to store to following RequestGroup.
  3917. * src/MemoryBufferPreDownloadHandler.cc
  3918. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Bump up version number to 1.0.0b
  3920. * configure.ac
  3921. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Added input_uris.txt to EXTRA_DIST
  3923. * test/Makefile.am
  3924. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3925. Removed PeerObject.h from Makefile.am
  3926. * src/Makefile.am
  3927. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3928. Avoid slow seeding
  3929. * src/PeerInteractionCommand.cc
  3930. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3931. Updated usage for -i option.
  3932. * src/usage_text.h (TEXT_INPUT_FILE)
  3933. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. Added INPUT FILE section to man page.
  3935. Escaped fake URLs.
  3936. * doc/aria2c.1.txt
  3937. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3938. Fixed wrong note position for -o option.
  3939. * doc/aria2c.1.txt
  3940. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3941. Fixed compile error without SSL/XML library.
  3942. * src/DefaultBtProgressInfoFile.cc
  3943. * src/DefaultBtProgressInfoFile.h
  3944. * src/FileMetalinkParserState.cc
  3945. * src/RequestGroup.h
  3946. * src/SocketCore.cc
  3947. * src/SocketCore.h
  3948. * src/VerificationMetalinkParserState.cc
  3949. * src/download_helper.h
  3950. * src/main.cc
  3951. * test/DefaultBtProgressInfoFileTest.cc
  3952. * test/DownloadHelperTest.cc
  3953. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3954. Rewritten URI handling functions. They are now provided as a testable
  3955. functions.
  3956. * src/Makefile.am
  3957. * src/RequestGroup.cc
  3958. * src/RequestGroup.h
  3959. * src/download_helper.cc
  3960. * src/download_helper.h
  3961. * src/main.cc
  3962. * test/DownloadHelperTest.cc
  3963. * test/Makefile.am
  3964. * test/input_uris.txt
  3965. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3966. Quickly terminate commands when ctrl-c is pressed.
  3967. * src/DownloadEngine.cc
  3968. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3969. Quickly terminate idle commands when download finished.
  3970. * src/AbstractCommand.cc
  3971. * src/DownloadCommand.cc
  3972. * src/DownloadEngine.cc
  3973. * src/DownloadEngine.h
  3974. * src/SleepCommand.cc
  3975. * src/SleepCommand.h
  3976. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Added the ability to specify output filename and directory in input
  3978. file.
  3979. Additional parameters are added in the following line of URIs
  3980. with proceeding white space(s), 1 parameter in 1 line.
  3981. The parameter names are the same with the command-line option name
  3982. without proceeding "--". Not all the options are available here:
  3983. at the moment, 'dir' and 'out' options are avialable.
  3984. Please note that out option has no effect against Metalink or BitTorrent
  3985. downloads.
  3986. Example input file:
  3987. http://host/foo-1.1.tar.bz2
  3988. out=foo.tar.bz2
  3989. dir=/tmp/downloads
  3990. http://host/thundermonkey-2.0.tar.bz2
  3991. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  3992. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  3993. thundermonkey-2.0.tar.bz2 is saved as
  3994. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  3995. * src/BtPostDownloadHandler.cc
  3996. * src/Metalink2RequestGroup.cc
  3997. * src/Metalink2RequestGroup.h
  3998. * src/MetalinkPostDownloadHandler.cc
  3999. * src/UriListParser.cc
  4000. * src/UriListParser.h
  4001. * src/main.cc
  4002. * test/Metalink2RequestGroupTest.cc
  4003. * test/UriListParserTest.cc
  4004. * test/filelist1.txt
  4005. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4006. Fixed error when SSL library is not found.
  4007. * configure.ac
  4008. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4009. Cross referenced among -s, -C and -j options.
  4010. Updated usage of -C and -s options.
  4011. * src/usage_text.h
  4012. * doc/aria2c.1.txt
  4013. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4014. Fixed bad cast in 32bit platforms.
  4015. * test/DefaultPieceStorageTest.cc
  4016. (DefaultPieceStorageTest::testGetCompletedLength)
  4017. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4018. Fixed unit test fails on 32bit platforms.
  4019. * test/CookieParserTest.cc
  4020. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4021. Show an average download speed in Download results.
  4022. * src/BtFileAllocationEntry.cc
  4023. * src/DefaultPieceStorage.cc
  4024. * src/DownloadContext.cc
  4025. * src/DownloadContext.h
  4026. * src/DownloadResult.h
  4027. * src/RequestGroup.cc
  4028. * src/RequestGroupMan.cc
  4029. * src/StreamFileAllocationEntry.cc
  4030. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Fixed the bug that metalink file is not processed if Content-Type
  4032. field has a paramter.
  4033. * src/HttpResponse.cc
  4034. * src/HttpResponse.h
  4035. * test/HttpResponseTest.cc
  4036. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4037. Removed unused code.
  4038. * src/DefaultBtAnnounce.cc
  4039. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4041. the value larger than DefaultPieceStorage::getTotalLength() when
  4042. in flight pieces are involved.
  4043. * src/DefaultPieceStorage.cc
  4044. * test/DefaultPieceStorageTest.cc
  4045. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4046. Bump up version number to 1.0.0a.
  4047. * configure.ac
  4048. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4049. Updated configure.ac
  4050. * configure.ac
  4051. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4052. Added usege for proxy.
  4053. * doc/aria2c.1.txt
  4054. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4055. Added usage for --ca-certificate, --certificate, --private-key and
  4056. --check-certificate options.
  4057. * doc/aria2c.1.txt
  4058. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4059. Updated man page
  4060. * doc/aria2c.1.txt
  4061. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4062. Added --no-proxy option. It receives comman separated hostname or
  4063. domains to which proxy should not be used.
  4064. aria2 honors the environment variable no_proxy to override no-proxy
  4065. value in configuration file. The user can override the environment
  4066. variable no_proxy with --no-proxy command-line option.
  4067. * src/AbstractCommand.cc
  4068. * src/OptionHandlerFactory.cc
  4069. * src/option_processing.cc
  4070. * src/prefs.cc
  4071. * src/prefs.h
  4072. * src/usage_text.h
  4073. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4075. The CA certificates are specified in --ca-certificate option.
  4076. By default, the verification is disabled. Use --check-certificate
  4077. option to enable it.
  4078. * src/HttpRequestCommand.cc
  4079. * src/LibgnutlsTLSContext.cc
  4080. * src/LibgnutlsTLSContext.h
  4081. * src/LibsslTLSContext.cc
  4082. * src/LibsslTLSContext.h
  4083. * src/MultiUrlRequestInfo.cc
  4084. * src/OptionHandlerFactory.cc
  4085. * src/SocketCore.cc
  4086. * src/SocketCore.h
  4087. * src/a2functional.h
  4088. * src/message.h
  4089. * src/option_processing.cc
  4090. * src/prefs.cc
  4091. * src/prefs.h
  4092. * src/usage_text.h
  4093. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. Added client certificate authentication for SSL/TLS.
  4095. Currently a private key must be decrypted for use with aria2.
  4096. If a user accidentally gives encrypted file to aria2 then following
  4097. thing happens:
  4098. If encrypted private key is given to aria2, it behaves differently
  4099. depending on the ssl library it uses. If aria2 built with openssl then
  4100. openssl prompts the user for password. If aria2 build with gnutls then
  4101. aria2 exists with error at start up.
  4102. * src/DownloadEngineFactory.cc
  4103. * src/MultiUrlRequestInfo.cc
  4104. * src/OptionHandlerFactory.cc
  4105. * src/option_processing.cc
  4106. * src/prefs.cc
  4107. * src/prefs.h
  4108. * src/usage_text.h
  4109. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4110. Introduced TLSContext that holds TLS related data that can be shared
  4111. with multiple SSL connections.
  4112. * src/DownloadEngineFactory.cc
  4113. * src/LibgnutlsTLSContext.cc
  4114. * src/LibgnutlsTLSContext.h
  4115. * src/LibsslTLSContext.cc
  4116. * src/LibsslTLSContext.h
  4117. * src/Makefile.am
  4118. * src/SocketCore.cc
  4119. * src/SocketCore.h
  4120. * src/TLSContext.h
  4121. * src/message.h
  4122. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4123. Fixed the bug that the DiskWriter of the first FileEntry whose
  4124. `needsFileAllocation' property is false is not created
  4125. even if it shares a piece with next FileEntry which `requested' property
  4126. is true.
  4127. Fixed the bug that zero-length file is not created if pre file
  4128. allocation is not done.
  4129. * src/MultiDiskAdaptor.cc
  4130. * src/MultiDiskAdaptor.h
  4131. * test/MultiDiskAdaptorTest.cc
  4132. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4133. Added the ability to pool proxy connection.
  4134. The conneciton in FTP with proxy-method=GET is not pooled.
  4135. Proxy-Connection header will not be sent when sending CONNECT method.
  4136. * src/DownloadEngine.cc
  4137. * src/DownloadEngine.h
  4138. * src/FtpFinishDownloadCommand.cc
  4139. * src/FtpInitiateConnectionCommand.cc
  4140. * src/FtpNegotiationCommand.cc
  4141. * src/HttpDownloadCommand.cc
  4142. * src/HttpInitiateConnectionCommand.cc
  4143. * src/HttpRequest.cc
  4144. * src/HttpRequest.h
  4145. * src/HttpResponse.cc
  4146. * src/HttpSkipResponseCommand.cc
  4147. * test/HttpRequestTest.cc
  4148. * test/HttpResponseTest.cc
  4149. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4150. Handle date before epoch.
  4151. To create *bad* Time object, call Time::null().
  4152. * src/CookieParser.cc
  4153. * src/FtpConnection.cc
  4154. * src/FtpConnection.h
  4155. * src/FtpNegotiationCommand.cc
  4156. * src/RequestGroup.cc
  4157. * src/TimeA2.cc
  4158. * src/TimeA2.h
  4159. * test/CookieParserTest.cc
  4160. * test/FtpConnectionTest.cc
  4161. * test/TimeTest.cc
  4162. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4163. Added support for following envrionment variables: http_proxy,
  4164. https_proxy, ftp_proxy and all_proxy.
  4165. Each variable is equivalent to the aria2 option whose name is the
  4166. variable name with '_' replaced with '-'.
  4167. They overrides options specified in aria2.conf file.
  4168. The envrionment variables can be overrode using command-line option.
  4169. * src/option_processing.cc
  4170. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4171. Renamed --http-proxy-method as --proxy-method.
  4172. * src/AbstractCommand.cc
  4173. * src/FtpInitiateConnectionCommand.cc
  4174. * src/HttpInitiateConnectionCommand.cc
  4175. * src/OptionHandlerFactory.cc
  4176. * src/option_processing.cc
  4177. * src/prefs.cc
  4178. * src/prefs.h
  4179. * src/usage_text.h
  4180. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4181. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4182. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4183. Above 3 options and --http-proxy option can handle proxy in URL format
  4184. like: http://user:passwd@host:port.
  4185. If a proxy requires user/password, they must be specified in a URL.
  4186. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4187. instead.
  4188. * src/AbstractCommand.cc
  4189. * src/AbstractCommand.h
  4190. * src/AbstractProxyRequestCommand.cc
  4191. * src/AbstractProxyRequestCommand.h
  4192. * src/AuthConfigFactory.cc
  4193. * src/AuthConfigFactory.h
  4194. * src/FtpFinishDownloadCommand.cc
  4195. * src/FtpInitiateConnectionCommand.cc
  4196. * src/FtpInitiateConnectionCommand.h
  4197. * src/FtpNegotiationCommand.cc
  4198. * src/FtpTunnelRequestCommand.cc
  4199. * src/FtpTunnelRequestCommand.h
  4200. * src/HttpDownloadCommand.cc
  4201. * src/HttpInitiateConnectionCommand.cc
  4202. * src/HttpInitiateConnectionCommand.h
  4203. * src/HttpProxyRequestCommand.cc
  4204. * src/HttpProxyRequestCommand.h
  4205. * src/HttpRequest.cc
  4206. * src/HttpRequest.h
  4207. * src/HttpRequestCommand.cc
  4208. * src/HttpRequestCommand.h
  4209. * src/HttpSkipResponseCommand.cc
  4210. * src/InitiateConnectionCommand.cc
  4211. * src/InitiateConnectionCommand.h
  4212. * src/OptionHandlerFactory.cc
  4213. * src/OptionHandlerImpl.h
  4214. * src/Request.cc
  4215. * src/option_processing.cc
  4216. * src/prefs.cc
  4217. * src/prefs.h
  4218. * src/usage_text.h
  4219. * test/AuthConfigFactoryTest.cc
  4220. * test/HttpRequestTest.cc
  4221. * test/OptionHandlerTest.cc
  4222. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Execute choking algorithm when unchoked and interested peer is
  4224. disconected.
  4225. * src/DefaultPeerStorage.cc
  4226. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. Added testcase for BtNotInterestedMessage from unchoked peer.
  4228. * test/BtNotInterestedMessageTest.cc
  4229. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4230. Execute choking algorithm when BtInterestedMessage arrives from
  4231. unchoked peer.
  4232. * src/BtInterestedMessage.cc
  4233. * src/BtInterestedMessage.h
  4234. * src/DefaultBtMessageFactory.cc
  4235. * test/BtInterestedMessageTest.cc
  4236. * test/MockPeerStorage.h
  4237. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4238. AuthConfigFactory is now part of DownloadEngine.
  4239. * src/AbstractProxyRequestCommand.cc
  4240. * src/AuthConfigFactory.h
  4241. * src/DownloadEngine.cc
  4242. * src/DownloadEngine.h
  4243. * src/FtpConnection.cc
  4244. * src/FtpConnection.h
  4245. * src/FtpNegotiationCommand.cc
  4246. * src/HttpConnection.cc
  4247. * src/HttpRequest.cc
  4248. * src/HttpRequest.h
  4249. * src/HttpRequestCommand.cc
  4250. * src/HttpResponse.cc
  4251. * src/HttpResponseCommand.cc
  4252. * src/HttpSkipResponseCommand.cc
  4253. * src/MultiUrlRequestInfo.cc
  4254. * src/main.cc
  4255. * test/FtpConnectionTest.cc
  4256. * test/HttpRequestTest.cc
  4257. * test/HttpResponseTest.cc
  4258. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4259. Corrected catched exception type.
  4260. * src/ServerStatMan.cc
  4261. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4262. DNSCache is now part of DownloadEngine.
  4263. * src/DNSCache.h
  4264. * src/DownloadEngine.cc
  4265. * src/DownloadEngine.h
  4266. * src/InitiateConnectionCommand.cc
  4267. * src/MultiUrlRequestInfo.cc
  4268. * test/Makefile.am
  4269. * test/Makefile.in
  4270. * test/SimpleDNSCacheTest.cc
  4271. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4272. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4273. DownloadEngine.
  4274. * src/ActivePeerConnectionCommand.cc
  4275. * src/BtSetup.cc
  4276. * src/CUIDCounter.h
  4277. * src/DHTSetup.cc
  4278. * src/DownloadCommand.cc
  4279. * src/DownloadEngine.cc
  4280. * src/DownloadEngine.h
  4281. * src/DownloadEngineFactory.cc
  4282. * src/FileAllocationDispatcherCommand.cc
  4283. * src/InitiatorMSEHandshakeCommand.cc
  4284. * src/PeerInitiateConnectionCommand.cc
  4285. * src/PeerInteractionCommand.cc
  4286. * src/PeerListenCommand.cc
  4287. * src/RequestGroup.cc
  4288. * src/StreamFileAllocationEntry.cc
  4289. * src/TrackerWatcherCommand.cc
  4290. * src/main.cc
  4291. * test/RequestGroupManTest.cc
  4292. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. Implemented commented code in BtSeederStateChoke
  4294. * src/BtSeederStateChoke.cc
  4295. * src/Peer.cc
  4296. * src/Peer.h
  4297. * src/PeerInteractionCommand.cc
  4298. * src/PeerSessionResource.cc
  4299. * src/PeerSessionResource.h
  4300. * test/MockBtMessageDispatcher.h
  4301. * test/PeerSessionResourceTest.cc
  4302. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4304. its object.
  4305. * src/AbstractBtMessage.cc
  4306. * src/ActivePeerConnectionCommand.cc
  4307. * src/ActivePeerConnectionCommand.h
  4308. * src/BtContextAwareCommand.cc
  4309. * src/BtContextAwareCommand.h
  4310. * src/BtExtendedMessage.cc
  4311. * src/BtExtendedMessage.h
  4312. * src/BtInterestedMessage.cc
  4313. * src/BtInterestedMessage.h
  4314. * src/BtNotInterestedMessage.cc
  4315. * src/BtNotInterestedMessage.h
  4316. * src/BtRegistry.cc
  4317. * src/BtRegistry.h
  4318. * src/BtSeederStateChoke.cc
  4319. * src/BtSetup.cc
  4320. * src/DHTGetPeersCommand.cc
  4321. * src/DHTGetPeersCommand.h
  4322. * src/DHTPeerAnnounceEntry.cc
  4323. * src/DHTPeerAnnounceEntry.h
  4324. * src/DHTPeerAnnounceStorage.cc
  4325. * src/DHTPeerAnnounceStorage.h
  4326. * src/DHTPeerLookupTask.cc
  4327. * src/DHTPeerLookupTask.h
  4328. * src/DHTSetup.cc
  4329. * src/DHTSetup.h
  4330. * src/DHTTaskFactory.h
  4331. * src/DHTTaskFactoryImpl.cc
  4332. * src/DHTTaskFactoryImpl.h
  4333. * src/DefaultBtAnnounce.cc
  4334. * src/DefaultBtInteractive.cc
  4335. * src/DefaultBtInteractive.h
  4336. * src/DefaultBtMessageDispatcher.cc
  4337. * src/DefaultBtMessageDispatcher.h
  4338. * src/DefaultBtMessageFactory.cc
  4339. * src/DefaultBtMessageFactory.h
  4340. * src/DefaultBtMessageReceiver.cc
  4341. * src/DefaultBtProgressInfoFile.cc
  4342. * src/DefaultBtProgressInfoFile.h
  4343. * src/DefaultBtRequestFactory.cc
  4344. * src/DefaultBtRequestFactory.h
  4345. * src/DefaultExtensionMessageFactory.cc
  4346. * src/DefaultExtensionMessageFactory.h
  4347. * src/DefaultPeerStorage.cc
  4348. * src/DefaultPeerStorage.h
  4349. * src/DownloadEngine.cc
  4350. * src/DownloadEngine.h
  4351. * src/InitiatorMSEHandshakeCommand.cc
  4352. * src/InitiatorMSEHandshakeCommand.h
  4353. * src/MSEHandshake.cc
  4354. * src/MSEHandshake.h
  4355. * src/Makefile.am
  4356. * src/Makefile.in
  4357. * src/PeerChokeCommand.cc
  4358. * src/PeerChokeCommand.h
  4359. * src/PeerInitiateConnectionCommand.cc
  4360. * src/PeerInitiateConnectionCommand.h
  4361. * src/PeerInteractionCommand.cc
  4362. * src/PeerInteractionCommand.h
  4363. * src/PeerObject.h
  4364. * src/PeerReceiveHandshakeCommand.cc
  4365. * src/PeerReceiveHandshakeCommand.h
  4366. * src/ReceiverMSEHandshakeCommand.cc
  4367. * src/RequestGroup.cc
  4368. * src/RequestGroup.h
  4369. * src/RequestGroupMan.cc
  4370. * src/RequestGroupMan.h
  4371. * src/SeedCheckCommand.cc
  4372. * src/SeedCheckCommand.h
  4373. * src/ShareRatioSeedCriteria.h
  4374. * src/SimpleBtMessage.cc
  4375. * src/TrackerWatcherCommand.cc
  4376. * src/TrackerWatcherCommand.h
  4377. * src/UTPexExtensionMessage.cc
  4378. * src/UTPexExtensionMessage.h
  4379. * test/BtCancelMessageTest.cc
  4380. * test/BtChokeMessageTest.cc
  4381. * test/BtExtendedMessageTest.cc
  4382. * test/BtInterestedMessageTest.cc
  4383. * test/BtNotInterestedMessageTest.cc
  4384. * test/BtPieceMessageTest.cc
  4385. * test/BtPortMessageTest.cc
  4386. * test/BtRegistryTest.cc
  4387. * test/BtRejectMessageTest.cc
  4388. * test/BtRequestMessageTest.cc
  4389. * test/DHTPeerAnnounceEntryTest.cc
  4390. * test/DHTPeerAnnounceStorageTest.cc
  4391. * test/DefaultBtMessageDispatcherTest.cc
  4392. * test/DefaultBtMessageFactoryTest.cc
  4393. * test/DefaultBtProgressInfoFileTest.cc
  4394. * test/DefaultBtRequestFactoryTest.cc
  4395. * test/DefaultExtensionMessageFactoryTest.cc
  4396. * test/MSEHandshakeTest.cc
  4397. * test/MockDHTTaskFactory.h
  4398. * test/ShareRatioSeedCriteriaTest.cc
  4399. * test/UTPexExtensionMessageTest.cc
  4400. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4401. Fixed compiler warning.
  4402. * test/UtilTest.cc
  4403. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4404. Treat Cookie object as session cookie if expiry = 0 is given.
  4405. With this change, you can specify session scoped cookies in an external
  4406. file setting expiry value to 0.
  4407. * src/Cookie.cc
  4408. * src/Cookie.h
  4409. * test/CookieParserTest.cc
  4410. * test/CookieStorageTest.cc
  4411. * test/CookieTest.cc
  4412. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4413. Changed signature of DHTMessageFactory::createResponseMessage().
  4414. Removed unused validateIDMatch.
  4415. * src/DHTMessageFactory.h
  4416. * src/DHTMessageFactoryImpl.cc
  4417. * src/DHTMessageFactoryImpl.h
  4418. * src/DHTMessageTracker.cc
  4419. * test/DHTMessageFactoryImplTest.cc
  4420. * test/MockDHTMessageFactory.h
  4421. Dropped DHT message coming from same ID of localhost.
  4422. * src/DHTMessageReceiver.cc
  4423. Rejected adding node whose ID is the same as localhost's.
  4424. * src/DHTRoutingTable.cc
  4425. * test/BtPortMessageTest.cc
  4426. * test/DHTRoutingTableTest.cc
  4427. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. Pool connection when redirection occurs with Content-Length = 0.
  4429. * src/HttpSkipResponseCommand.cc
  4430. * src/HttpSkipResponseCommand.h
  4431. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4432. Fixed the bug that causes time out when redirection occurs with
  4433. content-length 0.
  4434. * src/HttpResponseCommand.cc
  4435. * src/HttpSkipResponseCommand.cc
  4436. * src/HttpSkipResponseCommand.h
  4437. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4438. Now each status legends is shown only when it appears in Download
  4439. Result. If Download Result has no item, then status legend will not
  4440. be printed.
  4441. * src/RequestGroupMan.cc
  4442. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Removed duplicate creation of OptionHandlers.
  4444. * src/option_processing.cc
  4445. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Fixed the bug that causes segmentation fault when accessing files which
  4447. don't exist or are not included in --select-file option while
  4448. validating chunk checksum.
  4449. * src/MultiDiskAdaptor.cc
  4450. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Fixed compiler warning.
  4452. * test/UtilTest.cc
  4453. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4454. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4455. * src/IteratableChecksumValidator.cc
  4456. * src/IteratableChunkChecksumValidator.cc
  4457. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4458. * Release 0.16.2
  4459. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4460. Added Serbian translation. Updated Ukrainian translation.
  4461. Thanks to all translators.
  4462. * po/sr.po
  4463. * po/uk.po
  4464. * po/LINGUAS
  4465. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Bump up version number to 0.16.2
  4467. * configure.ac
  4468. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4469. Added length equality test to operator== to drop a piece message
  4470. whose length does not match to the requested one.
  4471. * src/RequestSlot.cc
  4472. * test/DefaultBtMessageDispatcherTest.cc
  4473. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4474. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4475. recieved.
  4476. In this fix, if a request larger than 16KiB length is received, aria2
  4477. disconnects the peer.
  4478. * src/BtConstants.h
  4479. * src/PeerMessageUtil.cc
  4480. * src/PeerMessageUtil.h
  4481. * test/BtRequestMessageTest.cc
  4482. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4483. * Release 0.16.1
  4484. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4486. * doc/aria2c.1.txt
  4487. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4488. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4489. Updated French, Simplified Chinese and Japanese translations.
  4490. Thanks to all translators.
  4491. en@quot and en@boldquot are also added.
  4492. * po/LINGUAS
  4493. * po/fr.po
  4494. * po/ja.po
  4495. * po/uk.po
  4496. * po/vi.po
  4497. * po/zh_CN.po
  4498. * po/zh_TW.po
  4499. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4500. Bump up version number to 0.16.1.
  4501. * configure.ac
  4502. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Updated README.
  4504. * README
  4505. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4507. not to replace '--' with em dash character.
  4508. * doc/aria2c.1.txt
  4509. * doc/makeman
  4510. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4512. every SEC seconds.
  4513. * src/DownloadEngineFactory.cc
  4514. * src/OptionHandlerFactory.cc
  4515. * src/option_processing.cc
  4516. * src/usage_text.h
  4517. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4518. Fixed compile warning on linux-amd64
  4519. * src/FtpConnection.cc
  4520. * src/IteratableChunkChecksumValidator.cc
  4521. * src/MultiDiskAdaptor.cc
  4522. Fixed the bug that unit test fails on linux-amd64
  4523. * test/UtilTest.cc
  4524. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4525. Added --dht-file-path option to change the path to dht.dat, which is a
  4526. serialized DHT routing table.
  4527. * src/OptionHandlerFactory.cc
  4528. * src/option_processing.cc
  4529. * src/usage_text.h
  4530. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4531. Fixed possible underflow.
  4532. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4533. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. Fixed the bug that last character in URI is not encoded.
  4535. * src/Request.cc
  4536. * test/RequestTest.cc
  4537. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4538. Fixed the bug that referer header field contains fragment.
  4539. Now Request class removes fragment part of URI and encodes it
  4540. in Request::setUri() and setReferer().
  4541. * src/Request.h
  4542. * src/Request.cc
  4543. * test/RequestTest.cc
  4544. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. Added missing m4 macros.
  4546. * m4/cppunit.m4
  4547. * m4/libgcrypt.m4
  4548. * m4/libgnutls-extra.m4
  4549. * m4/libgnutls.m4
  4550. * m4/libxml2.m4
  4551. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4552. Fixed compile error with gcc-4.4(snapshot)
  4553. * src/File.cc
  4554. * src/FtpConnection.cc
  4555. * src/OptionHandlerImpl.h
  4556. * src/Util.cc
  4557. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Removed assert()
  4559. * src/SocketBuffer.cc (SocketBuffer::send)
  4560. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4561. Changed the type of _numNewConnection to unsigned int.
  4562. * src/ActivePeerConnectionCommand.cc
  4563. * src/ActivePeerConnectionCommand.h
  4564. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. * Release 0.16.0
  4566. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4567. Updated doc
  4568. * README
  4569. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4571. translations. Thanks to all translators.
  4572. * po/bg.po
  4573. * po/de.po
  4574. * po/fr.po
  4575. * po/ja.po
  4576. * po/zh_CN.po
  4577. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4578. Bump up version number to 0.16.0.
  4579. * configure.ac
  4580. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4582. int32_t.
  4583. Changed the type of count to int32_t.
  4584. * src/Metalink2RequestGroup.cc
  4585. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4586. Added test for Time::elapsed(time_t).
  4587. * test/TimeTest.cc
  4588. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4590. Util::difftv() should be used instead.
  4591. * src/TimeA2.cc
  4592. * src/TimeA2.h
  4593. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Made socket for dht connections non-blocking
  4595. * src/DHTAbstractMessage.cc
  4596. * src/DHTAbstractMessage.h
  4597. * src/DHTConnection.h
  4598. * src/DHTConnectionImpl.cc
  4599. * src/DHTConnectionImpl.h
  4600. * src/DHTMessage.h
  4601. * src/DHTMessageDispatcherImpl.cc
  4602. * src/DHTMessageDispatcherImpl.h
  4603. * src/DHTUnknownMessage.cc
  4604. * src/DHTUnknownMessage.h
  4605. * src/SocketCore.cc
  4606. * src/SocketCore.h
  4607. * test/MockDHTMessage.h
  4608. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4609. Changed the type of offset to int.
  4610. * src/ParameterizedStringParser.cc
  4611. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4612. Made getAsInt() return int32_t
  4613. * src/Option.h
  4614. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4615. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4616. build.
  4617. * configure.ac
  4618. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Use sqlite3_open if sqlite3_open_v2 is not available.
  4620. * src/Sqlite3MozCookieParser.cc
  4621. * src/Sqlite3MozCookieParser.h
  4622. * m4/sqlite3.m4
  4623. * test/Sqlite3MozCookieParserTest.cc
  4624. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4625. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4626. * src/BtPieceMessage.cc
  4627. * src/DHTPeerAnnounceStorage.cc
  4628. * src/DefaultPieceStorage.cc
  4629. * src/DownloadCommand.cc
  4630. * src/DownloadEngine.cc
  4631. * src/FtpConnection.cc
  4632. * src/PeerConnection.cc
  4633. * src/PeerMessageUtil.cc
  4634. * src/RequestGroup.cc
  4635. * src/RequestGroupMan.cc
  4636. * src/SimpleBtMessage.cc
  4637. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4639. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4640. * src/AbstractDiskWriter.cc
  4641. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4642. Don't set Request::supportsPersistentConnection() in HttpConnection
  4643. since this code is also used in AbstractProxyResponseCommand.
  4644. Moved those code to HttpResponse.
  4645. * src/HttpResponse.cc
  4646. * src/HttpResponse.h
  4647. * src/HttpConnection.cc
  4648. * src/HttpConnection.h
  4649. * src/HttpResponseCommand.cc
  4650. * test/HttpResponseTest.cc
  4651. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4653. The configuration is minimum: no torrent, no metalink, so there may be
  4654. other compile error on their code.
  4655. * src/a2netcompat.h
  4656. * src/File.cc
  4657. * src/File.h
  4658. * src/SocketCore.cc
  4659. * src/SocketCore.h
  4660. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4661. Made a socket of incoming peer non-blocking.
  4662. * src/PeerListenCommand.cc
  4663. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4664. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4665. whole message data is not sent in one send() call.
  4666. * src/BtPieceMessage.cc
  4667. * src/BtPieceMessage.h
  4668. * src/PeerConnection.cc
  4669. * src/PeerConnection.h
  4670. * src/SimpleBtMessage.cc
  4671. * src/SimpleBtMessage.h
  4672. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4673. Fixed the bug that aria2 downloads faster than max-download-limit when
  4674. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4675. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4676. , instead of sum of them.
  4677. * src/ActivePeerConnectionCommand.cc
  4678. * src/DefaultBtInteractive.cc
  4679. * src/DownloadCommand.cc
  4680. * src/PeerInteractionCommand.cc
  4681. * src/PeerReceiveHandshakeCommand.cc
  4682. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Fixed the bug that HTTPS download fails.
  4684. * src/AbstractCommand.cc
  4685. * src/AbstractCommand.h
  4686. * src/DownloadCommand.cc
  4687. * src/FtpConnection.cc
  4688. * src/HttpConnection.cc
  4689. * src/HttpRequestCommand.cc
  4690. * src/HttpResponseCommand.cc
  4691. * src/HttpSkipResponseCommand.cc
  4692. * src/MSEHandshake.cc
  4693. * src/PeerConnection.cc
  4694. * src/SocketCore.cc
  4695. * src/SocketCore.h
  4696. Fixed the bug that aria2 doesn't download whole content body and cannot
  4697. reuse connection if chunked transfer encoding and gzip content encoding
  4698. are set.
  4699. * src/DownloadCommand.cc
  4700. * src/HttpSkipResponseCommand.cc
  4701. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4702. Updated man page.
  4703. * doc/aria2c.1.txt
  4704. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4705. When error occurred while aria2 was parsing an .aria2.conf file, print
  4706. the usage of the option that caused error.
  4707. * src/option_processing.cc
  4708. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Fixed compile error on OptionHandlerException
  4710. * src/Makefile.am
  4711. * src/OptionHandlerException.cc
  4712. * src/OptionHandlerException.h
  4713. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Moved message of the error to OptionHandlerException.h
  4715. * src/NameMatchOptionHandler.h
  4716. * src/OptionHandlerException.h
  4717. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. When error occurs while aria2 is parsing an command-line option, print
  4719. the usage of the option.
  4720. * src/Makefile.am
  4721. * src/NameMatchOptionHandler.h
  4722. * src/OptionHandlerException.h
  4723. * src/option_processing.cc
  4724. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4725. Reverted previous change.
  4726. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4727. username is not in URI.
  4728. * src/HttpRequest.cc
  4729. * src/Request.cc
  4730. * test/HttpRequestTest.cc
  4731. * test/RequestTest.cc
  4732. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4733. Now colon is required for username and password in FTP URL, like:
  4734. ftp://username:password@host.
  4735. If colon is not there, aria2 don't parse it as a username. For example,
  4736. aria2 don't retrieve username from ftp://username@host.
  4737. This fix was made in order to login FTP server via non-transparent ftp
  4738. proxy.
  4739. * src/Request.cc
  4740. * test/RequestTest.cc
  4741. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4742. Use netrc for HTTP.
  4743. Now FTP user/password is sent in Authorization header when
  4744. --ftp-via-http-proxy=get is given.
  4745. * src/AuthConfigFactory.cc
  4746. * src/HttpRequest.cc
  4747. * src/HttpRequest.h
  4748. * src/NetrcAuthResolver.cc
  4749. * src/NetrcAuthResolver.h
  4750. * src/OptionHandlerFactory.cc
  4751. * src/option_processing.cc
  4752. * src/prefs.cc
  4753. * src/prefs.h
  4754. * test/AuthConfigFactoryTest.cc
  4755. * test/HttpRequestTest.cc
  4756. * test/NetrcAuthResolverTest.cc
  4757. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4758. Issue PWD command first and get working directory and use it as a prefix
  4759. for CWD command.
  4760. * src/DownloadEngine.cc
  4761. * src/DownloadEngine.h
  4762. * src/FtpConnection.cc
  4763. * src/FtpConnection.h
  4764. * src/FtpFinishDownloadCommand.cc
  4765. * src/FtpInitiateConnectionCommand.cc
  4766. * src/FtpNegotiationCommand.cc
  4767. * src/FtpNegotiationCommand.h
  4768. * test/FtpConnectionTest.cc
  4769. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4770. Removed default user/pass for FTP user/pass, since it should not have
  4771. precedence over netrc configuration by default.
  4772. * src/OptionHandlerFactory.cc
  4773. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Added debug log for socket event.
  4775. * src/AbstractCommand.cc
  4776. * src/PeerAbstractCommand.cc
  4777. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4778. Log microseconds.
  4779. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4780. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4781. Replaced HelpItem.cc with OptionHandler.cc.
  4782. * po/POTFILES.in
  4783. Updated po files with 'make update-po'
  4784. * po/aria2c.pot
  4785. * po/*.po
  4786. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4787. Removed possible values from the text.
  4788. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4789. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4790. Removed unused preferences:
  4791. PREF_NO_PREALLOCATION
  4792. PREF_STDOUT_LOG
  4793. PREF_TRACKER_MAX_TRIES
  4794. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4795. PREF_MIN_SEGMENT_SIZE
  4796. * src/option_processing.cc
  4797. * src/prefs.cc
  4798. * src/prefs.h
  4799. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4800. Integrated HelpItem into OptionParser to ease the workload for adding
  4801. new options. Removed default value from usage text.
  4802. * src/HelpItem.cc: Removed.
  4803. * src/HelpItem.h: Removed.
  4804. * src/HelpItemFactory.cc: Removed.
  4805. * src/HelpItemFactory.h: Removed.
  4806. * src/Makefile.am
  4807. * src/Makefile.in
  4808. * src/NameMatchOptionHandler.h
  4809. * src/OptionHandler.cc
  4810. * src/OptionHandler.h
  4811. * src/OptionHandlerFactory.cc
  4812. * src/OptionHandlerImpl.h
  4813. * src/OptionParser.cc
  4814. * src/OptionParser.h
  4815. * src/TagContainer.cc: Removed.
  4816. * src/TagContainer.h: Removed.
  4817. * src/TaggedItem.cc: Removed.
  4818. * src/TaggedItem.h: Removed.
  4819. * src/main.cc
  4820. * src/option_processing.cc
  4821. * src/usage_text.h
  4822. * src/version_usage.cc
  4823. * test/HelpItemTest.cc: Removed.
  4824. * test/Makefile.am
  4825. * test/Makefile.in
  4826. * test/OptionHandlerTest.cc
  4827. * test/OptionParserTest.cc
  4828. * test/TagContainerTest.cc: Removed.
  4829. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4830. Moved `TransferStat stat = ...' to inside the `if' clause.
  4831. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4832. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4833. Fixed the bug that a block in a piece is requested when same block is
  4834. already requested to the same peer in end game mode.
  4835. * src/BtRequestFactory.h
  4836. * src/DefaultBtInteractive.cc
  4837. * src/DefaultBtRequestFactory.cc
  4838. * src/DefaultBtRequestFactory.h
  4839. * src/DefaultPieceStorage.cc
  4840. * src/DefaultPieceStorage.h
  4841. * src/PieceStorage.h
  4842. * src/UnknownLengthPieceStorage.cc
  4843. * src/UnknownLengthPieceStorage.h
  4844. * test/DefaultBtRequestFactoryTest.cc
  4845. * test/DefaultPieceStorageTest.cc
  4846. * test/MockBtRequestFactory.h
  4847. * test/MockPieceStorage.h
  4848. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4849. Removed _uploadLength and _downloadLength from PeerSessionResource
  4850. and use PeerStat::_sessionUploadLength and
  4851. PeerStat::_sessionDownloadLength.
  4852. * src/PeerSessionResource.cc
  4853. * src/PeerSessionResource.h
  4854. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. Fixed the bug that prefixLength of split bucket which doesn't include
  4856. local node ID is incremented.
  4857. * src/DHTBucket.cc
  4858. * src/DHTBucket.h
  4859. * test/DHTBucketTest.cc
  4860. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4861. Added cookies.sqlite to EXTRA_DIST
  4862. * test/Makefile.am
  4863. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Added Turkish translation. Updated French, German, Russian and
  4865. Simplified Chinese translations. Thanks to all translators.
  4866. * po/LINGUAS
  4867. * po/de.po
  4868. * po/fr.po
  4869. * po/ru.po
  4870. * po/tr.po
  4871. * po/zh_CN.po
  4872. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4873. Added deliminating text to the beginning of the log so that one can find
  4874. where the log starts easily.
  4875. * src/main.cc
  4876. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4878. to fix compile error when async DNS is not enabled by configuration.
  4879. * src/AbstractCommand.cc
  4880. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. If establishing conneciton to a server is failed, then mark error on
  4882. its ServerStat.
  4883. Added the cause of error to log when error event occurred.
  4884. Moved message string to message.h for translation.
  4885. * src/AbstractCommand.cc
  4886. * src/AbstractCommand.h
  4887. * src/FtpNegotiationCommand.cc
  4888. * src/HttpRequestCommand.cc
  4889. * src/PeerAbstractCommand.cc
  4890. * src/message.h
  4891. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4892. Added the function to get error message from socket.
  4893. * src/SocketCore.cc
  4894. * src/SocketCore.h
  4895. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4897. * src/RequestGroupMan.cc
  4898. * src/RequestGroupMan.h
  4899. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. If error event is received in epoll, then abort download immediately.
  4901. * src/AbstractCommand.cc
  4902. * src/Command.cc
  4903. * src/Command.h
  4904. * src/DownloadEngine.cc
  4905. * src/PeerAbstractCommand.cc
  4906. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. Added usage message for --uri-selector, --server-stat-of,
  4908. --server-stat-in, --server-stat-timeout options.
  4909. * src/HelpItemFactory.cc
  4910. * src/usage_text.h
  4911. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. Added upper limit of FTP response buffer. The current implementation
  4913. uses 4096bytes as a limit.
  4914. * src/FtpConnection.cc
  4915. * src/FtpConnection.h
  4916. * test/FtpConnectionTest.cc
  4917. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4918. Use non-blocking socket for TCP communication to avoid possible
  4919. blocking due to buffer full.
  4920. * src/AbstractProxyRequestCommand.cc
  4921. * src/FtpConnection.cc
  4922. * src/FtpConnection.h
  4923. * src/FtpNegotiationCommand.cc
  4924. * src/FtpNegotiationCommand.h
  4925. * src/HttpConnection.cc
  4926. * src/HttpConnection.h
  4927. * src/HttpRequestCommand.cc
  4928. * src/InitiatorMSEHandshakeCommand.cc
  4929. * src/InitiatorMSEHandshakeCommand.h
  4930. * src/MSEHandshake.cc
  4931. * src/MSEHandshake.h
  4932. * src/Makefile.am
  4933. * src/PeerConnection.cc
  4934. * src/PeerConnection.h
  4935. * src/PeerInteractionCommand.cc
  4936. * src/PeerListenCommand.cc
  4937. * src/ReceiverMSEHandshakeCommand.cc
  4938. * src/ReceiverMSEHandshakeCommand.h
  4939. * src/SocketBuffer.cc
  4940. * src/SocketBuffer.h
  4941. * src/SocketCore.cc
  4942. * src/SocketCore.h
  4943. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4944. Call setStatusRealtime() in constructor.
  4945. * src/RealtimeCommand.cc
  4946. * src/RealtimeCommand.h
  4947. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4948. Call Download::setNoWait(true) to execute newly created command without
  4949. a pause.
  4950. * src/AbstractCommand.cc
  4951. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4952. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4953. found' error from HTTP/FTP server NUM times without getting single
  4954. bytes of data, then force the download to fail.
  4955. Basically aria2 tris all URIs available. So if long list of URIs are
  4956. specified in Metalink, then aria2 will take a long time to fail
  4957. eventually if all URIs are outdated. This option eases this situation
  4958. to limit the number of servers to try.
  4959. * src/FtpNegotiationCommand.cc
  4960. * src/HelpItemFactory.cc
  4961. * src/HttpResponseCommand.cc
  4962. * src/OptionHandlerFactory.cc
  4963. * src/PeerStat.h
  4964. * src/RequestGroup.cc
  4965. * src/RequestGroup.h
  4966. * src/SegmentMan.cc
  4967. * src/SegmentMan.h
  4968. * src/option_processing.cc
  4969. * src/prefs.cc
  4970. * src/prefs.h
  4971. * src/usage_text.h
  4972. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4974. response even if more than one response is in it.
  4975. * src/FtpConnection.cc
  4976. * src/FtpConnection.h
  4977. * test/FtpConnectionTest.cc
  4978. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Merged from stable-0.15
  4980. * m4/libcares.m4
  4981. Use pkg-config
  4982. * m4/sqlite3.m4
  4983. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. Removed unnecessary if statement.
  4985. * src/DefaultPieceStorage.cc (initPieceStorage)
  4986. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Added --connect-timeout option to specify connect timeout in seconds.
  4988. This option is in effect for HTTP/FTP/proxy server. The timeout for
  4989. connecting to BitTorrent peer is not controlled by this option.
  4990. * src/AbstractProxyRequestCommand.cc
  4991. * src/FtpNegotiationCommand.cc
  4992. * src/HelpItemFactory.cc
  4993. * src/HttpRequestCommand.cc
  4994. * src/OptionHandlerFactory.cc
  4995. * src/option_processing.cc
  4996. * src/prefs.cc
  4997. * src/prefs.h
  4998. * src/usage_text.h
  4999. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Added help message for -R option.
  5001. * src/HelpItemFactory.cc
  5002. * src/usage_text.h
  5003. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5004. Added the message that the time is in local time zone.
  5005. * src/RequestGroup.cc
  5006. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. Implemented the ability to get timestamp from remote FTP server using
  5008. MDTM command described in RFC3659.
  5009. * src/FtpConnection.cc
  5010. * src/FtpConnection.h
  5011. * src/FtpNegotiationCommand.cc
  5012. * src/FtpNegotiationCommand.h
  5013. * test/FtpConnectionTest.cc
  5014. * test/Makefile.am
  5015. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5016. Implemented the ability to get timestamp from remote HTTP server and
  5017. apply it to local file. To enable this feature, --remote-time option
  5018. is added. No usage text has been written yet.
  5019. If several servers returns difference timestamp, then aria2 uses latest
  5020. one.
  5021. * src/CopyDiskAdaptor.cc
  5022. * src/CopyDiskAdaptor.h
  5023. * src/DirectDiskAdaptor.cc
  5024. * src/DirectDiskAdaptor.h
  5025. * src/DiskAdaptor.h
  5026. * src/File.cc
  5027. * src/File.h
  5028. * src/HttpHeader.cc
  5029. * src/HttpHeader.h
  5030. * src/HttpResponse.cc
  5031. * src/HttpResponse.h
  5032. * src/HttpResponseCommand.cc
  5033. * src/HttpResponseCommand.h
  5034. * src/MultiDiskAdaptor.cc
  5035. * src/MultiDiskAdaptor.h
  5036. * src/OptionHandlerFactory.cc
  5037. * src/RequestGroup.cc
  5038. * src/RequestGroup.h
  5039. * src/RequestGroupMan.cc
  5040. * src/option_processing.cc
  5041. * src/prefs.cc
  5042. * src/prefs.h
  5043. * test/CopyDiskAdaptorTest.cc
  5044. * test/FileTest.cc
  5045. * test/Makefile.am
  5046. * test/Makefile.in
  5047. * test/MultiDiskAdaptorTest.cc
  5048. * test/TestUtil.cc
  5049. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5050. Fixed the bug that DiskWriterEntry is not created when its
  5051. FileEntry.isRequested() is false and it doesn't share a piece with
  5052. other FileEntries that are requested. This bug causes segmentation fault
  5053. in the end.
  5054. * src/MultiDiskAdaptor.cc
  5055. * src/MultiDiskAdaptor.h
  5056. * src/MultiFileAllocationIterator.cc
  5057. * test/MultiDiskAdaptorTest.cc
  5058. * test/MultiFileAllocationIteratorTest.cc
  5059. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5061. called if the number of file entries are greater than max open files.
  5062. * src/AbstractSingleDiskAdaptor.cc
  5063. * src/AbstractSingleDiskAdaptor.h
  5064. * src/DiskAdaptor.h
  5065. * src/MultiDiskAdaptor.cc
  5066. * src/MultiDiskAdaptor.h
  5067. * test/MultiDiskAdaptorTest.cc
  5068. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Added a constuctor that receives struct timeval.
  5070. Added operator<.
  5071. * src/TimeA2.cc
  5072. * src/TimeA2.h
  5073. * test/TimeTest.cc
  5074. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5075. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5076. * src/CookieParser.cc
  5077. * test/CookieParserTest.cc
  5078. * test/HttpResponseTest.cc
  5079. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Implmented the functions to parse date.
  5081. * src/TimeA2.cc
  5082. * src/TimeA2.h
  5083. * test/TimeTest.cc
  5084. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Added "Firefox3 Cookie" feature to FeatureConfig
  5086. * src/FeatureConfig.cc
  5087. * src/FeatureConfig.h
  5088. * test/FeatureConfigTest.cc
  5089. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5090. Bump up version number to 0.16.0b
  5091. * configure.ac
  5092. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5093. Use pkg-config if is is available.
  5094. * m4/openssl.m4
  5095. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5096. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5097. * src/BtAnnounce.h
  5098. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. If an error occurred with a URI, remove identical URI from remaining
  5100. URI list because it is likely that same error occurred in the end and it
  5101. is waste of time.
  5102. * src/AbstractCommand.cc
  5103. * src/RequestGroup.cc
  5104. * src/RequestGroup.h
  5105. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5106. Removed wrong comment.
  5107. * src/DefaultPeerStorage.cc
  5108. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5109. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5110. Added return value of getpid() to argument of srand() to achieve more
  5111. randomized value.
  5112. * src/SimpleRandomizer.cc
  5113. * src/SimpleRandomizer.h
  5114. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5115. Contact tracker frequently when the number of connections are 0 and
  5116. download is not finished yet.
  5117. * src/ActivePeerConnectionCommand.cc
  5118. * src/BtAnnounce.h
  5119. * src/DefaultBtAnnounce.cc
  5120. * src/DefaultBtAnnounce.h
  5121. * test/MockBtAnnounce.h
  5122. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5123. Moved threshold values to UTPexExtensionMessage.
  5124. * src/DefaultBtInteractive.cc
  5125. * src/Peer.cc
  5126. * src/Peer.h
  5127. * src/UTPexExtensionMessage.cc
  5128. * src/UTPexExtensionMessage.h
  5129. * test/UTPexExtensionMessageTest.cc
  5130. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5131. Added _incoming member to Peer class and made it true if the peer
  5132. initiated connection. Don't add those peer to UTPex message.
  5133. If extended handshake is received, assign _incoming to false.
  5134. * src/DefaultBtInteractive.cc
  5135. * src/HandshakeExtensionMessage.cc
  5136. * src/Peer.cc
  5137. * src/Peer.h
  5138. * src/PeerListenCommand.cc
  5139. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5141. Encoding Decoder. Removed size threshold for turning off on the fly
  5142. inflation because resulting file may or may not be inflated depending
  5143. on the file size and I think it is not expected by users.
  5144. This change fixes segmentation fault when Metalink file contains gzipped
  5145. file and its filesize is provided.
  5146. * src/HttpResponseCommand.cc
  5147. * src/HttpResponseCommand.h
  5148. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5149. Made Cookie immutable.
  5150. * src/Cookie.cc
  5151. * src/Cookie.h
  5152. * src/CookieParser.cc
  5153. * src/CookieParser.h
  5154. * src/CookieStorage.cc
  5155. * test/CookieParserTest.cc
  5156. * test/CookieStorageTest.cc
  5157. * test/NsCookieParserTest.cc
  5158. * test/Sqlite3MozCookieParserTest.cc
  5159. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Removed CookieBox, CookieBoxFactory.
  5161. * src/CookieBox.cc
  5162. * src/CookieBox.h
  5163. * src/CookieBoxFactory.cc
  5164. * src/CookieBoxFactory.h
  5165. * src/Makefile.am
  5166. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5167. Use CookieStorage class instead of CookieBox class.
  5168. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5169. * src/AbstractProxyRequestCommand.cc
  5170. * src/CookieStorage.cc
  5171. * src/DownloadEngine.cc
  5172. * src/DownloadEngine.h
  5173. * src/HttpConnection.cc
  5174. * src/HttpConnection.h
  5175. * src/HttpRequest.cc
  5176. * src/HttpRequest.h
  5177. * src/HttpRequestCommand.cc
  5178. * src/HttpResponse.cc
  5179. * src/HttpResponseCommand.cc
  5180. * src/HttpSkipResponseCommand.cc
  5181. * src/Makefile.am
  5182. * src/MultiUrlRequestInfo.cc
  5183. * src/Request.cc
  5184. * src/Request.h
  5185. * src/main.cc
  5186. * test/AllTest.cc
  5187. * test/CookieStorageTest.cc
  5188. * test/CookieTest.cc
  5189. * test/HttpRequestTest.cc
  5190. * test/HttpResponseTest.cc
  5191. * test/Makefile.am
  5192. * test/NsCookieParserTest.cc
  5193. * test/Sqlite3MozCookieParserTest.cc
  5194. * test/nscookietest.txt
  5195. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5196. Updated
  5197. * test/Cookies.sqlite
  5198. * test/nscookietest.txt
  5199. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. Added tests for CookieStorage::load()
  5201. * test/CookieStorageTest.cc
  5202. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5203. Added CookieStorage class which is based on RFC2109 and manages cookies
  5204. more strictly than CookieBox and CookieBoxFactory class.
  5205. * src/CookieStorage.cc
  5206. * src/CookieStorage.h
  5207. * src/Cookie.cc
  5208. * src/Cookie.h
  5209. * test/CookieStorageTest.cc
  5210. * test/CookieTest.cc
  5211. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5212. Fixed the bug that commands are created more than the number of pieces.
  5213. * src/RequestGroup.cc
  5214. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5215. Fixed infinite loop bug in FTP when SIZE command failed.
  5216. * src/FtpNegotiationCommand.cc
  5217. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5218. Removed DirectDiskAdaptorTest.h
  5219. * test/Makefile.am
  5220. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5221. Fixed chunk checksum validation cannot detect trailing garbage data.
  5222. BUG#2074141
  5223. * src/AbstractSingleDiskAdaptor.cc
  5224. * src/AbstractSingleDiskAdaptor.h
  5225. * src/CheckIntegrityEntry.cc
  5226. * src/CheckIntegrityEntry.h
  5227. * src/DiskAdaptor.h
  5228. * src/MultiDiskAdaptor.cc
  5229. * src/MultiDiskAdaptor.h
  5230. * src/RequestGroup.cc
  5231. * test/DirectDiskAdaptorTest.cc
  5232. * test/MultiDiskAdaptorTest.cc
  5233. * test/TestUtil.cc
  5234. * test/TestUtil.h
  5235. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5236. Bump up version number of dht.dat file to 3. In version 3 format, time
  5237. is stored in 64bit, network byte order.
  5238. New build can load old format(version 2) but it saves the file in new
  5239. format. It means once you used new build, your dht.dat becomes
  5240. incompatible with older build.
  5241. * src/DHTRoutingTableDeserializer.cc
  5242. * src/DHTRoutingTableSerializer.cc
  5243. * test/DHTRoutingTableSerializerTest.cc
  5244. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5245. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5246. * test/Makefile.am
  5247. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5248. Bump up version number of .aria2 control file to 0001.
  5249. New aria2 can still load version 0000 file but it saves the file in
  5250. version 0001 format. It means that new aria2 can resume download
  5251. started by old aria2 but the opposite is not true.
  5252. * src/DefaultBtProgressInfoFile.cc
  5253. * src/DefaultBtProgressInfoFile.h
  5254. * test/DefaultBtProgressInfoFileTest.cc
  5255. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Added ntoh64 and hton64 as inline functions.
  5257. * src/Util.cc
  5258. * test/UtilTest.cc
  5259. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5260. Added sqlite3 depenency and Firefox3 cookie support.
  5261. * README
  5262. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5263. State that firefox3 cookie is supported explicitly in the usage.
  5264. * src/usage_text.h
  5265. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5266. Externalized message.
  5267. * src/RequestGroupMan.cc
  5268. * src/message.h
  5269. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. Save temporary file first and rename to the destination on success.
  5271. Added test cases.
  5272. * src/RequestGroupMan.cc
  5273. * test/RequestGroupManTest.cc
  5274. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Fixed the bug that the number of connected peer is exceeding the limit
  5276. (55 by default) in seeding mode.
  5277. Multiplied 0.8 to _maxUploadSpeedLimit.
  5278. * src/ActivePeerConnectionCommand.cc
  5279. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5280. Clear table item.
  5281. * src/Dictionary.cc
  5282. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5283. Fixed error handling of lseek.
  5284. * src/AbstractDiskWriter.cc
  5285. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5286. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5287. style cookie file.
  5288. * src/usage_text.h
  5289. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5290. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5291. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5292. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5293. * src/Util.cc
  5294. * src/Util.h
  5295. * src/CookieParser.cc
  5296. * test/UtilTest.cc
  5297. * test/CookieParserTest.cc
  5298. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5299. Separate the implementation to load old mozilla format of cookie to
  5300. NsCookieParser class.
  5301. * src/CookieBoxFactory.cc
  5302. * src/CookieBoxFactory.h
  5303. * src/NsCookieParser.cc
  5304. * src/NsCookieParser.h
  5305. * test/NsCookieParserTest.cc
  5306. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Made parse() const
  5308. * src/Sqlite3MozCookieParser.cc
  5309. * src/Sqlite3MozCookieParser.h
  5310. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5311. Added firefox3 cookie support based on the patch submitted by
  5312. tizianomueller.
  5313. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5314. this functionality.
  5315. * configure.ac
  5316. * m4/sqlite3.m4
  5317. * src/CookieBoxFactory.cc
  5318. * src/CookieBoxFactory.h
  5319. * src/Makefile.am
  5320. * src/Makefile.in
  5321. * src/Sqlite3MozCookieParser.cc
  5322. * src/Sqlite3MozCookieParser.h
  5323. * src/main.cc
  5324. * test/CookieBoxFactoryTest.cc
  5325. * test/Makefile.am
  5326. * test/Makefile.in
  5327. * test/Sqlite3MozCookieParserTest.cc
  5328. * test/badcookies.sqlite
  5329. * test/cookies.sqlite
  5330. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5331. Added Danish and Greek translations.
  5332. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5333. Great thanks to all translators.
  5334. * po/LINGUAS
  5335. * po/el.po
  5336. * po/da.po
  5337. * po/es.po
  5338. * po/ca.po
  5339. * po/nn.po
  5340. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Fixed man page: --follow-bittorrent should be --follow-torrent
  5342. * doc/aria2c.1.txt
  5343. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. Fixed: numCommand is less than the value specified in -C option.
  5345. * src/RequestGroup.cc
  5346. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5347. Fixed occasional assertion failure in PieceSegment.
  5348. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5349. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5350. creation of duplicate segments and one of the segment was finished then
  5351. assertion failure was caused.
  5352. * src/SegmentMan.cc
  5353. * test/SegmentManTest.cc
  5354. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Added options to load/save the server's performance/status to a file
  5356. and the timeout to drop their data.
  5357. --server-stat-of=FILE specifies the file to which performance data
  5358. is saved.
  5359. --server-stat-if=FILE specifies the file to read previously saved
  5360. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5361. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5362. TIMEOUT is specified in seconds and the default value is 24hours.
  5363. * src/MultiUrlRequestInfo.cc
  5364. * src/OptionHandlerFactory.cc
  5365. * src/RequestGroupMan.cc
  5366. * src/RequestGroupMan.h
  5367. * src/ServerStatMan.cc
  5368. * src/ServerStatMan.h
  5369. * src/option_processing.cc
  5370. * src/prefs.cc
  5371. * src/prefs.h
  5372. * test/ServerStatManTest.cc
  5373. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5374. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5375. * src/ServerStatMan.cc
  5376. * src/ServerStatMan.h
  5377. * test/ServerStatManTest.cc
  5378. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Implemented ServerStatMan::load(...) function and its test case.
  5380. * src/ServerStat.cc
  5381. * src/ServerStat.h
  5382. * src/ServerStatMan.cc
  5383. * test/ServerStatManTest.cc
  5384. * test/ServerStatTest.cc
  5385. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Use time_t instead of int32_t. Use int64_t where milli second is
  5387. expected.
  5388. * src/TimeA2.cc
  5389. * src/TimeA2.h
  5390. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5391. Implemented ServerStatMan::save(...) function and its test case.
  5392. * src/ServerStat.cc
  5393. * src/ServerStat.h
  5394. * src/ServerStatMan.cc
  5395. * src/ServerStatMan.h
  5396. * test/ServerStatManTest.cc
  5397. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5398. Now aria2 uses name attribute in Metalink as local filename in
  5399. BitTorrent downloads. BUG#2033999
  5400. * src/BtContext.h
  5401. * src/BtDependency.cc
  5402. * src/DefaultBtContext.cc
  5403. * src/DefaultBtContext.h
  5404. * src/SingleFileDownloadContext.cc
  5405. * src/SingleFileDownloadContext.h
  5406. * test/BtDependencyTest.cc
  5407. * test/DefaultBtContextTest.cc
  5408. * test/MockBtContext.h
  5409. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Added AC_C_BIGENDIAN
  5411. * src/configure.ac
  5412. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5413. Limited numCommand less than or equal to the number of piece.
  5414. * src/RequestGroup.cc
  5415. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5416. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5417. directive.
  5418. * test/DefaultPieceStorageTest.cc
  5419. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Fixed memory leak in test code
  5421. * test/AnnounceListTest.cc
  5422. * test/DefaultPeerListProcessorTest.cc
  5423. * test/DefaultPeerStorageTest.cc
  5424. * test/MetaFileUtilTest.cc
  5425. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5426. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5427. * src/DefaultPieceStorage.cc
  5428. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5429. Initialized _directIOAllowed
  5430. * src/MultiDiskAdaptor.cc
  5431. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Fixed memory leak
  5433. * src/GZipDecoder.cc
  5434. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5435. Fixed memory leak
  5436. * src/MetalinkParserStateMachine.cc
  5437. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. Fixed memory leak
  5439. * src/Dictionary.cc
  5440. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Fixed memory leak
  5442. * src/IteratableChunkChecksumValidator.h
  5443. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5444. Fixed unmatched malloc/free.
  5445. * src/IteratableChunkChecksumValidator.cc
  5446. * src/IteratableChecksumValidator.cc
  5447. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5448. Removed max chunk size check. This change fixes BUG#2040169
  5449. * src/ChunkedDecoder.cc
  5450. * src/ChunkedDecoder.h
  5451. * test/ChunkedDecoderTest.cc
  5452. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Implemented download speed based URI selection algorithm.
  5454. Introduced new option --uri-selector.
  5455. If --uri-selector=feedback is given, aria2 uses download speed observed
  5456. in the previous downloads and chooses fastest server in the URI list.
  5457. Currently at most 10 URIs are considered to introduce randomeness for
  5458. finding better servers. The speed is average download speed in the
  5459. downloads.
  5460. On the other hand, if --uri-selector=inorder is given, which is default,
  5461. URI is tried in order in URI list.
  5462. The usage text for the new option has not been written yet.
  5463. * src/AbstractCommand.cc
  5464. * src/DownloadCommand.cc
  5465. * src/DownloadEngine.cc
  5466. * src/DownloadEngineFactory.cc
  5467. * src/InOrderURISelector.cc
  5468. * src/InOrderURISelector.h
  5469. * src/OptionHandlerFactory.cc
  5470. * src/PeerStat.h
  5471. * src/RequestGroup.cc
  5472. * src/RequestGroup.h
  5473. * src/RequestGroupMan.cc
  5474. * src/RequestGroupMan.h
  5475. * src/SegmentMan.cc
  5476. * src/SegmentMan.h
  5477. * src/ServerStat.cc
  5478. * src/ServerStat.h
  5479. * src/ServerStatMan.cc
  5480. * src/ServerStatMan.h
  5481. * src/ServerStatURISelector.cc
  5482. * src/ServerStatURISelector.h
  5483. * src/URISelector.h
  5484. * src/option_processing.cc
  5485. * src/prefs.cc
  5486. * src/prefs.h
  5487. * test/InOrderURISelectorTest.cc
  5488. * test/RequestGroupManTest.cc
  5489. * test/ServerStatManTest.cc
  5490. * test/ServerStatURISelectorTest.cc
  5491. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5492. * Release 0.15.1+2
  5493. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5494. Bump up version number to 0.15.1+2
  5495. * configure.ac
  5496. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5498. * m4/aria2_arg.m4
  5499. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. * Release 0.15.1+1
  5501. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5502. Bump up version number to 0.15.1+1
  5503. * configure.ac
  5504. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5505. Fixed the bug that causes segmentaion fault when resuming download
  5506. using metalink without size tag. Reproducible only using HTTP URI.
  5507. * src/HttpResponseCommand.cc
  5508. * src/FtpNegotiationCommand.cc
  5509. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5510. * Release 0.15.1
  5511. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. Updated Bulgarian and French translations, thanks to all translators.
  5513. * po/bg.po
  5514. * po/fr.po
  5515. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. Bump up version number to 0.15.1
  5517. * configure.ac
  5518. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Avoid repeated call of gettimeofday() when calculating speed.
  5520. * src/SpeedCalc.cc
  5521. * src/SpeedCalc.h
  5522. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5523. Removed writable check when socket's send buffer is full in BitTorrent
  5524. downloads to lower CPU usage.
  5525. * src/PeerInteractionCommand.cc
  5526. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Fixed broken gzip inflation.
  5528. Turn off segmented downloading if gzip content is smaller than or equal
  5529. to 1MiB and inflate the data on the fly, because HTTP response header
  5530. doesn't contain the length of inflated file we can't determin where
  5531. the chunk of data should be written.
  5532. On the other hand, if gzip content is larger than 1MB, then turn off
  5533. on the fly inflation, because some servers returns "content-type: gzip"
  5534. for *.tgz, *.gz files.
  5535. * src/DownloadCommand.cc
  5536. * src/HttpResponseCommand.cc
  5537. * src/HttpResponseCommand.h
  5538. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5539. Applied tizianomueller's patch to fix compile error.
  5540. * test/BitfieldManTest.cc
  5541. * test/BtRequestMessageTest.cc
  5542. * test/DefaultBtContextTest.cc
  5543. * test/DefaultDiskWriterTest.cc
  5544. * test/DefaultPieceStorageTest.cc
  5545. * test/HttpHeaderProcessorTest.cc
  5546. * test/HttpResponseTest.cc
  5547. * test/Metalink2RequestGroupTest.cc
  5548. * test/MetalinkParserControllerTest.cc
  5549. * test/MetalinkProcessorTest.cc
  5550. * test/PeerSessionResourceTest.cc
  5551. * test/UtilTest.cc
  5552. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5553. * Release 0.15.0
  5554. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5555. Reordered src files in POTFILES.in so that usage text appears first.
  5556. * po/POTFILES.in
  5557. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5558. Bump up version number to 0.15.0
  5559. * configure.ac
  5560. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5561. Added Bulgarian translation.
  5562. Updated Catalan, Spanish, French and Japanese translations.
  5563. Thanks to all translators.
  5564. * po/LINGUAS
  5565. * po/bg.po
  5566. * po/ca.po
  5567. * po/es.po
  5568. * po/fr.po
  5569. * po/ja.po
  5570. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. Updated feature list. Added libz for dependency section.
  5572. Added a description about unit testing using CppUnit.
  5573. * README
  5574. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5575. Added a test for libz. Quoted where it is necessary.
  5576. * build_test.sh
  5577. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5578. Added GZip to `Enabled Features' list.
  5579. * src/FeatureConfig.cc
  5580. * src/FeatureConfig.h
  5581. * test/FeatureConfigTest.cc
  5582. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5584. the transfer has not yet started.
  5585. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5586. * src/SegmentMan.cc
  5587. * src/SegmentMan.h
  5588. * test/SegmentManTest.cc
  5589. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. Cache last calculated average download/upload speed.
  5591. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5592. cached value.
  5593. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5594. * src/PeerStat.h
  5595. * src/SpeedCalc.cc
  5596. * src/SpeedCalc.h
  5597. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Call parseUrl directly.
  5599. * src/Request.cc (resetUrl)
  5600. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5601. Supported absolute/relative path in Location header field.
  5602. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5603. * src/HttpHeader.cc
  5604. * src/HttpHeader.h
  5605. * src/HttpResponse.cc
  5606. * src/HttpSkipResponseCommand.cc
  5607. * src/Request.cc
  5608. * test/HttpHeaderTest.cc
  5609. * test/HttpResponseTest.cc
  5610. * test/RequestTest.cc
  5611. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5612. Changed help text for --load-cookie option.
  5613. * doc/aria2c.1.txt
  5614. * src/usage_text.h
  5615. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5616. Regenerated test/Makefile.in to remove stale ChangeLog.
  5617. * test/Makefile.in
  5618. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5619. Updated po files.
  5620. * po/aria2c.pot
  5621. * po/*.po
  5622. * po/*.gmo
  5623. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Bump up version number to 0.15.0b
  5625. * configure.ac
  5626. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Externalize messages.
  5628. * src/RequestGroupMan.cc
  5629. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5630. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5631. Use File::exists() instead of File::isFile() to allow non-regular file
  5632. such as block special files.
  5633. * src/AbstractDiskWriter.cc
  5634. * src/MultiDiskWriter.cc
  5635. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5636. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5637. * src/gai_strerror.h
  5638. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5639. Fixed compile error. Thanks gknauf for the patch.
  5640. * src/asctime_r.c
  5641. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Included asctime_r.h from a2time.h.
  5643. * src/a2time.h
  5644. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5645. Added a message "aria2 doesn't verify signature" to log message when
  5646. signature file is saved.
  5647. * src/RequestGroupMan.cc
  5648. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5649. Added the ability to save signature when download is completed if
  5650. signature is available. The filename of signature file is the path to
  5651. download file followed by ".sig". If it already exists, then signature
  5652. will not be saved.
  5653. * src/RequestGroupMan.cc
  5654. * src/Signature.cc
  5655. * test/SignatureTest.cc
  5656. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5657. Updated the descriptions for --bt-seed-unverified.
  5658. * doc/aria2c.1
  5659. * doc/aria2c.1.html
  5660. * doc/aria2c.1.txt
  5661. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5662. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5663. that this is not going to verify files using piece hashes.
  5664. * src/HelpItemFactory.cc
  5665. * src/OptionHandlerFactory.cc
  5666. * src/RequestGroup.cc
  5667. * src/option_processing.cc
  5668. * src/prefs.cc
  5669. * src/prefs.h
  5670. * src/usage_text.h
  5671. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5672. Added the ability to retrieve signature from Metalink file.
  5673. A retrieved signature is stored in Signature class and it is held by
  5674. DownloadContext class. Note that aria2 doesn't verify signature.
  5675. * src/DownloadContext.cc
  5676. * src/DownloadContext.h
  5677. * src/Makefile.am
  5678. * src/Makefile.in
  5679. * src/Metalink2RequestGroup.cc
  5680. * src/MetalinkEntry.cc
  5681. * src/MetalinkEntry.h
  5682. * src/MetalinkParserController.cc
  5683. * src/MetalinkParserController.h
  5684. * src/MetalinkParserStateMachine.cc
  5685. * src/MetalinkParserStateMachine.h
  5686. * src/Signature.cc
  5687. * src/Signature.h
  5688. * src/SignatureMetalinkParserState.cc
  5689. * src/SignatureMetalinkParserState.h
  5690. * src/VerificationMetalinkParserState.cc
  5691. * src/VerificationMetalinkParserState.h
  5692. * test/Metalink2RequestGroupTest.cc
  5693. * test/MetalinkParserControllerTest.cc
  5694. * test/MetalinkProcessorTest.cc
  5695. * test/test.xml
  5696. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5697. Close DiskAdaptor after renaming file.
  5698. * src/RequestGroup.cc
  5699. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Corrected indentation
  5701. * src/DefaultBtProgressInfoFile.cc
  5702. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5703. Moved the calls of std::ios::exceptions() inside of try-catch block
  5704. because if an error occurred in constructor of std::fstream, then
  5705. exception is thrown immediately when std::ios::exceptions() is called
  5706. which results unhandled exception and aria2c aborts.
  5707. * src/DefaultBtProgressInfoFile.cc
  5708. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5709. Added the test for the previous change in DefaultBtContext.cc
  5710. * test/DefaultBtContextTest.cc
  5711. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5712. Fixed the bug that causes infinite loop when the number of pieces are
  5713. fewer than allowed fast set size which is 10 by default.
  5714. * src/DefaultBtContext.cc
  5715. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Updated the descriptions for -j, -s. Added --bt-seed.
  5717. * doc/aria2c.1
  5718. * doc/aria2c.1.html
  5719. * doc/aria2c.1.txt
  5720. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5721. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5722. aria2 seeds previously downloaded files without validating piece hashs.
  5723. * src/HelpItemFactory.cc
  5724. * src/OptionHandlerFactory.cc
  5725. * src/RequestGroup.cc
  5726. * src/option_processing.cc
  5727. * src/prefs.cc
  5728. * src/prefs.h
  5729. * src/usage_text.h
  5730. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Updated DESCRIPTION of man page.
  5732. * doc/aria2c.1
  5733. * doc/aria2c.1.html
  5734. * doc/aria2c.1.txt
  5735. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5737. Don't define `struct addrinfo' when __sun is defined.
  5738. * src/getaddrinfo.h
  5739. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5740. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5741. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5742. second argument is of type `struct _stati64'. Otherwise it is defined as
  5743. `struct stat'.
  5744. * src/AbstractDiskWriter.cc
  5745. * src/File.cc
  5746. * src/File.h
  5747. * src/a2io.h
  5748. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Fixed the compile error in hurd-i386
  5750. See the original bug report:
  5751. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5752. * src/a2io.h
  5753. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Code cleanup.
  5755. * src/PeerAbstractCommand.cc
  5756. * src/PeerAbstractCommand.h
  5757. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5758. Removed TransferEncoding.
  5759. * src/DownloadCommand.cc
  5760. * src/DownloadCommand.h
  5761. * src/HttpResponseCommand.cc
  5762. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. Updated po files.
  5764. * po/aria2c.pot
  5765. * po/*.po
  5766. * po/*.gmo
  5767. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5768. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5769. * src/A2STR.cc
  5770. * src/A2STR.h
  5771. * src/ChunkedDecoder.cc
  5772. * src/ChunkedDecoder.h
  5773. * src/ChunkedEncoding.cc: Removed
  5774. * src/ChunkedEncoding.h: Removed
  5775. * src/DownloadCommand.cc
  5776. * src/DownloadCommand.h
  5777. * src/HttpDownloadCommand.cc
  5778. * src/HttpResponse.cc
  5779. * src/HttpResponse.h
  5780. * src/HttpResponseCommand.cc
  5781. * src/HttpSkipResponseCommand.cc
  5782. * src/HttpSkipResponseCommand.h
  5783. * src/Makefile.am
  5784. * src/TransferEncoding.h: Removed
  5785. * test/ChunkedDecoderTest.cc
  5786. * test/ChunkedEncodingTest.cc: Removed
  5787. * test/HttpResponseTest.cc
  5788. * test/Makefile.am
  5789. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Use append instead of insert.
  5791. * src/GZipDecoder.cc
  5792. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. Updated doc
  5794. * src/Decoder.h
  5795. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Updated usage text for -s option.
  5797. * src/usage_text.h
  5798. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5799. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5800. * src/Request.cc
  5801. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5802. Cleaned up configure.ac.
  5803. * configure.ac
  5804. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5806. AC_ARG_ENABLE.
  5807. * configure.ac
  5808. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5809. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5810. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5811. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5812. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5813. fly and writes decoded data to a local disk.
  5814. * README
  5815. * README.html
  5816. * configure.ac
  5817. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5818. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5819. * m4/libz.m4
  5820. * src/Decoder.h
  5821. * src/DownloadCommand.cc
  5822. * src/DownloadCommand.h
  5823. * src/Exception.h
  5824. * src/GZipDecoder.cc
  5825. * src/GZipDecoder.h
  5826. * src/HttpHeader.cc
  5827. * src/HttpHeader.h
  5828. * src/HttpRequest.cc
  5829. * src/HttpRequest.h
  5830. * src/HttpResponse.cc
  5831. * src/HttpResponse.h
  5832. * src/HttpResponseCommand.cc
  5833. * src/Makefile.am
  5834. * test/GZipDecoderTest.cc
  5835. * test/HttpRequestTest.cc
  5836. * test/HttpResponseTest.cc
  5837. * test/Makefile.am
  5838. * test/Makefile.in
  5839. * test/gzip_decode_test.gz
  5840. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5841. Clarified usage of -j option.
  5842. * src/usage_text.h
  5843. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5844. Disabled getting size from the response of RETR.
  5845. If SIZE command failed, then disable resuming and segmented downloading.
  5846. * src/FtpConnection.cc
  5847. * src/FtpConnection.h
  5848. * src/FtpNegotiationCommand.cc
  5849. * src/FtpNegotiationCommand.h
  5850. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Use digits to find first byte of file size, which makes the intention
  5852. of the code clearer.
  5853. * src/FtpConnection.cc
  5854. Don't call validateTotalLength() when size is 0.
  5855. * src/FtpNegotiationCommand.cc
  5856. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5857. Updated po files.
  5858. * po/aria2c.pot
  5859. * po/*.gmo
  5860. * po/*.po
  5861. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5862. Clarified usage text for --split option.
  5863. * src/usage_text.h
  5864. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5865. Bump up version number to 0.15.0dev. "dev" means "development"
  5866. version, which means I started the development of the next release!
  5867. * src/configure.ac
  5868. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. If FTP server returns negative response with REST raw command and
  5870. requested range is not 0, throw exception. If requested range is 0,
  5871. continue download a file from 0 byte.
  5872. * src/FtpNegotiationCommand.cc
  5873. * src/FtpNegotiationCommand.h
  5874. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Supported FTP server which don't recognize SIZE raw command.
  5876. If SIZE raw command is failed, aria2 will try to get file size
  5877. from the response of RETR raw command. If both attempts are failed,
  5878. then resuming and segmented downloading are disabled.
  5879. * src/FtpConnection.cc
  5880. * src/FtpConnection.h
  5881. * src/FtpNegotiationCommand.cc
  5882. * src/FtpNegotiationCommand.h
  5883. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. * Release 0.14.0+1
  5885. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Bump up version number to 0.14.0+1
  5887. * src/configure.ac
  5888. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5889. Fixed the code that refers static member variable from non-static
  5890. context.
  5891. * src/DefaultPeerStorage.cc
  5892. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. * Release 0.14.0
  5894. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5895. Added build test script
  5896. * build_test.sh
  5897. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5898. Updated ja.po
  5899. * src/ja.po
  5900. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5901. Bump up version number to 0.14.0
  5902. * src/configure.ac
  5903. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5904. Updated ja.po and fr.po. Great thanks for french translators and
  5905. Sebastien WILLEMIJNS.
  5906. * po/fr.po
  5907. * po/ja.po
  5908. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Added configure option to enable/disable epoll support.
  5910. * configure.ac
  5911. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. Updated man page.
  5913. * doc/aria2c.1.txt
  5914. * doc/aria2c.1
  5915. * doc/aria2c.1.html
  5916. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Added missing default value '5' to the usage of --split option.
  5918. * src/HelpItemFactory.cc
  5919. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Filled up pieces based on the number of missing blocks, rather than
  5921. simplay the number of piece * block length.
  5922. * src/BtRequestFactory.h
  5923. * src/DefaultBtInteractive.cc
  5924. * src/DefaultBtInteractive.h
  5925. * src/DefaultBtRequestFactory.cc
  5926. * src/DefaultBtRequestFactory.h
  5927. * src/Piece.cc
  5928. * src/Piece.h
  5929. * test/BitfieldManTest.cc
  5930. * test/DefaultBtRequestFactoryTest.cc
  5931. * test/MockBtRequestFactory.h
  5932. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5933. Made _epEvents a member variable.
  5934. * src/DownloadEngine.cc
  5935. * src/DownloadEngine.h
  5936. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5937. Cancel download if http redirect is bounded more than 20 times.
  5938. * src/AbstractCommand.cc
  5939. * src/HttpSkipResponseCommand.cc
  5940. * src/Request.cc
  5941. * src/Request.h
  5942. * test/RequestTest.cc
  5943. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Fixed unhandled exception(removed keyword `new').
  5945. * src/SocketCore.cc (initEPOLL)
  5946. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Removed visit(const MetaEntry*)
  5948. * src/MetaEntryVisitor.h:
  5949. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5950. and made them virtual.
  5951. * src/BencodeVisitor.h
  5952. * src/BencodeVisitor.cc
  5953. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5954. Updated po files.
  5955. * po/aria2c.pot
  5956. * po/*.po
  5957. * po/*.gmo
  5958. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5959. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5960. the number of socket to watch out.
  5961. * src/PeerInteractionCommand.cc
  5962. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. When there is not enough space in disk when writing a chunk of data,
  5964. aria2 now prints the message to the console to warn user and aborts
  5965. its download. Not all downloads are canceled because some downloads
  5966. may use another disk or partition. BUG#1640332
  5967. * src/AbstractDiskWriter.cc
  5968. * src/PeerAbstractCommand.cc
  5969. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5970. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5971. setHaltRequested(true) to cancel download.
  5972. * src/PeerInteractionCommand.h
  5973. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5975. socket from int to sock_t as sockets are unsigned in Windows.
  5976. For AsyncNameResolver, DownloadEngine, I did additional modification
  5977. for the portion of the code changed according to epoll support.
  5978. I defined sock_t in a2netcompat.h to use sock_t without including
  5979. SocketCore.h.
  5980. * src/AsyncNameResolver.cc
  5981. * src/AsyncNameResolver.h
  5982. * src/DownloadEngine.cc
  5983. * src/DownloadEngine.h
  5984. * src/SocketCore.cc
  5985. * src/SocketCore.h
  5986. * src/a2netcompat.h
  5987. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  5989. changes in the patch were applied.
  5990. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  5991. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  5992. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  5993. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  5995. a2io.h and common.h were modified.
  5996. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  5997. MinGW.
  5998. * src/common.h: Changed off_t to 64 bit in MinGW.
  5999. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6001. only a2netcompat.h is modified.
  6002. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6003. directives.
  6004. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6006. only gai_strerror.h is modified.
  6007. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6008. winsock errors in MinGW.
  6009. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6010. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6011. follow sources are applied.
  6012. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6013. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6014. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6015. I included locale.h from Platform.cc.
  6016. * src/main.cc: Moved common setup/teardown code to Platform class.
  6017. * test/AllTest.cc: Use Platform class.
  6018. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6019. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6020. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6021. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6022. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6023. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6024. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6025. aria2-0.13.2+1-mingw-2.patch.
  6026. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6027. systems which don't have termious.h. I moved the directive inside of
  6028. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6029. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6030. anyway.
  6031. * src/asctime_r.h
  6032. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6033. I added 2nd argument to the prototype declaration.
  6034. * src/StringFormat.cc: Get rid of vasprintf.
  6035. * src/getaddrinfo.h: Fixed constants.
  6036. * configure.ac: Added the check for asctime_r function.
  6037. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6038. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Added writable test for Socket when the sending message is in progress.
  6040. Usually the sending message is piece message. Without wriable check,
  6041. upload latency is dropped to more than 1sec.
  6042. * src/PeerInteractionCommand.cc
  6043. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6044. Create only requested files and files which shares a piece with
  6045. requested file in multi-torrent downloads. Directory structures are
  6046. also created in the same rule.
  6047. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6048. DiskWriterEntry as in the previous implementation.
  6049. * src/MultiDiskWriter.cc
  6050. * src/MultiFileAllocationIterator.cc
  6051. * src/MultiFileAllocationIterator.h
  6052. * test/MultiFileAllocationIteratorTest.cc
  6053. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. Commented out -lprofiler
  6055. * src/Makefile.am
  6056. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Bump up version number to 0.14.0b.
  6058. * src/configure.ac
  6059. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Actively establish connection to peers in seeding, when peer cache
  6061. is not full and max upload speed limit is not reached.
  6062. * src/ActivePeerConnectionCommand.cc
  6063. * src/ActivePeerConnectionCommand.h
  6064. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6065. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6066. to make room more fleshy, recently found peers.
  6067. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6068. it.
  6069. * src/DefaultPeerStorage.cc
  6070. * test/DefaultPeerStorageTest.cc
  6071. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6072. Returns cached data only when the previous receiveHandshake() is called
  6073. with peek = true.
  6074. * src/PeerConnection.cc (receiveHandshake)
  6075. * src/PeerConnection.h (receiveHandshake)
  6076. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6077. Changed default value of -s option from 1 to 5.
  6078. Also max value of -s option is changed from 5 to 16.
  6079. * src/HelpItemFactory.cc
  6080. * src/OptionHandlerFactory.cc
  6081. * src/option_processing.cc
  6082. * src/usage_text.h
  6083. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6084. Changed -s options behavior. Now it means the number of connections
  6085. made simultaneously in each http/ftp download.
  6086. If 1 URL is specified, the behavior is the same with old implementation.
  6087. If -s N is given and more than N URLs are specified, first N URLs are
  6088. used and remaining URLs are used for backup. If less than N URLs are
  6089. specified, some of URLs are used more than once so that totally N
  6090. connections are made simultaneously.
  6091. * src/main.cc
  6092. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6093. Included missing iosfwd or ostream header.
  6094. * src/RequestGroupMan.cc
  6095. * src/TaggedItem.cc
  6096. * src/TaggedItem.h
  6097. * src/Util.cc
  6098. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6099. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6100. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6101. * src/HttpConnection.cc: Included missing sstream.
  6102. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. Added --bt-max-open-files option.
  6104. * src/DefaultPieceStorage.cc
  6105. * src/HelpItemFactory.cc
  6106. * src/MultiDiskAdaptor.cc
  6107. * src/MultiDiskAdaptor.h
  6108. * src/OptionHandlerFactory.cc
  6109. * src/option_processing.cc
  6110. * src/prefs.cc
  6111. * src/prefs.h
  6112. * src/usage_text.h
  6113. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6114. Fixed the bug that aria2 aborts when a path to a directory is given
  6115. in command-line.
  6116. * src/ProtocolDetector.cc
  6117. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6118. Limited the number files opened in each BitTorrent download. The default
  6119. value is 100. The option to change this value will be added.
  6120. * src/MultiDiskAdaptor.cc
  6121. * src/MultiDiskAdaptor.h
  6122. * src/MultiFileAllocationIterator.cc
  6123. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6124. Fixed the bug that HTTP downloads don't start with old libraries.
  6125. * src/HttpHeaderProcessor.cc
  6126. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Use empty() instead of size() > 0.
  6128. * src/HttpConnection.cc
  6129. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6130. Drop connection if the incoming peer ID is the same with localhost's
  6131. one. The previous implementation drops connection when incoming peer's
  6132. IP address is the same with localhost's one.
  6133. * src/PeerListenCommand.cc
  6134. * src/DefaultBtInteractive.cc
  6135. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6136. Returns cached data without checking whether socket is readable
  6137. if the cache is available.
  6138. * src/PeerConnection.cc (receiveHandshake)
  6139. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6140. Included stdint.h
  6141. * src/common.h
  6142. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Removed duplicate HAVE_GETTIMEOFDAY
  6144. * src/Makefile.am
  6145. * src/Makefile.in
  6146. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Use interval as a minInterval when minInterval is not supplied.
  6148. * src/DefaultBtAnnounce.cc
  6149. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6151. attempt is failed, then 2nd attempt get kicked out more quickly.
  6152. And it is now static const member of DefaultBtAnnounce.
  6153. * src/DefaultBtAnnounce.h
  6154. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6155. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6156. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6157. * src/ActivePeerConnectionCommand.cc
  6158. * src/BtConstants.h
  6159. * src/BtRuntime.h
  6160. * src/DHTGetPeersCommand.cc
  6161. * src/DefaultBtAnnounce.cc
  6162. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6163. BtRuntime::MAX_PEERS.
  6164. * src/DefaultPeerStorage.h
  6165. * src/InitiatorMSEHandshakeCommand.cc
  6166. * src/PeerInitiateConnectionCommand.cc
  6167. * src/PeerInteractionCommand.cc
  6168. * src/PeerReceiveHandshakeCommand.cc
  6169. * src/TrackerWatcherCommand.cc
  6170. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6171. Always Connect to _numNewConnection
  6172. * src/ActivePeerConnectionCommand.cc
  6173. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Made `begin' unsigned int.
  6175. * src/GrowSegment.h
  6176. * src/Piece.cc
  6177. * src/Piece.h
  6178. * src/PiecedSegment.cc
  6179. * src/PiecedSegment.h
  6180. * src/Segment.h
  6181. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Calculate piece hash when data is arrived if the data is arrived in
  6183. order. This removes additional read operation for hash calculation.
  6184. If the data is arrived in out of order, the hash is calucated when the
  6185. piece is completed. This is the same behavior as the old implementation.
  6186. * src/BtPieceMessage.cc
  6187. * src/DefaultBtProgressInfoFile.cc
  6188. * src/DefaultPieceStorage.cc
  6189. * src/DownloadCommand.cc
  6190. * src/DownloadCommand.h
  6191. * src/DownloadEngine.cc
  6192. * src/GrowSegment.cc
  6193. * src/GrowSegment.h
  6194. * src/Piece.cc
  6195. * src/Piece.h
  6196. * src/PiecedSegment.cc
  6197. * src/PiecedSegment.h
  6198. * src/Segment.h
  6199. * test/PieceTest.cc
  6200. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6201. Try to keep the ordering of outgoing piece message.
  6202. * src/DefaultBtMessageDispatcher.cc
  6203. (DefaultBtMessageDispatcher::sendMessages)
  6204. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Fixed busy loop when error/hup epoll events occur.
  6206. * src/AbstractCommand.cc
  6207. * src/PeerAbstractCommand.cc
  6208. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. Added --bt-request-peer-speed-limit option, which was a constant
  6210. SLOW_SPEED_THRESHOLD.
  6211. * src/ActivePeerConnectionCommand.cc
  6212. * src/ActivePeerConnectionCommand.h
  6213. * src/BtConstants.h
  6214. * src/HelpItemFactory.cc
  6215. * src/OptionHandlerFactory.cc
  6216. * src/PeerReceiveHandshakeCommand.cc
  6217. * src/option_processing.cc
  6218. * src/prefs.cc
  6219. * src/prefs.h
  6220. * src/usage_text.h
  6221. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6222. Removed repeated call of getTopDirPath(). Instead, call it once and
  6223. cache the result.
  6224. * src/MultiDiskAdaptor.cc
  6225. * src/MultiDiskAdaptor.h
  6226. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6227. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6228. Fixed compile error on debian etch.
  6229. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6230. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6231. it is undefined.
  6232. * src/Util.cc (ULLONG_MAX)
  6233. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Added epoll support. Use epoll if it is available. If not, use select.
  6235. When async dns is enabled in compile time, epoll support is enabled
  6236. only when aria2 is built with c-ares. This condition statement is
  6237. defined in a2io.h.
  6238. Currently aria2 supports both c-ares and ares, but ares is maintained
  6239. for quite a while and debian already has c-ares package, ares support
  6240. will be dropped in the future version.
  6241. * configure.ac
  6242. * src/AbstractCommand.cc
  6243. * src/AsyncNameResolver.cc
  6244. * src/AsyncNameResolver.h
  6245. * src/Command.cc
  6246. * src/Command.h
  6247. * src/DownloadEngine.cc
  6248. * src/DownloadEngine.h
  6249. * src/PeerAbstractCommand.cc
  6250. * src/SocketCore.cc
  6251. * src/SocketCore.h
  6252. * src/a2io.h
  6253. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6254. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6255. directive.
  6256. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6257. Do not do write operation to /dev/null file.
  6258. * src/LogFactory.cc
  6259. * src/SimpleLogger.cc
  6260. Replaced vasprintf with vsnprintf
  6261. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6262. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6263. * src/BtRequestMessage.cc
  6264. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6265. for segmentation fault caused by previous commit.
  6266. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6267. Reduced the usage of gettimeofday().
  6268. * src/DefaultBtMessageDispatcher.cc
  6269. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6270. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6271. * src/RequestSlot.cc
  6272. * src/RequestSlot.h
  6273. (RequestSlot::isTimeout)
  6274. Made RequestSlot have a reference to Piece object to avoid find
  6275. Piece repeatedly.
  6276. * src/DefaultBtMessageDispatcher.cc
  6277. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6278. * src/RequestSlot.cc
  6279. * src/RequestSlot.h
  6280. (RequestSlot::getPiece)
  6281. * test/DefaultBtMessageDispatcherTest.cc
  6282. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6283. * src/TimeA2.cc
  6284. * src/TimeA2.h
  6285. (Time::difference): New function.
  6286. (Time::elapsed): Done optimization.
  6287. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6288. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6289. directive.
  6290. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. * src/option_processing.cc: Added missing `defined' keyword to #if
  6292. directive.
  6293. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Bump up version number to 0.13.2+1
  6295. * src/configure.ac
  6296. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Refactored broken outstanding piece handling.
  6298. * src/DefaultPieceStorage.cc
  6299. * src/DefaultPieceStorage.h
  6300. * src/Piece.cc
  6301. * src/Piece.h
  6302. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6303. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6304. name collision of static variable and predefined macro.
  6305. * src/BtContext.cc
  6306. * src/BtContext.h
  6307. * src/CookieBoxFactory.cc
  6308. * src/CookieBoxFactory.h
  6309. * src/CookieParser.cc
  6310. * src/CookieParser.h
  6311. * src/DefaultBtContext.cc
  6312. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. * src/RequestGroup.cc
  6314. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6315. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6316. * Release 0.13.2
  6317. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6319. * po/fr.po
  6320. * po/ja.po
  6321. * po/aria2c.pot
  6322. * po/*.po
  6323. * po/*.gmo
  6324. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6325. Bump up version number to 0.13.2
  6326. * src/configure.ac
  6327. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6328. Refactord.
  6329. * src/RequestGroupMan.cc
  6330. (removeStoppedGroup)
  6331. (fillRequestGroupFromReserver)
  6332. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6333. Fixed compile error on Ubuntu.
  6334. * src/BtPieceMessage.cc
  6335. * src/MessageDigestHelper.cc
  6336. * src/Util.cc
  6337. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6338. Fixed compile error when configured with --disable-bittorrent
  6339. * test/DownloadHandlerFactoryTest.cc
  6340. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6341. Done make update-po
  6342. * po/aria2c.pot
  6343. * po/*.po
  6344. * po/*.gmo
  6345. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Bump up version number to 0.13.2rc.
  6347. * src/configure.ac
  6348. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6349. Made option name bold. Updated SYNOPSIS to make it more readable.
  6350. * doc/aria2c.1.txt
  6351. * doc/aria2c.1
  6352. * doc/aria2c.1.html
  6353. * src/version_usage.cc
  6354. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6355. Refactored. Use std::string instead of size and char*.
  6356. * Data.cc
  6357. * Data.h
  6358. * test/Data.cc
  6359. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6360. Added trimSelf(). Rewritten trim() to use trimSelf().
  6361. * Util.cc
  6362. * Util.h
  6363. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6365. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. Fixed compile error when configured with --disable-metalink.
  6367. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6368. * test/FeatureConfigTest.cc
  6369. * test/DownloadHandlerFactoryTest.cc
  6370. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6371. Fixed compile error when configured with --without-gnutls
  6372. --without-openssl
  6373. * src/main.cc
  6374. * test/DefaultBtProgressInfoFileTest.cc
  6375. * test/SegmentManTest.cc
  6376. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Fixed compile error with OpenSSL.
  6378. * src/IteratableChunkChecksumValidator.cc
  6379. * src/LibsslDHKeyExchange.h
  6380. * src/MessageDigestHelper.cc
  6381. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Revert the default value of --max-concurrent-downloads to 5.
  6383. Revert the default value of --metalink-servers to 5.
  6384. Man pages was also updated.
  6385. * src/option_processing.cc
  6386. * doc/aria2c.1.txt
  6387. * doc/aria2c.1.html
  6388. * doc/aria2c.1
  6389. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6390. Returns const reference:
  6391. DownloadContext::getPieceHash, DownloadContext::getName,
  6392. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6393. BtContext::getInfoHashAsString,
  6394. * src/BtContext.h
  6395. * src/DefaultBtContext.cc
  6396. * src/DefaultBtContext.h
  6397. * src/DownloadContext.h
  6398. * src/SingleFileDownloadContext.h
  6399. * test/MockBtContext.h
  6400. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6401. * src/RequestGroup.h (getDir): Removed.
  6402. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Returns const reference. The internal urlencode function was optimized
  6404. a little bit.
  6405. * src/Request.cc
  6406. * src/Request.h
  6407. * src/HttpRequest.cc
  6408. * src/HttpRequest.h
  6409. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6410. Defined option name and possible values as std::string to reduce
  6411. temporary string object creation in runtime.
  6412. * src/HelpItemFactory.cc
  6413. * src/LogFactory.cc
  6414. * src/Option.cc
  6415. * src/OptionHandlerFactory.cc
  6416. * src/option_processing.cc
  6417. * src/prefs.cc
  6418. * src/prefs.h
  6419. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Return const reference.
  6421. * src/DownloadHandlerConstants.cc
  6422. * src/DownloadHandlerConstants.h
  6423. (getMetalinkExtensions)
  6424. (getMetalinkContentTypes)
  6425. (getBtExtensions)
  6426. (getBtContentTypes)
  6427. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6428. * src/HttpHeader.cc (get): Rewritten.
  6429. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6430. Make HttpHeader::getFirst(...) return const reference.
  6431. * src/HttpHeader.cc
  6432. * src/HttpHeader.h
  6433. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6434. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6435. it with V_TRUE.
  6436. * src/DefaultPieceStorage.cc
  6437. * src/DownloadCommand.cc
  6438. * src/FtpNegotiationCommand.cc
  6439. * src/HttpRequest.cc
  6440. * src/InitiateConnectionCommand.cc
  6441. * src/RequestGroup.cc
  6442. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Made Option::get(...) return const reference of std::string.
  6444. * src/Option.cc
  6445. * src/Option.h
  6446. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6447. Replaced std:copy with insert.
  6448. * src/DefaultBtMessageDispatcher.cc
  6449. * src/DefaultPieceStorage.cc
  6450. * src/DownloadEngineFactory.cc
  6451. * src/RequestGroup.cc
  6452. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Included SocketCore.h to fix compiler warning.
  6454. * src/InitiateConnectionCommand.cc
  6455. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. Put piece selection strategy algorithm to RarestPieceSelector class,
  6457. Added a switch to choose whether randomized selection so that unit
  6458. tests emit same results in, possibly, win32.
  6459. * src/DefaultPieceStorage.cc
  6460. * src/DefaultPieceStorage.h
  6461. * src/RarestPieceSelector.cc
  6462. * src/RarestPieceSelector.h
  6463. * test/DefaultPieceStorageTest.cc
  6464. * test/RarestPieceSelectorTest.cc
  6465. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6466. Don't pool connection if HTTP proxy is enabled.
  6467. * src/FtpFinishDownloadCommand.cc
  6468. * src/FtpNegotiationCommand.cc
  6469. * src/HttpSkipResponseCommand.cc
  6470. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6471. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6472. * src/AbstractCommand.cc
  6473. * src/AbstractCommand.h
  6474. * src/ActivePeerConnectionCommand.cc
  6475. * src/FtpInitiateConnectionCommand.cc
  6476. * src/HttpInitiateConnectionCommand.cc
  6477. * src/InitiateConnectionCommandFactory.cc
  6478. * src/PeerAbstractCommand.cc
  6479. * src/PeerAbstractCommand.h
  6480. * src/PeerInitiateConnectionCommand.cc
  6481. * src/TrackerWatcherCommand.cc
  6482. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Sort RequestSlot in ascending order and manipulate them using
  6484. lower_bound.
  6485. * src/DefaultBtMessageDispatcher.cc
  6486. * src/DefaultBtMessageDispatcher.h
  6487. (getMessageQueue): Added const qualifier.
  6488. (getRequestSlots): Added const qualifier.
  6489. (sendMessages): Use empty() instead of size().
  6490. (doCancelSendingPieceAction): Use HandleEvent object.
  6491. (doAbortOutstandingRequestAction): Rewritten.
  6492. (doChokedAction): Rewritten.
  6493. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6494. (isOutstandingRequest): Rewritten.
  6495. (getOutstandingRequest): Rewritten.
  6496. (removeOutstandingRequest): Rewritten.
  6497. (addOutstandingRequest): Rewritten.
  6498. * src/RequestSlot.cc
  6499. * src/RequestSlot.h
  6500. (operator=): Rewritten.
  6501. (operator!=): New function.
  6502. (operator<): New function.
  6503. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. * src/DefaultBtRequestFactory.cc
  6505. (doChokedAction): Rewritten.
  6506. (removeCompletedPiece): Rewritten.
  6507. (removeTargetPiece): Rewritten.
  6508. (createRequestMessages): Added the debug log.
  6509. (createRequestMessagesOnEndGame: Added the debug log.
  6510. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6511. Added the debug log message.
  6512. * src/BtPieceMessage.cc (doReceivedAction)
  6513. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6514. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6515. used lower_bound to process them rather than linear search.
  6516. * src/DHTPeerAnnounceStorage.cc
  6517. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6518. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6519. peer has at least one completed piece.
  6520. * src/Peer.cc
  6521. * src/Peer.h
  6522. * src/PeerInteractionCommand.cc
  6523. * src/PeerSessionResource.cc
  6524. * src/PeerSessionResource.h
  6525. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6526. Removed unnecessary sorting
  6527. * src/DefaultPieceStorage (DefaultPieceStorage)
  6528. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6529. Rewritten the portion of the code that mangaes allowed fast indexes.
  6530. * src/PeerSessionResource.cc
  6531. * src/PeerSessionResource.h
  6532. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Removed the invalid string including '\r' from ru.po and
  6534. did make update-po.
  6535. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6536. Added --log-level and --summary-interval to man page.
  6537. * doc/aria2c.1.txt
  6538. * doc/aria2c.1.html
  6539. * doc/aria2c.1
  6540. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Added --log-level option to specify log level. Log messages under
  6542. the specified level are not output. Default value is `debug'.
  6543. * src/HelpItemFactory.cc
  6544. * src/LogFactory.cc
  6545. * src/LogFactory.h
  6546. * src/Logger.h
  6547. * src/OptionHandlerFactory.cc
  6548. * src/SimpleLogger.cc
  6549. * src/SimpleLogger.h
  6550. * src/main.cc
  6551. * src/option_processing.cc
  6552. * src/prefs.h
  6553. * src/usage_text.h
  6554. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6555. Print download progress summary of all parallel downloads in specified
  6556. interval, default 60 secs. While aria2 could download several files
  6557. in parallel (see -j option), it displayed just first download progress,
  6558. and the other downloads are hidden from the users. This new feature
  6559. prints all downloads currently in-progress to the console so that you
  6560. can check the status of all downloads. The interval can be adjusted
  6561. by --summary-interval option.
  6562. The progress readout is now cut so that all fits in the one line of
  6563. console.
  6564. * src/ConsoleStatCalc.cc
  6565. * src/ConsoleStatCalc.h
  6566. * src/HelpItemFactory.cc
  6567. * src/OptionHandlerFactory.cc
  6568. * src/RequestGroupMan.cc
  6569. * src/RequestGroupMan.h
  6570. * src/main.cc
  6571. * src/option_processing.cc
  6572. * src/prefs.h
  6573. * src/usage_text.h
  6574. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6575. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6576. * src/DownloadEngine.cc (DownloadEngine)
  6577. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6579. defined.
  6580. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6581. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6582. Use erase+lower_bound+insert instead of sort.
  6583. * src/DefaultPieceStorage.cc (addPieceStats)
  6584. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6585. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6586. * src/A2STR.cc
  6587. * src/A2STR.h
  6588. * src/OptionParser.cc (parse)
  6589. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Defined fake filename `[tracker.announce]' as static const std::string.
  6591. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6592. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6593. Defined default filename `index.html' as static const std::string
  6594. * src/SingleFileDownloadContext.cc
  6595. * src/SingleFileDownloadContext.h
  6596. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Defined "[MEMORY]" as static const std::string.
  6598. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6599. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. Defined control file's version number as static const std::string.
  6601. * src/DefaultBtProgressInfoFile.cc
  6602. * src/DefaultBtProgressInfoFile.h
  6603. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Use Request::METHOD_GET
  6605. * src/RequestGroup.cc (createNextCommandWithAdj)
  6606. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6607. Defined "OK", "ERR", "INPR" as static const std::string
  6608. * src/RequestGroupMan.cc (showDownloadResults)
  6609. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. Defined default client used in extended handshake as static const
  6611. std::string
  6612. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6613. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6615. * src/HttpConnection.cc (eraseConfidentialInfo)
  6616. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6617. Defined default ftp user and password as static const std::string
  6618. * src/AuthConfigFactory.cc
  6619. * src/AuthConfigFactory.h
  6620. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6621. Defined strings used in netrc as static const std::string
  6622. * src/Netrc.cc
  6623. * src/Netrc.h
  6624. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Defined HTTP status as static const std::string
  6626. * src/AbstractProxyResponseCommand.cc
  6627. * src/HttpHeader.cc
  6628. * src/HttpHeader.h
  6629. * src/HttpResponse.cc
  6630. * src/HttpResponseCommand.cc
  6631. * src/HttpSkipResponseCommand.cc
  6632. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Defined "\r\n", "A", "I" as static const std::string
  6634. * src/A2STR.cc
  6635. * src/A2STR.h
  6636. * src/FtpConnection.cc
  6637. * src/FtpConnection.h
  6638. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6639. Added COLON_C(".") and used it in Request::parseUrl()
  6640. * src/A2STR.cc
  6641. * src/A2STR.h
  6642. * src/Request.cc (parseUrl)
  6643. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6644. Changed the type of padName from `const std::string&' to `const char*'.
  6645. * src/MSEHandshake.cc (verifyPadLength)
  6646. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6647. Defined "sha1" as static const std::string.
  6648. * src/MetalinkParserController.cc
  6649. * src/MetalinkParserController.h
  6650. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Defined message digest algorithm name as static const std::string
  6652. * src/DHTTokenTracker.cc
  6653. * src/DHTUtil.cc
  6654. * src/DefaultBtContext.cc
  6655. * src/MSEHandshake.cc
  6656. * src/MessageDigestHelper.cc
  6657. * src/Peer.cc
  6658. * src/messageDigest.cc
  6659. * src/messageDigest.h
  6660. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6661. Made string literals used in SAX parser static const std::string.
  6662. * src/FileMetalinkParserState.cc
  6663. * src/FileMetalinkParserState.h
  6664. * src/FilesMetalinkParserState.cc
  6665. * src/FilesMetalinkParserState.h
  6666. * src/InitialMetalinkParserState.cc
  6667. * src/InitialMetalinkParserState.h
  6668. * src/MetalinkMetalinkParserState.cc
  6669. * src/MetalinkMetalinkParserState.h
  6670. * src/PiecesMetalinkParserState.cc
  6671. * src/PiecesMetalinkParserState.h
  6672. * src/ResourcesMetalinkParserState.cc
  6673. * src/ResourcesMetalinkParserState.h
  6674. * src/VerificationMetalinkParserState.cc
  6675. * src/VerificationMetalinkParserState.h
  6676. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6677. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6678. * src/A2STR.cc
  6679. * src/A2STR.h
  6680. * src/File.cc
  6681. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Defined static const std::string IP("ip"), PORT("port") and use them
  6683. instead of string literals.
  6684. * src/DefaultPeerListProcessor.cc
  6685. * src/DefaultPeerListProcessor.h
  6686. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6687. Made string literals for torrent file processing static const
  6688. std::string.
  6689. * src/BtContext.cc
  6690. * src/BtContext.h
  6691. * src/DefaultBtContext.cc
  6692. * src/DefaultBtContext.h
  6693. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. Made string literal for tracker response static const std::string
  6695. * src/BtAnnounce.cc
  6696. * src/BtAnnounce.h
  6697. * src/DefaultBtAnnounce.cc
  6698. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6699. Use DHTMessage::T instead of "t".
  6700. * src/DHTMessageTracker.cc (messageArrived)
  6701. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Made keyName static const. Made trimmed charset static const
  6703. std::string.
  6704. * src/Util.cc (getContentDispositionFilename)
  6705. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6706. Made USER_AGENT const. Made "/" static const std::string.
  6707. * src/A2STR.cc
  6708. * src/A2STR.h
  6709. * src/HttpRequest.cc
  6710. * src/HttpRequest.h
  6711. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6712. Made string listeral to static const std::string:
  6713. "Content-Range", "Content-Length"
  6714. * src/HttpHeader.cc
  6715. * src/HttpHeader.h
  6716. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Made string listeral to static const std::string.
  6718. * src/HttpConnection.cc
  6719. * src/HttpHeader.cc
  6720. * src/HttpHeader.h
  6721. * src/HttpResponse.cc
  6722. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. Made string listeral to static const std::string.
  6724. * src/A2STR.cc
  6725. * src/A2STR.h
  6726. * src/SimpleLogger.cc
  6727. * src/SimpleLogger.h
  6728. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6729. Made string literal to static const std::string.
  6730. Rewritten CookieParser::setField.
  6731. * src/A2STR.cc
  6732. * src/A2STR.h
  6733. * src/CookieBoxFactory.cc
  6734. * src/CookieBoxFactory.h
  6735. * src/CookieParser.cc
  6736. * src/CookieParser.h
  6737. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. Made string literal to static const std::string
  6739. * src/DHTAbstractMessage.cc
  6740. * src/DHTAnnouncePeerMessage.cc
  6741. * src/DHTAnnouncePeerMessage.h
  6742. * src/DHTAnnouncePeerReplyMessage.cc
  6743. * src/DHTAnnouncePeerReplyMessage.h
  6744. * src/DHTFindNodeMessage.cc
  6745. * src/DHTFindNodeMessage.h
  6746. * src/DHTFindNodeReplyMessage.cc
  6747. * src/DHTFindNodeReplyMessage.h
  6748. * src/DHTGetPeersMessage.cc
  6749. * src/DHTGetPeersMessage.h
  6750. * src/DHTGetPeersReplyMessage.cc
  6751. * src/DHTGetPeersReplyMessage.h
  6752. * src/DHTMessage.cc
  6753. * src/DHTMessage.h
  6754. * src/DHTMessageFactoryImpl.cc
  6755. * src/DHTMessageReceiver.cc
  6756. * src/DHTPingMessage.cc
  6757. * src/DHTPingMessage.h
  6758. * src/DHTPingReplyMessage.cc
  6759. * src/DHTPingReplyMessage.h
  6760. * src/DHTQueryMessage.cc
  6761. * src/DHTQueryMessage.h
  6762. * src/DHTResponseMessage.cc
  6763. * src/DHTResponseMessage.h
  6764. * src/DHTUnknownMessage.cc
  6765. * src/DHTUnknownMessage.h
  6766. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. Made string literal to static const std::string
  6768. * src/BtChokeMessage.cc (toString)
  6769. * src/BtHaveAllMessage.cc (toString)
  6770. * src/BtHaveNoneMessage.cc (toString)
  6771. * src/BtInterestedMessage.cc (toString)
  6772. * src/BtNotInterestedMessage.cc (toString)
  6773. * src/BtUnchokeMessage.cc (toString)
  6774. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Replaced "" with static const variable A2STR::NIL.
  6776. Replaced string comparison against "" with std::string::empty().
  6777. Added PROTO_* to Request class and use them as a protocol string
  6778. constant.
  6779. Made "started", "stopped", "completed" static const variable in
  6780. AnnounceList class.
  6781. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6782. Updated translations. Great thanks to translators.
  6783. * po/ca.po
  6784. * po/de.po
  6785. * po/fr.po
  6786. * po/it.po
  6787. * po/ja.po
  6788. * po/ru.po
  6789. * po/zh_CN.po
  6790. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Updated man page; categorized options and fixed typo.
  6792. * doc/aria2c.1.txt
  6793. * doc/aria2c.1.html
  6794. * doc/aria2c.1
  6795. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6796. Removed const ref
  6797. * src/MetalinkEntry.cc (AddProtocolPreference)
  6798. * src/RequestGroup.cc (FindServerHostByHostname)
  6799. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6800. Rewritten Accept-Features handling.
  6801. * src/HttpRequestCommand.cc (createHttpRequest)
  6802. * src/a2functional.h
  6803. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. Changed method signature:
  6805. DHTAbstractNodeLookupTask::toEntries
  6806. * src/DHTAbstractNodeLookupTask.cc
  6807. * src/DHTAbstractNodeLookupTask.h
  6808. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. Changed method signature:
  6810. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6811. * src/BtContext.h
  6812. * src/DefaultBtContext.cc
  6813. * src/DefaultBtContext.h
  6814. * src/DefaultBtInteractive.cc
  6815. * test/DefaultBtContextTest.cc
  6816. * test/MockBtContext.h
  6817. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Changed method signature:
  6819. MultiFileAllocationIterator::makeDiskWriterEntries
  6820. * src/MultiFileAllocationIterator.cc
  6821. * src/MultiFileAllocationIterator.h
  6822. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6823. Changed method sinature:
  6824. MetalinkEntry::toFileEntry,
  6825. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6826. Metalinker::queryEntry
  6827. * src/Metalink2RequestGroup.cc
  6828. * src/MetalinkEntry.cc
  6829. * src/MetalinkEntry.h
  6830. * src/MetalinkHelper.cc
  6831. * src/MetalinkHelper.h
  6832. * src/Metalinker.cc
  6833. * src/Metalinker.h
  6834. * src/main.cc
  6835. * test/MetalinkHelperTest.cc
  6836. * test/MetalinkerTest.cc
  6837. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6838. Changed method sinature:
  6839. RequestGroup::getURIs
  6840. * src/RequestGroup.cc
  6841. * src/RequestGroup.h
  6842. * test/Metalink2RequestGroupTest.cc
  6843. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Changed method signature:
  6845. PeerListProcessor::extractPeer
  6846. * src/CompactPeerListProcessor.cc
  6847. * src/CompactPeerListProcessor.h
  6848. * src/DefaultBtAnnounce.cc
  6849. * src/DefaultPeerListProcessor.cc
  6850. * src/DefaultPeerListProcessor.h
  6851. * src/DelegatingPeerListProcessor.cc
  6852. * src/DelegatingPeerListProcessor.h
  6853. * src/PeerListProcessor.h
  6854. * src/UTPexExtensionMessage.cc
  6855. * test/DefaultPeerListProcessorTest.cc
  6856. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Changed method signature:
  6858. BtRequestFactory::createRequestMessages,
  6859. BtRequestFactory::createRequestMessagesOnEndGame
  6860. * src/BtRequestFactory.h
  6861. * src/DefaultBtInteractive.cc
  6862. * src/DefaultBtRequestFactory.cc
  6863. * src/DefaultBtRequestFactory.h
  6864. * test/DefaultBtRequestFactoryTest.cc
  6865. * test/MockBtRequestFactory.h
  6866. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6867. Changed method signature:
  6868. PieceStorage::getInFlightPieces
  6869. * src/DefaultBtProgressInfoFile.cc
  6870. * src/DefaultPieceStorage.cc
  6871. * src/DefaultPieceStorage.h
  6872. * src/PieceStorage.h
  6873. * src/UnknownLengthPieceStorage.cc
  6874. * src/UnknownLengthPieceStorage.h
  6875. * test/DefaultBtProgressInfoFileTest.cc
  6876. * test/MockPieceStorage.h
  6877. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Changed method signature:
  6879. PostDownloadHandler::getNextRequestGroups
  6880. Metalink2RequestGroup::generate
  6881. RequestGroup::postDownloadProcessing
  6882. * src/BtPostDownloadHandler.cc
  6883. * src/BtPostDownloadHandler.h
  6884. * src/Metalink2RequestGroup.cc
  6885. * src/Metalink2RequestGroup.h
  6886. * src/MetalinkPostDownloadHandler.cc
  6887. * src/MetalinkPostDownloadHandler.h
  6888. * src/PostDownloadHandler.h
  6889. * src/RequestGroup.cc
  6890. * src/RequestGroup.h
  6891. * src/RequestGroupMan.cc
  6892. * src/main.cc
  6893. * test/BtPostDownloadHandlerTest.cc
  6894. * test/Metalink2RequestGroupTest.cc
  6895. * test/MetalinkPostDownloadHandlerTest.cc
  6896. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Rewritten AccRequestGroup
  6898. * src/main.cc
  6899. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. Rewritten.
  6901. * src/TaggedItem.cc (toTagString)
  6902. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6903. Rewritten Accept-Features handling.
  6904. * src/HttpRequestCommand.cc (createHttpRequest)
  6905. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6906. Rewritten accept types handling.
  6907. * HttpRequest.cc (createRequest)
  6908. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6909. Rewritten
  6910. * src/FeatureConfig.cc (featureSummary)
  6911. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6912. Changed method signature:
  6913. PeerStorage::getActivePeers
  6914. * src/DHTPeerAnnounceEntry.cc
  6915. * src/DefaultPeerStorage.cc
  6916. * src/DefaultPeerStorage.h
  6917. * src/PeerStorage.h
  6918. * test/DefaultPeerStorageTest.cc
  6919. * test/MockPeerStorage.h
  6920. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6921. Changed method signature:
  6922. DHTPeerAnnounceStorage::getPeers,
  6923. DHTPeerAnnounceEntry::getPeers
  6924. * src/DHTGetPeersMessage.cc
  6925. * src/DHTPeerAnnounceEntry.cc
  6926. * src/DHTPeerAnnounceEntry.h
  6927. * src/DHTPeerAnnounceStorage.cc
  6928. * src/DHTPeerAnnounceStorage.h
  6929. * test/DHTAnnouncePeerMessageTest.cc
  6930. * test/DHTPeerAnnounceEntryTest.cc
  6931. * test/DHTPeerAnnounceStorageTest.cc
  6932. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6933. Changed method signature:
  6934. NameResolver::resolve
  6935. * src/DHTEntryPointNameResolveCommand.cc
  6936. * src/InitiateConnectionCommand.cc
  6937. * src/NameResolver.cc
  6938. * src/NameResolver.h
  6939. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Changed method signature:
  6941. PieceStorage::getAdvertisedPieceIndexes
  6942. * src/DefaultBtInteractive.cc
  6943. * src/DefaultPieceStorage.cc
  6944. * src/DefaultPieceStorage.h
  6945. * src/PieceStorage.h
  6946. * src/UnknownLengthPieceStorage.h
  6947. * test/MockPieceStorage.h
  6948. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6949. Changed method signature:
  6950. SegmentMan::getInFlightSegment
  6951. * src/AbstractCommand.cc
  6952. * src/SegmentMan.cc
  6953. * src/SegmentMan.h
  6954. * test/SegmentManTest.cc
  6955. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Changed method signature:
  6957. DHTAbstractNodeLookupTask::getNodesFromMessage
  6958. * src/DHTAbstractNodeLookupTask.cc
  6959. * src/DHTAbstractNodeLookupTask.h
  6960. * src/DHTNodeLookupTask.cc
  6961. * src/DHTNodeLookupTask.h
  6962. * src/DHTPeerLookupTask.cc
  6963. * src/DHTPeerLookupTask.h
  6964. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6966. * src/AbstractCommand.cc
  6967. * src/BtCheckIntegrityEntry.cc
  6968. * src/BtCheckIntegrityEntry.h
  6969. * src/BtFileAllocationEntry.cc
  6970. * src/BtFileAllocationEntry.h
  6971. * src/BtSetup.cc
  6972. * src/BtSetup.h
  6973. * src/CheckIntegrityCommand.cc
  6974. * src/CheckIntegrityEntry.h
  6975. * src/ChecksumCheckIntegrityEntry.cc
  6976. * src/ChecksumCheckIntegrityEntry.h
  6977. * src/DHTSetup.cc
  6978. * src/DHTSetup.h
  6979. * src/DownloadEngine.cc
  6980. * src/FileAllocationCommand.cc
  6981. * src/FileAllocationEntry.h
  6982. * src/RequestGroup.cc
  6983. * src/RequestGroup.h
  6984. * src/RequestGroupMan.cc
  6985. * src/RequestGroupMan.h
  6986. * src/StreamCheckIntegrityEntry.cc
  6987. * src/StreamCheckIntegrityEntry.h
  6988. * src/StreamFileAllocationEntry.cc
  6989. * src/StreamFileAllocationEntry.h
  6990. * src/TrackerWatcherCommand.cc
  6991. * src/a2functional.h
  6992. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6993. Changed method signature:
  6994. BNode::findClosestKNodes, BNode:: enumerateBucket,
  6995. DHTBucket::getGoodNodes,
  6996. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  6997. * src/BNode.cc
  6998. * src/BNode.h
  6999. * src/DHTAbstractNodeLookupTask.cc
  7000. * src/DHTAutoSaveCommand.cc
  7001. * src/DHTBucket.cc
  7002. * src/DHTBucket.h
  7003. * src/DHTBucketRefreshTask.cc
  7004. * src/DHTFindNodeMessage.cc
  7005. * src/DHTGetPeersMessage.cc
  7006. * src/DHTRoutingTable.cc
  7007. * src/DHTRoutingTable.h
  7008. * test/BNodeTest.cc
  7009. * test/DHTBucketTest.cc
  7010. * test/DHTRoutingTableTest.cc
  7011. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. In piece selection functions, Pass std::deque<...> by reference rather
  7013. than returning it.
  7014. * src/BitfieldMan.cc
  7015. * src/BitfieldMan.h
  7016. * src/DefaultBtRequestFactory.cc
  7017. * src/DefaultPieceStorage.cc
  7018. * src/Piece.cc
  7019. * src/Piece.h
  7020. * test/BitfieldManTest.cc
  7021. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7022. Implemented rarest piece first piece selection strategy.
  7023. * src/AbstractBtMessage.cc
  7024. * src/AbstractBtMessage.h
  7025. * src/BitfieldMan.cc
  7026. * src/BitfieldMan.h
  7027. * src/BtBitfieldMessage.cc
  7028. * src/BtHaveAllMessage.cc
  7029. * src/BtHaveMessage.cc
  7030. * src/DefaultPieceStorage.cc
  7031. * src/DefaultPieceStorage.h
  7032. * src/PeerInteractionCommand.cc
  7033. * src/PieceStorage.h
  7034. * src/UnknownLengthPieceStorage.h
  7035. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7036. Rewritten readData and writeData.
  7037. * src/MultiDiskAdaptor.cc
  7038. * src/MultiDiskAdaptor.h
  7039. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7040. Move \n out of the message "Usage: ...".
  7041. * src/version_usage.cc
  7042. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Bump up version number to 0.13.2b.
  7044. * configure.ac
  7045. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Added const qualifier to argument Exception& e.
  7047. * src/Logger.h
  7048. * src/SimpleLogger.cc
  7049. * src/SimpleLogger.h
  7050. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. Pool connection when CWD, SIZE command fails.
  7052. * src/FtpNegotiationCommand.cc
  7053. * src/FtpNegotiationCommand.h
  7054. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7056. * src/HttpResponseCommand.cc
  7057. * src/HttpSkipResponseCommand.cc
  7058. * src/HttpSkipResponseCommand.h
  7059. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7060. Pool connection when a server returns 4xx, 5xx responses.
  7061. * src/HttpNullDownloadCommand.cc
  7062. * src/HttpNullDownloadCommand.h
  7063. * src/HttpResponse.cc
  7064. * src/HttpResponse.h
  7065. * src/HttpResponseCommand.cc
  7066. * src/HttpResponseCommand.h
  7067. * test/HttpResponseTest.cc
  7068. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7069. Print usage when no URL is specifed or bad command-line option is
  7070. specified.
  7071. * src/HelpItemFactory.cc
  7072. * src/help_tags.h
  7073. * src/option_processing.cc
  7074. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Removed duplicate log message.
  7076. * src/AbstractCommand.cc (asyncResolveHostname)
  7077. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7079. Changed -j option's default value from 5 to 1.
  7080. Added new examples using protocol auto detection feature.
  7081. Removed -T, -M usage where it can be omitted.
  7082. * doc/aria2c.1.txt
  7083. * doc/aria2c.1.html
  7084. * doc/aria2c.1.txt
  7085. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7086. Updated command-line usage text, so that it tells users that they
  7087. can specify any number of torrent files and metalink files in
  7088. command-line.
  7089. * src/version_usage.cc
  7090. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7091. Changed the default value of -j option to 1.
  7092. * src/HelpItemFactory.cc
  7093. * src/option_processing.cc
  7094. * src/usage_text.h
  7095. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7096. Added the ability to reuse connection in FTP and it is enabled by
  7097. default. It can be disabled by --ftp-reuse-connection=false option.
  7098. * src/Command.cc
  7099. * src/DownloadCommand.cc
  7100. * src/FtpDownloadCommand.cc
  7101. * src/FtpDownloadCommand.h
  7102. * src/FtpFinishDownloadCommand.cc
  7103. * src/FtpFinishDownloadCommand.h
  7104. * src/FtpInitiateConnectionCommand.cc
  7105. * src/FtpNegotiationCommand.cc
  7106. * src/FtpNegotiationCommand.h
  7107. * src/HelpItemFactory.cc
  7108. * src/Makefile.am
  7109. * src/Makefile.in
  7110. * src/OptionHandlerFactory.cc
  7111. * src/option_processing.cc
  7112. * src/prefs.h
  7113. * src/usage_text.h
  7114. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7115. Call Command::transitStatus() before calling Command::execute(),
  7116. so that the status change made in execute() is not cleared.
  7117. * src/DownloadEngine.cc
  7118. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Removed forward declaration of SocketCore class.
  7120. * src/HttpDownloadCommand.h
  7121. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7123. in InitiateConnectionCommandFactory. They should be set only when
  7124. the protocol is HTTP or HTTPS.
  7125. * src/InitiateConnectionCommandFactory.cc
  7126. * src/RequestGroup.cc
  7127. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Fixed infinite loop in checksum checking.
  7129. * src/IteratableChecksumValidator.cc
  7130. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Set _supportsPersistentConnection to true by default.
  7132. * src/Request.cc
  7133. * src/RequestGroup.cc
  7134. * test/HttpRequestTest.cc
  7135. * test/RequestTest.cc
  7136. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Added timeout to socket pool. The default timeout is 15 seconds,
  7138. which is the same value Apache uses.
  7139. * src/DownloadEngine.cc
  7140. * src/DownloadEngine.h
  7141. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Fixed misuse of multimap::find()
  7143. * src/HttpHeader.cc
  7144. * test/HttpHeaderTest.cc
  7145. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7147. option.
  7148. The asynchronous DNS is not capable of IPv6 yet.
  7149. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7150. least for HTTP download.
  7151. * src/AbstractCommand.cc
  7152. * src/AbstractCommand.h
  7153. * src/AsyncNameResolver.cc
  7154. * src/AsyncNameResolver.h
  7155. * src/DHTEntryPointNameResolveCommand.cc
  7156. * src/DHTEntryPointNameResolveCommand.h
  7157. * src/DownloadEngine.cc
  7158. * src/DownloadEngine.h
  7159. * src/FtpInitiateConnectionCommand.cc
  7160. * src/FtpInitiateConnectionCommand.h
  7161. * src/HelpItemFactory.cc
  7162. * src/HttpInitiateConnectionCommand.cc
  7163. * src/HttpInitiateConnectionCommand.h
  7164. * src/InitiateConnectionCommand.cc
  7165. * src/InitiateConnectionCommand.h
  7166. * src/Makefile.am
  7167. * src/Makefile.in
  7168. * src/NameResolver.cc
  7169. * src/NameResolver.h
  7170. * src/OptionHandlerFactory.cc
  7171. * src/SocketCore.cc
  7172. * src/SocketCore.h
  7173. * src/Util.cc
  7174. * src/Util.h
  7175. * src/option_processing.cc
  7176. * src/prefs.h
  7177. * src/usage_text.h
  7178. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Updated man page: --quiet, --header were added.
  7180. --metalink-servers and --enable-http-keep-alive option were updated.
  7181. * doc/aria2c.1
  7182. * doc/aria2c.1.html
  7183. * doc/aria2c.1.txt
  7184. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7185. Enable HTTP keep-alive by default.
  7186. * src/HelpItemFactory.cc
  7187. * src/option_processing.cc
  7188. * src/usage_text.h
  7189. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Disable http keep-alive if the remote server is not HTTP/1.1.
  7191. * src/HttpConnection.cc
  7192. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Receive content body of 302 response so that the connection can be
  7194. reused later when http keep-alive is enabled.
  7195. * src/HttpNullDownloadCommand.cc
  7196. * src/HttpNullDownloadCommand.h
  7197. * src/HttpResponseCommand.cc
  7198. * src/HttpResponseCommand.h
  7199. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7200. const SharedHandle<Request> -> const SharedHandle<Request>&
  7201. * src/FtpDowndloadCommand.cc
  7202. * src/FtpDowndloadCommand.h
  7203. * src/HttpDownloadCommand.cc
  7204. * src/HttpDownloadCommand.h
  7205. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Fixed the bug that the control file(.aria2 file) is not renamed
  7207. according to tryAutoFileRenaming().
  7208. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7209. its control file exist, use them and continue download.
  7210. The old implementation didn't take into account of control file's
  7211. existence, so basically you couldn't continue download of renamed file.
  7212. * src/BtProgressInfoFile.h
  7213. * src/DefaultBtProgressInfoFile.cc
  7214. * src/DefaultBtProgressInfoFile.h
  7215. * src/NullProgressInfoFile.h
  7216. * src/RequestGroup.cc
  7217. * test/DefaultBtProgressInfoFileTest.cc
  7218. * test/MockBtProgressInfoFile.h
  7219. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Change the default value of --metalink-servers option from `5' to `1'.
  7221. * src/HelpItemFactory.cc
  7222. * src/option_processing.cc
  7223. * src/usage_text.h
  7224. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7225. Reimplemented transparent metalink using Accept request header.
  7226. * src/HttpRequest.cc
  7227. * src/HttpRequest.h
  7228. * src/HttpRequestCommand.cc
  7229. * src/Metalink2RequestGroup.cc
  7230. * src/RequestGroup.cc
  7231. * src/RequestGroup.h
  7232. * test/HttpRequestTest.cc
  7233. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Bump up version number to 0.13.2a
  7235. * configure.ac
  7236. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. Updated configure.ac using the result of autoscan.
  7238. * configure.ac
  7239. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. Fixed compilation error without gcrypt/openssl.
  7241. * src/DownloadCommand.cc
  7242. * src/DownloadCommand.h
  7243. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7244. Reorganized version information so that it can be displayed in a
  7245. standard terminal screen without scrolling.
  7246. Removed http, ftp from Configuration section, because they are always
  7247. enabled.
  7248. * src/FeatureConfig.cc
  7249. * src/FeatureConfig.h
  7250. * src/main.cc
  7251. * src/messageDigest.cc
  7252. * src/messageDigest.h
  7253. * src/version_usage.cc
  7254. * test/FeatureConfigTest.cc
  7255. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7256. Masked user ID in log.
  7257. * src/FtpConnection.cc (sendUser)
  7258. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Removed query part from filename in HTTP download. The query part means
  7260. the substring after "?" in URL. Firefox seems do the same thing.
  7261. A query part is sometimes very long and not suitable to filename,
  7262. so I think it is better to remove it from filename.
  7263. * src/HttpRequest.cc
  7264. * src/HttpRequest.h
  7265. * src/Request.cc
  7266. * src/Request.h
  7267. * test/HttpRequestTest.cc
  7268. * test/RequestTest.cc
  7269. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. Rewritten Exception class. Throw exception object, not its pointer and
  7271. catch by reference, so that remove problematic delete operator for
  7272. catched exception.
  7273. * src/Exception.cc
  7274. * src/Exception.h
  7275. * test/ExceptionTest.cc
  7276. * src/*: All files throwing/catching exception.
  7277. * test/*: All files throwing/catching exception.
  7278. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Now auto protocol detection is enabled without -Z option.
  7280. But there is a important difference between with/without -Z optoin.
  7281. For example, if you type:
  7282. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7283. then, aria2 interprets there are 3 request groups:
  7284. (1) http://host/file, http://mirror/file <-- multi-source download
  7285. (2) file1.torrent
  7286. (3) file2.metalink
  7287. On the other hand, if you invoke above command with -Z option, it is
  7288. interpreted as 4 request groups:
  7289. (1) http://host/file
  7290. (2) file1.torrent
  7291. (3) file2.metalink
  7292. (4) http://mirror/file
  7293. I think usually user don't mix multi-source URLs and torrent files, so
  7294. there is no big problem here.
  7295. * src/main.cc
  7296. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Fixed the bug that causes segmentaion fault when reading XML containing
  7298. unescapsed character like '&'.
  7299. Also a modification was made which avoids adding unnecessary
  7300. characters stack and appending unused string.
  7301. * src/ExpatMetalinkProcessor.cc
  7302. * src/FileMetalinkParserState.h
  7303. * src/FilesMetalinkParserState.h
  7304. * src/FinMetalinkParserState.h
  7305. * src/HashMetalinkParserState.h
  7306. * src/InitialMetalinkParserState.h
  7307. * src/LanguageMetalinkParserState.h
  7308. * src/MetalinkMetalinkParserState.h
  7309. * src/MetalinkParserState.h
  7310. * src/MetalinkParserStateMachine.cc
  7311. * src/MetalinkParserStateMachine.h
  7312. * src/OSMetalinkParserState.h
  7313. * src/PieceHashMetalinkParserState.h
  7314. * src/PiecesMetalinkParserState.h
  7315. * src/ResourcesMetalinkParserState.h
  7316. * src/SizeMetalinkParserState.h
  7317. * src/SkipTagMetalinkParserState.h
  7318. * src/URLMetalinkParserState.h
  7319. * src/VerificationMetalinkParserState.h
  7320. * src/VersionMetalinkParserState.h
  7321. * src/XML2SAXMetalinkProcessor.cc
  7322. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Added StringFormat class, which internally calls vasprintf.
  7324. operator<< is defined for this class, so it can be used with iostream
  7325. classes nicely. SimpleLogger and following functions are rewritten
  7326. using StringFormat class.
  7327. Besides, now Logger class's methods are non-const, many classes
  7328. that has a const Logger* as a member variable are modified to remove
  7329. const qualifier from the variable declaration.
  7330. * src/HelpItemFactory.cc
  7331. * src/Request.cc
  7332. * src/SimpleLogger.cc
  7333. * src/StringFormat.cc
  7334. * src/StringFormat.h
  7335. * src/Util.cc
  7336. * src/option_processing.cc
  7337. * src/version_usage.cc
  7338. * test/StringFormatTest.cc
  7339. * src/*.h: The classes that has const Logger* as a member variable.
  7340. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7341. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7342. failed. Also fixed memory link when exception is thrown there.
  7343. * src/main.cc (AccRequestGroup)
  7344. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Added build-in "Accept-Features" support. For now only "metalink" is
  7346. used in this header field.
  7347. This "metalink" value is removed from the list when connecting URLs
  7348. fed by metalink file to avoid loop in "transparent" metlaink.
  7349. * src/HttpRequest.cc
  7350. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7351. header is also held in this variable. Also renamed setUserHeaders as
  7352. addHeader and it was rewritten to add header not just to clear the old
  7353. value.
  7354. * src/HttpRequestCommand.cc
  7355. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7356. from "Accept-Features" list.
  7357. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7358. default.
  7359. * src/RequestGroup.h
  7360. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7361. * src/a2functional.h: Included <string> because Concat class depends on
  7362. it.
  7363. * test/HttpRequestTest.cc
  7364. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Added comment
  7366. * src/RequestGroup.cc (createNextCommand)
  7367. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7368. Capitalized METHOD_GET and METHOD_HEAD
  7369. * src/Request.cc
  7370. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Added getDownloadResults() method
  7372. * src/RequestGroupMan.cc
  7373. * src/RequestGroupMan.h
  7374. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. Fixed the bug that aria2 exits when commands is empty() but
  7376. _routineCommands are not.
  7377. * src/DownloadEngine.cc
  7378. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Use the default value pulled from Option object in HelpItemFactory.
  7380. except options whose defualt value is embedded in a usage text.
  7381. * src/HelpItemFactory.cc
  7382. * src/HelpItemFactory.h
  7383. * src/option_processing.cc
  7384. * src/version_usage.cc
  7385. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Added --quiet option to make aria2 quiet (no console output).
  7387. --quiet option is tagged with ADVANCED.
  7388. * src/HelpItemFactory.cc
  7389. * src/LogFactory.cc
  7390. * src/LogFactory.h
  7391. * src/MultiUrlRequestInfo.cc
  7392. * src/MultiUrlRequestInfo.h
  7393. * src/NullStatCalc.h: New class. This class prints nothing.
  7394. * src/OptionHandlerFactory.cc
  7395. * src/main.cc
  7396. * src/option_processing.cc
  7397. * src/prefs.h
  7398. * src/usage_text.h
  7399. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7401. * src/HelpItemFactory.cc (createHelpItems):
  7402. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. Fixed compilation error in ExpatMetalinkProcessor.cc
  7404. * src/ExpatMetalinkProcessor.cc
  7405. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7406. Reuse socket if the origin server supports HTTP keep-alive and
  7407. --enable-http-keep-alive or --enable-http-pipelining is given.
  7408. The current implementation doesn't reuse the connections established
  7409. against proxy server.
  7410. * src/AbstractCommand.cc
  7411. * src/DownloadEngine.cc
  7412. * src/DownloadEngine.h
  7413. * src/HttpDownloadCommand.cc
  7414. * src/HttpInitiateConnectionCommand.cc
  7415. * src/HttpResponseCommand.cc
  7416. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Rewritten HTTP keep-alive and pipelining routine.
  7418. * src/AbstractCommand.cc
  7419. * src/HttpConnection.cc
  7420. * src/HttpDownloadCommand.cc
  7421. * src/HttpRequest.cc
  7422. * src/HttpRequestCommand.cc
  7423. * src/HttpResponseCommand.cc
  7424. * src/Request.cc
  7425. * src/Request.h
  7426. * src/RequestGroup.cc
  7427. * test/HttpRequestTest.cc
  7428. * test/HttpResponseTest.cc
  7429. * test/RequestTest.cc
  7430. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7431. Added missing setUserHeaders call
  7432. * src/HttpRequestCommand.cc
  7433. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7435. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7436. waste of time because it is more likey false.
  7437. * src/FileAllocationDispatcherCommand.cc (execute)
  7438. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Now HTTP status and version are a member variable of HttpHeader.
  7440. HTTP status is processed as a string, not integer.
  7441. * src/AbstractProxyResponseCommand.cc
  7442. * src/HttpConnection.cc
  7443. * src/HttpHeader.cc
  7444. * src/HttpHeader.h
  7445. * src/HttpHeaderProcessor.cc
  7446. * src/HttpHeaderProcessor.h
  7447. * src/HttpResponse.cc
  7448. * src/HttpResponse.h
  7449. * test/HttpHeaderProcessorTest.cc
  7450. * test/HttpResponseTest.cc
  7451. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7452. Added --header option. You can specify any number of additional HTTP headers
  7453. like:
  7454. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7455. Unlike other commad-line option, you can use --header option multiple times.
  7456. * src/HelpItemFactory.cc
  7457. * src/HttpRequest.{cc, h}
  7458. * src/HttpRequestCommand.cc
  7459. * src/OptionHandlerFactory.cc
  7460. * src/OptionHandlerImpl.h
  7461. * src/option_processing.cc
  7462. * src/prefs.h
  7463. * src/usage_text.h
  7464. * test/HttpRequestTest.cc (testUserHeaders)
  7465. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7466. Eliminates the time lag between sequential downloads and commands in
  7467. the same RequestGroup.
  7468. In old implementation, aria2 occasionally waits 1 seconds before
  7469. executing next command or RequestGroup.
  7470. This is really a waste of time, and new implementation eliminates
  7471. this unnecessary time lag.
  7472. * src/AbstractCommand.cc
  7473. * src/AutoSaveCommand.cc
  7474. * src/CheckIntegrityCommand.cc
  7475. * src/Command.{cc, h}
  7476. * src/DownloadEngine.{cc, h}
  7477. * src/DownloadEngineFactory.cc
  7478. * src/FileAllocationCommand.cc
  7479. * src/FileAllocationDispatcherCommand.cc
  7480. * src/FillRequestGroupCommand.cc
  7481. * src/FtpInitiateConnectionCommand.cc
  7482. * src/HaveEraseCommand.cc
  7483. * src/HttpInitiateConnectionCommand.cc
  7484. * src/HttpResponseCommand.cc
  7485. * src/RealtimeCommand.cc
  7486. * src/RequestGroup.cc
  7487. * src/RequestGroupMan.cc
  7488. * src/StreamFileAllocationEntry.cc
  7489. * src/TimeBasedCommand.{cc, h}
  7490. * src/TimedHaltCommand.cc
  7491. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7493. keyword explicit and SharedHandle's default constructor initializes
  7494. its internal obj to null, old implementation initializes it using
  7495. obj's default constructor.
  7496. To assign null, write SharedHandle<T> x(...); x.reset();
  7497. TODO: test/SharedHandleTest.cc needs more tests.
  7498. * src/SharedHandle.h
  7499. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7500. Fixed type in man page.
  7501. * doc/aria2c.1.txt
  7502. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7504. * src/SimpleLogger.{cc, h}
  7505. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Implemented auto protocol detection.
  7507. Now you can do:
  7508. aria2c -Z http://host/file file1.torrent file2.metalink
  7509. (Note: -Z option is required for auto protcol detection.)
  7510. Then aria2c downloads 3 files simultaneously:
  7511. 1. http://host/file
  7512. 2. file1.torrent <-- read local torrent file
  7513. 3. file2.metalink <-- read local Metalink file.
  7514. Same thing goes with -i option. Assume your uris.txt contans:
  7515. http://host/file
  7516. file1.torrent
  7517. file2.metalink
  7518. Then you can do: aria2c -i uris.txt
  7519. (Note: -Z option is not needed if -i option is given.)
  7520. * src/main.cc
  7521. * src/ProtocolDetector.{cc, h}
  7522. * test/ProtocolDetectorTest.cc
  7523. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7525. installed
  7526. * src/ARC4Encryptor.h
  7527. * src/ARC4Decryptor.h
  7528. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7529. Renamed argument from 'errno' to 'err', since errno is confused with
  7530. errno defined in errno.h.
  7531. * src/LibgcryptARC4Decryptor.h
  7532. * src/LibgcryptARC4Context.h
  7533. * src/LibgcryptDHKeyExchange.h
  7534. * src/LibgcryptARC4Encryptor.h
  7535. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7536. Rewritten choking algorithm.
  7537. * src/PeerChokeCommand.{cc, h}
  7538. * src/BtInterestedMessage.cc
  7539. * src/PeerSessionResource.{cc, h}
  7540. * src/DefaultPeerStorage.{cc, h}
  7541. * src/BtNotInterestedMessage.cc
  7542. * src/DefaultBtMessageDispatcher.{cc, h}
  7543. * src/BtMessageDispatcher.h
  7544. * src/Peer.{cc, h}
  7545. * src/BtLeecherStateChoke.{cc, h}
  7546. * src/BtSetup.cc
  7547. * src/BtSeederStateChoke.{cc, h}
  7548. * src/PeerStorage.h
  7549. * test/MockPeerStorage.h
  7550. * test/MockBtMessageDispatcher.h
  7551. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7552. Fixed compilation error on x84-64 platform.
  7553. * src/AuthConfig.cc: Included ostream.
  7554. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7555. Rewritten getBasename() and getDirname(), without standard library
  7556. basename(), dirname().
  7557. * src/File.cc
  7558. * test/FileTest.cc
  7559. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Added Simplified Chinese translation. Also updated the following
  7561. translations: Polish, Dutch, German. Great thanks to all translators.
  7562. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7563. Suppress content-range error when 'Content-Range' response header
  7564. doesn't contains bytes-unit specifier 'bytes'
  7565. * src/HttpHeader.cc (getRange)
  7566. * test/HttpHeaderTest.cc
  7567. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7568. Fixed compilation error with g++-4.3
  7569. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7570. Added missing include files for MinGW
  7571. * test/HttpHeaderProcessorTest.cc
  7572. * test/DHTRoutingTableSerializerTest.cc
  7573. * test/DHTRoutingTableDeserializerTest.cc
  7574. * test/UriListParserTest.cc
  7575. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Now download line is printed nicely with no garbage at the end of
  7577. line. I use ioctl to get the columns of terminal.
  7578. If stdout is redirected to another device, instead of carriage return,
  7579. end of line '\n' character is used. This is feature request#1909659
  7580. * src/ConsoleStatCalc.cc (calculateStat)
  7581. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7582. Included a2time.h
  7583. * src/DHTMessageDispatcher.h
  7584. * src/DHTMessageEntry.h
  7585. * src/DHTReplaceNodeTask.h
  7586. * src/DHTMessageTracker.h
  7587. * src/Util.h
  7588. * src/CookieBox.h
  7589. * src/SocketCore.h
  7590. * src/DefaultBtMessageDispatcher.h
  7591. * src/SocketCore.cc
  7592. * src/Util.cc
  7593. * src/DHTPingTask.h
  7594. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Fixed high memory footprint when DHT is enabled.
  7596. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7597. queued than it is processed and the queue is getting longer. As a
  7598. consequence, momory usage is increased.
  7599. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7600. replacement cache in DHTBucket which is described in Kademlia paper.
  7601. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7602. DHTReplaceNodeTask.
  7603. * src/DHTBucket.{h, cc}
  7604. (cacheNode): New function.
  7605. (getCachedNodes): New function.
  7606. (dropNode): Push back cached node to _nodes.
  7607. * test/DHTBucketTest.cc
  7608. (testCacheNode): New test
  7609. (testDropNode): New test
  7610. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7612. the unused 4KB memory when ssl is not used.
  7613. * src/SocketCore.cc
  7614. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7615. Added summary log for peer announce storage.
  7616. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7617. Removed cast
  7618. * src/DefaultPeerStorage.cc (addPeer)
  7619. Log exception message
  7620. * src/DHTMessageTracker.cc (handleTimeout)
  7621. Fixed casting
  7622. * test/HttpRequestTest.cc
  7623. * test/MetalinkProcessorTest.cc
  7624. * test/PieceTest.cc
  7625. * test/MetalinkEntryTest.cc
  7626. * test/SequenceTest.cc
  7627. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7628. * src/ParameterizedStringParser.cc (createLoop):
  7629. Removed unused variable sstep.
  7630. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7631. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. * src/Util.{h, cc}
  7633. (parseUInt): New function.
  7634. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7635. The actual range is uint32_t.
  7636. * test/UtilTest.cc
  7637. * src/ParameterizedStringParser.cc:
  7638. Use Util::parseUInt() for loop variables.
  7639. * test/ParameterizedStringParserTest.cc
  7640. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7641. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7642. Rewritten the functions for binding port.
  7643. * src/DHTConnectionImpl.{h, cc}
  7644. * src/PeerListenCommand.{h, cc}
  7645. * src/DHTSetup.cc
  7646. * src/BtSetup.cc
  7647. * test/DHTConnectionImplTest.cc
  7648. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7649. type cleanup for allmost all remaining files.
  7650. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Type clarification
  7652. * src/PeerSessionResource.{h, cc}
  7653. * src/DefaultPieceStorage.{h, cc}
  7654. * src/Peer.{h, cc}
  7655. * test/PeerSessionResourceTest.cc
  7656. Use div function
  7657. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7658. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7659. Type clarification
  7660. * src/DefaultPeerStorage.{h, cc}
  7661. * test/DefaultPeerStorageTest.cc
  7662. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Type clarification: size_t for length or size, uint64_t for file
  7664. length, off_t for file offset.
  7665. * src/DefaultBtProgressInfoFile.cc
  7666. * src/DefaultBtContext.{h, cc}
  7667. * src/DefaultBtInteractive.cc
  7668. * src/DownloadCommand.{h, cc}
  7669. * src/IteratableChunkChecksumValidator.{h, cc}
  7670. * src/SegmentMan.{h, cc}
  7671. * src/SingleFileDownloadContext.{h, cc}
  7672. * src/IteratableChecksumValidator.{h, cc}
  7673. * src/BtContext.h
  7674. * src/IteratableValidator.h
  7675. * src/DownloadContext.h
  7676. * test/SingleFileDownloadContextTest.cc
  7677. * test/DefaultBtContextTest.cc
  7678. * test/MockBtContext.h
  7679. * test/Metalink2RequestGroupTest.cc
  7680. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Type clarification: size_t for length or size, uint64_t for file
  7682. length, off_t for file offset.
  7683. * src/PiecedSegment.cc
  7684. * src/GrowSegment.h
  7685. * src/DefaultBtRequestFactory.h
  7686. * src/DefaultBtProgressInfoFile.cc
  7687. * src/UnknownLengthPieceStorage.h
  7688. * src/DefaultPieceStorage.cc
  7689. * src/UnknownLengthPieceStorage.cc
  7690. * src/DefaultBtInteractive.cc
  7691. * src/GrowSegment.cc
  7692. * src/BitfieldMan.h
  7693. * src/DownloadCommand.cc
  7694. * src/BtRequestFactory.h
  7695. * src/PiecedSegment.h
  7696. * src/DefaultPieceStorage.h
  7697. * src/Piece.cc
  7698. * src/DefaultBtRequestFactory.cc
  7699. * src/PieceStorage.h
  7700. * src/Segment.h
  7701. * src/Piece.h
  7702. * src/BitfieldMan.cc
  7703. * src/Util.cc
  7704. * test/DefaultBtProgressInfoFileTest.cc
  7705. * test/DefaultPieceStorageTest.cc
  7706. * test/MockPieceStorage.h
  7707. * test/BtRequestMessageTest.cc
  7708. * test/DefaultBtMessageDispatcherTest.cc
  7709. * test/BitfieldManTest.cc
  7710. * test/GrowSegmentTest.cc
  7711. * test/PieceTest.cc
  7712. * test/SegmentTest.cc
  7713. * test/SegmentManTest.cc
  7714. * test/DefaultBtRequestFactoryTest.cc
  7715. * test/MockBtRequestFactory.h
  7716. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Fixed compilation error with --disable-nls
  7718. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7719. in gettext.h causes the problem.
  7720. * src/common.h
  7721. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Removed subPiece related functions.
  7723. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7724. * src/DefaultPieceStorage.{h, cc}
  7725. * test/PieceTest.cc
  7726. * test/DefaultPieceStorageTest.cc
  7727. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Use unsigned char for data store.
  7729. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Bump up version number to 0.13.0+1
  7731. * configure.ac
  7732. * Release 0.13.0+1
  7733. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Changed inactive connection timeout to 120.
  7735. To accept more mulually interested peers, disconnect peer when there
  7736. is no interest between us after certain time passed.
  7737. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7738. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7739. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7740. when compiled with async DNS support.
  7741. * src/DownloadEngine.cc
  7742. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7743. value '10' will be a little bit short when some DNS servers are
  7744. offline and several DNS servers are tried. It should be configured
  7745. by command-line option.
  7746. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Merged Ross's mingw patch.
  7748. * src/DHTRoutingTableDeserializer.cc
  7749. * src/DHTRoutingTableSerializer.cc
  7750. * src/Platform.{h, cc}
  7751. * src/timegm.h
  7752. * src/gettimeofday.h
  7753. * src/getaddrinfo.h
  7754. * src/SocketCore.h
  7755. * src/common.h
  7756. * src/inet_aton.h
  7757. * src/DownloadEngine.h
  7758. * src/gai_strerror.h
  7759. * src/a2netcompat.h
  7760. * configure.ac
  7761. * configure
  7762. * aclocal.m4
  7763. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7764. Included missing iostream.
  7765. * test/AllTest.cc
  7766. * test/BtDependencyTest.cc
  7767. * test/BtExtendedMessageTest.cc
  7768. * test/DHTConnectionImplTest.cc
  7769. * test/DHTMessageFactoryImplTest.cc
  7770. * test/DHTMessageTrackerEntryTest.cc
  7771. * test/DHTNodeTest.cc
  7772. * test/DHTRoutingTableSerializerTest.cc
  7773. * test/DefaultBtAnnounceTest.cc
  7774. * test/DefaultBtContextTest.cc
  7775. * test/DefaultBtMessageFactoryTest.cc
  7776. * test/DefaultExtensionMessageFactoryTest.cc
  7777. * test/HandshakeExtensionMessageTest.cc
  7778. * test/HttpResponseTest.cc
  7779. * test/MetalinkProcessorTest.cc
  7780. * test/MultiFileAllocationIteratorTest.cc
  7781. * test/SocketCoreTest.cc
  7782. * test/UTPexExtensionMessageTest.cc
  7783. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7784. Reorganized includes.
  7785. * src/NameResolver.cc
  7786. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. Fixed compilation error without ares/c-ares
  7788. * src/NameResolver.h:
  7789. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7790. Added a test for large file.
  7791. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7792. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7793. Fixed the bug that file size is ignored if size > INT32_MAX
  7794. * src/SizeMetalinkParserState.cc (endElement):
  7795. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7796. Bump up version number to 0.13.0
  7797. * configure.ac
  7798. * Release 0.13.0
  7799. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7800. Updated Makfefile.am to make 'make dist' work.
  7801. Now packaged filename is aria2c-VERSION.tar.bz2.
  7802. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7803. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7804. Large file support is now configured by configure script.
  7805. * configure.ac
  7806. Removed unsused source files
  7807. * src/
  7808. * test/
  7809. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7810. Peer.h and BtContext.h respectively.
  7811. * src/Peer.h
  7812. * src/BtContext.h
  7813. Updated translations.
  7814. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7815. translations. Great thanks to all translators!;)
  7816. * po/*.{po, gmo}
  7817. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7818. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7819. statically declared sha1 MessageDigestContext.
  7820. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7821. initialization of short-lived MessageDigestContext.
  7822. * src/MessageDigestHelper.{h, cc}
  7823. * src/main.cc
  7824. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7825. the initialization of MessageDigestContext every time in validating
  7826. chunk checksum.
  7827. * src/DownloadCommand.{h, cc}
  7828. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Add a file descriptor which connected to fast peer(latency<1500) to
  7830. select(). This change reduced CPU load.
  7831. * src/PeerInteractionCommand.cc
  7832. * src/DefaultBtInteractive.{h, cc}
  7833. * src/BtInteractive.h
  7834. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7835. Fixed the previous insufficient fix for possible busy loop.
  7836. * src/MSEHandshake.cc (identifyHandshakeType)
  7837. Removed unused functions.
  7838. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7839. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Fixed possible busy loop if first 20 bytes are not received for a few
  7841. minutes.
  7842. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7843. * src/ReceiverMSEHandshakeCommand.cc
  7844. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Fixed compilation error
  7846. * src/ExpatMetalinkProcessor.cc
  7847. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7849. * src/DHTBucket.cc
  7850. Removed unnecessary cast.
  7851. * src/HandshakeExtensionMessage.cc
  7852. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7854. is missing.
  7855. * src/OptionHandlerFactory.cc
  7856. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7857. Fixed the bug that HAVE message is not sent for a piece they are
  7858. downloaded fom http/ftp server before any BitTorrent handshake is done
  7859. with peers.
  7860. * src/DefaultBtInteractive.cc
  7861. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7863. * src/Makefile.am
  7864. * src/Makefile.in
  7865. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Updated README. Added html version of README and man page.
  7867. * README
  7868. * README.html
  7869. * readme2html: Shell script to generate README.html from README using
  7870. asciidoc.
  7871. * doc/aria2c.1.html
  7872. * doc/makeman: Added the line to generate aria2c.1.html
  7873. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7874. Fixed offset calculation.
  7875. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7876. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. Rewritten itos and uitos using template. llitos and ullitos are
  7878. replaced with itos and uitos respectively.
  7879. * src/Util.{h, cc}
  7880. * test/UtilTest.cc
  7881. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7882. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7883. of the number of bytes required for storing public key and shared
  7884. secret.
  7885. * src/LibgcryptDHKeyExchange.h
  7886. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7887. * src/MSEHandshake.cc
  7888. * test/DHKeyExchangeTest.cc
  7889. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7890. Removed since they are not used.
  7891. * src/Xml2MetalinkProcessor.{h, cc}
  7892. * src/Socket.cc
  7893. * src/SegmentSplitter.{h, cc}
  7894. * test/Xml2MetalinkProcessorTest.cc
  7895. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7896. Fixed the bug that prevents aria2 from stopping other than by pressing
  7897. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7898. option. aria2 doesn't stop even after --seed-time is satisfied and
  7899. continues to output blank lines in the console.
  7900. * src/ReceiverMSEHandshakeCommand.cc
  7901. * src/PeerReceiveHandshakeCommand.cc
  7902. * src/PeerListenCommand.cc
  7903. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Bump up version number to 0.13.0rc
  7905. * configure.ac
  7906. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Updated man page and some usage text.
  7908. * doc/aria2c.1.txt
  7909. * src/usage_text.h
  7910. * po/*.{po, gmo}
  7911. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Updated translations. Added Finnish and Hebrew translations.
  7913. Great thanks to all translators!
  7914. * po/*.{po, gmo}
  7915. * po/LINGUAS
  7916. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Log more detailed information about each message.
  7918. * src/DHTQueryMessage.{h, cc}
  7919. * src/DHTGetPeersMessage.{h, cc}
  7920. * src/DHTFindNodeReplyMessage.{h, cc}
  7921. * src/DHTGetPeersReplyMessage.{h, cc}
  7922. * src/DHTAnnouncePeerMessage.{h, cc}
  7923. * src/DHTResponseMessage.{h, cc}
  7924. * src/DHTFindNodeMessage.{h, cc}
  7925. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7926. Use constants defined in prefs.h
  7927. * src/option_processing.cc
  7928. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7930. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7931. Make room for future enchancements for IPv6 addresses.
  7932. Bump up version number of dht.dat file format to 2.
  7933. Not compatible with previous version.
  7934. * src/DHTRoutingTableSerializer.cc
  7935. * src/DHTRoutingTableDeserializer.cc
  7936. * test/DHTRoutingTableSerializerTest.cc
  7937. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Added handling for the return values from
  7939. PeerMessageUtil::createcompact().
  7940. * src/DefaultBtContext.cc (computeFastSet):
  7941. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. Fixed abort when peer's ip address is IPv4-mapped address.
  7943. * src/DefaultBtContext.cc (computeFastSet)
  7944. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7945. cannot handle IPv4-mapped addresses.
  7946. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7947. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Proper return value handling for OpenSSL functions.
  7949. * src/LibsslDHKeyExchange.h
  7950. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7951. Random bytes generation using libgcrypt and OpenSSL.
  7952. * src/DHTUtil.{h, cc}
  7953. * test/DHTUtilTest.cc
  7954. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7955. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7956. received.
  7957. * src/DHTMessageReceiver.cc (receiveMessage)
  7958. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Fixed the bug that a return code is always 0. BUG#1897704
  7960. If error occurred during the download or there exist unfinished
  7961. downloads, aria2 returns with code 1.
  7962. * src/RequestGroupMan.{h, cc}
  7963. * src/MultiUrlRequestInfo.{h, cc}
  7964. * src/main.cc
  7965. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. IPv6 support for SocketCore class.
  7967. TODO: In SocketCore::establishConnection(), this is insufficient to
  7968. determin the failure of connect() here because the socket is
  7969. non-blocking state. The next addresses should be tried after select().
  7970. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7971. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7972. instead which address family independent.
  7973. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7974. information in a compact peer format which is for IPv4 only.
  7975. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7976. this is a spec of BitTorrent protocol.
  7977. * src/SocketCore.{h, cc}
  7978. * src/PeerMessageUtil.cc
  7979. * test/SocketCoreTest.cc
  7980. * test/PeerMessageUtilTest.cc
  7981. * test/DHTConnectionImplTest.cc
  7982. Handle IPv4-mapped addresses.
  7983. * src/DHTNode.cc: Now identity is determined by node id.
  7984. * src/DHTMessageTrackerEntry.cc
  7985. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7986. should handle it.
  7987. * src/DHTRoutingTableDeserializer.cc
  7988. * src/DHTMessageFactoryImpl.cc
  7989. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Change the unit of --stop option from a minute to a second.
  7991. * src/usage_text.h
  7992. * src/DownloadEngineFactory.cc
  7993. * src/OptionHandlerFactory.cc
  7994. * src/message.h
  7995. * src/TimedHaltCommand.cc
  7996. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7997. Make listening socket non-block mode.
  7998. * src/FtpConnection.cc
  7999. * src/FtpNegotiationCommand.{h, cc}
  8000. * src/PeerListenCommand.cc
  8001. Fixed the bug that cause slow ftp negotiation.
  8002. * src/FtpNegotiationCommand.{h, cc}
  8003. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Added basic tag to --enable-dht, --dht-listen-port option.
  8005. * src/HelpItemFactory.cc (createHelpItems)
  8006. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8007. Updated text.
  8008. * src/usage_text.h
  8009. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8010. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8011. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. Determin _threadtholdSpeed in each constructor for
  8013. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8014. * src/ActivePeerConnectionCommand.{h, cc}
  8015. * src/PeerReceiveHandshakeCommand.{h, cc}
  8016. * src/BtSetup.cc
  8017. * src/BtConstants.h
  8018. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8019. Added --bt-min-crypto-level and --bt-require-crypto options.
  8020. * src/OptionHandlerFactory.cc
  8021. * src/MSEHandshake.cc
  8022. * src/HelpItemFactory.cc
  8023. * src/option_processing.cc
  8024. * src/ReceiverMSEHandshakeCommand.cc
  8025. * src/prefs.h
  8026. * src/DefaultBtAnnounce.cc
  8027. * src/InitiatorMSEHandshakeCommand.cc
  8028. * src/usage_text.h
  8029. * test/MSEHandshakeTest.cc
  8030. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8031. Bump version number to 0.13.0b
  8032. * configure.ac
  8033. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Updated doc.
  8035. * src/MessageDigestHelper.h:
  8036. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8037. Use raw message digest as a token instead of its hexadecimal
  8038. representation.
  8039. * src/DHTTokenTracker.cc (generateToken)
  8040. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Added Message Stream Encryption(MSE) support.
  8042. Currently, aria2 accepts incoming connections with Obfuscation Header
  8043. and legacy BitTorrent Header and establishes connections with
  8044. Obfuscation Header first and if failed then retry with legacy
  8045. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8046. choose ARC4. The new option to change the default behavior is planned.
  8047. For tracker extension, "supportcrypto=1" is added statically.
  8048. * src/PeerInitiateConnectionCommand.{h, cc}
  8049. * src/PeerConnection.{h, cc}
  8050. * src/HandleRegistry.h
  8051. * src/SocketCore.h
  8052. * src/PeerReceiveHandshakeCommand.{h, cc}
  8053. * src/BtRegistry.{h, cc}
  8054. * src/PeerListenCommand.cc
  8055. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8056. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8057. * src/MSEHandshake.{h, cc}
  8058. * src/ARC4Encryptor.h
  8059. * src/ARC4Decryptor.h
  8060. * src/LibgcryptARC4Encryptor.h
  8061. * src/LibgcryptARC4Decryptor.h
  8062. * src/LibgcryptARC4Context.h
  8063. * src/LibsslARC4Encryptor.h
  8064. * src/LibsslARC4Decryptor.h
  8065. * src/LibsslARC4Context.h
  8066. * src/DHKeyExchange.h
  8067. * src/LibgcryptDHKeyExchange.h
  8068. * src/LibsslDHKeyExchange.h
  8069. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8070. * test/DefaultBtAnnounceTest.cc
  8071. * test/ARC4Test.cc
  8072. * test/DHKeyExchangeTest.cc
  8073. Removed prepareForRetry() because it is not used.
  8074. * src/PeerAbstractCommand.{h, cc}
  8075. * src/PeerInteractionCommand.{h, cc}
  8076. * src/PeerInitiateConnectionCommand.{h, cc}
  8077. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8078. Added the ability to load nodes from torrent file. These nodes are
  8079. added to the routing table when downloading that torrent.
  8080. * src/BtContext.h
  8081. * src/DefaultBtContext.{h, cc}
  8082. * src/DHTSetup.cc
  8083. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8084. hostname and port pair, and resolves all of them.
  8085. * src/NameResolver.{h, cc}: Added reset().
  8086. * src/RequestGroup.cc
  8087. * test/DefaultBtContextTest.cc
  8088. * test/MockBtContext.h
  8089. Removed assert() from DefaultBtContext and throw exception instead.
  8090. * src/DefaultBtContext.cc
  8091. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8092. Fixed segmentation fault bug when exiting if dht is disabled.
  8093. * src/RequestGroup.cc
  8094. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8095. Fixed typo in log message and define the message in message.h
  8096. * src/TimedHaltCommand.cc
  8097. * src/message.h
  8098. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8099. Included RecoverableException.h to fix compilation error.
  8100. * test/DHTMessageFactoryImplTest.cc
  8101. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8102. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8103. * test/DHTPingMessageTest.cc
  8104. * test/DHTGetPeersMessageTest.cc
  8105. * test/DHTFindNodeMessageTest.cc
  8106. * test/DHTAnnouncePeerMessageTest.cc
  8107. * test/MockDHTMessage.h
  8108. * test/MockDHTMessageFactory.h
  8109. * test/MockDHTMessageDispatcher.h: New class.
  8110. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8112. virtual.
  8113. * src/DHTMessageDispatcher.h
  8114. * src/DHTMessageDispatcherImpl.{h, cc}
  8115. * src/DHTSetup.cc
  8116. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Adding handling of DHT error message. Just log error message and
  8118. throw exception.
  8119. * src/DHTMessageFactoryImpl.cc
  8120. * test/DHTMessageFactoryImplTest.cc
  8121. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Added handling of dynamic cast failure.
  8123. * src/DHTNodeLookupTask.cc
  8124. * src/DHTPeerLookupTask.cc
  8125. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Added the ability to stop aria2 itself when given time has passed
  8127. from start. Use --stop option to specify time in minutes.
  8128. When 0 is given, this feature is disabled.
  8129. * src/OptionHandlerFactory.cc
  8130. * src/TimeBasedCommand.h: Make _interval protected scope.
  8131. * src/HelpItemFactory.cc
  8132. * src/option_processing.cc
  8133. * src/prefs.h
  8134. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8135. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8136. Without this modification, the result list shows "ERR" when aria2 is
  8137. stopped by --stop option. It should be "INPR".
  8138. * src/DownloadEngine.{h, cc}
  8139. * src/DownloadEngineFactory.cc
  8140. * src/usage_text.h
  8141. * src/TimedHaltCommand.{h, cc}: New class.
  8142. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. Bootstrap through node added by port message.
  8144. Currently bootstrap is executed if the number of buckets in routing
  8145. table is 1.
  8146. * src/BtPortMessage.{h, cc}
  8147. * src/DefaultBtMessageFactory.{h, cc}
  8148. * src/PeerInteractionCommand.cc
  8149. * test/BtPortMessageTest.cc
  8150. * test/MockDHTTask.h
  8151. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8152. Extract the Peer class's member variables, which are only needed after
  8153. PeerInteractionCommand, into PeerSessionResource class.
  8154. This class is instantiated in PeerInteractionCommand class's ctor and
  8155. released in its dtor.
  8156. This will make Peer class lightweight and uses less memory for peers
  8157. which are not connected and wait in the queue.
  8158. * src/PeerChokeCommand.cc
  8159. * src/PeerSessionResource.{h, cc}
  8160. * src/PeerInteractionCommand.cc
  8161. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8162. * src/DefaultBtInteractive.cc
  8163. * src/BtPieceMessage.cc
  8164. * src/BtInterestedMessage.cc
  8165. * src/BtUnchokeMessage.cc
  8166. * src/DefaultPeerStorage.{h, cc}
  8167. * src/PeerInitiateConnectionCommand.cc
  8168. * src/ActivePeerConnectionCommand.cc
  8169. * src/BtNotInterestedMessage.cc
  8170. * src/DefaultBtMessageDispatcher.cc
  8171. * src/BtChokeMessage.cc
  8172. * src/BtRequestMessage.cc
  8173. * src/Peer.{h, cc}
  8174. * src/BtRegistry.h
  8175. * src/TrackerWatcherCommand.cc
  8176. * src/PeerReceiveHandshakeCommand.cc
  8177. * test/BtExtendedMessageTest.cc
  8178. * test/BtAllowedFastMessageTest.cc
  8179. * test/BtCancelMessageTest.cc
  8180. * test/DefaultPieceStorageTest.cc
  8181. * test/BtBitfieldMessageTest.cc
  8182. * test/BtHaveMessageTest.cc
  8183. * test/BtNotInterestedMessageTest.cc
  8184. * test/BtRequestMessageTest.cc
  8185. * test/PeerSessionResourceTest.cc
  8186. * test/DefaultBtMessageDispatcherTest.cc
  8187. * test/PeerTest.cc
  8188. * test/BtInterestedMessageTest.cc
  8189. * test/BtRejectMessageTest.cc
  8190. * test/BtChokeMessageTest.cc
  8191. * test/DefaultPeerStorageTest.cc
  8192. * test/BtHaveNoneMessageTest.cc
  8193. * test/BtHaveAllMessageTest.cc
  8194. * test/DefaultExtensionMessageFactoryTest.cc
  8195. * test/BtUnchokeMessageTest.cc
  8196. * test/DefaultBtMessageFactoryTest.cc
  8197. * test/HandshakeExtensionMessageTest.cc
  8198. * test/UTPexExtensionMessageTest.cc
  8199. * test/DefaultBtRequestFactoryTest.cc
  8200. * test/BtPieceMessageTest.cc
  8201. Removed typedef PeerStats.
  8202. * src/PeerStat.h
  8203. * src/SegmentMan.cc
  8204. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8205. Added std namespace to copy, remove_copy, back_inserter,
  8206. front_inserter.
  8207. * src/RequestGroupMan.cc
  8208. * src/DefaultPieceStorage.cc
  8209. * src/StreamFileAllocationEntry.cc
  8210. * src/BtFileAllocationEntry.cc
  8211. * src/RequestGroup.cc
  8212. * src/MetalinkEntry.cc
  8213. * src/DelegatingPeerListProcessor.cc
  8214. * src/DefaultBtRequestFactory.cc
  8215. * src/DefaultBtMessageDispatcher.cc
  8216. * src/version_usage.cc: Included <algorithm>
  8217. * src/main.cc
  8218. * src/MetalinkParserController.cc
  8219. * src/DefaultBtContext.cc
  8220. * src/DownloadEngineFactory.cc
  8221. * src/a2algo.h
  8222. Removed.
  8223. * test/StreamUriListParserTest.cc
  8224. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8225. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8226. ActivePeerConnectionCommand when it is given and
  8227. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8228. * src/ActivePeerConnectionCommand.{h, cc}
  8229. * src/BtSetup.cc
  8230. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Only add socket to DownloadEngine's select routine when peer or
  8232. localhost is unchoked and interested. This lowers CPU usage a
  8233. little bit.
  8234. * src/PeerInteractionCommand.cc
  8235. * src/PeerAbstractCommand.{h, cc}
  8236. * src/BtInteractive.h
  8237. * src/DefaultBtInteractive.{h, cc}
  8238. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Revert previous change because get_peers message is needed for
  8240. announce_peer anyway.
  8241. * src/DHTGetPeersCommand.cc
  8242. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8243. Request peers thought DHT only when download hasn't finished.
  8244. * src/DHTGetPeersCommand.cc
  8245. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8247. * src/DHTBucketRefreshTask.{h, cc}
  8248. * src/DHTSetup.cc
  8249. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8251. standard classes.
  8252. Included string.h where mem* function are used.
  8253. Added namespace aria2.
  8254. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8255. Create directory before saving DHT routing table.
  8256. Now ios::failure is now handled properly.
  8257. * src/DHTAutoSaveCommand.cc
  8258. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Removed unnecessary cerr.
  8260. * src/DownloadEngine.cc
  8261. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. Catch exception inside DHTMessageReceiver::receiveMessage().
  8263. Log unknown message.
  8264. * src/DHTMessageReceiver.{h, cc}
  8265. * src/DHTMessageFactory.h
  8266. * src/DHTMessageFactoryImpl.{h, cc}
  8267. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8268. * src/DHTInteractionCommand.cc
  8269. * src/DHTUnknownMessage.{h, cc}
  8270. * test/DHTUnknownMessageTest.cc
  8271. * test/MockDHTMessageFactory.h
  8272. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8273. Commented out ip address comparison because a host can have multiple
  8274. ip addresses and it is hard to predict the hostname is resolved into
  8275. which one.
  8276. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8277. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. * po/Makefile.in: Removed since this is generated by configure.
  8279. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8280. Fixed compiler warning about redefinition of SIZE_MAX.
  8281. Use common.h instead of config.h directly here.
  8282. * src/Platform.{h, cc}
  8283. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8284. here.
  8285. * common.h
  8286. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  8287. Updated gettext related files.
  8288. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8289. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8290. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8291. Added DHT functionality, compatible with mainline.
  8292. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8293. You may need to specify entry point to DHT network using
  8294. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8295. Use --dht-listen-port to specify port number. Make sure that your
  8296. firewall configuration can pass through UDP traffic to the port.
  8297. The routing table is saved in $HOME/.aria2/dht.dat.
  8298. * src/DHT*
  8299. * src/BNode.{h, cc}
  8300. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8301. particular torrent.
  8302. * src/Data.cc: Rewritten ctor.
  8303. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8304. --dht-entry-point.
  8305. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8306. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8307. ends, remove BtContext from DHTPeerAnnounceStorage.
  8308. * src/BtPortMessage.{h, cc}: Rewritten.
  8309. * src/message.h
  8310. * src/OptionHandlerImpl.cc
  8311. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8312. --dht-entry-point.
  8313. * src/Dictionary.{h, cc} (remove): New function.
  8314. * src/prefs.h
  8315. * src/DefaultBtMessageFactory.h
  8316. * src/BtHandshakeMessage.cc
  8317. * src/ActivePeerConnectionCommand.cc
  8318. * src/SocketCore.{h, cc}: Added datagram socket support.
  8319. * src/DefaultBtMessageFactory.cc
  8320. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8321. Create DHT commands.
  8322. * src/BtMessageFactory.h
  8323. * src/PeerMessageUtil.{h, cc}
  8324. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8325. Fixed the bug that log file is not written when configuration file doesn't exist.
  8326. This is caused by using Logger class before LogFactory is not configured.
  8327. BUG #1875079
  8328. * src/option_processing.cc
  8329. Warning message "configuration doesn't exist" is only printed when --conf is
  8330. given.
  8331. * src/option_processing.cc
  8332. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8334. ShaVisitor is now deprecated and slated to be removed.
  8335. * src/DefaultBtContext.cc
  8336. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. Externalize message to message.h
  8338. * src/Platform.cc
  8339. * src/message.h
  8340. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8341. Set default domain and default path to cookie.
  8342. * src/HttpResponse.cc
  8343. * src/CookieBox.{h, cc}
  8344. * src/CookieParser.{h, cc}
  8345. * test/CookieParserTest.cc
  8346. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8347. Added --no-conf and --conf-path command-line option.
  8348. --no-conf option disables loading aria2.conf file.
  8349. --conf-path option changes the configuration file path. The default
  8350. file path is $HOME/.aria2/aria2.conf
  8351. Added a warning message when the configuration file is not found.
  8352. * src/HelpItemFactory.cc
  8353. * src/option_processing.cc
  8354. * src/prefs.h
  8355. * src/usage_text.h
  8356. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8357. Added the message to inform users that other help categories are
  8358. available in -h option.
  8359. * src/version_usage.cc
  8360. * src/TagContainer.{h, cc}
  8361. * test/TagContainerTest.cc
  8362. * src/TaggedItem.{h, cc}
  8363. * test/TaggedItemTest.cc
  8364. * src/HelpItem.h
  8365. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8366. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8367. from PiecedSegment's ctor.
  8368. Previously Piece::getAllMissingBlockIndexes() is called from
  8369. PiecedSegment() but it is rather expensive since only first element is
  8370. used.
  8371. * src/PiecedSegment.cc
  8372. * src/Piece.{h, cc}
  8373. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8375. each time these functions are called.
  8376. * src/BitfieldMan.{h, cc}
  8377. * test/BitfieldManTest.cc
  8378. * src/array_fun.h
  8379. * test/array_funTest.cc
  8380. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8381. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8382. filtered. Removed unnecessary cast to int32_t.
  8383. * src/BitfieldMan.{h, cc}
  8384. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8385. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8386. payload length(4bytes) are received. This happens because lenbufLength
  8387. is not updated in this particular case and successive call of
  8388. receiveMessage() overwrites payload length with bytes recieved which
  8389. are payload body.
  8390. * src/PeerConnection.{h, cc}
  8391. * src/message.h
  8392. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8394. peer if there are peers that have same ipaddr and port.
  8395. I've experiened segmentation fault and "pure virtual function was
  8396. called" error.
  8397. * src/Peer.h
  8398. * test/PeerTest.cc
  8399. * src/DefaultPeerStorage.cc
  8400. * test/DefaultPeerStorageTest.cc
  8401. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8402. Removed a call to isPowerOf() because it is no longer necessary here
  8403. and a request block is not always power of 2.
  8404. BUG#1866924
  8405. * src/PeerMessageUtil.cc (checkLength)
  8406. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Fixed the bug that always first found Segment is removed from
  8408. usedSegmentEntries. Removed unused functions.
  8409. * src/SegmentMan.{h, cc}
  8410. * test/SegmentManTest.cc
  8411. Fixed the bug that ServerHost is not removed.
  8412. * src/RequestGroup.cc
  8413. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8414. Fixed the bug that SegmentMan::completeSegment() is not called
  8415. even if Segment is complete when --lowest-speed-limit is enabled.
  8416. BUG#1864525
  8417. * src/DownloadCommand.{h, cc}
  8418. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8419. Fixed: hash algorithm 'sha1' is always used.
  8420. * src/DownloadCommand.cc (validatePieceHash)
  8421. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8422. Added --enable-peer-exchange command-line option.
  8423. * src/OptionHandlerFactory.cc
  8424. * src/HelpItemFactory.cc
  8425. * src/option_processing.cc
  8426. * src/usage_text.h
  8427. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8428. Move extension from BtRuntime to ExtensionMessageFactory, because
  8429. extension can be specified per peer, not per torrent.
  8430. * src/DefaultBtInteractive.cc
  8431. * src/BtRuntime.h
  8432. * src/ExtendedMessagingAware.h
  8433. * src/ExtensionMessageFactory.h
  8434. * src/DefaultExtensionMessageFactory.cc
  8435. * test/DefaultExtensionMessageFactoryTest.cc
  8436. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Added categorized option help. Specify category using --help option.
  8438. Also added the ability to search options in forward match.
  8439. * src/HelpItem.{h, cc}
  8440. * test/HelpItemTest.cc
  8441. * src/HelpItemFactory.{h, cc}
  8442. * src/TagContainer.{h, cc}
  8443. * test/TagContainerTest.cc
  8444. * src/option_processing.cc
  8445. * src/prefs.h
  8446. * src/TaggedItem.{h, cc}
  8447. * test/TaggedItemTest.cc
  8448. * src/version_usage.cc
  8449. * src/help_tags.h
  8450. * src/usage_text.h
  8451. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8452. Fixed segmentation fault when bad torrent metainfo is parsed.
  8453. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8454. and then throw exception or skip it.
  8455. * src/DefaultBtContext.{h, cc}
  8456. * test/DefaultBtContextTest.cc
  8457. * src/AnnounceList.cc
  8458. * src/CompactPeerListProcessor.cc
  8459. * src/message.h
  8460. * src/DefaultBtAnnounce.{h, cc}
  8461. * test/DefaultBtAnnounceTest.cc
  8462. * src/BencodeVisitor.cc
  8463. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8464. Added missing "B"(=Byte). So now the message looks like this:
  8465. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8466. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8467. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8468. Show the seed ratio after torrent downloads.
  8469. For example, after torrent download completed and --seed-time and
  8470. --seed-ratio conditions are fulfilled, following message is printed
  8471. right after "Download complete: .....":
  8472. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8473. * src/RequestGroupMan.cc
  8474. * src/RequestGroup.{h, cc}
  8475. * src/message.h
  8476. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8477. Remove a defunct control file. A defunct control file means that while
  8478. it exists, but the corresponding download file is missing.
  8479. After its removal, a download restarts from the beginning.
  8480. * src/RequestGroup.cc
  8481. * src/message.h
  8482. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8483. Allocate bitfield in Peer when it is really used. More specifically,
  8484. bitfield in Peer is allocated after the connection is established and
  8485. deallocated when the connection is dropped.
  8486. Since 2 parameters(piece length and total length) was removed from the
  8487. constructor of Peer class, many test classes were modified accordingly.
  8488. See svn log for more detailed information.
  8489. * src/PeerInteractionCommand.cc
  8490. * src/CompactPeerListProcessor.cc
  8491. * src/Peer.cc
  8492. * src/DefaultPeerListProcessor.cc
  8493. * src/PeerListenCommand.cc
  8494. * src/PeerReceiveHandshakeCommand.cc
  8495. Fixed memory leak
  8496. * src/Piece.cc
  8497. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8499. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8500. command-line options.
  8501. * src/option_processing.cc
  8502. * src/ActivePeerConnectionCommand.cc
  8503. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. Send have message to peer if it already has the piece.
  8505. * src/BtHaveMessage.{h, cc}
  8506. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8507. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8508. port.
  8509. * src/DefaultPeerStorage.{h, cc}
  8510. * test/DefaultPeerStorageTest.cc
  8511. * src/HandshakeExtensionMessage.cc
  8512. * test/HandshakeExtensionMessageTest.cc
  8513. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8514. * src/PeerStorage.h
  8515. * test/MockPeerStorage.h
  8516. * src/PeerListenCommand.cc
  8517. * src/PeerReceiveHandshakeCommand.cc
  8518. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. Added --metalink-enable-unique-protocol option.
  8520. * src/Metalink2RequestGroup.cc
  8521. * src/option_processing.cc
  8522. * src/prefs.h
  8523. * src/version_usage.cc
  8524. * doc/aria2c.1.txt
  8525. * doc/aria2c.1
  8526. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8527. Allow a peer in incomingPeer to be added peers.
  8528. * src/DefaultPeerStorage.cc
  8529. * test/DefaultPeerStorageTest.cc
  8530. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8531. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8532. I could reproduce this bug in following procedure:
  8533. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8534. 2. Restart aria2.
  8535. 3. You see the download stopped around 99%.
  8536. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8537. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8538. If timeout is reached, then _nextCommand is unused and it may contains
  8539. segments and they won't be canceled. Actually, timeout is not needed
  8540. here because if the server dropped connection, then retry is made.
  8541. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Added uTorrent compatible Peer Exchange.
  8543. * src/BencodeVisitor.{h, cc}
  8544. * test/BencodeVisitorTest.cc
  8545. * src/BtConstants.h
  8546. * src/BtContext.h: Added 'private' flag.
  8547. * src/BtExtendedMessage.{h, cc}
  8548. * test/BtExtendedMessageTest.cc
  8549. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8550. reserved field.
  8551. * test/BtHandshakeMessageTest.cc
  8552. * src/BtMessageFactory.h
  8553. * src/BtRegistry.h
  8554. * src/BtRuntime.h: This class holds default extension message IDs for
  8555. aria2. By default, aria2 uses ID 8 for ut_pex.
  8556. * src/DefaultBtContext.cc
  8557. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8558. When it is true, aria2 enables ut_pex. This value is set by
  8559. PeerInteractionCommand.
  8560. * src/DefaultBtMessageFactory.{h, cc}
  8561. * test/DefaultBtMessageFactoryTest.cc
  8562. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8563. handling to DefaultBtInteractive class.
  8564. * src/DefaultExtensionMessageFactory.{h, cc}
  8565. * test/DefaultExtensionMessageFactoryTest.cc
  8566. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8567. the container(peers and incomingPeers. The equality is determined by
  8568. Peer::id).
  8569. * test/DefaultPeerStorageTest.cc
  8570. * src/ExtensionMessage.h
  8571. * test/MockExtensionMessage.h
  8572. * src/ExtensionMessageFactory.h
  8573. * test/MockExtensionMessageFactory.h
  8574. * src/HandshakeExtensionMessage.{h, cc}
  8575. * test/HandshakeExtensionMessageTest.cc
  8576. * src/MetaEntry.h
  8577. * src/Peer.{h, cc}
  8578. * src/PeerInteractionCommand.cc
  8579. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8580. addIncomingPeer.
  8581. * src/PeerMessageUtil.{h, cc}
  8582. * src/PeerObject.h
  8583. * src/UTPexExtensionMessage.{h, cc}
  8584. * test/UTPexExtensionMessageTest.cc
  8585. * src/message.h
  8586. * src/prefs.h
  8587. Fixed the bug that returns incomplete data when it contains null
  8588. character. A convenient constructor was also added.
  8589. * src/Data.{h, cc}
  8590. Rewritten.
  8591. * src/CompactPeerListProcessor.cc
  8592. Fixed typos.
  8593. * src/message.h
  8594. * src/MetaFileUtil.cc
  8595. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8596. Added "Status Legend" label to the explanation text of 'stat' in
  8597. download result and moved it to the last. BUG#1848214
  8598. * src/RequestGroupMan.cc
  8599. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8601. * src/Makefie.am
  8602. * test/Makefile.am
  8603. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8604. Fixed the bug that prevents aria2 from loading cookie file when expire
  8605. value is greater than 2^31-1. BUG#1851066
  8606. * src/CookieBoxFactory.cc
  8607. * test/CookieBoxFactoryTest.cc
  8608. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. Fixed possible memory leak when an exception is thrown.
  8610. * src/XML2SAXMetalinkProcessor.cc
  8611. Added Expat support. If both libxml2 and Expat are installed, then
  8612. libxml2 is used by default.
  8613. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8614. ExpatMetalinkProcessor according to the configuration.
  8615. * src/ExpatMetalinkProcessor.{h, cc}
  8616. * src/main.cc: Removed libxml2 specific header and init/free function.
  8617. * src/MetalinkProcessorFactory.{h, cc}
  8618. * src/MetalinkHelper.cc
  8619. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8620. * src/MetalinkProcessor.h
  8621. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8622. MetalinkProcessorTest is used instead.
  8623. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8624. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8625. MetalinkProcessorFactory::newInstance().
  8626. * m4/libexpat.m4
  8627. * configure.ac: Added configuration options for libexpat.
  8628. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8629. Disabled -s option in metalink download.
  8630. * src/Metalink2RequestGroup.cc
  8631. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. If several protocols are available for a mirror in metalink file,
  8633. aria2 now use one of them. --metalink-preferred-protocol option was
  8634. added to specify the preference of protocol.
  8635. * src/AbstractCommand.cc
  8636. * src/OptionHandlerFactory.cc
  8637. * src/ServerHost.{h, cc}
  8638. * src/Metalink2RequestGroup.cc
  8639. * src/RequestGroup.{h, cc}
  8640. * test/RequestGroupTest.cc
  8641. * src/option_processing.cc
  8642. * src/prefs.h
  8643. * src/HttpResponseCommand.cc
  8644. * src/MetalinkResource.{h, cc}
  8645. * src/FtpNegotiationCommand.cc
  8646. * src/MetalinkEntry.{h, cc}
  8647. * src/MetalinkEntryTest.cc
  8648. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Code cleanup and added debug log.
  8650. * src/PeerConnection.cc
  8651. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8652. Compiler error fix: applied the patch by Tiziano Mueller
  8653. * src/RequestGroup.cc
  8654. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8656. in stopped and completed event.
  8657. * src/AnnounceList.{h, cc}
  8658. * test/AnnounceListTest.cc
  8659. * src/DefaultBtAnnounce.cc
  8660. * test/DefaultBtAnnounceTest.cc
  8661. Sorted URLs.
  8662. * test/Metalink2RequestGroupTest.cc
  8663. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Removed unnecessary string copy. Updated doc and corrected indentation.
  8665. * src/Base64.cc
  8666. Fixed compilation warnings
  8667. * test/DataTest.cc
  8668. * test/HttpRequestTest.cc
  8669. * test/MetaFileUtilTest.cc
  8670. * test/RequestTest.cc
  8671. * Release 0.12.0
  8672. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8673. Updated translations
  8674. * po/{de,fr,ja,nl,ru}.po
  8675. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8676. translations. Many thanks to translators.
  8677. * po/{ca,es,it,pt_BR,sv}.po
  8678. * po/LINGUAS
  8679. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Added a notice about URL
  8681. * src/version_usage.cc
  8682. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8683. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8684. aria2 repeatedly sends stopped request when tracker returns error code.
  8685. * src/AnnounceList.cc
  8686. * test/AnnounceListTest.cc
  8687. * src/AnnounceTier.h
  8688. Added a message when ctrl-c is hit.
  8689. Now second ctrl-c is also handled in signal handler.
  8690. * src/RequestGroupMan.{h, cc}
  8691. * src/RequestGroup.{h, cc}
  8692. * src/MultiUrlRequestInfo.cc
  8693. * src/DownloadEngine.cc
  8694. * src/TrackerWatcherCommand.cc
  8695. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8696. Code cleanup
  8697. * src/Base64.cc (encode)
  8698. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8699. Changed Direct/IO enable/disable procesure in file allocation routine.
  8700. * src/SingleFileAllocationIterator.cc
  8701. (SingleFileAllocationIterator):
  8702. Disable directIO if offset is not multiple of 512.
  8703. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8704. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8705. Enable created SingleFileAllocationIterator's directIO.
  8706. * src/FileAllocationEntry.cc
  8707. (FileAllocationEntry): Enable directIO here.
  8708. (~FileAllocationEntry): Disable directIO here.
  8709. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8710. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8711. * src/Peer.{h, cc}
  8712. * src/DefaultPieceStorage.cc
  8713. * test/DefaultPieceStorageTest.cc
  8714. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Rewritten direct I/O support routine
  8716. * src/SingleFileAllocationIterator.cc
  8717. * src/MultiDiskAdaptor.{h, cc}
  8718. * src/ByteArrayDiskWriter.h
  8719. * src/AbstractSingleDiskAdaptor.h
  8720. * src/AbstractDiskWriter.cc
  8721. * src/DefaultPieceStorage.cc
  8722. * src/DiskWriter.h
  8723. * src/BinaryStream.h
  8724. * src/IteratableChunkChecksumValidator.cc
  8725. * src/IteratableChecksumValidator.cc
  8726. * src/CheckIntegrityEntry.cc
  8727. * src/FileAllocationEntry.cc
  8728. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Fixed typo
  8730. * src/version_usage.cc
  8731. Updated doc
  8732. * doc/aria2c.1.txt
  8733. * doc/aria2c.1
  8734. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. Fixed compile error without message digest support.
  8736. * src/FileMetalinkParserState.cc
  8737. * src/MetalinkParserController.{h, cc}
  8738. * test/XML2SAXMetalinkProcessorTest.cc
  8739. * test/MetalinkParserControllerTest.cc
  8740. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Enable direct I/O support in checksum checking.
  8742. * src/IteratableChunkChecksumValidator.{h, cc}
  8743. * test/IteratableChunkChecksumValidatorTest.cc
  8744. * src/CheckIntegrityEntry.cc
  8745. * src/PieceHashCheckIntegrityEntry.cc
  8746. * src/IteratableChecksumValidator.{h, cc}
  8747. * src/BtCheckIntegrityEntry.cc: Added doc.
  8748. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8749. Added --allow-piece-length-change option.
  8750. * src/DefaultBtProgressInfoFile.cc
  8751. * test/DefaultBtProgressInfoFileTest.cc
  8752. * src/OptionHandlerFactory.cc
  8753. * src/option_processing.cc
  8754. * src/prefs.h
  8755. * src/version_usage.cc
  8756. * doc/aria2c.1.txt
  8757. * doc/aria2c.1
  8758. Fixed: duplicated result entry appears when exception is thrown in
  8759. RequestGroup::createInitiateConnectionCommand().
  8760. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8761. Add RequestGroup to _requestGroup after RequetGroup::
  8762. createInitiateConnectionCommand() succeeds.
  8763. Externalized message
  8764. * src/XML2SAXMetalinkProcessor.cc
  8765. * src/message.h
  8766. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8767. Forced download abort when received negative response from http/ftp
  8768. server.
  8769. * src/HttpResponseCommand.cc
  8770. * src/FtpNegotiationCommand.cc
  8771. * src/HttpResponse.cc
  8772. * src/FtpConnection.cc
  8773. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8775. the predecessor, Xml2MetalinkParser class.
  8776. I tested them against 94KB metalink file with 1234 chunk checksums.
  8777. The new one parsed it in 22msec, while it took 6000msec with old one.
  8778. * src/XML2SAXMetalinkProcessor.{h, cc}
  8779. * test/XML2SAXMetalinkProcessorTest.cc
  8780. * src/MetalinkParserController.{h, cc}
  8781. * test/MetalinkParserControllerTest.cc
  8782. * src/MetalinkParserState.h: Also added 16 subclasses.
  8783. * src/main.cc
  8784. * src/Metalink2RequestGroup.cc
  8785. * src/MetalinkHelper.cc
  8786. * src/MetalinkEntry.cc
  8787. * src/ChunkChecksum.h
  8788. Rewritten Base64 class for better performance.
  8789. * src/Base64.{h, cc}
  8790. * test/Base64Test.cc
  8791. * src/HttpRequest.cc
  8792. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8793. Fixed the bug#1841757: aria2 will connect to server to only get
  8794. file size.
  8795. * src/StreamFileAllocationEntry.cc
  8796. * src/option_processing.cc
  8797. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8798. downloads.
  8799. * src/FtpNegotiationCommand.cc
  8800. Suppressed wrong message when finding PreDownloadHandler
  8801. * src/RequestGroup.cc
  8802. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Updated usage
  8804. * src/version_usage.cc
  8805. Updated man page
  8806. * doc/aria2c.1.txt
  8807. * doc/aria2c.1
  8808. Updated po files
  8809. * po/aria2c.pot
  8810. * po/*.po
  8811. * po/*.gmo
  8812. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Eliminated g++-4.2 warning
  8814. * src/DownloadHandlerConstants.{h, cc}
  8815. * src/Util.cc
  8816. * test/MetaFileUtilTest.cc
  8817. * test/PStringBuildVisitorTest.cc
  8818. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8819. * src/RequestGroup.cc
  8820. * src/BtCheckIntegrityEntry.cc
  8821. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8822. Fixed a2io.h
  8823. * src/a2io.h
  8824. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Added direct I/O support. The current implementation uses O_DIRECT,
  8826. which is not posix standard and is tested on linux 2.6.21.
  8827. Currently only file allocation uses direct I/O.
  8828. * src/SingleFileAllocationIterator.{h, cc}
  8829. * test/SingleFileAllocationIteratorTest.cc
  8830. * src/MultiFileAllocationIterator.{h, cc}
  8831. * test/MultiFileAllocationIteratorTest.cc
  8832. * src/BinaryStream.h
  8833. * src/DiskWriter.h
  8834. * src/AbstractDiskWriter.{h, cc}
  8835. * src/ByteArrayDiskWriter.h
  8836. * src/DiskAdaptor.h
  8837. * src/AbstractSingleDiskAdaptor.{h, cc}
  8838. * src/MultiDiskAdaptor.{h, cc}
  8839. * src/FileAllocationEntry.cc
  8840. * src/Util.{h, cc}
  8841. * src/OptionHandlerFactory.cc
  8842. * src/prefs.h
  8843. * src/version_usage.cc
  8844. * src/option_processing.cc
  8845. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8846. handleException.
  8847. * src/MultiFileAllocationIterator.cc
  8848. Added EINTR handling
  8849. * src/SocketCore.cc
  8850. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8851. Updated usage
  8852. * src/version_usage.cc
  8853. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Applied Ross's patch for MinGW port.
  8855. * src/DownloadEngine.h
  8856. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Set Content-Type to SingleFileDownloadContext when http response is
  8858. received.
  8859. * src/HttpResponseCommand.cc
  8860. * src/HttpResponse.{h, cc}
  8861. * test/HttpResponseTest.cc
  8862. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. Rewritten to add content-type support.
  8864. * src/DownloadHandler.{h, cc}
  8865. * src/BtPostDownloadHandler.{h, cc}
  8866. * test/BtPostDownloadHandlerTest.cc
  8867. * src/MetalinkPostDownloadHandler.{h, cc}
  8868. * test/MetalinkPostDownloadHandlerTest.cc
  8869. * src/PostDownloadHandler.{h, cc}
  8870. * src/DownloadHandlerConstants.{h, cc}
  8871. * src/RequestGroup.cc
  8872. * src/HttpResponseCommand.cc
  8873. * src/FtpNegotiationCommand.cc
  8874. * src/SingleFileDownloadContext.{h, cc}
  8875. * src/RequestGroup.h
  8876. * src/RequestGroupCriteria.h
  8877. * src/ContentTypeRequestGroupCriteria.h
  8878. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8879. If it is give, metalink/torrent file is not written to the disk, but
  8880. just is kept in memory. Parsing is occurred on memory.
  8881. * src/MetalinkHelper.{h, cc}
  8882. * src/MetalinkProcessor.h
  8883. * src/Xml2MetalinkProcessor.{h, cc}
  8884. * test/Xml2MetalinkProcessorTest.cc
  8885. * src/DownloadHandlerFactory.{h, cc}
  8886. * test/DownloadHandlerFactoryTest.cc
  8887. * src/PreDownloadHandler.{h, cc}
  8888. * src/OptionHandlerFactory.cc
  8889. * src/DefaultBtContext.{h, cc}
  8890. * test/DefaultBtContextTest.cc
  8891. * src/version_usage.cc
  8892. * src/Metalink2RequestGroup.{h, cc}
  8893. * src/RequestGroup.{h, cc}
  8894. * src/a2functional.h
  8895. * test/a2functionalTest.cc
  8896. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8897. * src/OptionHandlerImpl.h
  8898. * src/prefs.h
  8899. * src/Util.{h, cc}
  8900. * test/UtilTest.cc
  8901. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8902. memory usage.
  8903. * src/RequestGroupMan.{h, cc}
  8904. * src/DownloadEngine.cc
  8905. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8906. WeakHandle to SharedHandle because WeakHandle could be null.
  8907. * src/RequestGroup.{h, cc}
  8908. * src/DownloadEngineFactory.cc
  8909. * src/DownloadResult.h
  8910. Set totalLength after download finished
  8911. * src/UnknownLengthPieceStorage.{h, cc}
  8912. Keep torrent file specified in metalink in memory.
  8913. * src/Metalink2RequestGroup.cc
  8914. * src/BtDependency.cc
  8915. * src/TrueRequestGroupCriteria.h
  8916. Fixed the bug: seekg is used where seekp should be used.
  8917. * src/ByteArrayDiskWriter.cc
  8918. * test/ByteArraydiskWriterTest.cc
  8919. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8920. Fixed syntax error
  8921. * test/SequenceTest.cc
  8922. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8924. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8925. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8926. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8927. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Added the check to see whether ares_host_callback accepts timeouts
  8929. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8930. * src/NameResolver.{h, cc}
  8931. * m4/libcares.m4
  8932. * configure.ac: Set C++ for language choice.
  8933. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8934. Fixed: compilation fails without c-ares/ares
  8935. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8936. Generate http/ftp commands only when download is incomplete.
  8937. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8938. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8939. Corrected typo. Examples are removed since they are available in man
  8940. page.
  8941. * src/version_usage.cc
  8942. Updated man page.
  8943. * doc/aria2c.1
  8944. * doc/aria2c.1.txt
  8945. * doc/makeman: Commented out sed command.
  8946. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8947. Throw DlAbortEx when a remote file is not found.
  8948. * src/HttpResponse.cc
  8949. * src/FtpNegotiationCommand.cc
  8950. * src/message.h
  8951. Overwrite an existing file if --allow-overwrite=true is given.
  8952. * src/RequestGroup.cc
  8953. Removed unused functions
  8954. * src/AbstractCommand.h
  8955. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8956. Removed 'extern' from 'extern typedef ...' in src/*.h
  8957. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Updated usage
  8959. * src/version_usage.cc
  8960. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8961. Trim announce URL
  8962. * src/DefaultBtContext.cc
  8963. * test/ShaVisitorTest.cc
  8964. Trim argument s. Give trimed s to exception constructor.
  8965. * src/Util.cc (parseInt)(parseLLInt)
  8966. * test/UtilTest.cc
  8967. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8968. Set precision back to 1.
  8969. * src/ConsoleStatCalc.cc (calculateStat)
  8970. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8971. Replaced strtol with Util::parseInt
  8972. * src/ChunkedEncoding.cc
  8973. * src/HttpConnection.cc
  8974. * src/CookieBoxFactory.cc
  8975. * src/ParameterizedStringParser.cc
  8976. * src/Util.cc
  8977. * test/UtilTest.cc
  8978. * test/OptionHandlerTest.cc
  8979. * src/Request.cc
  8980. Throw exception when empty string is given. The message for exception
  8981. changed.
  8982. * src/Util.cc (parseInt)(parseLLInt)
  8983. * src/message.h
  8984. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8985. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8986. set to 1.
  8987. * src/ConsoleStatCalc.cc (calculateStat)
  8988. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8989. Preallocate non-requested file which is adjacent forward to requested
  8990. file('requested' files means the files given in --select-file option)
  8991. if they share a same piece.
  8992. This fixes long pause in the file system which doesn't support sparse
  8993. files like FAT32 while downloading.
  8994. * src/MultiFileAllocationIterator.{h, cc}
  8995. * test/MultiFileAllocationIteratorTest.cc
  8996. * src/FileEntry.{h, cc}
  8997. Removed unused _option.
  8998. * src/MultiDiskAdaptor.h
  8999. * test/MultiDiskAdaptorTest.cc
  9000. * src/DefaultPieceStorage.cc
  9001. Set the default value of --seed-ratio to 1.0.
  9002. If 0.0 is given, then seeding continues regardless of share ratio.
  9003. * src/version_usage.cc
  9004. * src/option_processing.cc
  9005. * src/BtSetup.cc
  9006. * doc/aria2c.1.txt
  9007. * doc/aria2c.1
  9008. Fixed: Selective download is not working in BitTorrent
  9009. * src/RequestGroup.cc
  9010. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9011. * src/PieceStorage.h
  9012. * test/MockPieceStorage.h
  9013. * src/UnknownLengthPieceStorage.h
  9014. * src/DefaultPieceStorage.{h, cc}
  9015. * src/Metalink2RequestGroup.cc
  9016. * src/RequestGroup.cc
  9017. * src/Sequence.h
  9018. * test/SequenceTest.cc
  9019. * src/IntSequence.h
  9020. * src/message.h
  9021. * src/Util.{h, cc}
  9022. * test/UtilTest.cc
  9023. Added new function 'parse' to catch exception thrown by subclass's
  9024. parseArg
  9025. * src/OptionHandler.h
  9026. * src/OptionParser.cc
  9027. * src/NameMatchOptionHandler.h
  9028. * src/OptionHandlerImpl.h
  9029. * test/OptionHandlerTest.cc
  9030. Added IntegerRangeOptionHandler. Used for --listen-port and
  9031. --select-file. Now --listen-port accepts range of port.
  9032. * src/OptionHandlerFactory.cc
  9033. * src/version_usage.cc
  9034. * src/OptionHandlerImpl.h
  9035. * src/option_processing.cc
  9036. * src/BtSetup.cc
  9037. * src/PeerListenCommand.{h, cc}
  9038. * doc/aria2c.1.txt
  9039. * doc/aria2c.1
  9040. Implemented operator< for Exception class to provide easy way to print
  9041. exception stack trace.
  9042. * src/Exception.{h, cc}
  9043. * src/main.cc
  9044. * src/option_processing.cc
  9045. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9046. * src/version_usage.cc
  9047. (showVersion): Reworked.
  9048. (showUsage): Added examples.
  9049. Removed Hint for total length and file name.
  9050. * src/Metalink2RequestGroup.cc
  9051. * src/RequestGroup.{h, cc}
  9052. * src/HttpResponseCommand.cc
  9053. * src/FtpNegotiationCommand.cc
  9054. Now --follow-torrent and --follow-metalink option work properly.
  9055. * src/RequestGroup.cc
  9056. Updated man page
  9057. * doc/aria2c.1.txt
  9058. * doc/aria2c.1
  9059. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. Removed.
  9061. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9062. Use Segment::operator==()
  9063. * src/HttpConnection.cc
  9064. * src/Segment.h
  9065. Updated usage
  9066. * src/version_usage.cc
  9067. Added EINTR treatment.
  9068. * src/SocketCore.cc
  9069. * src/AbstractDiskWriter.cc
  9070. Rewritten.
  9071. * src/Util.cc (rangedFileCopy)
  9072. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9073. Fixed typo.
  9074. * src/version_usage.cc
  9075. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. Implemented. Now -c option works fine.
  9077. * src/DefaultPieceStorage.cc (markPiecesDone)
  9078. * test/DefaultPieceStorageTest.cc
  9079. Removed.
  9080. * src/SegmentMan.{h, cc}
  9081. (markAllPiecesDone)
  9082. (markPieceDone)
  9083. Synchronized po files with
  9084. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9085. * src/fr.po
  9086. * src/ru.po
  9087. * src/de.po
  9088. * src/ja.po
  9089. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9090. Added ifdef and some modifications to compile without BitTorrent,
  9091. Metalink, MessageDigest
  9092. support.
  9093. * src/PieceHashCheckIntegrityEntry.cc
  9094. * src/MetalinkEntry.h
  9095. * src/version_usage.cc
  9096. * src/main.cc
  9097. * src/DownloadEngine.{h, cc}
  9098. * src/Metalink2RequestGroup.cc
  9099. * src/Peer.cc
  9100. * src/RequestGroup.cc
  9101. * src/MetalinkHelper.cc
  9102. * test/DefaultPieceStorageTest.cc
  9103. * test/MetalinkPostDownloadHandlerTest.cc
  9104. * test/Metalink2RequestGroupTest.cc
  9105. Hide TOTAL SPD when all downloads complete.
  9106. * src/ConsoleStatCalc.cc
  9107. Log target system information.
  9108. * src/main.cc
  9109. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Now --metalink-location accepts a comma-deliminated list of locations.
  9111. * src/MetalinkEntry.{h, cc}
  9112. * test/MetalinkEntryTest.cc
  9113. * src/version_usage.cc
  9114. * src/Metalink2RequestGroup.cc
  9115. * src/Xml2MetalinkProcessor.cc
  9116. * test/Xml2MetalinkProcessorTest.cc
  9117. * doc/aria2c.1.txt
  9118. * doc/aria2c.1
  9119. * src/Util.cc (toUpper)(toLower): Rewritten.
  9120. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Added the ability to detect duplicate download entry which is about to
  9122. download the same file other RequestGroup is downloading.
  9123. * src/RequestGroup.cc
  9124. * src/HttpResponseCommand.cc
  9125. * src/FtpNegotiationCommand.cc
  9126. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9127. Recalculates download progress when loading a control file,
  9128. if the piece length of DownloadContext is different from the one saved
  9129. in the control file. Currently in-flight pieces are ignored.
  9130. * src/DefaultBtProgressInfoFile.cc
  9131. * test/DefaultBtProgressInfoFileTest.cc
  9132. * src/Util.{h, cc}
  9133. * test/UtilTest.cc
  9134. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9135. Do not rotate tiers in announce-list.
  9136. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9137. AnnounceList::allTiersFailed() used instead to detect whether all
  9138. tiers are tried and failed.
  9139. * test/DefaultBtAnnounceTest.cc
  9140. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9141. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9142. * test/AnnounceListTest.cc
  9143. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9144. clause. Catch RecoverableException instead of DlRetryEx instead.
  9145. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Implemented checksum validation feature(1 checksum for each file)
  9147. The validation takes place after the download.
  9148. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9149. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9150. * src/CheckIntegrityCommand.cc: Changed log message.
  9151. * src/Metalink2RequestGroup.cc: Set checksum to
  9152. SingleFileDownloadContext.
  9153. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9154. PieceHashCheckIntegrity class.
  9155. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9156. PieceHashCheckIntegrity class.
  9157. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9158. * src/IteratableValidator.h: New class.
  9159. * src/message.h
  9160. * src/CheckIntegrityEntry.{h, cc}
  9161. * src/IteratableChunkChecksumValidator.{h, cc}
  9162. * src/SingleFileDownloadContext.h
  9163. * src/DownloadCommand.cc
  9164. --allow-overwrite=true is no longer needed to check file integrity
  9165. before download in BitTorrent download.
  9166. * src/RequestGroup.cc (getInitialCommand)
  9167. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9168. throws exception.
  9169. * src/RequestGroupMan.cc (getInitialCommands)
  9170. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. urlencode the given url inside Request::parseUrl(...)
  9172. * src/Request.{h, cc}
  9173. * src/Util.{h, cc}
  9174. * test/RequestTest.cc
  9175. Removed #!metalink3! notation support because it is deleted from
  9176. the metalink specification.
  9177. * src/Request.{h, cc}
  9178. * test/RequestTest.cc
  9179. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9180. Don't connect server before checking file integrity at startup, if
  9181. filesize and output file path are known.
  9182. * src/AbstractCommand.cc
  9183. * src/StreamFileAllocationEntry.cc
  9184. * src/Metalink2RequestGroup.cc
  9185. * src/RequestGroup.{h, cc}
  9186. * src/HttpResponseCommand.cc
  9187. * src/FtpNegotiationCommand.cc
  9188. Added DownloadFailureException. If it is thrown, RequestGroup should
  9189. halt.
  9190. * src/AbstractCommand.cc
  9191. * src/DownloadFailureException.h
  9192. * src/RequestGroup.cc
  9193. Catch RecoverableException, instead of DlAbortEx.
  9194. * src/RequestGroupMan.cc
  9195. * src/FillRequestGroupCommand.cc
  9196. * src/MetaFileUtil.cc
  9197. * src/IteratableChunkChecksumValidator.cc
  9198. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9199. getGID())
  9200. * src/CheckIntegrityCommand.cc
  9201. * src/message.h
  9202. Print gid instead of idx.
  9203. * src/RequestGroupMan.cc
  9204. Removed exception throwers declaration.
  9205. * src/DirectDiskAdaptor.{h, cc}
  9206. * src/SocketCore.{h, cc}
  9207. * src/MultiDiskAdaptor.{h, cc}
  9208. * src/HttpConnection.{h, cc}
  9209. * src/HttpResponse.{h, cc}
  9210. * src/DiskAdaptor.{h, cc}
  9211. * src/CopyDiskAdaptor.{h, cc}
  9212. * src/MultiDiskAdaptor.{h, cc}
  9213. * src/HttpHeaderProcessor.{h, cc}
  9214. * src/AbstractSingleDiskAdaptor.{h, cc}
  9215. * src/Util.{h, cc}
  9216. * test/UtilTest.cc
  9217. * src/DefaultDiskWriter.{h, cc}
  9218. * src/FtpConnection.{h, cc}
  9219. * src/AbstractDiskWriter.{h, cc}
  9220. Removed duplicate code.
  9221. * src/StreamCheckIntegrityEntry.cc
  9222. Removed unnecessary include.
  9223. * src/DiskWriter.h
  9224. Included Exception.h
  9225. * src/option_processing.cc
  9226. Included 2 files and added doc
  9227. * src/TrackerWatcherCommand.cc
  9228. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9229. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9230. Changed CheckIntegrityEntry interface so that it can define
  9231. the action when all the chunk checksums are valid.
  9232. * src/CheckIntegrityEntry.h
  9233. * src/StreamCheckIntegrityEntry.{h, cc}
  9234. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9235. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9236. to exit rather than doing seeding. So, it would be good to toggle this
  9237. behavior.
  9238. * src/CheckIntegrityCommand.cc
  9239. * src/AbstractCommand.cc
  9240. * src/RequestGroup.cc
  9241. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9242. Reflect the download length of in-flight pieces.
  9243. It makes the download length readout more precise.
  9244. * src/DefaultPieceStorage.{h, cc}
  9245. * test/DefaultPieceStorageTest.cc
  9246. * src/a2functional.h
  9247. * test/a2functionalTest.cc
  9248. Lower CPU load when --max-download-limit is used.
  9249. There is up and down in speed indicator when enabling
  9250. http-pipelining but a download goes well. I think the problem is that
  9251. because http-pipelining is enabled, DownloadCommand is created for
  9252. each segment and in its constructor, PeerStat::downloadStart() is
  9253. called. In PeerStat::downloadStart(), speed calculation object is
  9254. reseted, which makes download speed zero.
  9255. * src/DownloadCommand.cc
  9256. Rewritten using accumulate.
  9257. * src/RequestGroupMan.cc (calculateStat)
  9258. Code clearnup.
  9259. * src/FtpNegotiationCommand.cc
  9260. * src/HttpResponseCommand.cc
  9261. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9262. Fixed: Can not resume: aria2 reports download already finished.
  9263. * src/AbstractCommand.{h, cc}
  9264. * src/HttpResponseCommand.cc
  9265. * src/FtpNegotiateCommand.cc
  9266. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9267. Now a file is stored in the directory specified in .metalnk file
  9268. (file[@name]).
  9269. * src/Metalink2RequestGroup.cc
  9270. Create the directory structure when opening the file if it doesn't
  9271. exist.
  9272. * src/AbstractDiskWriter.cc
  9273. * src/Util.{h, cc}
  9274. * src/File.h
  9275. * test/UtilTest.cc
  9276. Removed file name comparison
  9277. * src/Metalink2RequestGroup.cc
  9278. * src/HttpResponseCommand.cc
  9279. Rewritten using Util::mkdirs()
  9280. * src/FileEntry.cc (setupDir)
  9281. * test/FileEntryTest.cc
  9282. Updated doc
  9283. * src/SingleFileDownloadContext.h
  9284. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. Now SleepCommand dispatches nextCommand when halt is requested.
  9286. It avoids a possible long wait after hitting CTRL-C.
  9287. * src/SleepCommand.{h, cc}
  9288. * src/RequestGroupAware.{h, cc}
  9289. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9291. to open listen port, then remove the port number from the tracker
  9292. request.
  9293. * src/DefaultBtAnnounce.cc
  9294. * test/DefaultBtAnnounceTest.cc
  9295. * test/MockPieceStorage.h
  9296. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9297. them more testable.
  9298. * src/DefaultBtAnnounce.{h, cc}
  9299. * src/DefaultBtContext.{h, cc}
  9300. * src/Util.{h, cc}
  9301. * test/DefaultBtAnnounceTest.cc
  9302. * test/DefaultBtContextTest.cc
  9303. * test/UtilTest.cc
  9304. Added 'B' to upload bytes readout.
  9305. * src/ConsoleStatCalc.cc
  9306. Now the listen port for BitTorrent download is opened when it is
  9307. needed.
  9308. * src/DownloadEngineFactory.cc
  9309. * src/BtSetup.{h, cc}
  9310. * src/PeerListenCommand.{h, cc}
  9311. Now an exception thrown while parsing tracker response is now logged.
  9312. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9313. called, which means no retry is made in this case, assuming a tracker
  9314. has a problem.
  9315. * src/TrackerWatcherCommand.cc
  9316. Fixed: downloading a file whose length is unkown fails.
  9317. * src/DownloadCommand.cc
  9318. Simplified prepareForNextSegment()
  9319. * src/DownloadCommand.cc
  9320. Updated
  9321. * po/POTFILES.in
  9322. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9323. Re-implemented a file listing for Metalink, which was dropped while
  9324. http/ftp/torrent integration was being implemented.
  9325. * src/MetalinkHelper.{h, cc}: New class.
  9326. * test/MetalinkHelperTest.cc
  9327. * src/main.cc
  9328. * src/Metalink2RequestGroup.cc
  9329. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9330. Added the ability to display the detailed torrent file information.
  9331. Now -S option gives not only a file listing, but also total download
  9332. length, info hash, announce URI, piece length, the number of pieces,
  9333. and mode(single or multi-torrent).
  9334. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9335. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9336. KiB)
  9337. * test/UtilTest.cc
  9338. * src/main.cc
  9339. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9340. Added ftp://USER:PASSWD@Servername automatic parsing.
  9341. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9342. _password. Recognize username and password in URI.
  9343. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9344. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9345. * src/RequestFactory.{h, cc}: Removed.
  9346. * src/AuthConfigFactory.{h, cc}: New class.
  9347. * src/FtpConnection.cc: Use AuthConfigFactory.
  9348. * src/HttpRequest.cc: Use AuthConfigFactory.
  9349. * test/HttpRequestTest.cc: Updated.
  9350. * test/RequestTest.cc: Updated.
  9351. * test/AuthConfigFactoryTest.cc: New class.
  9352. * test/RequestFactoryTest.cc: Removed.
  9353. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9354. Use RequestGroup::allDownloadFinished() to decide whether the control
  9355. file should be removed or saved.
  9356. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9357. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9358. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9359. Use File::renameTo()
  9360. * src/DefaultBtProgressInfoFile.cc
  9361. Added --no-file-allocation-limit command-line option.
  9362. * src/version_usage.cc
  9363. * src/option_processing.cc
  9364. * src/OptionHandlerFactory.cc
  9365. * src/RequestGroup.{h, cc}
  9366. * src/BtCheckIntegrityEntry.cc
  9367. * src/StreamCheckIntegrityEntry.cc
  9368. * src/prefs.h
  9369. * doc/aria2c.1.txt
  9370. * doc/aria2c.1
  9371. Now prealloc is the default value for --file-allocation option.
  9372. * src/version_usage.cc
  9373. * src/option_processing.cc
  9374. * doc/aria2c.1.txt
  9375. * doc/aria2c.1
  9376. Don't URL-encode user-agent.
  9377. * src/HttpRequest.cc
  9378. Updated translations
  9379. * po/LINGUAS: Added nl for Dutch translation.
  9380. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9381. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9382. * po/POTFILES.in: Updated.
  9383. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9384. Added the ability to recognize url-list in a torrent file.
  9385. The retrieved URLs are attached to the corresponding FileEntry.
  9386. * src/DefaultBtContext.{h, cc}
  9387. * src/FileEntry.{h, cc}
  9388. * test/DefaultBtContextTest.cc
  9389. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9390. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9391. after the download finishes.
  9392. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9393. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9394. the data smaller than block length.
  9395. A block length can be specified by constructor's argument.
  9396. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9397. Get a missing piece in the range of given FileEntry. This function is
  9398. not used in the program yet.
  9399. * src/Util.h: Added some macros.
  9400. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Added HTTP/1.1 keep alive and pipelining support.
  9402. See --enable-http-keep-alive and --enable-http-pipelining option.
  9403. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9404. Segment.
  9405. * src/HttpDownloadCommand.{h, cc}
  9406. * src/OptionHandlerFactory.cc
  9407. * src/HttpConnection.{h, cc}
  9408. * src/version_usage.cc
  9409. * src/HttpInitiateConnectionCommand.cc
  9410. * src/FtpInitiateConnectionCommand.cc
  9411. * src/Segment.h
  9412. * src/HttpRequestCommand.{h, cc}
  9413. * src/option_processing.cc
  9414. * src/prefs.h
  9415. * src/HttpResponseCommand.cc
  9416. * src/SegmentMan.{h, cc}
  9417. * src/FtpNegotiateCommand.cc
  9418. * src/HttpProxyResponseCommand.cc
  9419. * src/Request.cc
  9420. * src/HttpRequest.cc
  9421. * src/DownloadCommand.cc
  9422. * test/HttpRequestTest.cc
  9423. * test/RequestTest.cc
  9424. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9425. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9426. finished.
  9427. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9428. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9429. catching it inside the method.
  9430. When no file entry is found in a metalink without querying user
  9431. preferences, throw the exception with the error message that suggests
  9432. metalink file is probably broken.
  9433. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9434. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9436. processed.
  9437. * src/RequestGroupMan.cc (removeStoppedGroup)
  9438. Added debug message.
  9439. * src/BtPostDownloadHandler.cc
  9440. * src/MetalinkPostDownloadHandler.cc
  9441. * src/PostDownloadHandler.{h, cc}
  9442. * src/RequestGroup.cc
  9443. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9444. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9445. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9447. stops and there are any unfinished or in-progress downloads.
  9448. Added the legend of "stat".
  9449. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. Throw exception when chunck checksum verification fails.
  9451. * src/DownloadCommand.cc (validatePieceHash): New function.
  9452. * src/PiecedSegment.{h, cc} (clear): New function.
  9453. * src/GrowSegment.{h, cc} (clear): New function.
  9454. * src/Segment.h (clear): New function.
  9455. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9456. * test/SegmentTest.cc
  9457. * test/GrowSegmentTest.cc
  9458. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9459. Do not send referer when redirected.
  9460. * src/Request.cc (redirectUrl)
  9461. * test/RequestTest.cc
  9462. * test/HttpRequestTest.cc
  9463. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Implemented BitTorrent/http/ftp integrated download.
  9465. I've rewritten lots of files and now some headers have forward
  9466. class declarations to reduce compile time.
  9467. The implementation is extremely alpha stage, I recommend to use this
  9468. for testing purpose only.
  9469. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Fixed the compilation error on 64bit platform.
  9471. * test/HttpHeaderProcessorTest.cc
  9472. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9473. Merged Ross's patch that fixes compilation problem in MinGW
  9474. * test/DefaultBtProgressInfoFileTest.cc
  9475. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9476. Updated fr.po by sebone
  9477. * po/fr.po
  9478. Updated man page.
  9479. * doc/aria2c.1.txt
  9480. * Release 0.11.3
  9481. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9482. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9483. failure in Metalink.
  9484. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9485. Automatically save *.aria2 control file of http/ftp download in every
  9486. 60 seconds.
  9487. * src/AutoSaveCommand.{h, cc}: New class.
  9488. * src/TimeBasedCommand.{h, cc}: New class.
  9489. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9490. Disable parameterized URI support by default. Added -P option to
  9491. enable the feature.
  9492. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9493. * src/OptionHandlerFactory.cc
  9494. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9495. Updated Japanese translation.
  9496. * po/ja.po
  9497. Updated man page.
  9498. * doc/aria2c.1.txt
  9499. * Release 0.11.3-rc
  9500. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9502. it is successful, then renamed to *.aria2.
  9503. This prevents *.aria2 file from being truncated or corrupted when
  9504. file system becomes out of space.
  9505. * src/DefaultBtProgressInfoFile.cc (save)
  9506. * src/SegmentMan.cc (save)
  9507. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9508. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Reduced the fragmentation of bitfield in http/ftp download.
  9510. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9511. * test/BitfieldManTest.cc
  9512. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9513. Added the ability to disable segmented download in .metalink.
  9514. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9515. 'url' tag.
  9516. * src/MetalinkEntry.{h, cc}
  9517. * src/RequestResource.{h, cc}
  9518. * src/MetalinkRequestInfo.cc
  9519. * src/Xml2MetalinkProcessor.cc
  9520. * test/Xml2MetalinkProcessorTest.cc
  9521. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. Added parameterized URI support.
  9523. * src/main.cc: -Z option added.
  9524. * src/OptionHandlerFactory.cc
  9525. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9526. * src/PStringDatum.h: New class.
  9527. * src/PStringSegment.{h,cc}: New class.
  9528. * src/PStringNumLoop.h: New class.
  9529. * src/PStringSelect.h: New class.
  9530. * src/NumberDecorator.h: New class.
  9531. * src/FixedWidthNumberDecorator.h: New class.
  9532. * src/AlphaNumberDecorator.h: New class.
  9533. * src/PStringVisitor.h: New class.
  9534. * src/PStringBuildVisitor.{h,cc}: New class.
  9535. * src/ParameterizedStringParser.{h,cc}: New class.
  9536. * src/Util.{h,cc}
  9537. (isNumber): New function.
  9538. (isLowercase): New function.
  9539. (isUppercase): New function.
  9540. (alphaToNum): New function.
  9541. * test/ParameterizedStringParserTest.cc: New class.
  9542. * test/AlphaNumberDecoratorTest.cc: New class.
  9543. * test/PStringBuildVisitorTest.cc: New class.
  9544. * test/UtilTest.cc
  9545. (testIsNumber): New function.
  9546. (testIsLowercase): New function.
  9547. (testIsUppercase): New function.
  9548. (testAlphaToNum): New function.
  9549. Added '\n' after the error message
  9550. * src/RequestInfo.h (printDownloadAbortMessage)
  9551. Added auto file renaming feature in http(s)/ftp download.
  9552. * src/main.cc: Added --auto-file-renaming command-line option.
  9553. * src/OptionHandlerFactory.cc
  9554. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9555. * src/RequestGroup.{h, cc}
  9556. (shouldCancelDownloadForSafety): Rewritten
  9557. (tryAutoFileRenaming): New function.
  9558. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9559. * src/HttpResponseCommand.cc
  9560. (executeInternal): Removed the call to RequestGroupMan::
  9561. isSameFileBeingDownloaded()
  9562. * src/FtpNegotiateCommand.cc
  9563. (recvSize): Removed the call to RequestGroupMan::
  9564. isSameFileBeingDownloaded()
  9565. * test/RequestGroupTest.cc: New class.
  9566. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9567. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9568. IO.
  9569. * src/DefaultBtProgressInfoFile.cc
  9570. * src/MetaFileUtil.cc
  9571. * src/SimpleLogger.cc
  9572. * src/SegmentMan.cc
  9573. * src/Util.cc
  9574. * src/Platform.cc
  9575. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9576. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9577. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9578. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9579. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9580. Fixed the bug that prevents file allocation is not done when
  9581. dowloading multi-torrent file.
  9582. * src/AbstractDiskWriter.cc (openFile)
  9583. Increase the maximum number of -j option from 15 to 45.
  9584. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9585. Added fr.po, thanks to Charles Landemaine.
  9586. * po/fr.po
  9587. * po/LINGUAS
  9588. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9589. gcc 3.4.4 support:
  9590. * src/DefaultBtContext.cc: int32_t -> int
  9591. * src/main.cc: int -> int32_t, int32_t -> int
  9592. * src/messageDigest.h: uint32_t -> unsigned int
  9593. * src/NameResolver.h: int32_t -> int
  9594. * src/PeerConnection.cc: int -> int32_t
  9595. * src/SpeedCalc.cc: int32_t -> int
  9596. * src/TrackerUpdateCommand.h: int -> int32_t
  9597. * src/Util.cc: int32_t -> int
  9598. * src/Util.h: int32_t -> int
  9599. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9600. * test/AnnounceListTest.cc: int -> int32_t
  9601. * test/ChunkedEncodingTest.cc: int -> int32_t
  9602. * test/DataTest.cc: int -> int32_t
  9603. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9604. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9605. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9606. * test/FeatureConfigTest.cc: int -> int32_t
  9607. * test/MetalinkEntryTest.cc: int -> int32_t
  9608. * test/MockBtRequestFactory.h: int -> int32_t
  9609. * test/MockPieceStorage.h: int -> int32_t
  9610. * test/OptionTest.cc: int -> int32_t
  9611. * test/RequestTest.cc: int -> int32_t
  9612. * test/SegmentManTest.cc: int -> int32_t
  9613. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9614. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9615. Move sleep functions to Util class:
  9616. * src/Util.cc
  9617. (sleep): New function.
  9618. (usleep): New function.
  9619. * src/DownloadCommand.cc: sleep -> Util::sleep
  9620. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9621. MinGW build enhancements. The following files are added:
  9622. * src/timegm.{c,h}
  9623. Changes to support the above new files:
  9624. * configure.ac
  9625. * src/Makefile.am
  9626. * src/a2time.h
  9627. * src/Util.cc:
  9628. * src/strptime.c: Added support for %Z option.
  9629. Fixed MinGW non-blocking bug.
  9630. * src/SocketCore.cc
  9631. * src/HttpRequestCommand.cc
  9632. Miscellenous build fixes/enhancements.
  9633. * configure.ac: Added summary report.
  9634. * src/Platform.h: Tweaked #include's.
  9635. * src/a2netcompat.h: Tweaked #include's.
  9636. * src/strptime.h: Tweaked #include's.
  9637. * src/gai_strerror.c: Tweaked #include's.
  9638. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9639. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9640. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9641. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9642. Increased the initial connection size in BitTorrent download to 40.
  9643. * src/BtRuntime.h
  9644. Added the usage message of --peer-id-prefix option.
  9645. * src/main.cc
  9646. * Release 0.11.2
  9647. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9648. MessageDigestHelper is introduced in order to simplify the use
  9649. of message digest. Removed repeated code.
  9650. The message digest algorithm is now specified by string, like "sha1",
  9651. "md5".
  9652. * src/messageDigest.{h, cc}
  9653. * src/MessageDigestHelper.{h, cc}: New class.
  9654. * src/DefaultPieceStorage.cc
  9655. * src/DefaultBtContext.{h, cc}
  9656. (computeFastSet): New function.
  9657. (setInfoHash): Added for unit testing.
  9658. (setNumPieces): Added for unit testing.
  9659. * src/DefaultBtInteractive.cc
  9660. * src/BtPieceMessage.cc
  9661. * src/Peer.cc
  9662. * src/Checksum.h
  9663. * src/message.h
  9664. * src/IteratableChecksumValidator.h
  9665. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9666. inside it.
  9667. * src/SegmentMan.{h, cc}
  9668. (checkIntegrity): Removed.
  9669. * src/IteratableChunkChecksumValidator.{h, cc}
  9670. * src/Util.h
  9671. (sha1Sum): Removed.
  9672. (simpleMessageDigest): Removed.
  9673. (fileChecksum): Removed.
  9674. (computeFastSet): Removed.
  9675. * src/ShaVisitor.cc
  9676. * src/ChunkChecksum.h
  9677. * src/DownloadCommand.cc
  9678. Removed messageDigest virtual functions.
  9679. * src/MultiDiskAdaptor.{h, cc}
  9680. * src/DiskAdaptor.h
  9681. * src/ByteArrayDiskWriter.h
  9682. * src/DiskWriter.h
  9683. * src/DiskAdaptorWriter.h
  9684. * src/AbstractSingleDiskAdaptor.{h, cc}
  9685. * src/AbstractDiskWriter.{h, cc}
  9686. Fixed comilation error when message digest is disabled.
  9687. * src/MetalinkEntry.{h, cc}
  9688. * src/MetalinkRequestInfo.cc
  9689. Removed srandom and random.
  9690. * src/SimpleRandomizer.h
  9691. Added size() virtual function to DiskAdaptor
  9692. * src/MultiDiskAdaptor.h
  9693. Fixed the bug that causes that files are not opened correctly in
  9694. multi-file torrent.
  9695. * src/TorrentRequestInfo.cc
  9696. * src/MultiDiskAdaptor.cc
  9697. Added SHA256 support
  9698. * src/messageDigest.cc
  9699. * src/Xml2MetalinkProcessor.cc
  9700. Show supported message digest algorithms
  9701. * src/main.cc
  9702. Updated contact info.
  9703. * src/main.cc
  9704. Applied Ross's patch
  9705. * src/a2netcompat.h
  9706. * src/main.cc
  9707. Fixed the bug that prevents a remote metalink from not being processed
  9708. even if '-o foo.metalink' is specified.
  9709. * src/MetalinkRequestInfo.cc
  9710. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9711. Merged Dan's patch:
  9712. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9713. Use va_copy to avoid core dump on amd64:
  9714. * src/SimpleLogger.cc
  9715. Updated contact info.
  9716. * src/main.cc
  9717. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9718. digest is not available.
  9719. * src/MetalinkEntry.h
  9720. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. Make a2netcompat.h include a2io.h to fix compilation error:
  9722. * src/a2netcompat.h
  9723. * src/SocketCore.cc: Removed include of a2io.h
  9724. * src/Util.cc: Removed include of a2io.h
  9725. Gather time related functions to a2time.h:
  9726. * src/a2time.h: New file.
  9727. * src/DefaultPeerStorage.cc
  9728. * src/SimpleLogger.cc
  9729. * src/Util.{h, cc}
  9730. * src/SimpleRandomizer.h
  9731. * src/TimeA2.{h,cc}
  9732. * src/DownloadCommand.cc
  9733. * src/main.cc
  9734. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9735. a2netcompat.h:
  9736. * src/NameResolver.cc
  9737. Fixed compilation error without openssl:
  9738. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9739. Added default block to suppress compiler warnings:
  9740. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9741. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9742. MinGW build enhancements. The following files are added:
  9743. * src/gai_strerror.{c,h}
  9744. * src/gettimeofday.{c,h}
  9745. Changes to support the above new files:
  9746. * configure.ac
  9747. * src/Makefile.am
  9748. * src/a2netcompat.h
  9749. * src/TimeA2.cc
  9750. * src/DefaultPeerStorage.cc
  9751. * src/NameResolver.cc: removed mingw_strerror() function.
  9752. * src/SocketCore.cc: removed mingw_strerror() function.
  9753. Miscellaneous MinGW build fixes.
  9754. * src/a2io.h: Use _lseeki64() instead of lseek()
  9755. * src/common.h
  9756. * src/DefaultFileAllocator.cc
  9757. * src/GlowFileAllocator.cc
  9758. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9759. * src/NameResolver.cc
  9760. (callback): Changed int32_t to int.
  9761. (resolve): Changed int32_t to int.
  9762. * src/Platform.cc
  9763. * src/Platform.h
  9764. * test/MultiDiskWriterTest.cc
  9765. * test/PeerMessageUtilTest.cc
  9766. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9767. Other enhancements and fixes.
  9768. * src/HttpRequestCommand.cc
  9769. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9770. * src/SocketCore.cc:
  9771. (error): New function to abstract errno/WSAGetLastError().
  9772. (errorMsg): New function to abstract errno/WSAGetLastError().
  9773. (initiateSecureConnection): Added more detailed error reporting.
  9774. * src/SocketCore.h: Added private variable blocking, to allow
  9775. proper handling of OpenSSL psuedo-errors.
  9776. * src/message.h
  9777. (EX_SSL_INIT_FAILURE)
  9778. (EX_SSL_IO_ERROR)
  9779. (EX_SSL_PROTOCOL_ERROR)
  9780. (EX_SSL_UNKNOWN_ERROR)
  9781. (EX_SSL_CONNECT_ERROR)
  9782. (EX_SOCKET_BLOCKING)
  9783. (EX_SOCKET_NONBLOCKING)
  9784. (EX_SOCKET_UNKNOWN_ERROR)
  9785. * src/Util.cc
  9786. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9787. reserved name.
  9788. (httpGMT): Fixed typo.
  9789. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9790. Merged Ross's win32 patch(manually)
  9791. In the course of merging, following files are added.
  9792. * src/strptime.{h,c}
  9793. * src/libgen.{h,c}
  9794. * src/inet_aton.{h,c}
  9795. * src/Platform.{h,cc}
  9796. * src/localtime_r.{h,c}
  9797. * src/getaddrinfo.{h,c}
  9798. I've gethered network related things, and put them to following file:
  9799. * src/a2netcompat.h
  9800. Also io related things are put to following file:
  9801. * src/a2io.h
  9802. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9803. * src/message.h
  9804. (MSG_ALLOCATION_COMPLETED)
  9805. (EX_TOO_LARGE_FILE)
  9806. (EX_SIZE_MISMATCH)
  9807. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9808. (EX_INVALID_CHUNK_CHECKSUM)
  9809. (EX_INVALID_RANGE_HEADER)
  9810. * src/FileAllocationCommand.cc
  9811. * src/HttpResponse.cc
  9812. * src/RequestGroup.cc
  9813. * src/MultiDiskAdaptor.cc
  9814. * src/OptionHandlerImpl.h
  9815. * src/HttpResponseCommand.cc
  9816. * src/FtpNegotiateCommand.cc
  9817. * src/IteratableChecksumValidator.cc
  9818. * src/SegmentMan.cc
  9819. * src/ChunkChecksumValidator.cc
  9820. Added Randomizer::getRandomNumber(long int)
  9821. * src/Randomizer.h (getRandomNumber)
  9822. * src/SimpleRandomizer.h (getRandomNumber)
  9823. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9824. * src/Util.cc (randomAlpha): Use this new function.
  9825. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9826. Converted int's to in32_t. long long int's are also converted to
  9827. int64_t
  9828. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Fixed the bug that prevents cookies from being sent to the server
  9830. if the domain of cookie is FQDN and starts with ".".
  9831. * src/Cookie.cc (match)
  9832. To add the ability to change peer id.
  9833. * src/DefaultBtContext.h
  9834. (_peerIdPrefix): New variable
  9835. (setPeerIdPrefix): New function.
  9836. * src/torrentRequestInfo.cc
  9837. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9838. DefaultBtContext.
  9839. * src/main.cc (main): Added peer-id-prefix command-line option.
  9840. The usage message is not added yet.
  9841. * src/DefaultBtContext.cc
  9842. (generatePeerId): Use _peerIdPrefix.
  9843. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9844. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Fixed the bug that prevents filename in content-disposition from
  9846. being retrieved when filename is not quoted.
  9847. * src/Util.cc (getContentDispositionFilename)
  9848. Fixed the bug that causes infinate loop and memory leak when file open
  9849. operation failed.
  9850. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9851. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9852. Fixed the bug that causes segfault when all URIs specified are
  9853. unsupported.
  9854. * src/RequestGroupMan.cc (getInitialCommands)
  9855. Check if RequestGroup::createNextCommand() returns empty list of
  9856. commands.
  9857. * src/RequestGroup.cc (createNextCommand)
  9858. Change log level from info to error so that users can notice that
  9859. an error occurred.
  9860. Fixed the bug that causes segfault when a zero-sized file is
  9861. downloaded.
  9862. * src/BitfieldMan.cc (isAllBitSet)
  9863. Return true if bitfieldLength is 0.
  9864. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9865. * src/main.cc
  9866. (showUsage): Added 3 usage examples for metalink download.
  9867. Replace MetalinkChunkChecksum with ChunkChecksum.
  9868. * src/MetalinkChunkChecksum.h: Removed.
  9869. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9870. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9871. * src/Xml2MetalinkProcessor.cc
  9872. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9873. * src/MetalinkRequestInfo.cc (execute)
  9874. * Release 0.11.1
  9875. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9876. Reads URIs from stdin when "-i -" is specified.
  9877. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9878. * src/UriListParser.h, src/UriListParser.cc: New class.
  9879. * src/StreamUriListParser.h: New class.
  9880. * src/FileUriListParser.h: New class.
  9881. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9882. instead of UriFileListParser.
  9883. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9884. Made console readout more readable.
  9885. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9886. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9887. Fix the bug that causes -s option not to work.
  9888. * src/main.cc (main)
  9889. * src/a2algo.h: New file.
  9890. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9891. Create directory structure specified in metalink file.
  9892. * src/RequestGroup.h, src/RequestGroup.cc
  9893. (initAndOpenFile): Create a directory to store files if it does not
  9894. exist.
  9895. (getDir): New function.
  9896. Added ETA and download speed for an individual file to readout.
  9897. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9898. * src/RequestGroup.h
  9899. (calculateDownloadSpeed): New function.
  9900. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Made -S option work with metalink file and provided selective download
  9902. to metalink.
  9903. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9904. (filename): Removed.
  9905. (file): New variable.
  9906. (size): Removed.
  9907. (operator=): Updated.
  9908. (getPath): New function.
  9909. (getLength): New function.
  9910. (toFileEntry): New function.
  9911. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9912. (execute): Use toStream.
  9913. (showFileEntry): Removed.
  9914. * src/MetalinkRequestInfo.h
  9915. (targetFiles): New variable.
  9916. (setTargetFiles): New variable.
  9917. * src/MetalinkRequestInfo.cc
  9918. (execute): Added the ability to print file information included in
  9919. a metalink file.
  9920. Added selective download mode to metalink.
  9921. * src/main.cc
  9922. (showUsage): Updated to denote that -S and --select-file options are
  9923. applicable to metalink.
  9924. * src/FileEntry.h
  9925. (operator=): New function.
  9926. (getBasename): New function.
  9927. (getDirname): New function.
  9928. * src/Util.h, src/Util.cc
  9929. (toStream): New function.
  9930. * src/Xml2MetalinkProcessor.cc: Updated.
  9931. Made aria2 work with metalink with directory structure.
  9932. * src/File.h, src/File.cc
  9933. (getBasename): New function.
  9934. (getDirname): New function.
  9935. * src/RequestGroup.h, src/RequestGroup.cc
  9936. (_topDir): New variable.
  9937. (setTopDir): New function.
  9938. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9939. Rewrote HTTP header parsing with stringstream.
  9940. * src/HttpConnection.h, src/HttpConnection.cc
  9941. (HttpRequestEntry): New class.
  9942. (headerBuf): Removed.
  9943. (headerBufLength): Removed.
  9944. (outstandingHttpRequests): Now its element type is
  9945. HttpRequestEntryHandle.
  9946. (findEndOfHeader): Removed.
  9947. (receiveResponse): Rewritten.
  9948. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9949. Updated doc for -j option to notice that it should be used with -i
  9950. option.
  9951. * src/main.cc (showUsage)
  9952. Removed unused classes.
  9953. * src/RequestInfo.h
  9954. (FileInfo): Removed.
  9955. (checksum): Removed.
  9956. (fileInfo): Removed.
  9957. (setChecksum): Removed.
  9958. (getChecksum): Removed.
  9959. (getFileInfo): Removed.
  9960. Use ISO units.
  9961. * src/ConsoleDownloadEngine.cc
  9962. * src/TorrentConsoleDownloadEngine.cc
  9963. * src/Util.cc (abbrevSize)
  9964. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9965. Added the default listening ports to the help message.
  9966. * src/main.cc (showUsage)
  9967. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. Reduce the number of calls to gettimeofday to lower CPU load.
  9969. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9970. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9971. * src/Peer.h (calculateUploadSpeed): New function.
  9972. (calculateDownloadSpeed): New function.
  9973. * src/DefaultPeerStorage.cc
  9974. (CalculateStat): Added _now variable.
  9975. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9976. and Peer::calculateUploadSpeed(const struct timeval&)
  9977. Drop connection if no request or piece message is exchanged in
  9978. a certain interval.
  9979. * src/DefaultBtInteractive.h
  9980. (btRuntime): New variable.
  9981. (inactiveCheckPoint): New variable.
  9982. (checkActiveInteraction): New function.
  9983. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9984. request or piece message is received.
  9985. (checkActiveInteraction): New function.
  9986. (doInteractionProcessing): Call checkActiveInteraction.
  9987. Fixed the bug that causes remote Metalink and Torrent files are not
  9988. processed.
  9989. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  9990. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9991. Changed format of log file.
  9992. * src/SimpleLogger.cc
  9993. * Release 0.11.0
  9994. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9995. * src/AbstractCommand.cc
  9996. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  9997. MSG_MAX_TRY from error to info.
  9998. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  9999. * src/message.h
  10000. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10001. (MSG_DOWNLOAD_ABORTED): Added %s.
  10002. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10003. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10004. * src/PeerAbstractCommand.cc
  10005. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10006. * src/Request.h
  10007. (cookieBox): Made ShardHandle.
  10008. * src/RequestGroup.h, src/RequestGroup.cc
  10009. (createNextCommandWithAdj): New function.
  10010. * src/FileAllocationCommand.cc
  10011. (executeInternal): Use createNextCommandWithAdj().
  10012. * src/CheckIntegrityCommand.cc
  10013. (executeInternal): Use createNextCommandWithAdj().
  10014. Added --load-cookies command-option.
  10015. * src/OptionHandlerFactory.cc
  10016. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10017. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10018. Now aria2 can handle cookie's expiration date.
  10019. * src/Cookie.h (expires): Changed its type to time_t.
  10020. * src/main.cc: Added --load-cookies command-line option.
  10021. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10022. * src/Util.h, src/Util.cc (httpGMT): New function.
  10023. * src/Request.cc (Request): Initialize cookieBox using
  10024. CookieBoxFactory.
  10025. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10026. * src/CookieParser.h, src/CookieParser.cc: New class.
  10027. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10028. * src/HttpResponseCommand.cc
  10029. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10030. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10031. download.
  10032. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10033. Added -j command-line option.
  10034. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10035. * src/main.cc
  10036. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10037. Rewritten using stringstream.
  10038. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10039. Rewritten using stringstream.
  10040. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Make download size shown in MB, KB.
  10042. * src/ConsoleDownloadEngine.h (sendStatistics)
  10043. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10044. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10045. Accept incoming connections if download rate is low.
  10046. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10047. (_lowestSpeedLimit): New variable.
  10048. (setLowestSpeedLimit): New function.
  10049. (execute): Accept incoming connections if download rate is low.
  10050. MAX_PEERS is ignored in this case.
  10051. Disable PREF_OUT in multiple concurrent download:
  10052. * src/RequestGroup.h, src/RequestGroup.cc
  10053. (setUserDefinedFilename): New function.
  10054. * src/DownloadEngineFactory.cc
  10055. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10056. concurrent download.
  10057. * src/DefaultSegmentManFactory.cc
  10058. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10059. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10060. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10061. Added its overloaded method.
  10062. * src/RequestGroup.h
  10063. (_numConcurrentCommand): New variable.
  10064. (setNumConcurrentCommand): New function.
  10065. * src/RequestGroup.cc
  10066. Abort download if same file is being downloaded concurrently.
  10067. * src/RequestGroup.h, src/RequestGroupMan.cc
  10068. (isSameFileBeingDownloaded): New function.
  10069. * src/HttpResponseCommand.cc (executeInternal)
  10070. * src/FtpNegotiateCommand.cc (recvSize)
  10071. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10072. * main.cc: Added help message for -i option.
  10073. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10074. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10075. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10076. * src/MetalinkEntry.h
  10077. (checksum): Changed to ChecksumHandle
  10078. * src/MetalinkRequestInfo.cc
  10079. (checksum): Changed to ChecksumHandle
  10080. * src/File.cc
  10081. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10082. * src/common.h
  10083. (DIR_OPEN_MODE): New definition
  10084. * src/RequestGroup.cc
  10085. (prepareForNextAction): Added an argument.
  10086. * src/message.h
  10087. (MSG_GOOD_CHECKSUM): New definition
  10088. (MSG_BAD_CHECKSUM): New definition
  10089. * src/HttpResponseCommand.cc
  10090. (handleDefaultEncoding): Continue download sequence in new
  10091. non-segmented download.
  10092. * src/FileAllocationEntry.h
  10093. (_nextDownloadCommand): New variable.
  10094. * src/DownloadCommand.cc
  10095. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10096. available.
  10097. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10098. * src/IteratableChecksumValidator.h,
  10099. src/IteratableChecksumValidator.cc: New class.
  10100. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10101. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10102. Change file mode to 666:
  10103. * src/common.h (OPEN_MODE): New definition.
  10104. * src/File.cc
  10105. * src/Util.cc
  10106. * src/Directry.cc
  10107. * src/AbstractDiskWriter.cc
  10108. Change the level of log message "download aborted" to debug:
  10109. * src/PeerAbstractCommand.cc (execute)
  10110. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10111. * src/TrackerWatcherCommand.cc
  10112. (createCommand): Sleep some seconds after request failed.
  10113. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10114. then abort tracker request.
  10115. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. * Added the simultaneous download feature.
  10117. * src/main.cc: Print "Exception caught: " when exception is caught.
  10118. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10119. * src/ActivePeerConnectionCommand.cc
  10120. * src/PeerInteractionCommand.cc
  10121. * src/BtRuntime.h
  10122. (cuidCounter): Removed.
  10123. (getNewCuid): Removed.
  10124. * src/DownloadEngineFactory.cc
  10125. * src/PeerListenCommand.cc
  10126. * src/TrackerUpdateCommand.cc
  10127. * src/PeerInitiateConnectionCommand.cc
  10128. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10129. * src/PeerAbstractCommand.cc
  10130. (onAbort): Call PeerStorage::returnPeer()
  10131. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10132. (incomingPeers): New variable.
  10133. (addIncomingPeer): New function.
  10134. (returnPeer): New function.
  10135. (onErasingPeer): New function.
  10136. (addPeer): push_back -> push_front
  10137. (getActivePeers): Rewritten.
  10138. (calculateStat): Rewritten.
  10139. * src/PeerStorage.h
  10140. (TransferStat::copy): New function.
  10141. (TransferStat::TransferStat): New function.
  10142. (TransferStat::operator=): New function.
  10143. (addIncomingPeer): New function.
  10144. (returnPeer): New function.
  10145. * src/PeerListenCommand.cc
  10146. (execute): Use PeerStorage::addIncomingPeer() instead of
  10147. Peer::addPeer().
  10148. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10149. Connect to a peer actively when download speed is lower than specified
  10150. speed in torrent download:
  10151. * src/ActivePeerConnectionCommand.h: New class.
  10152. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10154. * src/main.cc: Fixed the bug that prevents download if .netrc
  10155. doesn't exist.
  10156. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10157. To cache resolved hostname:
  10158. * src/AbstractCommand.h, src/AbstractCommand.cc
  10159. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10160. Added dns cache.
  10161. * src/FtpInitiateConnectionCommand.cc
  10162. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10163. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10164. NameResolver working without ares.
  10165. * src/TorrentRequestInfo.cc
  10166. (execute): Don't cache dns in torrent download.
  10167. * src/HttpInitiateConnectionCommand.cc
  10168. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10169. * src/DNSCache.h: New class.
  10170. * src/UrlRequestInfo.cc
  10171. (execute): Use dns cache.
  10172. In http request, suppress port number in http request header if port
  10173. is 80 or 443:
  10174. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10175. request header if port is 80 or 443.
  10176. (createProxyRequest): Allways send port number.
  10177. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. To add the command-line option which disables netrc support:
  10179. * src/OptionHandlerFactory.cc
  10180. (createOptionHandlers): Added PREF_NO_NETRC.
  10181. * src/main.cc: Added -n option.
  10182. * src/prefs.h (PREF_NO_NETRC): New definition.
  10183. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10184. V_TRUE.
  10185. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10186. is V_FALSE. This may get configurable in the future release.
  10187. To clear peer's error status by time basis:
  10188. * src/PeerAbstractCommand.cc
  10189. (onAbort): Call Peer::startBadCondition().
  10190. * src/Peer.h, src/Peer.cc
  10191. (error): Removed.
  10192. (_badConditionStartTime): New variable.
  10193. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10194. (startBadCondition): New function.
  10195. (isGood): New function.
  10196. * src/DefaultPeerStorage.cc
  10197. (addPeer): Use Peer::isGood().
  10198. (FindFinePeer): Use Peer::isGood().
  10199. Always include port number in http request header:
  10200. * src/HttpRequest.cc (getHostText): Always include port number in
  10201. http request header.
  10202. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10203. To the ability to read options from a config file:
  10204. * src/main.cc: Command-line parameter validation is delegated to
  10205. OptionHandler class.
  10206. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10207. * src/Option.h, src/Option.cc (clear): New function.
  10208. * src/OptionParser.h, src/OptionParser.cc: New class.
  10209. * src/OptionHandler.h: New class.
  10210. * src/NameMatchOptionHandler.h: New class.
  10211. * src/OptionHandlerImpl.h: New classes.
  10212. * src/prefs.h: '_' -> '-'
  10213. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10214. (FTP_PASV): New definition.
  10215. * src/Util.h, src/Util.cc (getRealSize): New function.
  10216. To disable netrc support if .netrc file does not have correct
  10217. permissions:
  10218. * src/File.h, src/File.cc (mode): New function.
  10219. To prevent confidential information to be logged:
  10220. * src/HttpConnection.h, src/HttpConnection.cc
  10221. (eraseConfidentialInfo): New function.
  10222. (sendRequest): Call eraseConfidentialInfo().
  10223. (sendProxyRequest): Call eraseConfidentialInfo().
  10224. * src/main.cc: Validate permissions of .netrc file.
  10225. To add --user-agent command-line option:
  10226. * src/main.cc: Added new command line option: --user-agent
  10227. * src/prefs.h (PREF_USER_AGENT): New definition.
  10228. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10229. parameter to HttpRequest object.
  10230. * src/AbstractProxyRequestCommand.cc
  10231. (executeInternal): Set user-agent option parameter to HttpRequest
  10232. object.
  10233. Marged the patches from Dan Fandrich.
  10234. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10235. Use filename and size from Metalink file instead of sending HEAD
  10236. request:
  10237. * src/UrlRequestInfo.h
  10238. (_filename): New variable.
  10239. (_totalLength): New variable.
  10240. (setTotalLength): New variable.
  10241. (setFilename): New variable.
  10242. * src/MetalinkRequestInfo.cc
  10243. (execute): Set filename and size to UrlRequestInfo
  10244. * src/UrlRequestInfo.cc
  10245. (execute): Use filename and size from Metalink instead of seding
  10246. HEAD request to servers.
  10247. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10248. To add the ability to resume downloading a partially downloaded file
  10249. which is downloaded from the beginning:
  10250. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10251. takes this role.
  10252. * src/main.cc: Added -c option.
  10253. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10254. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10255. * src/prefs.h (PREF_CONTINUE): New definition.
  10256. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10257. * src/DefaultDiskWriter.cc
  10258. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10259. * src/AbstractDiskWriter.h
  10260. (glowFileAllocator): New variable.
  10261. * src/AbstractDiskWriter.cc
  10262. (openExistingFile): Now preallocate file space from the end of the
  10263. existing file if totalLength argument is specified and grater than 0.
  10264. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10265. to download exists in local, continue the download of the file.
  10266. --allow-overwrite=true is assumed in this context.
  10267. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10268. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10269. Throw exception if --check-integrity=true is specified but chunk
  10270. checksums are not provided:
  10271. * src/UrlRequestInfo.cc
  10272. Do not print URLs to stdout:
  10273. * src/UrlRequestInfo.cc
  10274. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10275. * src/Request.h: Use AuthResolver to get authentication information.
  10276. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10277. set to RequestFactory object.
  10278. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10279. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10280. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10281. create Request object.
  10282. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10283. To integrate Netrc into exsiting classes:
  10284. * src/Request.h
  10285. (_userDefinedAuthConfig): New variable.
  10286. (findNetrcAuthenticator): New function.
  10287. (segment): Removed.
  10288. (setUserDefinedAuthConfig): New function.
  10289. (resolveHttpAuthConfigItem): New function.
  10290. (resolveFtpAuthConfigItem): New function.
  10291. (resolveHttpProxyAuthConfigItem): New function.
  10292. * src/HttpRequest.h
  10293. (authConfig): Removed.
  10294. (proxyAuthConfig): Removed.
  10295. (setAuthConfig): Removed.
  10296. (setProxyAuthConfig): Removed.
  10297. * src/UrlRequest.h
  10298. (getHeadResult): Added a parameter: authConfigHandle
  10299. * src/common.h
  10300. (SingletonHolder.h): New include.
  10301. * src/main.cc
  10302. (Netrc.h): New include.
  10303. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10304. Added initial value of PREF_NETRC_PATH.
  10305. Added the initialization of netrc.
  10306. * src/AuthConfig.h: New class.
  10307. * src/prefs.h
  10308. (PREF_NETRC_PATH): New definition.
  10309. * src/HttpAuthConfig.h: Removed.
  10310. * src/Netrc.cc
  10311. (getRequiredNextToken): New function.
  10312. (skipMacdef): New function.
  10313. (parse): Rewritten.
  10314. * src/Netrc.h
  10315. (getRequiredNextToken): New function.
  10316. (skipMacdef): New function.
  10317. * src/Util.h, src/Util.cc
  10318. (getHomeDir): New function.
  10319. * src/TrackerWatcherComand.cc
  10320. (createRequestCommand): Use AuthConfig.
  10321. * src/FtpConnection.cc
  10322. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10323. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10324. * src/Request.cc
  10325. (findNetrcAuthenticator): New function.
  10326. (resolveHttpAuthConfigItem): New function.
  10327. (resolveFtpAuthConfigItem): New function.
  10328. (resolveHttpProxyAuthConfigItem): New function.
  10329. * src/UrlRequestInfo.cc: Use AuthConfig.
  10330. * src/HttpRequest.cc
  10331. (createRequest): Use authConfig.
  10332. (getProxyAuthString): Use authConfig.
  10333. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10334. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10335. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10336. To reduce overhead to find commands whose socket is either
  10337. readable or writable in the download engine loop:
  10338. * src/Command.h, src/Command.cc
  10339. (STATUS): New enum.
  10340. (status): New variable.
  10341. (statusMatch): New function.
  10342. (setStatusActive): New function.
  10343. (setStatusInactive): New function.
  10344. * src/DownloadEngine.h, src/DownloadEngine.cc
  10345. (executeCommand): New function.
  10346. (run): Simplified.
  10347. (waitData): Call Command::setStatusActive() when command's socket is
  10348. readable or writable.
  10349. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10350. To handle Segment as SegmentHandle:
  10351. * src/AbstractCommand.cc (execute): Rewritten.
  10352. * src/SegmentMan.h: Segment -> SegmentHandle
  10353. Introducded HttpResponse class, HttpRequest class to improve code
  10354. extensiveness and make it clear:
  10355. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10356. HttpResponse class.
  10357. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10358. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10359. * src/HttpConnection.cc: Contruction of http request were moved to
  10360. HttpRequest class.
  10361. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10362. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10363. * src/HttpAuthConfig.h: New class.
  10364. * src/Range.h: New class.
  10365. To make FtpTunnel{Request, Response}Command and
  10366. HttpProxy{Request, Response}Command derived from
  10367. AbstractProxy{Request, Response}Command:
  10368. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10369. Derived from AbstractProxyRequestCommand class.
  10370. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10371. Derived from AbstractProxyResponseCommand class.
  10372. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10373. Derived from AbstractProxyRequestCommand class.
  10374. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10375. Derived from AbstractProxyResponseCommand class.
  10376. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10377. : New class.
  10378. * src/AbstractProxyResponseCommand.h,
  10379. src/AbstractProxyResponseCommand.cc: New class.
  10380. To add netrc support:
  10381. * src/Netrc.h, src/Netrc.cc: New class.
  10382. * src/Util.h, src/Util.cc (split): New function.
  10383. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10384. "Content-Range" header instead of "Range" header.
  10385. * src/HttpHeader.h
  10386. (getStatus): Removed.
  10387. (setStatus): Removed.
  10388. * src/Segment.h
  10389. (getPositionToWrite): New function.
  10390. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10391. * src/HttpHeader.h
  10392. (Range.h): New include.
  10393. (status): New variable.
  10394. (HttpHeader): Initialized status with 0.
  10395. (getStatus): New function.
  10396. (setStatus): New function.
  10397. (getRange): New function.
  10398. (HttpHeaderHandle): New function.
  10399. * src/HttpHeader.cc
  10400. (getRange): New function.
  10401. * src/Request.h
  10402. (RequestWeakHandle): New definition.
  10403. * src/HttpConnection.h
  10404. (HttpConnectionHandle): New type definition.
  10405. * src/HttpConnection.cc
  10406. (receiveResponse): Set HTTP status to headers.
  10407. * src/main.cc
  10408. (showUsage): Fixed typo.
  10409. * src/Segment.h
  10410. (SegmentHandle): New type definition.
  10411. * src/BitfieldMan.h
  10412. (getMissingUnusedLength): New function.
  10413. * src/BitfieldMan.cc
  10414. (getMissingUnusedLength): New function.
  10415. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10416. To fix static initialization order problem:
  10417. * src/BitfieldManFactory.h
  10418. (defaultRandomizer): Removed.
  10419. (factory): New variable.
  10420. (getNewFactory): Removed.
  10421. (getFactoryInstance): New function.
  10422. (setDefaultRandomizer): Rewritten.
  10423. (getDefaultRandomizer): Rewritten.
  10424. * src/BitfieldManFactory.cc
  10425. (defaultRandomizer): Removed.
  10426. (factory): Initialized to 0.
  10427. (BitfieldManFactory): Initialized randomizer to 0.
  10428. * src/DefaultPieceStorage.cc
  10429. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10430. * src/Peer.cc
  10431. (Peer): getNewFactory() -> getFactoryInstance()
  10432. * src/SegmentMan.cc
  10433. (initBitfield): getNewFactory() -> getFactoryInstance()
  10434. * src/Piece.cc
  10435. (Piece): getNewFactory() -> getFactoryInstance()
  10436. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. To fix the bug that causes crash on Max OS X:
  10438. * src/SimpleRandomizer.h
  10439. (getInstance): Create new instance if the static variable is null.
  10440. * src/SimpleRandomizer.cc
  10441. (randomizer): Initialized to 0.
  10442. * src/BitfieldManFactory.h
  10443. (getNewFactory): Removed the call to setRandomizer().
  10444. To fix the miscalculation of the range of checksum:
  10445. * src/BitfieldMan.h
  10446. (isBitSetOffsetRange): New function.
  10447. * src/BitfieldMan.cc
  10448. (isBitSetOffsetRange): New function.
  10449. * src/SegmentMan.cc
  10450. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10451. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10452. * Release 0.10.1
  10453. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10454. To lower CPU usage in BitTorrent download when --max-upload-limit
  10455. command-line option specified:
  10456. * src/DefaultBtMessageDispatcher.cc
  10457. (sendMessages): Calculate uploading speed only when current message
  10458. is uploading data and is not sent yet.
  10459. * src/DefaultPeerStorage.h
  10460. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10461. * src/HttpResponseCommand.cc
  10462. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10463. This fixes compile error in Soralis 10.
  10464. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10465. To fix segfault in Metalink download:
  10466. * src/UrlRequestInfo.h
  10467. (filename): Removed.
  10468. (totalLength): Removed.
  10469. (setTotalLength): Removed.
  10470. (setFilename): Removed.
  10471. * src/MetalinkRequestInfo.cc
  10472. (execute): Do not set filename and totalLength to reqInfo.
  10473. Set chunk checksum to reqInfo if it is not null.
  10474. * src/HttpResponseCommand.cc
  10475. (executeInternal): Fixed filename in log.
  10476. (handleDefaultEncoding): Removed the call to initBitfield() and
  10477. markAllPiecesDone().
  10478. (handleOtherEncoding): Added HEAD method handling.
  10479. * src/FtpNegotiateCommand.cc
  10480. (executeInternal): Added SEQ_HEAD_OK handling.
  10481. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10482. return false.
  10483. * src/FtpNegotiateCommand.h
  10484. (SEQ_HEAD_OK): New definition.
  10485. * src/SegmentMan.cc
  10486. (initBitfield): Delete bitfield.
  10487. (isChunkChecksumValidationReady): Fixed the condition.
  10488. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10489. works fine.
  10490. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10491. * src/Xml2MetalinkProcessor.h
  10492. (xpathExists): New function.
  10493. * src/Xml2MetalinkProcessor.cc
  10494. (xpathExists): New function.
  10495. Not to send HEAD request if filename and size are available in Metalink
  10496. file:
  10497. * src/UrlRequestInfo.h
  10498. (filename): New variable.
  10499. (totalLength): New variable.
  10500. (setTotalLength): New function.
  10501. (setFilename): New function.
  10502. * src/MetalinkRequestInfo.cc
  10503. (execute): Set filename and size to UrlRequestInfo.
  10504. * src/MetalinkEntry.cc
  10505. (MetalinkEntry): Initialize size with 0.
  10506. * src/UrlRequestInfo.cc
  10507. (execute): Set filename and size to SegmentMan.
  10508. Not to download rest of the files after selected files are downloaded
  10509. in BitTorrent:
  10510. * src/PieceStorage.h
  10511. (allDownloadFinished): New function.
  10512. * src/DefaultBtAnnounce.cc
  10513. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10514. downloadFinished.
  10515. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10516. * src/DefaultPieceStorage.cc
  10517. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10518. Commented out the call to finishSelectiveDownloadingMode().
  10519. (downloadFinished): Call isFilteredAllBitSet() instead of
  10520. isAllBitSet().
  10521. (allDownloadFinished): New function.
  10522. * src/DefaultBtInteractive.cc
  10523. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10524. downloadFinished().
  10525. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10526. * src/TorrentDownloadEngine.cc
  10527. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10528. * src/BitfieldMan.h
  10529. (isFilteredAllBitSet): New function.
  10530. * src/ShareRatioSeedCriteria.h
  10531. (PieceStorage.h): New include.
  10532. (pieceStorage): New variable.
  10533. (evaluate):
  10534. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10535. * src/BitfieldMan.cc
  10536. (isFilteredAllBitSet): New function.
  10537. (isAllBitSet): Filter is not took into account.
  10538. Rename --force-truncate as --allow-overwrite:
  10539. * src/TorrentRequestInfo.cc
  10540. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10541. * src/main.cc
  10542. (showUsage): --force-truncate -> --allow-overwrite
  10543. * src/message.h
  10544. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10545. * src/prefs.h
  10546. (PREF_FORCE_TRUNCATE): Removed.
  10547. (PREF_ALLOW_OVERWRITE): New definition.
  10548. * src/SegmentMan.cc
  10549. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10550. * src/MetalinkRequestInfo.cc
  10551. (execute): Queueing message are now logged in info level.
  10552. * src/common.h
  10553. (LONG_LONG_MAX): Removed.
  10554. (LONG_LONG_MIN): Removed.
  10555. * src/HttpResponseCommand.cc
  10556. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10557. * src/FtpNegotiateCommand.cc
  10558. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10559. * src/main.cc
  10560. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10561. command-line option.
  10562. (main): Added --check-integriy and --realtime-chunk-checksum
  10563. command-line option.
  10564. --force-truncate -> --allow-overwrite
  10565. Set initial value of --check-integrity option to false.
  10566. Don't show usage when error occurs while persing command-line options.
  10567. Removed deprecated --upload-limit option.
  10568. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10569. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10570. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10571. * src/BtAllowedFastMessage.cc:
  10572. * src/BtBitfieldMessage.cc
  10573. * src/BtCancelMessage.cc
  10574. * src/BtChokeMessage.cc
  10575. * src/BtHaveAllMessage.cc
  10576. * src/BtHaveMessage.cc
  10577. * src/BtHaveNoneMessage.cc
  10578. * src/BtInterestedMessage.cc
  10579. * src/BtNotInterestedMessage.cc
  10580. * src/BtPieceMessage.cc
  10581. * src/BtPortMessage.cc
  10582. * src/BtRejectMessage.cc
  10583. * src/BtRequestMessage.cc
  10584. * src/BtSuggestPieceMessage.cc
  10585. * src/BtUnchokeMessage.cc
  10586. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10587. files are affected.
  10588. * src/ChunkChecksumValidator.cc
  10589. * src/SegmentMan.cc
  10590. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. To add chunk checksum validation:
  10592. * src/MetalinkEntry.h
  10593. (MetalinkChunkChecksum.h): New include.
  10594. (chunkChecksum): New variable.
  10595. * src/Request.h
  10596. (method): New variable.
  10597. (setMethod): New function.
  10598. (getMethod): New function.
  10599. (METHOD_GET): New static constant.
  10600. (METHOD_HEAD): New static constant.
  10601. * src/Xml2MetalinkProcessor.h
  10602. (getPieceHash): New function.
  10603. * src/PieceStorage.h
  10604. (markAllPiecesDone): New function.
  10605. (checkIntegrity): New function.
  10606. * src/FileAllocator.h
  10607. (NullFileAllocationMonitor.h): New include.
  10608. (FileAllocator): Initialize fileAllocationMonitor with new
  10609. NullFileAllocationMonitor().
  10610. * src/MultiDiskAdaptor.h
  10611. (messageDigest.h): Remove include.
  10612. (ctx): Removed.
  10613. (hashUpdate): Added ctx.
  10614. (MultiDiskAdaptor): Removed ctx.
  10615. (sha1Sum): Renamed as messageDigest.
  10616. (messageDigest): New function.
  10617. * src/UrlRequestInfo.h
  10618. (HeadResult): New class.
  10619. (digestAlgo): New variable.
  10620. (chunkChecksumLength): New variable.
  10621. (chunkChecksums): New variable.
  10622. (getHeadResult): New function.
  10623. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10624. (setDigestAlgo): New function.
  10625. (setChunkChecksumLength): New function.
  10626. (setChunkChecksums): New function.
  10627. * src/DefaultPieceStorage.cc
  10628. (DiskAdaptorWriter.h): New include.
  10629. (ChunkChecksumValidator.h): New include.
  10630. (markAllPiecesDone): New function.
  10631. (checkIntegrity): New function.
  10632. * src/DefaultBtContext.h
  10633. (getPieceHashes): New function.
  10634. * src/TorrentRequestInfo.cc
  10635. (execute): Try to validate chunk checksum if file already exists and
  10636. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10637. * src/messageDigest.h
  10638. (~MessageDigestContext): Added digestFree().
  10639. * src/MetalinkRequestInfo.cc
  10640. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10641. * src/DiskAdaptor.h
  10642. (messageDigest.h): New include.
  10643. (sha1Sum): Renamed as messageDigest.
  10644. (messageDigest): New function.
  10645. * src/DownloadCommand.h
  10646. (PeerStat.h): New include.
  10647. (maxDownloadSpeedLimit): New variable.
  10648. (startupIdleTime): New variable.
  10649. (lowestDownloadSpeedLimit): New variable.
  10650. (peerStat): New variable.
  10651. (setMaxDownloadSpeedLimit): New function.
  10652. (setStartupIdleTime): New function.
  10653. (setLowestDownloadSPeedLimit): New function.
  10654. * src/BtContext.h
  10655. (getPieceHashes): New function.
  10656. * src/main.cc
  10657. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10658. option to true for testing purpose.
  10659. * src/BtPieceMessage.cc
  10660. (checkPieceHash): Use messageDigest
  10661. * src/DownloadEngine.cc
  10662. (SetDescriptor): Removed.
  10663. (AccumulateActiveCommand): Removed.
  10664. (waitData): Rewritten.
  10665. (updateFdSet): Rewritten.
  10666. * src/MultiDiskAdaptor.cc
  10667. (hashUpdate): Added ctx.
  10668. (sha1Sum): Renamed as messageDigest.
  10669. (messageDigest): New function.
  10670. * src/BitfieldMan.h
  10671. (isBitRangeSet): New function.
  10672. (unsetBitRange): New function.
  10673. * src/ByteArrayDiskWriter.h
  10674. (sha1Sum): Renamed as messageDigest.
  10675. (messageDigest): New function.
  10676. * src/ConsoleDownloadEngine.cc
  10677. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10678. * src/DiskWriter.h
  10679. (messageDigest.h): New include.
  10680. (sha1Sum): Renamed as messageDigest.
  10681. (messageDigest): New function.
  10682. * src/ChunkChecksumValidator.h: New class.
  10683. * src/DiskAdaptorWriter.h: New class.
  10684. * src/prefs.h
  10685. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10686. (PREF_CHECK_INTEGRITY): New definition.
  10687. * src/HttpResponseCommand.cc
  10688. (handleDefaultEncoding): Added method "HEAD" handling.
  10689. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10690. (handleOtherEncoding):
  10691. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10692. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10693. startupIdleTime, lowestDownloadSpeedLimit to command.
  10694. * src/SegmentMan.h
  10695. (getSegmentEntryByIndex): New function.
  10696. (getSegmentEntryByCuid): New function.
  10697. (getSegmentEntryIteratorByCuid): New function.
  10698. (diskWriter): DiskWriter -> DiskWriterHandle
  10699. (pieceHashes): New variable.
  10700. (chunkHashLength): New variable.
  10701. (digestAlgo): New variable.
  10702. (FindPeerStat): Removed.
  10703. (getPeerStat): Rewritten.
  10704. (markAllPiecesDone): New function.
  10705. (checkIntegrity): New function.
  10706. (tryChunkChecksumValidation): New function.
  10707. (isChunkChecksumValidationReady): New function.
  10708. * src/BitfieldMan.cc
  10709. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10710. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10711. blocks to 0.
  10712. (isBitRangeSet): New function.
  10713. (unsetBitRange): New function.
  10714. * src/FtpNegotiateCommand.cc
  10715. (executeInternal): Set maxDownloadSpeedLimit,
  10716. startupIdleTime, lowestDownloadSpeedLimit to command.
  10717. (recvSize): Added method "HEAD" handling.
  10718. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10719. * src/AbstractSingleDiskAdaptor.cc
  10720. (sha1Sum): Renamed as messageDigest.
  10721. (messageDigest): New function.
  10722. * src/AbstractSingleDiskAdaptor.h
  10723. (sha1Sum): Renamed as messageDigest.
  10724. (messageDigest): New function.
  10725. * src/Util.h
  10726. (indexRange): New function.
  10727. * src/MetalinkEntry.cc
  10728. (MetalinkEntry): Initialized chunkChecksum to 0.
  10729. * src/ShaVisitor.cc
  10730. (~ShaVisitor): Removed the call to ctx.digestFree().
  10731. * src/SegmentMan.cc
  10732. (ChunkChecksumValidator.h): New include.
  10733. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10734. to DIGEST_ALGO_SHA1.
  10735. (~SegmentMan): Removed diskWriter.
  10736. (FindSegmentEntryByIndex): Removed.
  10737. (FindSegmentEntryByCuid): Removed.
  10738. (checkoutSegment): Rewritten.
  10739. (findSlowerSegmentEntry): Rewritten.
  10740. (getSegment): Rewritten.
  10741. (updateSegment): Rewritten.
  10742. (completeSegment): Rewritten.
  10743. (markAllPiecesDone): New function.
  10744. (checkIntegrity): New function.
  10745. (isChunkChecksumValidationReady): New function.
  10746. (tryChunkChecksumValidation): New function.
  10747. * src/Xml2MetalinkProcessor.cc
  10748. (getEntry): Get size and set it to entry.
  10749. Get chunk checksum and set it to entry.
  10750. (getPieceHash): New function.
  10751. * src/Util.cc
  10752. (sha1Sum): Removed ctx.digestFree()
  10753. (fileChecksum): Removed ctx.digestFree()
  10754. (indexRange): New function.
  10755. * src/Request.cc
  10756. (METHOD_GET): New variable.
  10757. (METHOD_HEAD): New variable.
  10758. (Request): Added method.
  10759. * src/UrlRequestInfo.cc
  10760. (FatalException.h): New include.
  10761. (message.h): New include.
  10762. (operator<<): Added operator<< for class HeadResult.
  10763. (getHeadResult): New function.
  10764. (execute): Get filename and size in separate download engine.
  10765. * src/ChunkChecksumValidator.cc: New class.
  10766. * src/DownloadCommand.cc:
  10767. (DownloadCommand): Added peerStat.
  10768. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10769. the value from Option.
  10770. The buffer size is now 16KB.
  10771. Use peerStat member instead of getting it from SegmentMan.
  10772. Use startupIdleTime member instead of gettingit from Option.
  10773. Added chunk checksum validation.
  10774. * src/AbstractDiskWriter.cc
  10775. (AbstractDiskWriter): Removed ctx.
  10776. (~AbstractDiskWriter): Removed ctx.digestFree()
  10777. (writeDataInternal): Returns the return value of write.
  10778. (readDataInternal): Returns the return value of read.
  10779. (sha1Sum): Renamed as messageDigest
  10780. (messageDigest): New function.
  10781. * src/AbstractDiwkWriter.h
  10782. (messageDigest.h): Removed include.
  10783. (ctx): Removed.
  10784. (sha1Sum): Renamed as messageDigest
  10785. (messageDigest): New function.
  10786. * src/DefaultPieceStorage.h
  10787. (markAllPiecesDone): New function.
  10788. (checkIntegrity): New function.
  10789. * src/NullFileAllocationMonitor.h: New class.
  10790. * src/MetalinkChunkChecksum.h: New class.
  10791. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. To decrease CPU usage in bittorrent download, calculation results in
  10793. BitfieldMan were cached and realtime fetching PeerObject was removed
  10794. with WeakHandle introduced. Option values are set to the objects
  10795. by setter before download begins.
  10796. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10797. * src/DefaultBtRequestFactory.h
  10798. (dispatcher): BtMessageDispatcherHandle ->
  10799. BtMessageDispatcherWeakHandle.
  10800. (messageFactory): New variable.
  10801. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10802. BtMessageDispatcherWeakHandle.
  10803. (setBtMessageFactory): New function.
  10804. * src/DefaultBtMessageDispatcher.cc:
  10805. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10806. from Option.
  10807. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10808. feating the value from Option.
  10809. Use messageFactory member.
  10810. * src/PeerInteractionCommand.cc
  10811. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10812. Add reverse dependencies to factory object.
  10813. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10814. dispatcher.
  10815. Set messageFactory to receiver.
  10816. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10817. btInteractive.
  10818. Set receiver to peerObject.
  10819. Set maxDownloadSpeedLimit to this.
  10820. (executeInternal): Use maxDownloadSpeedLimit member.
  10821. * src/BtChokeMessage.cc
  10822. (doReceivedAction): Use dispatcher, requestFactory member.
  10823. (onSendComplete): Use dispatcher member.
  10824. * src/PeerInteractionCommand.h
  10825. (maxDownloadSpeedLimit): New variable.
  10826. * src/DefaultBtMessageReceiver.h
  10827. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10828. (dispatcher):
  10829. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10830. (messageFactory): New variable.
  10831. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10832. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10833. (setDispatcher):
  10834. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10835. (setBtMessageFactory): New function.
  10836. * src/DefaultBtInteractive.cc
  10837. (initiateHandshake): Use messageFactory member.
  10838. (addBitfieldMessageToQueue): Use messageFactory member.
  10839. (addAllowedFastMessageToQueue): Use messageFactory member.
  10840. (decideChoking): Use messageFactory member.
  10841. (checkHave): Use messageFactory member.
  10842. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10843. (receiveMessages): Use maxDownloadSpeedLimit member.
  10844. (decideInterest): Use messageFactory member.
  10845. * src/BtRequestMessage.cc
  10846. (doReceivedAction): Use messageFactory, dispatcher member.
  10847. (onQueued): Use dispatcher member.
  10848. * src/BtPieceMessage.cc
  10849. (doReceivedAction): Use dispatcher member.
  10850. (send): Use peerConnection member.
  10851. (onWrongPiece): Use requestFactory member.
  10852. (handleChokingEvent): Use messageFactory, dispatcher member.
  10853. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10854. * src/BtMessageDispatcher.h
  10855. (BtMessageDispatcherWeakHandle): New type definition.
  10856. * src/SimpleBtMessage.cc
  10857. (send): Use peerConnection member.
  10858. * src/BtRejectMessage.cc
  10859. (doReceivedAction): Use dispatcher member.
  10860. * src/DefaultBtMessageDispatcher.h
  10861. (Option.h): Removed include.
  10862. (messageFactory): New variable.
  10863. (option): Removed.
  10864. (maxUploadSpeedLimit): New variable.
  10865. (requestTimeout): New variable.
  10866. (DefaultBtMessageDispatcher): Removed option.
  10867. Added maxUploadSpeedLimit, requestTimeout.
  10868. (setOption): Removed.
  10869. (getOption): Removed.
  10870. (setMaxUploadSpeedLimit): New function.
  10871. (setRequestTimeout): New function.
  10872. (setBtMessageFactory): New function.
  10873. * src/DefaultBtInteractive.h
  10874. (btMessageReceiver):
  10875. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10876. (dispatcher):
  10877. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10878. (btRequestFactory):
  10879. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10880. (peerConnection):
  10881. PeerConnectionHandle -> PeerConnectionWeakHandle
  10882. (messageFactory): New variable.
  10883. (option): Removed.
  10884. (keepAliveInterval): New variable.
  10885. (maxDownloadSpeedLimit): New variable.
  10886. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10887. (setBtMessageReceiver):
  10888. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10889. (setDispatcher):
  10890. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10891. (setBtRequestFactory):
  10892. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10893. (setPeerConnection):
  10894. PeerConnectionHandle -> PeerConnectionWeakHandle
  10895. (setOption): Removed.
  10896. (setKeepAliveInterval): New function.
  10897. (setMaxDownloadSpeedLimit): New function.
  10898. (setBtMessageFactory): New function.
  10899. * src/BitfieldMan.h
  10900. (cachedNumMissingBlock): New variable.
  10901. (cachedNumFilteredBlock): New variable.
  10902. (cachedCompletedLength): New variable.
  10903. (cachedFilteredComletedLength): New variable.
  10904. (cachedFilteredTotalLength): New variable.
  10905. (countMissingBlockNow): New function.
  10906. (countFilteredBlockNow): New function.
  10907. (getFilteredTotalLengthNow): New function.
  10908. (getCompletedLengthNow): New function.
  10909. (getFilteredCompletedLengthNow): New function.
  10910. (updateCache): New function.
  10911. * src/AbstractBtMessage.h
  10912. (BtMessageDispatcher.h): New include.
  10913. (PeerConnection.h): New include.
  10914. (BtRequestFactory.h): New include
  10915. (BtMessageFactory.h): New include.
  10916. (dispatcher): New variable.
  10917. (messageFactory): New variable.
  10918. (peerConnection: New variable.
  10919. (setBtMessageDispatcher): New function.
  10920. (setPeerConnection): New function.
  10921. (setBtMessageFactory): New function.
  10922. (setBtRequestFactory): New function.
  10923. * src/DefaultBtMessageFactory.cc
  10924. (setCommonProperty): Set dispatcher, requestFactory, this,
  10925. peerConnection to msg.
  10926. * src/BtRegistry.h
  10927. (BT_MESSAGE_RECEIVER): New macro.
  10928. * src/PeerConnection.h
  10929. (PeerConnectionWeakHandle): New type definition.
  10930. * src/BtMessageFactory.h
  10931. (BtMessageFactoryWeakHandle): New type definition.
  10932. * src/BitfieldMan.cc
  10933. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10934. cachedCompletedLength, cachedFilteredComletedLength,
  10935. cachedFilteredTotalLength.
  10936. Call updateCache().
  10937. (countMissingBlock): Return cachedNumMissingBlock.
  10938. (countMissingBlockNow): New function.
  10939. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10940. (countFilteredBlockNow): New function.
  10941. (setBit): Call updateCache().
  10942. (unsetBit): Call updateCache().
  10943. (setBitfield): Call updateCache().
  10944. (clearAllBit): Call updateCache().
  10945. (setAllBit): Use setBitInternal instead of setBit.
  10946. Call updateCache().
  10947. (addFilter): Call updateCache().
  10948. (enableFilter): Call updateCache().
  10949. (disableFilter): Call updateCache().
  10950. (clearFilter): Call updateCache().
  10951. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10952. (getFilteredTotalLengthNow): New function.
  10953. (getCompletedLength): Return cachedCompletedLength.
  10954. (getCompletedLengthNow): New function.
  10955. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10956. (getFilteredCompletedLengthNow): New function.
  10957. (updateCache): New function.
  10958. * src/BtMessageReceiver.h
  10959. (BtMessageReceiverWeakHandle): New type definition.
  10960. * src/DefaultBtMessageReceiver.cc
  10961. (receiveHandshake): Use messageFactory member.
  10962. (sendHandshake): Use messageFactory member.
  10963. (receiveMessage): Use messageFactory member.
  10964. * src/DefaultBtMessageFactory.h
  10965. (dispatcher): New variable.
  10966. (requestFactory): New variable.
  10967. (peerConnection): New variablle.
  10968. (setBtMessageDispatcher): New function.
  10969. (setBtRequestFactory): New function.
  10970. (setPeerConnection): New function.
  10971. * src/SharedHandle.h
  10972. (RefCount): New class.
  10973. (WeakHandle): New class.
  10974. * src/PeerObject.h
  10975. (BtMessageReceiver.h): New include.
  10976. (PeerObject): Added btMessageReceiver.
  10977. (btMessageReceiver): New variable.
  10978. * src/Util.cc
  10979. (countBit): Simplified.
  10980. * src/BtCancelMessage.cc
  10981. (doReceivedAction): Use dispatcher member.
  10982. * src/BtRequestFactory.h
  10983. (BtRequestFactoryWeakHandle): New type definition.
  10984. * src/PeerStorage.h
  10985. (downloadSpeed): int -> uint32_t
  10986. (uploadSpeed): int -> uint32_t
  10987. (sessionDownloadLength): long long int -> uint64_t
  10988. (sessionUploadLength): long long int -> uint64_t
  10989. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10990. To add RecoverableException, FatalException:
  10991. * src/AbstractCommand.cc
  10992. (onAbort): Exception -> RecoverableException
  10993. * src/PeerAbstractCommand.h
  10994. (RecoverableException.h): New include.
  10995. (onAbort): Exception -> RecoverableException.
  10996. * src/PeerInteractionCommand.cc
  10997. (onAbort): Exception -> RecoverableException.
  10998. * src/PeerAbstractCommand.cc
  10999. (execute): Exception -> RecoverableException.
  11000. (onAbort): Exception -> RecoverableException.
  11001. * src/TorrentRequestInfo.cc
  11002. (execute): Exception -> RecoverableException.
  11003. * src/MetalinkRequestInfo.cc
  11004. (execute): Exception -> RecoverableException.
  11005. * src/MetaFileUtil.cc: RecoverableException.
  11006. * src/AbstractCommand.h
  11007. (onAbort): Exception -> RecoverableException.
  11008. * src/DlRetryEx.h: Exception -> RecoverableException.
  11009. * src/DlAbortEx.h: Exception -> RecoverableException.
  11010. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11011. * src/Util.cc: Exception -> RecoverableException.
  11012. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11013. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11014. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11015. To make ID static const int
  11016. * src/BtInterestedMessage.h
  11017. (ID_t): Removed.
  11018. (ID): New variable.
  11019. (getId): Made non-const.
  11020. * src/BtPieceMessage.h
  11021. (ID_t): Removed.
  11022. (ID): New variable.
  11023. (getId): Made non-const.
  11024. * src/BtChokeMessage.h
  11025. (ID_t): Removed.
  11026. (ID): New variable.
  11027. (getId): Made non-const.
  11028. * src/BtHaveAllMessage.h
  11029. (ID_t): Removed.
  11030. (ID): New variable.
  11031. (getId): Made non-const.
  11032. * src/BtKeepAliveMessage.h
  11033. (ID_t): Removed.
  11034. (ID): New variable.
  11035. (getId): Made non-const.
  11036. * src/BtHandshakeMessage.h
  11037. (ID): New variable.
  11038. (getId): Made non-const.
  11039. * src/BtSuggestPieceMessage.h
  11040. (ID_t): Removed.
  11041. (ID): New variable.
  11042. (getId): Made non-const.
  11043. * src/BtPortMessage.h
  11044. (ID_t): Removed.
  11045. (ID): New variable.
  11046. (getId): Made non-const.
  11047. * src/AbstractBtMessage.h
  11048. (id): Removed.
  11049. (AbstractBtMessage): Removed id.
  11050. (getId): Removed.
  11051. * src/BtHaveMessage.h
  11052. (ID_t): Removed.
  11053. (ID): New variable.
  11054. (getId): Made non-const.
  11055. * src/BtAllowedFastMessage.h
  11056. (ID_t): Removed.
  11057. (ID): New variable.
  11058. (getId): Made non-const.
  11059. * src/BtCancelMessage.h
  11060. (ID_t): Removed.
  11061. (ID): New variable.
  11062. (getId): Made non-const.
  11063. * src/BtNotInterestedMessage.h
  11064. (ID_t): Removed.
  11065. (ID): New variable.
  11066. (getId): Made non-const.
  11067. * src/BtChokeMessage.h
  11068. (ID_t): Removed.
  11069. (ID): New variable.
  11070. (getId): Made non-const.
  11071. * src/BtRejectMessage.h
  11072. (ID_t): Removed.
  11073. (ID): New variable.
  11074. (getId): Made non-const.
  11075. * src/BtBitfieldMessage.h
  11076. (ID_t): Removed.
  11077. (ID): New variable.
  11078. (getId): Made non-const.
  11079. * src/BtUnchokeMessage.h
  11080. (ID_t): Removed.
  11081. (ID): New variable.
  11082. (getId): Made non-const.
  11083. * src/BtRequestMessage.h
  11084. (ID_t): Removed.
  11085. (ID): New variable.
  11086. (getId): Made non-const.
  11087. * src/BtHaveMessage.h
  11088. (ID_t): Removed.
  11089. (ID): New variable.
  11090. (getId): Made non-const.
  11091. To add --force-truncate command-line option and a check whether
  11092. the file already exists:
  11093. * src/DirectDiskAdaptor.h
  11094. (getFilePath): Made virtual public.
  11095. * src/MultiDiskAdaptor.h
  11096. (File.h): New include.
  11097. (DiskWriterEntry::fileEntry): Made private.
  11098. (DiskWriterEntry::fileExists): New function.
  11099. (DiskWriterEntry::getFileEntry): New function.
  11100. (fileExists): New function.
  11101. (getFilePath): New function.
  11102. * src/TorrentRequestInfo.cc
  11103. (FatalException.h): New include.
  11104. (message.h): New include.
  11105. (RecoverableException.h): New include.
  11106. (execute): Added a check whether file is already exists or not.
  11107. * src/DiskAdaptor.h
  11108. (fileExists): New function.
  11109. (getFilePath): New function.
  11110. * src/main.cc
  11111. (showUsage): Added an explanation of --force-truncate command-line
  11112. option.
  11113. (main): Added --force-truncate command-line option.
  11114. * src/Exception.h
  11115. (setMsg): buf[256] -> buf[1024]
  11116. * src/CopyDiskWriter.h
  11117. (getFilePath): Made public virtual.
  11118. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11119. (fileExists): New function.
  11120. * src/DownloadEngineFactory.cc
  11121. (newTorrentConsoleEngine): Don't open file here.
  11122. * src/message.h
  11123. (EX_FILE_ALREADY_EXISTS): New definition.
  11124. * src/prefs.h
  11125. (PREF_FOECE_TRUNCATE): New definition.
  11126. * src/HttpResponseCommand.cc
  11127. (handleDefaultEncoding): Added a check whether the file already exists.
  11128. * src/SegmentMan.h
  11129. (fileExists): New function.
  11130. (shouldCancelDownloadForSafety): New function.
  11131. * src/FtpNegotiateCommand.cc
  11132. (recvSize): Added a check whether the file already exists.
  11133. * src/AbstractSingleDiskAdaptor.cc
  11134. (File.h): New include.
  11135. (fileExists): New function.
  11136. * src/AbstractSingleDiskAdaptor.h
  11137. (getFilePath): Removed.
  11138. (fileExists): New function.
  11139. * src/SegmentMan.cc
  11140. (fileExists): New function.
  11141. (shouldCancelDownloadForSafety): New function.
  11142. To fix regression bug in torrent downloading:
  11143. * src/DefaultBtRequestFactory.cc
  11144. (doChokedAction): New function.
  11145. * src/DefaultBtRequestFactory.h
  11146. (doChokedAction): New function.
  11147. * src/DefaultBtMessageDispatcher.cc
  11148. (doChokedAction): Do not delete request if its target is in allowed
  11149. fast set.
  11150. * src/DefaultBtInteractive.cc
  11151. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11152. (sendKeepAlive): Send keep alive message even if the outgoing message
  11153. queue is not empty.
  11154. (decideInterest): Simplified the code.
  11155. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11156. it is already called when BtChokeMessage is received from a peer.
  11157. * src/BtRequestFactory.h
  11158. (doChokedAction): New function.
  11159. To clean up code:
  11160. * src/PeerInteractionCommand.h
  11161. (executeInternal): Added virtual keyword explicitly.
  11162. (prepareForRetry): Added virtual keyword explicitly.
  11163. (prepareForNextPeer): Added virtual keyword explicitly.
  11164. (onAbort): Added virtual keyword explicitly.
  11165. * src/RequestSlot.cc
  11166. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11167. * src/BtPieceMessage.cc
  11168. (doReceivedAction): Added a debug log of piece's bitfield.
  11169. * src/Piece.h
  11170. (getBitfieldLength): New function.
  11171. * src/ByteArrayDiskWriter.cc
  11172. (clear): Added buf = 0 to avoid double free corruption.
  11173. * src/FileAllocator.cc
  11174. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11175. Added cp.reset().
  11176. * src/BitfieldMan.h
  11177. (operator=): Rewritten.
  11178. * src/BitfieldMan.cc
  11179. (BitfieldMan): Initialized bitfield, useBitfield.
  11180. * src/PeerConnection.cc
  11181. (receiveMessage): Added a call to socket->readable() after getting
  11182. message length to avoid possible EOF.
  11183. * src/Util.cc
  11184. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11185. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11186. To add an ability to pre-allocate file space:
  11187. * src/DirectDiskAdaptor.h: Rewritten.
  11188. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11189. * src/MultiDiskAdaptor.h: Rewritten.
  11190. * src/DefaultPieceStorage.cc
  11191. (MultiDiskWriter.h): Removed include.
  11192. (PreAllocationDiskWriter.h): Removed include.
  11193. (FileAllocationMonitor.h): New include.
  11194. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11195. (initStorage): Rewritten.
  11196. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11197. * src/FileAllocator.h: New class.
  11198. * src/FileAllocator.cc: New class.
  11199. * src/FileAllocationMonitor.h: New class.
  11200. * src/FileAllocationMonitor.cc: New class.
  11201. * src/ConsoleFileAllocationMonitor.h: New class.
  11202. * src/ConsoleFileAllocationMonitor.cc: New class.
  11203. * src/AbstractSingleDiskAdaptor.h: New class.
  11204. * src/AbstractSingleDiskAdaptor.cc: New class.
  11205. * src/DiskAdaptor.h
  11206. (Directory.h): Removed include.
  11207. (DiskWriter.h): Removed include.
  11208. (FileEntry.h): Removed include.
  11209. (diskWriter): Removed.
  11210. (DiskAdaptor): Removed diskWriter.
  11211. (openFile): Made pure virtual.
  11212. (closeFile): Made pure virtual.
  11213. (openExistingFile): Made pure virtual.
  11214. (initAndOpenFile): Made pure virtual.
  11215. (writeData): Made pure virtual.
  11216. (readData): Made pure virtual.
  11217. (sha1Sum): Made pure virtual.
  11218. (getStoreDir): Returns const reference of storeDir.
  11219. (DiskAdaptorHandle): New type definition.
  11220. * src/main.cc
  11221. (ConsoleFileAllocationMonitor.h): New include.
  11222. (showUsage): Added default value description of -s option.
  11223. Added the description of --file-allocation option.
  11224. (main): Set default value of --file-allocation option to 'none'.
  11225. Added --file-allocation command-line option.
  11226. Setup FileAllocationMonitorFactory.
  11227. * src/FtpInitiateConnectionCommand.cc
  11228. (executeInternal): Removed diskWriter related processing, which was
  11229. moved to FtpNegotiationCommand.cc.
  11230. * src/DirectDiskAdaptor.cc
  11231. (getFilePath): Made non-const.
  11232. * src/CopyDiskAdaptor.h
  11233. (DiskAdaptor.h): Removed include.
  11234. (DiskWriter.h): Removed include.
  11235. (AbstractSingleDiskAdaptor.h): New include.
  11236. (getFilePath): Made non-const. Added virtual keyword.
  11237. (CopyDiskAdaptor): Removed diskWriter.
  11238. (getTempFile): Returns const reference.
  11239. (CopyDiskAdaptorHandle): New type definition.
  11240. * src/ByteArrayDiskWriter.cc
  11241. (clear): Simplified.
  11242. (initAndOpenFile): Rewritten.
  11243. (openFile): Call initAndOpenFile()
  11244. * src/MultiDiskAdaptor.cc: Rewritten.
  11245. * src/DownloadEngineFactory.cc
  11246. (FileAllocator.h): New include.
  11247. (FileAllocationMonitor.h): New include.
  11248. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11249. create DefaultDiskWriter with file allocator.
  11250. * src/DiskWriter.h
  11251. (initAndOpenFile): Added totalLength argument.
  11252. (openFile): Added totalLength argument.
  11253. * src/prefs.h
  11254. (PREF_FILE_ALLOCATION): New definition.
  11255. (V_PREALLOC): New definition.
  11256. (V_NONE): New definition.
  11257. * src/HttpResponseCommand.cc
  11258. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11259. size.
  11260. * src/FtpNegotiateCommand.cc
  11261. (Util.h): New include.
  11262. (recvSize): Open file here.
  11263. * src/Util.h
  11264. (ullitos): New function.
  11265. * src/CopyDiskWriter.h
  11266. (getFilePath): Made non-const.
  11267. * src/DefaultDiskWriter.h
  11268. (Option.h): New include.
  11269. (totalLength): Removed.
  11270. (DefaultDiskWriter): Removed totalLength.
  11271. (initAndOpenFile): Added totalLength argument.
  11272. (DefaultDiskWriterHandle): New type definition.
  11273. (createNewDiskWriter): New function.
  11274. * src/Util.cc
  11275. (ullitos): New function.
  11276. * src/DefaultDiskWriter.cc
  11277. (message.h): New include.
  11278. (FileAllocator.h): New include.
  11279. (prefs.h): New include.
  11280. (Util.h): New include.
  11281. (DefaultDiskWriter): Removed totalLength.
  11282. (initAndOpenFile): Added file allocation.
  11283. (createNewDiskWriter): New function. Just for temporary solution.
  11284. It will be rewritten later.
  11285. * src/DiskAdaptor.cc
  11286. (DiskAdaptor): Removed diskWriter.
  11287. * src/AbstractDiskWriter.cc
  11288. (LogFactory.h): New include.
  11289. (AbstractDiskWriter): Added fileAllocator, logger.
  11290. (openFile): Added totalLength argument.
  11291. * src/AbstractDiskWriter.h
  11292. (FileAllocator.h): New include.
  11293. (Logger.h): New include.
  11294. (fileAllocator): New variable.
  11295. (logger): New variable.
  11296. (openFile): Added totalLength argument. Added virtual keyword
  11297. explicitly.
  11298. (openExistingFile): Added totalLength argument. Added virtual keyword
  11299. explicitly.
  11300. (closeFile): Added virtual keyword explicitly.
  11301. (sha1Sum): Added virtual keyword explicitly.
  11302. (writeData): Added virtual keyword explicitly.
  11303. (readData): Added virtual keyword explicitly.
  11304. (setFileAllocator): New function.
  11305. * src/DefaultPieceStorage.h
  11306. (FileAllocator.h): New include.
  11307. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11308. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11309. * src/FileProgressMonitor.h: New class.
  11310. To compile aria2 on PC-BSD:
  11311. * src/DefaultBtContext.cc
  11312. (libgen.h): New include.
  11313. To fix memory leak:
  11314. * src/Exception.h
  11315. (~Exception): Delete cause. Fixed memory leak.
  11316. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11317. Rewritten a portion of bittorrent implementation:
  11318. * src/BtMessageValidator.h: New class.
  11319. * src/BtBitfieldMessageValidator.h: New class.
  11320. * src/BtHandshakeMessageValidator.h: New class.
  11321. * src/BtRequestMessageValidator.h: New class.
  11322. * src/BtSuggestPieceMessageValidator.h: New class.
  11323. * src/BtAllowedFastMessageValidator.h: New class.
  11324. * src/BtRejectMessageValidator.h: New class.
  11325. * src/BtCancelMessageValidator.h: New class.
  11326. * src/BtPieceMessageValidator.h: New class.
  11327. * src/BtHaveMessageValidator.h: New class.
  11328. * src/BtEventListener.h: New class.
  11329. * src/AbstractBtEventListener.h: New class.
  11330. * src/BtEvent.h: New class.
  11331. * src/BtChokingEvent.h: New class.
  11332. * src/BtChokedEvent.h: New class.
  11333. * src/BtCancelSendingPieceEvent.h: New class.
  11334. * src/BtAbortOutstandingRequestEvent.h: New class.
  11335. * src/Randomizer.h: New class.
  11336. * src/SimpleRandomizer.h: New class.
  11337. * src/BtMessage.h: New class.
  11338. * src/AbstractBtMessage.h: New class.
  11339. * src/SimpleBtMessage.h: New class.
  11340. * src/BtHaveMessage.h: New class.
  11341. * src/BtInterestedMessage.h: New class.
  11342. * src/BtAllowedFastMessage.h: New class.
  11343. * src/BtUnchokeMessage.h: New class.
  11344. * src/BtCancelMessage.h: New class.
  11345. * src/BtNotInterestedMessage.h: New class.
  11346. * src/BtChokeMessage.h: New class.
  11347. * src/BtHaveNoneMessage.h: New class.
  11348. * src/BtHandshakeMessage.h: New class.
  11349. * src/BtSuggestPieceMessage.h: New class.
  11350. * src/BtHaveMessage.h: New class.
  11351. * src/BtPieceMessage.h: New class.
  11352. * src/BtHaveAllMessage.h: New class.
  11353. * src/BtKeepAliveMessage.h: New class.
  11354. * src/BtPortMessage.h: New class.
  11355. * src/BtRejectMessage.h: New class.
  11356. * src/BtBitfieldMessage.h: New class.
  11357. * src/BtRequestMessage.h: New class.
  11358. * src/DefaultBtRequestFactory.h: New class.
  11359. * src/DefaultBtMessageReceiver.h: New class.
  11360. * src/BtInteractive.h: New class.
  11361. * src/BtMessageDispatcher.h: New class.
  11362. * src/DefaultBtMessageDispatcher.h: New class.
  11363. * src/DefaultBtInteractive.h: New class.
  11364. * src/BitfieldManFactory.h: New class.
  11365. * src/HandleRegistry.h: New class.
  11366. * src/BtMessageFactory.h: New class.
  11367. * src/BtMessageReceiver.h: New class.
  11368. * src/DefaultBtMessageFactory.h: New class.
  11369. * src/PeerObject.h: New class.
  11370. * src/BtRequestFactory.h: New class.
  11371. * src/SuggestPieceMessage.h: Removed.
  11372. * src/PortMessage.h: Removed.
  11373. * src/SuggestPieceMessage.h: Removed.
  11374. * src/KeepAliveMessage.h: Removed.
  11375. * src/HandshakeMessage.h: Removed.
  11376. * src/PeerInteraction.h: Removed.
  11377. * src/UnchokeMessage.h: Removed.
  11378. * src/PieceMessage.h: Removed.
  11379. * src/RequestMessage.h: Removed.
  11380. * src/InterestedMessage.h: Removed.
  11381. * src/HaveMessage.h: Removed.
  11382. * src/CancelMessage.h: Removed.
  11383. * src/RejectMessage.h: Removed.
  11384. * src/AllowedFastMessage.h: Removed.
  11385. * src/HaveNoneMessage.h: Removed.
  11386. * src/SimplePeerMessage.h: Removed.
  11387. * src/HaveAllMessage.h: Removed.
  11388. * src/BitfieldMessage.h: Removed.
  11389. * src/PeerMessageFactory.h: Removed.
  11390. * src/NotInterestedMessage.h: Removed.
  11391. * src/ChokeMessage.h: Removed.
  11392. * src/PeerMessage.h: Removed.
  11393. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. To know root cause of exception:
  11395. * src/Exception.h
  11396. (cause): New variable.
  11397. (Exception): Added a parameter.
  11398. (getMsg): Return const reference to msg.
  11399. (getCause): New function.
  11400. * src/DlRetryEx.h
  11401. (DlRetryEx): Added a parameter 'cause'.
  11402. Added an overloaded constructor.
  11403. (DlAbortEx): Added a parameter 'cause'.
  11404. Added an overloaded constructor.
  11405. * src/SimpleLogger.cc
  11406. (writeLog): Log nested exception messages recursively.
  11407. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11408. * src/DefaultBtProgressInfoFile.cc
  11409. (load): Fixed memory leak when the infohash doesn't match.
  11410. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11411. * src/DefaultPeerStorage.cc
  11412. (calculateStat): Simplified the code by combining 2 loops into 1.
  11413. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11414. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11415. for BitTorrent download:
  11416. * src/PeerAbstractCommand.cc
  11417. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11418. * src/main.cc:
  11419. (timeoutSpecified): Removed.
  11420. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11421. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11422. * src/TorrentRequestInfo.cc
  11423. (timeoutSpecified): Removed.
  11424. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11425. timeout value.
  11426. * src/prefs.h
  11427. (PREF_BT_TIMEOUT): New definition.
  11428. Delete unused variables:
  11429. * src/TorrentRequestInfo.cc
  11430. (requestInfo): Removed.
  11431. Move setSignalHander to Util::setGlobalSignalHandler:
  11432. * src/TorrentRequestInfo.cc:
  11433. setSignalHander -> Util::setGlobalSignalHandler
  11434. * src/main.cc
  11435. (setSignalHander): Removed.
  11436. (main): setSignalHander -> Util::setGlobalSignalHandler
  11437. * src/Util.h
  11438. (setGlobalSignalHandler): New function.
  11439. * src/Util.cc
  11440. (setGlobalSignalHandler): New function.
  11441. * src/UrlRequestInfo.cc:
  11442. setSignalHander -> Util::setGlobalSignalHandler
  11443. Reset peer status in order to exit gracefully:
  11444. * src/PeerAbstractCommand.cc
  11445. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11446. To fix the bug that causes the number of bytes uploaded is not saved
  11447. to .aria2 file:
  11448. * src/DefaultPeerStorage.h
  11449. (removedPeerSessionDownloadLength): New variable.
  11450. (removedPeerSessionUploadLength): New variable.
  11451. * src/DefaultPeerStorage.cc
  11452. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11453. removedPeerSessionUploadLength(0).
  11454. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11455. through all peers, and then add removedPeerSessionDownloadLength(
  11456. removedPeerSessionUploadLength) to it.
  11457. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11458. (to) the peer to removedPeerSessionDownloadLength
  11459. (removedPeerSessionUploadLength).
  11460. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11461. To add Metalink location option:
  11462. * src/MetalinkRequestInfo.cc
  11463. (execute): Call MetalinkEntry::setLocationPreference()
  11464. * src/main.cc
  11465. (showUsage): Added the help message for --metalink-location option.
  11466. (main): Added --metalink-location option.
  11467. * src/prefs.h
  11468. (PREF_METALINK_LOCATION): New definition.
  11469. * src/MetalinkEntry.cc
  11470. (AddLocationPreference): New function object.
  11471. (setLocationPreference): New function.
  11472. * src/Xml2MetalinkProcessor.cc
  11473. (getResource): Set location attribute to MetalinkResource
  11474. To show URLs to download
  11475. * src/UrlRequestInfo.h
  11476. (printUrls): New function.
  11477. To add multiple <file> Metalink support:
  11478. * src/MetalinkEntry.h
  11479. (MetalinkResources): Removed.
  11480. (setLocationPreference): New function.
  11481. (MetalinkEntryHandle): New type definition.
  11482. (MetalinkEntries): New type definition.
  11483. * src/Xml2MetalinkProcessor.h
  11484. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11485. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11486. (parseFile): Metalinker* -> MetalinkerHandle
  11487. * src/UrlRequestInfo.h
  11488. (execute): RequestInfo* -> RequestInfos
  11489. * src/MetalinkRequestInfo.cc
  11490. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11491. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11492. (execute): RequestInfo* -> RequestInfos
  11493. Added multiple <file> support. Print filename when it is queued.
  11494. * src/MetalinkRequestInfo.h
  11495. (execute): RequestInfo* -> RequestInfos
  11496. (getDownloadEngine): Removed.
  11497. * src/RequestInfo.h
  11498. (RequestInfoHandle): New type definition.
  11499. (RequestInfos): New type definition.
  11500. (execute): RequestInfo* -> RequestInfos
  11501. (getDownloadEngine): Removed.
  11502. * src/MetalinkResource.h
  11503. (MetalinkResourceHandle): New type definition.
  11504. (MetalinkResources): New type definition.
  11505. * src/MetalinkEntry.cc
  11506. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11507. because the element is now of type MetalinkResourceHandle.
  11508. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11509. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11510. (dropUnsupportedResource): Removed the deletion of the elements of
  11511. resources because the element is now of type MetalinkResourceHandle.
  11512. * src/Xml2MetalinkProcessor.cc
  11513. (parseFile): Metalinker* -> MetalinkerHandle
  11514. MetalinkEntry* -> MetalinkEntryHandle
  11515. Removed try-catch block.
  11516. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11517. MetalinkResource* -> MetalinkResourceHandle
  11518. Removed try-catch block.
  11519. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11520. Free result by using xmlXPathFreeObject()
  11521. * src/Metalinker.cc
  11522. (~Metalinker): Removed the deletion of entries.
  11523. MetalinkEntry* -> MetalinkEntryHandle
  11524. (queryEntry): Add multiple <file> Metalink support.
  11525. * src/Metalinker.h
  11526. (MetalinkEntries): Removed.
  11527. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11528. * src/MetalinkProcessor.h
  11529. (parseFile): Metalinker* -> MetalinkerHandle
  11530. Bug fixes:
  11531. * src/PeerChokeCommand.cc
  11532. (execute): cat01->cat02
  11533. * src/DefaultPieceStorage.cc
  11534. (DefaultPieceStorage): Added diskAdaptor(0)
  11535. * src/TrackerWatcherComand.cc:
  11536. (execute): Use btAnnounce->noMoreAnnounce()
  11537. to determin whether the function returns true or not.
  11538. * src/TrackerUpdateCommand.cc:
  11539. (execute): Use btAnnounce->noMoreAnnounce()
  11540. to determin whether the function returns true or not.
  11541. * src/FtpConnection.cc
  11542. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11543. This is the fix of the busy loop bug.
  11544. * src/DownloadCommand.cc
  11545. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11546. cached PeerStat.
  11547. The value of "name" entry in torrent file is now set by
  11548. *DiskAdaptor::setTopDir(...) methods.
  11549. * src/MultiDiskAdaptor.h
  11550. (topDir): New variable.
  11551. (setTopDir): New function.
  11552. (getTopDir): New function.
  11553. * src/MultiDiskAdaptor.cc
  11554. (getFilePath): Concat storDir, "/" and topDir.
  11555. (mkdir): Use getFilePath() to get the directory path for output.
  11556. * src/DefaultPieceStorage.cc
  11557. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11558. CopyDiskAdaptor.
  11559. * src/CopyDiskAdaptor.h
  11560. (topDir): New variable.
  11561. (setTopDir): New function.
  11562. (getTopDir): New function.
  11563. * src/CopyDiskAdaptor.cc
  11564. (fixFilename): Updated.
  11565. Misc
  11566. * src/UrlRequestInfo.h
  11567. (e): Removed.
  11568. (UrlRequestInfo): Removed e.
  11569. (getDownloadEngine): Removed.
  11570. * src/UrlRequestInfo.cc
  11571. (handler): Rewritten.
  11572. (printUrls): New function.
  11573. (execute): Call printUrls().
  11574. * src/HandshakeMessage.cc
  11575. (check): peerinteraction->getBtContext() -> btContext
  11576. * src/PeerInteraction.h
  11577. (getBtContext): Removed.
  11578. * src/TorrentRequestInfo.h
  11579. (execute): RequestInfo* -> RequestInfos
  11580. (getDownloadEngine): Removed.
  11581. * src/TorrentRequestInfo.cc
  11582. (haltRequested): Removed.
  11583. (btHaltRequested): New variable.
  11584. (torrentHandler): haltRequested -> btHaltRequested
  11585. (execute): RequestInfo* -> RequestInfos
  11586. * src/TorrentConsoleDownloadEngine.cc
  11587. (afterEachIteration): haltRequested -> btHaltRequested.
  11588. * src/ConsoleDownloadEngine.h
  11589. (initStatistics): Added virtual.
  11590. (calculateStatistics): Added virtual.
  11591. (onEndOfRun): Added virtual.
  11592. (afterEachIteration): Added virtual.
  11593. * src/ConsoleDownloadEngine.cc
  11594. (haltRequested): New variable.
  11595. (afterEachIteration): New function.
  11596. * src/main.cc
  11597. (requestInfo): Removed.
  11598. * src/SegmentMan.cc
  11599. (findSlowerSegmentEntry): Refactored.
  11600. * Release 0.9.0
  11601. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11602. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11603. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11604. * src/TorrentMan.h: Removed.
  11605. * src/TorrentMan.cc: Removed.
  11606. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11607. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11608. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11609. * src/PeerAbstractCommand.cc: Use btRuntime.
  11610. * src/BtContextAwareCommand.h: New class.
  11611. * src/FileEntry.h: Added accessor methods for following variables.
  11612. (path): Made private.
  11613. (length): Made private.
  11614. (offset): Made private.
  11615. (extracted): Made private.
  11616. (requested): Made private.
  11617. (FileEntries): New definition.
  11618. (FileEntryHandle): New definition.
  11619. * src/FileEntry.cc: New file.
  11620. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11621. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11622. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11623. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11624. * src/PieceStorage.h: New file.
  11625. * src/PeerInteractionCommand.h: Use btContext.
  11626. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11627. btRuntime.
  11628. * src/DefaultBtProgressInfoFile.h: New file.
  11629. * src/DefaultBtProgressInfoFile.cc: New file.
  11630. * src/File.cc
  11631. (Util.h): New include.
  11632. (mkdirs): New function.
  11633. * src/MultiDiskAdaptor.h
  11634. (mkdir): New function.
  11635. * src/PeerListProcessor.h
  11636. (Peers): Removed.
  11637. * src/PeerInteraction.h
  11638. (torrentMan): Removed.
  11639. (btContext): New variable.
  11640. (peerStorage): New variable.
  11641. (pieceStorage): New variable.
  11642. (btAnnounce): New variable.
  11643. (getTorrentMan): Removed.
  11644. (getBtContext): New function.
  11645. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11646. btAnnounce.
  11647. * src/HandshakeMessage.h
  11648. (TorrentMan.h): Removed.
  11649. * src/HandshakeMessage.cc: Use btContext.
  11650. * src/DefaultBtAnnounce.cc: New file.
  11651. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11652. * src/DefaultPieceStorage.cc: New file.
  11653. * src/DefaultBtContext.h: New file.
  11654. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11655. Use the accessor methods of FileEntry.
  11656. * src/CookieBox.cc: Updated to use Util::slice().
  11657. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11658. * src/common.h (SharedHandle.h): New include.
  11659. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11660. pieceStorage.
  11661. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11662. * src/DiskAdaptor.h
  11663. (topDir): Removed.
  11664. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11665. (setTopDir): Removed.
  11666. (getTopDir): Removed.
  11667. * src/BtContext.h: New file.
  11668. * src/DefaultPeerStorage.h: New file.
  11669. * src/PieceMessage.h (TorrentMan.h): Removed.
  11670. * src/RequestMessage.h (TorrentMan.h): Removed.
  11671. * src/TorrentDownloadEngine.h
  11672. (uploadLength): New variable.
  11673. (btContext): New variable.
  11674. (btRuntime): New variable.
  11675. (pieceStorage): New variable.
  11676. (peerStorage): New variable.
  11677. (btAnnounce): New variable.
  11678. (btProgressInfoFile): New variable.
  11679. (torrentMan): Removed.
  11680. (setBtContext): New function.
  11681. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11682. peerStorage, btAnnounce, btProgressInfoFile.
  11683. * src/Piece.h
  11684. (toString): New function.
  11685. (Pieces): New type definition.
  11686. * src/Peer.h
  11687. (active): New variable.
  11688. (Peer): Added active.
  11689. (activate): Set active to true.
  11690. (deactivate): Set active to false.
  11691. (isActive): New function.
  11692. (Peers): New type definition.
  11693. * src/DirectDiskAdaptor.cc
  11694. (getFilePath): Use the accessor methods of FileEntry.
  11695. * src/TorrentConsoleDownloadEngine.h
  11696. (afterEachIteration): New function.
  11697. * src/TorrentConsoleDownloadEngine.cc
  11698. (haltRequested): New variable.
  11699. (sendStatistics): Use pieceStorage, btRuntime.
  11700. (afterEachIteration): New function.
  11701. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11702. * src/Directry.h
  11703. (Directory): New function.
  11704. (DirectoryHandle): New type definition.
  11705. * src/BtProgressInfoFile.h: New file.
  11706. * src/RequestMessage.cc: Use pieceStorage.
  11707. * src/BtRuntime.h: New file.
  11708. * src/DefaultBtContext.cc: New file.
  11709. * src/BitfieldMan.h
  11710. (getCompletedLength): New function(private).
  11711. (getCompletedLength): New function.
  11712. (getFilteredCompletedLength): New function.
  11713. * src/BitfieldMan.h
  11714. (getCompletedLength): New function(private).
  11715. (getCompletedLength): New function.
  11716. (getFilteredCompletedLength): New function.
  11717. * src/MultiDiskAdaptor.cc
  11718. (mkdir): New function.
  11719. (openFile): Call mkdir().
  11720. (initAndOpenFile): Call mkdir().
  11721. * src/CancelMessage.h
  11722. (TorrentMan.h): Removed.
  11723. * src/RejectMessage.h
  11724. (TorrentMan.h): Removed.
  11725. * src/DownloadEngineFactory.cc
  11726. (DefaultPieceStorage.h): New include.
  11727. (DefaultPeerStorage.h): New include.
  11728. (DefaultBtAnnounce.h): New include.
  11729. (DefaultBtProgressInfoFile.h): New include.
  11730. (newTorrentConsoleEngine): Rewritten.
  11731. * src/ShareRatioSeedCriteria.h
  11732. (torrentMan): Removed.
  11733. (btContext): New variable.
  11734. (peerStorage): New variable.
  11735. (btRuntime): New variable.
  11736. (evaluate): Use btContext, btRuntime, peerStorage.
  11737. * src/AnnounceTier.h: New file.
  11738. * src/BtAnnounce.h: New file.
  11739. * src/BtRegistry.h: New file.
  11740. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11741. * src/PeerConnection.h (TorrentMan.h): Removed.
  11742. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11743. * src/Util.h
  11744. (slice): Added an argument.
  11745. * src/Util.cc
  11746. (slice): Added an argument to control whether trim is made or not.
  11747. * src/PeerStorage.h: New file.
  11748. * src/BtRegistry.cc: New file.
  11749. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11750. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11751. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11752. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11753. * src/TorrentRequestInfo.h
  11754. (e): Removed.
  11755. (showFileEntry): Added an argument.
  11756. (getDownloadEngine): Return 0.
  11757. * src/DefaultBtAnnounce.h: New file.
  11758. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11759. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11760. * src/PeerMessageFactory.h
  11761. (btContext): New variable.
  11762. (pieceStorage): New variable.
  11763. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11764. btAnnounce.
  11765. * src/DiskAdaptor.cc
  11766. (DiskAdaptor): Removed topDir.
  11767. (~DiskAdaptor): Removed topDir.
  11768. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11769. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11770. * src/File.h (mkdirs): New function.
  11771. * src/DefaultPeerStorage): New file.
  11772. * src/DownloadEngineFactory.h
  11773. (newTorrentConsoleEngine): Use btContext.
  11774. * src/BtContextAwareCommand.cc: New file.
  11775. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11776. * src/PeerMessage.h
  11777. (btContext): New variable.
  11778. (peerStorage): New variable.
  11779. (pieceStorage): New variable.
  11780. (setBtContext): New function.
  11781. * src/Directry.cc
  11782. (Directory): New function.
  11783. (createDir): Do nothing if name.size() == 0.
  11784. * src/AnnounceList.h
  11785. (AnnounceTier): Removed.
  11786. (AnnounceTiers): Removed.
  11787. * src/DefaultPieceStorage.h: New file.
  11788. * src/Piece.cc (toString): New function.
  11789. To fix typo:
  11790. * src/main.cc (showVersion): Fixed typo.
  11791. To fix compile warning:
  11792. * src/DelegatingPeerListProcessor.cc
  11793. (canHandle): Added "return false".
  11794. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11795. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11796. make the process of announce request testable.
  11797. * src/TrackerWatcherCommand.h
  11798. (TimeA2.h): Removed.
  11799. (interval): Removed.
  11800. (checkPoint): Removed.
  11801. (createRequestCommand): Added an argument 'url'.
  11802. (TrackerWatherCommand): Removed interval.
  11803. (createCommand): New function.
  11804. * src/DownloadEngineFactory.cc
  11805. (newTorrentConsoleEngine): Updated according to the changes in
  11806. TrackerWatherCommand.
  11807. * src/TorrentMan.cc
  11808. (DelegatingPeerListProcessor.h): New includes.
  11809. (TorrentMan): Added the initialization of announceInterval.
  11810. (isStoppedAnnounceReady): New function.
  11811. (isCompletedAnnounceReady): New function.
  11812. (isDefaultAnnounceReady): New function.
  11813. (isAnnounceReady): New function.
  11814. (getAnnounceUrl): New function.
  11815. (announceStart): New function.
  11816. (announceFailure): New function.
  11817. (announceSuccess): New function.
  11818. (isAllAnnounceFailed): New function.
  11819. (resetAnnounce): New function.
  11820. (processAnnounceResponse): New function.
  11821. (needMorePeerConnection): New function.
  11822. (noMoreAnnounce): New function.
  11823. * src/TrackerUpdateCommand.h
  11824. (getTrackerResponse): int->size_t
  11825. * src/TorrentMan.h
  11826. (isStoppedAnnounceReady): New function.
  11827. (isCompletedAnnounceReady): New function.
  11828. (isDefaultAnnounceReady): New function.
  11829. (announceInterval): New variable.
  11830. (isAnnounceReady): New function.
  11831. (getAnnounceUrl): New function.
  11832. (announceStart): New function.
  11833. (announceFailure): New function.
  11834. (announceSuccess): New function.
  11835. (isAllAnnounceFailed): New function.
  11836. (resetAnnounce): New function.
  11837. (processAnnounceResponse): New function.
  11838. (needMorePeerConnection): New function.
  11839. (noMoreAnnounce): New function.
  11840. * src/TrackerWatcherCommand.cc
  11841. (TrackerWatherCommand): Removed interval and checkPoint.
  11842. (execute): Rewritten.
  11843. (createCommand): New function.
  11844. (createRequestCommand): Rewritten.
  11845. * src/TrackerUpdateCommand.cc
  11846. (MetaFileUtil.h): Removed.
  11847. (DelegatingPeerListProcessor.h): Removed.
  11848. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11849. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11850. Request -> RequestHandle:
  11851. * src/HttpResponseCommand.h: Request->RequestHandle
  11852. * src/AbstractCommand.cc: Request->RequestHandle
  11853. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11854. * src/HttpRequestCommand.cc: Request->RequestHandle
  11855. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11856. * src/AbstractCommand.h: Request->RequestHandle
  11857. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11858. * src/HttpResponseCommand.cc: Request->RequestHandle
  11859. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11860. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11861. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11862. * src/HttpConnection.h: Request->RequestHandle
  11863. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11864. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11865. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11866. * src/DownloadCommand.h: Request->RequestHandle
  11867. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11868. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11869. * src/HttpRequestCommand.h: Request->RequestHandle
  11870. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11871. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11872. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11873. * src/HttpDownloadCommand.h: Request->RequestHandle
  11874. * src/FtpConnection.cc: Request->RequestHandle
  11875. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11876. * src/UrlRequestInfo.cc: Request->RequestHandle
  11877. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11878. * src/HttpConnection.h: Request->RequestHandle
  11879. * src/DownloadCommand.cc: Request->RequestHandle
  11880. * src/FtpConnection.h: Request->RequestHandle
  11881. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11882. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11883. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11884. * src/Request.h
  11885. (SharedHandle.h): New include.
  11886. (RequestHandle): New type definition.
  11887. (Requests): Redefined.
  11888. To add MULTITRACKER support:
  11889. * src/TrackerWatcherCommand.h
  11890. (createRequestCommand): New function.
  11891. * src/DownloadEngineFactory.cc
  11892. (newTorrentConsoleEngine): Removed req.
  11893. * src/prefs.h
  11894. (PREF_TRACKER_MAX_TRIES): New definition.
  11895. * src/TorrentMan.cc
  11896. (TorrentMan): Removed req. Added trackerNumTry.
  11897. (~TorrentMan): Removed req.
  11898. (setupInternal1): Added announceList.
  11899. * src/TorrentRequestInfo.cc
  11900. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11901. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11902. * src/main.cc
  11903. (main): Added PREF_TRACKER_MAX_TRIES.
  11904. * src/TorrentMan.h
  11905. (Request.h): Removed.
  11906. (AnnounceList.h): New include.
  11907. (trackerNumTry): New variable.
  11908. (req): Removed.
  11909. (announceList): New variable.
  11910. * src/TrackerWatcherCommand.cc
  11911. (execute): Rewritten.
  11912. (createRequestCommand): New function.
  11913. * src/TrackerUpdateCommand.cc
  11914. (execute): Updated with the use of AnnounceList.
  11915. * src/AnnounceList.cc: New class.
  11916. * src/AnnounceList.h: New class.
  11917. To fix typo:
  11918. * src/prefs.h
  11919. (PREF_MAX_TRIES): max_try->max_tries
  11920. To not to decode "+" as space in URL decode:
  11921. * src/Util.cc
  11922. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11923. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11924. To add timeout to async name resolution:
  11925. * src/AbstractCommand.h
  11926. (nameResolveFinished): New function. This is not elegant way. It needs
  11927. to be more refined.
  11928. (nameResolverCheck): New variable.
  11929. * src/AbstractCommand.cc
  11930. (AbstractCommand): Added nameResolverCheck.
  11931. (execute): Added the check whether the name resolution has finished.
  11932. (setNameResolverCheck): Set nameResolverCheck to true.
  11933. (disableNameResolverCheck): Set nameResolverCheck to false.
  11934. (nameResolverFinished): New function.
  11935. * src/FtpInitiateConnectionCommand.h
  11936. (nameResolverFinished): New function.
  11937. * src/FtpInitiateConnectionCommand.cc
  11938. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11939. * src/HttpInitiateConnectionCommand.h
  11940. (nameResolverFinished): New function.
  11941. * src/HttpInitiateConnectionCommand.cc
  11942. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11943. * src/prefs.h
  11944. (PREF_DNS_TIMEOUT): New definition.
  11945. * src/main.cc
  11946. (main): Added PREF_DNS_TIMEOUT.
  11947. To add the support for a non-compact response from a tracker:
  11948. * src/PeerListProcessor.h: New class.
  11949. * src/DefaultPeerListProcessor.h: New class.
  11950. * src/DefaultPeerListProcessor.cc: New class.
  11951. * src/CompactPeerListProcessor.h: New class.
  11952. * src/CompactPeerListProcessor.cc: New class.
  11953. * src/DelegatingPeerListProcessor.h: New class.
  11954. * src/DelegatingPeerListProcessor.cc: New class.
  11955. * src/TorrentMan.cc
  11956. (addPeer): New function(overload).
  11957. (addPeer): Delete unused peers only when new peer is added.
  11958. * src/TorrentMan.h
  11959. (PeerListProcessor.h): Included.
  11960. (Peers): Removed.
  11961. (addPeer): New function(overload).
  11962. * src/TrackerUpdateCommand.cc
  11963. (netinet/in.h): Removed.
  11964. (DelegatingPeerListProcessor.h): Included.
  11965. (execute): Updated to use DelegatingPeerListProcessor.
  11966. To fix the memory leak in TorrentMan::peers:
  11967. * src/PeerAbstractCommand.cc
  11968. (onAbort): Added peer->resetStatus().
  11969. * src/Peer.h
  11970. (resetStatus): Made public.
  11971. To improve the precision of the speed calculation:
  11972. * src/SpeedCalc.h
  11973. (nextInterval): New variable.
  11974. * src/SpeedCalc.cc
  11975. (reset): Added nextInterval.
  11976. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11977. (changeSw): Set nextInterval to 15 seconds relative to the current
  11978. instant time.
  11979. * src/main.cc
  11980. (showVersion): Updated.
  11981. (showUsage): Updated.
  11982. * Release 0.8.1
  11983. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11984. * src/main.cc
  11985. (showUsage): Commented out --min-segment-size option.
  11986. (main): Commented out --min-segment-size option.
  11987. * Release 0.8.0
  11988. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11989. * src/*.{h,cc}:
  11990. Added an exception to the license which allows linking with OpenSSL.
  11991. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11992. * src/AbstractCommand.cc
  11993. (execute): Check whether the download has finished before checking
  11994. socket status.
  11995. Return true if peerStat->getStatus() == REQUEST_IDLE.
  11996. Do not exit even if no segment is available.
  11997. * src/prefs.h
  11998. (PREF_STARTUP_IDLE_TIME): New definition.
  11999. * src/PeerInteractionCommand.cc
  12000. (executeInternal): Removed max speed limit. Because it performs bad.
  12001. (receiveMessages): Added max speed limit. This was better than above,
  12002. but still a little bit to be desired. Sometimes the download speed
  12003. became much faster than I specified.
  12004. * src/SpeedCalc.h
  12005. (start): New variable.
  12006. (accumulatedLength): New variable.
  12007. (getAvgSpeed): New function.
  12008. * src/SpeedCalc.cc
  12009. (reset): Added start, accumulatedLength.
  12010. (update): Added calculation of an average speed.
  12011. (getAvgSpeed): New function.
  12012. * src/DownloadCommand.h
  12013. (sw): Removed.
  12014. * src/main.cc
  12015. (main): Added PREF_STARTUP_IDLE_TIME.
  12016. * src/PeerStat.h
  12017. (STATUS): Added REQUEST_IDLE.
  12018. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12019. (getAvgDownloadSpeed): New function
  12020. (requestIdle): New function.
  12021. * src/SegmentMan.h
  12022. (SegmentEntryHandle): New type definition.
  12023. (SegmentEntries): Now holds SegmentEntryHandle.
  12024. (findSlowerSegmentEntry): New funtion.
  12025. * src/SegmentMan.cc
  12026. (save): Updated according to the changes in SegmentEntries.
  12027. (read): Updated according to the changes in SegmentEntries.
  12028. (FindSegmentEntryByIndex): Updated according to the changes in
  12029. SegmentEntries.
  12030. (FindSegmentEntryByCuid): Updated according to the changes in
  12031. SegmentEntries.
  12032. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12033. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12034. Renamed uitr as itr.
  12035. (findSlowerSegmentEntry): New function.
  12036. (getSegment): Updated according to the changes in SegmentEntries.
  12037. Added the feature that cancels the segment with slow server and fast
  12038. one takes it over.
  12039. (cancelSegment): Updated according to the changes in SegmentEntries.
  12040. (getDownloadLength): Updated according to the changes in
  12041. SegmentEntries.
  12042. (init): Assigned 0 to bitfield after deleting it.
  12043. * src/DownloadCommand.cc
  12044. (STARTUP_IDLE_TIME): Removed.
  12045. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12046. * src/PeerChokeCommand.cc
  12047. (optUnchokingPeer): Updated according to the changes in Peer.
  12048. (ResetDelta): Removed.
  12049. (UploadFaster): Updated according to the changes in Peer.
  12050. (DownloadFaster): Updated according to the changes in Peer.
  12051. (execute): I clarify the meaning of "upload" and "download" here.
  12052. "upload" means the transfer from localhost to remote host.
  12053. "download" means the transfer from remote host to localhost.
  12054. Based on this rule, I swapped orderByUploadRate and
  12055. orderByDownloadRate.
  12056. * src/PeerInteractionCommand.cc
  12057. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12058. (executeInternal): Removed the argument of
  12059. peerInteraction->sendMessages().
  12060. (receiveMessages): Rewritten download speed limit.
  12061. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12062. * src/HttpResponseCommand.cc
  12063. (handleDefaultEncoding): If file size is unknown in torrent request,
  12064. do not call segmentMan->initBitfield() here.
  12065. Disabled persistent connection feature in torrent request.
  12066. * src/UrlRequestInfo.h
  12067. (UrlRequestInfo): Removed const qualifier from option.
  12068. * src/TorrentMan.h
  12069. (TransferStat): New class.
  12070. (deltaDownloadLength): Removed.
  12071. (deltaUploadLength): Removed.
  12072. (addDeltaDownloadLength): Removed.
  12073. (getDeltaDownloadLength): Removed.
  12074. (resetDeltaDownloadLength): Removed.
  12075. (addDeltaUploadLength): Removed.
  12076. (getDeltaUploadLength): Removed.
  12077. (resetDeltaUploadLength): Removed.
  12078. (addActivePeer): Added peer->activate().
  12079. (deleteActivePeer): Added peer->deactivate().
  12080. (calculateStat): New function.
  12081. * src/TorrentMan.cc
  12082. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12083. (calculateStat): New function.
  12084. * src/PeerInteraction.h
  12085. (uploadLimit): Removed.
  12086. (option): New variable.
  12087. (setUploadLimit): Removed.
  12088. (getUploadSpeed): Removed.
  12089. (sendMessages): Removed the argument "currentUploadSpeed".
  12090. * src/PeerInteraction.cc
  12091. (prefs.h): Included.
  12092. (PeerInteraction): Removed uploadLimit. Added option.
  12093. (sendMessages): Rewritten upload speed limit.
  12094. (sendHandshake): Removed the argument from sendMessages().
  12095. (sendBitfield): Removed the argument from sendMessages().
  12096. * src/PeerAbstractCommand.cc
  12097. (execute): Commented out the portion of upload limit.
  12098. (onAbort): Removed peer->resetStatus().
  12099. * src/TorrentRequestInfo.cc
  12100. (timeoutSpecified): Declared extern.
  12101. (execute): Set timeout to 180 if timeout is not specified by.
  12102. command-line.
  12103. * src/PieceMessage.cc
  12104. (receivedAction): Added peer->updateDownloadLength().
  12105. Removed peer->addPeerUpload().
  12106. Removed torrentMan->addDeltaDownloadLength().
  12107. (send): Added peer->updateUploadLength().
  12108. Removed peer->addPeerDownload().
  12109. Removed torrentMan->addDeltaUploadLength().
  12110. * src/main.cc
  12111. (timeoutSpecified): New variable.
  12112. (main): Set timeoutSpecified to false.
  12113. If the command-line option "--upload-limit" is specified, then
  12114. timeoutSpecified is set to true. This option will remain in the next
  12115. release, but be deprecated in the future release.
  12116. * src/TorrentRequestInfo.h
  12117. (TorrentRequestInfo): Removed const qualifier from op.
  12118. * src/PeerStat.h
  12119. (uploadSpeed): New variable.
  12120. (PeerStat): Added default value to cuid.
  12121. (calculateUploadSpeed): New function.
  12122. (updateUploadLength): New function.
  12123. (getMaxUploadSpeed): New function.
  12124. (getAvgUploadSpeed): New function.
  12125. (reset): Added uploadSpeed. Set status to IDLE.
  12126. * src/TorrentDownloadEngine.h
  12127. (cp): Declared as Time.
  12128. (sessionDownloadLengthArray): Removed.
  12129. (sessionUploadLengthArray): Removed.
  12130. (currentCp): Removed.
  12131. (lastCalcStat): New variable
  12132. (lastElapsed): Removed.
  12133. (sessionDownloadLength): Removed.
  12134. (calculateStat): New function.
  12135. * src/TorrentDownloadEngine.cc
  12136. (initStatistics): Removed lastElapsed, cp[],
  12137. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12138. currentCp, sessionDownloadLength.
  12139. Added cp.reset() and lastCalcStat.reset().
  12140. (calculateSpeed): Changed the name of the argument.
  12141. (calculateStatistics): Rewritten.
  12142. (calculateStat): New function.
  12143. * src/Peer.h
  12144. (PeerStat.h): Included.
  12145. (peerUpload): Removed.
  12146. (peerDownload): Removed.
  12147. (peerStat): New variable.
  12148. (sessionUploadLength): New variable.
  12149. (sessionDownloadLength): New variable.
  12150. (deltaUpload): Removed.
  12151. (deltaDownload): Removed.
  12152. (resetStatus): Made private.
  12153. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12154. Removed peerUpload, peerDownload.
  12155. (updateUploadLength): New function.
  12156. (addDeltaUpload): Removed.
  12157. (updateDownloadLength): New function.
  12158. (resetDeltaUpload): Removed.
  12159. (getDeltaUpload): Removed.
  12160. (addDeltaDownload): Removed.
  12161. (calculateUploadSpeed): New function.
  12162. (resetDeltaDownload): Removed.
  12163. (getDeltaDownload): Removed.
  12164. (calculateDownloadSpeed): New function.
  12165. (getSessionUploadLength): New function.
  12166. (getSessionDownloadLength): New function.
  12167. (activate): New function.
  12168. (deactivate): New function.
  12169. (addPeerUpload): Removed.
  12170. (setPeerUpload): Removed.
  12171. (getPeerUpload): Removed.
  12172. (addPeerDownload): Removed.
  12173. (setPeerDownload): Removed.
  12174. (getPeerDownload): Removed.
  12175. * src/Peer.cc
  12176. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12177. * src/MetalinkRequestInfo.h
  12178. (MetalinkRequestInfo): Removed const qualifier from op.
  12179. * src/RequestInfo.h
  12180. (op): Removed const qualifier.
  12181. (RequestInfo): Removed const qualifier from op.
  12182. * src/prefs.h
  12183. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12184. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12185. * src/PeerInteractionCommand.cc
  12186. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12187. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12188. * src/PeerInteraction.cc
  12189. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12190. * src/main.cc
  12191. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12192. Added the description of "--max-download-limit" option.
  12193. Removed the description of "--upload-limit" option.
  12194. Added the description of "--max-upload-limit" option.
  12195. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12196. Added "--max-download-limit" option and "--max-upload-limit" option.
  12197. Added the warning message if "--upload-limit" option is used.
  12198. * src/DownloadCommand.cc
  12199. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12200. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12201. To rewrite segment download mechanism for HTTP/FTP download.
  12202. Use BitfieldMan to manage segment download.
  12203. * src/HttpResponseCommand.h
  12204. (executeInternal): Pass the reference of segment.
  12205. * src/AbstractCommand.cc
  12206. (prepareForRetry): Call segmentMan->cancelSegment here.
  12207. (onAbort): Call segmentMan->cancelSegment here.
  12208. * src/HttpDownloadCommand.cc
  12209. (prepareForNextSegment): New function.
  12210. * src/DownloadEngineFactory.cc
  12211. (newConsoleEngine): Removed splitter.
  12212. (newTorrentConsoleEngine): Removed splitter.
  12213. * src/Request.h
  12214. (segment): Renamed from seg.
  12215. * src/FtpInitiateConnectionCommand.h
  12216. (executeInternal): Pass the reference of segment.
  12217. * src/AbstractCommand.h
  12218. (executeInternal): Pass the reference of segment.
  12219. * src/pref.h
  12220. (PREF_SEGMENT_SIZE): New definition.
  12221. * src/HttpProxyRequestCommand.h
  12222. (executeInternal): Pass the reference of segment.
  12223. * src/HttpResponseCommand.cc
  12224. (checkResponse): Allowed status 206 when a request range starts 0.
  12225. (handleDefaultEncoding): Rewritten the code related to Segment.
  12226. (handleOtherEncoding): Rewritten the code related to Segment.
  12227. * src/SegmentMan.h
  12228. (SegmentEntry): New class.
  12229. (SegmentEntries): New type definition.
  12230. (bitfield): New variable.
  12231. (usedSegmentEntries): New variable.
  12232. (onNullBitfield): New function.
  12233. (checkoutSegment): New function.
  12234. (segments): Removed.
  12235. (splitter): Removed.
  12236. (unregisterId): Removed.
  12237. (getSegment): New function(overload)
  12238. (getDownloadedSize): Removed.
  12239. (cancelSegment): New function.
  12240. (completeSegment): New function.
  12241. (initBitfield): New function.
  12242. (hasSegment): New function.
  12243. (getDownloadLength): New function.
  12244. * src/BitfieldMan.h
  12245. (getStartIndex): New function.
  12246. (getEndIndex): New function.
  12247. (getMissingUnusedIndex): New function(overload).
  12248. (getSparseMissingUnusedIndex): New function.
  12249. * src/BitfieldMan.cc
  12250. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12251. (getMissingUnusedIndex): New function(overload).
  12252. (Range): New class.
  12253. (getStartIndex): New function.
  12254. (getEndIndex): New function.
  12255. (getSparseMissingUnusedIndex): New function.
  12256. (isBitSetInternal): Return false if the given index is less than 0.
  12257. * src/HttpInitiateConnectionCommand.h
  12258. (executeInternal): Pass the reference of segment.
  12259. * src/FtpNegotiateCommand.h
  12260. (executeInternal): Pass the reference of segment.
  12261. * src/FtpNegotiateCommand.cc
  12262. (recvSize): Initialize bitfield here.
  12263. * src/FtpTunnelResponseCommand.h
  12264. (executeInternal): Pass the reference of segment.
  12265. * src/HttpConnection.cc
  12266. (createRequest): Rewritten range header processing.
  12267. * src/DownloadCommand.h
  12268. (executeInternal): Pass the reference of segment.
  12269. (prepareForRetry): Removed.
  12270. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12271. function.
  12272. * src/main.cc
  12273. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12274. * src/SegmentMan.cc
  12275. (SegmentMan): Added bitfield. Removed splitter.
  12276. (~SegmentMan): Added bitfield. Removed splitter.
  12277. (unregisterId): Removed.
  12278. (getSegment): Rewritten.
  12279. (updateSegment): Rewritten.
  12280. (save): Rewritten.
  12281. (read): Rewritten.
  12282. (finished): Rewritten.
  12283. (getDownloadedSize): Removed.
  12284. (initBitfield): New function.
  12285. (FindSegmentEntryByIndex): New function object.
  12286. (FindSegmentEntryByCuid): New function object.
  12287. (checkoutSegment): New function.
  12288. (onNullBitfield): New function.
  12289. (getSegment): New function(overload).
  12290. (CancelSegment): New function object.
  12291. (cancelSegment): New function.
  12292. (completeSegment): New function.
  12293. (hasSegment): New function.
  12294. (getDownloadLength): New function.
  12295. * src/FtpInitiateConnectionCommand.cc
  12296. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12297. * src/Segment.h: Rewritten.
  12298. * src/Segment.cc (operator<<): New function.
  12299. * src/HttpDownloadCommand.h
  12300. (prepareForNextSegment): New function.
  12301. * src/Request.cc
  12302. (resetUrl): Made segment null.
  12303. * src/DownloadEngine.cc
  12304. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12305. * src/HttpProxyRequestCommand.h
  12306. (executeInternal): Pass the reference of segment.
  12307. * src/DownloadCommand.cc
  12308. (executeInternal): Rewritten the code related to Segment.
  12309. (prepareForRetry): Removed.
  12310. (prepareForNextSegment): Rewritten.
  12311. * src/FtpTunnelResponseCommand.h
  12312. (executeInternal): Pass the reference of segment.
  12313. To add HTTP 1.1 persistent connection support(experimental)
  12314. * src/HttpRequestCommand.cc
  12315. (executeInternal): Disable keep alive if it is disabled by
  12316. configuration.
  12317. * src/Request.h
  12318. (keepAlive): New variable.
  12319. (isKeepAlive): New function.
  12320. (setKeepAlive): New function.
  12321. * src/pref.h
  12322. (PREF_HTTP_KEEP_ALIVE): New definition.
  12323. * src/HttpResponseCommand.cc
  12324. (executeInternal): Check the remote server supports keep alive.
  12325. * src/HttpConnection.cc
  12326. (createRequest): Send "Connection: close" only if keep alive is
  12327. disabled.
  12328. * src/main.cc
  12329. (main):
  12330. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12331. To add max download speed limit:
  12332. * src/pref.h
  12333. (PREF_MAX_SPEED_LIMIT): New definition.
  12334. * src/PeerInteractionCommand.cc
  12335. (executeInternal): Added max download speed limit. Not tested yet.
  12336. * src/SegmentMan.h
  12337. (PeerStats): New type definition.
  12338. (peerStats): New variable.
  12339. (registerPeerStat): New function.
  12340. (FindPeerStat): New function object.
  12341. (getPeerStat): New function.
  12342. (calculateDownloadSpeed): New function.
  12343. * src/SpeedCalc.h: New class.
  12344. * src/SpeedCalc.cc: New class.
  12345. * src/main.cc
  12346. (main):
  12347. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12348. download speed is not restricted).
  12349. * src/PeerStat.h: New class.
  12350. * src/SegmentMan.cc
  12351. (registerPeerStat): New function.
  12352. (calculateDownloadSpeed): New function.
  12353. * src/DownloadCommand.cc
  12354. (STARTUP_IDLE_TIME): New definition.
  12355. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12356. downloadStart.
  12357. (~DownloadCommand): Call peerStat->downloadStop.
  12358. (executeInternal): Added download speed limitter. Rewritten lowest
  12359. speed limitter.
  12360. * src/HttpConnection.cc
  12361. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12362. * src/AbstractCommand.cc
  12363. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12364. Added hostname to the error message.
  12365. * src/ConsoleDownloadEngine.cc
  12366. (calculateStatistics): Initialize psize with dlSize.
  12367. * src/PieceMessage.cc
  12368. (receivedAction): Do not call peerInteraction->abortPiece here.
  12369. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12370. * src/BitfieldMan.h
  12371. (clearAllUseBit): New function.
  12372. (setAllUseBit): New function.
  12373. * src/BitfieldMan.cc
  12374. (clearAllBit): Do not clear useBitfield here.
  12375. (clearAllUseBit): New function.
  12376. (setAllUseBit): New function.
  12377. * src/Piece.cc
  12378. (clearAllBlock): Call bitfield->clearAllUseBit().
  12379. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12380. To make filename URL-decoded:
  12381. * src/HttpResponseCommand.h: Updated doc.
  12382. * src/HttpResponseCommand.cc
  12383. (determinFilename): Made filename URL-decoded.
  12384. * src/FtpInitiateConnectionCommand.cc
  12385. (executeInternal): Made filename URL-decoded.
  12386. * src/Util.h (urldecode): New function.
  12387. * src/Util.cc (urldecode): New function.
  12388. To fix a bug that caused assertion failure in ares_strerror:
  12389. * src/NameResolver.cc (callback): Fixed the bug.
  12390. * Release 0.7.3
  12391. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12392. To add --seed-time and --seed-ratio command-line option:
  12393. * src/Option.h (getAsDouble): New function.
  12394. * src/Option.cc (getAsDouble): New function.
  12395. * src/SeedCheckCommand.h: New class.
  12396. * src/SeedCheckCommand.cc: New class.
  12397. * src/DownloadEngineFactory.cc
  12398. (SeedCheckCommand.h): Included.
  12399. (UnionSeedCriteria.h): Included.
  12400. (TimeSeedCriteria.h): Included.
  12401. (ShareRatioSeedCriteria.h): Included.
  12402. (newTorrentConsoleEngine): Added the processing of seed option.
  12403. * src/SeedCriteria.h: New class.
  12404. * src/ShareRatioSeedCriteria.h: New class.
  12405. * src/TimeSeedCriteria.h: New class.
  12406. * src/UnionSeedCriteria.h: New class.
  12407. * src/prefs.h
  12408. (PREF_SEED_TIME): New definition.
  12409. (PREF_SEED_RATIO): New definition.
  12410. * src/main.cc
  12411. (showUsage): Added --seed-time and --seed-ratio option.
  12412. (main): Added --seed-time and --seed-ratio option.
  12413. Made default log file name "/dev/null".
  12414. * src/SharedHandle.h
  12415. (SharedHandle): Copy constructor. Made it assignable from the
  12416. SharedHandle of the subclasses.
  12417. (operator=): Made it assignable from the SharedHandle of the
  12418. subclasses.
  12419. (getRefCount): New function.
  12420. To add notice log level and the switch to write log to stdout. This
  12421. switch is configurable per log level.
  12422. * src/Logger.h
  12423. (notice): New function.
  12424. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12425. constant.
  12426. * src/LogFactory.cc
  12427. (getInstance): The use of NullLogger was removed. A log message with
  12428. notice log level was made written to stdout along with log file.
  12429. * src/NullLogger.h
  12430. (notice): New function.
  12431. * src/SimpleLogger.h
  12432. (writeHeader): Added the 'file' argument.
  12433. (writeLog): Added the 'file' argument.
  12434. (writeFile): New function.
  12435. (stdoutField): New variable.
  12436. (SimpleLogger): Removed the default constructor.
  12437. (SimpleLogger): Made the default value of logfile 0.
  12438. (debug): Added 'virtual' keyword.
  12439. (info): Added 'virtual' keyword.
  12440. (warn): Added 'virtual' keyword.
  12441. (error): Added 'virtual' keyword.
  12442. (notice): New function.
  12443. (setStdout): New function.
  12444. * src/SimpleLogger.cc
  12445. (WRITE_LOG): Replaced writeLog with writeFile.
  12446. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12447. (SimpleLogger): Removed the default constructor.
  12448. (setStdout): New function.
  12449. (writeLog): Added the handling of NOTICE log level.
  12450. (writeFile): New function.
  12451. (notice): New function.
  12452. * src/TorrentMan.h: Updated doc.
  12453. * src/BitfieldMan.h: Updated doc.
  12454. * src/TrackerWatcherCommand.cc
  12455. (execute): Return true if error occurred in the request to the tracker
  12456. and halt is requested.
  12457. * src/TrackerUpdateCommand.cc
  12458. (execute): Return true if error occurred in the request to the tracker
  12459. and halt is requested.
  12460. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12461. DownloadEngine:
  12462. * src/TorrentConsoleDownloadEngine.h
  12463. (onSelectiveDownloadingCompletes): Removed.
  12464. * src/TorrentConsoleDownloadEngine.cc
  12465. (onSelectiveDownloadingCompletes): Removed.
  12466. * src/TorrentDownloadEngine.h
  12467. (onEndOfRun): Added 'virtual' keyword.
  12468. (afterEachIteration): Removed.
  12469. (onSelectiveDownloadingCompletes): Removed.
  12470. * src/TorrentDownloadEngine.cc
  12471. (onEndOfRun): Removed filenameFixed.
  12472. (afterEachIteration): Removed.
  12473. * src/TorrentMan.cc
  12474. (completePiece): Call onDownloadComplete here.
  12475. (onDownloadComplete): Added 2 log messages.
  12476. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12477. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12478. * src/NameResolver.h: Added the prototype declaration of callback().
  12479. To support c-ares library:
  12480. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12481. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12482. * src/FtpInitiateConnectionCommand.h:
  12483. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12484. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12485. * src/HttpInitiateConnectionCommand.h:
  12486. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12487. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12488. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12489. #1542285 by tizianomueller)
  12490. * src/HttpInitiateConnectionCommand.cc:
  12491. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12492. * src/FtpInitiateConnectionCommand.cc:
  12493. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12494. * src/DownloadEngine.h:
  12495. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12496. * src/DownloadEngine.cc:
  12497. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12498. To fix the bug that causes compilation failure with metalink-support
  12499. disabled(bug#1543587):
  12500. * src/main.cc: Fixed with the patch by tizianomueller.
  12501. * Release 0.7.2
  12502. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12503. * src/main.cc
  12504. (main): Added a message to inform users that aria2 is starting to
  12505. verify checksum.
  12506. * src/RequestInfo.cc
  12507. (printDownloadAbortMessage): Added a message to inform users that
  12508. transfer can be resumed.
  12509. * src/FeatureConfig.cc
  12510. (FEATURE_ASYNC_DNS): New definition.
  12511. (FeatureConfig): Added aysnc DNS entry.
  12512. To replace CommandUuid with Command* in SocketEntry and
  12513. NameResolverEntry:
  12514. * src/DownloadEngine.h
  12515. (CommandUuids): Removed.
  12516. (SocketEntry::commandUuid): Removed.
  12517. (SocketEntry::command): New variable.
  12518. (SocketEntry::SocketEntry): Updated.
  12519. (SocketEntry::operator==): Updated.
  12520. (NameResolverEntry::commandUuid): Removed.
  12521. (NameResolverEntry::command): New variable.
  12522. (NameResolverEntry::NameResolverEntry): Updated.
  12523. (NameResolverEntry::operator==): Updated.
  12524. (waitData): Changed the argument type.
  12525. (addSocketForReadCheck): Changed the argument type.
  12526. (deleteSocketForReadCheck): Changed the argument type.
  12527. (addSocketForWriteCheck): Changed the argument type.
  12528. (deleteSocketForWriteCheck): Changed the argument type.
  12529. (addNameResolverCheck): Changed the argument type.
  12530. (deleteNameResolverCheck): Changed the argument type.
  12531. * src/DownloadEngine.cc
  12532. (FindCommand): Removed.
  12533. (run): Removed activeUuid. Added activeCommands instead.
  12534. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12535. (AccumulateActiveCommand): New function object.
  12536. (waitData): Use AccumulateActiveCommand.
  12537. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12538. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12539. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12540. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12541. (addNameResolverCheck): Use Command instead of CommandUuid.
  12542. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12543. * src/AbstractCommand.cc
  12544. (disableReadCheckSocket): Updated according to the changes in
  12545. DownloadEngine.
  12546. (setReadCheckSocket): Updated according to the changes in
  12547. DownloadEngine.
  12548. (disableWriteCheckSocket): Updated according to the changes in
  12549. DownloadEngine.
  12550. (setWriteCheckSocket): Updated according to the changes in
  12551. DownloadEngine.
  12552. (setNameResolverCheck): Updated according to the changes in
  12553. DownloadEngine.
  12554. (disableNameResolverCheck): Updated according to the changes in
  12555. DownloadEngine.
  12556. * src/AbstractCommand.cc
  12557. (disableReadCheckSocket): Updated according to the changes in
  12558. DownloadEngine.
  12559. (setReadCheckSocket): Updated according to the changes in
  12560. DownloadEngine.
  12561. (disableWriteCheckSocket): Updated according to the changes in
  12562. DownloadEngine.
  12563. (setWriteCheckSocket): Updated according to the changes in
  12564. DownloadEngine.
  12565. * release 0.7.1
  12566. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12567. To handle the case where some BitTorrent tracker requires all letters
  12568. except for [A-Za-z0-9] is URL encoded.
  12569. * src/Util.h
  12570. (torrentUrlencode): New function.
  12571. * src/Util.cc
  12572. (ctype.h): Included.
  12573. (torrentUrlencode): New function.
  12574. * src/TrackerWatcherCommand.cc
  12575. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12576. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12577. To add asynchronous DNS support(libares):
  12578. * src/AbstractCommand.h
  12579. (setNameResolverCheck): New function.
  12580. (disableNameResolverCheck): New function
  12581. (resolveHostname): New function.
  12582. * src/AbstractCommand.cc
  12583. (setNameResolverCheck): New function.
  12584. (disableNameResolverCheck): New function
  12585. (resolveHostname): New function.
  12586. * src/FtpInitiateConnectionCommand.h
  12587. (nameResolver): New function.
  12588. * src/FtpInitiateConnectionCommand.cc
  12589. (Util.h): Included.
  12590. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12591. disableWriteCheckSocket.
  12592. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12593. (executeInternal): Added async DNS support.
  12594. * src/HttpInitiateConnectionCommand.h
  12595. (nameResolver): New function.
  12596. * src/HttpInitiateConnectionCommand.cc
  12597. (DlRetryEx.h): Included.
  12598. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12599. disableWriteCheckSocket.
  12600. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12601. (executeInternal): Added async DNS support.
  12602. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12603. by extern "C" declaration.
  12604. * src/NameResolver.cc: New class.
  12605. * src/Util.h:
  12606. (isNumberAndDotsNotation): New function
  12607. * src/Util.cc
  12608. (isNumberAndDotsNotation): New function.
  12609. * src/DownloadEngine.h
  12610. (NameResolver.h): Included.
  12611. (NameResolverEntry): New class.
  12612. (NameResolverEntries): New type definition.
  12613. (addNameResolverCheck): New function.
  12614. (deleteNameResolverCheck): New function.
  12615. * src/DownloadEngine.cc
  12616. (run): Initialize cp with 0.
  12617. (SetDescriptor::operator()): Added for NameResolverEntry.
  12618. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12619. (waitData): Check nameResolver entries.
  12620. (updateFdSet): Update fds in nameResolver entries.
  12621. (addNameResolverCheck): New function.
  12622. (deleteNameResolverCheck): new function.
  12623. * src/PeerInteractionCommand.cc
  12624. (executeInternal): Fixed wrong socket handling.
  12625. * src/main.cc
  12626. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12627. * src/Util.cc
  12628. (fileChecksum): Removed the call to ctx.digestReset().
  12629. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12630. * po/ru.po: Azamat sent me Russian translation.
  12631. * src/FtpNegotiateCommand.cc
  12632. (recvGreeting): Call disableWriteCheckSocket just after
  12633. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12634. (recvRetr): Recognized status code 125 as a acceptable response code.
  12635. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12636. case-insesitive filesystem(BUG#1531057).
  12637. * src/Time.h: Renamed as TimeA2.h.
  12638. * src/Time.cc: Renamed as TimeA2.cc.
  12639. * src/TimeA2.h: New class.
  12640. * src/TimeA2.cc: New class.
  12641. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12642. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12643. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12644. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12645. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12646. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12647. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12648. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12649. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12650. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12651. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12652. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12653. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12654. * release 0.7.0
  12655. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12656. * src/PeerChokeCommand.h
  12657. (PeerChokeCommand): Rearranged the arguments.
  12658. * src/PeerChokeCommand.cc
  12659. (PeerChokeCommand): Rearranged the arguments.
  12660. * src/MetalinkEntry.h
  12661. (Checksum.h): Included.
  12662. (md5): Removed.
  12663. (sha1): Removed.
  12664. (checksum): New variable.
  12665. (operator=): Updated.
  12666. (check): Removed.
  12667. * src/prefs.h
  12668. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12669. (PREF_FOLLOW_TORRENT): New definition.
  12670. (PREF_SELECT_FILE): New definition.
  12671. (PREF_FOLLOW_METALINK): New definition.
  12672. * src/MetalinkResource.h
  12673. (TYPE_HTTPS): Added to enum TYPE.
  12674. * src/TorrentMan.cc
  12675. (~TorrentMan): Rewritten.
  12676. * src/MultiDiskWriter.cc
  12677. (MultiDiskAdaptor): Updated according to the changes in
  12678. MessageDigestContext.
  12679. (~MultiDiskAdaptor): Updated according to the changes in
  12680. MessageDigestContext.
  12681. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12682. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12683. * src/Util.h
  12684. (fileChecksum): Updated according to the changes in
  12685. MessageDigestContext.
  12686. * src/Util.cc
  12687. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12688. (fileChecksum): Updated according to the changes in
  12689. MessageDigestContext.
  12690. * src/messageDigest.h: Rewritten.
  12691. * src/MetalinkEntry.cc
  12692. (check): Removed.
  12693. (Supported): Updated.
  12694. (dropUnsupportedResource): Fixed a memory leak.
  12695. * src/ShaVisitor.cc
  12696. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12697. (~ShaVisitor): Updated according to the changes in
  12698. MessageDigestContext.
  12699. (visit): Updated according to the changes in MessageDigestContext.
  12700. * src/main.cc
  12701. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12702. command-line option added.
  12703. * src/DownloadEngine.h
  12704. (SocketEntry): New class.
  12705. (SocketEntries): New definition.
  12706. (PairFind): Removed.
  12707. (SockCmdMap): Removed.
  12708. * src/DownloadEngine.cc
  12709. (DownloadEngine): Rewritten.
  12710. (~DownloadEngine): Rewritten.
  12711. (run): Renamed activeCommandUuids as activeUuids.
  12712. (SetDescriptor): Rewritten.
  12713. (AccumulateActiveCommandUuid): Removed.
  12714. (AccumulateActiveUuid): New function object.
  12715. (waitData): Rewritten.
  12716. (updateFdSet): Rewritten.
  12717. (addSocket): Rewritten.
  12718. (deleteSocket): Rewritten.
  12719. (addSocketForReadCheck): Rewritten.
  12720. (deleteSocketForReadCheck): Rewritten.
  12721. (addSocketForWriteCheck): Rewritten.
  12722. (deleteSocketForWriteCheck): Rewritten.
  12723. * src/Xml2MetalinkProcessor.cc
  12724. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12725. * src/DownloadCommand.cc
  12726. (executeInternal): Added the check routine for lowest speed limit.
  12727. * src/AbstractDiskWriter.cc
  12728. (AbstractDiskWriter): Updated according to the changes in
  12729. MessageDigestContext.
  12730. (~AbstractDiskWriter): Updated according to the changes in
  12731. MessageDigestContext.
  12732. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12733. * src/RequestInfo.h: New class.
  12734. * src/UrlRequestInfo.h: New class.
  12735. * src/UrlRequestInfo.cc: New class.
  12736. * src/TorrentRequestInfo.h: New class.
  12737. * src/TorrentRequestInfo.cc: New class.
  12738. * src/MetalinkRequestInfo.h: New class.
  12739. * src/MetalinkRequestInfo.cc: New class.
  12740. * src/Checksum.h: New class.
  12741. * src/DownloadEngineFactory.h: New class.
  12742. * src/DownloadEngineFactory.cc: New class.
  12743. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12744. * src/Option.h
  12745. (getAsBool): New function.
  12746. * src/Option.cc
  12747. (prefs.h): Included.
  12748. (defined): 0-length value is now recognized as undefined.
  12749. (getAsInt): Rewritten.
  12750. (getAsLLInt): Rewritten.
  12751. (getAsBool): New function.
  12752. * src/FeatureConfig.h: Rewritten.
  12753. * src/FeatureConfig.cc: Rewritten.
  12754. * src/prefs.h
  12755. (PREF_STDOUT_LOG): New definition.
  12756. (PREF_LOG): New definition.
  12757. (PREF_DIR): New definition.
  12758. (PREF_OUT): New definition.
  12759. (PREF_SPLIT): New definition.
  12760. (PREF_DAEMON): New definition.
  12761. (PREF_REFERER): New definition.
  12762. (PREF_TORRENT_FILE): New definition.
  12763. (PREF_LISTEN_PORT): New definition.
  12764. (PREF_METALINK_FILE): New definition.
  12765. (PREF_METALINK_VERSION): New definition.
  12766. (PREF_METALINK_LANGUAGE): New definition.
  12767. (PREF_METALINK_OS): New definition.
  12768. (PREF_METALINK_SERVERS): New definition.
  12769. * src/main.cc
  12770. (main): Following command-line parameters are now put into Option
  12771. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12772. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12773. metalinkLanguage, metalinkOs, metalinkServers
  12774. To fix the bug that aria2 can not handle http response header properly.
  12775. * src/HttpHeader.cc
  12776. (put): Made name lowercased.
  12777. (defined): Made name lowercased.
  12778. (getFirst): Made name lowercased.
  12779. (get): Made name lowercased.
  12780. (getFirstAsInt): Rewritten.
  12781. (getFirstAsLLInt): Rewritten.
  12782. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12783. * src/TorrentMan.h:
  12784. (advertisePiece): Updated doc.
  12785. (getAdvertisedPieceIndexes): Updated doc.
  12786. (removeAdvertisedPiece); New function.
  12787. * src/TorrentMan.cc
  12788. (FindElapsedHave): New function object.
  12789. (removeAdvertisedPiece): New function.
  12790. * src/HaveEraseCommand.h: New class.
  12791. * src/HaveEraseCommand.cc: New class.
  12792. * src/FeatureConfig.h: New class.
  12793. * src/FeatureConfig.cc: New class.
  12794. * src/Request.h
  12795. (defaultPorts): Removed.
  12796. * src/Request.cc
  12797. (FeatureConfig.h): Included.
  12798. (Request): Removed the statements related to defaultPorts.
  12799. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12800. A default port number is now retrieved from FeatureConfig.
  12801. * src/main.cc
  12802. (HaveEraseCommand.h): Included.
  12803. (showVersion): Added the output of feature list.
  12804. (main): Added HaveEraseCommand to command queue in BitTorrent
  12805. downloading.
  12806. * src/PeerInteractionCommand.h
  12807. (chokeCheckPoint): Commented out.
  12808. (periodicExecPoint): New variable.
  12809. * src/PeerInteractionCommand.cc
  12810. (executeInternal): Following methods are now called in at least every
  12811. 0.5 seconds to reduce CPU usage:
  12812. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12813. checkHave(), sendKeepAlive().
  12814. (checkLongTimePeerChoking): Commented out.
  12815. * src/BitfieldMan.h
  12816. (getNthBitIndex): Changed the method signature.
  12817. (getMissingIndexRandomly): Changed the method signature.
  12818. * src/BitfieldMan.cc
  12819. (getNthBitIndex): Rewritten
  12820. (getMissingIndexRandomly): Rewritten.
  12821. (hasMissingPiece): Rewritten.
  12822. (getMissingIndex): Refactored.
  12823. (getMissingUnusedIndex); Refactored.
  12824. (getMissingIndex): Refactored.
  12825. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12826. * src/PeerMessage.h
  12827. (Piece.h): Included.
  12828. (SharedHandle.h): Included.
  12829. (invalidate): New variable.
  12830. (uploading): New variable.
  12831. (isInvalidate): New function.
  12832. (isUploading): New function.
  12833. (onPush): New function.
  12834. (onChoked): New function.
  12835. (onCanceled): New function.
  12836. (onAbortPiece): New function.
  12837. (PeerMessageHandle): New type definition.
  12838. * src/PeerMessage.cc
  12839. (PeerMessage): Added the initialization for invalidate and uploading.
  12840. * src/CancelMessage.h
  12841. (CancelMessage): Rewritten.
  12842. * src/RejectMessage.h
  12843. (RejectMessage): Rewritten.
  12844. * src/Metalinker.h
  12845. (operator=): Defined.
  12846. * src/MetaEntry.h
  12847. (operator=): Defined.
  12848. * src/MetalinkResource.h
  12849. (operator=): Defined.
  12850. * src/AllowedFastMessage.h
  12851. (AllowedFastMessage): Rewritten.
  12852. * src/HandshakeMessage.h
  12853. (HandshakeMessage): New function(overload).
  12854. * src/HandshakeMessage.cc
  12855. (HandshakeMessage): Rewritten.
  12856. (init): New function.
  12857. * src/HaveMessage.h
  12858. (HaveMessage): Rewritten.
  12859. * src/Time.h
  12860. (operator=): Defined the function body here.
  12861. * src/Time.cc
  12862. (operator=): Removed.
  12863. * src/SocketCore.h
  12864. (operator==): Defined here.
  12865. (operator!=): Defined here.
  12866. (operator<): Defined here.
  12867. * src/SocketCore.cc
  12868. (operator==): Removed.
  12869. (operator<): Removed.
  12870. * src/BitfieldMan.h
  12871. (operator=): Defined the function body here.
  12872. * src/BitfieldMan.cc
  12873. (operator=): Removed.
  12874. * src/TorrentMan.h
  12875. (deleteErrorPeer): Removed.
  12876. (deleteUnusedPeer); New function.
  12877. * src/TorrentMan.cc
  12878. (addPeer): Call deleteUnusedPeer.
  12879. (deleteErrorPeer): Removed.
  12880. (deleteUnusedPeer): New function.
  12881. * src/PeerAbstractCommand.h
  12882. (setNoCheck): New function.
  12883. (noCheck): New variable.
  12884. * src/PeerAbstractCommand.cc
  12885. (PeerAbstractCommand): Added the initialization of noCheck.
  12886. (execute): Added a check for noCheck.
  12887. (setNoCheck): New function.
  12888. * src/Util.h
  12889. (stdio.h): Included.
  12890. * src/Util.cc
  12891. (unistd.h): Included.
  12892. * src/DefaultDiskWriter.cc
  12893. (unistd.h): Included.
  12894. * src/Peer.h
  12895. (operator==): Defined the function body here.
  12896. (operator!=): Defined the function body here.
  12897. * src/Peer.cc
  12898. (operator==): Removed.
  12899. (operator!=): Removed.
  12900. * src/Piece.h
  12901. (Piece): Defined the function body here(copy constructor).
  12902. (operator=): Defined the function body here.
  12903. (operator==): Defined the function body here.
  12904. * src/Piece.cc
  12905. (Piece): Removed(copy constructor).
  12906. (operator=): Removed.
  12907. (operator==): Removed.
  12908. * src/PeerMessageUtil.h
  12909. (ChokeMessage.h): Removed.
  12910. (UnchokeMessage.h): Removed.
  12911. (InterestedMessage.h): Removed.
  12912. (NotInterestedMessage.h): Removed.
  12913. (HaveMessage.h): Removed.
  12914. (BitfieldMessage.h): Removed.
  12915. (RequestMessage.h): Removed.
  12916. (CancelMessage.h): Removed.
  12917. (PieceMessage.h): Removed.
  12918. (HandshakeMessage.h): Removed.
  12919. (KeepAliveMessage.h): Removed.
  12920. (PortMessage.h): Removed.
  12921. (HaveAllMessage.h): Removed.
  12922. (HaveNoneMessage.h): Removed.
  12923. (PeerConnection.h): Removed.
  12924. (HandshakeMessage.h): Included.
  12925. * src/BitfieldMessage.h
  12926. (init): New function.
  12927. (BitfieldMessage): Rewritten.
  12928. (BitfieldMessage): New function(overload).
  12929. * src/RequestSlot.h
  12930. (operator=): Defined the function body here.
  12931. (operator==): Defined the function body here.
  12932. * src/RequestSlot.cc
  12933. (operator=): Removed.
  12934. (operator==): Removed.
  12935. To remove the dependency on the PeerMessage subclass from
  12936. PeerInteraction:
  12937. * src/PeerMessageFactory.h: New class.
  12938. * src/PeerMessageFactory.cc: New class.
  12939. * src/SimplePeerMessage.cc
  12940. (send): If invalidate is true then do nothing.
  12941. * src/PeerInteractionCommand.cc
  12942. (HandshakeMessage.h): Included.
  12943. (KeepAliveMessage.h): Included.
  12944. (ChokeMessage.h): Included.
  12945. (UnchokeMessage.h): Included.
  12946. (HaveMessage.h): Included.
  12947. (executeInternal): Call setNoCheck().
  12948. Removed setWriteCheckSocket(socket).
  12949. * src/PeerInteraction.h
  12950. (ChokeMessage.h): Removed.
  12951. (UnchokeMessage.h): Removed.
  12952. (InterestedMessage.h): Removed.
  12953. (NotInterestedMessage.h): Removed.
  12954. (HaveMessage.h): Removed.
  12955. (BitfieldMessage.h): Removed.
  12956. (RequestMessage.h): Removed.
  12957. (CancelMessage.h): Removed.
  12958. (PieceMessage.h): Removed.
  12959. (HandshakeMessage.h): Removed.
  12960. (KeepAliveMessage.h): Removed.
  12961. (PortMessage.h): Removed.
  12962. (HaveAllMessage.h): Removed.
  12963. (HaveNoneMessage.h): Removed.
  12964. (RejectMessage.h): Removed.
  12965. (AllowedFastMessage.h): Removed.
  12966. (SuggestPieceMessage.h): Removed.
  12967. (PeerMessageFactory.h): Included.
  12968. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12969. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12970. (PeerMessageFactory): New variable.
  12971. (createPeerMessage): Removed.
  12972. (createHandshakeMessage): Removed.
  12973. (setPeerMessageCommonProperty): Removed.
  12974. (addRequestSlot): New function.
  12975. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12976. (getPeerMessageFactory): New function.
  12977. (createRequestMessage): Removed.
  12978. (createCancelMessage): Removed.
  12979. (createPieceMessage): Removed.
  12980. (createHaveMessage): Removed.
  12981. (createChokeMessage): Removed.
  12982. (createUnchokeMessage): Removed.
  12983. (createInterestedMessage): Removed.
  12984. (createNotInterestedMessage): Removed.
  12985. (createBitfieldMessage): Removed.
  12986. (createKeepAliveMessage): Removed.
  12987. (createHaveAllMessage): Removed.
  12988. (createHaveNoneMessage): Removed.
  12989. (createRejectMessage): Removed.
  12990. (createAllowedFastMessage): Removed.
  12991. * src/PeerInteraction.cc
  12992. (PeerInteraction): Allocate PeerMessageFactory here.
  12993. (~PeerInteraction): Deallocate PeerMessageFactory here.
  12994. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  12995. PieceMessage::ID.
  12996. (addMessage): Simplified by using PeerMessage::onPush().
  12997. (addRequestSlot): New function.
  12998. (rejectAllPieceMessageInQueue): Simplified by using
  12999. PeerMessage::onChoked().
  13000. (rejectPieceMessageInQueue): Simplified by using
  13001. PeerMessage::onCanceled().
  13002. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13003. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13004. (createHandshakeMessage): Removed.
  13005. (createPeerMessage): Removed.
  13006. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13007. (setPeerMessageCommonProperty): Removed.
  13008. (createRequestMessage): Removed.
  13009. (createCancelMessage): Removed.
  13010. (createPieceMessage): Removed.
  13011. (createHaveMessage): Removed.
  13012. (createChokeMessage): Removed.
  13013. (createUnchokeMessage): Removed.
  13014. (createInterestedMessage): Removed.
  13015. (createNotInterestedMessage): Removed.
  13016. (createBitfieldMessage): Removed.
  13017. (createKeepAliveMessage): Removed.
  13018. (createHaveAllMessage): Removed.
  13019. (createHaveNoneMessage): Removed.
  13020. (createRejectMessage): Removed.
  13021. (createAllowedFastMessage): Removed.
  13022. * src/PieceMessage.h
  13023. (createRejectMessage): New function.
  13024. (PieceMessage): Rewritten.
  13025. (onChoked): New function.
  13026. (onCanceled): New function.
  13027. * src/PieceMessage.cc
  13028. (send): If invalidate is true then do nothing, just return.
  13029. (createRejectMessage): New function.
  13030. (onChoked): New function.
  13031. (onCanceled): New function.
  13032. * src/RequestMessage.h
  13033. (RequestMessage): Rewritten.
  13034. (onPush): New function.
  13035. (onAbortPiece): New function.
  13036. * src/RequestMessage.cc
  13037. (onPush): New function.
  13038. (onAbortPiece): New function.
  13039. Update fd_set when a socket is added or deleted in order to improve
  13040. performance:
  13041. * src/DownloadEngine.h
  13042. (rfdset): New variable.
  13043. (wfdset): New variable.
  13044. (updateFdSet): New function.
  13045. * src/DownloadEngine.cc
  13046. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13047. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13048. (waitData): Copy rfdset and wfdset.
  13049. (updateFdSet): New function.
  13050. (addSocket): Call updateFdSet.
  13051. (deleteSocket): Call updateFdSet.
  13052. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13053. To add the support for Metalink3.0 backward compatible links:
  13054. * src/Request.h
  13055. (SAFE_CHARS): Added '#'.
  13056. (METALINK_MARK): New definition.
  13057. * src/Request.cc
  13058. (parseUrl): Added the support for Metalink3.0 backward compatible
  13059. links.
  13060. etc
  13061. * src/PeerInteraction.cc
  13062. (MsgPushBack): Removed.
  13063. (sendMessages): Use STL copy and back_inserter.
  13064. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13065. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13066. * src/TorrentMan.h
  13067. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13068. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13069. * src/SharedHandle.h: New class.
  13070. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13071. * src/HttpResponseCommand.h
  13072. (HttpResponseCommand): Wrapped Socket.
  13073. * src/SocketCore.h
  13074. (operator==): New function.
  13075. (operator!=): New function.
  13076. (operator<): New function.
  13077. (getSockfd): New function.
  13078. (isOpen): New function.
  13079. (writeData): New function.
  13080. * src/SocketCore.cc
  13081. (operator==): New function.
  13082. (operator!=): New function.
  13083. (operator<): New function.
  13084. * src/AbstractCommand.h
  13085. (socket): Changed its type to SocketHandle.
  13086. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13087. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13088. (disableReadCheckSocket): New function.
  13089. (disableWriteCheckSocket): New function.
  13090. (readCheckTarget): Changed its type to SocketHandle.
  13091. (writeCheckTarget): Changed its type to SocketHandle.
  13092. (AbstractCommand): Replaced Socket with SocketHandle.
  13093. * src/AbstractCommand.cc
  13094. (AbstractCommand): Replaced Socket with SocketHandle.
  13095. (~AbstractCommand): Removed the deallocation for Socket object.
  13096. (disableReadCheckSocket): New function.
  13097. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13098. (disableWriteCheckSocket): New function.
  13099. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13100. * src/HttpDownloadCommand.cc
  13101. (DownloadCommand): Replaced Socket with SocketHandle.
  13102. * src/PeerAbstractCommand.h
  13103. (socket): Changed its type to SocketHandle.
  13104. (peer): Changed its type to PeerHandle.
  13105. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13106. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13107. (disableReadCheckSocket): New function.
  13108. (disableWriteCheckSocket): New function.
  13109. (readCheckTarget): Changed its type to SocketHandle.
  13110. (writeCheckTarget): Changed its type to SocketHandle.
  13111. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13112. Replaced Peer with PeerHandle.
  13113. * src/HttpRequestCommand.cc
  13114. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13115. Use disableReadCheckSocket.
  13116. * src/PeerInitiateConnectionCommand.h
  13117. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13118. * src/PeerChokeCommand.cc
  13119. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13120. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13121. (execute): Use PeerHandle.
  13122. * src/PeerConnection.h
  13123. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13124. (socket): Changed its type to SocketHandle.
  13125. (PeerConnection): Replaced Socket with SocketHandle.
  13126. * src/PeerConnection.cc
  13127. (PeerConnection): Replaced Socket with SocketHandle.
  13128. * src/PeerInteractionCommand.h
  13129. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13130. Replaced Peer with PeerHandle.
  13131. * src/PeerInteractionCommand.cc
  13132. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13133. Replaced Peer with PeerHandle.
  13134. (executeInternal): Use disableWriteCheckSocket.
  13135. Use HandshakeMessageHandle.
  13136. (receiveMessages): Use PeerMessageHandle.
  13137. (prepareForNextPeer): Use PeerHandle.
  13138. * src/HttpProxyRequestCommand.h
  13139. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13140. * src/HttpResponseCommand.cc
  13141. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13142. * src/TorrentMan.cc
  13143. (nullPeer): Added external reference.
  13144. (~TorrentMan): Removed the deallocation of the elements of peers.
  13145. (addPeer): Rewritten.
  13146. (isPeerAvailable): Use nullPeer.
  13147. (deleteOldpeers): Replaced with deleteErrorPeer.
  13148. (deleteErrorPeer): New function.
  13149. (getPeer): Use PeerHandle and nullPeer.
  13150. (hasMissingPiece): Replaced Peer with PeerHandle.
  13151. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13152. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13153. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13154. (getMissingPiece): Replaced Peer with PeerHandle.
  13155. * src/FtpNegotiateCommand.cc
  13156. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13157. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13158. (recvGreeting): Use disableWriteCheckSocket.
  13159. (recvPasv): Removed the allocation of Socket.
  13160. Use disableReadCheckSocket.
  13161. (sendRestPasv): Use disableWriteCheckSocket.
  13162. (recvRetr): Changed assertion.
  13163. * src/PeerInteraction.h
  13164. (SharedHandle.h): Included SharedHandle.h.
  13165. (PeerMessageHandle): New type definition.
  13166. (HandshakeMessageHandle): New type definition.
  13167. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13168. (peer): Changed its type to PeerHandle.
  13169. (createHandshakeMessage): Replaced HandshakeMessage with
  13170. HandshakeMessageHandle.
  13171. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13172. (PeerInteraction): Replaced Peer with PeerHandle.
  13173. Replaced Socket with SocketHandle.
  13174. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13175. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13176. (receiveHandshake): Replaced HandshakeMessage with
  13177. HandshakeMessageHandle.
  13178. * src/PeerInteraction.cc
  13179. (PeerInteraction): Replaced Peer with PeerHandle.
  13180. Replaced Socket with SocketHandle.
  13181. (~PeerInteraction): Removed the deallocation of the elements of
  13182. messageQueue.
  13183. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13184. (isSendingMessageInProgress): Replaced PeerMessage with
  13185. PeerMessageHandle.
  13186. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13187. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13188. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13189. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13190. (abortPiece): Use PeerMessageHandle.
  13191. (receiveHandshake): Replaced HandshakeMessage with
  13192. HandshakeMessageHandle. Removed try-catch block.
  13193. (createHandshakeMessage): Replaced HandshakeMessage with
  13194. HandshakeMessageHandle.
  13195. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13196. Removed try-catch block.
  13197. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13198. * src/HttpProxyResponseCommand.cc
  13199. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13200. * src/FtpTunnelResponseCommand.h
  13201. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13202. * src/HttpConnection.cc
  13203. (HttpConnection): Replaced Socket with SocketHandle.
  13204. * src/PeerAbstractCommand.cc
  13205. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13206. (~PeerAbstractCommand): Removed the deallocation of socket.
  13207. Use disableReadCheckSocket, disableWriteCheckSocket.
  13208. (disableReadCheckSocket): New function.
  13209. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13210. (disableWriteCheckSocket): New function.
  13211. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13212. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13213. * src/FtpTunnelRequestCommand.cc
  13214. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13215. (~FtpTunnelRequestCommand): Corrected indentation.
  13216. * src/DownloadCommand.h
  13217. (DownloadCommand): Replaced Socket with SocketHandle.
  13218. * src/PeerListenCommand.cc
  13219. (PeerListenCommand): Removed the initialization of socket.
  13220. (~PeerListenCommand): Removed the deallocation of socket.
  13221. (bindPort): Use SocketHandle.
  13222. (execute): Use SocketHandle and PeerHandle.
  13223. * src/FtpDowndloadCommand.cc
  13224. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13225. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13226. * src/main.cc
  13227. (main): Corrected indentation.
  13228. * src/HttpInitiateConnectionCommand.cc
  13229. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13230. (executeInternal): Removed the allocation of socket.
  13231. * src/HttpRequestCommand.h
  13232. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13233. * src/FtpNegotiationCommand.h
  13234. (dataSocket): Changed its type to SocketHandle.
  13235. (serverSocket): Changed its type to SocketHandle.
  13236. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13237. * src/TorrentMan.h
  13238. (MAX_PEER_UPDATE): Removed.
  13239. (MAX_PEERS): New definition.
  13240. (Peers): The element is now of type PeerHandle.
  13241. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13242. (getPeer): Replaced Peer with PeerHandle.
  13243. (deleteOldErrorPeers): Removed.
  13244. (deleteErrorPeer): New function.
  13245. (hasMissingPiece): Replaced Peer with PeerHandle.
  13246. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13247. (getMissingPiece): Replaced Peer with PeerHandle.
  13248. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13249. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13250. (addActivePeer): Replaced Peer with PeerHandle.
  13251. (deleteActivePeer): Replaced Peer with PeerHandle.
  13252. Added a check for the return value of find.
  13253. * src/FtpTunnelResponseCommand.cc
  13254. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13255. * src/FtpInitiateConnectionCommand.cc
  13256. (executeInternal): Removed the allocation of socket.
  13257. * src/DownloadEngine.h
  13258. (Sockets): An element is now of type SocketHandle.
  13259. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13260. (CommandUuids): New type definition.
  13261. (rsockets): Changed its type to SockCmdMap.
  13262. (wsockets): Changed its type to SockCmdMap.
  13263. (addSocket): Rewritten.
  13264. (deleteSocket): Rewritten.
  13265. (addSocketForReadCheck): Rewritten.
  13266. (deleteSocketForReadCheck): Rewritten.
  13267. (addSocketForWriteCheck): Rewritten.
  13268. (deleteSocketForWriteCheck): Rewritten.
  13269. (PairFind): New template class.
  13270. * src/HttpDownloadCommand.h
  13271. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13272. * src/FtpConnection.cc
  13273. (FtpConnection): Replaced Socket with SocketHandle.
  13274. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13275. block.
  13276. * src/InitiateConnectionCommandFactory.cc
  13277. (DlAbortEx.h): Included DlAbortEx.h.
  13278. (createInitiateConnectionCommand): Throw exception if the protocol of
  13279. requested URI is not supported.
  13280. * src/Peer.cc
  13281. (nullPeer): Changed its type to PeerHandle.
  13282. (operator==): New function.
  13283. (operator!=): New function.
  13284. * src/Peer.h
  13285. (SharedHandle.h): Included SharedHandle.h.
  13286. (operator==): New function.
  13287. (operator!=): New function.
  13288. (Peer): Added the default constructor.
  13289. Use resetStatus() to initialize member variables.
  13290. (nullPeer): Removed.
  13291. * src/TrackerUpdateCommand.cc
  13292. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13293. with MIN_PEERS.
  13294. * src/PeerListenCommand.h
  13295. (socket): Changed its type to SocketHandle.
  13296. * src/Command.h
  13297. (CommandUuid): New type definition.
  13298. (uuid): New variable.
  13299. (uuidGen): New variable.
  13300. (Command): Added the initialization of uuid.
  13301. (getUuid): New function.
  13302. * src/Socket.h
  13303. (Socket): Removed.
  13304. (SocketHandle): New type definition.
  13305. * src/DownloadEngine.h
  13306. (FindCommand): New function object.
  13307. (run): The portion of socket check was rewritten.
  13308. (SetDescriptor): New function object.
  13309. (AccumulateActiveCommandUuid): New function object.
  13310. (waitData): Rewritten.
  13311. (addSocket): Rewritten.
  13312. (deleteSocket): Rewritten.
  13313. (addSocketForReadCheck): Rewritten.
  13314. (addSocketForWriteCheck): Rewritten.
  13315. (deleteSocketForReadCheck): Rewritten.
  13316. (deleteSocketForWriteCheck): Rewritten.
  13317. * src/HttpProxyResponseCommand.h
  13318. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13319. * src/HttpConnection.h
  13320. (socket): Changed its type to SocketHandle.
  13321. (HttpConnection): Replaced Socket with SocketHandle.
  13322. * src/PeerInitiateConnectionCommand.cc
  13323. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13324. (executeInternal): Removed the allocation of socket.
  13325. (prepareForNextPeer): Use PeerHandle.
  13326. * src/PeerMessage.h
  13327. (peer): Changed its type to PeerHandle.
  13328. (getPeer): Replaced Peer with PeerHandle.
  13329. (setPeer): Replaced Peer with PeerHandle.
  13330. * src/DownloadCommand.cc
  13331. (DownloadCommand): Replaced Socket with SocketHandle.
  13332. * src/FtpConnection.h
  13333. (socket): Changed its type to SocketHandle.
  13334. (FtpConnection): Replaced Socket with SocketHandle.
  13335. (sendPort); Replaced Socket with SocketHandle.
  13336. * src/FtpDowndloadCommand.h
  13337. (ctrlSocket): Changed its type to SocketHandle.
  13338. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13339. * src/HttpProxyRequestCommand.cc
  13340. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13341. * src/FtpTunnelRequestCommand.h
  13342. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13343. etc
  13344. * src/PeerChokeCommand.h
  13345. (setAllPeerChoked): Removed.
  13346. (setAllPeerResetDelta): Removed.
  13347. * src/PeerChokeCommand.cc
  13348. (setAllPeerChoked): Removed.
  13349. (ChokePeer): New function object.
  13350. (setAllPeerResetDelta): Removed.
  13351. (ResetDelta): New function object.
  13352. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13353. (execute): Show download speed when the local node is a seeder.
  13354. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13355. using STL.
  13356. * src/TrackerWatcherCommand.h
  13357. (MIN_PEERS): Removed.
  13358. * src/TorrentMan.cc
  13359. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13360. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13361. To fix the bug that .aria2 file is not saved if downloading is stopped
  13362. by the errors:it results that aria2 can not resume downloading:
  13363. * src/main.cc
  13364. (normalDownload): Added the call to save().
  13365. (main): Added the deletion of the elements in 'reserved'.
  13366. To fix log:
  13367. * src/PeerInteraction.cc
  13368. (receiveHandshake): Fixed log.
  13369. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13370. To improve download performance in BitTorrent:
  13371. * src/TorrentMan.cc
  13372. (getPeer): Check the number of connections. Return nullPeer if
  13373. it is greater than MAX_PEER_UPDATE.
  13374. This code was originally here, but was removed in 0.5.1.
  13375. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13376. To improve the conditional compilation:
  13377. * src/MultiDiskWriter.h:
  13378. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13379. * src/MultiDiskWriter.cc:
  13380. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13381. * src/Util.h:
  13382. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13383. Added ENABLE_BITTORRENT around computeFastSet().
  13384. * src/Util.cc:
  13385. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13386. Added ENABLE_BITTORRENT around computeFastSet().
  13387. * src/messageDigest.h:
  13388. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13389. * src/ShaVisitor.h:
  13390. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13391. * src/ShaVisitor.cc:
  13392. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13393. * src/main.cc:
  13394. Added ENABLE_BITTORRENT around includes and blocks related to
  13395. BitTorrent.
  13396. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13397. digest support is not available.
  13398. * src/AbstractDiskWriter.h:
  13399. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13400. * src/AbstractDiskWriter.cc:
  13401. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13402. * src/MetalinkEntry.cc
  13403. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13404. support is not available.
  13405. To add command-line options for Metalink:
  13406. * src/main.cc:
  13407. Added metalink-version, metalink-language, metalink-os,
  13408. follow-metalink.
  13409. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13410. * src/main.cc: Use these definition.
  13411. * Release 0.6.0
  13412. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13413. To add Metalink support(http/ftp only):
  13414. * src/AbstractCommand.h
  13415. (tryReserved): New function.
  13416. * src/AbstractCommand.cc
  13417. (execute): Call tryReserved().
  13418. (tryReserved): New function.
  13419. * src/Request.h
  13420. (Requests): New type definition.
  13421. * src/SegmentMan.h
  13422. (reserved): New variable.
  13423. * src/Util.h
  13424. (fileChecksum): New function.
  13425. (toUpper): New function.
  13426. (toLower): New function.
  13427. * src/Util.cc
  13428. (messageDigest.h): Included.
  13429. (trim): Trim \r\n\t.
  13430. (fileChecksum): New function.
  13431. (toUpper): New function.
  13432. (toLower): New function.
  13433. * src/main.cc
  13434. (normalDownload): New function.
  13435. (main): Added 2 command-line options: metalink-file,
  13436. metalink-connection. Their usage has not been written yet.
  13437. * src/MetalinkProcessor.h: New class.
  13438. * src/Xml2MetalinkProcessor.h: New class.
  13439. * src/Xml2MetalinkProcessor.cc: New class.
  13440. * src/MetalinkEntry.h: New class.
  13441. * src/MetalinkEntry.cc: New class.
  13442. * src/MetalinkResource.h: New class.
  13443. * src/MetalinkResource.cc: New class.
  13444. To add md5 message digest checking:
  13445. * src/messageDigest.h: Rewritten.
  13446. * src/MultiDiskWriter.cc: Updated according to the changes in
  13447. messageDigest.h.
  13448. * src/ShaVisitor.cc: Updated according to the changes in
  13449. messageDigest.h.
  13450. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13451. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13452. messageDigest.h.
  13453. To fix a bug that causes segfault when the payload length in peer
  13454. message is less than 0:
  13455. * src/PeerConnection.cc:
  13456. (receiveMessage): Fixed the bug.
  13457. * src/PeerMessageUtil.cc
  13458. (checkLength): Throw an exception if length is less than or equals to
  13459. 0.
  13460. To add new interfaces to Base64 encoding/decoding:
  13461. * src/Base64.h
  13462. (part_encode): Changed the method signature.
  13463. (encode): New function(overload).
  13464. (decode): New function(overload).
  13465. * src/Base64.cc
  13466. (part_encode): Rewritten.
  13467. (encode): Rewritten.
  13468. (encode): New function(overload).
  13469. To prevent a peer to download same piece if there is an error in
  13470. checksum:
  13471. * src/PieceMessage.cc
  13472. (receivedAction): Call peerInteraction->abortPiece().
  13473. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13474. To fix the bug that causes same have message is sent many times to
  13475. a single peer.
  13476. * src/Time.cc
  13477. (isNewer): Use Util::difftv().
  13478. * src/Util.cc
  13479. (difftv): Added a cast to (long long int).
  13480. * src/TorrentMan.cc
  13481. (advertisePiece): Use push_front.
  13482. (getAdvertisedPieceIndexes): A performance improvement was made.
  13483. To fix the bug that sends tracker requests without a sleep interval
  13484. when the number of connections is less than 15.
  13485. * src/TrackerWatcherCommand.cc
  13486. (execute): Now the number of connections is not a factor to decide
  13487. whether or not a tracker request should be sent or not.
  13488. * src/Time.h
  13489. (setTimeInSec): New function.
  13490. * src/Time.cc
  13491. (setTimeInSec): New function.
  13492. etc.
  13493. * src/ChokeMessage.cc
  13494. (receivedAction): Removed peer->snubbing = false
  13495. * src/PeerConnection.h
  13496. (receiveHandshake): Updated doc.
  13497. * src/TorrentMan.h
  13498. (getAdvertisedPieceIndexes): Updated the method signature.
  13499. * src/TorrentMan.cc
  13500. (getAdvertisedPieceIndexes): Updated the method signature.
  13501. * src/Time.h
  13502. (getTimeInMicros): Added a cast to (long long int).
  13503. (getTimeInMillis): Added a cast to (long long int).
  13504. * Release 0.5.2
  13505. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13506. To make a listening socket non-block:
  13507. * src/SocketCore.h
  13508. (setNonBlockingMode): New function.
  13509. * src/SocketCore.cc
  13510. (setNonBlockingMode): New function.
  13511. (beginListen): Added a call to setNonBlockingMode().
  13512. (acceptConnection): Call setNonBlockingMode().
  13513. (setBlockingMode): Updated.
  13514. To handle tracker's NAT-checking:
  13515. * src/PeerConnection.cc
  13516. (receiveHandshake): 'msg' param is filled with received data and
  13517. its length is assigned to 'length' param, even if all handshake
  13518. message is not yet received.
  13519. * src/PeerInteractionCommand.cc
  13520. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13521. a new peer connects to localhost.
  13522. A call to peerInteraction->sendHandshake() was removed because
  13523. it is called from peerInteraction->receiveHandshake(true).
  13524. * src/PeerInteraction.h
  13525. (quickReplied): New variable.
  13526. (receiveHandshake): Added an argument.
  13527. * src/PeerInteraction.cc
  13528. (PeerInteraction): Added the initialization of quickReplied.
  13529. (receiveHandshake): Send handshake message as soon as the info hash
  13530. in a handshake message from a peer is correct.
  13531. To change the random part of peer id and key parameter:
  13532. * src/TorrentMan.h
  13533. (key): New variable.
  13534. * src/TorrentMan.cc
  13535. (setupInternal1): Use Util::randomAlpha() to generate random part
  13536. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13537. key is also generated by Util::randomAlpha() and it is now 8 character
  13538. long.
  13539. * src/Util.h
  13540. (randomAlpha): New function.
  13541. * src/Util.cc
  13542. (randomAlpha): New function.
  13543. * src/TrackerWatcherCommand.cc
  13544. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13545. Added no_peer_id=1.
  13546. Set snubbing flag to false when a choke message is received from a
  13547. snubbed peer.
  13548. * src/ChokeMessage.cc
  13549. (receivedAction): Set snubbing flag to false.
  13550. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13551. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13552. * src/SimpleLogger.h (writeHeader): New function.
  13553. * src/SimpleLogger.cc (writeHeader): New function.
  13554. (writeLog): Fixed the bug that causes segfaults if exception message
  13555. contains an unescaped "%" character.
  13556. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13557. when a tracker request fails.
  13558. * src/Request.cc (parseUrl): Query string is now handled properly.
  13559. * Release 0.5.1
  13560. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13561. To add Time class which represents a specific instant in time and
  13562. its precision is microseconds. Time checking procedures were rewritten
  13563. using this object.
  13564. * src/Time.h: New class.
  13565. * src/Time.cc: New class.
  13566. * src/AbstractCommand.h
  13567. (updateCheckPoint): Removed.
  13568. (isTimeoutDetected): Removed.
  13569. (checkPoint): Changed the type to Time.
  13570. (timeout): New variable.
  13571. (setTimeout): New function.
  13572. * src/AbstractCommand.cc
  13573. (AbstractCommand): Removed the initialization of checkPoint.
  13574. Added the initialization of timeout.
  13575. (updateCheckPoint): Removed.
  13576. (isTimeoutDetected): Removed.
  13577. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13578. * src/PeerChokeCommand.h
  13579. (checkPoint): Changed the type to Time.
  13580. * src/PeerChokeCommand.cc
  13581. (PeerChokeCommand): Removed the initialization of checkPoint.
  13582. (execute): Rewritten using Time object.
  13583. * src/TrackerWatcherCommand.h
  13584. (checkPoint): Changed the type to Time.
  13585. * src/TrackerWatcherCommand.cc
  13586. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13587. (execute): Rewritten.
  13588. * src/ConsoleDownloadEngine.h
  13589. (cp): Changed the type to Time.
  13590. (startup): Changed the type to Time.
  13591. * src/ConsoleDownloadEngine.cc
  13592. (initStatistics): Use cp.reset(), startup.reset().
  13593. (calculateStatistics): Rewritten using Time object.
  13594. * src/PeerAbstractCommand.h
  13595. (updateCheckPoint): Removed.
  13596. (isTimeoutDetected): Removed.
  13597. (checkPoint): Changed the type to Time.
  13598. * src/PeerAbstractCommand.cc
  13599. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13600. (updateCheckPoint): Removed.
  13601. (isTimeoutDetected): Removed.
  13602. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13603. * src/PeerInteractionCommand.cc
  13604. (PeerInteractionCommand): Removed the initializations of struct
  13605. timeval variables.
  13606. * src/PeerInteractionCommand.h
  13607. (keepAliveCheckPoint): Changed the type to Time.
  13608. (chokeCheckPoint): Changed the type to Time.
  13609. (freqCheckPoint): Changed the type to Time.
  13610. (haveCheckTime): Changed the type to Time.
  13611. * src/PeerInteractionCommand.cc
  13612. (executeInternal): Rewritten using Time object.
  13613. (detectMessageFlooding): Rewritten using Time object.
  13614. (checkLongTimePeerChoking): Rewritten using Time object.
  13615. (sendKeepAlive): Rewritten using Time object.
  13616. (checkHave): Rewritten using Time object.
  13617. * src/SleepCommand.h
  13618. (checkPoint): Changed the type to Time.
  13619. * src/SleepCommand.cc
  13620. (SleepCommand): Removed the initialization of checkPoint.
  13621. (execute): Rewritten using Time object.
  13622. * src/TorrentAutoSaveCommand.h
  13623. (checkPoint): Changed the type to Time.
  13624. * src/TorrentAutoSaveCommand.cc
  13625. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13626. (execute): Rewritten.
  13627. * src/DownloadCommand.h
  13628. (sw): Changed the type to Time.
  13629. * src/DownloadCommand.cc
  13630. (DownloadCommand): Removed the initialization of sw.
  13631. (executeInternal): Rewritten.
  13632. * src/RequestSlot.h
  13633. (dispatchedTime): Changed the type to Time.
  13634. * src/RequestSlot.cc
  13635. (RequestSlot): Removed the call to setDispatchedTime().
  13636. (setDispatchedTime): Rewirtten.
  13637. (isTimeout): Rewritten.
  13638. (getLatencyInMillis): Rewritten.
  13639. * src/TorrentDownloadEngine.h
  13640. (cp): Changed the type to Time[2].
  13641. (startup): Changed the type to Time.
  13642. * src/TorrentDownloadEngine.cc
  13643. (initStatistics): Rewritten.
  13644. (calculateStatistics): Rewritten.
  13645. * src/DownloadEngine.cc
  13646. (run): Rewritten.
  13647. To detect all attempts to connect to the tracker are failed:
  13648. * src/AbstractCommand.cc
  13649. (execute): Increment e->segmentMan->errors if a command aborted.
  13650. * src/SegmentMan.h
  13651. (errors): New variable.
  13652. * src/SegmentMan.cc
  13653. (SegmentMan): Added the initialization of errors.
  13654. (init): Added the initialization of errors.
  13655. * src/TrackerWatcherCommand.cc
  13656. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13657. request was failed.
  13658. To handle snubbed peers:
  13659. * src/PeerChokeCommand.cc
  13660. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13661. (execute): Snubbed peers don't get unchoked.
  13662. * src/PeerInteraction.h
  13663. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13664. * src/PeerInteraction.cc
  13665. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13666. back the requested 16k block in 60 seconds.
  13667. * src/PieceMessage.cc
  13668. (receivedAction): A peer's snubbed state is cleard if it sends
  13669. the requested 16k block in 60 seconds.
  13670. * src/Peer.h
  13671. (snubbing): New variable.
  13672. * src/Peer.cc
  13673. (resetStatus): Added snubbed = false.
  13674. To fix the bug that causes have message is not sent:
  13675. * src/PeerInteractionCommand.cc
  13676. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13677. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13678. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13679. * src/TorrentMan.h
  13680. (HaveEntry): New class.
  13681. (advertisePiece): Rewritten.
  13682. (getAdvertisedPieceIndexes): Rewritten.
  13683. (Haves): Changed the type.
  13684. (getAdvertisedPieceIndexes): Added an argument.
  13685. Others:
  13686. * src/TorrentMan.h
  13687. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13688. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13689. * src/TorrentMan.cc
  13690. (getPeer): Don't check the number of connections here.
  13691. (setupInternal1): Changed peerId.
  13692. * src/PeerInteractionCommand.h
  13693. (KEEP_ALIVE_INTERVAL): New definition.
  13694. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13695. * src/main.cc
  13696. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13697. * src/DownloadEngine.h: Removed unnecessary header includes.
  13698. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13699. To fix the bug that causes segfaults if a tracker returns a zero-length
  13700. list as "peers":
  13701. * src/TrackerUpdateCommand.cc
  13702. (execute): Added a check to see wether the type of peers is Data*.
  13703. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13704. * Release 0.5.0
  13705. To fix compile issue with gcc3:
  13706. * src/CancelMessage.h
  13707. (ID): Renamed as ID_t
  13708. (ID_t): New enum.
  13709. * src/RejectMessage.h
  13710. (ID): Renamed as ID_t
  13711. (ID_t): New enum.
  13712. * src/SuggestPieceMessage.h
  13713. (ID): Renamed as ID_t
  13714. (ID_t): New enum.
  13715. * src/AllowedFastMessage.h
  13716. (ID): Renamed as ID_t
  13717. (ID_t): New enum.
  13718. * src/PortMessage.h
  13719. (ID): Renamed as ID_t
  13720. (ID_t): New enum.
  13721. * src/HaveNoneMessage.h
  13722. (ID): Renamed as ID_t
  13723. (ID_t): New enum.
  13724. * src/KeepAliveMessage.h
  13725. (ID): Renamed as ID_t
  13726. (ID_t): New enum.
  13727. * src/HaveAllMessage.h
  13728. (ID): Renamed as ID_t
  13729. (ID_t): New enum.
  13730. * src/UnchokeMessage.h
  13731. (ID): Renamed as ID_t
  13732. (ID_t): New enum.
  13733. * src/BitfieldMessage.h
  13734. (ID): Renamed as ID_t
  13735. (ID_t): New enum.
  13736. * src/PieceMessage.h
  13737. (ID): Renamed as ID_t
  13738. (ID_t): New enum.
  13739. * src/RequestMessage.h
  13740. (ID): Renamed as ID_t
  13741. (ID_t): New enum.
  13742. * src/NotInterestedMessage.h
  13743. (ID): Renamed as ID_t
  13744. (ID_t): New enum.
  13745. * src/ChokeMessage.h
  13746. (ID): Renamed as ID_t
  13747. (ID_t): New enum.
  13748. * src/InterestedMessage.h
  13749. (ID): Renamed as ID_t
  13750. (ID_t): New enum.
  13751. * src/HaveMessage.h
  13752. (ID): Renamed as ID_t
  13753. (ID_t): New enum.
  13754. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13755. * src/PeerAbstractCommand.h
  13756. (beforeSocketCheck): Removed.
  13757. * src/PeerAbstractCommand.cc
  13758. Modified in order to call executeInternal() even if socket check
  13759. and upload limit check fail.
  13760. * src/PeerInteractionCommand.h
  13761. (keepAlive): Removed.
  13762. (sendKeepAlive): New function.
  13763. (checkHave): New function.
  13764. (beforeSocketCheck): Removed.
  13765. * src/PeerInteractionCommand.cc
  13766. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13767. calls to checkHave() and sendKeepAlive().
  13768. (keepAlive): Renamed to sendKeepAlive().
  13769. (sendKeepAlive): New function.
  13770. (beforeSocketCheck): Removed.
  13771. (checkHave): New function.
  13772. * src/BitfieldMan.cc
  13773. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13774. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13775. 0.
  13776. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13777. * src/TorrentMan.h
  13778. (UsedPieces): Removed.
  13779. (Pieces): New type definition.
  13780. * src/Piece.h: Updated doc.
  13781. * src/Peer.h
  13782. (totalLength): Removed.
  13783. * src/Peer.cc
  13784. (updateLatency): Fixed the latency calculation.
  13785. * src/TorrentMan.cc
  13786. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13787. than or equal to MAX_PEER_LIST_SIZE.
  13788. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13789. then return false.
  13790. (deleteOldErrorPeers): Rewritten.
  13791. (deleteUsedPiece): Fixed the miss use of STL remove.
  13792. * src/PeerInteraction.h
  13793. (Pieces): Removed.
  13794. (deleteTimeoutRequestSlot): Removed.
  13795. (deleteCompletedRequestSlot): Removed.
  13796. (checkRequestSlot): New function.
  13797. * src/PeerInteraction.cc
  13798. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13799. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13800. (checkRequestSlot): New function.
  13801. * src/DownloadEngine.cc
  13802. (run): Clear activeSockets before calling waitData().
  13803. (waitData): Removed a call to activeSockets.clear().
  13804. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13805. To attempt to handle EINTR:
  13806. * src/SocketCore.cc
  13807. (isReadable): Added EINTR handling.
  13808. (isWritable): Added EINTR handling.
  13809. To improve the performance:
  13810. * src/AbstractCommand.cc
  13811. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13812. * src/PeerInteractionCommand.h
  13813. (receiveMessage): Renamed as receiveMessages().
  13814. (receiveMessages): New function.
  13815. * src/PeerInteractionCommand.cc
  13816. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13817. () function. detectMessageFlooding() is moved here.
  13818. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13819. (). The flooding detection for have message is comment out.
  13820. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13821. Util::difftv().
  13822. (receiveMessage): Renamed as receiveMessages().
  13823. (receiveMessages): New function.
  13824. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13825. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13826. * src/SleepCommand.cc
  13827. (execute): Use Util::difftvsec() instead of Util::difftv().
  13828. * src/BitfieldMan.h
  13829. (getNthBitIndex): New function.
  13830. (hasMissingPiece): New function.
  13831. (getAllMissingIndexes): New function.
  13832. * src/BitfieldMan.cc
  13833. (countSetBit): Rewritten.
  13834. (getNthBitIndex): New function.
  13835. (getMissingIndexRandomly): Rewritten.
  13836. (hasMissingPiece): New function.
  13837. (getAllMissingIndexes): New function.
  13838. * src/TorrentMan.cc
  13839. (hasMissingPiece): New function.
  13840. (deleteUsedPiece): Rewritten using STL.
  13841. * src/PeerInteraction.cc
  13842. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13843. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13844. (addRequests): Updated the number of pending requests.
  13845. * src/PeerAbstractCommand.cc
  13846. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13847. (execute): Returns true if TorrentMan::isHalt() is true.
  13848. Corrected the condition of upload limit checking.
  13849. * src/Util.h
  13850. (countBit): New function.
  13851. * src/Util.cc
  13852. (nbits): New variable.
  13853. (countBit): New function.
  13854. * src/DownloadEngine.h
  13855. (SockCmdMap): New type definition.
  13856. (waitData): Added an argument.
  13857. (addSocket): Added an argument.
  13858. (addSocketForReadCheck): Added an argument.
  13859. (addSocketForWriteCheck): Added an argument.
  13860. * src/DownloadEngine.cc
  13861. (run): Executes only commands whose sockets are ready to read or write.
  13862. All commands are executed in every 1 second.
  13863. (waitData): Calls select() again if it returned
  13864. EINTR.
  13865. (addSocket): Saves socket and command object pair to the map.
  13866. (deleteSocket): Deletes socket and command object pair from the map.
  13867. (addSocketForReadCheck): Added an argument.
  13868. (addSocketForWriteCheck): Added an argument.
  13869. * src/DownloadCommand.cc
  13870. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13871. To send "event=stopped" to the tracker when the application finishes:
  13872. * src/PeerChokeCommand.h
  13873. (checkPoint): New variable.
  13874. * src/PeerChokeCommand.cc
  13875. (PeerChokeCommand): Added the initialization of checkPoint.
  13876. (execute): The interval check is now done by checkPoint, not
  13877. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13878. * src/TorrentMan.h
  13879. (halt): New function.
  13880. (hasMissingPiece): New function.
  13881. (isHalt): New function.
  13882. (setHalt): New function.
  13883. * src/TorrentMan.cc
  13884. (TorrentMan): Added the initialization of halt.
  13885. * src/TorrentAutoSaveCommand.h
  13886. (checkPoint): New variable.
  13887. * src/PeerListenCommand.cc
  13888. (execute): Returns true if TorrentMan::isHalt() is true.
  13889. * src/main.cc
  13890. (setSignalHander): Added flags argument.
  13891. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13892. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13893. Removed printDownloadAbortMessage() after torrent downloading loop.
  13894. * src/TorrentAutoSaveCommand.cc
  13895. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13896. (execute): Returns true if TorrentMan::isHalt() is true.
  13897. The interval check is now done by checkPoint, not SleepCommand.
  13898. * src/TrackerWatcherCommand.cc
  13899. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13900. event=stopped.
  13901. * src/TrackerUpdateCommand.cc
  13902. (prepareForRetry): Do not use SleepCommand here.
  13903. (execute): Returns true if TorrentMan::isHalt() is true.
  13904. Others:
  13905. * src/TorrentMan.cc
  13906. (getMissingPieceIndex): Updated log message.
  13907. * src/PeerInteraction.cc
  13908. (createPeerMessag): Updated log message.
  13909. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13910. To add the ability to download several pieces in mix in a command and
  13911. increase the number of request slots according to request-cancel
  13912. latency:
  13913. * src/PeerInteractionCommand.cc
  13914. (executeInternal): The number of messages to be received at a time
  13915. is increased from 10 to 50.
  13916. * src/LogFactory
  13917. (getInstance): Added NullLogger.
  13918. * src/NullLogger.h: New class.
  13919. * src/BitfieldMan.h
  13920. (getMissingIndex): New function.
  13921. * src/BitfieldMan.cc
  13922. (getMissingIndex): New function.
  13923. * src/TorrentMan.h
  13924. (checkOutPiece): New function.
  13925. (getMissingPieceIndex): New function.
  13926. (getMissingFastPieceIndex): New function.
  13927. (getMissingFastPiece): New function.
  13928. * src/TorrentMan.cc
  13929. (updatePiece): Rewritten using STL.
  13930. (syncPiece): Rewritten using STL.
  13931. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13932. checkOutPiece().
  13933. (getMissingPieceIndex): New function.
  13934. (getMissingFastPieceIndex): New function.
  13935. (getMissingFastPiece): New function.
  13936. (checkOutPiece): New function.
  13937. * src/PeerInteraction.h
  13938. (Pieces): New type definition.
  13939. (piece): Removed.
  13940. (pieces): New variable.
  13941. (getNewPieceAndSendInterest): Added the "piece" argument.
  13942. (abortPiece): Added the "piece" argument.
  13943. (abortAllPieces): New function.
  13944. (isInRequestSlot): New function.
  13945. (hasDownloadPiece): Added the "index" argument.
  13946. (setDownloadPiece): Removed.
  13947. (getDownloadPiece): Added the "index" argument.
  13948. (updatePiece): New function.
  13949. (createRequestMessage): Added the "index" argument.
  13950. * src/PeerInteraction.cc
  13951. (onChoked): Rewritten.
  13952. (abortPiece): Rewirtten.
  13953. (abortAllPieces): New function.
  13954. (deleteTimeoutRequestSlot): Rewritten.
  13955. Clarified code a little bit.
  13956. (deleteCompletedRequestSlot): Rewritten.
  13957. (isInRequestSlot): New function.
  13958. (syncPiece): Rewritten.
  13959. (updatePiece): New function.
  13960. (getNewPieceAndSendInterest): Rewritten.
  13961. (addRequests): Rewritten.
  13962. (getDownloadPiece): Rewritten.
  13963. (hasDownloadPiece): Rewritten.
  13964. (createRequestMessage): Added the "index" argument.
  13965. * src/common.h
  13966. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13967. (DIV_FLOOR): New definition.
  13968. * src/PieceMessage.cc
  13969. (receivedAction): Update request-piece latency here.
  13970. * src/RequestSlot.h
  13971. (getLatencyInMillis): New function.
  13972. * src/RequestSlot.cc
  13973. (isTimeout): Rewritten using getLatencyInMillis.
  13974. (getLatencyInMillis): New function.
  13975. * src/Piece.h
  13976. (operator==): New function.
  13977. (getMissingBlockIndex): New function.
  13978. * src/Piece.cc
  13979. (operator==): New function.
  13980. (getMissingBlockIndex): New function.
  13981. * src/Peer.h
  13982. (DEFAULT_LATENCY): New definition.
  13983. (latency): New variable.
  13984. (updateLatency): New function.
  13985. (getLatency): New function.
  13986. * src/Peer.cc
  13987. (resetStatus): Reset latecy.
  13988. (updateLatency): New function.
  13989. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13990. * src/SocketCore.cc
  13991. (isReadable): Added secure to the condition.
  13992. * src/HttpConnection.cc
  13993. (receiveResponse): Fixed a bug that causes no response header
  13994. exception.
  13995. * src/Peer.h
  13996. (getFastSet): Fixed the return value type.
  13997. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13998. To remove a wait from download loop:
  13999. * src/DownloadEngine.cc
  14000. (run): Comment out shortSleep.
  14001. To rewrite the message handling:
  14002. * src/SimplePeerMessage.h: New class.
  14003. * src/SimplePeerMessage.cc: New class.
  14004. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14005. (msg): New variable.
  14006. (create): New function.
  14007. (send): Removed.
  14008. (getMessage): New function.
  14009. (getMessageLength): New function.
  14010. * src/CancelMessage.cc
  14011. (create): New function.
  14012. (receivedAction): Replaced deleteRequestMessageInQueue with
  14013. rejectPieceMessageInQueue.
  14014. (send): Removed.
  14015. (getMessage): New function.
  14016. (getMessageLength): New function.
  14017. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14018. (msg): New variable.
  14019. (msgLength): New variable.
  14020. (~BitfieldMessage): Deleted msg.
  14021. (send): Removed.
  14022. (getMessage): New function.
  14023. (getMessageLength): New function.
  14024. * src/BitfieldMessage.cc
  14025. (create): New function.
  14026. (send): Removed.
  14027. (getMessage): New function.
  14028. (getMessageLength): New function.
  14029. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14030. (msg): New variable.
  14031. (sendPredicate): New function.
  14032. (onSendComplete): New function.
  14033. (send): Removed.
  14034. (getMessage): New function.
  14035. (getMessageLength): New function.
  14036. (create): New function.
  14037. * src/ChokeMessage.cc
  14038. (create): New function.
  14039. (send): Removed.
  14040. (sendPredicate): New function.
  14041. (getMessage): New function.
  14042. (getMessageLength): New function.
  14043. (onSendComplete): New function.
  14044. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14045. (msg): New variable.
  14046. (send): Removed.
  14047. (getMessage): New function.
  14048. (getMessageLength): New function.
  14049. * src/KeepAliveMessage.cc
  14050. (send): Removed.
  14051. (getMessage): New function.
  14052. (getMessageLength): New function.
  14053. * src/PortMessage.h
  14054. (create): New function.
  14055. (receivedAction): Updated log message.
  14056. * src/PortMessage.cc: New file.
  14057. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14058. (msg): New variable.
  14059. (sendPredicate): New function.
  14060. (onSendComplete): New function.
  14061. (create): New function.
  14062. (send): Removed.
  14063. (getMessage): New function.
  14064. (getMessageLength): New function.
  14065. * src/UnchokeMessage.cc
  14066. (create): New function.
  14067. (send): Removed.
  14068. (sendPredicate): New function.
  14069. (getMessage): New function.
  14070. (getMessageLength): New function.
  14071. (onSendComplete): New function.
  14072. * src/PieceMessage.h
  14073. (leftPieceDataLength): Removed.
  14074. (leftDataLength): New variable.
  14075. (headerSend): New variable.
  14076. (pendingCount): New variable.
  14077. (msgHeader): New variable.
  14078. (sendPieceData): New function.
  14079. (incrementPendingCount): New function.
  14080. (isPendingCountMax): New function.
  14081. (create): New function.
  14082. (getMessageHeader): New function.
  14083. (getMessageHeaderLength): New function.
  14084. * src/PieceMessage.cc
  14085. (create): New function.
  14086. (getMessageHeader): New function.
  14087. (getMessageHeaderLength): New function.
  14088. (send): Rewritten.
  14089. (sendPieceData): New function.
  14090. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14091. (msg): New variable.
  14092. (create): New function.
  14093. (getMessage): New function.
  14094. (getMessageLength): New function.
  14095. * src/HaveMessage.cc
  14096. (create): New function.
  14097. (send): Removed.
  14098. (sendPieceData): New function.
  14099. (getMessage): New function.
  14100. (getMessageLength): New function.
  14101. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14102. (msg): New variable.
  14103. (create): New function.
  14104. (send): Removed.
  14105. (getMessage): New function.
  14106. (getMessageLength): New function.
  14107. * src/RequestMessage.cc
  14108. (create): New function.
  14109. (receivedAction): Added the handling of fast extension.
  14110. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14111. (send): Removed.
  14112. (getMessage): New function.
  14113. (getMessageLength): New function.
  14114. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14115. (msg): New variable.
  14116. (sendPredicate): New function.
  14117. (onSendComplete): New function.
  14118. (create): New function.
  14119. (getMessage): New function.
  14120. (getMessageLength): New function.
  14121. * src/InterestedMessage.cc
  14122. (create): New function.
  14123. (send): Removed.
  14124. (sendPieceData): New function.
  14125. (getMessage): New function.
  14126. (getMessageLength): New function.
  14127. (onSendComplete): New function.
  14128. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14129. (msg): New variable.
  14130. (sendPieceData): New function.
  14131. (onSendComplete): New function.
  14132. (create): New function.
  14133. (send): Removed.
  14134. (getMessage): New function.
  14135. (getMessageLength): New function.
  14136. * src/NotInterestedMessage.cc
  14137. (create): New function.
  14138. (send): Removed.
  14139. (sendPredicate): New function.
  14140. (getMessage): New function.
  14141. (getMessageLength): New function.
  14142. (onSendComplete): New function.
  14143. * src/AllowedFastMessage.h: New class.
  14144. * src/AllowedFastMessage.cc: New class.
  14145. * src/RejectMessage.h: New class.
  14146. * src/RejectMessage.cc: New class.
  14147. * src/SuggestPieceMessage.h: New class.
  14148. * src/SuggestPieceMessage.cc: New class.
  14149. * src/HaveAllMessage.h: New class.
  14150. * src/HaveAllMessage.cc: New class.
  14151. * src/HaveNoneMessage.h: New class.
  14152. * src/HaveNoneMessage.cc: New class.
  14153. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14154. (msg): New variable.
  14155. (reserved): New variable.
  14156. (create): New function.
  14157. (getId): New function.
  14158. (receivedAction): New function.
  14159. (getMessage): New function.
  14160. (getMessageLength): New function.
  14161. (isFastExtensionSupported): New function.
  14162. * src/HandshakeMessage.cc
  14163. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14164. (create): New function.
  14165. (getMessage): New function.
  14166. (getMessageLength): New function.
  14167. (toString): Added the output of reserved field.
  14168. (check): Added const qualifier.
  14169. (isFastExtensionSupported): New function.
  14170. * src/PeerMessageUtil.h
  14171. (createChokeMessage): Removed.
  14172. (createUnchokeMessage): Removed.
  14173. (createInterestedMessage): Removed.
  14174. (createNotInterestedMessage): Removed.
  14175. (createHaveMessage): Removed.
  14176. (createBitfieldMessage): Removed.
  14177. (createRequestMessage): Removed.
  14178. (createCancelMessage): Removed.
  14179. (createPieceMessage): Removed.
  14180. (createPortMessage): Removed.
  14181. (createChokeMessage): Removed.
  14182. (createUnchokeMessage): Removed.
  14183. (createInterestedMessage): Removed.
  14184. (createNotInterestedMessage): Removed.
  14185. (createHaveMessage): Removed.
  14186. (createBitfieldMessage): Removed.
  14187. (createRequestMessage): Removed.
  14188. (createCancelMessage): Removed.
  14189. (createPieceMessage): Removed.
  14190. (createKeepAliveMessage): Removed.
  14191. (createHandshakeMessage): Removed.
  14192. (setIntParam): New function.
  14193. (createPeerMessageString): New function.
  14194. * src/PeerMessageUtil.cc
  14195. (createChokeMessage): Removed.
  14196. (createUnchokeMessage): Removed.
  14197. (createInterestedMessage): Removed.
  14198. (createNotInterestedMessage): Removed.
  14199. (createHaveMessage): Removed.
  14200. (createBitfieldMessage): Removed.
  14201. (createRequestMessage): Removed.
  14202. (createCancelMessage): Removed.
  14203. (createPieceMessage): Removed.
  14204. (createPortMessage): Removed.
  14205. (createRequestMessage): Removed.
  14206. (createCancelMessage): Removed.
  14207. (createPieceMessage): Removed.
  14208. (createHaveMessage): Removed.
  14209. (createChokeMessage): Removed.
  14210. (createUnchokeMessage): Removed.
  14211. (createInterestedMessage): Removed.
  14212. (createNotInterestedMessage): Removed.
  14213. (createBitfieldMessage): Removed.
  14214. (createKeepAliveMessage): Removed.
  14215. (createHandshakeMessage): Removed.
  14216. (setIntParam): New function.
  14217. (createPeerMessageString): New function.
  14218. * src/PeerConnection.h
  14219. (peer): Removed.
  14220. (torrentMan): Removed.
  14221. (createNLengthMessage): Removed.
  14222. (setIntParam): Removed.
  14223. (writeOutgoingMessageLog): Removed all overloaded functions.
  14224. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14225. (sendMessage): New function.
  14226. (sendHandshake): Removed.
  14227. (sendKeepAlive): Removed.
  14228. (sendChoke): Removed.
  14229. (sendUnchoke): Removed.
  14230. (sendInterested): Removed.
  14231. (sendNotInterested): Removed.
  14232. (sendHave): Removed.
  14233. (sendBitfield): Removed.
  14234. (sendRequest): Removed.
  14235. (sendPiece): Removed.
  14236. (sendPieceHeader): Removed.
  14237. (sendPieceData): Removed.
  14238. (sendCancel): Removed.
  14239. (getPeer): Removed.
  14240. * src/PeerConnection.cc
  14241. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14242. (sendHandshake): Removed.
  14243. (sendKeepAlive): Removed.
  14244. (createNLengthMessage): Removed.
  14245. (setIntParam): Removed.
  14246. (writeOutgoingMessageLog): Removed all overloaded functions.
  14247. (sendChoke): Removed.
  14248. (sendUnchoke): Removed.
  14249. (sendInterested): Removed.
  14250. (sendNotInterested): Removed.
  14251. (sendHave): Removed.
  14252. (sendBitfield): Removed.
  14253. (sendRequest): Removed.
  14254. (sendPiece): Removed.
  14255. (sendPieceHeader): Removed.
  14256. (sendPieceData): Removed.
  14257. (sendMessage): New function.
  14258. (sendCancel): Removed.
  14259. * src/PeerInteractionCommand.cc
  14260. (PeerInteractionCommand): Call setUploadLimit.
  14261. (executeInternal): Call setUploadLimit.
  14262. Added the handling of "inProgress" state of handshake message.
  14263. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14264. sendNow().
  14265. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14266. sendNow().
  14267. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14268. * src/TorrentMan.h
  14269. (PEER_ID_LENGTH): New definition.
  14270. (hasAllPieces): New function.
  14271. * src/TorrentMan.cc
  14272. (getMissingPiece): Added the handling of fast extension.
  14273. (cancelPiece): Call updatePiece().
  14274. (hasAllPieces): New function.
  14275. * src/PeerInteraction.h
  14276. (fastSet): New variable.
  14277. (getNewPieceAndSendInterest): Changed the return type to void.
  14278. (send): Renamed as sendMessages.
  14279. (deleteAllRequestSlot): Removed.
  14280. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14281. (cancelAllRequest): Removed all overloaded functions.
  14282. (deleteAllRequestSlot): Removed.
  14283. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14284. (rejectPieceMessageInQueue): New function.
  14285. (rejectAllPieceMessageInQueue): New function.
  14286. (onChoked): New function.
  14287. (isSendingMessageInProgress): New function.
  14288. (getCorrespondingRequestSlot): Changed its arguments.
  14289. (isInFastSet): New function.
  14290. (addFastSetIndex): New function.
  14291. (addRequests): New function.
  14292. (sendNow): Removed.
  14293. (trySendNow): Removed.
  14294. (sendBitfield): New function.
  14295. (sendAllowdFast): New function.
  14296. (createHaveAllMessage): New function.
  14297. (createHaveNoneMessage): New function.
  14298. (createRejectMessage): New function.
  14299. (createAllowedFastMessage): New function.
  14300. * src/PeerInteraction.cc
  14301. (send): Renamed as sendMessages.
  14302. (sendMessages): New function.
  14303. (MsgPushBack): New class.
  14304. (isSendingMessageInProgress): New function.
  14305. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14306. (rejectAllPieceMessageInQueue): New function.
  14307. Added the handling of fast extension.
  14308. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14309. (rejectPieceMessageInQueue): New function.
  14310. Added the handling of fast extension.
  14311. (deleteRequestSlot): Replaced for loop with std::find.
  14312. (onChoked): New function.
  14313. (deleteAllRequestSlot): Removed.
  14314. (abortPiece): Rewirtten.
  14315. (deleteTimeoutRequestSlot): Updated log messages.
  14316. (getCorrespondingRequestSlot): Changed its arguments.
  14317. (cancelAllRequest): Removed all overloaded functions.
  14318. (receiveHandshake): Added the check to see whether an incoming peer
  14319. supports fast extension.
  14320. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14321. PeerMessageUtil.
  14322. (createPeerMessage): Use create() of each message class instead of
  14323. PeerMessageUtil.
  14324. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14325. AllowedFastMessage were added.
  14326. (getNewPieceAndSendInterest): Changed its return value type to void.
  14327. Added the handling of fast extension.
  14328. (addRequests): New function.
  14329. (sendNow): Removed.
  14330. (sendHandshake): Rewritten.
  14331. (trySendNow): Removed.
  14332. (sendBitfield): New function.
  14333. (sendAllowdFast): New function.
  14334. (isInFastSet): New function.
  14335. (addFastSetIndex): New function.
  14336. (createRequestMessage): Use RequestMessage::create instead of
  14337. PeerMessageUtil.
  14338. (createCancelMessage): Use CancelMessage::create instead of
  14339. PeerMessageUtil.
  14340. (createPieceMessage): Use PieceMessage::create instead of
  14341. PeerMessageUtil.
  14342. (createHaveMessage): Use HaveMessage::create instead of
  14343. PeerMessageUtil.
  14344. (createChokeMessage): Use ChokeMessage::create instead of
  14345. PeerMessageUtil.
  14346. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14347. PeerMessageUtil.
  14348. (createInterestedMessage): Use InterestedMessage::create instead of
  14349. PeerMessageUtil.
  14350. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14351. of PeerMessageUtil.
  14352. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14353. PeerMessageUtil.
  14354. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14355. PeerMessageUtil.
  14356. (createHaveAllMessage): New function.
  14357. (createHaveNoneMessage): New function.
  14358. (createRejectMessage): New function.
  14359. (createAllowedFastMessage: New function.
  14360. * src/Util.h
  14361. (sha1Sum): New function.
  14362. (computeFastSet): New function.
  14363. * src/Util.cc
  14364. (sha1Sum): New function.
  14365. (computeFastSet): New function.
  14366. * src/Peer.h
  14367. (fastExtensionEnabled): New variable.
  14368. (fastSet): New variable.
  14369. (setAllBitfield): New function.
  14370. (setFastExtensionEnabled): New function.
  14371. (isFastExtensionEnabled): New function.
  14372. (addFastSetIndex): New function.
  14373. (getFastSet): New function.
  14374. (isInFastSet): New function.
  14375. (countFastSet): New function.
  14376. * src/Peer.cc
  14377. (isInFastSet): New function.
  14378. (addFastSetIndex): New function.
  14379. (setAllBitfield): New function.
  14380. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14381. sockets.
  14382. * src/PeerAbstractCommand.cc
  14383. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14384. and uploadLimit.
  14385. (execute): Changed the procedure of checking sockets. The upload speed
  14386. checking were added.
  14387. (setUploadLimit): New function.
  14388. (setUploadLimitCheck): New function.
  14389. * src/PeerAbstractCommand.h
  14390. (setUploadLimit): New function.
  14391. (setUploadLimitCheck): New function.
  14392. (uploadLimit): New variable.
  14393. (uploadLimitCheck): New variable.
  14394. To contact a tracker regularly:
  14395. * src/TrackerWatcherCommand.h (interval): New variable.
  14396. (checkPoint): New variable.
  14397. (TrackerWatcherCommand): Added interval argument.
  14398. * src/TrackerWatcherCommand.cc
  14399. (TrackerWatcherCommand): Initialized checkPoint.
  14400. (execute): Now a tracker is contacted in every specified period.
  14401. If peer list is not needed, send request with numwant=0.
  14402. * src/TrackerUpdateCommand.cc
  14403. (execute): Updated log messages.
  14404. * src/DownloadEngine.cc
  14405. (~DownloadEngine): Removed two asserts.
  14406. (waitData): Uncommented wfds. May be a bug fix.
  14407. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14408. * src/PeerInteractionCommand.h
  14409. (checkInactiveConnection): Removed.
  14410. * src/PeerInteractionCommand.cc
  14411. (executeInternal): Removed following function calls:
  14412. detectMessageFlooding(), checkLongTimePeerChoking and
  14413. checkInactiveConnection().
  14414. (checkInactiveConnection): Removed.
  14415. (detectMessageFlooding): Removed function call to
  14416. checkInactiveConnection().
  14417. * src/PeerMessageUtil.h
  14418. (createChokeMessage): New function. Overload.
  14419. (createUnchokeMessage): New function. Overload.
  14420. (createInterestedMessage): New function. Overload.
  14421. (createNotInterestedMessage): New function. Overload.
  14422. (createHaveMessage): New function. Overload.
  14423. (createBitfieldMessage): New function. Overload.
  14424. (createRequestMessage): New function. Overload.
  14425. (createCancelMessage): New function. Overload.
  14426. (createPieceMessage): New function. Overload.
  14427. (createKeepAliveMessage): New function. Overload.
  14428. * src/PeerMessageUtil.cc
  14429. (createChokeMessage): New function. Overload.
  14430. (createUnchokeMessage): New function. Overload.
  14431. (createInterestedMessage): New function. Overload.
  14432. (createNotInterestedMessage): New function. Overload.
  14433. (createHaveMessage): New function. Overload.
  14434. (createBitfieldMessage): New function. Overload.
  14435. (createRequestMessage): New function. Overload.
  14436. (createCancelMessage): New function. Overload.
  14437. (createPieceMessage): New function. Overload.
  14438. (createKeepAliveMessage): New function. Overload.
  14439. * src/SendMessageQueue.cc
  14440. (createRequestMessage): Use PeerMessageUtil.
  14441. (createCancelMessage): Use PeerMessageUtil.
  14442. (createPieceMessage): Use PeerMessageUtil.
  14443. (createHaveMessage): Use PeerMessageUtil.
  14444. (createChokeMessage): Use PeerMessageUtil.
  14445. (createUnchokeMessage): Use PeerMessageUtil.
  14446. (createInterestedMessage): Use PeerMessageUtil.
  14447. (createNotInterestedMessage): Use PeerMessageUtil.
  14448. (createBitfieldMessage): Use PeerMessageUtil.
  14449. (createKeepAliveMessage): Use PeerMessageUtil.
  14450. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14451. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14452. * src/PeerInteraction.h: New class.
  14453. * src/PeerInteraction.cc: New class.
  14454. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14455. Each peer message has its own class.
  14456. * src/PendingMessages.h: Removed.
  14457. * src/PendingMessages.cc: Removed. The sending process was moved to
  14458. each message class.
  14459. * src/RequestSlotMan.h: Removed.
  14460. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14461. SendMessageQueue.
  14462. * src/RequestMessage.h: New class.
  14463. * src/RequestMessage.cc: New class.
  14464. * src/CancelMessage.h: New class.
  14465. * src/CancelMessage.cc: New class.
  14466. * src/BitfieldMessage.h: New class.
  14467. * src/BitfieldMessage.cc: New class.
  14468. * src/ChokeMessage.h: New class.
  14469. * src/ChokeMessage.cc: New class.
  14470. * src/KeepAliveMessage.h: New class.
  14471. * src/KeepAliveMessage.cc: New class.
  14472. * src/PortMessage.h: New class.
  14473. * src/UnchokeMessage.h: New class.
  14474. * src/UnchokeMessage.cc: New class.
  14475. * src/PieceMessage.h: New class.
  14476. * src/PieceMessage.cc: New class.
  14477. * src/HaveMessage.h: New class.
  14478. * src/HaveMessage.cc: New class.
  14479. * src/BitfieldMessage.h: New class.
  14480. * src/BitfieldMessage.cc: New class.
  14481. * src/NotInterestedMessage.h: New class.
  14482. * src/NotInterestedMessage.cc: New class.
  14483. * src/InterestedMessage.h: New class.
  14484. * src/InterestedMessage.cc: New class.
  14485. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14486. (getSendMessageQueue): New function.
  14487. (setSendMessageQueue): New function.
  14488. * src/HandshakeMessage.cc: New class.
  14489. * src/PeerConnection.h (receiveMessage): Changed return value and
  14490. arguments.
  14491. (receiveHandshake): Changed return value and arguments.
  14492. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14493. here.
  14494. (receiveHandshake): Do not create handshake class here.
  14495. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14496. (piece): Removed.
  14497. (syncPiece): Removed.
  14498. (sendInterest): Removed.
  14499. (sendMessages): Removed.
  14500. (createRequestPendingMessage): Removed.
  14501. (checkPieceHash): Removed.
  14502. (erasePieceOnDisk): Removed.
  14503. (getNewPieceAndSendInterest): Removed.
  14504. (onGotNewPice): Removed.
  14505. (onGotWrongPiece): Removed.
  14506. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14507. Removed peerConnection, piece.
  14508. (~PeerInteractionCommand): Removed peerConnection.
  14509. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14510. (syncPiece): Moved to SendMessageQueue.
  14511. (decideChoking): Removed PendingMessage.
  14512. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14513. The action after receiving peer message was moved to each message
  14514. class.
  14515. (onGotNewPice): Moved to SendMessageQueue.
  14516. (onGotWrongPiece): Moved to SendMessageQueue.
  14517. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14518. (sendInterest): Moved to SendMessageQueue.
  14519. (createRequestPendingMessage): Removed.
  14520. (sendMessages): Moved to SendMessageQueue.
  14521. (onAbort): Use SendMessageQueue::abortPiece()
  14522. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14523. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14524. (checkPieceHash): Moved to SendMessageQueue.
  14525. (erasePieceOnDisk): Moved to SendMessageQueue.
  14526. * src/PeerMessageUtil.h
  14527. (createBitfieldMessage): Removed.
  14528. (createHaveMessage): Changed return value and arguments.
  14529. (createBitfieldMessage): Changed return value and arguments.
  14530. (createRequestCancelMessage): Removed.
  14531. (createPieceMessage): Changed return value and arguments.
  14532. (getShortIntParam): New function.
  14533. (checkIndex): Changed arguments.
  14534. (checkBegin): Changed arguments.
  14535. (checkLength): Changed arguments.
  14536. (checkPieceOffset): Removed.
  14537. (checkRange): New function.
  14538. (checkBitfield): Changed arguments.
  14539. (createPeerMessage): Removed.
  14540. (checkIntegrity): Removed.
  14541. (createHandshakeMessage): Changed arguments.
  14542. (createChokeMessage): New function.
  14543. (createUnchokeMessage): New function.
  14544. (createInterestedMessage): New function.
  14545. (createNotInterestedMessage): New function.
  14546. (createRequestMessage): New function.
  14547. (createCancelMessage): New function.
  14548. (createPortMessage): New function.
  14549. * src/PeerMessageUtil.cc
  14550. (createBitfieldMessage): Removed.
  14551. (createHaveMessage): Changed return value and arguments.
  14552. (createBitfieldMessage): Changed return value and arguments.
  14553. (createRequestCancelMessage): Removed.
  14554. (createPieceMessage): Changed return value and arguments.
  14555. (getShortIntParam): New function.
  14556. (checkIndex): Changed arguments.
  14557. (checkBegin): Changed arguments.
  14558. (checkLength): Changed arguments.
  14559. (checkPieceOffset): Removed.
  14560. (checkRange): New function.
  14561. (checkBitfield): Changed arguments.
  14562. (createPeerMessage): Removed.
  14563. (checkIntegrity): Removed.
  14564. (createHandshakeMessage): Changed arguments.
  14565. (createChokeMessage): New function.
  14566. (createUnchokeMessage): New function.
  14567. (createInterestedMessage): New function.
  14568. (createNotInterestedMessage): New function.
  14569. (createRequestMessage): New function.
  14570. (createCancelMessage): New function.
  14571. (createPortMessage): New function.
  14572. * src/PeerMessage.h
  14573. (id): Removed.
  14574. (index): Removed.
  14575. (begin): Removed.
  14576. (length): Removed.
  14577. (bitfield): Removed.
  14578. (bitfieldLength): Removed.
  14579. (block): Removed.
  14580. (blockLength): Removed.
  14581. (inProgress): New variable.
  14582. (cuid): New variable.
  14583. (peer): New variable.
  14584. (sendMessageQueue): New variable.
  14585. (logger): New variable.
  14586. (setBitfield): Removed.
  14587. (getBitfield): Removed.
  14588. (setBlock): Removed.
  14589. (getBlock): Removed.
  14590. (getBitfieldLength): Removed.
  14591. (getBlockLength): Removed.
  14592. (isInProgress): New function.
  14593. (toString): Made pure virtual.
  14594. (check): New function.
  14595. (send): New function.
  14596. (receivedAction): New function.
  14597. (getId): Made pure virtual.
  14598. (setId): Removed.
  14599. (getIndex): Removed.
  14600. (setIndex): Removed.
  14601. (getBegin): Removed.
  14602. (setBegin): Removed.
  14603. (getLength): Removed.
  14604. (setLength): Removed.
  14605. (getCuid): New function.
  14606. (setCuid): New function.
  14607. (getPeer): New function.
  14608. (setPeer): New function.
  14609. (getSendMessageQueue): New function.
  14610. (setSendMessageQueue): New function.
  14611. (ID): Removed.
  14612. * src/PeerMessage.cc
  14613. (setBitfield): Removed.
  14614. (setBlock): Removed.
  14615. (toString): Removed.
  14616. * src/TorrentMan.h
  14617. (getPieceLength): New function.
  14618. (getPieceLength): New function.
  14619. * src/SendMessageQueue.h
  14620. (REQUEST_TIME_OUT): New definition.
  14621. (RequestSlots): New definition.
  14622. (MessageQueue): New definition.
  14623. (requestSlotMan): Removed.
  14624. (pendingMessages): Removed.
  14625. (requestSlots): New variable.
  14626. (messageQueue): New variable.
  14627. (torrentMan): New variable.
  14628. (peerConnection): New variable.
  14629. (peer): New variable.
  14630. (piece): New variable.
  14631. (getNewPieceAndSendInterest): New function.
  14632. (createPeerMessage): New function.
  14633. (createHandshakeMessage): New function.
  14634. (send): Made private.
  14635. (setPeerMessageCommonProperty): New function.
  14636. (deleteAllRequestSlot): New function.
  14637. (deleteRequestMessageInQueue): New function.
  14638. (cancelAllRequest): Made private.
  14639. (cancelAllRequest): Made private.
  14640. (countRequestSlot): Made private.
  14641. (addPendingMessage): Removed.
  14642. (deletePendingPieceMessage): Removed.
  14643. (deletePendingRequestMessage): Removed.
  14644. (addMessage): New function.
  14645. (deletePieceMessageInQueue): New function.
  14646. (deleteTimeoutRequestSlot): Changed argument.
  14647. (deleteCompletedRequestSlot): Changed argument.
  14648. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14649. (getCorrespondingRequestSlot): New function.
  14650. (countPendingMessage): Removed.
  14651. (countMessageInQueue): New function.
  14652. (getTorrentMan): New function.
  14653. (getPeerConnection): New function.
  14654. (hasDownloadPiece): New function.
  14655. (getDownloadPiece): New function.
  14656. (setDownloadPiece): New function.
  14657. (syncPiece): New function.
  14658. (sendMessages): New function.
  14659. (sendNow): New function.
  14660. (trySendNow): New function.
  14661. (abortPiece): New function.
  14662. (sendHandshake): New function.
  14663. (receiveMessage): New function.
  14664. (receiveHandshake): New function.
  14665. (createRequestMessage): New function.
  14666. (createCancelMessage): New function.
  14667. (createPieceMessage): New function.
  14668. (createHaveMessage): New function.
  14669. (createChokeMessage): New function.
  14670. (createUnchokeMessage): New function.
  14671. (createInterestedMessage): New function.
  14672. (createNotInterestedMessage): New function.
  14673. (createBitfieldMessage): New function.
  14674. (createKeepAliveMessage): New function.
  14675. * src/SendMessageQueue.cc
  14676. (SendMessageQueue): Removed requestSlotMan.
  14677. Instantiated peerConnection here.
  14678. (~SendMessageQueue): Removed requestSlotMan.
  14679. Added deletion of peerConnection and the contents of messageQueue.
  14680. (send): Updated according to the change of messageQueue.
  14681. (addPendingMessage): Renamed to addMessage.
  14682. (addMessage): New function.
  14683. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14684. (deletePieceMessageInQueue): New function.
  14685. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14686. (deleteRequestMessageInQueue): New function.
  14687. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14688. here.
  14689. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14690. (...) was moved here.
  14691. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14692. moved here.
  14693. (deleteCompletedRequestSlot):
  14694. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14695. (getCorrespondingRequestSlot):
  14696. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14697. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14698. (countPendingMessage): Renamed to countMessageInQueue.
  14699. (countMessageInQueue): New function.
  14700. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14701. (receiveHandshake): New function.
  14702. (createHandshakeMessage): New function.
  14703. (receiveMessage): New function.
  14704. (createPeerMessage): New function.
  14705. (syncPiece): New function.
  14706. (getNewPieceAndSendInterest): New function.
  14707. (sendMessages): New function.
  14708. (sendNow): New function.
  14709. (trySendNow): New function.
  14710. (sendHandshake): New function.
  14711. (abortPiece): New function.
  14712. (getDownloadPiece): New function.
  14713. (getPeerMessageCommonProperty): New function.
  14714. (createRequestMessage): New function.
  14715. (createCancelMessage): New function.
  14716. (createPieceMessage): New function.
  14717. (createHaveMessage): New function.
  14718. (createChokeMessage): New function.
  14719. (createUnchokeMessage): New function.
  14720. (createInterestedMessage): New function.
  14721. (createNotInterestedMessage): New function.
  14722. (createBitfieldMessage): New function.
  14723. (createKeepAliveMessage): New function.
  14724. To add simple Content-Disposition support:
  14725. * src/HttpResponseCommand.h (determinFilename): New function.
  14726. * src/HttpResponseCommand.cc (executeInternal):
  14727. Use determinFilename(headers) instead of req->getFile() when comparing
  14728. filename.
  14729. (determinFilename): New function.
  14730. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14731. req->getFile().
  14732. (handleOtherEncoding): Use determinFilename(headers) instead of
  14733. req->getFile().
  14734. * src/Util.h (getContentDispositionFilename): New function.
  14735. * src/Util.cc (getContentDispositionFilename): New function.
  14736. * src/LogFactory.h (release): New function.
  14737. * src/LogFactory.cc (release): New function.
  14738. To fix a bug that causes out-of-bound exception when HTTP status
  14739. line is wrong:
  14740. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14741. size.
  14742. * src/common.h (Deleter): New class.
  14743. * src/SegmentMan.cc
  14744. (~SegmentMan): Added deletion of splitter and diskWriter.
  14745. * src/DownloadEngine.h
  14746. (Commands): Use deque.
  14747. (clearQueue): New function.
  14748. * src/DownloadEngine.cc
  14749. (~DownloadEngine): Added deletion of segmentMan.
  14750. (cleanQueue): New function.
  14751. * src/TorrentDownloadEngine.h
  14752. (TorrentDownloadEngine): The implementation was moved to
  14753. TorrentDownloadEngine.cc.
  14754. (~TorrentDownloadEngine): The implementation was moved to
  14755. TorrentDownloadEngine.cc.
  14756. * src/TorrentDownloadEngine.cc
  14757. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14758. * src/main.cc
  14759. (clearRequest): Removed.
  14760. (handler): Added deletion of e.
  14761. (torrentHandler): Added deletion of te.
  14762. (main): Do not share splitter.
  14763. Use Deleter instead of clearRequest.
  14764. Deletion of classes were updated.
  14765. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14766. * src/main.cc (main): Fixed typo.
  14767. * src/message.h: Fixed typo.
  14768. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14769. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14770. To add --select-file command-line option:
  14771. * src/Util.cc
  14772. (unfoldRange): New function.
  14773. (getNum): New function.
  14774. (unfoldSubRange): New function
  14775. * src/main.cc
  14776. (showUsage): Added help message.
  14777. (main): Added --select-file command-line option. Updated the layout of
  14778. file listing.
  14779. * src/common.h
  14780. (Integers): New definition.
  14781. * src/SocketCore.cc
  14782. (writeData): Removed timeout argument.
  14783. (readData): Removed timeout argument.
  14784. (peekData): Removed timeout argument.
  14785. * src/Socket.cc
  14786. (writeData): Removed timeout argument.
  14787. (readData): Removed timeout argument.
  14788. (peekData): Removed timeout argument.
  14789. * Release 0.4.1
  14790. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14791. To deploy upload rate based choking algorithm:
  14792. * src/PeerInteractionCommand.cc
  14793. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14794. peer currently used.
  14795. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14796. download completes. Simplified.
  14797. (receiveMessage): Updated.
  14798. * src/TorrentMan.h
  14799. (activePeers): New variable.
  14800. (addActivePeer): New function.
  14801. (getActivePeers): New function.
  14802. (deleteActivePeer): New function.
  14803. * src/TorrentMan.cc
  14804. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14805. * src/PeerAbstractCommand.cc
  14806. (onAbort): Use peer->resetStatus().
  14807. * src/main.cc
  14808. (PeerChokeCommand.h): Included.
  14809. (main): Added the instance of ChokingCommand to the command queue.
  14810. * src/Peer.h
  14811. (amChoking): Renamed from amChocking
  14812. (chokingRequired): New variable.
  14813. (optUnchoking): New variable.
  14814. (deltaUpload): New variable.
  14815. (deltaDownload): New variable.
  14816. (addDeltaUpload): New function.
  14817. (resetDeltaUpload): New function.
  14818. (addDeltaDownload): New function.
  14819. (resetDeltaDownload): New function.
  14820. (addPeerUpload): Added a call to addDeltaUpload.
  14821. (addPeerDownload): Added a call to addDeltaDownload.
  14822. * src/Peer.cc
  14823. (shouldBeChoking): Renamed from shouldChoke.
  14824. (resetStatus): New function.
  14825. * src/PeerChokeCommand.h: New class.
  14826. * src/PeerChokeCommand.cc: New class.
  14827. To add lazy upload speed limiter:
  14828. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14829. statistics calculation to TorrentDownloadEngine.
  14830. * src/TorrentConsoleDownloadEngine.cc
  14831. (sendStatistics): Renamed from printStatistics.
  14832. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14833. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14834. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14835. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14836. calculation.
  14837. (sendStatistics): New function as pure virtual function.
  14838. (getUploadSpeed): New function.
  14839. * src/TorrentDownloadEngine.cc
  14840. (initStatistics): New function.
  14841. (calculateSpeed): New function.
  14842. (calculateStatistics): New function.
  14843. * src/SendMessageQueue.h
  14844. (uploadLength): New variable.
  14845. (send): Added an argument.
  14846. (setUploadLimit): New function.
  14847. (getUploadLimit): New function.
  14848. * src/SendMessageQueue.cc
  14849. (send): Added upload speed limiter.
  14850. * src/prefs.h
  14851. (PREF_UPLOAD_LIMIT): New definition.
  14852. * src/PeerInteractionCommand.cc
  14853. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14854. * src/main.cc
  14855. (main): Added --upload-limit option
  14856. For bug fixes:
  14857. * src/main.cc
  14858. (showUsage): Corrected --listen-port help
  14859. Other changes:
  14860. * src/TorrentMan.cc
  14861. (getPeer): Return nullPeer if connection is grather than
  14862. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14863. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14864. To add some useful information to the exception message:
  14865. * src/SocketCore.cc : Updated messages.
  14866. * src/SegmentMan.cc :
  14867. * src/TorrentMan.cc : Updated messages.
  14868. * src/MultiDiskWriter.cc : Updated messages.
  14869. * src/Util.cc : Updated messages.
  14870. * src/AbstractDiskWriter.cc : Updated messages.
  14871. * src/PreAllocationDiskWriter.cc : Updated messages.
  14872. * src/message.cc : Added new messages. Updated some messages.
  14873. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14874. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14875. Updated threshold from 30 to 15.
  14876. * src/AbstractDiskWriter.h (filename): New variable.
  14877. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14878. (createFile): Assigned filename.
  14879. * src/main.cc: Updated the help message for http-auth-scheme.
  14880. * Release 0.4.0
  14881. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14882. To add TrackerUpdateCommand with which replaces
  14883. CompactTrackerResponseProcessor:
  14884. * src/TrackerWatcherCommand.h (req): Removed.
  14885. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14886. if the number of peer connections are less than 30.
  14887. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14888. * src/SegmentMan.h (diskWriter): New function.
  14889. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14890. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14891. (main): Use TrackerUpdateCommand.
  14892. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14893. (req): New variable.
  14894. (setTrackerResponseProcessor): Removed.
  14895. (getTrackerResponseProcessor): Removed.
  14896. (processTrackerResponse): Removed.
  14897. * src/DownloadEngine.h (diskWriter): Removed.
  14898. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14899. to torrentMan->processTrackerResponse().
  14900. To add Util::expandBuffer:
  14901. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14902. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14903. * src/Util.h (expandBuffer): New function.
  14904. To fix the bug that causes segmentation fault when "-l ." is specified
  14905. in command-line option:
  14906. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14907. (openFile): New function.
  14908. (closeFile): New function.
  14909. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14910. (~SimpleLogger): Call closeFile();
  14911. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14912. * src/main.cc (main): Added a check to see logger is configured
  14913. properly.
  14914. To enable HTTP authentication without specifying "--http-auth-scheme"
  14915. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14916. * src/HttpConnection.cc (createRequest): Send Authorization header
  14917. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14918. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14919. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14920. * src/Peer.cc (shouldChoke): Updated algorithm.
  14921. * src/message.h (EX_AUTH_FAILED): New definition.
  14922. (EX_FILE_OPEN): New definition.
  14923. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14924. if status == 401.
  14925. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14926. if req->isTorrent == true.
  14927. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14928. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14929. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14930. (createFile): Updated message.
  14931. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14932. To add a readout of estimated remaining time to normal HTTP/FTP
  14933. downloads:
  14934. * src/ConsoleDownloadEngine.h (startup): New variable.
  14935. (startupLength): New variable.
  14936. (isStartupLengthSet): New variable.
  14937. (avgSpeed): New variable.
  14938. (eta): New variable.
  14939. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14940. estimated remaining time.
  14941. (initStatistics): Initialized newly added variables.
  14942. (calculateStatistics): Calculate average speed and estimated remaining
  14943. time.
  14944. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14945. * src/TrackerDownloadCommand.h: Removed.
  14946. * src/TrackerDownloadCommand.cc: Removed.
  14947. * src/TrackerInitCommand.h: Removed.
  14948. * src/TrackerInitCommand.cc: Removed.
  14949. * src/TrackerUpdateCommand.h: Removed.
  14950. * src/TrackerUpdateCommand.cc: Removed.
  14951. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14952. url written in TrackerInitCommand was moved here. Do not create
  14953. tracker request command if torrentMan->trackers != 0.
  14954. * src/CompactTrackerResponseProcessor.h: New class.
  14955. * src/CompactTrackerResponseProcessor.cc: New class.
  14956. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14957. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14958. Decoupled TorrentDownloadEngine from this.
  14959. * src/SegmentMan.h (init): New function.
  14960. * src/SegmentMan.cc (init): New function.
  14961. * src/TorrentMan.h (responseProcessor): New variable.
  14962. (trackers): New variable.
  14963. (setTrackerResponseProcessor): New function.
  14964. (getTrackerResponseProcessor): New function.
  14965. (processTrackerResponse): New function.
  14966. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14967. (processTrackerResponse): New function.
  14968. * src/main.cc (main): Use ByteArrayDiskWriter and
  14969. CompactTrackerResponseProcessor.
  14970. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14971. processTrackerResponse().
  14972. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14973. readout.
  14974. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14975. which indicates download has completed.
  14976. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14977. (closeFile): fd >= 0, not fd > 0
  14978. * src/main.cc (main): Added short cut for show-files.
  14979. Added short cut for torrent-file.
  14980. Added new command-line option listen-port.
  14981. Updated i18n messages.
  14982. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14983. To add LogFactory which creates singleton logger:
  14984. * src/LogFactory.h: New class.
  14985. * src/LogFactory.cc: New class.
  14986. * src/Command.h (logger): New variable.
  14987. (Constructor): Use LogFactory.
  14988. * src/AbstractCommand.cc: Use Command::logger
  14989. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  14990. Use LogFactory.
  14991. * src/SegmentSplitter.h : Made logger protected.
  14992. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  14993. * src/SegmentMan.cc (Constructor): Use LogFactory.
  14994. * src/DownloadEngine.h : Made logger protected.
  14995. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  14996. * src/PeerInteractionCommand.cc : Use Command::logger.
  14997. * src/HttpResponseCommand.cc : Use Command::logger.
  14998. * src/SegmentMan.h : Made logger private.
  14999. * src/TorrentMan.h : Made logger private.
  15000. * src/TorrentMan.cc : Use LogFactory.
  15001. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15002. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15003. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15004. Use LogFactory.
  15005. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15006. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15007. Use LogFactory.
  15008. * src/DownloadCommand.cc : Use Command::logger.
  15009. * src/PeerAbstractCommand.cc : Use Command::logger.
  15010. * src/PeerListenCommand.cc : Use Command::logger.
  15011. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15012. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15013. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15014. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15015. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15016. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15017. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15018. Use LogFactory.
  15019. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15020. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15021. Use LogFactory.
  15022. * src/main.cc (main): Use LogFactory.
  15023. * src/DiskAdaptor.h (logger): New variable.
  15024. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15025. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15026. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15027. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15028. parameter to a tracker request.
  15029. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15030. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15031. * src/main.cc (setSignalHander): New function.
  15032. (main): Added a handler for SIGTERM.
  15033. (handler): Updated message.
  15034. (torrentHandler): Updated message.
  15035. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15036. * src/TorrentConsoleDownloadEngine.cc
  15037. (onPartialDownloadingCompletes): Renamed as
  15038. onSelectiveDownloadingCompletes.
  15039. (onSelectiveDownloadingCompletes): Updated message.
  15040. To add DiskAdaptor which abstract DiskWriter family:
  15041. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15042. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15043. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15044. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15045. MultiDiskAdaptor.h.
  15046. (readFileEntry): Changed its arguments.
  15047. (setup): setupDiskWriter is merged into this function.
  15048. (setupDiskWriter): Removed.
  15049. (setFileFilter): New function.
  15050. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15051. made in readFileEntry.
  15052. (getFilePath): Removed.
  15053. (getTempFilePath): Removed.
  15054. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15055. (fixFilename): Removed.
  15056. (copySingleFile): Removed.
  15057. (splitMultiFile): Removed.
  15058. (deleteTempFile): Removed.
  15059. (setFileEntriesToDownload): Removed.
  15060. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15061. (isSelectiveDownloadingMode): New function.
  15062. (setAllMultiFileRequestedState): Removed.
  15063. (finishPartialDownloadingMode): Renamed as
  15064. finishSelectiveDownloadingMode.
  15065. (finishSelectiveDownloadingMode): New function.
  15066. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15067. (getSelectedTotalLength): New function.
  15068. (onDownloadComplete): Use diskAdaptor.
  15069. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15070. (Range): Removed.
  15071. (setMultiFileEntries): Renamed as setFileEntries.
  15072. (setFileEntries): New function.
  15073. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15074. (pieceLength): New variable.
  15075. * src/main.cc (printDownloadCompeleteMessage): New function.
  15076. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15077. (main): Renamed torrent-show-files to show-files.
  15078. Rewritten file contents listing.
  15079. * src/TorrentMan.h (FileEntry): Removed.
  15080. (multiFileTopDir): Removed.
  15081. (multiFileEntries): Removed.
  15082. (diskWriter): Removed.
  15083. (diskAdaptor): New variable.
  15084. * src/DefaultDiskWriter.h (totalLength): New variable.
  15085. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15086. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15087. diskWriter.
  15088. * src/TorrentConsoleDownloadEngine.h
  15089. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15090. (partialTotalLength): Renamed as selectedTotalLength.
  15091. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15092. openExistingFile, otherwise call initAndOpenFile.
  15093. (closeFile): fd > 0, not fd != 0.
  15094. * src/DirectDiskAdaptor.h: New class.
  15095. * src/DirectDiskAdaptor.cc: New class.
  15096. * src/MultiDiskAdaptor.h: New class.
  15097. * src/MultiDiskAdaptor.cc: New class.
  15098. * src/CopyDiskAdaptor.h: New class.
  15099. * src/CopyDiskAdaptor.cc: New class.
  15100. * src/DiskAdaptor.h: New class.
  15101. * src/DiskAdaptor.cc: New class.
  15102. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15103. (PREF_SHOW_FILES): New definition.
  15104. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15105. To add the ability to download multi torrent into respective files
  15106. directly:
  15107. * src/DiskWriter.h (openFile): New function.
  15108. (seek): Removed.
  15109. * src/MultiDiskWriter.h: New class.
  15110. * src/MultiDiskWriter.cc: New class.
  15111. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15112. protected.
  15113. (openFile): New function.
  15114. * src/AbstractDiskWriter.cc (openFile): New function.
  15115. * src/prefs.h (V_FALSE): New definition.
  15116. (PREF_DIRECT_FILE_MAPPING): New definition.
  15117. * src/TorrentMan.h (setupDiskWriter): New function.
  15118. (setAllMultiFileRequestedState): New function.
  15119. (onDownloadComplete): New function.
  15120. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15121. (setupDiskWriter): New function.
  15122. (getFilePath): Updated.
  15123. (getTempFilePath): Updated.
  15124. (getSegmentFilePath): Updated.
  15125. (fixFilename): Updated.
  15126. (deleteTempFile): Updated.
  15127. (setAllMultiFileRequestedState): New function.
  15128. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15129. (finishPartialDownloadingMode): Reset requested flags.
  15130. (onDownloadComplete): New function.
  15131. * src/main.cc: Added --direct-file-mapping option.
  15132. Use TorrentMan::setupDiskWriter().
  15133. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15134. onDownloadComplete().
  15135. To fix ETA bug:
  15136. * src/Util.h (difftvsec): New function.
  15137. * src/Util.cc (difftvsec): New function.
  15138. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15139. type of "elapsed" instead of long long int.
  15140. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15141. The updates of statistics takes place every 1 seconds.
  15142. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15143. (calculateSpeed): Changed its argument signature.
  15144. * src/PeerMessage.cc (toString): Fixed message.
  15145. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15146. To print ETA:
  15147. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15148. completion handling when dealing with
  15149. TorrentMan::isPartialDownloadingMode() == true.
  15150. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15151. New function.
  15152. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15153. (sessionDownloadLength): New variable.
  15154. (avgSpeed): New variable.
  15155. (eta): New variable.
  15156. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15157. new variables: eta, avgSpeed, startup.
  15158. (calculateSpeed): Calculate average speed and ETA.
  15159. (printStatistics): Added ETA.
  15160. * src/Util.h (secfmt): New function.
  15161. * src/Util.cc (secfmt): New function.
  15162. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15163. To detect "keep alive" flooding:
  15164. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15165. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15166. variable: keepAliveCount.
  15167. (detectMessageFlooding): Added "keep alive" flooding detection.
  15168. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15169. received.
  15170. To add the ability to download only specified files in multi-file
  15171. torrent:
  15172. * src/BitfieldMan.h (filterBitfield): New variable.
  15173. (filterEnabled): New variable.
  15174. (setFilterBit): New function.
  15175. (enableFilter): New function.
  15176. (disableFilter): New function.
  15177. (isFilterEnabled): New function.
  15178. (getFilteredTotalLength): New function.
  15179. (getCompletedLength): New function.
  15180. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15181. filterBitfield, filterEnabled.
  15182. (CopyConstructor): Added filterBitfield and filterEnabled.
  15183. (operator==): Added filterBitfield and filterEnabled.
  15184. (Destructor): Added filterBitfield.
  15185. (getMissingIndex): Use filterBitfield.
  15186. (getMissingUnusedIndex): Use filterBitfield.
  15187. (getFirstMissingUnusedIndex): Use filterBitfield.
  15188. (getFirstMissingUnusedIndex): Use filterBitfield.
  15189. (getAllMissingIndexes): Use filterBitfield.
  15190. (countMissingBlock): Use filterBitfield.
  15191. (countBlock): Use filterBitfield.
  15192. (setBitInternal): Added new argument on.
  15193. (setUseBit): Use setBitInternal.
  15194. (unsetUseBit): Use setBitInternal.
  15195. (setBit): Use setBitInternal.
  15196. (unsetBit): Use setBitInternal.
  15197. (isAllBitSet): Use filterBitfield.
  15198. (setFilterBit): New function.
  15199. (addFilter): New function.
  15200. (enableFilter): New function.
  15201. (disableFilter): New function.
  15202. (clearFilter): New function.
  15203. (isFilterEnabled): New function.
  15204. (getFilteredTotalLength): New function.
  15205. (getCompletedLength): New function.
  15206. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15207. Initalized newly added variables.
  15208. [FileEntry](offset): New variable.
  15209. [FileEntry](extracted): New variable.
  15210. [FileEntry](requested): New variable.
  15211. (readFileEntry): New function.
  15212. (option): New variable.
  15213. (splitMultiFile): Removed const qualifier.
  15214. (fixFilename): Removed const qualifier.
  15215. (readFileEntryFromMetaInfoFile): New function.
  15216. (finishPartialDownloadingMode): New function.
  15217. (isPartialDownloadingMode): New function.
  15218. (setFileEntriesToDownload): New function.
  15219. (getCompletedLength): New function.
  15220. (getPartialTotalLength): New function.
  15221. * src/TorrentMan.cc (readFileEntry): New function.
  15222. (setup): Use readFileEntry. If no-preallocation option is specified,
  15223. use DefaultDiskWriter.
  15224. (readFileEntryFromMetaInfoFile): New function.
  15225. (fixFilename): Removed const qualifier.
  15226. (splitMultiFile): Removed const qualifier.
  15227. (setFileEntriesToDownload): New function.
  15228. (isPartialDownloadingMode): New function.
  15229. (finishPartialDownloadingMode): New function.
  15230. (getCompletedLength): New function.
  15231. (getPartialTotalLength): New function.
  15232. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15233. New variable.
  15234. (partialTotalLength): New variable.
  15235. (downloadLength): New variable.
  15236. (totalLength): New variable.
  15237. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15238. Added log.
  15239. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15240. partialTotalLength, downloadLength, totalLength.
  15241. (calculate): Calculate downloadLength and totalLength.
  15242. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15243. * src/main.cc (addCommand): Changed argument signature.
  15244. (main): Added new variable: args. Added new option "torrent-show-files"
  15245. "no-preallocation". Usage is not updated yet.
  15246. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15247. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15248. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15249. Attempt to add the ability to listing file entries in a .torrent file.
  15250. This feature is not yet complete.
  15251. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15252. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15253. (getName): New function.
  15254. * src/TorrentMan.h (getMultiFileEntries): New function.
  15255. (getName): New function.
  15256. * src/main.cc (main): Use above 2 funtion.
  15257. * Release 0.3.2
  15258. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15259. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15260. (detectMessageFlooding): Updated threshold value.
  15261. (checkLongTimePeerChoking): Updated timeout value.
  15262. (getNewPieceAndSendInterest): Added debug log.
  15263. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15264. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15265. (getPeer): Updated.
  15266. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15267. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15268. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15269. is localhost.
  15270. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15271. * src/PendingMessage.cc (processMessage): Not to send piece message
  15272. if peer is not interested in the pieces localhost has.
  15273. * src/Peer.cc (shouldChoke): Updated.
  15274. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15275. * src/Util.cc (isPowerOf): New function.
  15276. * src/Util.h (isPowerOf): New function.
  15277. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15278. whether or not it is power of 2.
  15279. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15280. Added new class SendMessageQueue that includes PendingMessages and
  15281. RequestSlotMan.
  15282. * src/SendMessageQueue.h: New class.
  15283. * src/SendMessageQueue.cc: New class.
  15284. * src/PendingMessage.h: Added new member variable blockIndex and its
  15285. accessors.
  15286. (createRequestMessage): Updated.
  15287. * src/PendingMessage.cc (createRequestMessage): Updated.
  15288. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15289. SendMessageQueue.
  15290. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15291. (receiveMessage): Updated with SendMessageQueue.
  15292. (deletePendingPieceMessage): Removed.
  15293. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15294. (sendInterest): Updated with SendMessageQueue.
  15295. (createRequestPendingMessage): Updated with SendMessageQueue.
  15296. (sendMessages): Updated with SendMessageQueue.
  15297. (onAbort): Updated with SendMessageQueue.
  15298. (keepAlive): Updated with SendMessageQueue.
  15299. (beforeSocketCheck): Updated SendMessageQueue.
  15300. * src/PeerInteractionCommand (sendMessages): Shuffle
  15301. missingBLockIndexes before using it.
  15302. Added its own timeout for peer connection.
  15303. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15304. setter.
  15305. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15306. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15307. Added setTimeout() call.
  15308. (executeInternal): Added setTimeout() call.
  15309. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15310. Added timeout.
  15311. (isTimeoutDetected): Updated.
  15312. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15313. option.
  15314. Added *simple* message flooding checker.
  15315. * src/PeerInteractionCommand.cc (executeInternal):
  15316. Added detectMessageFlooding() call.
  15317. (detectMessageFlooding): New function.
  15318. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15319. (beforeSocketCheck): Added detectMessageFlooding() call.
  15320. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15321. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15322. Removed deletePendingPieceMessage(), getRequestSlot(),
  15323. deleteRequestSlot(), deleteAllRequestSlot().
  15324. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15325. Added checkLongTimePeerChoking() call.
  15326. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15327. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15328. if duplicate == false.
  15329. The parameter "uploaded" and "downloaded" in the tracker request are
  15330. the size since the client sent the "started" event to the tracker.
  15331. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15332. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15333. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15334. getSessionDownloadedSize(), getSessionUploadedSize().
  15335. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15336. getSessionUploadedSize() instead of getDownloadedSize(),
  15337. getUploadedSize().
  15338. * src/PendingMessage.cc (processMessage): Do not send request message
  15339. if the peer is choking the client.
  15340. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15341. less than interval.
  15342. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15343. * configure.in: Added gnutls support. Added several CPP macros.
  15344. * m4/openssl.m4: Added.
  15345. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15346. readData(), peekData(). Added gnutls support.
  15347. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15348. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15349. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15350. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15351. Instead, added a check for whether setup method has executed
  15352. successfully.
  15353. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15354. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15355. * src/Makefile.am: Updated.
  15356. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15357. using whether OpenSSL or gcrypt, depending on the result of configure
  15358. script.
  15359. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15360. messageDigest.h.
  15361. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15362. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15363. Fixed memory leak.
  15364. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15365. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15366. Removed instantiation of TrackerInitCommand. Instead,
  15367. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15368. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15369. ENABLE_SSL.
  15370. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15371. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15372. If a piece is already acquired by another command, delete the request
  15373. slots for the piece.
  15374. * src/TrackerUpdateCommand.cc (execute):
  15375. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15376. Added a check whether peer list is null.
  15377. Fixed the bug that causes sending completed event to the tracker
  15378. several times.
  15379. * src/TrackerInitCommand.cc (execute):
  15380. Fixed the bug that causes sending completed event to the tracker
  15381. several times.
  15382. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15383. by using messageDigest.h.
  15384. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15385. * PeerConnection.cc: Replaced log message "keep-alive" with
  15386. "keep alive".
  15387. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15388. localhost long time.
  15389. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15390. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15391. at most 100 failure entry from the list. If with duplicate = false,
  15392. MAX_PEER_LIST is not checked.
  15393. * PeerListenCommand.cc: Fixed the argument order of log message.
  15394. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15395. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15396. Added warn().
  15397. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15398. Implemented warn().
  15399. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15400. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15401. * Request.h: Added AFTER_COMPLETED event.
  15402. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15403. instead of downloaded size and progress(%) after download completes.
  15404. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15405. message to the peer if it is interested in what localhost has
  15406. downloaded.
  15407. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15408. destination instead of just renaming it.
  15409. * TorrentMan.cc: Added deleteTempFile().
  15410. * PeerAbstractCommand.cc: do not stop execution after download
  15411. completes. This makes localhost a seeder.
  15412. * Util.{h,cc}: Added fileCopy().
  15413. * PeerListenCommand.cc: do not stop execution after download completes.
  15414. This makes localhost a seeder.
  15415. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15416. Added TorrentMan::deleteTempFile() to torrentHandler.
  15417. Initialized the variable dir as ".".
  15418. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15419. Deleted renameSingleFile().
  15420. Added copySingleFile(), deleteTempFile().
  15421. * DownloadEngine.h: Added virtual function afterEachIteration().
  15422. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15423. in onEndOfRun() to afterEachIteration().
  15424. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15425. true.
  15426. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15427. In rangedFileCopy(), added try-catch block to properly close file
  15428. descriptors.
  15429. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15430. Added afterEachIteration(), isFilenameFixed().
  15431. * Peer.cc: Changed choking strategy.
  15432. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15433. * TrackerInitCommand.cc: Send completed event only once.
  15434. * DownloadEngine.cc: Added a call to afterEachIteration().
  15435. * TrackerUpdateCommand.cc: Do not stop execution after download
  15436. completes.
  15437. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15438. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15439. received from a tracker.
  15440. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15441. Decreased the number of failure peers to delete to 0(just comment out
  15442. the line).
  15443. * Release 0.3.1
  15444. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15445. * PeerInteractionCommand.cc: added a call to
  15446. TorrentMan::unadvertisePiece in Destructor.
  15447. * PeerInteractionCommand.cc: make have message sent immediately
  15448. if the size of pending message queue is zero.
  15449. * TorrentMan.cc: set the maximum size of peer list to 250.
  15450. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15451. to deque.
  15452. * Util.cc: fixed rangedFileCopy.
  15453. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15454. to Constructor. Also, moved digest cleanup to Destructor.
  15455. * MetaFileUtil.cc: fixed memory leak
  15456. * replaced std::vector with std::deque.
  15457. * AbstractCommand.cc: casted timeout value to long long int.
  15458. * ChunkedEncoding.cc: fixed memory leak.
  15459. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15460. * SleepCommand.cc: casted timeout value to long long int.
  15461. * Data.cc: fixed memory leak.
  15462. * Data.cc: fixed toLLInt().
  15463. * BitfieldMan.cc: fixed memory leak.
  15464. * TorrentMan.cc: initialized storeDir to ".".
  15465. * TorrentMan.cc: fixed memory leak.
  15466. * TorrentMan.cc: corrected file paths of splitted files.
  15467. * PeerAbstractCommand.cc: casted timeout to long long int.
  15468. * main.cc: added delete(req) and delete(te->diskWriter).
  15469. * RequestSlot.cc: casted timeout value to long long int.
  15470. * Request.cc: fixed memory leak.
  15471. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15472. have the piece.
  15473. * Peer.{h,cc}: added hasPiece(int index).
  15474. * main.cc: corrected addCommand.
  15475. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15476. * BitTorrent protocol support added.
  15477. * Release 0.3.0
  15478. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15479. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15480. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15481. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15482. decoding did not work properly.
  15483. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15484. * DownloadEngine.h: included sys/time.h
  15485. * DownloadEngine.cc: remove sys/time.h
  15486. * Makefile.am (SUBDIRS): Add intl.
  15487. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15488. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15489. * main.cc: correct help message for --http-auth-scheme.
  15490. * main.cc: changed e-mail address for bug reports.
  15491. * ja.po: added japanese translation.
  15492. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15493. * SimpleLogger.cc: flush log file instead of stdout.
  15494. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15495. * main.cc: Fixed command-line option: max-tries
  15496. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15497. does not equal to seg.sp.
  15498. * DownloadCommand.cc: If EOF is got from the server and the total size
  15499. of file is not zero, then throw DlRetryEx.
  15500. * main.cc: Set the minium value of min-segment-size to 1024.
  15501. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15502. fails because of a regression since 0.2.0 release.
  15503. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15504. * HttpConnection.cc:
  15505. * common.h: defined the user agent name as macro
  15506. * DownloadEngine.{h, cc}:
  15507. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15508. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15509. * main.cc: Download complete/abort message is now generated by main.
  15510. * Makefile.am (SUBDIRS): Add m4.
  15511. (ACLOCAL_AMFLAGS): New variable.
  15512. (EXTRA_DIST): New variable.
  15513. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15514. * gettext: added gettext functionality
  15515. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15516. * AbstractCommand.cc:
  15517. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15518. unregister its cuid from SegmentMan.
  15519. * DownloadEngine.cc: .aria2 file was written when a downloading
  15520. failed with errors.
  15521. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15522. Added "User-Agent" header to CONNECT proxy request.
  15523. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15524. properly.
  15525. * Logger.h:
  15526. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15527. * ChunkedEncoding.cc: Added #include directive for strings.h
  15528. * Release 0.2.1
  15529. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15530. * Util.{h,cc}: added startsWith().
  15531. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15532. Util::endsWith().
  15533. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15534. * common.h: added #include directive of limit.h.
  15535. * DownloadEngine.cc: added #include directive of sys/time.h and
  15536. algorithm.
  15537. * Exception.h: added #include directive of stdio.h.
  15538. * AbstractCommand.h: added #include directive of sys/time.h.
  15539. * DownloadCommand.h: added #include directive of sys/time.h.
  15540. * *.h: added #include directive of common.h to all base classes.
  15541. subclasses' one was removed.
  15542. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15543. does not define these macros.
  15544. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15545. * Release 0.2.0
  15546. * main.cc:
  15547. * HttpInitiateConnectionCommand.{h,cc}:
  15548. * prefs.h:
  15549. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15550. We can now use GET command in http proxy.
  15551. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15552. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15553. that splits slowest segment of SegmentMan::commands vector.
  15554. This is the default split algorithm of aria2.
  15555. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15556. that splits first segment of SegmentMan::commands vector.
  15557. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15558. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15559. * Segment.h:
  15560. * SegmentMan.cc: Added speed field to Segment.h
  15561. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15562. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15563. * message.h: Change file size related %d to %lld.
  15564. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15565. * FtpInitiateConnectionCommand.{h,cc}:
  15566. * FtpNegotiationCommand.{h,cc}:
  15567. * FtpDownloadCommand.{h,cc}:
  15568. * FtpConnection.{h,cc}: Added FTP support
  15569. * SimpleLogger.cc: Log message now includes time information.
  15570. * main.cc: The value of --http-auth-scheme option is chagned from
  15571. 'BASIC' to 'basic'
  15572. * main.cc: Added --timeout command-line option.
  15573. * main.cc: Added --min-segment-size command-line option.
  15574. * main.cc: Added --max-retries command-line option.
  15575. * prefs.h: option string constants are now defined in prefs.h
  15576. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15577. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15578. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15579. with version 0.1.0's one.
  15580. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15581. * configure.in: Added --enable-ssl option to configure script.
  15582. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15583. cannot permit absoluteURI as Request-URI.
  15584. * HttpConnection.cc: Added Referer support.
  15585. * main.cc: Added referer command-line option.
  15586. * main.cc: Added rety-wait command-line option.
  15587. * Exception.h: Fixed formating bug in Exception::setMsg()
  15588. * SocketCore.{h,cc}:
  15589. * Socket.{h, cc}:
  15590. * Request.cc:
  15591. * InitiateConnectionCommandFactory.cc:
  15592. * HttpRequestCommand.cc: Added HTTPS support.
  15593. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15594. for SocketCore.
  15595. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15596. size is wrong
  15597. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15598. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15599. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15600. * Release 0.1.0