ChangeLog 552 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490
  1. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added changeGlobalOption command. Currently,
  3. max-overall-download-limit and max-overall-upload-limit option are
  4. available.
  5. * src/RequestGroupMan.h
  6. * src/XmlRpcMethod.cc
  7. * src/XmlRpcMethod.h
  8. * src/XmlRpcMethodFactory.cc
  9. * src/XmlRpcMethodImpl.cc
  10. * src/XmlRpcMethodImpl.h
  11. * test/XmlRpcMethodTest.cc
  12. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  13. Added changeOption command. Currently, max-download-limit,
  14. max-upload-limit option are available in this command.
  15. * src/RequestGroup.h
  16. * src/XmlRpcMethod.cc
  17. * src/XmlRpcMethod.h
  18. * src/XmlRpcMethodFactory.cc
  19. * src/XmlRpcMethodImpl.cc
  20. * src/XmlRpcMethodImpl.h
  21. * test/XmlRpcMethodTest.cc
  22. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Added purgeDownloadResult command.
  24. * src/RequestGroupMan.cc
  25. * src/RequestGroupMan.h
  26. * src/XmlRpcMethodFactory.cc
  27. * src/XmlRpcMethodImpl.cc
  28. * src/XmlRpcMethodImpl.h
  29. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Refactored.
  31. * src/XmlRpcMethod.cc
  32. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  34. XmlRpcResponse.
  35. * src/HttpServerBodyCommand.cc
  36. * src/Makefile.am
  37. * src/XmlRpcMethod.cc
  38. * src/XmlRpcMethod.h
  39. * src/XmlRpcMethodImpl.cc
  40. * src/XmlRpcResponse.cc
  41. * src/XmlRpcResponse.h
  42. * test/XmlRpcMethodTest.cc
  43. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. In XML-RPC option struct, header and index-out option can take
  45. array as value.
  46. * src/XmlRpcMethod.cc
  47. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  48. Removed unused option member from PeerConnection.
  49. * src/InitiatorMSEHandshakeCommand.cc
  50. * src/PeerConnection.cc
  51. * src/PeerConnection.h
  52. * src/PeerInteractionCommand.cc
  53. * src/PeerReceiveHandshakeCommand.cc
  54. * src/ReceiverMSEHandshakeCommand.cc
  55. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Added "seeder" key to getPeers response.
  57. * src/XmlRpcMethodImpl.cc
  58. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Added addMetalink XML-RPC command.
  60. * src/XmlRpcMethodFactory.cc
  61. * src/XmlRpcMethodImpl.cc
  62. * src/XmlRpcMethodImpl.h
  63. * src/download_helper.cc
  64. * src/download_helper.h
  65. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Fixed the bug that POU peers are never choked in seeding.
  67. * src/BtSeederStateChoke.cc
  68. * src/BtSeederStateChoke.h
  69. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Added web-seeding URI handling in addTorrent command.
  71. * src/XmlRpcMethodImpl.cc
  72. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  73. Added "length" key to getFiles response.
  74. * src/XmlRpcMethodImpl.cc
  75. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Moved --no-netrc option from ftp option section to http/ftp option
  77. section.
  78. * doc/aria2c.1.txt
  79. * src/OptionHandlerFactory.cc
  80. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  81. Removed garbage "\" character before '
  82. * doc/aria2c.1.txt
  83. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  84. Removed garbage "\" character before http.
  85. * doc/aria2c.1.txt
  86. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Documented additional options that can be specified in -i list.
  88. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  89. and --xml-rpc-passwd. Removed --enable-http-server and
  90. --http-server-listen-port.
  91. * doc/aria2c.1.txt
  92. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  94. * src/DefaultPeerStorage.cc
  95. * src/DefaultPeerStorage.h
  96. * src/PeerStorage.h
  97. * src/XmlRpcMethodImpl.cc
  98. * test/MockPeerStorage.h
  99. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Put a call to Socket::isReadable() in try block.
  101. * src/HttpServerBodyCommand.cc
  102. * src/HttpServerCommand.cc
  103. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  105. exception , so it is now in try block.
  106. * src/HttpServerResponseCommand.cc
  107. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Added "amChoking" and "peerChoking" key in getPeers response.
  109. * src/XmlRpcMethodImpl.cc
  110. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  111. Added test case for zero-length filter.
  112. * test/BitfieldManTest.cc
  113. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  114. getFiles command now returns file data for finished/stopped
  115. downloads.
  116. * src/XmlRpcMethodImpl.cc
  117. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. DownloadResult now has the list of FileEntry. The download
  119. summary displays the path of first selected file and the number of
  120. remaining files for multi-file torrent.
  121. * src/DownloadResult.h
  122. * src/RequestGroup.cc
  123. * src/RequestGroupMan.cc
  124. * test/RequestGroupTest.cc
  125. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Fixed segmentation fault error when no file is selected in
  127. multi-file torrent.
  128. * src/BitfieldMan.cc
  129. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Escaped <,>,& character in XML-RPC response.
  131. * src/XmlRpcMethod.cc
  132. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Throw DlAbortEx instead of FatalException during parsing options
  134. because we don't want for aria2 to quit when bad option is passed
  135. via XML-RPC.
  136. * src/OptionHandlerException.cc
  137. * src/OptionHandlerException.h
  138. * src/OptionHandlerImpl.h
  139. * src/OptionParser.cc
  140. * src/OptionParser.h
  141. * src/PStringSegment.cc
  142. * src/ParameterizedStringParser.cc
  143. * src/download_helper.cc
  144. * test/ParameterizedStringParserTest.cc
  145. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Selecting files are now done in
  147. DefaultBtContext::setFileFileter().
  148. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  149. functions are removed because they are no longer used. Creating
  150. filter in BitfieldMan is done in new funtion
  151. PieceStorage::setupFileFilter()
  152. * src/BtContext.cc
  153. * src/BtContext.h
  154. * src/DefaultBtContext.cc
  155. * src/DefaultBtContext.h
  156. * src/DefaultPieceStorage.cc
  157. * src/DefaultPieceStorage.h
  158. * src/DiskAdaptor.cc
  159. * src/DiskAdaptor.h
  160. * src/PieceStorage.h
  161. * src/RequestGroup.cc
  162. * src/UnknownLengthPieceStorage.h
  163. * src/XmlRpcMethodImpl.cc
  164. * test/DefaultBtContextTest.cc
  165. * test/MockBtContext.h
  166. * test/MockPieceStorage.h
  167. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  168. Fixed compile error on Mac OS X
  169. * src/HttpServer.cc
  170. * src/XmlRpcMethod.h
  171. * src/XmlRpcMethodImpl.cc
  172. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Use std::binary_search instead of std::find
  174. * src/DefaultPieceStorage.cc
  175. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Removed unnecessary BDE() call; leave them to implicit conversion.
  177. * src/XmlRpcMethodImpl.cc
  178. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Return connections and gid in string
  180. * src/XmlRpcMethodImpl.cc
  181. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  182. Renamed addURI as addUri
  183. * src/XmlRpcMethodFactory.cc
  184. * src/XmlRpcMethodImpl.cc
  185. * src/XmlRpcMethodImpl.h
  186. * test/XmlRpcMethodTest.cc
  187. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  188. Renamed addTorrentFile as addTorrent
  189. * src/XmlRpcMethodFactory.cc
  190. * src/XmlRpcMethodImpl.cc
  191. * src/XmlRpcMethodImpl.h
  192. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. The information for files, URIs, peers are removed from the
  194. reponse of TellaActive, TellStatus command because they tend to be
  195. large. Instead they can be retrieved by the dedicated commands:
  196. getFiles, getUris and getPeers respectively.
  197. * src/XmlRpcMethodFactory.cc
  198. * src/XmlRpcMethodImpl.cc
  199. * src/XmlRpcMethodImpl.h
  200. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Removed --max-overall-upload-limit and
  202. --max-overall-download-limit option from listRequestOptions.
  203. * src/download_helper.cc
  204. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  205. Log incoming host in HttpListenCommand.
  206. * src/HttpListenCommand.cc
  207. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  209. --xml-rpc-passwd option.
  210. * src/HttpServer.cc
  211. * src/HttpServer.h
  212. * src/HttpServerCommand.cc
  213. * src/OptionHandlerFactory.cc
  214. * src/prefs.cc
  215. * src/prefs.h
  216. * src/usage_text.h
  217. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  219. processing 0 length request.
  220. * src/HttpServerBodyCommand.cc
  221. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  222. Removed --enable-http-server and --http-server-listen-port
  223. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  224. instead. The original feature for --enable-http-server that
  225. reports download progress in HTML was officially removed. Persist
  226. XML-RPC connection if client supports keep-alive.
  227. * src/DownloadEngineFactory.cc
  228. * src/HttpServerCommand.cc
  229. * src/HttpServerResponseCommand.cc
  230. * src/Makefile.am
  231. * src/Makefile.in
  232. * src/OptionHandlerFactory.cc
  233. * src/RequestGroupMan.cc
  234. * src/main.cc
  235. * src/option_processing.cc
  236. * src/prefs.cc
  237. * src/prefs.h
  238. * src/usage_text.h
  239. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  240. Added "uris" key to the response of tellStatus command. Added
  241. "connections" key to the response of tellStatus and tellActive
  242. command.
  243. * src/XmlRpcMethodImpl.cc
  244. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  246. Added TellStatusXmlRpcMethod. Remove command can now remove
  247. waiting RequestGroup.
  248. * src/RequestGroupMan.cc
  249. * src/RequestGroupMan.h
  250. * src/XmlRpcMethodFactory.cc
  251. * src/XmlRpcMethodImpl.cc
  252. * src/XmlRpcMethodImpl.h
  253. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Initialized _peerId
  255. * src/Peer.cc
  256. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Return fault structure for error. FailXmlRpcMethod is renamed as
  258. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  259. in non-torrent download. Return single param value.
  260. * src/XmlRpcMethod.cc
  261. * src/XmlRpcMethodFactory.cc
  262. * src/XmlRpcMethodImpl.cc
  263. * src/XmlRpcMethodImpl.h
  264. * test/XmlRpcMethodTest.cc
  265. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  266. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  267. command.
  268. * src/RequestGroup.cc
  269. * src/RequestGroup.h
  270. * src/RequestGroupMan.cc
  271. * src/XmlRpcMethodImpl.cc
  272. * test/RequestGroupTest.cc
  273. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  274. Added more options that can be specified in -i list and xml-rpc
  275. add* command.
  276. * src/download_helper.h
  277. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  278. The available options in -i list should be listed in
  279. listRequestOptions().
  280. * src/download_helper.cc
  281. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  283. command.
  284. * src/XmlRpcMethodImpl.cc
  285. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Now RequestGroup has its own copy of Option object. This will help
  287. to give custom option for each RequestGroup.
  288. addTorrentFile command now takes options.
  289. * src/AbstractCommand.cc
  290. * src/AbstractCommand.h
  291. * src/AbstractProxyRequestCommand.cc
  292. * src/ActivePeerConnectionCommand.cc
  293. * src/ActivePeerConnectionCommand.h
  294. * src/AdaptiveURISelector.cc
  295. * src/BtCheckIntegrityEntry.cc
  296. * src/BtDependency.cc
  297. * src/BtDependency.h
  298. * src/BtFileAllocationEntry.cc
  299. * src/BtPostDownloadHandler.cc
  300. * src/CheckIntegrityEntry.cc
  301. * src/DownloadCommand.cc
  302. * src/FtpDownloadCommand.cc
  303. * src/FtpFinishDownloadCommand.cc
  304. * src/FtpInitiateConnectionCommand.cc
  305. * src/FtpNegotiationCommand.cc
  306. * src/HttpInitiateConnectionCommand.cc
  307. * src/HttpRequestCommand.cc
  308. * src/HttpResponseCommand.cc
  309. * src/HttpSkipResponseCommand.cc
  310. * src/InitiateConnectionCommand.cc
  311. * src/InitiateConnectionCommandFactory.cc
  312. * src/InitiatorMSEHandshakeCommand.cc
  313. * src/InitiatorMSEHandshakeCommand.h
  314. * src/Metalink2RequestGroup.cc
  315. * src/Metalink2RequestGroup.h
  316. * src/MetalinkPostDownloadHandler.cc
  317. * src/MultiUrlRequestInfo.cc
  318. * src/MultiUrlRequestInfo.h
  319. * src/PeerAbstractCommand.cc
  320. * src/PeerInteractionCommand.cc
  321. * src/PeerInteractionCommand.h
  322. * src/PeerReceiveHandshakeCommand.cc
  323. * src/PeerReceiveHandshakeCommand.h
  324. * src/RequestGroup.cc
  325. * src/RequestGroup.h
  326. * src/TrackerWatcherCommand.cc
  327. * src/TrackerWatcherCommand.h
  328. * src/XmlRpcMethod.cc
  329. * src/XmlRpcMethod.h
  330. * src/XmlRpcMethodImpl.cc
  331. * src/download_helper.cc
  332. * src/download_helper.h
  333. * src/main.cc
  334. * test/BtDependencyTest.cc
  335. * test/BtPostDownloadHandlerTest.cc
  336. * test/DefaultBtMessageDispatcherTest.cc
  337. * test/DownloadHandlerFactoryTest.cc
  338. * test/DownloadHelperTest.cc
  339. * test/Metalink2RequestGroupTest.cc
  340. * test/MetalinkPostDownloadHandlerTest.cc
  341. * test/RequestGroupManTest.cc
  342. * test/RequestGroupTest.cc
  343. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Added tellActiveStatus xml-rpc command which reports download
  345. status of active downloads.
  346. * src/XmlRpcMethodFactory.cc
  347. * src/XmlRpcMethodImpl.cc
  348. * src/XmlRpcMethodImpl.h
  349. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  350. Added addTorrentFile xml-rpc command which receives uploaded
  351. torrent file and add download for it.
  352. * src/RequestGroupMan.cc
  353. * src/XmlRpcMethodFactory.cc
  354. * src/XmlRpcMethodImpl.cc
  355. * src/XmlRpcMethodImpl.h
  356. * src/download_helper.cc
  357. * src/download_helper.h
  358. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Added remove xml-rpc command which removes specified download.
  360. There is a known issue: the removed unfinished downloads are
  361. reported ERR when aria2 exits. They should be reported as INPR.
  362. * src/RequestGroupMan.cc
  363. * src/RequestGroupMan.h
  364. * src/XmlRpcMethodFactory.cc
  365. * src/XmlRpcMethodImpl.cc
  366. * src/XmlRpcMethodImpl.h
  367. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. If --enable-http-server is enabled, don't stop aria2 when all
  369. download finished and don't quit when no files to download at
  370. start up.
  371. * src/RequestGroupMan.cc
  372. * src/main.cc
  373. * src/option_processing.cc
  374. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Added missing AM_CONDITIONAL
  376. * configure.ac
  377. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Added xml-rpc functionality. Currently only addURI commad is
  379. supported. To enable xml-rpc, run aria2 with
  380. --enable-http-server. This option name is temporal and will be
  381. changed. The feature that reports download progress in html format
  382. is temporarily disabled.
  383. * src/HttpServer.cc
  384. * src/HttpServer.h
  385. * src/HttpServerBodyCommand.cc
  386. * src/HttpServerBodyCommand.h
  387. * src/HttpServerCommand.cc
  388. * src/HttpServerResponseCommand.cc
  389. * src/Makefile.am
  390. * src/OptionParser.cc
  391. * src/OptionParser.h
  392. * src/RequestGroupMan.cc
  393. * src/RequestGroupMan.h
  394. * src/XmlRpcMethod.cc
  395. * src/XmlRpcMethod.h
  396. * src/XmlRpcMethodFactory.cc
  397. * src/XmlRpcMethodFactory.h
  398. * src/XmlRpcMethodImpl.cc
  399. * src/XmlRpcMethodImpl.h
  400. * src/download_helper.cc
  401. * src/download_helper.h
  402. * test/Makefile.am
  403. * test/XmlRpcMethodTest.cc
  404. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Added xml-rpc request parser. The supported value types are:
  406. i4/int, string, double, struct, array, base64. Currently only
  407. libxml2 version is provided.
  408. * src/Xml2XmlRpcRequestProcessor.cc
  409. * src/Xml2XmlRpcRequestProcessor.h
  410. * src/XmlRpcElements.cc
  411. * src/XmlRpcElements.h
  412. * src/XmlRpcRequest.h
  413. * src/XmlRpcRequestParserController.cc
  414. * src/XmlRpcRequestParserController.h
  415. * src/XmlRpcRequestParserState.h
  416. * src/XmlRpcRequestParserStateImpl.cc
  417. * src/XmlRpcRequestParserStateImpl.h
  418. * src/XmlRpcRequestParserStateMachine.cc
  419. * src/XmlRpcRequestParserStateMachine.h
  420. * src/XmlRpcRequestProcessor.h
  421. * test/XmlRpcRequestParserControllerTest.cc
  422. * test/XmlRpcRequestProcessorTest.cc
  423. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. * Release 1.3.3
  425. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Fixed compile error since r1202.
  427. * src/ExpatMetalinkProcessor.cc
  428. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Updated Ukrainian, Russian and Simplified Chinese
  430. translations. Thanks to all translators.
  431. * po/ru.po
  432. * po/uk.po
  433. * po/zh_CN.po
  434. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  435. Pass reference of Option object instead of pointer.
  436. * src/download_helper.cc
  437. * src/download_helper.h
  438. * src/main.cc
  439. * test/DownloadHelperTest.cc
  440. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  442. from option directly. Instead, get them from RequestGroup.
  443. * src/ActivePeerConnectionCommand.cc
  444. * src/ActivePeerConnectionCommand.h
  445. * src/PeerReceiveHandshakeCommand.cc
  446. * src/RequestGroup.h
  447. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Removed unused uploadLimitCheck and uploadLimit from
  449. PeerAbstractCommand. Removed unused maxDownloadLimit from
  450. PeerInteractionCommand.
  451. * src/PeerAbstractCommand.cc
  452. * src/PeerAbstractCommand.h
  453. * src/PeerInteractionCommand.cc
  454. * src/PeerInteractionCommand.h
  455. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Fixed broken file renaming feature since r1202.
  457. * src/FtpNegotiationCommand.cc
  458. * src/FtpNegotiationCommand.h
  459. * src/HttpResponseCommand.cc
  460. * src/RequestGroup.cc
  461. * src/RequestGroup.h
  462. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  463. Removed unused debug log
  464. * src/SocketCore.cc
  465. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Generated configure and Makefile.in using autoconf 2.63 and
  467. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  468. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  469. * configure.ac
  470. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  471. Moved piece statistics stuff to new PieceStatMan class.
  472. Refactored PieceSelector interface.
  473. * src/DefaultPieceStorage.cc
  474. * src/DefaultPieceStorage.h
  475. * src/LongestSequencePieceSelector.cc
  476. * src/LongestSequencePieceSelector.h
  477. * src/Makefile.am
  478. * src/PieceSelector.h
  479. * src/PieceStatMan.cc
  480. * src/PieceStatMan.h
  481. * src/RarestPieceSelector.cc
  482. * src/RarestPieceSelector.h
  483. * src/RequestGroup.cc
  484. * test/DefaultPieceStorageTest.cc
  485. * test/InOrderPieceSelector.h
  486. * test/Makefile.am
  487. * test/PieceStatManTest.cc
  488. * test/RarestPieceSelectorTest.cc
  489. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  490. Added static member _protocolFamily to SocketCore. By default,
  491. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  492. address. Sometime SocketCore::bind() and
  493. SocketCore::establishConnection() use difference protocl family
  494. and latter cannot connect to former. To avoid this situation, we
  495. limit protocol family to AF_INET for unit tests.
  496. * src/SocketCore.cc
  497. * src/SocketCore.h
  498. * test/AllTest.cc
  499. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Avoid std::bad_alloc for negative bencode string length.
  501. * src/bencode.cc
  502. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Supported segmented downloading with chunked transfer encoding and
  504. content-length.
  505. * src/DownloadCommand.cc
  506. * src/HttpResponseCommand.cc
  507. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  508. Bump up version number to 1.3.3
  509. * configure.ac
  510. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  511. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  512. from 4096 to 65536 (for insanely large ftp login banners)
  513. * src/FtpConnection.h
  514. * test/FtpConnectionTest.cc
  515. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  516. In DefaultBtContext::getActualBasePath(), return first
  517. FileEntry::getPath() for single file torrent.
  518. * src/DefaultBtContext.cc
  519. * test/DefaultBtContextTest.cc
  520. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Removed directIOAllowed() from BinaryStream, DiskWriter,
  522. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  523. Removed _directIOAllowed member from DiskWriter.
  524. * src/AbstractDiskWriter.cc
  525. * src/AbstractDiskWriter.h
  526. * src/AbstractSingleDiskAdaptor.cc
  527. * src/AbstractSingleDiskAdaptor.h
  528. * src/BinaryStream.h
  529. * src/ByteArrayDiskWriter.h
  530. * src/DefaultPieceStorage.cc
  531. * src/DiskWriter.h
  532. * src/MultiDiskAdaptor.cc
  533. * src/MultiDiskAdaptor.h
  534. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Now the constructor of AbstractDiskWriter takes filename as an
  536. argument and filename argument is removed from openFile(),
  537. initAndOpenFile(), openExistingFile() interface. storeDir member
  538. and its accessor functions are removed from DiskAdaptor because it
  539. is not used anymore. size() member function of DefaultDiskWriter,
  540. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  541. opening file.
  542. * src/AbstractDiskWriter.cc
  543. * src/AbstractDiskWriter.h
  544. * src/AbstractSingleDiskAdaptor.cc
  545. * src/AbstractSingleDiskAdaptor.h
  546. * src/ByteArrayDiskWriter.cc
  547. * src/ByteArrayDiskWriter.h
  548. * src/ByteArrayDiskWriterFactory.cc
  549. * src/ByteArrayDiskWriterFactory.h
  550. * src/DefaultDiskWriter.cc
  551. * src/DefaultDiskWriter.h
  552. * src/DefaultDiskWriterFactory.cc
  553. * src/DefaultDiskWriterFactory.h
  554. * src/DefaultPieceStorage.cc
  555. * src/DirectDiskAdaptor.cc
  556. * src/DirectDiskAdaptor.h
  557. * src/DiskAdaptor.h
  558. * src/DiskWriter.h
  559. * src/DiskWriterFactory.h
  560. * src/MessageDigestHelper.cc
  561. * src/MultiDiskAdaptor.cc
  562. * src/RequestGroup.cc
  563. * src/UnknownLengthPieceStorage.cc
  564. * src/Util.cc
  565. * test/DefaultDiskWriterTest.cc
  566. * test/DirectDiskAdaptorTest.cc
  567. * test/FallocFileAllocationIteratorTest.cc
  568. * test/MessageDigestHelperTest.cc
  569. * test/MetalinkProcessorTest.cc
  570. * test/MultiDiskAdaptorTest.cc
  571. * test/MultiFileAllocationIteratorTest.cc
  572. * test/SingleFileAllocationIteratorTest.cc
  573. * test/UtilTest.cc
  574. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Fixed the bug that aria2 aborts when --select-file is used. This
  576. bug was introduced in r1199.
  577. * src/MultiDiskAdaptor.cc
  578. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Code cleanup
  580. * test/MockPieceStorage.cc
  581. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  582. Fixed the bug that read-only file with wrong file size will cause
  583. error because it cannot be truncated to the correct size. Now if
  584. file size is different than the expected one, re-open file in
  585. writable mode.
  586. * src/AbstractSingleDiskAdaptor.cc
  587. * src/AbstractSingleDiskAdaptor.h
  588. * src/BtCheckIntegrityEntry.cc
  589. * src/DiskAdaptor.h
  590. * src/MultiDiskAdaptor.h
  591. * src/RequestGroup.cc
  592. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Fixed the bug that with --check-integrity option aria2 reports
  594. downloaded file size is 0 even if some parts of file is correctly
  595. downloaded. This bug is reproducible for the download that a file
  596. includes last piece is missing. This bug doesn't reveal for
  597. single-torrent with file allocation on.
  598. * src/IteratableChecksumValidator.cc
  599. * test/IteratableChecksumValidatorTest.cc
  600. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Avoid circular reference between RequestGroup and AdaptiveURISelector
  602. * src/RequestGroupMan.cc
  603. * src/AdaptiveURISelector.cc
  604. * src/AdaptiveURISelector.h
  605. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. * Release 1.3.2
  607. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Updated README
  609. * README
  610. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Updated Ukrainian translations. Thanks to Alexander10.
  612. * po/uk.po
  613. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Code cleanup
  615. * src/MetalinkParserStateMachine.cc
  616. * src/MetalinkParserStateMachine.h
  617. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  619. and expat simultaneously, MetalinkProcessor is now not base class
  620. and it is directly implemented in XML2SAXMetalinkProcessor and
  621. ExpatMetalinkProcessor.
  622. * src/ExpatMetalinkProcessor.cc
  623. * src/ExpatMetalinkProcessor.h
  624. * src/Makefile.am
  625. * src/MetalinkHelper.cc
  626. * src/MetalinkProcessor.h
  627. * src/MetalinkProcessorFactory.cc: Removed.
  628. * src/MetalinkProcessorFactory.h: Removed
  629. * src/XML2SAXMetalinkProcessor.cc
  630. * src/XML2SAXMetalinkProcessor.h
  631. * test/MetalinkProcessorTest.cc
  632. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Bump up version number to 1.3.2
  634. * configure.ac
  635. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Added missing file.
  637. * test/Makefile.am
  638. * test/url-list-singleFileEndsWithSlash.torrent
  639. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  641. request.
  642. * src/AnnounceList.cc
  643. * src/AnnounceList.h
  644. * src/BDE.cc: Added
  645. * src/BDE.h: Added
  646. * src/DHTAbstractMessage.cc
  647. * src/DHTAbstractMessage.h
  648. * src/DHTAnnouncePeerMessage.cc
  649. * src/DHTAnnouncePeerMessage.h
  650. * src/DHTAnnouncePeerReplyMessage.cc
  651. * src/DHTAnnouncePeerReplyMessage.h
  652. * src/DHTFindNodeMessage.cc
  653. * src/DHTFindNodeMessage.h
  654. * src/DHTFindNodeReplyMessage.cc
  655. * src/DHTFindNodeReplyMessage.h
  656. * src/DHTGetPeersMessage.cc
  657. * src/DHTGetPeersMessage.h
  658. * src/DHTGetPeersReplyMessage.cc
  659. * src/DHTGetPeersReplyMessage.h
  660. * src/DHTMessageFactory.h
  661. * src/DHTMessageFactoryImpl.cc
  662. * src/DHTMessageFactoryImpl.h
  663. * src/DHTMessageReceiver.cc
  664. * src/DHTMessageTracker.cc
  665. * src/DHTMessageTracker.h
  666. * src/DHTPingMessage.cc
  667. * src/DHTPingMessage.h
  668. * src/DHTPingReplyMessage.cc
  669. * src/DHTPingReplyMessage.h
  670. * src/DHTQueryMessage.cc
  671. * src/DHTQueryMessage.h
  672. * src/DHTResponseMessage.cc
  673. * src/DHTResponseMessage.h
  674. * src/DefaultBtAnnounce.cc
  675. * src/DefaultBtContext.cc
  676. * src/DefaultBtContext.h
  677. * src/HandshakeExtensionMessage.cc
  678. * src/Makefile.am
  679. * src/PeerListProcessor.h
  680. * src/UTPexExtensionMessage.cc
  681. * src/bencode.cc
  682. * src/bencode.h
  683. * test/AnnounceListTest.cc
  684. * test/BDETest.cc: Added
  685. * test/BencodeTest.cc
  686. * test/DHTAnnouncePeerMessageTest.cc
  687. * test/DHTAnnouncePeerReplyMessageTest.cc
  688. * test/DHTFindNodeMessageTest.cc
  689. * test/DHTFindNodeReplyMessageTest.cc
  690. * test/DHTGetPeersMessageTest.cc
  691. * test/DHTGetPeersReplyMessageTest.cc
  692. * test/DHTMessageFactoryImplTest.cc
  693. * test/DHTMessageTrackerTest.cc
  694. * test/DHTPingMessageTest.cc
  695. * test/DHTPingReplyMessageTest.cc
  696. * test/Makefile.am
  697. * test/MockDHTMessageFactory.h
  698. * test/PeerListProcessorTest.cc
  699. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Use url-list (web-seeding) only for single-file torrent. This is
  701. basically the same behavior with Metalink file with torrent and
  702. URIs.
  703. * src/RequestGroup.cc
  704. * src/DefaultBtContext.cc
  705. * test/DefaultBtContextTest.cc
  706. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  707. Rewritten expr
  708. * src/array_fun.h
  709. * test/array_funTest.cc
  710. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  712. * src/DefaultBtMessageDispatcher.cc
  713. * src/a2algo.h
  714. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Removed ExtendedMessagingAware. Instead of using inheritance,
  716. added ExtensionMessageRegistry and it is passed to
  717. DefaultExtensionMessageFactory.
  718. * src/DefaultBtInteractive.cc
  719. * src/DefaultBtInteractive.h
  720. * src/DefaultExtensionMessageFactory.cc
  721. * src/DefaultExtensionMessageFactory.h
  722. * src/ExtendedMessagingAware.h: Removed.
  723. * src/ExtensionMessageFactory.h
  724. * src/ExtensionMessageRegistry.h: Added.
  725. * src/Makefile.am
  726. * src/PeerInteractionCommand.cc
  727. * test/DefaultExtensionMessageFactoryTest.cc
  728. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Fixed typo in log messages
  730. * src/MSEHandshake.cc
  731. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Fixed the bug that prevents torrent download from finishing. The
  733. bug doesn't reveal for all torrents. The torrents affected this
  734. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  735. of pieces.
  736. * src/bitfield.h
  737. * test/bitfieldTest.cc
  738. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  739. Code cleanup
  740. * src/PeerListProcessor.h
  741. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Removed RequestGroupAware
  743. * src/AbstractCommand.cc
  744. * src/AbstractCommand.h
  745. * src/ActivePeerConnectionCommand.cc
  746. * src/ActivePeerConnectionCommand.h
  747. * src/DHTGetPeersCommand.cc
  748. * src/DHTGetPeersCommand.h
  749. * src/InitiatorMSEHandshakeCommand.cc
  750. * src/InitiatorMSEHandshakeCommand.h
  751. * src/Makefile.am
  752. * src/PeerInitiateConnectionCommand.cc
  753. * src/PeerInitiateConnectionCommand.h
  754. * src/PeerInteractionCommand.cc
  755. * src/PeerInteractionCommand.h
  756. * src/RealtimeCommand.cc
  757. * src/RealtimeCommand.h
  758. * src/RequestGroupAware.cc: Removed
  759. * src/RequestGroupAware.h: Removed
  760. * src/SeedCheckCommand.cc
  761. * src/SeedCheckCommand.h
  762. * src/SleepCommand.cc
  763. * src/TrackerWatcherCommand.cc
  764. * src/TrackerWatcherCommand.h
  765. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Rewritten PeerListProcessor
  767. * src/PeerListProcessor.h
  768. * src/CompactPeerListProcessor.h: Removed
  769. * src/CompactPeerListProcessor.cc: Removed
  770. * src/DelegatingPeerListProcessor.cc: Removed.
  771. * src/DefaultBtAnnounce.cc
  772. * src/Makefile.am
  773. * src/UTPexExtensionMessage.cc
  774. * src/DefaultPeerListProcessor.h: Removed.
  775. * src/DefaultPeerListProcessor.cc: Removed.
  776. * src/DelegatingPeerListProcessor.h: Removed.
  777. * test/Makefile.am
  778. * test/PeerListProcessorTest.cc
  779. * test/DefaultPeerListProcessorTest.cc: Removed.
  780. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Rewritten RequestGroupMan::calculateStat()
  782. * src/RequestGroupMan.cc
  783. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Removed unnecessary virtual destructor for Request class.
  785. * src/Request.cc
  786. * src/Request.h
  787. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Avoid dynamic_pointer_cast.
  789. * src/DHTGetPeersCommand.cc
  790. * src/DHTGetPeersCommand.h
  791. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  792. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  793. BtEvent.
  794. * src/AbstractBtEventListener.h: Removed.
  795. * src/AbstractBtMessage.cc
  796. * src/AbstractBtMessage.h
  797. * src/BtAbortOutstandingRequestEvent.h
  798. * src/BtCancelSendingPieceEvent.h
  799. * src/BtChokedEvent.h: Removed.
  800. * src/BtChokingEvent.h
  801. * src/BtEvent.h: Removed
  802. * src/BtEventListener.h: Removed.
  803. * src/BtMessage.h
  804. * src/BtPieceMessage.cc
  805. * src/BtPieceMessage.h
  806. * src/BtRequestMessage.cc
  807. * src/BtRequestMessage.h
  808. * src/DefaultBtMessageDispatcher.cc
  809. * src/Makefile.am
  810. * src/a2functional.h
  811. * test/BtPieceMessageTest.cc
  812. * test/BtRequestMessageTest.cc
  813. * test/DefaultBtMessageDispatcherTest.cc
  814. * test/MockBtMessage.h
  815. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  816. Code cleanup
  817. * src/RequestGroupMan.cc
  818. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  819. Code cleanup
  820. * src/DownloadCommand.cc
  821. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Fixed segmentation fault when GZipDecoder::decode() returns 0
  823. byte.
  824. * src/DownloadCommand.cc
  825. * src/bitfield.h
  826. * test/bitfieldTest.cc
  827. Fixed the bug that causes infinite loop if broken web server
  828. returns chunked response without last "0" chunk-size marker and
  829. closes connection.
  830. * src/DownloadCommand.cc
  831. Instantiate properly configured HttpDownloadCommand for
  832. non-resumable downlaods.
  833. * src/HttpResponseCommand.cc
  834. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  835. Rewritten array operation functions.
  836. * src/BitfieldMan.cc
  837. * src/array_fun.h
  838. * test/array_funTest.cc
  839. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  840. Removed unused variable 'query'
  841. * src/Request.cc
  842. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  844. accidentally set to false in r1162.
  845. * configure.ac
  846. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Code cleanup
  848. * src/BNode.cc
  849. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Increase prefixLength for the bucket which doesn't own local node
  851. ID when splitting bucket.
  852. * src/DHTBucket.cc
  853. * test/DHTBucketTest.cc
  854. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  855. * Release 1.3.1
  856. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  857. Bump up version number to 1.3.1
  858. * configure.ac
  859. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Removed unused variable checkPoint. Also removed include directive
  861. for TimeA2.h.
  862. * src/SeedCheckCommand.h
  863. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Fixed the bug that upload limit exceeds the value specified in
  865. --seed-ratio option depending on the timing of the execution of
  866. SeedCheckCommand.
  867. * src/SeedCheckCommand.cc
  868. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Fixed the bug that removed peer's session upload/download length
  870. are counted twice in _cachedTransferStat before it is
  871. re-calculated. This affected the calculation of shara ratio,
  872. resulting aria2 wrongly determines that specified share ratio is
  873. reached. Also fixed the typo in calculateStatFor function name.
  874. * src/BtSetup.cc
  875. * src/DefaultPeerStorage.cc
  876. * src/ShareRatioSeedCriteria.h
  877. * test/ShareRatioSeedCriteriaTest.cc
  878. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. * Release 1.3.0
  880. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  882. Nynorsk translations. Thanks to all translators.
  883. * po/es.po
  884. * po/ja.po
  885. * po/nn.po
  886. * po/ru.po
  887. * po/uk.po
  888. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Rewritten isInRange()
  890. * src/DHTBucket.cc
  891. * test/DHTBucketTest.cc
  892. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Fixed typo
  894. * doc/aria2c.1.txt
  895. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  897. malloc/realloc is not used.
  898. * src/configure.ac
  899. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  900. BitfieldMan::getMissingIndexes family functions now takes unsigned
  901. char* bitfield instead of stl container for efficiency.
  902. PieceSelector::select now takes this
  903. bitfield. RarestPieceSelector::select now also performs
  904. efficiently for this change. bitfield namespace is introduced and
  905. it has several helper functions to handle basic bitfield
  906. operations such as test, count set bits, etc.
  907. * src/BitfieldMan.cc
  908. * src/BitfieldMan.h
  909. * src/DefaultBtRequestFactory.cc
  910. * src/DefaultPieceStorage.cc
  911. * src/DefaultPieceStorage.h
  912. * src/LongestSequencePieceSelector.cc
  913. * src/LongestSequencePieceSelector.h
  914. * src/Makefile.am
  915. * src/Piece.cc
  916. * src/Piece.h
  917. * src/PieceSelector.h
  918. * src/RarestPieceSelector.cc
  919. * src/RarestPieceSelector.h
  920. * src/Util.cc
  921. * src/Util.h
  922. * src/bitfield.h
  923. * test/BitfieldManTest.cc
  924. * test/LongestSequencePieceSelectorTest.cc
  925. * test/Makefile.am
  926. * test/RarestPieceSelectorTest.cc
  927. * test/UtilTest.cc
  928. * test/bitfieldTest.cc
  929. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. Made accepted socket non-block.
  931. * src/FtpNegotiationCommand.cc
  932. * src/HttpListenCommand.cc
  933. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  934. Guarded #ifdef HAVE_POSIX_FALLOCATE
  935. * src/AbstractSingleDiskAdaptor.cc
  936. * src/DefaultPieceStorage.cc
  937. * src/DiskAdaptor.h
  938. * src/DiskAdaptor.h
  939. * src/MultiFileAllocationIterator.cc
  940. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Run
  942. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  943. in every 1 sec. The timeout of RequestSlot is 60s by default and
  944. it doesn't need to be called every time when
  945. DefaultBtInteractive::doInteractionProcessing() is called.
  946. * src/DefaultBtInteractive.cc
  947. * src/DefaultBtInteractive.h
  948. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Documented 'falloc' in man page.
  950. * doc/aria2c.1.txt
  951. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Updated doc
  953. * src/usage_text.h
  954. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Added 'falloc' parameter for --file-allocation option. 'falloc'
  956. allocation mode uses posix_fallocate() system call to allocate
  957. file on disk. If you are using newer file systems such as ext4
  958. (with extents support), btrfs or xfs, 'falloc' is your best
  959. choice. It allocates large(few GiB) files almost instantly. Don't
  960. use 'falloc' with legacy file systems such as ext3 because it
  961. takes almost same time as 'prealloc' and it blocks aria2 entirely
  962. until allocation finishes. 'falloc' may not be available if your
  963. system doesn't have posix_fallocate() system call.
  964. * configure.ac
  965. * src/AbstractDiskWriter.cc
  966. * src/AbstractDiskWriter.h
  967. * src/AbstractSingleDiskAdaptor.cc
  968. * src/BinaryStream.h
  969. * src/BtCheckIntegrityEntry.cc
  970. * src/ByteArrayDiskWriter.h
  971. * src/CheckIntegrityEntry.cc
  972. * src/CheckIntegrityEntry.h
  973. * src/DefaultPieceStorage.cc
  974. * src/DiskAdaptor.cc
  975. * src/DiskAdaptor.h
  976. * src/DiskWriter.h
  977. * src/FallocFileAllocationIterator.cc
  978. * src/FallocFileAllocationIterator.h
  979. * src/FileAllocationEntry.cc
  980. * src/FileAllocationEntry.h
  981. * src/Makefile.am
  982. * src/MultiFileAllocationIterator.cc
  983. * src/MultiFileAllocationIterator.h
  984. * src/OptionHandlerFactory.cc
  985. * src/RequestGroup.cc
  986. * src/StreamCheckIntegrityEntry.cc
  987. * src/prefs.cc
  988. * src/prefs.h
  989. * src/usage_text.h
  990. * test/FallocFileAllocationIteratorTest.cc
  991. * test/Makefile.am
  992. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Removed duplicate enableDirectIO() call.
  994. * src/MultiFileAllocationIterator.cc
  995. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  997. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  998. cost of std::rotate().
  999. * src/RarestPieceSelector.cc
  1000. * src/RarestPieceSelector.h
  1001. * test/RarestPieceSelectorTest.cc
  1002. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Updated usage doc for --bt-tracker-interval option.
  1004. * src/usage_text.h
  1005. * doc/aria2c.1.txt
  1006. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Documented --bt-tracker-interval option in man page.
  1008. * doc/aria2c.1.txt
  1009. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Added an option to specify the interval between tracker requests.
  1011. If non-zero value is specified, aria2 uses it and ignores the
  1012. interval value in the response of tracker. If zero is specified,
  1013. aria2 determines the inteval value based on the tarcker response
  1014. and download progress.
  1015. * src/DefaultBtAnnounce.cc
  1016. * src/DefaultBtAnnounce.h
  1017. * src/OptionHandlerFactory.cc
  1018. * src/RequestGroup.cc
  1019. * src/prefs.cc
  1020. * src/prefs.h
  1021. * src/usage_text.h
  1022. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1023. Added operator+=, operator-=, operator-
  1024. * src/TransferStat.cc
  1025. * src/TransferStat.h
  1026. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1027. Refactored RarestPieceSelector to reduce CPU load, especially for
  1028. addPieceStats.
  1029. * src/RarestPieceSelector.cc
  1030. * src/RarestPieceSelector.h
  1031. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  1033. getAllMissingBlockIndexes to reduce a call to
  1034. array_function_base::operator[].
  1035. * src/BitfieldMan.cc
  1036. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1037. Cached TransferStat/download speed to avoid to sum them up in each
  1038. call.
  1039. * src/DefaultPeerStorage.cc
  1040. * src/DefaultPeerStorage.h
  1041. * src/SegmentMan.cc
  1042. * src/SegmentMan.h
  1043. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Typedefed cuid_t as int32_t in Command.h
  1045. * src/CUIDCounter.h
  1046. * src/Command.cc
  1047. * src/Command.h
  1048. * src/DownloadEngine.cc
  1049. * src/DownloadEngine.h
  1050. * src/PeerStat.h
  1051. * src/SegmentMan.cc
  1052. * src/SegmentMan.h
  1053. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Reduced the number of calls to PeerStorage::calculateStat() and
  1055. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  1056. transfer rate.
  1057. * src/DefaultBtInteractive.cc
  1058. * src/DefaultBtMessageDispatcher.cc
  1059. * src/DefaultPeerStorage.cc
  1060. * src/DefaultPeerStorage.h
  1061. * src/DownloadCommand.cc
  1062. * src/DownloadEngine.cc
  1063. * src/PeerStorage.h
  1064. * src/SegmentMan.cc
  1065. * src/SegmentMan.h
  1066. * test/MockPeerStorage.h
  1067. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Prepended _dir+"/" after joining path elements in torrent file.
  1069. * src/DefaultBtContext.cc
  1070. * test/DefaultBtContextTest.cc
  1071. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Added missing IndexBtMessageValidator.h
  1073. * src/Makefile.am
  1074. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1076. Chinese translations. Thank you for contributing our project.
  1077. * po/id.po
  1078. * po/it.po
  1079. * po/ru.po
  1080. * po/uk.po
  1081. * po/zh_CN.po
  1082. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1083. Updated README
  1084. * README
  1085. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Bump up version number to 1.3.0
  1087. * configure.ac
  1088. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Updated doc
  1090. * src/DefaultBtContext.h
  1091. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1092. Slice/joinPath for name of single torrent.
  1093. * src/DefaultBtContext.cc
  1094. * test/DefaultBtContextTest.cc
  1095. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Updated man page: Documented --dry-run and --index-out
  1097. options. Changed the default value of --uri-selector and
  1098. --http-auth-challenge options. Removed --direct-file-mapping
  1099. option. Added example for --index-out
  1100. * doc/aria2c.1.txt
  1101. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Updated TEXT_DRY_RUN
  1103. * src/usage_text.h
  1104. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Changed the default value of --uri-selector option from 'inorder'
  1106. to 'feedback'
  1107. * src/OptionHandlerFactory.cc
  1108. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1109. Included current URI in exception message.
  1110. * src/AbstractCommand.cc
  1111. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1112. Renamed ServerStatURISelector as FeedbackURISelector.
  1113. * src/FeedbackURISelector.cc
  1114. * src/FeedbackURISelector.h
  1115. * src/Makefile.am
  1116. * src/RequestGroupMan.cc
  1117. * src/ServerStatURISelector.cc
  1118. * src/ServerStatURISelector.h
  1119. * test/FeedbackURISelectorTest.cc
  1120. * test/Makefile.am
  1121. * test/ServerStatURISelectorTest.cc
  1122. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1124. all URIs are tested and their timeout is not reached.
  1125. * src/AdaptiveURISelector.cc
  1126. * src/AdaptiveURISelector.h
  1127. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Changed the default value of --http-auth-challenge option to false.
  1129. * src/OptionHandlerFactory.cc
  1130. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1131. Reuse URIs when all unused URIs run out.
  1132. * src/OptionHandlerFactory.cc
  1133. * src/RequestGroup.cc
  1134. * src/prefs.cc
  1135. * src/prefs.h
  1136. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1138. and BtRejectMessage are derived from RangeBtMessage class.
  1139. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1140. derived from IndexBtMessage class. BtChokeMessage,
  1141. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1142. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1143. ZeroBtMessage class.
  1144. * src/AbstractBtMessage.cc
  1145. * src/AbstractBtMessage.h
  1146. * src/BtAllowedFastMessage.cc
  1147. * src/BtAllowedFastMessage.h
  1148. * src/BtAllowedFastMessageValidator.h: Removed
  1149. * src/BtBitfieldMessage.cc
  1150. * src/BtBitfieldMessage.h
  1151. * src/BtCancelMessage.cc
  1152. * src/BtCancelMessage.h
  1153. * src/BtCancelMessageValidator.h: Removed
  1154. * src/BtChokeMessage.cc
  1155. * src/BtChokeMessage.h
  1156. * src/BtExtendedMessage.cc
  1157. * src/BtExtendedMessage.h
  1158. * src/BtHandshakeMessage.cc
  1159. * src/BtHandshakeMessage.h
  1160. * src/BtHaveAllMessage.cc
  1161. * src/BtHaveAllMessage.h
  1162. * src/BtHaveMessage.cc
  1163. * src/BtHaveMessage.h
  1164. * src/BtHaveMessageValidator.h: Removed
  1165. * src/BtHaveNoneMessage.cc
  1166. * src/BtHaveNoneMessage.h
  1167. * src/BtInterestedMessage.cc
  1168. * src/BtInterestedMessage.h
  1169. * src/BtKeepAliveMessage.cc
  1170. * src/BtKeepAliveMessage.h
  1171. * src/BtNotInterestedMessage.cc
  1172. * src/BtNotInterestedMessage.h
  1173. * src/BtPieceMessage.cc
  1174. * src/BtPieceMessage.h
  1175. * src/BtPortMessage.cc
  1176. * src/BtPortMessage.h
  1177. * src/BtRejectMessage.cc
  1178. * src/BtRejectMessage.h
  1179. * src/BtRejectMessageValidator.h: Removed
  1180. * src/BtRequestMessage.cc
  1181. * src/BtRequestMessage.h
  1182. * src/BtRequestMessageValidator.h: Removed
  1183. * src/BtSuggestPieceMessage.cc
  1184. * src/BtSuggestPieceMessage.h
  1185. * src/BtSuggestPieceMessageValidator.h: Removed
  1186. * src/BtUnchokeMessage.cc
  1187. * src/BtUnchokeMessage.h
  1188. * src/DefaultBtMessageFactory.cc
  1189. * src/IndexBtMessage.cc
  1190. * src/IndexBtMessage.h
  1191. * src/IndexBtMessageValidator.h
  1192. * src/Makefile.am
  1193. * src/PeerMessageUtil.cc
  1194. * src/PeerMessageUtil.h
  1195. * src/RangeBtMessage.cc
  1196. * src/RangeBtMessage.h
  1197. * src/RangeBtMessageValidator.h
  1198. * src/SimpleBtMessage.cc
  1199. * src/SimpleBtMessage.h
  1200. * src/ZeroBtMessage.cc
  1201. * src/ZeroBtMessage.h
  1202. * test/BtRequestMessageTest.cc
  1203. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1204. Reverted usage_text.h to r1093 to avoid to lose translated
  1205. messages.
  1206. * src/usage_text.h
  1207. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1209. declared as non-const previously is now const and defined in class
  1210. definition.
  1211. * src/AbstractBtMessage.cc
  1212. * src/AbstractBtMessage.h
  1213. * src/BtAllowedFastMessage.cc
  1214. * src/BtAllowedFastMessage.h
  1215. * src/BtBitfieldMessage.h
  1216. * src/BtCancelMessage.cc
  1217. * src/BtCancelMessage.h
  1218. * src/BtChokeMessage.cc
  1219. * src/BtChokeMessage.h
  1220. * src/BtExtendedMessage.cc
  1221. * src/BtExtendedMessage.h
  1222. * src/BtHandshakeMessage.cc
  1223. * src/BtHandshakeMessage.h
  1224. * src/BtHaveAllMessage.cc
  1225. * src/BtHaveAllMessage.h
  1226. * src/BtHaveMessage.cc
  1227. * src/BtHaveMessage.h
  1228. * src/BtHaveNoneMessage.cc
  1229. * src/BtHaveNoneMessage.h
  1230. * src/BtInterestedMessage.cc
  1231. * src/BtInterestedMessage.h
  1232. * src/BtKeepAliveMessage.cc
  1233. * src/BtKeepAliveMessage.h
  1234. * src/BtMessage.h
  1235. * src/BtNotInterestedMessage.cc
  1236. * src/BtNotInterestedMessage.h
  1237. * src/BtPieceMessage.h
  1238. * src/BtPortMessage.cc
  1239. * src/BtPortMessage.h
  1240. * src/BtRejectMessage.cc
  1241. * src/BtRejectMessage.h
  1242. * src/BtRequestMessage.cc
  1243. * src/BtRequestMessage.h
  1244. * src/BtSuggestPieceMessage.cc
  1245. * src/BtSuggestPieceMessage.h
  1246. * src/BtUnchokeMessage.cc
  1247. * src/BtUnchokeMessage.h
  1248. * src/SimpleBtMessage.cc
  1249. * src/SimpleBtMessage.h
  1250. * test/MockBtMessage.h
  1251. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Use FileEntry::exists()
  1253. * src/MultiDiskAdaptor.cc
  1254. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1255. Added exists()
  1256. * src/FileEntry.cc
  1257. * src/FileEntry.h
  1258. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Added missing prefix dir.
  1260. * src/download_helper.cc
  1261. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1262. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1263. * src/CopyDiskAdaptor.cc: Removed
  1264. * src/CopyDiskAdaptor.h: Removed
  1265. * src/DefaultPieceStorage.cc
  1266. * src/Makefile.am
  1267. * src/OptionHandlerFactory.cc
  1268. * src/prefs.cc
  1269. * src/prefs.h
  1270. * src/usage_text.h
  1271. * test/CopyDiskAdaptorTest.cc: Removed
  1272. * test/Makefile.am
  1273. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1274. Rewritten isSameFileBeingDownloaded()
  1275. * src/RequestGroupMan.cc
  1276. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Removed getName() from DownloadContext. getName() is declared in
  1278. BtContext.
  1279. * src/BtContext.h
  1280. * src/DownloadContext.h
  1281. * src/SingleFileDownloadContext.cc
  1282. * src/SingleFileDownloadContext.h
  1283. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1284. in AbstractSingleDiskAdaptor.
  1285. * src/AbstractSingleDiskAdaptor.h
  1286. * src/DiskAdaptor.h
  1287. * src/MultiDiskAdaptor.h
  1288. * src/RequestGroup.cc
  1289. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1290. MultiDiskAdaptor.
  1291. * src/DefaultPieceStorage.cc
  1292. * src/MultiDiskAdaptor.cc
  1293. * src/MultiDiskAdaptor.h
  1294. * test/MultiDiskAdaptorTest.cc
  1295. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1296. FileEntry::getPath() contains store(top level) directory to
  1297. simplify path handling operation. In the previous implementation,
  1298. store directory is concatenated to FileEntry::getPath() in
  1299. DownloadContext.
  1300. * src/BtDependency.cc
  1301. * src/BtPostDownloadHandler.cc
  1302. * src/CopyDiskAdaptor.cc
  1303. * src/DefaultBtContext.cc
  1304. * src/DirectDiskAdaptor.cc
  1305. * src/FileEntry.cc
  1306. * src/FileEntry.h
  1307. * src/FtpNegotiationCommand.cc
  1308. * src/HttpResponse.cc
  1309. * src/HttpResponseCommand.cc
  1310. * src/Metalink2RequestGroup.cc
  1311. * src/MultiDiskAdaptor.cc
  1312. * src/MultiDiskAdaptor.h
  1313. * src/MultiFileAllocationIterator.cc
  1314. * src/RequestGroup.cc
  1315. * src/SingleFileDownloadContext.cc
  1316. * src/SingleFileDownloadContext.h
  1317. * src/download_helper.cc
  1318. * test/BtDependencyTest.cc
  1319. * test/CopyDiskAdaptorTest.cc
  1320. * test/DefaultBtContextTest.cc
  1321. * test/DefaultBtProgressInfoFileTest.cc
  1322. * test/DirectDiskAdaptorTest.cc
  1323. * test/DownloadHelperTest.cc
  1324. * test/FileEntryTest.cc
  1325. * test/MultiDiskAdaptorTest.cc
  1326. * test/MultiFileAllocationIteratorTest.cc
  1327. * test/RequestGroupTest.cc
  1328. * test/SingleFileDownloadContextTest.cc
  1329. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1330. Fixed compiler warning
  1331. * src/download_helper.cc
  1332. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Throw exception if same infohash torrent is now downloading.
  1334. * src/RequestGroup.cc
  1335. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1336. Added --dry-run option. In this mode, aria2 just checks whether
  1337. the remote file is available and doesn't download data. This
  1338. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1339. are canceled in this mode.
  1340. * src/FtpNegotiationCommand.cc
  1341. * src/HttpResponseCommand.cc
  1342. * src/HttpResponseCommand.h
  1343. * src/OptionHandlerFactory.cc
  1344. * src/RequestGroup.cc
  1345. * src/RequestGroupMan.cc
  1346. * src/prefs.cc
  1347. * src/prefs.h
  1348. * src/usage_text.h
  1349. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Fixed compiler waring
  1351. * test/UriListParserTest.cc
  1352. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Parse options in -i list using OptionParser.
  1354. * src/UriListParser.cc
  1355. * src/UriListParser.h
  1356. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Don't reset URI in retry to avoid additional round trips because
  1358. of redirects.
  1359. * src/AbstractCommand.cc
  1360. * src/OptionHandlerFactory.cc
  1361. * src/prefs.cc
  1362. * src/prefs.h
  1363. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1364. Declared hide() in OptionHandler.
  1365. * src/NameMatchOptionHandler.h
  1366. * src/OptionHandler.h
  1367. * src/OptionHandlerImpl.h
  1368. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Updated doc
  1370. * src/Peer.h
  1371. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Added log message in setStatusInternal()
  1373. * src/ServerStat.cc
  1374. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1375. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1376. effectively exclude failed server.
  1377. * src/AbstractCommand.cc
  1378. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1379. Added --index-out option to specify each file path for torrent.
  1380. Here index shown in --show-files option is used to specify which
  1381. file path should be altered. For example, to change the file path
  1382. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1383. option multiple times: --index-out=1=aria2.tar.bz2
  1384. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1385. available. This option can be specified in -i list.
  1386. * src/DefaultBtContext.cc
  1387. * src/DefaultBtContext.h
  1388. * src/MultiDiskAdaptor.cc
  1389. * src/MultiDiskAdaptor.h
  1390. * src/MultiFileAllocationIterator.cc
  1391. * src/OptionHandlerFactory.cc
  1392. * src/OptionHandlerImpl.h
  1393. * src/Util.cc
  1394. * src/Util.h
  1395. * src/download_helper.cc
  1396. * src/prefs.cc
  1397. * src/prefs.h
  1398. * src/usage_text.h
  1399. * test/DefaultBtContextTest.cc
  1400. * test/MultiDiskAdaptorTest.cc
  1401. * test/MultiFileAllocationIteratorTest.cc
  1402. * test/UtilTest.cc
  1403. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Use Util::pathJoin()
  1405. * src/MetalinkParserController.cc
  1406. * test/test.xml
  1407. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1408. Use Util::pathJoin()
  1409. * src/DefaultBtContext.cc
  1410. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Added Util::pathJoin()
  1412. * src/Util.h
  1413. * test/UtilTest.cc
  1414. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Applied basename function to remove directory element in
  1416. content-disposition value.
  1417. Return empty string if content-disposition value is ".." or ".".
  1418. * src/Util.cc
  1419. * test/UtilTest.cc
  1420. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Added --max-overall-download-limit in man page.
  1422. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1423. * doc/aria2c.1.txt
  1424. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1425. Added --max-overall-download-limit option. Now --max-upload-limit
  1426. option is not ignored when --max-overall-upload-limit option has
  1427. non-zero value. aria2 checks download(upload) speed in the order:
  1428. first checks overall speed limit and if it is not exceeded, then
  1429. checks speed limit per download. Thus you can specify both
  1430. value. For example, set --max-overall-download-limit=1M and
  1431. --max-download-limit=500K to prevent from one download from eating
  1432. all overall speed limit.
  1433. * src/DefaultBtInteractive.cc
  1434. * src/DefaultBtInteractive.h
  1435. * src/DefaultBtMessageDispatcher.cc
  1436. * src/DefaultBtMessageDispatcher.h
  1437. * src/DownloadCommand.cc
  1438. * src/DownloadCommand.h
  1439. * src/FtpNegotiationCommand.cc
  1440. * src/HttpResponseCommand.cc
  1441. * src/OptionHandlerFactory.cc
  1442. * src/PeerInteractionCommand.cc
  1443. * src/RequestGroup.cc
  1444. * src/RequestGroup.h
  1445. * src/RequestGroupMan.cc
  1446. * src/RequestGroupMan.h
  1447. * src/prefs.cc
  1448. * src/prefs.h
  1449. * src/usage_text.h
  1450. * test/DefaultBtMessageDispatcherTest.cc
  1451. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Documented select-file option in Input File section.
  1453. Documented --http-auth-challenge option.
  1454. * doc/aria2c.1.txt
  1455. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Now select-file can be specified in the uri list(-i list).
  1457. * src/BtContext.cc
  1458. * src/BtContext.h
  1459. * src/RequestGroup.cc
  1460. * src/Sequence.h
  1461. * src/download_helper.cc
  1462. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1463. Made the upper value of --max-concurrent-downloads options unlimited.
  1464. * src/OptionHandlerFactory.cc
  1465. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Fixed the bug that disk writer is not created even if it shares
  1467. same piece with the preceding file if the length of previous file
  1468. is 0.
  1469. * src/MultiDiskAdaptor.cc
  1470. * test/MultiDiskAdaptorTest.cc
  1471. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. In BitTorrent, Open files in read-only mode for hash check. After
  1473. that, re-open file in read/write mode only when the download is
  1474. not finished.
  1475. * src/AbstractDiskWriter.cc
  1476. * src/AbstractDiskWriter.h
  1477. * src/AbstractSingleDiskAdaptor.cc
  1478. * src/AbstractSingleDiskAdaptor.h
  1479. * src/BtCheckIntegrityEntry.cc
  1480. * src/DiskAdaptor.h
  1481. * src/DiskWriter.h
  1482. * src/MultiDiskAdaptor.cc
  1483. * src/MultiDiskAdaptor.h
  1484. * src/RequestGroup.cc
  1485. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1486. Added --http-auth-challenge option. If it is set to true(by
  1487. default), aria2 sends HTTP authorization header only when it is
  1488. requested by the server. If false is set, then authorization
  1489. header is always sent to the server. This is useful for servers
  1490. that don't respond 401 code when authentication is required.
  1491. There is an exception: if username and password are embedded in
  1492. URI, authorization header is always sent to the server regardless
  1493. of this option.
  1494. * src/AuthConfigFactory.cc
  1495. * src/HttpSkipResponseCommand.cc
  1496. * src/OptionHandlerFactory.cc
  1497. * src/prefs.cc
  1498. * src/prefs.h
  1499. * src/usage_text.h
  1500. * test/AuthConfigFactoryTest.cc
  1501. * test/HttpRequestTest.cc
  1502. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. * Release 1.2.0
  1504. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1505. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1506. Thanks to all translators.
  1507. * po/es.po
  1508. * po/ja.po
  1509. * po/ru.po
  1510. * po/uk.po
  1511. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Call deleteSocketForReadCheck() before socket is closed.
  1513. * src/HttpListenCommand.cc
  1514. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Defined virtual destructor for BObject.
  1516. * src/bencode.h
  1517. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Rewritten BDE to make it efficient.
  1519. * src/bencode.cc
  1520. * src/bencode.h
  1521. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1522. Removed function throw list.
  1523. * src/bencode.cc
  1524. * src/bencode.h
  1525. * test/BencodeTest.cc
  1526. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Enclosed all URLs in double quotes in command-line examples.
  1528. * doc/aria2c.1.txt
  1529. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Updated reference/see also section.
  1531. * README
  1532. * doc/aria2c.1.txt
  1533. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Reorganized man page based on man man-pages.
  1535. * doc/aria2c.1.txt
  1536. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1538. because same documents are available in man page. Added
  1539. References section.
  1540. * README
  1541. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1543. PERFORMANCE PROFILE section.
  1544. * doc/aria2c.1.txt
  1545. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Rewritten the section for configuration file.
  1547. * README
  1548. * doc/aria2c.1.txt
  1549. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1550. Fixed the segmentation fault during execution of choking algorithm
  1551. in leecher state because of broken compare operator
  1552. implementation.
  1553. * src/BtLeecherStateChoke.cc
  1554. * src/BtLeecherStateChoke.h
  1555. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Open file in binary mode.
  1557. * src/CookieStorage.cc
  1558. * src/DHTSetup.cc
  1559. * src/DHTUtil.cc
  1560. * src/Netrc.cc
  1561. * src/NsCookieParser.cc
  1562. * src/ProtocolDetector.cc
  1563. * src/RequestGroupMan.cc
  1564. * src/Signature.cc
  1565. * src/bencode.cc
  1566. * src/download_helper.cc
  1567. * src/option_processing.cc
  1568. * test/CookieParserTest.cc
  1569. * test/DefaultBtProgressInfoFileTest.cc
  1570. * test/FileTest.cc
  1571. * test/GZipDecoderTest.cc
  1572. * test/RequestGroupManTest.cc
  1573. * test/SignatureTest.cc
  1574. * test/SingleFileAllocationIteratorTest.cc
  1575. * test/UriListParserTest.cc
  1576. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1577. Removed operator[] because it is ambiguous with built-in []
  1578. operator.
  1579. * src/array_fun.h
  1580. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1581. Fixed compile error
  1582. * src/OptionParser.cc
  1583. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Added missing call to arrayWrapperConst
  1585. * test/array_funTest.cc
  1586. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1587. Use array_wrapper instead of array_ptr.
  1588. * src/DHTRoutingTableDeserializer.cc
  1589. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1590. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1591. * src/array_fun.h
  1592. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1593. Added array_wrapper template.
  1594. * src/array_fun.h
  1595. * test/array_funTest.cc
  1596. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Use operator T* of array_ptr.
  1598. * src/OptionParser.cc
  1599. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Use localhost instead of 127.0.0.1
  1601. * test/FtpConnectionTest.cc
  1602. * test/MSEHandshakeTest.cc
  1603. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1604. Added operator T*
  1605. * src/array_fun.h
  1606. * test/array_funTest.cc
  1607. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Use dynamically allocated char array to detect memory access
  1609. violation.
  1610. * src/DHTRoutingTableDeserializer.cc
  1611. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1613. defined.
  1614. * src/PeerMessageUtil.cc
  1615. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1617. * configure.ac
  1618. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1619. Added a check to see struct sockaddr_in has sin_len member.
  1620. * configure.ac
  1621. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Fixed buffer overrun.
  1623. * src/DHTRoutingTableDeserializer.cc
  1624. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Added LL for long long int constant.
  1626. * test/FtpConnectionTest.cc
  1627. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Casted to unsigned int to suppress compiler warning on netbsd.
  1629. * src/BtRuntime.h
  1630. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1632. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1633. type time_t.
  1634. * src/SimpleLogger.cc
  1635. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1636. Added test for FtpConnection::receiveSizeResponse().
  1637. * test/FtpConnectionTest.cc
  1638. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Fix epoll error on the old kernel 2.6.8 or ealier.
  1640. * src/EpollEventPoll.cc
  1641. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1642. Use Util::parseLLInt instead of sscanf for portability. The
  1643. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1644. * src/FtpConnection.cc
  1645. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1646. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1647. block. It should not filter anything.
  1648. * src/BitfieldMan.cc
  1649. * src/ConsoleStatCalc.cc
  1650. * test/BitfieldManTest.cc
  1651. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Fixed the bug that the boolean options that don't take arguments
  1653. don't work.
  1654. * src/OptionHandlerImpl.h
  1655. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1656. Fixed broken selected file BitTorrent download.
  1657. * src/MultiDiskAdaptor.cc
  1658. * test/MultiDiskAdaptorTest.cc
  1659. * test/MultiFileAllocationIteratorTest.cc
  1660. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1661. Fixed #define guard for EpollEventPoll
  1662. * src/EpollEventPoll.h
  1663. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1664. Wait 2 seconds. 1 second is sometimes not enough.
  1665. * test/TimeSeedCriteriaTest.cc
  1666. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Use localhost instead of 127.0.0.1.
  1668. * test/DHTConnectionImplTest.cc
  1669. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1670. Suppressed compiler warning.
  1671. * src/AdaptiveURISelector.cc
  1672. * src/DefaultPieceStorage.cc
  1673. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Defined virtual destructor.
  1675. * src/MetalinkParserState.h
  1676. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Give NULL for second argument of getaddrinfo instead of "0".
  1678. * src/NameResolver.cc
  1679. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1681. included strptime doesn't parse data for this format.
  1682. * src/FtpConnection.cc
  1683. * test/FtpConnectionTest.cc
  1684. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1685. Removed tests giving -1 for unsigned argument.
  1686. * test/SingleFileDownloadContextTest.cc
  1687. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1688. Don't use sha256 in tests because it might not be supported by the
  1689. SSL library.
  1690. * test/MetalinkProcessorTest.cc
  1691. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Removed tests giving -1 for unsigned argument.
  1693. * test/AlphaNumberDecoratorTest
  1694. * test/BitfieldManTest.cc
  1695. * test/DefaultBtContextTest.cc
  1696. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1697. Fixed compile error without libcares when epoll is available.
  1698. * src/EpollEventPoll.cc
  1699. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1700. Included fstream instead of iostream.
  1701. * test/SignatureTest.cc
  1702. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1703. Removed #include <algorithm>
  1704. * test/RequestGroupTest.cc
  1705. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1707. using RequestGroup::extractURIResult().
  1708. * src/AdaptiveURISelector.cc
  1709. * src/RequestGroup.cc
  1710. * src/RequestGroup.h
  1711. * test/RequestGroupTest.cc
  1712. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1713. Added tests for array_ptr.
  1714. * test/array_funTest.cc
  1715. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1716. Don't send ip parameter to a tracker if ip parameter is empty
  1717. string.
  1718. * src/DefaultBtAnnounce.cc
  1719. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1720. Adjusted line feed.
  1721. * src/version_usage.cc
  1722. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1723. Print tags, possible values when OptionHandlerException is caught.
  1724. * src/option_processing.cc
  1725. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1726. Changed the message for FatalException.
  1727. * src/OptionParser.cc
  1728. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Documented --bt-external-ip option in man page. Updated man pages
  1730. for --proxy-method option.
  1731. * doc/aria2c.1.txt
  1732. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1733. Use GET method for FTP via HTTP proxy.
  1734. * src/FtpInitiateConnectionCommand.cc
  1735. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1736. Changed the default value of --proxy-method option from 'tunnel'
  1737. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1738. option.
  1739. * src/AbstractCommand.cc
  1740. * src/AbstractCommand.h
  1741. * src/FtpInitiateConnectionCommand.cc
  1742. * src/HttpDownloadCommand.cc
  1743. * src/HttpInitiateConnectionCommand.cc
  1744. * src/HttpInitiateConnectionCommand.h
  1745. * src/OptionHandlerFactory.cc
  1746. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1747. Initialized _logger
  1748. * src/SelectEventPoll.cc
  1749. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Defined a copy constructor for the same type.
  1751. * src/SharedHandle.h
  1752. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Added OptionParser::parseArg() which internally uses getopt_long
  1754. to parse command-line options. All command-line options are now
  1755. configured by OptionHandler. No manual editing of struct option*
  1756. is required any more.
  1757. * src/NameMatchOptionHandler.h
  1758. * src/OptionHandler.h
  1759. * src/OptionHandlerFactory.cc
  1760. * src/OptionHandlerImpl.h
  1761. * src/OptionParser.cc
  1762. * src/OptionParser.h
  1763. * src/array_fun.h
  1764. * src/main.cc
  1765. * src/option_processing.cc
  1766. * test/OptionHandlerTest.cc
  1767. * test/OptionParserTest.cc
  1768. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1769. Fixed configure error with --disable-epoll
  1770. * configure.ac
  1771. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Fixed compile error when HAVE_EPOLL is not defined.
  1773. Fixed linker error on bigendian systems.
  1774. * src/SocketCore.cc
  1775. * src/SocketCore.h
  1776. * test/DefaultBtProgressInfoFileTest.cc
  1777. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Added --bt-external-ip option. You can specify the external IP
  1779. address to report to a BitTorrent tracker. Although this function
  1780. is named 'external', it can accept any kind of IP addresses.
  1781. * src/DefaultBtAnnounce.cc
  1782. * src/OptionHandlerFactory.cc
  1783. * src/option_processing.cc
  1784. * src/prefs.cc
  1785. * src/prefs.h
  1786. * src/usage_text.h
  1787. * test/DefaultBtAnnounceTest.cc
  1788. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Extracted the algorithm to find the longest incremental sequence
  1790. as max_sequence template.
  1791. * src/LongestSequencePieceSelector.cc
  1792. * src/a2algo.h
  1793. * test/Makefile.am
  1794. * test/a2algoTest.cc
  1795. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1797. * src/usage_text.h
  1798. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Updated doc for --uri-selector, --http-server-listen-port and
  1800. --enable-http-server option. Documented --event-poll option.
  1801. * doc/aria2c.1.txt
  1802. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Updated doc for --enable-http-server.
  1804. * src/usage_text.h
  1805. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1806. Documented --http-server-listen-port and --enable-http-server in
  1807. man page.
  1808. * doc/aria2c.1.txt
  1809. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1811. translations. Thanks to all translators.
  1812. * po/es.po
  1813. * po/id.po
  1814. * po/it.po
  1815. * po/ru.po
  1816. * po/uk.po
  1817. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Bump up version number to 1.2.0
  1819. * configure.ac
  1820. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. BtContext::getAnnounceTiers() now returns const reference.
  1822. * src/BtContext.h
  1823. * src/DefaultBtContext.cc
  1824. * src/DefaultBtContext.h
  1825. * test/MockBtContext.h
  1826. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1827. Change the number of retries for tracker request based on the
  1828. number of available tracker in a torrent file.
  1829. * src/TrackerWatcherCommand.cc
  1830. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1831. Added _maxTries property to RequestGroup and assign the option
  1832. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1833. RequestGroup::getMaxTries() instead of
  1834. Option::getAsInt(PREF_MAX_TRIES).
  1835. * src/AbstractCommand.cc
  1836. * src/RequestGroup.cc
  1837. * src/RequestGroup.h
  1838. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1840. Mandriva. I modified the patch: make RequestGroup have the
  1841. timeout value and AdaptiveURISelector directly modifies that
  1842. value.
  1843. * src/AbstractCommand.cc
  1844. * src/AdaptiveURISelector.cc
  1845. * src/AdaptiveURISelector.h
  1846. * src/FtpNegotiationCommand.cc
  1847. * src/RequestGroup.cc
  1848. * src/RequestGroup.h
  1849. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Fixed compiler warning
  1851. * test/IteratableChecksumValidatorTest.cc
  1852. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1853. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1854. integrated downloads. This PieceSelector subclass finds the
  1855. longest continuous sequence in the available missing pieces and
  1856. selects the last index of such sequence. This makes HTTP/FTP
  1857. connections less interrupted by the pieces obtained by BitTorrent
  1858. peers.
  1859. * src/DefaultPieceStorage.cc
  1860. * src/DefaultPieceStorage.h
  1861. * src/LongestSequencePieceSelector.cc
  1862. * src/LongestSequencePieceSelector.h
  1863. * src/Makefile.am
  1864. * src/PieceSelector.h
  1865. * src/RarestPieceSelector.h
  1866. * src/RequestGroup.cc
  1867. * test/BtDependencyTest.cc
  1868. * test/DefaultPieceStorageTest.cc
  1869. * test/IteratableChecksumValidatorTest.cc
  1870. * test/LongestSequencePieceSelectorTest.cc
  1871. * test/Makefile.am
  1872. * test/SegmentManTest.cc
  1873. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1874. Fixed the bug that the average speed is wrong in
  1875. http/ftp/BitTorrent integrated download. Only the download bytes
  1876. in BitTorrent were considered.
  1877. * src/RequestGroup.cc
  1878. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Choose port for BitTorrent/DHT randomly from the specified range.
  1880. * src/DHTConnectionImpl.cc
  1881. * src/PeerListenCommand.cc
  1882. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Send HTTP Authorization header only if it is requested by the
  1884. server(response 401). There are some exceptions. The authorization
  1885. header for proxy is always sent if it is available without request
  1886. by the server. If username/password is specified in the URI, it
  1887. is immediately sent to the server without request by the server.
  1888. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1889. SharedHandle<AuthConfig>().
  1890. NetrcAuthResolver::resolveAuthConfig() returns
  1891. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1892. * src/AbstractAuthResolver.cc
  1893. * src/AbstractProxyRequestCommand.cc
  1894. * src/AuthConfigFactory.cc
  1895. * src/AuthConfigFactory.h
  1896. * src/HttpConnection.cc
  1897. * src/HttpRequest.cc
  1898. * src/HttpRequest.h
  1899. * src/HttpResponse.cc
  1900. * src/HttpResponseCommand.cc
  1901. * src/HttpSkipResponseCommand.cc
  1902. * test/AuthConfigFactoryTest.cc
  1903. * test/HttpRequestTest.cc
  1904. * test/HttpResponseTest.cc
  1905. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Remove leading "--" from help keyword and a substring after "="
  1907. from help keyword, so that one can query options by '-h--max-' or
  1908. '-hmax-peers=10'.
  1909. * src/option_processing.cc
  1910. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Rewritten PStringVisitor and its implementation.
  1912. * src/PStringBuildVisitor.cc
  1913. * src/PStringBuildVisitor.h
  1914. * src/PStringDatum.h
  1915. * src/PStringNumLoop.h
  1916. * src/PStringSegment.cc
  1917. * src/PStringSegment.h
  1918. * src/PStringSelect.h
  1919. * src/PStringVisitor.h
  1920. * src/download_helper.cc
  1921. * test/PStringBuildVisitorTest.cc
  1922. * test/ParameterizedStringParserTest.cc
  1923. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1924. Persist connection between the built-in HTTP server and a client
  1925. if a client supports keep-alive. Fixed the bug that aria2 exits
  1926. when the HTTP server receives EOF from a client.
  1927. * src/HttpServer.cc
  1928. * src/HttpServer.h
  1929. * src/HttpServerCommand.cc
  1930. * src/HttpServerCommand.h
  1931. * src/HttpServerResponseCommand.cc
  1932. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1933. Added experimental built-in HTTP server. Currently, when a client
  1934. accesses to the server, it responds with the current download
  1935. progress. By default, it is disabled. To enable the server, give
  1936. --enable-http-server option. To change the default port number
  1937. for the server to listen to, use --http-server-listen-port option.
  1938. The response HTML is very simple and refreshes it self each 1
  1939. second. Because of this refresh, you see flicker in normal web
  1940. browser such as Firefox. I recommend to use console-based browser
  1941. such as elinks, w3m. To connect to the server, run 'elinks
  1942. http://localhost:6800/' while running aria2. Please replace port
  1943. number '6800'(which is default) with your preference.
  1944. * src/DownloadEngineFactory.cc
  1945. * src/HttpHeader.cc
  1946. * src/HttpHeader.h
  1947. * src/HttpHeaderProcessor.cc
  1948. * src/HttpHeaderProcessor.h
  1949. * src/HttpListenCommand.cc
  1950. * src/HttpListenCommand.h
  1951. * src/HttpServer.cc
  1952. * src/HttpServer.h
  1953. * src/HttpServerCommand.cc
  1954. * src/HttpServerCommand.h
  1955. * src/HttpServerResponseCommand.cc
  1956. * src/HttpServerResponseCommand.h
  1957. * src/Makefile.am
  1958. * src/OptionHandlerFactory.cc
  1959. * src/Util.cc
  1960. * src/Util.h
  1961. * src/help_tags.h
  1962. * src/option_processing.cc
  1963. * src/prefs.cc
  1964. * src/prefs.h
  1965. * src/usage_text.h
  1966. * test/HttpHeaderProcessorTest.cc
  1967. * test/UtilTest.cc
  1968. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1969. Removed.
  1970. * src/CheckIntegrityMan.cc
  1971. * src/FileAllocationMan.cc
  1972. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1973. Made (piece) hash check sequential for each RequestGroup because
  1974. simultaneous hash check is slower than sequential execution.
  1975. * src/CheckIntegrityCommand.cc
  1976. * src/CheckIntegrityDispatcherCommand.cc
  1977. * src/CheckIntegrityDispatcherCommand.h
  1978. * src/CheckIntegrityMan.h
  1979. * src/ConsoleStatCalc.cc
  1980. * src/DownloadCommand.cc
  1981. * src/DownloadEngine.cc
  1982. * src/DownloadEngine.h
  1983. * src/DownloadEngineFactory.cc
  1984. * src/Makefile.am
  1985. * src/Makefile.in
  1986. * src/RequestGroup.cc
  1987. * src/StatCalc.h
  1988. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1989. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1990. SequentialDispatcherCommand.
  1991. * src/FileAllocationDispatcherCommand.cc
  1992. * src/SequentialDispatcherCommand.h
  1993. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1994. Rewritten FileAllocationDispatcherCommand using brand new
  1995. SequentialDispatcherCommand.
  1996. * src/DownloadEngineFactory.cc
  1997. * src/FileAllocationCommand.cc
  1998. * src/FileAllocationDispatcherCommand.cc
  1999. * src/FileAllocationDispatcherCommand.h
  2000. * src/Makefile.am
  2001. * src/SequentialDispatcherCommand.h
  2002. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2003. Replaced FileAllocationMan with
  2004. SequentialPicker<FileAllocationEntry>.
  2005. * src/BtCheckIntegrityEntry.cc
  2006. * src/ConsoleStatCalc.cc
  2007. * src/DownloadEngine.cc
  2008. * src/DownloadEngine.h
  2009. * src/DownloadEngineFactory.cc
  2010. * src/FileAllocationCommand.cc
  2011. * src/FileAllocationDispatcherCommand.cc
  2012. * src/FileAllocationMan.h
  2013. * src/Makefile.am
  2014. * src/SequentialPicker.h
  2015. * src/StatCalc.h
  2016. * src/StreamCheckIntegrityEntry.cc
  2017. * test/Makefile.am
  2018. * test/SequentialPickerTest.cc
  2019. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Added doc for adaptive URI selector.
  2021. * doc/aria2c.1.txt
  2022. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Added doc for adaptive URI selector.
  2024. * src/usage_text.h
  2025. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Added doc for --bt-max-peers option.
  2027. * doc/aria2c.1.txt
  2028. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Added doc for --bt-hash-check-seed option.
  2030. * doc/aria2c.1.txt
  2031. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2032. Documented exit codes.
  2033. * doc/aria2c.1.txt
  2034. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Added --bt-max-peers option to specify the maximum number of peers
  2036. per torrent. 0 means unlimited number of peers.
  2037. * src/ActivePeerConnectionCommand.cc
  2038. * src/BtRuntime.h
  2039. * src/DefaultPeerStorage.cc
  2040. * src/DefaultPeerStorage.h
  2041. * src/OptionHandlerFactory.cc
  2042. * src/RequestGroup.cc
  2043. * src/option_processing.cc
  2044. * src/prefs.cc
  2045. * src/prefs.h
  2046. * src/usage_text.h
  2047. * test/DefaultPeerStorageTest.cc
  2048. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2049. Added --bt-hash-check-seed option. If true is given to this
  2050. option, after hash check using --check-integrity option and file
  2051. is complete, continue to seed file. If you want to check file and
  2052. download it only when it is damaged or incomplete, set this option
  2053. to false. This option has effect only on BitTorrent download.
  2054. The default value is true(This is the same behavior with the
  2055. previous release).
  2056. * src/BtCheckIntegrityEntry.cc
  2057. * src/OptionHandlerFactory.cc
  2058. * src/option_processing.cc
  2059. * src/prefs.cc
  2060. * src/prefs.h
  2061. * src/usage_text.h
  2062. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Updated copyright year.
  2064. * src/version_usage.cc
  2065. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Rewritten the usage text for --bt-request-peer-speed-limit option.
  2067. * doc/aria2c.1.txt
  2068. * src/usage_text.h
  2069. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2070. Made the max value of split option unlimited.
  2071. * doc/aria2c.1.txt
  2072. * src/OptionHandlerFactory.cc
  2073. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Fixed compile warning/error.
  2075. * src/DownloadResult.h
  2076. * src/HttpDownloadCommand.cc
  2077. * src/ServerStat.cc
  2078. * test/RequestGroupTest.cc
  2079. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Added --event-poll option to select the method for polling events.
  2081. The available methods are "select" and "epoll". "epoll" is
  2082. available on Linux only. The earlier release has the compile
  2083. option to choose from these methods.
  2084. * configure.ac
  2085. * src/RequestGroupMan.cc
  2086. * src/OptionHandlerFactory.cc
  2087. * src/EpollEventPoll.h
  2088. * src/StreamFileAllocationEntry.cc
  2089. * src/a2io.h
  2090. * src/SelectEventPoll.h
  2091. * src/option_processing.cc
  2092. * src/prefs.h
  2093. * src/EpollEventPoll.cc
  2094. * src/EventPoll.h
  2095. * src/SocketCore.h
  2096. * src/Makefile.am
  2097. * src/main.cc
  2098. * src/DownloadEngine.h
  2099. * src/SelectEventPoll.cc
  2100. * src/DownloadEngine.cc
  2101. * src/SocketCore.cc
  2102. * src/DownloadEngineFactory.cc
  2103. * src/Makefile.in
  2104. * src/prefs.cc
  2105. * src/usage_text.h
  2106. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2107. Included RecoverableException.h from main.cc
  2108. * src/main.cc
  2109. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2111. now returns last error encountered in the HTTP/FTP downloads as a
  2112. exit status value. If all downloads finished successfully, aria2
  2113. returns 0. The error code is defined in src/DownloadResult.h.
  2114. The error occurred in the download currently in progress is not
  2115. reported as a last error. If no error has encountered but there
  2116. are in progress or waiting downloads, aria2 returns 7.
  2117. * src/AbstractCommand.cc
  2118. * src/DlAbortEx.h
  2119. * src/DlRetryEx.h
  2120. * src/DownloadCommand.cc
  2121. * src/DownloadFailureException.h
  2122. * src/DownloadResult.h
  2123. * src/FtpNegotiationCommand.cc
  2124. * src/HttpSkipResponseCommand.cc
  2125. * src/Makefile.am
  2126. * src/MultiUrlRequestInfo.cc
  2127. * src/MultiUrlRequestInfo.h
  2128. * src/RecoverableException.h
  2129. * src/RequestGroup.cc
  2130. * src/RequestGroup.h
  2131. * src/RequestGroupMan.cc
  2132. * src/RequestGroupMan.h
  2133. * src/URIResult.cc
  2134. * src/URIResult.h
  2135. * src/main.cc
  2136. * src/option_processing.cc
  2137. * test/RequestGroupTest.cc
  2138. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2140. patch adds AdaptiveURISelector, which selects one of the bests
  2141. mirrors for first and reserved connections. For supplementary
  2142. ones, it returns mirrors which has not been tested yet, and if
  2143. each of them already tested, returns mirrors which has to be
  2144. tested again. Otherwise, it doesn't return anymore mirrors.
  2145. * src/AdaptiveURISelector.cc
  2146. * src/AdaptiveURISelector.h
  2147. * src/FtpNegotiationCommand.cc
  2148. * src/HttpResponseCommand.cc
  2149. * src/Makefile.am
  2150. * src/Makefile.in
  2151. * src/OptionHandlerFactory.cc
  2152. * src/RequestGroup.cc
  2153. * src/RequestGroup.h
  2154. * src/RequestGroupMan.cc
  2155. * src/ServerStat.cc
  2156. * src/ServerStat.h
  2157. * src/ServerStatMan.cc
  2158. * src/SpeedCalc.cc
  2159. * src/URISelector.h
  2160. * src/prefs.cc
  2161. * src/prefs.h
  2162. * test/RequestGroupManTest.cc
  2163. * test/ServerStatManTest.cc
  2164. * test/ServerStatTest.cc
  2165. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2166. Fixed unit test error.
  2167. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2168. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. * Release 1.1.2
  2170. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2171. Updated Russian translation. Thanks to the translators.
  2172. * po/ru.po
  2173. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Added the description of --use-head option to man page.
  2175. * doc/aria2c.1.txt
  2176. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. Bump up version number to 1.1.2
  2178. * configure.ac
  2179. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2180. Added --use-head option to toggle whether HEAD method should be
  2181. used in the first HTTP request. By default aria2 uses HEAD method
  2182. as the first request. When the server doesn't recognize HEAD, then
  2183. give aria2 --use-head=false to force aria2 to use GET method
  2184. instead.
  2185. * src/OptionHandlerFactory.cc
  2186. * src/RequestGroupMan.cc
  2187. * src/option_processing.cc
  2188. * src/prefs.cc
  2189. * src/prefs.h
  2190. * src/usage_text.h
  2191. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2192. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2193. message is received before CHOKE message. The old implementation
  2194. doen't clear the use-bit of the piece when recieved REJECT
  2195. message.
  2196. * src/DefaultBtMessageDispatcher.cc
  2197. * test/DefaultBtMessageDispatcherTest.cc
  2198. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. * Release 1.1.1
  2200. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2201. Bump up version number to 1.1.1.
  2202. * configure.ac
  2203. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2204. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2205. is printed repeatedly.
  2206. * src/ConsoleStatCalc.cc
  2207. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. * Release 1.1.0
  2209. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2210. Added ifdef clause for conditional compilation.
  2211. * src/main.cc
  2212. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2213. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2214. translations. Thanks to all translators.
  2215. * po/ja.po
  2216. * po/ru.po
  2217. * po/uk.po
  2218. * po/zh_CN.po
  2219. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. Added the preceding ">>> " before the message "Printing the
  2221. contents of file..." to make the output more readable.
  2222. * src/main.cc
  2223. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Added try-catch block in the loop in showFiles() to continue the
  2225. operation even if the exception occurred in one file.
  2226. * src/main.cc (showFiles)
  2227. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Made messages in showFiles() translatable.
  2229. * po/aria2.pot
  2230. * src/main.cc
  2231. * src/message.h
  2232. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Print the contents of Torrent/Metalink files are printed without
  2234. -T/-M options.
  2235. * src/main.cc
  2236. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Escaped '--' with '\--'
  2238. * README
  2239. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2240. Updated "How to build" section in README. Mentioned about
  2241. --with-ca-bundle compile option.
  2242. * README
  2243. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2244. Bump up version number to 1.1.0.
  2245. * configure.ac
  2246. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Added a note for --dht-listen-port option.
  2248. * doc/aria2c.1.txt
  2249. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Update doc for --realtime-chunk-checksum option.
  2251. * doc/aria2c.1.txt
  2252. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2253. Update doc for --realtime-chunk-checksum option.
  2254. * src/usage_text.h
  2255. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Updated French, Japanese, Russian and Ukrainian translations.
  2257. Thanks to all translators.
  2258. * po/fr.po
  2259. * po/ja.po
  2260. * po/ru.po
  2261. * po/uk.po
  2262. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2263. Renamed aria2c.pot to aria2.pot
  2264. * po/aria2.pot
  2265. * po/aria2c.pot: Removed.
  2266. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. Removed MetaEntry.h
  2268. * src/Makefile.am
  2269. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2270. Rename file by appending digits if a local file exists and its
  2271. file size is larger than that of remote file with --continue
  2272. option. The old implementation just throws exception in such case.
  2273. * src/RequestGroup.cc
  2274. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Fixed the bug that download progress summary is not printed in the
  2276. interval specified by the option.
  2277. * src/ConsoleStatCalc.cc
  2278. * src/ConsoleStatCalc.h
  2279. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Fixed compiler warning
  2281. * src/Cookie.cc
  2282. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Fixed the cookie implementation based on RFC2965.
  2284. Now if a value in domain field is not started with dot, then
  2285. prepend dot. That means a cookie with domain=sf.net is sent to
  2286. wiki.sf.net.
  2287. * src/Cookie.cc
  2288. * test/CookieParserTest.cc
  2289. * test/CookieStorageTest.cc
  2290. * test/CookieTest.cc
  2291. * test/NsCookieParserTest.cc
  2292. * test/Sqlite3MozCookieParserTest.cc
  2293. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2294. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2295. is enabled and the server doesn't support keep-alive.
  2296. * src/AbstractCommand.cc
  2297. * src/DownloadCommand.cc
  2298. * src/HttpDownloadCommand.cc
  2299. * src/HttpDownloadCommand.h
  2300. * src/HttpResponseCommand.cc
  2301. * src/Request.cc
  2302. * src/Request.h
  2303. * test/RequestTest.cc
  2304. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2305. Removed Dictionary/List/Data and its related classes.
  2306. * src/BencodeVisitor.cc: Removed.
  2307. * src/BencodeVisitor.h: Removed.
  2308. * src/Data.cc: Removed.
  2309. * src/Data.h: Removed.
  2310. * src/Dictionary.cc: Removed.
  2311. * src/Dictionary.h: Removed.
  2312. * src/List.cc: Removed.
  2313. * src/List.h: Removed.
  2314. * src/Makefile.am
  2315. * src/MetaEntry.h: Removed.
  2316. * src/MetaEntryVisitor.h: Removed.
  2317. * src/MetaFileUtil.cc: Removed.
  2318. * src/MetaFileUtil.h: Removed.
  2319. * test/BencodeVisitorTest.cc: Removed.
  2320. * test/DataTest.cc: Removed.
  2321. * test/DictionaryTest.cc: Removed.
  2322. * test/ListTest.cc: Removed.
  2323. * test/Makefile.am
  2324. * test/MetaFileUtilTest.cc: Removed.
  2325. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2326. Removed include of MetaEntry.h
  2327. * test/DHTMessageTrackerEntryTest.cc
  2328. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2329. Use BDE instead of Dictionary/List/Data.
  2330. * src/AnnounceList.cc
  2331. * src/AnnounceList.h
  2332. * test/AnnounceListTest.cc
  2333. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Use BDE instead of Dictionary/List/Data.
  2335. * src/DHTAbstractMessage.cc
  2336. * src/DHTAbstractMessage.h
  2337. * src/DHTAnnouncePeerMessage.cc
  2338. * src/DHTAnnouncePeerMessage.h
  2339. * src/DHTAnnouncePeerReplyMessage.cc
  2340. * src/DHTAnnouncePeerReplyMessage.h
  2341. * src/DHTFindNodeMessage.cc
  2342. * src/DHTFindNodeMessage.h
  2343. * src/DHTFindNodeReplyMessage.cc
  2344. * src/DHTFindNodeReplyMessage.h
  2345. * src/DHTGetPeersMessage.cc
  2346. * src/DHTGetPeersMessage.h
  2347. * src/DHTGetPeersReplyMessage.cc
  2348. * src/DHTGetPeersReplyMessage.h
  2349. * src/DHTMessageFactory.h
  2350. * src/DHTMessageFactoryImpl.cc
  2351. * src/DHTMessageFactoryImpl.h
  2352. * src/DHTMessageReceiver.cc
  2353. * src/DHTMessageTracker.cc
  2354. * src/DHTMessageTracker.h
  2355. * src/DHTPingMessage.cc
  2356. * src/DHTPingMessage.h
  2357. * src/DHTPingReplyMessage.cc
  2358. * src/DHTPingReplyMessage.h
  2359. * src/DHTQueryMessage.cc
  2360. * src/DHTQueryMessage.h
  2361. * src/DHTResponseMessage.cc
  2362. * src/DHTResponseMessage.h
  2363. * test/DHTAnnouncePeerMessageTest.cc
  2364. * test/DHTAnnouncePeerReplyMessageTest.cc
  2365. * test/DHTFindNodeMessageTest.cc
  2366. * test/DHTFindNodeReplyMessageTest.cc
  2367. * test/DHTGetPeersMessageTest.cc
  2368. * test/DHTGetPeersReplyMessageTest.cc
  2369. * test/DHTMessageFactoryImplTest.cc
  2370. * test/DHTMessageTrackerTest.cc
  2371. * test/DHTPingMessageTest.cc
  2372. * test/DHTPingReplyMessageTest.cc
  2373. * test/MockDHTMessageFactory.h
  2374. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Added tests the case where length < 0 is specified.
  2376. * test/BencodeTest.cc
  2377. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Fixed memory leak in decoderawstring()
  2379. * src/bencode.cc
  2380. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2381. Added missing #ifdef guard. Added uc() function for String and
  2382. removeKey() for Dict.
  2383. * src/bencode.cc
  2384. * src/bencode.h
  2385. * test/BencodeTest.cc
  2386. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Use BDE instead of Dictionary/List/Data.
  2388. * src/HandshakeExtensionMessage.cc
  2389. * src/HandshakeExtensionMessage.h
  2390. * test/HandshakeExtensionMessageTest.cc
  2391. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2392. Added --max-overall-upload-limit option. This option limits the
  2393. overall upload speed. Stated in help message that the existing
  2394. --max-upload-limit option limits the upload speed per each
  2395. torrent. Man page is also updated.
  2396. * doc/aria2c.1.txt
  2397. * src/DefaultBtMessageDispatcher.cc
  2398. * src/DefaultBtMessageDispatcher.h
  2399. * src/OptionHandlerFactory.cc
  2400. * src/PeerInteractionCommand.cc
  2401. * src/option_processing.cc
  2402. * src/prefs.cc
  2403. * src/prefs.h
  2404. * src/usage_text.h
  2405. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2406. Use BDE instead of Dictionary/List/Data classes.
  2407. * src/CompactPeerListProcessor.cc
  2408. * src/CompactPeerListProcessor.h
  2409. * src/DefaultBtAnnounce.cc
  2410. * src/DefaultBtContext.cc
  2411. * src/DefaultBtContext.h
  2412. * src/DefaultPeerListProcessor.cc
  2413. * src/DefaultPeerListProcessor.h
  2414. * src/DelegatingPeerListProcessor.cc
  2415. * src/DelegatingPeerListProcessor.h
  2416. * src/PeerListProcessor.h
  2417. * src/UTPexExtensionMessage.cc
  2418. * src/Util.h
  2419. * src/message.h
  2420. * test/DefaultBtContextTest.cc
  2421. * test/DefaultPeerListProcessorTest.cc
  2422. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. Added bencode helper functions and BDE class.
  2424. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2425. * src/Makefile.am
  2426. * src/bencode.cc
  2427. * src/bencode.h
  2428. * test/BencodeTest.cc
  2429. * test/Makefile.am
  2430. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2431. Fixed the bug that bad URI is sent to the tracker when the announe
  2432. URI in torrent file includes query.
  2433. * src/DefaultBtAnnounce.cc
  2434. * test/DefaultBtAnnounceTest.cc
  2435. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2436. Added Option::blank().
  2437. Use !Option::blank(name) instead of Option::defined(name) for
  2438. the options that take filename.
  2439. * src/MultiUrlRequestInfo.cc
  2440. * src/Option.cc
  2441. * src/Option.h
  2442. * src/main.cc
  2443. * src/option_processing.cc
  2444. * test/OptionTest.cc
  2445. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2446. Documented the default value of --check-certificate option in man
  2447. page.
  2448. * doc/aria2c.1.txt
  2449. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. Enabled --check-certificate by default. Added compile
  2451. time(configure) option --with-ca-bundle to specify CA bundle.
  2452. Warn if --check-certificate=true and --ca-certificate is not
  2453. specified or loading CA certificate is failed.
  2454. * configure.ac
  2455. * src/MultiUrlRequestInfo.cc
  2456. * src/OptionHandlerFactory.cc
  2457. * src/message.h
  2458. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2459. Mentioned https tag in help option.
  2460. * doc/aria2c.1.txt
  2461. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2462. Added `https' tag to help option category. Added https tag to
  2463. --ca-certificate, --certificate, --check-certificate and
  2464. --private-key option.
  2465. * src/OptionHandlerFactory.cc
  2466. * src/help_tags.h
  2467. * src/option_processing.cc
  2468. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Changed the package name from `aria2c' to `aria2' in order to fix
  2470. the packaging issue in Debian and Fedora. The name of the
  2471. executable is not changed.
  2472. * configure.ac
  2473. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Fixed typos
  2475. * src/usage_text.h
  2476. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2477. Fixed typos and updated doc.
  2478. * README
  2479. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Fixed typos
  2481. * doc/aria2c.1.txt
  2482. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2483. Fixed typos
  2484. * src/usage_text.h
  2485. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2486. Print a message when no files to download.
  2487. * src/download_helper.cc
  2488. * src/main.cc
  2489. * src/message.h
  2490. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2491. RFC3986 complied Percent-Encoding(urlencode).
  2492. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2493. ones.
  2494. * src/Request.cc
  2495. * src/Util.cc
  2496. * src/Util.h
  2497. * test/BtHandshakeMessageTest.cc
  2498. * test/DefaultBtAnnounceTest.cc
  2499. * test/DefaultBtContextTest.cc
  2500. * test/RequestTest.cc
  2501. * test/UtilTest.cc
  2502. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Fixed the bug that prevents aria2 from downloading 0-length files
  2504. via HTTP/FTP.
  2505. * src/DefaultBtContext.cc
  2506. * src/DefaultBtContext.h
  2507. * src/DownloadContext.h
  2508. * src/FtpNegotiationCommand.cc
  2509. * src/HttpResponseCommand.cc
  2510. * src/HttpResponseCommand.h
  2511. * src/RequestGroup.cc
  2512. * src/SingleFileDownloadContext.cc
  2513. * src/SingleFileDownloadContext.h
  2514. * test/BtPostDownloadHandlerTest.cc
  2515. * test/MetalinkPostDownloadHandlerTest.cc
  2516. * test/MockBtContext.h
  2517. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2518. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2519. * src/option_processing.cc
  2520. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Applied aria2-1.0.1-mingw.patch.
  2522. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2523. mingw.
  2524. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2525. * src/SocketCore.cc
  2526. * src/a2netcompat.h
  2527. * test/SocketCoreTest.cc
  2528. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. * Release 1.0.1
  2530. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2531. Updated Ukrainian and Norwegian Nynorsk translations.
  2532. Thanks to all translators.
  2533. * po/nn.po
  2534. * po/uk.po
  2535. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Don't show download result when -S option is used.
  2537. * src/main.cc
  2538. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2539. Bump up version number to 1.0.1
  2540. * configure.ac
  2541. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Closed files after the test cases in MultiDiskWriterTest::
  2543. testResetDiskWriterEntries(). This will fix the unit test error
  2544. in mingw32 build.
  2545. * test/MultiDiskWriterTest.cc
  2546. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2547. Use HEAD method to get file size from HTTP server for segmented
  2548. downloading.
  2549. The request to the BitTorrent Tracker always uses GET method because
  2550. the response of the tracker is small and it doesn't need segmented
  2551. download.
  2552. * src/FtpNegotiationCommand.cc
  2553. * src/HttpRequest.cc
  2554. * src/HttpResponseCommand.cc
  2555. * src/HttpSkipResponseCommand.cc
  2556. * src/RequestGroup.cc
  2557. * src/RequestGroup.h
  2558. * src/TrackerWatcherCommand.cc
  2559. * test/HttpRequestTest.cc
  2560. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2561. Fixed the bug that causes floating exception when -T option is used and
  2562. no URIs are given.
  2563. * src/download_helper.cc
  2564. * test/DownloadHelperTest.cc
  2565. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2566. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2567. errors in MinGW:
  2568. Closed file after saving server stats (RequestGroupMan.cc)
  2569. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2570. Ignored case & handled 2-digit years (strptime.c)
  2571. Added missing suseconds_t definition (a2time.h)
  2572. Fixed socket CLOSE() define (SocketCore.cc)
  2573. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2574. Changed utime() test values from x000 to x00000 as MinGW failed on
  2575. values less than timezone offset from Unix epoch
  2576. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2577. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2578. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2579. handle negative dates (CookieParserTest.cc)
  2580. * src/a2time.h
  2581. * src/FtpConnection.cc
  2582. * src/RequestGroupMan.cc
  2583. * src/SocketCore.cc
  2584. * src/strptime.c
  2585. * test/CookieParserTest.cc
  2586. * test/CopyDiskAdaptorTest.cc
  2587. * test/FileTest.cc
  2588. * test/FtpConnectionTest.cc
  2589. * test/MultiDiskAdaptorTest.cc
  2590. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2592. * doc/aria2c.1.txt
  2593. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2594. * Release 1.0.0
  2595. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Added '~' to reserved characters.
  2597. * src/Util.cc
  2598. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Do not urlencode Request::url in setUrl() because we want unmodified
  2600. URL using Request::getUrl()
  2601. * src/Request.cc
  2602. * src/Request.h
  2603. * test/RequestTest.cc
  2604. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2606. Thanks to all translators.
  2607. * po/bg.po
  2608. * po/fr.po
  2609. * po/ja.po
  2610. * po/ru.po
  2611. * po/uk.po
  2612. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2613. Bump up version number to 1.0.0
  2614. * configure.ac
  2615. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2616. Added nosqlite3 build to build_test.sh.
  2617. Renamed noxml as expat.
  2618. * build_test.sh
  2619. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2620. Updated INPUT FILE section.
  2621. * doc/aria2c.1.txt
  2622. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2623. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2624. on big endian systems because test .aria2 files are made for little
  2625. endian systems.
  2626. * test/DefaultBtProgressInfoFileTest.cc
  2627. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2628. Dropped ares support.
  2629. * README
  2630. * configure.ac
  2631. * m4/libares.m4: Removed.
  2632. * src/AsyncNameResolver.cc
  2633. * src/Makefile.am
  2634. * test/Makefile.am
  2635. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2637. Removed const qualifier from DiskWriter::size().
  2638. * src/AbstractDiskWriter.cc
  2639. * src/AbstractDiskWriter.h
  2640. * src/ByteArrayDiskWriter.cc
  2641. * src/ByteArrayDiskWriter.h
  2642. * src/DiskWriter.h
  2643. * test/ByteArrayDiskWriterTest.cc
  2644. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2645. Fixed the bug that causes segmentation fault/bus error during executing
  2646. choking algorithm while seeding. This is caused by improper
  2647. implementation of compare function which returns inconsistent results
  2648. depending on the timing of last unchoke.
  2649. * src/BtSeederStateChoke.cc
  2650. * src/BtSeederStateChoke.h
  2651. * src/DefaultPeerStorage.cc
  2652. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Removed TODO
  2654. * TODO
  2655. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Added a section that explains how to pass argument to options that
  2657. takes optional arguments with its short form.
  2658. * doc/aria2c.1.txt
  2659. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Added -u for the short form of --max-upload-limit option.
  2661. * doc/aria2c.1.txt
  2662. * src/option_processing.cc
  2663. * src/usage_text.h
  2664. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Added -V for the short form of --check-integrity option.
  2666. Now the argument of --check-integrity option is optional:
  2667. if it is omitted, it is evaluated as true.
  2668. * doc/aria2c.1.txt
  2669. * src/option_processing.cc
  2670. * src/usage_text.h
  2671. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2672. Made the default value of --ftp-pasv option set to true and it can take
  2673. true/false values.
  2674. * src/OptionHandlerFactory.cc
  2675. * src/option_processing.cc
  2676. * src/usage_text.h
  2677. * doc/aria2c.1.txt
  2678. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2679. Given custom random number generator to std::random_shuffle.
  2680. * src/AnnounceList.cc
  2681. * src/BtLeecherStateChoke.cc
  2682. * src/BtSeederStateChoke.cc
  2683. * src/DefaultBtRequestFactory.cc
  2684. * src/MetalinkEntry.cc
  2685. * src/RarestPieceSelector.cc
  2686. * src/SimpleRandomizer.cc
  2687. * src/SimpleRandomizer.h
  2688. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2689. Now the default value of --enable-direct-io is true.
  2690. * src/OptionHandlerFactory.cc
  2691. * doc/aria2c.1.txt
  2692. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2693. Erase peer before executing onReturningPeer and onErasingPeer
  2694. because choking algorithm called from onReturningPeer doesn't
  2695. like erasing peer in the active peer list.
  2696. * src/DefaultPeerStorage.cc
  2697. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Instead of creating special filename in createDownloadResult() if
  2699. inMemoryDownload() is true, now it is done in getFilePath().
  2700. * src/RequestGroup.cc
  2701. * test/RequestGroupTest.cc
  2702. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2703. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2704. processed in memory. This is the fix for previous comment out.
  2705. * src/MemoryBufferPreDownloadHandler.cc
  2706. * src/RequestGroup.cc
  2707. * src/RequestGroup.h
  2708. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Commented out the code which sets virtual directory path "[MEMORY]"
  2710. propagate directory to store to following RequestGroup.
  2711. * src/MemoryBufferPreDownloadHandler.cc
  2712. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2713. Bump up version number to 1.0.0b
  2714. * configure.ac
  2715. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2716. Added input_uris.txt to EXTRA_DIST
  2717. * test/Makefile.am
  2718. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Removed PeerObject.h from Makefile.am
  2720. * src/Makefile.am
  2721. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2722. Avoid slow seeding
  2723. * src/PeerInteractionCommand.cc
  2724. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2725. Updated usage for -i option.
  2726. * src/usage_text.h (TEXT_INPUT_FILE)
  2727. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2728. Added INPUT FILE section to man page.
  2729. Escaped fake URLs.
  2730. * doc/aria2c.1.txt
  2731. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2732. Fixed wrong note position for -o option.
  2733. * doc/aria2c.1.txt
  2734. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2735. Fixed compile error without SSL/XML library.
  2736. * src/DefaultBtProgressInfoFile.cc
  2737. * src/DefaultBtProgressInfoFile.h
  2738. * src/FileMetalinkParserState.cc
  2739. * src/RequestGroup.h
  2740. * src/SocketCore.cc
  2741. * src/SocketCore.h
  2742. * src/VerificationMetalinkParserState.cc
  2743. * src/download_helper.h
  2744. * src/main.cc
  2745. * test/DefaultBtProgressInfoFileTest.cc
  2746. * test/DownloadHelperTest.cc
  2747. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2748. Rewritten URI handling functions. They are now provided as a testable
  2749. functions.
  2750. * src/Makefile.am
  2751. * src/RequestGroup.cc
  2752. * src/RequestGroup.h
  2753. * src/download_helper.cc
  2754. * src/download_helper.h
  2755. * src/main.cc
  2756. * test/DownloadHelperTest.cc
  2757. * test/Makefile.am
  2758. * test/input_uris.txt
  2759. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Quickly terminate commands when ctrl-c is pressed.
  2761. * src/DownloadEngine.cc
  2762. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2763. Quickly terminate idle commands when download finished.
  2764. * src/AbstractCommand.cc
  2765. * src/DownloadCommand.cc
  2766. * src/DownloadEngine.cc
  2767. * src/DownloadEngine.h
  2768. * src/SleepCommand.cc
  2769. * src/SleepCommand.h
  2770. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. Added the ability to specify output filename and directory in input
  2772. file.
  2773. Additional parameters are added in the following line of URIs
  2774. with proceeding white space(s), 1 parameter in 1 line.
  2775. The parameter names are the same with the command-line option name
  2776. without proceeding "--". Not all the options are available here:
  2777. at the moment, 'dir' and 'out' options are avialable.
  2778. Please note that out option has no effect against Metalink or BitTorrent
  2779. downloads.
  2780. Example input file:
  2781. http://host/foo-1.1.tar.bz2
  2782. out=foo.tar.bz2
  2783. dir=/tmp/downloads
  2784. http://host/thundermonkey-2.0.tar.bz2
  2785. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2786. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2787. thundermonkey-2.0.tar.bz2 is saved as
  2788. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2789. * src/BtPostDownloadHandler.cc
  2790. * src/Metalink2RequestGroup.cc
  2791. * src/Metalink2RequestGroup.h
  2792. * src/MetalinkPostDownloadHandler.cc
  2793. * src/UriListParser.cc
  2794. * src/UriListParser.h
  2795. * src/main.cc
  2796. * test/Metalink2RequestGroupTest.cc
  2797. * test/UriListParserTest.cc
  2798. * test/filelist1.txt
  2799. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Fixed error when SSL library is not found.
  2801. * configure.ac
  2802. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Cross referenced among -s, -C and -j options.
  2804. Updated usage of -C and -s options.
  2805. * src/usage_text.h
  2806. * doc/aria2c.1.txt
  2807. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2808. Fixed bad cast in 32bit platforms.
  2809. * test/DefaultPieceStorageTest.cc
  2810. (DefaultPieceStorageTest::testGetCompletedLength)
  2811. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Fixed unit test fails on 32bit platforms.
  2813. * test/CookieParserTest.cc
  2814. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2815. Show an average download speed in Download results.
  2816. * src/BtFileAllocationEntry.cc
  2817. * src/DefaultPieceStorage.cc
  2818. * src/DownloadContext.cc
  2819. * src/DownloadContext.h
  2820. * src/DownloadResult.h
  2821. * src/RequestGroup.cc
  2822. * src/RequestGroupMan.cc
  2823. * src/StreamFileAllocationEntry.cc
  2824. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2825. Fixed the bug that metalink file is not processed if Content-Type
  2826. field has a paramter.
  2827. * src/HttpResponse.cc
  2828. * src/HttpResponse.h
  2829. * test/HttpResponseTest.cc
  2830. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Removed unused code.
  2832. * src/DefaultBtAnnounce.cc
  2833. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2834. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2835. the value larger than DefaultPieceStorage::getTotalLength() when
  2836. in flight pieces are involved.
  2837. * src/DefaultPieceStorage.cc
  2838. * test/DefaultPieceStorageTest.cc
  2839. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Bump up version number to 1.0.0a.
  2841. * configure.ac
  2842. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Updated configure.ac
  2844. * configure.ac
  2845. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. Added usege for proxy.
  2847. * doc/aria2c.1.txt
  2848. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Added usage for --ca-certificate, --certificate, --private-key and
  2850. --check-certificate options.
  2851. * doc/aria2c.1.txt
  2852. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2853. Updated man page
  2854. * doc/aria2c.1.txt
  2855. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. Added --no-proxy option. It receives comman separated hostname or
  2857. domains to which proxy should not be used.
  2858. aria2 honors the environment variable no_proxy to override no-proxy
  2859. value in configuration file. The user can override the environment
  2860. variable no_proxy with --no-proxy command-line option.
  2861. * src/AbstractCommand.cc
  2862. * src/OptionHandlerFactory.cc
  2863. * src/option_processing.cc
  2864. * src/prefs.cc
  2865. * src/prefs.h
  2866. * src/usage_text.h
  2867. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2868. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2869. The CA certificates are specified in --ca-certificate option.
  2870. By default, the verification is disabled. Use --check-certificate
  2871. option to enable it.
  2872. * src/HttpRequestCommand.cc
  2873. * src/LibgnutlsTLSContext.cc
  2874. * src/LibgnutlsTLSContext.h
  2875. * src/LibsslTLSContext.cc
  2876. * src/LibsslTLSContext.h
  2877. * src/MultiUrlRequestInfo.cc
  2878. * src/OptionHandlerFactory.cc
  2879. * src/SocketCore.cc
  2880. * src/SocketCore.h
  2881. * src/a2functional.h
  2882. * src/message.h
  2883. * src/option_processing.cc
  2884. * src/prefs.cc
  2885. * src/prefs.h
  2886. * src/usage_text.h
  2887. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2888. Added client certificate authentication for SSL/TLS.
  2889. Currently a private key must be decrypted for use with aria2.
  2890. If a user accidentally gives encrypted file to aria2 then following
  2891. thing happens:
  2892. If encrypted private key is given to aria2, it behaves differently
  2893. depending on the ssl library it uses. If aria2 built with openssl then
  2894. openssl prompts the user for password. If aria2 build with gnutls then
  2895. aria2 exists with error at start up.
  2896. * src/DownloadEngineFactory.cc
  2897. * src/MultiUrlRequestInfo.cc
  2898. * src/OptionHandlerFactory.cc
  2899. * src/option_processing.cc
  2900. * src/prefs.cc
  2901. * src/prefs.h
  2902. * src/usage_text.h
  2903. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2904. Introduced TLSContext that holds TLS related data that can be shared
  2905. with multiple SSL connections.
  2906. * src/DownloadEngineFactory.cc
  2907. * src/LibgnutlsTLSContext.cc
  2908. * src/LibgnutlsTLSContext.h
  2909. * src/LibsslTLSContext.cc
  2910. * src/LibsslTLSContext.h
  2911. * src/Makefile.am
  2912. * src/SocketCore.cc
  2913. * src/SocketCore.h
  2914. * src/TLSContext.h
  2915. * src/message.h
  2916. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2917. Fixed the bug that the DiskWriter of the first FileEntry whose
  2918. `needsFileAllocation' property is false is not created
  2919. even if it shares a piece with next FileEntry which `requested' property
  2920. is true.
  2921. Fixed the bug that zero-length file is not created if pre file
  2922. allocation is not done.
  2923. * src/MultiDiskAdaptor.cc
  2924. * src/MultiDiskAdaptor.h
  2925. * test/MultiDiskAdaptorTest.cc
  2926. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2927. Added the ability to pool proxy connection.
  2928. The conneciton in FTP with proxy-method=GET is not pooled.
  2929. Proxy-Connection header will not be sent when sending CONNECT method.
  2930. * src/DownloadEngine.cc
  2931. * src/DownloadEngine.h
  2932. * src/FtpFinishDownloadCommand.cc
  2933. * src/FtpInitiateConnectionCommand.cc
  2934. * src/FtpNegotiationCommand.cc
  2935. * src/HttpDownloadCommand.cc
  2936. * src/HttpInitiateConnectionCommand.cc
  2937. * src/HttpRequest.cc
  2938. * src/HttpRequest.h
  2939. * src/HttpResponse.cc
  2940. * src/HttpSkipResponseCommand.cc
  2941. * test/HttpRequestTest.cc
  2942. * test/HttpResponseTest.cc
  2943. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2944. Handle date before epoch.
  2945. To create *bad* Time object, call Time::null().
  2946. * src/CookieParser.cc
  2947. * src/FtpConnection.cc
  2948. * src/FtpConnection.h
  2949. * src/FtpNegotiationCommand.cc
  2950. * src/RequestGroup.cc
  2951. * src/TimeA2.cc
  2952. * src/TimeA2.h
  2953. * test/CookieParserTest.cc
  2954. * test/FtpConnectionTest.cc
  2955. * test/TimeTest.cc
  2956. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2957. Added support for following envrionment variables: http_proxy,
  2958. https_proxy, ftp_proxy and all_proxy.
  2959. Each variable is equivalent to the aria2 option whose name is the
  2960. variable name with '_' replaced with '-'.
  2961. They overrides options specified in aria2.conf file.
  2962. The envrionment variables can be overrode using command-line option.
  2963. * src/option_processing.cc
  2964. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2965. Renamed --http-proxy-method as --proxy-method.
  2966. * src/AbstractCommand.cc
  2967. * src/FtpInitiateConnectionCommand.cc
  2968. * src/HttpInitiateConnectionCommand.cc
  2969. * src/OptionHandlerFactory.cc
  2970. * src/option_processing.cc
  2971. * src/prefs.cc
  2972. * src/prefs.h
  2973. * src/usage_text.h
  2974. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2975. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2976. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2977. Above 3 options and --http-proxy option can handle proxy in URL format
  2978. like: http://user:passwd@host:port.
  2979. If a proxy requires user/password, they must be specified in a URL.
  2980. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2981. instead.
  2982. * src/AbstractCommand.cc
  2983. * src/AbstractCommand.h
  2984. * src/AbstractProxyRequestCommand.cc
  2985. * src/AbstractProxyRequestCommand.h
  2986. * src/AuthConfigFactory.cc
  2987. * src/AuthConfigFactory.h
  2988. * src/FtpFinishDownloadCommand.cc
  2989. * src/FtpInitiateConnectionCommand.cc
  2990. * src/FtpInitiateConnectionCommand.h
  2991. * src/FtpNegotiationCommand.cc
  2992. * src/FtpTunnelRequestCommand.cc
  2993. * src/FtpTunnelRequestCommand.h
  2994. * src/HttpDownloadCommand.cc
  2995. * src/HttpInitiateConnectionCommand.cc
  2996. * src/HttpInitiateConnectionCommand.h
  2997. * src/HttpProxyRequestCommand.cc
  2998. * src/HttpProxyRequestCommand.h
  2999. * src/HttpRequest.cc
  3000. * src/HttpRequest.h
  3001. * src/HttpRequestCommand.cc
  3002. * src/HttpRequestCommand.h
  3003. * src/HttpSkipResponseCommand.cc
  3004. * src/InitiateConnectionCommand.cc
  3005. * src/InitiateConnectionCommand.h
  3006. * src/OptionHandlerFactory.cc
  3007. * src/OptionHandlerImpl.h
  3008. * src/Request.cc
  3009. * src/option_processing.cc
  3010. * src/prefs.cc
  3011. * src/prefs.h
  3012. * src/usage_text.h
  3013. * test/AuthConfigFactoryTest.cc
  3014. * test/HttpRequestTest.cc
  3015. * test/OptionHandlerTest.cc
  3016. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3017. Execute choking algorithm when unchoked and interested peer is
  3018. disconected.
  3019. * src/DefaultPeerStorage.cc
  3020. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3021. Added testcase for BtNotInterestedMessage from unchoked peer.
  3022. * test/BtNotInterestedMessageTest.cc
  3023. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3024. Execute choking algorithm when BtInterestedMessage arrives from
  3025. unchoked peer.
  3026. * src/BtInterestedMessage.cc
  3027. * src/BtInterestedMessage.h
  3028. * src/DefaultBtMessageFactory.cc
  3029. * test/BtInterestedMessageTest.cc
  3030. * test/MockPeerStorage.h
  3031. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3032. AuthConfigFactory is now part of DownloadEngine.
  3033. * src/AbstractProxyRequestCommand.cc
  3034. * src/AuthConfigFactory.h
  3035. * src/DownloadEngine.cc
  3036. * src/DownloadEngine.h
  3037. * src/FtpConnection.cc
  3038. * src/FtpConnection.h
  3039. * src/FtpNegotiationCommand.cc
  3040. * src/HttpConnection.cc
  3041. * src/HttpRequest.cc
  3042. * src/HttpRequest.h
  3043. * src/HttpRequestCommand.cc
  3044. * src/HttpResponse.cc
  3045. * src/HttpResponseCommand.cc
  3046. * src/HttpSkipResponseCommand.cc
  3047. * src/MultiUrlRequestInfo.cc
  3048. * src/main.cc
  3049. * test/FtpConnectionTest.cc
  3050. * test/HttpRequestTest.cc
  3051. * test/HttpResponseTest.cc
  3052. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3053. Corrected catched exception type.
  3054. * src/ServerStatMan.cc
  3055. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3056. DNSCache is now part of DownloadEngine.
  3057. * src/DNSCache.h
  3058. * src/DownloadEngine.cc
  3059. * src/DownloadEngine.h
  3060. * src/InitiateConnectionCommand.cc
  3061. * src/MultiUrlRequestInfo.cc
  3062. * test/Makefile.am
  3063. * test/Makefile.in
  3064. * test/SimpleDNSCacheTest.cc
  3065. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3066. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  3067. DownloadEngine.
  3068. * src/ActivePeerConnectionCommand.cc
  3069. * src/BtSetup.cc
  3070. * src/CUIDCounter.h
  3071. * src/DHTSetup.cc
  3072. * src/DownloadCommand.cc
  3073. * src/DownloadEngine.cc
  3074. * src/DownloadEngine.h
  3075. * src/DownloadEngineFactory.cc
  3076. * src/FileAllocationDispatcherCommand.cc
  3077. * src/InitiatorMSEHandshakeCommand.cc
  3078. * src/PeerInitiateConnectionCommand.cc
  3079. * src/PeerInteractionCommand.cc
  3080. * src/PeerListenCommand.cc
  3081. * src/RequestGroup.cc
  3082. * src/StreamFileAllocationEntry.cc
  3083. * src/TrackerWatcherCommand.cc
  3084. * src/main.cc
  3085. * test/RequestGroupManTest.cc
  3086. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3087. Implemented commented code in BtSeederStateChoke
  3088. * src/BtSeederStateChoke.cc
  3089. * src/Peer.cc
  3090. * src/Peer.h
  3091. * src/PeerInteractionCommand.cc
  3092. * src/PeerSessionResource.cc
  3093. * src/PeerSessionResource.h
  3094. * test/MockBtMessageDispatcher.h
  3095. * test/PeerSessionResourceTest.cc
  3096. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3097. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3098. its object.
  3099. * src/AbstractBtMessage.cc
  3100. * src/ActivePeerConnectionCommand.cc
  3101. * src/ActivePeerConnectionCommand.h
  3102. * src/BtContextAwareCommand.cc
  3103. * src/BtContextAwareCommand.h
  3104. * src/BtExtendedMessage.cc
  3105. * src/BtExtendedMessage.h
  3106. * src/BtInterestedMessage.cc
  3107. * src/BtInterestedMessage.h
  3108. * src/BtNotInterestedMessage.cc
  3109. * src/BtNotInterestedMessage.h
  3110. * src/BtRegistry.cc
  3111. * src/BtRegistry.h
  3112. * src/BtSeederStateChoke.cc
  3113. * src/BtSetup.cc
  3114. * src/DHTGetPeersCommand.cc
  3115. * src/DHTGetPeersCommand.h
  3116. * src/DHTPeerAnnounceEntry.cc
  3117. * src/DHTPeerAnnounceEntry.h
  3118. * src/DHTPeerAnnounceStorage.cc
  3119. * src/DHTPeerAnnounceStorage.h
  3120. * src/DHTPeerLookupTask.cc
  3121. * src/DHTPeerLookupTask.h
  3122. * src/DHTSetup.cc
  3123. * src/DHTSetup.h
  3124. * src/DHTTaskFactory.h
  3125. * src/DHTTaskFactoryImpl.cc
  3126. * src/DHTTaskFactoryImpl.h
  3127. * src/DefaultBtAnnounce.cc
  3128. * src/DefaultBtInteractive.cc
  3129. * src/DefaultBtInteractive.h
  3130. * src/DefaultBtMessageDispatcher.cc
  3131. * src/DefaultBtMessageDispatcher.h
  3132. * src/DefaultBtMessageFactory.cc
  3133. * src/DefaultBtMessageFactory.h
  3134. * src/DefaultBtMessageReceiver.cc
  3135. * src/DefaultBtProgressInfoFile.cc
  3136. * src/DefaultBtProgressInfoFile.h
  3137. * src/DefaultBtRequestFactory.cc
  3138. * src/DefaultBtRequestFactory.h
  3139. * src/DefaultExtensionMessageFactory.cc
  3140. * src/DefaultExtensionMessageFactory.h
  3141. * src/DefaultPeerStorage.cc
  3142. * src/DefaultPeerStorage.h
  3143. * src/DownloadEngine.cc
  3144. * src/DownloadEngine.h
  3145. * src/InitiatorMSEHandshakeCommand.cc
  3146. * src/InitiatorMSEHandshakeCommand.h
  3147. * src/MSEHandshake.cc
  3148. * src/MSEHandshake.h
  3149. * src/Makefile.am
  3150. * src/Makefile.in
  3151. * src/PeerChokeCommand.cc
  3152. * src/PeerChokeCommand.h
  3153. * src/PeerInitiateConnectionCommand.cc
  3154. * src/PeerInitiateConnectionCommand.h
  3155. * src/PeerInteractionCommand.cc
  3156. * src/PeerInteractionCommand.h
  3157. * src/PeerObject.h
  3158. * src/PeerReceiveHandshakeCommand.cc
  3159. * src/PeerReceiveHandshakeCommand.h
  3160. * src/ReceiverMSEHandshakeCommand.cc
  3161. * src/RequestGroup.cc
  3162. * src/RequestGroup.h
  3163. * src/RequestGroupMan.cc
  3164. * src/RequestGroupMan.h
  3165. * src/SeedCheckCommand.cc
  3166. * src/SeedCheckCommand.h
  3167. * src/ShareRatioSeedCriteria.h
  3168. * src/SimpleBtMessage.cc
  3169. * src/TrackerWatcherCommand.cc
  3170. * src/TrackerWatcherCommand.h
  3171. * src/UTPexExtensionMessage.cc
  3172. * src/UTPexExtensionMessage.h
  3173. * test/BtCancelMessageTest.cc
  3174. * test/BtChokeMessageTest.cc
  3175. * test/BtExtendedMessageTest.cc
  3176. * test/BtInterestedMessageTest.cc
  3177. * test/BtNotInterestedMessageTest.cc
  3178. * test/BtPieceMessageTest.cc
  3179. * test/BtPortMessageTest.cc
  3180. * test/BtRegistryTest.cc
  3181. * test/BtRejectMessageTest.cc
  3182. * test/BtRequestMessageTest.cc
  3183. * test/DHTPeerAnnounceEntryTest.cc
  3184. * test/DHTPeerAnnounceStorageTest.cc
  3185. * test/DefaultBtMessageDispatcherTest.cc
  3186. * test/DefaultBtMessageFactoryTest.cc
  3187. * test/DefaultBtProgressInfoFileTest.cc
  3188. * test/DefaultBtRequestFactoryTest.cc
  3189. * test/DefaultExtensionMessageFactoryTest.cc
  3190. * test/MSEHandshakeTest.cc
  3191. * test/MockDHTTaskFactory.h
  3192. * test/ShareRatioSeedCriteriaTest.cc
  3193. * test/UTPexExtensionMessageTest.cc
  3194. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Fixed compiler warning.
  3196. * test/UtilTest.cc
  3197. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3198. Treat Cookie object as session cookie if expiry = 0 is given.
  3199. With this change, you can specify session scoped cookies in an external
  3200. file setting expiry value to 0.
  3201. * src/Cookie.cc
  3202. * src/Cookie.h
  3203. * test/CookieParserTest.cc
  3204. * test/CookieStorageTest.cc
  3205. * test/CookieTest.cc
  3206. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3207. Changed signature of DHTMessageFactory::createResponseMessage().
  3208. Removed unused validateIDMatch.
  3209. * src/DHTMessageFactory.h
  3210. * src/DHTMessageFactoryImpl.cc
  3211. * src/DHTMessageFactoryImpl.h
  3212. * src/DHTMessageTracker.cc
  3213. * test/DHTMessageFactoryImplTest.cc
  3214. * test/MockDHTMessageFactory.h
  3215. Dropped DHT message coming from same ID of localhost.
  3216. * src/DHTMessageReceiver.cc
  3217. Rejected adding node whose ID is the same as localhost's.
  3218. * src/DHTRoutingTable.cc
  3219. * test/BtPortMessageTest.cc
  3220. * test/DHTRoutingTableTest.cc
  3221. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3222. Pool connection when redirection occurs with Content-Length = 0.
  3223. * src/HttpSkipResponseCommand.cc
  3224. * src/HttpSkipResponseCommand.h
  3225. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3226. Fixed the bug that causes time out when redirection occurs with
  3227. content-length 0.
  3228. * src/HttpResponseCommand.cc
  3229. * src/HttpSkipResponseCommand.cc
  3230. * src/HttpSkipResponseCommand.h
  3231. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3232. Now each status legends is shown only when it appears in Download
  3233. Result. If Download Result has no item, then status legend will not
  3234. be printed.
  3235. * src/RequestGroupMan.cc
  3236. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. Removed duplicate creation of OptionHandlers.
  3238. * src/option_processing.cc
  3239. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. Fixed the bug that causes segmentation fault when accessing files which
  3241. don't exist or are not included in --select-file option while
  3242. validating chunk checksum.
  3243. * src/MultiDiskAdaptor.cc
  3244. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3245. Fixed compiler warning.
  3246. * test/UtilTest.cc
  3247. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3248. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3249. * src/IteratableChecksumValidator.cc
  3250. * src/IteratableChunkChecksumValidator.cc
  3251. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. * Release 0.16.2
  3253. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3254. Added Serbian translation. Updated Ukrainian translation.
  3255. Thanks to all translators.
  3256. * po/sr.po
  3257. * po/uk.po
  3258. * po/LINGUAS
  3259. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. Bump up version number to 0.16.2
  3261. * configure.ac
  3262. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3263. Added length equality test to operator== to drop a piece message
  3264. whose length does not match to the requested one.
  3265. * src/RequestSlot.cc
  3266. * test/DefaultBtMessageDispatcherTest.cc
  3267. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3269. recieved.
  3270. In this fix, if a request larger than 16KiB length is received, aria2
  3271. disconnects the peer.
  3272. * src/BtConstants.h
  3273. * src/PeerMessageUtil.cc
  3274. * src/PeerMessageUtil.h
  3275. * test/BtRequestMessageTest.cc
  3276. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3277. * Release 0.16.1
  3278. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3279. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3280. * doc/aria2c.1.txt
  3281. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3283. Updated French, Simplified Chinese and Japanese translations.
  3284. Thanks to all translators.
  3285. en@quot and en@boldquot are also added.
  3286. * po/LINGUAS
  3287. * po/fr.po
  3288. * po/ja.po
  3289. * po/uk.po
  3290. * po/vi.po
  3291. * po/zh_CN.po
  3292. * po/zh_TW.po
  3293. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3294. Bump up version number to 0.16.1.
  3295. * configure.ac
  3296. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3297. Updated README.
  3298. * README
  3299. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3300. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3301. not to replace '--' with em dash character.
  3302. * doc/aria2c.1.txt
  3303. * doc/makeman
  3304. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3305. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3306. every SEC seconds.
  3307. * src/DownloadEngineFactory.cc
  3308. * src/OptionHandlerFactory.cc
  3309. * src/option_processing.cc
  3310. * src/usage_text.h
  3311. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3312. Fixed compile warning on linux-amd64
  3313. * src/FtpConnection.cc
  3314. * src/IteratableChunkChecksumValidator.cc
  3315. * src/MultiDiskAdaptor.cc
  3316. Fixed the bug that unit test fails on linux-amd64
  3317. * test/UtilTest.cc
  3318. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3319. Added --dht-file-path option to change the path to dht.dat, which is a
  3320. serialized DHT routing table.
  3321. * src/OptionHandlerFactory.cc
  3322. * src/option_processing.cc
  3323. * src/usage_text.h
  3324. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3325. Fixed possible underflow.
  3326. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3327. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3328. Fixed the bug that last character in URI is not encoded.
  3329. * src/Request.cc
  3330. * test/RequestTest.cc
  3331. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3332. Fixed the bug that referer header field contains fragment.
  3333. Now Request class removes fragment part of URI and encodes it
  3334. in Request::setUri() and setReferer().
  3335. * src/Request.h
  3336. * src/Request.cc
  3337. * test/RequestTest.cc
  3338. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3339. Added missing m4 macros.
  3340. * m4/cppunit.m4
  3341. * m4/libgcrypt.m4
  3342. * m4/libgnutls-extra.m4
  3343. * m4/libgnutls.m4
  3344. * m4/libxml2.m4
  3345. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3346. Fixed compile error with gcc-4.4(snapshot)
  3347. * src/File.cc
  3348. * src/FtpConnection.cc
  3349. * src/OptionHandlerImpl.h
  3350. * src/Util.cc
  3351. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Removed assert()
  3353. * src/SocketBuffer.cc (SocketBuffer::send)
  3354. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Changed the type of _numNewConnection to unsigned int.
  3356. * src/ActivePeerConnectionCommand.cc
  3357. * src/ActivePeerConnectionCommand.h
  3358. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. * Release 0.16.0
  3360. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3361. Updated doc
  3362. * README
  3363. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3364. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3365. translations. Thanks to all translators.
  3366. * po/bg.po
  3367. * po/de.po
  3368. * po/fr.po
  3369. * po/ja.po
  3370. * po/zh_CN.po
  3371. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3372. Bump up version number to 0.16.0.
  3373. * configure.ac
  3374. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3375. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3376. int32_t.
  3377. Changed the type of count to int32_t.
  3378. * src/Metalink2RequestGroup.cc
  3379. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3380. Added test for Time::elapsed(time_t).
  3381. * test/TimeTest.cc
  3382. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3383. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3384. Util::difftv() should be used instead.
  3385. * src/TimeA2.cc
  3386. * src/TimeA2.h
  3387. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Made socket for dht connections non-blocking
  3389. * src/DHTAbstractMessage.cc
  3390. * src/DHTAbstractMessage.h
  3391. * src/DHTConnection.h
  3392. * src/DHTConnectionImpl.cc
  3393. * src/DHTConnectionImpl.h
  3394. * src/DHTMessage.h
  3395. * src/DHTMessageDispatcherImpl.cc
  3396. * src/DHTMessageDispatcherImpl.h
  3397. * src/DHTUnknownMessage.cc
  3398. * src/DHTUnknownMessage.h
  3399. * src/SocketCore.cc
  3400. * src/SocketCore.h
  3401. * test/MockDHTMessage.h
  3402. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3403. Changed the type of offset to int.
  3404. * src/ParameterizedStringParser.cc
  3405. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3406. Made getAsInt() return int32_t
  3407. * src/Option.h
  3408. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3409. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3410. build.
  3411. * configure.ac
  3412. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3413. Use sqlite3_open if sqlite3_open_v2 is not available.
  3414. * src/Sqlite3MozCookieParser.cc
  3415. * src/Sqlite3MozCookieParser.h
  3416. * m4/sqlite3.m4
  3417. * test/Sqlite3MozCookieParserTest.cc
  3418. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3419. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3420. * src/BtPieceMessage.cc
  3421. * src/DHTPeerAnnounceStorage.cc
  3422. * src/DefaultPieceStorage.cc
  3423. * src/DownloadCommand.cc
  3424. * src/DownloadEngine.cc
  3425. * src/FtpConnection.cc
  3426. * src/PeerConnection.cc
  3427. * src/PeerMessageUtil.cc
  3428. * src/RequestGroup.cc
  3429. * src/RequestGroupMan.cc
  3430. * src/SimpleBtMessage.cc
  3431. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3432. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3433. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3434. * src/AbstractDiskWriter.cc
  3435. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3436. Don't set Request::supportsPersistentConnection() in HttpConnection
  3437. since this code is also used in AbstractProxyResponseCommand.
  3438. Moved those code to HttpResponse.
  3439. * src/HttpResponse.cc
  3440. * src/HttpResponse.h
  3441. * src/HttpConnection.cc
  3442. * src/HttpConnection.h
  3443. * src/HttpResponseCommand.cc
  3444. * test/HttpResponseTest.cc
  3445. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3446. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3447. The configuration is minimum: no torrent, no metalink, so there may be
  3448. other compile error on their code.
  3449. * src/a2netcompat.h
  3450. * src/File.cc
  3451. * src/File.h
  3452. * src/SocketCore.cc
  3453. * src/SocketCore.h
  3454. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3455. Made a socket of incoming peer non-blocking.
  3456. * src/PeerListenCommand.cc
  3457. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3458. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3459. whole message data is not sent in one send() call.
  3460. * src/BtPieceMessage.cc
  3461. * src/BtPieceMessage.h
  3462. * src/PeerConnection.cc
  3463. * src/PeerConnection.h
  3464. * src/SimpleBtMessage.cc
  3465. * src/SimpleBtMessage.h
  3466. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3467. Fixed the bug that aria2 downloads faster than max-download-limit when
  3468. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3469. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3470. , instead of sum of them.
  3471. * src/ActivePeerConnectionCommand.cc
  3472. * src/DefaultBtInteractive.cc
  3473. * src/DownloadCommand.cc
  3474. * src/PeerInteractionCommand.cc
  3475. * src/PeerReceiveHandshakeCommand.cc
  3476. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3477. Fixed the bug that HTTPS download fails.
  3478. * src/AbstractCommand.cc
  3479. * src/AbstractCommand.h
  3480. * src/DownloadCommand.cc
  3481. * src/FtpConnection.cc
  3482. * src/HttpConnection.cc
  3483. * src/HttpRequestCommand.cc
  3484. * src/HttpResponseCommand.cc
  3485. * src/HttpSkipResponseCommand.cc
  3486. * src/MSEHandshake.cc
  3487. * src/PeerConnection.cc
  3488. * src/SocketCore.cc
  3489. * src/SocketCore.h
  3490. Fixed the bug that aria2 doesn't download whole content body and cannot
  3491. reuse connection if chunked transfer encoding and gzip content encoding
  3492. are set.
  3493. * src/DownloadCommand.cc
  3494. * src/HttpSkipResponseCommand.cc
  3495. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Updated man page.
  3497. * doc/aria2c.1.txt
  3498. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3499. When error occurred while aria2 was parsing an .aria2.conf file, print
  3500. the usage of the option that caused error.
  3501. * src/option_processing.cc
  3502. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3503. Fixed compile error on OptionHandlerException
  3504. * src/Makefile.am
  3505. * src/OptionHandlerException.cc
  3506. * src/OptionHandlerException.h
  3507. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3508. Moved message of the error to OptionHandlerException.h
  3509. * src/NameMatchOptionHandler.h
  3510. * src/OptionHandlerException.h
  3511. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. When error occurs while aria2 is parsing an command-line option, print
  3513. the usage of the option.
  3514. * src/Makefile.am
  3515. * src/NameMatchOptionHandler.h
  3516. * src/OptionHandlerException.h
  3517. * src/option_processing.cc
  3518. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3519. Reverted previous change.
  3520. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3521. username is not in URI.
  3522. * src/HttpRequest.cc
  3523. * src/Request.cc
  3524. * test/HttpRequestTest.cc
  3525. * test/RequestTest.cc
  3526. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3527. Now colon is required for username and password in FTP URL, like:
  3528. ftp://username:password@host.
  3529. If colon is not there, aria2 don't parse it as a username. For example,
  3530. aria2 don't retrieve username from ftp://username@host.
  3531. This fix was made in order to login FTP server via non-transparent ftp
  3532. proxy.
  3533. * src/Request.cc
  3534. * test/RequestTest.cc
  3535. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3536. Use netrc for HTTP.
  3537. Now FTP user/password is sent in Authorization header when
  3538. --ftp-via-http-proxy=get is given.
  3539. * src/AuthConfigFactory.cc
  3540. * src/HttpRequest.cc
  3541. * src/HttpRequest.h
  3542. * src/NetrcAuthResolver.cc
  3543. * src/NetrcAuthResolver.h
  3544. * src/OptionHandlerFactory.cc
  3545. * src/option_processing.cc
  3546. * src/prefs.cc
  3547. * src/prefs.h
  3548. * test/AuthConfigFactoryTest.cc
  3549. * test/HttpRequestTest.cc
  3550. * test/NetrcAuthResolverTest.cc
  3551. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3552. Issue PWD command first and get working directory and use it as a prefix
  3553. for CWD command.
  3554. * src/DownloadEngine.cc
  3555. * src/DownloadEngine.h
  3556. * src/FtpConnection.cc
  3557. * src/FtpConnection.h
  3558. * src/FtpFinishDownloadCommand.cc
  3559. * src/FtpInitiateConnectionCommand.cc
  3560. * src/FtpNegotiationCommand.cc
  3561. * src/FtpNegotiationCommand.h
  3562. * test/FtpConnectionTest.cc
  3563. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3564. Removed default user/pass for FTP user/pass, since it should not have
  3565. precedence over netrc configuration by default.
  3566. * src/OptionHandlerFactory.cc
  3567. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3568. Added debug log for socket event.
  3569. * src/AbstractCommand.cc
  3570. * src/PeerAbstractCommand.cc
  3571. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3572. Log microseconds.
  3573. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3574. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Replaced HelpItem.cc with OptionHandler.cc.
  3576. * po/POTFILES.in
  3577. Updated po files with 'make update-po'
  3578. * po/aria2c.pot
  3579. * po/*.po
  3580. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3581. Removed possible values from the text.
  3582. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3583. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3584. Removed unused preferences:
  3585. PREF_NO_PREALLOCATION
  3586. PREF_STDOUT_LOG
  3587. PREF_TRACKER_MAX_TRIES
  3588. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3589. PREF_MIN_SEGMENT_SIZE
  3590. * src/option_processing.cc
  3591. * src/prefs.cc
  3592. * src/prefs.h
  3593. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3594. Integrated HelpItem into OptionParser to ease the workload for adding
  3595. new options. Removed default value from usage text.
  3596. * src/HelpItem.cc: Removed.
  3597. * src/HelpItem.h: Removed.
  3598. * src/HelpItemFactory.cc: Removed.
  3599. * src/HelpItemFactory.h: Removed.
  3600. * src/Makefile.am
  3601. * src/Makefile.in
  3602. * src/NameMatchOptionHandler.h
  3603. * src/OptionHandler.cc
  3604. * src/OptionHandler.h
  3605. * src/OptionHandlerFactory.cc
  3606. * src/OptionHandlerImpl.h
  3607. * src/OptionParser.cc
  3608. * src/OptionParser.h
  3609. * src/TagContainer.cc: Removed.
  3610. * src/TagContainer.h: Removed.
  3611. * src/TaggedItem.cc: Removed.
  3612. * src/TaggedItem.h: Removed.
  3613. * src/main.cc
  3614. * src/option_processing.cc
  3615. * src/usage_text.h
  3616. * src/version_usage.cc
  3617. * test/HelpItemTest.cc: Removed.
  3618. * test/Makefile.am
  3619. * test/Makefile.in
  3620. * test/OptionHandlerTest.cc
  3621. * test/OptionParserTest.cc
  3622. * test/TagContainerTest.cc: Removed.
  3623. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3624. Moved `TransferStat stat = ...' to inside the `if' clause.
  3625. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3626. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3627. Fixed the bug that a block in a piece is requested when same block is
  3628. already requested to the same peer in end game mode.
  3629. * src/BtRequestFactory.h
  3630. * src/DefaultBtInteractive.cc
  3631. * src/DefaultBtRequestFactory.cc
  3632. * src/DefaultBtRequestFactory.h
  3633. * src/DefaultPieceStorage.cc
  3634. * src/DefaultPieceStorage.h
  3635. * src/PieceStorage.h
  3636. * src/UnknownLengthPieceStorage.cc
  3637. * src/UnknownLengthPieceStorage.h
  3638. * test/DefaultBtRequestFactoryTest.cc
  3639. * test/DefaultPieceStorageTest.cc
  3640. * test/MockBtRequestFactory.h
  3641. * test/MockPieceStorage.h
  3642. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3643. Removed _uploadLength and _downloadLength from PeerSessionResource
  3644. and use PeerStat::_sessionUploadLength and
  3645. PeerStat::_sessionDownloadLength.
  3646. * src/PeerSessionResource.cc
  3647. * src/PeerSessionResource.h
  3648. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3649. Fixed the bug that prefixLength of split bucket which doesn't include
  3650. local node ID is incremented.
  3651. * src/DHTBucket.cc
  3652. * src/DHTBucket.h
  3653. * test/DHTBucketTest.cc
  3654. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3655. Added cookies.sqlite to EXTRA_DIST
  3656. * test/Makefile.am
  3657. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3658. Added Turkish translation. Updated French, German, Russian and
  3659. Simplified Chinese translations. Thanks to all translators.
  3660. * po/LINGUAS
  3661. * po/de.po
  3662. * po/fr.po
  3663. * po/ru.po
  3664. * po/tr.po
  3665. * po/zh_CN.po
  3666. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3667. Added deliminating text to the beginning of the log so that one can find
  3668. where the log starts easily.
  3669. * src/main.cc
  3670. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3671. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3672. to fix compile error when async DNS is not enabled by configuration.
  3673. * src/AbstractCommand.cc
  3674. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3675. If establishing conneciton to a server is failed, then mark error on
  3676. its ServerStat.
  3677. Added the cause of error to log when error event occurred.
  3678. Moved message string to message.h for translation.
  3679. * src/AbstractCommand.cc
  3680. * src/AbstractCommand.h
  3681. * src/FtpNegotiationCommand.cc
  3682. * src/HttpRequestCommand.cc
  3683. * src/PeerAbstractCommand.cc
  3684. * src/message.h
  3685. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3686. Added the function to get error message from socket.
  3687. * src/SocketCore.cc
  3688. * src/SocketCore.h
  3689. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3690. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3691. * src/RequestGroupMan.cc
  3692. * src/RequestGroupMan.h
  3693. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3694. If error event is received in epoll, then abort download immediately.
  3695. * src/AbstractCommand.cc
  3696. * src/Command.cc
  3697. * src/Command.h
  3698. * src/DownloadEngine.cc
  3699. * src/PeerAbstractCommand.cc
  3700. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. Added usage message for --uri-selector, --server-stat-of,
  3702. --server-stat-in, --server-stat-timeout options.
  3703. * src/HelpItemFactory.cc
  3704. * src/usage_text.h
  3705. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3706. Added upper limit of FTP response buffer. The current implementation
  3707. uses 4096bytes as a limit.
  3708. * src/FtpConnection.cc
  3709. * src/FtpConnection.h
  3710. * test/FtpConnectionTest.cc
  3711. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3712. Use non-blocking socket for TCP communication to avoid possible
  3713. blocking due to buffer full.
  3714. * src/AbstractProxyRequestCommand.cc
  3715. * src/FtpConnection.cc
  3716. * src/FtpConnection.h
  3717. * src/FtpNegotiationCommand.cc
  3718. * src/FtpNegotiationCommand.h
  3719. * src/HttpConnection.cc
  3720. * src/HttpConnection.h
  3721. * src/HttpRequestCommand.cc
  3722. * src/InitiatorMSEHandshakeCommand.cc
  3723. * src/InitiatorMSEHandshakeCommand.h
  3724. * src/MSEHandshake.cc
  3725. * src/MSEHandshake.h
  3726. * src/Makefile.am
  3727. * src/PeerConnection.cc
  3728. * src/PeerConnection.h
  3729. * src/PeerInteractionCommand.cc
  3730. * src/PeerListenCommand.cc
  3731. * src/ReceiverMSEHandshakeCommand.cc
  3732. * src/ReceiverMSEHandshakeCommand.h
  3733. * src/SocketBuffer.cc
  3734. * src/SocketBuffer.h
  3735. * src/SocketCore.cc
  3736. * src/SocketCore.h
  3737. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3738. Call setStatusRealtime() in constructor.
  3739. * src/RealtimeCommand.cc
  3740. * src/RealtimeCommand.h
  3741. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3742. Call Download::setNoWait(true) to execute newly created command without
  3743. a pause.
  3744. * src/AbstractCommand.cc
  3745. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3747. found' error from HTTP/FTP server NUM times without getting single
  3748. bytes of data, then force the download to fail.
  3749. Basically aria2 tris all URIs available. So if long list of URIs are
  3750. specified in Metalink, then aria2 will take a long time to fail
  3751. eventually if all URIs are outdated. This option eases this situation
  3752. to limit the number of servers to try.
  3753. * src/FtpNegotiationCommand.cc
  3754. * src/HelpItemFactory.cc
  3755. * src/HttpResponseCommand.cc
  3756. * src/OptionHandlerFactory.cc
  3757. * src/PeerStat.h
  3758. * src/RequestGroup.cc
  3759. * src/RequestGroup.h
  3760. * src/SegmentMan.cc
  3761. * src/SegmentMan.h
  3762. * src/option_processing.cc
  3763. * src/prefs.cc
  3764. * src/prefs.h
  3765. * src/usage_text.h
  3766. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3767. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3768. response even if more than one response is in it.
  3769. * src/FtpConnection.cc
  3770. * src/FtpConnection.h
  3771. * test/FtpConnectionTest.cc
  3772. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3773. Merged from stable-0.15
  3774. * m4/libcares.m4
  3775. Use pkg-config
  3776. * m4/sqlite3.m4
  3777. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3778. Removed unnecessary if statement.
  3779. * src/DefaultPieceStorage.cc (initPieceStorage)
  3780. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. Added --connect-timeout option to specify connect timeout in seconds.
  3782. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3783. connecting to BitTorrent peer is not controlled by this option.
  3784. * src/AbstractProxyRequestCommand.cc
  3785. * src/FtpNegotiationCommand.cc
  3786. * src/HelpItemFactory.cc
  3787. * src/HttpRequestCommand.cc
  3788. * src/OptionHandlerFactory.cc
  3789. * src/option_processing.cc
  3790. * src/prefs.cc
  3791. * src/prefs.h
  3792. * src/usage_text.h
  3793. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3794. Added help message for -R option.
  3795. * src/HelpItemFactory.cc
  3796. * src/usage_text.h
  3797. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3798. Added the message that the time is in local time zone.
  3799. * src/RequestGroup.cc
  3800. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3801. Implemented the ability to get timestamp from remote FTP server using
  3802. MDTM command described in RFC3659.
  3803. * src/FtpConnection.cc
  3804. * src/FtpConnection.h
  3805. * src/FtpNegotiationCommand.cc
  3806. * src/FtpNegotiationCommand.h
  3807. * test/FtpConnectionTest.cc
  3808. * test/Makefile.am
  3809. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3810. Implemented the ability to get timestamp from remote HTTP server and
  3811. apply it to local file. To enable this feature, --remote-time option
  3812. is added. No usage text has been written yet.
  3813. If several servers returns difference timestamp, then aria2 uses latest
  3814. one.
  3815. * src/CopyDiskAdaptor.cc
  3816. * src/CopyDiskAdaptor.h
  3817. * src/DirectDiskAdaptor.cc
  3818. * src/DirectDiskAdaptor.h
  3819. * src/DiskAdaptor.h
  3820. * src/File.cc
  3821. * src/File.h
  3822. * src/HttpHeader.cc
  3823. * src/HttpHeader.h
  3824. * src/HttpResponse.cc
  3825. * src/HttpResponse.h
  3826. * src/HttpResponseCommand.cc
  3827. * src/HttpResponseCommand.h
  3828. * src/MultiDiskAdaptor.cc
  3829. * src/MultiDiskAdaptor.h
  3830. * src/OptionHandlerFactory.cc
  3831. * src/RequestGroup.cc
  3832. * src/RequestGroup.h
  3833. * src/RequestGroupMan.cc
  3834. * src/option_processing.cc
  3835. * src/prefs.cc
  3836. * src/prefs.h
  3837. * test/CopyDiskAdaptorTest.cc
  3838. * test/FileTest.cc
  3839. * test/Makefile.am
  3840. * test/Makefile.in
  3841. * test/MultiDiskAdaptorTest.cc
  3842. * test/TestUtil.cc
  3843. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3844. Fixed the bug that DiskWriterEntry is not created when its
  3845. FileEntry.isRequested() is false and it doesn't share a piece with
  3846. other FileEntries that are requested. This bug causes segmentation fault
  3847. in the end.
  3848. * src/MultiDiskAdaptor.cc
  3849. * src/MultiDiskAdaptor.h
  3850. * src/MultiFileAllocationIterator.cc
  3851. * test/MultiDiskAdaptorTest.cc
  3852. * test/MultiFileAllocationIteratorTest.cc
  3853. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3854. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3855. called if the number of file entries are greater than max open files.
  3856. * src/AbstractSingleDiskAdaptor.cc
  3857. * src/AbstractSingleDiskAdaptor.h
  3858. * src/DiskAdaptor.h
  3859. * src/MultiDiskAdaptor.cc
  3860. * src/MultiDiskAdaptor.h
  3861. * test/MultiDiskAdaptorTest.cc
  3862. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3863. Added a constuctor that receives struct timeval.
  3864. Added operator<.
  3865. * src/TimeA2.cc
  3866. * src/TimeA2.h
  3867. * test/TimeTest.cc
  3868. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3869. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3870. * src/CookieParser.cc
  3871. * test/CookieParserTest.cc
  3872. * test/HttpResponseTest.cc
  3873. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3874. Implmented the functions to parse date.
  3875. * src/TimeA2.cc
  3876. * src/TimeA2.h
  3877. * test/TimeTest.cc
  3878. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3879. Added "Firefox3 Cookie" feature to FeatureConfig
  3880. * src/FeatureConfig.cc
  3881. * src/FeatureConfig.h
  3882. * test/FeatureConfigTest.cc
  3883. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3884. Bump up version number to 0.16.0b
  3885. * configure.ac
  3886. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Use pkg-config if is is available.
  3888. * m4/openssl.m4
  3889. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3890. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3891. * src/BtAnnounce.h
  3892. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3893. If an error occurred with a URI, remove identical URI from remaining
  3894. URI list because it is likely that same error occurred in the end and it
  3895. is waste of time.
  3896. * src/AbstractCommand.cc
  3897. * src/RequestGroup.cc
  3898. * src/RequestGroup.h
  3899. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3900. Removed wrong comment.
  3901. * src/DefaultPeerStorage.cc
  3902. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3903. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3904. Added return value of getpid() to argument of srand() to achieve more
  3905. randomized value.
  3906. * src/SimpleRandomizer.cc
  3907. * src/SimpleRandomizer.h
  3908. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3909. Contact tracker frequently when the number of connections are 0 and
  3910. download is not finished yet.
  3911. * src/ActivePeerConnectionCommand.cc
  3912. * src/BtAnnounce.h
  3913. * src/DefaultBtAnnounce.cc
  3914. * src/DefaultBtAnnounce.h
  3915. * test/MockBtAnnounce.h
  3916. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3917. Moved threshold values to UTPexExtensionMessage.
  3918. * src/DefaultBtInteractive.cc
  3919. * src/Peer.cc
  3920. * src/Peer.h
  3921. * src/UTPexExtensionMessage.cc
  3922. * src/UTPexExtensionMessage.h
  3923. * test/UTPexExtensionMessageTest.cc
  3924. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3925. Added _incoming member to Peer class and made it true if the peer
  3926. initiated connection. Don't add those peer to UTPex message.
  3927. If extended handshake is received, assign _incoming to false.
  3928. * src/DefaultBtInteractive.cc
  3929. * src/HandshakeExtensionMessage.cc
  3930. * src/Peer.cc
  3931. * src/Peer.h
  3932. * src/PeerListenCommand.cc
  3933. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3934. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3935. Encoding Decoder. Removed size threshold for turning off on the fly
  3936. inflation because resulting file may or may not be inflated depending
  3937. on the file size and I think it is not expected by users.
  3938. This change fixes segmentation fault when Metalink file contains gzipped
  3939. file and its filesize is provided.
  3940. * src/HttpResponseCommand.cc
  3941. * src/HttpResponseCommand.h
  3942. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3943. Made Cookie immutable.
  3944. * src/Cookie.cc
  3945. * src/Cookie.h
  3946. * src/CookieParser.cc
  3947. * src/CookieParser.h
  3948. * src/CookieStorage.cc
  3949. * test/CookieParserTest.cc
  3950. * test/CookieStorageTest.cc
  3951. * test/NsCookieParserTest.cc
  3952. * test/Sqlite3MozCookieParserTest.cc
  3953. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3954. Removed CookieBox, CookieBoxFactory.
  3955. * src/CookieBox.cc
  3956. * src/CookieBox.h
  3957. * src/CookieBoxFactory.cc
  3958. * src/CookieBoxFactory.h
  3959. * src/Makefile.am
  3960. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Use CookieStorage class instead of CookieBox class.
  3962. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3963. * src/AbstractProxyRequestCommand.cc
  3964. * src/CookieStorage.cc
  3965. * src/DownloadEngine.cc
  3966. * src/DownloadEngine.h
  3967. * src/HttpConnection.cc
  3968. * src/HttpConnection.h
  3969. * src/HttpRequest.cc
  3970. * src/HttpRequest.h
  3971. * src/HttpRequestCommand.cc
  3972. * src/HttpResponse.cc
  3973. * src/HttpResponseCommand.cc
  3974. * src/HttpSkipResponseCommand.cc
  3975. * src/Makefile.am
  3976. * src/MultiUrlRequestInfo.cc
  3977. * src/Request.cc
  3978. * src/Request.h
  3979. * src/main.cc
  3980. * test/AllTest.cc
  3981. * test/CookieStorageTest.cc
  3982. * test/CookieTest.cc
  3983. * test/HttpRequestTest.cc
  3984. * test/HttpResponseTest.cc
  3985. * test/Makefile.am
  3986. * test/NsCookieParserTest.cc
  3987. * test/Sqlite3MozCookieParserTest.cc
  3988. * test/nscookietest.txt
  3989. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3990. Updated
  3991. * test/Cookies.sqlite
  3992. * test/nscookietest.txt
  3993. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3994. Added tests for CookieStorage::load()
  3995. * test/CookieStorageTest.cc
  3996. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3997. Added CookieStorage class which is based on RFC2109 and manages cookies
  3998. more strictly than CookieBox and CookieBoxFactory class.
  3999. * src/CookieStorage.cc
  4000. * src/CookieStorage.h
  4001. * src/Cookie.cc
  4002. * src/Cookie.h
  4003. * test/CookieStorageTest.cc
  4004. * test/CookieTest.cc
  4005. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4006. Fixed the bug that commands are created more than the number of pieces.
  4007. * src/RequestGroup.cc
  4008. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4009. Fixed infinite loop bug in FTP when SIZE command failed.
  4010. * src/FtpNegotiationCommand.cc
  4011. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4012. Removed DirectDiskAdaptorTest.h
  4013. * test/Makefile.am
  4014. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4015. Fixed chunk checksum validation cannot detect trailing garbage data.
  4016. BUG#2074141
  4017. * src/AbstractSingleDiskAdaptor.cc
  4018. * src/AbstractSingleDiskAdaptor.h
  4019. * src/CheckIntegrityEntry.cc
  4020. * src/CheckIntegrityEntry.h
  4021. * src/DiskAdaptor.h
  4022. * src/MultiDiskAdaptor.cc
  4023. * src/MultiDiskAdaptor.h
  4024. * src/RequestGroup.cc
  4025. * test/DirectDiskAdaptorTest.cc
  4026. * test/MultiDiskAdaptorTest.cc
  4027. * test/TestUtil.cc
  4028. * test/TestUtil.h
  4029. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4030. Bump up version number of dht.dat file to 3. In version 3 format, time
  4031. is stored in 64bit, network byte order.
  4032. New build can load old format(version 2) but it saves the file in new
  4033. format. It means once you used new build, your dht.dat becomes
  4034. incompatible with older build.
  4035. * src/DHTRoutingTableDeserializer.cc
  4036. * src/DHTRoutingTableSerializer.cc
  4037. * test/DHTRoutingTableSerializerTest.cc
  4038. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4039. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  4040. * test/Makefile.am
  4041. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4042. Bump up version number of .aria2 control file to 0001.
  4043. New aria2 can still load version 0000 file but it saves the file in
  4044. version 0001 format. It means that new aria2 can resume download
  4045. started by old aria2 but the opposite is not true.
  4046. * src/DefaultBtProgressInfoFile.cc
  4047. * src/DefaultBtProgressInfoFile.h
  4048. * test/DefaultBtProgressInfoFileTest.cc
  4049. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Added ntoh64 and hton64 as inline functions.
  4051. * src/Util.cc
  4052. * test/UtilTest.cc
  4053. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4054. Added sqlite3 depenency and Firefox3 cookie support.
  4055. * README
  4056. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4057. State that firefox3 cookie is supported explicitly in the usage.
  4058. * src/usage_text.h
  4059. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4060. Externalized message.
  4061. * src/RequestGroupMan.cc
  4062. * src/message.h
  4063. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4064. Save temporary file first and rename to the destination on success.
  4065. Added test cases.
  4066. * src/RequestGroupMan.cc
  4067. * test/RequestGroupManTest.cc
  4068. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4069. Fixed the bug that the number of connected peer is exceeding the limit
  4070. (55 by default) in seeding mode.
  4071. Multiplied 0.8 to _maxUploadSpeedLimit.
  4072. * src/ActivePeerConnectionCommand.cc
  4073. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4074. Clear table item.
  4075. * src/Dictionary.cc
  4076. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Fixed error handling of lseek.
  4078. * src/AbstractDiskWriter.cc
  4079. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4080. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4081. style cookie file.
  4082. * src/usage_text.h
  4083. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4085. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4086. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4087. * src/Util.cc
  4088. * src/Util.h
  4089. * src/CookieParser.cc
  4090. * test/UtilTest.cc
  4091. * test/CookieParserTest.cc
  4092. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4093. Separate the implementation to load old mozilla format of cookie to
  4094. NsCookieParser class.
  4095. * src/CookieBoxFactory.cc
  4096. * src/CookieBoxFactory.h
  4097. * src/NsCookieParser.cc
  4098. * src/NsCookieParser.h
  4099. * test/NsCookieParserTest.cc
  4100. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. Made parse() const
  4102. * src/Sqlite3MozCookieParser.cc
  4103. * src/Sqlite3MozCookieParser.h
  4104. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4105. Added firefox3 cookie support based on the patch submitted by
  4106. tizianomueller.
  4107. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4108. this functionality.
  4109. * configure.ac
  4110. * m4/sqlite3.m4
  4111. * src/CookieBoxFactory.cc
  4112. * src/CookieBoxFactory.h
  4113. * src/Makefile.am
  4114. * src/Makefile.in
  4115. * src/Sqlite3MozCookieParser.cc
  4116. * src/Sqlite3MozCookieParser.h
  4117. * src/main.cc
  4118. * test/CookieBoxFactoryTest.cc
  4119. * test/Makefile.am
  4120. * test/Makefile.in
  4121. * test/Sqlite3MozCookieParserTest.cc
  4122. * test/badcookies.sqlite
  4123. * test/cookies.sqlite
  4124. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4125. Added Danish and Greek translations.
  4126. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4127. Great thanks to all translators.
  4128. * po/LINGUAS
  4129. * po/el.po
  4130. * po/da.po
  4131. * po/es.po
  4132. * po/ca.po
  4133. * po/nn.po
  4134. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4135. Fixed man page: --follow-bittorrent should be --follow-torrent
  4136. * doc/aria2c.1.txt
  4137. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4138. Fixed: numCommand is less than the value specified in -C option.
  4139. * src/RequestGroup.cc
  4140. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4141. Fixed occasional assertion failure in PieceSegment.
  4142. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4143. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4144. creation of duplicate segments and one of the segment was finished then
  4145. assertion failure was caused.
  4146. * src/SegmentMan.cc
  4147. * test/SegmentManTest.cc
  4148. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4149. Added options to load/save the server's performance/status to a file
  4150. and the timeout to drop their data.
  4151. --server-stat-of=FILE specifies the file to which performance data
  4152. is saved.
  4153. --server-stat-if=FILE specifies the file to read previously saved
  4154. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4155. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4156. TIMEOUT is specified in seconds and the default value is 24hours.
  4157. * src/MultiUrlRequestInfo.cc
  4158. * src/OptionHandlerFactory.cc
  4159. * src/RequestGroupMan.cc
  4160. * src/RequestGroupMan.h
  4161. * src/ServerStatMan.cc
  4162. * src/ServerStatMan.h
  4163. * src/option_processing.cc
  4164. * src/prefs.cc
  4165. * src/prefs.h
  4166. * test/ServerStatManTest.cc
  4167. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4168. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4169. * src/ServerStatMan.cc
  4170. * src/ServerStatMan.h
  4171. * test/ServerStatManTest.cc
  4172. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4173. Implemented ServerStatMan::load(...) function and its test case.
  4174. * src/ServerStat.cc
  4175. * src/ServerStat.h
  4176. * src/ServerStatMan.cc
  4177. * test/ServerStatManTest.cc
  4178. * test/ServerStatTest.cc
  4179. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4180. Use time_t instead of int32_t. Use int64_t where milli second is
  4181. expected.
  4182. * src/TimeA2.cc
  4183. * src/TimeA2.h
  4184. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4185. Implemented ServerStatMan::save(...) function and its test case.
  4186. * src/ServerStat.cc
  4187. * src/ServerStat.h
  4188. * src/ServerStatMan.cc
  4189. * src/ServerStatMan.h
  4190. * test/ServerStatManTest.cc
  4191. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Now aria2 uses name attribute in Metalink as local filename in
  4193. BitTorrent downloads. BUG#2033999
  4194. * src/BtContext.h
  4195. * src/BtDependency.cc
  4196. * src/DefaultBtContext.cc
  4197. * src/DefaultBtContext.h
  4198. * src/SingleFileDownloadContext.cc
  4199. * src/SingleFileDownloadContext.h
  4200. * test/BtDependencyTest.cc
  4201. * test/DefaultBtContextTest.cc
  4202. * test/MockBtContext.h
  4203. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4204. Added AC_C_BIGENDIAN
  4205. * src/configure.ac
  4206. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4207. Limited numCommand less than or equal to the number of piece.
  4208. * src/RequestGroup.cc
  4209. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4210. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4211. directive.
  4212. * test/DefaultPieceStorageTest.cc
  4213. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4214. Fixed memory leak in test code
  4215. * test/AnnounceListTest.cc
  4216. * test/DefaultPeerListProcessorTest.cc
  4217. * test/DefaultPeerStorageTest.cc
  4218. * test/MetaFileUtilTest.cc
  4219. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4220. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4221. * src/DefaultPieceStorage.cc
  4222. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Initialized _directIOAllowed
  4224. * src/MultiDiskAdaptor.cc
  4225. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Fixed memory leak
  4227. * src/GZipDecoder.cc
  4228. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4229. Fixed memory leak
  4230. * src/MetalinkParserStateMachine.cc
  4231. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4232. Fixed memory leak
  4233. * src/Dictionary.cc
  4234. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4235. Fixed memory leak
  4236. * src/IteratableChunkChecksumValidator.h
  4237. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4238. Fixed unmatched malloc/free.
  4239. * src/IteratableChunkChecksumValidator.cc
  4240. * src/IteratableChecksumValidator.cc
  4241. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Removed max chunk size check. This change fixes BUG#2040169
  4243. * src/ChunkedDecoder.cc
  4244. * src/ChunkedDecoder.h
  4245. * test/ChunkedDecoderTest.cc
  4246. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4247. Implemented download speed based URI selection algorithm.
  4248. Introduced new option --uri-selector.
  4249. If --uri-selector=feedback is given, aria2 uses download speed observed
  4250. in the previous downloads and chooses fastest server in the URI list.
  4251. Currently at most 10 URIs are considered to introduce randomeness for
  4252. finding better servers. The speed is average download speed in the
  4253. downloads.
  4254. On the other hand, if --uri-selector=inorder is given, which is default,
  4255. URI is tried in order in URI list.
  4256. The usage text for the new option has not been written yet.
  4257. * src/AbstractCommand.cc
  4258. * src/DownloadCommand.cc
  4259. * src/DownloadEngine.cc
  4260. * src/DownloadEngineFactory.cc
  4261. * src/InOrderURISelector.cc
  4262. * src/InOrderURISelector.h
  4263. * src/OptionHandlerFactory.cc
  4264. * src/PeerStat.h
  4265. * src/RequestGroup.cc
  4266. * src/RequestGroup.h
  4267. * src/RequestGroupMan.cc
  4268. * src/RequestGroupMan.h
  4269. * src/SegmentMan.cc
  4270. * src/SegmentMan.h
  4271. * src/ServerStat.cc
  4272. * src/ServerStat.h
  4273. * src/ServerStatMan.cc
  4274. * src/ServerStatMan.h
  4275. * src/ServerStatURISelector.cc
  4276. * src/ServerStatURISelector.h
  4277. * src/URISelector.h
  4278. * src/option_processing.cc
  4279. * src/prefs.cc
  4280. * src/prefs.h
  4281. * test/InOrderURISelectorTest.cc
  4282. * test/RequestGroupManTest.cc
  4283. * test/ServerStatManTest.cc
  4284. * test/ServerStatURISelectorTest.cc
  4285. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. * Release 0.15.1+2
  4287. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4288. Bump up version number to 0.15.1+2
  4289. * configure.ac
  4290. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4291. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4292. * m4/aria2_arg.m4
  4293. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4294. * Release 0.15.1+1
  4295. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4296. Bump up version number to 0.15.1+1
  4297. * configure.ac
  4298. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Fixed the bug that causes segmentaion fault when resuming download
  4300. using metalink without size tag. Reproducible only using HTTP URI.
  4301. * src/HttpResponseCommand.cc
  4302. * src/FtpNegotiationCommand.cc
  4303. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. * Release 0.15.1
  4305. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4306. Updated Bulgarian and French translations, thanks to all translators.
  4307. * po/bg.po
  4308. * po/fr.po
  4309. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4310. Bump up version number to 0.15.1
  4311. * configure.ac
  4312. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4313. Avoid repeated call of gettimeofday() when calculating speed.
  4314. * src/SpeedCalc.cc
  4315. * src/SpeedCalc.h
  4316. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4317. Removed writable check when socket's send buffer is full in BitTorrent
  4318. downloads to lower CPU usage.
  4319. * src/PeerInteractionCommand.cc
  4320. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. Fixed broken gzip inflation.
  4322. Turn off segmented downloading if gzip content is smaller than or equal
  4323. to 1MiB and inflate the data on the fly, because HTTP response header
  4324. doesn't contain the length of inflated file we can't determin where
  4325. the chunk of data should be written.
  4326. On the other hand, if gzip content is larger than 1MB, then turn off
  4327. on the fly inflation, because some servers returns "content-type: gzip"
  4328. for *.tgz, *.gz files.
  4329. * src/DownloadCommand.cc
  4330. * src/HttpResponseCommand.cc
  4331. * src/HttpResponseCommand.h
  4332. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4333. Applied tizianomueller's patch to fix compile error.
  4334. * test/BitfieldManTest.cc
  4335. * test/BtRequestMessageTest.cc
  4336. * test/DefaultBtContextTest.cc
  4337. * test/DefaultDiskWriterTest.cc
  4338. * test/DefaultPieceStorageTest.cc
  4339. * test/HttpHeaderProcessorTest.cc
  4340. * test/HttpResponseTest.cc
  4341. * test/Metalink2RequestGroupTest.cc
  4342. * test/MetalinkParserControllerTest.cc
  4343. * test/MetalinkProcessorTest.cc
  4344. * test/PeerSessionResourceTest.cc
  4345. * test/UtilTest.cc
  4346. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. * Release 0.15.0
  4348. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4349. Reordered src files in POTFILES.in so that usage text appears first.
  4350. * po/POTFILES.in
  4351. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Bump up version number to 0.15.0
  4353. * configure.ac
  4354. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4355. Added Bulgarian translation.
  4356. Updated Catalan, Spanish, French and Japanese translations.
  4357. Thanks to all translators.
  4358. * po/LINGUAS
  4359. * po/bg.po
  4360. * po/ca.po
  4361. * po/es.po
  4362. * po/fr.po
  4363. * po/ja.po
  4364. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4365. Updated feature list. Added libz for dependency section.
  4366. Added a description about unit testing using CppUnit.
  4367. * README
  4368. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4369. Added a test for libz. Quoted where it is necessary.
  4370. * build_test.sh
  4371. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4372. Added GZip to `Enabled Features' list.
  4373. * src/FeatureConfig.cc
  4374. * src/FeatureConfig.h
  4375. * test/FeatureConfigTest.cc
  4376. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4377. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4378. the transfer has not yet started.
  4379. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4380. * src/SegmentMan.cc
  4381. * src/SegmentMan.h
  4382. * test/SegmentManTest.cc
  4383. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4384. Cache last calculated average download/upload speed.
  4385. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4386. cached value.
  4387. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4388. * src/PeerStat.h
  4389. * src/SpeedCalc.cc
  4390. * src/SpeedCalc.h
  4391. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4392. Call parseUrl directly.
  4393. * src/Request.cc (resetUrl)
  4394. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4395. Supported absolute/relative path in Location header field.
  4396. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4397. * src/HttpHeader.cc
  4398. * src/HttpHeader.h
  4399. * src/HttpResponse.cc
  4400. * src/HttpSkipResponseCommand.cc
  4401. * src/Request.cc
  4402. * test/HttpHeaderTest.cc
  4403. * test/HttpResponseTest.cc
  4404. * test/RequestTest.cc
  4405. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4406. Changed help text for --load-cookie option.
  4407. * doc/aria2c.1.txt
  4408. * src/usage_text.h
  4409. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4410. Regenerated test/Makefile.in to remove stale ChangeLog.
  4411. * test/Makefile.in
  4412. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4413. Updated po files.
  4414. * po/aria2c.pot
  4415. * po/*.po
  4416. * po/*.gmo
  4417. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4418. Bump up version number to 0.15.0b
  4419. * configure.ac
  4420. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Externalize messages.
  4422. * src/RequestGroupMan.cc
  4423. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4424. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4425. Use File::exists() instead of File::isFile() to allow non-regular file
  4426. such as block special files.
  4427. * src/AbstractDiskWriter.cc
  4428. * src/MultiDiskWriter.cc
  4429. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4431. * src/gai_strerror.h
  4432. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4433. Fixed compile error. Thanks gknauf for the patch.
  4434. * src/asctime_r.c
  4435. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4436. Included asctime_r.h from a2time.h.
  4437. * src/a2time.h
  4438. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4439. Added a message "aria2 doesn't verify signature" to log message when
  4440. signature file is saved.
  4441. * src/RequestGroupMan.cc
  4442. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Added the ability to save signature when download is completed if
  4444. signature is available. The filename of signature file is the path to
  4445. download file followed by ".sig". If it already exists, then signature
  4446. will not be saved.
  4447. * src/RequestGroupMan.cc
  4448. * src/Signature.cc
  4449. * test/SignatureTest.cc
  4450. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Updated the descriptions for --bt-seed-unverified.
  4452. * doc/aria2c.1
  4453. * doc/aria2c.1.html
  4454. * doc/aria2c.1.txt
  4455. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4456. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4457. that this is not going to verify files using piece hashes.
  4458. * src/HelpItemFactory.cc
  4459. * src/OptionHandlerFactory.cc
  4460. * src/RequestGroup.cc
  4461. * src/option_processing.cc
  4462. * src/prefs.cc
  4463. * src/prefs.h
  4464. * src/usage_text.h
  4465. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4466. Added the ability to retrieve signature from Metalink file.
  4467. A retrieved signature is stored in Signature class and it is held by
  4468. DownloadContext class. Note that aria2 doesn't verify signature.
  4469. * src/DownloadContext.cc
  4470. * src/DownloadContext.h
  4471. * src/Makefile.am
  4472. * src/Makefile.in
  4473. * src/Metalink2RequestGroup.cc
  4474. * src/MetalinkEntry.cc
  4475. * src/MetalinkEntry.h
  4476. * src/MetalinkParserController.cc
  4477. * src/MetalinkParserController.h
  4478. * src/MetalinkParserStateMachine.cc
  4479. * src/MetalinkParserStateMachine.h
  4480. * src/Signature.cc
  4481. * src/Signature.h
  4482. * src/SignatureMetalinkParserState.cc
  4483. * src/SignatureMetalinkParserState.h
  4484. * src/VerificationMetalinkParserState.cc
  4485. * src/VerificationMetalinkParserState.h
  4486. * test/Metalink2RequestGroupTest.cc
  4487. * test/MetalinkParserControllerTest.cc
  4488. * test/MetalinkProcessorTest.cc
  4489. * test/test.xml
  4490. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4491. Close DiskAdaptor after renaming file.
  4492. * src/RequestGroup.cc
  4493. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Corrected indentation
  4495. * src/DefaultBtProgressInfoFile.cc
  4496. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. Moved the calls of std::ios::exceptions() inside of try-catch block
  4498. because if an error occurred in constructor of std::fstream, then
  4499. exception is thrown immediately when std::ios::exceptions() is called
  4500. which results unhandled exception and aria2c aborts.
  4501. * src/DefaultBtProgressInfoFile.cc
  4502. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4503. Added the test for the previous change in DefaultBtContext.cc
  4504. * test/DefaultBtContextTest.cc
  4505. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Fixed the bug that causes infinite loop when the number of pieces are
  4507. fewer than allowed fast set size which is 10 by default.
  4508. * src/DefaultBtContext.cc
  4509. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4510. Updated the descriptions for -j, -s. Added --bt-seed.
  4511. * doc/aria2c.1
  4512. * doc/aria2c.1.html
  4513. * doc/aria2c.1.txt
  4514. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4515. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4516. aria2 seeds previously downloaded files without validating piece hashs.
  4517. * src/HelpItemFactory.cc
  4518. * src/OptionHandlerFactory.cc
  4519. * src/RequestGroup.cc
  4520. * src/option_processing.cc
  4521. * src/prefs.cc
  4522. * src/prefs.h
  4523. * src/usage_text.h
  4524. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4525. Updated DESCRIPTION of man page.
  4526. * doc/aria2c.1
  4527. * doc/aria2c.1.html
  4528. * doc/aria2c.1.txt
  4529. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4531. Don't define `struct addrinfo' when __sun is defined.
  4532. * src/getaddrinfo.h
  4533. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4535. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4536. second argument is of type `struct _stati64'. Otherwise it is defined as
  4537. `struct stat'.
  4538. * src/AbstractDiskWriter.cc
  4539. * src/File.cc
  4540. * src/File.h
  4541. * src/a2io.h
  4542. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4543. Fixed the compile error in hurd-i386
  4544. See the original bug report:
  4545. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4546. * src/a2io.h
  4547. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4548. Code cleanup.
  4549. * src/PeerAbstractCommand.cc
  4550. * src/PeerAbstractCommand.h
  4551. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4552. Removed TransferEncoding.
  4553. * src/DownloadCommand.cc
  4554. * src/DownloadCommand.h
  4555. * src/HttpResponseCommand.cc
  4556. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4557. Updated po files.
  4558. * po/aria2c.pot
  4559. * po/*.po
  4560. * po/*.gmo
  4561. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4562. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4563. * src/A2STR.cc
  4564. * src/A2STR.h
  4565. * src/ChunkedDecoder.cc
  4566. * src/ChunkedDecoder.h
  4567. * src/ChunkedEncoding.cc: Removed
  4568. * src/ChunkedEncoding.h: Removed
  4569. * src/DownloadCommand.cc
  4570. * src/DownloadCommand.h
  4571. * src/HttpDownloadCommand.cc
  4572. * src/HttpResponse.cc
  4573. * src/HttpResponse.h
  4574. * src/HttpResponseCommand.cc
  4575. * src/HttpSkipResponseCommand.cc
  4576. * src/HttpSkipResponseCommand.h
  4577. * src/Makefile.am
  4578. * src/TransferEncoding.h: Removed
  4579. * test/ChunkedDecoderTest.cc
  4580. * test/ChunkedEncodingTest.cc: Removed
  4581. * test/HttpResponseTest.cc
  4582. * test/Makefile.am
  4583. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4584. Use append instead of insert.
  4585. * src/GZipDecoder.cc
  4586. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4587. Updated doc
  4588. * src/Decoder.h
  4589. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4590. Updated usage text for -s option.
  4591. * src/usage_text.h
  4592. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4593. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4594. * src/Request.cc
  4595. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Cleaned up configure.ac.
  4597. * configure.ac
  4598. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4599. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4600. AC_ARG_ENABLE.
  4601. * configure.ac
  4602. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4604. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4605. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4606. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4607. fly and writes decoded data to a local disk.
  4608. * README
  4609. * README.html
  4610. * configure.ac
  4611. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4612. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4613. * m4/libz.m4
  4614. * src/Decoder.h
  4615. * src/DownloadCommand.cc
  4616. * src/DownloadCommand.h
  4617. * src/Exception.h
  4618. * src/GZipDecoder.cc
  4619. * src/GZipDecoder.h
  4620. * src/HttpHeader.cc
  4621. * src/HttpHeader.h
  4622. * src/HttpRequest.cc
  4623. * src/HttpRequest.h
  4624. * src/HttpResponse.cc
  4625. * src/HttpResponse.h
  4626. * src/HttpResponseCommand.cc
  4627. * src/Makefile.am
  4628. * test/GZipDecoderTest.cc
  4629. * test/HttpRequestTest.cc
  4630. * test/HttpResponseTest.cc
  4631. * test/Makefile.am
  4632. * test/Makefile.in
  4633. * test/gzip_decode_test.gz
  4634. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. Clarified usage of -j option.
  4636. * src/usage_text.h
  4637. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Disabled getting size from the response of RETR.
  4639. If SIZE command failed, then disable resuming and segmented downloading.
  4640. * src/FtpConnection.cc
  4641. * src/FtpConnection.h
  4642. * src/FtpNegotiationCommand.cc
  4643. * src/FtpNegotiationCommand.h
  4644. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4645. Use digits to find first byte of file size, which makes the intention
  4646. of the code clearer.
  4647. * src/FtpConnection.cc
  4648. Don't call validateTotalLength() when size is 0.
  4649. * src/FtpNegotiationCommand.cc
  4650. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4651. Updated po files.
  4652. * po/aria2c.pot
  4653. * po/*.gmo
  4654. * po/*.po
  4655. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4656. Clarified usage text for --split option.
  4657. * src/usage_text.h
  4658. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4659. Bump up version number to 0.15.0dev. "dev" means "development"
  4660. version, which means I started the development of the next release!
  4661. * src/configure.ac
  4662. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4663. If FTP server returns negative response with REST raw command and
  4664. requested range is not 0, throw exception. If requested range is 0,
  4665. continue download a file from 0 byte.
  4666. * src/FtpNegotiationCommand.cc
  4667. * src/FtpNegotiationCommand.h
  4668. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4669. Supported FTP server which don't recognize SIZE raw command.
  4670. If SIZE raw command is failed, aria2 will try to get file size
  4671. from the response of RETR raw command. If both attempts are failed,
  4672. then resuming and segmented downloading are disabled.
  4673. * src/FtpConnection.cc
  4674. * src/FtpConnection.h
  4675. * src/FtpNegotiationCommand.cc
  4676. * src/FtpNegotiationCommand.h
  4677. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. * Release 0.14.0+1
  4679. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. Bump up version number to 0.14.0+1
  4681. * src/configure.ac
  4682. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Fixed the code that refers static member variable from non-static
  4684. context.
  4685. * src/DefaultPeerStorage.cc
  4686. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4687. * Release 0.14.0
  4688. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4689. Added build test script
  4690. * build_test.sh
  4691. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4692. Updated ja.po
  4693. * src/ja.po
  4694. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4695. Bump up version number to 0.14.0
  4696. * src/configure.ac
  4697. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4698. Updated ja.po and fr.po. Great thanks for french translators and
  4699. Sebastien WILLEMIJNS.
  4700. * po/fr.po
  4701. * po/ja.po
  4702. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4703. Added configure option to enable/disable epoll support.
  4704. * configure.ac
  4705. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Updated man page.
  4707. * doc/aria2c.1.txt
  4708. * doc/aria2c.1
  4709. * doc/aria2c.1.html
  4710. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4711. Added missing default value '5' to the usage of --split option.
  4712. * src/HelpItemFactory.cc
  4713. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4714. Filled up pieces based on the number of missing blocks, rather than
  4715. simplay the number of piece * block length.
  4716. * src/BtRequestFactory.h
  4717. * src/DefaultBtInteractive.cc
  4718. * src/DefaultBtInteractive.h
  4719. * src/DefaultBtRequestFactory.cc
  4720. * src/DefaultBtRequestFactory.h
  4721. * src/Piece.cc
  4722. * src/Piece.h
  4723. * test/BitfieldManTest.cc
  4724. * test/DefaultBtRequestFactoryTest.cc
  4725. * test/MockBtRequestFactory.h
  4726. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4727. Made _epEvents a member variable.
  4728. * src/DownloadEngine.cc
  4729. * src/DownloadEngine.h
  4730. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. Cancel download if http redirect is bounded more than 20 times.
  4732. * src/AbstractCommand.cc
  4733. * src/HttpSkipResponseCommand.cc
  4734. * src/Request.cc
  4735. * src/Request.h
  4736. * test/RequestTest.cc
  4737. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4738. Fixed unhandled exception(removed keyword `new').
  4739. * src/SocketCore.cc (initEPOLL)
  4740. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4741. Removed visit(const MetaEntry*)
  4742. * src/MetaEntryVisitor.h:
  4743. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4744. and made them virtual.
  4745. * src/BencodeVisitor.h
  4746. * src/BencodeVisitor.cc
  4747. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4748. Updated po files.
  4749. * po/aria2c.pot
  4750. * po/*.po
  4751. * po/*.gmo
  4752. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4754. the number of socket to watch out.
  4755. * src/PeerInteractionCommand.cc
  4756. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. When there is not enough space in disk when writing a chunk of data,
  4758. aria2 now prints the message to the console to warn user and aborts
  4759. its download. Not all downloads are canceled because some downloads
  4760. may use another disk or partition. BUG#1640332
  4761. * src/AbstractDiskWriter.cc
  4762. * src/PeerAbstractCommand.cc
  4763. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4764. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4765. setHaltRequested(true) to cancel download.
  4766. * src/PeerInteractionCommand.h
  4767. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4768. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4769. socket from int to sock_t as sockets are unsigned in Windows.
  4770. For AsyncNameResolver, DownloadEngine, I did additional modification
  4771. for the portion of the code changed according to epoll support.
  4772. I defined sock_t in a2netcompat.h to use sock_t without including
  4773. SocketCore.h.
  4774. * src/AsyncNameResolver.cc
  4775. * src/AsyncNameResolver.h
  4776. * src/DownloadEngine.cc
  4777. * src/DownloadEngine.h
  4778. * src/SocketCore.cc
  4779. * src/SocketCore.h
  4780. * src/a2netcompat.h
  4781. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4782. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4783. changes in the patch were applied.
  4784. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4785. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4786. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4787. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4789. a2io.h and common.h were modified.
  4790. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4791. MinGW.
  4792. * src/common.h: Changed off_t to 64 bit in MinGW.
  4793. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4794. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4795. only a2netcompat.h is modified.
  4796. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4797. directives.
  4798. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4800. only gai_strerror.h is modified.
  4801. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4802. winsock errors in MinGW.
  4803. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4804. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4805. follow sources are applied.
  4806. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4807. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4808. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4809. I included locale.h from Platform.cc.
  4810. * src/main.cc: Moved common setup/teardown code to Platform class.
  4811. * test/AllTest.cc: Use Platform class.
  4812. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4813. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4815. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4816. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4817. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4819. aria2-0.13.2+1-mingw-2.patch.
  4820. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4821. systems which don't have termious.h. I moved the directive inside of
  4822. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4823. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4824. anyway.
  4825. * src/asctime_r.h
  4826. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4827. I added 2nd argument to the prototype declaration.
  4828. * src/StringFormat.cc: Get rid of vasprintf.
  4829. * src/getaddrinfo.h: Fixed constants.
  4830. * configure.ac: Added the check for asctime_r function.
  4831. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4832. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4833. Added writable test for Socket when the sending message is in progress.
  4834. Usually the sending message is piece message. Without wriable check,
  4835. upload latency is dropped to more than 1sec.
  4836. * src/PeerInteractionCommand.cc
  4837. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Create only requested files and files which shares a piece with
  4839. requested file in multi-torrent downloads. Directory structures are
  4840. also created in the same rule.
  4841. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4842. DiskWriterEntry as in the previous implementation.
  4843. * src/MultiDiskWriter.cc
  4844. * src/MultiFileAllocationIterator.cc
  4845. * src/MultiFileAllocationIterator.h
  4846. * test/MultiFileAllocationIteratorTest.cc
  4847. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Commented out -lprofiler
  4849. * src/Makefile.am
  4850. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. Bump up version number to 0.14.0b.
  4852. * src/configure.ac
  4853. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. Actively establish connection to peers in seeding, when peer cache
  4855. is not full and max upload speed limit is not reached.
  4856. * src/ActivePeerConnectionCommand.cc
  4857. * src/ActivePeerConnectionCommand.h
  4858. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4859. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4860. to make room more fleshy, recently found peers.
  4861. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4862. it.
  4863. * src/DefaultPeerStorage.cc
  4864. * test/DefaultPeerStorageTest.cc
  4865. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4866. Returns cached data only when the previous receiveHandshake() is called
  4867. with peek = true.
  4868. * src/PeerConnection.cc (receiveHandshake)
  4869. * src/PeerConnection.h (receiveHandshake)
  4870. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4871. Changed default value of -s option from 1 to 5.
  4872. Also max value of -s option is changed from 5 to 16.
  4873. * src/HelpItemFactory.cc
  4874. * src/OptionHandlerFactory.cc
  4875. * src/option_processing.cc
  4876. * src/usage_text.h
  4877. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4878. Changed -s options behavior. Now it means the number of connections
  4879. made simultaneously in each http/ftp download.
  4880. If 1 URL is specified, the behavior is the same with old implementation.
  4881. If -s N is given and more than N URLs are specified, first N URLs are
  4882. used and remaining URLs are used for backup. If less than N URLs are
  4883. specified, some of URLs are used more than once so that totally N
  4884. connections are made simultaneously.
  4885. * src/main.cc
  4886. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4887. Included missing iosfwd or ostream header.
  4888. * src/RequestGroupMan.cc
  4889. * src/TaggedItem.cc
  4890. * src/TaggedItem.h
  4891. * src/Util.cc
  4892. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4893. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4894. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4895. * src/HttpConnection.cc: Included missing sstream.
  4896. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4897. Added --bt-max-open-files option.
  4898. * src/DefaultPieceStorage.cc
  4899. * src/HelpItemFactory.cc
  4900. * src/MultiDiskAdaptor.cc
  4901. * src/MultiDiskAdaptor.h
  4902. * src/OptionHandlerFactory.cc
  4903. * src/option_processing.cc
  4904. * src/prefs.cc
  4905. * src/prefs.h
  4906. * src/usage_text.h
  4907. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Fixed the bug that aria2 aborts when a path to a directory is given
  4909. in command-line.
  4910. * src/ProtocolDetector.cc
  4911. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. Limited the number files opened in each BitTorrent download. The default
  4913. value is 100. The option to change this value will be added.
  4914. * src/MultiDiskAdaptor.cc
  4915. * src/MultiDiskAdaptor.h
  4916. * src/MultiFileAllocationIterator.cc
  4917. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4918. Fixed the bug that HTTP downloads don't start with old libraries.
  4919. * src/HttpHeaderProcessor.cc
  4920. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4921. Use empty() instead of size() > 0.
  4922. * src/HttpConnection.cc
  4923. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4924. Drop connection if the incoming peer ID is the same with localhost's
  4925. one. The previous implementation drops connection when incoming peer's
  4926. IP address is the same with localhost's one.
  4927. * src/PeerListenCommand.cc
  4928. * src/DefaultBtInteractive.cc
  4929. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4930. Returns cached data without checking whether socket is readable
  4931. if the cache is available.
  4932. * src/PeerConnection.cc (receiveHandshake)
  4933. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4934. Included stdint.h
  4935. * src/common.h
  4936. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4937. Removed duplicate HAVE_GETTIMEOFDAY
  4938. * src/Makefile.am
  4939. * src/Makefile.in
  4940. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4941. Use interval as a minInterval when minInterval is not supplied.
  4942. * src/DefaultBtAnnounce.cc
  4943. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4944. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4945. attempt is failed, then 2nd attempt get kicked out more quickly.
  4946. And it is now static const member of DefaultBtAnnounce.
  4947. * src/DefaultBtAnnounce.h
  4948. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4950. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4951. * src/ActivePeerConnectionCommand.cc
  4952. * src/BtConstants.h
  4953. * src/BtRuntime.h
  4954. * src/DHTGetPeersCommand.cc
  4955. * src/DefaultBtAnnounce.cc
  4956. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4957. BtRuntime::MAX_PEERS.
  4958. * src/DefaultPeerStorage.h
  4959. * src/InitiatorMSEHandshakeCommand.cc
  4960. * src/PeerInitiateConnectionCommand.cc
  4961. * src/PeerInteractionCommand.cc
  4962. * src/PeerReceiveHandshakeCommand.cc
  4963. * src/TrackerWatcherCommand.cc
  4964. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4965. Always Connect to _numNewConnection
  4966. * src/ActivePeerConnectionCommand.cc
  4967. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. Made `begin' unsigned int.
  4969. * src/GrowSegment.h
  4970. * src/Piece.cc
  4971. * src/Piece.h
  4972. * src/PiecedSegment.cc
  4973. * src/PiecedSegment.h
  4974. * src/Segment.h
  4975. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. Calculate piece hash when data is arrived if the data is arrived in
  4977. order. This removes additional read operation for hash calculation.
  4978. If the data is arrived in out of order, the hash is calucated when the
  4979. piece is completed. This is the same behavior as the old implementation.
  4980. * src/BtPieceMessage.cc
  4981. * src/DefaultBtProgressInfoFile.cc
  4982. * src/DefaultPieceStorage.cc
  4983. * src/DownloadCommand.cc
  4984. * src/DownloadCommand.h
  4985. * src/DownloadEngine.cc
  4986. * src/GrowSegment.cc
  4987. * src/GrowSegment.h
  4988. * src/Piece.cc
  4989. * src/Piece.h
  4990. * src/PiecedSegment.cc
  4991. * src/PiecedSegment.h
  4992. * src/Segment.h
  4993. * test/PieceTest.cc
  4994. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4995. Try to keep the ordering of outgoing piece message.
  4996. * src/DefaultBtMessageDispatcher.cc
  4997. (DefaultBtMessageDispatcher::sendMessages)
  4998. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. Fixed busy loop when error/hup epoll events occur.
  5000. * src/AbstractCommand.cc
  5001. * src/PeerAbstractCommand.cc
  5002. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Added --bt-request-peer-speed-limit option, which was a constant
  5004. SLOW_SPEED_THRESHOLD.
  5005. * src/ActivePeerConnectionCommand.cc
  5006. * src/ActivePeerConnectionCommand.h
  5007. * src/BtConstants.h
  5008. * src/HelpItemFactory.cc
  5009. * src/OptionHandlerFactory.cc
  5010. * src/PeerReceiveHandshakeCommand.cc
  5011. * src/option_processing.cc
  5012. * src/prefs.cc
  5013. * src/prefs.h
  5014. * src/usage_text.h
  5015. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5016. Removed repeated call of getTopDirPath(). Instead, call it once and
  5017. cache the result.
  5018. * src/MultiDiskAdaptor.cc
  5019. * src/MultiDiskAdaptor.h
  5020. (mkdir, openFile, initAndOpenFile, openExistingFile)
  5021. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5022. Fixed compile error on debian etch.
  5023. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  5024. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  5025. it is undefined.
  5026. * src/Util.cc (ULLONG_MAX)
  5027. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. Added epoll support. Use epoll if it is available. If not, use select.
  5029. When async dns is enabled in compile time, epoll support is enabled
  5030. only when aria2 is built with c-ares. This condition statement is
  5031. defined in a2io.h.
  5032. Currently aria2 supports both c-ares and ares, but ares is maintained
  5033. for quite a while and debian already has c-ares package, ares support
  5034. will be dropped in the future version.
  5035. * configure.ac
  5036. * src/AbstractCommand.cc
  5037. * src/AsyncNameResolver.cc
  5038. * src/AsyncNameResolver.h
  5039. * src/Command.cc
  5040. * src/Command.h
  5041. * src/DownloadEngine.cc
  5042. * src/DownloadEngine.h
  5043. * src/PeerAbstractCommand.cc
  5044. * src/SocketCore.cc
  5045. * src/SocketCore.h
  5046. * src/a2io.h
  5047. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5048. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  5049. directive.
  5050. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5051. Do not do write operation to /dev/null file.
  5052. * src/LogFactory.cc
  5053. * src/SimpleLogger.cc
  5054. Replaced vasprintf with vsnprintf
  5055. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5056. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. * src/BtRequestMessage.cc
  5058. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  5059. for segmentation fault caused by previous commit.
  5060. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5061. Reduced the usage of gettimeofday().
  5062. * src/DefaultBtMessageDispatcher.cc
  5063. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  5064. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5065. * src/RequestSlot.cc
  5066. * src/RequestSlot.h
  5067. (RequestSlot::isTimeout)
  5068. Made RequestSlot have a reference to Piece object to avoid find
  5069. Piece repeatedly.
  5070. * src/DefaultBtMessageDispatcher.cc
  5071. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5072. * src/RequestSlot.cc
  5073. * src/RequestSlot.h
  5074. (RequestSlot::getPiece)
  5075. * test/DefaultBtMessageDispatcherTest.cc
  5076. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5077. * src/TimeA2.cc
  5078. * src/TimeA2.h
  5079. (Time::difference): New function.
  5080. (Time::elapsed): Done optimization.
  5081. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5082. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5083. directive.
  5084. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. * src/option_processing.cc: Added missing `defined' keyword to #if
  5086. directive.
  5087. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. Bump up version number to 0.13.2+1
  5089. * src/configure.ac
  5090. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Refactored broken outstanding piece handling.
  5092. * src/DefaultPieceStorage.cc
  5093. * src/DefaultPieceStorage.h
  5094. * src/Piece.cc
  5095. * src/Piece.h
  5096. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5098. name collision of static variable and predefined macro.
  5099. * src/BtContext.cc
  5100. * src/BtContext.h
  5101. * src/CookieBoxFactory.cc
  5102. * src/CookieBoxFactory.h
  5103. * src/CookieParser.cc
  5104. * src/CookieParser.h
  5105. * src/DefaultBtContext.cc
  5106. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5107. * src/RequestGroup.cc
  5108. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5109. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5110. * Release 0.13.2
  5111. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5112. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5113. * po/fr.po
  5114. * po/ja.po
  5115. * po/aria2c.pot
  5116. * po/*.po
  5117. * po/*.gmo
  5118. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5119. Bump up version number to 0.13.2
  5120. * src/configure.ac
  5121. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5122. Refactord.
  5123. * src/RequestGroupMan.cc
  5124. (removeStoppedGroup)
  5125. (fillRequestGroupFromReserver)
  5126. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5127. Fixed compile error on Ubuntu.
  5128. * src/BtPieceMessage.cc
  5129. * src/MessageDigestHelper.cc
  5130. * src/Util.cc
  5131. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5132. Fixed compile error when configured with --disable-bittorrent
  5133. * test/DownloadHandlerFactoryTest.cc
  5134. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5135. Done make update-po
  5136. * po/aria2c.pot
  5137. * po/*.po
  5138. * po/*.gmo
  5139. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5140. Bump up version number to 0.13.2rc.
  5141. * src/configure.ac
  5142. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. Made option name bold. Updated SYNOPSIS to make it more readable.
  5144. * doc/aria2c.1.txt
  5145. * doc/aria2c.1
  5146. * doc/aria2c.1.html
  5147. * src/version_usage.cc
  5148. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5149. Refactored. Use std::string instead of size and char*.
  5150. * Data.cc
  5151. * Data.h
  5152. * test/Data.cc
  5153. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. Added trimSelf(). Rewritten trim() to use trimSelf().
  5155. * Util.cc
  5156. * Util.h
  5157. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5159. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Fixed compile error when configured with --disable-metalink.
  5161. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5162. * test/FeatureConfigTest.cc
  5163. * test/DownloadHandlerFactoryTest.cc
  5164. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Fixed compile error when configured with --without-gnutls
  5166. --without-openssl
  5167. * src/main.cc
  5168. * test/DefaultBtProgressInfoFileTest.cc
  5169. * test/SegmentManTest.cc
  5170. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5171. Fixed compile error with OpenSSL.
  5172. * src/IteratableChunkChecksumValidator.cc
  5173. * src/LibsslDHKeyExchange.h
  5174. * src/MessageDigestHelper.cc
  5175. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5176. Revert the default value of --max-concurrent-downloads to 5.
  5177. Revert the default value of --metalink-servers to 5.
  5178. Man pages was also updated.
  5179. * src/option_processing.cc
  5180. * doc/aria2c.1.txt
  5181. * doc/aria2c.1.html
  5182. * doc/aria2c.1
  5183. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Returns const reference:
  5185. DownloadContext::getPieceHash, DownloadContext::getName,
  5186. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5187. BtContext::getInfoHashAsString,
  5188. * src/BtContext.h
  5189. * src/DefaultBtContext.cc
  5190. * src/DefaultBtContext.h
  5191. * src/DownloadContext.h
  5192. * src/SingleFileDownloadContext.h
  5193. * test/MockBtContext.h
  5194. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. * src/RequestGroup.h (getDir): Removed.
  5196. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5197. Returns const reference. The internal urlencode function was optimized
  5198. a little bit.
  5199. * src/Request.cc
  5200. * src/Request.h
  5201. * src/HttpRequest.cc
  5202. * src/HttpRequest.h
  5203. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5204. Defined option name and possible values as std::string to reduce
  5205. temporary string object creation in runtime.
  5206. * src/HelpItemFactory.cc
  5207. * src/LogFactory.cc
  5208. * src/Option.cc
  5209. * src/OptionHandlerFactory.cc
  5210. * src/option_processing.cc
  5211. * src/prefs.cc
  5212. * src/prefs.h
  5213. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Return const reference.
  5215. * src/DownloadHandlerConstants.cc
  5216. * src/DownloadHandlerConstants.h
  5217. (getMetalinkExtensions)
  5218. (getMetalinkContentTypes)
  5219. (getBtExtensions)
  5220. (getBtContentTypes)
  5221. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. * src/HttpHeader.cc (get): Rewritten.
  5223. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5224. Make HttpHeader::getFirst(...) return const reference.
  5225. * src/HttpHeader.cc
  5226. * src/HttpHeader.h
  5227. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5228. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5229. it with V_TRUE.
  5230. * src/DefaultPieceStorage.cc
  5231. * src/DownloadCommand.cc
  5232. * src/FtpNegotiationCommand.cc
  5233. * src/HttpRequest.cc
  5234. * src/InitiateConnectionCommand.cc
  5235. * src/RequestGroup.cc
  5236. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Made Option::get(...) return const reference of std::string.
  5238. * src/Option.cc
  5239. * src/Option.h
  5240. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Replaced std:copy with insert.
  5242. * src/DefaultBtMessageDispatcher.cc
  5243. * src/DefaultPieceStorage.cc
  5244. * src/DownloadEngineFactory.cc
  5245. * src/RequestGroup.cc
  5246. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5247. Included SocketCore.h to fix compiler warning.
  5248. * src/InitiateConnectionCommand.cc
  5249. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5250. Put piece selection strategy algorithm to RarestPieceSelector class,
  5251. Added a switch to choose whether randomized selection so that unit
  5252. tests emit same results in, possibly, win32.
  5253. * src/DefaultPieceStorage.cc
  5254. * src/DefaultPieceStorage.h
  5255. * src/RarestPieceSelector.cc
  5256. * src/RarestPieceSelector.h
  5257. * test/DefaultPieceStorageTest.cc
  5258. * test/RarestPieceSelectorTest.cc
  5259. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5260. Don't pool connection if HTTP proxy is enabled.
  5261. * src/FtpFinishDownloadCommand.cc
  5262. * src/FtpNegotiationCommand.cc
  5263. * src/HttpSkipResponseCommand.cc
  5264. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5266. * src/AbstractCommand.cc
  5267. * src/AbstractCommand.h
  5268. * src/ActivePeerConnectionCommand.cc
  5269. * src/FtpInitiateConnectionCommand.cc
  5270. * src/HttpInitiateConnectionCommand.cc
  5271. * src/InitiateConnectionCommandFactory.cc
  5272. * src/PeerAbstractCommand.cc
  5273. * src/PeerAbstractCommand.h
  5274. * src/PeerInitiateConnectionCommand.cc
  5275. * src/TrackerWatcherCommand.cc
  5276. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5277. Sort RequestSlot in ascending order and manipulate them using
  5278. lower_bound.
  5279. * src/DefaultBtMessageDispatcher.cc
  5280. * src/DefaultBtMessageDispatcher.h
  5281. (getMessageQueue): Added const qualifier.
  5282. (getRequestSlots): Added const qualifier.
  5283. (sendMessages): Use empty() instead of size().
  5284. (doCancelSendingPieceAction): Use HandleEvent object.
  5285. (doAbortOutstandingRequestAction): Rewritten.
  5286. (doChokedAction): Rewritten.
  5287. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5288. (isOutstandingRequest): Rewritten.
  5289. (getOutstandingRequest): Rewritten.
  5290. (removeOutstandingRequest): Rewritten.
  5291. (addOutstandingRequest): Rewritten.
  5292. * src/RequestSlot.cc
  5293. * src/RequestSlot.h
  5294. (operator=): Rewritten.
  5295. (operator!=): New function.
  5296. (operator<): New function.
  5297. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5298. * src/DefaultBtRequestFactory.cc
  5299. (doChokedAction): Rewritten.
  5300. (removeCompletedPiece): Rewritten.
  5301. (removeTargetPiece): Rewritten.
  5302. (createRequestMessages): Added the debug log.
  5303. (createRequestMessagesOnEndGame: Added the debug log.
  5304. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5305. Added the debug log message.
  5306. * src/BtPieceMessage.cc (doReceivedAction)
  5307. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5309. used lower_bound to process them rather than linear search.
  5310. * src/DHTPeerAnnounceStorage.cc
  5311. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5312. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5313. peer has at least one completed piece.
  5314. * src/Peer.cc
  5315. * src/Peer.h
  5316. * src/PeerInteractionCommand.cc
  5317. * src/PeerSessionResource.cc
  5318. * src/PeerSessionResource.h
  5319. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5320. Removed unnecessary sorting
  5321. * src/DefaultPieceStorage (DefaultPieceStorage)
  5322. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5323. Rewritten the portion of the code that mangaes allowed fast indexes.
  5324. * src/PeerSessionResource.cc
  5325. * src/PeerSessionResource.h
  5326. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5327. Removed the invalid string including '\r' from ru.po and
  5328. did make update-po.
  5329. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Added --log-level and --summary-interval to man page.
  5331. * doc/aria2c.1.txt
  5332. * doc/aria2c.1.html
  5333. * doc/aria2c.1
  5334. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5335. Added --log-level option to specify log level. Log messages under
  5336. the specified level are not output. Default value is `debug'.
  5337. * src/HelpItemFactory.cc
  5338. * src/LogFactory.cc
  5339. * src/LogFactory.h
  5340. * src/Logger.h
  5341. * src/OptionHandlerFactory.cc
  5342. * src/SimpleLogger.cc
  5343. * src/SimpleLogger.h
  5344. * src/main.cc
  5345. * src/option_processing.cc
  5346. * src/prefs.h
  5347. * src/usage_text.h
  5348. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Print download progress summary of all parallel downloads in specified
  5350. interval, default 60 secs. While aria2 could download several files
  5351. in parallel (see -j option), it displayed just first download progress,
  5352. and the other downloads are hidden from the users. This new feature
  5353. prints all downloads currently in-progress to the console so that you
  5354. can check the status of all downloads. The interval can be adjusted
  5355. by --summary-interval option.
  5356. The progress readout is now cut so that all fits in the one line of
  5357. console.
  5358. * src/ConsoleStatCalc.cc
  5359. * src/ConsoleStatCalc.h
  5360. * src/HelpItemFactory.cc
  5361. * src/OptionHandlerFactory.cc
  5362. * src/RequestGroupMan.cc
  5363. * src/RequestGroupMan.h
  5364. * src/main.cc
  5365. * src/option_processing.cc
  5366. * src/prefs.h
  5367. * src/usage_text.h
  5368. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5369. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5370. * src/DownloadEngine.cc (DownloadEngine)
  5371. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5372. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5373. defined.
  5374. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5375. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5376. Use erase+lower_bound+insert instead of sort.
  5377. * src/DefaultPieceStorage.cc (addPieceStats)
  5378. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5380. * src/A2STR.cc
  5381. * src/A2STR.h
  5382. * src/OptionParser.cc (parse)
  5383. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5384. Defined fake filename `[tracker.announce]' as static const std::string.
  5385. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5386. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5387. Defined default filename `index.html' as static const std::string
  5388. * src/SingleFileDownloadContext.cc
  5389. * src/SingleFileDownloadContext.h
  5390. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5391. Defined "[MEMORY]" as static const std::string.
  5392. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5393. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5394. Defined control file's version number as static const std::string.
  5395. * src/DefaultBtProgressInfoFile.cc
  5396. * src/DefaultBtProgressInfoFile.h
  5397. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5398. Use Request::METHOD_GET
  5399. * src/RequestGroup.cc (createNextCommandWithAdj)
  5400. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5401. Defined "OK", "ERR", "INPR" as static const std::string
  5402. * src/RequestGroupMan.cc (showDownloadResults)
  5403. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5404. Defined default client used in extended handshake as static const
  5405. std::string
  5406. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5407. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5409. * src/HttpConnection.cc (eraseConfidentialInfo)
  5410. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5411. Defined default ftp user and password as static const std::string
  5412. * src/AuthConfigFactory.cc
  5413. * src/AuthConfigFactory.h
  5414. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5415. Defined strings used in netrc as static const std::string
  5416. * src/Netrc.cc
  5417. * src/Netrc.h
  5418. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5419. Defined HTTP status as static const std::string
  5420. * src/AbstractProxyResponseCommand.cc
  5421. * src/HttpHeader.cc
  5422. * src/HttpHeader.h
  5423. * src/HttpResponse.cc
  5424. * src/HttpResponseCommand.cc
  5425. * src/HttpSkipResponseCommand.cc
  5426. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Defined "\r\n", "A", "I" as static const std::string
  5428. * src/A2STR.cc
  5429. * src/A2STR.h
  5430. * src/FtpConnection.cc
  5431. * src/FtpConnection.h
  5432. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5433. Added COLON_C(".") and used it in Request::parseUrl()
  5434. * src/A2STR.cc
  5435. * src/A2STR.h
  5436. * src/Request.cc (parseUrl)
  5437. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5438. Changed the type of padName from `const std::string&' to `const char*'.
  5439. * src/MSEHandshake.cc (verifyPadLength)
  5440. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Defined "sha1" as static const std::string.
  5442. * src/MetalinkParserController.cc
  5443. * src/MetalinkParserController.h
  5444. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5445. Defined message digest algorithm name as static const std::string
  5446. * src/DHTTokenTracker.cc
  5447. * src/DHTUtil.cc
  5448. * src/DefaultBtContext.cc
  5449. * src/MSEHandshake.cc
  5450. * src/MessageDigestHelper.cc
  5451. * src/Peer.cc
  5452. * src/messageDigest.cc
  5453. * src/messageDigest.h
  5454. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. Made string literals used in SAX parser static const std::string.
  5456. * src/FileMetalinkParserState.cc
  5457. * src/FileMetalinkParserState.h
  5458. * src/FilesMetalinkParserState.cc
  5459. * src/FilesMetalinkParserState.h
  5460. * src/InitialMetalinkParserState.cc
  5461. * src/InitialMetalinkParserState.h
  5462. * src/MetalinkMetalinkParserState.cc
  5463. * src/MetalinkMetalinkParserState.h
  5464. * src/PiecesMetalinkParserState.cc
  5465. * src/PiecesMetalinkParserState.h
  5466. * src/ResourcesMetalinkParserState.cc
  5467. * src/ResourcesMetalinkParserState.h
  5468. * src/VerificationMetalinkParserState.cc
  5469. * src/VerificationMetalinkParserState.h
  5470. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5472. * src/A2STR.cc
  5473. * src/A2STR.h
  5474. * src/File.cc
  5475. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5476. Defined static const std::string IP("ip"), PORT("port") and use them
  5477. instead of string literals.
  5478. * src/DefaultPeerListProcessor.cc
  5479. * src/DefaultPeerListProcessor.h
  5480. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5481. Made string literals for torrent file processing static const
  5482. std::string.
  5483. * src/BtContext.cc
  5484. * src/BtContext.h
  5485. * src/DefaultBtContext.cc
  5486. * src/DefaultBtContext.h
  5487. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5488. Made string literal for tracker response static const std::string
  5489. * src/BtAnnounce.cc
  5490. * src/BtAnnounce.h
  5491. * src/DefaultBtAnnounce.cc
  5492. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5493. Use DHTMessage::T instead of "t".
  5494. * src/DHTMessageTracker.cc (messageArrived)
  5495. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Made keyName static const. Made trimmed charset static const
  5497. std::string.
  5498. * src/Util.cc (getContentDispositionFilename)
  5499. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Made USER_AGENT const. Made "/" static const std::string.
  5501. * src/A2STR.cc
  5502. * src/A2STR.h
  5503. * src/HttpRequest.cc
  5504. * src/HttpRequest.h
  5505. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5506. Made string listeral to static const std::string:
  5507. "Content-Range", "Content-Length"
  5508. * src/HttpHeader.cc
  5509. * src/HttpHeader.h
  5510. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Made string listeral to static const std::string.
  5512. * src/HttpConnection.cc
  5513. * src/HttpHeader.cc
  5514. * src/HttpHeader.h
  5515. * src/HttpResponse.cc
  5516. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Made string listeral to static const std::string.
  5518. * src/A2STR.cc
  5519. * src/A2STR.h
  5520. * src/SimpleLogger.cc
  5521. * src/SimpleLogger.h
  5522. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5523. Made string literal to static const std::string.
  5524. Rewritten CookieParser::setField.
  5525. * src/A2STR.cc
  5526. * src/A2STR.h
  5527. * src/CookieBoxFactory.cc
  5528. * src/CookieBoxFactory.h
  5529. * src/CookieParser.cc
  5530. * src/CookieParser.h
  5531. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5532. Made string literal to static const std::string
  5533. * src/DHTAbstractMessage.cc
  5534. * src/DHTAnnouncePeerMessage.cc
  5535. * src/DHTAnnouncePeerMessage.h
  5536. * src/DHTAnnouncePeerReplyMessage.cc
  5537. * src/DHTAnnouncePeerReplyMessage.h
  5538. * src/DHTFindNodeMessage.cc
  5539. * src/DHTFindNodeMessage.h
  5540. * src/DHTFindNodeReplyMessage.cc
  5541. * src/DHTFindNodeReplyMessage.h
  5542. * src/DHTGetPeersMessage.cc
  5543. * src/DHTGetPeersMessage.h
  5544. * src/DHTGetPeersReplyMessage.cc
  5545. * src/DHTGetPeersReplyMessage.h
  5546. * src/DHTMessage.cc
  5547. * src/DHTMessage.h
  5548. * src/DHTMessageFactoryImpl.cc
  5549. * src/DHTMessageReceiver.cc
  5550. * src/DHTPingMessage.cc
  5551. * src/DHTPingMessage.h
  5552. * src/DHTPingReplyMessage.cc
  5553. * src/DHTPingReplyMessage.h
  5554. * src/DHTQueryMessage.cc
  5555. * src/DHTQueryMessage.h
  5556. * src/DHTResponseMessage.cc
  5557. * src/DHTResponseMessage.h
  5558. * src/DHTUnknownMessage.cc
  5559. * src/DHTUnknownMessage.h
  5560. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5561. Made string literal to static const std::string
  5562. * src/BtChokeMessage.cc (toString)
  5563. * src/BtHaveAllMessage.cc (toString)
  5564. * src/BtHaveNoneMessage.cc (toString)
  5565. * src/BtInterestedMessage.cc (toString)
  5566. * src/BtNotInterestedMessage.cc (toString)
  5567. * src/BtUnchokeMessage.cc (toString)
  5568. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. Replaced "" with static const variable A2STR::NIL.
  5570. Replaced string comparison against "" with std::string::empty().
  5571. Added PROTO_* to Request class and use them as a protocol string
  5572. constant.
  5573. Made "started", "stopped", "completed" static const variable in
  5574. AnnounceList class.
  5575. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. Updated translations. Great thanks to translators.
  5577. * po/ca.po
  5578. * po/de.po
  5579. * po/fr.po
  5580. * po/it.po
  5581. * po/ja.po
  5582. * po/ru.po
  5583. * po/zh_CN.po
  5584. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5585. Updated man page; categorized options and fixed typo.
  5586. * doc/aria2c.1.txt
  5587. * doc/aria2c.1.html
  5588. * doc/aria2c.1
  5589. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. Removed const ref
  5591. * src/MetalinkEntry.cc (AddProtocolPreference)
  5592. * src/RequestGroup.cc (FindServerHostByHostname)
  5593. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Rewritten Accept-Features handling.
  5595. * src/HttpRequestCommand.cc (createHttpRequest)
  5596. * src/a2functional.h
  5597. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Changed method signature:
  5599. DHTAbstractNodeLookupTask::toEntries
  5600. * src/DHTAbstractNodeLookupTask.cc
  5601. * src/DHTAbstractNodeLookupTask.h
  5602. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Changed method signature:
  5604. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5605. * src/BtContext.h
  5606. * src/DefaultBtContext.cc
  5607. * src/DefaultBtContext.h
  5608. * src/DefaultBtInteractive.cc
  5609. * test/DefaultBtContextTest.cc
  5610. * test/MockBtContext.h
  5611. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5612. Changed method signature:
  5613. MultiFileAllocationIterator::makeDiskWriterEntries
  5614. * src/MultiFileAllocationIterator.cc
  5615. * src/MultiFileAllocationIterator.h
  5616. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. Changed method sinature:
  5618. MetalinkEntry::toFileEntry,
  5619. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5620. Metalinker::queryEntry
  5621. * src/Metalink2RequestGroup.cc
  5622. * src/MetalinkEntry.cc
  5623. * src/MetalinkEntry.h
  5624. * src/MetalinkHelper.cc
  5625. * src/MetalinkHelper.h
  5626. * src/Metalinker.cc
  5627. * src/Metalinker.h
  5628. * src/main.cc
  5629. * test/MetalinkHelperTest.cc
  5630. * test/MetalinkerTest.cc
  5631. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. Changed method sinature:
  5633. RequestGroup::getURIs
  5634. * src/RequestGroup.cc
  5635. * src/RequestGroup.h
  5636. * test/Metalink2RequestGroupTest.cc
  5637. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5638. Changed method signature:
  5639. PeerListProcessor::extractPeer
  5640. * src/CompactPeerListProcessor.cc
  5641. * src/CompactPeerListProcessor.h
  5642. * src/DefaultBtAnnounce.cc
  5643. * src/DefaultPeerListProcessor.cc
  5644. * src/DefaultPeerListProcessor.h
  5645. * src/DelegatingPeerListProcessor.cc
  5646. * src/DelegatingPeerListProcessor.h
  5647. * src/PeerListProcessor.h
  5648. * src/UTPexExtensionMessage.cc
  5649. * test/DefaultPeerListProcessorTest.cc
  5650. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Changed method signature:
  5652. BtRequestFactory::createRequestMessages,
  5653. BtRequestFactory::createRequestMessagesOnEndGame
  5654. * src/BtRequestFactory.h
  5655. * src/DefaultBtInteractive.cc
  5656. * src/DefaultBtRequestFactory.cc
  5657. * src/DefaultBtRequestFactory.h
  5658. * test/DefaultBtRequestFactoryTest.cc
  5659. * test/MockBtRequestFactory.h
  5660. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5661. Changed method signature:
  5662. PieceStorage::getInFlightPieces
  5663. * src/DefaultBtProgressInfoFile.cc
  5664. * src/DefaultPieceStorage.cc
  5665. * src/DefaultPieceStorage.h
  5666. * src/PieceStorage.h
  5667. * src/UnknownLengthPieceStorage.cc
  5668. * src/UnknownLengthPieceStorage.h
  5669. * test/DefaultBtProgressInfoFileTest.cc
  5670. * test/MockPieceStorage.h
  5671. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5672. Changed method signature:
  5673. PostDownloadHandler::getNextRequestGroups
  5674. Metalink2RequestGroup::generate
  5675. RequestGroup::postDownloadProcessing
  5676. * src/BtPostDownloadHandler.cc
  5677. * src/BtPostDownloadHandler.h
  5678. * src/Metalink2RequestGroup.cc
  5679. * src/Metalink2RequestGroup.h
  5680. * src/MetalinkPostDownloadHandler.cc
  5681. * src/MetalinkPostDownloadHandler.h
  5682. * src/PostDownloadHandler.h
  5683. * src/RequestGroup.cc
  5684. * src/RequestGroup.h
  5685. * src/RequestGroupMan.cc
  5686. * src/main.cc
  5687. * test/BtPostDownloadHandlerTest.cc
  5688. * test/Metalink2RequestGroupTest.cc
  5689. * test/MetalinkPostDownloadHandlerTest.cc
  5690. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Rewritten AccRequestGroup
  5692. * src/main.cc
  5693. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5694. Rewritten.
  5695. * src/TaggedItem.cc (toTagString)
  5696. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5697. Rewritten Accept-Features handling.
  5698. * src/HttpRequestCommand.cc (createHttpRequest)
  5699. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5700. Rewritten accept types handling.
  5701. * HttpRequest.cc (createRequest)
  5702. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5703. Rewritten
  5704. * src/FeatureConfig.cc (featureSummary)
  5705. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5706. Changed method signature:
  5707. PeerStorage::getActivePeers
  5708. * src/DHTPeerAnnounceEntry.cc
  5709. * src/DefaultPeerStorage.cc
  5710. * src/DefaultPeerStorage.h
  5711. * src/PeerStorage.h
  5712. * test/DefaultPeerStorageTest.cc
  5713. * test/MockPeerStorage.h
  5714. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5715. Changed method signature:
  5716. DHTPeerAnnounceStorage::getPeers,
  5717. DHTPeerAnnounceEntry::getPeers
  5718. * src/DHTGetPeersMessage.cc
  5719. * src/DHTPeerAnnounceEntry.cc
  5720. * src/DHTPeerAnnounceEntry.h
  5721. * src/DHTPeerAnnounceStorage.cc
  5722. * src/DHTPeerAnnounceStorage.h
  5723. * test/DHTAnnouncePeerMessageTest.cc
  5724. * test/DHTPeerAnnounceEntryTest.cc
  5725. * test/DHTPeerAnnounceStorageTest.cc
  5726. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. Changed method signature:
  5728. NameResolver::resolve
  5729. * src/DHTEntryPointNameResolveCommand.cc
  5730. * src/InitiateConnectionCommand.cc
  5731. * src/NameResolver.cc
  5732. * src/NameResolver.h
  5733. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Changed method signature:
  5735. PieceStorage::getAdvertisedPieceIndexes
  5736. * src/DefaultBtInteractive.cc
  5737. * src/DefaultPieceStorage.cc
  5738. * src/DefaultPieceStorage.h
  5739. * src/PieceStorage.h
  5740. * src/UnknownLengthPieceStorage.h
  5741. * test/MockPieceStorage.h
  5742. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5743. Changed method signature:
  5744. SegmentMan::getInFlightSegment
  5745. * src/AbstractCommand.cc
  5746. * src/SegmentMan.cc
  5747. * src/SegmentMan.h
  5748. * test/SegmentManTest.cc
  5749. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Changed method signature:
  5751. DHTAbstractNodeLookupTask::getNodesFromMessage
  5752. * src/DHTAbstractNodeLookupTask.cc
  5753. * src/DHTAbstractNodeLookupTask.h
  5754. * src/DHTNodeLookupTask.cc
  5755. * src/DHTNodeLookupTask.h
  5756. * src/DHTPeerLookupTask.cc
  5757. * src/DHTPeerLookupTask.h
  5758. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5759. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5760. * src/AbstractCommand.cc
  5761. * src/BtCheckIntegrityEntry.cc
  5762. * src/BtCheckIntegrityEntry.h
  5763. * src/BtFileAllocationEntry.cc
  5764. * src/BtFileAllocationEntry.h
  5765. * src/BtSetup.cc
  5766. * src/BtSetup.h
  5767. * src/CheckIntegrityCommand.cc
  5768. * src/CheckIntegrityEntry.h
  5769. * src/ChecksumCheckIntegrityEntry.cc
  5770. * src/ChecksumCheckIntegrityEntry.h
  5771. * src/DHTSetup.cc
  5772. * src/DHTSetup.h
  5773. * src/DownloadEngine.cc
  5774. * src/FileAllocationCommand.cc
  5775. * src/FileAllocationEntry.h
  5776. * src/RequestGroup.cc
  5777. * src/RequestGroup.h
  5778. * src/RequestGroupMan.cc
  5779. * src/RequestGroupMan.h
  5780. * src/StreamCheckIntegrityEntry.cc
  5781. * src/StreamCheckIntegrityEntry.h
  5782. * src/StreamFileAllocationEntry.cc
  5783. * src/StreamFileAllocationEntry.h
  5784. * src/TrackerWatcherCommand.cc
  5785. * src/a2functional.h
  5786. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5787. Changed method signature:
  5788. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5789. DHTBucket::getGoodNodes,
  5790. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5791. * src/BNode.cc
  5792. * src/BNode.h
  5793. * src/DHTAbstractNodeLookupTask.cc
  5794. * src/DHTAutoSaveCommand.cc
  5795. * src/DHTBucket.cc
  5796. * src/DHTBucket.h
  5797. * src/DHTBucketRefreshTask.cc
  5798. * src/DHTFindNodeMessage.cc
  5799. * src/DHTGetPeersMessage.cc
  5800. * src/DHTRoutingTable.cc
  5801. * src/DHTRoutingTable.h
  5802. * test/BNodeTest.cc
  5803. * test/DHTBucketTest.cc
  5804. * test/DHTRoutingTableTest.cc
  5805. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5806. In piece selection functions, Pass std::deque<...> by reference rather
  5807. than returning it.
  5808. * src/BitfieldMan.cc
  5809. * src/BitfieldMan.h
  5810. * src/DefaultBtRequestFactory.cc
  5811. * src/DefaultPieceStorage.cc
  5812. * src/Piece.cc
  5813. * src/Piece.h
  5814. * test/BitfieldManTest.cc
  5815. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Implemented rarest piece first piece selection strategy.
  5817. * src/AbstractBtMessage.cc
  5818. * src/AbstractBtMessage.h
  5819. * src/BitfieldMan.cc
  5820. * src/BitfieldMan.h
  5821. * src/BtBitfieldMessage.cc
  5822. * src/BtHaveAllMessage.cc
  5823. * src/BtHaveMessage.cc
  5824. * src/DefaultPieceStorage.cc
  5825. * src/DefaultPieceStorage.h
  5826. * src/PeerInteractionCommand.cc
  5827. * src/PieceStorage.h
  5828. * src/UnknownLengthPieceStorage.h
  5829. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Rewritten readData and writeData.
  5831. * src/MultiDiskAdaptor.cc
  5832. * src/MultiDiskAdaptor.h
  5833. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. Move \n out of the message "Usage: ...".
  5835. * src/version_usage.cc
  5836. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5837. Bump up version number to 0.13.2b.
  5838. * configure.ac
  5839. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5840. Added const qualifier to argument Exception& e.
  5841. * src/Logger.h
  5842. * src/SimpleLogger.cc
  5843. * src/SimpleLogger.h
  5844. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5845. Pool connection when CWD, SIZE command fails.
  5846. * src/FtpNegotiationCommand.cc
  5847. * src/FtpNegotiationCommand.h
  5848. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5849. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5850. * src/HttpResponseCommand.cc
  5851. * src/HttpSkipResponseCommand.cc
  5852. * src/HttpSkipResponseCommand.h
  5853. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5854. Pool connection when a server returns 4xx, 5xx responses.
  5855. * src/HttpNullDownloadCommand.cc
  5856. * src/HttpNullDownloadCommand.h
  5857. * src/HttpResponse.cc
  5858. * src/HttpResponse.h
  5859. * src/HttpResponseCommand.cc
  5860. * src/HttpResponseCommand.h
  5861. * test/HttpResponseTest.cc
  5862. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Print usage when no URL is specifed or bad command-line option is
  5864. specified.
  5865. * src/HelpItemFactory.cc
  5866. * src/help_tags.h
  5867. * src/option_processing.cc
  5868. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Removed duplicate log message.
  5870. * src/AbstractCommand.cc (asyncResolveHostname)
  5871. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5872. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5873. Changed -j option's default value from 5 to 1.
  5874. Added new examples using protocol auto detection feature.
  5875. Removed -T, -M usage where it can be omitted.
  5876. * doc/aria2c.1.txt
  5877. * doc/aria2c.1.html
  5878. * doc/aria2c.1.txt
  5879. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Updated command-line usage text, so that it tells users that they
  5881. can specify any number of torrent files and metalink files in
  5882. command-line.
  5883. * src/version_usage.cc
  5884. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5885. Changed the default value of -j option to 1.
  5886. * src/HelpItemFactory.cc
  5887. * src/option_processing.cc
  5888. * src/usage_text.h
  5889. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Added the ability to reuse connection in FTP and it is enabled by
  5891. default. It can be disabled by --ftp-reuse-connection=false option.
  5892. * src/Command.cc
  5893. * src/DownloadCommand.cc
  5894. * src/FtpDownloadCommand.cc
  5895. * src/FtpDownloadCommand.h
  5896. * src/FtpFinishDownloadCommand.cc
  5897. * src/FtpFinishDownloadCommand.h
  5898. * src/FtpInitiateConnectionCommand.cc
  5899. * src/FtpNegotiationCommand.cc
  5900. * src/FtpNegotiationCommand.h
  5901. * src/HelpItemFactory.cc
  5902. * src/Makefile.am
  5903. * src/Makefile.in
  5904. * src/OptionHandlerFactory.cc
  5905. * src/option_processing.cc
  5906. * src/prefs.h
  5907. * src/usage_text.h
  5908. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Call Command::transitStatus() before calling Command::execute(),
  5910. so that the status change made in execute() is not cleared.
  5911. * src/DownloadEngine.cc
  5912. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5913. Removed forward declaration of SocketCore class.
  5914. * src/HttpDownloadCommand.h
  5915. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5917. in InitiateConnectionCommandFactory. They should be set only when
  5918. the protocol is HTTP or HTTPS.
  5919. * src/InitiateConnectionCommandFactory.cc
  5920. * src/RequestGroup.cc
  5921. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5922. Fixed infinite loop in checksum checking.
  5923. * src/IteratableChecksumValidator.cc
  5924. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5925. Set _supportsPersistentConnection to true by default.
  5926. * src/Request.cc
  5927. * src/RequestGroup.cc
  5928. * test/HttpRequestTest.cc
  5929. * test/RequestTest.cc
  5930. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Added timeout to socket pool. The default timeout is 15 seconds,
  5932. which is the same value Apache uses.
  5933. * src/DownloadEngine.cc
  5934. * src/DownloadEngine.h
  5935. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Fixed misuse of multimap::find()
  5937. * src/HttpHeader.cc
  5938. * test/HttpHeaderTest.cc
  5939. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5940. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5941. option.
  5942. The asynchronous DNS is not capable of IPv6 yet.
  5943. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5944. least for HTTP download.
  5945. * src/AbstractCommand.cc
  5946. * src/AbstractCommand.h
  5947. * src/AsyncNameResolver.cc
  5948. * src/AsyncNameResolver.h
  5949. * src/DHTEntryPointNameResolveCommand.cc
  5950. * src/DHTEntryPointNameResolveCommand.h
  5951. * src/DownloadEngine.cc
  5952. * src/DownloadEngine.h
  5953. * src/FtpInitiateConnectionCommand.cc
  5954. * src/FtpInitiateConnectionCommand.h
  5955. * src/HelpItemFactory.cc
  5956. * src/HttpInitiateConnectionCommand.cc
  5957. * src/HttpInitiateConnectionCommand.h
  5958. * src/InitiateConnectionCommand.cc
  5959. * src/InitiateConnectionCommand.h
  5960. * src/Makefile.am
  5961. * src/Makefile.in
  5962. * src/NameResolver.cc
  5963. * src/NameResolver.h
  5964. * src/OptionHandlerFactory.cc
  5965. * src/SocketCore.cc
  5966. * src/SocketCore.h
  5967. * src/Util.cc
  5968. * src/Util.h
  5969. * src/option_processing.cc
  5970. * src/prefs.h
  5971. * src/usage_text.h
  5972. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Updated man page: --quiet, --header were added.
  5974. --metalink-servers and --enable-http-keep-alive option were updated.
  5975. * doc/aria2c.1
  5976. * doc/aria2c.1.html
  5977. * doc/aria2c.1.txt
  5978. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5979. Enable HTTP keep-alive by default.
  5980. * src/HelpItemFactory.cc
  5981. * src/option_processing.cc
  5982. * src/usage_text.h
  5983. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5984. Disable http keep-alive if the remote server is not HTTP/1.1.
  5985. * src/HttpConnection.cc
  5986. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5987. Receive content body of 302 response so that the connection can be
  5988. reused later when http keep-alive is enabled.
  5989. * src/HttpNullDownloadCommand.cc
  5990. * src/HttpNullDownloadCommand.h
  5991. * src/HttpResponseCommand.cc
  5992. * src/HttpResponseCommand.h
  5993. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. const SharedHandle<Request> -> const SharedHandle<Request>&
  5995. * src/FtpDowndloadCommand.cc
  5996. * src/FtpDowndloadCommand.h
  5997. * src/HttpDownloadCommand.cc
  5998. * src/HttpDownloadCommand.h
  5999. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6000. Fixed the bug that the control file(.aria2 file) is not renamed
  6001. according to tryAutoFileRenaming().
  6002. tryAutoFileRenaming() was rewritten so that if both renamed file and
  6003. its control file exist, use them and continue download.
  6004. The old implementation didn't take into account of control file's
  6005. existence, so basically you couldn't continue download of renamed file.
  6006. * src/BtProgressInfoFile.h
  6007. * src/DefaultBtProgressInfoFile.cc
  6008. * src/DefaultBtProgressInfoFile.h
  6009. * src/NullProgressInfoFile.h
  6010. * src/RequestGroup.cc
  6011. * test/DefaultBtProgressInfoFileTest.cc
  6012. * test/MockBtProgressInfoFile.h
  6013. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Change the default value of --metalink-servers option from `5' to `1'.
  6015. * src/HelpItemFactory.cc
  6016. * src/option_processing.cc
  6017. * src/usage_text.h
  6018. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6019. Reimplemented transparent metalink using Accept request header.
  6020. * src/HttpRequest.cc
  6021. * src/HttpRequest.h
  6022. * src/HttpRequestCommand.cc
  6023. * src/Metalink2RequestGroup.cc
  6024. * src/RequestGroup.cc
  6025. * src/RequestGroup.h
  6026. * test/HttpRequestTest.cc
  6027. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Bump up version number to 0.13.2a
  6029. * configure.ac
  6030. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6031. Updated configure.ac using the result of autoscan.
  6032. * configure.ac
  6033. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6034. Fixed compilation error without gcrypt/openssl.
  6035. * src/DownloadCommand.cc
  6036. * src/DownloadCommand.h
  6037. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. Reorganized version information so that it can be displayed in a
  6039. standard terminal screen without scrolling.
  6040. Removed http, ftp from Configuration section, because they are always
  6041. enabled.
  6042. * src/FeatureConfig.cc
  6043. * src/FeatureConfig.h
  6044. * src/main.cc
  6045. * src/messageDigest.cc
  6046. * src/messageDigest.h
  6047. * src/version_usage.cc
  6048. * test/FeatureConfigTest.cc
  6049. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Masked user ID in log.
  6051. * src/FtpConnection.cc (sendUser)
  6052. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6053. Removed query part from filename in HTTP download. The query part means
  6054. the substring after "?" in URL. Firefox seems do the same thing.
  6055. A query part is sometimes very long and not suitable to filename,
  6056. so I think it is better to remove it from filename.
  6057. * src/HttpRequest.cc
  6058. * src/HttpRequest.h
  6059. * src/Request.cc
  6060. * src/Request.h
  6061. * test/HttpRequestTest.cc
  6062. * test/RequestTest.cc
  6063. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6064. Rewritten Exception class. Throw exception object, not its pointer and
  6065. catch by reference, so that remove problematic delete operator for
  6066. catched exception.
  6067. * src/Exception.cc
  6068. * src/Exception.h
  6069. * test/ExceptionTest.cc
  6070. * src/*: All files throwing/catching exception.
  6071. * test/*: All files throwing/catching exception.
  6072. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6073. Now auto protocol detection is enabled without -Z option.
  6074. But there is a important difference between with/without -Z optoin.
  6075. For example, if you type:
  6076. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6077. then, aria2 interprets there are 3 request groups:
  6078. (1) http://host/file, http://mirror/file <-- multi-source download
  6079. (2) file1.torrent
  6080. (3) file2.metalink
  6081. On the other hand, if you invoke above command with -Z option, it is
  6082. interpreted as 4 request groups:
  6083. (1) http://host/file
  6084. (2) file1.torrent
  6085. (3) file2.metalink
  6086. (4) http://mirror/file
  6087. I think usually user don't mix multi-source URLs and torrent files, so
  6088. there is no big problem here.
  6089. * src/main.cc
  6090. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6091. Fixed the bug that causes segmentaion fault when reading XML containing
  6092. unescapsed character like '&'.
  6093. Also a modification was made which avoids adding unnecessary
  6094. characters stack and appending unused string.
  6095. * src/ExpatMetalinkProcessor.cc
  6096. * src/FileMetalinkParserState.h
  6097. * src/FilesMetalinkParserState.h
  6098. * src/FinMetalinkParserState.h
  6099. * src/HashMetalinkParserState.h
  6100. * src/InitialMetalinkParserState.h
  6101. * src/LanguageMetalinkParserState.h
  6102. * src/MetalinkMetalinkParserState.h
  6103. * src/MetalinkParserState.h
  6104. * src/MetalinkParserStateMachine.cc
  6105. * src/MetalinkParserStateMachine.h
  6106. * src/OSMetalinkParserState.h
  6107. * src/PieceHashMetalinkParserState.h
  6108. * src/PiecesMetalinkParserState.h
  6109. * src/ResourcesMetalinkParserState.h
  6110. * src/SizeMetalinkParserState.h
  6111. * src/SkipTagMetalinkParserState.h
  6112. * src/URLMetalinkParserState.h
  6113. * src/VerificationMetalinkParserState.h
  6114. * src/VersionMetalinkParserState.h
  6115. * src/XML2SAXMetalinkProcessor.cc
  6116. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. Added StringFormat class, which internally calls vasprintf.
  6118. operator<< is defined for this class, so it can be used with iostream
  6119. classes nicely. SimpleLogger and following functions are rewritten
  6120. using StringFormat class.
  6121. Besides, now Logger class's methods are non-const, many classes
  6122. that has a const Logger* as a member variable are modified to remove
  6123. const qualifier from the variable declaration.
  6124. * src/HelpItemFactory.cc
  6125. * src/Request.cc
  6126. * src/SimpleLogger.cc
  6127. * src/StringFormat.cc
  6128. * src/StringFormat.h
  6129. * src/Util.cc
  6130. * src/option_processing.cc
  6131. * src/version_usage.cc
  6132. * test/StringFormatTest.cc
  6133. * src/*.h: The classes that has const Logger* as a member variable.
  6134. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6136. failed. Also fixed memory link when exception is thrown there.
  6137. * src/main.cc (AccRequestGroup)
  6138. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6139. Added build-in "Accept-Features" support. For now only "metalink" is
  6140. used in this header field.
  6141. This "metalink" value is removed from the list when connecting URLs
  6142. fed by metalink file to avoid loop in "transparent" metlaink.
  6143. * src/HttpRequest.cc
  6144. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6145. header is also held in this variable. Also renamed setUserHeaders as
  6146. addHeader and it was rewritten to add header not just to clear the old
  6147. value.
  6148. * src/HttpRequestCommand.cc
  6149. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6150. from "Accept-Features" list.
  6151. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6152. default.
  6153. * src/RequestGroup.h
  6154. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6155. * src/a2functional.h: Included <string> because Concat class depends on
  6156. it.
  6157. * test/HttpRequestTest.cc
  6158. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Added comment
  6160. * src/RequestGroup.cc (createNextCommand)
  6161. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6162. Capitalized METHOD_GET and METHOD_HEAD
  6163. * src/Request.cc
  6164. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Added getDownloadResults() method
  6166. * src/RequestGroupMan.cc
  6167. * src/RequestGroupMan.h
  6168. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Fixed the bug that aria2 exits when commands is empty() but
  6170. _routineCommands are not.
  6171. * src/DownloadEngine.cc
  6172. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6173. Use the default value pulled from Option object in HelpItemFactory.
  6174. except options whose defualt value is embedded in a usage text.
  6175. * src/HelpItemFactory.cc
  6176. * src/HelpItemFactory.h
  6177. * src/option_processing.cc
  6178. * src/version_usage.cc
  6179. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6180. Added --quiet option to make aria2 quiet (no console output).
  6181. --quiet option is tagged with ADVANCED.
  6182. * src/HelpItemFactory.cc
  6183. * src/LogFactory.cc
  6184. * src/LogFactory.h
  6185. * src/MultiUrlRequestInfo.cc
  6186. * src/MultiUrlRequestInfo.h
  6187. * src/NullStatCalc.h: New class. This class prints nothing.
  6188. * src/OptionHandlerFactory.cc
  6189. * src/main.cc
  6190. * src/option_processing.cc
  6191. * src/prefs.h
  6192. * src/usage_text.h
  6193. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6194. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6195. * src/HelpItemFactory.cc (createHelpItems):
  6196. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6197. Fixed compilation error in ExpatMetalinkProcessor.cc
  6198. * src/ExpatMetalinkProcessor.cc
  6199. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6200. Reuse socket if the origin server supports HTTP keep-alive and
  6201. --enable-http-keep-alive or --enable-http-pipelining is given.
  6202. The current implementation doesn't reuse the connections established
  6203. against proxy server.
  6204. * src/AbstractCommand.cc
  6205. * src/DownloadEngine.cc
  6206. * src/DownloadEngine.h
  6207. * src/HttpDownloadCommand.cc
  6208. * src/HttpInitiateConnectionCommand.cc
  6209. * src/HttpResponseCommand.cc
  6210. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Rewritten HTTP keep-alive and pipelining routine.
  6212. * src/AbstractCommand.cc
  6213. * src/HttpConnection.cc
  6214. * src/HttpDownloadCommand.cc
  6215. * src/HttpRequest.cc
  6216. * src/HttpRequestCommand.cc
  6217. * src/HttpResponseCommand.cc
  6218. * src/Request.cc
  6219. * src/Request.h
  6220. * src/RequestGroup.cc
  6221. * test/HttpRequestTest.cc
  6222. * test/HttpResponseTest.cc
  6223. * test/RequestTest.cc
  6224. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6225. Added missing setUserHeaders call
  6226. * src/HttpRequestCommand.cc
  6227. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6228. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6229. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6230. waste of time because it is more likey false.
  6231. * src/FileAllocationDispatcherCommand.cc (execute)
  6232. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. Now HTTP status and version are a member variable of HttpHeader.
  6234. HTTP status is processed as a string, not integer.
  6235. * src/AbstractProxyResponseCommand.cc
  6236. * src/HttpConnection.cc
  6237. * src/HttpHeader.cc
  6238. * src/HttpHeader.h
  6239. * src/HttpHeaderProcessor.cc
  6240. * src/HttpHeaderProcessor.h
  6241. * src/HttpResponse.cc
  6242. * src/HttpResponse.h
  6243. * test/HttpHeaderProcessorTest.cc
  6244. * test/HttpResponseTest.cc
  6245. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6246. Added --header option. You can specify any number of additional HTTP headers
  6247. like:
  6248. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6249. Unlike other commad-line option, you can use --header option multiple times.
  6250. * src/HelpItemFactory.cc
  6251. * src/HttpRequest.{cc, h}
  6252. * src/HttpRequestCommand.cc
  6253. * src/OptionHandlerFactory.cc
  6254. * src/OptionHandlerImpl.h
  6255. * src/option_processing.cc
  6256. * src/prefs.h
  6257. * src/usage_text.h
  6258. * test/HttpRequestTest.cc (testUserHeaders)
  6259. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6260. Eliminates the time lag between sequential downloads and commands in
  6261. the same RequestGroup.
  6262. In old implementation, aria2 occasionally waits 1 seconds before
  6263. executing next command or RequestGroup.
  6264. This is really a waste of time, and new implementation eliminates
  6265. this unnecessary time lag.
  6266. * src/AbstractCommand.cc
  6267. * src/AutoSaveCommand.cc
  6268. * src/CheckIntegrityCommand.cc
  6269. * src/Command.{cc, h}
  6270. * src/DownloadEngine.{cc, h}
  6271. * src/DownloadEngineFactory.cc
  6272. * src/FileAllocationCommand.cc
  6273. * src/FileAllocationDispatcherCommand.cc
  6274. * src/FillRequestGroupCommand.cc
  6275. * src/FtpInitiateConnectionCommand.cc
  6276. * src/HaveEraseCommand.cc
  6277. * src/HttpInitiateConnectionCommand.cc
  6278. * src/HttpResponseCommand.cc
  6279. * src/RealtimeCommand.cc
  6280. * src/RequestGroup.cc
  6281. * src/RequestGroupMan.cc
  6282. * src/StreamFileAllocationEntry.cc
  6283. * src/TimeBasedCommand.{cc, h}
  6284. * src/TimedHaltCommand.cc
  6285. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6286. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6287. keyword explicit and SharedHandle's default constructor initializes
  6288. its internal obj to null, old implementation initializes it using
  6289. obj's default constructor.
  6290. To assign null, write SharedHandle<T> x(...); x.reset();
  6291. TODO: test/SharedHandleTest.cc needs more tests.
  6292. * src/SharedHandle.h
  6293. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Fixed type in man page.
  6295. * doc/aria2c.1.txt
  6296. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6298. * src/SimpleLogger.{cc, h}
  6299. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Implemented auto protocol detection.
  6301. Now you can do:
  6302. aria2c -Z http://host/file file1.torrent file2.metalink
  6303. (Note: -Z option is required for auto protcol detection.)
  6304. Then aria2c downloads 3 files simultaneously:
  6305. 1. http://host/file
  6306. 2. file1.torrent <-- read local torrent file
  6307. 3. file2.metalink <-- read local Metalink file.
  6308. Same thing goes with -i option. Assume your uris.txt contans:
  6309. http://host/file
  6310. file1.torrent
  6311. file2.metalink
  6312. Then you can do: aria2c -i uris.txt
  6313. (Note: -Z option is not needed if -i option is given.)
  6314. * src/main.cc
  6315. * src/ProtocolDetector.{cc, h}
  6316. * test/ProtocolDetectorTest.cc
  6317. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6319. installed
  6320. * src/ARC4Encryptor.h
  6321. * src/ARC4Decryptor.h
  6322. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6323. Renamed argument from 'errno' to 'err', since errno is confused with
  6324. errno defined in errno.h.
  6325. * src/LibgcryptARC4Decryptor.h
  6326. * src/LibgcryptARC4Context.h
  6327. * src/LibgcryptDHKeyExchange.h
  6328. * src/LibgcryptARC4Encryptor.h
  6329. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. Rewritten choking algorithm.
  6331. * src/PeerChokeCommand.{cc, h}
  6332. * src/BtInterestedMessage.cc
  6333. * src/PeerSessionResource.{cc, h}
  6334. * src/DefaultPeerStorage.{cc, h}
  6335. * src/BtNotInterestedMessage.cc
  6336. * src/DefaultBtMessageDispatcher.{cc, h}
  6337. * src/BtMessageDispatcher.h
  6338. * src/Peer.{cc, h}
  6339. * src/BtLeecherStateChoke.{cc, h}
  6340. * src/BtSetup.cc
  6341. * src/BtSeederStateChoke.{cc, h}
  6342. * src/PeerStorage.h
  6343. * test/MockPeerStorage.h
  6344. * test/MockBtMessageDispatcher.h
  6345. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6346. Fixed compilation error on x84-64 platform.
  6347. * src/AuthConfig.cc: Included ostream.
  6348. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6349. Rewritten getBasename() and getDirname(), without standard library
  6350. basename(), dirname().
  6351. * src/File.cc
  6352. * test/FileTest.cc
  6353. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6354. Added Simplified Chinese translation. Also updated the following
  6355. translations: Polish, Dutch, German. Great thanks to all translators.
  6356. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Suppress content-range error when 'Content-Range' response header
  6358. doesn't contains bytes-unit specifier 'bytes'
  6359. * src/HttpHeader.cc (getRange)
  6360. * test/HttpHeaderTest.cc
  6361. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Fixed compilation error with g++-4.3
  6363. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. Added missing include files for MinGW
  6365. * test/HttpHeaderProcessorTest.cc
  6366. * test/DHTRoutingTableSerializerTest.cc
  6367. * test/DHTRoutingTableDeserializerTest.cc
  6368. * test/UriListParserTest.cc
  6369. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Now download line is printed nicely with no garbage at the end of
  6371. line. I use ioctl to get the columns of terminal.
  6372. If stdout is redirected to another device, instead of carriage return,
  6373. end of line '\n' character is used. This is feature request#1909659
  6374. * src/ConsoleStatCalc.cc (calculateStat)
  6375. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Included a2time.h
  6377. * src/DHTMessageDispatcher.h
  6378. * src/DHTMessageEntry.h
  6379. * src/DHTReplaceNodeTask.h
  6380. * src/DHTMessageTracker.h
  6381. * src/Util.h
  6382. * src/CookieBox.h
  6383. * src/SocketCore.h
  6384. * src/DefaultBtMessageDispatcher.h
  6385. * src/SocketCore.cc
  6386. * src/Util.cc
  6387. * src/DHTPingTask.h
  6388. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6389. Fixed high memory footprint when DHT is enabled.
  6390. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6391. queued than it is processed and the queue is getting longer. As a
  6392. consequence, momory usage is increased.
  6393. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6394. replacement cache in DHTBucket which is described in Kademlia paper.
  6395. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6396. DHTReplaceNodeTask.
  6397. * src/DHTBucket.{h, cc}
  6398. (cacheNode): New function.
  6399. (getCachedNodes): New function.
  6400. (dropNode): Push back cached node to _nodes.
  6401. * test/DHTBucketTest.cc
  6402. (testCacheNode): New test
  6403. (testDropNode): New test
  6404. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6405. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6406. the unused 4KB memory when ssl is not used.
  6407. * src/SocketCore.cc
  6408. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6409. Added summary log for peer announce storage.
  6410. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6411. Removed cast
  6412. * src/DefaultPeerStorage.cc (addPeer)
  6413. Log exception message
  6414. * src/DHTMessageTracker.cc (handleTimeout)
  6415. Fixed casting
  6416. * test/HttpRequestTest.cc
  6417. * test/MetalinkProcessorTest.cc
  6418. * test/PieceTest.cc
  6419. * test/MetalinkEntryTest.cc
  6420. * test/SequenceTest.cc
  6421. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. * src/ParameterizedStringParser.cc (createLoop):
  6423. Removed unused variable sstep.
  6424. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6425. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. * src/Util.{h, cc}
  6427. (parseUInt): New function.
  6428. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6429. The actual range is uint32_t.
  6430. * test/UtilTest.cc
  6431. * src/ParameterizedStringParser.cc:
  6432. Use Util::parseUInt() for loop variables.
  6433. * test/ParameterizedStringParserTest.cc
  6434. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6435. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6436. Rewritten the functions for binding port.
  6437. * src/DHTConnectionImpl.{h, cc}
  6438. * src/PeerListenCommand.{h, cc}
  6439. * src/DHTSetup.cc
  6440. * src/BtSetup.cc
  6441. * test/DHTConnectionImplTest.cc
  6442. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. type cleanup for allmost all remaining files.
  6444. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6445. Type clarification
  6446. * src/PeerSessionResource.{h, cc}
  6447. * src/DefaultPieceStorage.{h, cc}
  6448. * src/Peer.{h, cc}
  6449. * test/PeerSessionResourceTest.cc
  6450. Use div function
  6451. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6452. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Type clarification
  6454. * src/DefaultPeerStorage.{h, cc}
  6455. * test/DefaultPeerStorageTest.cc
  6456. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6457. Type clarification: size_t for length or size, uint64_t for file
  6458. length, off_t for file offset.
  6459. * src/DefaultBtProgressInfoFile.cc
  6460. * src/DefaultBtContext.{h, cc}
  6461. * src/DefaultBtInteractive.cc
  6462. * src/DownloadCommand.{h, cc}
  6463. * src/IteratableChunkChecksumValidator.{h, cc}
  6464. * src/SegmentMan.{h, cc}
  6465. * src/SingleFileDownloadContext.{h, cc}
  6466. * src/IteratableChecksumValidator.{h, cc}
  6467. * src/BtContext.h
  6468. * src/IteratableValidator.h
  6469. * src/DownloadContext.h
  6470. * test/SingleFileDownloadContextTest.cc
  6471. * test/DefaultBtContextTest.cc
  6472. * test/MockBtContext.h
  6473. * test/Metalink2RequestGroupTest.cc
  6474. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Type clarification: size_t for length or size, uint64_t for file
  6476. length, off_t for file offset.
  6477. * src/PiecedSegment.cc
  6478. * src/GrowSegment.h
  6479. * src/DefaultBtRequestFactory.h
  6480. * src/DefaultBtProgressInfoFile.cc
  6481. * src/UnknownLengthPieceStorage.h
  6482. * src/DefaultPieceStorage.cc
  6483. * src/UnknownLengthPieceStorage.cc
  6484. * src/DefaultBtInteractive.cc
  6485. * src/GrowSegment.cc
  6486. * src/BitfieldMan.h
  6487. * src/DownloadCommand.cc
  6488. * src/BtRequestFactory.h
  6489. * src/PiecedSegment.h
  6490. * src/DefaultPieceStorage.h
  6491. * src/Piece.cc
  6492. * src/DefaultBtRequestFactory.cc
  6493. * src/PieceStorage.h
  6494. * src/Segment.h
  6495. * src/Piece.h
  6496. * src/BitfieldMan.cc
  6497. * src/Util.cc
  6498. * test/DefaultBtProgressInfoFileTest.cc
  6499. * test/DefaultPieceStorageTest.cc
  6500. * test/MockPieceStorage.h
  6501. * test/BtRequestMessageTest.cc
  6502. * test/DefaultBtMessageDispatcherTest.cc
  6503. * test/BitfieldManTest.cc
  6504. * test/GrowSegmentTest.cc
  6505. * test/PieceTest.cc
  6506. * test/SegmentTest.cc
  6507. * test/SegmentManTest.cc
  6508. * test/DefaultBtRequestFactoryTest.cc
  6509. * test/MockBtRequestFactory.h
  6510. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6511. Fixed compilation error with --disable-nls
  6512. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6513. in gettext.h causes the problem.
  6514. * src/common.h
  6515. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Removed subPiece related functions.
  6517. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6518. * src/DefaultPieceStorage.{h, cc}
  6519. * test/PieceTest.cc
  6520. * test/DefaultPieceStorageTest.cc
  6521. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Use unsigned char for data store.
  6523. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Bump up version number to 0.13.0+1
  6525. * configure.ac
  6526. * Release 0.13.0+1
  6527. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6528. Changed inactive connection timeout to 120.
  6529. To accept more mulually interested peers, disconnect peer when there
  6530. is no interest between us after certain time passed.
  6531. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6532. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6534. when compiled with async DNS support.
  6535. * src/DownloadEngine.cc
  6536. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6537. value '10' will be a little bit short when some DNS servers are
  6538. offline and several DNS servers are tried. It should be configured
  6539. by command-line option.
  6540. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. Merged Ross's mingw patch.
  6542. * src/DHTRoutingTableDeserializer.cc
  6543. * src/DHTRoutingTableSerializer.cc
  6544. * src/Platform.{h, cc}
  6545. * src/timegm.h
  6546. * src/gettimeofday.h
  6547. * src/getaddrinfo.h
  6548. * src/SocketCore.h
  6549. * src/common.h
  6550. * src/inet_aton.h
  6551. * src/DownloadEngine.h
  6552. * src/gai_strerror.h
  6553. * src/a2netcompat.h
  6554. * configure.ac
  6555. * configure
  6556. * aclocal.m4
  6557. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6558. Included missing iostream.
  6559. * test/AllTest.cc
  6560. * test/BtDependencyTest.cc
  6561. * test/BtExtendedMessageTest.cc
  6562. * test/DHTConnectionImplTest.cc
  6563. * test/DHTMessageFactoryImplTest.cc
  6564. * test/DHTMessageTrackerEntryTest.cc
  6565. * test/DHTNodeTest.cc
  6566. * test/DHTRoutingTableSerializerTest.cc
  6567. * test/DefaultBtAnnounceTest.cc
  6568. * test/DefaultBtContextTest.cc
  6569. * test/DefaultBtMessageFactoryTest.cc
  6570. * test/DefaultExtensionMessageFactoryTest.cc
  6571. * test/HandshakeExtensionMessageTest.cc
  6572. * test/HttpResponseTest.cc
  6573. * test/MetalinkProcessorTest.cc
  6574. * test/MultiFileAllocationIteratorTest.cc
  6575. * test/SocketCoreTest.cc
  6576. * test/UTPexExtensionMessageTest.cc
  6577. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Reorganized includes.
  6579. * src/NameResolver.cc
  6580. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Fixed compilation error without ares/c-ares
  6582. * src/NameResolver.h:
  6583. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. Added a test for large file.
  6585. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6586. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6587. Fixed the bug that file size is ignored if size > INT32_MAX
  6588. * src/SizeMetalinkParserState.cc (endElement):
  6589. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Bump up version number to 0.13.0
  6591. * configure.ac
  6592. * Release 0.13.0
  6593. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Updated Makfefile.am to make 'make dist' work.
  6595. Now packaged filename is aria2c-VERSION.tar.bz2.
  6596. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6597. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6598. Large file support is now configured by configure script.
  6599. * configure.ac
  6600. Removed unsused source files
  6601. * src/
  6602. * test/
  6603. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6604. Peer.h and BtContext.h respectively.
  6605. * src/Peer.h
  6606. * src/BtContext.h
  6607. Updated translations.
  6608. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6609. translations. Great thanks to all translators!;)
  6610. * po/*.{po, gmo}
  6611. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6612. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6613. statically declared sha1 MessageDigestContext.
  6614. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6615. initialization of short-lived MessageDigestContext.
  6616. * src/MessageDigestHelper.{h, cc}
  6617. * src/main.cc
  6618. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6619. the initialization of MessageDigestContext every time in validating
  6620. chunk checksum.
  6621. * src/DownloadCommand.{h, cc}
  6622. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Add a file descriptor which connected to fast peer(latency<1500) to
  6624. select(). This change reduced CPU load.
  6625. * src/PeerInteractionCommand.cc
  6626. * src/DefaultBtInteractive.{h, cc}
  6627. * src/BtInteractive.h
  6628. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6629. Fixed the previous insufficient fix for possible busy loop.
  6630. * src/MSEHandshake.cc (identifyHandshakeType)
  6631. Removed unused functions.
  6632. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6633. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6634. Fixed possible busy loop if first 20 bytes are not received for a few
  6635. minutes.
  6636. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6637. * src/ReceiverMSEHandshakeCommand.cc
  6638. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6639. Fixed compilation error
  6640. * src/ExpatMetalinkProcessor.cc
  6641. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6642. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6643. * src/DHTBucket.cc
  6644. Removed unnecessary cast.
  6645. * src/HandshakeExtensionMessage.cc
  6646. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6647. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6648. is missing.
  6649. * src/OptionHandlerFactory.cc
  6650. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Fixed the bug that HAVE message is not sent for a piece they are
  6652. downloaded fom http/ftp server before any BitTorrent handshake is done
  6653. with peers.
  6654. * src/DefaultBtInteractive.cc
  6655. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6657. * src/Makefile.am
  6658. * src/Makefile.in
  6659. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Updated README. Added html version of README and man page.
  6661. * README
  6662. * README.html
  6663. * readme2html: Shell script to generate README.html from README using
  6664. asciidoc.
  6665. * doc/aria2c.1.html
  6666. * doc/makeman: Added the line to generate aria2c.1.html
  6667. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6668. Fixed offset calculation.
  6669. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6670. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Rewritten itos and uitos using template. llitos and ullitos are
  6672. replaced with itos and uitos respectively.
  6673. * src/Util.{h, cc}
  6674. * test/UtilTest.cc
  6675. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6676. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6677. of the number of bytes required for storing public key and shared
  6678. secret.
  6679. * src/LibgcryptDHKeyExchange.h
  6680. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6681. * src/MSEHandshake.cc
  6682. * test/DHKeyExchangeTest.cc
  6683. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Removed since they are not used.
  6685. * src/Xml2MetalinkProcessor.{h, cc}
  6686. * src/Socket.cc
  6687. * src/SegmentSplitter.{h, cc}
  6688. * test/Xml2MetalinkProcessorTest.cc
  6689. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6690. Fixed the bug that prevents aria2 from stopping other than by pressing
  6691. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6692. option. aria2 doesn't stop even after --seed-time is satisfied and
  6693. continues to output blank lines in the console.
  6694. * src/ReceiverMSEHandshakeCommand.cc
  6695. * src/PeerReceiveHandshakeCommand.cc
  6696. * src/PeerListenCommand.cc
  6697. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Bump up version number to 0.13.0rc
  6699. * configure.ac
  6700. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Updated man page and some usage text.
  6702. * doc/aria2c.1.txt
  6703. * src/usage_text.h
  6704. * po/*.{po, gmo}
  6705. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6706. Updated translations. Added Finnish and Hebrew translations.
  6707. Great thanks to all translators!
  6708. * po/*.{po, gmo}
  6709. * po/LINGUAS
  6710. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6711. Log more detailed information about each message.
  6712. * src/DHTQueryMessage.{h, cc}
  6713. * src/DHTGetPeersMessage.{h, cc}
  6714. * src/DHTFindNodeReplyMessage.{h, cc}
  6715. * src/DHTGetPeersReplyMessage.{h, cc}
  6716. * src/DHTAnnouncePeerMessage.{h, cc}
  6717. * src/DHTResponseMessage.{h, cc}
  6718. * src/DHTFindNodeMessage.{h, cc}
  6719. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6720. Use constants defined in prefs.h
  6721. * src/option_processing.cc
  6722. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6724. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Make room for future enchancements for IPv6 addresses.
  6726. Bump up version number of dht.dat file format to 2.
  6727. Not compatible with previous version.
  6728. * src/DHTRoutingTableSerializer.cc
  6729. * src/DHTRoutingTableDeserializer.cc
  6730. * test/DHTRoutingTableSerializerTest.cc
  6731. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Added handling for the return values from
  6733. PeerMessageUtil::createcompact().
  6734. * src/DefaultBtContext.cc (computeFastSet):
  6735. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Fixed abort when peer's ip address is IPv4-mapped address.
  6737. * src/DefaultBtContext.cc (computeFastSet)
  6738. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6739. cannot handle IPv4-mapped addresses.
  6740. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6741. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Proper return value handling for OpenSSL functions.
  6743. * src/LibsslDHKeyExchange.h
  6744. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Random bytes generation using libgcrypt and OpenSSL.
  6746. * src/DHTUtil.{h, cc}
  6747. * test/DHTUtilTest.cc
  6748. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6750. received.
  6751. * src/DHTMessageReceiver.cc (receiveMessage)
  6752. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Fixed the bug that a return code is always 0. BUG#1897704
  6754. If error occurred during the download or there exist unfinished
  6755. downloads, aria2 returns with code 1.
  6756. * src/RequestGroupMan.{h, cc}
  6757. * src/MultiUrlRequestInfo.{h, cc}
  6758. * src/main.cc
  6759. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. IPv6 support for SocketCore class.
  6761. TODO: In SocketCore::establishConnection(), this is insufficient to
  6762. determin the failure of connect() here because the socket is
  6763. non-blocking state. The next addresses should be tried after select().
  6764. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6765. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6766. instead which address family independent.
  6767. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6768. information in a compact peer format which is for IPv4 only.
  6769. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6770. this is a spec of BitTorrent protocol.
  6771. * src/SocketCore.{h, cc}
  6772. * src/PeerMessageUtil.cc
  6773. * test/SocketCoreTest.cc
  6774. * test/PeerMessageUtilTest.cc
  6775. * test/DHTConnectionImplTest.cc
  6776. Handle IPv4-mapped addresses.
  6777. * src/DHTNode.cc: Now identity is determined by node id.
  6778. * src/DHTMessageTrackerEntry.cc
  6779. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6780. should handle it.
  6781. * src/DHTRoutingTableDeserializer.cc
  6782. * src/DHTMessageFactoryImpl.cc
  6783. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Change the unit of --stop option from a minute to a second.
  6785. * src/usage_text.h
  6786. * src/DownloadEngineFactory.cc
  6787. * src/OptionHandlerFactory.cc
  6788. * src/message.h
  6789. * src/TimedHaltCommand.cc
  6790. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Make listening socket non-block mode.
  6792. * src/FtpConnection.cc
  6793. * src/FtpNegotiationCommand.{h, cc}
  6794. * src/PeerListenCommand.cc
  6795. Fixed the bug that cause slow ftp negotiation.
  6796. * src/FtpNegotiationCommand.{h, cc}
  6797. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6798. Added basic tag to --enable-dht, --dht-listen-port option.
  6799. * src/HelpItemFactory.cc (createHelpItems)
  6800. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6801. Updated text.
  6802. * src/usage_text.h
  6803. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6805. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Determin _threadtholdSpeed in each constructor for
  6807. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6808. * src/ActivePeerConnectionCommand.{h, cc}
  6809. * src/PeerReceiveHandshakeCommand.{h, cc}
  6810. * src/BtSetup.cc
  6811. * src/BtConstants.h
  6812. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6813. Added --bt-min-crypto-level and --bt-require-crypto options.
  6814. * src/OptionHandlerFactory.cc
  6815. * src/MSEHandshake.cc
  6816. * src/HelpItemFactory.cc
  6817. * src/option_processing.cc
  6818. * src/ReceiverMSEHandshakeCommand.cc
  6819. * src/prefs.h
  6820. * src/DefaultBtAnnounce.cc
  6821. * src/InitiatorMSEHandshakeCommand.cc
  6822. * src/usage_text.h
  6823. * test/MSEHandshakeTest.cc
  6824. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Bump version number to 0.13.0b
  6826. * configure.ac
  6827. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6828. Updated doc.
  6829. * src/MessageDigestHelper.h:
  6830. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6831. Use raw message digest as a token instead of its hexadecimal
  6832. representation.
  6833. * src/DHTTokenTracker.cc (generateToken)
  6834. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6835. Added Message Stream Encryption(MSE) support.
  6836. Currently, aria2 accepts incoming connections with Obfuscation Header
  6837. and legacy BitTorrent Header and establishes connections with
  6838. Obfuscation Header first and if failed then retry with legacy
  6839. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6840. choose ARC4. The new option to change the default behavior is planned.
  6841. For tracker extension, "supportcrypto=1" is added statically.
  6842. * src/PeerInitiateConnectionCommand.{h, cc}
  6843. * src/PeerConnection.{h, cc}
  6844. * src/HandleRegistry.h
  6845. * src/SocketCore.h
  6846. * src/PeerReceiveHandshakeCommand.{h, cc}
  6847. * src/BtRegistry.{h, cc}
  6848. * src/PeerListenCommand.cc
  6849. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6850. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6851. * src/MSEHandshake.{h, cc}
  6852. * src/ARC4Encryptor.h
  6853. * src/ARC4Decryptor.h
  6854. * src/LibgcryptARC4Encryptor.h
  6855. * src/LibgcryptARC4Decryptor.h
  6856. * src/LibgcryptARC4Context.h
  6857. * src/LibsslARC4Encryptor.h
  6858. * src/LibsslARC4Decryptor.h
  6859. * src/LibsslARC4Context.h
  6860. * src/DHKeyExchange.h
  6861. * src/LibgcryptDHKeyExchange.h
  6862. * src/LibsslDHKeyExchange.h
  6863. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6864. * test/DefaultBtAnnounceTest.cc
  6865. * test/ARC4Test.cc
  6866. * test/DHKeyExchangeTest.cc
  6867. Removed prepareForRetry() because it is not used.
  6868. * src/PeerAbstractCommand.{h, cc}
  6869. * src/PeerInteractionCommand.{h, cc}
  6870. * src/PeerInitiateConnectionCommand.{h, cc}
  6871. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. Added the ability to load nodes from torrent file. These nodes are
  6873. added to the routing table when downloading that torrent.
  6874. * src/BtContext.h
  6875. * src/DefaultBtContext.{h, cc}
  6876. * src/DHTSetup.cc
  6877. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6878. hostname and port pair, and resolves all of them.
  6879. * src/NameResolver.{h, cc}: Added reset().
  6880. * src/RequestGroup.cc
  6881. * test/DefaultBtContextTest.cc
  6882. * test/MockBtContext.h
  6883. Removed assert() from DefaultBtContext and throw exception instead.
  6884. * src/DefaultBtContext.cc
  6885. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Fixed segmentation fault bug when exiting if dht is disabled.
  6887. * src/RequestGroup.cc
  6888. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Fixed typo in log message and define the message in message.h
  6890. * src/TimedHaltCommand.cc
  6891. * src/message.h
  6892. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Included RecoverableException.h to fix compilation error.
  6894. * test/DHTMessageFactoryImplTest.cc
  6895. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6897. * test/DHTPingMessageTest.cc
  6898. * test/DHTGetPeersMessageTest.cc
  6899. * test/DHTFindNodeMessageTest.cc
  6900. * test/DHTAnnouncePeerMessageTest.cc
  6901. * test/MockDHTMessage.h
  6902. * test/MockDHTMessageFactory.h
  6903. * test/MockDHTMessageDispatcher.h: New class.
  6904. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6905. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6906. virtual.
  6907. * src/DHTMessageDispatcher.h
  6908. * src/DHTMessageDispatcherImpl.{h, cc}
  6909. * src/DHTSetup.cc
  6910. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Adding handling of DHT error message. Just log error message and
  6912. throw exception.
  6913. * src/DHTMessageFactoryImpl.cc
  6914. * test/DHTMessageFactoryImplTest.cc
  6915. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Added handling of dynamic cast failure.
  6917. * src/DHTNodeLookupTask.cc
  6918. * src/DHTPeerLookupTask.cc
  6919. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Added the ability to stop aria2 itself when given time has passed
  6921. from start. Use --stop option to specify time in minutes.
  6922. When 0 is given, this feature is disabled.
  6923. * src/OptionHandlerFactory.cc
  6924. * src/TimeBasedCommand.h: Make _interval protected scope.
  6925. * src/HelpItemFactory.cc
  6926. * src/option_processing.cc
  6927. * src/prefs.h
  6928. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6929. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6930. Without this modification, the result list shows "ERR" when aria2 is
  6931. stopped by --stop option. It should be "INPR".
  6932. * src/DownloadEngine.{h, cc}
  6933. * src/DownloadEngineFactory.cc
  6934. * src/usage_text.h
  6935. * src/TimedHaltCommand.{h, cc}: New class.
  6936. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Bootstrap through node added by port message.
  6938. Currently bootstrap is executed if the number of buckets in routing
  6939. table is 1.
  6940. * src/BtPortMessage.{h, cc}
  6941. * src/DefaultBtMessageFactory.{h, cc}
  6942. * src/PeerInteractionCommand.cc
  6943. * test/BtPortMessageTest.cc
  6944. * test/MockDHTTask.h
  6945. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6946. Extract the Peer class's member variables, which are only needed after
  6947. PeerInteractionCommand, into PeerSessionResource class.
  6948. This class is instantiated in PeerInteractionCommand class's ctor and
  6949. released in its dtor.
  6950. This will make Peer class lightweight and uses less memory for peers
  6951. which are not connected and wait in the queue.
  6952. * src/PeerChokeCommand.cc
  6953. * src/PeerSessionResource.{h, cc}
  6954. * src/PeerInteractionCommand.cc
  6955. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6956. * src/DefaultBtInteractive.cc
  6957. * src/BtPieceMessage.cc
  6958. * src/BtInterestedMessage.cc
  6959. * src/BtUnchokeMessage.cc
  6960. * src/DefaultPeerStorage.{h, cc}
  6961. * src/PeerInitiateConnectionCommand.cc
  6962. * src/ActivePeerConnectionCommand.cc
  6963. * src/BtNotInterestedMessage.cc
  6964. * src/DefaultBtMessageDispatcher.cc
  6965. * src/BtChokeMessage.cc
  6966. * src/BtRequestMessage.cc
  6967. * src/Peer.{h, cc}
  6968. * src/BtRegistry.h
  6969. * src/TrackerWatcherCommand.cc
  6970. * src/PeerReceiveHandshakeCommand.cc
  6971. * test/BtExtendedMessageTest.cc
  6972. * test/BtAllowedFastMessageTest.cc
  6973. * test/BtCancelMessageTest.cc
  6974. * test/DefaultPieceStorageTest.cc
  6975. * test/BtBitfieldMessageTest.cc
  6976. * test/BtHaveMessageTest.cc
  6977. * test/BtNotInterestedMessageTest.cc
  6978. * test/BtRequestMessageTest.cc
  6979. * test/PeerSessionResourceTest.cc
  6980. * test/DefaultBtMessageDispatcherTest.cc
  6981. * test/PeerTest.cc
  6982. * test/BtInterestedMessageTest.cc
  6983. * test/BtRejectMessageTest.cc
  6984. * test/BtChokeMessageTest.cc
  6985. * test/DefaultPeerStorageTest.cc
  6986. * test/BtHaveNoneMessageTest.cc
  6987. * test/BtHaveAllMessageTest.cc
  6988. * test/DefaultExtensionMessageFactoryTest.cc
  6989. * test/BtUnchokeMessageTest.cc
  6990. * test/DefaultBtMessageFactoryTest.cc
  6991. * test/HandshakeExtensionMessageTest.cc
  6992. * test/UTPexExtensionMessageTest.cc
  6993. * test/DefaultBtRequestFactoryTest.cc
  6994. * test/BtPieceMessageTest.cc
  6995. Removed typedef PeerStats.
  6996. * src/PeerStat.h
  6997. * src/SegmentMan.cc
  6998. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6999. Added std namespace to copy, remove_copy, back_inserter,
  7000. front_inserter.
  7001. * src/RequestGroupMan.cc
  7002. * src/DefaultPieceStorage.cc
  7003. * src/StreamFileAllocationEntry.cc
  7004. * src/BtFileAllocationEntry.cc
  7005. * src/RequestGroup.cc
  7006. * src/MetalinkEntry.cc
  7007. * src/DelegatingPeerListProcessor.cc
  7008. * src/DefaultBtRequestFactory.cc
  7009. * src/DefaultBtMessageDispatcher.cc
  7010. * src/version_usage.cc: Included <algorithm>
  7011. * src/main.cc
  7012. * src/MetalinkParserController.cc
  7013. * src/DefaultBtContext.cc
  7014. * src/DownloadEngineFactory.cc
  7015. * src/a2algo.h
  7016. Removed.
  7017. * test/StreamUriListParserTest.cc
  7018. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  7020. ActivePeerConnectionCommand when it is given and
  7021. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  7022. * src/ActivePeerConnectionCommand.{h, cc}
  7023. * src/BtSetup.cc
  7024. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. Only add socket to DownloadEngine's select routine when peer or
  7026. localhost is unchoked and interested. This lowers CPU usage a
  7027. little bit.
  7028. * src/PeerInteractionCommand.cc
  7029. * src/PeerAbstractCommand.{h, cc}
  7030. * src/BtInteractive.h
  7031. * src/DefaultBtInteractive.{h, cc}
  7032. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Revert previous change because get_peers message is needed for
  7034. announce_peer anyway.
  7035. * src/DHTGetPeersCommand.cc
  7036. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Request peers thought DHT only when download hasn't finished.
  7038. * src/DHTGetPeersCommand.cc
  7039. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7040. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  7041. * src/DHTBucketRefreshTask.{h, cc}
  7042. * src/DHTSetup.cc
  7043. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7044. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  7045. standard classes.
  7046. Included string.h where mem* function are used.
  7047. Added namespace aria2.
  7048. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Create directory before saving DHT routing table.
  7050. Now ios::failure is now handled properly.
  7051. * src/DHTAutoSaveCommand.cc
  7052. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Removed unnecessary cerr.
  7054. * src/DownloadEngine.cc
  7055. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Catch exception inside DHTMessageReceiver::receiveMessage().
  7057. Log unknown message.
  7058. * src/DHTMessageReceiver.{h, cc}
  7059. * src/DHTMessageFactory.h
  7060. * src/DHTMessageFactoryImpl.{h, cc}
  7061. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  7062. * src/DHTInteractionCommand.cc
  7063. * src/DHTUnknownMessage.{h, cc}
  7064. * test/DHTUnknownMessageTest.cc
  7065. * test/MockDHTMessageFactory.h
  7066. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Commented out ip address comparison because a host can have multiple
  7068. ip addresses and it is hard to predict the hostname is resolved into
  7069. which one.
  7070. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7071. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7072. * po/Makefile.in: Removed since this is generated by configure.
  7073. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7074. Fixed compiler warning about redefinition of SIZE_MAX.
  7075. Use common.h instead of config.h directly here.
  7076. * src/Platform.{h, cc}
  7077. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7078. here.
  7079. * common.h
  7080. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7081. Updated gettext related files.
  7082. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7083. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7084. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7085. Added DHT functionality, compatible with mainline.
  7086. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7087. You may need to specify entry point to DHT network using
  7088. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7089. Use --dht-listen-port to specify port number. Make sure that your
  7090. firewall configuration can pass through UDP traffic to the port.
  7091. The routing table is saved in $HOME/.aria2/dht.dat.
  7092. * src/DHT*
  7093. * src/BNode.{h, cc}
  7094. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7095. particular torrent.
  7096. * src/Data.cc: Rewritten ctor.
  7097. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7098. --dht-entry-point.
  7099. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7100. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7101. ends, remove BtContext from DHTPeerAnnounceStorage.
  7102. * src/BtPortMessage.{h, cc}: Rewritten.
  7103. * src/message.h
  7104. * src/OptionHandlerImpl.cc
  7105. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7106. --dht-entry-point.
  7107. * src/Dictionary.{h, cc} (remove): New function.
  7108. * src/prefs.h
  7109. * src/DefaultBtMessageFactory.h
  7110. * src/BtHandshakeMessage.cc
  7111. * src/ActivePeerConnectionCommand.cc
  7112. * src/SocketCore.{h, cc}: Added datagram socket support.
  7113. * src/DefaultBtMessageFactory.cc
  7114. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7115. Create DHT commands.
  7116. * src/BtMessageFactory.h
  7117. * src/PeerMessageUtil.{h, cc}
  7118. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7119. Fixed the bug that log file is not written when configuration file doesn't exist.
  7120. This is caused by using Logger class before LogFactory is not configured.
  7121. BUG #1875079
  7122. * src/option_processing.cc
  7123. Warning message "configuration doesn't exist" is only printed when --conf is
  7124. given.
  7125. * src/option_processing.cc
  7126. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7128. ShaVisitor is now deprecated and slated to be removed.
  7129. * src/DefaultBtContext.cc
  7130. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Externalize message to message.h
  7132. * src/Platform.cc
  7133. * src/message.h
  7134. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Set default domain and default path to cookie.
  7136. * src/HttpResponse.cc
  7137. * src/CookieBox.{h, cc}
  7138. * src/CookieParser.{h, cc}
  7139. * test/CookieParserTest.cc
  7140. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Added --no-conf and --conf-path command-line option.
  7142. --no-conf option disables loading aria2.conf file.
  7143. --conf-path option changes the configuration file path. The default
  7144. file path is $HOME/.aria2/aria2.conf
  7145. Added a warning message when the configuration file is not found.
  7146. * src/HelpItemFactory.cc
  7147. * src/option_processing.cc
  7148. * src/prefs.h
  7149. * src/usage_text.h
  7150. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7151. Added the message to inform users that other help categories are
  7152. available in -h option.
  7153. * src/version_usage.cc
  7154. * src/TagContainer.{h, cc}
  7155. * test/TagContainerTest.cc
  7156. * src/TaggedItem.{h, cc}
  7157. * test/TaggedItemTest.cc
  7158. * src/HelpItem.h
  7159. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7160. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7161. from PiecedSegment's ctor.
  7162. Previously Piece::getAllMissingBlockIndexes() is called from
  7163. PiecedSegment() but it is rather expensive since only first element is
  7164. used.
  7165. * src/PiecedSegment.cc
  7166. * src/Piece.{h, cc}
  7167. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7169. each time these functions are called.
  7170. * src/BitfieldMan.{h, cc}
  7171. * test/BitfieldManTest.cc
  7172. * src/array_fun.h
  7173. * test/array_funTest.cc
  7174. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7175. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7176. filtered. Removed unnecessary cast to int32_t.
  7177. * src/BitfieldMan.{h, cc}
  7178. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7180. payload length(4bytes) are received. This happens because lenbufLength
  7181. is not updated in this particular case and successive call of
  7182. receiveMessage() overwrites payload length with bytes recieved which
  7183. are payload body.
  7184. * src/PeerConnection.{h, cc}
  7185. * src/message.h
  7186. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7188. peer if there are peers that have same ipaddr and port.
  7189. I've experiened segmentation fault and "pure virtual function was
  7190. called" error.
  7191. * src/Peer.h
  7192. * test/PeerTest.cc
  7193. * src/DefaultPeerStorage.cc
  7194. * test/DefaultPeerStorageTest.cc
  7195. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7196. Removed a call to isPowerOf() because it is no longer necessary here
  7197. and a request block is not always power of 2.
  7198. BUG#1866924
  7199. * src/PeerMessageUtil.cc (checkLength)
  7200. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Fixed the bug that always first found Segment is removed from
  7202. usedSegmentEntries. Removed unused functions.
  7203. * src/SegmentMan.{h, cc}
  7204. * test/SegmentManTest.cc
  7205. Fixed the bug that ServerHost is not removed.
  7206. * src/RequestGroup.cc
  7207. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7208. Fixed the bug that SegmentMan::completeSegment() is not called
  7209. even if Segment is complete when --lowest-speed-limit is enabled.
  7210. BUG#1864525
  7211. * src/DownloadCommand.{h, cc}
  7212. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Fixed: hash algorithm 'sha1' is always used.
  7214. * src/DownloadCommand.cc (validatePieceHash)
  7215. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Added --enable-peer-exchange command-line option.
  7217. * src/OptionHandlerFactory.cc
  7218. * src/HelpItemFactory.cc
  7219. * src/option_processing.cc
  7220. * src/usage_text.h
  7221. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Move extension from BtRuntime to ExtensionMessageFactory, because
  7223. extension can be specified per peer, not per torrent.
  7224. * src/DefaultBtInteractive.cc
  7225. * src/BtRuntime.h
  7226. * src/ExtendedMessagingAware.h
  7227. * src/ExtensionMessageFactory.h
  7228. * src/DefaultExtensionMessageFactory.cc
  7229. * test/DefaultExtensionMessageFactoryTest.cc
  7230. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Added categorized option help. Specify category using --help option.
  7232. Also added the ability to search options in forward match.
  7233. * src/HelpItem.{h, cc}
  7234. * test/HelpItemTest.cc
  7235. * src/HelpItemFactory.{h, cc}
  7236. * src/TagContainer.{h, cc}
  7237. * test/TagContainerTest.cc
  7238. * src/option_processing.cc
  7239. * src/prefs.h
  7240. * src/TaggedItem.{h, cc}
  7241. * test/TaggedItemTest.cc
  7242. * src/version_usage.cc
  7243. * src/help_tags.h
  7244. * src/usage_text.h
  7245. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Fixed segmentation fault when bad torrent metainfo is parsed.
  7247. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7248. and then throw exception or skip it.
  7249. * src/DefaultBtContext.{h, cc}
  7250. * test/DefaultBtContextTest.cc
  7251. * src/AnnounceList.cc
  7252. * src/CompactPeerListProcessor.cc
  7253. * src/message.h
  7254. * src/DefaultBtAnnounce.{h, cc}
  7255. * test/DefaultBtAnnounceTest.cc
  7256. * src/BencodeVisitor.cc
  7257. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Added missing "B"(=Byte). So now the message looks like this:
  7259. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7260. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7261. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Show the seed ratio after torrent downloads.
  7263. For example, after torrent download completed and --seed-time and
  7264. --seed-ratio conditions are fulfilled, following message is printed
  7265. right after "Download complete: .....":
  7266. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7267. * src/RequestGroupMan.cc
  7268. * src/RequestGroup.{h, cc}
  7269. * src/message.h
  7270. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Remove a defunct control file. A defunct control file means that while
  7272. it exists, but the corresponding download file is missing.
  7273. After its removal, a download restarts from the beginning.
  7274. * src/RequestGroup.cc
  7275. * src/message.h
  7276. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7277. Allocate bitfield in Peer when it is really used. More specifically,
  7278. bitfield in Peer is allocated after the connection is established and
  7279. deallocated when the connection is dropped.
  7280. Since 2 parameters(piece length and total length) was removed from the
  7281. constructor of Peer class, many test classes were modified accordingly.
  7282. See svn log for more detailed information.
  7283. * src/PeerInteractionCommand.cc
  7284. * src/CompactPeerListProcessor.cc
  7285. * src/Peer.cc
  7286. * src/DefaultPeerListProcessor.cc
  7287. * src/PeerListenCommand.cc
  7288. * src/PeerReceiveHandshakeCommand.cc
  7289. Fixed memory leak
  7290. * src/Piece.cc
  7291. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7292. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7293. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7294. command-line options.
  7295. * src/option_processing.cc
  7296. * src/ActivePeerConnectionCommand.cc
  7297. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7298. Send have message to peer if it already has the piece.
  7299. * src/BtHaveMessage.{h, cc}
  7300. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7301. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7302. port.
  7303. * src/DefaultPeerStorage.{h, cc}
  7304. * test/DefaultPeerStorageTest.cc
  7305. * src/HandshakeExtensionMessage.cc
  7306. * test/HandshakeExtensionMessageTest.cc
  7307. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7308. * src/PeerStorage.h
  7309. * test/MockPeerStorage.h
  7310. * src/PeerListenCommand.cc
  7311. * src/PeerReceiveHandshakeCommand.cc
  7312. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. Added --metalink-enable-unique-protocol option.
  7314. * src/Metalink2RequestGroup.cc
  7315. * src/option_processing.cc
  7316. * src/prefs.h
  7317. * src/version_usage.cc
  7318. * doc/aria2c.1.txt
  7319. * doc/aria2c.1
  7320. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. Allow a peer in incomingPeer to be added peers.
  7322. * src/DefaultPeerStorage.cc
  7323. * test/DefaultPeerStorageTest.cc
  7324. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7325. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7326. I could reproduce this bug in following procedure:
  7327. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7328. 2. Restart aria2.
  7329. 3. You see the download stopped around 99%.
  7330. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7331. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7332. If timeout is reached, then _nextCommand is unused and it may contains
  7333. segments and they won't be canceled. Actually, timeout is not needed
  7334. here because if the server dropped connection, then retry is made.
  7335. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7336. Added uTorrent compatible Peer Exchange.
  7337. * src/BencodeVisitor.{h, cc}
  7338. * test/BencodeVisitorTest.cc
  7339. * src/BtConstants.h
  7340. * src/BtContext.h: Added 'private' flag.
  7341. * src/BtExtendedMessage.{h, cc}
  7342. * test/BtExtendedMessageTest.cc
  7343. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7344. reserved field.
  7345. * test/BtHandshakeMessageTest.cc
  7346. * src/BtMessageFactory.h
  7347. * src/BtRegistry.h
  7348. * src/BtRuntime.h: This class holds default extension message IDs for
  7349. aria2. By default, aria2 uses ID 8 for ut_pex.
  7350. * src/DefaultBtContext.cc
  7351. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7352. When it is true, aria2 enables ut_pex. This value is set by
  7353. PeerInteractionCommand.
  7354. * src/DefaultBtMessageFactory.{h, cc}
  7355. * test/DefaultBtMessageFactoryTest.cc
  7356. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7357. handling to DefaultBtInteractive class.
  7358. * src/DefaultExtensionMessageFactory.{h, cc}
  7359. * test/DefaultExtensionMessageFactoryTest.cc
  7360. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7361. the container(peers and incomingPeers. The equality is determined by
  7362. Peer::id).
  7363. * test/DefaultPeerStorageTest.cc
  7364. * src/ExtensionMessage.h
  7365. * test/MockExtensionMessage.h
  7366. * src/ExtensionMessageFactory.h
  7367. * test/MockExtensionMessageFactory.h
  7368. * src/HandshakeExtensionMessage.{h, cc}
  7369. * test/HandshakeExtensionMessageTest.cc
  7370. * src/MetaEntry.h
  7371. * src/Peer.{h, cc}
  7372. * src/PeerInteractionCommand.cc
  7373. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7374. addIncomingPeer.
  7375. * src/PeerMessageUtil.{h, cc}
  7376. * src/PeerObject.h
  7377. * src/UTPexExtensionMessage.{h, cc}
  7378. * test/UTPexExtensionMessageTest.cc
  7379. * src/message.h
  7380. * src/prefs.h
  7381. Fixed the bug that returns incomplete data when it contains null
  7382. character. A convenient constructor was also added.
  7383. * src/Data.{h, cc}
  7384. Rewritten.
  7385. * src/CompactPeerListProcessor.cc
  7386. Fixed typos.
  7387. * src/message.h
  7388. * src/MetaFileUtil.cc
  7389. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Added "Status Legend" label to the explanation text of 'stat' in
  7391. download result and moved it to the last. BUG#1848214
  7392. * src/RequestGroupMan.cc
  7393. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7394. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7395. * src/Makefie.am
  7396. * test/Makefile.am
  7397. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7398. Fixed the bug that prevents aria2 from loading cookie file when expire
  7399. value is greater than 2^31-1. BUG#1851066
  7400. * src/CookieBoxFactory.cc
  7401. * test/CookieBoxFactoryTest.cc
  7402. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. Fixed possible memory leak when an exception is thrown.
  7404. * src/XML2SAXMetalinkProcessor.cc
  7405. Added Expat support. If both libxml2 and Expat are installed, then
  7406. libxml2 is used by default.
  7407. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7408. ExpatMetalinkProcessor according to the configuration.
  7409. * src/ExpatMetalinkProcessor.{h, cc}
  7410. * src/main.cc: Removed libxml2 specific header and init/free function.
  7411. * src/MetalinkProcessorFactory.{h, cc}
  7412. * src/MetalinkHelper.cc
  7413. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7414. * src/MetalinkProcessor.h
  7415. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7416. MetalinkProcessorTest is used instead.
  7417. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7418. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7419. MetalinkProcessorFactory::newInstance().
  7420. * m4/libexpat.m4
  7421. * configure.ac: Added configuration options for libexpat.
  7422. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. Disabled -s option in metalink download.
  7424. * src/Metalink2RequestGroup.cc
  7425. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7426. If several protocols are available for a mirror in metalink file,
  7427. aria2 now use one of them. --metalink-preferred-protocol option was
  7428. added to specify the preference of protocol.
  7429. * src/AbstractCommand.cc
  7430. * src/OptionHandlerFactory.cc
  7431. * src/ServerHost.{h, cc}
  7432. * src/Metalink2RequestGroup.cc
  7433. * src/RequestGroup.{h, cc}
  7434. * test/RequestGroupTest.cc
  7435. * src/option_processing.cc
  7436. * src/prefs.h
  7437. * src/HttpResponseCommand.cc
  7438. * src/MetalinkResource.{h, cc}
  7439. * src/FtpNegotiationCommand.cc
  7440. * src/MetalinkEntry.{h, cc}
  7441. * src/MetalinkEntryTest.cc
  7442. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7443. Code cleanup and added debug log.
  7444. * src/PeerConnection.cc
  7445. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. Compiler error fix: applied the patch by Tiziano Mueller
  7447. * src/RequestGroup.cc
  7448. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7449. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7450. in stopped and completed event.
  7451. * src/AnnounceList.{h, cc}
  7452. * test/AnnounceListTest.cc
  7453. * src/DefaultBtAnnounce.cc
  7454. * test/DefaultBtAnnounceTest.cc
  7455. Sorted URLs.
  7456. * test/Metalink2RequestGroupTest.cc
  7457. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7458. Removed unnecessary string copy. Updated doc and corrected indentation.
  7459. * src/Base64.cc
  7460. Fixed compilation warnings
  7461. * test/DataTest.cc
  7462. * test/HttpRequestTest.cc
  7463. * test/MetaFileUtilTest.cc
  7464. * test/RequestTest.cc
  7465. * Release 0.12.0
  7466. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. Updated translations
  7468. * po/{de,fr,ja,nl,ru}.po
  7469. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7470. translations. Many thanks to translators.
  7471. * po/{ca,es,it,pt_BR,sv}.po
  7472. * po/LINGUAS
  7473. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Added a notice about URL
  7475. * src/version_usage.cc
  7476. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7477. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7478. aria2 repeatedly sends stopped request when tracker returns error code.
  7479. * src/AnnounceList.cc
  7480. * test/AnnounceListTest.cc
  7481. * src/AnnounceTier.h
  7482. Added a message when ctrl-c is hit.
  7483. Now second ctrl-c is also handled in signal handler.
  7484. * src/RequestGroupMan.{h, cc}
  7485. * src/RequestGroup.{h, cc}
  7486. * src/MultiUrlRequestInfo.cc
  7487. * src/DownloadEngine.cc
  7488. * src/TrackerWatcherCommand.cc
  7489. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7490. Code cleanup
  7491. * src/Base64.cc (encode)
  7492. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. Changed Direct/IO enable/disable procesure in file allocation routine.
  7494. * src/SingleFileAllocationIterator.cc
  7495. (SingleFileAllocationIterator):
  7496. Disable directIO if offset is not multiple of 512.
  7497. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7498. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7499. Enable created SingleFileAllocationIterator's directIO.
  7500. * src/FileAllocationEntry.cc
  7501. (FileAllocationEntry): Enable directIO here.
  7502. (~FileAllocationEntry): Disable directIO here.
  7503. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7505. * src/Peer.{h, cc}
  7506. * src/DefaultPieceStorage.cc
  7507. * test/DefaultPieceStorageTest.cc
  7508. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7509. Rewritten direct I/O support routine
  7510. * src/SingleFileAllocationIterator.cc
  7511. * src/MultiDiskAdaptor.{h, cc}
  7512. * src/ByteArrayDiskWriter.h
  7513. * src/AbstractSingleDiskAdaptor.h
  7514. * src/AbstractDiskWriter.cc
  7515. * src/DefaultPieceStorage.cc
  7516. * src/DiskWriter.h
  7517. * src/BinaryStream.h
  7518. * src/IteratableChunkChecksumValidator.cc
  7519. * src/IteratableChecksumValidator.cc
  7520. * src/CheckIntegrityEntry.cc
  7521. * src/FileAllocationEntry.cc
  7522. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7523. Fixed typo
  7524. * src/version_usage.cc
  7525. Updated doc
  7526. * doc/aria2c.1.txt
  7527. * doc/aria2c.1
  7528. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7529. Fixed compile error without message digest support.
  7530. * src/FileMetalinkParserState.cc
  7531. * src/MetalinkParserController.{h, cc}
  7532. * test/XML2SAXMetalinkProcessorTest.cc
  7533. * test/MetalinkParserControllerTest.cc
  7534. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7535. Enable direct I/O support in checksum checking.
  7536. * src/IteratableChunkChecksumValidator.{h, cc}
  7537. * test/IteratableChunkChecksumValidatorTest.cc
  7538. * src/CheckIntegrityEntry.cc
  7539. * src/PieceHashCheckIntegrityEntry.cc
  7540. * src/IteratableChecksumValidator.{h, cc}
  7541. * src/BtCheckIntegrityEntry.cc: Added doc.
  7542. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Added --allow-piece-length-change option.
  7544. * src/DefaultBtProgressInfoFile.cc
  7545. * test/DefaultBtProgressInfoFileTest.cc
  7546. * src/OptionHandlerFactory.cc
  7547. * src/option_processing.cc
  7548. * src/prefs.h
  7549. * src/version_usage.cc
  7550. * doc/aria2c.1.txt
  7551. * doc/aria2c.1
  7552. Fixed: duplicated result entry appears when exception is thrown in
  7553. RequestGroup::createInitiateConnectionCommand().
  7554. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7555. Add RequestGroup to _requestGroup after RequetGroup::
  7556. createInitiateConnectionCommand() succeeds.
  7557. Externalized message
  7558. * src/XML2SAXMetalinkProcessor.cc
  7559. * src/message.h
  7560. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7561. Forced download abort when received negative response from http/ftp
  7562. server.
  7563. * src/HttpResponseCommand.cc
  7564. * src/FtpNegotiationCommand.cc
  7565. * src/HttpResponse.cc
  7566. * src/FtpConnection.cc
  7567. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7568. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7569. the predecessor, Xml2MetalinkParser class.
  7570. I tested them against 94KB metalink file with 1234 chunk checksums.
  7571. The new one parsed it in 22msec, while it took 6000msec with old one.
  7572. * src/XML2SAXMetalinkProcessor.{h, cc}
  7573. * test/XML2SAXMetalinkProcessorTest.cc
  7574. * src/MetalinkParserController.{h, cc}
  7575. * test/MetalinkParserControllerTest.cc
  7576. * src/MetalinkParserState.h: Also added 16 subclasses.
  7577. * src/main.cc
  7578. * src/Metalink2RequestGroup.cc
  7579. * src/MetalinkHelper.cc
  7580. * src/MetalinkEntry.cc
  7581. * src/ChunkChecksum.h
  7582. Rewritten Base64 class for better performance.
  7583. * src/Base64.{h, cc}
  7584. * test/Base64Test.cc
  7585. * src/HttpRequest.cc
  7586. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Fixed the bug#1841757: aria2 will connect to server to only get
  7588. file size.
  7589. * src/StreamFileAllocationEntry.cc
  7590. * src/option_processing.cc
  7591. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7592. downloads.
  7593. * src/FtpNegotiationCommand.cc
  7594. Suppressed wrong message when finding PreDownloadHandler
  7595. * src/RequestGroup.cc
  7596. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Updated usage
  7598. * src/version_usage.cc
  7599. Updated man page
  7600. * doc/aria2c.1.txt
  7601. * doc/aria2c.1
  7602. Updated po files
  7603. * po/aria2c.pot
  7604. * po/*.po
  7605. * po/*.gmo
  7606. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Eliminated g++-4.2 warning
  7608. * src/DownloadHandlerConstants.{h, cc}
  7609. * src/Util.cc
  7610. * test/MetaFileUtilTest.cc
  7611. * test/PStringBuildVisitorTest.cc
  7612. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7613. * src/RequestGroup.cc
  7614. * src/BtCheckIntegrityEntry.cc
  7615. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. Fixed a2io.h
  7617. * src/a2io.h
  7618. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7619. Added direct I/O support. The current implementation uses O_DIRECT,
  7620. which is not posix standard and is tested on linux 2.6.21.
  7621. Currently only file allocation uses direct I/O.
  7622. * src/SingleFileAllocationIterator.{h, cc}
  7623. * test/SingleFileAllocationIteratorTest.cc
  7624. * src/MultiFileAllocationIterator.{h, cc}
  7625. * test/MultiFileAllocationIteratorTest.cc
  7626. * src/BinaryStream.h
  7627. * src/DiskWriter.h
  7628. * src/AbstractDiskWriter.{h, cc}
  7629. * src/ByteArrayDiskWriter.h
  7630. * src/DiskAdaptor.h
  7631. * src/AbstractSingleDiskAdaptor.{h, cc}
  7632. * src/MultiDiskAdaptor.{h, cc}
  7633. * src/FileAllocationEntry.cc
  7634. * src/Util.{h, cc}
  7635. * src/OptionHandlerFactory.cc
  7636. * src/prefs.h
  7637. * src/version_usage.cc
  7638. * src/option_processing.cc
  7639. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7640. handleException.
  7641. * src/MultiFileAllocationIterator.cc
  7642. Added EINTR handling
  7643. * src/SocketCore.cc
  7644. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7645. Updated usage
  7646. * src/version_usage.cc
  7647. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. Applied Ross's patch for MinGW port.
  7649. * src/DownloadEngine.h
  7650. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Set Content-Type to SingleFileDownloadContext when http response is
  7652. received.
  7653. * src/HttpResponseCommand.cc
  7654. * src/HttpResponse.{h, cc}
  7655. * test/HttpResponseTest.cc
  7656. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7657. Rewritten to add content-type support.
  7658. * src/DownloadHandler.{h, cc}
  7659. * src/BtPostDownloadHandler.{h, cc}
  7660. * test/BtPostDownloadHandlerTest.cc
  7661. * src/MetalinkPostDownloadHandler.{h, cc}
  7662. * test/MetalinkPostDownloadHandlerTest.cc
  7663. * src/PostDownloadHandler.{h, cc}
  7664. * src/DownloadHandlerConstants.{h, cc}
  7665. * src/RequestGroup.cc
  7666. * src/HttpResponseCommand.cc
  7667. * src/FtpNegotiationCommand.cc
  7668. * src/SingleFileDownloadContext.{h, cc}
  7669. * src/RequestGroup.h
  7670. * src/RequestGroupCriteria.h
  7671. * src/ContentTypeRequestGroupCriteria.h
  7672. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7673. If it is give, metalink/torrent file is not written to the disk, but
  7674. just is kept in memory. Parsing is occurred on memory.
  7675. * src/MetalinkHelper.{h, cc}
  7676. * src/MetalinkProcessor.h
  7677. * src/Xml2MetalinkProcessor.{h, cc}
  7678. * test/Xml2MetalinkProcessorTest.cc
  7679. * src/DownloadHandlerFactory.{h, cc}
  7680. * test/DownloadHandlerFactoryTest.cc
  7681. * src/PreDownloadHandler.{h, cc}
  7682. * src/OptionHandlerFactory.cc
  7683. * src/DefaultBtContext.{h, cc}
  7684. * test/DefaultBtContextTest.cc
  7685. * src/version_usage.cc
  7686. * src/Metalink2RequestGroup.{h, cc}
  7687. * src/RequestGroup.{h, cc}
  7688. * src/a2functional.h
  7689. * test/a2functionalTest.cc
  7690. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7691. * src/OptionHandlerImpl.h
  7692. * src/prefs.h
  7693. * src/Util.{h, cc}
  7694. * test/UtilTest.cc
  7695. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7696. memory usage.
  7697. * src/RequestGroupMan.{h, cc}
  7698. * src/DownloadEngine.cc
  7699. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7700. WeakHandle to SharedHandle because WeakHandle could be null.
  7701. * src/RequestGroup.{h, cc}
  7702. * src/DownloadEngineFactory.cc
  7703. * src/DownloadResult.h
  7704. Set totalLength after download finished
  7705. * src/UnknownLengthPieceStorage.{h, cc}
  7706. Keep torrent file specified in metalink in memory.
  7707. * src/Metalink2RequestGroup.cc
  7708. * src/BtDependency.cc
  7709. * src/TrueRequestGroupCriteria.h
  7710. Fixed the bug: seekg is used where seekp should be used.
  7711. * src/ByteArrayDiskWriter.cc
  7712. * test/ByteArraydiskWriterTest.cc
  7713. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. Fixed syntax error
  7715. * test/SequenceTest.cc
  7716. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7718. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7719. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7720. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7721. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Added the check to see whether ares_host_callback accepts timeouts
  7723. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7724. * src/NameResolver.{h, cc}
  7725. * m4/libcares.m4
  7726. * configure.ac: Set C++ for language choice.
  7727. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Fixed: compilation fails without c-ares/ares
  7729. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7730. Generate http/ftp commands only when download is incomplete.
  7731. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7732. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Corrected typo. Examples are removed since they are available in man
  7734. page.
  7735. * src/version_usage.cc
  7736. Updated man page.
  7737. * doc/aria2c.1
  7738. * doc/aria2c.1.txt
  7739. * doc/makeman: Commented out sed command.
  7740. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Throw DlAbortEx when a remote file is not found.
  7742. * src/HttpResponse.cc
  7743. * src/FtpNegotiationCommand.cc
  7744. * src/message.h
  7745. Overwrite an existing file if --allow-overwrite=true is given.
  7746. * src/RequestGroup.cc
  7747. Removed unused functions
  7748. * src/AbstractCommand.h
  7749. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. Removed 'extern' from 'extern typedef ...' in src/*.h
  7751. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Updated usage
  7753. * src/version_usage.cc
  7754. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Trim announce URL
  7756. * src/DefaultBtContext.cc
  7757. * test/ShaVisitorTest.cc
  7758. Trim argument s. Give trimed s to exception constructor.
  7759. * src/Util.cc (parseInt)(parseLLInt)
  7760. * test/UtilTest.cc
  7761. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7762. Set precision back to 1.
  7763. * src/ConsoleStatCalc.cc (calculateStat)
  7764. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7765. Replaced strtol with Util::parseInt
  7766. * src/ChunkedEncoding.cc
  7767. * src/HttpConnection.cc
  7768. * src/CookieBoxFactory.cc
  7769. * src/ParameterizedStringParser.cc
  7770. * src/Util.cc
  7771. * test/UtilTest.cc
  7772. * test/OptionHandlerTest.cc
  7773. * src/Request.cc
  7774. Throw exception when empty string is given. The message for exception
  7775. changed.
  7776. * src/Util.cc (parseInt)(parseLLInt)
  7777. * src/message.h
  7778. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7779. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7780. set to 1.
  7781. * src/ConsoleStatCalc.cc (calculateStat)
  7782. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7783. Preallocate non-requested file which is adjacent forward to requested
  7784. file('requested' files means the files given in --select-file option)
  7785. if they share a same piece.
  7786. This fixes long pause in the file system which doesn't support sparse
  7787. files like FAT32 while downloading.
  7788. * src/MultiFileAllocationIterator.{h, cc}
  7789. * test/MultiFileAllocationIteratorTest.cc
  7790. * src/FileEntry.{h, cc}
  7791. Removed unused _option.
  7792. * src/MultiDiskAdaptor.h
  7793. * test/MultiDiskAdaptorTest.cc
  7794. * src/DefaultPieceStorage.cc
  7795. Set the default value of --seed-ratio to 1.0.
  7796. If 0.0 is given, then seeding continues regardless of share ratio.
  7797. * src/version_usage.cc
  7798. * src/option_processing.cc
  7799. * src/BtSetup.cc
  7800. * doc/aria2c.1.txt
  7801. * doc/aria2c.1
  7802. Fixed: Selective download is not working in BitTorrent
  7803. * src/RequestGroup.cc
  7804. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7805. * src/PieceStorage.h
  7806. * test/MockPieceStorage.h
  7807. * src/UnknownLengthPieceStorage.h
  7808. * src/DefaultPieceStorage.{h, cc}
  7809. * src/Metalink2RequestGroup.cc
  7810. * src/RequestGroup.cc
  7811. * src/Sequence.h
  7812. * test/SequenceTest.cc
  7813. * src/IntSequence.h
  7814. * src/message.h
  7815. * src/Util.{h, cc}
  7816. * test/UtilTest.cc
  7817. Added new function 'parse' to catch exception thrown by subclass's
  7818. parseArg
  7819. * src/OptionHandler.h
  7820. * src/OptionParser.cc
  7821. * src/NameMatchOptionHandler.h
  7822. * src/OptionHandlerImpl.h
  7823. * test/OptionHandlerTest.cc
  7824. Added IntegerRangeOptionHandler. Used for --listen-port and
  7825. --select-file. Now --listen-port accepts range of port.
  7826. * src/OptionHandlerFactory.cc
  7827. * src/version_usage.cc
  7828. * src/OptionHandlerImpl.h
  7829. * src/option_processing.cc
  7830. * src/BtSetup.cc
  7831. * src/PeerListenCommand.{h, cc}
  7832. * doc/aria2c.1.txt
  7833. * doc/aria2c.1
  7834. Implemented operator< for Exception class to provide easy way to print
  7835. exception stack trace.
  7836. * src/Exception.{h, cc}
  7837. * src/main.cc
  7838. * src/option_processing.cc
  7839. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. * src/version_usage.cc
  7841. (showVersion): Reworked.
  7842. (showUsage): Added examples.
  7843. Removed Hint for total length and file name.
  7844. * src/Metalink2RequestGroup.cc
  7845. * src/RequestGroup.{h, cc}
  7846. * src/HttpResponseCommand.cc
  7847. * src/FtpNegotiationCommand.cc
  7848. Now --follow-torrent and --follow-metalink option work properly.
  7849. * src/RequestGroup.cc
  7850. Updated man page
  7851. * doc/aria2c.1.txt
  7852. * doc/aria2c.1
  7853. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7854. Removed.
  7855. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7856. Use Segment::operator==()
  7857. * src/HttpConnection.cc
  7858. * src/Segment.h
  7859. Updated usage
  7860. * src/version_usage.cc
  7861. Added EINTR treatment.
  7862. * src/SocketCore.cc
  7863. * src/AbstractDiskWriter.cc
  7864. Rewritten.
  7865. * src/Util.cc (rangedFileCopy)
  7866. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7867. Fixed typo.
  7868. * src/version_usage.cc
  7869. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7870. Implemented. Now -c option works fine.
  7871. * src/DefaultPieceStorage.cc (markPiecesDone)
  7872. * test/DefaultPieceStorageTest.cc
  7873. Removed.
  7874. * src/SegmentMan.{h, cc}
  7875. (markAllPiecesDone)
  7876. (markPieceDone)
  7877. Synchronized po files with
  7878. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7879. * src/fr.po
  7880. * src/ru.po
  7881. * src/de.po
  7882. * src/ja.po
  7883. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7884. Added ifdef and some modifications to compile without BitTorrent,
  7885. Metalink, MessageDigest
  7886. support.
  7887. * src/PieceHashCheckIntegrityEntry.cc
  7888. * src/MetalinkEntry.h
  7889. * src/version_usage.cc
  7890. * src/main.cc
  7891. * src/DownloadEngine.{h, cc}
  7892. * src/Metalink2RequestGroup.cc
  7893. * src/Peer.cc
  7894. * src/RequestGroup.cc
  7895. * src/MetalinkHelper.cc
  7896. * test/DefaultPieceStorageTest.cc
  7897. * test/MetalinkPostDownloadHandlerTest.cc
  7898. * test/Metalink2RequestGroupTest.cc
  7899. Hide TOTAL SPD when all downloads complete.
  7900. * src/ConsoleStatCalc.cc
  7901. Log target system information.
  7902. * src/main.cc
  7903. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Now --metalink-location accepts a comma-deliminated list of locations.
  7905. * src/MetalinkEntry.{h, cc}
  7906. * test/MetalinkEntryTest.cc
  7907. * src/version_usage.cc
  7908. * src/Metalink2RequestGroup.cc
  7909. * src/Xml2MetalinkProcessor.cc
  7910. * test/Xml2MetalinkProcessorTest.cc
  7911. * doc/aria2c.1.txt
  7912. * doc/aria2c.1
  7913. * src/Util.cc (toUpper)(toLower): Rewritten.
  7914. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Added the ability to detect duplicate download entry which is about to
  7916. download the same file other RequestGroup is downloading.
  7917. * src/RequestGroup.cc
  7918. * src/HttpResponseCommand.cc
  7919. * src/FtpNegotiationCommand.cc
  7920. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. Recalculates download progress when loading a control file,
  7922. if the piece length of DownloadContext is different from the one saved
  7923. in the control file. Currently in-flight pieces are ignored.
  7924. * src/DefaultBtProgressInfoFile.cc
  7925. * test/DefaultBtProgressInfoFileTest.cc
  7926. * src/Util.{h, cc}
  7927. * test/UtilTest.cc
  7928. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Do not rotate tiers in announce-list.
  7930. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7931. AnnounceList::allTiersFailed() used instead to detect whether all
  7932. tiers are tried and failed.
  7933. * test/DefaultBtAnnounceTest.cc
  7934. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7935. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7936. * test/AnnounceListTest.cc
  7937. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7938. clause. Catch RecoverableException instead of DlRetryEx instead.
  7939. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. Implemented checksum validation feature(1 checksum for each file)
  7941. The validation takes place after the download.
  7942. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7943. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7944. * src/CheckIntegrityCommand.cc: Changed log message.
  7945. * src/Metalink2RequestGroup.cc: Set checksum to
  7946. SingleFileDownloadContext.
  7947. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7948. PieceHashCheckIntegrity class.
  7949. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7950. PieceHashCheckIntegrity class.
  7951. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7952. * src/IteratableValidator.h: New class.
  7953. * src/message.h
  7954. * src/CheckIntegrityEntry.{h, cc}
  7955. * src/IteratableChunkChecksumValidator.{h, cc}
  7956. * src/SingleFileDownloadContext.h
  7957. * src/DownloadCommand.cc
  7958. --allow-overwrite=true is no longer needed to check file integrity
  7959. before download in BitTorrent download.
  7960. * src/RequestGroup.cc (getInitialCommand)
  7961. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7962. throws exception.
  7963. * src/RequestGroupMan.cc (getInitialCommands)
  7964. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. urlencode the given url inside Request::parseUrl(...)
  7966. * src/Request.{h, cc}
  7967. * src/Util.{h, cc}
  7968. * test/RequestTest.cc
  7969. Removed #!metalink3! notation support because it is deleted from
  7970. the metalink specification.
  7971. * src/Request.{h, cc}
  7972. * test/RequestTest.cc
  7973. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Don't connect server before checking file integrity at startup, if
  7975. filesize and output file path are known.
  7976. * src/AbstractCommand.cc
  7977. * src/StreamFileAllocationEntry.cc
  7978. * src/Metalink2RequestGroup.cc
  7979. * src/RequestGroup.{h, cc}
  7980. * src/HttpResponseCommand.cc
  7981. * src/FtpNegotiationCommand.cc
  7982. Added DownloadFailureException. If it is thrown, RequestGroup should
  7983. halt.
  7984. * src/AbstractCommand.cc
  7985. * src/DownloadFailureException.h
  7986. * src/RequestGroup.cc
  7987. Catch RecoverableException, instead of DlAbortEx.
  7988. * src/RequestGroupMan.cc
  7989. * src/FillRequestGroupCommand.cc
  7990. * src/MetaFileUtil.cc
  7991. * src/IteratableChunkChecksumValidator.cc
  7992. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7993. getGID())
  7994. * src/CheckIntegrityCommand.cc
  7995. * src/message.h
  7996. Print gid instead of idx.
  7997. * src/RequestGroupMan.cc
  7998. Removed exception throwers declaration.
  7999. * src/DirectDiskAdaptor.{h, cc}
  8000. * src/SocketCore.{h, cc}
  8001. * src/MultiDiskAdaptor.{h, cc}
  8002. * src/HttpConnection.{h, cc}
  8003. * src/HttpResponse.{h, cc}
  8004. * src/DiskAdaptor.{h, cc}
  8005. * src/CopyDiskAdaptor.{h, cc}
  8006. * src/MultiDiskAdaptor.{h, cc}
  8007. * src/HttpHeaderProcessor.{h, cc}
  8008. * src/AbstractSingleDiskAdaptor.{h, cc}
  8009. * src/Util.{h, cc}
  8010. * test/UtilTest.cc
  8011. * src/DefaultDiskWriter.{h, cc}
  8012. * src/FtpConnection.{h, cc}
  8013. * src/AbstractDiskWriter.{h, cc}
  8014. Removed duplicate code.
  8015. * src/StreamCheckIntegrityEntry.cc
  8016. Removed unnecessary include.
  8017. * src/DiskWriter.h
  8018. Included Exception.h
  8019. * src/option_processing.cc
  8020. Included 2 files and added doc
  8021. * src/TrackerWatcherCommand.cc
  8022. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  8023. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8024. Changed CheckIntegrityEntry interface so that it can define
  8025. the action when all the chunk checksums are valid.
  8026. * src/CheckIntegrityEntry.h
  8027. * src/StreamCheckIntegrityEntry.{h, cc}
  8028. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  8029. are valid, then aira2 goes to seeding mode. Sometimes it is better
  8030. to exit rather than doing seeding. So, it would be good to toggle this
  8031. behavior.
  8032. * src/CheckIntegrityCommand.cc
  8033. * src/AbstractCommand.cc
  8034. * src/RequestGroup.cc
  8035. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8036. Reflect the download length of in-flight pieces.
  8037. It makes the download length readout more precise.
  8038. * src/DefaultPieceStorage.{h, cc}
  8039. * test/DefaultPieceStorageTest.cc
  8040. * src/a2functional.h
  8041. * test/a2functionalTest.cc
  8042. Lower CPU load when --max-download-limit is used.
  8043. There is up and down in speed indicator when enabling
  8044. http-pipelining but a download goes well. I think the problem is that
  8045. because http-pipelining is enabled, DownloadCommand is created for
  8046. each segment and in its constructor, PeerStat::downloadStart() is
  8047. called. In PeerStat::downloadStart(), speed calculation object is
  8048. reseted, which makes download speed zero.
  8049. * src/DownloadCommand.cc
  8050. Rewritten using accumulate.
  8051. * src/RequestGroupMan.cc (calculateStat)
  8052. Code clearnup.
  8053. * src/FtpNegotiationCommand.cc
  8054. * src/HttpResponseCommand.cc
  8055. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8056. Fixed: Can not resume: aria2 reports download already finished.
  8057. * src/AbstractCommand.{h, cc}
  8058. * src/HttpResponseCommand.cc
  8059. * src/FtpNegotiateCommand.cc
  8060. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8061. Now a file is stored in the directory specified in .metalnk file
  8062. (file[@name]).
  8063. * src/Metalink2RequestGroup.cc
  8064. Create the directory structure when opening the file if it doesn't
  8065. exist.
  8066. * src/AbstractDiskWriter.cc
  8067. * src/Util.{h, cc}
  8068. * src/File.h
  8069. * test/UtilTest.cc
  8070. Removed file name comparison
  8071. * src/Metalink2RequestGroup.cc
  8072. * src/HttpResponseCommand.cc
  8073. Rewritten using Util::mkdirs()
  8074. * src/FileEntry.cc (setupDir)
  8075. * test/FileEntryTest.cc
  8076. Updated doc
  8077. * src/SingleFileDownloadContext.h
  8078. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Now SleepCommand dispatches nextCommand when halt is requested.
  8080. It avoids a possible long wait after hitting CTRL-C.
  8081. * src/SleepCommand.{h, cc}
  8082. * src/RequestGroupAware.{h, cc}
  8083. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8084. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8085. to open listen port, then remove the port number from the tracker
  8086. request.
  8087. * src/DefaultBtAnnounce.cc
  8088. * test/DefaultBtAnnounceTest.cc
  8089. * test/MockPieceStorage.h
  8090. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8091. them more testable.
  8092. * src/DefaultBtAnnounce.{h, cc}
  8093. * src/DefaultBtContext.{h, cc}
  8094. * src/Util.{h, cc}
  8095. * test/DefaultBtAnnounceTest.cc
  8096. * test/DefaultBtContextTest.cc
  8097. * test/UtilTest.cc
  8098. Added 'B' to upload bytes readout.
  8099. * src/ConsoleStatCalc.cc
  8100. Now the listen port for BitTorrent download is opened when it is
  8101. needed.
  8102. * src/DownloadEngineFactory.cc
  8103. * src/BtSetup.{h, cc}
  8104. * src/PeerListenCommand.{h, cc}
  8105. Now an exception thrown while parsing tracker response is now logged.
  8106. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8107. called, which means no retry is made in this case, assuming a tracker
  8108. has a problem.
  8109. * src/TrackerWatcherCommand.cc
  8110. Fixed: downloading a file whose length is unkown fails.
  8111. * src/DownloadCommand.cc
  8112. Simplified prepareForNextSegment()
  8113. * src/DownloadCommand.cc
  8114. Updated
  8115. * po/POTFILES.in
  8116. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8117. Re-implemented a file listing for Metalink, which was dropped while
  8118. http/ftp/torrent integration was being implemented.
  8119. * src/MetalinkHelper.{h, cc}: New class.
  8120. * test/MetalinkHelperTest.cc
  8121. * src/main.cc
  8122. * src/Metalink2RequestGroup.cc
  8123. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8124. Added the ability to display the detailed torrent file information.
  8125. Now -S option gives not only a file listing, but also total download
  8126. length, info hash, announce URI, piece length, the number of pieces,
  8127. and mode(single or multi-torrent).
  8128. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8129. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8130. KiB)
  8131. * test/UtilTest.cc
  8132. * src/main.cc
  8133. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. Added ftp://USER:PASSWD@Servername automatic parsing.
  8135. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8136. _password. Recognize username and password in URI.
  8137. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8138. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8139. * src/RequestFactory.{h, cc}: Removed.
  8140. * src/AuthConfigFactory.{h, cc}: New class.
  8141. * src/FtpConnection.cc: Use AuthConfigFactory.
  8142. * src/HttpRequest.cc: Use AuthConfigFactory.
  8143. * test/HttpRequestTest.cc: Updated.
  8144. * test/RequestTest.cc: Updated.
  8145. * test/AuthConfigFactoryTest.cc: New class.
  8146. * test/RequestFactoryTest.cc: Removed.
  8147. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8148. Use RequestGroup::allDownloadFinished() to decide whether the control
  8149. file should be removed or saved.
  8150. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8151. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8152. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Use File::renameTo()
  8154. * src/DefaultBtProgressInfoFile.cc
  8155. Added --no-file-allocation-limit command-line option.
  8156. * src/version_usage.cc
  8157. * src/option_processing.cc
  8158. * src/OptionHandlerFactory.cc
  8159. * src/RequestGroup.{h, cc}
  8160. * src/BtCheckIntegrityEntry.cc
  8161. * src/StreamCheckIntegrityEntry.cc
  8162. * src/prefs.h
  8163. * doc/aria2c.1.txt
  8164. * doc/aria2c.1
  8165. Now prealloc is the default value for --file-allocation option.
  8166. * src/version_usage.cc
  8167. * src/option_processing.cc
  8168. * doc/aria2c.1.txt
  8169. * doc/aria2c.1
  8170. Don't URL-encode user-agent.
  8171. * src/HttpRequest.cc
  8172. Updated translations
  8173. * po/LINGUAS: Added nl for Dutch translation.
  8174. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8175. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8176. * po/POTFILES.in: Updated.
  8177. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8178. Added the ability to recognize url-list in a torrent file.
  8179. The retrieved URLs are attached to the corresponding FileEntry.
  8180. * src/DefaultBtContext.{h, cc}
  8181. * src/FileEntry.{h, cc}
  8182. * test/DefaultBtContextTest.cc
  8183. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8184. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8185. after the download finishes.
  8186. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8188. the data smaller than block length.
  8189. A block length can be specified by constructor's argument.
  8190. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8191. Get a missing piece in the range of given FileEntry. This function is
  8192. not used in the program yet.
  8193. * src/Util.h: Added some macros.
  8194. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8195. Added HTTP/1.1 keep alive and pipelining support.
  8196. See --enable-http-keep-alive and --enable-http-pipelining option.
  8197. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8198. Segment.
  8199. * src/HttpDownloadCommand.{h, cc}
  8200. * src/OptionHandlerFactory.cc
  8201. * src/HttpConnection.{h, cc}
  8202. * src/version_usage.cc
  8203. * src/HttpInitiateConnectionCommand.cc
  8204. * src/FtpInitiateConnectionCommand.cc
  8205. * src/Segment.h
  8206. * src/HttpRequestCommand.{h, cc}
  8207. * src/option_processing.cc
  8208. * src/prefs.h
  8209. * src/HttpResponseCommand.cc
  8210. * src/SegmentMan.{h, cc}
  8211. * src/FtpNegotiateCommand.cc
  8212. * src/HttpProxyResponseCommand.cc
  8213. * src/Request.cc
  8214. * src/HttpRequest.cc
  8215. * src/DownloadCommand.cc
  8216. * test/HttpRequestTest.cc
  8217. * test/RequestTest.cc
  8218. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8220. finished.
  8221. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8223. catching it inside the method.
  8224. When no file entry is found in a metalink without querying user
  8225. preferences, throw the exception with the error message that suggests
  8226. metalink file is probably broken.
  8227. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8228. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8230. processed.
  8231. * src/RequestGroupMan.cc (removeStoppedGroup)
  8232. Added debug message.
  8233. * src/BtPostDownloadHandler.cc
  8234. * src/MetalinkPostDownloadHandler.cc
  8235. * src/PostDownloadHandler.{h, cc}
  8236. * src/RequestGroup.cc
  8237. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8239. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8240. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8241. stops and there are any unfinished or in-progress downloads.
  8242. Added the legend of "stat".
  8243. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Throw exception when chunck checksum verification fails.
  8245. * src/DownloadCommand.cc (validatePieceHash): New function.
  8246. * src/PiecedSegment.{h, cc} (clear): New function.
  8247. * src/GrowSegment.{h, cc} (clear): New function.
  8248. * src/Segment.h (clear): New function.
  8249. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8250. * test/SegmentTest.cc
  8251. * test/GrowSegmentTest.cc
  8252. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. Do not send referer when redirected.
  8254. * src/Request.cc (redirectUrl)
  8255. * test/RequestTest.cc
  8256. * test/HttpRequestTest.cc
  8257. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8258. Implemented BitTorrent/http/ftp integrated download.
  8259. I've rewritten lots of files and now some headers have forward
  8260. class declarations to reduce compile time.
  8261. The implementation is extremely alpha stage, I recommend to use this
  8262. for testing purpose only.
  8263. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8264. Fixed the compilation error on 64bit platform.
  8265. * test/HttpHeaderProcessorTest.cc
  8266. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Merged Ross's patch that fixes compilation problem in MinGW
  8268. * test/DefaultBtProgressInfoFileTest.cc
  8269. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Updated fr.po by sebone
  8271. * po/fr.po
  8272. Updated man page.
  8273. * doc/aria2c.1.txt
  8274. * Release 0.11.3
  8275. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8276. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8277. failure in Metalink.
  8278. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Automatically save *.aria2 control file of http/ftp download in every
  8280. 60 seconds.
  8281. * src/AutoSaveCommand.{h, cc}: New class.
  8282. * src/TimeBasedCommand.{h, cc}: New class.
  8283. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8284. Disable parameterized URI support by default. Added -P option to
  8285. enable the feature.
  8286. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8287. * src/OptionHandlerFactory.cc
  8288. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8289. Updated Japanese translation.
  8290. * po/ja.po
  8291. Updated man page.
  8292. * doc/aria2c.1.txt
  8293. * Release 0.11.3-rc
  8294. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8296. it is successful, then renamed to *.aria2.
  8297. This prevents *.aria2 file from being truncated or corrupted when
  8298. file system becomes out of space.
  8299. * src/DefaultBtProgressInfoFile.cc (save)
  8300. * src/SegmentMan.cc (save)
  8301. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8302. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. Reduced the fragmentation of bitfield in http/ftp download.
  8304. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8305. * test/BitfieldManTest.cc
  8306. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Added the ability to disable segmented download in .metalink.
  8308. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8309. 'url' tag.
  8310. * src/MetalinkEntry.{h, cc}
  8311. * src/RequestResource.{h, cc}
  8312. * src/MetalinkRequestInfo.cc
  8313. * src/Xml2MetalinkProcessor.cc
  8314. * test/Xml2MetalinkProcessorTest.cc
  8315. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. Added parameterized URI support.
  8317. * src/main.cc: -Z option added.
  8318. * src/OptionHandlerFactory.cc
  8319. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8320. * src/PStringDatum.h: New class.
  8321. * src/PStringSegment.{h,cc}: New class.
  8322. * src/PStringNumLoop.h: New class.
  8323. * src/PStringSelect.h: New class.
  8324. * src/NumberDecorator.h: New class.
  8325. * src/FixedWidthNumberDecorator.h: New class.
  8326. * src/AlphaNumberDecorator.h: New class.
  8327. * src/PStringVisitor.h: New class.
  8328. * src/PStringBuildVisitor.{h,cc}: New class.
  8329. * src/ParameterizedStringParser.{h,cc}: New class.
  8330. * src/Util.{h,cc}
  8331. (isNumber): New function.
  8332. (isLowercase): New function.
  8333. (isUppercase): New function.
  8334. (alphaToNum): New function.
  8335. * test/ParameterizedStringParserTest.cc: New class.
  8336. * test/AlphaNumberDecoratorTest.cc: New class.
  8337. * test/PStringBuildVisitorTest.cc: New class.
  8338. * test/UtilTest.cc
  8339. (testIsNumber): New function.
  8340. (testIsLowercase): New function.
  8341. (testIsUppercase): New function.
  8342. (testAlphaToNum): New function.
  8343. Added '\n' after the error message
  8344. * src/RequestInfo.h (printDownloadAbortMessage)
  8345. Added auto file renaming feature in http(s)/ftp download.
  8346. * src/main.cc: Added --auto-file-renaming command-line option.
  8347. * src/OptionHandlerFactory.cc
  8348. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8349. * src/RequestGroup.{h, cc}
  8350. (shouldCancelDownloadForSafety): Rewritten
  8351. (tryAutoFileRenaming): New function.
  8352. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8353. * src/HttpResponseCommand.cc
  8354. (executeInternal): Removed the call to RequestGroupMan::
  8355. isSameFileBeingDownloaded()
  8356. * src/FtpNegotiateCommand.cc
  8357. (recvSize): Removed the call to RequestGroupMan::
  8358. isSameFileBeingDownloaded()
  8359. * test/RequestGroupTest.cc: New class.
  8360. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8362. IO.
  8363. * src/DefaultBtProgressInfoFile.cc
  8364. * src/MetaFileUtil.cc
  8365. * src/SimpleLogger.cc
  8366. * src/SegmentMan.cc
  8367. * src/Util.cc
  8368. * src/Platform.cc
  8369. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8371. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8372. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8373. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8374. Fixed the bug that prevents file allocation is not done when
  8375. dowloading multi-torrent file.
  8376. * src/AbstractDiskWriter.cc (openFile)
  8377. Increase the maximum number of -j option from 15 to 45.
  8378. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8379. Added fr.po, thanks to Charles Landemaine.
  8380. * po/fr.po
  8381. * po/LINGUAS
  8382. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8383. gcc 3.4.4 support:
  8384. * src/DefaultBtContext.cc: int32_t -> int
  8385. * src/main.cc: int -> int32_t, int32_t -> int
  8386. * src/messageDigest.h: uint32_t -> unsigned int
  8387. * src/NameResolver.h: int32_t -> int
  8388. * src/PeerConnection.cc: int -> int32_t
  8389. * src/SpeedCalc.cc: int32_t -> int
  8390. * src/TrackerUpdateCommand.h: int -> int32_t
  8391. * src/Util.cc: int32_t -> int
  8392. * src/Util.h: int32_t -> int
  8393. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8394. * test/AnnounceListTest.cc: int -> int32_t
  8395. * test/ChunkedEncodingTest.cc: int -> int32_t
  8396. * test/DataTest.cc: int -> int32_t
  8397. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8398. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8399. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8400. * test/FeatureConfigTest.cc: int -> int32_t
  8401. * test/MetalinkEntryTest.cc: int -> int32_t
  8402. * test/MockBtRequestFactory.h: int -> int32_t
  8403. * test/MockPieceStorage.h: int -> int32_t
  8404. * test/OptionTest.cc: int -> int32_t
  8405. * test/RequestTest.cc: int -> int32_t
  8406. * test/SegmentManTest.cc: int -> int32_t
  8407. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8408. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8409. Move sleep functions to Util class:
  8410. * src/Util.cc
  8411. (sleep): New function.
  8412. (usleep): New function.
  8413. * src/DownloadCommand.cc: sleep -> Util::sleep
  8414. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8415. MinGW build enhancements. The following files are added:
  8416. * src/timegm.{c,h}
  8417. Changes to support the above new files:
  8418. * configure.ac
  8419. * src/Makefile.am
  8420. * src/a2time.h
  8421. * src/Util.cc:
  8422. * src/strptime.c: Added support for %Z option.
  8423. Fixed MinGW non-blocking bug.
  8424. * src/SocketCore.cc
  8425. * src/HttpRequestCommand.cc
  8426. Miscellenous build fixes/enhancements.
  8427. * configure.ac: Added summary report.
  8428. * src/Platform.h: Tweaked #include's.
  8429. * src/a2netcompat.h: Tweaked #include's.
  8430. * src/strptime.h: Tweaked #include's.
  8431. * src/gai_strerror.c: Tweaked #include's.
  8432. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8433. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8434. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8435. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. Increased the initial connection size in BitTorrent download to 40.
  8437. * src/BtRuntime.h
  8438. Added the usage message of --peer-id-prefix option.
  8439. * src/main.cc
  8440. * Release 0.11.2
  8441. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8442. MessageDigestHelper is introduced in order to simplify the use
  8443. of message digest. Removed repeated code.
  8444. The message digest algorithm is now specified by string, like "sha1",
  8445. "md5".
  8446. * src/messageDigest.{h, cc}
  8447. * src/MessageDigestHelper.{h, cc}: New class.
  8448. * src/DefaultPieceStorage.cc
  8449. * src/DefaultBtContext.{h, cc}
  8450. (computeFastSet): New function.
  8451. (setInfoHash): Added for unit testing.
  8452. (setNumPieces): Added for unit testing.
  8453. * src/DefaultBtInteractive.cc
  8454. * src/BtPieceMessage.cc
  8455. * src/Peer.cc
  8456. * src/Checksum.h
  8457. * src/message.h
  8458. * src/IteratableChecksumValidator.h
  8459. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8460. inside it.
  8461. * src/SegmentMan.{h, cc}
  8462. (checkIntegrity): Removed.
  8463. * src/IteratableChunkChecksumValidator.{h, cc}
  8464. * src/Util.h
  8465. (sha1Sum): Removed.
  8466. (simpleMessageDigest): Removed.
  8467. (fileChecksum): Removed.
  8468. (computeFastSet): Removed.
  8469. * src/ShaVisitor.cc
  8470. * src/ChunkChecksum.h
  8471. * src/DownloadCommand.cc
  8472. Removed messageDigest virtual functions.
  8473. * src/MultiDiskAdaptor.{h, cc}
  8474. * src/DiskAdaptor.h
  8475. * src/ByteArrayDiskWriter.h
  8476. * src/DiskWriter.h
  8477. * src/DiskAdaptorWriter.h
  8478. * src/AbstractSingleDiskAdaptor.{h, cc}
  8479. * src/AbstractDiskWriter.{h, cc}
  8480. Fixed comilation error when message digest is disabled.
  8481. * src/MetalinkEntry.{h, cc}
  8482. * src/MetalinkRequestInfo.cc
  8483. Removed srandom and random.
  8484. * src/SimpleRandomizer.h
  8485. Added size() virtual function to DiskAdaptor
  8486. * src/MultiDiskAdaptor.h
  8487. Fixed the bug that causes that files are not opened correctly in
  8488. multi-file torrent.
  8489. * src/TorrentRequestInfo.cc
  8490. * src/MultiDiskAdaptor.cc
  8491. Added SHA256 support
  8492. * src/messageDigest.cc
  8493. * src/Xml2MetalinkProcessor.cc
  8494. Show supported message digest algorithms
  8495. * src/main.cc
  8496. Updated contact info.
  8497. * src/main.cc
  8498. Applied Ross's patch
  8499. * src/a2netcompat.h
  8500. * src/main.cc
  8501. Fixed the bug that prevents a remote metalink from not being processed
  8502. even if '-o foo.metalink' is specified.
  8503. * src/MetalinkRequestInfo.cc
  8504. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Merged Dan's patch:
  8506. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8507. Use va_copy to avoid core dump on amd64:
  8508. * src/SimpleLogger.cc
  8509. Updated contact info.
  8510. * src/main.cc
  8511. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8512. digest is not available.
  8513. * src/MetalinkEntry.h
  8514. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. Make a2netcompat.h include a2io.h to fix compilation error:
  8516. * src/a2netcompat.h
  8517. * src/SocketCore.cc: Removed include of a2io.h
  8518. * src/Util.cc: Removed include of a2io.h
  8519. Gather time related functions to a2time.h:
  8520. * src/a2time.h: New file.
  8521. * src/DefaultPeerStorage.cc
  8522. * src/SimpleLogger.cc
  8523. * src/Util.{h, cc}
  8524. * src/SimpleRandomizer.h
  8525. * src/TimeA2.{h,cc}
  8526. * src/DownloadCommand.cc
  8527. * src/main.cc
  8528. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8529. a2netcompat.h:
  8530. * src/NameResolver.cc
  8531. Fixed compilation error without openssl:
  8532. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8533. Added default block to suppress compiler warnings:
  8534. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8535. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8536. MinGW build enhancements. The following files are added:
  8537. * src/gai_strerror.{c,h}
  8538. * src/gettimeofday.{c,h}
  8539. Changes to support the above new files:
  8540. * configure.ac
  8541. * src/Makefile.am
  8542. * src/a2netcompat.h
  8543. * src/TimeA2.cc
  8544. * src/DefaultPeerStorage.cc
  8545. * src/NameResolver.cc: removed mingw_strerror() function.
  8546. * src/SocketCore.cc: removed mingw_strerror() function.
  8547. Miscellaneous MinGW build fixes.
  8548. * src/a2io.h: Use _lseeki64() instead of lseek()
  8549. * src/common.h
  8550. * src/DefaultFileAllocator.cc
  8551. * src/GlowFileAllocator.cc
  8552. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8553. * src/NameResolver.cc
  8554. (callback): Changed int32_t to int.
  8555. (resolve): Changed int32_t to int.
  8556. * src/Platform.cc
  8557. * src/Platform.h
  8558. * test/MultiDiskWriterTest.cc
  8559. * test/PeerMessageUtilTest.cc
  8560. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8561. Other enhancements and fixes.
  8562. * src/HttpRequestCommand.cc
  8563. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8564. * src/SocketCore.cc:
  8565. (error): New function to abstract errno/WSAGetLastError().
  8566. (errorMsg): New function to abstract errno/WSAGetLastError().
  8567. (initiateSecureConnection): Added more detailed error reporting.
  8568. * src/SocketCore.h: Added private variable blocking, to allow
  8569. proper handling of OpenSSL psuedo-errors.
  8570. * src/message.h
  8571. (EX_SSL_INIT_FAILURE)
  8572. (EX_SSL_IO_ERROR)
  8573. (EX_SSL_PROTOCOL_ERROR)
  8574. (EX_SSL_UNKNOWN_ERROR)
  8575. (EX_SSL_CONNECT_ERROR)
  8576. (EX_SOCKET_BLOCKING)
  8577. (EX_SOCKET_NONBLOCKING)
  8578. (EX_SOCKET_UNKNOWN_ERROR)
  8579. * src/Util.cc
  8580. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8581. reserved name.
  8582. (httpGMT): Fixed typo.
  8583. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Merged Ross's win32 patch(manually)
  8585. In the course of merging, following files are added.
  8586. * src/strptime.{h,c}
  8587. * src/libgen.{h,c}
  8588. * src/inet_aton.{h,c}
  8589. * src/Platform.{h,cc}
  8590. * src/localtime_r.{h,c}
  8591. * src/getaddrinfo.{h,c}
  8592. I've gethered network related things, and put them to following file:
  8593. * src/a2netcompat.h
  8594. Also io related things are put to following file:
  8595. * src/a2io.h
  8596. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8597. * src/message.h
  8598. (MSG_ALLOCATION_COMPLETED)
  8599. (EX_TOO_LARGE_FILE)
  8600. (EX_SIZE_MISMATCH)
  8601. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8602. (EX_INVALID_CHUNK_CHECKSUM)
  8603. (EX_INVALID_RANGE_HEADER)
  8604. * src/FileAllocationCommand.cc
  8605. * src/HttpResponse.cc
  8606. * src/RequestGroup.cc
  8607. * src/MultiDiskAdaptor.cc
  8608. * src/OptionHandlerImpl.h
  8609. * src/HttpResponseCommand.cc
  8610. * src/FtpNegotiateCommand.cc
  8611. * src/IteratableChecksumValidator.cc
  8612. * src/SegmentMan.cc
  8613. * src/ChunkChecksumValidator.cc
  8614. Added Randomizer::getRandomNumber(long int)
  8615. * src/Randomizer.h (getRandomNumber)
  8616. * src/SimpleRandomizer.h (getRandomNumber)
  8617. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8618. * src/Util.cc (randomAlpha): Use this new function.
  8619. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Converted int's to in32_t. long long int's are also converted to
  8621. int64_t
  8622. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. Fixed the bug that prevents cookies from being sent to the server
  8624. if the domain of cookie is FQDN and starts with ".".
  8625. * src/Cookie.cc (match)
  8626. To add the ability to change peer id.
  8627. * src/DefaultBtContext.h
  8628. (_peerIdPrefix): New variable
  8629. (setPeerIdPrefix): New function.
  8630. * src/torrentRequestInfo.cc
  8631. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8632. DefaultBtContext.
  8633. * src/main.cc (main): Added peer-id-prefix command-line option.
  8634. The usage message is not added yet.
  8635. * src/DefaultBtContext.cc
  8636. (generatePeerId): Use _peerIdPrefix.
  8637. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8638. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8639. Fixed the bug that prevents filename in content-disposition from
  8640. being retrieved when filename is not quoted.
  8641. * src/Util.cc (getContentDispositionFilename)
  8642. Fixed the bug that causes infinate loop and memory leak when file open
  8643. operation failed.
  8644. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8645. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Fixed the bug that causes segfault when all URIs specified are
  8647. unsupported.
  8648. * src/RequestGroupMan.cc (getInitialCommands)
  8649. Check if RequestGroup::createNextCommand() returns empty list of
  8650. commands.
  8651. * src/RequestGroup.cc (createNextCommand)
  8652. Change log level from info to error so that users can notice that
  8653. an error occurred.
  8654. Fixed the bug that causes segfault when a zero-sized file is
  8655. downloaded.
  8656. * src/BitfieldMan.cc (isAllBitSet)
  8657. Return true if bitfieldLength is 0.
  8658. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8659. * src/main.cc
  8660. (showUsage): Added 3 usage examples for metalink download.
  8661. Replace MetalinkChunkChecksum with ChunkChecksum.
  8662. * src/MetalinkChunkChecksum.h: Removed.
  8663. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8664. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8665. * src/Xml2MetalinkProcessor.cc
  8666. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8667. * src/MetalinkRequestInfo.cc (execute)
  8668. * Release 0.11.1
  8669. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Reads URIs from stdin when "-i -" is specified.
  8671. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8672. * src/UriListParser.h, src/UriListParser.cc: New class.
  8673. * src/StreamUriListParser.h: New class.
  8674. * src/FileUriListParser.h: New class.
  8675. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8676. instead of UriFileListParser.
  8677. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Made console readout more readable.
  8679. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8680. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8681. Fix the bug that causes -s option not to work.
  8682. * src/main.cc (main)
  8683. * src/a2algo.h: New file.
  8684. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8685. Create directory structure specified in metalink file.
  8686. * src/RequestGroup.h, src/RequestGroup.cc
  8687. (initAndOpenFile): Create a directory to store files if it does not
  8688. exist.
  8689. (getDir): New function.
  8690. Added ETA and download speed for an individual file to readout.
  8691. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8692. * src/RequestGroup.h
  8693. (calculateDownloadSpeed): New function.
  8694. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Made -S option work with metalink file and provided selective download
  8696. to metalink.
  8697. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8698. (filename): Removed.
  8699. (file): New variable.
  8700. (size): Removed.
  8701. (operator=): Updated.
  8702. (getPath): New function.
  8703. (getLength): New function.
  8704. (toFileEntry): New function.
  8705. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8706. (execute): Use toStream.
  8707. (showFileEntry): Removed.
  8708. * src/MetalinkRequestInfo.h
  8709. (targetFiles): New variable.
  8710. (setTargetFiles): New variable.
  8711. * src/MetalinkRequestInfo.cc
  8712. (execute): Added the ability to print file information included in
  8713. a metalink file.
  8714. Added selective download mode to metalink.
  8715. * src/main.cc
  8716. (showUsage): Updated to denote that -S and --select-file options are
  8717. applicable to metalink.
  8718. * src/FileEntry.h
  8719. (operator=): New function.
  8720. (getBasename): New function.
  8721. (getDirname): New function.
  8722. * src/Util.h, src/Util.cc
  8723. (toStream): New function.
  8724. * src/Xml2MetalinkProcessor.cc: Updated.
  8725. Made aria2 work with metalink with directory structure.
  8726. * src/File.h, src/File.cc
  8727. (getBasename): New function.
  8728. (getDirname): New function.
  8729. * src/RequestGroup.h, src/RequestGroup.cc
  8730. (_topDir): New variable.
  8731. (setTopDir): New function.
  8732. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8733. Rewrote HTTP header parsing with stringstream.
  8734. * src/HttpConnection.h, src/HttpConnection.cc
  8735. (HttpRequestEntry): New class.
  8736. (headerBuf): Removed.
  8737. (headerBufLength): Removed.
  8738. (outstandingHttpRequests): Now its element type is
  8739. HttpRequestEntryHandle.
  8740. (findEndOfHeader): Removed.
  8741. (receiveResponse): Rewritten.
  8742. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8743. Updated doc for -j option to notice that it should be used with -i
  8744. option.
  8745. * src/main.cc (showUsage)
  8746. Removed unused classes.
  8747. * src/RequestInfo.h
  8748. (FileInfo): Removed.
  8749. (checksum): Removed.
  8750. (fileInfo): Removed.
  8751. (setChecksum): Removed.
  8752. (getChecksum): Removed.
  8753. (getFileInfo): Removed.
  8754. Use ISO units.
  8755. * src/ConsoleDownloadEngine.cc
  8756. * src/TorrentConsoleDownloadEngine.cc
  8757. * src/Util.cc (abbrevSize)
  8758. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8759. Added the default listening ports to the help message.
  8760. * src/main.cc (showUsage)
  8761. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8762. Reduce the number of calls to gettimeofday to lower CPU load.
  8763. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8764. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8765. * src/Peer.h (calculateUploadSpeed): New function.
  8766. (calculateDownloadSpeed): New function.
  8767. * src/DefaultPeerStorage.cc
  8768. (CalculateStat): Added _now variable.
  8769. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8770. and Peer::calculateUploadSpeed(const struct timeval&)
  8771. Drop connection if no request or piece message is exchanged in
  8772. a certain interval.
  8773. * src/DefaultBtInteractive.h
  8774. (btRuntime): New variable.
  8775. (inactiveCheckPoint): New variable.
  8776. (checkActiveInteraction): New function.
  8777. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8778. request or piece message is received.
  8779. (checkActiveInteraction): New function.
  8780. (doInteractionProcessing): Call checkActiveInteraction.
  8781. Fixed the bug that causes remote Metalink and Torrent files are not
  8782. processed.
  8783. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8784. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8785. Changed format of log file.
  8786. * src/SimpleLogger.cc
  8787. * Release 0.11.0
  8788. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8789. * src/AbstractCommand.cc
  8790. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8791. MSG_MAX_TRY from error to info.
  8792. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8793. * src/message.h
  8794. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8795. (MSG_DOWNLOAD_ABORTED): Added %s.
  8796. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8797. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8798. * src/PeerAbstractCommand.cc
  8799. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8800. * src/Request.h
  8801. (cookieBox): Made ShardHandle.
  8802. * src/RequestGroup.h, src/RequestGroup.cc
  8803. (createNextCommandWithAdj): New function.
  8804. * src/FileAllocationCommand.cc
  8805. (executeInternal): Use createNextCommandWithAdj().
  8806. * src/CheckIntegrityCommand.cc
  8807. (executeInternal): Use createNextCommandWithAdj().
  8808. Added --load-cookies command-option.
  8809. * src/OptionHandlerFactory.cc
  8810. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8811. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8812. Now aria2 can handle cookie's expiration date.
  8813. * src/Cookie.h (expires): Changed its type to time_t.
  8814. * src/main.cc: Added --load-cookies command-line option.
  8815. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8816. * src/Util.h, src/Util.cc (httpGMT): New function.
  8817. * src/Request.cc (Request): Initialize cookieBox using
  8818. CookieBoxFactory.
  8819. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8820. * src/CookieParser.h, src/CookieParser.cc: New class.
  8821. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8822. * src/HttpResponseCommand.cc
  8823. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8824. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8825. download.
  8826. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Added -j command-line option.
  8828. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8829. * src/main.cc
  8830. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8831. Rewritten using stringstream.
  8832. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8833. Rewritten using stringstream.
  8834. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Make download size shown in MB, KB.
  8836. * src/ConsoleDownloadEngine.h (sendStatistics)
  8837. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8838. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8839. Accept incoming connections if download rate is low.
  8840. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8841. (_lowestSpeedLimit): New variable.
  8842. (setLowestSpeedLimit): New function.
  8843. (execute): Accept incoming connections if download rate is low.
  8844. MAX_PEERS is ignored in this case.
  8845. Disable PREF_OUT in multiple concurrent download:
  8846. * src/RequestGroup.h, src/RequestGroup.cc
  8847. (setUserDefinedFilename): New function.
  8848. * src/DownloadEngineFactory.cc
  8849. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8850. concurrent download.
  8851. * src/DefaultSegmentManFactory.cc
  8852. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8853. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8855. Added its overloaded method.
  8856. * src/RequestGroup.h
  8857. (_numConcurrentCommand): New variable.
  8858. (setNumConcurrentCommand): New function.
  8859. * src/RequestGroup.cc
  8860. Abort download if same file is being downloaded concurrently.
  8861. * src/RequestGroup.h, src/RequestGroupMan.cc
  8862. (isSameFileBeingDownloaded): New function.
  8863. * src/HttpResponseCommand.cc (executeInternal)
  8864. * src/FtpNegotiateCommand.cc (recvSize)
  8865. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8866. * main.cc: Added help message for -i option.
  8867. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8869. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8870. * src/MetalinkEntry.h
  8871. (checksum): Changed to ChecksumHandle
  8872. * src/MetalinkRequestInfo.cc
  8873. (checksum): Changed to ChecksumHandle
  8874. * src/File.cc
  8875. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8876. * src/common.h
  8877. (DIR_OPEN_MODE): New definition
  8878. * src/RequestGroup.cc
  8879. (prepareForNextAction): Added an argument.
  8880. * src/message.h
  8881. (MSG_GOOD_CHECKSUM): New definition
  8882. (MSG_BAD_CHECKSUM): New definition
  8883. * src/HttpResponseCommand.cc
  8884. (handleDefaultEncoding): Continue download sequence in new
  8885. non-segmented download.
  8886. * src/FileAllocationEntry.h
  8887. (_nextDownloadCommand): New variable.
  8888. * src/DownloadCommand.cc
  8889. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8890. available.
  8891. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8892. * src/IteratableChecksumValidator.h,
  8893. src/IteratableChecksumValidator.cc: New class.
  8894. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8895. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8896. Change file mode to 666:
  8897. * src/common.h (OPEN_MODE): New definition.
  8898. * src/File.cc
  8899. * src/Util.cc
  8900. * src/Directry.cc
  8901. * src/AbstractDiskWriter.cc
  8902. Change the level of log message "download aborted" to debug:
  8903. * src/PeerAbstractCommand.cc (execute)
  8904. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8905. * src/TrackerWatcherCommand.cc
  8906. (createCommand): Sleep some seconds after request failed.
  8907. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8908. then abort tracker request.
  8909. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. * Added the simultaneous download feature.
  8911. * src/main.cc: Print "Exception caught: " when exception is caught.
  8912. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8913. * src/ActivePeerConnectionCommand.cc
  8914. * src/PeerInteractionCommand.cc
  8915. * src/BtRuntime.h
  8916. (cuidCounter): Removed.
  8917. (getNewCuid): Removed.
  8918. * src/DownloadEngineFactory.cc
  8919. * src/PeerListenCommand.cc
  8920. * src/TrackerUpdateCommand.cc
  8921. * src/PeerInitiateConnectionCommand.cc
  8922. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. * src/PeerAbstractCommand.cc
  8924. (onAbort): Call PeerStorage::returnPeer()
  8925. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8926. (incomingPeers): New variable.
  8927. (addIncomingPeer): New function.
  8928. (returnPeer): New function.
  8929. (onErasingPeer): New function.
  8930. (addPeer): push_back -> push_front
  8931. (getActivePeers): Rewritten.
  8932. (calculateStat): Rewritten.
  8933. * src/PeerStorage.h
  8934. (TransferStat::copy): New function.
  8935. (TransferStat::TransferStat): New function.
  8936. (TransferStat::operator=): New function.
  8937. (addIncomingPeer): New function.
  8938. (returnPeer): New function.
  8939. * src/PeerListenCommand.cc
  8940. (execute): Use PeerStorage::addIncomingPeer() instead of
  8941. Peer::addPeer().
  8942. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. Connect to a peer actively when download speed is lower than specified
  8944. speed in torrent download:
  8945. * src/ActivePeerConnectionCommand.h: New class.
  8946. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8947. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8948. * src/main.cc: Fixed the bug that prevents download if .netrc
  8949. doesn't exist.
  8950. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. To cache resolved hostname:
  8952. * src/AbstractCommand.h, src/AbstractCommand.cc
  8953. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8954. Added dns cache.
  8955. * src/FtpInitiateConnectionCommand.cc
  8956. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8957. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8958. NameResolver working without ares.
  8959. * src/TorrentRequestInfo.cc
  8960. (execute): Don't cache dns in torrent download.
  8961. * src/HttpInitiateConnectionCommand.cc
  8962. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8963. * src/DNSCache.h: New class.
  8964. * src/UrlRequestInfo.cc
  8965. (execute): Use dns cache.
  8966. In http request, suppress port number in http request header if port
  8967. is 80 or 443:
  8968. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8969. request header if port is 80 or 443.
  8970. (createProxyRequest): Allways send port number.
  8971. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8972. To add the command-line option which disables netrc support:
  8973. * src/OptionHandlerFactory.cc
  8974. (createOptionHandlers): Added PREF_NO_NETRC.
  8975. * src/main.cc: Added -n option.
  8976. * src/prefs.h (PREF_NO_NETRC): New definition.
  8977. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8978. V_TRUE.
  8979. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8980. is V_FALSE. This may get configurable in the future release.
  8981. To clear peer's error status by time basis:
  8982. * src/PeerAbstractCommand.cc
  8983. (onAbort): Call Peer::startBadCondition().
  8984. * src/Peer.h, src/Peer.cc
  8985. (error): Removed.
  8986. (_badConditionStartTime): New variable.
  8987. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8988. (startBadCondition): New function.
  8989. (isGood): New function.
  8990. * src/DefaultPeerStorage.cc
  8991. (addPeer): Use Peer::isGood().
  8992. (FindFinePeer): Use Peer::isGood().
  8993. Always include port number in http request header:
  8994. * src/HttpRequest.cc (getHostText): Always include port number in
  8995. http request header.
  8996. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8997. To the ability to read options from a config file:
  8998. * src/main.cc: Command-line parameter validation is delegated to
  8999. OptionHandler class.
  9000. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  9001. * src/Option.h, src/Option.cc (clear): New function.
  9002. * src/OptionParser.h, src/OptionParser.cc: New class.
  9003. * src/OptionHandler.h: New class.
  9004. * src/NameMatchOptionHandler.h: New class.
  9005. * src/OptionHandlerImpl.h: New classes.
  9006. * src/prefs.h: '_' -> '-'
  9007. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  9008. (FTP_PASV): New definition.
  9009. * src/Util.h, src/Util.cc (getRealSize): New function.
  9010. To disable netrc support if .netrc file does not have correct
  9011. permissions:
  9012. * src/File.h, src/File.cc (mode): New function.
  9013. To prevent confidential information to be logged:
  9014. * src/HttpConnection.h, src/HttpConnection.cc
  9015. (eraseConfidentialInfo): New function.
  9016. (sendRequest): Call eraseConfidentialInfo().
  9017. (sendProxyRequest): Call eraseConfidentialInfo().
  9018. * src/main.cc: Validate permissions of .netrc file.
  9019. To add --user-agent command-line option:
  9020. * src/main.cc: Added new command line option: --user-agent
  9021. * src/prefs.h (PREF_USER_AGENT): New definition.
  9022. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  9023. parameter to HttpRequest object.
  9024. * src/AbstractProxyRequestCommand.cc
  9025. (executeInternal): Set user-agent option parameter to HttpRequest
  9026. object.
  9027. Marged the patches from Dan Fandrich.
  9028. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9029. Use filename and size from Metalink file instead of sending HEAD
  9030. request:
  9031. * src/UrlRequestInfo.h
  9032. (_filename): New variable.
  9033. (_totalLength): New variable.
  9034. (setTotalLength): New variable.
  9035. (setFilename): New variable.
  9036. * src/MetalinkRequestInfo.cc
  9037. (execute): Set filename and size to UrlRequestInfo
  9038. * src/UrlRequestInfo.cc
  9039. (execute): Use filename and size from Metalink instead of seding
  9040. HEAD request to servers.
  9041. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. To add the ability to resume downloading a partially downloaded file
  9043. which is downloaded from the beginning:
  9044. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  9045. takes this role.
  9046. * src/main.cc: Added -c option.
  9047. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  9048. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  9049. * src/prefs.h (PREF_CONTINUE): New definition.
  9050. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  9051. * src/DefaultDiskWriter.cc
  9052. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  9053. * src/AbstractDiskWriter.h
  9054. (glowFileAllocator): New variable.
  9055. * src/AbstractDiskWriter.cc
  9056. (openExistingFile): Now preallocate file space from the end of the
  9057. existing file if totalLength argument is specified and grater than 0.
  9058. * src/UrlRequestInfo.cc: If -c option is specified and the file
  9059. to download exists in local, continue the download of the file.
  9060. --allow-overwrite=true is assumed in this context.
  9061. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  9062. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  9063. Throw exception if --check-integrity=true is specified but chunk
  9064. checksums are not provided:
  9065. * src/UrlRequestInfo.cc
  9066. Do not print URLs to stdout:
  9067. * src/UrlRequestInfo.cc
  9068. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9069. * src/Request.h: Use AuthResolver to get authentication information.
  9070. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9071. set to RequestFactory object.
  9072. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9073. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9074. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9075. create Request object.
  9076. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9077. To integrate Netrc into exsiting classes:
  9078. * src/Request.h
  9079. (_userDefinedAuthConfig): New variable.
  9080. (findNetrcAuthenticator): New function.
  9081. (segment): Removed.
  9082. (setUserDefinedAuthConfig): New function.
  9083. (resolveHttpAuthConfigItem): New function.
  9084. (resolveFtpAuthConfigItem): New function.
  9085. (resolveHttpProxyAuthConfigItem): New function.
  9086. * src/HttpRequest.h
  9087. (authConfig): Removed.
  9088. (proxyAuthConfig): Removed.
  9089. (setAuthConfig): Removed.
  9090. (setProxyAuthConfig): Removed.
  9091. * src/UrlRequest.h
  9092. (getHeadResult): Added a parameter: authConfigHandle
  9093. * src/common.h
  9094. (SingletonHolder.h): New include.
  9095. * src/main.cc
  9096. (Netrc.h): New include.
  9097. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9098. Added initial value of PREF_NETRC_PATH.
  9099. Added the initialization of netrc.
  9100. * src/AuthConfig.h: New class.
  9101. * src/prefs.h
  9102. (PREF_NETRC_PATH): New definition.
  9103. * src/HttpAuthConfig.h: Removed.
  9104. * src/Netrc.cc
  9105. (getRequiredNextToken): New function.
  9106. (skipMacdef): New function.
  9107. (parse): Rewritten.
  9108. * src/Netrc.h
  9109. (getRequiredNextToken): New function.
  9110. (skipMacdef): New function.
  9111. * src/Util.h, src/Util.cc
  9112. (getHomeDir): New function.
  9113. * src/TrackerWatcherComand.cc
  9114. (createRequestCommand): Use AuthConfig.
  9115. * src/FtpConnection.cc
  9116. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9117. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9118. * src/Request.cc
  9119. (findNetrcAuthenticator): New function.
  9120. (resolveHttpAuthConfigItem): New function.
  9121. (resolveFtpAuthConfigItem): New function.
  9122. (resolveHttpProxyAuthConfigItem): New function.
  9123. * src/UrlRequestInfo.cc: Use AuthConfig.
  9124. * src/HttpRequest.cc
  9125. (createRequest): Use authConfig.
  9126. (getProxyAuthString): Use authConfig.
  9127. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9128. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9129. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9130. To reduce overhead to find commands whose socket is either
  9131. readable or writable in the download engine loop:
  9132. * src/Command.h, src/Command.cc
  9133. (STATUS): New enum.
  9134. (status): New variable.
  9135. (statusMatch): New function.
  9136. (setStatusActive): New function.
  9137. (setStatusInactive): New function.
  9138. * src/DownloadEngine.h, src/DownloadEngine.cc
  9139. (executeCommand): New function.
  9140. (run): Simplified.
  9141. (waitData): Call Command::setStatusActive() when command's socket is
  9142. readable or writable.
  9143. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. To handle Segment as SegmentHandle:
  9145. * src/AbstractCommand.cc (execute): Rewritten.
  9146. * src/SegmentMan.h: Segment -> SegmentHandle
  9147. Introducded HttpResponse class, HttpRequest class to improve code
  9148. extensiveness and make it clear:
  9149. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9150. HttpResponse class.
  9151. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9152. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9153. * src/HttpConnection.cc: Contruction of http request were moved to
  9154. HttpRequest class.
  9155. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9156. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9157. * src/HttpAuthConfig.h: New class.
  9158. * src/Range.h: New class.
  9159. To make FtpTunnel{Request, Response}Command and
  9160. HttpProxy{Request, Response}Command derived from
  9161. AbstractProxy{Request, Response}Command:
  9162. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9163. Derived from AbstractProxyRequestCommand class.
  9164. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9165. Derived from AbstractProxyResponseCommand class.
  9166. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9167. Derived from AbstractProxyRequestCommand class.
  9168. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9169. Derived from AbstractProxyResponseCommand class.
  9170. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9171. : New class.
  9172. * src/AbstractProxyResponseCommand.h,
  9173. src/AbstractProxyResponseCommand.cc: New class.
  9174. To add netrc support:
  9175. * src/Netrc.h, src/Netrc.cc: New class.
  9176. * src/Util.h, src/Util.cc (split): New function.
  9177. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9178. "Content-Range" header instead of "Range" header.
  9179. * src/HttpHeader.h
  9180. (getStatus): Removed.
  9181. (setStatus): Removed.
  9182. * src/Segment.h
  9183. (getPositionToWrite): New function.
  9184. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. * src/HttpHeader.h
  9186. (Range.h): New include.
  9187. (status): New variable.
  9188. (HttpHeader): Initialized status with 0.
  9189. (getStatus): New function.
  9190. (setStatus): New function.
  9191. (getRange): New function.
  9192. (HttpHeaderHandle): New function.
  9193. * src/HttpHeader.cc
  9194. (getRange): New function.
  9195. * src/Request.h
  9196. (RequestWeakHandle): New definition.
  9197. * src/HttpConnection.h
  9198. (HttpConnectionHandle): New type definition.
  9199. * src/HttpConnection.cc
  9200. (receiveResponse): Set HTTP status to headers.
  9201. * src/main.cc
  9202. (showUsage): Fixed typo.
  9203. * src/Segment.h
  9204. (SegmentHandle): New type definition.
  9205. * src/BitfieldMan.h
  9206. (getMissingUnusedLength): New function.
  9207. * src/BitfieldMan.cc
  9208. (getMissingUnusedLength): New function.
  9209. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. To fix static initialization order problem:
  9211. * src/BitfieldManFactory.h
  9212. (defaultRandomizer): Removed.
  9213. (factory): New variable.
  9214. (getNewFactory): Removed.
  9215. (getFactoryInstance): New function.
  9216. (setDefaultRandomizer): Rewritten.
  9217. (getDefaultRandomizer): Rewritten.
  9218. * src/BitfieldManFactory.cc
  9219. (defaultRandomizer): Removed.
  9220. (factory): Initialized to 0.
  9221. (BitfieldManFactory): Initialized randomizer to 0.
  9222. * src/DefaultPieceStorage.cc
  9223. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9224. * src/Peer.cc
  9225. (Peer): getNewFactory() -> getFactoryInstance()
  9226. * src/SegmentMan.cc
  9227. (initBitfield): getNewFactory() -> getFactoryInstance()
  9228. * src/Piece.cc
  9229. (Piece): getNewFactory() -> getFactoryInstance()
  9230. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9231. To fix the bug that causes crash on Max OS X:
  9232. * src/SimpleRandomizer.h
  9233. (getInstance): Create new instance if the static variable is null.
  9234. * src/SimpleRandomizer.cc
  9235. (randomizer): Initialized to 0.
  9236. * src/BitfieldManFactory.h
  9237. (getNewFactory): Removed the call to setRandomizer().
  9238. To fix the miscalculation of the range of checksum:
  9239. * src/BitfieldMan.h
  9240. (isBitSetOffsetRange): New function.
  9241. * src/BitfieldMan.cc
  9242. (isBitSetOffsetRange): New function.
  9243. * src/SegmentMan.cc
  9244. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9245. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9246. * Release 0.10.1
  9247. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9248. To lower CPU usage in BitTorrent download when --max-upload-limit
  9249. command-line option specified:
  9250. * src/DefaultBtMessageDispatcher.cc
  9251. (sendMessages): Calculate uploading speed only when current message
  9252. is uploading data and is not sent yet.
  9253. * src/DefaultPeerStorage.h
  9254. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9255. * src/HttpResponseCommand.cc
  9256. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9257. This fixes compile error in Soralis 10.
  9258. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9259. To fix segfault in Metalink download:
  9260. * src/UrlRequestInfo.h
  9261. (filename): Removed.
  9262. (totalLength): Removed.
  9263. (setTotalLength): Removed.
  9264. (setFilename): Removed.
  9265. * src/MetalinkRequestInfo.cc
  9266. (execute): Do not set filename and totalLength to reqInfo.
  9267. Set chunk checksum to reqInfo if it is not null.
  9268. * src/HttpResponseCommand.cc
  9269. (executeInternal): Fixed filename in log.
  9270. (handleDefaultEncoding): Removed the call to initBitfield() and
  9271. markAllPiecesDone().
  9272. (handleOtherEncoding): Added HEAD method handling.
  9273. * src/FtpNegotiateCommand.cc
  9274. (executeInternal): Added SEQ_HEAD_OK handling.
  9275. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9276. return false.
  9277. * src/FtpNegotiateCommand.h
  9278. (SEQ_HEAD_OK): New definition.
  9279. * src/SegmentMan.cc
  9280. (initBitfield): Delete bitfield.
  9281. (isChunkChecksumValidationReady): Fixed the condition.
  9282. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9283. works fine.
  9284. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9285. * src/Xml2MetalinkProcessor.h
  9286. (xpathExists): New function.
  9287. * src/Xml2MetalinkProcessor.cc
  9288. (xpathExists): New function.
  9289. Not to send HEAD request if filename and size are available in Metalink
  9290. file:
  9291. * src/UrlRequestInfo.h
  9292. (filename): New variable.
  9293. (totalLength): New variable.
  9294. (setTotalLength): New function.
  9295. (setFilename): New function.
  9296. * src/MetalinkRequestInfo.cc
  9297. (execute): Set filename and size to UrlRequestInfo.
  9298. * src/MetalinkEntry.cc
  9299. (MetalinkEntry): Initialize size with 0.
  9300. * src/UrlRequestInfo.cc
  9301. (execute): Set filename and size to SegmentMan.
  9302. Not to download rest of the files after selected files are downloaded
  9303. in BitTorrent:
  9304. * src/PieceStorage.h
  9305. (allDownloadFinished): New function.
  9306. * src/DefaultBtAnnounce.cc
  9307. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9308. downloadFinished.
  9309. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9310. * src/DefaultPieceStorage.cc
  9311. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9312. Commented out the call to finishSelectiveDownloadingMode().
  9313. (downloadFinished): Call isFilteredAllBitSet() instead of
  9314. isAllBitSet().
  9315. (allDownloadFinished): New function.
  9316. * src/DefaultBtInteractive.cc
  9317. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9318. downloadFinished().
  9319. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9320. * src/TorrentDownloadEngine.cc
  9321. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9322. * src/BitfieldMan.h
  9323. (isFilteredAllBitSet): New function.
  9324. * src/ShareRatioSeedCriteria.h
  9325. (PieceStorage.h): New include.
  9326. (pieceStorage): New variable.
  9327. (evaluate):
  9328. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9329. * src/BitfieldMan.cc
  9330. (isFilteredAllBitSet): New function.
  9331. (isAllBitSet): Filter is not took into account.
  9332. Rename --force-truncate as --allow-overwrite:
  9333. * src/TorrentRequestInfo.cc
  9334. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9335. * src/main.cc
  9336. (showUsage): --force-truncate -> --allow-overwrite
  9337. * src/message.h
  9338. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9339. * src/prefs.h
  9340. (PREF_FORCE_TRUNCATE): Removed.
  9341. (PREF_ALLOW_OVERWRITE): New definition.
  9342. * src/SegmentMan.cc
  9343. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9344. * src/MetalinkRequestInfo.cc
  9345. (execute): Queueing message are now logged in info level.
  9346. * src/common.h
  9347. (LONG_LONG_MAX): Removed.
  9348. (LONG_LONG_MIN): Removed.
  9349. * src/HttpResponseCommand.cc
  9350. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9351. * src/FtpNegotiateCommand.cc
  9352. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9353. * src/main.cc
  9354. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9355. command-line option.
  9356. (main): Added --check-integriy and --realtime-chunk-checksum
  9357. command-line option.
  9358. --force-truncate -> --allow-overwrite
  9359. Set initial value of --check-integrity option to false.
  9360. Don't show usage when error occurs while persing command-line options.
  9361. Removed deprecated --upload-limit option.
  9362. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9363. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9364. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9365. * src/BtAllowedFastMessage.cc:
  9366. * src/BtBitfieldMessage.cc
  9367. * src/BtCancelMessage.cc
  9368. * src/BtChokeMessage.cc
  9369. * src/BtHaveAllMessage.cc
  9370. * src/BtHaveMessage.cc
  9371. * src/BtHaveNoneMessage.cc
  9372. * src/BtInterestedMessage.cc
  9373. * src/BtNotInterestedMessage.cc
  9374. * src/BtPieceMessage.cc
  9375. * src/BtPortMessage.cc
  9376. * src/BtRejectMessage.cc
  9377. * src/BtRequestMessage.cc
  9378. * src/BtSuggestPieceMessage.cc
  9379. * src/BtUnchokeMessage.cc
  9380. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9381. files are affected.
  9382. * src/ChunkChecksumValidator.cc
  9383. * src/SegmentMan.cc
  9384. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9385. To add chunk checksum validation:
  9386. * src/MetalinkEntry.h
  9387. (MetalinkChunkChecksum.h): New include.
  9388. (chunkChecksum): New variable.
  9389. * src/Request.h
  9390. (method): New variable.
  9391. (setMethod): New function.
  9392. (getMethod): New function.
  9393. (METHOD_GET): New static constant.
  9394. (METHOD_HEAD): New static constant.
  9395. * src/Xml2MetalinkProcessor.h
  9396. (getPieceHash): New function.
  9397. * src/PieceStorage.h
  9398. (markAllPiecesDone): New function.
  9399. (checkIntegrity): New function.
  9400. * src/FileAllocator.h
  9401. (NullFileAllocationMonitor.h): New include.
  9402. (FileAllocator): Initialize fileAllocationMonitor with new
  9403. NullFileAllocationMonitor().
  9404. * src/MultiDiskAdaptor.h
  9405. (messageDigest.h): Remove include.
  9406. (ctx): Removed.
  9407. (hashUpdate): Added ctx.
  9408. (MultiDiskAdaptor): Removed ctx.
  9409. (sha1Sum): Renamed as messageDigest.
  9410. (messageDigest): New function.
  9411. * src/UrlRequestInfo.h
  9412. (HeadResult): New class.
  9413. (digestAlgo): New variable.
  9414. (chunkChecksumLength): New variable.
  9415. (chunkChecksums): New variable.
  9416. (getHeadResult): New function.
  9417. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9418. (setDigestAlgo): New function.
  9419. (setChunkChecksumLength): New function.
  9420. (setChunkChecksums): New function.
  9421. * src/DefaultPieceStorage.cc
  9422. (DiskAdaptorWriter.h): New include.
  9423. (ChunkChecksumValidator.h): New include.
  9424. (markAllPiecesDone): New function.
  9425. (checkIntegrity): New function.
  9426. * src/DefaultBtContext.h
  9427. (getPieceHashes): New function.
  9428. * src/TorrentRequestInfo.cc
  9429. (execute): Try to validate chunk checksum if file already exists and
  9430. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9431. * src/messageDigest.h
  9432. (~MessageDigestContext): Added digestFree().
  9433. * src/MetalinkRequestInfo.cc
  9434. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9435. * src/DiskAdaptor.h
  9436. (messageDigest.h): New include.
  9437. (sha1Sum): Renamed as messageDigest.
  9438. (messageDigest): New function.
  9439. * src/DownloadCommand.h
  9440. (PeerStat.h): New include.
  9441. (maxDownloadSpeedLimit): New variable.
  9442. (startupIdleTime): New variable.
  9443. (lowestDownloadSpeedLimit): New variable.
  9444. (peerStat): New variable.
  9445. (setMaxDownloadSpeedLimit): New function.
  9446. (setStartupIdleTime): New function.
  9447. (setLowestDownloadSPeedLimit): New function.
  9448. * src/BtContext.h
  9449. (getPieceHashes): New function.
  9450. * src/main.cc
  9451. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9452. option to true for testing purpose.
  9453. * src/BtPieceMessage.cc
  9454. (checkPieceHash): Use messageDigest
  9455. * src/DownloadEngine.cc
  9456. (SetDescriptor): Removed.
  9457. (AccumulateActiveCommand): Removed.
  9458. (waitData): Rewritten.
  9459. (updateFdSet): Rewritten.
  9460. * src/MultiDiskAdaptor.cc
  9461. (hashUpdate): Added ctx.
  9462. (sha1Sum): Renamed as messageDigest.
  9463. (messageDigest): New function.
  9464. * src/BitfieldMan.h
  9465. (isBitRangeSet): New function.
  9466. (unsetBitRange): New function.
  9467. * src/ByteArrayDiskWriter.h
  9468. (sha1Sum): Renamed as messageDigest.
  9469. (messageDigest): New function.
  9470. * src/ConsoleDownloadEngine.cc
  9471. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9472. * src/DiskWriter.h
  9473. (messageDigest.h): New include.
  9474. (sha1Sum): Renamed as messageDigest.
  9475. (messageDigest): New function.
  9476. * src/ChunkChecksumValidator.h: New class.
  9477. * src/DiskAdaptorWriter.h: New class.
  9478. * src/prefs.h
  9479. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9480. (PREF_CHECK_INTEGRITY): New definition.
  9481. * src/HttpResponseCommand.cc
  9482. (handleDefaultEncoding): Added method "HEAD" handling.
  9483. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9484. (handleOtherEncoding):
  9485. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9486. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9487. startupIdleTime, lowestDownloadSpeedLimit to command.
  9488. * src/SegmentMan.h
  9489. (getSegmentEntryByIndex): New function.
  9490. (getSegmentEntryByCuid): New function.
  9491. (getSegmentEntryIteratorByCuid): New function.
  9492. (diskWriter): DiskWriter -> DiskWriterHandle
  9493. (pieceHashes): New variable.
  9494. (chunkHashLength): New variable.
  9495. (digestAlgo): New variable.
  9496. (FindPeerStat): Removed.
  9497. (getPeerStat): Rewritten.
  9498. (markAllPiecesDone): New function.
  9499. (checkIntegrity): New function.
  9500. (tryChunkChecksumValidation): New function.
  9501. (isChunkChecksumValidationReady): New function.
  9502. * src/BitfieldMan.cc
  9503. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9504. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9505. blocks to 0.
  9506. (isBitRangeSet): New function.
  9507. (unsetBitRange): New function.
  9508. * src/FtpNegotiateCommand.cc
  9509. (executeInternal): Set maxDownloadSpeedLimit,
  9510. startupIdleTime, lowestDownloadSpeedLimit to command.
  9511. (recvSize): Added method "HEAD" handling.
  9512. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9513. * src/AbstractSingleDiskAdaptor.cc
  9514. (sha1Sum): Renamed as messageDigest.
  9515. (messageDigest): New function.
  9516. * src/AbstractSingleDiskAdaptor.h
  9517. (sha1Sum): Renamed as messageDigest.
  9518. (messageDigest): New function.
  9519. * src/Util.h
  9520. (indexRange): New function.
  9521. * src/MetalinkEntry.cc
  9522. (MetalinkEntry): Initialized chunkChecksum to 0.
  9523. * src/ShaVisitor.cc
  9524. (~ShaVisitor): Removed the call to ctx.digestFree().
  9525. * src/SegmentMan.cc
  9526. (ChunkChecksumValidator.h): New include.
  9527. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9528. to DIGEST_ALGO_SHA1.
  9529. (~SegmentMan): Removed diskWriter.
  9530. (FindSegmentEntryByIndex): Removed.
  9531. (FindSegmentEntryByCuid): Removed.
  9532. (checkoutSegment): Rewritten.
  9533. (findSlowerSegmentEntry): Rewritten.
  9534. (getSegment): Rewritten.
  9535. (updateSegment): Rewritten.
  9536. (completeSegment): Rewritten.
  9537. (markAllPiecesDone): New function.
  9538. (checkIntegrity): New function.
  9539. (isChunkChecksumValidationReady): New function.
  9540. (tryChunkChecksumValidation): New function.
  9541. * src/Xml2MetalinkProcessor.cc
  9542. (getEntry): Get size and set it to entry.
  9543. Get chunk checksum and set it to entry.
  9544. (getPieceHash): New function.
  9545. * src/Util.cc
  9546. (sha1Sum): Removed ctx.digestFree()
  9547. (fileChecksum): Removed ctx.digestFree()
  9548. (indexRange): New function.
  9549. * src/Request.cc
  9550. (METHOD_GET): New variable.
  9551. (METHOD_HEAD): New variable.
  9552. (Request): Added method.
  9553. * src/UrlRequestInfo.cc
  9554. (FatalException.h): New include.
  9555. (message.h): New include.
  9556. (operator<<): Added operator<< for class HeadResult.
  9557. (getHeadResult): New function.
  9558. (execute): Get filename and size in separate download engine.
  9559. * src/ChunkChecksumValidator.cc: New class.
  9560. * src/DownloadCommand.cc:
  9561. (DownloadCommand): Added peerStat.
  9562. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9563. the value from Option.
  9564. The buffer size is now 16KB.
  9565. Use peerStat member instead of getting it from SegmentMan.
  9566. Use startupIdleTime member instead of gettingit from Option.
  9567. Added chunk checksum validation.
  9568. * src/AbstractDiskWriter.cc
  9569. (AbstractDiskWriter): Removed ctx.
  9570. (~AbstractDiskWriter): Removed ctx.digestFree()
  9571. (writeDataInternal): Returns the return value of write.
  9572. (readDataInternal): Returns the return value of read.
  9573. (sha1Sum): Renamed as messageDigest
  9574. (messageDigest): New function.
  9575. * src/AbstractDiwkWriter.h
  9576. (messageDigest.h): Removed include.
  9577. (ctx): Removed.
  9578. (sha1Sum): Renamed as messageDigest
  9579. (messageDigest): New function.
  9580. * src/DefaultPieceStorage.h
  9581. (markAllPiecesDone): New function.
  9582. (checkIntegrity): New function.
  9583. * src/NullFileAllocationMonitor.h: New class.
  9584. * src/MetalinkChunkChecksum.h: New class.
  9585. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9586. To decrease CPU usage in bittorrent download, calculation results in
  9587. BitfieldMan were cached and realtime fetching PeerObject was removed
  9588. with WeakHandle introduced. Option values are set to the objects
  9589. by setter before download begins.
  9590. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9591. * src/DefaultBtRequestFactory.h
  9592. (dispatcher): BtMessageDispatcherHandle ->
  9593. BtMessageDispatcherWeakHandle.
  9594. (messageFactory): New variable.
  9595. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9596. BtMessageDispatcherWeakHandle.
  9597. (setBtMessageFactory): New function.
  9598. * src/DefaultBtMessageDispatcher.cc:
  9599. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9600. from Option.
  9601. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9602. feating the value from Option.
  9603. Use messageFactory member.
  9604. * src/PeerInteractionCommand.cc
  9605. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9606. Add reverse dependencies to factory object.
  9607. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9608. dispatcher.
  9609. Set messageFactory to receiver.
  9610. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9611. btInteractive.
  9612. Set receiver to peerObject.
  9613. Set maxDownloadSpeedLimit to this.
  9614. (executeInternal): Use maxDownloadSpeedLimit member.
  9615. * src/BtChokeMessage.cc
  9616. (doReceivedAction): Use dispatcher, requestFactory member.
  9617. (onSendComplete): Use dispatcher member.
  9618. * src/PeerInteractionCommand.h
  9619. (maxDownloadSpeedLimit): New variable.
  9620. * src/DefaultBtMessageReceiver.h
  9621. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9622. (dispatcher):
  9623. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9624. (messageFactory): New variable.
  9625. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9626. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9627. (setDispatcher):
  9628. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9629. (setBtMessageFactory): New function.
  9630. * src/DefaultBtInteractive.cc
  9631. (initiateHandshake): Use messageFactory member.
  9632. (addBitfieldMessageToQueue): Use messageFactory member.
  9633. (addAllowedFastMessageToQueue): Use messageFactory member.
  9634. (decideChoking): Use messageFactory member.
  9635. (checkHave): Use messageFactory member.
  9636. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9637. (receiveMessages): Use maxDownloadSpeedLimit member.
  9638. (decideInterest): Use messageFactory member.
  9639. * src/BtRequestMessage.cc
  9640. (doReceivedAction): Use messageFactory, dispatcher member.
  9641. (onQueued): Use dispatcher member.
  9642. * src/BtPieceMessage.cc
  9643. (doReceivedAction): Use dispatcher member.
  9644. (send): Use peerConnection member.
  9645. (onWrongPiece): Use requestFactory member.
  9646. (handleChokingEvent): Use messageFactory, dispatcher member.
  9647. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9648. * src/BtMessageDispatcher.h
  9649. (BtMessageDispatcherWeakHandle): New type definition.
  9650. * src/SimpleBtMessage.cc
  9651. (send): Use peerConnection member.
  9652. * src/BtRejectMessage.cc
  9653. (doReceivedAction): Use dispatcher member.
  9654. * src/DefaultBtMessageDispatcher.h
  9655. (Option.h): Removed include.
  9656. (messageFactory): New variable.
  9657. (option): Removed.
  9658. (maxUploadSpeedLimit): New variable.
  9659. (requestTimeout): New variable.
  9660. (DefaultBtMessageDispatcher): Removed option.
  9661. Added maxUploadSpeedLimit, requestTimeout.
  9662. (setOption): Removed.
  9663. (getOption): Removed.
  9664. (setMaxUploadSpeedLimit): New function.
  9665. (setRequestTimeout): New function.
  9666. (setBtMessageFactory): New function.
  9667. * src/DefaultBtInteractive.h
  9668. (btMessageReceiver):
  9669. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9670. (dispatcher):
  9671. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9672. (btRequestFactory):
  9673. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9674. (peerConnection):
  9675. PeerConnectionHandle -> PeerConnectionWeakHandle
  9676. (messageFactory): New variable.
  9677. (option): Removed.
  9678. (keepAliveInterval): New variable.
  9679. (maxDownloadSpeedLimit): New variable.
  9680. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9681. (setBtMessageReceiver):
  9682. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9683. (setDispatcher):
  9684. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9685. (setBtRequestFactory):
  9686. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9687. (setPeerConnection):
  9688. PeerConnectionHandle -> PeerConnectionWeakHandle
  9689. (setOption): Removed.
  9690. (setKeepAliveInterval): New function.
  9691. (setMaxDownloadSpeedLimit): New function.
  9692. (setBtMessageFactory): New function.
  9693. * src/BitfieldMan.h
  9694. (cachedNumMissingBlock): New variable.
  9695. (cachedNumFilteredBlock): New variable.
  9696. (cachedCompletedLength): New variable.
  9697. (cachedFilteredComletedLength): New variable.
  9698. (cachedFilteredTotalLength): New variable.
  9699. (countMissingBlockNow): New function.
  9700. (countFilteredBlockNow): New function.
  9701. (getFilteredTotalLengthNow): New function.
  9702. (getCompletedLengthNow): New function.
  9703. (getFilteredCompletedLengthNow): New function.
  9704. (updateCache): New function.
  9705. * src/AbstractBtMessage.h
  9706. (BtMessageDispatcher.h): New include.
  9707. (PeerConnection.h): New include.
  9708. (BtRequestFactory.h): New include
  9709. (BtMessageFactory.h): New include.
  9710. (dispatcher): New variable.
  9711. (messageFactory): New variable.
  9712. (peerConnection: New variable.
  9713. (setBtMessageDispatcher): New function.
  9714. (setPeerConnection): New function.
  9715. (setBtMessageFactory): New function.
  9716. (setBtRequestFactory): New function.
  9717. * src/DefaultBtMessageFactory.cc
  9718. (setCommonProperty): Set dispatcher, requestFactory, this,
  9719. peerConnection to msg.
  9720. * src/BtRegistry.h
  9721. (BT_MESSAGE_RECEIVER): New macro.
  9722. * src/PeerConnection.h
  9723. (PeerConnectionWeakHandle): New type definition.
  9724. * src/BtMessageFactory.h
  9725. (BtMessageFactoryWeakHandle): New type definition.
  9726. * src/BitfieldMan.cc
  9727. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9728. cachedCompletedLength, cachedFilteredComletedLength,
  9729. cachedFilteredTotalLength.
  9730. Call updateCache().
  9731. (countMissingBlock): Return cachedNumMissingBlock.
  9732. (countMissingBlockNow): New function.
  9733. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9734. (countFilteredBlockNow): New function.
  9735. (setBit): Call updateCache().
  9736. (unsetBit): Call updateCache().
  9737. (setBitfield): Call updateCache().
  9738. (clearAllBit): Call updateCache().
  9739. (setAllBit): Use setBitInternal instead of setBit.
  9740. Call updateCache().
  9741. (addFilter): Call updateCache().
  9742. (enableFilter): Call updateCache().
  9743. (disableFilter): Call updateCache().
  9744. (clearFilter): Call updateCache().
  9745. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9746. (getFilteredTotalLengthNow): New function.
  9747. (getCompletedLength): Return cachedCompletedLength.
  9748. (getCompletedLengthNow): New function.
  9749. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9750. (getFilteredCompletedLengthNow): New function.
  9751. (updateCache): New function.
  9752. * src/BtMessageReceiver.h
  9753. (BtMessageReceiverWeakHandle): New type definition.
  9754. * src/DefaultBtMessageReceiver.cc
  9755. (receiveHandshake): Use messageFactory member.
  9756. (sendHandshake): Use messageFactory member.
  9757. (receiveMessage): Use messageFactory member.
  9758. * src/DefaultBtMessageFactory.h
  9759. (dispatcher): New variable.
  9760. (requestFactory): New variable.
  9761. (peerConnection): New variablle.
  9762. (setBtMessageDispatcher): New function.
  9763. (setBtRequestFactory): New function.
  9764. (setPeerConnection): New function.
  9765. * src/SharedHandle.h
  9766. (RefCount): New class.
  9767. (WeakHandle): New class.
  9768. * src/PeerObject.h
  9769. (BtMessageReceiver.h): New include.
  9770. (PeerObject): Added btMessageReceiver.
  9771. (btMessageReceiver): New variable.
  9772. * src/Util.cc
  9773. (countBit): Simplified.
  9774. * src/BtCancelMessage.cc
  9775. (doReceivedAction): Use dispatcher member.
  9776. * src/BtRequestFactory.h
  9777. (BtRequestFactoryWeakHandle): New type definition.
  9778. * src/PeerStorage.h
  9779. (downloadSpeed): int -> uint32_t
  9780. (uploadSpeed): int -> uint32_t
  9781. (sessionDownloadLength): long long int -> uint64_t
  9782. (sessionUploadLength): long long int -> uint64_t
  9783. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9784. To add RecoverableException, FatalException:
  9785. * src/AbstractCommand.cc
  9786. (onAbort): Exception -> RecoverableException
  9787. * src/PeerAbstractCommand.h
  9788. (RecoverableException.h): New include.
  9789. (onAbort): Exception -> RecoverableException.
  9790. * src/PeerInteractionCommand.cc
  9791. (onAbort): Exception -> RecoverableException.
  9792. * src/PeerAbstractCommand.cc
  9793. (execute): Exception -> RecoverableException.
  9794. (onAbort): Exception -> RecoverableException.
  9795. * src/TorrentRequestInfo.cc
  9796. (execute): Exception -> RecoverableException.
  9797. * src/MetalinkRequestInfo.cc
  9798. (execute): Exception -> RecoverableException.
  9799. * src/MetaFileUtil.cc: RecoverableException.
  9800. * src/AbstractCommand.h
  9801. (onAbort): Exception -> RecoverableException.
  9802. * src/DlRetryEx.h: Exception -> RecoverableException.
  9803. * src/DlAbortEx.h: Exception -> RecoverableException.
  9804. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9805. * src/Util.cc: Exception -> RecoverableException.
  9806. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9807. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9808. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9809. To make ID static const int
  9810. * src/BtInterestedMessage.h
  9811. (ID_t): Removed.
  9812. (ID): New variable.
  9813. (getId): Made non-const.
  9814. * src/BtPieceMessage.h
  9815. (ID_t): Removed.
  9816. (ID): New variable.
  9817. (getId): Made non-const.
  9818. * src/BtChokeMessage.h
  9819. (ID_t): Removed.
  9820. (ID): New variable.
  9821. (getId): Made non-const.
  9822. * src/BtHaveAllMessage.h
  9823. (ID_t): Removed.
  9824. (ID): New variable.
  9825. (getId): Made non-const.
  9826. * src/BtKeepAliveMessage.h
  9827. (ID_t): Removed.
  9828. (ID): New variable.
  9829. (getId): Made non-const.
  9830. * src/BtHandshakeMessage.h
  9831. (ID): New variable.
  9832. (getId): Made non-const.
  9833. * src/BtSuggestPieceMessage.h
  9834. (ID_t): Removed.
  9835. (ID): New variable.
  9836. (getId): Made non-const.
  9837. * src/BtPortMessage.h
  9838. (ID_t): Removed.
  9839. (ID): New variable.
  9840. (getId): Made non-const.
  9841. * src/AbstractBtMessage.h
  9842. (id): Removed.
  9843. (AbstractBtMessage): Removed id.
  9844. (getId): Removed.
  9845. * src/BtHaveMessage.h
  9846. (ID_t): Removed.
  9847. (ID): New variable.
  9848. (getId): Made non-const.
  9849. * src/BtAllowedFastMessage.h
  9850. (ID_t): Removed.
  9851. (ID): New variable.
  9852. (getId): Made non-const.
  9853. * src/BtCancelMessage.h
  9854. (ID_t): Removed.
  9855. (ID): New variable.
  9856. (getId): Made non-const.
  9857. * src/BtNotInterestedMessage.h
  9858. (ID_t): Removed.
  9859. (ID): New variable.
  9860. (getId): Made non-const.
  9861. * src/BtChokeMessage.h
  9862. (ID_t): Removed.
  9863. (ID): New variable.
  9864. (getId): Made non-const.
  9865. * src/BtRejectMessage.h
  9866. (ID_t): Removed.
  9867. (ID): New variable.
  9868. (getId): Made non-const.
  9869. * src/BtBitfieldMessage.h
  9870. (ID_t): Removed.
  9871. (ID): New variable.
  9872. (getId): Made non-const.
  9873. * src/BtUnchokeMessage.h
  9874. (ID_t): Removed.
  9875. (ID): New variable.
  9876. (getId): Made non-const.
  9877. * src/BtRequestMessage.h
  9878. (ID_t): Removed.
  9879. (ID): New variable.
  9880. (getId): Made non-const.
  9881. * src/BtHaveMessage.h
  9882. (ID_t): Removed.
  9883. (ID): New variable.
  9884. (getId): Made non-const.
  9885. To add --force-truncate command-line option and a check whether
  9886. the file already exists:
  9887. * src/DirectDiskAdaptor.h
  9888. (getFilePath): Made virtual public.
  9889. * src/MultiDiskAdaptor.h
  9890. (File.h): New include.
  9891. (DiskWriterEntry::fileEntry): Made private.
  9892. (DiskWriterEntry::fileExists): New function.
  9893. (DiskWriterEntry::getFileEntry): New function.
  9894. (fileExists): New function.
  9895. (getFilePath): New function.
  9896. * src/TorrentRequestInfo.cc
  9897. (FatalException.h): New include.
  9898. (message.h): New include.
  9899. (RecoverableException.h): New include.
  9900. (execute): Added a check whether file is already exists or not.
  9901. * src/DiskAdaptor.h
  9902. (fileExists): New function.
  9903. (getFilePath): New function.
  9904. * src/main.cc
  9905. (showUsage): Added an explanation of --force-truncate command-line
  9906. option.
  9907. (main): Added --force-truncate command-line option.
  9908. * src/Exception.h
  9909. (setMsg): buf[256] -> buf[1024]
  9910. * src/CopyDiskWriter.h
  9911. (getFilePath): Made public virtual.
  9912. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9913. (fileExists): New function.
  9914. * src/DownloadEngineFactory.cc
  9915. (newTorrentConsoleEngine): Don't open file here.
  9916. * src/message.h
  9917. (EX_FILE_ALREADY_EXISTS): New definition.
  9918. * src/prefs.h
  9919. (PREF_FOECE_TRUNCATE): New definition.
  9920. * src/HttpResponseCommand.cc
  9921. (handleDefaultEncoding): Added a check whether the file already exists.
  9922. * src/SegmentMan.h
  9923. (fileExists): New function.
  9924. (shouldCancelDownloadForSafety): New function.
  9925. * src/FtpNegotiateCommand.cc
  9926. (recvSize): Added a check whether the file already exists.
  9927. * src/AbstractSingleDiskAdaptor.cc
  9928. (File.h): New include.
  9929. (fileExists): New function.
  9930. * src/AbstractSingleDiskAdaptor.h
  9931. (getFilePath): Removed.
  9932. (fileExists): New function.
  9933. * src/SegmentMan.cc
  9934. (fileExists): New function.
  9935. (shouldCancelDownloadForSafety): New function.
  9936. To fix regression bug in torrent downloading:
  9937. * src/DefaultBtRequestFactory.cc
  9938. (doChokedAction): New function.
  9939. * src/DefaultBtRequestFactory.h
  9940. (doChokedAction): New function.
  9941. * src/DefaultBtMessageDispatcher.cc
  9942. (doChokedAction): Do not delete request if its target is in allowed
  9943. fast set.
  9944. * src/DefaultBtInteractive.cc
  9945. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9946. (sendKeepAlive): Send keep alive message even if the outgoing message
  9947. queue is not empty.
  9948. (decideInterest): Simplified the code.
  9949. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9950. it is already called when BtChokeMessage is received from a peer.
  9951. * src/BtRequestFactory.h
  9952. (doChokedAction): New function.
  9953. To clean up code:
  9954. * src/PeerInteractionCommand.h
  9955. (executeInternal): Added virtual keyword explicitly.
  9956. (prepareForRetry): Added virtual keyword explicitly.
  9957. (prepareForNextPeer): Added virtual keyword explicitly.
  9958. (onAbort): Added virtual keyword explicitly.
  9959. * src/RequestSlot.cc
  9960. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9961. * src/BtPieceMessage.cc
  9962. (doReceivedAction): Added a debug log of piece's bitfield.
  9963. * src/Piece.h
  9964. (getBitfieldLength): New function.
  9965. * src/ByteArrayDiskWriter.cc
  9966. (clear): Added buf = 0 to avoid double free corruption.
  9967. * src/FileAllocator.cc
  9968. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9969. Added cp.reset().
  9970. * src/BitfieldMan.h
  9971. (operator=): Rewritten.
  9972. * src/BitfieldMan.cc
  9973. (BitfieldMan): Initialized bitfield, useBitfield.
  9974. * src/PeerConnection.cc
  9975. (receiveMessage): Added a call to socket->readable() after getting
  9976. message length to avoid possible EOF.
  9977. * src/Util.cc
  9978. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9979. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. To add an ability to pre-allocate file space:
  9981. * src/DirectDiskAdaptor.h: Rewritten.
  9982. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9983. * src/MultiDiskAdaptor.h: Rewritten.
  9984. * src/DefaultPieceStorage.cc
  9985. (MultiDiskWriter.h): Removed include.
  9986. (PreAllocationDiskWriter.h): Removed include.
  9987. (FileAllocationMonitor.h): New include.
  9988. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9989. (initStorage): Rewritten.
  9990. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9991. * src/FileAllocator.h: New class.
  9992. * src/FileAllocator.cc: New class.
  9993. * src/FileAllocationMonitor.h: New class.
  9994. * src/FileAllocationMonitor.cc: New class.
  9995. * src/ConsoleFileAllocationMonitor.h: New class.
  9996. * src/ConsoleFileAllocationMonitor.cc: New class.
  9997. * src/AbstractSingleDiskAdaptor.h: New class.
  9998. * src/AbstractSingleDiskAdaptor.cc: New class.
  9999. * src/DiskAdaptor.h
  10000. (Directory.h): Removed include.
  10001. (DiskWriter.h): Removed include.
  10002. (FileEntry.h): Removed include.
  10003. (diskWriter): Removed.
  10004. (DiskAdaptor): Removed diskWriter.
  10005. (openFile): Made pure virtual.
  10006. (closeFile): Made pure virtual.
  10007. (openExistingFile): Made pure virtual.
  10008. (initAndOpenFile): Made pure virtual.
  10009. (writeData): Made pure virtual.
  10010. (readData): Made pure virtual.
  10011. (sha1Sum): Made pure virtual.
  10012. (getStoreDir): Returns const reference of storeDir.
  10013. (DiskAdaptorHandle): New type definition.
  10014. * src/main.cc
  10015. (ConsoleFileAllocationMonitor.h): New include.
  10016. (showUsage): Added default value description of -s option.
  10017. Added the description of --file-allocation option.
  10018. (main): Set default value of --file-allocation option to 'none'.
  10019. Added --file-allocation command-line option.
  10020. Setup FileAllocationMonitorFactory.
  10021. * src/FtpInitiateConnectionCommand.cc
  10022. (executeInternal): Removed diskWriter related processing, which was
  10023. moved to FtpNegotiationCommand.cc.
  10024. * src/DirectDiskAdaptor.cc
  10025. (getFilePath): Made non-const.
  10026. * src/CopyDiskAdaptor.h
  10027. (DiskAdaptor.h): Removed include.
  10028. (DiskWriter.h): Removed include.
  10029. (AbstractSingleDiskAdaptor.h): New include.
  10030. (getFilePath): Made non-const. Added virtual keyword.
  10031. (CopyDiskAdaptor): Removed diskWriter.
  10032. (getTempFile): Returns const reference.
  10033. (CopyDiskAdaptorHandle): New type definition.
  10034. * src/ByteArrayDiskWriter.cc
  10035. (clear): Simplified.
  10036. (initAndOpenFile): Rewritten.
  10037. (openFile): Call initAndOpenFile()
  10038. * src/MultiDiskAdaptor.cc: Rewritten.
  10039. * src/DownloadEngineFactory.cc
  10040. (FileAllocator.h): New include.
  10041. (FileAllocationMonitor.h): New include.
  10042. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  10043. create DefaultDiskWriter with file allocator.
  10044. * src/DiskWriter.h
  10045. (initAndOpenFile): Added totalLength argument.
  10046. (openFile): Added totalLength argument.
  10047. * src/prefs.h
  10048. (PREF_FILE_ALLOCATION): New definition.
  10049. (V_PREALLOC): New definition.
  10050. (V_NONE): New definition.
  10051. * src/HttpResponseCommand.cc
  10052. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  10053. size.
  10054. * src/FtpNegotiateCommand.cc
  10055. (Util.h): New include.
  10056. (recvSize): Open file here.
  10057. * src/Util.h
  10058. (ullitos): New function.
  10059. * src/CopyDiskWriter.h
  10060. (getFilePath): Made non-const.
  10061. * src/DefaultDiskWriter.h
  10062. (Option.h): New include.
  10063. (totalLength): Removed.
  10064. (DefaultDiskWriter): Removed totalLength.
  10065. (initAndOpenFile): Added totalLength argument.
  10066. (DefaultDiskWriterHandle): New type definition.
  10067. (createNewDiskWriter): New function.
  10068. * src/Util.cc
  10069. (ullitos): New function.
  10070. * src/DefaultDiskWriter.cc
  10071. (message.h): New include.
  10072. (FileAllocator.h): New include.
  10073. (prefs.h): New include.
  10074. (Util.h): New include.
  10075. (DefaultDiskWriter): Removed totalLength.
  10076. (initAndOpenFile): Added file allocation.
  10077. (createNewDiskWriter): New function. Just for temporary solution.
  10078. It will be rewritten later.
  10079. * src/DiskAdaptor.cc
  10080. (DiskAdaptor): Removed diskWriter.
  10081. * src/AbstractDiskWriter.cc
  10082. (LogFactory.h): New include.
  10083. (AbstractDiskWriter): Added fileAllocator, logger.
  10084. (openFile): Added totalLength argument.
  10085. * src/AbstractDiskWriter.h
  10086. (FileAllocator.h): New include.
  10087. (Logger.h): New include.
  10088. (fileAllocator): New variable.
  10089. (logger): New variable.
  10090. (openFile): Added totalLength argument. Added virtual keyword
  10091. explicitly.
  10092. (openExistingFile): Added totalLength argument. Added virtual keyword
  10093. explicitly.
  10094. (closeFile): Added virtual keyword explicitly.
  10095. (sha1Sum): Added virtual keyword explicitly.
  10096. (writeData): Added virtual keyword explicitly.
  10097. (readData): Added virtual keyword explicitly.
  10098. (setFileAllocator): New function.
  10099. * src/DefaultPieceStorage.h
  10100. (FileAllocator.h): New include.
  10101. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10102. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10103. * src/FileProgressMonitor.h: New class.
  10104. To compile aria2 on PC-BSD:
  10105. * src/DefaultBtContext.cc
  10106. (libgen.h): New include.
  10107. To fix memory leak:
  10108. * src/Exception.h
  10109. (~Exception): Delete cause. Fixed memory leak.
  10110. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. Rewritten a portion of bittorrent implementation:
  10112. * src/BtMessageValidator.h: New class.
  10113. * src/BtBitfieldMessageValidator.h: New class.
  10114. * src/BtHandshakeMessageValidator.h: New class.
  10115. * src/BtRequestMessageValidator.h: New class.
  10116. * src/BtSuggestPieceMessageValidator.h: New class.
  10117. * src/BtAllowedFastMessageValidator.h: New class.
  10118. * src/BtRejectMessageValidator.h: New class.
  10119. * src/BtCancelMessageValidator.h: New class.
  10120. * src/BtPieceMessageValidator.h: New class.
  10121. * src/BtHaveMessageValidator.h: New class.
  10122. * src/BtEventListener.h: New class.
  10123. * src/AbstractBtEventListener.h: New class.
  10124. * src/BtEvent.h: New class.
  10125. * src/BtChokingEvent.h: New class.
  10126. * src/BtChokedEvent.h: New class.
  10127. * src/BtCancelSendingPieceEvent.h: New class.
  10128. * src/BtAbortOutstandingRequestEvent.h: New class.
  10129. * src/Randomizer.h: New class.
  10130. * src/SimpleRandomizer.h: New class.
  10131. * src/BtMessage.h: New class.
  10132. * src/AbstractBtMessage.h: New class.
  10133. * src/SimpleBtMessage.h: New class.
  10134. * src/BtHaveMessage.h: New class.
  10135. * src/BtInterestedMessage.h: New class.
  10136. * src/BtAllowedFastMessage.h: New class.
  10137. * src/BtUnchokeMessage.h: New class.
  10138. * src/BtCancelMessage.h: New class.
  10139. * src/BtNotInterestedMessage.h: New class.
  10140. * src/BtChokeMessage.h: New class.
  10141. * src/BtHaveNoneMessage.h: New class.
  10142. * src/BtHandshakeMessage.h: New class.
  10143. * src/BtSuggestPieceMessage.h: New class.
  10144. * src/BtHaveMessage.h: New class.
  10145. * src/BtPieceMessage.h: New class.
  10146. * src/BtHaveAllMessage.h: New class.
  10147. * src/BtKeepAliveMessage.h: New class.
  10148. * src/BtPortMessage.h: New class.
  10149. * src/BtRejectMessage.h: New class.
  10150. * src/BtBitfieldMessage.h: New class.
  10151. * src/BtRequestMessage.h: New class.
  10152. * src/DefaultBtRequestFactory.h: New class.
  10153. * src/DefaultBtMessageReceiver.h: New class.
  10154. * src/BtInteractive.h: New class.
  10155. * src/BtMessageDispatcher.h: New class.
  10156. * src/DefaultBtMessageDispatcher.h: New class.
  10157. * src/DefaultBtInteractive.h: New class.
  10158. * src/BitfieldManFactory.h: New class.
  10159. * src/HandleRegistry.h: New class.
  10160. * src/BtMessageFactory.h: New class.
  10161. * src/BtMessageReceiver.h: New class.
  10162. * src/DefaultBtMessageFactory.h: New class.
  10163. * src/PeerObject.h: New class.
  10164. * src/BtRequestFactory.h: New class.
  10165. * src/SuggestPieceMessage.h: Removed.
  10166. * src/PortMessage.h: Removed.
  10167. * src/SuggestPieceMessage.h: Removed.
  10168. * src/KeepAliveMessage.h: Removed.
  10169. * src/HandshakeMessage.h: Removed.
  10170. * src/PeerInteraction.h: Removed.
  10171. * src/UnchokeMessage.h: Removed.
  10172. * src/PieceMessage.h: Removed.
  10173. * src/RequestMessage.h: Removed.
  10174. * src/InterestedMessage.h: Removed.
  10175. * src/HaveMessage.h: Removed.
  10176. * src/CancelMessage.h: Removed.
  10177. * src/RejectMessage.h: Removed.
  10178. * src/AllowedFastMessage.h: Removed.
  10179. * src/HaveNoneMessage.h: Removed.
  10180. * src/SimplePeerMessage.h: Removed.
  10181. * src/HaveAllMessage.h: Removed.
  10182. * src/BitfieldMessage.h: Removed.
  10183. * src/PeerMessageFactory.h: Removed.
  10184. * src/NotInterestedMessage.h: Removed.
  10185. * src/ChokeMessage.h: Removed.
  10186. * src/PeerMessage.h: Removed.
  10187. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10188. To know root cause of exception:
  10189. * src/Exception.h
  10190. (cause): New variable.
  10191. (Exception): Added a parameter.
  10192. (getMsg): Return const reference to msg.
  10193. (getCause): New function.
  10194. * src/DlRetryEx.h
  10195. (DlRetryEx): Added a parameter 'cause'.
  10196. Added an overloaded constructor.
  10197. (DlAbortEx): Added a parameter 'cause'.
  10198. Added an overloaded constructor.
  10199. * src/SimpleLogger.cc
  10200. (writeLog): Log nested exception messages recursively.
  10201. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10202. * src/DefaultBtProgressInfoFile.cc
  10203. (load): Fixed memory leak when the infohash doesn't match.
  10204. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10205. * src/DefaultPeerStorage.cc
  10206. (calculateStat): Simplified the code by combining 2 loops into 1.
  10207. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10208. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10209. for BitTorrent download:
  10210. * src/PeerAbstractCommand.cc
  10211. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10212. * src/main.cc:
  10213. (timeoutSpecified): Removed.
  10214. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10215. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10216. * src/TorrentRequestInfo.cc
  10217. (timeoutSpecified): Removed.
  10218. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10219. timeout value.
  10220. * src/prefs.h
  10221. (PREF_BT_TIMEOUT): New definition.
  10222. Delete unused variables:
  10223. * src/TorrentRequestInfo.cc
  10224. (requestInfo): Removed.
  10225. Move setSignalHander to Util::setGlobalSignalHandler:
  10226. * src/TorrentRequestInfo.cc:
  10227. setSignalHander -> Util::setGlobalSignalHandler
  10228. * src/main.cc
  10229. (setSignalHander): Removed.
  10230. (main): setSignalHander -> Util::setGlobalSignalHandler
  10231. * src/Util.h
  10232. (setGlobalSignalHandler): New function.
  10233. * src/Util.cc
  10234. (setGlobalSignalHandler): New function.
  10235. * src/UrlRequestInfo.cc:
  10236. setSignalHander -> Util::setGlobalSignalHandler
  10237. Reset peer status in order to exit gracefully:
  10238. * src/PeerAbstractCommand.cc
  10239. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10240. To fix the bug that causes the number of bytes uploaded is not saved
  10241. to .aria2 file:
  10242. * src/DefaultPeerStorage.h
  10243. (removedPeerSessionDownloadLength): New variable.
  10244. (removedPeerSessionUploadLength): New variable.
  10245. * src/DefaultPeerStorage.cc
  10246. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10247. removedPeerSessionUploadLength(0).
  10248. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10249. through all peers, and then add removedPeerSessionDownloadLength(
  10250. removedPeerSessionUploadLength) to it.
  10251. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10252. (to) the peer to removedPeerSessionDownloadLength
  10253. (removedPeerSessionUploadLength).
  10254. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10255. To add Metalink location option:
  10256. * src/MetalinkRequestInfo.cc
  10257. (execute): Call MetalinkEntry::setLocationPreference()
  10258. * src/main.cc
  10259. (showUsage): Added the help message for --metalink-location option.
  10260. (main): Added --metalink-location option.
  10261. * src/prefs.h
  10262. (PREF_METALINK_LOCATION): New definition.
  10263. * src/MetalinkEntry.cc
  10264. (AddLocationPreference): New function object.
  10265. (setLocationPreference): New function.
  10266. * src/Xml2MetalinkProcessor.cc
  10267. (getResource): Set location attribute to MetalinkResource
  10268. To show URLs to download
  10269. * src/UrlRequestInfo.h
  10270. (printUrls): New function.
  10271. To add multiple <file> Metalink support:
  10272. * src/MetalinkEntry.h
  10273. (MetalinkResources): Removed.
  10274. (setLocationPreference): New function.
  10275. (MetalinkEntryHandle): New type definition.
  10276. (MetalinkEntries): New type definition.
  10277. * src/Xml2MetalinkProcessor.h
  10278. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10279. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10280. (parseFile): Metalinker* -> MetalinkerHandle
  10281. * src/UrlRequestInfo.h
  10282. (execute): RequestInfo* -> RequestInfos
  10283. * src/MetalinkRequestInfo.cc
  10284. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10285. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10286. (execute): RequestInfo* -> RequestInfos
  10287. Added multiple <file> support. Print filename when it is queued.
  10288. * src/MetalinkRequestInfo.h
  10289. (execute): RequestInfo* -> RequestInfos
  10290. (getDownloadEngine): Removed.
  10291. * src/RequestInfo.h
  10292. (RequestInfoHandle): New type definition.
  10293. (RequestInfos): New type definition.
  10294. (execute): RequestInfo* -> RequestInfos
  10295. (getDownloadEngine): Removed.
  10296. * src/MetalinkResource.h
  10297. (MetalinkResourceHandle): New type definition.
  10298. (MetalinkResources): New type definition.
  10299. * src/MetalinkEntry.cc
  10300. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10301. because the element is now of type MetalinkResourceHandle.
  10302. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10303. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10304. (dropUnsupportedResource): Removed the deletion of the elements of
  10305. resources because the element is now of type MetalinkResourceHandle.
  10306. * src/Xml2MetalinkProcessor.cc
  10307. (parseFile): Metalinker* -> MetalinkerHandle
  10308. MetalinkEntry* -> MetalinkEntryHandle
  10309. Removed try-catch block.
  10310. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10311. MetalinkResource* -> MetalinkResourceHandle
  10312. Removed try-catch block.
  10313. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10314. Free result by using xmlXPathFreeObject()
  10315. * src/Metalinker.cc
  10316. (~Metalinker): Removed the deletion of entries.
  10317. MetalinkEntry* -> MetalinkEntryHandle
  10318. (queryEntry): Add multiple <file> Metalink support.
  10319. * src/Metalinker.h
  10320. (MetalinkEntries): Removed.
  10321. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10322. * src/MetalinkProcessor.h
  10323. (parseFile): Metalinker* -> MetalinkerHandle
  10324. Bug fixes:
  10325. * src/PeerChokeCommand.cc
  10326. (execute): cat01->cat02
  10327. * src/DefaultPieceStorage.cc
  10328. (DefaultPieceStorage): Added diskAdaptor(0)
  10329. * src/TrackerWatcherComand.cc:
  10330. (execute): Use btAnnounce->noMoreAnnounce()
  10331. to determin whether the function returns true or not.
  10332. * src/TrackerUpdateCommand.cc:
  10333. (execute): Use btAnnounce->noMoreAnnounce()
  10334. to determin whether the function returns true or not.
  10335. * src/FtpConnection.cc
  10336. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10337. This is the fix of the busy loop bug.
  10338. * src/DownloadCommand.cc
  10339. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10340. cached PeerStat.
  10341. The value of "name" entry in torrent file is now set by
  10342. *DiskAdaptor::setTopDir(...) methods.
  10343. * src/MultiDiskAdaptor.h
  10344. (topDir): New variable.
  10345. (setTopDir): New function.
  10346. (getTopDir): New function.
  10347. * src/MultiDiskAdaptor.cc
  10348. (getFilePath): Concat storDir, "/" and topDir.
  10349. (mkdir): Use getFilePath() to get the directory path for output.
  10350. * src/DefaultPieceStorage.cc
  10351. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10352. CopyDiskAdaptor.
  10353. * src/CopyDiskAdaptor.h
  10354. (topDir): New variable.
  10355. (setTopDir): New function.
  10356. (getTopDir): New function.
  10357. * src/CopyDiskAdaptor.cc
  10358. (fixFilename): Updated.
  10359. Misc
  10360. * src/UrlRequestInfo.h
  10361. (e): Removed.
  10362. (UrlRequestInfo): Removed e.
  10363. (getDownloadEngine): Removed.
  10364. * src/UrlRequestInfo.cc
  10365. (handler): Rewritten.
  10366. (printUrls): New function.
  10367. (execute): Call printUrls().
  10368. * src/HandshakeMessage.cc
  10369. (check): peerinteraction->getBtContext() -> btContext
  10370. * src/PeerInteraction.h
  10371. (getBtContext): Removed.
  10372. * src/TorrentRequestInfo.h
  10373. (execute): RequestInfo* -> RequestInfos
  10374. (getDownloadEngine): Removed.
  10375. * src/TorrentRequestInfo.cc
  10376. (haltRequested): Removed.
  10377. (btHaltRequested): New variable.
  10378. (torrentHandler): haltRequested -> btHaltRequested
  10379. (execute): RequestInfo* -> RequestInfos
  10380. * src/TorrentConsoleDownloadEngine.cc
  10381. (afterEachIteration): haltRequested -> btHaltRequested.
  10382. * src/ConsoleDownloadEngine.h
  10383. (initStatistics): Added virtual.
  10384. (calculateStatistics): Added virtual.
  10385. (onEndOfRun): Added virtual.
  10386. (afterEachIteration): Added virtual.
  10387. * src/ConsoleDownloadEngine.cc
  10388. (haltRequested): New variable.
  10389. (afterEachIteration): New function.
  10390. * src/main.cc
  10391. (requestInfo): Removed.
  10392. * src/SegmentMan.cc
  10393. (findSlowerSegmentEntry): Refactored.
  10394. * Release 0.9.0
  10395. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10397. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10398. * src/TorrentMan.h: Removed.
  10399. * src/TorrentMan.cc: Removed.
  10400. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10401. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10402. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10403. * src/PeerAbstractCommand.cc: Use btRuntime.
  10404. * src/BtContextAwareCommand.h: New class.
  10405. * src/FileEntry.h: Added accessor methods for following variables.
  10406. (path): Made private.
  10407. (length): Made private.
  10408. (offset): Made private.
  10409. (extracted): Made private.
  10410. (requested): Made private.
  10411. (FileEntries): New definition.
  10412. (FileEntryHandle): New definition.
  10413. * src/FileEntry.cc: New file.
  10414. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10415. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10416. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10417. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10418. * src/PieceStorage.h: New file.
  10419. * src/PeerInteractionCommand.h: Use btContext.
  10420. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10421. btRuntime.
  10422. * src/DefaultBtProgressInfoFile.h: New file.
  10423. * src/DefaultBtProgressInfoFile.cc: New file.
  10424. * src/File.cc
  10425. (Util.h): New include.
  10426. (mkdirs): New function.
  10427. * src/MultiDiskAdaptor.h
  10428. (mkdir): New function.
  10429. * src/PeerListProcessor.h
  10430. (Peers): Removed.
  10431. * src/PeerInteraction.h
  10432. (torrentMan): Removed.
  10433. (btContext): New variable.
  10434. (peerStorage): New variable.
  10435. (pieceStorage): New variable.
  10436. (btAnnounce): New variable.
  10437. (getTorrentMan): Removed.
  10438. (getBtContext): New function.
  10439. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10440. btAnnounce.
  10441. * src/HandshakeMessage.h
  10442. (TorrentMan.h): Removed.
  10443. * src/HandshakeMessage.cc: Use btContext.
  10444. * src/DefaultBtAnnounce.cc: New file.
  10445. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10446. * src/DefaultPieceStorage.cc: New file.
  10447. * src/DefaultBtContext.h: New file.
  10448. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10449. Use the accessor methods of FileEntry.
  10450. * src/CookieBox.cc: Updated to use Util::slice().
  10451. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10452. * src/common.h (SharedHandle.h): New include.
  10453. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10454. pieceStorage.
  10455. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10456. * src/DiskAdaptor.h
  10457. (topDir): Removed.
  10458. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10459. (setTopDir): Removed.
  10460. (getTopDir): Removed.
  10461. * src/BtContext.h: New file.
  10462. * src/DefaultPeerStorage.h: New file.
  10463. * src/PieceMessage.h (TorrentMan.h): Removed.
  10464. * src/RequestMessage.h (TorrentMan.h): Removed.
  10465. * src/TorrentDownloadEngine.h
  10466. (uploadLength): New variable.
  10467. (btContext): New variable.
  10468. (btRuntime): New variable.
  10469. (pieceStorage): New variable.
  10470. (peerStorage): New variable.
  10471. (btAnnounce): New variable.
  10472. (btProgressInfoFile): New variable.
  10473. (torrentMan): Removed.
  10474. (setBtContext): New function.
  10475. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10476. peerStorage, btAnnounce, btProgressInfoFile.
  10477. * src/Piece.h
  10478. (toString): New function.
  10479. (Pieces): New type definition.
  10480. * src/Peer.h
  10481. (active): New variable.
  10482. (Peer): Added active.
  10483. (activate): Set active to true.
  10484. (deactivate): Set active to false.
  10485. (isActive): New function.
  10486. (Peers): New type definition.
  10487. * src/DirectDiskAdaptor.cc
  10488. (getFilePath): Use the accessor methods of FileEntry.
  10489. * src/TorrentConsoleDownloadEngine.h
  10490. (afterEachIteration): New function.
  10491. * src/TorrentConsoleDownloadEngine.cc
  10492. (haltRequested): New variable.
  10493. (sendStatistics): Use pieceStorage, btRuntime.
  10494. (afterEachIteration): New function.
  10495. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10496. * src/Directry.h
  10497. (Directory): New function.
  10498. (DirectoryHandle): New type definition.
  10499. * src/BtProgressInfoFile.h: New file.
  10500. * src/RequestMessage.cc: Use pieceStorage.
  10501. * src/BtRuntime.h: New file.
  10502. * src/DefaultBtContext.cc: New file.
  10503. * src/BitfieldMan.h
  10504. (getCompletedLength): New function(private).
  10505. (getCompletedLength): New function.
  10506. (getFilteredCompletedLength): New function.
  10507. * src/BitfieldMan.h
  10508. (getCompletedLength): New function(private).
  10509. (getCompletedLength): New function.
  10510. (getFilteredCompletedLength): New function.
  10511. * src/MultiDiskAdaptor.cc
  10512. (mkdir): New function.
  10513. (openFile): Call mkdir().
  10514. (initAndOpenFile): Call mkdir().
  10515. * src/CancelMessage.h
  10516. (TorrentMan.h): Removed.
  10517. * src/RejectMessage.h
  10518. (TorrentMan.h): Removed.
  10519. * src/DownloadEngineFactory.cc
  10520. (DefaultPieceStorage.h): New include.
  10521. (DefaultPeerStorage.h): New include.
  10522. (DefaultBtAnnounce.h): New include.
  10523. (DefaultBtProgressInfoFile.h): New include.
  10524. (newTorrentConsoleEngine): Rewritten.
  10525. * src/ShareRatioSeedCriteria.h
  10526. (torrentMan): Removed.
  10527. (btContext): New variable.
  10528. (peerStorage): New variable.
  10529. (btRuntime): New variable.
  10530. (evaluate): Use btContext, btRuntime, peerStorage.
  10531. * src/AnnounceTier.h: New file.
  10532. * src/BtAnnounce.h: New file.
  10533. * src/BtRegistry.h: New file.
  10534. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10535. * src/PeerConnection.h (TorrentMan.h): Removed.
  10536. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10537. * src/Util.h
  10538. (slice): Added an argument.
  10539. * src/Util.cc
  10540. (slice): Added an argument to control whether trim is made or not.
  10541. * src/PeerStorage.h: New file.
  10542. * src/BtRegistry.cc: New file.
  10543. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10544. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10545. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10546. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10547. * src/TorrentRequestInfo.h
  10548. (e): Removed.
  10549. (showFileEntry): Added an argument.
  10550. (getDownloadEngine): Return 0.
  10551. * src/DefaultBtAnnounce.h: New file.
  10552. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10553. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10554. * src/PeerMessageFactory.h
  10555. (btContext): New variable.
  10556. (pieceStorage): New variable.
  10557. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10558. btAnnounce.
  10559. * src/DiskAdaptor.cc
  10560. (DiskAdaptor): Removed topDir.
  10561. (~DiskAdaptor): Removed topDir.
  10562. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10563. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10564. * src/File.h (mkdirs): New function.
  10565. * src/DefaultPeerStorage): New file.
  10566. * src/DownloadEngineFactory.h
  10567. (newTorrentConsoleEngine): Use btContext.
  10568. * src/BtContextAwareCommand.cc: New file.
  10569. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10570. * src/PeerMessage.h
  10571. (btContext): New variable.
  10572. (peerStorage): New variable.
  10573. (pieceStorage): New variable.
  10574. (setBtContext): New function.
  10575. * src/Directry.cc
  10576. (Directory): New function.
  10577. (createDir): Do nothing if name.size() == 0.
  10578. * src/AnnounceList.h
  10579. (AnnounceTier): Removed.
  10580. (AnnounceTiers): Removed.
  10581. * src/DefaultPieceStorage.h: New file.
  10582. * src/Piece.cc (toString): New function.
  10583. To fix typo:
  10584. * src/main.cc (showVersion): Fixed typo.
  10585. To fix compile warning:
  10586. * src/DelegatingPeerListProcessor.cc
  10587. (canHandle): Added "return false".
  10588. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10589. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10590. make the process of announce request testable.
  10591. * src/TrackerWatcherCommand.h
  10592. (TimeA2.h): Removed.
  10593. (interval): Removed.
  10594. (checkPoint): Removed.
  10595. (createRequestCommand): Added an argument 'url'.
  10596. (TrackerWatherCommand): Removed interval.
  10597. (createCommand): New function.
  10598. * src/DownloadEngineFactory.cc
  10599. (newTorrentConsoleEngine): Updated according to the changes in
  10600. TrackerWatherCommand.
  10601. * src/TorrentMan.cc
  10602. (DelegatingPeerListProcessor.h): New includes.
  10603. (TorrentMan): Added the initialization of announceInterval.
  10604. (isStoppedAnnounceReady): New function.
  10605. (isCompletedAnnounceReady): New function.
  10606. (isDefaultAnnounceReady): New function.
  10607. (isAnnounceReady): New function.
  10608. (getAnnounceUrl): New function.
  10609. (announceStart): New function.
  10610. (announceFailure): New function.
  10611. (announceSuccess): New function.
  10612. (isAllAnnounceFailed): New function.
  10613. (resetAnnounce): New function.
  10614. (processAnnounceResponse): New function.
  10615. (needMorePeerConnection): New function.
  10616. (noMoreAnnounce): New function.
  10617. * src/TrackerUpdateCommand.h
  10618. (getTrackerResponse): int->size_t
  10619. * src/TorrentMan.h
  10620. (isStoppedAnnounceReady): New function.
  10621. (isCompletedAnnounceReady): New function.
  10622. (isDefaultAnnounceReady): New function.
  10623. (announceInterval): New variable.
  10624. (isAnnounceReady): New function.
  10625. (getAnnounceUrl): New function.
  10626. (announceStart): New function.
  10627. (announceFailure): New function.
  10628. (announceSuccess): New function.
  10629. (isAllAnnounceFailed): New function.
  10630. (resetAnnounce): New function.
  10631. (processAnnounceResponse): New function.
  10632. (needMorePeerConnection): New function.
  10633. (noMoreAnnounce): New function.
  10634. * src/TrackerWatcherCommand.cc
  10635. (TrackerWatherCommand): Removed interval and checkPoint.
  10636. (execute): Rewritten.
  10637. (createCommand): New function.
  10638. (createRequestCommand): Rewritten.
  10639. * src/TrackerUpdateCommand.cc
  10640. (MetaFileUtil.h): Removed.
  10641. (DelegatingPeerListProcessor.h): Removed.
  10642. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10643. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10644. Request -> RequestHandle:
  10645. * src/HttpResponseCommand.h: Request->RequestHandle
  10646. * src/AbstractCommand.cc: Request->RequestHandle
  10647. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10648. * src/HttpRequestCommand.cc: Request->RequestHandle
  10649. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10650. * src/AbstractCommand.h: Request->RequestHandle
  10651. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10652. * src/HttpResponseCommand.cc: Request->RequestHandle
  10653. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10654. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10655. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10656. * src/HttpConnection.h: Request->RequestHandle
  10657. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10658. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10659. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10660. * src/DownloadCommand.h: Request->RequestHandle
  10661. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10662. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10663. * src/HttpRequestCommand.h: Request->RequestHandle
  10664. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10665. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10666. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10667. * src/HttpDownloadCommand.h: Request->RequestHandle
  10668. * src/FtpConnection.cc: Request->RequestHandle
  10669. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10670. * src/UrlRequestInfo.cc: Request->RequestHandle
  10671. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10672. * src/HttpConnection.h: Request->RequestHandle
  10673. * src/DownloadCommand.cc: Request->RequestHandle
  10674. * src/FtpConnection.h: Request->RequestHandle
  10675. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10676. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10677. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10678. * src/Request.h
  10679. (SharedHandle.h): New include.
  10680. (RequestHandle): New type definition.
  10681. (Requests): Redefined.
  10682. To add MULTITRACKER support:
  10683. * src/TrackerWatcherCommand.h
  10684. (createRequestCommand): New function.
  10685. * src/DownloadEngineFactory.cc
  10686. (newTorrentConsoleEngine): Removed req.
  10687. * src/prefs.h
  10688. (PREF_TRACKER_MAX_TRIES): New definition.
  10689. * src/TorrentMan.cc
  10690. (TorrentMan): Removed req. Added trackerNumTry.
  10691. (~TorrentMan): Removed req.
  10692. (setupInternal1): Added announceList.
  10693. * src/TorrentRequestInfo.cc
  10694. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10695. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10696. * src/main.cc
  10697. (main): Added PREF_TRACKER_MAX_TRIES.
  10698. * src/TorrentMan.h
  10699. (Request.h): Removed.
  10700. (AnnounceList.h): New include.
  10701. (trackerNumTry): New variable.
  10702. (req): Removed.
  10703. (announceList): New variable.
  10704. * src/TrackerWatcherCommand.cc
  10705. (execute): Rewritten.
  10706. (createRequestCommand): New function.
  10707. * src/TrackerUpdateCommand.cc
  10708. (execute): Updated with the use of AnnounceList.
  10709. * src/AnnounceList.cc: New class.
  10710. * src/AnnounceList.h: New class.
  10711. To fix typo:
  10712. * src/prefs.h
  10713. (PREF_MAX_TRIES): max_try->max_tries
  10714. To not to decode "+" as space in URL decode:
  10715. * src/Util.cc
  10716. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10717. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. To add timeout to async name resolution:
  10719. * src/AbstractCommand.h
  10720. (nameResolveFinished): New function. This is not elegant way. It needs
  10721. to be more refined.
  10722. (nameResolverCheck): New variable.
  10723. * src/AbstractCommand.cc
  10724. (AbstractCommand): Added nameResolverCheck.
  10725. (execute): Added the check whether the name resolution has finished.
  10726. (setNameResolverCheck): Set nameResolverCheck to true.
  10727. (disableNameResolverCheck): Set nameResolverCheck to false.
  10728. (nameResolverFinished): New function.
  10729. * src/FtpInitiateConnectionCommand.h
  10730. (nameResolverFinished): New function.
  10731. * src/FtpInitiateConnectionCommand.cc
  10732. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10733. * src/HttpInitiateConnectionCommand.h
  10734. (nameResolverFinished): New function.
  10735. * src/HttpInitiateConnectionCommand.cc
  10736. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10737. * src/prefs.h
  10738. (PREF_DNS_TIMEOUT): New definition.
  10739. * src/main.cc
  10740. (main): Added PREF_DNS_TIMEOUT.
  10741. To add the support for a non-compact response from a tracker:
  10742. * src/PeerListProcessor.h: New class.
  10743. * src/DefaultPeerListProcessor.h: New class.
  10744. * src/DefaultPeerListProcessor.cc: New class.
  10745. * src/CompactPeerListProcessor.h: New class.
  10746. * src/CompactPeerListProcessor.cc: New class.
  10747. * src/DelegatingPeerListProcessor.h: New class.
  10748. * src/DelegatingPeerListProcessor.cc: New class.
  10749. * src/TorrentMan.cc
  10750. (addPeer): New function(overload).
  10751. (addPeer): Delete unused peers only when new peer is added.
  10752. * src/TorrentMan.h
  10753. (PeerListProcessor.h): Included.
  10754. (Peers): Removed.
  10755. (addPeer): New function(overload).
  10756. * src/TrackerUpdateCommand.cc
  10757. (netinet/in.h): Removed.
  10758. (DelegatingPeerListProcessor.h): Included.
  10759. (execute): Updated to use DelegatingPeerListProcessor.
  10760. To fix the memory leak in TorrentMan::peers:
  10761. * src/PeerAbstractCommand.cc
  10762. (onAbort): Added peer->resetStatus().
  10763. * src/Peer.h
  10764. (resetStatus): Made public.
  10765. To improve the precision of the speed calculation:
  10766. * src/SpeedCalc.h
  10767. (nextInterval): New variable.
  10768. * src/SpeedCalc.cc
  10769. (reset): Added nextInterval.
  10770. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10771. (changeSw): Set nextInterval to 15 seconds relative to the current
  10772. instant time.
  10773. * src/main.cc
  10774. (showVersion): Updated.
  10775. (showUsage): Updated.
  10776. * Release 0.8.1
  10777. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10778. * src/main.cc
  10779. (showUsage): Commented out --min-segment-size option.
  10780. (main): Commented out --min-segment-size option.
  10781. * Release 0.8.0
  10782. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10783. * src/*.{h,cc}:
  10784. Added an exception to the license which allows linking with OpenSSL.
  10785. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10786. * src/AbstractCommand.cc
  10787. (execute): Check whether the download has finished before checking
  10788. socket status.
  10789. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10790. Do not exit even if no segment is available.
  10791. * src/prefs.h
  10792. (PREF_STARTUP_IDLE_TIME): New definition.
  10793. * src/PeerInteractionCommand.cc
  10794. (executeInternal): Removed max speed limit. Because it performs bad.
  10795. (receiveMessages): Added max speed limit. This was better than above,
  10796. but still a little bit to be desired. Sometimes the download speed
  10797. became much faster than I specified.
  10798. * src/SpeedCalc.h
  10799. (start): New variable.
  10800. (accumulatedLength): New variable.
  10801. (getAvgSpeed): New function.
  10802. * src/SpeedCalc.cc
  10803. (reset): Added start, accumulatedLength.
  10804. (update): Added calculation of an average speed.
  10805. (getAvgSpeed): New function.
  10806. * src/DownloadCommand.h
  10807. (sw): Removed.
  10808. * src/main.cc
  10809. (main): Added PREF_STARTUP_IDLE_TIME.
  10810. * src/PeerStat.h
  10811. (STATUS): Added REQUEST_IDLE.
  10812. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10813. (getAvgDownloadSpeed): New function
  10814. (requestIdle): New function.
  10815. * src/SegmentMan.h
  10816. (SegmentEntryHandle): New type definition.
  10817. (SegmentEntries): Now holds SegmentEntryHandle.
  10818. (findSlowerSegmentEntry): New funtion.
  10819. * src/SegmentMan.cc
  10820. (save): Updated according to the changes in SegmentEntries.
  10821. (read): Updated according to the changes in SegmentEntries.
  10822. (FindSegmentEntryByIndex): Updated according to the changes in
  10823. SegmentEntries.
  10824. (FindSegmentEntryByCuid): Updated according to the changes in
  10825. SegmentEntries.
  10826. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10827. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10828. Renamed uitr as itr.
  10829. (findSlowerSegmentEntry): New function.
  10830. (getSegment): Updated according to the changes in SegmentEntries.
  10831. Added the feature that cancels the segment with slow server and fast
  10832. one takes it over.
  10833. (cancelSegment): Updated according to the changes in SegmentEntries.
  10834. (getDownloadLength): Updated according to the changes in
  10835. SegmentEntries.
  10836. (init): Assigned 0 to bitfield after deleting it.
  10837. * src/DownloadCommand.cc
  10838. (STARTUP_IDLE_TIME): Removed.
  10839. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10840. * src/PeerChokeCommand.cc
  10841. (optUnchokingPeer): Updated according to the changes in Peer.
  10842. (ResetDelta): Removed.
  10843. (UploadFaster): Updated according to the changes in Peer.
  10844. (DownloadFaster): Updated according to the changes in Peer.
  10845. (execute): I clarify the meaning of "upload" and "download" here.
  10846. "upload" means the transfer from localhost to remote host.
  10847. "download" means the transfer from remote host to localhost.
  10848. Based on this rule, I swapped orderByUploadRate and
  10849. orderByDownloadRate.
  10850. * src/PeerInteractionCommand.cc
  10851. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10852. (executeInternal): Removed the argument of
  10853. peerInteraction->sendMessages().
  10854. (receiveMessages): Rewritten download speed limit.
  10855. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10856. * src/HttpResponseCommand.cc
  10857. (handleDefaultEncoding): If file size is unknown in torrent request,
  10858. do not call segmentMan->initBitfield() here.
  10859. Disabled persistent connection feature in torrent request.
  10860. * src/UrlRequestInfo.h
  10861. (UrlRequestInfo): Removed const qualifier from option.
  10862. * src/TorrentMan.h
  10863. (TransferStat): New class.
  10864. (deltaDownloadLength): Removed.
  10865. (deltaUploadLength): Removed.
  10866. (addDeltaDownloadLength): Removed.
  10867. (getDeltaDownloadLength): Removed.
  10868. (resetDeltaDownloadLength): Removed.
  10869. (addDeltaUploadLength): Removed.
  10870. (getDeltaUploadLength): Removed.
  10871. (resetDeltaUploadLength): Removed.
  10872. (addActivePeer): Added peer->activate().
  10873. (deleteActivePeer): Added peer->deactivate().
  10874. (calculateStat): New function.
  10875. * src/TorrentMan.cc
  10876. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10877. (calculateStat): New function.
  10878. * src/PeerInteraction.h
  10879. (uploadLimit): Removed.
  10880. (option): New variable.
  10881. (setUploadLimit): Removed.
  10882. (getUploadSpeed): Removed.
  10883. (sendMessages): Removed the argument "currentUploadSpeed".
  10884. * src/PeerInteraction.cc
  10885. (prefs.h): Included.
  10886. (PeerInteraction): Removed uploadLimit. Added option.
  10887. (sendMessages): Rewritten upload speed limit.
  10888. (sendHandshake): Removed the argument from sendMessages().
  10889. (sendBitfield): Removed the argument from sendMessages().
  10890. * src/PeerAbstractCommand.cc
  10891. (execute): Commented out the portion of upload limit.
  10892. (onAbort): Removed peer->resetStatus().
  10893. * src/TorrentRequestInfo.cc
  10894. (timeoutSpecified): Declared extern.
  10895. (execute): Set timeout to 180 if timeout is not specified by.
  10896. command-line.
  10897. * src/PieceMessage.cc
  10898. (receivedAction): Added peer->updateDownloadLength().
  10899. Removed peer->addPeerUpload().
  10900. Removed torrentMan->addDeltaDownloadLength().
  10901. (send): Added peer->updateUploadLength().
  10902. Removed peer->addPeerDownload().
  10903. Removed torrentMan->addDeltaUploadLength().
  10904. * src/main.cc
  10905. (timeoutSpecified): New variable.
  10906. (main): Set timeoutSpecified to false.
  10907. If the command-line option "--upload-limit" is specified, then
  10908. timeoutSpecified is set to true. This option will remain in the next
  10909. release, but be deprecated in the future release.
  10910. * src/TorrentRequestInfo.h
  10911. (TorrentRequestInfo): Removed const qualifier from op.
  10912. * src/PeerStat.h
  10913. (uploadSpeed): New variable.
  10914. (PeerStat): Added default value to cuid.
  10915. (calculateUploadSpeed): New function.
  10916. (updateUploadLength): New function.
  10917. (getMaxUploadSpeed): New function.
  10918. (getAvgUploadSpeed): New function.
  10919. (reset): Added uploadSpeed. Set status to IDLE.
  10920. * src/TorrentDownloadEngine.h
  10921. (cp): Declared as Time.
  10922. (sessionDownloadLengthArray): Removed.
  10923. (sessionUploadLengthArray): Removed.
  10924. (currentCp): Removed.
  10925. (lastCalcStat): New variable
  10926. (lastElapsed): Removed.
  10927. (sessionDownloadLength): Removed.
  10928. (calculateStat): New function.
  10929. * src/TorrentDownloadEngine.cc
  10930. (initStatistics): Removed lastElapsed, cp[],
  10931. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10932. currentCp, sessionDownloadLength.
  10933. Added cp.reset() and lastCalcStat.reset().
  10934. (calculateSpeed): Changed the name of the argument.
  10935. (calculateStatistics): Rewritten.
  10936. (calculateStat): New function.
  10937. * src/Peer.h
  10938. (PeerStat.h): Included.
  10939. (peerUpload): Removed.
  10940. (peerDownload): Removed.
  10941. (peerStat): New variable.
  10942. (sessionUploadLength): New variable.
  10943. (sessionDownloadLength): New variable.
  10944. (deltaUpload): Removed.
  10945. (deltaDownload): Removed.
  10946. (resetStatus): Made private.
  10947. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10948. Removed peerUpload, peerDownload.
  10949. (updateUploadLength): New function.
  10950. (addDeltaUpload): Removed.
  10951. (updateDownloadLength): New function.
  10952. (resetDeltaUpload): Removed.
  10953. (getDeltaUpload): Removed.
  10954. (addDeltaDownload): Removed.
  10955. (calculateUploadSpeed): New function.
  10956. (resetDeltaDownload): Removed.
  10957. (getDeltaDownload): Removed.
  10958. (calculateDownloadSpeed): New function.
  10959. (getSessionUploadLength): New function.
  10960. (getSessionDownloadLength): New function.
  10961. (activate): New function.
  10962. (deactivate): New function.
  10963. (addPeerUpload): Removed.
  10964. (setPeerUpload): Removed.
  10965. (getPeerUpload): Removed.
  10966. (addPeerDownload): Removed.
  10967. (setPeerDownload): Removed.
  10968. (getPeerDownload): Removed.
  10969. * src/Peer.cc
  10970. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10971. * src/MetalinkRequestInfo.h
  10972. (MetalinkRequestInfo): Removed const qualifier from op.
  10973. * src/RequestInfo.h
  10974. (op): Removed const qualifier.
  10975. (RequestInfo): Removed const qualifier from op.
  10976. * src/prefs.h
  10977. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10978. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10979. * src/PeerInteractionCommand.cc
  10980. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10981. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10982. * src/PeerInteraction.cc
  10983. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10984. * src/main.cc
  10985. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10986. Added the description of "--max-download-limit" option.
  10987. Removed the description of "--upload-limit" option.
  10988. Added the description of "--max-upload-limit" option.
  10989. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10990. Added "--max-download-limit" option and "--max-upload-limit" option.
  10991. Added the warning message if "--upload-limit" option is used.
  10992. * src/DownloadCommand.cc
  10993. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10994. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. To rewrite segment download mechanism for HTTP/FTP download.
  10996. Use BitfieldMan to manage segment download.
  10997. * src/HttpResponseCommand.h
  10998. (executeInternal): Pass the reference of segment.
  10999. * src/AbstractCommand.cc
  11000. (prepareForRetry): Call segmentMan->cancelSegment here.
  11001. (onAbort): Call segmentMan->cancelSegment here.
  11002. * src/HttpDownloadCommand.cc
  11003. (prepareForNextSegment): New function.
  11004. * src/DownloadEngineFactory.cc
  11005. (newConsoleEngine): Removed splitter.
  11006. (newTorrentConsoleEngine): Removed splitter.
  11007. * src/Request.h
  11008. (segment): Renamed from seg.
  11009. * src/FtpInitiateConnectionCommand.h
  11010. (executeInternal): Pass the reference of segment.
  11011. * src/AbstractCommand.h
  11012. (executeInternal): Pass the reference of segment.
  11013. * src/pref.h
  11014. (PREF_SEGMENT_SIZE): New definition.
  11015. * src/HttpProxyRequestCommand.h
  11016. (executeInternal): Pass the reference of segment.
  11017. * src/HttpResponseCommand.cc
  11018. (checkResponse): Allowed status 206 when a request range starts 0.
  11019. (handleDefaultEncoding): Rewritten the code related to Segment.
  11020. (handleOtherEncoding): Rewritten the code related to Segment.
  11021. * src/SegmentMan.h
  11022. (SegmentEntry): New class.
  11023. (SegmentEntries): New type definition.
  11024. (bitfield): New variable.
  11025. (usedSegmentEntries): New variable.
  11026. (onNullBitfield): New function.
  11027. (checkoutSegment): New function.
  11028. (segments): Removed.
  11029. (splitter): Removed.
  11030. (unregisterId): Removed.
  11031. (getSegment): New function(overload)
  11032. (getDownloadedSize): Removed.
  11033. (cancelSegment): New function.
  11034. (completeSegment): New function.
  11035. (initBitfield): New function.
  11036. (hasSegment): New function.
  11037. (getDownloadLength): New function.
  11038. * src/BitfieldMan.h
  11039. (getStartIndex): New function.
  11040. (getEndIndex): New function.
  11041. (getMissingUnusedIndex): New function(overload).
  11042. (getSparseMissingUnusedIndex): New function.
  11043. * src/BitfieldMan.cc
  11044. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  11045. (getMissingUnusedIndex): New function(overload).
  11046. (Range): New class.
  11047. (getStartIndex): New function.
  11048. (getEndIndex): New function.
  11049. (getSparseMissingUnusedIndex): New function.
  11050. (isBitSetInternal): Return false if the given index is less than 0.
  11051. * src/HttpInitiateConnectionCommand.h
  11052. (executeInternal): Pass the reference of segment.
  11053. * src/FtpNegotiateCommand.h
  11054. (executeInternal): Pass the reference of segment.
  11055. * src/FtpNegotiateCommand.cc
  11056. (recvSize): Initialize bitfield here.
  11057. * src/FtpTunnelResponseCommand.h
  11058. (executeInternal): Pass the reference of segment.
  11059. * src/HttpConnection.cc
  11060. (createRequest): Rewritten range header processing.
  11061. * src/DownloadCommand.h
  11062. (executeInternal): Pass the reference of segment.
  11063. (prepareForRetry): Removed.
  11064. (prepareForNextSegment): Added an argument segment. Made it a virtual
  11065. function.
  11066. * src/main.cc
  11067. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11068. * src/SegmentMan.cc
  11069. (SegmentMan): Added bitfield. Removed splitter.
  11070. (~SegmentMan): Added bitfield. Removed splitter.
  11071. (unregisterId): Removed.
  11072. (getSegment): Rewritten.
  11073. (updateSegment): Rewritten.
  11074. (save): Rewritten.
  11075. (read): Rewritten.
  11076. (finished): Rewritten.
  11077. (getDownloadedSize): Removed.
  11078. (initBitfield): New function.
  11079. (FindSegmentEntryByIndex): New function object.
  11080. (FindSegmentEntryByCuid): New function object.
  11081. (checkoutSegment): New function.
  11082. (onNullBitfield): New function.
  11083. (getSegment): New function(overload).
  11084. (CancelSegment): New function object.
  11085. (cancelSegment): New function.
  11086. (completeSegment): New function.
  11087. (hasSegment): New function.
  11088. (getDownloadLength): New function.
  11089. * src/FtpInitiateConnectionCommand.cc
  11090. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11091. * src/Segment.h: Rewritten.
  11092. * src/Segment.cc (operator<<): New function.
  11093. * src/HttpDownloadCommand.h
  11094. (prepareForNextSegment): New function.
  11095. * src/Request.cc
  11096. (resetUrl): Made segment null.
  11097. * src/DownloadEngine.cc
  11098. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11099. * src/HttpProxyRequestCommand.h
  11100. (executeInternal): Pass the reference of segment.
  11101. * src/DownloadCommand.cc
  11102. (executeInternal): Rewritten the code related to Segment.
  11103. (prepareForRetry): Removed.
  11104. (prepareForNextSegment): Rewritten.
  11105. * src/FtpTunnelResponseCommand.h
  11106. (executeInternal): Pass the reference of segment.
  11107. To add HTTP 1.1 persistent connection support(experimental)
  11108. * src/HttpRequestCommand.cc
  11109. (executeInternal): Disable keep alive if it is disabled by
  11110. configuration.
  11111. * src/Request.h
  11112. (keepAlive): New variable.
  11113. (isKeepAlive): New function.
  11114. (setKeepAlive): New function.
  11115. * src/pref.h
  11116. (PREF_HTTP_KEEP_ALIVE): New definition.
  11117. * src/HttpResponseCommand.cc
  11118. (executeInternal): Check the remote server supports keep alive.
  11119. * src/HttpConnection.cc
  11120. (createRequest): Send "Connection: close" only if keep alive is
  11121. disabled.
  11122. * src/main.cc
  11123. (main):
  11124. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11125. To add max download speed limit:
  11126. * src/pref.h
  11127. (PREF_MAX_SPEED_LIMIT): New definition.
  11128. * src/PeerInteractionCommand.cc
  11129. (executeInternal): Added max download speed limit. Not tested yet.
  11130. * src/SegmentMan.h
  11131. (PeerStats): New type definition.
  11132. (peerStats): New variable.
  11133. (registerPeerStat): New function.
  11134. (FindPeerStat): New function object.
  11135. (getPeerStat): New function.
  11136. (calculateDownloadSpeed): New function.
  11137. * src/SpeedCalc.h: New class.
  11138. * src/SpeedCalc.cc: New class.
  11139. * src/main.cc
  11140. (main):
  11141. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11142. download speed is not restricted).
  11143. * src/PeerStat.h: New class.
  11144. * src/SegmentMan.cc
  11145. (registerPeerStat): New function.
  11146. (calculateDownloadSpeed): New function.
  11147. * src/DownloadCommand.cc
  11148. (STARTUP_IDLE_TIME): New definition.
  11149. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11150. downloadStart.
  11151. (~DownloadCommand): Call peerStat->downloadStop.
  11152. (executeInternal): Added download speed limitter. Rewritten lowest
  11153. speed limitter.
  11154. * src/HttpConnection.cc
  11155. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11156. * src/AbstractCommand.cc
  11157. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11158. Added hostname to the error message.
  11159. * src/ConsoleDownloadEngine.cc
  11160. (calculateStatistics): Initialize psize with dlSize.
  11161. * src/PieceMessage.cc
  11162. (receivedAction): Do not call peerInteraction->abortPiece here.
  11163. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11164. * src/BitfieldMan.h
  11165. (clearAllUseBit): New function.
  11166. (setAllUseBit): New function.
  11167. * src/BitfieldMan.cc
  11168. (clearAllBit): Do not clear useBitfield here.
  11169. (clearAllUseBit): New function.
  11170. (setAllUseBit): New function.
  11171. * src/Piece.cc
  11172. (clearAllBlock): Call bitfield->clearAllUseBit().
  11173. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11174. To make filename URL-decoded:
  11175. * src/HttpResponseCommand.h: Updated doc.
  11176. * src/HttpResponseCommand.cc
  11177. (determinFilename): Made filename URL-decoded.
  11178. * src/FtpInitiateConnectionCommand.cc
  11179. (executeInternal): Made filename URL-decoded.
  11180. * src/Util.h (urldecode): New function.
  11181. * src/Util.cc (urldecode): New function.
  11182. To fix a bug that caused assertion failure in ares_strerror:
  11183. * src/NameResolver.cc (callback): Fixed the bug.
  11184. * Release 0.7.3
  11185. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11186. To add --seed-time and --seed-ratio command-line option:
  11187. * src/Option.h (getAsDouble): New function.
  11188. * src/Option.cc (getAsDouble): New function.
  11189. * src/SeedCheckCommand.h: New class.
  11190. * src/SeedCheckCommand.cc: New class.
  11191. * src/DownloadEngineFactory.cc
  11192. (SeedCheckCommand.h): Included.
  11193. (UnionSeedCriteria.h): Included.
  11194. (TimeSeedCriteria.h): Included.
  11195. (ShareRatioSeedCriteria.h): Included.
  11196. (newTorrentConsoleEngine): Added the processing of seed option.
  11197. * src/SeedCriteria.h: New class.
  11198. * src/ShareRatioSeedCriteria.h: New class.
  11199. * src/TimeSeedCriteria.h: New class.
  11200. * src/UnionSeedCriteria.h: New class.
  11201. * src/prefs.h
  11202. (PREF_SEED_TIME): New definition.
  11203. (PREF_SEED_RATIO): New definition.
  11204. * src/main.cc
  11205. (showUsage): Added --seed-time and --seed-ratio option.
  11206. (main): Added --seed-time and --seed-ratio option.
  11207. Made default log file name "/dev/null".
  11208. * src/SharedHandle.h
  11209. (SharedHandle): Copy constructor. Made it assignable from the
  11210. SharedHandle of the subclasses.
  11211. (operator=): Made it assignable from the SharedHandle of the
  11212. subclasses.
  11213. (getRefCount): New function.
  11214. To add notice log level and the switch to write log to stdout. This
  11215. switch is configurable per log level.
  11216. * src/Logger.h
  11217. (notice): New function.
  11218. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11219. constant.
  11220. * src/LogFactory.cc
  11221. (getInstance): The use of NullLogger was removed. A log message with
  11222. notice log level was made written to stdout along with log file.
  11223. * src/NullLogger.h
  11224. (notice): New function.
  11225. * src/SimpleLogger.h
  11226. (writeHeader): Added the 'file' argument.
  11227. (writeLog): Added the 'file' argument.
  11228. (writeFile): New function.
  11229. (stdoutField): New variable.
  11230. (SimpleLogger): Removed the default constructor.
  11231. (SimpleLogger): Made the default value of logfile 0.
  11232. (debug): Added 'virtual' keyword.
  11233. (info): Added 'virtual' keyword.
  11234. (warn): Added 'virtual' keyword.
  11235. (error): Added 'virtual' keyword.
  11236. (notice): New function.
  11237. (setStdout): New function.
  11238. * src/SimpleLogger.cc
  11239. (WRITE_LOG): Replaced writeLog with writeFile.
  11240. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11241. (SimpleLogger): Removed the default constructor.
  11242. (setStdout): New function.
  11243. (writeLog): Added the handling of NOTICE log level.
  11244. (writeFile): New function.
  11245. (notice): New function.
  11246. * src/TorrentMan.h: Updated doc.
  11247. * src/BitfieldMan.h: Updated doc.
  11248. * src/TrackerWatcherCommand.cc
  11249. (execute): Return true if error occurred in the request to the tracker
  11250. and halt is requested.
  11251. * src/TrackerUpdateCommand.cc
  11252. (execute): Return true if error occurred in the request to the tracker
  11253. and halt is requested.
  11254. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11255. DownloadEngine:
  11256. * src/TorrentConsoleDownloadEngine.h
  11257. (onSelectiveDownloadingCompletes): Removed.
  11258. * src/TorrentConsoleDownloadEngine.cc
  11259. (onSelectiveDownloadingCompletes): Removed.
  11260. * src/TorrentDownloadEngine.h
  11261. (onEndOfRun): Added 'virtual' keyword.
  11262. (afterEachIteration): Removed.
  11263. (onSelectiveDownloadingCompletes): Removed.
  11264. * src/TorrentDownloadEngine.cc
  11265. (onEndOfRun): Removed filenameFixed.
  11266. (afterEachIteration): Removed.
  11267. * src/TorrentMan.cc
  11268. (completePiece): Call onDownloadComplete here.
  11269. (onDownloadComplete): Added 2 log messages.
  11270. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11271. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11272. * src/NameResolver.h: Added the prototype declaration of callback().
  11273. To support c-ares library:
  11274. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11275. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11276. * src/FtpInitiateConnectionCommand.h:
  11277. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11278. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11279. * src/HttpInitiateConnectionCommand.h:
  11280. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11281. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11282. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11283. #1542285 by tizianomueller)
  11284. * src/HttpInitiateConnectionCommand.cc:
  11285. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11286. * src/FtpInitiateConnectionCommand.cc:
  11287. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11288. * src/DownloadEngine.h:
  11289. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11290. * src/DownloadEngine.cc:
  11291. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11292. To fix the bug that causes compilation failure with metalink-support
  11293. disabled(bug#1543587):
  11294. * src/main.cc: Fixed with the patch by tizianomueller.
  11295. * Release 0.7.2
  11296. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11297. * src/main.cc
  11298. (main): Added a message to inform users that aria2 is starting to
  11299. verify checksum.
  11300. * src/RequestInfo.cc
  11301. (printDownloadAbortMessage): Added a message to inform users that
  11302. transfer can be resumed.
  11303. * src/FeatureConfig.cc
  11304. (FEATURE_ASYNC_DNS): New definition.
  11305. (FeatureConfig): Added aysnc DNS entry.
  11306. To replace CommandUuid with Command* in SocketEntry and
  11307. NameResolverEntry:
  11308. * src/DownloadEngine.h
  11309. (CommandUuids): Removed.
  11310. (SocketEntry::commandUuid): Removed.
  11311. (SocketEntry::command): New variable.
  11312. (SocketEntry::SocketEntry): Updated.
  11313. (SocketEntry::operator==): Updated.
  11314. (NameResolverEntry::commandUuid): Removed.
  11315. (NameResolverEntry::command): New variable.
  11316. (NameResolverEntry::NameResolverEntry): Updated.
  11317. (NameResolverEntry::operator==): Updated.
  11318. (waitData): Changed the argument type.
  11319. (addSocketForReadCheck): Changed the argument type.
  11320. (deleteSocketForReadCheck): Changed the argument type.
  11321. (addSocketForWriteCheck): Changed the argument type.
  11322. (deleteSocketForWriteCheck): Changed the argument type.
  11323. (addNameResolverCheck): Changed the argument type.
  11324. (deleteNameResolverCheck): Changed the argument type.
  11325. * src/DownloadEngine.cc
  11326. (FindCommand): Removed.
  11327. (run): Removed activeUuid. Added activeCommands instead.
  11328. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11329. (AccumulateActiveCommand): New function object.
  11330. (waitData): Use AccumulateActiveCommand.
  11331. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11332. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11333. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11334. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11335. (addNameResolverCheck): Use Command instead of CommandUuid.
  11336. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11337. * src/AbstractCommand.cc
  11338. (disableReadCheckSocket): Updated according to the changes in
  11339. DownloadEngine.
  11340. (setReadCheckSocket): Updated according to the changes in
  11341. DownloadEngine.
  11342. (disableWriteCheckSocket): Updated according to the changes in
  11343. DownloadEngine.
  11344. (setWriteCheckSocket): Updated according to the changes in
  11345. DownloadEngine.
  11346. (setNameResolverCheck): Updated according to the changes in
  11347. DownloadEngine.
  11348. (disableNameResolverCheck): Updated according to the changes in
  11349. DownloadEngine.
  11350. * src/AbstractCommand.cc
  11351. (disableReadCheckSocket): Updated according to the changes in
  11352. DownloadEngine.
  11353. (setReadCheckSocket): Updated according to the changes in
  11354. DownloadEngine.
  11355. (disableWriteCheckSocket): Updated according to the changes in
  11356. DownloadEngine.
  11357. (setWriteCheckSocket): Updated according to the changes in
  11358. DownloadEngine.
  11359. * release 0.7.1
  11360. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11361. To handle the case where some BitTorrent tracker requires all letters
  11362. except for [A-Za-z0-9] is URL encoded.
  11363. * src/Util.h
  11364. (torrentUrlencode): New function.
  11365. * src/Util.cc
  11366. (ctype.h): Included.
  11367. (torrentUrlencode): New function.
  11368. * src/TrackerWatcherCommand.cc
  11369. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11370. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11371. To add asynchronous DNS support(libares):
  11372. * src/AbstractCommand.h
  11373. (setNameResolverCheck): New function.
  11374. (disableNameResolverCheck): New function
  11375. (resolveHostname): New function.
  11376. * src/AbstractCommand.cc
  11377. (setNameResolverCheck): New function.
  11378. (disableNameResolverCheck): New function
  11379. (resolveHostname): New function.
  11380. * src/FtpInitiateConnectionCommand.h
  11381. (nameResolver): New function.
  11382. * src/FtpInitiateConnectionCommand.cc
  11383. (Util.h): Included.
  11384. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11385. disableWriteCheckSocket.
  11386. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11387. (executeInternal): Added async DNS support.
  11388. * src/HttpInitiateConnectionCommand.h
  11389. (nameResolver): New function.
  11390. * src/HttpInitiateConnectionCommand.cc
  11391. (DlRetryEx.h): Included.
  11392. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11393. disableWriteCheckSocket.
  11394. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11395. (executeInternal): Added async DNS support.
  11396. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11397. by extern "C" declaration.
  11398. * src/NameResolver.cc: New class.
  11399. * src/Util.h:
  11400. (isNumberAndDotsNotation): New function
  11401. * src/Util.cc
  11402. (isNumberAndDotsNotation): New function.
  11403. * src/DownloadEngine.h
  11404. (NameResolver.h): Included.
  11405. (NameResolverEntry): New class.
  11406. (NameResolverEntries): New type definition.
  11407. (addNameResolverCheck): New function.
  11408. (deleteNameResolverCheck): New function.
  11409. * src/DownloadEngine.cc
  11410. (run): Initialize cp with 0.
  11411. (SetDescriptor::operator()): Added for NameResolverEntry.
  11412. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11413. (waitData): Check nameResolver entries.
  11414. (updateFdSet): Update fds in nameResolver entries.
  11415. (addNameResolverCheck): New function.
  11416. (deleteNameResolverCheck): new function.
  11417. * src/PeerInteractionCommand.cc
  11418. (executeInternal): Fixed wrong socket handling.
  11419. * src/main.cc
  11420. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11421. * src/Util.cc
  11422. (fileChecksum): Removed the call to ctx.digestReset().
  11423. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11424. * po/ru.po: Azamat sent me Russian translation.
  11425. * src/FtpNegotiateCommand.cc
  11426. (recvGreeting): Call disableWriteCheckSocket just after
  11427. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11428. (recvRetr): Recognized status code 125 as a acceptable response code.
  11429. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11430. case-insesitive filesystem(BUG#1531057).
  11431. * src/Time.h: Renamed as TimeA2.h.
  11432. * src/Time.cc: Renamed as TimeA2.cc.
  11433. * src/TimeA2.h: New class.
  11434. * src/TimeA2.cc: New class.
  11435. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11436. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11437. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11438. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11439. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11440. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11441. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11442. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11443. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11444. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11445. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11446. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11447. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11448. * release 0.7.0
  11449. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11450. * src/PeerChokeCommand.h
  11451. (PeerChokeCommand): Rearranged the arguments.
  11452. * src/PeerChokeCommand.cc
  11453. (PeerChokeCommand): Rearranged the arguments.
  11454. * src/MetalinkEntry.h
  11455. (Checksum.h): Included.
  11456. (md5): Removed.
  11457. (sha1): Removed.
  11458. (checksum): New variable.
  11459. (operator=): Updated.
  11460. (check): Removed.
  11461. * src/prefs.h
  11462. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11463. (PREF_FOLLOW_TORRENT): New definition.
  11464. (PREF_SELECT_FILE): New definition.
  11465. (PREF_FOLLOW_METALINK): New definition.
  11466. * src/MetalinkResource.h
  11467. (TYPE_HTTPS): Added to enum TYPE.
  11468. * src/TorrentMan.cc
  11469. (~TorrentMan): Rewritten.
  11470. * src/MultiDiskWriter.cc
  11471. (MultiDiskAdaptor): Updated according to the changes in
  11472. MessageDigestContext.
  11473. (~MultiDiskAdaptor): Updated according to the changes in
  11474. MessageDigestContext.
  11475. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11476. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11477. * src/Util.h
  11478. (fileChecksum): Updated according to the changes in
  11479. MessageDigestContext.
  11480. * src/Util.cc
  11481. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11482. (fileChecksum): Updated according to the changes in
  11483. MessageDigestContext.
  11484. * src/messageDigest.h: Rewritten.
  11485. * src/MetalinkEntry.cc
  11486. (check): Removed.
  11487. (Supported): Updated.
  11488. (dropUnsupportedResource): Fixed a memory leak.
  11489. * src/ShaVisitor.cc
  11490. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11491. (~ShaVisitor): Updated according to the changes in
  11492. MessageDigestContext.
  11493. (visit): Updated according to the changes in MessageDigestContext.
  11494. * src/main.cc
  11495. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11496. command-line option added.
  11497. * src/DownloadEngine.h
  11498. (SocketEntry): New class.
  11499. (SocketEntries): New definition.
  11500. (PairFind): Removed.
  11501. (SockCmdMap): Removed.
  11502. * src/DownloadEngine.cc
  11503. (DownloadEngine): Rewritten.
  11504. (~DownloadEngine): Rewritten.
  11505. (run): Renamed activeCommandUuids as activeUuids.
  11506. (SetDescriptor): Rewritten.
  11507. (AccumulateActiveCommandUuid): Removed.
  11508. (AccumulateActiveUuid): New function object.
  11509. (waitData): Rewritten.
  11510. (updateFdSet): Rewritten.
  11511. (addSocket): Rewritten.
  11512. (deleteSocket): Rewritten.
  11513. (addSocketForReadCheck): Rewritten.
  11514. (deleteSocketForReadCheck): Rewritten.
  11515. (addSocketForWriteCheck): Rewritten.
  11516. (deleteSocketForWriteCheck): Rewritten.
  11517. * src/Xml2MetalinkProcessor.cc
  11518. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11519. * src/DownloadCommand.cc
  11520. (executeInternal): Added the check routine for lowest speed limit.
  11521. * src/AbstractDiskWriter.cc
  11522. (AbstractDiskWriter): Updated according to the changes in
  11523. MessageDigestContext.
  11524. (~AbstractDiskWriter): Updated according to the changes in
  11525. MessageDigestContext.
  11526. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11527. * src/RequestInfo.h: New class.
  11528. * src/UrlRequestInfo.h: New class.
  11529. * src/UrlRequestInfo.cc: New class.
  11530. * src/TorrentRequestInfo.h: New class.
  11531. * src/TorrentRequestInfo.cc: New class.
  11532. * src/MetalinkRequestInfo.h: New class.
  11533. * src/MetalinkRequestInfo.cc: New class.
  11534. * src/Checksum.h: New class.
  11535. * src/DownloadEngineFactory.h: New class.
  11536. * src/DownloadEngineFactory.cc: New class.
  11537. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11538. * src/Option.h
  11539. (getAsBool): New function.
  11540. * src/Option.cc
  11541. (prefs.h): Included.
  11542. (defined): 0-length value is now recognized as undefined.
  11543. (getAsInt): Rewritten.
  11544. (getAsLLInt): Rewritten.
  11545. (getAsBool): New function.
  11546. * src/FeatureConfig.h: Rewritten.
  11547. * src/FeatureConfig.cc: Rewritten.
  11548. * src/prefs.h
  11549. (PREF_STDOUT_LOG): New definition.
  11550. (PREF_LOG): New definition.
  11551. (PREF_DIR): New definition.
  11552. (PREF_OUT): New definition.
  11553. (PREF_SPLIT): New definition.
  11554. (PREF_DAEMON): New definition.
  11555. (PREF_REFERER): New definition.
  11556. (PREF_TORRENT_FILE): New definition.
  11557. (PREF_LISTEN_PORT): New definition.
  11558. (PREF_METALINK_FILE): New definition.
  11559. (PREF_METALINK_VERSION): New definition.
  11560. (PREF_METALINK_LANGUAGE): New definition.
  11561. (PREF_METALINK_OS): New definition.
  11562. (PREF_METALINK_SERVERS): New definition.
  11563. * src/main.cc
  11564. (main): Following command-line parameters are now put into Option
  11565. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11566. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11567. metalinkLanguage, metalinkOs, metalinkServers
  11568. To fix the bug that aria2 can not handle http response header properly.
  11569. * src/HttpHeader.cc
  11570. (put): Made name lowercased.
  11571. (defined): Made name lowercased.
  11572. (getFirst): Made name lowercased.
  11573. (get): Made name lowercased.
  11574. (getFirstAsInt): Rewritten.
  11575. (getFirstAsLLInt): Rewritten.
  11576. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11577. * src/TorrentMan.h:
  11578. (advertisePiece): Updated doc.
  11579. (getAdvertisedPieceIndexes): Updated doc.
  11580. (removeAdvertisedPiece); New function.
  11581. * src/TorrentMan.cc
  11582. (FindElapsedHave): New function object.
  11583. (removeAdvertisedPiece): New function.
  11584. * src/HaveEraseCommand.h: New class.
  11585. * src/HaveEraseCommand.cc: New class.
  11586. * src/FeatureConfig.h: New class.
  11587. * src/FeatureConfig.cc: New class.
  11588. * src/Request.h
  11589. (defaultPorts): Removed.
  11590. * src/Request.cc
  11591. (FeatureConfig.h): Included.
  11592. (Request): Removed the statements related to defaultPorts.
  11593. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11594. A default port number is now retrieved from FeatureConfig.
  11595. * src/main.cc
  11596. (HaveEraseCommand.h): Included.
  11597. (showVersion): Added the output of feature list.
  11598. (main): Added HaveEraseCommand to command queue in BitTorrent
  11599. downloading.
  11600. * src/PeerInteractionCommand.h
  11601. (chokeCheckPoint): Commented out.
  11602. (periodicExecPoint): New variable.
  11603. * src/PeerInteractionCommand.cc
  11604. (executeInternal): Following methods are now called in at least every
  11605. 0.5 seconds to reduce CPU usage:
  11606. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11607. checkHave(), sendKeepAlive().
  11608. (checkLongTimePeerChoking): Commented out.
  11609. * src/BitfieldMan.h
  11610. (getNthBitIndex): Changed the method signature.
  11611. (getMissingIndexRandomly): Changed the method signature.
  11612. * src/BitfieldMan.cc
  11613. (getNthBitIndex): Rewritten
  11614. (getMissingIndexRandomly): Rewritten.
  11615. (hasMissingPiece): Rewritten.
  11616. (getMissingIndex): Refactored.
  11617. (getMissingUnusedIndex); Refactored.
  11618. (getMissingIndex): Refactored.
  11619. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11620. * src/PeerMessage.h
  11621. (Piece.h): Included.
  11622. (SharedHandle.h): Included.
  11623. (invalidate): New variable.
  11624. (uploading): New variable.
  11625. (isInvalidate): New function.
  11626. (isUploading): New function.
  11627. (onPush): New function.
  11628. (onChoked): New function.
  11629. (onCanceled): New function.
  11630. (onAbortPiece): New function.
  11631. (PeerMessageHandle): New type definition.
  11632. * src/PeerMessage.cc
  11633. (PeerMessage): Added the initialization for invalidate and uploading.
  11634. * src/CancelMessage.h
  11635. (CancelMessage): Rewritten.
  11636. * src/RejectMessage.h
  11637. (RejectMessage): Rewritten.
  11638. * src/Metalinker.h
  11639. (operator=): Defined.
  11640. * src/MetaEntry.h
  11641. (operator=): Defined.
  11642. * src/MetalinkResource.h
  11643. (operator=): Defined.
  11644. * src/AllowedFastMessage.h
  11645. (AllowedFastMessage): Rewritten.
  11646. * src/HandshakeMessage.h
  11647. (HandshakeMessage): New function(overload).
  11648. * src/HandshakeMessage.cc
  11649. (HandshakeMessage): Rewritten.
  11650. (init): New function.
  11651. * src/HaveMessage.h
  11652. (HaveMessage): Rewritten.
  11653. * src/Time.h
  11654. (operator=): Defined the function body here.
  11655. * src/Time.cc
  11656. (operator=): Removed.
  11657. * src/SocketCore.h
  11658. (operator==): Defined here.
  11659. (operator!=): Defined here.
  11660. (operator<): Defined here.
  11661. * src/SocketCore.cc
  11662. (operator==): Removed.
  11663. (operator<): Removed.
  11664. * src/BitfieldMan.h
  11665. (operator=): Defined the function body here.
  11666. * src/BitfieldMan.cc
  11667. (operator=): Removed.
  11668. * src/TorrentMan.h
  11669. (deleteErrorPeer): Removed.
  11670. (deleteUnusedPeer); New function.
  11671. * src/TorrentMan.cc
  11672. (addPeer): Call deleteUnusedPeer.
  11673. (deleteErrorPeer): Removed.
  11674. (deleteUnusedPeer): New function.
  11675. * src/PeerAbstractCommand.h
  11676. (setNoCheck): New function.
  11677. (noCheck): New variable.
  11678. * src/PeerAbstractCommand.cc
  11679. (PeerAbstractCommand): Added the initialization of noCheck.
  11680. (execute): Added a check for noCheck.
  11681. (setNoCheck): New function.
  11682. * src/Util.h
  11683. (stdio.h): Included.
  11684. * src/Util.cc
  11685. (unistd.h): Included.
  11686. * src/DefaultDiskWriter.cc
  11687. (unistd.h): Included.
  11688. * src/Peer.h
  11689. (operator==): Defined the function body here.
  11690. (operator!=): Defined the function body here.
  11691. * src/Peer.cc
  11692. (operator==): Removed.
  11693. (operator!=): Removed.
  11694. * src/Piece.h
  11695. (Piece): Defined the function body here(copy constructor).
  11696. (operator=): Defined the function body here.
  11697. (operator==): Defined the function body here.
  11698. * src/Piece.cc
  11699. (Piece): Removed(copy constructor).
  11700. (operator=): Removed.
  11701. (operator==): Removed.
  11702. * src/PeerMessageUtil.h
  11703. (ChokeMessage.h): Removed.
  11704. (UnchokeMessage.h): Removed.
  11705. (InterestedMessage.h): Removed.
  11706. (NotInterestedMessage.h): Removed.
  11707. (HaveMessage.h): Removed.
  11708. (BitfieldMessage.h): Removed.
  11709. (RequestMessage.h): Removed.
  11710. (CancelMessage.h): Removed.
  11711. (PieceMessage.h): Removed.
  11712. (HandshakeMessage.h): Removed.
  11713. (KeepAliveMessage.h): Removed.
  11714. (PortMessage.h): Removed.
  11715. (HaveAllMessage.h): Removed.
  11716. (HaveNoneMessage.h): Removed.
  11717. (PeerConnection.h): Removed.
  11718. (HandshakeMessage.h): Included.
  11719. * src/BitfieldMessage.h
  11720. (init): New function.
  11721. (BitfieldMessage): Rewritten.
  11722. (BitfieldMessage): New function(overload).
  11723. * src/RequestSlot.h
  11724. (operator=): Defined the function body here.
  11725. (operator==): Defined the function body here.
  11726. * src/RequestSlot.cc
  11727. (operator=): Removed.
  11728. (operator==): Removed.
  11729. To remove the dependency on the PeerMessage subclass from
  11730. PeerInteraction:
  11731. * src/PeerMessageFactory.h: New class.
  11732. * src/PeerMessageFactory.cc: New class.
  11733. * src/SimplePeerMessage.cc
  11734. (send): If invalidate is true then do nothing.
  11735. * src/PeerInteractionCommand.cc
  11736. (HandshakeMessage.h): Included.
  11737. (KeepAliveMessage.h): Included.
  11738. (ChokeMessage.h): Included.
  11739. (UnchokeMessage.h): Included.
  11740. (HaveMessage.h): Included.
  11741. (executeInternal): Call setNoCheck().
  11742. Removed setWriteCheckSocket(socket).
  11743. * src/PeerInteraction.h
  11744. (ChokeMessage.h): Removed.
  11745. (UnchokeMessage.h): Removed.
  11746. (InterestedMessage.h): Removed.
  11747. (NotInterestedMessage.h): Removed.
  11748. (HaveMessage.h): Removed.
  11749. (BitfieldMessage.h): Removed.
  11750. (RequestMessage.h): Removed.
  11751. (CancelMessage.h): Removed.
  11752. (PieceMessage.h): Removed.
  11753. (HandshakeMessage.h): Removed.
  11754. (KeepAliveMessage.h): Removed.
  11755. (PortMessage.h): Removed.
  11756. (HaveAllMessage.h): Removed.
  11757. (HaveNoneMessage.h): Removed.
  11758. (RejectMessage.h): Removed.
  11759. (AllowedFastMessage.h): Removed.
  11760. (SuggestPieceMessage.h): Removed.
  11761. (PeerMessageFactory.h): Included.
  11762. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11763. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11764. (PeerMessageFactory): New variable.
  11765. (createPeerMessage): Removed.
  11766. (createHandshakeMessage): Removed.
  11767. (setPeerMessageCommonProperty): Removed.
  11768. (addRequestSlot): New function.
  11769. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11770. (getPeerMessageFactory): New function.
  11771. (createRequestMessage): Removed.
  11772. (createCancelMessage): Removed.
  11773. (createPieceMessage): Removed.
  11774. (createHaveMessage): Removed.
  11775. (createChokeMessage): Removed.
  11776. (createUnchokeMessage): Removed.
  11777. (createInterestedMessage): Removed.
  11778. (createNotInterestedMessage): Removed.
  11779. (createBitfieldMessage): Removed.
  11780. (createKeepAliveMessage): Removed.
  11781. (createHaveAllMessage): Removed.
  11782. (createHaveNoneMessage): Removed.
  11783. (createRejectMessage): Removed.
  11784. (createAllowedFastMessage): Removed.
  11785. * src/PeerInteraction.cc
  11786. (PeerInteraction): Allocate PeerMessageFactory here.
  11787. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11788. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11789. PieceMessage::ID.
  11790. (addMessage): Simplified by using PeerMessage::onPush().
  11791. (addRequestSlot): New function.
  11792. (rejectAllPieceMessageInQueue): Simplified by using
  11793. PeerMessage::onChoked().
  11794. (rejectPieceMessageInQueue): Simplified by using
  11795. PeerMessage::onCanceled().
  11796. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11797. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11798. (createHandshakeMessage): Removed.
  11799. (createPeerMessage): Removed.
  11800. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11801. (setPeerMessageCommonProperty): Removed.
  11802. (createRequestMessage): Removed.
  11803. (createCancelMessage): Removed.
  11804. (createPieceMessage): Removed.
  11805. (createHaveMessage): Removed.
  11806. (createChokeMessage): Removed.
  11807. (createUnchokeMessage): Removed.
  11808. (createInterestedMessage): Removed.
  11809. (createNotInterestedMessage): Removed.
  11810. (createBitfieldMessage): Removed.
  11811. (createKeepAliveMessage): Removed.
  11812. (createHaveAllMessage): Removed.
  11813. (createHaveNoneMessage): Removed.
  11814. (createRejectMessage): Removed.
  11815. (createAllowedFastMessage): Removed.
  11816. * src/PieceMessage.h
  11817. (createRejectMessage): New function.
  11818. (PieceMessage): Rewritten.
  11819. (onChoked): New function.
  11820. (onCanceled): New function.
  11821. * src/PieceMessage.cc
  11822. (send): If invalidate is true then do nothing, just return.
  11823. (createRejectMessage): New function.
  11824. (onChoked): New function.
  11825. (onCanceled): New function.
  11826. * src/RequestMessage.h
  11827. (RequestMessage): Rewritten.
  11828. (onPush): New function.
  11829. (onAbortPiece): New function.
  11830. * src/RequestMessage.cc
  11831. (onPush): New function.
  11832. (onAbortPiece): New function.
  11833. Update fd_set when a socket is added or deleted in order to improve
  11834. performance:
  11835. * src/DownloadEngine.h
  11836. (rfdset): New variable.
  11837. (wfdset): New variable.
  11838. (updateFdSet): New function.
  11839. * src/DownloadEngine.cc
  11840. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11841. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11842. (waitData): Copy rfdset and wfdset.
  11843. (updateFdSet): New function.
  11844. (addSocket): Call updateFdSet.
  11845. (deleteSocket): Call updateFdSet.
  11846. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11847. To add the support for Metalink3.0 backward compatible links:
  11848. * src/Request.h
  11849. (SAFE_CHARS): Added '#'.
  11850. (METALINK_MARK): New definition.
  11851. * src/Request.cc
  11852. (parseUrl): Added the support for Metalink3.0 backward compatible
  11853. links.
  11854. etc
  11855. * src/PeerInteraction.cc
  11856. (MsgPushBack): Removed.
  11857. (sendMessages): Use STL copy and back_inserter.
  11858. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11859. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11860. * src/TorrentMan.h
  11861. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11862. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11863. * src/SharedHandle.h: New class.
  11864. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11865. * src/HttpResponseCommand.h
  11866. (HttpResponseCommand): Wrapped Socket.
  11867. * src/SocketCore.h
  11868. (operator==): New function.
  11869. (operator!=): New function.
  11870. (operator<): New function.
  11871. (getSockfd): New function.
  11872. (isOpen): New function.
  11873. (writeData): New function.
  11874. * src/SocketCore.cc
  11875. (operator==): New function.
  11876. (operator!=): New function.
  11877. (operator<): New function.
  11878. * src/AbstractCommand.h
  11879. (socket): Changed its type to SocketHandle.
  11880. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11881. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11882. (disableReadCheckSocket): New function.
  11883. (disableWriteCheckSocket): New function.
  11884. (readCheckTarget): Changed its type to SocketHandle.
  11885. (writeCheckTarget): Changed its type to SocketHandle.
  11886. (AbstractCommand): Replaced Socket with SocketHandle.
  11887. * src/AbstractCommand.cc
  11888. (AbstractCommand): Replaced Socket with SocketHandle.
  11889. (~AbstractCommand): Removed the deallocation for Socket object.
  11890. (disableReadCheckSocket): New function.
  11891. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11892. (disableWriteCheckSocket): New function.
  11893. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11894. * src/HttpDownloadCommand.cc
  11895. (DownloadCommand): Replaced Socket with SocketHandle.
  11896. * src/PeerAbstractCommand.h
  11897. (socket): Changed its type to SocketHandle.
  11898. (peer): Changed its type to PeerHandle.
  11899. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11900. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11901. (disableReadCheckSocket): New function.
  11902. (disableWriteCheckSocket): New function.
  11903. (readCheckTarget): Changed its type to SocketHandle.
  11904. (writeCheckTarget): Changed its type to SocketHandle.
  11905. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11906. Replaced Peer with PeerHandle.
  11907. * src/HttpRequestCommand.cc
  11908. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11909. Use disableReadCheckSocket.
  11910. * src/PeerInitiateConnectionCommand.h
  11911. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11912. * src/PeerChokeCommand.cc
  11913. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11914. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11915. (execute): Use PeerHandle.
  11916. * src/PeerConnection.h
  11917. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11918. (socket): Changed its type to SocketHandle.
  11919. (PeerConnection): Replaced Socket with SocketHandle.
  11920. * src/PeerConnection.cc
  11921. (PeerConnection): Replaced Socket with SocketHandle.
  11922. * src/PeerInteractionCommand.h
  11923. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11924. Replaced Peer with PeerHandle.
  11925. * src/PeerInteractionCommand.cc
  11926. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11927. Replaced Peer with PeerHandle.
  11928. (executeInternal): Use disableWriteCheckSocket.
  11929. Use HandshakeMessageHandle.
  11930. (receiveMessages): Use PeerMessageHandle.
  11931. (prepareForNextPeer): Use PeerHandle.
  11932. * src/HttpProxyRequestCommand.h
  11933. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11934. * src/HttpResponseCommand.cc
  11935. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11936. * src/TorrentMan.cc
  11937. (nullPeer): Added external reference.
  11938. (~TorrentMan): Removed the deallocation of the elements of peers.
  11939. (addPeer): Rewritten.
  11940. (isPeerAvailable): Use nullPeer.
  11941. (deleteOldpeers): Replaced with deleteErrorPeer.
  11942. (deleteErrorPeer): New function.
  11943. (getPeer): Use PeerHandle and nullPeer.
  11944. (hasMissingPiece): Replaced Peer with PeerHandle.
  11945. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11946. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11947. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11948. (getMissingPiece): Replaced Peer with PeerHandle.
  11949. * src/FtpNegotiateCommand.cc
  11950. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11951. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11952. (recvGreeting): Use disableWriteCheckSocket.
  11953. (recvPasv): Removed the allocation of Socket.
  11954. Use disableReadCheckSocket.
  11955. (sendRestPasv): Use disableWriteCheckSocket.
  11956. (recvRetr): Changed assertion.
  11957. * src/PeerInteraction.h
  11958. (SharedHandle.h): Included SharedHandle.h.
  11959. (PeerMessageHandle): New type definition.
  11960. (HandshakeMessageHandle): New type definition.
  11961. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11962. (peer): Changed its type to PeerHandle.
  11963. (createHandshakeMessage): Replaced HandshakeMessage with
  11964. HandshakeMessageHandle.
  11965. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11966. (PeerInteraction): Replaced Peer with PeerHandle.
  11967. Replaced Socket with SocketHandle.
  11968. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11969. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11970. (receiveHandshake): Replaced HandshakeMessage with
  11971. HandshakeMessageHandle.
  11972. * src/PeerInteraction.cc
  11973. (PeerInteraction): Replaced Peer with PeerHandle.
  11974. Replaced Socket with SocketHandle.
  11975. (~PeerInteraction): Removed the deallocation of the elements of
  11976. messageQueue.
  11977. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11978. (isSendingMessageInProgress): Replaced PeerMessage with
  11979. PeerMessageHandle.
  11980. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11981. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11982. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11983. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11984. (abortPiece): Use PeerMessageHandle.
  11985. (receiveHandshake): Replaced HandshakeMessage with
  11986. HandshakeMessageHandle. Removed try-catch block.
  11987. (createHandshakeMessage): Replaced HandshakeMessage with
  11988. HandshakeMessageHandle.
  11989. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11990. Removed try-catch block.
  11991. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11992. * src/HttpProxyResponseCommand.cc
  11993. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11994. * src/FtpTunnelResponseCommand.h
  11995. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11996. * src/HttpConnection.cc
  11997. (HttpConnection): Replaced Socket with SocketHandle.
  11998. * src/PeerAbstractCommand.cc
  11999. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12000. (~PeerAbstractCommand): Removed the deallocation of socket.
  12001. Use disableReadCheckSocket, disableWriteCheckSocket.
  12002. (disableReadCheckSocket): New function.
  12003. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12004. (disableWriteCheckSocket): New function.
  12005. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12006. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  12007. * src/FtpTunnelRequestCommand.cc
  12008. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12009. (~FtpTunnelRequestCommand): Corrected indentation.
  12010. * src/DownloadCommand.h
  12011. (DownloadCommand): Replaced Socket with SocketHandle.
  12012. * src/PeerListenCommand.cc
  12013. (PeerListenCommand): Removed the initialization of socket.
  12014. (~PeerListenCommand): Removed the deallocation of socket.
  12015. (bindPort): Use SocketHandle.
  12016. (execute): Use SocketHandle and PeerHandle.
  12017. * src/FtpDowndloadCommand.cc
  12018. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12019. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  12020. * src/main.cc
  12021. (main): Corrected indentation.
  12022. * src/HttpInitiateConnectionCommand.cc
  12023. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  12024. (executeInternal): Removed the allocation of socket.
  12025. * src/HttpRequestCommand.h
  12026. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12027. * src/FtpNegotiationCommand.h
  12028. (dataSocket): Changed its type to SocketHandle.
  12029. (serverSocket): Changed its type to SocketHandle.
  12030. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  12031. * src/TorrentMan.h
  12032. (MAX_PEER_UPDATE): Removed.
  12033. (MAX_PEERS): New definition.
  12034. (Peers): The element is now of type PeerHandle.
  12035. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  12036. (getPeer): Replaced Peer with PeerHandle.
  12037. (deleteOldErrorPeers): Removed.
  12038. (deleteErrorPeer): New function.
  12039. (hasMissingPiece): Replaced Peer with PeerHandle.
  12040. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12041. (getMissingPiece): Replaced Peer with PeerHandle.
  12042. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12043. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12044. (addActivePeer): Replaced Peer with PeerHandle.
  12045. (deleteActivePeer): Replaced Peer with PeerHandle.
  12046. Added a check for the return value of find.
  12047. * src/FtpTunnelResponseCommand.cc
  12048. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12049. * src/FtpInitiateConnectionCommand.cc
  12050. (executeInternal): Removed the allocation of socket.
  12051. * src/DownloadEngine.h
  12052. (Sockets): An element is now of type SocketHandle.
  12053. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  12054. (CommandUuids): New type definition.
  12055. (rsockets): Changed its type to SockCmdMap.
  12056. (wsockets): Changed its type to SockCmdMap.
  12057. (addSocket): Rewritten.
  12058. (deleteSocket): Rewritten.
  12059. (addSocketForReadCheck): Rewritten.
  12060. (deleteSocketForReadCheck): Rewritten.
  12061. (addSocketForWriteCheck): Rewritten.
  12062. (deleteSocketForWriteCheck): Rewritten.
  12063. (PairFind): New template class.
  12064. * src/HttpDownloadCommand.h
  12065. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  12066. * src/FtpConnection.cc
  12067. (FtpConnection): Replaced Socket with SocketHandle.
  12068. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12069. block.
  12070. * src/InitiateConnectionCommandFactory.cc
  12071. (DlAbortEx.h): Included DlAbortEx.h.
  12072. (createInitiateConnectionCommand): Throw exception if the protocol of
  12073. requested URI is not supported.
  12074. * src/Peer.cc
  12075. (nullPeer): Changed its type to PeerHandle.
  12076. (operator==): New function.
  12077. (operator!=): New function.
  12078. * src/Peer.h
  12079. (SharedHandle.h): Included SharedHandle.h.
  12080. (operator==): New function.
  12081. (operator!=): New function.
  12082. (Peer): Added the default constructor.
  12083. Use resetStatus() to initialize member variables.
  12084. (nullPeer): Removed.
  12085. * src/TrackerUpdateCommand.cc
  12086. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12087. with MIN_PEERS.
  12088. * src/PeerListenCommand.h
  12089. (socket): Changed its type to SocketHandle.
  12090. * src/Command.h
  12091. (CommandUuid): New type definition.
  12092. (uuid): New variable.
  12093. (uuidGen): New variable.
  12094. (Command): Added the initialization of uuid.
  12095. (getUuid): New function.
  12096. * src/Socket.h
  12097. (Socket): Removed.
  12098. (SocketHandle): New type definition.
  12099. * src/DownloadEngine.h
  12100. (FindCommand): New function object.
  12101. (run): The portion of socket check was rewritten.
  12102. (SetDescriptor): New function object.
  12103. (AccumulateActiveCommandUuid): New function object.
  12104. (waitData): Rewritten.
  12105. (addSocket): Rewritten.
  12106. (deleteSocket): Rewritten.
  12107. (addSocketForReadCheck): Rewritten.
  12108. (addSocketForWriteCheck): Rewritten.
  12109. (deleteSocketForReadCheck): Rewritten.
  12110. (deleteSocketForWriteCheck): Rewritten.
  12111. * src/HttpProxyResponseCommand.h
  12112. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12113. * src/HttpConnection.h
  12114. (socket): Changed its type to SocketHandle.
  12115. (HttpConnection): Replaced Socket with SocketHandle.
  12116. * src/PeerInitiateConnectionCommand.cc
  12117. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12118. (executeInternal): Removed the allocation of socket.
  12119. (prepareForNextPeer): Use PeerHandle.
  12120. * src/PeerMessage.h
  12121. (peer): Changed its type to PeerHandle.
  12122. (getPeer): Replaced Peer with PeerHandle.
  12123. (setPeer): Replaced Peer with PeerHandle.
  12124. * src/DownloadCommand.cc
  12125. (DownloadCommand): Replaced Socket with SocketHandle.
  12126. * src/FtpConnection.h
  12127. (socket): Changed its type to SocketHandle.
  12128. (FtpConnection): Replaced Socket with SocketHandle.
  12129. (sendPort); Replaced Socket with SocketHandle.
  12130. * src/FtpDowndloadCommand.h
  12131. (ctrlSocket): Changed its type to SocketHandle.
  12132. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12133. * src/HttpProxyRequestCommand.cc
  12134. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12135. * src/FtpTunnelRequestCommand.h
  12136. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12137. etc
  12138. * src/PeerChokeCommand.h
  12139. (setAllPeerChoked): Removed.
  12140. (setAllPeerResetDelta): Removed.
  12141. * src/PeerChokeCommand.cc
  12142. (setAllPeerChoked): Removed.
  12143. (ChokePeer): New function object.
  12144. (setAllPeerResetDelta): Removed.
  12145. (ResetDelta): New function object.
  12146. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12147. (execute): Show download speed when the local node is a seeder.
  12148. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12149. using STL.
  12150. * src/TrackerWatcherCommand.h
  12151. (MIN_PEERS): Removed.
  12152. * src/TorrentMan.cc
  12153. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12154. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12155. To fix the bug that .aria2 file is not saved if downloading is stopped
  12156. by the errors:it results that aria2 can not resume downloading:
  12157. * src/main.cc
  12158. (normalDownload): Added the call to save().
  12159. (main): Added the deletion of the elements in 'reserved'.
  12160. To fix log:
  12161. * src/PeerInteraction.cc
  12162. (receiveHandshake): Fixed log.
  12163. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12164. To improve download performance in BitTorrent:
  12165. * src/TorrentMan.cc
  12166. (getPeer): Check the number of connections. Return nullPeer if
  12167. it is greater than MAX_PEER_UPDATE.
  12168. This code was originally here, but was removed in 0.5.1.
  12169. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12170. To improve the conditional compilation:
  12171. * src/MultiDiskWriter.h:
  12172. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12173. * src/MultiDiskWriter.cc:
  12174. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12175. * src/Util.h:
  12176. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12177. Added ENABLE_BITTORRENT around computeFastSet().
  12178. * src/Util.cc:
  12179. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12180. Added ENABLE_BITTORRENT around computeFastSet().
  12181. * src/messageDigest.h:
  12182. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12183. * src/ShaVisitor.h:
  12184. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12185. * src/ShaVisitor.cc:
  12186. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12187. * src/main.cc:
  12188. Added ENABLE_BITTORRENT around includes and blocks related to
  12189. BitTorrent.
  12190. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12191. digest support is not available.
  12192. * src/AbstractDiskWriter.h:
  12193. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12194. * src/AbstractDiskWriter.cc:
  12195. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12196. * src/MetalinkEntry.cc
  12197. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12198. support is not available.
  12199. To add command-line options for Metalink:
  12200. * src/main.cc:
  12201. Added metalink-version, metalink-language, metalink-os,
  12202. follow-metalink.
  12203. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12204. * src/main.cc: Use these definition.
  12205. * Release 0.6.0
  12206. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12207. To add Metalink support(http/ftp only):
  12208. * src/AbstractCommand.h
  12209. (tryReserved): New function.
  12210. * src/AbstractCommand.cc
  12211. (execute): Call tryReserved().
  12212. (tryReserved): New function.
  12213. * src/Request.h
  12214. (Requests): New type definition.
  12215. * src/SegmentMan.h
  12216. (reserved): New variable.
  12217. * src/Util.h
  12218. (fileChecksum): New function.
  12219. (toUpper): New function.
  12220. (toLower): New function.
  12221. * src/Util.cc
  12222. (messageDigest.h): Included.
  12223. (trim): Trim \r\n\t.
  12224. (fileChecksum): New function.
  12225. (toUpper): New function.
  12226. (toLower): New function.
  12227. * src/main.cc
  12228. (normalDownload): New function.
  12229. (main): Added 2 command-line options: metalink-file,
  12230. metalink-connection. Their usage has not been written yet.
  12231. * src/MetalinkProcessor.h: New class.
  12232. * src/Xml2MetalinkProcessor.h: New class.
  12233. * src/Xml2MetalinkProcessor.cc: New class.
  12234. * src/MetalinkEntry.h: New class.
  12235. * src/MetalinkEntry.cc: New class.
  12236. * src/MetalinkResource.h: New class.
  12237. * src/MetalinkResource.cc: New class.
  12238. To add md5 message digest checking:
  12239. * src/messageDigest.h: Rewritten.
  12240. * src/MultiDiskWriter.cc: Updated according to the changes in
  12241. messageDigest.h.
  12242. * src/ShaVisitor.cc: Updated according to the changes in
  12243. messageDigest.h.
  12244. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12245. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12246. messageDigest.h.
  12247. To fix a bug that causes segfault when the payload length in peer
  12248. message is less than 0:
  12249. * src/PeerConnection.cc:
  12250. (receiveMessage): Fixed the bug.
  12251. * src/PeerMessageUtil.cc
  12252. (checkLength): Throw an exception if length is less than or equals to
  12253. 0.
  12254. To add new interfaces to Base64 encoding/decoding:
  12255. * src/Base64.h
  12256. (part_encode): Changed the method signature.
  12257. (encode): New function(overload).
  12258. (decode): New function(overload).
  12259. * src/Base64.cc
  12260. (part_encode): Rewritten.
  12261. (encode): Rewritten.
  12262. (encode): New function(overload).
  12263. To prevent a peer to download same piece if there is an error in
  12264. checksum:
  12265. * src/PieceMessage.cc
  12266. (receivedAction): Call peerInteraction->abortPiece().
  12267. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12268. To fix the bug that causes same have message is sent many times to
  12269. a single peer.
  12270. * src/Time.cc
  12271. (isNewer): Use Util::difftv().
  12272. * src/Util.cc
  12273. (difftv): Added a cast to (long long int).
  12274. * src/TorrentMan.cc
  12275. (advertisePiece): Use push_front.
  12276. (getAdvertisedPieceIndexes): A performance improvement was made.
  12277. To fix the bug that sends tracker requests without a sleep interval
  12278. when the number of connections is less than 15.
  12279. * src/TrackerWatcherCommand.cc
  12280. (execute): Now the number of connections is not a factor to decide
  12281. whether or not a tracker request should be sent or not.
  12282. * src/Time.h
  12283. (setTimeInSec): New function.
  12284. * src/Time.cc
  12285. (setTimeInSec): New function.
  12286. etc.
  12287. * src/ChokeMessage.cc
  12288. (receivedAction): Removed peer->snubbing = false
  12289. * src/PeerConnection.h
  12290. (receiveHandshake): Updated doc.
  12291. * src/TorrentMan.h
  12292. (getAdvertisedPieceIndexes): Updated the method signature.
  12293. * src/TorrentMan.cc
  12294. (getAdvertisedPieceIndexes): Updated the method signature.
  12295. * src/Time.h
  12296. (getTimeInMicros): Added a cast to (long long int).
  12297. (getTimeInMillis): Added a cast to (long long int).
  12298. * Release 0.5.2
  12299. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12300. To make a listening socket non-block:
  12301. * src/SocketCore.h
  12302. (setNonBlockingMode): New function.
  12303. * src/SocketCore.cc
  12304. (setNonBlockingMode): New function.
  12305. (beginListen): Added a call to setNonBlockingMode().
  12306. (acceptConnection): Call setNonBlockingMode().
  12307. (setBlockingMode): Updated.
  12308. To handle tracker's NAT-checking:
  12309. * src/PeerConnection.cc
  12310. (receiveHandshake): 'msg' param is filled with received data and
  12311. its length is assigned to 'length' param, even if all handshake
  12312. message is not yet received.
  12313. * src/PeerInteractionCommand.cc
  12314. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12315. a new peer connects to localhost.
  12316. A call to peerInteraction->sendHandshake() was removed because
  12317. it is called from peerInteraction->receiveHandshake(true).
  12318. * src/PeerInteraction.h
  12319. (quickReplied): New variable.
  12320. (receiveHandshake): Added an argument.
  12321. * src/PeerInteraction.cc
  12322. (PeerInteraction): Added the initialization of quickReplied.
  12323. (receiveHandshake): Send handshake message as soon as the info hash
  12324. in a handshake message from a peer is correct.
  12325. To change the random part of peer id and key parameter:
  12326. * src/TorrentMan.h
  12327. (key): New variable.
  12328. * src/TorrentMan.cc
  12329. (setupInternal1): Use Util::randomAlpha() to generate random part
  12330. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12331. key is also generated by Util::randomAlpha() and it is now 8 character
  12332. long.
  12333. * src/Util.h
  12334. (randomAlpha): New function.
  12335. * src/Util.cc
  12336. (randomAlpha): New function.
  12337. * src/TrackerWatcherCommand.cc
  12338. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12339. Added no_peer_id=1.
  12340. Set snubbing flag to false when a choke message is received from a
  12341. snubbed peer.
  12342. * src/ChokeMessage.cc
  12343. (receivedAction): Set snubbing flag to false.
  12344. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12345. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12346. * src/SimpleLogger.h (writeHeader): New function.
  12347. * src/SimpleLogger.cc (writeHeader): New function.
  12348. (writeLog): Fixed the bug that causes segfaults if exception message
  12349. contains an unescaped "%" character.
  12350. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12351. when a tracker request fails.
  12352. * src/Request.cc (parseUrl): Query string is now handled properly.
  12353. * Release 0.5.1
  12354. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12355. To add Time class which represents a specific instant in time and
  12356. its precision is microseconds. Time checking procedures were rewritten
  12357. using this object.
  12358. * src/Time.h: New class.
  12359. * src/Time.cc: New class.
  12360. * src/AbstractCommand.h
  12361. (updateCheckPoint): Removed.
  12362. (isTimeoutDetected): Removed.
  12363. (checkPoint): Changed the type to Time.
  12364. (timeout): New variable.
  12365. (setTimeout): New function.
  12366. * src/AbstractCommand.cc
  12367. (AbstractCommand): Removed the initialization of checkPoint.
  12368. Added the initialization of timeout.
  12369. (updateCheckPoint): Removed.
  12370. (isTimeoutDetected): Removed.
  12371. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12372. * src/PeerChokeCommand.h
  12373. (checkPoint): Changed the type to Time.
  12374. * src/PeerChokeCommand.cc
  12375. (PeerChokeCommand): Removed the initialization of checkPoint.
  12376. (execute): Rewritten using Time object.
  12377. * src/TrackerWatcherCommand.h
  12378. (checkPoint): Changed the type to Time.
  12379. * src/TrackerWatcherCommand.cc
  12380. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12381. (execute): Rewritten.
  12382. * src/ConsoleDownloadEngine.h
  12383. (cp): Changed the type to Time.
  12384. (startup): Changed the type to Time.
  12385. * src/ConsoleDownloadEngine.cc
  12386. (initStatistics): Use cp.reset(), startup.reset().
  12387. (calculateStatistics): Rewritten using Time object.
  12388. * src/PeerAbstractCommand.h
  12389. (updateCheckPoint): Removed.
  12390. (isTimeoutDetected): Removed.
  12391. (checkPoint): Changed the type to Time.
  12392. * src/PeerAbstractCommand.cc
  12393. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12394. (updateCheckPoint): Removed.
  12395. (isTimeoutDetected): Removed.
  12396. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12397. * src/PeerInteractionCommand.cc
  12398. (PeerInteractionCommand): Removed the initializations of struct
  12399. timeval variables.
  12400. * src/PeerInteractionCommand.h
  12401. (keepAliveCheckPoint): Changed the type to Time.
  12402. (chokeCheckPoint): Changed the type to Time.
  12403. (freqCheckPoint): Changed the type to Time.
  12404. (haveCheckTime): Changed the type to Time.
  12405. * src/PeerInteractionCommand.cc
  12406. (executeInternal): Rewritten using Time object.
  12407. (detectMessageFlooding): Rewritten using Time object.
  12408. (checkLongTimePeerChoking): Rewritten using Time object.
  12409. (sendKeepAlive): Rewritten using Time object.
  12410. (checkHave): Rewritten using Time object.
  12411. * src/SleepCommand.h
  12412. (checkPoint): Changed the type to Time.
  12413. * src/SleepCommand.cc
  12414. (SleepCommand): Removed the initialization of checkPoint.
  12415. (execute): Rewritten using Time object.
  12416. * src/TorrentAutoSaveCommand.h
  12417. (checkPoint): Changed the type to Time.
  12418. * src/TorrentAutoSaveCommand.cc
  12419. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12420. (execute): Rewritten.
  12421. * src/DownloadCommand.h
  12422. (sw): Changed the type to Time.
  12423. * src/DownloadCommand.cc
  12424. (DownloadCommand): Removed the initialization of sw.
  12425. (executeInternal): Rewritten.
  12426. * src/RequestSlot.h
  12427. (dispatchedTime): Changed the type to Time.
  12428. * src/RequestSlot.cc
  12429. (RequestSlot): Removed the call to setDispatchedTime().
  12430. (setDispatchedTime): Rewirtten.
  12431. (isTimeout): Rewritten.
  12432. (getLatencyInMillis): Rewritten.
  12433. * src/TorrentDownloadEngine.h
  12434. (cp): Changed the type to Time[2].
  12435. (startup): Changed the type to Time.
  12436. * src/TorrentDownloadEngine.cc
  12437. (initStatistics): Rewritten.
  12438. (calculateStatistics): Rewritten.
  12439. * src/DownloadEngine.cc
  12440. (run): Rewritten.
  12441. To detect all attempts to connect to the tracker are failed:
  12442. * src/AbstractCommand.cc
  12443. (execute): Increment e->segmentMan->errors if a command aborted.
  12444. * src/SegmentMan.h
  12445. (errors): New variable.
  12446. * src/SegmentMan.cc
  12447. (SegmentMan): Added the initialization of errors.
  12448. (init): Added the initialization of errors.
  12449. * src/TrackerWatcherCommand.cc
  12450. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12451. request was failed.
  12452. To handle snubbed peers:
  12453. * src/PeerChokeCommand.cc
  12454. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12455. (execute): Snubbed peers don't get unchoked.
  12456. * src/PeerInteraction.h
  12457. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12458. * src/PeerInteraction.cc
  12459. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12460. back the requested 16k block in 60 seconds.
  12461. * src/PieceMessage.cc
  12462. (receivedAction): A peer's snubbed state is cleard if it sends
  12463. the requested 16k block in 60 seconds.
  12464. * src/Peer.h
  12465. (snubbing): New variable.
  12466. * src/Peer.cc
  12467. (resetStatus): Added snubbed = false.
  12468. To fix the bug that causes have message is not sent:
  12469. * src/PeerInteractionCommand.cc
  12470. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12471. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12472. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12473. * src/TorrentMan.h
  12474. (HaveEntry): New class.
  12475. (advertisePiece): Rewritten.
  12476. (getAdvertisedPieceIndexes): Rewritten.
  12477. (Haves): Changed the type.
  12478. (getAdvertisedPieceIndexes): Added an argument.
  12479. Others:
  12480. * src/TorrentMan.h
  12481. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12482. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12483. * src/TorrentMan.cc
  12484. (getPeer): Don't check the number of connections here.
  12485. (setupInternal1): Changed peerId.
  12486. * src/PeerInteractionCommand.h
  12487. (KEEP_ALIVE_INTERVAL): New definition.
  12488. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12489. * src/main.cc
  12490. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12491. * src/DownloadEngine.h: Removed unnecessary header includes.
  12492. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12493. To fix the bug that causes segfaults if a tracker returns a zero-length
  12494. list as "peers":
  12495. * src/TrackerUpdateCommand.cc
  12496. (execute): Added a check to see wether the type of peers is Data*.
  12497. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12498. * Release 0.5.0
  12499. To fix compile issue with gcc3:
  12500. * src/CancelMessage.h
  12501. (ID): Renamed as ID_t
  12502. (ID_t): New enum.
  12503. * src/RejectMessage.h
  12504. (ID): Renamed as ID_t
  12505. (ID_t): New enum.
  12506. * src/SuggestPieceMessage.h
  12507. (ID): Renamed as ID_t
  12508. (ID_t): New enum.
  12509. * src/AllowedFastMessage.h
  12510. (ID): Renamed as ID_t
  12511. (ID_t): New enum.
  12512. * src/PortMessage.h
  12513. (ID): Renamed as ID_t
  12514. (ID_t): New enum.
  12515. * src/HaveNoneMessage.h
  12516. (ID): Renamed as ID_t
  12517. (ID_t): New enum.
  12518. * src/KeepAliveMessage.h
  12519. (ID): Renamed as ID_t
  12520. (ID_t): New enum.
  12521. * src/HaveAllMessage.h
  12522. (ID): Renamed as ID_t
  12523. (ID_t): New enum.
  12524. * src/UnchokeMessage.h
  12525. (ID): Renamed as ID_t
  12526. (ID_t): New enum.
  12527. * src/BitfieldMessage.h
  12528. (ID): Renamed as ID_t
  12529. (ID_t): New enum.
  12530. * src/PieceMessage.h
  12531. (ID): Renamed as ID_t
  12532. (ID_t): New enum.
  12533. * src/RequestMessage.h
  12534. (ID): Renamed as ID_t
  12535. (ID_t): New enum.
  12536. * src/NotInterestedMessage.h
  12537. (ID): Renamed as ID_t
  12538. (ID_t): New enum.
  12539. * src/ChokeMessage.h
  12540. (ID): Renamed as ID_t
  12541. (ID_t): New enum.
  12542. * src/InterestedMessage.h
  12543. (ID): Renamed as ID_t
  12544. (ID_t): New enum.
  12545. * src/HaveMessage.h
  12546. (ID): Renamed as ID_t
  12547. (ID_t): New enum.
  12548. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12549. * src/PeerAbstractCommand.h
  12550. (beforeSocketCheck): Removed.
  12551. * src/PeerAbstractCommand.cc
  12552. Modified in order to call executeInternal() even if socket check
  12553. and upload limit check fail.
  12554. * src/PeerInteractionCommand.h
  12555. (keepAlive): Removed.
  12556. (sendKeepAlive): New function.
  12557. (checkHave): New function.
  12558. (beforeSocketCheck): Removed.
  12559. * src/PeerInteractionCommand.cc
  12560. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12561. calls to checkHave() and sendKeepAlive().
  12562. (keepAlive): Renamed to sendKeepAlive().
  12563. (sendKeepAlive): New function.
  12564. (beforeSocketCheck): Removed.
  12565. (checkHave): New function.
  12566. * src/BitfieldMan.cc
  12567. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12568. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12569. 0.
  12570. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12571. * src/TorrentMan.h
  12572. (UsedPieces): Removed.
  12573. (Pieces): New type definition.
  12574. * src/Piece.h: Updated doc.
  12575. * src/Peer.h
  12576. (totalLength): Removed.
  12577. * src/Peer.cc
  12578. (updateLatency): Fixed the latency calculation.
  12579. * src/TorrentMan.cc
  12580. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12581. than or equal to MAX_PEER_LIST_SIZE.
  12582. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12583. then return false.
  12584. (deleteOldErrorPeers): Rewritten.
  12585. (deleteUsedPiece): Fixed the miss use of STL remove.
  12586. * src/PeerInteraction.h
  12587. (Pieces): Removed.
  12588. (deleteTimeoutRequestSlot): Removed.
  12589. (deleteCompletedRequestSlot): Removed.
  12590. (checkRequestSlot): New function.
  12591. * src/PeerInteraction.cc
  12592. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12593. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12594. (checkRequestSlot): New function.
  12595. * src/DownloadEngine.cc
  12596. (run): Clear activeSockets before calling waitData().
  12597. (waitData): Removed a call to activeSockets.clear().
  12598. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12599. To attempt to handle EINTR:
  12600. * src/SocketCore.cc
  12601. (isReadable): Added EINTR handling.
  12602. (isWritable): Added EINTR handling.
  12603. To improve the performance:
  12604. * src/AbstractCommand.cc
  12605. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12606. * src/PeerInteractionCommand.h
  12607. (receiveMessage): Renamed as receiveMessages().
  12608. (receiveMessages): New function.
  12609. * src/PeerInteractionCommand.cc
  12610. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12611. () function. detectMessageFlooding() is moved here.
  12612. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12613. (). The flooding detection for have message is comment out.
  12614. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12615. Util::difftv().
  12616. (receiveMessage): Renamed as receiveMessages().
  12617. (receiveMessages): New function.
  12618. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12619. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12620. * src/SleepCommand.cc
  12621. (execute): Use Util::difftvsec() instead of Util::difftv().
  12622. * src/BitfieldMan.h
  12623. (getNthBitIndex): New function.
  12624. (hasMissingPiece): New function.
  12625. (getAllMissingIndexes): New function.
  12626. * src/BitfieldMan.cc
  12627. (countSetBit): Rewritten.
  12628. (getNthBitIndex): New function.
  12629. (getMissingIndexRandomly): Rewritten.
  12630. (hasMissingPiece): New function.
  12631. (getAllMissingIndexes): New function.
  12632. * src/TorrentMan.cc
  12633. (hasMissingPiece): New function.
  12634. (deleteUsedPiece): Rewritten using STL.
  12635. * src/PeerInteraction.cc
  12636. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12637. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12638. (addRequests): Updated the number of pending requests.
  12639. * src/PeerAbstractCommand.cc
  12640. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12641. (execute): Returns true if TorrentMan::isHalt() is true.
  12642. Corrected the condition of upload limit checking.
  12643. * src/Util.h
  12644. (countBit): New function.
  12645. * src/Util.cc
  12646. (nbits): New variable.
  12647. (countBit): New function.
  12648. * src/DownloadEngine.h
  12649. (SockCmdMap): New type definition.
  12650. (waitData): Added an argument.
  12651. (addSocket): Added an argument.
  12652. (addSocketForReadCheck): Added an argument.
  12653. (addSocketForWriteCheck): Added an argument.
  12654. * src/DownloadEngine.cc
  12655. (run): Executes only commands whose sockets are ready to read or write.
  12656. All commands are executed in every 1 second.
  12657. (waitData): Calls select() again if it returned
  12658. EINTR.
  12659. (addSocket): Saves socket and command object pair to the map.
  12660. (deleteSocket): Deletes socket and command object pair from the map.
  12661. (addSocketForReadCheck): Added an argument.
  12662. (addSocketForWriteCheck): Added an argument.
  12663. * src/DownloadCommand.cc
  12664. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12665. To send "event=stopped" to the tracker when the application finishes:
  12666. * src/PeerChokeCommand.h
  12667. (checkPoint): New variable.
  12668. * src/PeerChokeCommand.cc
  12669. (PeerChokeCommand): Added the initialization of checkPoint.
  12670. (execute): The interval check is now done by checkPoint, not
  12671. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12672. * src/TorrentMan.h
  12673. (halt): New function.
  12674. (hasMissingPiece): New function.
  12675. (isHalt): New function.
  12676. (setHalt): New function.
  12677. * src/TorrentMan.cc
  12678. (TorrentMan): Added the initialization of halt.
  12679. * src/TorrentAutoSaveCommand.h
  12680. (checkPoint): New variable.
  12681. * src/PeerListenCommand.cc
  12682. (execute): Returns true if TorrentMan::isHalt() is true.
  12683. * src/main.cc
  12684. (setSignalHander): Added flags argument.
  12685. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12686. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12687. Removed printDownloadAbortMessage() after torrent downloading loop.
  12688. * src/TorrentAutoSaveCommand.cc
  12689. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12690. (execute): Returns true if TorrentMan::isHalt() is true.
  12691. The interval check is now done by checkPoint, not SleepCommand.
  12692. * src/TrackerWatcherCommand.cc
  12693. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12694. event=stopped.
  12695. * src/TrackerUpdateCommand.cc
  12696. (prepareForRetry): Do not use SleepCommand here.
  12697. (execute): Returns true if TorrentMan::isHalt() is true.
  12698. Others:
  12699. * src/TorrentMan.cc
  12700. (getMissingPieceIndex): Updated log message.
  12701. * src/PeerInteraction.cc
  12702. (createPeerMessag): Updated log message.
  12703. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12704. To add the ability to download several pieces in mix in a command and
  12705. increase the number of request slots according to request-cancel
  12706. latency:
  12707. * src/PeerInteractionCommand.cc
  12708. (executeInternal): The number of messages to be received at a time
  12709. is increased from 10 to 50.
  12710. * src/LogFactory
  12711. (getInstance): Added NullLogger.
  12712. * src/NullLogger.h: New class.
  12713. * src/BitfieldMan.h
  12714. (getMissingIndex): New function.
  12715. * src/BitfieldMan.cc
  12716. (getMissingIndex): New function.
  12717. * src/TorrentMan.h
  12718. (checkOutPiece): New function.
  12719. (getMissingPieceIndex): New function.
  12720. (getMissingFastPieceIndex): New function.
  12721. (getMissingFastPiece): New function.
  12722. * src/TorrentMan.cc
  12723. (updatePiece): Rewritten using STL.
  12724. (syncPiece): Rewritten using STL.
  12725. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12726. checkOutPiece().
  12727. (getMissingPieceIndex): New function.
  12728. (getMissingFastPieceIndex): New function.
  12729. (getMissingFastPiece): New function.
  12730. (checkOutPiece): New function.
  12731. * src/PeerInteraction.h
  12732. (Pieces): New type definition.
  12733. (piece): Removed.
  12734. (pieces): New variable.
  12735. (getNewPieceAndSendInterest): Added the "piece" argument.
  12736. (abortPiece): Added the "piece" argument.
  12737. (abortAllPieces): New function.
  12738. (isInRequestSlot): New function.
  12739. (hasDownloadPiece): Added the "index" argument.
  12740. (setDownloadPiece): Removed.
  12741. (getDownloadPiece): Added the "index" argument.
  12742. (updatePiece): New function.
  12743. (createRequestMessage): Added the "index" argument.
  12744. * src/PeerInteraction.cc
  12745. (onChoked): Rewritten.
  12746. (abortPiece): Rewirtten.
  12747. (abortAllPieces): New function.
  12748. (deleteTimeoutRequestSlot): Rewritten.
  12749. Clarified code a little bit.
  12750. (deleteCompletedRequestSlot): Rewritten.
  12751. (isInRequestSlot): New function.
  12752. (syncPiece): Rewritten.
  12753. (updatePiece): New function.
  12754. (getNewPieceAndSendInterest): Rewritten.
  12755. (addRequests): Rewritten.
  12756. (getDownloadPiece): Rewritten.
  12757. (hasDownloadPiece): Rewritten.
  12758. (createRequestMessage): Added the "index" argument.
  12759. * src/common.h
  12760. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12761. (DIV_FLOOR): New definition.
  12762. * src/PieceMessage.cc
  12763. (receivedAction): Update request-piece latency here.
  12764. * src/RequestSlot.h
  12765. (getLatencyInMillis): New function.
  12766. * src/RequestSlot.cc
  12767. (isTimeout): Rewritten using getLatencyInMillis.
  12768. (getLatencyInMillis): New function.
  12769. * src/Piece.h
  12770. (operator==): New function.
  12771. (getMissingBlockIndex): New function.
  12772. * src/Piece.cc
  12773. (operator==): New function.
  12774. (getMissingBlockIndex): New function.
  12775. * src/Peer.h
  12776. (DEFAULT_LATENCY): New definition.
  12777. (latency): New variable.
  12778. (updateLatency): New function.
  12779. (getLatency): New function.
  12780. * src/Peer.cc
  12781. (resetStatus): Reset latecy.
  12782. (updateLatency): New function.
  12783. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12784. * src/SocketCore.cc
  12785. (isReadable): Added secure to the condition.
  12786. * src/HttpConnection.cc
  12787. (receiveResponse): Fixed a bug that causes no response header
  12788. exception.
  12789. * src/Peer.h
  12790. (getFastSet): Fixed the return value type.
  12791. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12792. To remove a wait from download loop:
  12793. * src/DownloadEngine.cc
  12794. (run): Comment out shortSleep.
  12795. To rewrite the message handling:
  12796. * src/SimplePeerMessage.h: New class.
  12797. * src/SimplePeerMessage.cc: New class.
  12798. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12799. (msg): New variable.
  12800. (create): New function.
  12801. (send): Removed.
  12802. (getMessage): New function.
  12803. (getMessageLength): New function.
  12804. * src/CancelMessage.cc
  12805. (create): New function.
  12806. (receivedAction): Replaced deleteRequestMessageInQueue with
  12807. rejectPieceMessageInQueue.
  12808. (send): Removed.
  12809. (getMessage): New function.
  12810. (getMessageLength): New function.
  12811. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12812. (msg): New variable.
  12813. (msgLength): New variable.
  12814. (~BitfieldMessage): Deleted msg.
  12815. (send): Removed.
  12816. (getMessage): New function.
  12817. (getMessageLength): New function.
  12818. * src/BitfieldMessage.cc
  12819. (create): New function.
  12820. (send): Removed.
  12821. (getMessage): New function.
  12822. (getMessageLength): New function.
  12823. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12824. (msg): New variable.
  12825. (sendPredicate): New function.
  12826. (onSendComplete): New function.
  12827. (send): Removed.
  12828. (getMessage): New function.
  12829. (getMessageLength): New function.
  12830. (create): New function.
  12831. * src/ChokeMessage.cc
  12832. (create): New function.
  12833. (send): Removed.
  12834. (sendPredicate): New function.
  12835. (getMessage): New function.
  12836. (getMessageLength): New function.
  12837. (onSendComplete): New function.
  12838. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12839. (msg): New variable.
  12840. (send): Removed.
  12841. (getMessage): New function.
  12842. (getMessageLength): New function.
  12843. * src/KeepAliveMessage.cc
  12844. (send): Removed.
  12845. (getMessage): New function.
  12846. (getMessageLength): New function.
  12847. * src/PortMessage.h
  12848. (create): New function.
  12849. (receivedAction): Updated log message.
  12850. * src/PortMessage.cc: New file.
  12851. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12852. (msg): New variable.
  12853. (sendPredicate): New function.
  12854. (onSendComplete): New function.
  12855. (create): New function.
  12856. (send): Removed.
  12857. (getMessage): New function.
  12858. (getMessageLength): New function.
  12859. * src/UnchokeMessage.cc
  12860. (create): New function.
  12861. (send): Removed.
  12862. (sendPredicate): New function.
  12863. (getMessage): New function.
  12864. (getMessageLength): New function.
  12865. (onSendComplete): New function.
  12866. * src/PieceMessage.h
  12867. (leftPieceDataLength): Removed.
  12868. (leftDataLength): New variable.
  12869. (headerSend): New variable.
  12870. (pendingCount): New variable.
  12871. (msgHeader): New variable.
  12872. (sendPieceData): New function.
  12873. (incrementPendingCount): New function.
  12874. (isPendingCountMax): New function.
  12875. (create): New function.
  12876. (getMessageHeader): New function.
  12877. (getMessageHeaderLength): New function.
  12878. * src/PieceMessage.cc
  12879. (create): New function.
  12880. (getMessageHeader): New function.
  12881. (getMessageHeaderLength): New function.
  12882. (send): Rewritten.
  12883. (sendPieceData): New function.
  12884. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12885. (msg): New variable.
  12886. (create): New function.
  12887. (getMessage): New function.
  12888. (getMessageLength): New function.
  12889. * src/HaveMessage.cc
  12890. (create): New function.
  12891. (send): Removed.
  12892. (sendPieceData): New function.
  12893. (getMessage): New function.
  12894. (getMessageLength): New function.
  12895. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12896. (msg): New variable.
  12897. (create): New function.
  12898. (send): Removed.
  12899. (getMessage): New function.
  12900. (getMessageLength): New function.
  12901. * src/RequestMessage.cc
  12902. (create): New function.
  12903. (receivedAction): Added the handling of fast extension.
  12904. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12905. (send): Removed.
  12906. (getMessage): New function.
  12907. (getMessageLength): New function.
  12908. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12909. (msg): New variable.
  12910. (sendPredicate): New function.
  12911. (onSendComplete): New function.
  12912. (create): New function.
  12913. (getMessage): New function.
  12914. (getMessageLength): New function.
  12915. * src/InterestedMessage.cc
  12916. (create): New function.
  12917. (send): Removed.
  12918. (sendPieceData): New function.
  12919. (getMessage): New function.
  12920. (getMessageLength): New function.
  12921. (onSendComplete): New function.
  12922. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12923. (msg): New variable.
  12924. (sendPieceData): New function.
  12925. (onSendComplete): New function.
  12926. (create): New function.
  12927. (send): Removed.
  12928. (getMessage): New function.
  12929. (getMessageLength): New function.
  12930. * src/NotInterestedMessage.cc
  12931. (create): New function.
  12932. (send): Removed.
  12933. (sendPredicate): New function.
  12934. (getMessage): New function.
  12935. (getMessageLength): New function.
  12936. (onSendComplete): New function.
  12937. * src/AllowedFastMessage.h: New class.
  12938. * src/AllowedFastMessage.cc: New class.
  12939. * src/RejectMessage.h: New class.
  12940. * src/RejectMessage.cc: New class.
  12941. * src/SuggestPieceMessage.h: New class.
  12942. * src/SuggestPieceMessage.cc: New class.
  12943. * src/HaveAllMessage.h: New class.
  12944. * src/HaveAllMessage.cc: New class.
  12945. * src/HaveNoneMessage.h: New class.
  12946. * src/HaveNoneMessage.cc: New class.
  12947. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12948. (msg): New variable.
  12949. (reserved): New variable.
  12950. (create): New function.
  12951. (getId): New function.
  12952. (receivedAction): New function.
  12953. (getMessage): New function.
  12954. (getMessageLength): New function.
  12955. (isFastExtensionSupported): New function.
  12956. * src/HandshakeMessage.cc
  12957. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12958. (create): New function.
  12959. (getMessage): New function.
  12960. (getMessageLength): New function.
  12961. (toString): Added the output of reserved field.
  12962. (check): Added const qualifier.
  12963. (isFastExtensionSupported): New function.
  12964. * src/PeerMessageUtil.h
  12965. (createChokeMessage): Removed.
  12966. (createUnchokeMessage): Removed.
  12967. (createInterestedMessage): Removed.
  12968. (createNotInterestedMessage): Removed.
  12969. (createHaveMessage): Removed.
  12970. (createBitfieldMessage): Removed.
  12971. (createRequestMessage): Removed.
  12972. (createCancelMessage): Removed.
  12973. (createPieceMessage): Removed.
  12974. (createPortMessage): Removed.
  12975. (createChokeMessage): Removed.
  12976. (createUnchokeMessage): Removed.
  12977. (createInterestedMessage): Removed.
  12978. (createNotInterestedMessage): Removed.
  12979. (createHaveMessage): Removed.
  12980. (createBitfieldMessage): Removed.
  12981. (createRequestMessage): Removed.
  12982. (createCancelMessage): Removed.
  12983. (createPieceMessage): Removed.
  12984. (createKeepAliveMessage): Removed.
  12985. (createHandshakeMessage): Removed.
  12986. (setIntParam): New function.
  12987. (createPeerMessageString): New function.
  12988. * src/PeerMessageUtil.cc
  12989. (createChokeMessage): Removed.
  12990. (createUnchokeMessage): Removed.
  12991. (createInterestedMessage): Removed.
  12992. (createNotInterestedMessage): Removed.
  12993. (createHaveMessage): Removed.
  12994. (createBitfieldMessage): Removed.
  12995. (createRequestMessage): Removed.
  12996. (createCancelMessage): Removed.
  12997. (createPieceMessage): Removed.
  12998. (createPortMessage): Removed.
  12999. (createRequestMessage): Removed.
  13000. (createCancelMessage): Removed.
  13001. (createPieceMessage): Removed.
  13002. (createHaveMessage): Removed.
  13003. (createChokeMessage): Removed.
  13004. (createUnchokeMessage): Removed.
  13005. (createInterestedMessage): Removed.
  13006. (createNotInterestedMessage): Removed.
  13007. (createBitfieldMessage): Removed.
  13008. (createKeepAliveMessage): Removed.
  13009. (createHandshakeMessage): Removed.
  13010. (setIntParam): New function.
  13011. (createPeerMessageString): New function.
  13012. * src/PeerConnection.h
  13013. (peer): Removed.
  13014. (torrentMan): Removed.
  13015. (createNLengthMessage): Removed.
  13016. (setIntParam): Removed.
  13017. (writeOutgoingMessageLog): Removed all overloaded functions.
  13018. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13019. (sendMessage): New function.
  13020. (sendHandshake): Removed.
  13021. (sendKeepAlive): Removed.
  13022. (sendChoke): Removed.
  13023. (sendUnchoke): Removed.
  13024. (sendInterested): Removed.
  13025. (sendNotInterested): Removed.
  13026. (sendHave): Removed.
  13027. (sendBitfield): Removed.
  13028. (sendRequest): Removed.
  13029. (sendPiece): Removed.
  13030. (sendPieceHeader): Removed.
  13031. (sendPieceData): Removed.
  13032. (sendCancel): Removed.
  13033. (getPeer): Removed.
  13034. * src/PeerConnection.cc
  13035. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13036. (sendHandshake): Removed.
  13037. (sendKeepAlive): Removed.
  13038. (createNLengthMessage): Removed.
  13039. (setIntParam): Removed.
  13040. (writeOutgoingMessageLog): Removed all overloaded functions.
  13041. (sendChoke): Removed.
  13042. (sendUnchoke): Removed.
  13043. (sendInterested): Removed.
  13044. (sendNotInterested): Removed.
  13045. (sendHave): Removed.
  13046. (sendBitfield): Removed.
  13047. (sendRequest): Removed.
  13048. (sendPiece): Removed.
  13049. (sendPieceHeader): Removed.
  13050. (sendPieceData): Removed.
  13051. (sendMessage): New function.
  13052. (sendCancel): Removed.
  13053. * src/PeerInteractionCommand.cc
  13054. (PeerInteractionCommand): Call setUploadLimit.
  13055. (executeInternal): Call setUploadLimit.
  13056. Added the handling of "inProgress" state of handshake message.
  13057. Call sendBitfield() or sendAllowdFast() instead of deprecated
  13058. sendNow().
  13059. (keepAlive): Call addMessage and sendMessage instead of deprecated
  13060. sendNow().
  13061. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  13062. * src/TorrentMan.h
  13063. (PEER_ID_LENGTH): New definition.
  13064. (hasAllPieces): New function.
  13065. * src/TorrentMan.cc
  13066. (getMissingPiece): Added the handling of fast extension.
  13067. (cancelPiece): Call updatePiece().
  13068. (hasAllPieces): New function.
  13069. * src/PeerInteraction.h
  13070. (fastSet): New variable.
  13071. (getNewPieceAndSendInterest): Changed the return type to void.
  13072. (send): Renamed as sendMessages.
  13073. (deleteAllRequestSlot): Removed.
  13074. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13075. (cancelAllRequest): Removed all overloaded functions.
  13076. (deleteAllRequestSlot): Removed.
  13077. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13078. (rejectPieceMessageInQueue): New function.
  13079. (rejectAllPieceMessageInQueue): New function.
  13080. (onChoked): New function.
  13081. (isSendingMessageInProgress): New function.
  13082. (getCorrespondingRequestSlot): Changed its arguments.
  13083. (isInFastSet): New function.
  13084. (addFastSetIndex): New function.
  13085. (addRequests): New function.
  13086. (sendNow): Removed.
  13087. (trySendNow): Removed.
  13088. (sendBitfield): New function.
  13089. (sendAllowdFast): New function.
  13090. (createHaveAllMessage): New function.
  13091. (createHaveNoneMessage): New function.
  13092. (createRejectMessage): New function.
  13093. (createAllowedFastMessage): New function.
  13094. * src/PeerInteraction.cc
  13095. (send): Renamed as sendMessages.
  13096. (sendMessages): New function.
  13097. (MsgPushBack): New class.
  13098. (isSendingMessageInProgress): New function.
  13099. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13100. (rejectAllPieceMessageInQueue): New function.
  13101. Added the handling of fast extension.
  13102. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13103. (rejectPieceMessageInQueue): New function.
  13104. Added the handling of fast extension.
  13105. (deleteRequestSlot): Replaced for loop with std::find.
  13106. (onChoked): New function.
  13107. (deleteAllRequestSlot): Removed.
  13108. (abortPiece): Rewirtten.
  13109. (deleteTimeoutRequestSlot): Updated log messages.
  13110. (getCorrespondingRequestSlot): Changed its arguments.
  13111. (cancelAllRequest): Removed all overloaded functions.
  13112. (receiveHandshake): Added the check to see whether an incoming peer
  13113. supports fast extension.
  13114. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13115. PeerMessageUtil.
  13116. (createPeerMessage): Use create() of each message class instead of
  13117. PeerMessageUtil.
  13118. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13119. AllowedFastMessage were added.
  13120. (getNewPieceAndSendInterest): Changed its return value type to void.
  13121. Added the handling of fast extension.
  13122. (addRequests): New function.
  13123. (sendNow): Removed.
  13124. (sendHandshake): Rewritten.
  13125. (trySendNow): Removed.
  13126. (sendBitfield): New function.
  13127. (sendAllowdFast): New function.
  13128. (isInFastSet): New function.
  13129. (addFastSetIndex): New function.
  13130. (createRequestMessage): Use RequestMessage::create instead of
  13131. PeerMessageUtil.
  13132. (createCancelMessage): Use CancelMessage::create instead of
  13133. PeerMessageUtil.
  13134. (createPieceMessage): Use PieceMessage::create instead of
  13135. PeerMessageUtil.
  13136. (createHaveMessage): Use HaveMessage::create instead of
  13137. PeerMessageUtil.
  13138. (createChokeMessage): Use ChokeMessage::create instead of
  13139. PeerMessageUtil.
  13140. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13141. PeerMessageUtil.
  13142. (createInterestedMessage): Use InterestedMessage::create instead of
  13143. PeerMessageUtil.
  13144. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13145. of PeerMessageUtil.
  13146. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13147. PeerMessageUtil.
  13148. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13149. PeerMessageUtil.
  13150. (createHaveAllMessage): New function.
  13151. (createHaveNoneMessage): New function.
  13152. (createRejectMessage): New function.
  13153. (createAllowedFastMessage: New function.
  13154. * src/Util.h
  13155. (sha1Sum): New function.
  13156. (computeFastSet): New function.
  13157. * src/Util.cc
  13158. (sha1Sum): New function.
  13159. (computeFastSet): New function.
  13160. * src/Peer.h
  13161. (fastExtensionEnabled): New variable.
  13162. (fastSet): New variable.
  13163. (setAllBitfield): New function.
  13164. (setFastExtensionEnabled): New function.
  13165. (isFastExtensionEnabled): New function.
  13166. (addFastSetIndex): New function.
  13167. (getFastSet): New function.
  13168. (isInFastSet): New function.
  13169. (countFastSet): New function.
  13170. * src/Peer.cc
  13171. (isInFastSet): New function.
  13172. (addFastSetIndex): New function.
  13173. (setAllBitfield): New function.
  13174. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13175. sockets.
  13176. * src/PeerAbstractCommand.cc
  13177. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13178. and uploadLimit.
  13179. (execute): Changed the procedure of checking sockets. The upload speed
  13180. checking were added.
  13181. (setUploadLimit): New function.
  13182. (setUploadLimitCheck): New function.
  13183. * src/PeerAbstractCommand.h
  13184. (setUploadLimit): New function.
  13185. (setUploadLimitCheck): New function.
  13186. (uploadLimit): New variable.
  13187. (uploadLimitCheck): New variable.
  13188. To contact a tracker regularly:
  13189. * src/TrackerWatcherCommand.h (interval): New variable.
  13190. (checkPoint): New variable.
  13191. (TrackerWatcherCommand): Added interval argument.
  13192. * src/TrackerWatcherCommand.cc
  13193. (TrackerWatcherCommand): Initialized checkPoint.
  13194. (execute): Now a tracker is contacted in every specified period.
  13195. If peer list is not needed, send request with numwant=0.
  13196. * src/TrackerUpdateCommand.cc
  13197. (execute): Updated log messages.
  13198. * src/DownloadEngine.cc
  13199. (~DownloadEngine): Removed two asserts.
  13200. (waitData): Uncommented wfds. May be a bug fix.
  13201. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13202. * src/PeerInteractionCommand.h
  13203. (checkInactiveConnection): Removed.
  13204. * src/PeerInteractionCommand.cc
  13205. (executeInternal): Removed following function calls:
  13206. detectMessageFlooding(), checkLongTimePeerChoking and
  13207. checkInactiveConnection().
  13208. (checkInactiveConnection): Removed.
  13209. (detectMessageFlooding): Removed function call to
  13210. checkInactiveConnection().
  13211. * src/PeerMessageUtil.h
  13212. (createChokeMessage): New function. Overload.
  13213. (createUnchokeMessage): New function. Overload.
  13214. (createInterestedMessage): New function. Overload.
  13215. (createNotInterestedMessage): New function. Overload.
  13216. (createHaveMessage): New function. Overload.
  13217. (createBitfieldMessage): New function. Overload.
  13218. (createRequestMessage): New function. Overload.
  13219. (createCancelMessage): New function. Overload.
  13220. (createPieceMessage): New function. Overload.
  13221. (createKeepAliveMessage): New function. Overload.
  13222. * src/PeerMessageUtil.cc
  13223. (createChokeMessage): New function. Overload.
  13224. (createUnchokeMessage): New function. Overload.
  13225. (createInterestedMessage): New function. Overload.
  13226. (createNotInterestedMessage): New function. Overload.
  13227. (createHaveMessage): New function. Overload.
  13228. (createBitfieldMessage): New function. Overload.
  13229. (createRequestMessage): New function. Overload.
  13230. (createCancelMessage): New function. Overload.
  13231. (createPieceMessage): New function. Overload.
  13232. (createKeepAliveMessage): New function. Overload.
  13233. * src/SendMessageQueue.cc
  13234. (createRequestMessage): Use PeerMessageUtil.
  13235. (createCancelMessage): Use PeerMessageUtil.
  13236. (createPieceMessage): Use PeerMessageUtil.
  13237. (createHaveMessage): Use PeerMessageUtil.
  13238. (createChokeMessage): Use PeerMessageUtil.
  13239. (createUnchokeMessage): Use PeerMessageUtil.
  13240. (createInterestedMessage): Use PeerMessageUtil.
  13241. (createNotInterestedMessage): Use PeerMessageUtil.
  13242. (createBitfieldMessage): Use PeerMessageUtil.
  13243. (createKeepAliveMessage): Use PeerMessageUtil.
  13244. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13245. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13246. * src/PeerInteraction.h: New class.
  13247. * src/PeerInteraction.cc: New class.
  13248. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13249. Each peer message has its own class.
  13250. * src/PendingMessages.h: Removed.
  13251. * src/PendingMessages.cc: Removed. The sending process was moved to
  13252. each message class.
  13253. * src/RequestSlotMan.h: Removed.
  13254. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13255. SendMessageQueue.
  13256. * src/RequestMessage.h: New class.
  13257. * src/RequestMessage.cc: New class.
  13258. * src/CancelMessage.h: New class.
  13259. * src/CancelMessage.cc: New class.
  13260. * src/BitfieldMessage.h: New class.
  13261. * src/BitfieldMessage.cc: New class.
  13262. * src/ChokeMessage.h: New class.
  13263. * src/ChokeMessage.cc: New class.
  13264. * src/KeepAliveMessage.h: New class.
  13265. * src/KeepAliveMessage.cc: New class.
  13266. * src/PortMessage.h: New class.
  13267. * src/UnchokeMessage.h: New class.
  13268. * src/UnchokeMessage.cc: New class.
  13269. * src/PieceMessage.h: New class.
  13270. * src/PieceMessage.cc: New class.
  13271. * src/HaveMessage.h: New class.
  13272. * src/HaveMessage.cc: New class.
  13273. * src/BitfieldMessage.h: New class.
  13274. * src/BitfieldMessage.cc: New class.
  13275. * src/NotInterestedMessage.h: New class.
  13276. * src/NotInterestedMessage.cc: New class.
  13277. * src/InterestedMessage.h: New class.
  13278. * src/InterestedMessage.cc: New class.
  13279. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13280. (getSendMessageQueue): New function.
  13281. (setSendMessageQueue): New function.
  13282. * src/HandshakeMessage.cc: New class.
  13283. * src/PeerConnection.h (receiveMessage): Changed return value and
  13284. arguments.
  13285. (receiveHandshake): Changed return value and arguments.
  13286. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13287. here.
  13288. (receiveHandshake): Do not create handshake class here.
  13289. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13290. (piece): Removed.
  13291. (syncPiece): Removed.
  13292. (sendInterest): Removed.
  13293. (sendMessages): Removed.
  13294. (createRequestPendingMessage): Removed.
  13295. (checkPieceHash): Removed.
  13296. (erasePieceOnDisk): Removed.
  13297. (getNewPieceAndSendInterest): Removed.
  13298. (onGotNewPice): Removed.
  13299. (onGotWrongPiece): Removed.
  13300. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13301. Removed peerConnection, piece.
  13302. (~PeerInteractionCommand): Removed peerConnection.
  13303. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13304. (syncPiece): Moved to SendMessageQueue.
  13305. (decideChoking): Removed PendingMessage.
  13306. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13307. The action after receiving peer message was moved to each message
  13308. class.
  13309. (onGotNewPice): Moved to SendMessageQueue.
  13310. (onGotWrongPiece): Moved to SendMessageQueue.
  13311. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13312. (sendInterest): Moved to SendMessageQueue.
  13313. (createRequestPendingMessage): Removed.
  13314. (sendMessages): Moved to SendMessageQueue.
  13315. (onAbort): Use SendMessageQueue::abortPiece()
  13316. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13317. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13318. (checkPieceHash): Moved to SendMessageQueue.
  13319. (erasePieceOnDisk): Moved to SendMessageQueue.
  13320. * src/PeerMessageUtil.h
  13321. (createBitfieldMessage): Removed.
  13322. (createHaveMessage): Changed return value and arguments.
  13323. (createBitfieldMessage): Changed return value and arguments.
  13324. (createRequestCancelMessage): Removed.
  13325. (createPieceMessage): Changed return value and arguments.
  13326. (getShortIntParam): New function.
  13327. (checkIndex): Changed arguments.
  13328. (checkBegin): Changed arguments.
  13329. (checkLength): Changed arguments.
  13330. (checkPieceOffset): Removed.
  13331. (checkRange): New function.
  13332. (checkBitfield): Changed arguments.
  13333. (createPeerMessage): Removed.
  13334. (checkIntegrity): Removed.
  13335. (createHandshakeMessage): Changed arguments.
  13336. (createChokeMessage): New function.
  13337. (createUnchokeMessage): New function.
  13338. (createInterestedMessage): New function.
  13339. (createNotInterestedMessage): New function.
  13340. (createRequestMessage): New function.
  13341. (createCancelMessage): New function.
  13342. (createPortMessage): New function.
  13343. * src/PeerMessageUtil.cc
  13344. (createBitfieldMessage): Removed.
  13345. (createHaveMessage): Changed return value and arguments.
  13346. (createBitfieldMessage): Changed return value and arguments.
  13347. (createRequestCancelMessage): Removed.
  13348. (createPieceMessage): Changed return value and arguments.
  13349. (getShortIntParam): New function.
  13350. (checkIndex): Changed arguments.
  13351. (checkBegin): Changed arguments.
  13352. (checkLength): Changed arguments.
  13353. (checkPieceOffset): Removed.
  13354. (checkRange): New function.
  13355. (checkBitfield): Changed arguments.
  13356. (createPeerMessage): Removed.
  13357. (checkIntegrity): Removed.
  13358. (createHandshakeMessage): Changed arguments.
  13359. (createChokeMessage): New function.
  13360. (createUnchokeMessage): New function.
  13361. (createInterestedMessage): New function.
  13362. (createNotInterestedMessage): New function.
  13363. (createRequestMessage): New function.
  13364. (createCancelMessage): New function.
  13365. (createPortMessage): New function.
  13366. * src/PeerMessage.h
  13367. (id): Removed.
  13368. (index): Removed.
  13369. (begin): Removed.
  13370. (length): Removed.
  13371. (bitfield): Removed.
  13372. (bitfieldLength): Removed.
  13373. (block): Removed.
  13374. (blockLength): Removed.
  13375. (inProgress): New variable.
  13376. (cuid): New variable.
  13377. (peer): New variable.
  13378. (sendMessageQueue): New variable.
  13379. (logger): New variable.
  13380. (setBitfield): Removed.
  13381. (getBitfield): Removed.
  13382. (setBlock): Removed.
  13383. (getBlock): Removed.
  13384. (getBitfieldLength): Removed.
  13385. (getBlockLength): Removed.
  13386. (isInProgress): New function.
  13387. (toString): Made pure virtual.
  13388. (check): New function.
  13389. (send): New function.
  13390. (receivedAction): New function.
  13391. (getId): Made pure virtual.
  13392. (setId): Removed.
  13393. (getIndex): Removed.
  13394. (setIndex): Removed.
  13395. (getBegin): Removed.
  13396. (setBegin): Removed.
  13397. (getLength): Removed.
  13398. (setLength): Removed.
  13399. (getCuid): New function.
  13400. (setCuid): New function.
  13401. (getPeer): New function.
  13402. (setPeer): New function.
  13403. (getSendMessageQueue): New function.
  13404. (setSendMessageQueue): New function.
  13405. (ID): Removed.
  13406. * src/PeerMessage.cc
  13407. (setBitfield): Removed.
  13408. (setBlock): Removed.
  13409. (toString): Removed.
  13410. * src/TorrentMan.h
  13411. (getPieceLength): New function.
  13412. (getPieceLength): New function.
  13413. * src/SendMessageQueue.h
  13414. (REQUEST_TIME_OUT): New definition.
  13415. (RequestSlots): New definition.
  13416. (MessageQueue): New definition.
  13417. (requestSlotMan): Removed.
  13418. (pendingMessages): Removed.
  13419. (requestSlots): New variable.
  13420. (messageQueue): New variable.
  13421. (torrentMan): New variable.
  13422. (peerConnection): New variable.
  13423. (peer): New variable.
  13424. (piece): New variable.
  13425. (getNewPieceAndSendInterest): New function.
  13426. (createPeerMessage): New function.
  13427. (createHandshakeMessage): New function.
  13428. (send): Made private.
  13429. (setPeerMessageCommonProperty): New function.
  13430. (deleteAllRequestSlot): New function.
  13431. (deleteRequestMessageInQueue): New function.
  13432. (cancelAllRequest): Made private.
  13433. (cancelAllRequest): Made private.
  13434. (countRequestSlot): Made private.
  13435. (addPendingMessage): Removed.
  13436. (deletePendingPieceMessage): Removed.
  13437. (deletePendingRequestMessage): Removed.
  13438. (addMessage): New function.
  13439. (deletePieceMessageInQueue): New function.
  13440. (deleteTimeoutRequestSlot): Changed argument.
  13441. (deleteCompletedRequestSlot): Changed argument.
  13442. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13443. (getCorrespondingRequestSlot): New function.
  13444. (countPendingMessage): Removed.
  13445. (countMessageInQueue): New function.
  13446. (getTorrentMan): New function.
  13447. (getPeerConnection): New function.
  13448. (hasDownloadPiece): New function.
  13449. (getDownloadPiece): New function.
  13450. (setDownloadPiece): New function.
  13451. (syncPiece): New function.
  13452. (sendMessages): New function.
  13453. (sendNow): New function.
  13454. (trySendNow): New function.
  13455. (abortPiece): New function.
  13456. (sendHandshake): New function.
  13457. (receiveMessage): New function.
  13458. (receiveHandshake): New function.
  13459. (createRequestMessage): New function.
  13460. (createCancelMessage): New function.
  13461. (createPieceMessage): New function.
  13462. (createHaveMessage): New function.
  13463. (createChokeMessage): New function.
  13464. (createUnchokeMessage): New function.
  13465. (createInterestedMessage): New function.
  13466. (createNotInterestedMessage): New function.
  13467. (createBitfieldMessage): New function.
  13468. (createKeepAliveMessage): New function.
  13469. * src/SendMessageQueue.cc
  13470. (SendMessageQueue): Removed requestSlotMan.
  13471. Instantiated peerConnection here.
  13472. (~SendMessageQueue): Removed requestSlotMan.
  13473. Added deletion of peerConnection and the contents of messageQueue.
  13474. (send): Updated according to the change of messageQueue.
  13475. (addPendingMessage): Renamed to addMessage.
  13476. (addMessage): New function.
  13477. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13478. (deletePieceMessageInQueue): New function.
  13479. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13480. (deleteRequestMessageInQueue): New function.
  13481. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13482. here.
  13483. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13484. (...) was moved here.
  13485. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13486. moved here.
  13487. (deleteCompletedRequestSlot):
  13488. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13489. (getCorrespondingRequestSlot):
  13490. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13491. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13492. (countPendingMessage): Renamed to countMessageInQueue.
  13493. (countMessageInQueue): New function.
  13494. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13495. (receiveHandshake): New function.
  13496. (createHandshakeMessage): New function.
  13497. (receiveMessage): New function.
  13498. (createPeerMessage): New function.
  13499. (syncPiece): New function.
  13500. (getNewPieceAndSendInterest): New function.
  13501. (sendMessages): New function.
  13502. (sendNow): New function.
  13503. (trySendNow): New function.
  13504. (sendHandshake): New function.
  13505. (abortPiece): New function.
  13506. (getDownloadPiece): New function.
  13507. (getPeerMessageCommonProperty): New function.
  13508. (createRequestMessage): New function.
  13509. (createCancelMessage): New function.
  13510. (createPieceMessage): New function.
  13511. (createHaveMessage): New function.
  13512. (createChokeMessage): New function.
  13513. (createUnchokeMessage): New function.
  13514. (createInterestedMessage): New function.
  13515. (createNotInterestedMessage): New function.
  13516. (createBitfieldMessage): New function.
  13517. (createKeepAliveMessage): New function.
  13518. To add simple Content-Disposition support:
  13519. * src/HttpResponseCommand.h (determinFilename): New function.
  13520. * src/HttpResponseCommand.cc (executeInternal):
  13521. Use determinFilename(headers) instead of req->getFile() when comparing
  13522. filename.
  13523. (determinFilename): New function.
  13524. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13525. req->getFile().
  13526. (handleOtherEncoding): Use determinFilename(headers) instead of
  13527. req->getFile().
  13528. * src/Util.h (getContentDispositionFilename): New function.
  13529. * src/Util.cc (getContentDispositionFilename): New function.
  13530. * src/LogFactory.h (release): New function.
  13531. * src/LogFactory.cc (release): New function.
  13532. To fix a bug that causes out-of-bound exception when HTTP status
  13533. line is wrong:
  13534. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13535. size.
  13536. * src/common.h (Deleter): New class.
  13537. * src/SegmentMan.cc
  13538. (~SegmentMan): Added deletion of splitter and diskWriter.
  13539. * src/DownloadEngine.h
  13540. (Commands): Use deque.
  13541. (clearQueue): New function.
  13542. * src/DownloadEngine.cc
  13543. (~DownloadEngine): Added deletion of segmentMan.
  13544. (cleanQueue): New function.
  13545. * src/TorrentDownloadEngine.h
  13546. (TorrentDownloadEngine): The implementation was moved to
  13547. TorrentDownloadEngine.cc.
  13548. (~TorrentDownloadEngine): The implementation was moved to
  13549. TorrentDownloadEngine.cc.
  13550. * src/TorrentDownloadEngine.cc
  13551. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13552. * src/main.cc
  13553. (clearRequest): Removed.
  13554. (handler): Added deletion of e.
  13555. (torrentHandler): Added deletion of te.
  13556. (main): Do not share splitter.
  13557. Use Deleter instead of clearRequest.
  13558. Deletion of classes were updated.
  13559. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13560. * src/main.cc (main): Fixed typo.
  13561. * src/message.h: Fixed typo.
  13562. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13563. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13564. To add --select-file command-line option:
  13565. * src/Util.cc
  13566. (unfoldRange): New function.
  13567. (getNum): New function.
  13568. (unfoldSubRange): New function
  13569. * src/main.cc
  13570. (showUsage): Added help message.
  13571. (main): Added --select-file command-line option. Updated the layout of
  13572. file listing.
  13573. * src/common.h
  13574. (Integers): New definition.
  13575. * src/SocketCore.cc
  13576. (writeData): Removed timeout argument.
  13577. (readData): Removed timeout argument.
  13578. (peekData): Removed timeout argument.
  13579. * src/Socket.cc
  13580. (writeData): Removed timeout argument.
  13581. (readData): Removed timeout argument.
  13582. (peekData): Removed timeout argument.
  13583. * Release 0.4.1
  13584. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13585. To deploy upload rate based choking algorithm:
  13586. * src/PeerInteractionCommand.cc
  13587. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13588. peer currently used.
  13589. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13590. download completes. Simplified.
  13591. (receiveMessage): Updated.
  13592. * src/TorrentMan.h
  13593. (activePeers): New variable.
  13594. (addActivePeer): New function.
  13595. (getActivePeers): New function.
  13596. (deleteActivePeer): New function.
  13597. * src/TorrentMan.cc
  13598. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13599. * src/PeerAbstractCommand.cc
  13600. (onAbort): Use peer->resetStatus().
  13601. * src/main.cc
  13602. (PeerChokeCommand.h): Included.
  13603. (main): Added the instance of ChokingCommand to the command queue.
  13604. * src/Peer.h
  13605. (amChoking): Renamed from amChocking
  13606. (chokingRequired): New variable.
  13607. (optUnchoking): New variable.
  13608. (deltaUpload): New variable.
  13609. (deltaDownload): New variable.
  13610. (addDeltaUpload): New function.
  13611. (resetDeltaUpload): New function.
  13612. (addDeltaDownload): New function.
  13613. (resetDeltaDownload): New function.
  13614. (addPeerUpload): Added a call to addDeltaUpload.
  13615. (addPeerDownload): Added a call to addDeltaDownload.
  13616. * src/Peer.cc
  13617. (shouldBeChoking): Renamed from shouldChoke.
  13618. (resetStatus): New function.
  13619. * src/PeerChokeCommand.h: New class.
  13620. * src/PeerChokeCommand.cc: New class.
  13621. To add lazy upload speed limiter:
  13622. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13623. statistics calculation to TorrentDownloadEngine.
  13624. * src/TorrentConsoleDownloadEngine.cc
  13625. (sendStatistics): Renamed from printStatistics.
  13626. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13627. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13628. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13629. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13630. calculation.
  13631. (sendStatistics): New function as pure virtual function.
  13632. (getUploadSpeed): New function.
  13633. * src/TorrentDownloadEngine.cc
  13634. (initStatistics): New function.
  13635. (calculateSpeed): New function.
  13636. (calculateStatistics): New function.
  13637. * src/SendMessageQueue.h
  13638. (uploadLength): New variable.
  13639. (send): Added an argument.
  13640. (setUploadLimit): New function.
  13641. (getUploadLimit): New function.
  13642. * src/SendMessageQueue.cc
  13643. (send): Added upload speed limiter.
  13644. * src/prefs.h
  13645. (PREF_UPLOAD_LIMIT): New definition.
  13646. * src/PeerInteractionCommand.cc
  13647. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13648. * src/main.cc
  13649. (main): Added --upload-limit option
  13650. For bug fixes:
  13651. * src/main.cc
  13652. (showUsage): Corrected --listen-port help
  13653. Other changes:
  13654. * src/TorrentMan.cc
  13655. (getPeer): Return nullPeer if connection is grather than
  13656. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13657. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13658. To add some useful information to the exception message:
  13659. * src/SocketCore.cc : Updated messages.
  13660. * src/SegmentMan.cc :
  13661. * src/TorrentMan.cc : Updated messages.
  13662. * src/MultiDiskWriter.cc : Updated messages.
  13663. * src/Util.cc : Updated messages.
  13664. * src/AbstractDiskWriter.cc : Updated messages.
  13665. * src/PreAllocationDiskWriter.cc : Updated messages.
  13666. * src/message.cc : Added new messages. Updated some messages.
  13667. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13668. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13669. Updated threshold from 30 to 15.
  13670. * src/AbstractDiskWriter.h (filename): New variable.
  13671. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13672. (createFile): Assigned filename.
  13673. * src/main.cc: Updated the help message for http-auth-scheme.
  13674. * Release 0.4.0
  13675. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13676. To add TrackerUpdateCommand with which replaces
  13677. CompactTrackerResponseProcessor:
  13678. * src/TrackerWatcherCommand.h (req): Removed.
  13679. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13680. if the number of peer connections are less than 30.
  13681. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13682. * src/SegmentMan.h (diskWriter): New function.
  13683. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13684. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13685. (main): Use TrackerUpdateCommand.
  13686. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13687. (req): New variable.
  13688. (setTrackerResponseProcessor): Removed.
  13689. (getTrackerResponseProcessor): Removed.
  13690. (processTrackerResponse): Removed.
  13691. * src/DownloadEngine.h (diskWriter): Removed.
  13692. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13693. to torrentMan->processTrackerResponse().
  13694. To add Util::expandBuffer:
  13695. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13696. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13697. * src/Util.h (expandBuffer): New function.
  13698. To fix the bug that causes segmentation fault when "-l ." is specified
  13699. in command-line option:
  13700. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13701. (openFile): New function.
  13702. (closeFile): New function.
  13703. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13704. (~SimpleLogger): Call closeFile();
  13705. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13706. * src/main.cc (main): Added a check to see logger is configured
  13707. properly.
  13708. To enable HTTP authentication without specifying "--http-auth-scheme"
  13709. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13710. * src/HttpConnection.cc (createRequest): Send Authorization header
  13711. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13712. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13713. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13714. * src/Peer.cc (shouldChoke): Updated algorithm.
  13715. * src/message.h (EX_AUTH_FAILED): New definition.
  13716. (EX_FILE_OPEN): New definition.
  13717. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13718. if status == 401.
  13719. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13720. if req->isTorrent == true.
  13721. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13722. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13723. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13724. (createFile): Updated message.
  13725. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13726. To add a readout of estimated remaining time to normal HTTP/FTP
  13727. downloads:
  13728. * src/ConsoleDownloadEngine.h (startup): New variable.
  13729. (startupLength): New variable.
  13730. (isStartupLengthSet): New variable.
  13731. (avgSpeed): New variable.
  13732. (eta): New variable.
  13733. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13734. estimated remaining time.
  13735. (initStatistics): Initialized newly added variables.
  13736. (calculateStatistics): Calculate average speed and estimated remaining
  13737. time.
  13738. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13739. * src/TrackerDownloadCommand.h: Removed.
  13740. * src/TrackerDownloadCommand.cc: Removed.
  13741. * src/TrackerInitCommand.h: Removed.
  13742. * src/TrackerInitCommand.cc: Removed.
  13743. * src/TrackerUpdateCommand.h: Removed.
  13744. * src/TrackerUpdateCommand.cc: Removed.
  13745. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13746. url written in TrackerInitCommand was moved here. Do not create
  13747. tracker request command if torrentMan->trackers != 0.
  13748. * src/CompactTrackerResponseProcessor.h: New class.
  13749. * src/CompactTrackerResponseProcessor.cc: New class.
  13750. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13751. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13752. Decoupled TorrentDownloadEngine from this.
  13753. * src/SegmentMan.h (init): New function.
  13754. * src/SegmentMan.cc (init): New function.
  13755. * src/TorrentMan.h (responseProcessor): New variable.
  13756. (trackers): New variable.
  13757. (setTrackerResponseProcessor): New function.
  13758. (getTrackerResponseProcessor): New function.
  13759. (processTrackerResponse): New function.
  13760. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13761. (processTrackerResponse): New function.
  13762. * src/main.cc (main): Use ByteArrayDiskWriter and
  13763. CompactTrackerResponseProcessor.
  13764. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13765. processTrackerResponse().
  13766. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13767. readout.
  13768. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13769. which indicates download has completed.
  13770. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13771. (closeFile): fd >= 0, not fd > 0
  13772. * src/main.cc (main): Added short cut for show-files.
  13773. Added short cut for torrent-file.
  13774. Added new command-line option listen-port.
  13775. Updated i18n messages.
  13776. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13777. To add LogFactory which creates singleton logger:
  13778. * src/LogFactory.h: New class.
  13779. * src/LogFactory.cc: New class.
  13780. * src/Command.h (logger): New variable.
  13781. (Constructor): Use LogFactory.
  13782. * src/AbstractCommand.cc: Use Command::logger
  13783. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13784. Use LogFactory.
  13785. * src/SegmentSplitter.h : Made logger protected.
  13786. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13787. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13788. * src/DownloadEngine.h : Made logger protected.
  13789. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13790. * src/PeerInteractionCommand.cc : Use Command::logger.
  13791. * src/HttpResponseCommand.cc : Use Command::logger.
  13792. * src/SegmentMan.h : Made logger private.
  13793. * src/TorrentMan.h : Made logger private.
  13794. * src/TorrentMan.cc : Use LogFactory.
  13795. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13796. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13797. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13798. Use LogFactory.
  13799. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13800. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13801. Use LogFactory.
  13802. * src/DownloadCommand.cc : Use Command::logger.
  13803. * src/PeerAbstractCommand.cc : Use Command::logger.
  13804. * src/PeerListenCommand.cc : Use Command::logger.
  13805. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13806. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13807. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13808. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13809. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13810. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13811. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13812. Use LogFactory.
  13813. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13814. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13815. Use LogFactory.
  13816. * src/main.cc (main): Use LogFactory.
  13817. * src/DiskAdaptor.h (logger): New variable.
  13818. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13819. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13820. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13821. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13822. parameter to a tracker request.
  13823. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13824. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13825. * src/main.cc (setSignalHander): New function.
  13826. (main): Added a handler for SIGTERM.
  13827. (handler): Updated message.
  13828. (torrentHandler): Updated message.
  13829. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13830. * src/TorrentConsoleDownloadEngine.cc
  13831. (onPartialDownloadingCompletes): Renamed as
  13832. onSelectiveDownloadingCompletes.
  13833. (onSelectiveDownloadingCompletes): Updated message.
  13834. To add DiskAdaptor which abstract DiskWriter family:
  13835. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13836. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13837. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13838. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13839. MultiDiskAdaptor.h.
  13840. (readFileEntry): Changed its arguments.
  13841. (setup): setupDiskWriter is merged into this function.
  13842. (setupDiskWriter): Removed.
  13843. (setFileFilter): New function.
  13844. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13845. made in readFileEntry.
  13846. (getFilePath): Removed.
  13847. (getTempFilePath): Removed.
  13848. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13849. (fixFilename): Removed.
  13850. (copySingleFile): Removed.
  13851. (splitMultiFile): Removed.
  13852. (deleteTempFile): Removed.
  13853. (setFileEntriesToDownload): Removed.
  13854. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13855. (isSelectiveDownloadingMode): New function.
  13856. (setAllMultiFileRequestedState): Removed.
  13857. (finishPartialDownloadingMode): Renamed as
  13858. finishSelectiveDownloadingMode.
  13859. (finishSelectiveDownloadingMode): New function.
  13860. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13861. (getSelectedTotalLength): New function.
  13862. (onDownloadComplete): Use diskAdaptor.
  13863. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13864. (Range): Removed.
  13865. (setMultiFileEntries): Renamed as setFileEntries.
  13866. (setFileEntries): New function.
  13867. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13868. (pieceLength): New variable.
  13869. * src/main.cc (printDownloadCompeleteMessage): New function.
  13870. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13871. (main): Renamed torrent-show-files to show-files.
  13872. Rewritten file contents listing.
  13873. * src/TorrentMan.h (FileEntry): Removed.
  13874. (multiFileTopDir): Removed.
  13875. (multiFileEntries): Removed.
  13876. (diskWriter): Removed.
  13877. (diskAdaptor): New variable.
  13878. * src/DefaultDiskWriter.h (totalLength): New variable.
  13879. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13880. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13881. diskWriter.
  13882. * src/TorrentConsoleDownloadEngine.h
  13883. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13884. (partialTotalLength): Renamed as selectedTotalLength.
  13885. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13886. openExistingFile, otherwise call initAndOpenFile.
  13887. (closeFile): fd > 0, not fd != 0.
  13888. * src/DirectDiskAdaptor.h: New class.
  13889. * src/DirectDiskAdaptor.cc: New class.
  13890. * src/MultiDiskAdaptor.h: New class.
  13891. * src/MultiDiskAdaptor.cc: New class.
  13892. * src/CopyDiskAdaptor.h: New class.
  13893. * src/CopyDiskAdaptor.cc: New class.
  13894. * src/DiskAdaptor.h: New class.
  13895. * src/DiskAdaptor.cc: New class.
  13896. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13897. (PREF_SHOW_FILES): New definition.
  13898. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13899. To add the ability to download multi torrent into respective files
  13900. directly:
  13901. * src/DiskWriter.h (openFile): New function.
  13902. (seek): Removed.
  13903. * src/MultiDiskWriter.h: New class.
  13904. * src/MultiDiskWriter.cc: New class.
  13905. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13906. protected.
  13907. (openFile): New function.
  13908. * src/AbstractDiskWriter.cc (openFile): New function.
  13909. * src/prefs.h (V_FALSE): New definition.
  13910. (PREF_DIRECT_FILE_MAPPING): New definition.
  13911. * src/TorrentMan.h (setupDiskWriter): New function.
  13912. (setAllMultiFileRequestedState): New function.
  13913. (onDownloadComplete): New function.
  13914. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13915. (setupDiskWriter): New function.
  13916. (getFilePath): Updated.
  13917. (getTempFilePath): Updated.
  13918. (getSegmentFilePath): Updated.
  13919. (fixFilename): Updated.
  13920. (deleteTempFile): Updated.
  13921. (setAllMultiFileRequestedState): New function.
  13922. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13923. (finishPartialDownloadingMode): Reset requested flags.
  13924. (onDownloadComplete): New function.
  13925. * src/main.cc: Added --direct-file-mapping option.
  13926. Use TorrentMan::setupDiskWriter().
  13927. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13928. onDownloadComplete().
  13929. To fix ETA bug:
  13930. * src/Util.h (difftvsec): New function.
  13931. * src/Util.cc (difftvsec): New function.
  13932. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13933. type of "elapsed" instead of long long int.
  13934. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13935. The updates of statistics takes place every 1 seconds.
  13936. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13937. (calculateSpeed): Changed its argument signature.
  13938. * src/PeerMessage.cc (toString): Fixed message.
  13939. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13940. To print ETA:
  13941. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13942. completion handling when dealing with
  13943. TorrentMan::isPartialDownloadingMode() == true.
  13944. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13945. New function.
  13946. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13947. (sessionDownloadLength): New variable.
  13948. (avgSpeed): New variable.
  13949. (eta): New variable.
  13950. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13951. new variables: eta, avgSpeed, startup.
  13952. (calculateSpeed): Calculate average speed and ETA.
  13953. (printStatistics): Added ETA.
  13954. * src/Util.h (secfmt): New function.
  13955. * src/Util.cc (secfmt): New function.
  13956. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13957. To detect "keep alive" flooding:
  13958. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13959. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13960. variable: keepAliveCount.
  13961. (detectMessageFlooding): Added "keep alive" flooding detection.
  13962. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13963. received.
  13964. To add the ability to download only specified files in multi-file
  13965. torrent:
  13966. * src/BitfieldMan.h (filterBitfield): New variable.
  13967. (filterEnabled): New variable.
  13968. (setFilterBit): New function.
  13969. (enableFilter): New function.
  13970. (disableFilter): New function.
  13971. (isFilterEnabled): New function.
  13972. (getFilteredTotalLength): New function.
  13973. (getCompletedLength): New function.
  13974. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13975. filterBitfield, filterEnabled.
  13976. (CopyConstructor): Added filterBitfield and filterEnabled.
  13977. (operator==): Added filterBitfield and filterEnabled.
  13978. (Destructor): Added filterBitfield.
  13979. (getMissingIndex): Use filterBitfield.
  13980. (getMissingUnusedIndex): Use filterBitfield.
  13981. (getFirstMissingUnusedIndex): Use filterBitfield.
  13982. (getFirstMissingUnusedIndex): Use filterBitfield.
  13983. (getAllMissingIndexes): Use filterBitfield.
  13984. (countMissingBlock): Use filterBitfield.
  13985. (countBlock): Use filterBitfield.
  13986. (setBitInternal): Added new argument on.
  13987. (setUseBit): Use setBitInternal.
  13988. (unsetUseBit): Use setBitInternal.
  13989. (setBit): Use setBitInternal.
  13990. (unsetBit): Use setBitInternal.
  13991. (isAllBitSet): Use filterBitfield.
  13992. (setFilterBit): New function.
  13993. (addFilter): New function.
  13994. (enableFilter): New function.
  13995. (disableFilter): New function.
  13996. (clearFilter): New function.
  13997. (isFilterEnabled): New function.
  13998. (getFilteredTotalLength): New function.
  13999. (getCompletedLength): New function.
  14000. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  14001. Initalized newly added variables.
  14002. [FileEntry](offset): New variable.
  14003. [FileEntry](extracted): New variable.
  14004. [FileEntry](requested): New variable.
  14005. (readFileEntry): New function.
  14006. (option): New variable.
  14007. (splitMultiFile): Removed const qualifier.
  14008. (fixFilename): Removed const qualifier.
  14009. (readFileEntryFromMetaInfoFile): New function.
  14010. (finishPartialDownloadingMode): New function.
  14011. (isPartialDownloadingMode): New function.
  14012. (setFileEntriesToDownload): New function.
  14013. (getCompletedLength): New function.
  14014. (getPartialTotalLength): New function.
  14015. * src/TorrentMan.cc (readFileEntry): New function.
  14016. (setup): Use readFileEntry. If no-preallocation option is specified,
  14017. use DefaultDiskWriter.
  14018. (readFileEntryFromMetaInfoFile): New function.
  14019. (fixFilename): Removed const qualifier.
  14020. (splitMultiFile): Removed const qualifier.
  14021. (setFileEntriesToDownload): New function.
  14022. (isPartialDownloadingMode): New function.
  14023. (finishPartialDownloadingMode): New function.
  14024. (getCompletedLength): New function.
  14025. (getPartialTotalLength): New function.
  14026. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  14027. New variable.
  14028. (partialTotalLength): New variable.
  14029. (downloadLength): New variable.
  14030. (totalLength): New variable.
  14031. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  14032. Added log.
  14033. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  14034. partialTotalLength, downloadLength, totalLength.
  14035. (calculate): Calculate downloadLength and totalLength.
  14036. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  14037. * src/main.cc (addCommand): Changed argument signature.
  14038. (main): Added new variable: args. Added new option "torrent-show-files"
  14039. "no-preallocation". Usage is not updated yet.
  14040. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14041. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  14042. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14043. Attempt to add the ability to listing file entries in a .torrent file.
  14044. This feature is not yet complete.
  14045. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  14046. * src/TorrentMan.cc (getMultiFileEntries): New function.
  14047. (getName): New function.
  14048. * src/TorrentMan.h (getMultiFileEntries): New function.
  14049. (getName): New function.
  14050. * src/main.cc (main): Use above 2 funtion.
  14051. * Release 0.3.2
  14052. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14053. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  14054. (detectMessageFlooding): Updated threshold value.
  14055. (checkLongTimePeerChoking): Updated timeout value.
  14056. (getNewPieceAndSendInterest): Added debug log.
  14057. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  14058. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  14059. (getPeer): Updated.
  14060. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  14061. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  14062. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  14063. is localhost.
  14064. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  14065. * src/PendingMessage.cc (processMessage): Not to send piece message
  14066. if peer is not interested in the pieces localhost has.
  14067. * src/Peer.cc (shouldChoke): Updated.
  14068. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14069. * src/Util.cc (isPowerOf): New function.
  14070. * src/Util.h (isPowerOf): New function.
  14071. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14072. whether or not it is power of 2.
  14073. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14074. Added new class SendMessageQueue that includes PendingMessages and
  14075. RequestSlotMan.
  14076. * src/SendMessageQueue.h: New class.
  14077. * src/SendMessageQueue.cc: New class.
  14078. * src/PendingMessage.h: Added new member variable blockIndex and its
  14079. accessors.
  14080. (createRequestMessage): Updated.
  14081. * src/PendingMessage.cc (createRequestMessage): Updated.
  14082. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14083. SendMessageQueue.
  14084. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14085. (receiveMessage): Updated with SendMessageQueue.
  14086. (deletePendingPieceMessage): Removed.
  14087. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14088. (sendInterest): Updated with SendMessageQueue.
  14089. (createRequestPendingMessage): Updated with SendMessageQueue.
  14090. (sendMessages): Updated with SendMessageQueue.
  14091. (onAbort): Updated with SendMessageQueue.
  14092. (keepAlive): Updated with SendMessageQueue.
  14093. (beforeSocketCheck): Updated SendMessageQueue.
  14094. * src/PeerInteractionCommand (sendMessages): Shuffle
  14095. missingBLockIndexes before using it.
  14096. Added its own timeout for peer connection.
  14097. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14098. setter.
  14099. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14100. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14101. Added setTimeout() call.
  14102. (executeInternal): Added setTimeout() call.
  14103. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14104. Added timeout.
  14105. (isTimeoutDetected): Updated.
  14106. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14107. option.
  14108. Added *simple* message flooding checker.
  14109. * src/PeerInteractionCommand.cc (executeInternal):
  14110. Added detectMessageFlooding() call.
  14111. (detectMessageFlooding): New function.
  14112. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14113. (beforeSocketCheck): Added detectMessageFlooding() call.
  14114. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14115. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14116. Removed deletePendingPieceMessage(), getRequestSlot(),
  14117. deleteRequestSlot(), deleteAllRequestSlot().
  14118. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14119. Added checkLongTimePeerChoking() call.
  14120. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14121. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14122. if duplicate == false.
  14123. The parameter "uploaded" and "downloaded" in the tracker request are
  14124. the size since the client sent the "started" event to the tracker.
  14125. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14126. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14127. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14128. getSessionDownloadedSize(), getSessionUploadedSize().
  14129. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14130. getSessionUploadedSize() instead of getDownloadedSize(),
  14131. getUploadedSize().
  14132. * src/PendingMessage.cc (processMessage): Do not send request message
  14133. if the peer is choking the client.
  14134. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14135. less than interval.
  14136. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14137. * configure.in: Added gnutls support. Added several CPP macros.
  14138. * m4/openssl.m4: Added.
  14139. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14140. readData(), peekData(). Added gnutls support.
  14141. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14142. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14143. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14144. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14145. Instead, added a check for whether setup method has executed
  14146. successfully.
  14147. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14148. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14149. * src/Makefile.am: Updated.
  14150. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14151. using whether OpenSSL or gcrypt, depending on the result of configure
  14152. script.
  14153. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14154. messageDigest.h.
  14155. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14156. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14157. Fixed memory leak.
  14158. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14159. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14160. Removed instantiation of TrackerInitCommand. Instead,
  14161. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14162. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14163. ENABLE_SSL.
  14164. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14165. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14166. If a piece is already acquired by another command, delete the request
  14167. slots for the piece.
  14168. * src/TrackerUpdateCommand.cc (execute):
  14169. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14170. Added a check whether peer list is null.
  14171. Fixed the bug that causes sending completed event to the tracker
  14172. several times.
  14173. * src/TrackerInitCommand.cc (execute):
  14174. Fixed the bug that causes sending completed event to the tracker
  14175. several times.
  14176. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14177. by using messageDigest.h.
  14178. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14179. * PeerConnection.cc: Replaced log message "keep-alive" with
  14180. "keep alive".
  14181. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14182. localhost long time.
  14183. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14184. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14185. at most 100 failure entry from the list. If with duplicate = false,
  14186. MAX_PEER_LIST is not checked.
  14187. * PeerListenCommand.cc: Fixed the argument order of log message.
  14188. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14189. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14190. Added warn().
  14191. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14192. Implemented warn().
  14193. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14194. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14195. * Request.h: Added AFTER_COMPLETED event.
  14196. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14197. instead of downloaded size and progress(%) after download completes.
  14198. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14199. message to the peer if it is interested in what localhost has
  14200. downloaded.
  14201. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14202. destination instead of just renaming it.
  14203. * TorrentMan.cc: Added deleteTempFile().
  14204. * PeerAbstractCommand.cc: do not stop execution after download
  14205. completes. This makes localhost a seeder.
  14206. * Util.{h,cc}: Added fileCopy().
  14207. * PeerListenCommand.cc: do not stop execution after download completes.
  14208. This makes localhost a seeder.
  14209. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14210. Added TorrentMan::deleteTempFile() to torrentHandler.
  14211. Initialized the variable dir as ".".
  14212. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14213. Deleted renameSingleFile().
  14214. Added copySingleFile(), deleteTempFile().
  14215. * DownloadEngine.h: Added virtual function afterEachIteration().
  14216. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14217. in onEndOfRun() to afterEachIteration().
  14218. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14219. true.
  14220. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14221. In rangedFileCopy(), added try-catch block to properly close file
  14222. descriptors.
  14223. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14224. Added afterEachIteration(), isFilenameFixed().
  14225. * Peer.cc: Changed choking strategy.
  14226. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14227. * TrackerInitCommand.cc: Send completed event only once.
  14228. * DownloadEngine.cc: Added a call to afterEachIteration().
  14229. * TrackerUpdateCommand.cc: Do not stop execution after download
  14230. completes.
  14231. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14232. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14233. received from a tracker.
  14234. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14235. Decreased the number of failure peers to delete to 0(just comment out
  14236. the line).
  14237. * Release 0.3.1
  14238. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14239. * PeerInteractionCommand.cc: added a call to
  14240. TorrentMan::unadvertisePiece in Destructor.
  14241. * PeerInteractionCommand.cc: make have message sent immediately
  14242. if the size of pending message queue is zero.
  14243. * TorrentMan.cc: set the maximum size of peer list to 250.
  14244. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14245. to deque.
  14246. * Util.cc: fixed rangedFileCopy.
  14247. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14248. to Constructor. Also, moved digest cleanup to Destructor.
  14249. * MetaFileUtil.cc: fixed memory leak
  14250. * replaced std::vector with std::deque.
  14251. * AbstractCommand.cc: casted timeout value to long long int.
  14252. * ChunkedEncoding.cc: fixed memory leak.
  14253. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14254. * SleepCommand.cc: casted timeout value to long long int.
  14255. * Data.cc: fixed memory leak.
  14256. * Data.cc: fixed toLLInt().
  14257. * BitfieldMan.cc: fixed memory leak.
  14258. * TorrentMan.cc: initialized storeDir to ".".
  14259. * TorrentMan.cc: fixed memory leak.
  14260. * TorrentMan.cc: corrected file paths of splitted files.
  14261. * PeerAbstractCommand.cc: casted timeout to long long int.
  14262. * main.cc: added delete(req) and delete(te->diskWriter).
  14263. * RequestSlot.cc: casted timeout value to long long int.
  14264. * Request.cc: fixed memory leak.
  14265. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14266. have the piece.
  14267. * Peer.{h,cc}: added hasPiece(int index).
  14268. * main.cc: corrected addCommand.
  14269. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14270. * BitTorrent protocol support added.
  14271. * Release 0.3.0
  14272. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14273. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14274. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14275. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14276. decoding did not work properly.
  14277. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14278. * DownloadEngine.h: included sys/time.h
  14279. * DownloadEngine.cc: remove sys/time.h
  14280. * Makefile.am (SUBDIRS): Add intl.
  14281. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14282. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14283. * main.cc: correct help message for --http-auth-scheme.
  14284. * main.cc: changed e-mail address for bug reports.
  14285. * ja.po: added japanese translation.
  14286. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14287. * SimpleLogger.cc: flush log file instead of stdout.
  14288. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14289. * main.cc: Fixed command-line option: max-tries
  14290. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14291. does not equal to seg.sp.
  14292. * DownloadCommand.cc: If EOF is got from the server and the total size
  14293. of file is not zero, then throw DlRetryEx.
  14294. * main.cc: Set the minium value of min-segment-size to 1024.
  14295. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14296. fails because of a regression since 0.2.0 release.
  14297. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14298. * HttpConnection.cc:
  14299. * common.h: defined the user agent name as macro
  14300. * DownloadEngine.{h, cc}:
  14301. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14302. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14303. * main.cc: Download complete/abort message is now generated by main.
  14304. * Makefile.am (SUBDIRS): Add m4.
  14305. (ACLOCAL_AMFLAGS): New variable.
  14306. (EXTRA_DIST): New variable.
  14307. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14308. * gettext: added gettext functionality
  14309. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14310. * AbstractCommand.cc:
  14311. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14312. unregister its cuid from SegmentMan.
  14313. * DownloadEngine.cc: .aria2 file was written when a downloading
  14314. failed with errors.
  14315. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14316. Added "User-Agent" header to CONNECT proxy request.
  14317. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14318. properly.
  14319. * Logger.h:
  14320. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14321. * ChunkedEncoding.cc: Added #include directive for strings.h
  14322. * Release 0.2.1
  14323. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14324. * Util.{h,cc}: added startsWith().
  14325. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14326. Util::endsWith().
  14327. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14328. * common.h: added #include directive of limit.h.
  14329. * DownloadEngine.cc: added #include directive of sys/time.h and
  14330. algorithm.
  14331. * Exception.h: added #include directive of stdio.h.
  14332. * AbstractCommand.h: added #include directive of sys/time.h.
  14333. * DownloadCommand.h: added #include directive of sys/time.h.
  14334. * *.h: added #include directive of common.h to all base classes.
  14335. subclasses' one was removed.
  14336. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14337. does not define these macros.
  14338. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14339. * Release 0.2.0
  14340. * main.cc:
  14341. * HttpInitiateConnectionCommand.{h,cc}:
  14342. * prefs.h:
  14343. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14344. We can now use GET command in http proxy.
  14345. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14346. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14347. that splits slowest segment of SegmentMan::commands vector.
  14348. This is the default split algorithm of aria2.
  14349. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14350. that splits first segment of SegmentMan::commands vector.
  14351. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14352. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14353. * Segment.h:
  14354. * SegmentMan.cc: Added speed field to Segment.h
  14355. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14356. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14357. * message.h: Change file size related %d to %lld.
  14358. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14359. * FtpInitiateConnectionCommand.{h,cc}:
  14360. * FtpNegotiationCommand.{h,cc}:
  14361. * FtpDownloadCommand.{h,cc}:
  14362. * FtpConnection.{h,cc}: Added FTP support
  14363. * SimpleLogger.cc: Log message now includes time information.
  14364. * main.cc: The value of --http-auth-scheme option is chagned from
  14365. 'BASIC' to 'basic'
  14366. * main.cc: Added --timeout command-line option.
  14367. * main.cc: Added --min-segment-size command-line option.
  14368. * main.cc: Added --max-retries command-line option.
  14369. * prefs.h: option string constants are now defined in prefs.h
  14370. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14371. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14372. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14373. with version 0.1.0's one.
  14374. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14375. * configure.in: Added --enable-ssl option to configure script.
  14376. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14377. cannot permit absoluteURI as Request-URI.
  14378. * HttpConnection.cc: Added Referer support.
  14379. * main.cc: Added referer command-line option.
  14380. * main.cc: Added rety-wait command-line option.
  14381. * Exception.h: Fixed formating bug in Exception::setMsg()
  14382. * SocketCore.{h,cc}:
  14383. * Socket.{h, cc}:
  14384. * Request.cc:
  14385. * InitiateConnectionCommandFactory.cc:
  14386. * HttpRequestCommand.cc: Added HTTPS support.
  14387. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14388. for SocketCore.
  14389. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14390. size is wrong
  14391. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14392. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14393. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14394. * Release 0.1.0