ChangeLog 605 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344
  1. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  2. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  3. Ukrainian translations. Thanks to all translators.
  4. * po/ru.po
  5. * po/it.po
  6. * po/da.po
  7. * po/bg.po
  8. * po/ja.po
  9. * po/uk.po
  10. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  11. Added missing src/Logger.cc
  12. * src/Logger.cc
  13. 2009-07-18 Tatsuhiro Tsujikawa <[email protected]>
  14. Rewritten Logger to avoiding constly virtual call.
  15. * src/LogFactory.cc
  16. * src/LogFactory.h
  17. * src/Logger.h
  18. * src/Makefile.am
  19. * src/Makefile.in
  20. * src/NullLogger.h: Removed.
  21. * src/SimpleLogger.cc
  22. * src/SimpleLogger.h
  23. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  24. Updated doc
  25. * src/main.cc
  26. 2009-07-17 Tatsuhiro Tsujikawa <[email protected]>
  27. Updated debug log message
  28. * src/AbstractCommand.cc
  29. * src/message.h
  30. 2009-07-16 Tatsuhiro Tsujikawa <[email protected]>
  31. Avoid to create zombie process when commands specified in
  32. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  33. X and NetBSD.
  34. * src/main.cc
  35. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  36. Fixed typo
  37. * src/usage_text.h
  38. * doc/aria2c.1.txt
  39. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  40. Documented 'errorCode' of tellStatus in man page.
  41. * doc/aria2c.1.txt
  42. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  43. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  44. This key is only available for stopped/completed downloads and its
  45. value is the error code defined in EXIT STATUS in man page.
  46. * src/XmlRpcMethodImpl.cc
  47. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  48. Fixed the bug that session download length is not updated when
  49. PeerStat is not fastest one.
  50. * src/SegmentMan.cc
  51. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  52. Updated doc.
  53. * doc/aria2c.1.txt
  54. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  55. Updated doc.
  56. * src/AbstractCommand.cc
  57. 2009-07-15 Tatsuhiro Tsujikawa <[email protected]>
  58. Handle the case when DownloadContext has no FileEntry.
  59. * src/XmlRpcMethodImpl.cc
  60. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  61. Handle the situation where struct option.name is char *.
  62. * configure.ac
  63. * src/OptionParser.cc
  64. 2009-07-14 Tatsuhiro Tsujikawa <[email protected]>
  65. Code cleanup
  66. * src/AbstractCommand.cc
  67. * src/DownloadCommand.cc
  68. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  69. Use option of each download to create AuthConfig instead of global
  70. option.
  71. * src/AuthConfigFactory.cc
  72. * src/AuthConfigFactory.h
  73. * src/FtpNegotiationCommand.cc
  74. * src/HttpRequest.cc
  75. * src/HttpRequest.h
  76. * src/HttpRequestCommand.cc
  77. * src/HttpSkipResponseCommand.cc
  78. * src/MultiUrlRequestInfo.cc
  79. * test/AuthConfigFactoryTest.cc
  80. * test/FtpConnectionTest.cc
  81. * test/HttpRequestTest.cc
  82. 2009-07-13 Tatsuhiro Tsujikawa <[email protected]>
  83. Don't call prepareForRetry(1) if all segments are ignored in
  84. SegmentMan.
  85. * src/AbstractCommand.cc
  86. * src/BitfieldMan.cc
  87. * src/BitfieldMan.h
  88. * src/SegmentMan.cc
  89. * src/SegmentMan.h
  90. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  91. Removed FileEntry::getAssociatedUris()
  92. * src/FileEntry.h
  93. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  94. Updated doc: TODO1.5 -> TODO
  95. * src/FileEntry.cc
  96. * src/HttpResponseCommand.cc
  97. 2009-07-12 Tatsuhiro Tsujikawa <[email protected]>
  98. Added assertion fileEntries.size() == 1 if BitTorrent is not
  99. involved.
  100. * src/RequestGroup.cc
  101. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  102. Eliminated duplicated filterBitfield initialization code.
  103. * src/BitfieldMan.cc
  104. * src/BitfieldMan.h
  105. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  106. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  107. relatively naive approach, though). For DownloadFailureException,
  108. we handle the case when req is null properly.
  109. * src/AbstractCommand.cc
  110. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  111. Added function returning suffix of control file to
  112. DefaultBtProgressInfoFile.
  113. * src/DefaultBtProgressInfoFile.cc
  114. * src/DefaultBtProgressInfoFile.h
  115. * src/RequestGroup.cc
  116. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  117. Documented getVersion in man page.
  118. * doc/aria2c.1.txt
  119. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  120. Documented type of offset and num for tellWaiting xml-rpc method.
  121. * doc/aria2c.1.txt
  122. 2009-07-11 Tatsuhiro Tsujikawa <[email protected]>
  123. Implemented getVersion xml-rpc method. This method returns struct
  124. which has 2 key-value pairs: "version" key is associated to the
  125. version of aria2, such as "1.5.0". "enabledFeatures" key is
  126. associated to the list of enabled features, such as "Async DNS",
  127. "BitTorrent".
  128. * src/FeatureConfig.h
  129. * src/XmlRpcMethodFactory.cc
  130. * src/XmlRpcMethodImpl.cc
  131. * src/XmlRpcMethodImpl.h
  132. * test/XmlRpcMethodTest.cc
  133. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  134. Removed TLS1.1 protocol support when aria2 is built with gnutls
  135. for compatibility issue.
  136. * src/SocketCore.cc
  137. 2009-07-09 Tatsuhiro Tsujikawa <[email protected]>
  138. Fixed compile error with openSSL
  139. * src/bittorrent_helper.cc
  140. * src/messageDigest.h
  141. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  142. Removed bad code: setting certificate type priority to key
  143. exchange priority.
  144. * src/SocketCore.cc
  145. 2009-07-07 Tatsuhiro Tsujikawa <[email protected]>
  146. Disconnect seeder if client is also in seed state.
  147. * src/BtBitfieldMessage.cc
  148. * src/BtHaveAllMessage.cc
  149. * src/BtHaveMessage.cc
  150. * src/message.h
  151. * test/BtBitfieldMessageTest.cc
  152. * test/BtHaveAllMessageTest.cc
  153. * test/BtHaveMessageTest.cc
  154. * test/MockPieceStorage.h
  155. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  156. Keep CreateRequestCommand in queue when no segment is available so
  157. that they can pick up pieces which slow BitTorrent peers are
  158. downloading.
  159. * src/AbstractCommand.cc
  160. * src/CreateRequestCommand.cc
  161. * src/CreateRequestCommand.h
  162. 2009-07-06 Tatsuhiro Tsujikawa <[email protected]>
  163. --bt-stop-timeout now only checks download speed.
  164. * src/BtStopDownloadCommand.cc
  165. * src/BtStopDownloadCommand.h
  166. * src/BtSetup.cc
  167. * src/usage_text.h
  168. * doc/aria2c.1.txt
  169. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  170. Fixed compile error regarding BUFSIZE.
  171. * src/DownloadCommand.cc
  172. * src/DownloadCommand.h
  173. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  174. Documented tellWaiting xml-rpc method in man page.
  175. * doc/aria2c.1.txt
  176. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  177. Bump up version number to 1.5.0
  178. * configure.ac
  179. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  180. Removed resolved TODO1.5
  181. * src/AbstractCommand.cc
  182. * src/DownloadCommand.cc
  183. * src/RequestGroup.cc
  184. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  185. Release pooled and in-flight Request objectsand URIResult objects
  186. in FileEntry after download completed.
  187. * src/DownloadContext.cc
  188. * src/DownloadContext.h
  189. * src/FileEntry.cc
  190. * src/FileEntry.h
  191. * src/RequestGroup.cc
  192. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  193. Set manual and source attribute in aria2c.1.txt
  194. * doc/aria2c.1.txt
  195. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  196. Documented that the default value of --use-head is 'false' in man
  197. page.
  198. * doc/aria2c.1.txt
  199. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  200. Added bt-stop-timeout option to -i list.
  201. * doc/aria2c.1.txt
  202. * src/download_helper.cc
  203. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  204. Fixed typo
  205. * doc/aria2c.1.txt
  206. * src/usage_text.h
  207. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  208. Removed peer-id-prefix option from -i list.
  209. * doc/aria2c.1.txt
  210. * src/download_helper.cc
  211. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  212. Fixed typo
  213. * doc/aria2c.1.txt
  214. * src/usage_text.h
  215. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  216. Documented --bt-stop-timeout option in man page.
  217. * doc/aria2c.1.txt
  218. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  219. Updated README regarding multi-file torrent web-seeding.
  220. * doc/README.txt
  221. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  222. Updated man page regarding multi-file torrent web-seeding.
  223. * doc/aria2c.1.txt
  224. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  225. Updated doc
  226. * src/version_usage.cc
  227. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  228. Winsock select() doesn't work if no socket is in FD_SET. To
  229. overcome this problem, a dummy socket is added to FD_SET and it is
  230. given to select().
  231. * src/SelectEventPoll.cc
  232. * src/SelectEventPoll.h
  233. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  234. Disabled --use-head option by default because --use-head=true
  235. causes problems on some web sites.
  236. * src/OptionHandlerFactory.cc
  237. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  238. Print URL List in -S option for torrent.
  239. * src/bittorrent_helper.cc
  240. * src/bittorrent_helper.h
  241. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  242. Allocate buffer in ctor of DownloadCommand.
  243. * src/DownloadCommand.cc
  244. * src/DownloadCommand.h
  245. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  246. Removed DiskAdaptor::onDownloadComplete()
  247. * src/DirectDiskAdaptor.cc
  248. * src/DirectDiskAdaptor.h
  249. * src/DiskAdaptor.h
  250. * src/MultiDiskAdaptor.cc
  251. * src/MultiDiskAdaptor.h
  252. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  253. Committed missing BtStopDownloadCommand.{cc,h}
  254. * src/BtStopDownloadCommand.cc
  255. * src/BtStopDownloadCommand.h
  256. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  257. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  258. download if the download speed is 0 and the number of seeder is 0
  259. in consecutive SEC seconds. By default, this function is disabled.
  260. * src/BtSetup.cc
  261. * src/Makefile.am
  262. * src/OptionHandlerFactory.cc
  263. * src/prefs.cc
  264. * src/prefs.h
  265. * src/usage_text.h
  266. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  267. Removed the call to DiskAdaptor::onDownloadComplete() from
  268. BtCheckIntegrityEntry and DefaultPieceStorage.
  269. * src/BtCheckIntegrityEntry.cc
  270. * src/DefaultPieceStorage.cc
  271. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  272. Commented out throw statements when number of piece is 0 to
  273. download 0 length torrent.
  274. * src/bittorrent_helper.cc
  275. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  276. Call RequestGroup::createNextCommandWithAdj() from
  277. BtFileAllocationEntry if at least one FileEntry has URI. The
  278. static function hasAssociatedUri in RequestGroup.cc is renamed as
  279. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  280. * src/BtFileAllocationEntry.cc
  281. * src/FileEntry.h
  282. * src/RequestGroup.cc
  283. 2009-07-05 Tatsuhiro Tsujikawa <[email protected]>
  284. Generate peer ID after SimpleRandomizer is initialized.
  285. * src/main.cc
  286. * src/option_processing.cc
  287. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  288. Removed unused method argument.
  289. * src/CreateRequestCommand.cc
  290. * src/RequestGroup.cc
  291. * src/RequestGroup.h
  292. * src/RequestGroupMan.cc
  293. * src/TrackerWatcherCommand.cc
  294. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  295. Made URI reusing function work.
  296. * src/CreateRequestCommand.cc
  297. * src/FileEntry.cc
  298. * src/FileEntry.h
  299. * test/FileEntryTest.cc
  300. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  301. Add formerly fastest PeerStat's sessionDownloadLength to new
  302. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  303. bytes in a session.
  304. * src/PeerStat.cc
  305. * src/SegmentMan.cc
  306. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  307. If pipelining is enabled, we can always pool socket.
  308. * src/HttpDownloadCommand.cc
  309. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  310. In a single file download, file size becomes known just after
  311. downloading, set total length to FileEntry object when download
  312. completed.
  313. * src/DownloadCommand.cc
  314. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  315. Use std::vector::reserve() for fileEntries and pieceHashes in
  316. bittorrent_helper
  317. * src/bittorrent_helper.cc
  318. 2009-07-04 Tatsuhiro Tsujikawa <[email protected]>
  319. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  320. Removed hidden option PREF_RESET_URI.
  321. * src/AbstractCommand.cc
  322. * src/OptionHandlerFactory.cc
  323. * src/prefs.cc
  324. * src/prefs.h
  325. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  326. Removed unused variable/function.
  327. * src/PeerStat.h
  328. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  329. Show first URL in Download Results if file path is not available.
  330. * src/FileEntry.h
  331. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  332. Throw exception if file path doesn't exist in FTP URL.
  333. * src/InitiateConnectionCommandFactory.cc
  334. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  335. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  336. * src/BitfieldMan.cc
  337. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  338. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  339. of PeerStat in SegmentMan. peerStats is used for calculating
  340. download speed. Therefore all active PeerStats should be in
  341. there. Another one is _fastestPeerStats and it only contains
  342. fastest PeerStat for each hostname/protocol pair. They are used
  343. for updating ServerStat.
  344. * src/DownloadCommand.cc
  345. * src/Request.h
  346. * src/RequestGroupMan.cc
  347. * src/SegmentMan.cc
  348. * src/SegmentMan.h
  349. * test/SegmentManTest.cc
  350. 2009-07-03 Tatsuhiro Tsujikawa <[email protected]>
  351. Try all available addresses returned by DNS until it gets
  352. connected in HTTP(S)/FTP download
  353. * src/AbstractCommand.cc
  354. * src/AbstractCommand.h
  355. * src/AbstractProxyRequestCommand.cc
  356. * src/AbstractProxyRequestCommand.h
  357. * src/DNSCache.h
  358. * src/DownloadEngine.cc
  359. * src/DownloadEngine.h
  360. * src/FtpInitiateConnectionCommand.cc
  361. * src/FtpInitiateConnectionCommand.h
  362. * src/FtpNegotiationCommand.cc
  363. * src/FtpNegotiationCommand.h
  364. * src/HttpInitiateConnectionCommand.cc
  365. * src/HttpInitiateConnectionCommand.h
  366. * src/HttpRequestCommand.cc
  367. * src/HttpRequestCommand.h
  368. * src/InitiateConnectionCommand.cc
  369. * src/InitiateConnectionCommand.h
  370. * test/DNSCacheTest.cc
  371. * test/Makefile.am
  372. * test/SimpleDNSCacheTest.cc
  373. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  374. Updated doc
  375. * src/download_helper.cc
  376. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  377. Refactored fieldMan ctor.
  378. * src/BitfieldMan.cc
  379. * src/BitfieldMan.h
  380. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  381. Don't print "No files to download." message if -S is given.
  382. * src/main.cc
  383. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  384. Set referer and method to newly created Request object.
  385. * src/CreateRequestCommand.cc
  386. * src/FileEntry.cc
  387. * src/FileEntry.h
  388. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  389. Removed ctor of AbstractCommand which doesn't take FileEntry.
  390. * src/AbstractCommand.cc
  391. * src/AbstractCommand.h
  392. * src/CreateRequestCommand.cc
  393. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  394. Get proxy download working
  395. * src/AbstractProxyRequestCommand.cc
  396. * src/AbstractProxyRequestCommand.h
  397. * src/AbstractProxyResponseCommand.cc
  398. * src/AbstractProxyResponseCommand.h
  399. * src/FtpInitiateConnectionCommand.cc
  400. * src/FtpTunnelRequestCommand.cc
  401. * src/FtpTunnelRequestCommand.h
  402. * src/FtpTunnelResponseCommand.cc
  403. * src/FtpTunnelResponseCommand.h
  404. * src/HttpInitiateConnectionCommand.cc
  405. * src/HttpProxyRequestCommand.cc
  406. * src/HttpProxyRequestCommand.h
  407. * src/HttpProxyResponseCommand.cc
  408. * src/HttpProxyResponseCommand.h
  409. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  410. Use SegmentMan::getSegment(cuid) for single file download.
  411. * src/AbstractCommand.cc
  412. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  413. Fixed bufSize calculation
  414. * src/DownloadCommand.cc
  415. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  416. Don't append "/" if base URI ends with "/".
  417. * src/bittorrent_helper.cc
  418. * test/url-list-multiFile.torrent
  419. 2009-07-01 Tatsuhiro Tsujikawa <[email protected]>
  420. HTTP pipelining is now working. Fixed Segmention fault in
  421. BitfieldMan's copy ctor.
  422. * src/AbstractCommand.cc
  423. * src/BitfieldMan.cc
  424. * src/BitfieldMan.h
  425. * src/DownloadCommand.cc
  426. * src/HttpDownloadCommand.cc
  427. * src/HttpRequest.cc
  428. * src/SegmentMan.cc
  429. * src/SegmentMan.h
  430. * test/BitfieldManTest.cc
  431. * test/SegmentManTest.cc
  432. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  433. Removed ServerHost. Same functionality is implemented using
  434. FileEntry's in-flight Request objects.
  435. * src/AbstractCommand.cc
  436. * src/BtDependency.cc
  437. * src/CreateRequestCommand.cc
  438. * src/FileEntry.cc
  439. * src/FileEntry.h
  440. * src/FtpNegotiationCommand.cc
  441. * src/HttpResponseCommand.cc
  442. * src/Makefile.am
  443. * src/Metalink2RequestGroup.cc
  444. * src/RequestGroup.cc
  445. * src/RequestGroup.h
  446. * src/ServerHost.cc: Removed
  447. * src/ServerHost.h: Removed
  448. * test/BtDependencyTest.cc
  449. * test/FileEntryTest.cc
  450. * test/RequestGroupTest.cc
  451. 2009-06-30 Tatsuhiro Tsujikawa <[email protected]>
  452. Rewritten PeerStat handling. In the previous implementation,
  453. faster command tries to find slower command. In this new
  454. implementation, slower command tries to find faster command.
  455. PeerStat is now created in each HTTP/FTP request to get download
  456. rate correctly. If the download range is small, the download rate
  457. tends to small and this will occur at the later stage of download.
  458. * src/AbstractCommand.cc
  459. * src/DownloadCommand.cc
  460. * src/FileEntry.cc
  461. * src/FileEntry.h
  462. * src/Request.cc
  463. * src/Request.h
  464. * src/RequestGroup.h
  465. * src/RequestGroupMan.cc
  466. * src/SegmentMan.cc
  467. * src/SegmentMan.h
  468. * test/SegmentManTest.cc
  469. 2009-06-29 Tatsuhiro Tsujikawa <[email protected]>
  470. Removed _uris from RequestGroup. All functions that refer to _uris
  471. were moved to FileEntry. Exit status code are now defined in
  472. DownloadResultCode.h.
  473. * src/AbstractCommand.cc
  474. * src/AdaptiveURISelector.cc
  475. * src/AdaptiveURISelector.h
  476. * src/AutoSaveCommand.cc
  477. * src/BtPostDownloadHandler.cc
  478. * src/CheckIntegrityDispatcherCommand.cc
  479. * src/CookieStorage.cc
  480. * src/DHTAutoSaveCommand.cc
  481. * src/DHTBucketRefreshCommand.cc
  482. * src/DHTEntryPointNameResolveCommand.cc
  483. * src/DHTInteractionCommand.cc
  484. * src/DHTPeerAnnounceCommand.cc
  485. * src/DHTTokenUpdateCommand.cc
  486. * src/DlAbortEx.h
  487. * src/DlRetryEx.h
  488. * src/DownloadCommand.cc
  489. * src/DownloadContext.h
  490. * src/DownloadFailureException.h
  491. * src/DownloadResult.h
  492. * src/DownloadResultCode.h
  493. * src/FeedbackURISelector.cc
  494. * src/FeedbackURISelector.h
  495. * src/FileEntry.cc
  496. * src/FileEntry.h
  497. * src/FtpNegotiationCommand.cc
  498. * src/HttpListenCommand.cc
  499. * src/HttpResponseCommand.cc
  500. * src/HttpServerResponseCommand.cc
  501. * src/HttpSkipResponseCommand.cc
  502. * src/InOrderURISelector.cc
  503. * src/InOrderURISelector.h
  504. * src/Makefile.am
  505. * src/Makefile.in
  506. * src/Metalink2RequestGroup.cc
  507. * src/MultiUrlRequestInfo.cc
  508. * src/MultiUrlRequestInfo.h
  509. * src/OptionHandlerFactory.cc
  510. * src/PeerListenCommand.cc
  511. * src/RecoverableException.h
  512. * src/RequestGroup.cc
  513. * src/RequestGroup.h
  514. * src/RequestGroupMan.cc
  515. * src/RequestGroupMan.h
  516. * src/TimedHaltCommand.cc
  517. * src/TrackerWatcherCommand.cc
  518. * src/URIResult.cc
  519. * src/URIResult.h
  520. * src/URISelector.h
  521. * src/XmlRpcMethodImpl.cc
  522. * src/bittorrent_helper.cc
  523. * src/bittorrent_helper.h
  524. * src/download_helper.cc
  525. * src/main.cc
  526. * src/option_processing.cc
  527. * test/BtDependencyTest.cc
  528. * test/BtPostDownloadHandlerTest.cc
  529. * test/CookieStorageTest.cc
  530. * test/DefaultBtMessageDispatcherTest.cc
  531. * test/DownloadHandlerFactoryTest.cc
  532. * test/DownloadHelperTest.cc
  533. * test/FeedbackURISelectorTest.cc
  534. * test/FileEntryTest.cc
  535. * test/InOrderURISelectorTest.cc
  536. * test/Metalink2RequestGroupTest.cc
  537. * test/MetalinkPostDownloadHandlerTest.cc
  538. * test/RequestGroupManTest.cc
  539. * test/RequestGroupTest.cc
  540. * test/XmlRpcMethodTest.cc
  541. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  542. Removed MockBtContext.h
  543. * test/Makefile.am
  544. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  545. Removed _currentRequest from StreamCheckIntegrityEntry and
  546. StreamFileAllocationEntry.
  547. * src/AbstractCommand.cc
  548. * src/HttpResponseCommand.cc
  549. * src/RequestGroup.cc
  550. * src/StreamCheckIntegrityEntry.cc
  551. * src/StreamCheckIntegrityEntry.h
  552. * src/StreamFileAllocationEntry.cc
  553. * src/StreamFileAllocationEntry.h
  554. 2009-06-28 Tatsuhiro Tsujikawa <[email protected]>
  555. Rewritten DownloadContext and removed SingleFileDownloadContext
  556. and BtContext and its derived classes. BitTorrent specific
  557. attributes are now set by DownloadContext::setAttribute() with key
  558. bittorrent::BITTORRENT.
  559. * src/AbstractBtMessage.cc
  560. * src/AbstractBtMessage.h
  561. * src/AbstractCommand.cc
  562. * src/AbstractCommand.h
  563. * src/AbstractProxyRequestCommand.cc
  564. * src/AbstractProxyResponseCommand.cc
  565. * src/ActivePeerConnectionCommand.cc
  566. * src/ActivePeerConnectionCommand.h
  567. * src/AnnounceList.cc
  568. * src/BtCheckIntegrityEntry.cc
  569. * src/BtConstants.h
  570. * src/BtContext.h: Removed
  571. * src/BtDependency.cc
  572. * src/BtExtendedMessage.cc
  573. * src/BtPieceMessage.cc
  574. * src/BtPieceMessage.h
  575. * src/BtPostDownloadHandler.cc
  576. * src/BtRegistry.cc
  577. * src/BtRegistry.h
  578. * src/BtSetup.cc
  579. * src/CheckIntegrityCommand.cc
  580. * src/CheckIntegrityEntry.cc
  581. * src/ChecksumCheckIntegrityEntry.cc
  582. * src/ConsoleStatCalc.cc
  583. * src/ContentTypeRequestGroupCriteria.cc
  584. * src/DHTGetPeersCommand.cc
  585. * src/DHTGetPeersCommand.h
  586. * src/DHTPeerLookupTask.cc
  587. * src/DHTPeerLookupTask.h
  588. * src/DHTTaskFactory.h
  589. * src/DHTTaskFactoryImpl.cc
  590. * src/DHTTaskFactoryImpl.h
  591. * src/DefaultBtAnnounce.cc
  592. * src/DefaultBtAnnounce.h
  593. * src/DefaultBtContext.cc: Removed
  594. * src/DefaultBtContext.h: Removed
  595. * src/DefaultBtInteractive.cc
  596. * src/DefaultBtInteractive.h
  597. * src/DefaultBtMessageDispatcher.cc
  598. * src/DefaultBtMessageDispatcher.h
  599. * src/DefaultBtMessageFactory.cc
  600. * src/DefaultBtMessageFactory.h
  601. * src/DefaultBtMessageReceiver.cc
  602. * src/DefaultBtMessageReceiver.h
  603. * src/DefaultBtProgressInfoFile.cc
  604. * src/DefaultBtRequestFactory.cc
  605. * src/DefaultBtRequestFactory.h
  606. * src/DefaultExtensionMessageFactory.cc
  607. * src/DefaultExtensionMessageFactory.h
  608. * src/DefaultPeerStorage.cc
  609. * src/DefaultPeerStorage.h
  610. * src/DefaultPieceStorage.cc
  611. * src/DefaultSegmentManFactory.cc
  612. * src/DiskAdaptor.cc
  613. * src/DiskAdaptor.h
  614. * src/DownloadContext.cc
  615. * src/DownloadContext.h
  616. * src/DownloadEngine.cc
  617. * src/DownloadEngineFactory.cc
  618. * src/DownloadHandler.cc
  619. * src/DownloadResult.h
  620. * src/FileAllocationCommand.cc
  621. * src/FileAllocationDispatcherCommand.cc
  622. * src/FileAllocationEntry.cc
  623. * src/FileEntry.h
  624. * src/FillRequestGroupCommand.cc
  625. * src/FtpDownloadCommand.cc
  626. * src/FtpFinishDownloadCommand.cc
  627. * src/FtpInitiateConnectionCommand.cc
  628. * src/FtpNegotiationCommand.cc
  629. * src/FtpTunnelRequestCommand.cc
  630. * src/FtpTunnelResponseCommand.cc
  631. * src/HandshakeExtensionMessage.cc
  632. * src/HandshakeExtensionMessage.h
  633. * src/HaveEraseCommand.cc
  634. * src/HttpDownloadCommand.cc
  635. * src/HttpInitiateConnectionCommand.cc
  636. * src/HttpProxyRequestCommand.cc
  637. * src/HttpProxyResponseCommand.cc
  638. * src/HttpRequest.cc
  639. * src/HttpRequest.h
  640. * src/HttpRequestCommand.cc
  641. * src/HttpResponseCommand.cc
  642. * src/HttpServerBodyCommand.cc
  643. * src/HttpServerCommand.cc
  644. * src/HttpSkipResponseCommand.cc
  645. * src/InitiateConnectionCommandFactory.cc
  646. * src/InitiatorMSEHandshakeCommand.cc
  647. * src/InitiatorMSEHandshakeCommand.h
  648. * src/IteratableChecksumValidator.cc
  649. * src/IteratableChecksumValidator.h
  650. * src/IteratableChunkChecksumValidator.cc
  651. * src/MSEHandshake.cc
  652. * src/MSEHandshake.h
  653. * src/Makefile.am
  654. * src/Makefile.in
  655. * src/Metalink2RequestGroup.cc
  656. * src/MetalinkPostDownloadHandler.cc
  657. * src/MultiDiskAdaptor.cc
  658. * src/MultiDiskAdaptor.h
  659. * src/MultiFileAllocationIterator.cc
  660. * src/MultiUrlRequestInfo.cc
  661. * src/PeerChokeCommand.cc
  662. * src/PeerChokeCommand.h
  663. * src/PeerInitiateConnectionCommand.cc
  664. * src/PeerInitiateConnectionCommand.h
  665. * src/PeerInteractionCommand.cc
  666. * src/PeerInteractionCommand.h
  667. * src/PeerReceiveHandshakeCommand.cc
  668. * src/PieceHashCheckIntegrityEntry.cc
  669. * src/RealtimeCommand.cc
  670. * src/ReceiverMSEHandshakeCommand.cc
  671. * src/RequestGroup.cc
  672. * src/RequestGroup.h
  673. * src/RequestGroupEntry.cc
  674. * src/RequestGroupMan.cc
  675. * src/SeedCheckCommand.cc
  676. * src/SeedCheckCommand.h
  677. * src/SegmentMan.cc
  678. * src/ShareRatioSeedCriteria.h
  679. * src/SingleFileDownloadContext.cc: Removed
  680. * src/SingleFileDownloadContext.h: Removed
  681. * src/SleepCommand.cc
  682. * src/StreamCheckIntegrityEntry.cc
  683. * src/TrackerWatcherCommand.cc
  684. * src/TrackerWatcherCommand.h
  685. * src/UnknownLengthPieceStorage.cc
  686. * src/Util.cc
  687. * src/Util.h
  688. * src/XmlRpcMethodImpl.cc
  689. * src/bittorrent_helper.cc
  690. * src/bittorrent_helper.h
  691. * src/download_helper.cc
  692. * src/main.cc
  693. * src/option_processing.cc
  694. * test/BitfieldManTest.cc
  695. * test/BittorrentHelperTest.cc
  696. * test/BtCancelMessageTest.cc
  697. * test/BtChokeMessageTest.cc
  698. * test/BtDependencyTest.cc
  699. * test/BtPieceMessageTest.cc
  700. * test/BtPostDownloadHandlerTest.cc
  701. * test/BtRegistryTest.cc
  702. * test/BtRejectMessageTest.cc
  703. * test/BtRequestMessageTest.cc
  704. * test/DHTPeerAnnounceStorageTest.cc
  705. * test/DefaultBtAnnounceTest.cc
  706. * test/DefaultBtContextTest.cc: Removed
  707. * test/DefaultBtMessageDispatcherTest.cc
  708. * test/DefaultBtMessageFactoryTest.cc
  709. * test/DefaultBtProgressInfoFileTest.cc
  710. * test/DefaultBtRequestFactoryTest.cc
  711. * test/DefaultExtensionMessageFactoryTest.cc
  712. * test/DefaultPeerStorageTest.cc
  713. * test/DefaultPieceStorageTest.cc
  714. * test/DirectDiskAdaptorTest.cc
  715. * test/DownloadContextTest.cc
  716. * test/DownloadHandlerFactoryTest.cc
  717. * test/DownloadHelperTest.cc
  718. * test/HandshakeExtensionMessageTest.cc
  719. * test/HttpRequestTest.cc
  720. * test/HttpResponseTest.cc
  721. * test/IteratableChecksumValidatorTest.cc
  722. * test/IteratableChunkChecksumValidatorTest.cc
  723. * test/MSEHandshakeTest.cc
  724. * test/Makefile.am
  725. * test/Makefile.in
  726. * test/Metalink2RequestGroupTest.cc
  727. * test/MetalinkPostDownloadHandlerTest.cc
  728. * test/MockBtContext.h: Removed
  729. * test/MockDHTTaskFactory.h
  730. * test/MockDownloadContext.h: Removed
  731. * test/MockPieceStorage.h
  732. * test/MultiDiskAdaptorTest.cc
  733. * test/MultiFileAllocationIteratorTest.cc
  734. * test/RequestGroupManTest.cc
  735. * test/RequestGroupTest.cc
  736. * test/SegmentManTest.cc
  737. * test/ShareRatioSeedCriteriaTest.cc
  738. * test/SingleFileDownloadContextTest.cc: Removed
  739. * test/UtilTest.cc
  740. * test/XmlRpcMethodTest.cc
  741. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  742. Added experimental support of WEB-Seeding for multi-file torrent.
  743. Due to fundamental changes in file handling in HTTP/FTP code, many
  744. functions are not working: PeerStat, ServerHost, proxy..etc
  745. * src/AbstractCommand.cc
  746. * src/AbstractCommand.h
  747. * src/BitfieldMan.cc
  748. * src/BitfieldMan.h
  749. * src/CreateRequestCommand.cc
  750. * src/CreateRequestCommand.h
  751. * src/DefaultPieceStorage.cc
  752. * src/DefaultPieceStorage.h
  753. * src/DownloadCommand.cc
  754. * src/DownloadCommand.h
  755. * src/DownloadContext.cc
  756. * src/DownloadContext.h
  757. * src/FileEntry.cc
  758. * src/FileEntry.h
  759. * src/FtpDownloadCommand.cc
  760. * src/FtpDownloadCommand.h
  761. * src/FtpFinishDownloadCommand.cc
  762. * src/FtpFinishDownloadCommand.h
  763. * src/FtpInitiateConnectionCommand.cc
  764. * src/FtpInitiateConnectionCommand.h
  765. * src/FtpNegotiationCommand.cc
  766. * src/FtpNegotiationCommand.h
  767. * src/FtpTunnelResponseCommand.cc
  768. * src/HttpDownloadCommand.cc
  769. * src/HttpDownloadCommand.h
  770. * src/HttpInitiateConnectionCommand.cc
  771. * src/HttpInitiateConnectionCommand.h
  772. * src/HttpProxyResponseCommand.cc
  773. * src/HttpRequest.cc
  774. * src/HttpRequest.h
  775. * src/HttpRequestCommand.cc
  776. * src/HttpRequestCommand.h
  777. * src/HttpResponseCommand.cc
  778. * src/HttpResponseCommand.h
  779. * src/HttpSkipResponseCommand.cc
  780. * src/HttpSkipResponseCommand.h
  781. * src/InitiateConnectionCommand.cc
  782. * src/InitiateConnectionCommand.h
  783. * src/InitiateConnectionCommandFactory.cc
  784. * src/InitiateConnectionCommandFactory.h
  785. * src/Makefile.am
  786. * src/PieceStorage.h
  787. * src/RequestGroup.cc
  788. * src/RequestGroup.h
  789. * src/RequestGroupMan.cc
  790. * src/SegmentMan.cc
  791. * src/SegmentMan.h
  792. * src/SingleFileDownloadContext.h
  793. * src/StreamFileAllocationEntry.cc
  794. * src/TrackerWatcherCommand.cc
  795. * src/UnknownLengthPieceStorage.cc
  796. * src/UnknownLengthPieceStorage.h
  797. * src/array_fun.h
  798. * src/bitfield.h
  799. * src/download_helper.cc
  800. * test/DownloadContextTest.cc
  801. * test/Makefile.am
  802. * test/MockDownloadContext.h
  803. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  804. Added tellWaiting XML-RPC method.
  805. * src/SingleFileDownloadContext.cc
  806. * src/XmlRpcMethodFactory.cc
  807. * src/XmlRpcMethodImpl.cc
  808. * src/XmlRpcMethodImpl.h
  809. * test/XmlRpcMethodTest.cc
  810. 2009-06-24 Tatsuhiro Tsujikawa <[email protected]>
  811. Updated CookieStorageTest
  812. * test/CookieStorageTest.cc
  813. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  814. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  815. handle excepion inside these functions.
  816. * src/LibgnutlsTLSContext.cc
  817. * src/LibgnutlsTLSContext.h
  818. * src/LibsslTLSContext.cc
  819. * src/LibsslTLSContext.h
  820. * src/MultiUrlRequestInfo.cc
  821. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  822. Added comment
  823. * src/RequestGroup.cc
  824. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  825. In CookieStorage::load() and saveNsFormat(), handle exception
  826. inside the functions. When saving Cookies, first write temporary
  827. file and after successful writes, then renames it to final
  828. destination.
  829. * src/CookieStorage.cc
  830. * src/CookieStorage.h
  831. * src/MultiUrlRequestInfo.cc
  832. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  833. The default value of --dir option is the absolute path to the
  834. current directory. If getcwd() is failed, then it is ".", which is
  835. the same value with old implementation. This change is necessary
  836. because after daemon() call, the current working directory is
  837. changed to /.
  838. * src/File.cc
  839. * src/File.h
  840. * src/OptionHandlerFactory.cc
  841. * src/option_processing.cc
  842. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  843. Call daemon() with arguments(0,0), which means daemon() changes
  844. current working directory to / and redirects stdin, stdout and
  845. stderr to /dev/null.
  846. * src/option_processing.cc
  847. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  848. Small performance optimizations.
  849. * src/RequestGroupMan.cc
  850. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  851. Added _xmlRpc member variable to RequestGroupMan to reduce the
  852. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  853. * src/RequestGroupMan.cc
  854. * src/RequestGroupMan.h
  855. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  856. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  857. setNoWiat(true) if newly created command calls
  858. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  859. * src/HttpListenCommand.cc
  860. * src/HttpServerBodyCommand.cc
  861. * src/HttpServerCommand.cc
  862. * src/HttpServerResponseCommand.cc
  863. * src/InitiateConnectionCommand.cc
  864. * src/RequestGroup.cc
  865. * src/StreamFileAllocationEntry.cc
  866. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  867. Removed include vector
  868. * src/BtRegistry.h
  869. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  870. Rewritten BtRegistry
  871. * src/BtRegistry.cc
  872. * src/BtRegistry.h
  873. * src/BtSetup.cc
  874. * src/ConsoleStatCalc.cc
  875. * src/PeerInteractionCommand.cc
  876. * src/PeerReceiveHandshakeCommand.cc
  877. * src/ReceiverMSEHandshakeCommand.cc
  878. * src/RequestGroup.cc
  879. * src/XmlRpcMethodImpl.cc
  880. * test/BtRegistryTest.cc
  881. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  882. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  883. * src/DefaultBtProgressInfoFile.cc
  884. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  885. Throw an exception if position is less than 0.
  886. * src/XmlRpcMethodImpl.cc
  887. * test/XmlRpcMethodTest.cc
  888. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  889. Use writeFilePath() in ConsoleStatCalc.cc
  890. * src/ConsoleStatCalc.cc
  891. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  892. Receive the return value as const reference from
  893. DownloadContext::getFileEntries().
  894. * src/DefaultPieceStorage.cc
  895. * src/RequestGroupMan.cc
  896. * src/XmlRpcMethodImpl.cc
  897. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  898. DownloadContext now has _fileEntries so that
  899. DownloadContext::getFileEntries() can returns its const reference.
  900. * src/DefaultBtContext.cc
  901. * src/DefaultBtContext.h
  902. * src/DownloadContext.cc
  903. * src/DownloadContext.h
  904. * src/SingleFileDownloadContext.cc
  905. * src/SingleFileDownloadContext.h
  906. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  907. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  908. writeFilePath() function template from RequestGroupMan.cc to
  909. FileEntry.h
  910. * src/FileEntry.h
  911. * src/RequestGroupMan.cc
  912. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  913. Documented 'position' parameter is starting from 0 in man page.
  914. * doc/aria2c.1.txt
  915. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  916. Updated doc.
  917. * src/MSEHandshake.cc
  918. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  919. Removed _acceptFeatures and its accessor functions from
  920. RequestGroup since they are not used practically.
  921. * src/HttpRequestCommand.cc
  922. * src/RequestGroup.cc
  923. * src/RequestGroup.h
  924. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  925. Removed member _maxTries from RequestGroup class to avoid
  926. duplicate option value. Those classes who refer this variable
  927. should use option value of PREF_MAX_TRIES directly.
  928. * src/AbstractCommand.cc
  929. * src/RequestGroup.cc
  930. * src/RequestGroup.h
  931. * src/TrackerWatcherCommand.cc
  932. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  933. * Release 1.4.1
  934. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  935. Fixed compiler warnings on netbsd
  936. * src/DHTConnectionImpl.cc
  937. * src/PeerListenCommand.cc
  938. * src/PeerSessionResource.cc
  939. * src/SegmentMan.cc
  940. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  941. Updated Ukrainian translation. Thanks to all translators.
  942. * po/uk.po
  943. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  944. Bump up version number to 1.4.1.
  945. * configure.ac
  946. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  947. Added unit tests for strjoin, strconcat and strappend.
  948. * test/a2functionalTest.cc
  949. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  950. Rewritten strconcat and strappend using operator+ instead of
  951. append().
  952. * src/a2functional.h
  953. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  954. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  955. is enabled.
  956. * src/Makefile.am
  957. * test/Makefile.am
  958. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  959. Added countSeeder() function which counts seeder in the given
  960. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  961. * src/ConsoleStatCalc.cc
  962. * src/Peer.h
  963. * src/XmlRpcMethodImpl.cc
  964. * test/PeerTest.cc
  965. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  966. Documented missing seeder in getPeers xml-rpc method.
  967. Documented uploadLength and numSeeders.
  968. * doc/aria2c.1.txt
  969. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  970. Added uploadLength and numSeeders to the response of tellStatus
  971. xml-rpc method. Assert that PeerStorage instance is not null
  972. instead of checking if statement. It should be non-null in this
  973. context.
  974. * src/XmlRpcMethodImpl.cc
  975. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  976. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  977. * src/XmlRpcResponse.cc
  978. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  979. Avoid intermediate object during string concatenation.
  980. * src/HttpRequest.cc
  981. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  982. Added strjoin function template. Use it in pathJoin()
  983. * src/Util.h
  984. * src/a2functional.h
  985. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  986. Avoid intermediate object during string concatenation. Replaced
  987. post-increment unary operator with pre-increment one in for loop.
  988. * src/AdaptiveURISelector.cc
  989. * src/AnnounceList.cc
  990. * src/AuthConfig.h
  991. * src/BtBitfieldMessage.cc
  992. * src/BtExtendedMessage.cc
  993. * src/BtHandshakeMessage.cc
  994. * src/BtPieceMessage.cc
  995. * src/BtPortMessage.cc
  996. * src/Cookie.cc
  997. * src/DHTAnnouncePeerMessage.cc
  998. * src/DHTAutoSaveCommand.cc
  999. * src/DHTGetPeersReplyMessage.cc
  1000. * src/DHTNode.cc
  1001. * src/DHTQueryMessage.cc
  1002. * src/DHTResponseMessage.cc
  1003. * src/DHTUnknownMessage.cc
  1004. * src/DefaultBtAnnounce.cc
  1005. * src/DefaultBtContext.cc
  1006. * src/DefaultBtInteractive.cc
  1007. * src/DefaultBtProgressInfoFile.cc
  1008. * src/DefaultPeerStorage.cc
  1009. * src/DownloadEngine.cc
  1010. * src/FeatureConfig.cc
  1011. * src/File.cc
  1012. * src/FtpConnection.cc
  1013. * src/FtpNegotiationCommand.cc
  1014. * src/HandshakeExtensionMessage.cc
  1015. * src/HttpConnection.cc
  1016. * src/HttpRequest.cc
  1017. * src/HttpResponseCommand.cc
  1018. * src/HttpServer.cc
  1019. * src/IndexBtMessage.cc
  1020. * src/Metalink2RequestGroup.cc
  1021. * src/OptionHandlerImpl.h
  1022. * src/PStringBuildVisitor.cc
  1023. * src/Peer.cc
  1024. * src/PeerListenCommand.cc
  1025. * src/Piece.cc
  1026. * src/RangeBtMessage.cc
  1027. * src/Request.cc
  1028. * src/Request.h
  1029. * src/RequestGroup.cc
  1030. * src/RequestGroupMan.cc
  1031. * src/ServerStat.cc
  1032. * src/ServerStatMan.cc
  1033. * src/UTPexExtensionMessage.cc
  1034. * src/Util.cc
  1035. * src/a2functional.h
  1036. * src/download_helper.cc
  1037. * src/messageDigest.cc
  1038. 2009-06-04 Tatsuhiro Tsujikawa <[email protected]>
  1039. Unchoke a peer randomly at first and second choke round in seed
  1040. state.
  1041. * src/BtSeederStateChoke.cc
  1042. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  1043. Added (sock_t) to quiet compiler warnings in MinGW
  1044. * src/SocketCore.cc
  1045. * src/SocketCore.h
  1046. 2009-06-02 Tatsuhiro Tsujikawa <[email protected]>
  1047. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  1048. * src/EpollEventPoll.h
  1049. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  1050. Added fork() emulation using CreateProcess() in MinGW
  1051. * src/RequestGroupMan.cc
  1052. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  1053. * Release 1.4.0
  1054. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  1055. Added utf8.torrent to EXTRA_DIST
  1056. * test/Makefile.am
  1057. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1058. Fixed docs of aria2.addMetalink xml-rpc method.
  1059. * doc/aria2c.1.txt
  1060. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1061. Added Slovak translation. Updated Ukrainian and Brazilian
  1062. Portuguese translation. Thanks to all translators.
  1063. * po/sk.po
  1064. * po/uk.po
  1065. * po/pt_BR.po
  1066. * po/LINGUAS
  1067. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  1068. Added test case for XmlRpcProcessor to fail to parse malformed
  1069. document.
  1070. * test/XmlRpcRequestProcessorTest.cc
  1071. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1072. Removed *.gmo files in po because they are generated on 'make
  1073. dist'
  1074. * po/*.gmo
  1075. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1076. Documented max-concurrent-downloads of changeGlobalOption method
  1077. in man page.
  1078. * doc/aria2c.1.txt
  1079. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1080. Added max-concurrent-downloads option to changeGlobalOption
  1081. xml-rpc method. Rewritten loop conditional in
  1082. RequestGroupMan::fillRequestGroupFromReserver().
  1083. * src/RequestGroupMan.cc
  1084. * src/RequestGroupMan.h
  1085. * src/XmlRpcMethod.cc
  1086. * src/XmlRpcMethodImpl.cc
  1087. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1088. Documented position parameter in man page.
  1089. * doc/aria2c.1.txt
  1090. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  1091. Added 'position' parameter to addUri, addTorrent and addMetalink
  1092. xml-rpc method.
  1093. * src/RequestGroupMan.cc
  1094. * src/RequestGroupMan.h
  1095. * src/XmlRpcMethodImpl.cc
  1096. * test/XmlRpcMethodTest.cc
  1097. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  1098. Removed Peer.cc from compile source list when --disable-bittorrent
  1099. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  1100. takes Peer.
  1101. * src/DefaultPieceStorage.cc
  1102. * src/DefaultPieceStorage.h
  1103. * src/Makefile.am
  1104. * src/PieceStorage.h
  1105. * src/UnknownLengthPieceStorage.cc
  1106. * src/UnknownLengthPieceStorage.h
  1107. * test/MockPieceStorage.h
  1108. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  1109. Implemented getter methods in header files to give them more
  1110. chance of optimization.
  1111. Return const reference for SharadHandle if possible.
  1112. * src/AbstractAuthResolver.cc
  1113. * src/AbstractAuthResolver.h
  1114. * src/AbstractBtMessage.cc
  1115. * src/AbstractBtMessage.h
  1116. * src/AbstractSingleDiskAdaptor.cc
  1117. * src/AbstractSingleDiskAdaptor.h
  1118. * src/AsyncNameResolver.cc
  1119. * src/AsyncNameResolver.h
  1120. * src/BNode.cc
  1121. * src/BNode.h
  1122. * src/BitfieldMan.cc
  1123. * src/BitfieldMan.h
  1124. * src/BtAbortOutstandingRequestEvent.h
  1125. * src/BtExtendedMessage.cc
  1126. * src/BtExtendedMessage.h
  1127. * src/BtSeederStateChoke.cc
  1128. * src/BtSeederStateChoke.h
  1129. * src/Cookie.cc
  1130. * src/Cookie.h
  1131. * src/DHTBucket.cc
  1132. * src/DHTBucket.h
  1133. * src/DHTConnectionImpl.cc
  1134. * src/DHTConnectionImpl.h
  1135. * src/DHTFindNodeReplyMessage.cc
  1136. * src/DHTFindNodeReplyMessage.h
  1137. * src/DHTGetPeersReplyMessage.cc
  1138. * src/DHTGetPeersReplyMessage.h
  1139. * src/DHTInteractionCommand.cc
  1140. * src/DHTMessage.cc
  1141. * src/DHTMessage.h
  1142. * src/DHTMessageDispatcherImpl.cc
  1143. * src/DHTMessageEntry.cc
  1144. * src/DHTMessageReceiver.cc
  1145. * src/DHTMessageReceiver.h
  1146. * src/DHTMessageTrackerEntry.cc
  1147. * src/DHTMessageTrackerEntry.h
  1148. * src/DHTPeerAnnounceEntry.cc
  1149. * src/DHTPeerAnnounceEntry.h
  1150. * src/DHTPeerLookupTask.cc
  1151. * src/DHTPeerLookupTask.h
  1152. * src/DHTRoutingTableDeserializer.cc
  1153. * src/DHTRoutingTableDeserializer.h
  1154. * src/DefaultBtAnnounce.cc
  1155. * src/DefaultBtAnnounce.h
  1156. * src/DefaultBtMessageDispatcher.cc
  1157. * src/DefaultBtMessageDispatcher.h
  1158. * src/DefaultBtRequestFactory.cc
  1159. * src/DefaultBtRequestFactory.h
  1160. * src/DiskAdaptor.cc
  1161. * src/DiskAdaptor.h
  1162. * src/DownloadContext.cc
  1163. * src/DownloadContext.h
  1164. * src/DownloadEngine.cc
  1165. * src/DownloadEngine.h
  1166. * src/EpollEventPoll.cc
  1167. * src/EpollEventPoll.h
  1168. * src/FtpConnection.cc
  1169. * src/FtpConnection.h
  1170. * src/HttpConnection.cc
  1171. * src/HttpConnection.h
  1172. * src/HttpHeader.cc
  1173. * src/HttpHeader.h
  1174. * src/HttpRequest.cc
  1175. * src/HttpRequest.h
  1176. * src/HttpResponse.cc
  1177. * src/HttpResponse.h
  1178. * src/LibsslTLSContext.cc
  1179. * src/LibsslTLSContext.h
  1180. * src/MSEHandshake.cc
  1181. * src/MSEHandshake.h
  1182. * src/MetalinkEntry.cc
  1183. * src/MetalinkEntry.h
  1184. * src/MetalinkParserController.cc
  1185. * src/MetalinkParserController.h
  1186. * src/MetalinkParserStateMachine.cc
  1187. * src/MetalinkParserStateMachine.h
  1188. * src/MultiDiskAdaptor.cc
  1189. * src/MultiDiskAdaptor.h
  1190. * src/NetrcAuthResolver.cc
  1191. * src/NetrcAuthResolver.h
  1192. * src/Peer.cc
  1193. * src/Peer.h
  1194. * src/PeerSessionResource.cc
  1195. * src/PeerSessionResource.h
  1196. * src/Piece.cc
  1197. * src/Piece.h
  1198. * src/PieceStatMan.cc
  1199. * src/PieceStatMan.h
  1200. * src/Request.cc
  1201. * src/Request.h
  1202. * src/RequestGroup.cc
  1203. * src/RequestGroup.h
  1204. * src/RequestGroupMan.cc
  1205. * src/RequestGroupMan.h
  1206. * src/RequestSlot.cc
  1207. * src/RequestSlot.h
  1208. * src/SegmentMan.cc
  1209. * src/SegmentMan.h
  1210. * src/SelectEventPoll.cc
  1211. * src/SelectEventPoll.h
  1212. * src/ServerStat.cc
  1213. * src/ServerStat.h
  1214. * src/Signature.cc
  1215. * src/Signature.h
  1216. * src/URIResult.cc
  1217. * src/URIResult.h
  1218. * src/UTPexExtensionMessage.cc
  1219. * src/UTPexExtensionMessage.h
  1220. 2009-05-28 Tatsuhiro Tsujikawa <[email protected]>
  1221. Fixed compile error without BitTorrent and Metalink support.
  1222. * src/XmlRpcMethod.cc
  1223. * src/XmlRpcMethodFactory.cc
  1224. * src/XmlRpcMethodImpl.cc
  1225. * src/XmlRpcMethodImpl.h
  1226. * test/XmlRpcMethodTest.cc
  1227. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1228. Rewritten the help message for --allow-overwrite option.
  1229. * doc/aria2c.1.txt
  1230. * src/usage_text.h
  1231. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1232. Fixed typo
  1233. * doc/aria2c.1.txt
  1234. * src/usage_text.h
  1235. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1236. Updated README for 1.4.0 release. Use new table syntax of
  1237. asciidoc.
  1238. * README
  1239. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1240. Documented --xml-rpc-max-request-size option in man page.
  1241. * doc/aria2c.1.txt
  1242. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1243. Moved C_* constants from BtContext to DefaultBtContext.
  1244. * src/BtContext.cc: Removed.
  1245. * src/BtContext.h
  1246. * src/DefaultBtContext.cc
  1247. * src/DefaultBtContext.h
  1248. * src/Makefile.am
  1249. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  1250. Use name.utf-8 and path.utf-8 key in higher priority than name and
  1251. path key respectively when persing .torrent file.
  1252. * src/BtContext.cc
  1253. * src/BtContext.h
  1254. * src/DefaultBtContext.cc
  1255. * test/DefaultBtContextTest.cc
  1256. * test/utf8.torrent
  1257. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  1258. Added --xml-rpc-max-request-size option to limit the size of
  1259. XML-RPC request.
  1260. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  1261. Documented XML-RPC API in man page.
  1262. * doc/aria2c.1.txt
  1263. 2009-05-24 Tatsuhiro Tsujikawa <[email protected]>
  1264. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  1265. will break strict-aliasing rules
  1266. * src/PeerConnection.cc
  1267. * test/DHTRoutingTableSerializerTest.cc
  1268. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1269. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  1270. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  1271. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  1272. PKG_CHECK_MODULES macro uses latter name.
  1273. * m4/sqlite3.m4
  1274. * src/Makefile.am
  1275. * test/Makefile.am
  1276. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1277. Fixed typo
  1278. * configure.ac
  1279. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1280. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  1281. presence of libgnutls using pkg-config first. If it fails, fall
  1282. back to old macro libgnutls.m4.
  1283. * configure.ac
  1284. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1285. Use s itself instead of !s.bad()
  1286. * src/CookieStorage.cc
  1287. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1288. Documented --on-download-* option and --save-cookies option in man
  1289. page.
  1290. * doc/aria2c.1.txt
  1291. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  1292. Set possible values for --load-cookie option to "/path/to/file".
  1293. * src/OptionHandlerFactory.cc
  1294. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1295. Added --save-cookies option.
  1296. * src/Cookie.cc
  1297. * src/Cookie.h
  1298. * src/CookieStorage.cc
  1299. * src/CookieStorage.h
  1300. * src/MultiUrlRequestInfo.cc
  1301. * src/OptionHandlerFactory.cc
  1302. * src/prefs.cc
  1303. * src/prefs.h
  1304. * src/usage_text.h
  1305. * test/CookieStorageTest.cc
  1306. * test/CookieTest.cc
  1307. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1308. Removed tellAll XML-RPC command because its reponse tends to be
  1309. big if stopped/waiting downloads pile up.
  1310. * src/XmlRpcMethodFactory.cc
  1311. * src/XmlRpcMethodImpl.cc
  1312. * src/XmlRpcMethodImpl.h
  1313. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1314. Added the ability to execute command when download starts and
  1315. stops. You can also specify command for particular cases such as
  1316. complete/error download. Added --on-download-start,
  1317. --on-download-stop, --on-download-complete and --on-download-error
  1318. option.
  1319. * src/OptionHandlerFactory.cc
  1320. * src/RequestGroupMan.cc
  1321. * src/prefs.cc
  1322. * src/prefs.h
  1323. * src/usage_text.h
  1324. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1325. Fixed test error
  1326. * test/BencodeTest.cc
  1327. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1328. Added unit tests.
  1329. * test/XmlRpcMethodTest.cc
  1330. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  1331. Made exception message more verbose.
  1332. * src/bencode.cc
  1333. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  1334. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  1335. space in console readout. Also they are now shown in MiB/s if
  1336. speed > 1024KiB/s.
  1337. * src/ConsoleStatCalc.cc
  1338. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  1339. Added SEED to console output, which represents the number of
  1340. seeders currently the client is connecting to.
  1341. * src/ConsoleStatCalc.cc
  1342. * src/ConsoleStatCalc.h
  1343. * src/DownloadEngine.cc
  1344. * src/NullStatCalc.h
  1345. * src/StatCalc.h
  1346. 2009-05-18 Tatsuhiro Tsujikawa <[email protected]>
  1347. Added source filename(__FILE__) and line number(__LINE__) to
  1348. exception message.
  1349. * src/AbstractCommand.cc
  1350. * src/AbstractDiskWriter.cc
  1351. * src/AbstractProxyResponseCommand.cc
  1352. * src/BDE.h
  1353. * src/BtAllowedFastMessage.cc
  1354. * src/BtHandshakeMessageValidator.h
  1355. * src/BtHaveAllMessage.cc
  1356. * src/BtHaveNoneMessage.cc
  1357. * src/BtPieceMessage.cc
  1358. * src/BtRejectMessage.cc
  1359. * src/ChunkedDecoder.cc
  1360. * src/CookieStorage.cc
  1361. * src/DHTAnnouncePeerMessage.cc
  1362. * src/DHTEntryPointNameResolveCommand.cc
  1363. * src/DHTMessageFactoryImpl.cc
  1364. * src/DHTMessageTracker.cc
  1365. * src/DHTRoutingTableDeserializer.cc
  1366. * src/DHTRoutingTableSerializer.cc
  1367. * src/DHTSetup.cc
  1368. * src/DHTTokenTracker.cc
  1369. * src/DefaultBtAnnounce.cc
  1370. * src/DefaultBtContext.cc
  1371. * src/DefaultBtInteractive.cc
  1372. * src/DefaultBtMessageFactory.cc
  1373. * src/DefaultBtProgressInfoFile.cc
  1374. * src/DefaultExtensionMessageFactory.cc
  1375. * src/DlAbortEx.h
  1376. * src/DlRetryEx.h
  1377. * src/DownloadCommand.cc
  1378. * src/DownloadEngineFactory.cc
  1379. * src/DownloadFailureException.h
  1380. * src/Exception.cc
  1381. * src/Exception.h
  1382. * src/ExpatMetalinkProcessor.cc
  1383. * src/ExpatXmlRpcRequestProcessor.cc
  1384. * src/FallocFileAllocationIterator.cc
  1385. * src/FatalException.h
  1386. * src/FtpConnection.cc
  1387. * src/FtpFinishDownloadCommand.cc
  1388. * src/FtpInitiateConnectionCommand.cc
  1389. * src/FtpNegotiationCommand.cc
  1390. * src/GZipDecoder.cc
  1391. * src/HandshakeExtensionMessage.cc
  1392. * src/HttpConnection.cc
  1393. * src/HttpHeaderProcessor.cc
  1394. * src/HttpInitiateConnectionCommand.cc
  1395. * src/HttpResponse.cc
  1396. * src/HttpResponseCommand.cc
  1397. * src/HttpServer.cc
  1398. * src/HttpSkipResponseCommand.cc
  1399. * src/InitiateConnectionCommandFactory.cc
  1400. * src/IteratableChunkChecksumValidator.cc
  1401. * src/LibgcryptARC4Context.h
  1402. * src/LibgcryptARC4Decryptor.h
  1403. * src/LibgcryptARC4Encryptor.h
  1404. * src/LibgcryptDHKeyExchange.h
  1405. * src/LibgnutlsTLSContext.cc
  1406. * src/LibsslARC4Context.h
  1407. * src/LibsslARC4Decryptor.h
  1408. * src/LibsslARC4Encryptor.h
  1409. * src/LibsslDHKeyExchange.h
  1410. * src/LibsslTLSContext.cc
  1411. * src/MSEHandshake.cc
  1412. * src/MessageDigestHelper.cc
  1413. * src/MetalinkHelper.cc
  1414. * src/MultiDiskAdaptor.cc
  1415. * src/NameMatchOptionHandler.h
  1416. * src/NameResolver.cc
  1417. * src/Netrc.cc
  1418. * src/NsCookieParser.cc
  1419. * src/OptionHandlerException.cc
  1420. * src/OptionHandlerException.h
  1421. * src/OptionHandlerImpl.h
  1422. * src/OptionParser.cc
  1423. * src/ParameterizedStringParser.cc
  1424. * src/PeerAbstractCommand.cc
  1425. * src/PeerConnection.cc
  1426. * src/PeerMessageUtil.cc
  1427. * src/PeerReceiveHandshakeCommand.cc
  1428. * src/Platform.cc
  1429. * src/ReceiverMSEHandshakeCommand.cc
  1430. * src/RecoverableException.h
  1431. * src/RequestGroup.cc
  1432. * src/SimpleLogger.cc
  1433. * src/SocketCore.cc
  1434. * src/Sqlite3MozCookieParser.cc
  1435. * src/UTPexExtensionMessage.cc
  1436. * src/Util.cc
  1437. * src/XML2SAXMetalinkProcessor.cc
  1438. * src/Xml2XmlRpcRequestProcessor.cc
  1439. * src/XmlRpcMethodImpl.cc
  1440. * src/bencode.cc
  1441. * src/download_helper.cc
  1442. * src/messageDigest.h
  1443. * test/ExceptionTest.cc
  1444. * test/TestUtil.cc
  1445. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  1446. Bump up version number to 1.4.0
  1447. * configure.ac
  1448. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  1449. Added 2files.metalink to EXTRA_DIST
  1450. * test/Makefile.am
  1451. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1452. Added missing 2files.metalink
  1453. * test/2files.metalink
  1454. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1455. Show "[MEMORY]" prefix before filename in download summary if it
  1456. is downloaded into memory.
  1457. * src/DownloadResult.h
  1458. * src/RequestGroup.cc
  1459. * src/RequestGroupMan.cc
  1460. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1461. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  1462. * src/ExpatXmlRpcRequestProcessor.cc
  1463. * src/Xml2XmlRpcRequestProcessor.cc
  1464. * src/message.h
  1465. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1466. Defined const BDEs to avoid duplicate instantiation.
  1467. Defined MSG_GID_NOT_PROVIDED.
  1468. * src/XmlRpcMethodImpl.cc
  1469. * src/message.h
  1470. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1471. Code cleanup
  1472. * src/Xml2XmlRpcRequestProcessor.cc
  1473. * src/Xml2XmlRpcRequestProcessor.h
  1474. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1475. Defined ENABLE_XML_RPC
  1476. * configure.ac
  1477. * configure
  1478. * config.h.in
  1479. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1480. Added ExpatXmlRpcRequestProcessor
  1481. * src/ExpatXmlRpcRequestProcessor.cc
  1482. * src/ExpatXmlRpcRequestProcessor.h
  1483. * src/Makefile.am
  1484. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1485. Added tests for addTorrent and addMetalink command.
  1486. * test/TestUtil.cc
  1487. * test/TestUtil.h
  1488. * test/XmlRpcMethodTest.cc
  1489. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1490. Corrected the description of --file-allocation option.
  1491. * doc/aria2c.1.txt
  1492. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1493. Added tellAll command.
  1494. * src/XmlRpcMethodFactory.cc
  1495. * src/XmlRpcMethodImpl.cc
  1496. * src/XmlRpcMethodImpl.h
  1497. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1498. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  1499. * src/XmlRpcMethodImpl.cc
  1500. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1501. Added changeGlobalOption command. Currently,
  1502. max-overall-download-limit and max-overall-upload-limit option are
  1503. available.
  1504. * src/RequestGroupMan.h
  1505. * src/XmlRpcMethod.cc
  1506. * src/XmlRpcMethod.h
  1507. * src/XmlRpcMethodFactory.cc
  1508. * src/XmlRpcMethodImpl.cc
  1509. * src/XmlRpcMethodImpl.h
  1510. * test/XmlRpcMethodTest.cc
  1511. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  1512. Added changeOption command. Currently, max-download-limit,
  1513. max-upload-limit option are available in this command.
  1514. * src/RequestGroup.h
  1515. * src/XmlRpcMethod.cc
  1516. * src/XmlRpcMethod.h
  1517. * src/XmlRpcMethodFactory.cc
  1518. * src/XmlRpcMethodImpl.cc
  1519. * src/XmlRpcMethodImpl.h
  1520. * test/XmlRpcMethodTest.cc
  1521. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1522. Added purgeDownloadResult command.
  1523. * src/RequestGroupMan.cc
  1524. * src/RequestGroupMan.h
  1525. * src/XmlRpcMethodFactory.cc
  1526. * src/XmlRpcMethodImpl.cc
  1527. * src/XmlRpcMethodImpl.h
  1528. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1529. Refactored.
  1530. * src/XmlRpcMethod.cc
  1531. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1532. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  1533. XmlRpcResponse.
  1534. * src/HttpServerBodyCommand.cc
  1535. * src/Makefile.am
  1536. * src/XmlRpcMethod.cc
  1537. * src/XmlRpcMethod.h
  1538. * src/XmlRpcMethodImpl.cc
  1539. * src/XmlRpcResponse.cc
  1540. * src/XmlRpcResponse.h
  1541. * test/XmlRpcMethodTest.cc
  1542. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  1543. In XML-RPC option struct, header and index-out option can take
  1544. array as value.
  1545. * src/XmlRpcMethod.cc
  1546. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1547. Removed unused option member from PeerConnection.
  1548. * src/InitiatorMSEHandshakeCommand.cc
  1549. * src/PeerConnection.cc
  1550. * src/PeerConnection.h
  1551. * src/PeerInteractionCommand.cc
  1552. * src/PeerReceiveHandshakeCommand.cc
  1553. * src/ReceiverMSEHandshakeCommand.cc
  1554. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1555. Added "seeder" key to getPeers response.
  1556. * src/XmlRpcMethodImpl.cc
  1557. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1558. Added addMetalink XML-RPC command.
  1559. * src/XmlRpcMethodFactory.cc
  1560. * src/XmlRpcMethodImpl.cc
  1561. * src/XmlRpcMethodImpl.h
  1562. * src/download_helper.cc
  1563. * src/download_helper.h
  1564. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1565. Fixed the bug that POU peers are never choked in seeding.
  1566. * src/BtSeederStateChoke.cc
  1567. * src/BtSeederStateChoke.h
  1568. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1569. Added web-seeding URI handling in addTorrent command.
  1570. * src/XmlRpcMethodImpl.cc
  1571. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1572. Added "length" key to getFiles response.
  1573. * src/XmlRpcMethodImpl.cc
  1574. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1575. Moved --no-netrc option from ftp option section to http/ftp option
  1576. section.
  1577. * doc/aria2c.1.txt
  1578. * src/OptionHandlerFactory.cc
  1579. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1580. Removed garbage "\" character before '
  1581. * doc/aria2c.1.txt
  1582. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1583. Removed garbage "\" character before http.
  1584. * doc/aria2c.1.txt
  1585. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1586. Documented additional options that can be specified in -i list.
  1587. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  1588. and --xml-rpc-passwd. Removed --enable-http-server and
  1589. --http-server-listen-port.
  1590. * doc/aria2c.1.txt
  1591. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1592. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  1593. * src/DefaultPeerStorage.cc
  1594. * src/DefaultPeerStorage.h
  1595. * src/PeerStorage.h
  1596. * src/XmlRpcMethodImpl.cc
  1597. * test/MockPeerStorage.h
  1598. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  1599. Put a call to Socket::isReadable() in try block.
  1600. * src/HttpServerBodyCommand.cc
  1601. * src/HttpServerCommand.cc
  1602. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1603. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  1604. exception , so it is now in try block.
  1605. * src/HttpServerResponseCommand.cc
  1606. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1607. Added "amChoking" and "peerChoking" key in getPeers response.
  1608. * src/XmlRpcMethodImpl.cc
  1609. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1610. Added test case for zero-length filter.
  1611. * test/BitfieldManTest.cc
  1612. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1613. getFiles command now returns file data for finished/stopped
  1614. downloads.
  1615. * src/XmlRpcMethodImpl.cc
  1616. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1617. DownloadResult now has the list of FileEntry. The download
  1618. summary displays the path of first selected file and the number of
  1619. remaining files for multi-file torrent.
  1620. * src/DownloadResult.h
  1621. * src/RequestGroup.cc
  1622. * src/RequestGroupMan.cc
  1623. * test/RequestGroupTest.cc
  1624. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1625. Fixed segmentation fault error when no file is selected in
  1626. multi-file torrent.
  1627. * src/BitfieldMan.cc
  1628. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1629. Escaped <,>,& character in XML-RPC response.
  1630. * src/XmlRpcMethod.cc
  1631. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1632. Throw DlAbortEx instead of FatalException during parsing options
  1633. because we don't want for aria2 to quit when bad option is passed
  1634. via XML-RPC.
  1635. * src/OptionHandlerException.cc
  1636. * src/OptionHandlerException.h
  1637. * src/OptionHandlerImpl.h
  1638. * src/OptionParser.cc
  1639. * src/OptionParser.h
  1640. * src/PStringSegment.cc
  1641. * src/ParameterizedStringParser.cc
  1642. * src/download_helper.cc
  1643. * test/ParameterizedStringParserTest.cc
  1644. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  1645. Selecting files are now done in
  1646. DefaultBtContext::setFileFileter().
  1647. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  1648. functions are removed because they are no longer used. Creating
  1649. filter in BitfieldMan is done in new funtion
  1650. PieceStorage::setupFileFilter()
  1651. * src/BtContext.cc
  1652. * src/BtContext.h
  1653. * src/DefaultBtContext.cc
  1654. * src/DefaultBtContext.h
  1655. * src/DefaultPieceStorage.cc
  1656. * src/DefaultPieceStorage.h
  1657. * src/DiskAdaptor.cc
  1658. * src/DiskAdaptor.h
  1659. * src/PieceStorage.h
  1660. * src/RequestGroup.cc
  1661. * src/UnknownLengthPieceStorage.h
  1662. * src/XmlRpcMethodImpl.cc
  1663. * test/DefaultBtContextTest.cc
  1664. * test/MockBtContext.h
  1665. * test/MockPieceStorage.h
  1666. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1667. Fixed compile error on Mac OS X
  1668. * src/HttpServer.cc
  1669. * src/XmlRpcMethod.h
  1670. * src/XmlRpcMethodImpl.cc
  1671. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1672. Use std::binary_search instead of std::find
  1673. * src/DefaultPieceStorage.cc
  1674. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1675. Removed unnecessary BDE() call; leave them to implicit conversion.
  1676. * src/XmlRpcMethodImpl.cc
  1677. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1678. Return connections and gid in string
  1679. * src/XmlRpcMethodImpl.cc
  1680. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1681. Renamed addURI as addUri
  1682. * src/XmlRpcMethodFactory.cc
  1683. * src/XmlRpcMethodImpl.cc
  1684. * src/XmlRpcMethodImpl.h
  1685. * test/XmlRpcMethodTest.cc
  1686. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1687. Renamed addTorrentFile as addTorrent
  1688. * src/XmlRpcMethodFactory.cc
  1689. * src/XmlRpcMethodImpl.cc
  1690. * src/XmlRpcMethodImpl.h
  1691. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1692. The information for files, URIs, peers are removed from the
  1693. reponse of TellaActive, TellStatus command because they tend to be
  1694. large. Instead they can be retrieved by the dedicated commands:
  1695. getFiles, getUris and getPeers respectively.
  1696. * src/XmlRpcMethodFactory.cc
  1697. * src/XmlRpcMethodImpl.cc
  1698. * src/XmlRpcMethodImpl.h
  1699. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1700. Removed --max-overall-upload-limit and
  1701. --max-overall-download-limit option from listRequestOptions.
  1702. * src/download_helper.cc
  1703. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1704. Log incoming host in HttpListenCommand.
  1705. * src/HttpListenCommand.cc
  1706. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1707. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  1708. --xml-rpc-passwd option.
  1709. * src/HttpServer.cc
  1710. * src/HttpServer.h
  1711. * src/HttpServerCommand.cc
  1712. * src/OptionHandlerFactory.cc
  1713. * src/prefs.cc
  1714. * src/prefs.h
  1715. * src/usage_text.h
  1716. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  1717. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  1718. processing 0 length request.
  1719. * src/HttpServerBodyCommand.cc
  1720. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1721. Removed --enable-http-server and --http-server-listen-port
  1722. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  1723. instead. The original feature for --enable-http-server that
  1724. reports download progress in HTML was officially removed. Persist
  1725. XML-RPC connection if client supports keep-alive.
  1726. * src/DownloadEngineFactory.cc
  1727. * src/HttpServerCommand.cc
  1728. * src/HttpServerResponseCommand.cc
  1729. * src/Makefile.am
  1730. * src/Makefile.in
  1731. * src/OptionHandlerFactory.cc
  1732. * src/RequestGroupMan.cc
  1733. * src/main.cc
  1734. * src/option_processing.cc
  1735. * src/prefs.cc
  1736. * src/prefs.h
  1737. * src/usage_text.h
  1738. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1739. Added "uris" key to the response of tellStatus command. Added
  1740. "connections" key to the response of tellStatus and tellActive
  1741. command.
  1742. * src/XmlRpcMethodImpl.cc
  1743. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1744. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  1745. Added TellStatusXmlRpcMethod. Remove command can now remove
  1746. waiting RequestGroup.
  1747. * src/RequestGroupMan.cc
  1748. * src/RequestGroupMan.h
  1749. * src/XmlRpcMethodFactory.cc
  1750. * src/XmlRpcMethodImpl.cc
  1751. * src/XmlRpcMethodImpl.h
  1752. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1753. Initialized _peerId
  1754. * src/Peer.cc
  1755. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1756. Return fault structure for error. FailXmlRpcMethod is renamed as
  1757. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  1758. in non-torrent download. Return single param value.
  1759. * src/XmlRpcMethod.cc
  1760. * src/XmlRpcMethodFactory.cc
  1761. * src/XmlRpcMethodImpl.cc
  1762. * src/XmlRpcMethodImpl.h
  1763. * test/XmlRpcMethodTest.cc
  1764. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1765. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  1766. command.
  1767. * src/RequestGroup.cc
  1768. * src/RequestGroup.h
  1769. * src/RequestGroupMan.cc
  1770. * src/XmlRpcMethodImpl.cc
  1771. * test/RequestGroupTest.cc
  1772. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1773. Added more options that can be specified in -i list and xml-rpc
  1774. add* command.
  1775. * src/download_helper.h
  1776. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1777. The available options in -i list should be listed in
  1778. listRequestOptions().
  1779. * src/download_helper.cc
  1780. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1781. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  1782. command.
  1783. * src/XmlRpcMethodImpl.cc
  1784. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  1785. Now RequestGroup has its own copy of Option object. This will help
  1786. to give custom option for each RequestGroup.
  1787. addTorrentFile command now takes options.
  1788. * src/AbstractCommand.cc
  1789. * src/AbstractCommand.h
  1790. * src/AbstractProxyRequestCommand.cc
  1791. * src/ActivePeerConnectionCommand.cc
  1792. * src/ActivePeerConnectionCommand.h
  1793. * src/AdaptiveURISelector.cc
  1794. * src/BtCheckIntegrityEntry.cc
  1795. * src/BtDependency.cc
  1796. * src/BtDependency.h
  1797. * src/BtFileAllocationEntry.cc
  1798. * src/BtPostDownloadHandler.cc
  1799. * src/CheckIntegrityEntry.cc
  1800. * src/DownloadCommand.cc
  1801. * src/FtpDownloadCommand.cc
  1802. * src/FtpFinishDownloadCommand.cc
  1803. * src/FtpInitiateConnectionCommand.cc
  1804. * src/FtpNegotiationCommand.cc
  1805. * src/HttpInitiateConnectionCommand.cc
  1806. * src/HttpRequestCommand.cc
  1807. * src/HttpResponseCommand.cc
  1808. * src/HttpSkipResponseCommand.cc
  1809. * src/InitiateConnectionCommand.cc
  1810. * src/InitiateConnectionCommandFactory.cc
  1811. * src/InitiatorMSEHandshakeCommand.cc
  1812. * src/InitiatorMSEHandshakeCommand.h
  1813. * src/Metalink2RequestGroup.cc
  1814. * src/Metalink2RequestGroup.h
  1815. * src/MetalinkPostDownloadHandler.cc
  1816. * src/MultiUrlRequestInfo.cc
  1817. * src/MultiUrlRequestInfo.h
  1818. * src/PeerAbstractCommand.cc
  1819. * src/PeerInteractionCommand.cc
  1820. * src/PeerInteractionCommand.h
  1821. * src/PeerReceiveHandshakeCommand.cc
  1822. * src/PeerReceiveHandshakeCommand.h
  1823. * src/RequestGroup.cc
  1824. * src/RequestGroup.h
  1825. * src/TrackerWatcherCommand.cc
  1826. * src/TrackerWatcherCommand.h
  1827. * src/XmlRpcMethod.cc
  1828. * src/XmlRpcMethod.h
  1829. * src/XmlRpcMethodImpl.cc
  1830. * src/download_helper.cc
  1831. * src/download_helper.h
  1832. * src/main.cc
  1833. * test/BtDependencyTest.cc
  1834. * test/BtPostDownloadHandlerTest.cc
  1835. * test/DefaultBtMessageDispatcherTest.cc
  1836. * test/DownloadHandlerFactoryTest.cc
  1837. * test/DownloadHelperTest.cc
  1838. * test/Metalink2RequestGroupTest.cc
  1839. * test/MetalinkPostDownloadHandlerTest.cc
  1840. * test/RequestGroupManTest.cc
  1841. * test/RequestGroupTest.cc
  1842. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1843. Added tellActiveStatus xml-rpc command which reports download
  1844. status of active downloads.
  1845. * src/XmlRpcMethodFactory.cc
  1846. * src/XmlRpcMethodImpl.cc
  1847. * src/XmlRpcMethodImpl.h
  1848. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1849. Added addTorrentFile xml-rpc command which receives uploaded
  1850. torrent file and add download for it.
  1851. * src/RequestGroupMan.cc
  1852. * src/XmlRpcMethodFactory.cc
  1853. * src/XmlRpcMethodImpl.cc
  1854. * src/XmlRpcMethodImpl.h
  1855. * src/download_helper.cc
  1856. * src/download_helper.h
  1857. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1858. Added remove xml-rpc command which removes specified download.
  1859. There is a known issue: the removed unfinished downloads are
  1860. reported ERR when aria2 exits. They should be reported as INPR.
  1861. * src/RequestGroupMan.cc
  1862. * src/RequestGroupMan.h
  1863. * src/XmlRpcMethodFactory.cc
  1864. * src/XmlRpcMethodImpl.cc
  1865. * src/XmlRpcMethodImpl.h
  1866. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1867. If --enable-http-server is enabled, don't stop aria2 when all
  1868. download finished and don't quit when no files to download at
  1869. start up.
  1870. * src/RequestGroupMan.cc
  1871. * src/main.cc
  1872. * src/option_processing.cc
  1873. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1874. Added missing AM_CONDITIONAL
  1875. * configure.ac
  1876. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1877. Added xml-rpc functionality. Currently only addURI commad is
  1878. supported. To enable xml-rpc, run aria2 with
  1879. --enable-http-server. This option name is temporal and will be
  1880. changed. The feature that reports download progress in html format
  1881. is temporarily disabled.
  1882. * src/HttpServer.cc
  1883. * src/HttpServer.h
  1884. * src/HttpServerBodyCommand.cc
  1885. * src/HttpServerBodyCommand.h
  1886. * src/HttpServerCommand.cc
  1887. * src/HttpServerResponseCommand.cc
  1888. * src/Makefile.am
  1889. * src/OptionParser.cc
  1890. * src/OptionParser.h
  1891. * src/RequestGroupMan.cc
  1892. * src/RequestGroupMan.h
  1893. * src/XmlRpcMethod.cc
  1894. * src/XmlRpcMethod.h
  1895. * src/XmlRpcMethodFactory.cc
  1896. * src/XmlRpcMethodFactory.h
  1897. * src/XmlRpcMethodImpl.cc
  1898. * src/XmlRpcMethodImpl.h
  1899. * src/download_helper.cc
  1900. * src/download_helper.h
  1901. * test/Makefile.am
  1902. * test/XmlRpcMethodTest.cc
  1903. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1904. Added xml-rpc request parser. The supported value types are:
  1905. i4/int, string, double, struct, array, base64. Currently only
  1906. libxml2 version is provided.
  1907. * src/Xml2XmlRpcRequestProcessor.cc
  1908. * src/Xml2XmlRpcRequestProcessor.h
  1909. * src/XmlRpcElements.cc
  1910. * src/XmlRpcElements.h
  1911. * src/XmlRpcRequest.h
  1912. * src/XmlRpcRequestParserController.cc
  1913. * src/XmlRpcRequestParserController.h
  1914. * src/XmlRpcRequestParserState.h
  1915. * src/XmlRpcRequestParserStateImpl.cc
  1916. * src/XmlRpcRequestParserStateImpl.h
  1917. * src/XmlRpcRequestParserStateMachine.cc
  1918. * src/XmlRpcRequestParserStateMachine.h
  1919. * src/XmlRpcRequestProcessor.h
  1920. * test/XmlRpcRequestParserControllerTest.cc
  1921. * test/XmlRpcRequestProcessorTest.cc
  1922. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1923. * Release 1.3.3
  1924. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1925. Fixed compile error since r1202.
  1926. * src/ExpatMetalinkProcessor.cc
  1927. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1928. Updated Ukrainian, Russian and Simplified Chinese
  1929. translations. Thanks to all translators.
  1930. * po/ru.po
  1931. * po/uk.po
  1932. * po/zh_CN.po
  1933. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  1934. Pass reference of Option object instead of pointer.
  1935. * src/download_helper.cc
  1936. * src/download_helper.h
  1937. * src/main.cc
  1938. * test/DownloadHelperTest.cc
  1939. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  1940. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1941. from option directly. Instead, get them from RequestGroup.
  1942. * src/ActivePeerConnectionCommand.cc
  1943. * src/ActivePeerConnectionCommand.h
  1944. * src/PeerReceiveHandshakeCommand.cc
  1945. * src/RequestGroup.h
  1946. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  1947. Removed unused uploadLimitCheck and uploadLimit from
  1948. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1949. PeerInteractionCommand.
  1950. * src/PeerAbstractCommand.cc
  1951. * src/PeerAbstractCommand.h
  1952. * src/PeerInteractionCommand.cc
  1953. * src/PeerInteractionCommand.h
  1954. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  1955. Fixed broken file renaming feature since r1202.
  1956. * src/FtpNegotiationCommand.cc
  1957. * src/FtpNegotiationCommand.h
  1958. * src/HttpResponseCommand.cc
  1959. * src/RequestGroup.cc
  1960. * src/RequestGroup.h
  1961. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1962. Removed unused debug log
  1963. * src/SocketCore.cc
  1964. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1965. Generated configure and Makefile.in using autoconf 2.63 and
  1966. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1967. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1968. * configure.ac
  1969. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1970. Moved piece statistics stuff to new PieceStatMan class.
  1971. Refactored PieceSelector interface.
  1972. * src/DefaultPieceStorage.cc
  1973. * src/DefaultPieceStorage.h
  1974. * src/LongestSequencePieceSelector.cc
  1975. * src/LongestSequencePieceSelector.h
  1976. * src/Makefile.am
  1977. * src/PieceSelector.h
  1978. * src/PieceStatMan.cc
  1979. * src/PieceStatMan.h
  1980. * src/RarestPieceSelector.cc
  1981. * src/RarestPieceSelector.h
  1982. * src/RequestGroup.cc
  1983. * test/DefaultPieceStorageTest.cc
  1984. * test/InOrderPieceSelector.h
  1985. * test/Makefile.am
  1986. * test/PieceStatManTest.cc
  1987. * test/RarestPieceSelectorTest.cc
  1988. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1989. Added static member _protocolFamily to SocketCore. By default,
  1990. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1991. address. Sometime SocketCore::bind() and
  1992. SocketCore::establishConnection() use difference protocl family
  1993. and latter cannot connect to former. To avoid this situation, we
  1994. limit protocol family to AF_INET for unit tests.
  1995. * src/SocketCore.cc
  1996. * src/SocketCore.h
  1997. * test/AllTest.cc
  1998. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1999. Avoid std::bad_alloc for negative bencode string length.
  2000. * src/bencode.cc
  2001. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  2002. Supported segmented downloading with chunked transfer encoding and
  2003. content-length.
  2004. * src/DownloadCommand.cc
  2005. * src/HttpResponseCommand.cc
  2006. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2007. Bump up version number to 1.3.3
  2008. * configure.ac
  2009. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2010. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  2011. from 4096 to 65536 (for insanely large ftp login banners)
  2012. * src/FtpConnection.h
  2013. * test/FtpConnectionTest.cc
  2014. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  2015. In DefaultBtContext::getActualBasePath(), return first
  2016. FileEntry::getPath() for single file torrent.
  2017. * src/DefaultBtContext.cc
  2018. * test/DefaultBtContextTest.cc
  2019. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2020. Removed directIOAllowed() from BinaryStream, DiskWriter,
  2021. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  2022. Removed _directIOAllowed member from DiskWriter.
  2023. * src/AbstractDiskWriter.cc
  2024. * src/AbstractDiskWriter.h
  2025. * src/AbstractSingleDiskAdaptor.cc
  2026. * src/AbstractSingleDiskAdaptor.h
  2027. * src/BinaryStream.h
  2028. * src/ByteArrayDiskWriter.h
  2029. * src/DefaultPieceStorage.cc
  2030. * src/DiskWriter.h
  2031. * src/MultiDiskAdaptor.cc
  2032. * src/MultiDiskAdaptor.h
  2033. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2034. Now the constructor of AbstractDiskWriter takes filename as an
  2035. argument and filename argument is removed from openFile(),
  2036. initAndOpenFile(), openExistingFile() interface. storeDir member
  2037. and its accessor functions are removed from DiskAdaptor because it
  2038. is not used anymore. size() member function of DefaultDiskWriter,
  2039. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  2040. opening file.
  2041. * src/AbstractDiskWriter.cc
  2042. * src/AbstractDiskWriter.h
  2043. * src/AbstractSingleDiskAdaptor.cc
  2044. * src/AbstractSingleDiskAdaptor.h
  2045. * src/ByteArrayDiskWriter.cc
  2046. * src/ByteArrayDiskWriter.h
  2047. * src/ByteArrayDiskWriterFactory.cc
  2048. * src/ByteArrayDiskWriterFactory.h
  2049. * src/DefaultDiskWriter.cc
  2050. * src/DefaultDiskWriter.h
  2051. * src/DefaultDiskWriterFactory.cc
  2052. * src/DefaultDiskWriterFactory.h
  2053. * src/DefaultPieceStorage.cc
  2054. * src/DirectDiskAdaptor.cc
  2055. * src/DirectDiskAdaptor.h
  2056. * src/DiskAdaptor.h
  2057. * src/DiskWriter.h
  2058. * src/DiskWriterFactory.h
  2059. * src/MessageDigestHelper.cc
  2060. * src/MultiDiskAdaptor.cc
  2061. * src/RequestGroup.cc
  2062. * src/UnknownLengthPieceStorage.cc
  2063. * src/Util.cc
  2064. * test/DefaultDiskWriterTest.cc
  2065. * test/DirectDiskAdaptorTest.cc
  2066. * test/FallocFileAllocationIteratorTest.cc
  2067. * test/MessageDigestHelperTest.cc
  2068. * test/MetalinkProcessorTest.cc
  2069. * test/MultiDiskAdaptorTest.cc
  2070. * test/MultiFileAllocationIteratorTest.cc
  2071. * test/SingleFileAllocationIteratorTest.cc
  2072. * test/UtilTest.cc
  2073. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2074. Fixed the bug that aria2 aborts when --select-file is used. This
  2075. bug was introduced in r1199.
  2076. * src/MultiDiskAdaptor.cc
  2077. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2078. Code cleanup
  2079. * test/MockPieceStorage.cc
  2080. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2081. Fixed the bug that read-only file with wrong file size will cause
  2082. error because it cannot be truncated to the correct size. Now if
  2083. file size is different than the expected one, re-open file in
  2084. writable mode.
  2085. * src/AbstractSingleDiskAdaptor.cc
  2086. * src/AbstractSingleDiskAdaptor.h
  2087. * src/BtCheckIntegrityEntry.cc
  2088. * src/DiskAdaptor.h
  2089. * src/MultiDiskAdaptor.h
  2090. * src/RequestGroup.cc
  2091. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  2092. Fixed the bug that with --check-integrity option aria2 reports
  2093. downloaded file size is 0 even if some parts of file is correctly
  2094. downloaded. This bug is reproducible for the download that a file
  2095. includes last piece is missing. This bug doesn't reveal for
  2096. single-torrent with file allocation on.
  2097. * src/IteratableChecksumValidator.cc
  2098. * test/IteratableChecksumValidatorTest.cc
  2099. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  2100. Avoid circular reference between RequestGroup and AdaptiveURISelector
  2101. * src/RequestGroupMan.cc
  2102. * src/AdaptiveURISelector.cc
  2103. * src/AdaptiveURISelector.h
  2104. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2105. * Release 1.3.2
  2106. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2107. Updated README
  2108. * README
  2109. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2110. Updated Ukrainian translations. Thanks to Alexander10.
  2111. * po/uk.po
  2112. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2113. Code cleanup
  2114. * src/MetalinkParserStateMachine.cc
  2115. * src/MetalinkParserStateMachine.h
  2116. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  2117. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  2118. and expat simultaneously, MetalinkProcessor is now not base class
  2119. and it is directly implemented in XML2SAXMetalinkProcessor and
  2120. ExpatMetalinkProcessor.
  2121. * src/ExpatMetalinkProcessor.cc
  2122. * src/ExpatMetalinkProcessor.h
  2123. * src/Makefile.am
  2124. * src/MetalinkHelper.cc
  2125. * src/MetalinkProcessor.h
  2126. * src/MetalinkProcessorFactory.cc: Removed.
  2127. * src/MetalinkProcessorFactory.h: Removed
  2128. * src/XML2SAXMetalinkProcessor.cc
  2129. * src/XML2SAXMetalinkProcessor.h
  2130. * test/MetalinkProcessorTest.cc
  2131. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2132. Bump up version number to 1.3.2
  2133. * configure.ac
  2134. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2135. Added missing file.
  2136. * test/Makefile.am
  2137. * test/url-list-singleFileEndsWithSlash.torrent
  2138. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2139. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  2140. request.
  2141. * src/AnnounceList.cc
  2142. * src/AnnounceList.h
  2143. * src/BDE.cc: Added
  2144. * src/BDE.h: Added
  2145. * src/DHTAbstractMessage.cc
  2146. * src/DHTAbstractMessage.h
  2147. * src/DHTAnnouncePeerMessage.cc
  2148. * src/DHTAnnouncePeerMessage.h
  2149. * src/DHTAnnouncePeerReplyMessage.cc
  2150. * src/DHTAnnouncePeerReplyMessage.h
  2151. * src/DHTFindNodeMessage.cc
  2152. * src/DHTFindNodeMessage.h
  2153. * src/DHTFindNodeReplyMessage.cc
  2154. * src/DHTFindNodeReplyMessage.h
  2155. * src/DHTGetPeersMessage.cc
  2156. * src/DHTGetPeersMessage.h
  2157. * src/DHTGetPeersReplyMessage.cc
  2158. * src/DHTGetPeersReplyMessage.h
  2159. * src/DHTMessageFactory.h
  2160. * src/DHTMessageFactoryImpl.cc
  2161. * src/DHTMessageFactoryImpl.h
  2162. * src/DHTMessageReceiver.cc
  2163. * src/DHTMessageTracker.cc
  2164. * src/DHTMessageTracker.h
  2165. * src/DHTPingMessage.cc
  2166. * src/DHTPingMessage.h
  2167. * src/DHTPingReplyMessage.cc
  2168. * src/DHTPingReplyMessage.h
  2169. * src/DHTQueryMessage.cc
  2170. * src/DHTQueryMessage.h
  2171. * src/DHTResponseMessage.cc
  2172. * src/DHTResponseMessage.h
  2173. * src/DefaultBtAnnounce.cc
  2174. * src/DefaultBtContext.cc
  2175. * src/DefaultBtContext.h
  2176. * src/HandshakeExtensionMessage.cc
  2177. * src/Makefile.am
  2178. * src/PeerListProcessor.h
  2179. * src/UTPexExtensionMessage.cc
  2180. * src/bencode.cc
  2181. * src/bencode.h
  2182. * test/AnnounceListTest.cc
  2183. * test/BDETest.cc: Added
  2184. * test/BencodeTest.cc
  2185. * test/DHTAnnouncePeerMessageTest.cc
  2186. * test/DHTAnnouncePeerReplyMessageTest.cc
  2187. * test/DHTFindNodeMessageTest.cc
  2188. * test/DHTFindNodeReplyMessageTest.cc
  2189. * test/DHTGetPeersMessageTest.cc
  2190. * test/DHTGetPeersReplyMessageTest.cc
  2191. * test/DHTMessageFactoryImplTest.cc
  2192. * test/DHTMessageTrackerTest.cc
  2193. * test/DHTPingMessageTest.cc
  2194. * test/DHTPingReplyMessageTest.cc
  2195. * test/Makefile.am
  2196. * test/MockDHTMessageFactory.h
  2197. * test/PeerListProcessorTest.cc
  2198. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  2199. Use url-list (web-seeding) only for single-file torrent. This is
  2200. basically the same behavior with Metalink file with torrent and
  2201. URIs.
  2202. * src/RequestGroup.cc
  2203. * src/DefaultBtContext.cc
  2204. * test/DefaultBtContextTest.cc
  2205. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  2206. Rewritten expr
  2207. * src/array_fun.h
  2208. * test/array_funTest.cc
  2209. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  2210. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  2211. * src/DefaultBtMessageDispatcher.cc
  2212. * src/a2algo.h
  2213. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2214. Removed ExtendedMessagingAware. Instead of using inheritance,
  2215. added ExtensionMessageRegistry and it is passed to
  2216. DefaultExtensionMessageFactory.
  2217. * src/DefaultBtInteractive.cc
  2218. * src/DefaultBtInteractive.h
  2219. * src/DefaultExtensionMessageFactory.cc
  2220. * src/DefaultExtensionMessageFactory.h
  2221. * src/ExtendedMessagingAware.h: Removed.
  2222. * src/ExtensionMessageFactory.h
  2223. * src/ExtensionMessageRegistry.h: Added.
  2224. * src/Makefile.am
  2225. * src/PeerInteractionCommand.cc
  2226. * test/DefaultExtensionMessageFactoryTest.cc
  2227. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2228. Fixed typo in log messages
  2229. * src/MSEHandshake.cc
  2230. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  2231. Fixed the bug that prevents torrent download from finishing. The
  2232. bug doesn't reveal for all torrents. The torrents affected this
  2233. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  2234. of pieces.
  2235. * src/bitfield.h
  2236. * test/bitfieldTest.cc
  2237. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  2238. Code cleanup
  2239. * src/PeerListProcessor.h
  2240. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2241. Removed RequestGroupAware
  2242. * src/AbstractCommand.cc
  2243. * src/AbstractCommand.h
  2244. * src/ActivePeerConnectionCommand.cc
  2245. * src/ActivePeerConnectionCommand.h
  2246. * src/DHTGetPeersCommand.cc
  2247. * src/DHTGetPeersCommand.h
  2248. * src/InitiatorMSEHandshakeCommand.cc
  2249. * src/InitiatorMSEHandshakeCommand.h
  2250. * src/Makefile.am
  2251. * src/PeerInitiateConnectionCommand.cc
  2252. * src/PeerInitiateConnectionCommand.h
  2253. * src/PeerInteractionCommand.cc
  2254. * src/PeerInteractionCommand.h
  2255. * src/RealtimeCommand.cc
  2256. * src/RealtimeCommand.h
  2257. * src/RequestGroupAware.cc: Removed
  2258. * src/RequestGroupAware.h: Removed
  2259. * src/SeedCheckCommand.cc
  2260. * src/SeedCheckCommand.h
  2261. * src/SleepCommand.cc
  2262. * src/TrackerWatcherCommand.cc
  2263. * src/TrackerWatcherCommand.h
  2264. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2265. Rewritten PeerListProcessor
  2266. * src/PeerListProcessor.h
  2267. * src/CompactPeerListProcessor.h: Removed
  2268. * src/CompactPeerListProcessor.cc: Removed
  2269. * src/DelegatingPeerListProcessor.cc: Removed.
  2270. * src/DefaultBtAnnounce.cc
  2271. * src/Makefile.am
  2272. * src/UTPexExtensionMessage.cc
  2273. * src/DefaultPeerListProcessor.h: Removed.
  2274. * src/DefaultPeerListProcessor.cc: Removed.
  2275. * src/DelegatingPeerListProcessor.h: Removed.
  2276. * test/Makefile.am
  2277. * test/PeerListProcessorTest.cc
  2278. * test/DefaultPeerListProcessorTest.cc: Removed.
  2279. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2280. Rewritten RequestGroupMan::calculateStat()
  2281. * src/RequestGroupMan.cc
  2282. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  2283. Removed unnecessary virtual destructor for Request class.
  2284. * src/Request.cc
  2285. * src/Request.h
  2286. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  2287. Avoid dynamic_pointer_cast.
  2288. * src/DHTGetPeersCommand.cc
  2289. * src/DHTGetPeersCommand.h
  2290. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  2291. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  2292. BtEvent.
  2293. * src/AbstractBtEventListener.h: Removed.
  2294. * src/AbstractBtMessage.cc
  2295. * src/AbstractBtMessage.h
  2296. * src/BtAbortOutstandingRequestEvent.h
  2297. * src/BtCancelSendingPieceEvent.h
  2298. * src/BtChokedEvent.h: Removed.
  2299. * src/BtChokingEvent.h
  2300. * src/BtEvent.h: Removed
  2301. * src/BtEventListener.h: Removed.
  2302. * src/BtMessage.h
  2303. * src/BtPieceMessage.cc
  2304. * src/BtPieceMessage.h
  2305. * src/BtRequestMessage.cc
  2306. * src/BtRequestMessage.h
  2307. * src/DefaultBtMessageDispatcher.cc
  2308. * src/Makefile.am
  2309. * src/a2functional.h
  2310. * test/BtPieceMessageTest.cc
  2311. * test/BtRequestMessageTest.cc
  2312. * test/DefaultBtMessageDispatcherTest.cc
  2313. * test/MockBtMessage.h
  2314. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  2315. Code cleanup
  2316. * src/RequestGroupMan.cc
  2317. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  2318. Code cleanup
  2319. * src/DownloadCommand.cc
  2320. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  2321. Fixed segmentation fault when GZipDecoder::decode() returns 0
  2322. byte.
  2323. * src/DownloadCommand.cc
  2324. * src/bitfield.h
  2325. * test/bitfieldTest.cc
  2326. Fixed the bug that causes infinite loop if broken web server
  2327. returns chunked response without last "0" chunk-size marker and
  2328. closes connection.
  2329. * src/DownloadCommand.cc
  2330. Instantiate properly configured HttpDownloadCommand for
  2331. non-resumable downlaods.
  2332. * src/HttpResponseCommand.cc
  2333. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  2334. Rewritten array operation functions.
  2335. * src/BitfieldMan.cc
  2336. * src/array_fun.h
  2337. * test/array_funTest.cc
  2338. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  2339. Removed unused variable 'query'
  2340. * src/Request.cc
  2341. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  2342. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  2343. accidentally set to false in r1162.
  2344. * configure.ac
  2345. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2346. Code cleanup
  2347. * src/BNode.cc
  2348. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2349. Increase prefixLength for the bucket which doesn't own local node
  2350. ID when splitting bucket.
  2351. * src/DHTBucket.cc
  2352. * test/DHTBucketTest.cc
  2353. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2354. * Release 1.3.1
  2355. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  2356. Bump up version number to 1.3.1
  2357. * configure.ac
  2358. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  2359. Removed unused variable checkPoint. Also removed include directive
  2360. for TimeA2.h.
  2361. * src/SeedCheckCommand.h
  2362. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  2363. Fixed the bug that upload limit exceeds the value specified in
  2364. --seed-ratio option depending on the timing of the execution of
  2365. SeedCheckCommand.
  2366. * src/SeedCheckCommand.cc
  2367. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  2368. Fixed the bug that removed peer's session upload/download length
  2369. are counted twice in _cachedTransferStat before it is
  2370. re-calculated. This affected the calculation of shara ratio,
  2371. resulting aria2 wrongly determines that specified share ratio is
  2372. reached. Also fixed the typo in calculateStatFor function name.
  2373. * src/BtSetup.cc
  2374. * src/DefaultPeerStorage.cc
  2375. * src/ShareRatioSeedCriteria.h
  2376. * test/ShareRatioSeedCriteriaTest.cc
  2377. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  2378. * Release 1.3.0
  2379. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  2380. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  2381. Nynorsk translations. Thanks to all translators.
  2382. * po/es.po
  2383. * po/ja.po
  2384. * po/nn.po
  2385. * po/ru.po
  2386. * po/uk.po
  2387. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  2388. Rewritten isInRange()
  2389. * src/DHTBucket.cc
  2390. * test/DHTBucketTest.cc
  2391. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  2392. Fixed typo
  2393. * doc/aria2c.1.txt
  2394. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  2395. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  2396. malloc/realloc is not used.
  2397. * src/configure.ac
  2398. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2399. BitfieldMan::getMissingIndexes family functions now takes unsigned
  2400. char* bitfield instead of stl container for efficiency.
  2401. PieceSelector::select now takes this
  2402. bitfield. RarestPieceSelector::select now also performs
  2403. efficiently for this change. bitfield namespace is introduced and
  2404. it has several helper functions to handle basic bitfield
  2405. operations such as test, count set bits, etc.
  2406. * src/BitfieldMan.cc
  2407. * src/BitfieldMan.h
  2408. * src/DefaultBtRequestFactory.cc
  2409. * src/DefaultPieceStorage.cc
  2410. * src/DefaultPieceStorage.h
  2411. * src/LongestSequencePieceSelector.cc
  2412. * src/LongestSequencePieceSelector.h
  2413. * src/Makefile.am
  2414. * src/Piece.cc
  2415. * src/Piece.h
  2416. * src/PieceSelector.h
  2417. * src/RarestPieceSelector.cc
  2418. * src/RarestPieceSelector.h
  2419. * src/Util.cc
  2420. * src/Util.h
  2421. * src/bitfield.h
  2422. * test/BitfieldManTest.cc
  2423. * test/LongestSequencePieceSelectorTest.cc
  2424. * test/Makefile.am
  2425. * test/RarestPieceSelectorTest.cc
  2426. * test/UtilTest.cc
  2427. * test/bitfieldTest.cc
  2428. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2429. Made accepted socket non-block.
  2430. * src/FtpNegotiationCommand.cc
  2431. * src/HttpListenCommand.cc
  2432. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2433. Guarded #ifdef HAVE_POSIX_FALLOCATE
  2434. * src/AbstractSingleDiskAdaptor.cc
  2435. * src/DefaultPieceStorage.cc
  2436. * src/DiskAdaptor.h
  2437. * src/DiskAdaptor.h
  2438. * src/MultiFileAllocationIterator.cc
  2439. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  2440. Run
  2441. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  2442. in every 1 sec. The timeout of RequestSlot is 60s by default and
  2443. it doesn't need to be called every time when
  2444. DefaultBtInteractive::doInteractionProcessing() is called.
  2445. * src/DefaultBtInteractive.cc
  2446. * src/DefaultBtInteractive.h
  2447. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2448. Documented 'falloc' in man page.
  2449. * doc/aria2c.1.txt
  2450. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2451. Updated doc
  2452. * src/usage_text.h
  2453. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2454. Added 'falloc' parameter for --file-allocation option. 'falloc'
  2455. allocation mode uses posix_fallocate() system call to allocate
  2456. file on disk. If you are using newer file systems such as ext4
  2457. (with extents support), btrfs or xfs, 'falloc' is your best
  2458. choice. It allocates large(few GiB) files almost instantly. Don't
  2459. use 'falloc' with legacy file systems such as ext3 because it
  2460. takes almost same time as 'prealloc' and it blocks aria2 entirely
  2461. until allocation finishes. 'falloc' may not be available if your
  2462. system doesn't have posix_fallocate() system call.
  2463. * configure.ac
  2464. * src/AbstractDiskWriter.cc
  2465. * src/AbstractDiskWriter.h
  2466. * src/AbstractSingleDiskAdaptor.cc
  2467. * src/BinaryStream.h
  2468. * src/BtCheckIntegrityEntry.cc
  2469. * src/ByteArrayDiskWriter.h
  2470. * src/CheckIntegrityEntry.cc
  2471. * src/CheckIntegrityEntry.h
  2472. * src/DefaultPieceStorage.cc
  2473. * src/DiskAdaptor.cc
  2474. * src/DiskAdaptor.h
  2475. * src/DiskWriter.h
  2476. * src/FallocFileAllocationIterator.cc
  2477. * src/FallocFileAllocationIterator.h
  2478. * src/FileAllocationEntry.cc
  2479. * src/FileAllocationEntry.h
  2480. * src/Makefile.am
  2481. * src/MultiFileAllocationIterator.cc
  2482. * src/MultiFileAllocationIterator.h
  2483. * src/OptionHandlerFactory.cc
  2484. * src/RequestGroup.cc
  2485. * src/StreamCheckIntegrityEntry.cc
  2486. * src/prefs.cc
  2487. * src/prefs.h
  2488. * src/usage_text.h
  2489. * test/FallocFileAllocationIteratorTest.cc
  2490. * test/Makefile.am
  2491. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2492. Removed duplicate enableDirectIO() call.
  2493. * src/MultiFileAllocationIterator.cc
  2494. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  2495. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  2496. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  2497. cost of std::rotate().
  2498. * src/RarestPieceSelector.cc
  2499. * src/RarestPieceSelector.h
  2500. * test/RarestPieceSelectorTest.cc
  2501. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  2502. Updated usage doc for --bt-tracker-interval option.
  2503. * src/usage_text.h
  2504. * doc/aria2c.1.txt
  2505. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  2506. Documented --bt-tracker-interval option in man page.
  2507. * doc/aria2c.1.txt
  2508. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2509. Added an option to specify the interval between tracker requests.
  2510. If non-zero value is specified, aria2 uses it and ignores the
  2511. interval value in the response of tracker. If zero is specified,
  2512. aria2 determines the inteval value based on the tarcker response
  2513. and download progress.
  2514. * src/DefaultBtAnnounce.cc
  2515. * src/DefaultBtAnnounce.h
  2516. * src/OptionHandlerFactory.cc
  2517. * src/RequestGroup.cc
  2518. * src/prefs.cc
  2519. * src/prefs.h
  2520. * src/usage_text.h
  2521. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2522. Added operator+=, operator-=, operator-
  2523. * src/TransferStat.cc
  2524. * src/TransferStat.h
  2525. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2526. Refactored RarestPieceSelector to reduce CPU load, especially for
  2527. addPieceStats.
  2528. * src/RarestPieceSelector.cc
  2529. * src/RarestPieceSelector.h
  2530. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2531. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  2532. getAllMissingBlockIndexes to reduce a call to
  2533. array_function_base::operator[].
  2534. * src/BitfieldMan.cc
  2535. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  2536. Cached TransferStat/download speed to avoid to sum them up in each
  2537. call.
  2538. * src/DefaultPeerStorage.cc
  2539. * src/DefaultPeerStorage.h
  2540. * src/SegmentMan.cc
  2541. * src/SegmentMan.h
  2542. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  2543. Typedefed cuid_t as int32_t in Command.h
  2544. * src/CUIDCounter.h
  2545. * src/Command.cc
  2546. * src/Command.h
  2547. * src/DownloadEngine.cc
  2548. * src/DownloadEngine.h
  2549. * src/PeerStat.h
  2550. * src/SegmentMan.cc
  2551. * src/SegmentMan.h
  2552. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  2553. Reduced the number of calls to PeerStorage::calculateStat() and
  2554. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  2555. transfer rate.
  2556. * src/DefaultBtInteractive.cc
  2557. * src/DefaultBtMessageDispatcher.cc
  2558. * src/DefaultPeerStorage.cc
  2559. * src/DefaultPeerStorage.h
  2560. * src/DownloadCommand.cc
  2561. * src/DownloadEngine.cc
  2562. * src/PeerStorage.h
  2563. * src/SegmentMan.cc
  2564. * src/SegmentMan.h
  2565. * test/MockPeerStorage.h
  2566. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2567. Prepended _dir+"/" after joining path elements in torrent file.
  2568. * src/DefaultBtContext.cc
  2569. * test/DefaultBtContextTest.cc
  2570. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2571. Added missing IndexBtMessageValidator.h
  2572. * src/Makefile.am
  2573. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2574. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  2575. Chinese translations. Thank you for contributing our project.
  2576. * po/id.po
  2577. * po/it.po
  2578. * po/ru.po
  2579. * po/uk.po
  2580. * po/zh_CN.po
  2581. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2582. Updated README
  2583. * README
  2584. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2585. Bump up version number to 1.3.0
  2586. * configure.ac
  2587. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2588. Updated doc
  2589. * src/DefaultBtContext.h
  2590. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2591. Slice/joinPath for name of single torrent.
  2592. * src/DefaultBtContext.cc
  2593. * test/DefaultBtContextTest.cc
  2594. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2595. Updated man page: Documented --dry-run and --index-out
  2596. options. Changed the default value of --uri-selector and
  2597. --http-auth-challenge options. Removed --direct-file-mapping
  2598. option. Added example for --index-out
  2599. * doc/aria2c.1.txt
  2600. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2601. Updated TEXT_DRY_RUN
  2602. * src/usage_text.h
  2603. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2604. Changed the default value of --uri-selector option from 'inorder'
  2605. to 'feedback'
  2606. * src/OptionHandlerFactory.cc
  2607. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2608. Included current URI in exception message.
  2609. * src/AbstractCommand.cc
  2610. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2611. Renamed ServerStatURISelector as FeedbackURISelector.
  2612. * src/FeedbackURISelector.cc
  2613. * src/FeedbackURISelector.h
  2614. * src/Makefile.am
  2615. * src/RequestGroupMan.cc
  2616. * src/ServerStatURISelector.cc
  2617. * src/ServerStatURISelector.h
  2618. * test/FeedbackURISelectorTest.cc
  2619. * test/Makefile.am
  2620. * test/ServerStatURISelectorTest.cc
  2621. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2622. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  2623. all URIs are tested and their timeout is not reached.
  2624. * src/AdaptiveURISelector.cc
  2625. * src/AdaptiveURISelector.h
  2626. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2627. Changed the default value of --http-auth-challenge option to false.
  2628. * src/OptionHandlerFactory.cc
  2629. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2630. Reuse URIs when all unused URIs run out.
  2631. * src/OptionHandlerFactory.cc
  2632. * src/RequestGroup.cc
  2633. * src/prefs.cc
  2634. * src/prefs.h
  2635. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  2636. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  2637. and BtRejectMessage are derived from RangeBtMessage class.
  2638. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  2639. derived from IndexBtMessage class. BtChokeMessage,
  2640. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  2641. BtNotInterestedMessage and BtUnchokeMessage are derived from
  2642. ZeroBtMessage class.
  2643. * src/AbstractBtMessage.cc
  2644. * src/AbstractBtMessage.h
  2645. * src/BtAllowedFastMessage.cc
  2646. * src/BtAllowedFastMessage.h
  2647. * src/BtAllowedFastMessageValidator.h: Removed
  2648. * src/BtBitfieldMessage.cc
  2649. * src/BtBitfieldMessage.h
  2650. * src/BtCancelMessage.cc
  2651. * src/BtCancelMessage.h
  2652. * src/BtCancelMessageValidator.h: Removed
  2653. * src/BtChokeMessage.cc
  2654. * src/BtChokeMessage.h
  2655. * src/BtExtendedMessage.cc
  2656. * src/BtExtendedMessage.h
  2657. * src/BtHandshakeMessage.cc
  2658. * src/BtHandshakeMessage.h
  2659. * src/BtHaveAllMessage.cc
  2660. * src/BtHaveAllMessage.h
  2661. * src/BtHaveMessage.cc
  2662. * src/BtHaveMessage.h
  2663. * src/BtHaveMessageValidator.h: Removed
  2664. * src/BtHaveNoneMessage.cc
  2665. * src/BtHaveNoneMessage.h
  2666. * src/BtInterestedMessage.cc
  2667. * src/BtInterestedMessage.h
  2668. * src/BtKeepAliveMessage.cc
  2669. * src/BtKeepAliveMessage.h
  2670. * src/BtNotInterestedMessage.cc
  2671. * src/BtNotInterestedMessage.h
  2672. * src/BtPieceMessage.cc
  2673. * src/BtPieceMessage.h
  2674. * src/BtPortMessage.cc
  2675. * src/BtPortMessage.h
  2676. * src/BtRejectMessage.cc
  2677. * src/BtRejectMessage.h
  2678. * src/BtRejectMessageValidator.h: Removed
  2679. * src/BtRequestMessage.cc
  2680. * src/BtRequestMessage.h
  2681. * src/BtRequestMessageValidator.h: Removed
  2682. * src/BtSuggestPieceMessage.cc
  2683. * src/BtSuggestPieceMessage.h
  2684. * src/BtSuggestPieceMessageValidator.h: Removed
  2685. * src/BtUnchokeMessage.cc
  2686. * src/BtUnchokeMessage.h
  2687. * src/DefaultBtMessageFactory.cc
  2688. * src/IndexBtMessage.cc
  2689. * src/IndexBtMessage.h
  2690. * src/IndexBtMessageValidator.h
  2691. * src/Makefile.am
  2692. * src/PeerMessageUtil.cc
  2693. * src/PeerMessageUtil.h
  2694. * src/RangeBtMessage.cc
  2695. * src/RangeBtMessage.h
  2696. * src/RangeBtMessageValidator.h
  2697. * src/SimpleBtMessage.cc
  2698. * src/SimpleBtMessage.h
  2699. * src/ZeroBtMessage.cc
  2700. * src/ZeroBtMessage.h
  2701. * test/BtRequestMessageTest.cc
  2702. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  2703. Reverted usage_text.h to r1093 to avoid to lose translated
  2704. messages.
  2705. * src/usage_text.h
  2706. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  2707. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  2708. declared as non-const previously is now const and defined in class
  2709. definition.
  2710. * src/AbstractBtMessage.cc
  2711. * src/AbstractBtMessage.h
  2712. * src/BtAllowedFastMessage.cc
  2713. * src/BtAllowedFastMessage.h
  2714. * src/BtBitfieldMessage.h
  2715. * src/BtCancelMessage.cc
  2716. * src/BtCancelMessage.h
  2717. * src/BtChokeMessage.cc
  2718. * src/BtChokeMessage.h
  2719. * src/BtExtendedMessage.cc
  2720. * src/BtExtendedMessage.h
  2721. * src/BtHandshakeMessage.cc
  2722. * src/BtHandshakeMessage.h
  2723. * src/BtHaveAllMessage.cc
  2724. * src/BtHaveAllMessage.h
  2725. * src/BtHaveMessage.cc
  2726. * src/BtHaveMessage.h
  2727. * src/BtHaveNoneMessage.cc
  2728. * src/BtHaveNoneMessage.h
  2729. * src/BtInterestedMessage.cc
  2730. * src/BtInterestedMessage.h
  2731. * src/BtKeepAliveMessage.cc
  2732. * src/BtKeepAliveMessage.h
  2733. * src/BtMessage.h
  2734. * src/BtNotInterestedMessage.cc
  2735. * src/BtNotInterestedMessage.h
  2736. * src/BtPieceMessage.h
  2737. * src/BtPortMessage.cc
  2738. * src/BtPortMessage.h
  2739. * src/BtRejectMessage.cc
  2740. * src/BtRejectMessage.h
  2741. * src/BtRequestMessage.cc
  2742. * src/BtRequestMessage.h
  2743. * src/BtSuggestPieceMessage.cc
  2744. * src/BtSuggestPieceMessage.h
  2745. * src/BtUnchokeMessage.cc
  2746. * src/BtUnchokeMessage.h
  2747. * src/SimpleBtMessage.cc
  2748. * src/SimpleBtMessage.h
  2749. * test/MockBtMessage.h
  2750. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  2751. Use FileEntry::exists()
  2752. * src/MultiDiskAdaptor.cc
  2753. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  2754. Added exists()
  2755. * src/FileEntry.cc
  2756. * src/FileEntry.h
  2757. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  2758. Added missing prefix dir.
  2759. * src/download_helper.cc
  2760. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  2761. Removed --direct-file-mapping option and CopyDiskAdaptor.
  2762. * src/CopyDiskAdaptor.cc: Removed
  2763. * src/CopyDiskAdaptor.h: Removed
  2764. * src/DefaultPieceStorage.cc
  2765. * src/Makefile.am
  2766. * src/OptionHandlerFactory.cc
  2767. * src/prefs.cc
  2768. * src/prefs.h
  2769. * src/usage_text.h
  2770. * test/CopyDiskAdaptorTest.cc: Removed
  2771. * test/Makefile.am
  2772. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  2773. Rewritten isSameFileBeingDownloaded()
  2774. * src/RequestGroupMan.cc
  2775. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  2776. Removed getName() from DownloadContext. getName() is declared in
  2777. BtContext.
  2778. * src/BtContext.h
  2779. * src/DownloadContext.h
  2780. * src/SingleFileDownloadContext.cc
  2781. * src/SingleFileDownloadContext.h
  2782. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  2783. in AbstractSingleDiskAdaptor.
  2784. * src/AbstractSingleDiskAdaptor.h
  2785. * src/DiskAdaptor.h
  2786. * src/MultiDiskAdaptor.h
  2787. * src/RequestGroup.cc
  2788. Removed setTopDir() and getTopDir() and getTopDirPath() from
  2789. MultiDiskAdaptor.
  2790. * src/DefaultPieceStorage.cc
  2791. * src/MultiDiskAdaptor.cc
  2792. * src/MultiDiskAdaptor.h
  2793. * test/MultiDiskAdaptorTest.cc
  2794. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  2795. FileEntry::getPath() contains store(top level) directory to
  2796. simplify path handling operation. In the previous implementation,
  2797. store directory is concatenated to FileEntry::getPath() in
  2798. DownloadContext.
  2799. * src/BtDependency.cc
  2800. * src/BtPostDownloadHandler.cc
  2801. * src/CopyDiskAdaptor.cc
  2802. * src/DefaultBtContext.cc
  2803. * src/DirectDiskAdaptor.cc
  2804. * src/FileEntry.cc
  2805. * src/FileEntry.h
  2806. * src/FtpNegotiationCommand.cc
  2807. * src/HttpResponse.cc
  2808. * src/HttpResponseCommand.cc
  2809. * src/Metalink2RequestGroup.cc
  2810. * src/MultiDiskAdaptor.cc
  2811. * src/MultiDiskAdaptor.h
  2812. * src/MultiFileAllocationIterator.cc
  2813. * src/RequestGroup.cc
  2814. * src/SingleFileDownloadContext.cc
  2815. * src/SingleFileDownloadContext.h
  2816. * src/download_helper.cc
  2817. * test/BtDependencyTest.cc
  2818. * test/CopyDiskAdaptorTest.cc
  2819. * test/DefaultBtContextTest.cc
  2820. * test/DefaultBtProgressInfoFileTest.cc
  2821. * test/DirectDiskAdaptorTest.cc
  2822. * test/DownloadHelperTest.cc
  2823. * test/FileEntryTest.cc
  2824. * test/MultiDiskAdaptorTest.cc
  2825. * test/MultiFileAllocationIteratorTest.cc
  2826. * test/RequestGroupTest.cc
  2827. * test/SingleFileDownloadContextTest.cc
  2828. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  2829. Fixed compiler warning
  2830. * src/download_helper.cc
  2831. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2832. Throw exception if same infohash torrent is now downloading.
  2833. * src/RequestGroup.cc
  2834. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2835. Added --dry-run option. In this mode, aria2 just checks whether
  2836. the remote file is available and doesn't download data. This
  2837. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2838. are canceled in this mode.
  2839. * src/FtpNegotiationCommand.cc
  2840. * src/HttpResponseCommand.cc
  2841. * src/HttpResponseCommand.h
  2842. * src/OptionHandlerFactory.cc
  2843. * src/RequestGroup.cc
  2844. * src/RequestGroupMan.cc
  2845. * src/prefs.cc
  2846. * src/prefs.h
  2847. * src/usage_text.h
  2848. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2849. Fixed compiler waring
  2850. * test/UriListParserTest.cc
  2851. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2852. Parse options in -i list using OptionParser.
  2853. * src/UriListParser.cc
  2854. * src/UriListParser.h
  2855. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2856. Don't reset URI in retry to avoid additional round trips because
  2857. of redirects.
  2858. * src/AbstractCommand.cc
  2859. * src/OptionHandlerFactory.cc
  2860. * src/prefs.cc
  2861. * src/prefs.h
  2862. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2863. Declared hide() in OptionHandler.
  2864. * src/NameMatchOptionHandler.h
  2865. * src/OptionHandler.h
  2866. * src/OptionHandlerImpl.h
  2867. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2868. Updated doc
  2869. * src/Peer.h
  2870. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  2871. Added log message in setStatusInternal()
  2872. * src/ServerStat.cc
  2873. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  2874. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2875. effectively exclude failed server.
  2876. * src/AbstractCommand.cc
  2877. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  2878. Added --index-out option to specify each file path for torrent.
  2879. Here index shown in --show-files option is used to specify which
  2880. file path should be altered. For example, to change the file path
  2881. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2882. option multiple times: --index-out=1=aria2.tar.bz2
  2883. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2884. available. This option can be specified in -i list.
  2885. * src/DefaultBtContext.cc
  2886. * src/DefaultBtContext.h
  2887. * src/MultiDiskAdaptor.cc
  2888. * src/MultiDiskAdaptor.h
  2889. * src/MultiFileAllocationIterator.cc
  2890. * src/OptionHandlerFactory.cc
  2891. * src/OptionHandlerImpl.h
  2892. * src/Util.cc
  2893. * src/Util.h
  2894. * src/download_helper.cc
  2895. * src/prefs.cc
  2896. * src/prefs.h
  2897. * src/usage_text.h
  2898. * test/DefaultBtContextTest.cc
  2899. * test/MultiDiskAdaptorTest.cc
  2900. * test/MultiFileAllocationIteratorTest.cc
  2901. * test/UtilTest.cc
  2902. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  2903. Use Util::pathJoin()
  2904. * src/MetalinkParserController.cc
  2905. * test/test.xml
  2906. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  2907. Use Util::pathJoin()
  2908. * src/DefaultBtContext.cc
  2909. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  2910. Added Util::pathJoin()
  2911. * src/Util.h
  2912. * test/UtilTest.cc
  2913. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  2914. Applied basename function to remove directory element in
  2915. content-disposition value.
  2916. Return empty string if content-disposition value is ".." or ".".
  2917. * src/Util.cc
  2918. * test/UtilTest.cc
  2919. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2920. Added --max-overall-download-limit in man page.
  2921. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2922. * doc/aria2c.1.txt
  2923. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2924. Added --max-overall-download-limit option. Now --max-upload-limit
  2925. option is not ignored when --max-overall-upload-limit option has
  2926. non-zero value. aria2 checks download(upload) speed in the order:
  2927. first checks overall speed limit and if it is not exceeded, then
  2928. checks speed limit per download. Thus you can specify both
  2929. value. For example, set --max-overall-download-limit=1M and
  2930. --max-download-limit=500K to prevent from one download from eating
  2931. all overall speed limit.
  2932. * src/DefaultBtInteractive.cc
  2933. * src/DefaultBtInteractive.h
  2934. * src/DefaultBtMessageDispatcher.cc
  2935. * src/DefaultBtMessageDispatcher.h
  2936. * src/DownloadCommand.cc
  2937. * src/DownloadCommand.h
  2938. * src/FtpNegotiationCommand.cc
  2939. * src/HttpResponseCommand.cc
  2940. * src/OptionHandlerFactory.cc
  2941. * src/PeerInteractionCommand.cc
  2942. * src/RequestGroup.cc
  2943. * src/RequestGroup.h
  2944. * src/RequestGroupMan.cc
  2945. * src/RequestGroupMan.h
  2946. * src/prefs.cc
  2947. * src/prefs.h
  2948. * src/usage_text.h
  2949. * test/DefaultBtMessageDispatcherTest.cc
  2950. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2951. Documented select-file option in Input File section.
  2952. Documented --http-auth-challenge option.
  2953. * doc/aria2c.1.txt
  2954. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2955. Now select-file can be specified in the uri list(-i list).
  2956. * src/BtContext.cc
  2957. * src/BtContext.h
  2958. * src/RequestGroup.cc
  2959. * src/Sequence.h
  2960. * src/download_helper.cc
  2961. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2962. Made the upper value of --max-concurrent-downloads options unlimited.
  2963. * src/OptionHandlerFactory.cc
  2964. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2965. Fixed the bug that disk writer is not created even if it shares
  2966. same piece with the preceding file if the length of previous file
  2967. is 0.
  2968. * src/MultiDiskAdaptor.cc
  2969. * test/MultiDiskAdaptorTest.cc
  2970. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  2971. In BitTorrent, Open files in read-only mode for hash check. After
  2972. that, re-open file in read/write mode only when the download is
  2973. not finished.
  2974. * src/AbstractDiskWriter.cc
  2975. * src/AbstractDiskWriter.h
  2976. * src/AbstractSingleDiskAdaptor.cc
  2977. * src/AbstractSingleDiskAdaptor.h
  2978. * src/BtCheckIntegrityEntry.cc
  2979. * src/DiskAdaptor.h
  2980. * src/DiskWriter.h
  2981. * src/MultiDiskAdaptor.cc
  2982. * src/MultiDiskAdaptor.h
  2983. * src/RequestGroup.cc
  2984. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  2985. Added --http-auth-challenge option. If it is set to true(by
  2986. default), aria2 sends HTTP authorization header only when it is
  2987. requested by the server. If false is set, then authorization
  2988. header is always sent to the server. This is useful for servers
  2989. that don't respond 401 code when authentication is required.
  2990. There is an exception: if username and password are embedded in
  2991. URI, authorization header is always sent to the server regardless
  2992. of this option.
  2993. * src/AuthConfigFactory.cc
  2994. * src/HttpSkipResponseCommand.cc
  2995. * src/OptionHandlerFactory.cc
  2996. * src/prefs.cc
  2997. * src/prefs.h
  2998. * src/usage_text.h
  2999. * test/AuthConfigFactoryTest.cc
  3000. * test/HttpRequestTest.cc
  3001. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3002. * Release 1.2.0
  3003. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3004. Updated Spanish, Ukrainian, Russian and Japanese translations.
  3005. Thanks to all translators.
  3006. * po/es.po
  3007. * po/ja.po
  3008. * po/ru.po
  3009. * po/uk.po
  3010. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3011. Call deleteSocketForReadCheck() before socket is closed.
  3012. * src/HttpListenCommand.cc
  3013. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3014. Defined virtual destructor for BObject.
  3015. * src/bencode.h
  3016. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3017. Rewritten BDE to make it efficient.
  3018. * src/bencode.cc
  3019. * src/bencode.h
  3020. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3021. Removed function throw list.
  3022. * src/bencode.cc
  3023. * src/bencode.h
  3024. * test/BencodeTest.cc
  3025. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3026. Enclosed all URLs in double quotes in command-line examples.
  3027. * doc/aria2c.1.txt
  3028. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  3029. Updated reference/see also section.
  3030. * README
  3031. * doc/aria2c.1.txt
  3032. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3033. Reorganized man page based on man man-pages.
  3034. * doc/aria2c.1.txt
  3035. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3036. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  3037. because same documents are available in man page. Added
  3038. References section.
  3039. * README
  3040. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3041. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  3042. PERFORMANCE PROFILE section.
  3043. * doc/aria2c.1.txt
  3044. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  3045. Rewritten the section for configuration file.
  3046. * README
  3047. * doc/aria2c.1.txt
  3048. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3049. Fixed the segmentation fault during execution of choking algorithm
  3050. in leecher state because of broken compare operator
  3051. implementation.
  3052. * src/BtLeecherStateChoke.cc
  3053. * src/BtLeecherStateChoke.h
  3054. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3055. Open file in binary mode.
  3056. * src/CookieStorage.cc
  3057. * src/DHTSetup.cc
  3058. * src/DHTUtil.cc
  3059. * src/Netrc.cc
  3060. * src/NsCookieParser.cc
  3061. * src/ProtocolDetector.cc
  3062. * src/RequestGroupMan.cc
  3063. * src/Signature.cc
  3064. * src/bencode.cc
  3065. * src/download_helper.cc
  3066. * src/option_processing.cc
  3067. * test/CookieParserTest.cc
  3068. * test/DefaultBtProgressInfoFileTest.cc
  3069. * test/FileTest.cc
  3070. * test/GZipDecoderTest.cc
  3071. * test/RequestGroupManTest.cc
  3072. * test/SignatureTest.cc
  3073. * test/SingleFileAllocationIteratorTest.cc
  3074. * test/UriListParserTest.cc
  3075. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3076. Removed operator[] because it is ambiguous with built-in []
  3077. operator.
  3078. * src/array_fun.h
  3079. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3080. Fixed compile error
  3081. * src/OptionParser.cc
  3082. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  3083. Added missing call to arrayWrapperConst
  3084. * test/array_funTest.cc
  3085. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3086. Use array_wrapper instead of array_ptr.
  3087. * src/DHTRoutingTableDeserializer.cc
  3088. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3089. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  3090. * src/array_fun.h
  3091. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3092. Added array_wrapper template.
  3093. * src/array_fun.h
  3094. * test/array_funTest.cc
  3095. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3096. Use operator T* of array_ptr.
  3097. * src/OptionParser.cc
  3098. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3099. Use localhost instead of 127.0.0.1
  3100. * test/FtpConnectionTest.cc
  3101. * test/MSEHandshakeTest.cc
  3102. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3103. Added operator T*
  3104. * src/array_fun.h
  3105. * test/array_funTest.cc
  3106. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3107. Use dynamically allocated char array to detect memory access
  3108. violation.
  3109. * src/DHTRoutingTableDeserializer.cc
  3110. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3111. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  3112. defined.
  3113. * src/PeerMessageUtil.cc
  3114. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3115. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  3116. * configure.ac
  3117. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3118. Added a check to see struct sockaddr_in has sin_len member.
  3119. * configure.ac
  3120. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3121. Fixed buffer overrun.
  3122. * src/DHTRoutingTableDeserializer.cc
  3123. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3124. Added LL for long long int constant.
  3125. * test/FtpConnectionTest.cc
  3126. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3127. Casted to unsigned int to suppress compiler warning on netbsd.
  3128. * src/BtRuntime.h
  3129. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  3130. Assign the value of tv.tv_sec to time_t timesec instead of giving
  3131. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  3132. type time_t.
  3133. * src/SimpleLogger.cc
  3134. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3135. Added test for FtpConnection::receiveSizeResponse().
  3136. * test/FtpConnectionTest.cc
  3137. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3138. Fix epoll error on the old kernel 2.6.8 or ealier.
  3139. * src/EpollEventPoll.cc
  3140. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3141. Use Util::parseLLInt instead of sscanf for portability. The
  3142. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  3143. * src/FtpConnection.cc
  3144. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3145. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  3146. block. It should not filter anything.
  3147. * src/BitfieldMan.cc
  3148. * src/ConsoleStatCalc.cc
  3149. * test/BitfieldManTest.cc
  3150. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3151. Fixed the bug that the boolean options that don't take arguments
  3152. don't work.
  3153. * src/OptionHandlerImpl.h
  3154. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3155. Fixed broken selected file BitTorrent download.
  3156. * src/MultiDiskAdaptor.cc
  3157. * test/MultiDiskAdaptorTest.cc
  3158. * test/MultiFileAllocationIteratorTest.cc
  3159. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  3160. Fixed #define guard for EpollEventPoll
  3161. * src/EpollEventPoll.h
  3162. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3163. Wait 2 seconds. 1 second is sometimes not enough.
  3164. * test/TimeSeedCriteriaTest.cc
  3165. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3166. Use localhost instead of 127.0.0.1.
  3167. * test/DHTConnectionImplTest.cc
  3168. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3169. Suppressed compiler warning.
  3170. * src/AdaptiveURISelector.cc
  3171. * src/DefaultPieceStorage.cc
  3172. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3173. Defined virtual destructor.
  3174. * src/MetalinkParserState.h
  3175. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3176. Give NULL for second argument of getaddrinfo instead of "0".
  3177. * src/NameResolver.cc
  3178. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3179. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  3180. included strptime doesn't parse data for this format.
  3181. * src/FtpConnection.cc
  3182. * test/FtpConnectionTest.cc
  3183. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3184. Removed tests giving -1 for unsigned argument.
  3185. * test/SingleFileDownloadContextTest.cc
  3186. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3187. Don't use sha256 in tests because it might not be supported by the
  3188. SSL library.
  3189. * test/MetalinkProcessorTest.cc
  3190. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3191. Removed tests giving -1 for unsigned argument.
  3192. * test/AlphaNumberDecoratorTest
  3193. * test/BitfieldManTest.cc
  3194. * test/DefaultBtContextTest.cc
  3195. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  3196. Fixed compile error without libcares when epoll is available.
  3197. * src/EpollEventPoll.cc
  3198. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  3199. Included fstream instead of iostream.
  3200. * test/SignatureTest.cc
  3201. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3202. Removed #include <algorithm>
  3203. * test/RequestGroupTest.cc
  3204. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3205. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  3206. using RequestGroup::extractURIResult().
  3207. * src/AdaptiveURISelector.cc
  3208. * src/RequestGroup.cc
  3209. * src/RequestGroup.h
  3210. * test/RequestGroupTest.cc
  3211. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3212. Added tests for array_ptr.
  3213. * test/array_funTest.cc
  3214. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  3215. Don't send ip parameter to a tracker if ip parameter is empty
  3216. string.
  3217. * src/DefaultBtAnnounce.cc
  3218. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3219. Adjusted line feed.
  3220. * src/version_usage.cc
  3221. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3222. Print tags, possible values when OptionHandlerException is caught.
  3223. * src/option_processing.cc
  3224. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3225. Changed the message for FatalException.
  3226. * src/OptionParser.cc
  3227. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3228. Documented --bt-external-ip option in man page. Updated man pages
  3229. for --proxy-method option.
  3230. * doc/aria2c.1.txt
  3231. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3232. Use GET method for FTP via HTTP proxy.
  3233. * src/FtpInitiateConnectionCommand.cc
  3234. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3235. Changed the default value of --proxy-method option from 'tunnel'
  3236. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  3237. option.
  3238. * src/AbstractCommand.cc
  3239. * src/AbstractCommand.h
  3240. * src/FtpInitiateConnectionCommand.cc
  3241. * src/HttpDownloadCommand.cc
  3242. * src/HttpInitiateConnectionCommand.cc
  3243. * src/HttpInitiateConnectionCommand.h
  3244. * src/OptionHandlerFactory.cc
  3245. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3246. Initialized _logger
  3247. * src/SelectEventPoll.cc
  3248. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3249. Defined a copy constructor for the same type.
  3250. * src/SharedHandle.h
  3251. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3252. Added OptionParser::parseArg() which internally uses getopt_long
  3253. to parse command-line options. All command-line options are now
  3254. configured by OptionHandler. No manual editing of struct option*
  3255. is required any more.
  3256. * src/NameMatchOptionHandler.h
  3257. * src/OptionHandler.h
  3258. * src/OptionHandlerFactory.cc
  3259. * src/OptionHandlerImpl.h
  3260. * src/OptionParser.cc
  3261. * src/OptionParser.h
  3262. * src/array_fun.h
  3263. * src/main.cc
  3264. * src/option_processing.cc
  3265. * test/OptionHandlerTest.cc
  3266. * test/OptionParserTest.cc
  3267. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3268. Fixed configure error with --disable-epoll
  3269. * configure.ac
  3270. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  3271. Fixed compile error when HAVE_EPOLL is not defined.
  3272. Fixed linker error on bigendian systems.
  3273. * src/SocketCore.cc
  3274. * src/SocketCore.h
  3275. * test/DefaultBtProgressInfoFileTest.cc
  3276. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  3277. Added --bt-external-ip option. You can specify the external IP
  3278. address to report to a BitTorrent tracker. Although this function
  3279. is named 'external', it can accept any kind of IP addresses.
  3280. * src/DefaultBtAnnounce.cc
  3281. * src/OptionHandlerFactory.cc
  3282. * src/option_processing.cc
  3283. * src/prefs.cc
  3284. * src/prefs.h
  3285. * src/usage_text.h
  3286. * test/DefaultBtAnnounceTest.cc
  3287. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  3288. Extracted the algorithm to find the longest incremental sequence
  3289. as max_sequence template.
  3290. * src/LongestSequencePieceSelector.cc
  3291. * src/a2algo.h
  3292. * test/Makefile.am
  3293. * test/a2algoTest.cc
  3294. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  3295. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  3296. * src/usage_text.h
  3297. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  3298. Updated doc for --uri-selector, --http-server-listen-port and
  3299. --enable-http-server option. Documented --event-poll option.
  3300. * doc/aria2c.1.txt
  3301. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  3302. Updated doc for --enable-http-server.
  3303. * src/usage_text.h
  3304. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  3305. Documented --http-server-listen-port and --enable-http-server in
  3306. man page.
  3307. * doc/aria2c.1.txt
  3308. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3309. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  3310. translations. Thanks to all translators.
  3311. * po/es.po
  3312. * po/id.po
  3313. * po/it.po
  3314. * po/ru.po
  3315. * po/uk.po
  3316. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3317. Bump up version number to 1.2.0
  3318. * configure.ac
  3319. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3320. BtContext::getAnnounceTiers() now returns const reference.
  3321. * src/BtContext.h
  3322. * src/DefaultBtContext.cc
  3323. * src/DefaultBtContext.h
  3324. * test/MockBtContext.h
  3325. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3326. Change the number of retries for tracker request based on the
  3327. number of available tracker in a torrent file.
  3328. * src/TrackerWatcherCommand.cc
  3329. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3330. Added _maxTries property to RequestGroup and assign the option
  3331. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  3332. RequestGroup::getMaxTries() instead of
  3333. Option::getAsInt(PREF_MAX_TRIES).
  3334. * src/AbstractCommand.cc
  3335. * src/RequestGroup.cc
  3336. * src/RequestGroup.h
  3337. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3338. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  3339. Mandriva. I modified the patch: make RequestGroup have the
  3340. timeout value and AdaptiveURISelector directly modifies that
  3341. value.
  3342. * src/AbstractCommand.cc
  3343. * src/AdaptiveURISelector.cc
  3344. * src/AdaptiveURISelector.h
  3345. * src/FtpNegotiationCommand.cc
  3346. * src/RequestGroup.cc
  3347. * src/RequestGroup.h
  3348. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  3349. Fixed compiler warning
  3350. * test/IteratableChecksumValidatorTest.cc
  3351. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3352. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  3353. integrated downloads. This PieceSelector subclass finds the
  3354. longest continuous sequence in the available missing pieces and
  3355. selects the last index of such sequence. This makes HTTP/FTP
  3356. connections less interrupted by the pieces obtained by BitTorrent
  3357. peers.
  3358. * src/DefaultPieceStorage.cc
  3359. * src/DefaultPieceStorage.h
  3360. * src/LongestSequencePieceSelector.cc
  3361. * src/LongestSequencePieceSelector.h
  3362. * src/Makefile.am
  3363. * src/PieceSelector.h
  3364. * src/RarestPieceSelector.h
  3365. * src/RequestGroup.cc
  3366. * test/BtDependencyTest.cc
  3367. * test/DefaultPieceStorageTest.cc
  3368. * test/IteratableChecksumValidatorTest.cc
  3369. * test/LongestSequencePieceSelectorTest.cc
  3370. * test/Makefile.am
  3371. * test/SegmentManTest.cc
  3372. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3373. Fixed the bug that the average speed is wrong in
  3374. http/ftp/BitTorrent integrated download. Only the download bytes
  3375. in BitTorrent were considered.
  3376. * src/RequestGroup.cc
  3377. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3378. Choose port for BitTorrent/DHT randomly from the specified range.
  3379. * src/DHTConnectionImpl.cc
  3380. * src/PeerListenCommand.cc
  3381. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  3382. Send HTTP Authorization header only if it is requested by the
  3383. server(response 401). There are some exceptions. The authorization
  3384. header for proxy is always sent if it is available without request
  3385. by the server. If username/password is specified in the URI, it
  3386. is immediately sent to the server without request by the server.
  3387. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  3388. SharedHandle<AuthConfig>().
  3389. NetrcAuthResolver::resolveAuthConfig() returns
  3390. SharedHandle<AuthConfig>() if no AuthConfig is available.
  3391. * src/AbstractAuthResolver.cc
  3392. * src/AbstractProxyRequestCommand.cc
  3393. * src/AuthConfigFactory.cc
  3394. * src/AuthConfigFactory.h
  3395. * src/HttpConnection.cc
  3396. * src/HttpRequest.cc
  3397. * src/HttpRequest.h
  3398. * src/HttpResponse.cc
  3399. * src/HttpResponseCommand.cc
  3400. * src/HttpSkipResponseCommand.cc
  3401. * test/AuthConfigFactoryTest.cc
  3402. * test/HttpRequestTest.cc
  3403. * test/HttpResponseTest.cc
  3404. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  3405. Remove leading "--" from help keyword and a substring after "="
  3406. from help keyword, so that one can query options by '-h--max-' or
  3407. '-hmax-peers=10'.
  3408. * src/option_processing.cc
  3409. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  3410. Rewritten PStringVisitor and its implementation.
  3411. * src/PStringBuildVisitor.cc
  3412. * src/PStringBuildVisitor.h
  3413. * src/PStringDatum.h
  3414. * src/PStringNumLoop.h
  3415. * src/PStringSegment.cc
  3416. * src/PStringSegment.h
  3417. * src/PStringSelect.h
  3418. * src/PStringVisitor.h
  3419. * src/download_helper.cc
  3420. * test/PStringBuildVisitorTest.cc
  3421. * test/ParameterizedStringParserTest.cc
  3422. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  3423. Persist connection between the built-in HTTP server and a client
  3424. if a client supports keep-alive. Fixed the bug that aria2 exits
  3425. when the HTTP server receives EOF from a client.
  3426. * src/HttpServer.cc
  3427. * src/HttpServer.h
  3428. * src/HttpServerCommand.cc
  3429. * src/HttpServerCommand.h
  3430. * src/HttpServerResponseCommand.cc
  3431. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  3432. Added experimental built-in HTTP server. Currently, when a client
  3433. accesses to the server, it responds with the current download
  3434. progress. By default, it is disabled. To enable the server, give
  3435. --enable-http-server option. To change the default port number
  3436. for the server to listen to, use --http-server-listen-port option.
  3437. The response HTML is very simple and refreshes it self each 1
  3438. second. Because of this refresh, you see flicker in normal web
  3439. browser such as Firefox. I recommend to use console-based browser
  3440. such as elinks, w3m. To connect to the server, run 'elinks
  3441. http://localhost:6800/' while running aria2. Please replace port
  3442. number '6800'(which is default) with your preference.
  3443. * src/DownloadEngineFactory.cc
  3444. * src/HttpHeader.cc
  3445. * src/HttpHeader.h
  3446. * src/HttpHeaderProcessor.cc
  3447. * src/HttpHeaderProcessor.h
  3448. * src/HttpListenCommand.cc
  3449. * src/HttpListenCommand.h
  3450. * src/HttpServer.cc
  3451. * src/HttpServer.h
  3452. * src/HttpServerCommand.cc
  3453. * src/HttpServerCommand.h
  3454. * src/HttpServerResponseCommand.cc
  3455. * src/HttpServerResponseCommand.h
  3456. * src/Makefile.am
  3457. * src/OptionHandlerFactory.cc
  3458. * src/Util.cc
  3459. * src/Util.h
  3460. * src/help_tags.h
  3461. * src/option_processing.cc
  3462. * src/prefs.cc
  3463. * src/prefs.h
  3464. * src/usage_text.h
  3465. * test/HttpHeaderProcessorTest.cc
  3466. * test/UtilTest.cc
  3467. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3468. Removed.
  3469. * src/CheckIntegrityMan.cc
  3470. * src/FileAllocationMan.cc
  3471. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3472. Made (piece) hash check sequential for each RequestGroup because
  3473. simultaneous hash check is slower than sequential execution.
  3474. * src/CheckIntegrityCommand.cc
  3475. * src/CheckIntegrityDispatcherCommand.cc
  3476. * src/CheckIntegrityDispatcherCommand.h
  3477. * src/CheckIntegrityMan.h
  3478. * src/ConsoleStatCalc.cc
  3479. * src/DownloadCommand.cc
  3480. * src/DownloadEngine.cc
  3481. * src/DownloadEngine.h
  3482. * src/DownloadEngineFactory.cc
  3483. * src/Makefile.am
  3484. * src/Makefile.in
  3485. * src/RequestGroup.cc
  3486. * src/StatCalc.h
  3487. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3488. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  3489. SequentialDispatcherCommand.
  3490. * src/FileAllocationDispatcherCommand.cc
  3491. * src/SequentialDispatcherCommand.h
  3492. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3493. Rewritten FileAllocationDispatcherCommand using brand new
  3494. SequentialDispatcherCommand.
  3495. * src/DownloadEngineFactory.cc
  3496. * src/FileAllocationCommand.cc
  3497. * src/FileAllocationDispatcherCommand.cc
  3498. * src/FileAllocationDispatcherCommand.h
  3499. * src/Makefile.am
  3500. * src/SequentialDispatcherCommand.h
  3501. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  3502. Replaced FileAllocationMan with
  3503. SequentialPicker<FileAllocationEntry>.
  3504. * src/BtCheckIntegrityEntry.cc
  3505. * src/ConsoleStatCalc.cc
  3506. * src/DownloadEngine.cc
  3507. * src/DownloadEngine.h
  3508. * src/DownloadEngineFactory.cc
  3509. * src/FileAllocationCommand.cc
  3510. * src/FileAllocationDispatcherCommand.cc
  3511. * src/FileAllocationMan.h
  3512. * src/Makefile.am
  3513. * src/SequentialPicker.h
  3514. * src/StatCalc.h
  3515. * src/StreamCheckIntegrityEntry.cc
  3516. * test/Makefile.am
  3517. * test/SequentialPickerTest.cc
  3518. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3519. Added doc for adaptive URI selector.
  3520. * doc/aria2c.1.txt
  3521. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3522. Added doc for adaptive URI selector.
  3523. * src/usage_text.h
  3524. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3525. Added doc for --bt-max-peers option.
  3526. * doc/aria2c.1.txt
  3527. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3528. Added doc for --bt-hash-check-seed option.
  3529. * doc/aria2c.1.txt
  3530. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  3531. Documented exit codes.
  3532. * doc/aria2c.1.txt
  3533. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  3534. Added --bt-max-peers option to specify the maximum number of peers
  3535. per torrent. 0 means unlimited number of peers.
  3536. * src/ActivePeerConnectionCommand.cc
  3537. * src/BtRuntime.h
  3538. * src/DefaultPeerStorage.cc
  3539. * src/DefaultPeerStorage.h
  3540. * src/OptionHandlerFactory.cc
  3541. * src/RequestGroup.cc
  3542. * src/option_processing.cc
  3543. * src/prefs.cc
  3544. * src/prefs.h
  3545. * src/usage_text.h
  3546. * test/DefaultPeerStorageTest.cc
  3547. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  3548. Added --bt-hash-check-seed option. If true is given to this
  3549. option, after hash check using --check-integrity option and file
  3550. is complete, continue to seed file. If you want to check file and
  3551. download it only when it is damaged or incomplete, set this option
  3552. to false. This option has effect only on BitTorrent download.
  3553. The default value is true(This is the same behavior with the
  3554. previous release).
  3555. * src/BtCheckIntegrityEntry.cc
  3556. * src/OptionHandlerFactory.cc
  3557. * src/option_processing.cc
  3558. * src/prefs.cc
  3559. * src/prefs.h
  3560. * src/usage_text.h
  3561. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  3562. Updated copyright year.
  3563. * src/version_usage.cc
  3564. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  3565. Rewritten the usage text for --bt-request-peer-speed-limit option.
  3566. * doc/aria2c.1.txt
  3567. * src/usage_text.h
  3568. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  3569. Made the max value of split option unlimited.
  3570. * doc/aria2c.1.txt
  3571. * src/OptionHandlerFactory.cc
  3572. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  3573. Fixed compile warning/error.
  3574. * src/DownloadResult.h
  3575. * src/HttpDownloadCommand.cc
  3576. * src/ServerStat.cc
  3577. * test/RequestGroupTest.cc
  3578. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  3579. Added --event-poll option to select the method for polling events.
  3580. The available methods are "select" and "epoll". "epoll" is
  3581. available on Linux only. The earlier release has the compile
  3582. option to choose from these methods.
  3583. * configure.ac
  3584. * src/RequestGroupMan.cc
  3585. * src/OptionHandlerFactory.cc
  3586. * src/EpollEventPoll.h
  3587. * src/StreamFileAllocationEntry.cc
  3588. * src/a2io.h
  3589. * src/SelectEventPoll.h
  3590. * src/option_processing.cc
  3591. * src/prefs.h
  3592. * src/EpollEventPoll.cc
  3593. * src/EventPoll.h
  3594. * src/SocketCore.h
  3595. * src/Makefile.am
  3596. * src/main.cc
  3597. * src/DownloadEngine.h
  3598. * src/SelectEventPoll.cc
  3599. * src/DownloadEngine.cc
  3600. * src/SocketCore.cc
  3601. * src/DownloadEngineFactory.cc
  3602. * src/Makefile.in
  3603. * src/prefs.cc
  3604. * src/usage_text.h
  3605. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  3606. Included RecoverableException.h from main.cc
  3607. * src/main.cc
  3608. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  3609. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  3610. now returns last error encountered in the HTTP/FTP downloads as a
  3611. exit status value. If all downloads finished successfully, aria2
  3612. returns 0. The error code is defined in src/DownloadResult.h.
  3613. The error occurred in the download currently in progress is not
  3614. reported as a last error. If no error has encountered but there
  3615. are in progress or waiting downloads, aria2 returns 7.
  3616. * src/AbstractCommand.cc
  3617. * src/DlAbortEx.h
  3618. * src/DlRetryEx.h
  3619. * src/DownloadCommand.cc
  3620. * src/DownloadFailureException.h
  3621. * src/DownloadResult.h
  3622. * src/FtpNegotiationCommand.cc
  3623. * src/HttpSkipResponseCommand.cc
  3624. * src/Makefile.am
  3625. * src/MultiUrlRequestInfo.cc
  3626. * src/MultiUrlRequestInfo.h
  3627. * src/RecoverableException.h
  3628. * src/RequestGroup.cc
  3629. * src/RequestGroup.h
  3630. * src/RequestGroupMan.cc
  3631. * src/RequestGroupMan.h
  3632. * src/URIResult.cc
  3633. * src/URIResult.h
  3634. * src/main.cc
  3635. * src/option_processing.cc
  3636. * test/RequestGroupTest.cc
  3637. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  3638. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  3639. patch adds AdaptiveURISelector, which selects one of the bests
  3640. mirrors for first and reserved connections. For supplementary
  3641. ones, it returns mirrors which has not been tested yet, and if
  3642. each of them already tested, returns mirrors which has to be
  3643. tested again. Otherwise, it doesn't return anymore mirrors.
  3644. * src/AdaptiveURISelector.cc
  3645. * src/AdaptiveURISelector.h
  3646. * src/FtpNegotiationCommand.cc
  3647. * src/HttpResponseCommand.cc
  3648. * src/Makefile.am
  3649. * src/Makefile.in
  3650. * src/OptionHandlerFactory.cc
  3651. * src/RequestGroup.cc
  3652. * src/RequestGroup.h
  3653. * src/RequestGroupMan.cc
  3654. * src/ServerStat.cc
  3655. * src/ServerStat.h
  3656. * src/ServerStatMan.cc
  3657. * src/SpeedCalc.cc
  3658. * src/URISelector.h
  3659. * src/prefs.cc
  3660. * src/prefs.h
  3661. * test/RequestGroupManTest.cc
  3662. * test/ServerStatManTest.cc
  3663. * test/ServerStatTest.cc
  3664. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  3665. Fixed unit test error.
  3666. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  3667. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  3668. * Release 1.1.2
  3669. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  3670. Updated Russian translation. Thanks to the translators.
  3671. * po/ru.po
  3672. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  3673. Added the description of --use-head option to man page.
  3674. * doc/aria2c.1.txt
  3675. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  3676. Bump up version number to 1.1.2
  3677. * configure.ac
  3678. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  3679. Added --use-head option to toggle whether HEAD method should be
  3680. used in the first HTTP request. By default aria2 uses HEAD method
  3681. as the first request. When the server doesn't recognize HEAD, then
  3682. give aria2 --use-head=false to force aria2 to use GET method
  3683. instead.
  3684. * src/OptionHandlerFactory.cc
  3685. * src/RequestGroupMan.cc
  3686. * src/option_processing.cc
  3687. * src/prefs.cc
  3688. * src/prefs.h
  3689. * src/usage_text.h
  3690. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  3691. Fixed the bug that BitTorrent download doesn't finish when REJECT
  3692. message is received before CHOKE message. The old implementation
  3693. doen't clear the use-bit of the piece when recieved REJECT
  3694. message.
  3695. * src/DefaultBtMessageDispatcher.cc
  3696. * test/DefaultBtMessageDispatcherTest.cc
  3697. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  3698. * Release 1.1.1
  3699. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  3700. Bump up version number to 1.1.1.
  3701. * configure.ac
  3702. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  3703. Fixed the bug that --summary-interval=0 doesn't work. The summary
  3704. is printed repeatedly.
  3705. * src/ConsoleStatCalc.cc
  3706. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  3707. * Release 1.1.0
  3708. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  3709. Added ifdef clause for conditional compilation.
  3710. * src/main.cc
  3711. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  3712. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  3713. translations. Thanks to all translators.
  3714. * po/ja.po
  3715. * po/ru.po
  3716. * po/uk.po
  3717. * po/zh_CN.po
  3718. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  3719. Added the preceding ">>> " before the message "Printing the
  3720. contents of file..." to make the output more readable.
  3721. * src/main.cc
  3722. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  3723. Added try-catch block in the loop in showFiles() to continue the
  3724. operation even if the exception occurred in one file.
  3725. * src/main.cc (showFiles)
  3726. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  3727. Made messages in showFiles() translatable.
  3728. * po/aria2.pot
  3729. * src/main.cc
  3730. * src/message.h
  3731. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  3732. Print the contents of Torrent/Metalink files are printed without
  3733. -T/-M options.
  3734. * src/main.cc
  3735. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3736. Escaped '--' with '\--'
  3737. * README
  3738. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3739. Updated "How to build" section in README. Mentioned about
  3740. --with-ca-bundle compile option.
  3741. * README
  3742. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3743. Bump up version number to 1.1.0.
  3744. * configure.ac
  3745. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3746. Added a note for --dht-listen-port option.
  3747. * doc/aria2c.1.txt
  3748. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3749. Update doc for --realtime-chunk-checksum option.
  3750. * doc/aria2c.1.txt
  3751. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3752. Update doc for --realtime-chunk-checksum option.
  3753. * src/usage_text.h
  3754. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3755. Updated French, Japanese, Russian and Ukrainian translations.
  3756. Thanks to all translators.
  3757. * po/fr.po
  3758. * po/ja.po
  3759. * po/ru.po
  3760. * po/uk.po
  3761. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3762. Renamed aria2c.pot to aria2.pot
  3763. * po/aria2.pot
  3764. * po/aria2c.pot: Removed.
  3765. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3766. Removed MetaEntry.h
  3767. * src/Makefile.am
  3768. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  3769. Rename file by appending digits if a local file exists and its
  3770. file size is larger than that of remote file with --continue
  3771. option. The old implementation just throws exception in such case.
  3772. * src/RequestGroup.cc
  3773. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  3774. Fixed the bug that download progress summary is not printed in the
  3775. interval specified by the option.
  3776. * src/ConsoleStatCalc.cc
  3777. * src/ConsoleStatCalc.h
  3778. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  3779. Fixed compiler warning
  3780. * src/Cookie.cc
  3781. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  3782. Fixed the cookie implementation based on RFC2965.
  3783. Now if a value in domain field is not started with dot, then
  3784. prepend dot. That means a cookie with domain=sf.net is sent to
  3785. wiki.sf.net.
  3786. * src/Cookie.cc
  3787. * test/CookieParserTest.cc
  3788. * test/CookieStorageTest.cc
  3789. * test/CookieTest.cc
  3790. * test/NsCookieParserTest.cc
  3791. * test/Sqlite3MozCookieParserTest.cc
  3792. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  3793. Fixed the bug that causes corrupted downloads if HTTP pipelining
  3794. is enabled and the server doesn't support keep-alive.
  3795. * src/AbstractCommand.cc
  3796. * src/DownloadCommand.cc
  3797. * src/HttpDownloadCommand.cc
  3798. * src/HttpDownloadCommand.h
  3799. * src/HttpResponseCommand.cc
  3800. * src/Request.cc
  3801. * src/Request.h
  3802. * test/RequestTest.cc
  3803. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3804. Removed Dictionary/List/Data and its related classes.
  3805. * src/BencodeVisitor.cc: Removed.
  3806. * src/BencodeVisitor.h: Removed.
  3807. * src/Data.cc: Removed.
  3808. * src/Data.h: Removed.
  3809. * src/Dictionary.cc: Removed.
  3810. * src/Dictionary.h: Removed.
  3811. * src/List.cc: Removed.
  3812. * src/List.h: Removed.
  3813. * src/Makefile.am
  3814. * src/MetaEntry.h: Removed.
  3815. * src/MetaEntryVisitor.h: Removed.
  3816. * src/MetaFileUtil.cc: Removed.
  3817. * src/MetaFileUtil.h: Removed.
  3818. * test/BencodeVisitorTest.cc: Removed.
  3819. * test/DataTest.cc: Removed.
  3820. * test/DictionaryTest.cc: Removed.
  3821. * test/ListTest.cc: Removed.
  3822. * test/Makefile.am
  3823. * test/MetaFileUtilTest.cc: Removed.
  3824. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3825. Removed include of MetaEntry.h
  3826. * test/DHTMessageTrackerEntryTest.cc
  3827. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3828. Use BDE instead of Dictionary/List/Data.
  3829. * src/AnnounceList.cc
  3830. * src/AnnounceList.h
  3831. * test/AnnounceListTest.cc
  3832. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3833. Use BDE instead of Dictionary/List/Data.
  3834. * src/DHTAbstractMessage.cc
  3835. * src/DHTAbstractMessage.h
  3836. * src/DHTAnnouncePeerMessage.cc
  3837. * src/DHTAnnouncePeerMessage.h
  3838. * src/DHTAnnouncePeerReplyMessage.cc
  3839. * src/DHTAnnouncePeerReplyMessage.h
  3840. * src/DHTFindNodeMessage.cc
  3841. * src/DHTFindNodeMessage.h
  3842. * src/DHTFindNodeReplyMessage.cc
  3843. * src/DHTFindNodeReplyMessage.h
  3844. * src/DHTGetPeersMessage.cc
  3845. * src/DHTGetPeersMessage.h
  3846. * src/DHTGetPeersReplyMessage.cc
  3847. * src/DHTGetPeersReplyMessage.h
  3848. * src/DHTMessageFactory.h
  3849. * src/DHTMessageFactoryImpl.cc
  3850. * src/DHTMessageFactoryImpl.h
  3851. * src/DHTMessageReceiver.cc
  3852. * src/DHTMessageTracker.cc
  3853. * src/DHTMessageTracker.h
  3854. * src/DHTPingMessage.cc
  3855. * src/DHTPingMessage.h
  3856. * src/DHTPingReplyMessage.cc
  3857. * src/DHTPingReplyMessage.h
  3858. * src/DHTQueryMessage.cc
  3859. * src/DHTQueryMessage.h
  3860. * src/DHTResponseMessage.cc
  3861. * src/DHTResponseMessage.h
  3862. * test/DHTAnnouncePeerMessageTest.cc
  3863. * test/DHTAnnouncePeerReplyMessageTest.cc
  3864. * test/DHTFindNodeMessageTest.cc
  3865. * test/DHTFindNodeReplyMessageTest.cc
  3866. * test/DHTGetPeersMessageTest.cc
  3867. * test/DHTGetPeersReplyMessageTest.cc
  3868. * test/DHTMessageFactoryImplTest.cc
  3869. * test/DHTMessageTrackerTest.cc
  3870. * test/DHTPingMessageTest.cc
  3871. * test/DHTPingReplyMessageTest.cc
  3872. * test/MockDHTMessageFactory.h
  3873. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3874. Added tests the case where length < 0 is specified.
  3875. * test/BencodeTest.cc
  3876. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3877. Fixed memory leak in decoderawstring()
  3878. * src/bencode.cc
  3879. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3880. Added missing #ifdef guard. Added uc() function for String and
  3881. removeKey() for Dict.
  3882. * src/bencode.cc
  3883. * src/bencode.h
  3884. * test/BencodeTest.cc
  3885. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  3886. Use BDE instead of Dictionary/List/Data.
  3887. * src/HandshakeExtensionMessage.cc
  3888. * src/HandshakeExtensionMessage.h
  3889. * test/HandshakeExtensionMessageTest.cc
  3890. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  3891. Added --max-overall-upload-limit option. This option limits the
  3892. overall upload speed. Stated in help message that the existing
  3893. --max-upload-limit option limits the upload speed per each
  3894. torrent. Man page is also updated.
  3895. * doc/aria2c.1.txt
  3896. * src/DefaultBtMessageDispatcher.cc
  3897. * src/DefaultBtMessageDispatcher.h
  3898. * src/OptionHandlerFactory.cc
  3899. * src/PeerInteractionCommand.cc
  3900. * src/option_processing.cc
  3901. * src/prefs.cc
  3902. * src/prefs.h
  3903. * src/usage_text.h
  3904. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  3905. Use BDE instead of Dictionary/List/Data classes.
  3906. * src/CompactPeerListProcessor.cc
  3907. * src/CompactPeerListProcessor.h
  3908. * src/DefaultBtAnnounce.cc
  3909. * src/DefaultBtContext.cc
  3910. * src/DefaultBtContext.h
  3911. * src/DefaultPeerListProcessor.cc
  3912. * src/DefaultPeerListProcessor.h
  3913. * src/DelegatingPeerListProcessor.cc
  3914. * src/DelegatingPeerListProcessor.h
  3915. * src/PeerListProcessor.h
  3916. * src/UTPexExtensionMessage.cc
  3917. * src/Util.h
  3918. * src/message.h
  3919. * test/DefaultBtContextTest.cc
  3920. * test/DefaultPeerListProcessorTest.cc
  3921. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  3922. Added bencode helper functions and BDE class.
  3923. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3924. * src/Makefile.am
  3925. * src/bencode.cc
  3926. * src/bencode.h
  3927. * test/BencodeTest.cc
  3928. * test/Makefile.am
  3929. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  3930. Fixed the bug that bad URI is sent to the tracker when the announe
  3931. URI in torrent file includes query.
  3932. * src/DefaultBtAnnounce.cc
  3933. * test/DefaultBtAnnounceTest.cc
  3934. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  3935. Added Option::blank().
  3936. Use !Option::blank(name) instead of Option::defined(name) for
  3937. the options that take filename.
  3938. * src/MultiUrlRequestInfo.cc
  3939. * src/Option.cc
  3940. * src/Option.h
  3941. * src/main.cc
  3942. * src/option_processing.cc
  3943. * test/OptionTest.cc
  3944. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  3945. Documented the default value of --check-certificate option in man
  3946. page.
  3947. * doc/aria2c.1.txt
  3948. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  3949. Enabled --check-certificate by default. Added compile
  3950. time(configure) option --with-ca-bundle to specify CA bundle.
  3951. Warn if --check-certificate=true and --ca-certificate is not
  3952. specified or loading CA certificate is failed.
  3953. * configure.ac
  3954. * src/MultiUrlRequestInfo.cc
  3955. * src/OptionHandlerFactory.cc
  3956. * src/message.h
  3957. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  3958. Mentioned https tag in help option.
  3959. * doc/aria2c.1.txt
  3960. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  3961. Added `https' tag to help option category. Added https tag to
  3962. --ca-certificate, --certificate, --check-certificate and
  3963. --private-key option.
  3964. * src/OptionHandlerFactory.cc
  3965. * src/help_tags.h
  3966. * src/option_processing.cc
  3967. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  3968. Changed the package name from `aria2c' to `aria2' in order to fix
  3969. the packaging issue in Debian and Fedora. The name of the
  3970. executable is not changed.
  3971. * configure.ac
  3972. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  3973. Fixed typos
  3974. * src/usage_text.h
  3975. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  3976. Fixed typos and updated doc.
  3977. * README
  3978. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  3979. Fixed typos
  3980. * doc/aria2c.1.txt
  3981. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  3982. Fixed typos
  3983. * src/usage_text.h
  3984. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  3985. Print a message when no files to download.
  3986. * src/download_helper.cc
  3987. * src/main.cc
  3988. * src/message.h
  3989. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3990. RFC3986 complied Percent-Encoding(urlencode).
  3991. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3992. ones.
  3993. * src/Request.cc
  3994. * src/Util.cc
  3995. * src/Util.h
  3996. * test/BtHandshakeMessageTest.cc
  3997. * test/DefaultBtAnnounceTest.cc
  3998. * test/DefaultBtContextTest.cc
  3999. * test/RequestTest.cc
  4000. * test/UtilTest.cc
  4001. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  4002. Fixed the bug that prevents aria2 from downloading 0-length files
  4003. via HTTP/FTP.
  4004. * src/DefaultBtContext.cc
  4005. * src/DefaultBtContext.h
  4006. * src/DownloadContext.h
  4007. * src/FtpNegotiationCommand.cc
  4008. * src/HttpResponseCommand.cc
  4009. * src/HttpResponseCommand.h
  4010. * src/RequestGroup.cc
  4011. * src/SingleFileDownloadContext.cc
  4012. * src/SingleFileDownloadContext.h
  4013. * test/BtPostDownloadHandlerTest.cc
  4014. * test/MetalinkPostDownloadHandlerTest.cc
  4015. * test/MockBtContext.h
  4016. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  4017. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  4018. * src/option_processing.cc
  4019. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  4020. Applied aria2-1.0.1-mingw.patch.
  4021. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  4022. mingw.
  4023. Collected 4th and 5th argument types for getsockopt and setsockopt.
  4024. * src/SocketCore.cc
  4025. * src/a2netcompat.h
  4026. * test/SocketCoreTest.cc
  4027. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4028. * Release 1.0.1
  4029. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4030. Updated Ukrainian and Norwegian Nynorsk translations.
  4031. Thanks to all translators.
  4032. * po/nn.po
  4033. * po/uk.po
  4034. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4035. Don't show download result when -S option is used.
  4036. * src/main.cc
  4037. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4038. Bump up version number to 1.0.1
  4039. * configure.ac
  4040. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  4041. Closed files after the test cases in MultiDiskWriterTest::
  4042. testResetDiskWriterEntries(). This will fix the unit test error
  4043. in mingw32 build.
  4044. * test/MultiDiskWriterTest.cc
  4045. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  4046. Use HEAD method to get file size from HTTP server for segmented
  4047. downloading.
  4048. The request to the BitTorrent Tracker always uses GET method because
  4049. the response of the tracker is small and it doesn't need segmented
  4050. download.
  4051. * src/FtpNegotiationCommand.cc
  4052. * src/HttpRequest.cc
  4053. * src/HttpResponseCommand.cc
  4054. * src/HttpSkipResponseCommand.cc
  4055. * src/RequestGroup.cc
  4056. * src/RequestGroup.h
  4057. * src/TrackerWatcherCommand.cc
  4058. * test/HttpRequestTest.cc
  4059. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  4060. Fixed the bug that causes floating exception when -T option is used and
  4061. no URIs are given.
  4062. * src/download_helper.cc
  4063. * test/DownloadHelperTest.cc
  4064. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  4065. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  4066. errors in MinGW:
  4067. Closed file after saving server stats (RequestGroupMan.cc)
  4068. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  4069. Ignored case & handled 2-digit years (strptime.c)
  4070. Added missing suseconds_t definition (a2time.h)
  4071. Fixed socket CLOSE() define (SocketCore.cc)
  4072. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  4073. Changed utime() test values from x000 to x00000 as MinGW failed on
  4074. values less than timezone offset from Unix epoch
  4075. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  4076. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  4077. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  4078. handle negative dates (CookieParserTest.cc)
  4079. * src/a2time.h
  4080. * src/FtpConnection.cc
  4081. * src/RequestGroupMan.cc
  4082. * src/SocketCore.cc
  4083. * src/strptime.c
  4084. * test/CookieParserTest.cc
  4085. * test/CopyDiskAdaptorTest.cc
  4086. * test/FileTest.cc
  4087. * test/FtpConnectionTest.cc
  4088. * test/MultiDiskAdaptorTest.cc
  4089. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  4090. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  4091. * doc/aria2c.1.txt
  4092. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4093. * Release 1.0.0
  4094. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4095. Added '~' to reserved characters.
  4096. * src/Util.cc
  4097. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  4098. Do not urlencode Request::url in setUrl() because we want unmodified
  4099. URL using Request::getUrl()
  4100. * src/Request.cc
  4101. * src/Request.h
  4102. * test/RequestTest.cc
  4103. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4104. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  4105. Thanks to all translators.
  4106. * po/bg.po
  4107. * po/fr.po
  4108. * po/ja.po
  4109. * po/ru.po
  4110. * po/uk.po
  4111. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4112. Bump up version number to 1.0.0
  4113. * configure.ac
  4114. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4115. Added nosqlite3 build to build_test.sh.
  4116. Renamed noxml as expat.
  4117. * build_test.sh
  4118. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4119. Updated INPUT FILE section.
  4120. * doc/aria2c.1.txt
  4121. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4122. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  4123. on big endian systems because test .aria2 files are made for little
  4124. endian systems.
  4125. * test/DefaultBtProgressInfoFileTest.cc
  4126. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  4127. Dropped ares support.
  4128. * README
  4129. * configure.ac
  4130. * m4/libares.m4: Removed.
  4131. * src/AsyncNameResolver.cc
  4132. * src/Makefile.am
  4133. * test/Makefile.am
  4134. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  4135. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  4136. Removed const qualifier from DiskWriter::size().
  4137. * src/AbstractDiskWriter.cc
  4138. * src/AbstractDiskWriter.h
  4139. * src/ByteArrayDiskWriter.cc
  4140. * src/ByteArrayDiskWriter.h
  4141. * src/DiskWriter.h
  4142. * test/ByteArrayDiskWriterTest.cc
  4143. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  4144. Fixed the bug that causes segmentation fault/bus error during executing
  4145. choking algorithm while seeding. This is caused by improper
  4146. implementation of compare function which returns inconsistent results
  4147. depending on the timing of last unchoke.
  4148. * src/BtSeederStateChoke.cc
  4149. * src/BtSeederStateChoke.h
  4150. * src/DefaultPeerStorage.cc
  4151. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4152. Removed TODO
  4153. * TODO
  4154. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4155. Added a section that explains how to pass argument to options that
  4156. takes optional arguments with its short form.
  4157. * doc/aria2c.1.txt
  4158. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4159. Added -u for the short form of --max-upload-limit option.
  4160. * doc/aria2c.1.txt
  4161. * src/option_processing.cc
  4162. * src/usage_text.h
  4163. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4164. Added -V for the short form of --check-integrity option.
  4165. Now the argument of --check-integrity option is optional:
  4166. if it is omitted, it is evaluated as true.
  4167. * doc/aria2c.1.txt
  4168. * src/option_processing.cc
  4169. * src/usage_text.h
  4170. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  4171. Made the default value of --ftp-pasv option set to true and it can take
  4172. true/false values.
  4173. * src/OptionHandlerFactory.cc
  4174. * src/option_processing.cc
  4175. * src/usage_text.h
  4176. * doc/aria2c.1.txt
  4177. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4178. Given custom random number generator to std::random_shuffle.
  4179. * src/AnnounceList.cc
  4180. * src/BtLeecherStateChoke.cc
  4181. * src/BtSeederStateChoke.cc
  4182. * src/DefaultBtRequestFactory.cc
  4183. * src/MetalinkEntry.cc
  4184. * src/RarestPieceSelector.cc
  4185. * src/SimpleRandomizer.cc
  4186. * src/SimpleRandomizer.h
  4187. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4188. Now the default value of --enable-direct-io is true.
  4189. * src/OptionHandlerFactory.cc
  4190. * doc/aria2c.1.txt
  4191. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  4192. Erase peer before executing onReturningPeer and onErasingPeer
  4193. because choking algorithm called from onReturningPeer doesn't
  4194. like erasing peer in the active peer list.
  4195. * src/DefaultPeerStorage.cc
  4196. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4197. Instead of creating special filename in createDownloadResult() if
  4198. inMemoryDownload() is true, now it is done in getFilePath().
  4199. * src/RequestGroup.cc
  4200. * test/RequestGroupTest.cc
  4201. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4202. Print "[MEMORY]" and filename if a file is not saved in disk and just
  4203. processed in memory. This is the fix for previous comment out.
  4204. * src/MemoryBufferPreDownloadHandler.cc
  4205. * src/RequestGroup.cc
  4206. * src/RequestGroup.h
  4207. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4208. Commented out the code which sets virtual directory path "[MEMORY]"
  4209. propagate directory to store to following RequestGroup.
  4210. * src/MemoryBufferPreDownloadHandler.cc
  4211. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4212. Bump up version number to 1.0.0b
  4213. * configure.ac
  4214. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4215. Added input_uris.txt to EXTRA_DIST
  4216. * test/Makefile.am
  4217. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4218. Removed PeerObject.h from Makefile.am
  4219. * src/Makefile.am
  4220. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4221. Avoid slow seeding
  4222. * src/PeerInteractionCommand.cc
  4223. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4224. Updated usage for -i option.
  4225. * src/usage_text.h (TEXT_INPUT_FILE)
  4226. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4227. Added INPUT FILE section to man page.
  4228. Escaped fake URLs.
  4229. * doc/aria2c.1.txt
  4230. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4231. Fixed wrong note position for -o option.
  4232. * doc/aria2c.1.txt
  4233. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  4234. Fixed compile error without SSL/XML library.
  4235. * src/DefaultBtProgressInfoFile.cc
  4236. * src/DefaultBtProgressInfoFile.h
  4237. * src/FileMetalinkParserState.cc
  4238. * src/RequestGroup.h
  4239. * src/SocketCore.cc
  4240. * src/SocketCore.h
  4241. * src/VerificationMetalinkParserState.cc
  4242. * src/download_helper.h
  4243. * src/main.cc
  4244. * test/DefaultBtProgressInfoFileTest.cc
  4245. * test/DownloadHelperTest.cc
  4246. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  4247. Rewritten URI handling functions. They are now provided as a testable
  4248. functions.
  4249. * src/Makefile.am
  4250. * src/RequestGroup.cc
  4251. * src/RequestGroup.h
  4252. * src/download_helper.cc
  4253. * src/download_helper.h
  4254. * src/main.cc
  4255. * test/DownloadHelperTest.cc
  4256. * test/Makefile.am
  4257. * test/input_uris.txt
  4258. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  4259. Quickly terminate commands when ctrl-c is pressed.
  4260. * src/DownloadEngine.cc
  4261. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  4262. Quickly terminate idle commands when download finished.
  4263. * src/AbstractCommand.cc
  4264. * src/DownloadCommand.cc
  4265. * src/DownloadEngine.cc
  4266. * src/DownloadEngine.h
  4267. * src/SleepCommand.cc
  4268. * src/SleepCommand.h
  4269. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4270. Added the ability to specify output filename and directory in input
  4271. file.
  4272. Additional parameters are added in the following line of URIs
  4273. with proceeding white space(s), 1 parameter in 1 line.
  4274. The parameter names are the same with the command-line option name
  4275. without proceeding "--". Not all the options are available here:
  4276. at the moment, 'dir' and 'out' options are avialable.
  4277. Please note that out option has no effect against Metalink or BitTorrent
  4278. downloads.
  4279. Example input file:
  4280. http://host/foo-1.1.tar.bz2
  4281. out=foo.tar.bz2
  4282. dir=/tmp/downloads
  4283. http://host/thundermonkey-2.0.tar.bz2
  4284. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  4285. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  4286. thundermonkey-2.0.tar.bz2 is saved as
  4287. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  4288. * src/BtPostDownloadHandler.cc
  4289. * src/Metalink2RequestGroup.cc
  4290. * src/Metalink2RequestGroup.h
  4291. * src/MetalinkPostDownloadHandler.cc
  4292. * src/UriListParser.cc
  4293. * src/UriListParser.h
  4294. * src/main.cc
  4295. * test/Metalink2RequestGroupTest.cc
  4296. * test/UriListParserTest.cc
  4297. * test/filelist1.txt
  4298. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4299. Fixed error when SSL library is not found.
  4300. * configure.ac
  4301. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4302. Cross referenced among -s, -C and -j options.
  4303. Updated usage of -C and -s options.
  4304. * src/usage_text.h
  4305. * doc/aria2c.1.txt
  4306. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4307. Fixed bad cast in 32bit platforms.
  4308. * test/DefaultPieceStorageTest.cc
  4309. (DefaultPieceStorageTest::testGetCompletedLength)
  4310. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4311. Fixed unit test fails on 32bit platforms.
  4312. * test/CookieParserTest.cc
  4313. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4314. Show an average download speed in Download results.
  4315. * src/BtFileAllocationEntry.cc
  4316. * src/DefaultPieceStorage.cc
  4317. * src/DownloadContext.cc
  4318. * src/DownloadContext.h
  4319. * src/DownloadResult.h
  4320. * src/RequestGroup.cc
  4321. * src/RequestGroupMan.cc
  4322. * src/StreamFileAllocationEntry.cc
  4323. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  4324. Fixed the bug that metalink file is not processed if Content-Type
  4325. field has a paramter.
  4326. * src/HttpResponse.cc
  4327. * src/HttpResponse.h
  4328. * test/HttpResponseTest.cc
  4329. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  4330. Removed unused code.
  4331. * src/DefaultBtAnnounce.cc
  4332. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  4333. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  4334. the value larger than DefaultPieceStorage::getTotalLength() when
  4335. in flight pieces are involved.
  4336. * src/DefaultPieceStorage.cc
  4337. * test/DefaultPieceStorageTest.cc
  4338. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4339. Bump up version number to 1.0.0a.
  4340. * configure.ac
  4341. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4342. Updated configure.ac
  4343. * configure.ac
  4344. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4345. Added usege for proxy.
  4346. * doc/aria2c.1.txt
  4347. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4348. Added usage for --ca-certificate, --certificate, --private-key and
  4349. --check-certificate options.
  4350. * doc/aria2c.1.txt
  4351. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4352. Updated man page
  4353. * doc/aria2c.1.txt
  4354. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4355. Added --no-proxy option. It receives comman separated hostname or
  4356. domains to which proxy should not be used.
  4357. aria2 honors the environment variable no_proxy to override no-proxy
  4358. value in configuration file. The user can override the environment
  4359. variable no_proxy with --no-proxy command-line option.
  4360. * src/AbstractCommand.cc
  4361. * src/OptionHandlerFactory.cc
  4362. * src/option_processing.cc
  4363. * src/prefs.cc
  4364. * src/prefs.h
  4365. * src/usage_text.h
  4366. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  4367. Added the ability to verify peer in SSL/TLS using given CA certificates.
  4368. The CA certificates are specified in --ca-certificate option.
  4369. By default, the verification is disabled. Use --check-certificate
  4370. option to enable it.
  4371. * src/HttpRequestCommand.cc
  4372. * src/LibgnutlsTLSContext.cc
  4373. * src/LibgnutlsTLSContext.h
  4374. * src/LibsslTLSContext.cc
  4375. * src/LibsslTLSContext.h
  4376. * src/MultiUrlRequestInfo.cc
  4377. * src/OptionHandlerFactory.cc
  4378. * src/SocketCore.cc
  4379. * src/SocketCore.h
  4380. * src/a2functional.h
  4381. * src/message.h
  4382. * src/option_processing.cc
  4383. * src/prefs.cc
  4384. * src/prefs.h
  4385. * src/usage_text.h
  4386. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  4387. Added client certificate authentication for SSL/TLS.
  4388. Currently a private key must be decrypted for use with aria2.
  4389. If a user accidentally gives encrypted file to aria2 then following
  4390. thing happens:
  4391. If encrypted private key is given to aria2, it behaves differently
  4392. depending on the ssl library it uses. If aria2 built with openssl then
  4393. openssl prompts the user for password. If aria2 build with gnutls then
  4394. aria2 exists with error at start up.
  4395. * src/DownloadEngineFactory.cc
  4396. * src/MultiUrlRequestInfo.cc
  4397. * src/OptionHandlerFactory.cc
  4398. * src/option_processing.cc
  4399. * src/prefs.cc
  4400. * src/prefs.h
  4401. * src/usage_text.h
  4402. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  4403. Introduced TLSContext that holds TLS related data that can be shared
  4404. with multiple SSL connections.
  4405. * src/DownloadEngineFactory.cc
  4406. * src/LibgnutlsTLSContext.cc
  4407. * src/LibgnutlsTLSContext.h
  4408. * src/LibsslTLSContext.cc
  4409. * src/LibsslTLSContext.h
  4410. * src/Makefile.am
  4411. * src/SocketCore.cc
  4412. * src/SocketCore.h
  4413. * src/TLSContext.h
  4414. * src/message.h
  4415. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  4416. Fixed the bug that the DiskWriter of the first FileEntry whose
  4417. `needsFileAllocation' property is false is not created
  4418. even if it shares a piece with next FileEntry which `requested' property
  4419. is true.
  4420. Fixed the bug that zero-length file is not created if pre file
  4421. allocation is not done.
  4422. * src/MultiDiskAdaptor.cc
  4423. * src/MultiDiskAdaptor.h
  4424. * test/MultiDiskAdaptorTest.cc
  4425. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4426. Added the ability to pool proxy connection.
  4427. The conneciton in FTP with proxy-method=GET is not pooled.
  4428. Proxy-Connection header will not be sent when sending CONNECT method.
  4429. * src/DownloadEngine.cc
  4430. * src/DownloadEngine.h
  4431. * src/FtpFinishDownloadCommand.cc
  4432. * src/FtpInitiateConnectionCommand.cc
  4433. * src/FtpNegotiationCommand.cc
  4434. * src/HttpDownloadCommand.cc
  4435. * src/HttpInitiateConnectionCommand.cc
  4436. * src/HttpRequest.cc
  4437. * src/HttpRequest.h
  4438. * src/HttpResponse.cc
  4439. * src/HttpSkipResponseCommand.cc
  4440. * test/HttpRequestTest.cc
  4441. * test/HttpResponseTest.cc
  4442. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Handle date before epoch.
  4444. To create *bad* Time object, call Time::null().
  4445. * src/CookieParser.cc
  4446. * src/FtpConnection.cc
  4447. * src/FtpConnection.h
  4448. * src/FtpNegotiationCommand.cc
  4449. * src/RequestGroup.cc
  4450. * src/TimeA2.cc
  4451. * src/TimeA2.h
  4452. * test/CookieParserTest.cc
  4453. * test/FtpConnectionTest.cc
  4454. * test/TimeTest.cc
  4455. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4456. Added support for following envrionment variables: http_proxy,
  4457. https_proxy, ftp_proxy and all_proxy.
  4458. Each variable is equivalent to the aria2 option whose name is the
  4459. variable name with '_' replaced with '-'.
  4460. They overrides options specified in aria2.conf file.
  4461. The envrionment variables can be overrode using command-line option.
  4462. * src/option_processing.cc
  4463. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4464. Renamed --http-proxy-method as --proxy-method.
  4465. * src/AbstractCommand.cc
  4466. * src/FtpInitiateConnectionCommand.cc
  4467. * src/HttpInitiateConnectionCommand.cc
  4468. * src/OptionHandlerFactory.cc
  4469. * src/option_processing.cc
  4470. * src/prefs.cc
  4471. * src/prefs.h
  4472. * src/usage_text.h
  4473. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4474. Deprecated --http-proxy-user and --http-proxy-passwd options.
  4475. Added --https-proxy, --ftp-proxy and --all-proxy options.
  4476. Above 3 options and --http-proxy option can handle proxy in URL format
  4477. like: http://user:passwd@host:port.
  4478. If a proxy requires user/password, they must be specified in a URL.
  4479. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  4480. instead.
  4481. * src/AbstractCommand.cc
  4482. * src/AbstractCommand.h
  4483. * src/AbstractProxyRequestCommand.cc
  4484. * src/AbstractProxyRequestCommand.h
  4485. * src/AuthConfigFactory.cc
  4486. * src/AuthConfigFactory.h
  4487. * src/FtpFinishDownloadCommand.cc
  4488. * src/FtpInitiateConnectionCommand.cc
  4489. * src/FtpInitiateConnectionCommand.h
  4490. * src/FtpNegotiationCommand.cc
  4491. * src/FtpTunnelRequestCommand.cc
  4492. * src/FtpTunnelRequestCommand.h
  4493. * src/HttpDownloadCommand.cc
  4494. * src/HttpInitiateConnectionCommand.cc
  4495. * src/HttpInitiateConnectionCommand.h
  4496. * src/HttpProxyRequestCommand.cc
  4497. * src/HttpProxyRequestCommand.h
  4498. * src/HttpRequest.cc
  4499. * src/HttpRequest.h
  4500. * src/HttpRequestCommand.cc
  4501. * src/HttpRequestCommand.h
  4502. * src/HttpSkipResponseCommand.cc
  4503. * src/InitiateConnectionCommand.cc
  4504. * src/InitiateConnectionCommand.h
  4505. * src/OptionHandlerFactory.cc
  4506. * src/OptionHandlerImpl.h
  4507. * src/Request.cc
  4508. * src/option_processing.cc
  4509. * src/prefs.cc
  4510. * src/prefs.h
  4511. * src/usage_text.h
  4512. * test/AuthConfigFactoryTest.cc
  4513. * test/HttpRequestTest.cc
  4514. * test/OptionHandlerTest.cc
  4515. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4516. Execute choking algorithm when unchoked and interested peer is
  4517. disconected.
  4518. * src/DefaultPeerStorage.cc
  4519. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4520. Added testcase for BtNotInterestedMessage from unchoked peer.
  4521. * test/BtNotInterestedMessageTest.cc
  4522. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4523. Execute choking algorithm when BtInterestedMessage arrives from
  4524. unchoked peer.
  4525. * src/BtInterestedMessage.cc
  4526. * src/BtInterestedMessage.h
  4527. * src/DefaultBtMessageFactory.cc
  4528. * test/BtInterestedMessageTest.cc
  4529. * test/MockPeerStorage.h
  4530. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4531. AuthConfigFactory is now part of DownloadEngine.
  4532. * src/AbstractProxyRequestCommand.cc
  4533. * src/AuthConfigFactory.h
  4534. * src/DownloadEngine.cc
  4535. * src/DownloadEngine.h
  4536. * src/FtpConnection.cc
  4537. * src/FtpConnection.h
  4538. * src/FtpNegotiationCommand.cc
  4539. * src/HttpConnection.cc
  4540. * src/HttpRequest.cc
  4541. * src/HttpRequest.h
  4542. * src/HttpRequestCommand.cc
  4543. * src/HttpResponse.cc
  4544. * src/HttpResponseCommand.cc
  4545. * src/HttpSkipResponseCommand.cc
  4546. * src/MultiUrlRequestInfo.cc
  4547. * src/main.cc
  4548. * test/FtpConnectionTest.cc
  4549. * test/HttpRequestTest.cc
  4550. * test/HttpResponseTest.cc
  4551. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4552. Corrected catched exception type.
  4553. * src/ServerStatMan.cc
  4554. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4555. DNSCache is now part of DownloadEngine.
  4556. * src/DNSCache.h
  4557. * src/DownloadEngine.cc
  4558. * src/DownloadEngine.h
  4559. * src/InitiateConnectionCommand.cc
  4560. * src/MultiUrlRequestInfo.cc
  4561. * test/Makefile.am
  4562. * test/Makefile.in
  4563. * test/SimpleDNSCacheTest.cc
  4564. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4565. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  4566. DownloadEngine.
  4567. * src/ActivePeerConnectionCommand.cc
  4568. * src/BtSetup.cc
  4569. * src/CUIDCounter.h
  4570. * src/DHTSetup.cc
  4571. * src/DownloadCommand.cc
  4572. * src/DownloadEngine.cc
  4573. * src/DownloadEngine.h
  4574. * src/DownloadEngineFactory.cc
  4575. * src/FileAllocationDispatcherCommand.cc
  4576. * src/InitiatorMSEHandshakeCommand.cc
  4577. * src/PeerInitiateConnectionCommand.cc
  4578. * src/PeerInteractionCommand.cc
  4579. * src/PeerListenCommand.cc
  4580. * src/RequestGroup.cc
  4581. * src/StreamFileAllocationEntry.cc
  4582. * src/TrackerWatcherCommand.cc
  4583. * src/main.cc
  4584. * test/RequestGroupManTest.cc
  4585. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4586. Implemented commented code in BtSeederStateChoke
  4587. * src/BtSeederStateChoke.cc
  4588. * src/Peer.cc
  4589. * src/Peer.h
  4590. * src/PeerInteractionCommand.cc
  4591. * src/PeerSessionResource.cc
  4592. * src/PeerSessionResource.h
  4593. * test/MockBtMessageDispatcher.h
  4594. * test/PeerSessionResourceTest.cc
  4595. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  4597. its object.
  4598. * src/AbstractBtMessage.cc
  4599. * src/ActivePeerConnectionCommand.cc
  4600. * src/ActivePeerConnectionCommand.h
  4601. * src/BtContextAwareCommand.cc
  4602. * src/BtContextAwareCommand.h
  4603. * src/BtExtendedMessage.cc
  4604. * src/BtExtendedMessage.h
  4605. * src/BtInterestedMessage.cc
  4606. * src/BtInterestedMessage.h
  4607. * src/BtNotInterestedMessage.cc
  4608. * src/BtNotInterestedMessage.h
  4609. * src/BtRegistry.cc
  4610. * src/BtRegistry.h
  4611. * src/BtSeederStateChoke.cc
  4612. * src/BtSetup.cc
  4613. * src/DHTGetPeersCommand.cc
  4614. * src/DHTGetPeersCommand.h
  4615. * src/DHTPeerAnnounceEntry.cc
  4616. * src/DHTPeerAnnounceEntry.h
  4617. * src/DHTPeerAnnounceStorage.cc
  4618. * src/DHTPeerAnnounceStorage.h
  4619. * src/DHTPeerLookupTask.cc
  4620. * src/DHTPeerLookupTask.h
  4621. * src/DHTSetup.cc
  4622. * src/DHTSetup.h
  4623. * src/DHTTaskFactory.h
  4624. * src/DHTTaskFactoryImpl.cc
  4625. * src/DHTTaskFactoryImpl.h
  4626. * src/DefaultBtAnnounce.cc
  4627. * src/DefaultBtInteractive.cc
  4628. * src/DefaultBtInteractive.h
  4629. * src/DefaultBtMessageDispatcher.cc
  4630. * src/DefaultBtMessageDispatcher.h
  4631. * src/DefaultBtMessageFactory.cc
  4632. * src/DefaultBtMessageFactory.h
  4633. * src/DefaultBtMessageReceiver.cc
  4634. * src/DefaultBtProgressInfoFile.cc
  4635. * src/DefaultBtProgressInfoFile.h
  4636. * src/DefaultBtRequestFactory.cc
  4637. * src/DefaultBtRequestFactory.h
  4638. * src/DefaultExtensionMessageFactory.cc
  4639. * src/DefaultExtensionMessageFactory.h
  4640. * src/DefaultPeerStorage.cc
  4641. * src/DefaultPeerStorage.h
  4642. * src/DownloadEngine.cc
  4643. * src/DownloadEngine.h
  4644. * src/InitiatorMSEHandshakeCommand.cc
  4645. * src/InitiatorMSEHandshakeCommand.h
  4646. * src/MSEHandshake.cc
  4647. * src/MSEHandshake.h
  4648. * src/Makefile.am
  4649. * src/Makefile.in
  4650. * src/PeerChokeCommand.cc
  4651. * src/PeerChokeCommand.h
  4652. * src/PeerInitiateConnectionCommand.cc
  4653. * src/PeerInitiateConnectionCommand.h
  4654. * src/PeerInteractionCommand.cc
  4655. * src/PeerInteractionCommand.h
  4656. * src/PeerObject.h
  4657. * src/PeerReceiveHandshakeCommand.cc
  4658. * src/PeerReceiveHandshakeCommand.h
  4659. * src/ReceiverMSEHandshakeCommand.cc
  4660. * src/RequestGroup.cc
  4661. * src/RequestGroup.h
  4662. * src/RequestGroupMan.cc
  4663. * src/RequestGroupMan.h
  4664. * src/SeedCheckCommand.cc
  4665. * src/SeedCheckCommand.h
  4666. * src/ShareRatioSeedCriteria.h
  4667. * src/SimpleBtMessage.cc
  4668. * src/TrackerWatcherCommand.cc
  4669. * src/TrackerWatcherCommand.h
  4670. * src/UTPexExtensionMessage.cc
  4671. * src/UTPexExtensionMessage.h
  4672. * test/BtCancelMessageTest.cc
  4673. * test/BtChokeMessageTest.cc
  4674. * test/BtExtendedMessageTest.cc
  4675. * test/BtInterestedMessageTest.cc
  4676. * test/BtNotInterestedMessageTest.cc
  4677. * test/BtPieceMessageTest.cc
  4678. * test/BtPortMessageTest.cc
  4679. * test/BtRegistryTest.cc
  4680. * test/BtRejectMessageTest.cc
  4681. * test/BtRequestMessageTest.cc
  4682. * test/DHTPeerAnnounceEntryTest.cc
  4683. * test/DHTPeerAnnounceStorageTest.cc
  4684. * test/DefaultBtMessageDispatcherTest.cc
  4685. * test/DefaultBtMessageFactoryTest.cc
  4686. * test/DefaultBtProgressInfoFileTest.cc
  4687. * test/DefaultBtRequestFactoryTest.cc
  4688. * test/DefaultExtensionMessageFactoryTest.cc
  4689. * test/MSEHandshakeTest.cc
  4690. * test/MockDHTTaskFactory.h
  4691. * test/ShareRatioSeedCriteriaTest.cc
  4692. * test/UTPexExtensionMessageTest.cc
  4693. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4694. Fixed compiler warning.
  4695. * test/UtilTest.cc
  4696. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4697. Treat Cookie object as session cookie if expiry = 0 is given.
  4698. With this change, you can specify session scoped cookies in an external
  4699. file setting expiry value to 0.
  4700. * src/Cookie.cc
  4701. * src/Cookie.h
  4702. * test/CookieParserTest.cc
  4703. * test/CookieStorageTest.cc
  4704. * test/CookieTest.cc
  4705. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Changed signature of DHTMessageFactory::createResponseMessage().
  4707. Removed unused validateIDMatch.
  4708. * src/DHTMessageFactory.h
  4709. * src/DHTMessageFactoryImpl.cc
  4710. * src/DHTMessageFactoryImpl.h
  4711. * src/DHTMessageTracker.cc
  4712. * test/DHTMessageFactoryImplTest.cc
  4713. * test/MockDHTMessageFactory.h
  4714. Dropped DHT message coming from same ID of localhost.
  4715. * src/DHTMessageReceiver.cc
  4716. Rejected adding node whose ID is the same as localhost's.
  4717. * src/DHTRoutingTable.cc
  4718. * test/BtPortMessageTest.cc
  4719. * test/DHTRoutingTableTest.cc
  4720. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Pool connection when redirection occurs with Content-Length = 0.
  4722. * src/HttpSkipResponseCommand.cc
  4723. * src/HttpSkipResponseCommand.h
  4724. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4725. Fixed the bug that causes time out when redirection occurs with
  4726. content-length 0.
  4727. * src/HttpResponseCommand.cc
  4728. * src/HttpSkipResponseCommand.cc
  4729. * src/HttpSkipResponseCommand.h
  4730. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. Now each status legends is shown only when it appears in Download
  4732. Result. If Download Result has no item, then status legend will not
  4733. be printed.
  4734. * src/RequestGroupMan.cc
  4735. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4736. Removed duplicate creation of OptionHandlers.
  4737. * src/option_processing.cc
  4738. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Fixed the bug that causes segmentation fault when accessing files which
  4740. don't exist or are not included in --select-file option while
  4741. validating chunk checksum.
  4742. * src/MultiDiskAdaptor.cc
  4743. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4744. Fixed compiler warning.
  4745. * test/UtilTest.cc
  4746. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4747. Included cstdlib. This fixed the compile error with g++-4.3.2.
  4748. * src/IteratableChecksumValidator.cc
  4749. * src/IteratableChunkChecksumValidator.cc
  4750. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4751. * Release 0.16.2
  4752. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Added Serbian translation. Updated Ukrainian translation.
  4754. Thanks to all translators.
  4755. * po/sr.po
  4756. * po/uk.po
  4757. * po/LINGUAS
  4758. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4759. Bump up version number to 0.16.2
  4760. * configure.ac
  4761. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4762. Added length equality test to operator== to drop a piece message
  4763. whose length does not match to the requested one.
  4764. * src/RequestSlot.cc
  4765. * test/DefaultBtMessageDispatcherTest.cc
  4766. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4767. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  4768. recieved.
  4769. In this fix, if a request larger than 16KiB length is received, aria2
  4770. disconnects the peer.
  4771. * src/BtConstants.h
  4772. * src/PeerMessageUtil.cc
  4773. * src/PeerMessageUtil.h
  4774. * test/BtRequestMessageTest.cc
  4775. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4776. * Release 0.16.1
  4777. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4778. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  4779. * doc/aria2c.1.txt
  4780. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4781. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  4782. Updated French, Simplified Chinese and Japanese translations.
  4783. Thanks to all translators.
  4784. en@quot and en@boldquot are also added.
  4785. * po/LINGUAS
  4786. * po/fr.po
  4787. * po/ja.po
  4788. * po/uk.po
  4789. * po/vi.po
  4790. * po/zh_CN.po
  4791. * po/zh_TW.po
  4792. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4793. Bump up version number to 0.16.1.
  4794. * configure.ac
  4795. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4796. Updated README.
  4797. * README
  4798. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  4800. not to replace '--' with em dash character.
  4801. * doc/aria2c.1.txt
  4802. * doc/makeman
  4803. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4804. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  4805. every SEC seconds.
  4806. * src/DownloadEngineFactory.cc
  4807. * src/OptionHandlerFactory.cc
  4808. * src/option_processing.cc
  4809. * src/usage_text.h
  4810. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4811. Fixed compile warning on linux-amd64
  4812. * src/FtpConnection.cc
  4813. * src/IteratableChunkChecksumValidator.cc
  4814. * src/MultiDiskAdaptor.cc
  4815. Fixed the bug that unit test fails on linux-amd64
  4816. * test/UtilTest.cc
  4817. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Added --dht-file-path option to change the path to dht.dat, which is a
  4819. serialized DHT routing table.
  4820. * src/OptionHandlerFactory.cc
  4821. * src/option_processing.cc
  4822. * src/usage_text.h
  4823. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4824. Fixed possible underflow.
  4825. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4826. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4827. Fixed the bug that last character in URI is not encoded.
  4828. * src/Request.cc
  4829. * test/RequestTest.cc
  4830. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4831. Fixed the bug that referer header field contains fragment.
  4832. Now Request class removes fragment part of URI and encodes it
  4833. in Request::setUri() and setReferer().
  4834. * src/Request.h
  4835. * src/Request.cc
  4836. * test/RequestTest.cc
  4837. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Added missing m4 macros.
  4839. * m4/cppunit.m4
  4840. * m4/libgcrypt.m4
  4841. * m4/libgnutls-extra.m4
  4842. * m4/libgnutls.m4
  4843. * m4/libxml2.m4
  4844. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4845. Fixed compile error with gcc-4.4(snapshot)
  4846. * src/File.cc
  4847. * src/FtpConnection.cc
  4848. * src/OptionHandlerImpl.h
  4849. * src/Util.cc
  4850. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. Removed assert()
  4852. * src/SocketBuffer.cc (SocketBuffer::send)
  4853. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. Changed the type of _numNewConnection to unsigned int.
  4855. * src/ActivePeerConnectionCommand.cc
  4856. * src/ActivePeerConnectionCommand.h
  4857. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4858. * Release 0.16.0
  4859. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Updated doc
  4861. * README
  4862. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4863. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4864. translations. Thanks to all translators.
  4865. * po/bg.po
  4866. * po/de.po
  4867. * po/fr.po
  4868. * po/ja.po
  4869. * po/zh_CN.po
  4870. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4871. Bump up version number to 0.16.0.
  4872. * configure.ac
  4873. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4874. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4875. int32_t.
  4876. Changed the type of count to int32_t.
  4877. * src/Metalink2RequestGroup.cc
  4878. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4879. Added test for Time::elapsed(time_t).
  4880. * test/TimeTest.cc
  4881. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4882. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4883. Util::difftv() should be used instead.
  4884. * src/TimeA2.cc
  4885. * src/TimeA2.h
  4886. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4887. Made socket for dht connections non-blocking
  4888. * src/DHTAbstractMessage.cc
  4889. * src/DHTAbstractMessage.h
  4890. * src/DHTConnection.h
  4891. * src/DHTConnectionImpl.cc
  4892. * src/DHTConnectionImpl.h
  4893. * src/DHTMessage.h
  4894. * src/DHTMessageDispatcherImpl.cc
  4895. * src/DHTMessageDispatcherImpl.h
  4896. * src/DHTUnknownMessage.cc
  4897. * src/DHTUnknownMessage.h
  4898. * src/SocketCore.cc
  4899. * src/SocketCore.h
  4900. * test/MockDHTMessage.h
  4901. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4902. Changed the type of offset to int.
  4903. * src/ParameterizedStringParser.cc
  4904. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4905. Made getAsInt() return int32_t
  4906. * src/Option.h
  4907. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4909. build.
  4910. * configure.ac
  4911. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. Use sqlite3_open if sqlite3_open_v2 is not available.
  4913. * src/Sqlite3MozCookieParser.cc
  4914. * src/Sqlite3MozCookieParser.h
  4915. * m4/sqlite3.m4
  4916. * test/Sqlite3MozCookieParserTest.cc
  4917. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4918. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4919. * src/BtPieceMessage.cc
  4920. * src/DHTPeerAnnounceStorage.cc
  4921. * src/DefaultPieceStorage.cc
  4922. * src/DownloadCommand.cc
  4923. * src/DownloadEngine.cc
  4924. * src/FtpConnection.cc
  4925. * src/PeerConnection.cc
  4926. * src/PeerMessageUtil.cc
  4927. * src/RequestGroup.cc
  4928. * src/RequestGroupMan.cc
  4929. * src/SimpleBtMessage.cc
  4930. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4932. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4933. * src/AbstractDiskWriter.cc
  4934. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Don't set Request::supportsPersistentConnection() in HttpConnection
  4936. since this code is also used in AbstractProxyResponseCommand.
  4937. Moved those code to HttpResponse.
  4938. * src/HttpResponse.cc
  4939. * src/HttpResponse.h
  4940. * src/HttpConnection.cc
  4941. * src/HttpConnection.h
  4942. * src/HttpResponseCommand.cc
  4943. * test/HttpResponseTest.cc
  4944. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4945. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4946. The configuration is minimum: no torrent, no metalink, so there may be
  4947. other compile error on their code.
  4948. * src/a2netcompat.h
  4949. * src/File.cc
  4950. * src/File.h
  4951. * src/SocketCore.cc
  4952. * src/SocketCore.h
  4953. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4954. Made a socket of incoming peer non-blocking.
  4955. * src/PeerListenCommand.cc
  4956. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4958. whole message data is not sent in one send() call.
  4959. * src/BtPieceMessage.cc
  4960. * src/BtPieceMessage.h
  4961. * src/PeerConnection.cc
  4962. * src/PeerConnection.h
  4963. * src/SimpleBtMessage.cc
  4964. * src/SimpleBtMessage.h
  4965. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4966. Fixed the bug that aria2 downloads faster than max-download-limit when
  4967. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4968. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4969. , instead of sum of them.
  4970. * src/ActivePeerConnectionCommand.cc
  4971. * src/DefaultBtInteractive.cc
  4972. * src/DownloadCommand.cc
  4973. * src/PeerInteractionCommand.cc
  4974. * src/PeerReceiveHandshakeCommand.cc
  4975. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4976. Fixed the bug that HTTPS download fails.
  4977. * src/AbstractCommand.cc
  4978. * src/AbstractCommand.h
  4979. * src/DownloadCommand.cc
  4980. * src/FtpConnection.cc
  4981. * src/HttpConnection.cc
  4982. * src/HttpRequestCommand.cc
  4983. * src/HttpResponseCommand.cc
  4984. * src/HttpSkipResponseCommand.cc
  4985. * src/MSEHandshake.cc
  4986. * src/PeerConnection.cc
  4987. * src/SocketCore.cc
  4988. * src/SocketCore.h
  4989. Fixed the bug that aria2 doesn't download whole content body and cannot
  4990. reuse connection if chunked transfer encoding and gzip content encoding
  4991. are set.
  4992. * src/DownloadCommand.cc
  4993. * src/HttpSkipResponseCommand.cc
  4994. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4995. Updated man page.
  4996. * doc/aria2c.1.txt
  4997. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. When error occurred while aria2 was parsing an .aria2.conf file, print
  4999. the usage of the option that caused error.
  5000. * src/option_processing.cc
  5001. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5002. Fixed compile error on OptionHandlerException
  5003. * src/Makefile.am
  5004. * src/OptionHandlerException.cc
  5005. * src/OptionHandlerException.h
  5006. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. Moved message of the error to OptionHandlerException.h
  5008. * src/NameMatchOptionHandler.h
  5009. * src/OptionHandlerException.h
  5010. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5011. When error occurs while aria2 is parsing an command-line option, print
  5012. the usage of the option.
  5013. * src/Makefile.am
  5014. * src/NameMatchOptionHandler.h
  5015. * src/OptionHandlerException.h
  5016. * src/option_processing.cc
  5017. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Reverted previous change.
  5019. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  5020. username is not in URI.
  5021. * src/HttpRequest.cc
  5022. * src/Request.cc
  5023. * test/HttpRequestTest.cc
  5024. * test/RequestTest.cc
  5025. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Now colon is required for username and password in FTP URL, like:
  5027. ftp://username:password@host.
  5028. If colon is not there, aria2 don't parse it as a username. For example,
  5029. aria2 don't retrieve username from ftp://username@host.
  5030. This fix was made in order to login FTP server via non-transparent ftp
  5031. proxy.
  5032. * src/Request.cc
  5033. * test/RequestTest.cc
  5034. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5035. Use netrc for HTTP.
  5036. Now FTP user/password is sent in Authorization header when
  5037. --ftp-via-http-proxy=get is given.
  5038. * src/AuthConfigFactory.cc
  5039. * src/HttpRequest.cc
  5040. * src/HttpRequest.h
  5041. * src/NetrcAuthResolver.cc
  5042. * src/NetrcAuthResolver.h
  5043. * src/OptionHandlerFactory.cc
  5044. * src/option_processing.cc
  5045. * src/prefs.cc
  5046. * src/prefs.h
  5047. * test/AuthConfigFactoryTest.cc
  5048. * test/HttpRequestTest.cc
  5049. * test/NetrcAuthResolverTest.cc
  5050. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5051. Issue PWD command first and get working directory and use it as a prefix
  5052. for CWD command.
  5053. * src/DownloadEngine.cc
  5054. * src/DownloadEngine.h
  5055. * src/FtpConnection.cc
  5056. * src/FtpConnection.h
  5057. * src/FtpFinishDownloadCommand.cc
  5058. * src/FtpInitiateConnectionCommand.cc
  5059. * src/FtpNegotiationCommand.cc
  5060. * src/FtpNegotiationCommand.h
  5061. * test/FtpConnectionTest.cc
  5062. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Removed default user/pass for FTP user/pass, since it should not have
  5064. precedence over netrc configuration by default.
  5065. * src/OptionHandlerFactory.cc
  5066. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5067. Added debug log for socket event.
  5068. * src/AbstractCommand.cc
  5069. * src/PeerAbstractCommand.cc
  5070. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5071. Log microseconds.
  5072. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5073. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5074. Replaced HelpItem.cc with OptionHandler.cc.
  5075. * po/POTFILES.in
  5076. Updated po files with 'make update-po'
  5077. * po/aria2c.pot
  5078. * po/*.po
  5079. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Removed possible values from the text.
  5081. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  5082. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5083. Removed unused preferences:
  5084. PREF_NO_PREALLOCATION
  5085. PREF_STDOUT_LOG
  5086. PREF_TRACKER_MAX_TRIES
  5087. PREF_DIRECT_DOWNLOAD_TIMEOUT
  5088. PREF_MIN_SEGMENT_SIZE
  5089. * src/option_processing.cc
  5090. * src/prefs.cc
  5091. * src/prefs.h
  5092. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5093. Integrated HelpItem into OptionParser to ease the workload for adding
  5094. new options. Removed default value from usage text.
  5095. * src/HelpItem.cc: Removed.
  5096. * src/HelpItem.h: Removed.
  5097. * src/HelpItemFactory.cc: Removed.
  5098. * src/HelpItemFactory.h: Removed.
  5099. * src/Makefile.am
  5100. * src/Makefile.in
  5101. * src/NameMatchOptionHandler.h
  5102. * src/OptionHandler.cc
  5103. * src/OptionHandler.h
  5104. * src/OptionHandlerFactory.cc
  5105. * src/OptionHandlerImpl.h
  5106. * src/OptionParser.cc
  5107. * src/OptionParser.h
  5108. * src/TagContainer.cc: Removed.
  5109. * src/TagContainer.h: Removed.
  5110. * src/TaggedItem.cc: Removed.
  5111. * src/TaggedItem.h: Removed.
  5112. * src/main.cc
  5113. * src/option_processing.cc
  5114. * src/usage_text.h
  5115. * src/version_usage.cc
  5116. * test/HelpItemTest.cc: Removed.
  5117. * test/Makefile.am
  5118. * test/Makefile.in
  5119. * test/OptionHandlerTest.cc
  5120. * test/OptionParserTest.cc
  5121. * test/TagContainerTest.cc: Removed.
  5122. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5123. Moved `TransferStat stat = ...' to inside the `if' clause.
  5124. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  5125. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5126. Fixed the bug that a block in a piece is requested when same block is
  5127. already requested to the same peer in end game mode.
  5128. * src/BtRequestFactory.h
  5129. * src/DefaultBtInteractive.cc
  5130. * src/DefaultBtRequestFactory.cc
  5131. * src/DefaultBtRequestFactory.h
  5132. * src/DefaultPieceStorage.cc
  5133. * src/DefaultPieceStorage.h
  5134. * src/PieceStorage.h
  5135. * src/UnknownLengthPieceStorage.cc
  5136. * src/UnknownLengthPieceStorage.h
  5137. * test/DefaultBtRequestFactoryTest.cc
  5138. * test/DefaultPieceStorageTest.cc
  5139. * test/MockBtRequestFactory.h
  5140. * test/MockPieceStorage.h
  5141. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5142. Removed _uploadLength and _downloadLength from PeerSessionResource
  5143. and use PeerStat::_sessionUploadLength and
  5144. PeerStat::_sessionDownloadLength.
  5145. * src/PeerSessionResource.cc
  5146. * src/PeerSessionResource.h
  5147. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5148. Fixed the bug that prefixLength of split bucket which doesn't include
  5149. local node ID is incremented.
  5150. * src/DHTBucket.cc
  5151. * src/DHTBucket.h
  5152. * test/DHTBucketTest.cc
  5153. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. Added cookies.sqlite to EXTRA_DIST
  5155. * test/Makefile.am
  5156. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5157. Added Turkish translation. Updated French, German, Russian and
  5158. Simplified Chinese translations. Thanks to all translators.
  5159. * po/LINGUAS
  5160. * po/de.po
  5161. * po/fr.po
  5162. * po/ru.po
  5163. * po/tr.po
  5164. * po/zh_CN.po
  5165. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Added deliminating text to the beginning of the log so that one can find
  5167. where the log starts easily.
  5168. * src/main.cc
  5169. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5170. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  5171. to fix compile error when async DNS is not enabled by configuration.
  5172. * src/AbstractCommand.cc
  5173. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5174. If establishing conneciton to a server is failed, then mark error on
  5175. its ServerStat.
  5176. Added the cause of error to log when error event occurred.
  5177. Moved message string to message.h for translation.
  5178. * src/AbstractCommand.cc
  5179. * src/AbstractCommand.h
  5180. * src/FtpNegotiationCommand.cc
  5181. * src/HttpRequestCommand.cc
  5182. * src/PeerAbstractCommand.cc
  5183. * src/message.h
  5184. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5185. Added the function to get error message from socket.
  5186. * src/SocketCore.cc
  5187. * src/SocketCore.h
  5188. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Added convenient method RequestGroupMan::getOrCreateServerStat()
  5190. * src/RequestGroupMan.cc
  5191. * src/RequestGroupMan.h
  5192. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5193. If error event is received in epoll, then abort download immediately.
  5194. * src/AbstractCommand.cc
  5195. * src/Command.cc
  5196. * src/Command.h
  5197. * src/DownloadEngine.cc
  5198. * src/PeerAbstractCommand.cc
  5199. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. Added usage message for --uri-selector, --server-stat-of,
  5201. --server-stat-in, --server-stat-timeout options.
  5202. * src/HelpItemFactory.cc
  5203. * src/usage_text.h
  5204. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Added upper limit of FTP response buffer. The current implementation
  5206. uses 4096bytes as a limit.
  5207. * src/FtpConnection.cc
  5208. * src/FtpConnection.h
  5209. * test/FtpConnectionTest.cc
  5210. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5211. Use non-blocking socket for TCP communication to avoid possible
  5212. blocking due to buffer full.
  5213. * src/AbstractProxyRequestCommand.cc
  5214. * src/FtpConnection.cc
  5215. * src/FtpConnection.h
  5216. * src/FtpNegotiationCommand.cc
  5217. * src/FtpNegotiationCommand.h
  5218. * src/HttpConnection.cc
  5219. * src/HttpConnection.h
  5220. * src/HttpRequestCommand.cc
  5221. * src/InitiatorMSEHandshakeCommand.cc
  5222. * src/InitiatorMSEHandshakeCommand.h
  5223. * src/MSEHandshake.cc
  5224. * src/MSEHandshake.h
  5225. * src/Makefile.am
  5226. * src/PeerConnection.cc
  5227. * src/PeerConnection.h
  5228. * src/PeerInteractionCommand.cc
  5229. * src/PeerListenCommand.cc
  5230. * src/ReceiverMSEHandshakeCommand.cc
  5231. * src/ReceiverMSEHandshakeCommand.h
  5232. * src/SocketBuffer.cc
  5233. * src/SocketBuffer.h
  5234. * src/SocketCore.cc
  5235. * src/SocketCore.h
  5236. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Call setStatusRealtime() in constructor.
  5238. * src/RealtimeCommand.cc
  5239. * src/RealtimeCommand.h
  5240. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Call Download::setNoWait(true) to execute newly created command without
  5242. a pause.
  5243. * src/AbstractCommand.cc
  5244. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5245. Added --max-file-not-found=NUM option. If aria2 receives `file not
  5246. found' error from HTTP/FTP server NUM times without getting single
  5247. bytes of data, then force the download to fail.
  5248. Basically aria2 tris all URIs available. So if long list of URIs are
  5249. specified in Metalink, then aria2 will take a long time to fail
  5250. eventually if all URIs are outdated. This option eases this situation
  5251. to limit the number of servers to try.
  5252. * src/FtpNegotiationCommand.cc
  5253. * src/HelpItemFactory.cc
  5254. * src/HttpResponseCommand.cc
  5255. * src/OptionHandlerFactory.cc
  5256. * src/PeerStat.h
  5257. * src/RequestGroup.cc
  5258. * src/RequestGroup.h
  5259. * src/SegmentMan.cc
  5260. * src/SegmentMan.h
  5261. * src/option_processing.cc
  5262. * src/prefs.cc
  5263. * src/prefs.h
  5264. * src/usage_text.h
  5265. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5266. Fixed the bug that bulkReceiveResponse() reads all received data as a
  5267. response even if more than one response is in it.
  5268. * src/FtpConnection.cc
  5269. * src/FtpConnection.h
  5270. * test/FtpConnectionTest.cc
  5271. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Merged from stable-0.15
  5273. * m4/libcares.m4
  5274. Use pkg-config
  5275. * m4/sqlite3.m4
  5276. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5277. Removed unnecessary if statement.
  5278. * src/DefaultPieceStorage.cc (initPieceStorage)
  5279. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5280. Added --connect-timeout option to specify connect timeout in seconds.
  5281. This option is in effect for HTTP/FTP/proxy server. The timeout for
  5282. connecting to BitTorrent peer is not controlled by this option.
  5283. * src/AbstractProxyRequestCommand.cc
  5284. * src/FtpNegotiationCommand.cc
  5285. * src/HelpItemFactory.cc
  5286. * src/HttpRequestCommand.cc
  5287. * src/OptionHandlerFactory.cc
  5288. * src/option_processing.cc
  5289. * src/prefs.cc
  5290. * src/prefs.h
  5291. * src/usage_text.h
  5292. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5293. Added help message for -R option.
  5294. * src/HelpItemFactory.cc
  5295. * src/usage_text.h
  5296. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Added the message that the time is in local time zone.
  5298. * src/RequestGroup.cc
  5299. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5300. Implemented the ability to get timestamp from remote FTP server using
  5301. MDTM command described in RFC3659.
  5302. * src/FtpConnection.cc
  5303. * src/FtpConnection.h
  5304. * src/FtpNegotiationCommand.cc
  5305. * src/FtpNegotiationCommand.h
  5306. * test/FtpConnectionTest.cc
  5307. * test/Makefile.am
  5308. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5309. Implemented the ability to get timestamp from remote HTTP server and
  5310. apply it to local file. To enable this feature, --remote-time option
  5311. is added. No usage text has been written yet.
  5312. If several servers returns difference timestamp, then aria2 uses latest
  5313. one.
  5314. * src/CopyDiskAdaptor.cc
  5315. * src/CopyDiskAdaptor.h
  5316. * src/DirectDiskAdaptor.cc
  5317. * src/DirectDiskAdaptor.h
  5318. * src/DiskAdaptor.h
  5319. * src/File.cc
  5320. * src/File.h
  5321. * src/HttpHeader.cc
  5322. * src/HttpHeader.h
  5323. * src/HttpResponse.cc
  5324. * src/HttpResponse.h
  5325. * src/HttpResponseCommand.cc
  5326. * src/HttpResponseCommand.h
  5327. * src/MultiDiskAdaptor.cc
  5328. * src/MultiDiskAdaptor.h
  5329. * src/OptionHandlerFactory.cc
  5330. * src/RequestGroup.cc
  5331. * src/RequestGroup.h
  5332. * src/RequestGroupMan.cc
  5333. * src/option_processing.cc
  5334. * src/prefs.cc
  5335. * src/prefs.h
  5336. * test/CopyDiskAdaptorTest.cc
  5337. * test/FileTest.cc
  5338. * test/Makefile.am
  5339. * test/Makefile.in
  5340. * test/MultiDiskAdaptorTest.cc
  5341. * test/TestUtil.cc
  5342. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5343. Fixed the bug that DiskWriterEntry is not created when its
  5344. FileEntry.isRequested() is false and it doesn't share a piece with
  5345. other FileEntries that are requested. This bug causes segmentation fault
  5346. in the end.
  5347. * src/MultiDiskAdaptor.cc
  5348. * src/MultiDiskAdaptor.h
  5349. * src/MultiFileAllocationIterator.cc
  5350. * test/MultiDiskAdaptorTest.cc
  5351. * test/MultiFileAllocationIteratorTest.cc
  5352. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5353. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  5354. called if the number of file entries are greater than max open files.
  5355. * src/AbstractSingleDiskAdaptor.cc
  5356. * src/AbstractSingleDiskAdaptor.h
  5357. * src/DiskAdaptor.h
  5358. * src/MultiDiskAdaptor.cc
  5359. * src/MultiDiskAdaptor.h
  5360. * test/MultiDiskAdaptorTest.cc
  5361. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Added a constuctor that receives struct timeval.
  5363. Added operator<.
  5364. * src/TimeA2.cc
  5365. * src/TimeA2.h
  5366. * test/TimeTest.cc
  5367. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  5369. * src/CookieParser.cc
  5370. * test/CookieParserTest.cc
  5371. * test/HttpResponseTest.cc
  5372. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Implmented the functions to parse date.
  5374. * src/TimeA2.cc
  5375. * src/TimeA2.h
  5376. * test/TimeTest.cc
  5377. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5378. Added "Firefox3 Cookie" feature to FeatureConfig
  5379. * src/FeatureConfig.cc
  5380. * src/FeatureConfig.h
  5381. * test/FeatureConfigTest.cc
  5382. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5383. Bump up version number to 0.16.0b
  5384. * configure.ac
  5385. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Use pkg-config if is is available.
  5387. * m4/openssl.m4
  5388. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5389. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  5390. * src/BtAnnounce.h
  5391. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. If an error occurred with a URI, remove identical URI from remaining
  5393. URI list because it is likely that same error occurred in the end and it
  5394. is waste of time.
  5395. * src/AbstractCommand.cc
  5396. * src/RequestGroup.cc
  5397. * src/RequestGroup.h
  5398. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Removed wrong comment.
  5400. * src/DefaultPeerStorage.cc
  5401. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5402. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  5403. Added return value of getpid() to argument of srand() to achieve more
  5404. randomized value.
  5405. * src/SimpleRandomizer.cc
  5406. * src/SimpleRandomizer.h
  5407. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Contact tracker frequently when the number of connections are 0 and
  5409. download is not finished yet.
  5410. * src/ActivePeerConnectionCommand.cc
  5411. * src/BtAnnounce.h
  5412. * src/DefaultBtAnnounce.cc
  5413. * src/DefaultBtAnnounce.h
  5414. * test/MockBtAnnounce.h
  5415. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5416. Moved threshold values to UTPexExtensionMessage.
  5417. * src/DefaultBtInteractive.cc
  5418. * src/Peer.cc
  5419. * src/Peer.h
  5420. * src/UTPexExtensionMessage.cc
  5421. * src/UTPexExtensionMessage.h
  5422. * test/UTPexExtensionMessageTest.cc
  5423. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5424. Added _incoming member to Peer class and made it true if the peer
  5425. initiated connection. Don't add those peer to UTPex message.
  5426. If extended handshake is received, assign _incoming to false.
  5427. * src/DefaultBtInteractive.cc
  5428. * src/HandshakeExtensionMessage.cc
  5429. * src/Peer.cc
  5430. * src/Peer.h
  5431. * src/PeerListenCommand.cc
  5432. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5433. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  5434. Encoding Decoder. Removed size threshold for turning off on the fly
  5435. inflation because resulting file may or may not be inflated depending
  5436. on the file size and I think it is not expected by users.
  5437. This change fixes segmentation fault when Metalink file contains gzipped
  5438. file and its filesize is provided.
  5439. * src/HttpResponseCommand.cc
  5440. * src/HttpResponseCommand.h
  5441. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5442. Made Cookie immutable.
  5443. * src/Cookie.cc
  5444. * src/Cookie.h
  5445. * src/CookieParser.cc
  5446. * src/CookieParser.h
  5447. * src/CookieStorage.cc
  5448. * test/CookieParserTest.cc
  5449. * test/CookieStorageTest.cc
  5450. * test/NsCookieParserTest.cc
  5451. * test/Sqlite3MozCookieParserTest.cc
  5452. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Removed CookieBox, CookieBoxFactory.
  5454. * src/CookieBox.cc
  5455. * src/CookieBox.h
  5456. * src/CookieBoxFactory.cc
  5457. * src/CookieBoxFactory.h
  5458. * src/Makefile.am
  5459. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5460. Use CookieStorage class instead of CookieBox class.
  5461. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  5462. * src/AbstractProxyRequestCommand.cc
  5463. * src/CookieStorage.cc
  5464. * src/DownloadEngine.cc
  5465. * src/DownloadEngine.h
  5466. * src/HttpConnection.cc
  5467. * src/HttpConnection.h
  5468. * src/HttpRequest.cc
  5469. * src/HttpRequest.h
  5470. * src/HttpRequestCommand.cc
  5471. * src/HttpResponse.cc
  5472. * src/HttpResponseCommand.cc
  5473. * src/HttpSkipResponseCommand.cc
  5474. * src/Makefile.am
  5475. * src/MultiUrlRequestInfo.cc
  5476. * src/Request.cc
  5477. * src/Request.h
  5478. * src/main.cc
  5479. * test/AllTest.cc
  5480. * test/CookieStorageTest.cc
  5481. * test/CookieTest.cc
  5482. * test/HttpRequestTest.cc
  5483. * test/HttpResponseTest.cc
  5484. * test/Makefile.am
  5485. * test/NsCookieParserTest.cc
  5486. * test/Sqlite3MozCookieParserTest.cc
  5487. * test/nscookietest.txt
  5488. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Updated
  5490. * test/Cookies.sqlite
  5491. * test/nscookietest.txt
  5492. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5493. Added tests for CookieStorage::load()
  5494. * test/CookieStorageTest.cc
  5495. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Added CookieStorage class which is based on RFC2109 and manages cookies
  5497. more strictly than CookieBox and CookieBoxFactory class.
  5498. * src/CookieStorage.cc
  5499. * src/CookieStorage.h
  5500. * src/Cookie.cc
  5501. * src/Cookie.h
  5502. * test/CookieStorageTest.cc
  5503. * test/CookieTest.cc
  5504. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5505. Fixed the bug that commands are created more than the number of pieces.
  5506. * src/RequestGroup.cc
  5507. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5508. Fixed infinite loop bug in FTP when SIZE command failed.
  5509. * src/FtpNegotiationCommand.cc
  5510. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5511. Removed DirectDiskAdaptorTest.h
  5512. * test/Makefile.am
  5513. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5514. Fixed chunk checksum validation cannot detect trailing garbage data.
  5515. BUG#2074141
  5516. * src/AbstractSingleDiskAdaptor.cc
  5517. * src/AbstractSingleDiskAdaptor.h
  5518. * src/CheckIntegrityEntry.cc
  5519. * src/CheckIntegrityEntry.h
  5520. * src/DiskAdaptor.h
  5521. * src/MultiDiskAdaptor.cc
  5522. * src/MultiDiskAdaptor.h
  5523. * src/RequestGroup.cc
  5524. * test/DirectDiskAdaptorTest.cc
  5525. * test/MultiDiskAdaptorTest.cc
  5526. * test/TestUtil.cc
  5527. * test/TestUtil.h
  5528. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5529. Bump up version number of dht.dat file to 3. In version 3 format, time
  5530. is stored in 64bit, network byte order.
  5531. New build can load old format(version 2) but it saves the file in new
  5532. format. It means once you used new build, your dht.dat becomes
  5533. incompatible with older build.
  5534. * src/DHTRoutingTableDeserializer.cc
  5535. * src/DHTRoutingTableSerializer.cc
  5536. * test/DHTRoutingTableSerializerTest.cc
  5537. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  5539. * test/Makefile.am
  5540. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5541. Bump up version number of .aria2 control file to 0001.
  5542. New aria2 can still load version 0000 file but it saves the file in
  5543. version 0001 format. It means that new aria2 can resume download
  5544. started by old aria2 but the opposite is not true.
  5545. * src/DefaultBtProgressInfoFile.cc
  5546. * src/DefaultBtProgressInfoFile.h
  5547. * test/DefaultBtProgressInfoFileTest.cc
  5548. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5549. Added ntoh64 and hton64 as inline functions.
  5550. * src/Util.cc
  5551. * test/UtilTest.cc
  5552. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5553. Added sqlite3 depenency and Firefox3 cookie support.
  5554. * README
  5555. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5556. State that firefox3 cookie is supported explicitly in the usage.
  5557. * src/usage_text.h
  5558. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5559. Externalized message.
  5560. * src/RequestGroupMan.cc
  5561. * src/message.h
  5562. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. Save temporary file first and rename to the destination on success.
  5564. Added test cases.
  5565. * src/RequestGroupMan.cc
  5566. * test/RequestGroupManTest.cc
  5567. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5568. Fixed the bug that the number of connected peer is exceeding the limit
  5569. (55 by default) in seeding mode.
  5570. Multiplied 0.8 to _maxUploadSpeedLimit.
  5571. * src/ActivePeerConnectionCommand.cc
  5572. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5573. Clear table item.
  5574. * src/Dictionary.cc
  5575. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. Fixed error handling of lseek.
  5577. * src/AbstractDiskWriter.cc
  5578. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5579. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  5580. style cookie file.
  5581. * src/usage_text.h
  5582. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  5584. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  5585. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  5586. * src/Util.cc
  5587. * src/Util.h
  5588. * src/CookieParser.cc
  5589. * test/UtilTest.cc
  5590. * test/CookieParserTest.cc
  5591. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. Separate the implementation to load old mozilla format of cookie to
  5593. NsCookieParser class.
  5594. * src/CookieBoxFactory.cc
  5595. * src/CookieBoxFactory.h
  5596. * src/NsCookieParser.cc
  5597. * src/NsCookieParser.h
  5598. * test/NsCookieParserTest.cc
  5599. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5600. Made parse() const
  5601. * src/Sqlite3MozCookieParser.cc
  5602. * src/Sqlite3MozCookieParser.h
  5603. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5604. Added firefox3 cookie support based on the patch submitted by
  5605. tizianomueller.
  5606. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  5607. this functionality.
  5608. * configure.ac
  5609. * m4/sqlite3.m4
  5610. * src/CookieBoxFactory.cc
  5611. * src/CookieBoxFactory.h
  5612. * src/Makefile.am
  5613. * src/Makefile.in
  5614. * src/Sqlite3MozCookieParser.cc
  5615. * src/Sqlite3MozCookieParser.h
  5616. * src/main.cc
  5617. * test/CookieBoxFactoryTest.cc
  5618. * test/Makefile.am
  5619. * test/Makefile.in
  5620. * test/Sqlite3MozCookieParserTest.cc
  5621. * test/badcookies.sqlite
  5622. * test/cookies.sqlite
  5623. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Added Danish and Greek translations.
  5625. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  5626. Great thanks to all translators.
  5627. * po/LINGUAS
  5628. * po/el.po
  5629. * po/da.po
  5630. * po/es.po
  5631. * po/ca.po
  5632. * po/nn.po
  5633. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5634. Fixed man page: --follow-bittorrent should be --follow-torrent
  5635. * doc/aria2c.1.txt
  5636. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Fixed: numCommand is less than the value specified in -C option.
  5638. * src/RequestGroup.cc
  5639. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5640. Fixed occasional assertion failure in PieceSegment.
  5641. Calling PieceStorage::getMissingPiece(size_t) was missing after
  5642. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  5643. creation of duplicate segments and one of the segment was finished then
  5644. assertion failure was caused.
  5645. * src/SegmentMan.cc
  5646. * test/SegmentManTest.cc
  5647. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5648. Added options to load/save the server's performance/status to a file
  5649. and the timeout to drop their data.
  5650. --server-stat-of=FILE specifies the file to which performance data
  5651. is saved.
  5652. --server-stat-if=FILE specifies the file to read previously saved
  5653. by --server-stat-of option. Might be used with --uri-selector=feedback.
  5654. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  5655. TIMEOUT is specified in seconds and the default value is 24hours.
  5656. * src/MultiUrlRequestInfo.cc
  5657. * src/OptionHandlerFactory.cc
  5658. * src/RequestGroupMan.cc
  5659. * src/RequestGroupMan.h
  5660. * src/ServerStatMan.cc
  5661. * src/ServerStatMan.h
  5662. * src/option_processing.cc
  5663. * src/prefs.cc
  5664. * src/prefs.h
  5665. * test/ServerStatManTest.cc
  5666. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5667. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  5668. * src/ServerStatMan.cc
  5669. * src/ServerStatMan.h
  5670. * test/ServerStatManTest.cc
  5671. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5672. Implemented ServerStatMan::load(...) function and its test case.
  5673. * src/ServerStat.cc
  5674. * src/ServerStat.h
  5675. * src/ServerStatMan.cc
  5676. * test/ServerStatManTest.cc
  5677. * test/ServerStatTest.cc
  5678. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5679. Use time_t instead of int32_t. Use int64_t where milli second is
  5680. expected.
  5681. * src/TimeA2.cc
  5682. * src/TimeA2.h
  5683. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5684. Implemented ServerStatMan::save(...) function and its test case.
  5685. * src/ServerStat.cc
  5686. * src/ServerStat.h
  5687. * src/ServerStatMan.cc
  5688. * src/ServerStatMan.h
  5689. * test/ServerStatManTest.cc
  5690. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5691. Now aria2 uses name attribute in Metalink as local filename in
  5692. BitTorrent downloads. BUG#2033999
  5693. * src/BtContext.h
  5694. * src/BtDependency.cc
  5695. * src/DefaultBtContext.cc
  5696. * src/DefaultBtContext.h
  5697. * src/SingleFileDownloadContext.cc
  5698. * src/SingleFileDownloadContext.h
  5699. * test/BtDependencyTest.cc
  5700. * test/DefaultBtContextTest.cc
  5701. * test/MockBtContext.h
  5702. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5703. Added AC_C_BIGENDIAN
  5704. * src/configure.ac
  5705. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5706. Limited numCommand less than or equal to the number of piece.
  5707. * src/RequestGroup.cc
  5708. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5709. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  5710. directive.
  5711. * test/DefaultPieceStorageTest.cc
  5712. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5713. Fixed memory leak in test code
  5714. * test/AnnounceListTest.cc
  5715. * test/DefaultPeerListProcessorTest.cc
  5716. * test/DefaultPeerStorageTest.cc
  5717. * test/MetaFileUtilTest.cc
  5718. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Fixed wrong argument passing to BitfieldMan::isBitSet()
  5720. * src/DefaultPieceStorage.cc
  5721. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Initialized _directIOAllowed
  5723. * src/MultiDiskAdaptor.cc
  5724. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Fixed memory leak
  5726. * src/GZipDecoder.cc
  5727. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. Fixed memory leak
  5729. * src/MetalinkParserStateMachine.cc
  5730. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Fixed memory leak
  5732. * src/Dictionary.cc
  5733. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Fixed memory leak
  5735. * src/IteratableChunkChecksumValidator.h
  5736. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Fixed unmatched malloc/free.
  5738. * src/IteratableChunkChecksumValidator.cc
  5739. * src/IteratableChecksumValidator.cc
  5740. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Removed max chunk size check. This change fixes BUG#2040169
  5742. * src/ChunkedDecoder.cc
  5743. * src/ChunkedDecoder.h
  5744. * test/ChunkedDecoderTest.cc
  5745. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5746. Implemented download speed based URI selection algorithm.
  5747. Introduced new option --uri-selector.
  5748. If --uri-selector=feedback is given, aria2 uses download speed observed
  5749. in the previous downloads and chooses fastest server in the URI list.
  5750. Currently at most 10 URIs are considered to introduce randomeness for
  5751. finding better servers. The speed is average download speed in the
  5752. downloads.
  5753. On the other hand, if --uri-selector=inorder is given, which is default,
  5754. URI is tried in order in URI list.
  5755. The usage text for the new option has not been written yet.
  5756. * src/AbstractCommand.cc
  5757. * src/DownloadCommand.cc
  5758. * src/DownloadEngine.cc
  5759. * src/DownloadEngineFactory.cc
  5760. * src/InOrderURISelector.cc
  5761. * src/InOrderURISelector.h
  5762. * src/OptionHandlerFactory.cc
  5763. * src/PeerStat.h
  5764. * src/RequestGroup.cc
  5765. * src/RequestGroup.h
  5766. * src/RequestGroupMan.cc
  5767. * src/RequestGroupMan.h
  5768. * src/SegmentMan.cc
  5769. * src/SegmentMan.h
  5770. * src/ServerStat.cc
  5771. * src/ServerStat.h
  5772. * src/ServerStatMan.cc
  5773. * src/ServerStatMan.h
  5774. * src/ServerStatURISelector.cc
  5775. * src/ServerStatURISelector.h
  5776. * src/URISelector.h
  5777. * src/option_processing.cc
  5778. * src/prefs.cc
  5779. * src/prefs.h
  5780. * test/InOrderURISelectorTest.cc
  5781. * test/RequestGroupManTest.cc
  5782. * test/ServerStatManTest.cc
  5783. * test/ServerStatURISelectorTest.cc
  5784. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. * Release 0.15.1+2
  5786. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5787. Bump up version number to 0.15.1+2
  5788. * configure.ac
  5789. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5790. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  5791. * m4/aria2_arg.m4
  5792. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. * Release 0.15.1+1
  5794. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5795. Bump up version number to 0.15.1+1
  5796. * configure.ac
  5797. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5798. Fixed the bug that causes segmentaion fault when resuming download
  5799. using metalink without size tag. Reproducible only using HTTP URI.
  5800. * src/HttpResponseCommand.cc
  5801. * src/FtpNegotiationCommand.cc
  5802. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. * Release 0.15.1
  5804. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Updated Bulgarian and French translations, thanks to all translators.
  5806. * po/bg.po
  5807. * po/fr.po
  5808. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5809. Bump up version number to 0.15.1
  5810. * configure.ac
  5811. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Avoid repeated call of gettimeofday() when calculating speed.
  5813. * src/SpeedCalc.cc
  5814. * src/SpeedCalc.h
  5815. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Removed writable check when socket's send buffer is full in BitTorrent
  5817. downloads to lower CPU usage.
  5818. * src/PeerInteractionCommand.cc
  5819. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Fixed broken gzip inflation.
  5821. Turn off segmented downloading if gzip content is smaller than or equal
  5822. to 1MiB and inflate the data on the fly, because HTTP response header
  5823. doesn't contain the length of inflated file we can't determin where
  5824. the chunk of data should be written.
  5825. On the other hand, if gzip content is larger than 1MB, then turn off
  5826. on the fly inflation, because some servers returns "content-type: gzip"
  5827. for *.tgz, *.gz files.
  5828. * src/DownloadCommand.cc
  5829. * src/HttpResponseCommand.cc
  5830. * src/HttpResponseCommand.h
  5831. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5832. Applied tizianomueller's patch to fix compile error.
  5833. * test/BitfieldManTest.cc
  5834. * test/BtRequestMessageTest.cc
  5835. * test/DefaultBtContextTest.cc
  5836. * test/DefaultDiskWriterTest.cc
  5837. * test/DefaultPieceStorageTest.cc
  5838. * test/HttpHeaderProcessorTest.cc
  5839. * test/HttpResponseTest.cc
  5840. * test/Metalink2RequestGroupTest.cc
  5841. * test/MetalinkParserControllerTest.cc
  5842. * test/MetalinkProcessorTest.cc
  5843. * test/PeerSessionResourceTest.cc
  5844. * test/UtilTest.cc
  5845. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5846. * Release 0.15.0
  5847. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5848. Reordered src files in POTFILES.in so that usage text appears first.
  5849. * po/POTFILES.in
  5850. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Bump up version number to 0.15.0
  5852. * configure.ac
  5853. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5854. Added Bulgarian translation.
  5855. Updated Catalan, Spanish, French and Japanese translations.
  5856. Thanks to all translators.
  5857. * po/LINGUAS
  5858. * po/bg.po
  5859. * po/ca.po
  5860. * po/es.po
  5861. * po/fr.po
  5862. * po/ja.po
  5863. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5864. Updated feature list. Added libz for dependency section.
  5865. Added a description about unit testing using CppUnit.
  5866. * README
  5867. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5868. Added a test for libz. Quoted where it is necessary.
  5869. * build_test.sh
  5870. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5871. Added GZip to `Enabled Features' list.
  5872. * src/FeatureConfig.cc
  5873. * src/FeatureConfig.h
  5874. * test/FeatureConfigTest.cc
  5875. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5877. the transfer has not yet started.
  5878. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5879. * src/SegmentMan.cc
  5880. * src/SegmentMan.h
  5881. * test/SegmentManTest.cc
  5882. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5883. Cache last calculated average download/upload speed.
  5884. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5885. cached value.
  5886. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5887. * src/PeerStat.h
  5888. * src/SpeedCalc.cc
  5889. * src/SpeedCalc.h
  5890. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5891. Call parseUrl directly.
  5892. * src/Request.cc (resetUrl)
  5893. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Supported absolute/relative path in Location header field.
  5895. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5896. * src/HttpHeader.cc
  5897. * src/HttpHeader.h
  5898. * src/HttpResponse.cc
  5899. * src/HttpSkipResponseCommand.cc
  5900. * src/Request.cc
  5901. * test/HttpHeaderTest.cc
  5902. * test/HttpResponseTest.cc
  5903. * test/RequestTest.cc
  5904. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Changed help text for --load-cookie option.
  5906. * doc/aria2c.1.txt
  5907. * src/usage_text.h
  5908. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Regenerated test/Makefile.in to remove stale ChangeLog.
  5910. * test/Makefile.in
  5911. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5912. Updated po files.
  5913. * po/aria2c.pot
  5914. * po/*.po
  5915. * po/*.gmo
  5916. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Bump up version number to 0.15.0b
  5918. * configure.ac
  5919. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Externalize messages.
  5921. * src/RequestGroupMan.cc
  5922. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5923. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5924. Use File::exists() instead of File::isFile() to allow non-regular file
  5925. such as block special files.
  5926. * src/AbstractDiskWriter.cc
  5927. * src/MultiDiskWriter.cc
  5928. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5929. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5930. * src/gai_strerror.h
  5931. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. Fixed compile error. Thanks gknauf for the patch.
  5933. * src/asctime_r.c
  5934. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5935. Included asctime_r.h from a2time.h.
  5936. * src/a2time.h
  5937. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Added a message "aria2 doesn't verify signature" to log message when
  5939. signature file is saved.
  5940. * src/RequestGroupMan.cc
  5941. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5942. Added the ability to save signature when download is completed if
  5943. signature is available. The filename of signature file is the path to
  5944. download file followed by ".sig". If it already exists, then signature
  5945. will not be saved.
  5946. * src/RequestGroupMan.cc
  5947. * src/Signature.cc
  5948. * test/SignatureTest.cc
  5949. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5950. Updated the descriptions for --bt-seed-unverified.
  5951. * doc/aria2c.1
  5952. * doc/aria2c.1.html
  5953. * doc/aria2c.1.txt
  5954. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5956. that this is not going to verify files using piece hashes.
  5957. * src/HelpItemFactory.cc
  5958. * src/OptionHandlerFactory.cc
  5959. * src/RequestGroup.cc
  5960. * src/option_processing.cc
  5961. * src/prefs.cc
  5962. * src/prefs.h
  5963. * src/usage_text.h
  5964. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5965. Added the ability to retrieve signature from Metalink file.
  5966. A retrieved signature is stored in Signature class and it is held by
  5967. DownloadContext class. Note that aria2 doesn't verify signature.
  5968. * src/DownloadContext.cc
  5969. * src/DownloadContext.h
  5970. * src/Makefile.am
  5971. * src/Makefile.in
  5972. * src/Metalink2RequestGroup.cc
  5973. * src/MetalinkEntry.cc
  5974. * src/MetalinkEntry.h
  5975. * src/MetalinkParserController.cc
  5976. * src/MetalinkParserController.h
  5977. * src/MetalinkParserStateMachine.cc
  5978. * src/MetalinkParserStateMachine.h
  5979. * src/Signature.cc
  5980. * src/Signature.h
  5981. * src/SignatureMetalinkParserState.cc
  5982. * src/SignatureMetalinkParserState.h
  5983. * src/VerificationMetalinkParserState.cc
  5984. * src/VerificationMetalinkParserState.h
  5985. * test/Metalink2RequestGroupTest.cc
  5986. * test/MetalinkParserControllerTest.cc
  5987. * test/MetalinkProcessorTest.cc
  5988. * test/test.xml
  5989. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5990. Close DiskAdaptor after renaming file.
  5991. * src/RequestGroup.cc
  5992. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Corrected indentation
  5994. * src/DefaultBtProgressInfoFile.cc
  5995. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5996. Moved the calls of std::ios::exceptions() inside of try-catch block
  5997. because if an error occurred in constructor of std::fstream, then
  5998. exception is thrown immediately when std::ios::exceptions() is called
  5999. which results unhandled exception and aria2c aborts.
  6000. * src/DefaultBtProgressInfoFile.cc
  6001. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6002. Added the test for the previous change in DefaultBtContext.cc
  6003. * test/DefaultBtContextTest.cc
  6004. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. Fixed the bug that causes infinite loop when the number of pieces are
  6006. fewer than allowed fast set size which is 10 by default.
  6007. * src/DefaultBtContext.cc
  6008. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Updated the descriptions for -j, -s. Added --bt-seed.
  6010. * doc/aria2c.1
  6011. * doc/aria2c.1.html
  6012. * doc/aria2c.1.txt
  6013. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  6015. aria2 seeds previously downloaded files without validating piece hashs.
  6016. * src/HelpItemFactory.cc
  6017. * src/OptionHandlerFactory.cc
  6018. * src/RequestGroup.cc
  6019. * src/option_processing.cc
  6020. * src/prefs.cc
  6021. * src/prefs.h
  6022. * src/usage_text.h
  6023. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6024. Updated DESCRIPTION of man page.
  6025. * doc/aria2c.1
  6026. * doc/aria2c.1.html
  6027. * doc/aria2c.1.txt
  6028. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  6030. Don't define `struct addrinfo' when __sun is defined.
  6031. * src/getaddrinfo.h
  6032. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6033. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  6034. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  6035. second argument is of type `struct _stati64'. Otherwise it is defined as
  6036. `struct stat'.
  6037. * src/AbstractDiskWriter.cc
  6038. * src/File.cc
  6039. * src/File.h
  6040. * src/a2io.h
  6041. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6042. Fixed the compile error in hurd-i386
  6043. See the original bug report:
  6044. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  6045. * src/a2io.h
  6046. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Code cleanup.
  6048. * src/PeerAbstractCommand.cc
  6049. * src/PeerAbstractCommand.h
  6050. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6051. Removed TransferEncoding.
  6052. * src/DownloadCommand.cc
  6053. * src/DownloadCommand.h
  6054. * src/HttpResponseCommand.cc
  6055. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Updated po files.
  6057. * po/aria2c.pot
  6058. * po/*.po
  6059. * po/*.gmo
  6060. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  6062. * src/A2STR.cc
  6063. * src/A2STR.h
  6064. * src/ChunkedDecoder.cc
  6065. * src/ChunkedDecoder.h
  6066. * src/ChunkedEncoding.cc: Removed
  6067. * src/ChunkedEncoding.h: Removed
  6068. * src/DownloadCommand.cc
  6069. * src/DownloadCommand.h
  6070. * src/HttpDownloadCommand.cc
  6071. * src/HttpResponse.cc
  6072. * src/HttpResponse.h
  6073. * src/HttpResponseCommand.cc
  6074. * src/HttpSkipResponseCommand.cc
  6075. * src/HttpSkipResponseCommand.h
  6076. * src/Makefile.am
  6077. * src/TransferEncoding.h: Removed
  6078. * test/ChunkedDecoderTest.cc
  6079. * test/ChunkedEncodingTest.cc: Removed
  6080. * test/HttpResponseTest.cc
  6081. * test/Makefile.am
  6082. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Use append instead of insert.
  6084. * src/GZipDecoder.cc
  6085. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Updated doc
  6087. * src/Decoder.h
  6088. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Updated usage text for -s option.
  6090. * src/usage_text.h
  6091. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6092. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  6093. * src/Request.cc
  6094. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6095. Cleaned up configure.ac.
  6096. * configure.ac
  6097. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6098. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  6099. AC_ARG_ENABLE.
  6100. * configure.ac
  6101. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6102. Added gzip, deflate decoding support in HTTP using libz. If compiled
  6103. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  6104. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  6105. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  6106. fly and writes decoded data to a local disk.
  6107. * README
  6108. * README.html
  6109. * configure.ac
  6110. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  6111. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  6112. * m4/libz.m4
  6113. * src/Decoder.h
  6114. * src/DownloadCommand.cc
  6115. * src/DownloadCommand.h
  6116. * src/Exception.h
  6117. * src/GZipDecoder.cc
  6118. * src/GZipDecoder.h
  6119. * src/HttpHeader.cc
  6120. * src/HttpHeader.h
  6121. * src/HttpRequest.cc
  6122. * src/HttpRequest.h
  6123. * src/HttpResponse.cc
  6124. * src/HttpResponse.h
  6125. * src/HttpResponseCommand.cc
  6126. * src/Makefile.am
  6127. * test/GZipDecoderTest.cc
  6128. * test/HttpRequestTest.cc
  6129. * test/HttpResponseTest.cc
  6130. * test/Makefile.am
  6131. * test/Makefile.in
  6132. * test/gzip_decode_test.gz
  6133. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6134. Clarified usage of -j option.
  6135. * src/usage_text.h
  6136. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6137. Disabled getting size from the response of RETR.
  6138. If SIZE command failed, then disable resuming and segmented downloading.
  6139. * src/FtpConnection.cc
  6140. * src/FtpConnection.h
  6141. * src/FtpNegotiationCommand.cc
  6142. * src/FtpNegotiationCommand.h
  6143. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6144. Use digits to find first byte of file size, which makes the intention
  6145. of the code clearer.
  6146. * src/FtpConnection.cc
  6147. Don't call validateTotalLength() when size is 0.
  6148. * src/FtpNegotiationCommand.cc
  6149. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Updated po files.
  6151. * po/aria2c.pot
  6152. * po/*.gmo
  6153. * po/*.po
  6154. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6155. Clarified usage text for --split option.
  6156. * src/usage_text.h
  6157. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6158. Bump up version number to 0.15.0dev. "dev" means "development"
  6159. version, which means I started the development of the next release!
  6160. * src/configure.ac
  6161. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6162. If FTP server returns negative response with REST raw command and
  6163. requested range is not 0, throw exception. If requested range is 0,
  6164. continue download a file from 0 byte.
  6165. * src/FtpNegotiationCommand.cc
  6166. * src/FtpNegotiationCommand.h
  6167. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Supported FTP server which don't recognize SIZE raw command.
  6169. If SIZE raw command is failed, aria2 will try to get file size
  6170. from the response of RETR raw command. If both attempts are failed,
  6171. then resuming and segmented downloading are disabled.
  6172. * src/FtpConnection.cc
  6173. * src/FtpConnection.h
  6174. * src/FtpNegotiationCommand.cc
  6175. * src/FtpNegotiationCommand.h
  6176. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6177. * Release 0.14.0+1
  6178. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Bump up version number to 0.14.0+1
  6180. * src/configure.ac
  6181. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Fixed the code that refers static member variable from non-static
  6183. context.
  6184. * src/DefaultPeerStorage.cc
  6185. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. * Release 0.14.0
  6187. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6188. Added build test script
  6189. * build_test.sh
  6190. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Updated ja.po
  6192. * src/ja.po
  6193. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6194. Bump up version number to 0.14.0
  6195. * src/configure.ac
  6196. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6197. Updated ja.po and fr.po. Great thanks for french translators and
  6198. Sebastien WILLEMIJNS.
  6199. * po/fr.po
  6200. * po/ja.po
  6201. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Added configure option to enable/disable epoll support.
  6203. * configure.ac
  6204. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Updated man page.
  6206. * doc/aria2c.1.txt
  6207. * doc/aria2c.1
  6208. * doc/aria2c.1.html
  6209. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6210. Added missing default value '5' to the usage of --split option.
  6211. * src/HelpItemFactory.cc
  6212. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Filled up pieces based on the number of missing blocks, rather than
  6214. simplay the number of piece * block length.
  6215. * src/BtRequestFactory.h
  6216. * src/DefaultBtInteractive.cc
  6217. * src/DefaultBtInteractive.h
  6218. * src/DefaultBtRequestFactory.cc
  6219. * src/DefaultBtRequestFactory.h
  6220. * src/Piece.cc
  6221. * src/Piece.h
  6222. * test/BitfieldManTest.cc
  6223. * test/DefaultBtRequestFactoryTest.cc
  6224. * test/MockBtRequestFactory.h
  6225. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Made _epEvents a member variable.
  6227. * src/DownloadEngine.cc
  6228. * src/DownloadEngine.h
  6229. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6230. Cancel download if http redirect is bounded more than 20 times.
  6231. * src/AbstractCommand.cc
  6232. * src/HttpSkipResponseCommand.cc
  6233. * src/Request.cc
  6234. * src/Request.h
  6235. * test/RequestTest.cc
  6236. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. Fixed unhandled exception(removed keyword `new').
  6238. * src/SocketCore.cc (initEPOLL)
  6239. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Removed visit(const MetaEntry*)
  6241. * src/MetaEntryVisitor.h:
  6242. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  6243. and made them virtual.
  6244. * src/BencodeVisitor.h
  6245. * src/BencodeVisitor.cc
  6246. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Updated po files.
  6248. * po/aria2c.pot
  6249. * po/*.po
  6250. * po/*.gmo
  6251. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Moved the call setWriteCheckSocket inside the previous clause to reduce
  6253. the number of socket to watch out.
  6254. * src/PeerInteractionCommand.cc
  6255. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6256. When there is not enough space in disk when writing a chunk of data,
  6257. aria2 now prints the message to the console to warn user and aborts
  6258. its download. Not all downloads are canceled because some downloads
  6259. may use another disk or partition. BUG#1640332
  6260. * src/AbstractDiskWriter.cc
  6261. * src/PeerAbstractCommand.cc
  6262. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  6263. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  6264. setHaltRequested(true) to cancel download.
  6265. * src/PeerInteractionCommand.h
  6266. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6267. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  6268. socket from int to sock_t as sockets are unsigned in Windows.
  6269. For AsyncNameResolver, DownloadEngine, I did additional modification
  6270. for the portion of the code changed according to epoll support.
  6271. I defined sock_t in a2netcompat.h to use sock_t without including
  6272. SocketCore.h.
  6273. * src/AsyncNameResolver.cc
  6274. * src/AsyncNameResolver.h
  6275. * src/DownloadEngine.cc
  6276. * src/DownloadEngine.h
  6277. * src/SocketCore.cc
  6278. * src/SocketCore.h
  6279. * src/a2netcompat.h
  6280. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  6282. changes in the patch were applied.
  6283. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  6284. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  6285. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  6286. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6287. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  6288. a2io.h and common.h were modified.
  6289. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  6290. MinGW.
  6291. * src/common.h: Changed off_t to 64 bit in MinGW.
  6292. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6293. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6294. only a2netcompat.h is modified.
  6295. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  6296. directives.
  6297. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6298. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  6299. only gai_strerror.h is modified.
  6300. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  6301. winsock errors in MinGW.
  6302. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6303. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  6304. follow sources are applied.
  6305. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  6306. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  6307. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  6308. I included locale.h from Platform.cc.
  6309. * src/main.cc: Moved common setup/teardown code to Platform class.
  6310. * test/AllTest.cc: Use Platform class.
  6311. Set locale to C in AllTest.cc to prevent the messages to be localized.
  6312. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  6314. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  6315. * test/HttpRequestTest.cc: Casted to off_t where it should.
  6316. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6317. Applied Ross's aria2-0.13.2+1-mingw.patch and
  6318. aria2-0.13.2+1-mingw-2.patch.
  6319. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  6320. systems which don't have termious.h. I moved the directive inside of
  6321. if(isTTY) { ... clause so that line is wiped out without termious.h.
  6322. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  6323. anyway.
  6324. * src/asctime_r.h
  6325. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  6326. I added 2nd argument to the prototype declaration.
  6327. * src/StringFormat.cc: Get rid of vasprintf.
  6328. * src/getaddrinfo.h: Fixed constants.
  6329. * configure.ac: Added the check for asctime_r function.
  6330. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  6331. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. Added writable test for Socket when the sending message is in progress.
  6333. Usually the sending message is piece message. Without wriable check,
  6334. upload latency is dropped to more than 1sec.
  6335. * src/PeerInteractionCommand.cc
  6336. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Create only requested files and files which shares a piece with
  6338. requested file in multi-torrent downloads. Directory structures are
  6339. also created in the same rule.
  6340. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  6341. DiskWriterEntry as in the previous implementation.
  6342. * src/MultiDiskWriter.cc
  6343. * src/MultiFileAllocationIterator.cc
  6344. * src/MultiFileAllocationIterator.h
  6345. * test/MultiFileAllocationIteratorTest.cc
  6346. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. Commented out -lprofiler
  6348. * src/Makefile.am
  6349. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6350. Bump up version number to 0.14.0b.
  6351. * src/configure.ac
  6352. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Actively establish connection to peers in seeding, when peer cache
  6354. is not full and max upload speed limit is not reached.
  6355. * src/ActivePeerConnectionCommand.cc
  6356. * src/ActivePeerConnectionCommand.h
  6357. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6358. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  6359. to make room more fleshy, recently found peers.
  6360. Peer::_badConditionStartTime is not used anymore. Consider to remove
  6361. it.
  6362. * src/DefaultPeerStorage.cc
  6363. * test/DefaultPeerStorageTest.cc
  6364. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Returns cached data only when the previous receiveHandshake() is called
  6366. with peek = true.
  6367. * src/PeerConnection.cc (receiveHandshake)
  6368. * src/PeerConnection.h (receiveHandshake)
  6369. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Changed default value of -s option from 1 to 5.
  6371. Also max value of -s option is changed from 5 to 16.
  6372. * src/HelpItemFactory.cc
  6373. * src/OptionHandlerFactory.cc
  6374. * src/option_processing.cc
  6375. * src/usage_text.h
  6376. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Changed -s options behavior. Now it means the number of connections
  6378. made simultaneously in each http/ftp download.
  6379. If 1 URL is specified, the behavior is the same with old implementation.
  6380. If -s N is given and more than N URLs are specified, first N URLs are
  6381. used and remaining URLs are used for backup. If less than N URLs are
  6382. specified, some of URLs are used more than once so that totally N
  6383. connections are made simultaneously.
  6384. * src/main.cc
  6385. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6386. Included missing iosfwd or ostream header.
  6387. * src/RequestGroupMan.cc
  6388. * src/TaggedItem.cc
  6389. * src/TaggedItem.h
  6390. * src/Util.cc
  6391. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6392. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  6393. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  6394. * src/HttpConnection.cc: Included missing sstream.
  6395. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Added --bt-max-open-files option.
  6397. * src/DefaultPieceStorage.cc
  6398. * src/HelpItemFactory.cc
  6399. * src/MultiDiskAdaptor.cc
  6400. * src/MultiDiskAdaptor.h
  6401. * src/OptionHandlerFactory.cc
  6402. * src/option_processing.cc
  6403. * src/prefs.cc
  6404. * src/prefs.h
  6405. * src/usage_text.h
  6406. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Fixed the bug that aria2 aborts when a path to a directory is given
  6408. in command-line.
  6409. * src/ProtocolDetector.cc
  6410. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6411. Limited the number files opened in each BitTorrent download. The default
  6412. value is 100. The option to change this value will be added.
  6413. * src/MultiDiskAdaptor.cc
  6414. * src/MultiDiskAdaptor.h
  6415. * src/MultiFileAllocationIterator.cc
  6416. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6417. Fixed the bug that HTTP downloads don't start with old libraries.
  6418. * src/HttpHeaderProcessor.cc
  6419. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6420. Use empty() instead of size() > 0.
  6421. * src/HttpConnection.cc
  6422. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6423. Drop connection if the incoming peer ID is the same with localhost's
  6424. one. The previous implementation drops connection when incoming peer's
  6425. IP address is the same with localhost's one.
  6426. * src/PeerListenCommand.cc
  6427. * src/DefaultBtInteractive.cc
  6428. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Returns cached data without checking whether socket is readable
  6430. if the cache is available.
  6431. * src/PeerConnection.cc (receiveHandshake)
  6432. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6433. Included stdint.h
  6434. * src/common.h
  6435. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6436. Removed duplicate HAVE_GETTIMEOFDAY
  6437. * src/Makefile.am
  6438. * src/Makefile.in
  6439. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. Use interval as a minInterval when minInterval is not supplied.
  6441. * src/DefaultBtAnnounce.cc
  6442. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  6444. attempt is failed, then 2nd attempt get kicked out more quickly.
  6445. And it is now static const member of DefaultBtAnnounce.
  6446. * src/DefaultBtAnnounce.h
  6447. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6448. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  6449. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  6450. * src/ActivePeerConnectionCommand.cc
  6451. * src/BtConstants.h
  6452. * src/BtRuntime.h
  6453. * src/DHTGetPeersCommand.cc
  6454. * src/DefaultBtAnnounce.cc
  6455. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  6456. BtRuntime::MAX_PEERS.
  6457. * src/DefaultPeerStorage.h
  6458. * src/InitiatorMSEHandshakeCommand.cc
  6459. * src/PeerInitiateConnectionCommand.cc
  6460. * src/PeerInteractionCommand.cc
  6461. * src/PeerReceiveHandshakeCommand.cc
  6462. * src/TrackerWatcherCommand.cc
  6463. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. Always Connect to _numNewConnection
  6465. * src/ActivePeerConnectionCommand.cc
  6466. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6467. Made `begin' unsigned int.
  6468. * src/GrowSegment.h
  6469. * src/Piece.cc
  6470. * src/Piece.h
  6471. * src/PiecedSegment.cc
  6472. * src/PiecedSegment.h
  6473. * src/Segment.h
  6474. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Calculate piece hash when data is arrived if the data is arrived in
  6476. order. This removes additional read operation for hash calculation.
  6477. If the data is arrived in out of order, the hash is calucated when the
  6478. piece is completed. This is the same behavior as the old implementation.
  6479. * src/BtPieceMessage.cc
  6480. * src/DefaultBtProgressInfoFile.cc
  6481. * src/DefaultPieceStorage.cc
  6482. * src/DownloadCommand.cc
  6483. * src/DownloadCommand.h
  6484. * src/DownloadEngine.cc
  6485. * src/GrowSegment.cc
  6486. * src/GrowSegment.h
  6487. * src/Piece.cc
  6488. * src/Piece.h
  6489. * src/PiecedSegment.cc
  6490. * src/PiecedSegment.h
  6491. * src/Segment.h
  6492. * test/PieceTest.cc
  6493. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6494. Try to keep the ordering of outgoing piece message.
  6495. * src/DefaultBtMessageDispatcher.cc
  6496. (DefaultBtMessageDispatcher::sendMessages)
  6497. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Fixed busy loop when error/hup epoll events occur.
  6499. * src/AbstractCommand.cc
  6500. * src/PeerAbstractCommand.cc
  6501. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Added --bt-request-peer-speed-limit option, which was a constant
  6503. SLOW_SPEED_THRESHOLD.
  6504. * src/ActivePeerConnectionCommand.cc
  6505. * src/ActivePeerConnectionCommand.h
  6506. * src/BtConstants.h
  6507. * src/HelpItemFactory.cc
  6508. * src/OptionHandlerFactory.cc
  6509. * src/PeerReceiveHandshakeCommand.cc
  6510. * src/option_processing.cc
  6511. * src/prefs.cc
  6512. * src/prefs.h
  6513. * src/usage_text.h
  6514. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6515. Removed repeated call of getTopDirPath(). Instead, call it once and
  6516. cache the result.
  6517. * src/MultiDiskAdaptor.cc
  6518. * src/MultiDiskAdaptor.h
  6519. (mkdir, openFile, initAndOpenFile, openExistingFile)
  6520. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6521. Fixed compile error on debian etch.
  6522. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  6523. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  6524. it is undefined.
  6525. * src/Util.cc (ULLONG_MAX)
  6526. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6527. Added epoll support. Use epoll if it is available. If not, use select.
  6528. When async dns is enabled in compile time, epoll support is enabled
  6529. only when aria2 is built with c-ares. This condition statement is
  6530. defined in a2io.h.
  6531. Currently aria2 supports both c-ares and ares, but ares is maintained
  6532. for quite a while and debian already has c-ares package, ares support
  6533. will be dropped in the future version.
  6534. * configure.ac
  6535. * src/AbstractCommand.cc
  6536. * src/AsyncNameResolver.cc
  6537. * src/AsyncNameResolver.h
  6538. * src/Command.cc
  6539. * src/Command.h
  6540. * src/DownloadEngine.cc
  6541. * src/DownloadEngine.h
  6542. * src/PeerAbstractCommand.cc
  6543. * src/SocketCore.cc
  6544. * src/SocketCore.h
  6545. * src/a2io.h
  6546. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  6548. directive.
  6549. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6550. Do not do write operation to /dev/null file.
  6551. * src/LogFactory.cc
  6552. * src/SimpleLogger.cc
  6553. Replaced vasprintf with vsnprintf
  6554. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6555. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6556. * src/BtRequestMessage.cc
  6557. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  6558. for segmentation fault caused by previous commit.
  6559. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. Reduced the usage of gettimeofday().
  6561. * src/DefaultBtMessageDispatcher.cc
  6562. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  6563. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6564. * src/RequestSlot.cc
  6565. * src/RequestSlot.h
  6566. (RequestSlot::isTimeout)
  6567. Made RequestSlot have a reference to Piece object to avoid find
  6568. Piece repeatedly.
  6569. * src/DefaultBtMessageDispatcher.cc
  6570. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  6571. * src/RequestSlot.cc
  6572. * src/RequestSlot.h
  6573. (RequestSlot::getPiece)
  6574. * test/DefaultBtMessageDispatcherTest.cc
  6575. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6576. * src/TimeA2.cc
  6577. * src/TimeA2.h
  6578. (Time::difference): New function.
  6579. (Time::elapsed): Done optimization.
  6580. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  6582. directive.
  6583. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. * src/option_processing.cc: Added missing `defined' keyword to #if
  6585. directive.
  6586. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6587. Bump up version number to 0.13.2+1
  6588. * src/configure.ac
  6589. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Refactored broken outstanding piece handling.
  6591. * src/DefaultPieceStorage.cc
  6592. * src/DefaultPieceStorage.h
  6593. * src/Piece.cc
  6594. * src/Piece.h
  6595. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6596. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  6597. name collision of static variable and predefined macro.
  6598. * src/BtContext.cc
  6599. * src/BtContext.h
  6600. * src/CookieBoxFactory.cc
  6601. * src/CookieBoxFactory.h
  6602. * src/CookieParser.cc
  6603. * src/CookieParser.h
  6604. * src/DefaultBtContext.cc
  6605. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. * src/RequestGroup.cc
  6607. (RequestGroup::createInitialCommand): Use empty() instead of size().
  6608. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6609. * Release 0.13.2
  6610. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6611. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  6612. * po/fr.po
  6613. * po/ja.po
  6614. * po/aria2c.pot
  6615. * po/*.po
  6616. * po/*.gmo
  6617. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6618. Bump up version number to 0.13.2
  6619. * src/configure.ac
  6620. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6621. Refactord.
  6622. * src/RequestGroupMan.cc
  6623. (removeStoppedGroup)
  6624. (fillRequestGroupFromReserver)
  6625. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6626. Fixed compile error on Ubuntu.
  6627. * src/BtPieceMessage.cc
  6628. * src/MessageDigestHelper.cc
  6629. * src/Util.cc
  6630. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6631. Fixed compile error when configured with --disable-bittorrent
  6632. * test/DownloadHandlerFactoryTest.cc
  6633. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6634. Done make update-po
  6635. * po/aria2c.pot
  6636. * po/*.po
  6637. * po/*.gmo
  6638. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6639. Bump up version number to 0.13.2rc.
  6640. * src/configure.ac
  6641. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6642. Made option name bold. Updated SYNOPSIS to make it more readable.
  6643. * doc/aria2c.1.txt
  6644. * doc/aria2c.1
  6645. * doc/aria2c.1.html
  6646. * src/version_usage.cc
  6647. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6648. Refactored. Use std::string instead of size and char*.
  6649. * Data.cc
  6650. * Data.h
  6651. * test/Data.cc
  6652. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6653. Added trimSelf(). Rewritten trim() to use trimSelf().
  6654. * Util.cc
  6655. * Util.h
  6656. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. * src/ChunkChecksum.h (getChecksum): Return const reference.
  6658. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6659. Fixed compile error when configured with --disable-metalink.
  6660. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  6661. * test/FeatureConfigTest.cc
  6662. * test/DownloadHandlerFactoryTest.cc
  6663. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Fixed compile error when configured with --without-gnutls
  6665. --without-openssl
  6666. * src/main.cc
  6667. * test/DefaultBtProgressInfoFileTest.cc
  6668. * test/SegmentManTest.cc
  6669. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6670. Fixed compile error with OpenSSL.
  6671. * src/IteratableChunkChecksumValidator.cc
  6672. * src/LibsslDHKeyExchange.h
  6673. * src/MessageDigestHelper.cc
  6674. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6675. Revert the default value of --max-concurrent-downloads to 5.
  6676. Revert the default value of --metalink-servers to 5.
  6677. Man pages was also updated.
  6678. * src/option_processing.cc
  6679. * doc/aria2c.1.txt
  6680. * doc/aria2c.1.html
  6681. * doc/aria2c.1
  6682. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6683. Returns const reference:
  6684. DownloadContext::getPieceHash, DownloadContext::getName,
  6685. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  6686. BtContext::getInfoHashAsString,
  6687. * src/BtContext.h
  6688. * src/DefaultBtContext.cc
  6689. * src/DefaultBtContext.h
  6690. * src/DownloadContext.h
  6691. * src/SingleFileDownloadContext.h
  6692. * test/MockBtContext.h
  6693. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6694. * src/RequestGroup.h (getDir): Removed.
  6695. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. Returns const reference. The internal urlencode function was optimized
  6697. a little bit.
  6698. * src/Request.cc
  6699. * src/Request.h
  6700. * src/HttpRequest.cc
  6701. * src/HttpRequest.h
  6702. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6703. Defined option name and possible values as std::string to reduce
  6704. temporary string object creation in runtime.
  6705. * src/HelpItemFactory.cc
  6706. * src/LogFactory.cc
  6707. * src/Option.cc
  6708. * src/OptionHandlerFactory.cc
  6709. * src/option_processing.cc
  6710. * src/prefs.cc
  6711. * src/prefs.h
  6712. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Return const reference.
  6714. * src/DownloadHandlerConstants.cc
  6715. * src/DownloadHandlerConstants.h
  6716. (getMetalinkExtensions)
  6717. (getMetalinkContentTypes)
  6718. (getBtExtensions)
  6719. (getBtContentTypes)
  6720. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6721. * src/HttpHeader.cc (get): Rewritten.
  6722. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6723. Make HttpHeader::getFirst(...) return const reference.
  6724. * src/HttpHeader.cc
  6725. * src/HttpHeader.h
  6726. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6727. Use Option::getAsBool(...) instead of Option::get(...) and compare
  6728. it with V_TRUE.
  6729. * src/DefaultPieceStorage.cc
  6730. * src/DownloadCommand.cc
  6731. * src/FtpNegotiationCommand.cc
  6732. * src/HttpRequest.cc
  6733. * src/InitiateConnectionCommand.cc
  6734. * src/RequestGroup.cc
  6735. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6736. Made Option::get(...) return const reference of std::string.
  6737. * src/Option.cc
  6738. * src/Option.h
  6739. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. Replaced std:copy with insert.
  6741. * src/DefaultBtMessageDispatcher.cc
  6742. * src/DefaultPieceStorage.cc
  6743. * src/DownloadEngineFactory.cc
  6744. * src/RequestGroup.cc
  6745. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6746. Included SocketCore.h to fix compiler warning.
  6747. * src/InitiateConnectionCommand.cc
  6748. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Put piece selection strategy algorithm to RarestPieceSelector class,
  6750. Added a switch to choose whether randomized selection so that unit
  6751. tests emit same results in, possibly, win32.
  6752. * src/DefaultPieceStorage.cc
  6753. * src/DefaultPieceStorage.h
  6754. * src/RarestPieceSelector.cc
  6755. * src/RarestPieceSelector.h
  6756. * test/DefaultPieceStorageTest.cc
  6757. * test/RarestPieceSelectorTest.cc
  6758. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. Don't pool connection if HTTP proxy is enabled.
  6760. * src/FtpFinishDownloadCommand.cc
  6761. * src/FtpNegotiationCommand.cc
  6762. * src/HttpSkipResponseCommand.cc
  6763. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  6765. * src/AbstractCommand.cc
  6766. * src/AbstractCommand.h
  6767. * src/ActivePeerConnectionCommand.cc
  6768. * src/FtpInitiateConnectionCommand.cc
  6769. * src/HttpInitiateConnectionCommand.cc
  6770. * src/InitiateConnectionCommandFactory.cc
  6771. * src/PeerAbstractCommand.cc
  6772. * src/PeerAbstractCommand.h
  6773. * src/PeerInitiateConnectionCommand.cc
  6774. * src/TrackerWatcherCommand.cc
  6775. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Sort RequestSlot in ascending order and manipulate them using
  6777. lower_bound.
  6778. * src/DefaultBtMessageDispatcher.cc
  6779. * src/DefaultBtMessageDispatcher.h
  6780. (getMessageQueue): Added const qualifier.
  6781. (getRequestSlots): Added const qualifier.
  6782. (sendMessages): Use empty() instead of size().
  6783. (doCancelSendingPieceAction): Use HandleEvent object.
  6784. (doAbortOutstandingRequestAction): Rewritten.
  6785. (doChokedAction): Rewritten.
  6786. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  6787. (isOutstandingRequest): Rewritten.
  6788. (getOutstandingRequest): Rewritten.
  6789. (removeOutstandingRequest): Rewritten.
  6790. (addOutstandingRequest): Rewritten.
  6791. * src/RequestSlot.cc
  6792. * src/RequestSlot.h
  6793. (operator=): Rewritten.
  6794. (operator!=): New function.
  6795. (operator<): New function.
  6796. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6797. * src/DefaultBtRequestFactory.cc
  6798. (doChokedAction): Rewritten.
  6799. (removeCompletedPiece): Rewritten.
  6800. (removeTargetPiece): Rewritten.
  6801. (createRequestMessages): Added the debug log.
  6802. (createRequestMessagesOnEndGame: Added the debug log.
  6803. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. Added the debug log message.
  6805. * src/BtPieceMessage.cc (doReceivedAction)
  6806. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6807. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  6808. used lower_bound to process them rather than linear search.
  6809. * src/DHTPeerAnnounceStorage.cc
  6810. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Call subtractPieceStats from ~PeerInteractionCommand only when the
  6812. peer has at least one completed piece.
  6813. * src/Peer.cc
  6814. * src/Peer.h
  6815. * src/PeerInteractionCommand.cc
  6816. * src/PeerSessionResource.cc
  6817. * src/PeerSessionResource.h
  6818. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6819. Removed unnecessary sorting
  6820. * src/DefaultPieceStorage (DefaultPieceStorage)
  6821. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6822. Rewritten the portion of the code that mangaes allowed fast indexes.
  6823. * src/PeerSessionResource.cc
  6824. * src/PeerSessionResource.h
  6825. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6826. Removed the invalid string including '\r' from ru.po and
  6827. did make update-po.
  6828. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6829. Added --log-level and --summary-interval to man page.
  6830. * doc/aria2c.1.txt
  6831. * doc/aria2c.1.html
  6832. * doc/aria2c.1
  6833. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6834. Added --log-level option to specify log level. Log messages under
  6835. the specified level are not output. Default value is `debug'.
  6836. * src/HelpItemFactory.cc
  6837. * src/LogFactory.cc
  6838. * src/LogFactory.h
  6839. * src/Logger.h
  6840. * src/OptionHandlerFactory.cc
  6841. * src/SimpleLogger.cc
  6842. * src/SimpleLogger.h
  6843. * src/main.cc
  6844. * src/option_processing.cc
  6845. * src/prefs.h
  6846. * src/usage_text.h
  6847. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Print download progress summary of all parallel downloads in specified
  6849. interval, default 60 secs. While aria2 could download several files
  6850. in parallel (see -j option), it displayed just first download progress,
  6851. and the other downloads are hidden from the users. This new feature
  6852. prints all downloads currently in-progress to the console so that you
  6853. can check the status of all downloads. The interval can be adjusted
  6854. by --summary-interval option.
  6855. The progress readout is now cut so that all fits in the one line of
  6856. console.
  6857. * src/ConsoleStatCalc.cc
  6858. * src/ConsoleStatCalc.h
  6859. * src/HelpItemFactory.cc
  6860. * src/OptionHandlerFactory.cc
  6861. * src/RequestGroupMan.cc
  6862. * src/RequestGroupMan.h
  6863. * src/main.cc
  6864. * src/option_processing.cc
  6865. * src/prefs.h
  6866. * src/usage_text.h
  6867. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6869. * src/DownloadEngine.cc (DownloadEngine)
  6870. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6871. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6872. defined.
  6873. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6874. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6875. Use erase+lower_bound+insert instead of sort.
  6876. * src/DefaultPieceStorage.cc (addPieceStats)
  6877. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6879. * src/A2STR.cc
  6880. * src/A2STR.h
  6881. * src/OptionParser.cc (parse)
  6882. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6883. Defined fake filename `[tracker.announce]' as static const std::string.
  6884. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6885. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6886. Defined default filename `index.html' as static const std::string
  6887. * src/SingleFileDownloadContext.cc
  6888. * src/SingleFileDownloadContext.h
  6889. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6890. Defined "[MEMORY]" as static const std::string.
  6891. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6892. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Defined control file's version number as static const std::string.
  6894. * src/DefaultBtProgressInfoFile.cc
  6895. * src/DefaultBtProgressInfoFile.h
  6896. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6897. Use Request::METHOD_GET
  6898. * src/RequestGroup.cc (createNextCommandWithAdj)
  6899. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. Defined "OK", "ERR", "INPR" as static const std::string
  6901. * src/RequestGroupMan.cc (showDownloadResults)
  6902. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6903. Defined default client used in extended handshake as static const
  6904. std::string
  6905. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6906. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6908. * src/HttpConnection.cc (eraseConfidentialInfo)
  6909. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6910. Defined default ftp user and password as static const std::string
  6911. * src/AuthConfigFactory.cc
  6912. * src/AuthConfigFactory.h
  6913. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. Defined strings used in netrc as static const std::string
  6915. * src/Netrc.cc
  6916. * src/Netrc.h
  6917. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6918. Defined HTTP status as static const std::string
  6919. * src/AbstractProxyResponseCommand.cc
  6920. * src/HttpHeader.cc
  6921. * src/HttpHeader.h
  6922. * src/HttpResponse.cc
  6923. * src/HttpResponseCommand.cc
  6924. * src/HttpSkipResponseCommand.cc
  6925. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6926. Defined "\r\n", "A", "I" as static const std::string
  6927. * src/A2STR.cc
  6928. * src/A2STR.h
  6929. * src/FtpConnection.cc
  6930. * src/FtpConnection.h
  6931. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6932. Added COLON_C(".") and used it in Request::parseUrl()
  6933. * src/A2STR.cc
  6934. * src/A2STR.h
  6935. * src/Request.cc (parseUrl)
  6936. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6937. Changed the type of padName from `const std::string&' to `const char*'.
  6938. * src/MSEHandshake.cc (verifyPadLength)
  6939. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6940. Defined "sha1" as static const std::string.
  6941. * src/MetalinkParserController.cc
  6942. * src/MetalinkParserController.h
  6943. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. Defined message digest algorithm name as static const std::string
  6945. * src/DHTTokenTracker.cc
  6946. * src/DHTUtil.cc
  6947. * src/DefaultBtContext.cc
  6948. * src/MSEHandshake.cc
  6949. * src/MessageDigestHelper.cc
  6950. * src/Peer.cc
  6951. * src/messageDigest.cc
  6952. * src/messageDigest.h
  6953. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6954. Made string literals used in SAX parser static const std::string.
  6955. * src/FileMetalinkParserState.cc
  6956. * src/FileMetalinkParserState.h
  6957. * src/FilesMetalinkParserState.cc
  6958. * src/FilesMetalinkParserState.h
  6959. * src/InitialMetalinkParserState.cc
  6960. * src/InitialMetalinkParserState.h
  6961. * src/MetalinkMetalinkParserState.cc
  6962. * src/MetalinkMetalinkParserState.h
  6963. * src/PiecesMetalinkParserState.cc
  6964. * src/PiecesMetalinkParserState.h
  6965. * src/ResourcesMetalinkParserState.cc
  6966. * src/ResourcesMetalinkParserState.h
  6967. * src/VerificationMetalinkParserState.cc
  6968. * src/VerificationMetalinkParserState.h
  6969. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6970. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6971. * src/A2STR.cc
  6972. * src/A2STR.h
  6973. * src/File.cc
  6974. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Defined static const std::string IP("ip"), PORT("port") and use them
  6976. instead of string literals.
  6977. * src/DefaultPeerListProcessor.cc
  6978. * src/DefaultPeerListProcessor.h
  6979. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6980. Made string literals for torrent file processing static const
  6981. std::string.
  6982. * src/BtContext.cc
  6983. * src/BtContext.h
  6984. * src/DefaultBtContext.cc
  6985. * src/DefaultBtContext.h
  6986. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. Made string literal for tracker response static const std::string
  6988. * src/BtAnnounce.cc
  6989. * src/BtAnnounce.h
  6990. * src/DefaultBtAnnounce.cc
  6991. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. Use DHTMessage::T instead of "t".
  6993. * src/DHTMessageTracker.cc (messageArrived)
  6994. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Made keyName static const. Made trimmed charset static const
  6996. std::string.
  6997. * src/Util.cc (getContentDispositionFilename)
  6998. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6999. Made USER_AGENT const. Made "/" static const std::string.
  7000. * src/A2STR.cc
  7001. * src/A2STR.h
  7002. * src/HttpRequest.cc
  7003. * src/HttpRequest.h
  7004. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7005. Made string listeral to static const std::string:
  7006. "Content-Range", "Content-Length"
  7007. * src/HttpHeader.cc
  7008. * src/HttpHeader.h
  7009. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7010. Made string listeral to static const std::string.
  7011. * src/HttpConnection.cc
  7012. * src/HttpHeader.cc
  7013. * src/HttpHeader.h
  7014. * src/HttpResponse.cc
  7015. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Made string listeral to static const std::string.
  7017. * src/A2STR.cc
  7018. * src/A2STR.h
  7019. * src/SimpleLogger.cc
  7020. * src/SimpleLogger.h
  7021. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7022. Made string literal to static const std::string.
  7023. Rewritten CookieParser::setField.
  7024. * src/A2STR.cc
  7025. * src/A2STR.h
  7026. * src/CookieBoxFactory.cc
  7027. * src/CookieBoxFactory.h
  7028. * src/CookieParser.cc
  7029. * src/CookieParser.h
  7030. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Made string literal to static const std::string
  7032. * src/DHTAbstractMessage.cc
  7033. * src/DHTAnnouncePeerMessage.cc
  7034. * src/DHTAnnouncePeerMessage.h
  7035. * src/DHTAnnouncePeerReplyMessage.cc
  7036. * src/DHTAnnouncePeerReplyMessage.h
  7037. * src/DHTFindNodeMessage.cc
  7038. * src/DHTFindNodeMessage.h
  7039. * src/DHTFindNodeReplyMessage.cc
  7040. * src/DHTFindNodeReplyMessage.h
  7041. * src/DHTGetPeersMessage.cc
  7042. * src/DHTGetPeersMessage.h
  7043. * src/DHTGetPeersReplyMessage.cc
  7044. * src/DHTGetPeersReplyMessage.h
  7045. * src/DHTMessage.cc
  7046. * src/DHTMessage.h
  7047. * src/DHTMessageFactoryImpl.cc
  7048. * src/DHTMessageReceiver.cc
  7049. * src/DHTPingMessage.cc
  7050. * src/DHTPingMessage.h
  7051. * src/DHTPingReplyMessage.cc
  7052. * src/DHTPingReplyMessage.h
  7053. * src/DHTQueryMessage.cc
  7054. * src/DHTQueryMessage.h
  7055. * src/DHTResponseMessage.cc
  7056. * src/DHTResponseMessage.h
  7057. * src/DHTUnknownMessage.cc
  7058. * src/DHTUnknownMessage.h
  7059. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7060. Made string literal to static const std::string
  7061. * src/BtChokeMessage.cc (toString)
  7062. * src/BtHaveAllMessage.cc (toString)
  7063. * src/BtHaveNoneMessage.cc (toString)
  7064. * src/BtInterestedMessage.cc (toString)
  7065. * src/BtNotInterestedMessage.cc (toString)
  7066. * src/BtUnchokeMessage.cc (toString)
  7067. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. Replaced "" with static const variable A2STR::NIL.
  7069. Replaced string comparison against "" with std::string::empty().
  7070. Added PROTO_* to Request class and use them as a protocol string
  7071. constant.
  7072. Made "started", "stopped", "completed" static const variable in
  7073. AnnounceList class.
  7074. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Updated translations. Great thanks to translators.
  7076. * po/ca.po
  7077. * po/de.po
  7078. * po/fr.po
  7079. * po/it.po
  7080. * po/ja.po
  7081. * po/ru.po
  7082. * po/zh_CN.po
  7083. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. Updated man page; categorized options and fixed typo.
  7085. * doc/aria2c.1.txt
  7086. * doc/aria2c.1.html
  7087. * doc/aria2c.1
  7088. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7089. Removed const ref
  7090. * src/MetalinkEntry.cc (AddProtocolPreference)
  7091. * src/RequestGroup.cc (FindServerHostByHostname)
  7092. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Rewritten Accept-Features handling.
  7094. * src/HttpRequestCommand.cc (createHttpRequest)
  7095. * src/a2functional.h
  7096. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. Changed method signature:
  7098. DHTAbstractNodeLookupTask::toEntries
  7099. * src/DHTAbstractNodeLookupTask.cc
  7100. * src/DHTAbstractNodeLookupTask.h
  7101. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Changed method signature:
  7103. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  7104. * src/BtContext.h
  7105. * src/DefaultBtContext.cc
  7106. * src/DefaultBtContext.h
  7107. * src/DefaultBtInteractive.cc
  7108. * test/DefaultBtContextTest.cc
  7109. * test/MockBtContext.h
  7110. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Changed method signature:
  7112. MultiFileAllocationIterator::makeDiskWriterEntries
  7113. * src/MultiFileAllocationIterator.cc
  7114. * src/MultiFileAllocationIterator.h
  7115. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Changed method sinature:
  7117. MetalinkEntry::toFileEntry,
  7118. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  7119. Metalinker::queryEntry
  7120. * src/Metalink2RequestGroup.cc
  7121. * src/MetalinkEntry.cc
  7122. * src/MetalinkEntry.h
  7123. * src/MetalinkHelper.cc
  7124. * src/MetalinkHelper.h
  7125. * src/Metalinker.cc
  7126. * src/Metalinker.h
  7127. * src/main.cc
  7128. * test/MetalinkHelperTest.cc
  7129. * test/MetalinkerTest.cc
  7130. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Changed method sinature:
  7132. RequestGroup::getURIs
  7133. * src/RequestGroup.cc
  7134. * src/RequestGroup.h
  7135. * test/Metalink2RequestGroupTest.cc
  7136. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7137. Changed method signature:
  7138. PeerListProcessor::extractPeer
  7139. * src/CompactPeerListProcessor.cc
  7140. * src/CompactPeerListProcessor.h
  7141. * src/DefaultBtAnnounce.cc
  7142. * src/DefaultPeerListProcessor.cc
  7143. * src/DefaultPeerListProcessor.h
  7144. * src/DelegatingPeerListProcessor.cc
  7145. * src/DelegatingPeerListProcessor.h
  7146. * src/PeerListProcessor.h
  7147. * src/UTPexExtensionMessage.cc
  7148. * test/DefaultPeerListProcessorTest.cc
  7149. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. Changed method signature:
  7151. BtRequestFactory::createRequestMessages,
  7152. BtRequestFactory::createRequestMessagesOnEndGame
  7153. * src/BtRequestFactory.h
  7154. * src/DefaultBtInteractive.cc
  7155. * src/DefaultBtRequestFactory.cc
  7156. * src/DefaultBtRequestFactory.h
  7157. * test/DefaultBtRequestFactoryTest.cc
  7158. * test/MockBtRequestFactory.h
  7159. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7160. Changed method signature:
  7161. PieceStorage::getInFlightPieces
  7162. * src/DefaultBtProgressInfoFile.cc
  7163. * src/DefaultPieceStorage.cc
  7164. * src/DefaultPieceStorage.h
  7165. * src/PieceStorage.h
  7166. * src/UnknownLengthPieceStorage.cc
  7167. * src/UnknownLengthPieceStorage.h
  7168. * test/DefaultBtProgressInfoFileTest.cc
  7169. * test/MockPieceStorage.h
  7170. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7171. Changed method signature:
  7172. PostDownloadHandler::getNextRequestGroups
  7173. Metalink2RequestGroup::generate
  7174. RequestGroup::postDownloadProcessing
  7175. * src/BtPostDownloadHandler.cc
  7176. * src/BtPostDownloadHandler.h
  7177. * src/Metalink2RequestGroup.cc
  7178. * src/Metalink2RequestGroup.h
  7179. * src/MetalinkPostDownloadHandler.cc
  7180. * src/MetalinkPostDownloadHandler.h
  7181. * src/PostDownloadHandler.h
  7182. * src/RequestGroup.cc
  7183. * src/RequestGroup.h
  7184. * src/RequestGroupMan.cc
  7185. * src/main.cc
  7186. * test/BtPostDownloadHandlerTest.cc
  7187. * test/Metalink2RequestGroupTest.cc
  7188. * test/MetalinkPostDownloadHandlerTest.cc
  7189. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Rewritten AccRequestGroup
  7191. * src/main.cc
  7192. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Rewritten.
  7194. * src/TaggedItem.cc (toTagString)
  7195. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7196. Rewritten Accept-Features handling.
  7197. * src/HttpRequestCommand.cc (createHttpRequest)
  7198. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7199. Rewritten accept types handling.
  7200. * HttpRequest.cc (createRequest)
  7201. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Rewritten
  7203. * src/FeatureConfig.cc (featureSummary)
  7204. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7205. Changed method signature:
  7206. PeerStorage::getActivePeers
  7207. * src/DHTPeerAnnounceEntry.cc
  7208. * src/DefaultPeerStorage.cc
  7209. * src/DefaultPeerStorage.h
  7210. * src/PeerStorage.h
  7211. * test/DefaultPeerStorageTest.cc
  7212. * test/MockPeerStorage.h
  7213. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. Changed method signature:
  7215. DHTPeerAnnounceStorage::getPeers,
  7216. DHTPeerAnnounceEntry::getPeers
  7217. * src/DHTGetPeersMessage.cc
  7218. * src/DHTPeerAnnounceEntry.cc
  7219. * src/DHTPeerAnnounceEntry.h
  7220. * src/DHTPeerAnnounceStorage.cc
  7221. * src/DHTPeerAnnounceStorage.h
  7222. * test/DHTAnnouncePeerMessageTest.cc
  7223. * test/DHTPeerAnnounceEntryTest.cc
  7224. * test/DHTPeerAnnounceStorageTest.cc
  7225. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Changed method signature:
  7227. NameResolver::resolve
  7228. * src/DHTEntryPointNameResolveCommand.cc
  7229. * src/InitiateConnectionCommand.cc
  7230. * src/NameResolver.cc
  7231. * src/NameResolver.h
  7232. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7233. Changed method signature:
  7234. PieceStorage::getAdvertisedPieceIndexes
  7235. * src/DefaultBtInteractive.cc
  7236. * src/DefaultPieceStorage.cc
  7237. * src/DefaultPieceStorage.h
  7238. * src/PieceStorage.h
  7239. * src/UnknownLengthPieceStorage.h
  7240. * test/MockPieceStorage.h
  7241. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7242. Changed method signature:
  7243. SegmentMan::getInFlightSegment
  7244. * src/AbstractCommand.cc
  7245. * src/SegmentMan.cc
  7246. * src/SegmentMan.h
  7247. * test/SegmentManTest.cc
  7248. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7249. Changed method signature:
  7250. DHTAbstractNodeLookupTask::getNodesFromMessage
  7251. * src/DHTAbstractNodeLookupTask.cc
  7252. * src/DHTAbstractNodeLookupTask.h
  7253. * src/DHTNodeLookupTask.cc
  7254. * src/DHTNodeLookupTask.h
  7255. * src/DHTPeerLookupTask.cc
  7256. * src/DHTPeerLookupTask.h
  7257. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  7259. * src/AbstractCommand.cc
  7260. * src/BtCheckIntegrityEntry.cc
  7261. * src/BtCheckIntegrityEntry.h
  7262. * src/BtFileAllocationEntry.cc
  7263. * src/BtFileAllocationEntry.h
  7264. * src/BtSetup.cc
  7265. * src/BtSetup.h
  7266. * src/CheckIntegrityCommand.cc
  7267. * src/CheckIntegrityEntry.h
  7268. * src/ChecksumCheckIntegrityEntry.cc
  7269. * src/ChecksumCheckIntegrityEntry.h
  7270. * src/DHTSetup.cc
  7271. * src/DHTSetup.h
  7272. * src/DownloadEngine.cc
  7273. * src/FileAllocationCommand.cc
  7274. * src/FileAllocationEntry.h
  7275. * src/RequestGroup.cc
  7276. * src/RequestGroup.h
  7277. * src/RequestGroupMan.cc
  7278. * src/RequestGroupMan.h
  7279. * src/StreamCheckIntegrityEntry.cc
  7280. * src/StreamCheckIntegrityEntry.h
  7281. * src/StreamFileAllocationEntry.cc
  7282. * src/StreamFileAllocationEntry.h
  7283. * src/TrackerWatcherCommand.cc
  7284. * src/a2functional.h
  7285. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7286. Changed method signature:
  7287. BNode::findClosestKNodes, BNode:: enumerateBucket,
  7288. DHTBucket::getGoodNodes,
  7289. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  7290. * src/BNode.cc
  7291. * src/BNode.h
  7292. * src/DHTAbstractNodeLookupTask.cc
  7293. * src/DHTAutoSaveCommand.cc
  7294. * src/DHTBucket.cc
  7295. * src/DHTBucket.h
  7296. * src/DHTBucketRefreshTask.cc
  7297. * src/DHTFindNodeMessage.cc
  7298. * src/DHTGetPeersMessage.cc
  7299. * src/DHTRoutingTable.cc
  7300. * src/DHTRoutingTable.h
  7301. * test/BNodeTest.cc
  7302. * test/DHTBucketTest.cc
  7303. * test/DHTRoutingTableTest.cc
  7304. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7305. In piece selection functions, Pass std::deque<...> by reference rather
  7306. than returning it.
  7307. * src/BitfieldMan.cc
  7308. * src/BitfieldMan.h
  7309. * src/DefaultBtRequestFactory.cc
  7310. * src/DefaultPieceStorage.cc
  7311. * src/Piece.cc
  7312. * src/Piece.h
  7313. * test/BitfieldManTest.cc
  7314. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Implemented rarest piece first piece selection strategy.
  7316. * src/AbstractBtMessage.cc
  7317. * src/AbstractBtMessage.h
  7318. * src/BitfieldMan.cc
  7319. * src/BitfieldMan.h
  7320. * src/BtBitfieldMessage.cc
  7321. * src/BtHaveAllMessage.cc
  7322. * src/BtHaveMessage.cc
  7323. * src/DefaultPieceStorage.cc
  7324. * src/DefaultPieceStorage.h
  7325. * src/PeerInteractionCommand.cc
  7326. * src/PieceStorage.h
  7327. * src/UnknownLengthPieceStorage.h
  7328. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7329. Rewritten readData and writeData.
  7330. * src/MultiDiskAdaptor.cc
  7331. * src/MultiDiskAdaptor.h
  7332. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7333. Move \n out of the message "Usage: ...".
  7334. * src/version_usage.cc
  7335. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7336. Bump up version number to 0.13.2b.
  7337. * configure.ac
  7338. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Added const qualifier to argument Exception& e.
  7340. * src/Logger.h
  7341. * src/SimpleLogger.cc
  7342. * src/SimpleLogger.h
  7343. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7344. Pool connection when CWD, SIZE command fails.
  7345. * src/FtpNegotiationCommand.cc
  7346. * src/FtpNegotiationCommand.h
  7347. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  7349. * src/HttpResponseCommand.cc
  7350. * src/HttpSkipResponseCommand.cc
  7351. * src/HttpSkipResponseCommand.h
  7352. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7353. Pool connection when a server returns 4xx, 5xx responses.
  7354. * src/HttpNullDownloadCommand.cc
  7355. * src/HttpNullDownloadCommand.h
  7356. * src/HttpResponse.cc
  7357. * src/HttpResponse.h
  7358. * src/HttpResponseCommand.cc
  7359. * src/HttpResponseCommand.h
  7360. * test/HttpResponseTest.cc
  7361. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Print usage when no URL is specifed or bad command-line option is
  7363. specified.
  7364. * src/HelpItemFactory.cc
  7365. * src/help_tags.h
  7366. * src/option_processing.cc
  7367. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7368. Removed duplicate log message.
  7369. * src/AbstractCommand.cc (asyncResolveHostname)
  7370. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Updated man page: --async-dns and --ftp-reuse-connection were added.
  7372. Changed -j option's default value from 5 to 1.
  7373. Added new examples using protocol auto detection feature.
  7374. Removed -T, -M usage where it can be omitted.
  7375. * doc/aria2c.1.txt
  7376. * doc/aria2c.1.html
  7377. * doc/aria2c.1.txt
  7378. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Updated command-line usage text, so that it tells users that they
  7380. can specify any number of torrent files and metalink files in
  7381. command-line.
  7382. * src/version_usage.cc
  7383. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. Changed the default value of -j option to 1.
  7385. * src/HelpItemFactory.cc
  7386. * src/option_processing.cc
  7387. * src/usage_text.h
  7388. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7389. Added the ability to reuse connection in FTP and it is enabled by
  7390. default. It can be disabled by --ftp-reuse-connection=false option.
  7391. * src/Command.cc
  7392. * src/DownloadCommand.cc
  7393. * src/FtpDownloadCommand.cc
  7394. * src/FtpDownloadCommand.h
  7395. * src/FtpFinishDownloadCommand.cc
  7396. * src/FtpFinishDownloadCommand.h
  7397. * src/FtpInitiateConnectionCommand.cc
  7398. * src/FtpNegotiationCommand.cc
  7399. * src/FtpNegotiationCommand.h
  7400. * src/HelpItemFactory.cc
  7401. * src/Makefile.am
  7402. * src/Makefile.in
  7403. * src/OptionHandlerFactory.cc
  7404. * src/option_processing.cc
  7405. * src/prefs.h
  7406. * src/usage_text.h
  7407. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Call Command::transitStatus() before calling Command::execute(),
  7409. so that the status change made in execute() is not cleared.
  7410. * src/DownloadEngine.cc
  7411. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7412. Removed forward declaration of SocketCore class.
  7413. * src/HttpDownloadCommand.h
  7414. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  7416. in InitiateConnectionCommandFactory. They should be set only when
  7417. the protocol is HTTP or HTTPS.
  7418. * src/InitiateConnectionCommandFactory.cc
  7419. * src/RequestGroup.cc
  7420. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Fixed infinite loop in checksum checking.
  7422. * src/IteratableChecksumValidator.cc
  7423. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Set _supportsPersistentConnection to true by default.
  7425. * src/Request.cc
  7426. * src/RequestGroup.cc
  7427. * test/HttpRequestTest.cc
  7428. * test/RequestTest.cc
  7429. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7430. Added timeout to socket pool. The default timeout is 15 seconds,
  7431. which is the same value Apache uses.
  7432. * src/DownloadEngine.cc
  7433. * src/DownloadEngine.h
  7434. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7435. Fixed misuse of multimap::find()
  7436. * src/HttpHeader.cc
  7437. * test/HttpHeaderTest.cc
  7438. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  7440. option.
  7441. The asynchronous DNS is not capable of IPv6 yet.
  7442. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  7443. least for HTTP download.
  7444. * src/AbstractCommand.cc
  7445. * src/AbstractCommand.h
  7446. * src/AsyncNameResolver.cc
  7447. * src/AsyncNameResolver.h
  7448. * src/DHTEntryPointNameResolveCommand.cc
  7449. * src/DHTEntryPointNameResolveCommand.h
  7450. * src/DownloadEngine.cc
  7451. * src/DownloadEngine.h
  7452. * src/FtpInitiateConnectionCommand.cc
  7453. * src/FtpInitiateConnectionCommand.h
  7454. * src/HelpItemFactory.cc
  7455. * src/HttpInitiateConnectionCommand.cc
  7456. * src/HttpInitiateConnectionCommand.h
  7457. * src/InitiateConnectionCommand.cc
  7458. * src/InitiateConnectionCommand.h
  7459. * src/Makefile.am
  7460. * src/Makefile.in
  7461. * src/NameResolver.cc
  7462. * src/NameResolver.h
  7463. * src/OptionHandlerFactory.cc
  7464. * src/SocketCore.cc
  7465. * src/SocketCore.h
  7466. * src/Util.cc
  7467. * src/Util.h
  7468. * src/option_processing.cc
  7469. * src/prefs.h
  7470. * src/usage_text.h
  7471. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Updated man page: --quiet, --header were added.
  7473. --metalink-servers and --enable-http-keep-alive option were updated.
  7474. * doc/aria2c.1
  7475. * doc/aria2c.1.html
  7476. * doc/aria2c.1.txt
  7477. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Enable HTTP keep-alive by default.
  7479. * src/HelpItemFactory.cc
  7480. * src/option_processing.cc
  7481. * src/usage_text.h
  7482. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Disable http keep-alive if the remote server is not HTTP/1.1.
  7484. * src/HttpConnection.cc
  7485. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Receive content body of 302 response so that the connection can be
  7487. reused later when http keep-alive is enabled.
  7488. * src/HttpNullDownloadCommand.cc
  7489. * src/HttpNullDownloadCommand.h
  7490. * src/HttpResponseCommand.cc
  7491. * src/HttpResponseCommand.h
  7492. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7493. const SharedHandle<Request> -> const SharedHandle<Request>&
  7494. * src/FtpDowndloadCommand.cc
  7495. * src/FtpDowndloadCommand.h
  7496. * src/HttpDownloadCommand.cc
  7497. * src/HttpDownloadCommand.h
  7498. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7499. Fixed the bug that the control file(.aria2 file) is not renamed
  7500. according to tryAutoFileRenaming().
  7501. tryAutoFileRenaming() was rewritten so that if both renamed file and
  7502. its control file exist, use them and continue download.
  7503. The old implementation didn't take into account of control file's
  7504. existence, so basically you couldn't continue download of renamed file.
  7505. * src/BtProgressInfoFile.h
  7506. * src/DefaultBtProgressInfoFile.cc
  7507. * src/DefaultBtProgressInfoFile.h
  7508. * src/NullProgressInfoFile.h
  7509. * src/RequestGroup.cc
  7510. * test/DefaultBtProgressInfoFileTest.cc
  7511. * test/MockBtProgressInfoFile.h
  7512. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Change the default value of --metalink-servers option from `5' to `1'.
  7514. * src/HelpItemFactory.cc
  7515. * src/option_processing.cc
  7516. * src/usage_text.h
  7517. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7518. Reimplemented transparent metalink using Accept request header.
  7519. * src/HttpRequest.cc
  7520. * src/HttpRequest.h
  7521. * src/HttpRequestCommand.cc
  7522. * src/Metalink2RequestGroup.cc
  7523. * src/RequestGroup.cc
  7524. * src/RequestGroup.h
  7525. * test/HttpRequestTest.cc
  7526. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7527. Bump up version number to 0.13.2a
  7528. * configure.ac
  7529. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. Updated configure.ac using the result of autoscan.
  7531. * configure.ac
  7532. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Fixed compilation error without gcrypt/openssl.
  7534. * src/DownloadCommand.cc
  7535. * src/DownloadCommand.h
  7536. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. Reorganized version information so that it can be displayed in a
  7538. standard terminal screen without scrolling.
  7539. Removed http, ftp from Configuration section, because they are always
  7540. enabled.
  7541. * src/FeatureConfig.cc
  7542. * src/FeatureConfig.h
  7543. * src/main.cc
  7544. * src/messageDigest.cc
  7545. * src/messageDigest.h
  7546. * src/version_usage.cc
  7547. * test/FeatureConfigTest.cc
  7548. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. Masked user ID in log.
  7550. * src/FtpConnection.cc (sendUser)
  7551. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7552. Removed query part from filename in HTTP download. The query part means
  7553. the substring after "?" in URL. Firefox seems do the same thing.
  7554. A query part is sometimes very long and not suitable to filename,
  7555. so I think it is better to remove it from filename.
  7556. * src/HttpRequest.cc
  7557. * src/HttpRequest.h
  7558. * src/Request.cc
  7559. * src/Request.h
  7560. * test/HttpRequestTest.cc
  7561. * test/RequestTest.cc
  7562. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7563. Rewritten Exception class. Throw exception object, not its pointer and
  7564. catch by reference, so that remove problematic delete operator for
  7565. catched exception.
  7566. * src/Exception.cc
  7567. * src/Exception.h
  7568. * test/ExceptionTest.cc
  7569. * src/*: All files throwing/catching exception.
  7570. * test/*: All files throwing/catching exception.
  7571. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Now auto protocol detection is enabled without -Z option.
  7573. But there is a important difference between with/without -Z optoin.
  7574. For example, if you type:
  7575. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  7576. then, aria2 interprets there are 3 request groups:
  7577. (1) http://host/file, http://mirror/file <-- multi-source download
  7578. (2) file1.torrent
  7579. (3) file2.metalink
  7580. On the other hand, if you invoke above command with -Z option, it is
  7581. interpreted as 4 request groups:
  7582. (1) http://host/file
  7583. (2) file1.torrent
  7584. (3) file2.metalink
  7585. (4) http://mirror/file
  7586. I think usually user don't mix multi-source URLs and torrent files, so
  7587. there is no big problem here.
  7588. * src/main.cc
  7589. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Fixed the bug that causes segmentaion fault when reading XML containing
  7591. unescapsed character like '&'.
  7592. Also a modification was made which avoids adding unnecessary
  7593. characters stack and appending unused string.
  7594. * src/ExpatMetalinkProcessor.cc
  7595. * src/FileMetalinkParserState.h
  7596. * src/FilesMetalinkParserState.h
  7597. * src/FinMetalinkParserState.h
  7598. * src/HashMetalinkParserState.h
  7599. * src/InitialMetalinkParserState.h
  7600. * src/LanguageMetalinkParserState.h
  7601. * src/MetalinkMetalinkParserState.h
  7602. * src/MetalinkParserState.h
  7603. * src/MetalinkParserStateMachine.cc
  7604. * src/MetalinkParserStateMachine.h
  7605. * src/OSMetalinkParserState.h
  7606. * src/PieceHashMetalinkParserState.h
  7607. * src/PiecesMetalinkParserState.h
  7608. * src/ResourcesMetalinkParserState.h
  7609. * src/SizeMetalinkParserState.h
  7610. * src/SkipTagMetalinkParserState.h
  7611. * src/URLMetalinkParserState.h
  7612. * src/VerificationMetalinkParserState.h
  7613. * src/VersionMetalinkParserState.h
  7614. * src/XML2SAXMetalinkProcessor.cc
  7615. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. Added StringFormat class, which internally calls vasprintf.
  7617. operator<< is defined for this class, so it can be used with iostream
  7618. classes nicely. SimpleLogger and following functions are rewritten
  7619. using StringFormat class.
  7620. Besides, now Logger class's methods are non-const, many classes
  7621. that has a const Logger* as a member variable are modified to remove
  7622. const qualifier from the variable declaration.
  7623. * src/HelpItemFactory.cc
  7624. * src/Request.cc
  7625. * src/SimpleLogger.cc
  7626. * src/StringFormat.cc
  7627. * src/StringFormat.h
  7628. * src/Util.cc
  7629. * src/option_processing.cc
  7630. * src/version_usage.cc
  7631. * test/StringFormatTest.cc
  7632. * src/*.h: The classes that has const Logger* as a member variable.
  7633. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7634. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  7635. failed. Also fixed memory link when exception is thrown there.
  7636. * src/main.cc (AccRequestGroup)
  7637. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. Added build-in "Accept-Features" support. For now only "metalink" is
  7639. used in this header field.
  7640. This "metalink" value is removed from the list when connecting URLs
  7641. fed by metalink file to avoid loop in "transparent" metlaink.
  7642. * src/HttpRequest.cc
  7643. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  7644. header is also held in this variable. Also renamed setUserHeaders as
  7645. addHeader and it was rewritten to add header not just to clear the old
  7646. value.
  7647. * src/HttpRequestCommand.cc
  7648. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  7649. from "Accept-Features" list.
  7650. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  7651. default.
  7652. * src/RequestGroup.h
  7653. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  7654. * src/a2functional.h: Included <string> because Concat class depends on
  7655. it.
  7656. * test/HttpRequestTest.cc
  7657. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. Added comment
  7659. * src/RequestGroup.cc (createNextCommand)
  7660. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7661. Capitalized METHOD_GET and METHOD_HEAD
  7662. * src/Request.cc
  7663. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7664. Added getDownloadResults() method
  7665. * src/RequestGroupMan.cc
  7666. * src/RequestGroupMan.h
  7667. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7668. Fixed the bug that aria2 exits when commands is empty() but
  7669. _routineCommands are not.
  7670. * src/DownloadEngine.cc
  7671. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7672. Use the default value pulled from Option object in HelpItemFactory.
  7673. except options whose defualt value is embedded in a usage text.
  7674. * src/HelpItemFactory.cc
  7675. * src/HelpItemFactory.h
  7676. * src/option_processing.cc
  7677. * src/version_usage.cc
  7678. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7679. Added --quiet option to make aria2 quiet (no console output).
  7680. --quiet option is tagged with ADVANCED.
  7681. * src/HelpItemFactory.cc
  7682. * src/LogFactory.cc
  7683. * src/LogFactory.h
  7684. * src/MultiUrlRequestInfo.cc
  7685. * src/MultiUrlRequestInfo.h
  7686. * src/NullStatCalc.h: New class. This class prints nothing.
  7687. * src/OptionHandlerFactory.cc
  7688. * src/main.cc
  7689. * src/option_processing.cc
  7690. * src/prefs.h
  7691. * src/usage_text.h
  7692. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7693. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  7694. * src/HelpItemFactory.cc (createHelpItems):
  7695. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Fixed compilation error in ExpatMetalinkProcessor.cc
  7697. * src/ExpatMetalinkProcessor.cc
  7698. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7699. Reuse socket if the origin server supports HTTP keep-alive and
  7700. --enable-http-keep-alive or --enable-http-pipelining is given.
  7701. The current implementation doesn't reuse the connections established
  7702. against proxy server.
  7703. * src/AbstractCommand.cc
  7704. * src/DownloadEngine.cc
  7705. * src/DownloadEngine.h
  7706. * src/HttpDownloadCommand.cc
  7707. * src/HttpInitiateConnectionCommand.cc
  7708. * src/HttpResponseCommand.cc
  7709. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Rewritten HTTP keep-alive and pipelining routine.
  7711. * src/AbstractCommand.cc
  7712. * src/HttpConnection.cc
  7713. * src/HttpDownloadCommand.cc
  7714. * src/HttpRequest.cc
  7715. * src/HttpRequestCommand.cc
  7716. * src/HttpResponseCommand.cc
  7717. * src/Request.cc
  7718. * src/Request.h
  7719. * src/RequestGroup.cc
  7720. * test/HttpRequestTest.cc
  7721. * test/HttpResponseTest.cc
  7722. * test/RequestTest.cc
  7723. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7724. Added missing setUserHeaders call
  7725. * src/HttpRequestCommand.cc
  7726. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7727. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  7728. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  7729. waste of time because it is more likey false.
  7730. * src/FileAllocationDispatcherCommand.cc (execute)
  7731. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7732. Now HTTP status and version are a member variable of HttpHeader.
  7733. HTTP status is processed as a string, not integer.
  7734. * src/AbstractProxyResponseCommand.cc
  7735. * src/HttpConnection.cc
  7736. * src/HttpHeader.cc
  7737. * src/HttpHeader.h
  7738. * src/HttpHeaderProcessor.cc
  7739. * src/HttpHeaderProcessor.h
  7740. * src/HttpResponse.cc
  7741. * src/HttpResponse.h
  7742. * test/HttpHeaderProcessorTest.cc
  7743. * test/HttpResponseTest.cc
  7744. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7745. Added --header option. You can specify any number of additional HTTP headers
  7746. like:
  7747. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  7748. Unlike other commad-line option, you can use --header option multiple times.
  7749. * src/HelpItemFactory.cc
  7750. * src/HttpRequest.{cc, h}
  7751. * src/HttpRequestCommand.cc
  7752. * src/OptionHandlerFactory.cc
  7753. * src/OptionHandlerImpl.h
  7754. * src/option_processing.cc
  7755. * src/prefs.h
  7756. * src/usage_text.h
  7757. * test/HttpRequestTest.cc (testUserHeaders)
  7758. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Eliminates the time lag between sequential downloads and commands in
  7760. the same RequestGroup.
  7761. In old implementation, aria2 occasionally waits 1 seconds before
  7762. executing next command or RequestGroup.
  7763. This is really a waste of time, and new implementation eliminates
  7764. this unnecessary time lag.
  7765. * src/AbstractCommand.cc
  7766. * src/AutoSaveCommand.cc
  7767. * src/CheckIntegrityCommand.cc
  7768. * src/Command.{cc, h}
  7769. * src/DownloadEngine.{cc, h}
  7770. * src/DownloadEngineFactory.cc
  7771. * src/FileAllocationCommand.cc
  7772. * src/FileAllocationDispatcherCommand.cc
  7773. * src/FillRequestGroupCommand.cc
  7774. * src/FtpInitiateConnectionCommand.cc
  7775. * src/HaveEraseCommand.cc
  7776. * src/HttpInitiateConnectionCommand.cc
  7777. * src/HttpResponseCommand.cc
  7778. * src/RealtimeCommand.cc
  7779. * src/RequestGroup.cc
  7780. * src/RequestGroupMan.cc
  7781. * src/StreamFileAllocationEntry.cc
  7782. * src/TimeBasedCommand.{cc, h}
  7783. * src/TimedHaltCommand.cc
  7784. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7785. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  7786. keyword explicit and SharedHandle's default constructor initializes
  7787. its internal obj to null, old implementation initializes it using
  7788. obj's default constructor.
  7789. To assign null, write SharedHandle<T> x(...); x.reset();
  7790. TODO: test/SharedHandleTest.cc needs more tests.
  7791. * src/SharedHandle.h
  7792. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7793. Fixed type in man page.
  7794. * doc/aria2c.1.txt
  7795. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7796. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  7797. * src/SimpleLogger.{cc, h}
  7798. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7799. Implemented auto protocol detection.
  7800. Now you can do:
  7801. aria2c -Z http://host/file file1.torrent file2.metalink
  7802. (Note: -Z option is required for auto protcol detection.)
  7803. Then aria2c downloads 3 files simultaneously:
  7804. 1. http://host/file
  7805. 2. file1.torrent <-- read local torrent file
  7806. 3. file2.metalink <-- read local Metalink file.
  7807. Same thing goes with -i option. Assume your uris.txt contans:
  7808. http://host/file
  7809. file1.torrent
  7810. file2.metalink
  7811. Then you can do: aria2c -i uris.txt
  7812. (Note: -Z option is not needed if -i option is given.)
  7813. * src/main.cc
  7814. * src/ProtocolDetector.{cc, h}
  7815. * test/ProtocolDetectorTest.cc
  7816. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7817. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  7818. installed
  7819. * src/ARC4Encryptor.h
  7820. * src/ARC4Decryptor.h
  7821. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Renamed argument from 'errno' to 'err', since errno is confused with
  7823. errno defined in errno.h.
  7824. * src/LibgcryptARC4Decryptor.h
  7825. * src/LibgcryptARC4Context.h
  7826. * src/LibgcryptDHKeyExchange.h
  7827. * src/LibgcryptARC4Encryptor.h
  7828. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Rewritten choking algorithm.
  7830. * src/PeerChokeCommand.{cc, h}
  7831. * src/BtInterestedMessage.cc
  7832. * src/PeerSessionResource.{cc, h}
  7833. * src/DefaultPeerStorage.{cc, h}
  7834. * src/BtNotInterestedMessage.cc
  7835. * src/DefaultBtMessageDispatcher.{cc, h}
  7836. * src/BtMessageDispatcher.h
  7837. * src/Peer.{cc, h}
  7838. * src/BtLeecherStateChoke.{cc, h}
  7839. * src/BtSetup.cc
  7840. * src/BtSeederStateChoke.{cc, h}
  7841. * src/PeerStorage.h
  7842. * test/MockPeerStorage.h
  7843. * test/MockBtMessageDispatcher.h
  7844. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Fixed compilation error on x84-64 platform.
  7846. * src/AuthConfig.cc: Included ostream.
  7847. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Rewritten getBasename() and getDirname(), without standard library
  7849. basename(), dirname().
  7850. * src/File.cc
  7851. * test/FileTest.cc
  7852. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Added Simplified Chinese translation. Also updated the following
  7854. translations: Polish, Dutch, German. Great thanks to all translators.
  7855. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7856. Suppress content-range error when 'Content-Range' response header
  7857. doesn't contains bytes-unit specifier 'bytes'
  7858. * src/HttpHeader.cc (getRange)
  7859. * test/HttpHeaderTest.cc
  7860. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7861. Fixed compilation error with g++-4.3
  7862. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Added missing include files for MinGW
  7864. * test/HttpHeaderProcessorTest.cc
  7865. * test/DHTRoutingTableSerializerTest.cc
  7866. * test/DHTRoutingTableDeserializerTest.cc
  7867. * test/UriListParserTest.cc
  7868. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Now download line is printed nicely with no garbage at the end of
  7870. line. I use ioctl to get the columns of terminal.
  7871. If stdout is redirected to another device, instead of carriage return,
  7872. end of line '\n' character is used. This is feature request#1909659
  7873. * src/ConsoleStatCalc.cc (calculateStat)
  7874. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. Included a2time.h
  7876. * src/DHTMessageDispatcher.h
  7877. * src/DHTMessageEntry.h
  7878. * src/DHTReplaceNodeTask.h
  7879. * src/DHTMessageTracker.h
  7880. * src/Util.h
  7881. * src/CookieBox.h
  7882. * src/SocketCore.h
  7883. * src/DefaultBtMessageDispatcher.h
  7884. * src/SocketCore.cc
  7885. * src/Util.cc
  7886. * src/DHTPingTask.h
  7887. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7888. Fixed high memory footprint when DHT is enabled.
  7889. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7890. queued than it is processed and the queue is getting longer. As a
  7891. consequence, momory usage is increased.
  7892. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7893. replacement cache in DHTBucket which is described in Kademlia paper.
  7894. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7895. DHTReplaceNodeTask.
  7896. * src/DHTBucket.{h, cc}
  7897. (cacheNode): New function.
  7898. (getCachedNodes): New function.
  7899. (dropNode): Push back cached node to _nodes.
  7900. * test/DHTBucketTest.cc
  7901. (testCacheNode): New test
  7902. (testDropNode): New test
  7903. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7904. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7905. the unused 4KB memory when ssl is not used.
  7906. * src/SocketCore.cc
  7907. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7908. Added summary log for peer announce storage.
  7909. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7910. Removed cast
  7911. * src/DefaultPeerStorage.cc (addPeer)
  7912. Log exception message
  7913. * src/DHTMessageTracker.cc (handleTimeout)
  7914. Fixed casting
  7915. * test/HttpRequestTest.cc
  7916. * test/MetalinkProcessorTest.cc
  7917. * test/PieceTest.cc
  7918. * test/MetalinkEntryTest.cc
  7919. * test/SequenceTest.cc
  7920. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. * src/ParameterizedStringParser.cc (createLoop):
  7922. Removed unused variable sstep.
  7923. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7924. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. * src/Util.{h, cc}
  7926. (parseUInt): New function.
  7927. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7928. The actual range is uint32_t.
  7929. * test/UtilTest.cc
  7930. * src/ParameterizedStringParser.cc:
  7931. Use Util::parseUInt() for loop variables.
  7932. * test/ParameterizedStringParserTest.cc
  7933. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7934. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Rewritten the functions for binding port.
  7936. * src/DHTConnectionImpl.{h, cc}
  7937. * src/PeerListenCommand.{h, cc}
  7938. * src/DHTSetup.cc
  7939. * src/BtSetup.cc
  7940. * test/DHTConnectionImplTest.cc
  7941. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. type cleanup for allmost all remaining files.
  7943. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7944. Type clarification
  7945. * src/PeerSessionResource.{h, cc}
  7946. * src/DefaultPieceStorage.{h, cc}
  7947. * src/Peer.{h, cc}
  7948. * test/PeerSessionResourceTest.cc
  7949. Use div function
  7950. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7951. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7952. Type clarification
  7953. * src/DefaultPeerStorage.{h, cc}
  7954. * test/DefaultPeerStorageTest.cc
  7955. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Type clarification: size_t for length or size, uint64_t for file
  7957. length, off_t for file offset.
  7958. * src/DefaultBtProgressInfoFile.cc
  7959. * src/DefaultBtContext.{h, cc}
  7960. * src/DefaultBtInteractive.cc
  7961. * src/DownloadCommand.{h, cc}
  7962. * src/IteratableChunkChecksumValidator.{h, cc}
  7963. * src/SegmentMan.{h, cc}
  7964. * src/SingleFileDownloadContext.{h, cc}
  7965. * src/IteratableChecksumValidator.{h, cc}
  7966. * src/BtContext.h
  7967. * src/IteratableValidator.h
  7968. * src/DownloadContext.h
  7969. * test/SingleFileDownloadContextTest.cc
  7970. * test/DefaultBtContextTest.cc
  7971. * test/MockBtContext.h
  7972. * test/Metalink2RequestGroupTest.cc
  7973. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Type clarification: size_t for length or size, uint64_t for file
  7975. length, off_t for file offset.
  7976. * src/PiecedSegment.cc
  7977. * src/GrowSegment.h
  7978. * src/DefaultBtRequestFactory.h
  7979. * src/DefaultBtProgressInfoFile.cc
  7980. * src/UnknownLengthPieceStorage.h
  7981. * src/DefaultPieceStorage.cc
  7982. * src/UnknownLengthPieceStorage.cc
  7983. * src/DefaultBtInteractive.cc
  7984. * src/GrowSegment.cc
  7985. * src/BitfieldMan.h
  7986. * src/DownloadCommand.cc
  7987. * src/BtRequestFactory.h
  7988. * src/PiecedSegment.h
  7989. * src/DefaultPieceStorage.h
  7990. * src/Piece.cc
  7991. * src/DefaultBtRequestFactory.cc
  7992. * src/PieceStorage.h
  7993. * src/Segment.h
  7994. * src/Piece.h
  7995. * src/BitfieldMan.cc
  7996. * src/Util.cc
  7997. * test/DefaultBtProgressInfoFileTest.cc
  7998. * test/DefaultPieceStorageTest.cc
  7999. * test/MockPieceStorage.h
  8000. * test/BtRequestMessageTest.cc
  8001. * test/DefaultBtMessageDispatcherTest.cc
  8002. * test/BitfieldManTest.cc
  8003. * test/GrowSegmentTest.cc
  8004. * test/PieceTest.cc
  8005. * test/SegmentTest.cc
  8006. * test/SegmentManTest.cc
  8007. * test/DefaultBtRequestFactoryTest.cc
  8008. * test/MockBtRequestFactory.h
  8009. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8010. Fixed compilation error with --disable-nls
  8011. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  8012. in gettext.h causes the problem.
  8013. * src/common.h
  8014. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Removed subPiece related functions.
  8016. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  8017. * src/DefaultPieceStorage.{h, cc}
  8018. * test/PieceTest.cc
  8019. * test/DefaultPieceStorageTest.cc
  8020. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8021. Use unsigned char for data store.
  8022. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Bump up version number to 0.13.0+1
  8024. * configure.ac
  8025. * Release 0.13.0+1
  8026. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8027. Changed inactive connection timeout to 120.
  8028. To accept more mulually interested peers, disconnect peer when there
  8029. is no interest between us after certain time passed.
  8030. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  8031. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8032. Fixed the bug that aria2 only uses first dns server in resolv.conf
  8033. when compiled with async DNS support.
  8034. * src/DownloadEngine.cc
  8035. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  8036. value '10' will be a little bit short when some DNS servers are
  8037. offline and several DNS servers are tried. It should be configured
  8038. by command-line option.
  8039. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Merged Ross's mingw patch.
  8041. * src/DHTRoutingTableDeserializer.cc
  8042. * src/DHTRoutingTableSerializer.cc
  8043. * src/Platform.{h, cc}
  8044. * src/timegm.h
  8045. * src/gettimeofday.h
  8046. * src/getaddrinfo.h
  8047. * src/SocketCore.h
  8048. * src/common.h
  8049. * src/inet_aton.h
  8050. * src/DownloadEngine.h
  8051. * src/gai_strerror.h
  8052. * src/a2netcompat.h
  8053. * configure.ac
  8054. * configure
  8055. * aclocal.m4
  8056. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8057. Included missing iostream.
  8058. * test/AllTest.cc
  8059. * test/BtDependencyTest.cc
  8060. * test/BtExtendedMessageTest.cc
  8061. * test/DHTConnectionImplTest.cc
  8062. * test/DHTMessageFactoryImplTest.cc
  8063. * test/DHTMessageTrackerEntryTest.cc
  8064. * test/DHTNodeTest.cc
  8065. * test/DHTRoutingTableSerializerTest.cc
  8066. * test/DefaultBtAnnounceTest.cc
  8067. * test/DefaultBtContextTest.cc
  8068. * test/DefaultBtMessageFactoryTest.cc
  8069. * test/DefaultExtensionMessageFactoryTest.cc
  8070. * test/HandshakeExtensionMessageTest.cc
  8071. * test/HttpResponseTest.cc
  8072. * test/MetalinkProcessorTest.cc
  8073. * test/MultiFileAllocationIteratorTest.cc
  8074. * test/SocketCoreTest.cc
  8075. * test/UTPexExtensionMessageTest.cc
  8076. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8077. Reorganized includes.
  8078. * src/NameResolver.cc
  8079. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8080. Fixed compilation error without ares/c-ares
  8081. * src/NameResolver.h:
  8082. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8083. Added a test for large file.
  8084. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  8085. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. Fixed the bug that file size is ignored if size > INT32_MAX
  8087. * src/SizeMetalinkParserState.cc (endElement):
  8088. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Bump up version number to 0.13.0
  8090. * configure.ac
  8091. * Release 0.13.0
  8092. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8093. Updated Makfefile.am to make 'make dist' work.
  8094. Now packaged filename is aria2c-VERSION.tar.bz2.
  8095. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  8096. Added LICENSE.OpenSSL to dist_noinst_DATA.
  8097. Large file support is now configured by configure script.
  8098. * configure.ac
  8099. Removed unsused source files
  8100. * src/
  8101. * test/
  8102. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  8103. Peer.h and BtContext.h respectively.
  8104. * src/Peer.h
  8105. * src/BtContext.h
  8106. Updated translations.
  8107. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  8108. translations. Great thanks to all translators!;)
  8109. * po/*.{po, gmo}
  8110. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  8112. statically declared sha1 MessageDigestContext.
  8113. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  8114. initialization of short-lived MessageDigestContext.
  8115. * src/MessageDigestHelper.{h, cc}
  8116. * src/main.cc
  8117. Now DownloadCommand has a reference to MessageDigestContext to avoid
  8118. the initialization of MessageDigestContext every time in validating
  8119. chunk checksum.
  8120. * src/DownloadCommand.{h, cc}
  8121. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Add a file descriptor which connected to fast peer(latency<1500) to
  8123. select(). This change reduced CPU load.
  8124. * src/PeerInteractionCommand.cc
  8125. * src/DefaultBtInteractive.{h, cc}
  8126. * src/BtInteractive.h
  8127. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Fixed the previous insufficient fix for possible busy loop.
  8129. * src/MSEHandshake.cc (identifyHandshakeType)
  8130. Removed unused functions.
  8131. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  8132. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8133. Fixed possible busy loop if first 20 bytes are not received for a few
  8134. minutes.
  8135. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  8136. * src/ReceiverMSEHandshakeCommand.cc
  8137. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8138. Fixed compilation error
  8139. * src/ExpatMetalinkProcessor.cc
  8140. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8141. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  8142. * src/DHTBucket.cc
  8143. Removed unnecessary cast.
  8144. * src/HandshakeExtensionMessage.cc
  8145. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8146. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  8147. is missing.
  8148. * src/OptionHandlerFactory.cc
  8149. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. Fixed the bug that HAVE message is not sent for a piece they are
  8151. downloaded fom http/ftp server before any BitTorrent handshake is done
  8152. with peers.
  8153. * src/DefaultBtInteractive.cc
  8154. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  8156. * src/Makefile.am
  8157. * src/Makefile.in
  8158. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Updated README. Added html version of README and man page.
  8160. * README
  8161. * README.html
  8162. * readme2html: Shell script to generate README.html from README using
  8163. asciidoc.
  8164. * doc/aria2c.1.html
  8165. * doc/makeman: Added the line to generate aria2c.1.html
  8166. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. Fixed offset calculation.
  8168. * src/LibgcryptDHKeyExchange.h (computeSecret)
  8169. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Rewritten itos and uitos using template. llitos and ullitos are
  8171. replaced with itos and uitos respectively.
  8172. * src/Util.{h, cc}
  8173. * test/UtilTest.cc
  8174. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8175. Fixed the bug that DH key exchange sometimes fails due to bad handling
  8176. of the number of bytes required for storing public key and shared
  8177. secret.
  8178. * src/LibgcryptDHKeyExchange.h
  8179. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  8180. * src/MSEHandshake.cc
  8181. * test/DHKeyExchangeTest.cc
  8182. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Removed since they are not used.
  8184. * src/Xml2MetalinkProcessor.{h, cc}
  8185. * src/Socket.cc
  8186. * src/SegmentSplitter.{h, cc}
  8187. * test/Xml2MetalinkProcessorTest.cc
  8188. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Fixed the bug that prevents aria2 from stopping other than by pressing
  8190. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  8191. option. aria2 doesn't stop even after --seed-time is satisfied and
  8192. continues to output blank lines in the console.
  8193. * src/ReceiverMSEHandshakeCommand.cc
  8194. * src/PeerReceiveHandshakeCommand.cc
  8195. * src/PeerListenCommand.cc
  8196. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8197. Bump up version number to 0.13.0rc
  8198. * configure.ac
  8199. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8200. Updated man page and some usage text.
  8201. * doc/aria2c.1.txt
  8202. * src/usage_text.h
  8203. * po/*.{po, gmo}
  8204. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8205. Updated translations. Added Finnish and Hebrew translations.
  8206. Great thanks to all translators!
  8207. * po/*.{po, gmo}
  8208. * po/LINGUAS
  8209. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8210. Log more detailed information about each message.
  8211. * src/DHTQueryMessage.{h, cc}
  8212. * src/DHTGetPeersMessage.{h, cc}
  8213. * src/DHTFindNodeReplyMessage.{h, cc}
  8214. * src/DHTGetPeersReplyMessage.{h, cc}
  8215. * src/DHTAnnouncePeerMessage.{h, cc}
  8216. * src/DHTResponseMessage.{h, cc}
  8217. * src/DHTFindNodeMessage.{h, cc}
  8218. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8219. Use constants defined in prefs.h
  8220. * src/option_processing.cc
  8221. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  8223. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Make room for future enchancements for IPv6 addresses.
  8225. Bump up version number of dht.dat file format to 2.
  8226. Not compatible with previous version.
  8227. * src/DHTRoutingTableSerializer.cc
  8228. * src/DHTRoutingTableDeserializer.cc
  8229. * test/DHTRoutingTableSerializerTest.cc
  8230. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8231. Added handling for the return values from
  8232. PeerMessageUtil::createcompact().
  8233. * src/DefaultBtContext.cc (computeFastSet):
  8234. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8235. Fixed abort when peer's ip address is IPv4-mapped address.
  8236. * src/DefaultBtContext.cc (computeFastSet)
  8237. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  8238. cannot handle IPv4-mapped addresses.
  8239. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  8240. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8241. Proper return value handling for OpenSSL functions.
  8242. * src/LibsslDHKeyExchange.h
  8243. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Random bytes generation using libgcrypt and OpenSSL.
  8245. * src/DHTUtil.{h, cc}
  8246. * test/DHTUtilTest.cc
  8247. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8248. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  8249. received.
  8250. * src/DHTMessageReceiver.cc (receiveMessage)
  8251. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Fixed the bug that a return code is always 0. BUG#1897704
  8253. If error occurred during the download or there exist unfinished
  8254. downloads, aria2 returns with code 1.
  8255. * src/RequestGroupMan.{h, cc}
  8256. * src/MultiUrlRequestInfo.{h, cc}
  8257. * src/main.cc
  8258. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. IPv6 support for SocketCore class.
  8260. TODO: In SocketCore::establishConnection(), this is insufficient to
  8261. determin the failure of connect() here because the socket is
  8262. non-blocking state. The next addresses should be tried after select().
  8263. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  8264. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  8265. instead which address family independent.
  8266. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  8267. information in a compact peer format which is for IPv4 only.
  8268. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  8269. this is a spec of BitTorrent protocol.
  8270. * src/SocketCore.{h, cc}
  8271. * src/PeerMessageUtil.cc
  8272. * test/SocketCoreTest.cc
  8273. * test/PeerMessageUtilTest.cc
  8274. * test/DHTConnectionImplTest.cc
  8275. Handle IPv4-mapped addresses.
  8276. * src/DHTNode.cc: Now identity is determined by node id.
  8277. * src/DHTMessageTrackerEntry.cc
  8278. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  8279. should handle it.
  8280. * src/DHTRoutingTableDeserializer.cc
  8281. * src/DHTMessageFactoryImpl.cc
  8282. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8283. Change the unit of --stop option from a minute to a second.
  8284. * src/usage_text.h
  8285. * src/DownloadEngineFactory.cc
  8286. * src/OptionHandlerFactory.cc
  8287. * src/message.h
  8288. * src/TimedHaltCommand.cc
  8289. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8290. Make listening socket non-block mode.
  8291. * src/FtpConnection.cc
  8292. * src/FtpNegotiationCommand.{h, cc}
  8293. * src/PeerListenCommand.cc
  8294. Fixed the bug that cause slow ftp negotiation.
  8295. * src/FtpNegotiationCommand.{h, cc}
  8296. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Added basic tag to --enable-dht, --dht-listen-port option.
  8298. * src/HelpItemFactory.cc (createHelpItems)
  8299. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8300. Updated text.
  8301. * src/usage_text.h
  8302. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8303. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  8304. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8305. Determin _threadtholdSpeed in each constructor for
  8306. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  8307. * src/ActivePeerConnectionCommand.{h, cc}
  8308. * src/PeerReceiveHandshakeCommand.{h, cc}
  8309. * src/BtSetup.cc
  8310. * src/BtConstants.h
  8311. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8312. Added --bt-min-crypto-level and --bt-require-crypto options.
  8313. * src/OptionHandlerFactory.cc
  8314. * src/MSEHandshake.cc
  8315. * src/HelpItemFactory.cc
  8316. * src/option_processing.cc
  8317. * src/ReceiverMSEHandshakeCommand.cc
  8318. * src/prefs.h
  8319. * src/DefaultBtAnnounce.cc
  8320. * src/InitiatorMSEHandshakeCommand.cc
  8321. * src/usage_text.h
  8322. * test/MSEHandshakeTest.cc
  8323. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Bump version number to 0.13.0b
  8325. * configure.ac
  8326. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Updated doc.
  8328. * src/MessageDigestHelper.h:
  8329. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Use raw message digest as a token instead of its hexadecimal
  8331. representation.
  8332. * src/DHTTokenTracker.cc (generateToken)
  8333. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Added Message Stream Encryption(MSE) support.
  8335. Currently, aria2 accepts incoming connections with Obfuscation Header
  8336. and legacy BitTorrent Header and establishes connections with
  8337. Obfuscation Header first and if failed then retry with legacy
  8338. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  8339. choose ARC4. The new option to change the default behavior is planned.
  8340. For tracker extension, "supportcrypto=1" is added statically.
  8341. * src/PeerInitiateConnectionCommand.{h, cc}
  8342. * src/PeerConnection.{h, cc}
  8343. * src/HandleRegistry.h
  8344. * src/SocketCore.h
  8345. * src/PeerReceiveHandshakeCommand.{h, cc}
  8346. * src/BtRegistry.{h, cc}
  8347. * src/PeerListenCommand.cc
  8348. * src/InitiatorMSEHandshakeCommand.{h, cc}
  8349. * src/ReceiverMSEHandshakeCommand.{h, cc}
  8350. * src/MSEHandshake.{h, cc}
  8351. * src/ARC4Encryptor.h
  8352. * src/ARC4Decryptor.h
  8353. * src/LibgcryptARC4Encryptor.h
  8354. * src/LibgcryptARC4Decryptor.h
  8355. * src/LibgcryptARC4Context.h
  8356. * src/LibsslARC4Encryptor.h
  8357. * src/LibsslARC4Decryptor.h
  8358. * src/LibsslARC4Context.h
  8359. * src/DHKeyExchange.h
  8360. * src/LibgcryptDHKeyExchange.h
  8361. * src/LibsslDHKeyExchange.h
  8362. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  8363. * test/DefaultBtAnnounceTest.cc
  8364. * test/ARC4Test.cc
  8365. * test/DHKeyExchangeTest.cc
  8366. Removed prepareForRetry() because it is not used.
  8367. * src/PeerAbstractCommand.{h, cc}
  8368. * src/PeerInteractionCommand.{h, cc}
  8369. * src/PeerInitiateConnectionCommand.{h, cc}
  8370. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Added the ability to load nodes from torrent file. These nodes are
  8372. added to the routing table when downloading that torrent.
  8373. * src/BtContext.h
  8374. * src/DefaultBtContext.{h, cc}
  8375. * src/DHTSetup.cc
  8376. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  8377. hostname and port pair, and resolves all of them.
  8378. * src/NameResolver.{h, cc}: Added reset().
  8379. * src/RequestGroup.cc
  8380. * test/DefaultBtContextTest.cc
  8381. * test/MockBtContext.h
  8382. Removed assert() from DefaultBtContext and throw exception instead.
  8383. * src/DefaultBtContext.cc
  8384. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8385. Fixed segmentation fault bug when exiting if dht is disabled.
  8386. * src/RequestGroup.cc
  8387. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8388. Fixed typo in log message and define the message in message.h
  8389. * src/TimedHaltCommand.cc
  8390. * src/message.h
  8391. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8392. Included RecoverableException.h to fix compilation error.
  8393. * test/DHTMessageFactoryImplTest.cc
  8394. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8395. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  8396. * test/DHTPingMessageTest.cc
  8397. * test/DHTGetPeersMessageTest.cc
  8398. * test/DHTFindNodeMessageTest.cc
  8399. * test/DHTAnnouncePeerMessageTest.cc
  8400. * test/MockDHTMessage.h
  8401. * test/MockDHTMessageFactory.h
  8402. * test/MockDHTMessageDispatcher.h: New class.
  8403. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  8405. virtual.
  8406. * src/DHTMessageDispatcher.h
  8407. * src/DHTMessageDispatcherImpl.{h, cc}
  8408. * src/DHTSetup.cc
  8409. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8410. Adding handling of DHT error message. Just log error message and
  8411. throw exception.
  8412. * src/DHTMessageFactoryImpl.cc
  8413. * test/DHTMessageFactoryImplTest.cc
  8414. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Added handling of dynamic cast failure.
  8416. * src/DHTNodeLookupTask.cc
  8417. * src/DHTPeerLookupTask.cc
  8418. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8419. Added the ability to stop aria2 itself when given time has passed
  8420. from start. Use --stop option to specify time in minutes.
  8421. When 0 is given, this feature is disabled.
  8422. * src/OptionHandlerFactory.cc
  8423. * src/TimeBasedCommand.h: Make _interval protected scope.
  8424. * src/HelpItemFactory.cc
  8425. * src/option_processing.cc
  8426. * src/prefs.h
  8427. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  8428. before calling RequestGroupMan::fillRequestGroupFromReserver().
  8429. Without this modification, the result list shows "ERR" when aria2 is
  8430. stopped by --stop option. It should be "INPR".
  8431. * src/DownloadEngine.{h, cc}
  8432. * src/DownloadEngineFactory.cc
  8433. * src/usage_text.h
  8434. * src/TimedHaltCommand.{h, cc}: New class.
  8435. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8436. Bootstrap through node added by port message.
  8437. Currently bootstrap is executed if the number of buckets in routing
  8438. table is 1.
  8439. * src/BtPortMessage.{h, cc}
  8440. * src/DefaultBtMessageFactory.{h, cc}
  8441. * src/PeerInteractionCommand.cc
  8442. * test/BtPortMessageTest.cc
  8443. * test/MockDHTTask.h
  8444. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8445. Extract the Peer class's member variables, which are only needed after
  8446. PeerInteractionCommand, into PeerSessionResource class.
  8447. This class is instantiated in PeerInteractionCommand class's ctor and
  8448. released in its dtor.
  8449. This will make Peer class lightweight and uses less memory for peers
  8450. which are not connected and wait in the queue.
  8451. * src/PeerChokeCommand.cc
  8452. * src/PeerSessionResource.{h, cc}
  8453. * src/PeerInteractionCommand.cc
  8454. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  8455. * src/DefaultBtInteractive.cc
  8456. * src/BtPieceMessage.cc
  8457. * src/BtInterestedMessage.cc
  8458. * src/BtUnchokeMessage.cc
  8459. * src/DefaultPeerStorage.{h, cc}
  8460. * src/PeerInitiateConnectionCommand.cc
  8461. * src/ActivePeerConnectionCommand.cc
  8462. * src/BtNotInterestedMessage.cc
  8463. * src/DefaultBtMessageDispatcher.cc
  8464. * src/BtChokeMessage.cc
  8465. * src/BtRequestMessage.cc
  8466. * src/Peer.{h, cc}
  8467. * src/BtRegistry.h
  8468. * src/TrackerWatcherCommand.cc
  8469. * src/PeerReceiveHandshakeCommand.cc
  8470. * test/BtExtendedMessageTest.cc
  8471. * test/BtAllowedFastMessageTest.cc
  8472. * test/BtCancelMessageTest.cc
  8473. * test/DefaultPieceStorageTest.cc
  8474. * test/BtBitfieldMessageTest.cc
  8475. * test/BtHaveMessageTest.cc
  8476. * test/BtNotInterestedMessageTest.cc
  8477. * test/BtRequestMessageTest.cc
  8478. * test/PeerSessionResourceTest.cc
  8479. * test/DefaultBtMessageDispatcherTest.cc
  8480. * test/PeerTest.cc
  8481. * test/BtInterestedMessageTest.cc
  8482. * test/BtRejectMessageTest.cc
  8483. * test/BtChokeMessageTest.cc
  8484. * test/DefaultPeerStorageTest.cc
  8485. * test/BtHaveNoneMessageTest.cc
  8486. * test/BtHaveAllMessageTest.cc
  8487. * test/DefaultExtensionMessageFactoryTest.cc
  8488. * test/BtUnchokeMessageTest.cc
  8489. * test/DefaultBtMessageFactoryTest.cc
  8490. * test/HandshakeExtensionMessageTest.cc
  8491. * test/UTPexExtensionMessageTest.cc
  8492. * test/DefaultBtRequestFactoryTest.cc
  8493. * test/BtPieceMessageTest.cc
  8494. Removed typedef PeerStats.
  8495. * src/PeerStat.h
  8496. * src/SegmentMan.cc
  8497. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8498. Added std namespace to copy, remove_copy, back_inserter,
  8499. front_inserter.
  8500. * src/RequestGroupMan.cc
  8501. * src/DefaultPieceStorage.cc
  8502. * src/StreamFileAllocationEntry.cc
  8503. * src/BtFileAllocationEntry.cc
  8504. * src/RequestGroup.cc
  8505. * src/MetalinkEntry.cc
  8506. * src/DelegatingPeerListProcessor.cc
  8507. * src/DefaultBtRequestFactory.cc
  8508. * src/DefaultBtMessageDispatcher.cc
  8509. * src/version_usage.cc: Included <algorithm>
  8510. * src/main.cc
  8511. * src/MetalinkParserController.cc
  8512. * src/DefaultBtContext.cc
  8513. * src/DownloadEngineFactory.cc
  8514. * src/a2algo.h
  8515. Removed.
  8516. * test/StreamUriListParserTest.cc
  8517. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8518. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  8519. ActivePeerConnectionCommand when it is given and
  8520. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  8521. * src/ActivePeerConnectionCommand.{h, cc}
  8522. * src/BtSetup.cc
  8523. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. Only add socket to DownloadEngine's select routine when peer or
  8525. localhost is unchoked and interested. This lowers CPU usage a
  8526. little bit.
  8527. * src/PeerInteractionCommand.cc
  8528. * src/PeerAbstractCommand.{h, cc}
  8529. * src/BtInteractive.h
  8530. * src/DefaultBtInteractive.{h, cc}
  8531. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8532. Revert previous change because get_peers message is needed for
  8533. announce_peer anyway.
  8534. * src/DHTGetPeersCommand.cc
  8535. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8536. Request peers thought DHT only when download hasn't finished.
  8537. * src/DHTGetPeersCommand.cc
  8538. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8539. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  8540. * src/DHTBucketRefreshTask.{h, cc}
  8541. * src/DHTSetup.cc
  8542. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  8544. standard classes.
  8545. Included string.h where mem* function are used.
  8546. Added namespace aria2.
  8547. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8548. Create directory before saving DHT routing table.
  8549. Now ios::failure is now handled properly.
  8550. * src/DHTAutoSaveCommand.cc
  8551. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8552. Removed unnecessary cerr.
  8553. * src/DownloadEngine.cc
  8554. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Catch exception inside DHTMessageReceiver::receiveMessage().
  8556. Log unknown message.
  8557. * src/DHTMessageReceiver.{h, cc}
  8558. * src/DHTMessageFactory.h
  8559. * src/DHTMessageFactoryImpl.{h, cc}
  8560. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  8561. * src/DHTInteractionCommand.cc
  8562. * src/DHTUnknownMessage.{h, cc}
  8563. * test/DHTUnknownMessageTest.cc
  8564. * test/MockDHTMessageFactory.h
  8565. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. Commented out ip address comparison because a host can have multiple
  8567. ip addresses and it is hard to predict the hostname is resolved into
  8568. which one.
  8569. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  8570. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8571. * po/Makefile.in: Removed since this is generated by configure.
  8572. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Fixed compiler warning about redefinition of SIZE_MAX.
  8574. Use common.h instead of config.h directly here.
  8575. * src/Platform.{h, cc}
  8576. The check of ENABLE_NLS is made in gettext.h, so it is not required
  8577. here.
  8578. * common.h
  8579. 2008-02-02 gettextize <[email protected]>
  8580. Updated gettext related files.
  8581. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  8582. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  8583. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Added DHT functionality, compatible with mainline.
  8585. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  8586. You may need to specify entry point to DHT network using
  8587. --dht-entry-point. DHT uses UDP port to listen incoming message.
  8588. Use --dht-listen-port to specify port number. Make sure that your
  8589. firewall configuration can pass through UDP traffic to the port.
  8590. The routing table is saved in $HOME/.aria2/dht.dat.
  8591. * src/DHT*
  8592. * src/BNode.{h, cc}
  8593. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  8594. particular torrent.
  8595. * src/Data.cc: Rewritten ctor.
  8596. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  8597. --dht-entry-point.
  8598. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  8599. * src/RequestGroup.cc: Initialize DHT functionality. When download
  8600. ends, remove BtContext from DHTPeerAnnounceStorage.
  8601. * src/BtPortMessage.{h, cc}: Rewritten.
  8602. * src/message.h
  8603. * src/OptionHandlerImpl.cc
  8604. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  8605. --dht-entry-point.
  8606. * src/Dictionary.{h, cc} (remove): New function.
  8607. * src/prefs.h
  8608. * src/DefaultBtMessageFactory.h
  8609. * src/BtHandshakeMessage.cc
  8610. * src/ActivePeerConnectionCommand.cc
  8611. * src/SocketCore.{h, cc}: Added datagram socket support.
  8612. * src/DefaultBtMessageFactory.cc
  8613. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  8614. Create DHT commands.
  8615. * src/BtMessageFactory.h
  8616. * src/PeerMessageUtil.{h, cc}
  8617. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8618. Fixed the bug that log file is not written when configuration file doesn't exist.
  8619. This is caused by using Logger class before LogFactory is not configured.
  8620. BUG #1875079
  8621. * src/option_processing.cc
  8622. Warning message "configuration doesn't exist" is only printed when --conf is
  8623. given.
  8624. * src/option_processing.cc
  8625. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  8627. ShaVisitor is now deprecated and slated to be removed.
  8628. * src/DefaultBtContext.cc
  8629. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Externalize message to message.h
  8631. * src/Platform.cc
  8632. * src/message.h
  8633. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8634. Set default domain and default path to cookie.
  8635. * src/HttpResponse.cc
  8636. * src/CookieBox.{h, cc}
  8637. * src/CookieParser.{h, cc}
  8638. * test/CookieParserTest.cc
  8639. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Added --no-conf and --conf-path command-line option.
  8641. --no-conf option disables loading aria2.conf file.
  8642. --conf-path option changes the configuration file path. The default
  8643. file path is $HOME/.aria2/aria2.conf
  8644. Added a warning message when the configuration file is not found.
  8645. * src/HelpItemFactory.cc
  8646. * src/option_processing.cc
  8647. * src/prefs.h
  8648. * src/usage_text.h
  8649. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Added the message to inform users that other help categories are
  8651. available in -h option.
  8652. * src/version_usage.cc
  8653. * src/TagContainer.{h, cc}
  8654. * test/TagContainerTest.cc
  8655. * src/TaggedItem.{h, cc}
  8656. * test/TaggedItemTest.cc
  8657. * src/HelpItem.h
  8658. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8659. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  8660. from PiecedSegment's ctor.
  8661. Previously Piece::getAllMissingBlockIndexes() is called from
  8662. PiecedSegment() but it is rather expensive since only first element is
  8663. used.
  8664. * src/PiecedSegment.cc
  8665. * src/Piece.{h, cc}
  8666. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. Rewritten get*Missing*Index functions. Now no need to allocate memory
  8668. each time these functions are called.
  8669. * src/BitfieldMan.{h, cc}
  8670. * test/BitfieldManTest.cc
  8671. * src/array_fun.h
  8672. * test/array_funTest.cc
  8673. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  8674. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  8675. filtered. Removed unnecessary cast to int32_t.
  8676. * src/BitfieldMan.{h, cc}
  8677. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  8679. payload length(4bytes) are received. This happens because lenbufLength
  8680. is not updated in this particular case and successive call of
  8681. receiveMessage() overwrites payload length with bytes recieved which
  8682. are payload body.
  8683. * src/PeerConnection.{h, cc}
  8684. * src/message.h
  8685. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8686. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  8687. peer if there are peers that have same ipaddr and port.
  8688. I've experiened segmentation fault and "pure virtual function was
  8689. called" error.
  8690. * src/Peer.h
  8691. * test/PeerTest.cc
  8692. * src/DefaultPeerStorage.cc
  8693. * test/DefaultPeerStorageTest.cc
  8694. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Removed a call to isPowerOf() because it is no longer necessary here
  8696. and a request block is not always power of 2.
  8697. BUG#1866924
  8698. * src/PeerMessageUtil.cc (checkLength)
  8699. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. Fixed the bug that always first found Segment is removed from
  8701. usedSegmentEntries. Removed unused functions.
  8702. * src/SegmentMan.{h, cc}
  8703. * test/SegmentManTest.cc
  8704. Fixed the bug that ServerHost is not removed.
  8705. * src/RequestGroup.cc
  8706. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8707. Fixed the bug that SegmentMan::completeSegment() is not called
  8708. even if Segment is complete when --lowest-speed-limit is enabled.
  8709. BUG#1864525
  8710. * src/DownloadCommand.{h, cc}
  8711. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. Fixed: hash algorithm 'sha1' is always used.
  8713. * src/DownloadCommand.cc (validatePieceHash)
  8714. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Added --enable-peer-exchange command-line option.
  8716. * src/OptionHandlerFactory.cc
  8717. * src/HelpItemFactory.cc
  8718. * src/option_processing.cc
  8719. * src/usage_text.h
  8720. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Move extension from BtRuntime to ExtensionMessageFactory, because
  8722. extension can be specified per peer, not per torrent.
  8723. * src/DefaultBtInteractive.cc
  8724. * src/BtRuntime.h
  8725. * src/ExtendedMessagingAware.h
  8726. * src/ExtensionMessageFactory.h
  8727. * src/DefaultExtensionMessageFactory.cc
  8728. * test/DefaultExtensionMessageFactoryTest.cc
  8729. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8730. Added categorized option help. Specify category using --help option.
  8731. Also added the ability to search options in forward match.
  8732. * src/HelpItem.{h, cc}
  8733. * test/HelpItemTest.cc
  8734. * src/HelpItemFactory.{h, cc}
  8735. * src/TagContainer.{h, cc}
  8736. * test/TagContainerTest.cc
  8737. * src/option_processing.cc
  8738. * src/prefs.h
  8739. * src/TaggedItem.{h, cc}
  8740. * test/TaggedItemTest.cc
  8741. * src/version_usage.cc
  8742. * src/help_tags.h
  8743. * src/usage_text.h
  8744. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8745. Fixed segmentation fault when bad torrent metainfo is parsed.
  8746. Added dynamic_cast properly to detect the misconfiguration of metainfo
  8747. and then throw exception or skip it.
  8748. * src/DefaultBtContext.{h, cc}
  8749. * test/DefaultBtContextTest.cc
  8750. * src/AnnounceList.cc
  8751. * src/CompactPeerListProcessor.cc
  8752. * src/message.h
  8753. * src/DefaultBtAnnounce.{h, cc}
  8754. * test/DefaultBtAnnounceTest.cc
  8755. * src/BencodeVisitor.cc
  8756. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Added missing "B"(=Byte). So now the message looks like this:
  8758. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  8759. * src/message.h (MSG_SHARE_RATIO_REPORT)
  8760. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8761. Show the seed ratio after torrent downloads.
  8762. For example, after torrent download completed and --seed-time and
  8763. --seed-ratio conditions are fulfilled, following message is printed
  8764. right after "Download complete: .....":
  8765. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  8766. * src/RequestGroupMan.cc
  8767. * src/RequestGroup.{h, cc}
  8768. * src/message.h
  8769. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8770. Remove a defunct control file. A defunct control file means that while
  8771. it exists, but the corresponding download file is missing.
  8772. After its removal, a download restarts from the beginning.
  8773. * src/RequestGroup.cc
  8774. * src/message.h
  8775. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Allocate bitfield in Peer when it is really used. More specifically,
  8777. bitfield in Peer is allocated after the connection is established and
  8778. deallocated when the connection is dropped.
  8779. Since 2 parameters(piece length and total length) was removed from the
  8780. constructor of Peer class, many test classes were modified accordingly.
  8781. See svn log for more detailed information.
  8782. * src/PeerInteractionCommand.cc
  8783. * src/CompactPeerListProcessor.cc
  8784. * src/Peer.cc
  8785. * src/DefaultPeerListProcessor.cc
  8786. * src/PeerListenCommand.cc
  8787. * src/PeerReceiveHandshakeCommand.cc
  8788. Fixed memory leak
  8789. * src/Piece.cc
  8790. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  8792. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  8793. command-line options.
  8794. * src/option_processing.cc
  8795. * src/ActivePeerConnectionCommand.cc
  8796. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Send have message to peer if it already has the piece.
  8798. * src/BtHaveMessage.{h, cc}
  8799. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8800. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  8801. port.
  8802. * src/DefaultPeerStorage.{h, cc}
  8803. * test/DefaultPeerStorageTest.cc
  8804. * src/HandshakeExtensionMessage.cc
  8805. * test/HandshakeExtensionMessageTest.cc
  8806. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  8807. * src/PeerStorage.h
  8808. * test/MockPeerStorage.h
  8809. * src/PeerListenCommand.cc
  8810. * src/PeerReceiveHandshakeCommand.cc
  8811. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8812. Added --metalink-enable-unique-protocol option.
  8813. * src/Metalink2RequestGroup.cc
  8814. * src/option_processing.cc
  8815. * src/prefs.h
  8816. * src/version_usage.cc
  8817. * doc/aria2c.1.txt
  8818. * doc/aria2c.1
  8819. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8820. Allow a peer in incomingPeer to be added peers.
  8821. * src/DefaultPeerStorage.cc
  8822. * test/DefaultPeerStorageTest.cc
  8823. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8824. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8825. I could reproduce this bug in following procedure:
  8826. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8827. 2. Restart aria2.
  8828. 3. You see the download stopped around 99%.
  8829. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8830. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8831. If timeout is reached, then _nextCommand is unused and it may contains
  8832. segments and they won't be canceled. Actually, timeout is not needed
  8833. here because if the server dropped connection, then retry is made.
  8834. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Added uTorrent compatible Peer Exchange.
  8836. * src/BencodeVisitor.{h, cc}
  8837. * test/BencodeVisitorTest.cc
  8838. * src/BtConstants.h
  8839. * src/BtContext.h: Added 'private' flag.
  8840. * src/BtExtendedMessage.{h, cc}
  8841. * test/BtExtendedMessageTest.cc
  8842. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8843. reserved field.
  8844. * test/BtHandshakeMessageTest.cc
  8845. * src/BtMessageFactory.h
  8846. * src/BtRegistry.h
  8847. * src/BtRuntime.h: This class holds default extension message IDs for
  8848. aria2. By default, aria2 uses ID 8 for ut_pex.
  8849. * src/DefaultBtContext.cc
  8850. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8851. When it is true, aria2 enables ut_pex. This value is set by
  8852. PeerInteractionCommand.
  8853. * src/DefaultBtMessageFactory.{h, cc}
  8854. * test/DefaultBtMessageFactoryTest.cc
  8855. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8856. handling to DefaultBtInteractive class.
  8857. * src/DefaultExtensionMessageFactory.{h, cc}
  8858. * test/DefaultExtensionMessageFactoryTest.cc
  8859. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8860. the container(peers and incomingPeers. The equality is determined by
  8861. Peer::id).
  8862. * test/DefaultPeerStorageTest.cc
  8863. * src/ExtensionMessage.h
  8864. * test/MockExtensionMessage.h
  8865. * src/ExtensionMessageFactory.h
  8866. * test/MockExtensionMessageFactory.h
  8867. * src/HandshakeExtensionMessage.{h, cc}
  8868. * test/HandshakeExtensionMessageTest.cc
  8869. * src/MetaEntry.h
  8870. * src/Peer.{h, cc}
  8871. * src/PeerInteractionCommand.cc
  8872. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8873. addIncomingPeer.
  8874. * src/PeerMessageUtil.{h, cc}
  8875. * src/PeerObject.h
  8876. * src/UTPexExtensionMessage.{h, cc}
  8877. * test/UTPexExtensionMessageTest.cc
  8878. * src/message.h
  8879. * src/prefs.h
  8880. Fixed the bug that returns incomplete data when it contains null
  8881. character. A convenient constructor was also added.
  8882. * src/Data.{h, cc}
  8883. Rewritten.
  8884. * src/CompactPeerListProcessor.cc
  8885. Fixed typos.
  8886. * src/message.h
  8887. * src/MetaFileUtil.cc
  8888. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Added "Status Legend" label to the explanation text of 'stat' in
  8890. download result and moved it to the last. BUG#1848214
  8891. * src/RequestGroupMan.cc
  8892. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8893. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8894. * src/Makefie.am
  8895. * test/Makefile.am
  8896. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Fixed the bug that prevents aria2 from loading cookie file when expire
  8898. value is greater than 2^31-1. BUG#1851066
  8899. * src/CookieBoxFactory.cc
  8900. * test/CookieBoxFactoryTest.cc
  8901. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8902. Fixed possible memory leak when an exception is thrown.
  8903. * src/XML2SAXMetalinkProcessor.cc
  8904. Added Expat support. If both libxml2 and Expat are installed, then
  8905. libxml2 is used by default.
  8906. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8907. ExpatMetalinkProcessor according to the configuration.
  8908. * src/ExpatMetalinkProcessor.{h, cc}
  8909. * src/main.cc: Removed libxml2 specific header and init/free function.
  8910. * src/MetalinkProcessorFactory.{h, cc}
  8911. * src/MetalinkHelper.cc
  8912. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8913. * src/MetalinkProcessor.h
  8914. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8915. MetalinkProcessorTest is used instead.
  8916. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8917. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8918. MetalinkProcessorFactory::newInstance().
  8919. * m4/libexpat.m4
  8920. * configure.ac: Added configuration options for libexpat.
  8921. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8922. Disabled -s option in metalink download.
  8923. * src/Metalink2RequestGroup.cc
  8924. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. If several protocols are available for a mirror in metalink file,
  8926. aria2 now use one of them. --metalink-preferred-protocol option was
  8927. added to specify the preference of protocol.
  8928. * src/AbstractCommand.cc
  8929. * src/OptionHandlerFactory.cc
  8930. * src/ServerHost.{h, cc}
  8931. * src/Metalink2RequestGroup.cc
  8932. * src/RequestGroup.{h, cc}
  8933. * test/RequestGroupTest.cc
  8934. * src/option_processing.cc
  8935. * src/prefs.h
  8936. * src/HttpResponseCommand.cc
  8937. * src/MetalinkResource.{h, cc}
  8938. * src/FtpNegotiationCommand.cc
  8939. * src/MetalinkEntry.{h, cc}
  8940. * src/MetalinkEntryTest.cc
  8941. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8942. Code cleanup and added debug log.
  8943. * src/PeerConnection.cc
  8944. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8945. Compiler error fix: applied the patch by Tiziano Mueller
  8946. * src/RequestGroup.cc
  8947. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8949. in stopped and completed event.
  8950. * src/AnnounceList.{h, cc}
  8951. * test/AnnounceListTest.cc
  8952. * src/DefaultBtAnnounce.cc
  8953. * test/DefaultBtAnnounceTest.cc
  8954. Sorted URLs.
  8955. * test/Metalink2RequestGroupTest.cc
  8956. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8957. Removed unnecessary string copy. Updated doc and corrected indentation.
  8958. * src/Base64.cc
  8959. Fixed compilation warnings
  8960. * test/DataTest.cc
  8961. * test/HttpRequestTest.cc
  8962. * test/MetaFileUtilTest.cc
  8963. * test/RequestTest.cc
  8964. * Release 0.12.0
  8965. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8966. Updated translations
  8967. * po/{de,fr,ja,nl,ru}.po
  8968. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8969. translations. Many thanks to translators.
  8970. * po/{ca,es,it,pt_BR,sv}.po
  8971. * po/LINGUAS
  8972. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Added a notice about URL
  8974. * src/version_usage.cc
  8975. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8976. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8977. aria2 repeatedly sends stopped request when tracker returns error code.
  8978. * src/AnnounceList.cc
  8979. * test/AnnounceListTest.cc
  8980. * src/AnnounceTier.h
  8981. Added a message when ctrl-c is hit.
  8982. Now second ctrl-c is also handled in signal handler.
  8983. * src/RequestGroupMan.{h, cc}
  8984. * src/RequestGroup.{h, cc}
  8985. * src/MultiUrlRequestInfo.cc
  8986. * src/DownloadEngine.cc
  8987. * src/TrackerWatcherCommand.cc
  8988. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8989. Code cleanup
  8990. * src/Base64.cc (encode)
  8991. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Changed Direct/IO enable/disable procesure in file allocation routine.
  8993. * src/SingleFileAllocationIterator.cc
  8994. (SingleFileAllocationIterator):
  8995. Disable directIO if offset is not multiple of 512.
  8996. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8997. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8998. Enable created SingleFileAllocationIterator's directIO.
  8999. * src/FileAllocationEntry.cc
  9000. (FileAllocationEntry): Enable directIO here.
  9001. (~FileAllocationEntry): Disable directIO here.
  9002. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9003. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  9004. * src/Peer.{h, cc}
  9005. * src/DefaultPieceStorage.cc
  9006. * test/DefaultPieceStorageTest.cc
  9007. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9008. Rewritten direct I/O support routine
  9009. * src/SingleFileAllocationIterator.cc
  9010. * src/MultiDiskAdaptor.{h, cc}
  9011. * src/ByteArrayDiskWriter.h
  9012. * src/AbstractSingleDiskAdaptor.h
  9013. * src/AbstractDiskWriter.cc
  9014. * src/DefaultPieceStorage.cc
  9015. * src/DiskWriter.h
  9016. * src/BinaryStream.h
  9017. * src/IteratableChunkChecksumValidator.cc
  9018. * src/IteratableChecksumValidator.cc
  9019. * src/CheckIntegrityEntry.cc
  9020. * src/FileAllocationEntry.cc
  9021. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9022. Fixed typo
  9023. * src/version_usage.cc
  9024. Updated doc
  9025. * doc/aria2c.1.txt
  9026. * doc/aria2c.1
  9027. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Fixed compile error without message digest support.
  9029. * src/FileMetalinkParserState.cc
  9030. * src/MetalinkParserController.{h, cc}
  9031. * test/XML2SAXMetalinkProcessorTest.cc
  9032. * test/MetalinkParserControllerTest.cc
  9033. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9034. Enable direct I/O support in checksum checking.
  9035. * src/IteratableChunkChecksumValidator.{h, cc}
  9036. * test/IteratableChunkChecksumValidatorTest.cc
  9037. * src/CheckIntegrityEntry.cc
  9038. * src/PieceHashCheckIntegrityEntry.cc
  9039. * src/IteratableChecksumValidator.{h, cc}
  9040. * src/BtCheckIntegrityEntry.cc: Added doc.
  9041. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9042. Added --allow-piece-length-change option.
  9043. * src/DefaultBtProgressInfoFile.cc
  9044. * test/DefaultBtProgressInfoFileTest.cc
  9045. * src/OptionHandlerFactory.cc
  9046. * src/option_processing.cc
  9047. * src/prefs.h
  9048. * src/version_usage.cc
  9049. * doc/aria2c.1.txt
  9050. * doc/aria2c.1
  9051. Fixed: duplicated result entry appears when exception is thrown in
  9052. RequestGroup::createInitiateConnectionCommand().
  9053. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  9054. Add RequestGroup to _requestGroup after RequetGroup::
  9055. createInitiateConnectionCommand() succeeds.
  9056. Externalized message
  9057. * src/XML2SAXMetalinkProcessor.cc
  9058. * src/message.h
  9059. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9060. Forced download abort when received negative response from http/ftp
  9061. server.
  9062. * src/HttpResponseCommand.cc
  9063. * src/FtpNegotiationCommand.cc
  9064. * src/HttpResponse.cc
  9065. * src/FtpConnection.cc
  9066. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  9068. the predecessor, Xml2MetalinkParser class.
  9069. I tested them against 94KB metalink file with 1234 chunk checksums.
  9070. The new one parsed it in 22msec, while it took 6000msec with old one.
  9071. * src/XML2SAXMetalinkProcessor.{h, cc}
  9072. * test/XML2SAXMetalinkProcessorTest.cc
  9073. * src/MetalinkParserController.{h, cc}
  9074. * test/MetalinkParserControllerTest.cc
  9075. * src/MetalinkParserState.h: Also added 16 subclasses.
  9076. * src/main.cc
  9077. * src/Metalink2RequestGroup.cc
  9078. * src/MetalinkHelper.cc
  9079. * src/MetalinkEntry.cc
  9080. * src/ChunkChecksum.h
  9081. Rewritten Base64 class for better performance.
  9082. * src/Base64.{h, cc}
  9083. * test/Base64Test.cc
  9084. * src/HttpRequest.cc
  9085. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Fixed the bug#1841757: aria2 will connect to server to only get
  9087. file size.
  9088. * src/StreamFileAllocationEntry.cc
  9089. * src/option_processing.cc
  9090. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  9091. downloads.
  9092. * src/FtpNegotiationCommand.cc
  9093. Suppressed wrong message when finding PreDownloadHandler
  9094. * src/RequestGroup.cc
  9095. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9096. Updated usage
  9097. * src/version_usage.cc
  9098. Updated man page
  9099. * doc/aria2c.1.txt
  9100. * doc/aria2c.1
  9101. Updated po files
  9102. * po/aria2c.pot
  9103. * po/*.po
  9104. * po/*.gmo
  9105. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Eliminated g++-4.2 warning
  9107. * src/DownloadHandlerConstants.{h, cc}
  9108. * src/Util.cc
  9109. * test/MetaFileUtilTest.cc
  9110. * test/PStringBuildVisitorTest.cc
  9111. Fixed bug: --check-integrity doesn't work for multi file torrent.
  9112. * src/RequestGroup.cc
  9113. * src/BtCheckIntegrityEntry.cc
  9114. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Fixed a2io.h
  9116. * src/a2io.h
  9117. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9118. Added direct I/O support. The current implementation uses O_DIRECT,
  9119. which is not posix standard and is tested on linux 2.6.21.
  9120. Currently only file allocation uses direct I/O.
  9121. * src/SingleFileAllocationIterator.{h, cc}
  9122. * test/SingleFileAllocationIteratorTest.cc
  9123. * src/MultiFileAllocationIterator.{h, cc}
  9124. * test/MultiFileAllocationIteratorTest.cc
  9125. * src/BinaryStream.h
  9126. * src/DiskWriter.h
  9127. * src/AbstractDiskWriter.{h, cc}
  9128. * src/ByteArrayDiskWriter.h
  9129. * src/DiskAdaptor.h
  9130. * src/AbstractSingleDiskAdaptor.{h, cc}
  9131. * src/MultiDiskAdaptor.{h, cc}
  9132. * src/FileAllocationEntry.cc
  9133. * src/Util.{h, cc}
  9134. * src/OptionHandlerFactory.cc
  9135. * src/prefs.h
  9136. * src/version_usage.cc
  9137. * src/option_processing.cc
  9138. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  9139. handleException.
  9140. * src/MultiFileAllocationIterator.cc
  9141. Added EINTR handling
  9142. * src/SocketCore.cc
  9143. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. Updated usage
  9145. * src/version_usage.cc
  9146. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9147. Applied Ross's patch for MinGW port.
  9148. * src/DownloadEngine.h
  9149. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9150. Set Content-Type to SingleFileDownloadContext when http response is
  9151. received.
  9152. * src/HttpResponseCommand.cc
  9153. * src/HttpResponse.{h, cc}
  9154. * test/HttpResponseTest.cc
  9155. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Rewritten to add content-type support.
  9157. * src/DownloadHandler.{h, cc}
  9158. * src/BtPostDownloadHandler.{h, cc}
  9159. * test/BtPostDownloadHandlerTest.cc
  9160. * src/MetalinkPostDownloadHandler.{h, cc}
  9161. * test/MetalinkPostDownloadHandlerTest.cc
  9162. * src/PostDownloadHandler.{h, cc}
  9163. * src/DownloadHandlerConstants.{h, cc}
  9164. * src/RequestGroup.cc
  9165. * src/HttpResponseCommand.cc
  9166. * src/FtpNegotiationCommand.cc
  9167. * src/SingleFileDownloadContext.{h, cc}
  9168. * src/RequestGroup.h
  9169. * src/RequestGroupCriteria.h
  9170. * src/ContentTypeRequestGroupCriteria.h
  9171. Added 'mem' option value for --follow-metalink, --follow-torrent.
  9172. If it is give, metalink/torrent file is not written to the disk, but
  9173. just is kept in memory. Parsing is occurred on memory.
  9174. * src/MetalinkHelper.{h, cc}
  9175. * src/MetalinkProcessor.h
  9176. * src/Xml2MetalinkProcessor.{h, cc}
  9177. * test/Xml2MetalinkProcessorTest.cc
  9178. * src/DownloadHandlerFactory.{h, cc}
  9179. * test/DownloadHandlerFactoryTest.cc
  9180. * src/PreDownloadHandler.{h, cc}
  9181. * src/OptionHandlerFactory.cc
  9182. * src/DefaultBtContext.{h, cc}
  9183. * test/DefaultBtContextTest.cc
  9184. * src/version_usage.cc
  9185. * src/Metalink2RequestGroup.{h, cc}
  9186. * src/RequestGroup.{h, cc}
  9187. * src/a2functional.h
  9188. * test/a2functionalTest.cc
  9189. * src/MemoryBufferPreDownloadHandler.{h, cc}
  9190. * src/OptionHandlerImpl.h
  9191. * src/prefs.h
  9192. * src/Util.{h, cc}
  9193. * test/UtilTest.cc
  9194. Keep DownloadResult rather than RequestGroup after downloads to reduce
  9195. memory usage.
  9196. * src/RequestGroupMan.{h, cc}
  9197. * src/DownloadEngine.cc
  9198. * src/BtDependency.{h, cc}: Changed the type of dependee from
  9199. WeakHandle to SharedHandle because WeakHandle could be null.
  9200. * src/RequestGroup.{h, cc}
  9201. * src/DownloadEngineFactory.cc
  9202. * src/DownloadResult.h
  9203. Set totalLength after download finished
  9204. * src/UnknownLengthPieceStorage.{h, cc}
  9205. Keep torrent file specified in metalink in memory.
  9206. * src/Metalink2RequestGroup.cc
  9207. * src/BtDependency.cc
  9208. * src/TrueRequestGroupCriteria.h
  9209. Fixed the bug: seekg is used where seekp should be used.
  9210. * src/ByteArrayDiskWriter.cc
  9211. * test/ByteArraydiskWriterTest.cc
  9212. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9213. Fixed syntax error
  9214. * test/SequenceTest.cc
  9215. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9216. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9217. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  9218. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  9219. * src/RequestGroup.cc (downloadFinishedByFileLength)
  9220. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9221. Added the check to see whether ares_host_callback accepts timeouts
  9222. with c-ares; only c-ares 1.5.0 or newer accepts it.
  9223. * src/NameResolver.{h, cc}
  9224. * m4/libcares.m4
  9225. * configure.ac: Set C++ for language choice.
  9226. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Fixed: compilation fails without c-ares/ares
  9228. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  9229. Generate http/ftp commands only when download is incomplete.
  9230. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  9231. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Corrected typo. Examples are removed since they are available in man
  9233. page.
  9234. * src/version_usage.cc
  9235. Updated man page.
  9236. * doc/aria2c.1
  9237. * doc/aria2c.1.txt
  9238. * doc/makeman: Commented out sed command.
  9239. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9240. Throw DlAbortEx when a remote file is not found.
  9241. * src/HttpResponse.cc
  9242. * src/FtpNegotiationCommand.cc
  9243. * src/message.h
  9244. Overwrite an existing file if --allow-overwrite=true is given.
  9245. * src/RequestGroup.cc
  9246. Removed unused functions
  9247. * src/AbstractCommand.h
  9248. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9249. Removed 'extern' from 'extern typedef ...' in src/*.h
  9250. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Updated usage
  9252. * src/version_usage.cc
  9253. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. Trim announce URL
  9255. * src/DefaultBtContext.cc
  9256. * test/ShaVisitorTest.cc
  9257. Trim argument s. Give trimed s to exception constructor.
  9258. * src/Util.cc (parseInt)(parseLLInt)
  9259. * test/UtilTest.cc
  9260. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Set precision back to 1.
  9262. * src/ConsoleStatCalc.cc (calculateStat)
  9263. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Replaced strtol with Util::parseInt
  9265. * src/ChunkedEncoding.cc
  9266. * src/HttpConnection.cc
  9267. * src/CookieBoxFactory.cc
  9268. * src/ParameterizedStringParser.cc
  9269. * src/Util.cc
  9270. * test/UtilTest.cc
  9271. * test/OptionHandlerTest.cc
  9272. * src/Request.cc
  9273. Throw exception when empty string is given. The message for exception
  9274. changed.
  9275. * src/Util.cc (parseInt)(parseLLInt)
  9276. * src/message.h
  9277. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9278. Set precision to 2 because share ratio is rounded into 1.0 if precision
  9279. set to 1.
  9280. * src/ConsoleStatCalc.cc (calculateStat)
  9281. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9282. Preallocate non-requested file which is adjacent forward to requested
  9283. file('requested' files means the files given in --select-file option)
  9284. if they share a same piece.
  9285. This fixes long pause in the file system which doesn't support sparse
  9286. files like FAT32 while downloading.
  9287. * src/MultiFileAllocationIterator.{h, cc}
  9288. * test/MultiFileAllocationIteratorTest.cc
  9289. * src/FileEntry.{h, cc}
  9290. Removed unused _option.
  9291. * src/MultiDiskAdaptor.h
  9292. * test/MultiDiskAdaptorTest.cc
  9293. * src/DefaultPieceStorage.cc
  9294. Set the default value of --seed-ratio to 1.0.
  9295. If 0.0 is given, then seeding continues regardless of share ratio.
  9296. * src/version_usage.cc
  9297. * src/option_processing.cc
  9298. * src/BtSetup.cc
  9299. * doc/aria2c.1.txt
  9300. * doc/aria2c.1
  9301. Fixed: Selective download is not working in BitTorrent
  9302. * src/RequestGroup.cc
  9303. Introduced Sequence class. Use this instead of Util::unfoldRange()
  9304. * src/PieceStorage.h
  9305. * test/MockPieceStorage.h
  9306. * src/UnknownLengthPieceStorage.h
  9307. * src/DefaultPieceStorage.{h, cc}
  9308. * src/Metalink2RequestGroup.cc
  9309. * src/RequestGroup.cc
  9310. * src/Sequence.h
  9311. * test/SequenceTest.cc
  9312. * src/IntSequence.h
  9313. * src/message.h
  9314. * src/Util.{h, cc}
  9315. * test/UtilTest.cc
  9316. Added new function 'parse' to catch exception thrown by subclass's
  9317. parseArg
  9318. * src/OptionHandler.h
  9319. * src/OptionParser.cc
  9320. * src/NameMatchOptionHandler.h
  9321. * src/OptionHandlerImpl.h
  9322. * test/OptionHandlerTest.cc
  9323. Added IntegerRangeOptionHandler. Used for --listen-port and
  9324. --select-file. Now --listen-port accepts range of port.
  9325. * src/OptionHandlerFactory.cc
  9326. * src/version_usage.cc
  9327. * src/OptionHandlerImpl.h
  9328. * src/option_processing.cc
  9329. * src/BtSetup.cc
  9330. * src/PeerListenCommand.{h, cc}
  9331. * doc/aria2c.1.txt
  9332. * doc/aria2c.1
  9333. Implemented operator< for Exception class to provide easy way to print
  9334. exception stack trace.
  9335. * src/Exception.{h, cc}
  9336. * src/main.cc
  9337. * src/option_processing.cc
  9338. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. * src/version_usage.cc
  9340. (showVersion): Reworked.
  9341. (showUsage): Added examples.
  9342. Removed Hint for total length and file name.
  9343. * src/Metalink2RequestGroup.cc
  9344. * src/RequestGroup.{h, cc}
  9345. * src/HttpResponseCommand.cc
  9346. * src/FtpNegotiationCommand.cc
  9347. Now --follow-torrent and --follow-metalink option work properly.
  9348. * src/RequestGroup.cc
  9349. Updated man page
  9350. * doc/aria2c.1.txt
  9351. * doc/aria2c.1
  9352. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9353. Removed.
  9354. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  9355. Use Segment::operator==()
  9356. * src/HttpConnection.cc
  9357. * src/Segment.h
  9358. Updated usage
  9359. * src/version_usage.cc
  9360. Added EINTR treatment.
  9361. * src/SocketCore.cc
  9362. * src/AbstractDiskWriter.cc
  9363. Rewritten.
  9364. * src/Util.cc (rangedFileCopy)
  9365. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9366. Fixed typo.
  9367. * src/version_usage.cc
  9368. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Implemented. Now -c option works fine.
  9370. * src/DefaultPieceStorage.cc (markPiecesDone)
  9371. * test/DefaultPieceStorageTest.cc
  9372. Removed.
  9373. * src/SegmentMan.{h, cc}
  9374. (markAllPiecesDone)
  9375. (markPieceDone)
  9376. Synchronized po files with
  9377. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  9378. * src/fr.po
  9379. * src/ru.po
  9380. * src/de.po
  9381. * src/ja.po
  9382. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9383. Added ifdef and some modifications to compile without BitTorrent,
  9384. Metalink, MessageDigest
  9385. support.
  9386. * src/PieceHashCheckIntegrityEntry.cc
  9387. * src/MetalinkEntry.h
  9388. * src/version_usage.cc
  9389. * src/main.cc
  9390. * src/DownloadEngine.{h, cc}
  9391. * src/Metalink2RequestGroup.cc
  9392. * src/Peer.cc
  9393. * src/RequestGroup.cc
  9394. * src/MetalinkHelper.cc
  9395. * test/DefaultPieceStorageTest.cc
  9396. * test/MetalinkPostDownloadHandlerTest.cc
  9397. * test/Metalink2RequestGroupTest.cc
  9398. Hide TOTAL SPD when all downloads complete.
  9399. * src/ConsoleStatCalc.cc
  9400. Log target system information.
  9401. * src/main.cc
  9402. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. Now --metalink-location accepts a comma-deliminated list of locations.
  9404. * src/MetalinkEntry.{h, cc}
  9405. * test/MetalinkEntryTest.cc
  9406. * src/version_usage.cc
  9407. * src/Metalink2RequestGroup.cc
  9408. * src/Xml2MetalinkProcessor.cc
  9409. * test/Xml2MetalinkProcessorTest.cc
  9410. * doc/aria2c.1.txt
  9411. * doc/aria2c.1
  9412. * src/Util.cc (toUpper)(toLower): Rewritten.
  9413. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9414. Added the ability to detect duplicate download entry which is about to
  9415. download the same file other RequestGroup is downloading.
  9416. * src/RequestGroup.cc
  9417. * src/HttpResponseCommand.cc
  9418. * src/FtpNegotiationCommand.cc
  9419. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9420. Recalculates download progress when loading a control file,
  9421. if the piece length of DownloadContext is different from the one saved
  9422. in the control file. Currently in-flight pieces are ignored.
  9423. * src/DefaultBtProgressInfoFile.cc
  9424. * test/DefaultBtProgressInfoFileTest.cc
  9425. * src/Util.{h, cc}
  9426. * test/UtilTest.cc
  9427. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9428. Do not rotate tiers in announce-list.
  9429. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  9430. AnnounceList::allTiersFailed() used instead to detect whether all
  9431. tiers are tried and failed.
  9432. * test/DefaultBtAnnounceTest.cc
  9433. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  9434. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  9435. * test/AnnounceListTest.cc
  9436. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  9437. clause. Catch RecoverableException instead of DlRetryEx instead.
  9438. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9439. Implemented checksum validation feature(1 checksum for each file)
  9440. The validation takes place after the download.
  9441. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  9442. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  9443. * src/CheckIntegrityCommand.cc: Changed log message.
  9444. * src/Metalink2RequestGroup.cc: Set checksum to
  9445. SingleFileDownloadContext.
  9446. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  9447. PieceHashCheckIntegrity class.
  9448. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  9449. PieceHashCheckIntegrity class.
  9450. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  9451. * src/IteratableValidator.h: New class.
  9452. * src/message.h
  9453. * src/CheckIntegrityEntry.{h, cc}
  9454. * src/IteratableChunkChecksumValidator.{h, cc}
  9455. * src/SingleFileDownloadContext.h
  9456. * src/DownloadCommand.cc
  9457. --allow-overwrite=true is no longer needed to check file integrity
  9458. before download in BitTorrent download.
  9459. * src/RequestGroup.cc (getInitialCommand)
  9460. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  9461. throws exception.
  9462. * src/RequestGroupMan.cc (getInitialCommands)
  9463. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. urlencode the given url inside Request::parseUrl(...)
  9465. * src/Request.{h, cc}
  9466. * src/Util.{h, cc}
  9467. * test/RequestTest.cc
  9468. Removed #!metalink3! notation support because it is deleted from
  9469. the metalink specification.
  9470. * src/Request.{h, cc}
  9471. * test/RequestTest.cc
  9472. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9473. Don't connect server before checking file integrity at startup, if
  9474. filesize and output file path are known.
  9475. * src/AbstractCommand.cc
  9476. * src/StreamFileAllocationEntry.cc
  9477. * src/Metalink2RequestGroup.cc
  9478. * src/RequestGroup.{h, cc}
  9479. * src/HttpResponseCommand.cc
  9480. * src/FtpNegotiationCommand.cc
  9481. Added DownloadFailureException. If it is thrown, RequestGroup should
  9482. halt.
  9483. * src/AbstractCommand.cc
  9484. * src/DownloadFailureException.h
  9485. * src/RequestGroup.cc
  9486. Catch RecoverableException, instead of DlAbortEx.
  9487. * src/RequestGroupMan.cc
  9488. * src/FillRequestGroupCommand.cc
  9489. * src/MetaFileUtil.cc
  9490. * src/IteratableChunkChecksumValidator.cc
  9491. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  9492. getGID())
  9493. * src/CheckIntegrityCommand.cc
  9494. * src/message.h
  9495. Print gid instead of idx.
  9496. * src/RequestGroupMan.cc
  9497. Removed exception throwers declaration.
  9498. * src/DirectDiskAdaptor.{h, cc}
  9499. * src/SocketCore.{h, cc}
  9500. * src/MultiDiskAdaptor.{h, cc}
  9501. * src/HttpConnection.{h, cc}
  9502. * src/HttpResponse.{h, cc}
  9503. * src/DiskAdaptor.{h, cc}
  9504. * src/CopyDiskAdaptor.{h, cc}
  9505. * src/MultiDiskAdaptor.{h, cc}
  9506. * src/HttpHeaderProcessor.{h, cc}
  9507. * src/AbstractSingleDiskAdaptor.{h, cc}
  9508. * src/Util.{h, cc}
  9509. * test/UtilTest.cc
  9510. * src/DefaultDiskWriter.{h, cc}
  9511. * src/FtpConnection.{h, cc}
  9512. * src/AbstractDiskWriter.{h, cc}
  9513. Removed duplicate code.
  9514. * src/StreamCheckIntegrityEntry.cc
  9515. Removed unnecessary include.
  9516. * src/DiskWriter.h
  9517. Included Exception.h
  9518. * src/option_processing.cc
  9519. Included 2 files and added doc
  9520. * src/TrackerWatcherCommand.cc
  9521. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  9522. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Changed CheckIntegrityEntry interface so that it can define
  9524. the action when all the chunk checksums are valid.
  9525. * src/CheckIntegrityEntry.h
  9526. * src/StreamCheckIntegrityEntry.{h, cc}
  9527. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  9528. are valid, then aira2 goes to seeding mode. Sometimes it is better
  9529. to exit rather than doing seeding. So, it would be good to toggle this
  9530. behavior.
  9531. * src/CheckIntegrityCommand.cc
  9532. * src/AbstractCommand.cc
  9533. * src/RequestGroup.cc
  9534. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Reflect the download length of in-flight pieces.
  9536. It makes the download length readout more precise.
  9537. * src/DefaultPieceStorage.{h, cc}
  9538. * test/DefaultPieceStorageTest.cc
  9539. * src/a2functional.h
  9540. * test/a2functionalTest.cc
  9541. Lower CPU load when --max-download-limit is used.
  9542. There is up and down in speed indicator when enabling
  9543. http-pipelining but a download goes well. I think the problem is that
  9544. because http-pipelining is enabled, DownloadCommand is created for
  9545. each segment and in its constructor, PeerStat::downloadStart() is
  9546. called. In PeerStat::downloadStart(), speed calculation object is
  9547. reseted, which makes download speed zero.
  9548. * src/DownloadCommand.cc
  9549. Rewritten using accumulate.
  9550. * src/RequestGroupMan.cc (calculateStat)
  9551. Code clearnup.
  9552. * src/FtpNegotiationCommand.cc
  9553. * src/HttpResponseCommand.cc
  9554. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. Fixed: Can not resume: aria2 reports download already finished.
  9556. * src/AbstractCommand.{h, cc}
  9557. * src/HttpResponseCommand.cc
  9558. * src/FtpNegotiateCommand.cc
  9559. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9560. Now a file is stored in the directory specified in .metalnk file
  9561. (file[@name]).
  9562. * src/Metalink2RequestGroup.cc
  9563. Create the directory structure when opening the file if it doesn't
  9564. exist.
  9565. * src/AbstractDiskWriter.cc
  9566. * src/Util.{h, cc}
  9567. * src/File.h
  9568. * test/UtilTest.cc
  9569. Removed file name comparison
  9570. * src/Metalink2RequestGroup.cc
  9571. * src/HttpResponseCommand.cc
  9572. Rewritten using Util::mkdirs()
  9573. * src/FileEntry.cc (setupDir)
  9574. * test/FileEntryTest.cc
  9575. Updated doc
  9576. * src/SingleFileDownloadContext.h
  9577. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9578. Now SleepCommand dispatches nextCommand when halt is requested.
  9579. It avoids a possible long wait after hitting CTRL-C.
  9580. * src/SleepCommand.{h, cc}
  9581. * src/RequestGroupAware.{h, cc}
  9582. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9583. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  9584. to open listen port, then remove the port number from the tracker
  9585. request.
  9586. * src/DefaultBtAnnounce.cc
  9587. * test/DefaultBtAnnounceTest.cc
  9588. * test/MockPieceStorage.h
  9589. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  9590. them more testable.
  9591. * src/DefaultBtAnnounce.{h, cc}
  9592. * src/DefaultBtContext.{h, cc}
  9593. * src/Util.{h, cc}
  9594. * test/DefaultBtAnnounceTest.cc
  9595. * test/DefaultBtContextTest.cc
  9596. * test/UtilTest.cc
  9597. Added 'B' to upload bytes readout.
  9598. * src/ConsoleStatCalc.cc
  9599. Now the listen port for BitTorrent download is opened when it is
  9600. needed.
  9601. * src/DownloadEngineFactory.cc
  9602. * src/BtSetup.{h, cc}
  9603. * src/PeerListenCommand.{h, cc}
  9604. Now an exception thrown while parsing tracker response is now logged.
  9605. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  9606. called, which means no retry is made in this case, assuming a tracker
  9607. has a problem.
  9608. * src/TrackerWatcherCommand.cc
  9609. Fixed: downloading a file whose length is unkown fails.
  9610. * src/DownloadCommand.cc
  9611. Simplified prepareForNextSegment()
  9612. * src/DownloadCommand.cc
  9613. Updated
  9614. * po/POTFILES.in
  9615. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9616. Re-implemented a file listing for Metalink, which was dropped while
  9617. http/ftp/torrent integration was being implemented.
  9618. * src/MetalinkHelper.{h, cc}: New class.
  9619. * test/MetalinkHelperTest.cc
  9620. * src/main.cc
  9621. * src/Metalink2RequestGroup.cc
  9622. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9623. Added the ability to display the detailed torrent file information.
  9624. Now -S option gives not only a file listing, but also total download
  9625. length, info hash, announce URI, piece length, the number of pieces,
  9626. and mode(single or multi-torrent).
  9627. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  9628. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  9629. KiB)
  9630. * test/UtilTest.cc
  9631. * src/main.cc
  9632. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9633. Added ftp://USER:PASSWD@Servername automatic parsing.
  9634. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  9635. _password. Recognize username and password in URI.
  9636. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  9637. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  9638. * src/RequestFactory.{h, cc}: Removed.
  9639. * src/AuthConfigFactory.{h, cc}: New class.
  9640. * src/FtpConnection.cc: Use AuthConfigFactory.
  9641. * src/HttpRequest.cc: Use AuthConfigFactory.
  9642. * test/HttpRequestTest.cc: Updated.
  9643. * test/RequestTest.cc: Updated.
  9644. * test/AuthConfigFactoryTest.cc: New class.
  9645. * test/RequestFactoryTest.cc: Removed.
  9646. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9647. Use RequestGroup::allDownloadFinished() to decide whether the control
  9648. file should be removed or saved.
  9649. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  9650. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  9651. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9652. Use File::renameTo()
  9653. * src/DefaultBtProgressInfoFile.cc
  9654. Added --no-file-allocation-limit command-line option.
  9655. * src/version_usage.cc
  9656. * src/option_processing.cc
  9657. * src/OptionHandlerFactory.cc
  9658. * src/RequestGroup.{h, cc}
  9659. * src/BtCheckIntegrityEntry.cc
  9660. * src/StreamCheckIntegrityEntry.cc
  9661. * src/prefs.h
  9662. * doc/aria2c.1.txt
  9663. * doc/aria2c.1
  9664. Now prealloc is the default value for --file-allocation option.
  9665. * src/version_usage.cc
  9666. * src/option_processing.cc
  9667. * doc/aria2c.1.txt
  9668. * doc/aria2c.1
  9669. Don't URL-encode user-agent.
  9670. * src/HttpRequest.cc
  9671. Updated translations
  9672. * po/LINGUAS: Added nl for Dutch translation.
  9673. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  9674. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  9675. * po/POTFILES.in: Updated.
  9676. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9677. Added the ability to recognize url-list in a torrent file.
  9678. The retrieved URLs are attached to the corresponding FileEntry.
  9679. * src/DefaultBtContext.{h, cc}
  9680. * src/FileEntry.{h, cc}
  9681. * test/DefaultBtContextTest.cc
  9682. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9683. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  9684. after the download finishes.
  9685. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9686. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  9687. the data smaller than block length.
  9688. A block length can be specified by constructor's argument.
  9689. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  9690. Get a missing piece in the range of given FileEntry. This function is
  9691. not used in the program yet.
  9692. * src/Util.h: Added some macros.
  9693. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9694. Added HTTP/1.1 keep alive and pipelining support.
  9695. See --enable-http-keep-alive and --enable-http-pipelining option.
  9696. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  9697. Segment.
  9698. * src/HttpDownloadCommand.{h, cc}
  9699. * src/OptionHandlerFactory.cc
  9700. * src/HttpConnection.{h, cc}
  9701. * src/version_usage.cc
  9702. * src/HttpInitiateConnectionCommand.cc
  9703. * src/FtpInitiateConnectionCommand.cc
  9704. * src/Segment.h
  9705. * src/HttpRequestCommand.{h, cc}
  9706. * src/option_processing.cc
  9707. * src/prefs.h
  9708. * src/HttpResponseCommand.cc
  9709. * src/SegmentMan.{h, cc}
  9710. * src/FtpNegotiateCommand.cc
  9711. * src/HttpProxyResponseCommand.cc
  9712. * src/Request.cc
  9713. * src/HttpRequest.cc
  9714. * src/DownloadCommand.cc
  9715. * test/HttpRequestTest.cc
  9716. * test/RequestTest.cc
  9717. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9718. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  9719. finished.
  9720. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  9722. catching it inside the method.
  9723. When no file entry is found in a metalink without querying user
  9724. preferences, throw the exception with the error message that suggests
  9725. metalink file is probably broken.
  9726. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  9727. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9728. Fixed the bug that prevents remote Metalink/Torrent file from begin
  9729. processed.
  9730. * src/RequestGroupMan.cc (removeStoppedGroup)
  9731. Added debug message.
  9732. * src/BtPostDownloadHandler.cc
  9733. * src/MetalinkPostDownloadHandler.cc
  9734. * src/PostDownloadHandler.{h, cc}
  9735. * src/RequestGroup.cc
  9736. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9737. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  9738. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9739. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  9740. stops and there are any unfinished or in-progress downloads.
  9741. Added the legend of "stat".
  9742. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Throw exception when chunck checksum verification fails.
  9744. * src/DownloadCommand.cc (validatePieceHash): New function.
  9745. * src/PiecedSegment.{h, cc} (clear): New function.
  9746. * src/GrowSegment.{h, cc} (clear): New function.
  9747. * src/Segment.h (clear): New function.
  9748. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  9749. * test/SegmentTest.cc
  9750. * test/GrowSegmentTest.cc
  9751. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Do not send referer when redirected.
  9753. * src/Request.cc (redirectUrl)
  9754. * test/RequestTest.cc
  9755. * test/HttpRequestTest.cc
  9756. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9757. Implemented BitTorrent/http/ftp integrated download.
  9758. I've rewritten lots of files and now some headers have forward
  9759. class declarations to reduce compile time.
  9760. The implementation is extremely alpha stage, I recommend to use this
  9761. for testing purpose only.
  9762. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. Fixed the compilation error on 64bit platform.
  9764. * test/HttpHeaderProcessorTest.cc
  9765. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9766. Merged Ross's patch that fixes compilation problem in MinGW
  9767. * test/DefaultBtProgressInfoFileTest.cc
  9768. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Updated fr.po by sebone
  9770. * po/fr.po
  9771. Updated man page.
  9772. * doc/aria2c.1.txt
  9773. * Release 0.11.3
  9774. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9775. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  9776. failure in Metalink.
  9777. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9778. Automatically save *.aria2 control file of http/ftp download in every
  9779. 60 seconds.
  9780. * src/AutoSaveCommand.{h, cc}: New class.
  9781. * src/TimeBasedCommand.{h, cc}: New class.
  9782. * src/DownloadEngineFactory.cc (newConsoleEngine)
  9783. Disable parameterized URI support by default. Added -P option to
  9784. enable the feature.
  9785. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  9786. * src/OptionHandlerFactory.cc
  9787. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  9788. Updated Japanese translation.
  9789. * po/ja.po
  9790. Updated man page.
  9791. * doc/aria2c.1.txt
  9792. * Release 0.11.3-rc
  9793. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9794. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  9795. it is successful, then renamed to *.aria2.
  9796. This prevents *.aria2 file from being truncated or corrupted when
  9797. file system becomes out of space.
  9798. * src/DefaultBtProgressInfoFile.cc (save)
  9799. * src/SegmentMan.cc (save)
  9800. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  9801. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9802. Reduced the fragmentation of bitfield in http/ftp download.
  9803. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  9804. * test/BitfieldManTest.cc
  9805. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9806. Added the ability to disable segmented download in .metalink.
  9807. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  9808. 'url' tag.
  9809. * src/MetalinkEntry.{h, cc}
  9810. * src/RequestResource.{h, cc}
  9811. * src/MetalinkRequestInfo.cc
  9812. * src/Xml2MetalinkProcessor.cc
  9813. * test/Xml2MetalinkProcessorTest.cc
  9814. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9815. Added parameterized URI support.
  9816. * src/main.cc: -Z option added.
  9817. * src/OptionHandlerFactory.cc
  9818. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  9819. * src/PStringDatum.h: New class.
  9820. * src/PStringSegment.{h,cc}: New class.
  9821. * src/PStringNumLoop.h: New class.
  9822. * src/PStringSelect.h: New class.
  9823. * src/NumberDecorator.h: New class.
  9824. * src/FixedWidthNumberDecorator.h: New class.
  9825. * src/AlphaNumberDecorator.h: New class.
  9826. * src/PStringVisitor.h: New class.
  9827. * src/PStringBuildVisitor.{h,cc}: New class.
  9828. * src/ParameterizedStringParser.{h,cc}: New class.
  9829. * src/Util.{h,cc}
  9830. (isNumber): New function.
  9831. (isLowercase): New function.
  9832. (isUppercase): New function.
  9833. (alphaToNum): New function.
  9834. * test/ParameterizedStringParserTest.cc: New class.
  9835. * test/AlphaNumberDecoratorTest.cc: New class.
  9836. * test/PStringBuildVisitorTest.cc: New class.
  9837. * test/UtilTest.cc
  9838. (testIsNumber): New function.
  9839. (testIsLowercase): New function.
  9840. (testIsUppercase): New function.
  9841. (testAlphaToNum): New function.
  9842. Added '\n' after the error message
  9843. * src/RequestInfo.h (printDownloadAbortMessage)
  9844. Added auto file renaming feature in http(s)/ftp download.
  9845. * src/main.cc: Added --auto-file-renaming command-line option.
  9846. * src/OptionHandlerFactory.cc
  9847. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9848. * src/RequestGroup.{h, cc}
  9849. (shouldCancelDownloadForSafety): Rewritten
  9850. (tryAutoFileRenaming): New function.
  9851. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9852. * src/HttpResponseCommand.cc
  9853. (executeInternal): Removed the call to RequestGroupMan::
  9854. isSameFileBeingDownloaded()
  9855. * src/FtpNegotiateCommand.cc
  9856. (recvSize): Removed the call to RequestGroupMan::
  9857. isSameFileBeingDownloaded()
  9858. * test/RequestGroupTest.cc: New class.
  9859. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9860. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9861. IO.
  9862. * src/DefaultBtProgressInfoFile.cc
  9863. * src/MetaFileUtil.cc
  9864. * src/SimpleLogger.cc
  9865. * src/SegmentMan.cc
  9866. * src/Util.cc
  9867. * src/Platform.cc
  9868. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9869. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9870. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9871. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9872. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9873. Fixed the bug that prevents file allocation is not done when
  9874. dowloading multi-torrent file.
  9875. * src/AbstractDiskWriter.cc (openFile)
  9876. Increase the maximum number of -j option from 15 to 45.
  9877. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9878. Added fr.po, thanks to Charles Landemaine.
  9879. * po/fr.po
  9880. * po/LINGUAS
  9881. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9882. gcc 3.4.4 support:
  9883. * src/DefaultBtContext.cc: int32_t -> int
  9884. * src/main.cc: int -> int32_t, int32_t -> int
  9885. * src/messageDigest.h: uint32_t -> unsigned int
  9886. * src/NameResolver.h: int32_t -> int
  9887. * src/PeerConnection.cc: int -> int32_t
  9888. * src/SpeedCalc.cc: int32_t -> int
  9889. * src/TrackerUpdateCommand.h: int -> int32_t
  9890. * src/Util.cc: int32_t -> int
  9891. * src/Util.h: int32_t -> int
  9892. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9893. * test/AnnounceListTest.cc: int -> int32_t
  9894. * test/ChunkedEncodingTest.cc: int -> int32_t
  9895. * test/DataTest.cc: int -> int32_t
  9896. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9897. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9898. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9899. * test/FeatureConfigTest.cc: int -> int32_t
  9900. * test/MetalinkEntryTest.cc: int -> int32_t
  9901. * test/MockBtRequestFactory.h: int -> int32_t
  9902. * test/MockPieceStorage.h: int -> int32_t
  9903. * test/OptionTest.cc: int -> int32_t
  9904. * test/RequestTest.cc: int -> int32_t
  9905. * test/SegmentManTest.cc: int -> int32_t
  9906. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9907. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9908. Move sleep functions to Util class:
  9909. * src/Util.cc
  9910. (sleep): New function.
  9911. (usleep): New function.
  9912. * src/DownloadCommand.cc: sleep -> Util::sleep
  9913. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9914. MinGW build enhancements. The following files are added:
  9915. * src/timegm.{c,h}
  9916. Changes to support the above new files:
  9917. * configure.ac
  9918. * src/Makefile.am
  9919. * src/a2time.h
  9920. * src/Util.cc:
  9921. * src/strptime.c: Added support for %Z option.
  9922. Fixed MinGW non-blocking bug.
  9923. * src/SocketCore.cc
  9924. * src/HttpRequestCommand.cc
  9925. Miscellenous build fixes/enhancements.
  9926. * configure.ac: Added summary report.
  9927. * src/Platform.h: Tweaked #include's.
  9928. * src/a2netcompat.h: Tweaked #include's.
  9929. * src/strptime.h: Tweaked #include's.
  9930. * src/gai_strerror.c: Tweaked #include's.
  9931. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9932. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9933. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9934. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9935. Increased the initial connection size in BitTorrent download to 40.
  9936. * src/BtRuntime.h
  9937. Added the usage message of --peer-id-prefix option.
  9938. * src/main.cc
  9939. * Release 0.11.2
  9940. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9941. MessageDigestHelper is introduced in order to simplify the use
  9942. of message digest. Removed repeated code.
  9943. The message digest algorithm is now specified by string, like "sha1",
  9944. "md5".
  9945. * src/messageDigest.{h, cc}
  9946. * src/MessageDigestHelper.{h, cc}: New class.
  9947. * src/DefaultPieceStorage.cc
  9948. * src/DefaultBtContext.{h, cc}
  9949. (computeFastSet): New function.
  9950. (setInfoHash): Added for unit testing.
  9951. (setNumPieces): Added for unit testing.
  9952. * src/DefaultBtInteractive.cc
  9953. * src/BtPieceMessage.cc
  9954. * src/Peer.cc
  9955. * src/Checksum.h
  9956. * src/message.h
  9957. * src/IteratableChecksumValidator.h
  9958. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9959. inside it.
  9960. * src/SegmentMan.{h, cc}
  9961. (checkIntegrity): Removed.
  9962. * src/IteratableChunkChecksumValidator.{h, cc}
  9963. * src/Util.h
  9964. (sha1Sum): Removed.
  9965. (simpleMessageDigest): Removed.
  9966. (fileChecksum): Removed.
  9967. (computeFastSet): Removed.
  9968. * src/ShaVisitor.cc
  9969. * src/ChunkChecksum.h
  9970. * src/DownloadCommand.cc
  9971. Removed messageDigest virtual functions.
  9972. * src/MultiDiskAdaptor.{h, cc}
  9973. * src/DiskAdaptor.h
  9974. * src/ByteArrayDiskWriter.h
  9975. * src/DiskWriter.h
  9976. * src/DiskAdaptorWriter.h
  9977. * src/AbstractSingleDiskAdaptor.{h, cc}
  9978. * src/AbstractDiskWriter.{h, cc}
  9979. Fixed comilation error when message digest is disabled.
  9980. * src/MetalinkEntry.{h, cc}
  9981. * src/MetalinkRequestInfo.cc
  9982. Removed srandom and random.
  9983. * src/SimpleRandomizer.h
  9984. Added size() virtual function to DiskAdaptor
  9985. * src/MultiDiskAdaptor.h
  9986. Fixed the bug that causes that files are not opened correctly in
  9987. multi-file torrent.
  9988. * src/TorrentRequestInfo.cc
  9989. * src/MultiDiskAdaptor.cc
  9990. Added SHA256 support
  9991. * src/messageDigest.cc
  9992. * src/Xml2MetalinkProcessor.cc
  9993. Show supported message digest algorithms
  9994. * src/main.cc
  9995. Updated contact info.
  9996. * src/main.cc
  9997. Applied Ross's patch
  9998. * src/a2netcompat.h
  9999. * src/main.cc
  10000. Fixed the bug that prevents a remote metalink from not being processed
  10001. even if '-o foo.metalink' is specified.
  10002. * src/MetalinkRequestInfo.cc
  10003. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10004. Merged Dan's patch:
  10005. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  10006. Use va_copy to avoid core dump on amd64:
  10007. * src/SimpleLogger.cc
  10008. Updated contact info.
  10009. * src/main.cc
  10010. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  10011. digest is not available.
  10012. * src/MetalinkEntry.h
  10013. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Make a2netcompat.h include a2io.h to fix compilation error:
  10015. * src/a2netcompat.h
  10016. * src/SocketCore.cc: Removed include of a2io.h
  10017. * src/Util.cc: Removed include of a2io.h
  10018. Gather time related functions to a2time.h:
  10019. * src/a2time.h: New file.
  10020. * src/DefaultPeerStorage.cc
  10021. * src/SimpleLogger.cc
  10022. * src/Util.{h, cc}
  10023. * src/SimpleRandomizer.h
  10024. * src/TimeA2.{h,cc}
  10025. * src/DownloadCommand.cc
  10026. * src/main.cc
  10027. Removed #ifdef __MINGW32__ since gai_strerror is included in
  10028. a2netcompat.h:
  10029. * src/NameResolver.cc
  10030. Fixed compilation error without openssl:
  10031. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  10032. Added default block to suppress compiler warnings:
  10033. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  10034. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  10035. MinGW build enhancements. The following files are added:
  10036. * src/gai_strerror.{c,h}
  10037. * src/gettimeofday.{c,h}
  10038. Changes to support the above new files:
  10039. * configure.ac
  10040. * src/Makefile.am
  10041. * src/a2netcompat.h
  10042. * src/TimeA2.cc
  10043. * src/DefaultPeerStorage.cc
  10044. * src/NameResolver.cc: removed mingw_strerror() function.
  10045. * src/SocketCore.cc: removed mingw_strerror() function.
  10046. Miscellaneous MinGW build fixes.
  10047. * src/a2io.h: Use _lseeki64() instead of lseek()
  10048. * src/common.h
  10049. * src/DefaultFileAllocator.cc
  10050. * src/GlowFileAllocator.cc
  10051. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  10052. * src/NameResolver.cc
  10053. (callback): Changed int32_t to int.
  10054. (resolve): Changed int32_t to int.
  10055. * src/Platform.cc
  10056. * src/Platform.h
  10057. * test/MultiDiskWriterTest.cc
  10058. * test/PeerMessageUtilTest.cc
  10059. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  10060. Other enhancements and fixes.
  10061. * src/HttpRequestCommand.cc
  10062. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  10063. * src/SocketCore.cc:
  10064. (error): New function to abstract errno/WSAGetLastError().
  10065. (errorMsg): New function to abstract errno/WSAGetLastError().
  10066. (initiateSecureConnection): Added more detailed error reporting.
  10067. * src/SocketCore.h: Added private variable blocking, to allow
  10068. proper handling of OpenSSL psuedo-errors.
  10069. * src/message.h
  10070. (EX_SSL_INIT_FAILURE)
  10071. (EX_SSL_IO_ERROR)
  10072. (EX_SSL_PROTOCOL_ERROR)
  10073. (EX_SSL_UNKNOWN_ERROR)
  10074. (EX_SSL_CONNECT_ERROR)
  10075. (EX_SOCKET_BLOCKING)
  10076. (EX_SOCKET_NONBLOCKING)
  10077. (EX_SOCKET_UNKNOWN_ERROR)
  10078. * src/Util.cc
  10079. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  10080. reserved name.
  10081. (httpGMT): Fixed typo.
  10082. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10083. Merged Ross's win32 patch(manually)
  10084. In the course of merging, following files are added.
  10085. * src/strptime.{h,c}
  10086. * src/libgen.{h,c}
  10087. * src/inet_aton.{h,c}
  10088. * src/Platform.{h,cc}
  10089. * src/localtime_r.{h,c}
  10090. * src/getaddrinfo.{h,c}
  10091. I've gethered network related things, and put them to following file:
  10092. * src/a2netcompat.h
  10093. Also io related things are put to following file:
  10094. * src/a2io.h
  10095. Changed %lld to %s because mingw32 doesn't recognize %lld.
  10096. * src/message.h
  10097. (MSG_ALLOCATION_COMPLETED)
  10098. (EX_TOO_LARGE_FILE)
  10099. (EX_SIZE_MISMATCH)
  10100. (EX_FILE_OFFSET_OUT_OF_RANGE)
  10101. (EX_INVALID_CHUNK_CHECKSUM)
  10102. (EX_INVALID_RANGE_HEADER)
  10103. * src/FileAllocationCommand.cc
  10104. * src/HttpResponse.cc
  10105. * src/RequestGroup.cc
  10106. * src/MultiDiskAdaptor.cc
  10107. * src/OptionHandlerImpl.h
  10108. * src/HttpResponseCommand.cc
  10109. * src/FtpNegotiateCommand.cc
  10110. * src/IteratableChecksumValidator.cc
  10111. * src/SegmentMan.cc
  10112. * src/ChunkChecksumValidator.cc
  10113. Added Randomizer::getRandomNumber(long int)
  10114. * src/Randomizer.h (getRandomNumber)
  10115. * src/SimpleRandomizer.h (getRandomNumber)
  10116. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  10117. * src/Util.cc (randomAlpha): Use this new function.
  10118. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10119. Converted int's to in32_t. long long int's are also converted to
  10120. int64_t
  10121. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10122. Fixed the bug that prevents cookies from being sent to the server
  10123. if the domain of cookie is FQDN and starts with ".".
  10124. * src/Cookie.cc (match)
  10125. To add the ability to change peer id.
  10126. * src/DefaultBtContext.h
  10127. (_peerIdPrefix): New variable
  10128. (setPeerIdPrefix): New function.
  10129. * src/torrentRequestInfo.cc
  10130. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  10131. DefaultBtContext.
  10132. * src/main.cc (main): Added peer-id-prefix command-line option.
  10133. The usage message is not added yet.
  10134. * src/DefaultBtContext.cc
  10135. (generatePeerId): Use _peerIdPrefix.
  10136. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  10137. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10138. Fixed the bug that prevents filename in content-disposition from
  10139. being retrieved when filename is not quoted.
  10140. * src/Util.cc (getContentDispositionFilename)
  10141. Fixed the bug that causes infinate loop and memory leak when file open
  10142. operation failed.
  10143. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10144. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10145. Fixed the bug that causes segfault when all URIs specified are
  10146. unsupported.
  10147. * src/RequestGroupMan.cc (getInitialCommands)
  10148. Check if RequestGroup::createNextCommand() returns empty list of
  10149. commands.
  10150. * src/RequestGroup.cc (createNextCommand)
  10151. Change log level from info to error so that users can notice that
  10152. an error occurred.
  10153. Fixed the bug that causes segfault when a zero-sized file is
  10154. downloaded.
  10155. * src/BitfieldMan.cc (isAllBitSet)
  10156. Return true if bitfieldLength is 0.
  10157. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10158. * src/main.cc
  10159. (showUsage): Added 3 usage examples for metalink download.
  10160. Replace MetalinkChunkChecksum with ChunkChecksum.
  10161. * src/MetalinkChunkChecksum.h: Removed.
  10162. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  10163. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  10164. * src/Xml2MetalinkProcessor.cc
  10165. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  10166. * src/MetalinkRequestInfo.cc (execute)
  10167. * Release 0.11.1
  10168. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10169. Reads URIs from stdin when "-i -" is specified.
  10170. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  10171. * src/UriListParser.h, src/UriListParser.cc: New class.
  10172. * src/StreamUriListParser.h: New class.
  10173. * src/FileUriListParser.h: New class.
  10174. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  10175. instead of UriFileListParser.
  10176. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10177. Made console readout more readable.
  10178. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10179. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10180. Fix the bug that causes -s option not to work.
  10181. * src/main.cc (main)
  10182. * src/a2algo.h: New file.
  10183. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10184. Create directory structure specified in metalink file.
  10185. * src/RequestGroup.h, src/RequestGroup.cc
  10186. (initAndOpenFile): Create a directory to store files if it does not
  10187. exist.
  10188. (getDir): New function.
  10189. Added ETA and download speed for an individual file to readout.
  10190. * src/ConsoleDownloadEngine.cc (sendStatistics)
  10191. * src/RequestGroup.h
  10192. (calculateDownloadSpeed): New function.
  10193. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10194. Made -S option work with metalink file and provided selective download
  10195. to metalink.
  10196. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  10197. (filename): Removed.
  10198. (file): New variable.
  10199. (size): Removed.
  10200. (operator=): Updated.
  10201. (getPath): New function.
  10202. (getLength): New function.
  10203. (toFileEntry): New function.
  10204. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  10205. (execute): Use toStream.
  10206. (showFileEntry): Removed.
  10207. * src/MetalinkRequestInfo.h
  10208. (targetFiles): New variable.
  10209. (setTargetFiles): New variable.
  10210. * src/MetalinkRequestInfo.cc
  10211. (execute): Added the ability to print file information included in
  10212. a metalink file.
  10213. Added selective download mode to metalink.
  10214. * src/main.cc
  10215. (showUsage): Updated to denote that -S and --select-file options are
  10216. applicable to metalink.
  10217. * src/FileEntry.h
  10218. (operator=): New function.
  10219. (getBasename): New function.
  10220. (getDirname): New function.
  10221. * src/Util.h, src/Util.cc
  10222. (toStream): New function.
  10223. * src/Xml2MetalinkProcessor.cc: Updated.
  10224. Made aria2 work with metalink with directory structure.
  10225. * src/File.h, src/File.cc
  10226. (getBasename): New function.
  10227. (getDirname): New function.
  10228. * src/RequestGroup.h, src/RequestGroup.cc
  10229. (_topDir): New variable.
  10230. (setTopDir): New function.
  10231. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  10232. Rewrote HTTP header parsing with stringstream.
  10233. * src/HttpConnection.h, src/HttpConnection.cc
  10234. (HttpRequestEntry): New class.
  10235. (headerBuf): Removed.
  10236. (headerBufLength): Removed.
  10237. (outstandingHttpRequests): Now its element type is
  10238. HttpRequestEntryHandle.
  10239. (findEndOfHeader): Removed.
  10240. (receiveResponse): Rewritten.
  10241. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  10242. Updated doc for -j option to notice that it should be used with -i
  10243. option.
  10244. * src/main.cc (showUsage)
  10245. Removed unused classes.
  10246. * src/RequestInfo.h
  10247. (FileInfo): Removed.
  10248. (checksum): Removed.
  10249. (fileInfo): Removed.
  10250. (setChecksum): Removed.
  10251. (getChecksum): Removed.
  10252. (getFileInfo): Removed.
  10253. Use ISO units.
  10254. * src/ConsoleDownloadEngine.cc
  10255. * src/TorrentConsoleDownloadEngine.cc
  10256. * src/Util.cc (abbrevSize)
  10257. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10258. Added the default listening ports to the help message.
  10259. * src/main.cc (showUsage)
  10260. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10261. Reduce the number of calls to gettimeofday to lower CPU load.
  10262. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  10263. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  10264. * src/Peer.h (calculateUploadSpeed): New function.
  10265. (calculateDownloadSpeed): New function.
  10266. * src/DefaultPeerStorage.cc
  10267. (CalculateStat): Added _now variable.
  10268. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  10269. and Peer::calculateUploadSpeed(const struct timeval&)
  10270. Drop connection if no request or piece message is exchanged in
  10271. a certain interval.
  10272. * src/DefaultBtInteractive.h
  10273. (btRuntime): New variable.
  10274. (inactiveCheckPoint): New variable.
  10275. (checkActiveInteraction): New function.
  10276. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  10277. request or piece message is received.
  10278. (checkActiveInteraction): New function.
  10279. (doInteractionProcessing): Call checkActiveInteraction.
  10280. Fixed the bug that causes remote Metalink and Torrent files are not
  10281. processed.
  10282. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  10283. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10284. Changed format of log file.
  10285. * src/SimpleLogger.cc
  10286. * Release 0.11.0
  10287. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10288. * src/AbstractCommand.cc
  10289. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  10290. MSG_MAX_TRY from error to info.
  10291. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  10292. * src/message.h
  10293. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  10294. (MSG_DOWNLOAD_ABORTED): Added %s.
  10295. (MSG_RESTARTING_DOWNLOAD): Added %s.
  10296. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  10297. * src/PeerAbstractCommand.cc
  10298. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  10299. * src/Request.h
  10300. (cookieBox): Made ShardHandle.
  10301. * src/RequestGroup.h, src/RequestGroup.cc
  10302. (createNextCommandWithAdj): New function.
  10303. * src/FileAllocationCommand.cc
  10304. (executeInternal): Use createNextCommandWithAdj().
  10305. * src/CheckIntegrityCommand.cc
  10306. (executeInternal): Use createNextCommandWithAdj().
  10307. Added --load-cookies command-option.
  10308. * src/OptionHandlerFactory.cc
  10309. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  10310. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  10311. Now aria2 can handle cookie's expiration date.
  10312. * src/Cookie.h (expires): Changed its type to time_t.
  10313. * src/main.cc: Added --load-cookies command-line option.
  10314. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  10315. * src/Util.h, src/Util.cc (httpGMT): New function.
  10316. * src/Request.cc (Request): Initialize cookieBox using
  10317. CookieBoxFactory.
  10318. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  10319. * src/CookieParser.h, src/CookieParser.cc: New class.
  10320. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  10321. * src/HttpResponseCommand.cc
  10322. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  10323. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  10324. download.
  10325. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Added -j command-line option.
  10327. * src/OptionHandlerFactory.cc (createOptionHandlers)
  10328. * src/main.cc
  10329. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  10330. Rewritten using stringstream.
  10331. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  10332. Rewritten using stringstream.
  10333. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10334. Make download size shown in MB, KB.
  10335. * src/ConsoleDownloadEngine.h (sendStatistics)
  10336. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  10337. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Accept incoming connections if download rate is low.
  10339. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  10340. (_lowestSpeedLimit): New variable.
  10341. (setLowestSpeedLimit): New function.
  10342. (execute): Accept incoming connections if download rate is low.
  10343. MAX_PEERS is ignored in this case.
  10344. Disable PREF_OUT in multiple concurrent download:
  10345. * src/RequestGroup.h, src/RequestGroup.cc
  10346. (setUserDefinedFilename): New function.
  10347. * src/DownloadEngineFactory.cc
  10348. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  10349. concurrent download.
  10350. * src/DefaultSegmentManFactory.cc
  10351. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  10352. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10353. RequestGroup::getNextCommand() was renamed to createNextCommand().
  10354. Added its overloaded method.
  10355. * src/RequestGroup.h
  10356. (_numConcurrentCommand): New variable.
  10357. (setNumConcurrentCommand): New function.
  10358. * src/RequestGroup.cc
  10359. Abort download if same file is being downloaded concurrently.
  10360. * src/RequestGroup.h, src/RequestGroupMan.cc
  10361. (isSameFileBeingDownloaded): New function.
  10362. * src/HttpResponseCommand.cc (executeInternal)
  10363. * src/FtpNegotiateCommand.cc (recvSize)
  10364. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  10365. * main.cc: Added help message for -i option.
  10366. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  10368. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  10369. * src/MetalinkEntry.h
  10370. (checksum): Changed to ChecksumHandle
  10371. * src/MetalinkRequestInfo.cc
  10372. (checksum): Changed to ChecksumHandle
  10373. * src/File.cc
  10374. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  10375. * src/common.h
  10376. (DIR_OPEN_MODE): New definition
  10377. * src/RequestGroup.cc
  10378. (prepareForNextAction): Added an argument.
  10379. * src/message.h
  10380. (MSG_GOOD_CHECKSUM): New definition
  10381. (MSG_BAD_CHECKSUM): New definition
  10382. * src/HttpResponseCommand.cc
  10383. (handleDefaultEncoding): Continue download sequence in new
  10384. non-segmented download.
  10385. * src/FileAllocationEntry.h
  10386. (_nextDownloadCommand): New variable.
  10387. * src/DownloadCommand.cc
  10388. (prepareForNextSegment): Create ChecksumCommand if checksum is
  10389. available.
  10390. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  10391. * src/IteratableChecksumValidator.h,
  10392. src/IteratableChecksumValidator.cc: New class.
  10393. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  10394. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10395. Change file mode to 666:
  10396. * src/common.h (OPEN_MODE): New definition.
  10397. * src/File.cc
  10398. * src/Util.cc
  10399. * src/Directry.cc
  10400. * src/AbstractDiskWriter.cc
  10401. Change the level of log message "download aborted" to debug:
  10402. * src/PeerAbstractCommand.cc (execute)
  10403. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  10404. * src/TrackerWatcherCommand.cc
  10405. (createCommand): Sleep some seconds after request failed.
  10406. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  10407. then abort tracker request.
  10408. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10409. * Added the simultaneous download feature.
  10410. * src/main.cc: Print "Exception caught: " when exception is caught.
  10411. Use CUIDCounter instead of BtRuntime::getNewCuid():
  10412. * src/ActivePeerConnectionCommand.cc
  10413. * src/PeerInteractionCommand.cc
  10414. * src/BtRuntime.h
  10415. (cuidCounter): Removed.
  10416. (getNewCuid): Removed.
  10417. * src/DownloadEngineFactory.cc
  10418. * src/PeerListenCommand.cc
  10419. * src/TrackerUpdateCommand.cc
  10420. * src/PeerInitiateConnectionCommand.cc
  10421. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. * src/PeerAbstractCommand.cc
  10423. (onAbort): Call PeerStorage::returnPeer()
  10424. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  10425. (incomingPeers): New variable.
  10426. (addIncomingPeer): New function.
  10427. (returnPeer): New function.
  10428. (onErasingPeer): New function.
  10429. (addPeer): push_back -> push_front
  10430. (getActivePeers): Rewritten.
  10431. (calculateStat): Rewritten.
  10432. * src/PeerStorage.h
  10433. (TransferStat::copy): New function.
  10434. (TransferStat::TransferStat): New function.
  10435. (TransferStat::operator=): New function.
  10436. (addIncomingPeer): New function.
  10437. (returnPeer): New function.
  10438. * src/PeerListenCommand.cc
  10439. (execute): Use PeerStorage::addIncomingPeer() instead of
  10440. Peer::addPeer().
  10441. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10442. Connect to a peer actively when download speed is lower than specified
  10443. speed in torrent download:
  10444. * src/ActivePeerConnectionCommand.h: New class.
  10445. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10446. * src/HttpRequest.cc (createRequest): url-encode user-agent
  10447. * src/main.cc: Fixed the bug that prevents download if .netrc
  10448. doesn't exist.
  10449. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10450. To cache resolved hostname:
  10451. * src/AbstractCommand.h, src/AbstractCommand.cc
  10452. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  10453. Added dns cache.
  10454. * src/FtpInitiateConnectionCommand.cc
  10455. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  10456. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  10457. NameResolver working without ares.
  10458. * src/TorrentRequestInfo.cc
  10459. (execute): Don't cache dns in torrent download.
  10460. * src/HttpInitiateConnectionCommand.cc
  10461. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  10462. * src/DNSCache.h: New class.
  10463. * src/UrlRequestInfo.cc
  10464. (execute): Use dns cache.
  10465. In http request, suppress port number in http request header if port
  10466. is 80 or 443:
  10467. * src/HttpRequest.cc (getHostText): Suppress port number in http
  10468. request header if port is 80 or 443.
  10469. (createProxyRequest): Allways send port number.
  10470. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10471. To add the command-line option which disables netrc support:
  10472. * src/OptionHandlerFactory.cc
  10473. (createOptionHandlers): Added PREF_NO_NETRC.
  10474. * src/main.cc: Added -n option.
  10475. * src/prefs.h (PREF_NO_NETRC): New definition.
  10476. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  10477. V_TRUE.
  10478. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  10479. is V_FALSE. This may get configurable in the future release.
  10480. To clear peer's error status by time basis:
  10481. * src/PeerAbstractCommand.cc
  10482. (onAbort): Call Peer::startBadCondition().
  10483. * src/Peer.h, src/Peer.cc
  10484. (error): Removed.
  10485. (_badConditionStartTime): New variable.
  10486. (_badConditionInterval): New variable. Initialized to 10 seconds.
  10487. (startBadCondition): New function.
  10488. (isGood): New function.
  10489. * src/DefaultPeerStorage.cc
  10490. (addPeer): Use Peer::isGood().
  10491. (FindFinePeer): Use Peer::isGood().
  10492. Always include port number in http request header:
  10493. * src/HttpRequest.cc (getHostText): Always include port number in
  10494. http request header.
  10495. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. To the ability to read options from a config file:
  10497. * src/main.cc: Command-line parameter validation is delegated to
  10498. OptionHandler class.
  10499. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  10500. * src/Option.h, src/Option.cc (clear): New function.
  10501. * src/OptionParser.h, src/OptionParser.cc: New class.
  10502. * src/OptionHandler.h: New class.
  10503. * src/NameMatchOptionHandler.h: New class.
  10504. * src/OptionHandlerImpl.h: New classes.
  10505. * src/prefs.h: '_' -> '-'
  10506. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  10507. (FTP_PASV): New definition.
  10508. * src/Util.h, src/Util.cc (getRealSize): New function.
  10509. To disable netrc support if .netrc file does not have correct
  10510. permissions:
  10511. * src/File.h, src/File.cc (mode): New function.
  10512. To prevent confidential information to be logged:
  10513. * src/HttpConnection.h, src/HttpConnection.cc
  10514. (eraseConfidentialInfo): New function.
  10515. (sendRequest): Call eraseConfidentialInfo().
  10516. (sendProxyRequest): Call eraseConfidentialInfo().
  10517. * src/main.cc: Validate permissions of .netrc file.
  10518. To add --user-agent command-line option:
  10519. * src/main.cc: Added new command line option: --user-agent
  10520. * src/prefs.h (PREF_USER_AGENT): New definition.
  10521. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  10522. parameter to HttpRequest object.
  10523. * src/AbstractProxyRequestCommand.cc
  10524. (executeInternal): Set user-agent option parameter to HttpRequest
  10525. object.
  10526. Marged the patches from Dan Fandrich.
  10527. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10528. Use filename and size from Metalink file instead of sending HEAD
  10529. request:
  10530. * src/UrlRequestInfo.h
  10531. (_filename): New variable.
  10532. (_totalLength): New variable.
  10533. (setTotalLength): New variable.
  10534. (setFilename): New variable.
  10535. * src/MetalinkRequestInfo.cc
  10536. (execute): Set filename and size to UrlRequestInfo
  10537. * src/UrlRequestInfo.cc
  10538. (execute): Use filename and size from Metalink instead of seding
  10539. HEAD request to servers.
  10540. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. To add the ability to resume downloading a partially downloaded file
  10542. which is downloaded from the beginning:
  10543. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  10544. takes this role.
  10545. * src/main.cc: Added -c option.
  10546. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  10547. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  10548. * src/prefs.h (PREF_CONTINUE): New definition.
  10549. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  10550. * src/DefaultDiskWriter.cc
  10551. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  10552. * src/AbstractDiskWriter.h
  10553. (glowFileAllocator): New variable.
  10554. * src/AbstractDiskWriter.cc
  10555. (openExistingFile): Now preallocate file space from the end of the
  10556. existing file if totalLength argument is specified and grater than 0.
  10557. * src/UrlRequestInfo.cc: If -c option is specified and the file
  10558. to download exists in local, continue the download of the file.
  10559. --allow-overwrite=true is assumed in this context.
  10560. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  10561. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  10562. Throw exception if --check-integrity=true is specified but chunk
  10563. checksums are not provided:
  10564. * src/UrlRequestInfo.cc
  10565. Do not print URLs to stdout:
  10566. * src/UrlRequestInfo.cc
  10567. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10568. * src/Request.h: Use AuthResolver to get authentication information.
  10569. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  10570. set to RequestFactory object.
  10571. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  10572. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  10573. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  10574. create Request object.
  10575. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  10576. To integrate Netrc into exsiting classes:
  10577. * src/Request.h
  10578. (_userDefinedAuthConfig): New variable.
  10579. (findNetrcAuthenticator): New function.
  10580. (segment): Removed.
  10581. (setUserDefinedAuthConfig): New function.
  10582. (resolveHttpAuthConfigItem): New function.
  10583. (resolveFtpAuthConfigItem): New function.
  10584. (resolveHttpProxyAuthConfigItem): New function.
  10585. * src/HttpRequest.h
  10586. (authConfig): Removed.
  10587. (proxyAuthConfig): Removed.
  10588. (setAuthConfig): Removed.
  10589. (setProxyAuthConfig): Removed.
  10590. * src/UrlRequest.h
  10591. (getHeadResult): Added a parameter: authConfigHandle
  10592. * src/common.h
  10593. (SingletonHolder.h): New include.
  10594. * src/main.cc
  10595. (Netrc.h): New include.
  10596. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  10597. Added initial value of PREF_NETRC_PATH.
  10598. Added the initialization of netrc.
  10599. * src/AuthConfig.h: New class.
  10600. * src/prefs.h
  10601. (PREF_NETRC_PATH): New definition.
  10602. * src/HttpAuthConfig.h: Removed.
  10603. * src/Netrc.cc
  10604. (getRequiredNextToken): New function.
  10605. (skipMacdef): New function.
  10606. (parse): Rewritten.
  10607. * src/Netrc.h
  10608. (getRequiredNextToken): New function.
  10609. (skipMacdef): New function.
  10610. * src/Util.h, src/Util.cc
  10611. (getHomeDir): New function.
  10612. * src/TrackerWatcherComand.cc
  10613. (createRequestCommand): Use AuthConfig.
  10614. * src/FtpConnection.cc
  10615. (sendUser): Use Request::resolveFtpAuthConfigItem().
  10616. (sendPass): Use Request::resolveFtpAuthConfigItem().
  10617. * src/Request.cc
  10618. (findNetrcAuthenticator): New function.
  10619. (resolveHttpAuthConfigItem): New function.
  10620. (resolveFtpAuthConfigItem): New function.
  10621. (resolveHttpProxyAuthConfigItem): New function.
  10622. * src/UrlRequestInfo.cc: Use AuthConfig.
  10623. * src/HttpRequest.cc
  10624. (createRequest): Use authConfig.
  10625. (getProxyAuthString): Use authConfig.
  10626. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  10627. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  10628. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10629. To reduce overhead to find commands whose socket is either
  10630. readable or writable in the download engine loop:
  10631. * src/Command.h, src/Command.cc
  10632. (STATUS): New enum.
  10633. (status): New variable.
  10634. (statusMatch): New function.
  10635. (setStatusActive): New function.
  10636. (setStatusInactive): New function.
  10637. * src/DownloadEngine.h, src/DownloadEngine.cc
  10638. (executeCommand): New function.
  10639. (run): Simplified.
  10640. (waitData): Call Command::setStatusActive() when command's socket is
  10641. readable or writable.
  10642. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. To handle Segment as SegmentHandle:
  10644. * src/AbstractCommand.cc (execute): Rewritten.
  10645. * src/SegmentMan.h: Segment -> SegmentHandle
  10646. Introducded HttpResponse class, HttpRequest class to improve code
  10647. extensiveness and make it clear:
  10648. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  10649. HttpResponse class.
  10650. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  10651. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  10652. * src/HttpConnection.cc: Contruction of http request were moved to
  10653. HttpRequest class.
  10654. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  10655. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  10656. * src/HttpAuthConfig.h: New class.
  10657. * src/Range.h: New class.
  10658. To make FtpTunnel{Request, Response}Command and
  10659. HttpProxy{Request, Response}Command derived from
  10660. AbstractProxy{Request, Response}Command:
  10661. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  10662. Derived from AbstractProxyRequestCommand class.
  10663. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  10664. Derived from AbstractProxyResponseCommand class.
  10665. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  10666. Derived from AbstractProxyRequestCommand class.
  10667. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  10668. Derived from AbstractProxyResponseCommand class.
  10669. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  10670. : New class.
  10671. * src/AbstractProxyResponseCommand.h,
  10672. src/AbstractProxyResponseCommand.cc: New class.
  10673. To add netrc support:
  10674. * src/Netrc.h, src/Netrc.cc: New class.
  10675. * src/Util.h, src/Util.cc (split): New function.
  10676. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  10677. "Content-Range" header instead of "Range" header.
  10678. * src/HttpHeader.h
  10679. (getStatus): Removed.
  10680. (setStatus): Removed.
  10681. * src/Segment.h
  10682. (getPositionToWrite): New function.
  10683. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10684. * src/HttpHeader.h
  10685. (Range.h): New include.
  10686. (status): New variable.
  10687. (HttpHeader): Initialized status with 0.
  10688. (getStatus): New function.
  10689. (setStatus): New function.
  10690. (getRange): New function.
  10691. (HttpHeaderHandle): New function.
  10692. * src/HttpHeader.cc
  10693. (getRange): New function.
  10694. * src/Request.h
  10695. (RequestWeakHandle): New definition.
  10696. * src/HttpConnection.h
  10697. (HttpConnectionHandle): New type definition.
  10698. * src/HttpConnection.cc
  10699. (receiveResponse): Set HTTP status to headers.
  10700. * src/main.cc
  10701. (showUsage): Fixed typo.
  10702. * src/Segment.h
  10703. (SegmentHandle): New type definition.
  10704. * src/BitfieldMan.h
  10705. (getMissingUnusedLength): New function.
  10706. * src/BitfieldMan.cc
  10707. (getMissingUnusedLength): New function.
  10708. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10709. To fix static initialization order problem:
  10710. * src/BitfieldManFactory.h
  10711. (defaultRandomizer): Removed.
  10712. (factory): New variable.
  10713. (getNewFactory): Removed.
  10714. (getFactoryInstance): New function.
  10715. (setDefaultRandomizer): Rewritten.
  10716. (getDefaultRandomizer): Rewritten.
  10717. * src/BitfieldManFactory.cc
  10718. (defaultRandomizer): Removed.
  10719. (factory): Initialized to 0.
  10720. (BitfieldManFactory): Initialized randomizer to 0.
  10721. * src/DefaultPieceStorage.cc
  10722. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  10723. * src/Peer.cc
  10724. (Peer): getNewFactory() -> getFactoryInstance()
  10725. * src/SegmentMan.cc
  10726. (initBitfield): getNewFactory() -> getFactoryInstance()
  10727. * src/Piece.cc
  10728. (Piece): getNewFactory() -> getFactoryInstance()
  10729. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10730. To fix the bug that causes crash on Max OS X:
  10731. * src/SimpleRandomizer.h
  10732. (getInstance): Create new instance if the static variable is null.
  10733. * src/SimpleRandomizer.cc
  10734. (randomizer): Initialized to 0.
  10735. * src/BitfieldManFactory.h
  10736. (getNewFactory): Removed the call to setRandomizer().
  10737. To fix the miscalculation of the range of checksum:
  10738. * src/BitfieldMan.h
  10739. (isBitSetOffsetRange): New function.
  10740. * src/BitfieldMan.cc
  10741. (isBitSetOffsetRange): New function.
  10742. * src/SegmentMan.cc
  10743. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  10744. Use bitfield->getBlockLength() instead of segment.segmentLength.
  10745. * Release 0.10.1
  10746. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10747. To lower CPU usage in BitTorrent download when --max-upload-limit
  10748. command-line option specified:
  10749. * src/DefaultBtMessageDispatcher.cc
  10750. (sendMessages): Calculate uploading speed only when current message
  10751. is uploading data and is not sent yet.
  10752. * src/DefaultPeerStorage.h
  10753. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  10754. * src/HttpResponseCommand.cc
  10755. (handleDefaultEncoding): Added the cast to int32_t to itos.
  10756. This fixes compile error in Soralis 10.
  10757. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10758. To fix segfault in Metalink download:
  10759. * src/UrlRequestInfo.h
  10760. (filename): Removed.
  10761. (totalLength): Removed.
  10762. (setTotalLength): Removed.
  10763. (setFilename): Removed.
  10764. * src/MetalinkRequestInfo.cc
  10765. (execute): Do not set filename and totalLength to reqInfo.
  10766. Set chunk checksum to reqInfo if it is not null.
  10767. * src/HttpResponseCommand.cc
  10768. (executeInternal): Fixed filename in log.
  10769. (handleDefaultEncoding): Removed the call to initBitfield() and
  10770. markAllPiecesDone().
  10771. (handleOtherEncoding): Added HEAD method handling.
  10772. * src/FtpNegotiateCommand.cc
  10773. (executeInternal): Added SEQ_HEAD_OK handling.
  10774. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  10775. return false.
  10776. * src/FtpNegotiateCommand.h
  10777. (SEQ_HEAD_OK): New definition.
  10778. * src/SegmentMan.cc
  10779. (initBitfield): Delete bitfield.
  10780. (isChunkChecksumValidationReady): Fixed the condition.
  10781. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  10782. works fine.
  10783. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10784. * src/Xml2MetalinkProcessor.h
  10785. (xpathExists): New function.
  10786. * src/Xml2MetalinkProcessor.cc
  10787. (xpathExists): New function.
  10788. Not to send HEAD request if filename and size are available in Metalink
  10789. file:
  10790. * src/UrlRequestInfo.h
  10791. (filename): New variable.
  10792. (totalLength): New variable.
  10793. (setTotalLength): New function.
  10794. (setFilename): New function.
  10795. * src/MetalinkRequestInfo.cc
  10796. (execute): Set filename and size to UrlRequestInfo.
  10797. * src/MetalinkEntry.cc
  10798. (MetalinkEntry): Initialize size with 0.
  10799. * src/UrlRequestInfo.cc
  10800. (execute): Set filename and size to SegmentMan.
  10801. Not to download rest of the files after selected files are downloaded
  10802. in BitTorrent:
  10803. * src/PieceStorage.h
  10804. (allDownloadFinished): New function.
  10805. * src/DefaultBtAnnounce.cc
  10806. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  10807. downloadFinished.
  10808. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  10809. * src/DefaultPieceStorage.cc
  10810. (completePiece): Use allDownloadFinished instead of downloadFinished.
  10811. Commented out the call to finishSelectiveDownloadingMode().
  10812. (downloadFinished): Call isFilteredAllBitSet() instead of
  10813. isAllBitSet().
  10814. (allDownloadFinished): New function.
  10815. * src/DefaultBtInteractive.cc
  10816. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  10817. downloadFinished().
  10818. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  10819. * src/TorrentDownloadEngine.cc
  10820. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10821. * src/BitfieldMan.h
  10822. (isFilteredAllBitSet): New function.
  10823. * src/ShareRatioSeedCriteria.h
  10824. (PieceStorage.h): New include.
  10825. (pieceStorage): New variable.
  10826. (evaluate):
  10827. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10828. * src/BitfieldMan.cc
  10829. (isFilteredAllBitSet): New function.
  10830. (isAllBitSet): Filter is not took into account.
  10831. Rename --force-truncate as --allow-overwrite:
  10832. * src/TorrentRequestInfo.cc
  10833. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10834. * src/main.cc
  10835. (showUsage): --force-truncate -> --allow-overwrite
  10836. * src/message.h
  10837. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10838. * src/prefs.h
  10839. (PREF_FORCE_TRUNCATE): Removed.
  10840. (PREF_ALLOW_OVERWRITE): New definition.
  10841. * src/SegmentMan.cc
  10842. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10843. * src/MetalinkRequestInfo.cc
  10844. (execute): Queueing message are now logged in info level.
  10845. * src/common.h
  10846. (LONG_LONG_MAX): Removed.
  10847. (LONG_LONG_MIN): Removed.
  10848. * src/HttpResponseCommand.cc
  10849. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10850. * src/FtpNegotiateCommand.cc
  10851. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10852. * src/main.cc
  10853. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10854. command-line option.
  10855. (main): Added --check-integriy and --realtime-chunk-checksum
  10856. command-line option.
  10857. --force-truncate -> --allow-overwrite
  10858. Set initial value of --check-integrity option to false.
  10859. Don't show usage when error occurs while persing command-line options.
  10860. Removed deprecated --upload-limit option.
  10861. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10862. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10863. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10864. * src/BtAllowedFastMessage.cc:
  10865. * src/BtBitfieldMessage.cc
  10866. * src/BtCancelMessage.cc
  10867. * src/BtChokeMessage.cc
  10868. * src/BtHaveAllMessage.cc
  10869. * src/BtHaveMessage.cc
  10870. * src/BtHaveNoneMessage.cc
  10871. * src/BtInterestedMessage.cc
  10872. * src/BtNotInterestedMessage.cc
  10873. * src/BtPieceMessage.cc
  10874. * src/BtPortMessage.cc
  10875. * src/BtRejectMessage.cc
  10876. * src/BtRequestMessage.cc
  10877. * src/BtSuggestPieceMessage.cc
  10878. * src/BtUnchokeMessage.cc
  10879. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10880. files are affected.
  10881. * src/ChunkChecksumValidator.cc
  10882. * src/SegmentMan.cc
  10883. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10884. To add chunk checksum validation:
  10885. * src/MetalinkEntry.h
  10886. (MetalinkChunkChecksum.h): New include.
  10887. (chunkChecksum): New variable.
  10888. * src/Request.h
  10889. (method): New variable.
  10890. (setMethod): New function.
  10891. (getMethod): New function.
  10892. (METHOD_GET): New static constant.
  10893. (METHOD_HEAD): New static constant.
  10894. * src/Xml2MetalinkProcessor.h
  10895. (getPieceHash): New function.
  10896. * src/PieceStorage.h
  10897. (markAllPiecesDone): New function.
  10898. (checkIntegrity): New function.
  10899. * src/FileAllocator.h
  10900. (NullFileAllocationMonitor.h): New include.
  10901. (FileAllocator): Initialize fileAllocationMonitor with new
  10902. NullFileAllocationMonitor().
  10903. * src/MultiDiskAdaptor.h
  10904. (messageDigest.h): Remove include.
  10905. (ctx): Removed.
  10906. (hashUpdate): Added ctx.
  10907. (MultiDiskAdaptor): Removed ctx.
  10908. (sha1Sum): Renamed as messageDigest.
  10909. (messageDigest): New function.
  10910. * src/UrlRequestInfo.h
  10911. (HeadResult): New class.
  10912. (digestAlgo): New variable.
  10913. (chunkChecksumLength): New variable.
  10914. (chunkChecksums): New variable.
  10915. (getHeadResult): New function.
  10916. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10917. (setDigestAlgo): New function.
  10918. (setChunkChecksumLength): New function.
  10919. (setChunkChecksums): New function.
  10920. * src/DefaultPieceStorage.cc
  10921. (DiskAdaptorWriter.h): New include.
  10922. (ChunkChecksumValidator.h): New include.
  10923. (markAllPiecesDone): New function.
  10924. (checkIntegrity): New function.
  10925. * src/DefaultBtContext.h
  10926. (getPieceHashes): New function.
  10927. * src/TorrentRequestInfo.cc
  10928. (execute): Try to validate chunk checksum if file already exists and
  10929. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10930. * src/messageDigest.h
  10931. (~MessageDigestContext): Added digestFree().
  10932. * src/MetalinkRequestInfo.cc
  10933. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10934. * src/DiskAdaptor.h
  10935. (messageDigest.h): New include.
  10936. (sha1Sum): Renamed as messageDigest.
  10937. (messageDigest): New function.
  10938. * src/DownloadCommand.h
  10939. (PeerStat.h): New include.
  10940. (maxDownloadSpeedLimit): New variable.
  10941. (startupIdleTime): New variable.
  10942. (lowestDownloadSpeedLimit): New variable.
  10943. (peerStat): New variable.
  10944. (setMaxDownloadSpeedLimit): New function.
  10945. (setStartupIdleTime): New function.
  10946. (setLowestDownloadSPeedLimit): New function.
  10947. * src/BtContext.h
  10948. (getPieceHashes): New function.
  10949. * src/main.cc
  10950. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10951. option to true for testing purpose.
  10952. * src/BtPieceMessage.cc
  10953. (checkPieceHash): Use messageDigest
  10954. * src/DownloadEngine.cc
  10955. (SetDescriptor): Removed.
  10956. (AccumulateActiveCommand): Removed.
  10957. (waitData): Rewritten.
  10958. (updateFdSet): Rewritten.
  10959. * src/MultiDiskAdaptor.cc
  10960. (hashUpdate): Added ctx.
  10961. (sha1Sum): Renamed as messageDigest.
  10962. (messageDigest): New function.
  10963. * src/BitfieldMan.h
  10964. (isBitRangeSet): New function.
  10965. (unsetBitRange): New function.
  10966. * src/ByteArrayDiskWriter.h
  10967. (sha1Sum): Renamed as messageDigest.
  10968. (messageDigest): New function.
  10969. * src/ConsoleDownloadEngine.cc
  10970. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10971. * src/DiskWriter.h
  10972. (messageDigest.h): New include.
  10973. (sha1Sum): Renamed as messageDigest.
  10974. (messageDigest): New function.
  10975. * src/ChunkChecksumValidator.h: New class.
  10976. * src/DiskAdaptorWriter.h: New class.
  10977. * src/prefs.h
  10978. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10979. (PREF_CHECK_INTEGRITY): New definition.
  10980. * src/HttpResponseCommand.cc
  10981. (handleDefaultEncoding): Added method "HEAD" handling.
  10982. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10983. (handleOtherEncoding):
  10984. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10985. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10986. startupIdleTime, lowestDownloadSpeedLimit to command.
  10987. * src/SegmentMan.h
  10988. (getSegmentEntryByIndex): New function.
  10989. (getSegmentEntryByCuid): New function.
  10990. (getSegmentEntryIteratorByCuid): New function.
  10991. (diskWriter): DiskWriter -> DiskWriterHandle
  10992. (pieceHashes): New variable.
  10993. (chunkHashLength): New variable.
  10994. (digestAlgo): New variable.
  10995. (FindPeerStat): Removed.
  10996. (getPeerStat): Rewritten.
  10997. (markAllPiecesDone): New function.
  10998. (checkIntegrity): New function.
  10999. (tryChunkChecksumValidation): New function.
  11000. (isChunkChecksumValidationReady): New function.
  11001. * src/BitfieldMan.cc
  11002. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  11003. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  11004. blocks to 0.
  11005. (isBitRangeSet): New function.
  11006. (unsetBitRange): New function.
  11007. * src/FtpNegotiateCommand.cc
  11008. (executeInternal): Set maxDownloadSpeedLimit,
  11009. startupIdleTime, lowestDownloadSpeedLimit to command.
  11010. (recvSize): Added method "HEAD" handling.
  11011. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  11012. * src/AbstractSingleDiskAdaptor.cc
  11013. (sha1Sum): Renamed as messageDigest.
  11014. (messageDigest): New function.
  11015. * src/AbstractSingleDiskAdaptor.h
  11016. (sha1Sum): Renamed as messageDigest.
  11017. (messageDigest): New function.
  11018. * src/Util.h
  11019. (indexRange): New function.
  11020. * src/MetalinkEntry.cc
  11021. (MetalinkEntry): Initialized chunkChecksum to 0.
  11022. * src/ShaVisitor.cc
  11023. (~ShaVisitor): Removed the call to ctx.digestFree().
  11024. * src/SegmentMan.cc
  11025. (ChunkChecksumValidator.h): New include.
  11026. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  11027. to DIGEST_ALGO_SHA1.
  11028. (~SegmentMan): Removed diskWriter.
  11029. (FindSegmentEntryByIndex): Removed.
  11030. (FindSegmentEntryByCuid): Removed.
  11031. (checkoutSegment): Rewritten.
  11032. (findSlowerSegmentEntry): Rewritten.
  11033. (getSegment): Rewritten.
  11034. (updateSegment): Rewritten.
  11035. (completeSegment): Rewritten.
  11036. (markAllPiecesDone): New function.
  11037. (checkIntegrity): New function.
  11038. (isChunkChecksumValidationReady): New function.
  11039. (tryChunkChecksumValidation): New function.
  11040. * src/Xml2MetalinkProcessor.cc
  11041. (getEntry): Get size and set it to entry.
  11042. Get chunk checksum and set it to entry.
  11043. (getPieceHash): New function.
  11044. * src/Util.cc
  11045. (sha1Sum): Removed ctx.digestFree()
  11046. (fileChecksum): Removed ctx.digestFree()
  11047. (indexRange): New function.
  11048. * src/Request.cc
  11049. (METHOD_GET): New variable.
  11050. (METHOD_HEAD): New variable.
  11051. (Request): Added method.
  11052. * src/UrlRequestInfo.cc
  11053. (FatalException.h): New include.
  11054. (message.h): New include.
  11055. (operator<<): Added operator<< for class HeadResult.
  11056. (getHeadResult): New function.
  11057. (execute): Get filename and size in separate download engine.
  11058. * src/ChunkChecksumValidator.cc: New class.
  11059. * src/DownloadCommand.cc:
  11060. (DownloadCommand): Added peerStat.
  11061. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  11062. the value from Option.
  11063. The buffer size is now 16KB.
  11064. Use peerStat member instead of getting it from SegmentMan.
  11065. Use startupIdleTime member instead of gettingit from Option.
  11066. Added chunk checksum validation.
  11067. * src/AbstractDiskWriter.cc
  11068. (AbstractDiskWriter): Removed ctx.
  11069. (~AbstractDiskWriter): Removed ctx.digestFree()
  11070. (writeDataInternal): Returns the return value of write.
  11071. (readDataInternal): Returns the return value of read.
  11072. (sha1Sum): Renamed as messageDigest
  11073. (messageDigest): New function.
  11074. * src/AbstractDiwkWriter.h
  11075. (messageDigest.h): Removed include.
  11076. (ctx): Removed.
  11077. (sha1Sum): Renamed as messageDigest
  11078. (messageDigest): New function.
  11079. * src/DefaultPieceStorage.h
  11080. (markAllPiecesDone): New function.
  11081. (checkIntegrity): New function.
  11082. * src/NullFileAllocationMonitor.h: New class.
  11083. * src/MetalinkChunkChecksum.h: New class.
  11084. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11085. To decrease CPU usage in bittorrent download, calculation results in
  11086. BitfieldMan were cached and realtime fetching PeerObject was removed
  11087. with WeakHandle introduced. Option values are set to the objects
  11088. by setter before download begins.
  11089. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  11090. * src/DefaultBtRequestFactory.h
  11091. (dispatcher): BtMessageDispatcherHandle ->
  11092. BtMessageDispatcherWeakHandle.
  11093. (messageFactory): New variable.
  11094. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  11095. BtMessageDispatcherWeakHandle.
  11096. (setBtMessageFactory): New function.
  11097. * src/DefaultBtMessageDispatcher.cc:
  11098. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  11099. from Option.
  11100. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  11101. feating the value from Option.
  11102. Use messageFactory member.
  11103. * src/PeerInteractionCommand.cc
  11104. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  11105. Add reverse dependencies to factory object.
  11106. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  11107. dispatcher.
  11108. Set messageFactory to receiver.
  11109. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  11110. btInteractive.
  11111. Set receiver to peerObject.
  11112. Set maxDownloadSpeedLimit to this.
  11113. (executeInternal): Use maxDownloadSpeedLimit member.
  11114. * src/BtChokeMessage.cc
  11115. (doReceivedAction): Use dispatcher, requestFactory member.
  11116. (onSendComplete): Use dispatcher member.
  11117. * src/PeerInteractionCommand.h
  11118. (maxDownloadSpeedLimit): New variable.
  11119. * src/DefaultBtMessageReceiver.h
  11120. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11121. (dispatcher):
  11122. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11123. (messageFactory): New variable.
  11124. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11125. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  11126. (setDispatcher):
  11127. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  11128. (setBtMessageFactory): New function.
  11129. * src/DefaultBtInteractive.cc
  11130. (initiateHandshake): Use messageFactory member.
  11131. (addBitfieldMessageToQueue): Use messageFactory member.
  11132. (addAllowedFastMessageToQueue): Use messageFactory member.
  11133. (decideChoking): Use messageFactory member.
  11134. (checkHave): Use messageFactory member.
  11135. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  11136. (receiveMessages): Use maxDownloadSpeedLimit member.
  11137. (decideInterest): Use messageFactory member.
  11138. * src/BtRequestMessage.cc
  11139. (doReceivedAction): Use messageFactory, dispatcher member.
  11140. (onQueued): Use dispatcher member.
  11141. * src/BtPieceMessage.cc
  11142. (doReceivedAction): Use dispatcher member.
  11143. (send): Use peerConnection member.
  11144. (onWrongPiece): Use requestFactory member.
  11145. (handleChokingEvent): Use messageFactory, dispatcher member.
  11146. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  11147. * src/BtMessageDispatcher.h
  11148. (BtMessageDispatcherWeakHandle): New type definition.
  11149. * src/SimpleBtMessage.cc
  11150. (send): Use peerConnection member.
  11151. * src/BtRejectMessage.cc
  11152. (doReceivedAction): Use dispatcher member.
  11153. * src/DefaultBtMessageDispatcher.h
  11154. (Option.h): Removed include.
  11155. (messageFactory): New variable.
  11156. (option): Removed.
  11157. (maxUploadSpeedLimit): New variable.
  11158. (requestTimeout): New variable.
  11159. (DefaultBtMessageDispatcher): Removed option.
  11160. Added maxUploadSpeedLimit, requestTimeout.
  11161. (setOption): Removed.
  11162. (getOption): Removed.
  11163. (setMaxUploadSpeedLimit): New function.
  11164. (setRequestTimeout): New function.
  11165. (setBtMessageFactory): New function.
  11166. * src/DefaultBtInteractive.h
  11167. (btMessageReceiver):
  11168. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11169. (dispatcher):
  11170. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11171. (btRequestFactory):
  11172. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11173. (peerConnection):
  11174. PeerConnectionHandle -> PeerConnectionWeakHandle
  11175. (messageFactory): New variable.
  11176. (option): Removed.
  11177. (keepAliveInterval): New variable.
  11178. (maxDownloadSpeedLimit): New variable.
  11179. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  11180. (setBtMessageReceiver):
  11181. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  11182. (setDispatcher):
  11183. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  11184. (setBtRequestFactory):
  11185. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  11186. (setPeerConnection):
  11187. PeerConnectionHandle -> PeerConnectionWeakHandle
  11188. (setOption): Removed.
  11189. (setKeepAliveInterval): New function.
  11190. (setMaxDownloadSpeedLimit): New function.
  11191. (setBtMessageFactory): New function.
  11192. * src/BitfieldMan.h
  11193. (cachedNumMissingBlock): New variable.
  11194. (cachedNumFilteredBlock): New variable.
  11195. (cachedCompletedLength): New variable.
  11196. (cachedFilteredComletedLength): New variable.
  11197. (cachedFilteredTotalLength): New variable.
  11198. (countMissingBlockNow): New function.
  11199. (countFilteredBlockNow): New function.
  11200. (getFilteredTotalLengthNow): New function.
  11201. (getCompletedLengthNow): New function.
  11202. (getFilteredCompletedLengthNow): New function.
  11203. (updateCache): New function.
  11204. * src/AbstractBtMessage.h
  11205. (BtMessageDispatcher.h): New include.
  11206. (PeerConnection.h): New include.
  11207. (BtRequestFactory.h): New include
  11208. (BtMessageFactory.h): New include.
  11209. (dispatcher): New variable.
  11210. (messageFactory): New variable.
  11211. (peerConnection: New variable.
  11212. (setBtMessageDispatcher): New function.
  11213. (setPeerConnection): New function.
  11214. (setBtMessageFactory): New function.
  11215. (setBtRequestFactory): New function.
  11216. * src/DefaultBtMessageFactory.cc
  11217. (setCommonProperty): Set dispatcher, requestFactory, this,
  11218. peerConnection to msg.
  11219. * src/BtRegistry.h
  11220. (BT_MESSAGE_RECEIVER): New macro.
  11221. * src/PeerConnection.h
  11222. (PeerConnectionWeakHandle): New type definition.
  11223. * src/BtMessageFactory.h
  11224. (BtMessageFactoryWeakHandle): New type definition.
  11225. * src/BitfieldMan.cc
  11226. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  11227. cachedCompletedLength, cachedFilteredComletedLength,
  11228. cachedFilteredTotalLength.
  11229. Call updateCache().
  11230. (countMissingBlock): Return cachedNumMissingBlock.
  11231. (countMissingBlockNow): New function.
  11232. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  11233. (countFilteredBlockNow): New function.
  11234. (setBit): Call updateCache().
  11235. (unsetBit): Call updateCache().
  11236. (setBitfield): Call updateCache().
  11237. (clearAllBit): Call updateCache().
  11238. (setAllBit): Use setBitInternal instead of setBit.
  11239. Call updateCache().
  11240. (addFilter): Call updateCache().
  11241. (enableFilter): Call updateCache().
  11242. (disableFilter): Call updateCache().
  11243. (clearFilter): Call updateCache().
  11244. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  11245. (getFilteredTotalLengthNow): New function.
  11246. (getCompletedLength): Return cachedCompletedLength.
  11247. (getCompletedLengthNow): New function.
  11248. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  11249. (getFilteredCompletedLengthNow): New function.
  11250. (updateCache): New function.
  11251. * src/BtMessageReceiver.h
  11252. (BtMessageReceiverWeakHandle): New type definition.
  11253. * src/DefaultBtMessageReceiver.cc
  11254. (receiveHandshake): Use messageFactory member.
  11255. (sendHandshake): Use messageFactory member.
  11256. (receiveMessage): Use messageFactory member.
  11257. * src/DefaultBtMessageFactory.h
  11258. (dispatcher): New variable.
  11259. (requestFactory): New variable.
  11260. (peerConnection): New variablle.
  11261. (setBtMessageDispatcher): New function.
  11262. (setBtRequestFactory): New function.
  11263. (setPeerConnection): New function.
  11264. * src/SharedHandle.h
  11265. (RefCount): New class.
  11266. (WeakHandle): New class.
  11267. * src/PeerObject.h
  11268. (BtMessageReceiver.h): New include.
  11269. (PeerObject): Added btMessageReceiver.
  11270. (btMessageReceiver): New variable.
  11271. * src/Util.cc
  11272. (countBit): Simplified.
  11273. * src/BtCancelMessage.cc
  11274. (doReceivedAction): Use dispatcher member.
  11275. * src/BtRequestFactory.h
  11276. (BtRequestFactoryWeakHandle): New type definition.
  11277. * src/PeerStorage.h
  11278. (downloadSpeed): int -> uint32_t
  11279. (uploadSpeed): int -> uint32_t
  11280. (sessionDownloadLength): long long int -> uint64_t
  11281. (sessionUploadLength): long long int -> uint64_t
  11282. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11283. To add RecoverableException, FatalException:
  11284. * src/AbstractCommand.cc
  11285. (onAbort): Exception -> RecoverableException
  11286. * src/PeerAbstractCommand.h
  11287. (RecoverableException.h): New include.
  11288. (onAbort): Exception -> RecoverableException.
  11289. * src/PeerInteractionCommand.cc
  11290. (onAbort): Exception -> RecoverableException.
  11291. * src/PeerAbstractCommand.cc
  11292. (execute): Exception -> RecoverableException.
  11293. (onAbort): Exception -> RecoverableException.
  11294. * src/TorrentRequestInfo.cc
  11295. (execute): Exception -> RecoverableException.
  11296. * src/MetalinkRequestInfo.cc
  11297. (execute): Exception -> RecoverableException.
  11298. * src/MetaFileUtil.cc: RecoverableException.
  11299. * src/AbstractCommand.h
  11300. (onAbort): Exception -> RecoverableException.
  11301. * src/DlRetryEx.h: Exception -> RecoverableException.
  11302. * src/DlAbortEx.h: Exception -> RecoverableException.
  11303. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  11304. * src/Util.cc: Exception -> RecoverableException.
  11305. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  11306. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  11307. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  11308. To make ID static const int
  11309. * src/BtInterestedMessage.h
  11310. (ID_t): Removed.
  11311. (ID): New variable.
  11312. (getId): Made non-const.
  11313. * src/BtPieceMessage.h
  11314. (ID_t): Removed.
  11315. (ID): New variable.
  11316. (getId): Made non-const.
  11317. * src/BtChokeMessage.h
  11318. (ID_t): Removed.
  11319. (ID): New variable.
  11320. (getId): Made non-const.
  11321. * src/BtHaveAllMessage.h
  11322. (ID_t): Removed.
  11323. (ID): New variable.
  11324. (getId): Made non-const.
  11325. * src/BtKeepAliveMessage.h
  11326. (ID_t): Removed.
  11327. (ID): New variable.
  11328. (getId): Made non-const.
  11329. * src/BtHandshakeMessage.h
  11330. (ID): New variable.
  11331. (getId): Made non-const.
  11332. * src/BtSuggestPieceMessage.h
  11333. (ID_t): Removed.
  11334. (ID): New variable.
  11335. (getId): Made non-const.
  11336. * src/BtPortMessage.h
  11337. (ID_t): Removed.
  11338. (ID): New variable.
  11339. (getId): Made non-const.
  11340. * src/AbstractBtMessage.h
  11341. (id): Removed.
  11342. (AbstractBtMessage): Removed id.
  11343. (getId): Removed.
  11344. * src/BtHaveMessage.h
  11345. (ID_t): Removed.
  11346. (ID): New variable.
  11347. (getId): Made non-const.
  11348. * src/BtAllowedFastMessage.h
  11349. (ID_t): Removed.
  11350. (ID): New variable.
  11351. (getId): Made non-const.
  11352. * src/BtCancelMessage.h
  11353. (ID_t): Removed.
  11354. (ID): New variable.
  11355. (getId): Made non-const.
  11356. * src/BtNotInterestedMessage.h
  11357. (ID_t): Removed.
  11358. (ID): New variable.
  11359. (getId): Made non-const.
  11360. * src/BtChokeMessage.h
  11361. (ID_t): Removed.
  11362. (ID): New variable.
  11363. (getId): Made non-const.
  11364. * src/BtRejectMessage.h
  11365. (ID_t): Removed.
  11366. (ID): New variable.
  11367. (getId): Made non-const.
  11368. * src/BtBitfieldMessage.h
  11369. (ID_t): Removed.
  11370. (ID): New variable.
  11371. (getId): Made non-const.
  11372. * src/BtUnchokeMessage.h
  11373. (ID_t): Removed.
  11374. (ID): New variable.
  11375. (getId): Made non-const.
  11376. * src/BtRequestMessage.h
  11377. (ID_t): Removed.
  11378. (ID): New variable.
  11379. (getId): Made non-const.
  11380. * src/BtHaveMessage.h
  11381. (ID_t): Removed.
  11382. (ID): New variable.
  11383. (getId): Made non-const.
  11384. To add --force-truncate command-line option and a check whether
  11385. the file already exists:
  11386. * src/DirectDiskAdaptor.h
  11387. (getFilePath): Made virtual public.
  11388. * src/MultiDiskAdaptor.h
  11389. (File.h): New include.
  11390. (DiskWriterEntry::fileEntry): Made private.
  11391. (DiskWriterEntry::fileExists): New function.
  11392. (DiskWriterEntry::getFileEntry): New function.
  11393. (fileExists): New function.
  11394. (getFilePath): New function.
  11395. * src/TorrentRequestInfo.cc
  11396. (FatalException.h): New include.
  11397. (message.h): New include.
  11398. (RecoverableException.h): New include.
  11399. (execute): Added a check whether file is already exists or not.
  11400. * src/DiskAdaptor.h
  11401. (fileExists): New function.
  11402. (getFilePath): New function.
  11403. * src/main.cc
  11404. (showUsage): Added an explanation of --force-truncate command-line
  11405. option.
  11406. (main): Added --force-truncate command-line option.
  11407. * src/Exception.h
  11408. (setMsg): buf[256] -> buf[1024]
  11409. * src/CopyDiskWriter.h
  11410. (getFilePath): Made public virtual.
  11411. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  11412. (fileExists): New function.
  11413. * src/DownloadEngineFactory.cc
  11414. (newTorrentConsoleEngine): Don't open file here.
  11415. * src/message.h
  11416. (EX_FILE_ALREADY_EXISTS): New definition.
  11417. * src/prefs.h
  11418. (PREF_FOECE_TRUNCATE): New definition.
  11419. * src/HttpResponseCommand.cc
  11420. (handleDefaultEncoding): Added a check whether the file already exists.
  11421. * src/SegmentMan.h
  11422. (fileExists): New function.
  11423. (shouldCancelDownloadForSafety): New function.
  11424. * src/FtpNegotiateCommand.cc
  11425. (recvSize): Added a check whether the file already exists.
  11426. * src/AbstractSingleDiskAdaptor.cc
  11427. (File.h): New include.
  11428. (fileExists): New function.
  11429. * src/AbstractSingleDiskAdaptor.h
  11430. (getFilePath): Removed.
  11431. (fileExists): New function.
  11432. * src/SegmentMan.cc
  11433. (fileExists): New function.
  11434. (shouldCancelDownloadForSafety): New function.
  11435. To fix regression bug in torrent downloading:
  11436. * src/DefaultBtRequestFactory.cc
  11437. (doChokedAction): New function.
  11438. * src/DefaultBtRequestFactory.h
  11439. (doChokedAction): New function.
  11440. * src/DefaultBtMessageDispatcher.cc
  11441. (doChokedAction): Do not delete request if its target is in allowed
  11442. fast set.
  11443. * src/DefaultBtInteractive.cc
  11444. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  11445. (sendKeepAlive): Send keep alive message even if the outgoing message
  11446. queue is not empty.
  11447. (decideInterest): Simplified the code.
  11448. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  11449. it is already called when BtChokeMessage is received from a peer.
  11450. * src/BtRequestFactory.h
  11451. (doChokedAction): New function.
  11452. To clean up code:
  11453. * src/PeerInteractionCommand.h
  11454. (executeInternal): Added virtual keyword explicitly.
  11455. (prepareForRetry): Added virtual keyword explicitly.
  11456. (prepareForNextPeer): Added virtual keyword explicitly.
  11457. (onAbort): Added virtual keyword explicitly.
  11458. * src/RequestSlot.cc
  11459. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  11460. * src/BtPieceMessage.cc
  11461. (doReceivedAction): Added a debug log of piece's bitfield.
  11462. * src/Piece.h
  11463. (getBitfieldLength): New function.
  11464. * src/ByteArrayDiskWriter.cc
  11465. (clear): Added buf = 0 to avoid double free corruption.
  11466. * src/FileAllocator.cc
  11467. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  11468. Added cp.reset().
  11469. * src/BitfieldMan.h
  11470. (operator=): Rewritten.
  11471. * src/BitfieldMan.cc
  11472. (BitfieldMan): Initialized bitfield, useBitfield.
  11473. * src/PeerConnection.cc
  11474. (receiveMessage): Added a call to socket->readable() after getting
  11475. message length to avoid possible EOF.
  11476. * src/Util.cc
  11477. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  11478. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11479. To add an ability to pre-allocate file space:
  11480. * src/DirectDiskAdaptor.h: Rewritten.
  11481. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  11482. * src/MultiDiskAdaptor.h: Rewritten.
  11483. * src/DefaultPieceStorage.cc
  11484. (MultiDiskWriter.h): Removed include.
  11485. (PreAllocationDiskWriter.h): Removed include.
  11486. (FileAllocationMonitor.h): New include.
  11487. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  11488. (initStorage): Rewritten.
  11489. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11490. * src/FileAllocator.h: New class.
  11491. * src/FileAllocator.cc: New class.
  11492. * src/FileAllocationMonitor.h: New class.
  11493. * src/FileAllocationMonitor.cc: New class.
  11494. * src/ConsoleFileAllocationMonitor.h: New class.
  11495. * src/ConsoleFileAllocationMonitor.cc: New class.
  11496. * src/AbstractSingleDiskAdaptor.h: New class.
  11497. * src/AbstractSingleDiskAdaptor.cc: New class.
  11498. * src/DiskAdaptor.h
  11499. (Directory.h): Removed include.
  11500. (DiskWriter.h): Removed include.
  11501. (FileEntry.h): Removed include.
  11502. (diskWriter): Removed.
  11503. (DiskAdaptor): Removed diskWriter.
  11504. (openFile): Made pure virtual.
  11505. (closeFile): Made pure virtual.
  11506. (openExistingFile): Made pure virtual.
  11507. (initAndOpenFile): Made pure virtual.
  11508. (writeData): Made pure virtual.
  11509. (readData): Made pure virtual.
  11510. (sha1Sum): Made pure virtual.
  11511. (getStoreDir): Returns const reference of storeDir.
  11512. (DiskAdaptorHandle): New type definition.
  11513. * src/main.cc
  11514. (ConsoleFileAllocationMonitor.h): New include.
  11515. (showUsage): Added default value description of -s option.
  11516. Added the description of --file-allocation option.
  11517. (main): Set default value of --file-allocation option to 'none'.
  11518. Added --file-allocation command-line option.
  11519. Setup FileAllocationMonitorFactory.
  11520. * src/FtpInitiateConnectionCommand.cc
  11521. (executeInternal): Removed diskWriter related processing, which was
  11522. moved to FtpNegotiationCommand.cc.
  11523. * src/DirectDiskAdaptor.cc
  11524. (getFilePath): Made non-const.
  11525. * src/CopyDiskAdaptor.h
  11526. (DiskAdaptor.h): Removed include.
  11527. (DiskWriter.h): Removed include.
  11528. (AbstractSingleDiskAdaptor.h): New include.
  11529. (getFilePath): Made non-const. Added virtual keyword.
  11530. (CopyDiskAdaptor): Removed diskWriter.
  11531. (getTempFile): Returns const reference.
  11532. (CopyDiskAdaptorHandle): New type definition.
  11533. * src/ByteArrayDiskWriter.cc
  11534. (clear): Simplified.
  11535. (initAndOpenFile): Rewritten.
  11536. (openFile): Call initAndOpenFile()
  11537. * src/MultiDiskAdaptor.cc: Rewritten.
  11538. * src/DownloadEngineFactory.cc
  11539. (FileAllocator.h): New include.
  11540. (FileAllocationMonitor.h): New include.
  11541. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  11542. create DefaultDiskWriter with file allocator.
  11543. * src/DiskWriter.h
  11544. (initAndOpenFile): Added totalLength argument.
  11545. (openFile): Added totalLength argument.
  11546. * src/prefs.h
  11547. (PREF_FILE_ALLOCATION): New definition.
  11548. (V_PREALLOC): New definition.
  11549. (V_NONE): New definition.
  11550. * src/HttpResponseCommand.cc
  11551. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  11552. size.
  11553. * src/FtpNegotiateCommand.cc
  11554. (Util.h): New include.
  11555. (recvSize): Open file here.
  11556. * src/Util.h
  11557. (ullitos): New function.
  11558. * src/CopyDiskWriter.h
  11559. (getFilePath): Made non-const.
  11560. * src/DefaultDiskWriter.h
  11561. (Option.h): New include.
  11562. (totalLength): Removed.
  11563. (DefaultDiskWriter): Removed totalLength.
  11564. (initAndOpenFile): Added totalLength argument.
  11565. (DefaultDiskWriterHandle): New type definition.
  11566. (createNewDiskWriter): New function.
  11567. * src/Util.cc
  11568. (ullitos): New function.
  11569. * src/DefaultDiskWriter.cc
  11570. (message.h): New include.
  11571. (FileAllocator.h): New include.
  11572. (prefs.h): New include.
  11573. (Util.h): New include.
  11574. (DefaultDiskWriter): Removed totalLength.
  11575. (initAndOpenFile): Added file allocation.
  11576. (createNewDiskWriter): New function. Just for temporary solution.
  11577. It will be rewritten later.
  11578. * src/DiskAdaptor.cc
  11579. (DiskAdaptor): Removed diskWriter.
  11580. * src/AbstractDiskWriter.cc
  11581. (LogFactory.h): New include.
  11582. (AbstractDiskWriter): Added fileAllocator, logger.
  11583. (openFile): Added totalLength argument.
  11584. * src/AbstractDiskWriter.h
  11585. (FileAllocator.h): New include.
  11586. (Logger.h): New include.
  11587. (fileAllocator): New variable.
  11588. (logger): New variable.
  11589. (openFile): Added totalLength argument. Added virtual keyword
  11590. explicitly.
  11591. (openExistingFile): Added totalLength argument. Added virtual keyword
  11592. explicitly.
  11593. (closeFile): Added virtual keyword explicitly.
  11594. (sha1Sum): Added virtual keyword explicitly.
  11595. (writeData): Added virtual keyword explicitly.
  11596. (readData): Added virtual keyword explicitly.
  11597. (setFileAllocator): New function.
  11598. * src/DefaultPieceStorage.h
  11599. (FileAllocator.h): New include.
  11600. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11601. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  11602. * src/FileProgressMonitor.h: New class.
  11603. To compile aria2 on PC-BSD:
  11604. * src/DefaultBtContext.cc
  11605. (libgen.h): New include.
  11606. To fix memory leak:
  11607. * src/Exception.h
  11608. (~Exception): Delete cause. Fixed memory leak.
  11609. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11610. Rewritten a portion of bittorrent implementation:
  11611. * src/BtMessageValidator.h: New class.
  11612. * src/BtBitfieldMessageValidator.h: New class.
  11613. * src/BtHandshakeMessageValidator.h: New class.
  11614. * src/BtRequestMessageValidator.h: New class.
  11615. * src/BtSuggestPieceMessageValidator.h: New class.
  11616. * src/BtAllowedFastMessageValidator.h: New class.
  11617. * src/BtRejectMessageValidator.h: New class.
  11618. * src/BtCancelMessageValidator.h: New class.
  11619. * src/BtPieceMessageValidator.h: New class.
  11620. * src/BtHaveMessageValidator.h: New class.
  11621. * src/BtEventListener.h: New class.
  11622. * src/AbstractBtEventListener.h: New class.
  11623. * src/BtEvent.h: New class.
  11624. * src/BtChokingEvent.h: New class.
  11625. * src/BtChokedEvent.h: New class.
  11626. * src/BtCancelSendingPieceEvent.h: New class.
  11627. * src/BtAbortOutstandingRequestEvent.h: New class.
  11628. * src/Randomizer.h: New class.
  11629. * src/SimpleRandomizer.h: New class.
  11630. * src/BtMessage.h: New class.
  11631. * src/AbstractBtMessage.h: New class.
  11632. * src/SimpleBtMessage.h: New class.
  11633. * src/BtHaveMessage.h: New class.
  11634. * src/BtInterestedMessage.h: New class.
  11635. * src/BtAllowedFastMessage.h: New class.
  11636. * src/BtUnchokeMessage.h: New class.
  11637. * src/BtCancelMessage.h: New class.
  11638. * src/BtNotInterestedMessage.h: New class.
  11639. * src/BtChokeMessage.h: New class.
  11640. * src/BtHaveNoneMessage.h: New class.
  11641. * src/BtHandshakeMessage.h: New class.
  11642. * src/BtSuggestPieceMessage.h: New class.
  11643. * src/BtHaveMessage.h: New class.
  11644. * src/BtPieceMessage.h: New class.
  11645. * src/BtHaveAllMessage.h: New class.
  11646. * src/BtKeepAliveMessage.h: New class.
  11647. * src/BtPortMessage.h: New class.
  11648. * src/BtRejectMessage.h: New class.
  11649. * src/BtBitfieldMessage.h: New class.
  11650. * src/BtRequestMessage.h: New class.
  11651. * src/DefaultBtRequestFactory.h: New class.
  11652. * src/DefaultBtMessageReceiver.h: New class.
  11653. * src/BtInteractive.h: New class.
  11654. * src/BtMessageDispatcher.h: New class.
  11655. * src/DefaultBtMessageDispatcher.h: New class.
  11656. * src/DefaultBtInteractive.h: New class.
  11657. * src/BitfieldManFactory.h: New class.
  11658. * src/HandleRegistry.h: New class.
  11659. * src/BtMessageFactory.h: New class.
  11660. * src/BtMessageReceiver.h: New class.
  11661. * src/DefaultBtMessageFactory.h: New class.
  11662. * src/PeerObject.h: New class.
  11663. * src/BtRequestFactory.h: New class.
  11664. * src/SuggestPieceMessage.h: Removed.
  11665. * src/PortMessage.h: Removed.
  11666. * src/SuggestPieceMessage.h: Removed.
  11667. * src/KeepAliveMessage.h: Removed.
  11668. * src/HandshakeMessage.h: Removed.
  11669. * src/PeerInteraction.h: Removed.
  11670. * src/UnchokeMessage.h: Removed.
  11671. * src/PieceMessage.h: Removed.
  11672. * src/RequestMessage.h: Removed.
  11673. * src/InterestedMessage.h: Removed.
  11674. * src/HaveMessage.h: Removed.
  11675. * src/CancelMessage.h: Removed.
  11676. * src/RejectMessage.h: Removed.
  11677. * src/AllowedFastMessage.h: Removed.
  11678. * src/HaveNoneMessage.h: Removed.
  11679. * src/SimplePeerMessage.h: Removed.
  11680. * src/HaveAllMessage.h: Removed.
  11681. * src/BitfieldMessage.h: Removed.
  11682. * src/PeerMessageFactory.h: Removed.
  11683. * src/NotInterestedMessage.h: Removed.
  11684. * src/ChokeMessage.h: Removed.
  11685. * src/PeerMessage.h: Removed.
  11686. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11687. To know root cause of exception:
  11688. * src/Exception.h
  11689. (cause): New variable.
  11690. (Exception): Added a parameter.
  11691. (getMsg): Return const reference to msg.
  11692. (getCause): New function.
  11693. * src/DlRetryEx.h
  11694. (DlRetryEx): Added a parameter 'cause'.
  11695. Added an overloaded constructor.
  11696. (DlAbortEx): Added a parameter 'cause'.
  11697. Added an overloaded constructor.
  11698. * src/SimpleLogger.cc
  11699. (writeLog): Log nested exception messages recursively.
  11700. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11701. * src/DefaultBtProgressInfoFile.cc
  11702. (load): Fixed memory leak when the infohash doesn't match.
  11703. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11704. * src/DefaultPeerStorage.cc
  11705. (calculateStat): Simplified the code by combining 2 loops into 1.
  11706. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11707. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  11708. for BitTorrent download:
  11709. * src/PeerAbstractCommand.cc
  11710. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  11711. * src/main.cc:
  11712. (timeoutSpecified): Removed.
  11713. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  11714. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  11715. * src/TorrentRequestInfo.cc
  11716. (timeoutSpecified): Removed.
  11717. (torrentHandler): Removed timeoutSpecified and the adjustment of
  11718. timeout value.
  11719. * src/prefs.h
  11720. (PREF_BT_TIMEOUT): New definition.
  11721. Delete unused variables:
  11722. * src/TorrentRequestInfo.cc
  11723. (requestInfo): Removed.
  11724. Move setSignalHander to Util::setGlobalSignalHandler:
  11725. * src/TorrentRequestInfo.cc:
  11726. setSignalHander -> Util::setGlobalSignalHandler
  11727. * src/main.cc
  11728. (setSignalHander): Removed.
  11729. (main): setSignalHander -> Util::setGlobalSignalHandler
  11730. * src/Util.h
  11731. (setGlobalSignalHandler): New function.
  11732. * src/Util.cc
  11733. (setGlobalSignalHandler): New function.
  11734. * src/UrlRequestInfo.cc:
  11735. setSignalHander -> Util::setGlobalSignalHandler
  11736. Reset peer status in order to exit gracefully:
  11737. * src/PeerAbstractCommand.cc
  11738. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  11739. To fix the bug that causes the number of bytes uploaded is not saved
  11740. to .aria2 file:
  11741. * src/DefaultPeerStorage.h
  11742. (removedPeerSessionDownloadLength): New variable.
  11743. (removedPeerSessionUploadLength): New variable.
  11744. * src/DefaultPeerStorage.cc
  11745. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  11746. removedPeerSessionUploadLength(0).
  11747. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  11748. through all peers, and then add removedPeerSessionDownloadLength(
  11749. removedPeerSessionUploadLength) to it.
  11750. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  11751. (to) the peer to removedPeerSessionDownloadLength
  11752. (removedPeerSessionUploadLength).
  11753. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11754. To add Metalink location option:
  11755. * src/MetalinkRequestInfo.cc
  11756. (execute): Call MetalinkEntry::setLocationPreference()
  11757. * src/main.cc
  11758. (showUsage): Added the help message for --metalink-location option.
  11759. (main): Added --metalink-location option.
  11760. * src/prefs.h
  11761. (PREF_METALINK_LOCATION): New definition.
  11762. * src/MetalinkEntry.cc
  11763. (AddLocationPreference): New function object.
  11764. (setLocationPreference): New function.
  11765. * src/Xml2MetalinkProcessor.cc
  11766. (getResource): Set location attribute to MetalinkResource
  11767. To show URLs to download
  11768. * src/UrlRequestInfo.h
  11769. (printUrls): New function.
  11770. To add multiple <file> Metalink support:
  11771. * src/MetalinkEntry.h
  11772. (MetalinkResources): Removed.
  11773. (setLocationPreference): New function.
  11774. (MetalinkEntryHandle): New type definition.
  11775. (MetalinkEntries): New type definition.
  11776. * src/Xml2MetalinkProcessor.h
  11777. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11778. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11779. (parseFile): Metalinker* -> MetalinkerHandle
  11780. * src/UrlRequestInfo.h
  11781. (execute): RequestInfo* -> RequestInfos
  11782. * src/MetalinkRequestInfo.cc
  11783. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  11784. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  11785. (execute): RequestInfo* -> RequestInfos
  11786. Added multiple <file> support. Print filename when it is queued.
  11787. * src/MetalinkRequestInfo.h
  11788. (execute): RequestInfo* -> RequestInfos
  11789. (getDownloadEngine): Removed.
  11790. * src/RequestInfo.h
  11791. (RequestInfoHandle): New type definition.
  11792. (RequestInfos): New type definition.
  11793. (execute): RequestInfo* -> RequestInfos
  11794. (getDownloadEngine): Removed.
  11795. * src/MetalinkResource.h
  11796. (MetalinkResourceHandle): New type definition.
  11797. (MetalinkResources): New type definition.
  11798. * src/MetalinkEntry.cc
  11799. (~MetalinkEntry): Removed the deletion of the elements of resources,
  11800. because the element is now of type MetalinkResourceHandle.
  11801. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  11802. (Supported): MetalinkResource* -> MetalinkResourceHandle
  11803. (dropUnsupportedResource): Removed the deletion of the elements of
  11804. resources because the element is now of type MetalinkResourceHandle.
  11805. * src/Xml2MetalinkProcessor.cc
  11806. (parseFile): Metalinker* -> MetalinkerHandle
  11807. MetalinkEntry* -> MetalinkEntryHandle
  11808. Removed try-catch block.
  11809. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  11810. MetalinkResource* -> MetalinkResourceHandle
  11811. Removed try-catch block.
  11812. (getResource): MetalinkResource* -> MetalinkResourceHandle
  11813. Free result by using xmlXPathFreeObject()
  11814. * src/Metalinker.cc
  11815. (~Metalinker): Removed the deletion of entries.
  11816. MetalinkEntry* -> MetalinkEntryHandle
  11817. (queryEntry): Add multiple <file> Metalink support.
  11818. * src/Metalinker.h
  11819. (MetalinkEntries): Removed.
  11820. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11821. * src/MetalinkProcessor.h
  11822. (parseFile): Metalinker* -> MetalinkerHandle
  11823. Bug fixes:
  11824. * src/PeerChokeCommand.cc
  11825. (execute): cat01->cat02
  11826. * src/DefaultPieceStorage.cc
  11827. (DefaultPieceStorage): Added diskAdaptor(0)
  11828. * src/TrackerWatcherComand.cc:
  11829. (execute): Use btAnnounce->noMoreAnnounce()
  11830. to determin whether the function returns true or not.
  11831. * src/TrackerUpdateCommand.cc:
  11832. (execute): Use btAnnounce->noMoreAnnounce()
  11833. to determin whether the function returns true or not.
  11834. * src/FtpConnection.cc
  11835. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11836. This is the fix of the busy loop bug.
  11837. * src/DownloadCommand.cc
  11838. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11839. cached PeerStat.
  11840. The value of "name" entry in torrent file is now set by
  11841. *DiskAdaptor::setTopDir(...) methods.
  11842. * src/MultiDiskAdaptor.h
  11843. (topDir): New variable.
  11844. (setTopDir): New function.
  11845. (getTopDir): New function.
  11846. * src/MultiDiskAdaptor.cc
  11847. (getFilePath): Concat storDir, "/" and topDir.
  11848. (mkdir): Use getFilePath() to get the directory path for output.
  11849. * src/DefaultPieceStorage.cc
  11850. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11851. CopyDiskAdaptor.
  11852. * src/CopyDiskAdaptor.h
  11853. (topDir): New variable.
  11854. (setTopDir): New function.
  11855. (getTopDir): New function.
  11856. * src/CopyDiskAdaptor.cc
  11857. (fixFilename): Updated.
  11858. Misc
  11859. * src/UrlRequestInfo.h
  11860. (e): Removed.
  11861. (UrlRequestInfo): Removed e.
  11862. (getDownloadEngine): Removed.
  11863. * src/UrlRequestInfo.cc
  11864. (handler): Rewritten.
  11865. (printUrls): New function.
  11866. (execute): Call printUrls().
  11867. * src/HandshakeMessage.cc
  11868. (check): peerinteraction->getBtContext() -> btContext
  11869. * src/PeerInteraction.h
  11870. (getBtContext): Removed.
  11871. * src/TorrentRequestInfo.h
  11872. (execute): RequestInfo* -> RequestInfos
  11873. (getDownloadEngine): Removed.
  11874. * src/TorrentRequestInfo.cc
  11875. (haltRequested): Removed.
  11876. (btHaltRequested): New variable.
  11877. (torrentHandler): haltRequested -> btHaltRequested
  11878. (execute): RequestInfo* -> RequestInfos
  11879. * src/TorrentConsoleDownloadEngine.cc
  11880. (afterEachIteration): haltRequested -> btHaltRequested.
  11881. * src/ConsoleDownloadEngine.h
  11882. (initStatistics): Added virtual.
  11883. (calculateStatistics): Added virtual.
  11884. (onEndOfRun): Added virtual.
  11885. (afterEachIteration): Added virtual.
  11886. * src/ConsoleDownloadEngine.cc
  11887. (haltRequested): New variable.
  11888. (afterEachIteration): New function.
  11889. * src/main.cc
  11890. (requestInfo): Removed.
  11891. * src/SegmentMan.cc
  11892. (findSlowerSegmentEntry): Refactored.
  11893. * Release 0.9.0
  11894. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11895. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11896. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11897. * src/TorrentMan.h: Removed.
  11898. * src/TorrentMan.cc: Removed.
  11899. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11900. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11901. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11902. * src/PeerAbstractCommand.cc: Use btRuntime.
  11903. * src/BtContextAwareCommand.h: New class.
  11904. * src/FileEntry.h: Added accessor methods for following variables.
  11905. (path): Made private.
  11906. (length): Made private.
  11907. (offset): Made private.
  11908. (extracted): Made private.
  11909. (requested): Made private.
  11910. (FileEntries): New definition.
  11911. (FileEntryHandle): New definition.
  11912. * src/FileEntry.cc: New file.
  11913. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11914. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11915. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11916. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11917. * src/PieceStorage.h: New file.
  11918. * src/PeerInteractionCommand.h: Use btContext.
  11919. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11920. btRuntime.
  11921. * src/DefaultBtProgressInfoFile.h: New file.
  11922. * src/DefaultBtProgressInfoFile.cc: New file.
  11923. * src/File.cc
  11924. (Util.h): New include.
  11925. (mkdirs): New function.
  11926. * src/MultiDiskAdaptor.h
  11927. (mkdir): New function.
  11928. * src/PeerListProcessor.h
  11929. (Peers): Removed.
  11930. * src/PeerInteraction.h
  11931. (torrentMan): Removed.
  11932. (btContext): New variable.
  11933. (peerStorage): New variable.
  11934. (pieceStorage): New variable.
  11935. (btAnnounce): New variable.
  11936. (getTorrentMan): Removed.
  11937. (getBtContext): New function.
  11938. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11939. btAnnounce.
  11940. * src/HandshakeMessage.h
  11941. (TorrentMan.h): Removed.
  11942. * src/HandshakeMessage.cc: Use btContext.
  11943. * src/DefaultBtAnnounce.cc: New file.
  11944. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11945. * src/DefaultPieceStorage.cc: New file.
  11946. * src/DefaultBtContext.h: New file.
  11947. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11948. Use the accessor methods of FileEntry.
  11949. * src/CookieBox.cc: Updated to use Util::slice().
  11950. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11951. * src/common.h (SharedHandle.h): New include.
  11952. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11953. pieceStorage.
  11954. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11955. * src/DiskAdaptor.h
  11956. (topDir): Removed.
  11957. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11958. (setTopDir): Removed.
  11959. (getTopDir): Removed.
  11960. * src/BtContext.h: New file.
  11961. * src/DefaultPeerStorage.h: New file.
  11962. * src/PieceMessage.h (TorrentMan.h): Removed.
  11963. * src/RequestMessage.h (TorrentMan.h): Removed.
  11964. * src/TorrentDownloadEngine.h
  11965. (uploadLength): New variable.
  11966. (btContext): New variable.
  11967. (btRuntime): New variable.
  11968. (pieceStorage): New variable.
  11969. (peerStorage): New variable.
  11970. (btAnnounce): New variable.
  11971. (btProgressInfoFile): New variable.
  11972. (torrentMan): Removed.
  11973. (setBtContext): New function.
  11974. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11975. peerStorage, btAnnounce, btProgressInfoFile.
  11976. * src/Piece.h
  11977. (toString): New function.
  11978. (Pieces): New type definition.
  11979. * src/Peer.h
  11980. (active): New variable.
  11981. (Peer): Added active.
  11982. (activate): Set active to true.
  11983. (deactivate): Set active to false.
  11984. (isActive): New function.
  11985. (Peers): New type definition.
  11986. * src/DirectDiskAdaptor.cc
  11987. (getFilePath): Use the accessor methods of FileEntry.
  11988. * src/TorrentConsoleDownloadEngine.h
  11989. (afterEachIteration): New function.
  11990. * src/TorrentConsoleDownloadEngine.cc
  11991. (haltRequested): New variable.
  11992. (sendStatistics): Use pieceStorage, btRuntime.
  11993. (afterEachIteration): New function.
  11994. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11995. * src/Directry.h
  11996. (Directory): New function.
  11997. (DirectoryHandle): New type definition.
  11998. * src/BtProgressInfoFile.h: New file.
  11999. * src/RequestMessage.cc: Use pieceStorage.
  12000. * src/BtRuntime.h: New file.
  12001. * src/DefaultBtContext.cc: New file.
  12002. * src/BitfieldMan.h
  12003. (getCompletedLength): New function(private).
  12004. (getCompletedLength): New function.
  12005. (getFilteredCompletedLength): New function.
  12006. * src/BitfieldMan.h
  12007. (getCompletedLength): New function(private).
  12008. (getCompletedLength): New function.
  12009. (getFilteredCompletedLength): New function.
  12010. * src/MultiDiskAdaptor.cc
  12011. (mkdir): New function.
  12012. (openFile): Call mkdir().
  12013. (initAndOpenFile): Call mkdir().
  12014. * src/CancelMessage.h
  12015. (TorrentMan.h): Removed.
  12016. * src/RejectMessage.h
  12017. (TorrentMan.h): Removed.
  12018. * src/DownloadEngineFactory.cc
  12019. (DefaultPieceStorage.h): New include.
  12020. (DefaultPeerStorage.h): New include.
  12021. (DefaultBtAnnounce.h): New include.
  12022. (DefaultBtProgressInfoFile.h): New include.
  12023. (newTorrentConsoleEngine): Rewritten.
  12024. * src/ShareRatioSeedCriteria.h
  12025. (torrentMan): Removed.
  12026. (btContext): New variable.
  12027. (peerStorage): New variable.
  12028. (btRuntime): New variable.
  12029. (evaluate): Use btContext, btRuntime, peerStorage.
  12030. * src/AnnounceTier.h: New file.
  12031. * src/BtAnnounce.h: New file.
  12032. * src/BtRegistry.h: New file.
  12033. * src/PeerInitiateConnectionCommand.h: Added btContext.
  12034. * src/PeerConnection.h (TorrentMan.h): Removed.
  12035. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  12036. * src/Util.h
  12037. (slice): Added an argument.
  12038. * src/Util.cc
  12039. (slice): Added an argument to control whether trim is made or not.
  12040. * src/PeerStorage.h: New file.
  12041. * src/BtRegistry.cc: New file.
  12042. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  12043. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  12044. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  12045. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  12046. * src/TorrentRequestInfo.h
  12047. (e): Removed.
  12048. (showFileEntry): Added an argument.
  12049. (getDownloadEngine): Return 0.
  12050. * src/DefaultBtAnnounce.h: New file.
  12051. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  12052. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  12053. * src/PeerMessageFactory.h
  12054. (btContext): New variable.
  12055. (pieceStorage): New variable.
  12056. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  12057. btAnnounce.
  12058. * src/DiskAdaptor.cc
  12059. (DiskAdaptor): Removed topDir.
  12060. (~DiskAdaptor): Removed topDir.
  12061. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  12062. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  12063. * src/File.h (mkdirs): New function.
  12064. * src/DefaultPeerStorage): New file.
  12065. * src/DownloadEngineFactory.h
  12066. (newTorrentConsoleEngine): Use btContext.
  12067. * src/BtContextAwareCommand.cc: New file.
  12068. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  12069. * src/PeerMessage.h
  12070. (btContext): New variable.
  12071. (peerStorage): New variable.
  12072. (pieceStorage): New variable.
  12073. (setBtContext): New function.
  12074. * src/Directry.cc
  12075. (Directory): New function.
  12076. (createDir): Do nothing if name.size() == 0.
  12077. * src/AnnounceList.h
  12078. (AnnounceTier): Removed.
  12079. (AnnounceTiers): Removed.
  12080. * src/DefaultPieceStorage.h: New file.
  12081. * src/Piece.cc (toString): New function.
  12082. To fix typo:
  12083. * src/main.cc (showVersion): Fixed typo.
  12084. To fix compile warning:
  12085. * src/DelegatingPeerListProcessor.cc
  12086. (canHandle): Added "return false".
  12087. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12088. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  12089. make the process of announce request testable.
  12090. * src/TrackerWatcherCommand.h
  12091. (TimeA2.h): Removed.
  12092. (interval): Removed.
  12093. (checkPoint): Removed.
  12094. (createRequestCommand): Added an argument 'url'.
  12095. (TrackerWatherCommand): Removed interval.
  12096. (createCommand): New function.
  12097. * src/DownloadEngineFactory.cc
  12098. (newTorrentConsoleEngine): Updated according to the changes in
  12099. TrackerWatherCommand.
  12100. * src/TorrentMan.cc
  12101. (DelegatingPeerListProcessor.h): New includes.
  12102. (TorrentMan): Added the initialization of announceInterval.
  12103. (isStoppedAnnounceReady): New function.
  12104. (isCompletedAnnounceReady): New function.
  12105. (isDefaultAnnounceReady): New function.
  12106. (isAnnounceReady): New function.
  12107. (getAnnounceUrl): New function.
  12108. (announceStart): New function.
  12109. (announceFailure): New function.
  12110. (announceSuccess): New function.
  12111. (isAllAnnounceFailed): New function.
  12112. (resetAnnounce): New function.
  12113. (processAnnounceResponse): New function.
  12114. (needMorePeerConnection): New function.
  12115. (noMoreAnnounce): New function.
  12116. * src/TrackerUpdateCommand.h
  12117. (getTrackerResponse): int->size_t
  12118. * src/TorrentMan.h
  12119. (isStoppedAnnounceReady): New function.
  12120. (isCompletedAnnounceReady): New function.
  12121. (isDefaultAnnounceReady): New function.
  12122. (announceInterval): New variable.
  12123. (isAnnounceReady): New function.
  12124. (getAnnounceUrl): New function.
  12125. (announceStart): New function.
  12126. (announceFailure): New function.
  12127. (announceSuccess): New function.
  12128. (isAllAnnounceFailed): New function.
  12129. (resetAnnounce): New function.
  12130. (processAnnounceResponse): New function.
  12131. (needMorePeerConnection): New function.
  12132. (noMoreAnnounce): New function.
  12133. * src/TrackerWatcherCommand.cc
  12134. (TrackerWatherCommand): Removed interval and checkPoint.
  12135. (execute): Rewritten.
  12136. (createCommand): New function.
  12137. (createRequestCommand): Rewritten.
  12138. * src/TrackerUpdateCommand.cc
  12139. (MetaFileUtil.h): Removed.
  12140. (DelegatingPeerListProcessor.h): Removed.
  12141. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  12142. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12143. Request -> RequestHandle:
  12144. * src/HttpResponseCommand.h: Request->RequestHandle
  12145. * src/AbstractCommand.cc: Request->RequestHandle
  12146. * src/HttpDownloadCommand.cc: Request->RequestHandle
  12147. * src/HttpRequestCommand.cc: Request->RequestHandle
  12148. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  12149. * src/AbstractCommand.h: Request->RequestHandle
  12150. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  12151. * src/HttpResponseCommand.cc: Request->RequestHandle
  12152. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  12153. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  12154. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  12155. * src/HttpConnection.h: Request->RequestHandle
  12156. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  12157. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  12158. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12159. * src/DownloadCommand.h: Request->RequestHandle
  12160. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  12161. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  12162. * src/HttpRequestCommand.h: Request->RequestHandle
  12163. * src/FtpNegotiateCommand.h: Request->RequestHandle
  12164. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  12165. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  12166. * src/HttpDownloadCommand.h: Request->RequestHandle
  12167. * src/FtpConnection.cc: Request->RequestHandle
  12168. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  12169. * src/UrlRequestInfo.cc: Request->RequestHandle
  12170. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  12171. * src/HttpConnection.h: Request->RequestHandle
  12172. * src/DownloadCommand.cc: Request->RequestHandle
  12173. * src/FtpConnection.h: Request->RequestHandle
  12174. * src/FtpDowndloadCommand.h: Request->RequestHandle
  12175. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  12176. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  12177. * src/Request.h
  12178. (SharedHandle.h): New include.
  12179. (RequestHandle): New type definition.
  12180. (Requests): Redefined.
  12181. To add MULTITRACKER support:
  12182. * src/TrackerWatcherCommand.h
  12183. (createRequestCommand): New function.
  12184. * src/DownloadEngineFactory.cc
  12185. (newTorrentConsoleEngine): Removed req.
  12186. * src/prefs.h
  12187. (PREF_TRACKER_MAX_TRIES): New definition.
  12188. * src/TorrentMan.cc
  12189. (TorrentMan): Removed req. Added trackerNumTry.
  12190. (~TorrentMan): Removed req.
  12191. (setupInternal1): Added announceList.
  12192. * src/TorrentRequestInfo.cc
  12193. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  12194. announces is now specified by PREF_TRACKER_MAX_TRIES.
  12195. * src/main.cc
  12196. (main): Added PREF_TRACKER_MAX_TRIES.
  12197. * src/TorrentMan.h
  12198. (Request.h): Removed.
  12199. (AnnounceList.h): New include.
  12200. (trackerNumTry): New variable.
  12201. (req): Removed.
  12202. (announceList): New variable.
  12203. * src/TrackerWatcherCommand.cc
  12204. (execute): Rewritten.
  12205. (createRequestCommand): New function.
  12206. * src/TrackerUpdateCommand.cc
  12207. (execute): Updated with the use of AnnounceList.
  12208. * src/AnnounceList.cc: New class.
  12209. * src/AnnounceList.h: New class.
  12210. To fix typo:
  12211. * src/prefs.h
  12212. (PREF_MAX_TRIES): max_try->max_tries
  12213. To not to decode "+" as space in URL decode:
  12214. * src/Util.cc
  12215. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  12216. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12217. To add timeout to async name resolution:
  12218. * src/AbstractCommand.h
  12219. (nameResolveFinished): New function. This is not elegant way. It needs
  12220. to be more refined.
  12221. (nameResolverCheck): New variable.
  12222. * src/AbstractCommand.cc
  12223. (AbstractCommand): Added nameResolverCheck.
  12224. (execute): Added the check whether the name resolution has finished.
  12225. (setNameResolverCheck): Set nameResolverCheck to true.
  12226. (disableNameResolverCheck): Set nameResolverCheck to false.
  12227. (nameResolverFinished): New function.
  12228. * src/FtpInitiateConnectionCommand.h
  12229. (nameResolverFinished): New function.
  12230. * src/FtpInitiateConnectionCommand.cc
  12231. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12232. * src/HttpInitiateConnectionCommand.h
  12233. (nameResolverFinished): New function.
  12234. * src/HttpInitiateConnectionCommand.cc
  12235. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  12236. * src/prefs.h
  12237. (PREF_DNS_TIMEOUT): New definition.
  12238. * src/main.cc
  12239. (main): Added PREF_DNS_TIMEOUT.
  12240. To add the support for a non-compact response from a tracker:
  12241. * src/PeerListProcessor.h: New class.
  12242. * src/DefaultPeerListProcessor.h: New class.
  12243. * src/DefaultPeerListProcessor.cc: New class.
  12244. * src/CompactPeerListProcessor.h: New class.
  12245. * src/CompactPeerListProcessor.cc: New class.
  12246. * src/DelegatingPeerListProcessor.h: New class.
  12247. * src/DelegatingPeerListProcessor.cc: New class.
  12248. * src/TorrentMan.cc
  12249. (addPeer): New function(overload).
  12250. (addPeer): Delete unused peers only when new peer is added.
  12251. * src/TorrentMan.h
  12252. (PeerListProcessor.h): Included.
  12253. (Peers): Removed.
  12254. (addPeer): New function(overload).
  12255. * src/TrackerUpdateCommand.cc
  12256. (netinet/in.h): Removed.
  12257. (DelegatingPeerListProcessor.h): Included.
  12258. (execute): Updated to use DelegatingPeerListProcessor.
  12259. To fix the memory leak in TorrentMan::peers:
  12260. * src/PeerAbstractCommand.cc
  12261. (onAbort): Added peer->resetStatus().
  12262. * src/Peer.h
  12263. (resetStatus): Made public.
  12264. To improve the precision of the speed calculation:
  12265. * src/SpeedCalc.h
  12266. (nextInterval): New variable.
  12267. * src/SpeedCalc.cc
  12268. (reset): Added nextInterval.
  12269. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  12270. (changeSw): Set nextInterval to 15 seconds relative to the current
  12271. instant time.
  12272. * src/main.cc
  12273. (showVersion): Updated.
  12274. (showUsage): Updated.
  12275. * Release 0.8.1
  12276. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12277. * src/main.cc
  12278. (showUsage): Commented out --min-segment-size option.
  12279. (main): Commented out --min-segment-size option.
  12280. * Release 0.8.0
  12281. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12282. * src/*.{h,cc}:
  12283. Added an exception to the license which allows linking with OpenSSL.
  12284. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12285. * src/AbstractCommand.cc
  12286. (execute): Check whether the download has finished before checking
  12287. socket status.
  12288. Return true if peerStat->getStatus() == REQUEST_IDLE.
  12289. Do not exit even if no segment is available.
  12290. * src/prefs.h
  12291. (PREF_STARTUP_IDLE_TIME): New definition.
  12292. * src/PeerInteractionCommand.cc
  12293. (executeInternal): Removed max speed limit. Because it performs bad.
  12294. (receiveMessages): Added max speed limit. This was better than above,
  12295. but still a little bit to be desired. Sometimes the download speed
  12296. became much faster than I specified.
  12297. * src/SpeedCalc.h
  12298. (start): New variable.
  12299. (accumulatedLength): New variable.
  12300. (getAvgSpeed): New function.
  12301. * src/SpeedCalc.cc
  12302. (reset): Added start, accumulatedLength.
  12303. (update): Added calculation of an average speed.
  12304. (getAvgSpeed): New function.
  12305. * src/DownloadCommand.h
  12306. (sw): Removed.
  12307. * src/main.cc
  12308. (main): Added PREF_STARTUP_IDLE_TIME.
  12309. * src/PeerStat.h
  12310. (STATUS): Added REQUEST_IDLE.
  12311. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  12312. (getAvgDownloadSpeed): New function
  12313. (requestIdle): New function.
  12314. * src/SegmentMan.h
  12315. (SegmentEntryHandle): New type definition.
  12316. (SegmentEntries): Now holds SegmentEntryHandle.
  12317. (findSlowerSegmentEntry): New funtion.
  12318. * src/SegmentMan.cc
  12319. (save): Updated according to the changes in SegmentEntries.
  12320. (read): Updated according to the changes in SegmentEntries.
  12321. (FindSegmentEntryByIndex): Updated according to the changes in
  12322. SegmentEntries.
  12323. (FindSegmentEntryByCuid): Updated according to the changes in
  12324. SegmentEntries.
  12325. (checkoutSegment): Updated according to the changes in SegmentEntries.
  12326. (onNullBitfield): Updated according to the changes in SegmentEntries.
  12327. Renamed uitr as itr.
  12328. (findSlowerSegmentEntry): New function.
  12329. (getSegment): Updated according to the changes in SegmentEntries.
  12330. Added the feature that cancels the segment with slow server and fast
  12331. one takes it over.
  12332. (cancelSegment): Updated according to the changes in SegmentEntries.
  12333. (getDownloadLength): Updated according to the changes in
  12334. SegmentEntries.
  12335. (init): Assigned 0 to bitfield after deleting it.
  12336. * src/DownloadCommand.cc
  12337. (STARTUP_IDLE_TIME): Removed.
  12338. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  12339. * src/PeerChokeCommand.cc
  12340. (optUnchokingPeer): Updated according to the changes in Peer.
  12341. (ResetDelta): Removed.
  12342. (UploadFaster): Updated according to the changes in Peer.
  12343. (DownloadFaster): Updated according to the changes in Peer.
  12344. (execute): I clarify the meaning of "upload" and "download" here.
  12345. "upload" means the transfer from localhost to remote host.
  12346. "download" means the transfer from remote host to localhost.
  12347. Based on this rule, I swapped orderByUploadRate and
  12348. orderByDownloadRate.
  12349. * src/PeerInteractionCommand.cc
  12350. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  12351. (executeInternal): Removed the argument of
  12352. peerInteraction->sendMessages().
  12353. (receiveMessages): Rewritten download speed limit.
  12354. (sendKeepAlive): Removed peerInteraction->sendMessages().
  12355. * src/HttpResponseCommand.cc
  12356. (handleDefaultEncoding): If file size is unknown in torrent request,
  12357. do not call segmentMan->initBitfield() here.
  12358. Disabled persistent connection feature in torrent request.
  12359. * src/UrlRequestInfo.h
  12360. (UrlRequestInfo): Removed const qualifier from option.
  12361. * src/TorrentMan.h
  12362. (TransferStat): New class.
  12363. (deltaDownloadLength): Removed.
  12364. (deltaUploadLength): Removed.
  12365. (addDeltaDownloadLength): Removed.
  12366. (getDeltaDownloadLength): Removed.
  12367. (resetDeltaDownloadLength): Removed.
  12368. (addDeltaUploadLength): Removed.
  12369. (getDeltaUploadLength): Removed.
  12370. (resetDeltaUploadLength): Removed.
  12371. (addActivePeer): Added peer->activate().
  12372. (deleteActivePeer): Added peer->deactivate().
  12373. (calculateStat): New function.
  12374. * src/TorrentMan.cc
  12375. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  12376. (calculateStat): New function.
  12377. * src/PeerInteraction.h
  12378. (uploadLimit): Removed.
  12379. (option): New variable.
  12380. (setUploadLimit): Removed.
  12381. (getUploadSpeed): Removed.
  12382. (sendMessages): Removed the argument "currentUploadSpeed".
  12383. * src/PeerInteraction.cc
  12384. (prefs.h): Included.
  12385. (PeerInteraction): Removed uploadLimit. Added option.
  12386. (sendMessages): Rewritten upload speed limit.
  12387. (sendHandshake): Removed the argument from sendMessages().
  12388. (sendBitfield): Removed the argument from sendMessages().
  12389. * src/PeerAbstractCommand.cc
  12390. (execute): Commented out the portion of upload limit.
  12391. (onAbort): Removed peer->resetStatus().
  12392. * src/TorrentRequestInfo.cc
  12393. (timeoutSpecified): Declared extern.
  12394. (execute): Set timeout to 180 if timeout is not specified by.
  12395. command-line.
  12396. * src/PieceMessage.cc
  12397. (receivedAction): Added peer->updateDownloadLength().
  12398. Removed peer->addPeerUpload().
  12399. Removed torrentMan->addDeltaDownloadLength().
  12400. (send): Added peer->updateUploadLength().
  12401. Removed peer->addPeerDownload().
  12402. Removed torrentMan->addDeltaUploadLength().
  12403. * src/main.cc
  12404. (timeoutSpecified): New variable.
  12405. (main): Set timeoutSpecified to false.
  12406. If the command-line option "--upload-limit" is specified, then
  12407. timeoutSpecified is set to true. This option will remain in the next
  12408. release, but be deprecated in the future release.
  12409. * src/TorrentRequestInfo.h
  12410. (TorrentRequestInfo): Removed const qualifier from op.
  12411. * src/PeerStat.h
  12412. (uploadSpeed): New variable.
  12413. (PeerStat): Added default value to cuid.
  12414. (calculateUploadSpeed): New function.
  12415. (updateUploadLength): New function.
  12416. (getMaxUploadSpeed): New function.
  12417. (getAvgUploadSpeed): New function.
  12418. (reset): Added uploadSpeed. Set status to IDLE.
  12419. * src/TorrentDownloadEngine.h
  12420. (cp): Declared as Time.
  12421. (sessionDownloadLengthArray): Removed.
  12422. (sessionUploadLengthArray): Removed.
  12423. (currentCp): Removed.
  12424. (lastCalcStat): New variable
  12425. (lastElapsed): Removed.
  12426. (sessionDownloadLength): Removed.
  12427. (calculateStat): New function.
  12428. * src/TorrentDownloadEngine.cc
  12429. (initStatistics): Removed lastElapsed, cp[],
  12430. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  12431. currentCp, sessionDownloadLength.
  12432. Added cp.reset() and lastCalcStat.reset().
  12433. (calculateSpeed): Changed the name of the argument.
  12434. (calculateStatistics): Rewritten.
  12435. (calculateStat): New function.
  12436. * src/Peer.h
  12437. (PeerStat.h): Included.
  12438. (peerUpload): Removed.
  12439. (peerDownload): Removed.
  12440. (peerStat): New variable.
  12441. (sessionUploadLength): New variable.
  12442. (sessionDownloadLength): New variable.
  12443. (deltaUpload): Removed.
  12444. (deltaDownload): Removed.
  12445. (resetStatus): Made private.
  12446. (Peer): Added sessionUploadLength, sessionDownloadLength.
  12447. Removed peerUpload, peerDownload.
  12448. (updateUploadLength): New function.
  12449. (addDeltaUpload): Removed.
  12450. (updateDownloadLength): New function.
  12451. (resetDeltaUpload): Removed.
  12452. (getDeltaUpload): Removed.
  12453. (addDeltaDownload): Removed.
  12454. (calculateUploadSpeed): New function.
  12455. (resetDeltaDownload): Removed.
  12456. (getDeltaDownload): Removed.
  12457. (calculateDownloadSpeed): New function.
  12458. (getSessionUploadLength): New function.
  12459. (getSessionDownloadLength): New function.
  12460. (activate): New function.
  12461. (deactivate): New function.
  12462. (addPeerUpload): Removed.
  12463. (setPeerUpload): Removed.
  12464. (getPeerUpload): Removed.
  12465. (addPeerDownload): Removed.
  12466. (setPeerDownload): Removed.
  12467. (getPeerDownload): Removed.
  12468. * src/Peer.cc
  12469. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  12470. * src/MetalinkRequestInfo.h
  12471. (MetalinkRequestInfo): Removed const qualifier from op.
  12472. * src/RequestInfo.h
  12473. (op): Removed const qualifier.
  12474. (RequestInfo): Removed const qualifier from op.
  12475. * src/prefs.h
  12476. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  12477. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  12478. * src/PeerInteractionCommand.cc
  12479. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  12480. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  12481. * src/PeerInteraction.cc
  12482. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  12483. * src/main.cc
  12484. (showUsage): Updated the description of "--lowest-speed-limit" option.
  12485. Added the description of "--max-download-limit" option.
  12486. Removed the description of "--upload-limit" option.
  12487. Added the description of "--max-upload-limit" option.
  12488. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  12489. Added "--max-download-limit" option and "--max-upload-limit" option.
  12490. Added the warning message if "--upload-limit" option is used.
  12491. * src/DownloadCommand.cc
  12492. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  12493. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12494. To rewrite segment download mechanism for HTTP/FTP download.
  12495. Use BitfieldMan to manage segment download.
  12496. * src/HttpResponseCommand.h
  12497. (executeInternal): Pass the reference of segment.
  12498. * src/AbstractCommand.cc
  12499. (prepareForRetry): Call segmentMan->cancelSegment here.
  12500. (onAbort): Call segmentMan->cancelSegment here.
  12501. * src/HttpDownloadCommand.cc
  12502. (prepareForNextSegment): New function.
  12503. * src/DownloadEngineFactory.cc
  12504. (newConsoleEngine): Removed splitter.
  12505. (newTorrentConsoleEngine): Removed splitter.
  12506. * src/Request.h
  12507. (segment): Renamed from seg.
  12508. * src/FtpInitiateConnectionCommand.h
  12509. (executeInternal): Pass the reference of segment.
  12510. * src/AbstractCommand.h
  12511. (executeInternal): Pass the reference of segment.
  12512. * src/pref.h
  12513. (PREF_SEGMENT_SIZE): New definition.
  12514. * src/HttpProxyRequestCommand.h
  12515. (executeInternal): Pass the reference of segment.
  12516. * src/HttpResponseCommand.cc
  12517. (checkResponse): Allowed status 206 when a request range starts 0.
  12518. (handleDefaultEncoding): Rewritten the code related to Segment.
  12519. (handleOtherEncoding): Rewritten the code related to Segment.
  12520. * src/SegmentMan.h
  12521. (SegmentEntry): New class.
  12522. (SegmentEntries): New type definition.
  12523. (bitfield): New variable.
  12524. (usedSegmentEntries): New variable.
  12525. (onNullBitfield): New function.
  12526. (checkoutSegment): New function.
  12527. (segments): Removed.
  12528. (splitter): Removed.
  12529. (unregisterId): Removed.
  12530. (getSegment): New function(overload)
  12531. (getDownloadedSize): Removed.
  12532. (cancelSegment): New function.
  12533. (completeSegment): New function.
  12534. (initBitfield): New function.
  12535. (hasSegment): New function.
  12536. (getDownloadLength): New function.
  12537. * src/BitfieldMan.h
  12538. (getStartIndex): New function.
  12539. (getEndIndex): New function.
  12540. (getMissingUnusedIndex): New function(overload).
  12541. (getSparseMissingUnusedIndex): New function.
  12542. * src/BitfieldMan.cc
  12543. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  12544. (getMissingUnusedIndex): New function(overload).
  12545. (Range): New class.
  12546. (getStartIndex): New function.
  12547. (getEndIndex): New function.
  12548. (getSparseMissingUnusedIndex): New function.
  12549. (isBitSetInternal): Return false if the given index is less than 0.
  12550. * src/HttpInitiateConnectionCommand.h
  12551. (executeInternal): Pass the reference of segment.
  12552. * src/FtpNegotiateCommand.h
  12553. (executeInternal): Pass the reference of segment.
  12554. * src/FtpNegotiateCommand.cc
  12555. (recvSize): Initialize bitfield here.
  12556. * src/FtpTunnelResponseCommand.h
  12557. (executeInternal): Pass the reference of segment.
  12558. * src/HttpConnection.cc
  12559. (createRequest): Rewritten range header processing.
  12560. * src/DownloadCommand.h
  12561. (executeInternal): Pass the reference of segment.
  12562. (prepareForRetry): Removed.
  12563. (prepareForNextSegment): Added an argument segment. Made it a virtual
  12564. function.
  12565. * src/main.cc
  12566. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  12567. * src/SegmentMan.cc
  12568. (SegmentMan): Added bitfield. Removed splitter.
  12569. (~SegmentMan): Added bitfield. Removed splitter.
  12570. (unregisterId): Removed.
  12571. (getSegment): Rewritten.
  12572. (updateSegment): Rewritten.
  12573. (save): Rewritten.
  12574. (read): Rewritten.
  12575. (finished): Rewritten.
  12576. (getDownloadedSize): Removed.
  12577. (initBitfield): New function.
  12578. (FindSegmentEntryByIndex): New function object.
  12579. (FindSegmentEntryByCuid): New function object.
  12580. (checkoutSegment): New function.
  12581. (onNullBitfield): New function.
  12582. (getSegment): New function(overload).
  12583. (CancelSegment): New function object.
  12584. (cancelSegment): New function.
  12585. (completeSegment): New function.
  12586. (hasSegment): New function.
  12587. (getDownloadLength): New function.
  12588. * src/FtpInitiateConnectionCommand.cc
  12589. (executeInternal): Load .aria2 file after hostname resolution finishes.
  12590. * src/Segment.h: Rewritten.
  12591. * src/Segment.cc (operator<<): New function.
  12592. * src/HttpDownloadCommand.h
  12593. (prepareForNextSegment): New function.
  12594. * src/Request.cc
  12595. (resetUrl): Made segment null.
  12596. * src/DownloadEngine.cc
  12597. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  12598. * src/HttpProxyRequestCommand.h
  12599. (executeInternal): Pass the reference of segment.
  12600. * src/DownloadCommand.cc
  12601. (executeInternal): Rewritten the code related to Segment.
  12602. (prepareForRetry): Removed.
  12603. (prepareForNextSegment): Rewritten.
  12604. * src/FtpTunnelResponseCommand.h
  12605. (executeInternal): Pass the reference of segment.
  12606. To add HTTP 1.1 persistent connection support(experimental)
  12607. * src/HttpRequestCommand.cc
  12608. (executeInternal): Disable keep alive if it is disabled by
  12609. configuration.
  12610. * src/Request.h
  12611. (keepAlive): New variable.
  12612. (isKeepAlive): New function.
  12613. (setKeepAlive): New function.
  12614. * src/pref.h
  12615. (PREF_HTTP_KEEP_ALIVE): New definition.
  12616. * src/HttpResponseCommand.cc
  12617. (executeInternal): Check the remote server supports keep alive.
  12618. * src/HttpConnection.cc
  12619. (createRequest): Send "Connection: close" only if keep alive is
  12620. disabled.
  12621. * src/main.cc
  12622. (main):
  12623. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  12624. To add max download speed limit:
  12625. * src/pref.h
  12626. (PREF_MAX_SPEED_LIMIT): New definition.
  12627. * src/PeerInteractionCommand.cc
  12628. (executeInternal): Added max download speed limit. Not tested yet.
  12629. * src/SegmentMan.h
  12630. (PeerStats): New type definition.
  12631. (peerStats): New variable.
  12632. (registerPeerStat): New function.
  12633. (FindPeerStat): New function object.
  12634. (getPeerStat): New function.
  12635. (calculateDownloadSpeed): New function.
  12636. * src/SpeedCalc.h: New class.
  12637. * src/SpeedCalc.cc: New class.
  12638. * src/main.cc
  12639. (main):
  12640. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  12641. download speed is not restricted).
  12642. * src/PeerStat.h: New class.
  12643. * src/SegmentMan.cc
  12644. (registerPeerStat): New function.
  12645. (calculateDownloadSpeed): New function.
  12646. * src/DownloadCommand.cc
  12647. (STARTUP_IDLE_TIME): New definition.
  12648. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  12649. downloadStart.
  12650. (~DownloadCommand): Call peerStat->downloadStop.
  12651. (executeInternal): Added download speed limitter. Rewritten lowest
  12652. speed limitter.
  12653. * src/HttpConnection.cc
  12654. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  12655. * src/AbstractCommand.cc
  12656. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  12657. Added hostname to the error message.
  12658. * src/ConsoleDownloadEngine.cc
  12659. (calculateStatistics): Initialize psize with dlSize.
  12660. * src/PieceMessage.cc
  12661. (receivedAction): Do not call peerInteraction->abortPiece here.
  12662. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  12663. * src/BitfieldMan.h
  12664. (clearAllUseBit): New function.
  12665. (setAllUseBit): New function.
  12666. * src/BitfieldMan.cc
  12667. (clearAllBit): Do not clear useBitfield here.
  12668. (clearAllUseBit): New function.
  12669. (setAllUseBit): New function.
  12670. * src/Piece.cc
  12671. (clearAllBlock): Call bitfield->clearAllUseBit().
  12672. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12673. To make filename URL-decoded:
  12674. * src/HttpResponseCommand.h: Updated doc.
  12675. * src/HttpResponseCommand.cc
  12676. (determinFilename): Made filename URL-decoded.
  12677. * src/FtpInitiateConnectionCommand.cc
  12678. (executeInternal): Made filename URL-decoded.
  12679. * src/Util.h (urldecode): New function.
  12680. * src/Util.cc (urldecode): New function.
  12681. To fix a bug that caused assertion failure in ares_strerror:
  12682. * src/NameResolver.cc (callback): Fixed the bug.
  12683. * Release 0.7.3
  12684. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12685. To add --seed-time and --seed-ratio command-line option:
  12686. * src/Option.h (getAsDouble): New function.
  12687. * src/Option.cc (getAsDouble): New function.
  12688. * src/SeedCheckCommand.h: New class.
  12689. * src/SeedCheckCommand.cc: New class.
  12690. * src/DownloadEngineFactory.cc
  12691. (SeedCheckCommand.h): Included.
  12692. (UnionSeedCriteria.h): Included.
  12693. (TimeSeedCriteria.h): Included.
  12694. (ShareRatioSeedCriteria.h): Included.
  12695. (newTorrentConsoleEngine): Added the processing of seed option.
  12696. * src/SeedCriteria.h: New class.
  12697. * src/ShareRatioSeedCriteria.h: New class.
  12698. * src/TimeSeedCriteria.h: New class.
  12699. * src/UnionSeedCriteria.h: New class.
  12700. * src/prefs.h
  12701. (PREF_SEED_TIME): New definition.
  12702. (PREF_SEED_RATIO): New definition.
  12703. * src/main.cc
  12704. (showUsage): Added --seed-time and --seed-ratio option.
  12705. (main): Added --seed-time and --seed-ratio option.
  12706. Made default log file name "/dev/null".
  12707. * src/SharedHandle.h
  12708. (SharedHandle): Copy constructor. Made it assignable from the
  12709. SharedHandle of the subclasses.
  12710. (operator=): Made it assignable from the SharedHandle of the
  12711. subclasses.
  12712. (getRefCount): New function.
  12713. To add notice log level and the switch to write log to stdout. This
  12714. switch is configurable per log level.
  12715. * src/Logger.h
  12716. (notice): New function.
  12717. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  12718. constant.
  12719. * src/LogFactory.cc
  12720. (getInstance): The use of NullLogger was removed. A log message with
  12721. notice log level was made written to stdout along with log file.
  12722. * src/NullLogger.h
  12723. (notice): New function.
  12724. * src/SimpleLogger.h
  12725. (writeHeader): Added the 'file' argument.
  12726. (writeLog): Added the 'file' argument.
  12727. (writeFile): New function.
  12728. (stdoutField): New variable.
  12729. (SimpleLogger): Removed the default constructor.
  12730. (SimpleLogger): Made the default value of logfile 0.
  12731. (debug): Added 'virtual' keyword.
  12732. (info): Added 'virtual' keyword.
  12733. (warn): Added 'virtual' keyword.
  12734. (error): Added 'virtual' keyword.
  12735. (notice): New function.
  12736. (setStdout): New function.
  12737. * src/SimpleLogger.cc
  12738. (WRITE_LOG): Replaced writeLog with writeFile.
  12739. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  12740. (SimpleLogger): Removed the default constructor.
  12741. (setStdout): New function.
  12742. (writeLog): Added the handling of NOTICE log level.
  12743. (writeFile): New function.
  12744. (notice): New function.
  12745. * src/TorrentMan.h: Updated doc.
  12746. * src/BitfieldMan.h: Updated doc.
  12747. * src/TrackerWatcherCommand.cc
  12748. (execute): Return true if error occurred in the request to the tracker
  12749. and halt is requested.
  12750. * src/TrackerUpdateCommand.cc
  12751. (execute): Return true if error occurred in the request to the tracker
  12752. and halt is requested.
  12753. To call onDownloadComplete from TorrentMan::completePiece(), not from
  12754. DownloadEngine:
  12755. * src/TorrentConsoleDownloadEngine.h
  12756. (onSelectiveDownloadingCompletes): Removed.
  12757. * src/TorrentConsoleDownloadEngine.cc
  12758. (onSelectiveDownloadingCompletes): Removed.
  12759. * src/TorrentDownloadEngine.h
  12760. (onEndOfRun): Added 'virtual' keyword.
  12761. (afterEachIteration): Removed.
  12762. (onSelectiveDownloadingCompletes): Removed.
  12763. * src/TorrentDownloadEngine.cc
  12764. (onEndOfRun): Removed filenameFixed.
  12765. (afterEachIteration): Removed.
  12766. * src/TorrentMan.cc
  12767. (completePiece): Call onDownloadComplete here.
  12768. (onDownloadComplete): Added 2 log messages.
  12769. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12770. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  12771. * src/NameResolver.h: Added the prototype declaration of callback().
  12772. To support c-ares library:
  12773. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12774. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12775. * src/FtpInitiateConnectionCommand.h:
  12776. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12777. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12778. * src/HttpInitiateConnectionCommand.h:
  12779. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12780. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  12781. Added thes upport of c-ares's ares_strerror(the idea came from patch
  12782. #1542285 by tizianomueller)
  12783. * src/HttpInitiateConnectionCommand.cc:
  12784. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12785. * src/FtpInitiateConnectionCommand.cc:
  12786. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12787. * src/DownloadEngine.h:
  12788. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12789. * src/DownloadEngine.cc:
  12790. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  12791. To fix the bug that causes compilation failure with metalink-support
  12792. disabled(bug#1543587):
  12793. * src/main.cc: Fixed with the patch by tizianomueller.
  12794. * Release 0.7.2
  12795. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12796. * src/main.cc
  12797. (main): Added a message to inform users that aria2 is starting to
  12798. verify checksum.
  12799. * src/RequestInfo.cc
  12800. (printDownloadAbortMessage): Added a message to inform users that
  12801. transfer can be resumed.
  12802. * src/FeatureConfig.cc
  12803. (FEATURE_ASYNC_DNS): New definition.
  12804. (FeatureConfig): Added aysnc DNS entry.
  12805. To replace CommandUuid with Command* in SocketEntry and
  12806. NameResolverEntry:
  12807. * src/DownloadEngine.h
  12808. (CommandUuids): Removed.
  12809. (SocketEntry::commandUuid): Removed.
  12810. (SocketEntry::command): New variable.
  12811. (SocketEntry::SocketEntry): Updated.
  12812. (SocketEntry::operator==): Updated.
  12813. (NameResolverEntry::commandUuid): Removed.
  12814. (NameResolverEntry::command): New variable.
  12815. (NameResolverEntry::NameResolverEntry): Updated.
  12816. (NameResolverEntry::operator==): Updated.
  12817. (waitData): Changed the argument type.
  12818. (addSocketForReadCheck): Changed the argument type.
  12819. (deleteSocketForReadCheck): Changed the argument type.
  12820. (addSocketForWriteCheck): Changed the argument type.
  12821. (deleteSocketForWriteCheck): Changed the argument type.
  12822. (addNameResolverCheck): Changed the argument type.
  12823. (deleteNameResolverCheck): Changed the argument type.
  12824. * src/DownloadEngine.cc
  12825. (FindCommand): Removed.
  12826. (run): Removed activeUuid. Added activeCommands instead.
  12827. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12828. (AccumulateActiveCommand): New function object.
  12829. (waitData): Use AccumulateActiveCommand.
  12830. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12831. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12832. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12833. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12834. (addNameResolverCheck): Use Command instead of CommandUuid.
  12835. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12836. * src/AbstractCommand.cc
  12837. (disableReadCheckSocket): Updated according to the changes in
  12838. DownloadEngine.
  12839. (setReadCheckSocket): Updated according to the changes in
  12840. DownloadEngine.
  12841. (disableWriteCheckSocket): Updated according to the changes in
  12842. DownloadEngine.
  12843. (setWriteCheckSocket): Updated according to the changes in
  12844. DownloadEngine.
  12845. (setNameResolverCheck): Updated according to the changes in
  12846. DownloadEngine.
  12847. (disableNameResolverCheck): Updated according to the changes in
  12848. DownloadEngine.
  12849. * src/AbstractCommand.cc
  12850. (disableReadCheckSocket): Updated according to the changes in
  12851. DownloadEngine.
  12852. (setReadCheckSocket): Updated according to the changes in
  12853. DownloadEngine.
  12854. (disableWriteCheckSocket): Updated according to the changes in
  12855. DownloadEngine.
  12856. (setWriteCheckSocket): Updated according to the changes in
  12857. DownloadEngine.
  12858. * release 0.7.1
  12859. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12860. To handle the case where some BitTorrent tracker requires all letters
  12861. except for [A-Za-z0-9] is URL encoded.
  12862. * src/Util.h
  12863. (torrentUrlencode): New function.
  12864. * src/Util.cc
  12865. (ctype.h): Included.
  12866. (torrentUrlencode): New function.
  12867. * src/TrackerWatcherCommand.cc
  12868. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12869. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12870. To add asynchronous DNS support(libares):
  12871. * src/AbstractCommand.h
  12872. (setNameResolverCheck): New function.
  12873. (disableNameResolverCheck): New function
  12874. (resolveHostname): New function.
  12875. * src/AbstractCommand.cc
  12876. (setNameResolverCheck): New function.
  12877. (disableNameResolverCheck): New function
  12878. (resolveHostname): New function.
  12879. * src/FtpInitiateConnectionCommand.h
  12880. (nameResolver): New function.
  12881. * src/FtpInitiateConnectionCommand.cc
  12882. (Util.h): Included.
  12883. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12884. disableWriteCheckSocket.
  12885. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12886. (executeInternal): Added async DNS support.
  12887. * src/HttpInitiateConnectionCommand.h
  12888. (nameResolver): New function.
  12889. * src/HttpInitiateConnectionCommand.cc
  12890. (DlRetryEx.h): Included.
  12891. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12892. disableWriteCheckSocket.
  12893. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12894. (executeInternal): Added async DNS support.
  12895. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12896. by extern "C" declaration.
  12897. * src/NameResolver.cc: New class.
  12898. * src/Util.h:
  12899. (isNumberAndDotsNotation): New function
  12900. * src/Util.cc
  12901. (isNumberAndDotsNotation): New function.
  12902. * src/DownloadEngine.h
  12903. (NameResolver.h): Included.
  12904. (NameResolverEntry): New class.
  12905. (NameResolverEntries): New type definition.
  12906. (addNameResolverCheck): New function.
  12907. (deleteNameResolverCheck): New function.
  12908. * src/DownloadEngine.cc
  12909. (run): Initialize cp with 0.
  12910. (SetDescriptor::operator()): Added for NameResolverEntry.
  12911. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12912. (waitData): Check nameResolver entries.
  12913. (updateFdSet): Update fds in nameResolver entries.
  12914. (addNameResolverCheck): New function.
  12915. (deleteNameResolverCheck): new function.
  12916. * src/PeerInteractionCommand.cc
  12917. (executeInternal): Fixed wrong socket handling.
  12918. * src/main.cc
  12919. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12920. * src/Util.cc
  12921. (fileChecksum): Removed the call to ctx.digestReset().
  12922. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12923. * po/ru.po: Azamat sent me Russian translation.
  12924. * src/FtpNegotiateCommand.cc
  12925. (recvGreeting): Call disableWriteCheckSocket just after
  12926. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12927. (recvRetr): Recognized status code 125 as a acceptable response code.
  12928. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12929. case-insesitive filesystem(BUG#1531057).
  12930. * src/Time.h: Renamed as TimeA2.h.
  12931. * src/Time.cc: Renamed as TimeA2.cc.
  12932. * src/TimeA2.h: New class.
  12933. * src/TimeA2.cc: New class.
  12934. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12935. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12936. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12937. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12938. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12939. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12940. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12941. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12942. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12943. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12944. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12945. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12946. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12947. * release 0.7.0
  12948. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12949. * src/PeerChokeCommand.h
  12950. (PeerChokeCommand): Rearranged the arguments.
  12951. * src/PeerChokeCommand.cc
  12952. (PeerChokeCommand): Rearranged the arguments.
  12953. * src/MetalinkEntry.h
  12954. (Checksum.h): Included.
  12955. (md5): Removed.
  12956. (sha1): Removed.
  12957. (checksum): New variable.
  12958. (operator=): Updated.
  12959. (check): Removed.
  12960. * src/prefs.h
  12961. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12962. (PREF_FOLLOW_TORRENT): New definition.
  12963. (PREF_SELECT_FILE): New definition.
  12964. (PREF_FOLLOW_METALINK): New definition.
  12965. * src/MetalinkResource.h
  12966. (TYPE_HTTPS): Added to enum TYPE.
  12967. * src/TorrentMan.cc
  12968. (~TorrentMan): Rewritten.
  12969. * src/MultiDiskWriter.cc
  12970. (MultiDiskAdaptor): Updated according to the changes in
  12971. MessageDigestContext.
  12972. (~MultiDiskAdaptor): Updated according to the changes in
  12973. MessageDigestContext.
  12974. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12975. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12976. * src/Util.h
  12977. (fileChecksum): Updated according to the changes in
  12978. MessageDigestContext.
  12979. * src/Util.cc
  12980. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12981. (fileChecksum): Updated according to the changes in
  12982. MessageDigestContext.
  12983. * src/messageDigest.h: Rewritten.
  12984. * src/MetalinkEntry.cc
  12985. (check): Removed.
  12986. (Supported): Updated.
  12987. (dropUnsupportedResource): Fixed a memory leak.
  12988. * src/ShaVisitor.cc
  12989. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12990. (~ShaVisitor): Updated according to the changes in
  12991. MessageDigestContext.
  12992. (visit): Updated according to the changes in MessageDigestContext.
  12993. * src/main.cc
  12994. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12995. command-line option added.
  12996. * src/DownloadEngine.h
  12997. (SocketEntry): New class.
  12998. (SocketEntries): New definition.
  12999. (PairFind): Removed.
  13000. (SockCmdMap): Removed.
  13001. * src/DownloadEngine.cc
  13002. (DownloadEngine): Rewritten.
  13003. (~DownloadEngine): Rewritten.
  13004. (run): Renamed activeCommandUuids as activeUuids.
  13005. (SetDescriptor): Rewritten.
  13006. (AccumulateActiveCommandUuid): Removed.
  13007. (AccumulateActiveUuid): New function object.
  13008. (waitData): Rewritten.
  13009. (updateFdSet): Rewritten.
  13010. (addSocket): Rewritten.
  13011. (deleteSocket): Rewritten.
  13012. (addSocketForReadCheck): Rewritten.
  13013. (deleteSocketForReadCheck): Rewritten.
  13014. (addSocketForWriteCheck): Rewritten.
  13015. (deleteSocketForWriteCheck): Rewritten.
  13016. * src/Xml2MetalinkProcessor.cc
  13017. (getEntry): Rewritten the portion of MetalinkEntry creation.
  13018. * src/DownloadCommand.cc
  13019. (executeInternal): Added the check routine for lowest speed limit.
  13020. * src/AbstractDiskWriter.cc
  13021. (AbstractDiskWriter): Updated according to the changes in
  13022. MessageDigestContext.
  13023. (~AbstractDiskWriter): Updated according to the changes in
  13024. MessageDigestContext.
  13025. (sha1Sum): Updated according to the changes in MessageDigestContext.
  13026. * src/RequestInfo.h: New class.
  13027. * src/UrlRequestInfo.h: New class.
  13028. * src/UrlRequestInfo.cc: New class.
  13029. * src/TorrentRequestInfo.h: New class.
  13030. * src/TorrentRequestInfo.cc: New class.
  13031. * src/MetalinkRequestInfo.h: New class.
  13032. * src/MetalinkRequestInfo.cc: New class.
  13033. * src/Checksum.h: New class.
  13034. * src/DownloadEngineFactory.h: New class.
  13035. * src/DownloadEngineFactory.cc: New class.
  13036. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13037. * src/Option.h
  13038. (getAsBool): New function.
  13039. * src/Option.cc
  13040. (prefs.h): Included.
  13041. (defined): 0-length value is now recognized as undefined.
  13042. (getAsInt): Rewritten.
  13043. (getAsLLInt): Rewritten.
  13044. (getAsBool): New function.
  13045. * src/FeatureConfig.h: Rewritten.
  13046. * src/FeatureConfig.cc: Rewritten.
  13047. * src/prefs.h
  13048. (PREF_STDOUT_LOG): New definition.
  13049. (PREF_LOG): New definition.
  13050. (PREF_DIR): New definition.
  13051. (PREF_OUT): New definition.
  13052. (PREF_SPLIT): New definition.
  13053. (PREF_DAEMON): New definition.
  13054. (PREF_REFERER): New definition.
  13055. (PREF_TORRENT_FILE): New definition.
  13056. (PREF_LISTEN_PORT): New definition.
  13057. (PREF_METALINK_FILE): New definition.
  13058. (PREF_METALINK_VERSION): New definition.
  13059. (PREF_METALINK_LANGUAGE): New definition.
  13060. (PREF_METALINK_OS): New definition.
  13061. (PREF_METALINK_SERVERS): New definition.
  13062. * src/main.cc
  13063. (main): Following command-line parameters are now put into Option
  13064. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  13065. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  13066. metalinkLanguage, metalinkOs, metalinkServers
  13067. To fix the bug that aria2 can not handle http response header properly.
  13068. * src/HttpHeader.cc
  13069. (put): Made name lowercased.
  13070. (defined): Made name lowercased.
  13071. (getFirst): Made name lowercased.
  13072. (get): Made name lowercased.
  13073. (getFirstAsInt): Rewritten.
  13074. (getFirstAsLLInt): Rewritten.
  13075. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13076. * src/TorrentMan.h:
  13077. (advertisePiece): Updated doc.
  13078. (getAdvertisedPieceIndexes): Updated doc.
  13079. (removeAdvertisedPiece); New function.
  13080. * src/TorrentMan.cc
  13081. (FindElapsedHave): New function object.
  13082. (removeAdvertisedPiece): New function.
  13083. * src/HaveEraseCommand.h: New class.
  13084. * src/HaveEraseCommand.cc: New class.
  13085. * src/FeatureConfig.h: New class.
  13086. * src/FeatureConfig.cc: New class.
  13087. * src/Request.h
  13088. (defaultPorts): Removed.
  13089. * src/Request.cc
  13090. (FeatureConfig.h): Included.
  13091. (Request): Removed the statements related to defaultPorts.
  13092. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  13093. A default port number is now retrieved from FeatureConfig.
  13094. * src/main.cc
  13095. (HaveEraseCommand.h): Included.
  13096. (showVersion): Added the output of feature list.
  13097. (main): Added HaveEraseCommand to command queue in BitTorrent
  13098. downloading.
  13099. * src/PeerInteractionCommand.h
  13100. (chokeCheckPoint): Commented out.
  13101. (periodicExecPoint): New variable.
  13102. * src/PeerInteractionCommand.cc
  13103. (executeInternal): Following methods are now called in at least every
  13104. 0.5 seconds to reduce CPU usage:
  13105. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  13106. checkHave(), sendKeepAlive().
  13107. (checkLongTimePeerChoking): Commented out.
  13108. * src/BitfieldMan.h
  13109. (getNthBitIndex): Changed the method signature.
  13110. (getMissingIndexRandomly): Changed the method signature.
  13111. * src/BitfieldMan.cc
  13112. (getNthBitIndex): Rewritten
  13113. (getMissingIndexRandomly): Rewritten.
  13114. (hasMissingPiece): Rewritten.
  13115. (getMissingIndex): Refactored.
  13116. (getMissingUnusedIndex); Refactored.
  13117. (getMissingIndex): Refactored.
  13118. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13119. * src/PeerMessage.h
  13120. (Piece.h): Included.
  13121. (SharedHandle.h): Included.
  13122. (invalidate): New variable.
  13123. (uploading): New variable.
  13124. (isInvalidate): New function.
  13125. (isUploading): New function.
  13126. (onPush): New function.
  13127. (onChoked): New function.
  13128. (onCanceled): New function.
  13129. (onAbortPiece): New function.
  13130. (PeerMessageHandle): New type definition.
  13131. * src/PeerMessage.cc
  13132. (PeerMessage): Added the initialization for invalidate and uploading.
  13133. * src/CancelMessage.h
  13134. (CancelMessage): Rewritten.
  13135. * src/RejectMessage.h
  13136. (RejectMessage): Rewritten.
  13137. * src/Metalinker.h
  13138. (operator=): Defined.
  13139. * src/MetaEntry.h
  13140. (operator=): Defined.
  13141. * src/MetalinkResource.h
  13142. (operator=): Defined.
  13143. * src/AllowedFastMessage.h
  13144. (AllowedFastMessage): Rewritten.
  13145. * src/HandshakeMessage.h
  13146. (HandshakeMessage): New function(overload).
  13147. * src/HandshakeMessage.cc
  13148. (HandshakeMessage): Rewritten.
  13149. (init): New function.
  13150. * src/HaveMessage.h
  13151. (HaveMessage): Rewritten.
  13152. * src/Time.h
  13153. (operator=): Defined the function body here.
  13154. * src/Time.cc
  13155. (operator=): Removed.
  13156. * src/SocketCore.h
  13157. (operator==): Defined here.
  13158. (operator!=): Defined here.
  13159. (operator<): Defined here.
  13160. * src/SocketCore.cc
  13161. (operator==): Removed.
  13162. (operator<): Removed.
  13163. * src/BitfieldMan.h
  13164. (operator=): Defined the function body here.
  13165. * src/BitfieldMan.cc
  13166. (operator=): Removed.
  13167. * src/TorrentMan.h
  13168. (deleteErrorPeer): Removed.
  13169. (deleteUnusedPeer); New function.
  13170. * src/TorrentMan.cc
  13171. (addPeer): Call deleteUnusedPeer.
  13172. (deleteErrorPeer): Removed.
  13173. (deleteUnusedPeer): New function.
  13174. * src/PeerAbstractCommand.h
  13175. (setNoCheck): New function.
  13176. (noCheck): New variable.
  13177. * src/PeerAbstractCommand.cc
  13178. (PeerAbstractCommand): Added the initialization of noCheck.
  13179. (execute): Added a check for noCheck.
  13180. (setNoCheck): New function.
  13181. * src/Util.h
  13182. (stdio.h): Included.
  13183. * src/Util.cc
  13184. (unistd.h): Included.
  13185. * src/DefaultDiskWriter.cc
  13186. (unistd.h): Included.
  13187. * src/Peer.h
  13188. (operator==): Defined the function body here.
  13189. (operator!=): Defined the function body here.
  13190. * src/Peer.cc
  13191. (operator==): Removed.
  13192. (operator!=): Removed.
  13193. * src/Piece.h
  13194. (Piece): Defined the function body here(copy constructor).
  13195. (operator=): Defined the function body here.
  13196. (operator==): Defined the function body here.
  13197. * src/Piece.cc
  13198. (Piece): Removed(copy constructor).
  13199. (operator=): Removed.
  13200. (operator==): Removed.
  13201. * src/PeerMessageUtil.h
  13202. (ChokeMessage.h): Removed.
  13203. (UnchokeMessage.h): Removed.
  13204. (InterestedMessage.h): Removed.
  13205. (NotInterestedMessage.h): Removed.
  13206. (HaveMessage.h): Removed.
  13207. (BitfieldMessage.h): Removed.
  13208. (RequestMessage.h): Removed.
  13209. (CancelMessage.h): Removed.
  13210. (PieceMessage.h): Removed.
  13211. (HandshakeMessage.h): Removed.
  13212. (KeepAliveMessage.h): Removed.
  13213. (PortMessage.h): Removed.
  13214. (HaveAllMessage.h): Removed.
  13215. (HaveNoneMessage.h): Removed.
  13216. (PeerConnection.h): Removed.
  13217. (HandshakeMessage.h): Included.
  13218. * src/BitfieldMessage.h
  13219. (init): New function.
  13220. (BitfieldMessage): Rewritten.
  13221. (BitfieldMessage): New function(overload).
  13222. * src/RequestSlot.h
  13223. (operator=): Defined the function body here.
  13224. (operator==): Defined the function body here.
  13225. * src/RequestSlot.cc
  13226. (operator=): Removed.
  13227. (operator==): Removed.
  13228. To remove the dependency on the PeerMessage subclass from
  13229. PeerInteraction:
  13230. * src/PeerMessageFactory.h: New class.
  13231. * src/PeerMessageFactory.cc: New class.
  13232. * src/SimplePeerMessage.cc
  13233. (send): If invalidate is true then do nothing.
  13234. * src/PeerInteractionCommand.cc
  13235. (HandshakeMessage.h): Included.
  13236. (KeepAliveMessage.h): Included.
  13237. (ChokeMessage.h): Included.
  13238. (UnchokeMessage.h): Included.
  13239. (HaveMessage.h): Included.
  13240. (executeInternal): Call setNoCheck().
  13241. Removed setWriteCheckSocket(socket).
  13242. * src/PeerInteraction.h
  13243. (ChokeMessage.h): Removed.
  13244. (UnchokeMessage.h): Removed.
  13245. (InterestedMessage.h): Removed.
  13246. (NotInterestedMessage.h): Removed.
  13247. (HaveMessage.h): Removed.
  13248. (BitfieldMessage.h): Removed.
  13249. (RequestMessage.h): Removed.
  13250. (CancelMessage.h): Removed.
  13251. (PieceMessage.h): Removed.
  13252. (HandshakeMessage.h): Removed.
  13253. (KeepAliveMessage.h): Removed.
  13254. (PortMessage.h): Removed.
  13255. (HaveAllMessage.h): Removed.
  13256. (HaveNoneMessage.h): Removed.
  13257. (RejectMessage.h): Removed.
  13258. (AllowedFastMessage.h): Removed.
  13259. (SuggestPieceMessage.h): Removed.
  13260. (PeerMessageFactory.h): Included.
  13261. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  13262. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  13263. (PeerMessageFactory): New variable.
  13264. (createPeerMessage): Removed.
  13265. (createHandshakeMessage): Removed.
  13266. (setPeerMessageCommonProperty): Removed.
  13267. (addRequestSlot): New function.
  13268. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13269. (getPeerMessageFactory): New function.
  13270. (createRequestMessage): Removed.
  13271. (createCancelMessage): Removed.
  13272. (createPieceMessage): Removed.
  13273. (createHaveMessage): Removed.
  13274. (createChokeMessage): Removed.
  13275. (createUnchokeMessage): Removed.
  13276. (createInterestedMessage): Removed.
  13277. (createNotInterestedMessage): Removed.
  13278. (createBitfieldMessage): Removed.
  13279. (createKeepAliveMessage): Removed.
  13280. (createHaveAllMessage): Removed.
  13281. (createHaveNoneMessage): Removed.
  13282. (createRejectMessage): Removed.
  13283. (createAllowedFastMessage): Removed.
  13284. * src/PeerInteraction.cc
  13285. (PeerInteraction): Allocate PeerMessageFactory here.
  13286. (~PeerInteraction): Deallocate PeerMessageFactory here.
  13287. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  13288. PieceMessage::ID.
  13289. (addMessage): Simplified by using PeerMessage::onPush().
  13290. (addRequestSlot): New function.
  13291. (rejectAllPieceMessageInQueue): Simplified by using
  13292. PeerMessage::onChoked().
  13293. (rejectPieceMessageInQueue): Simplified by using
  13294. PeerMessage::onCanceled().
  13295. (abortPiece): Simplified by using PeerMessage::abortPiece().
  13296. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  13297. (createHandshakeMessage): Removed.
  13298. (createPeerMessage): Removed.
  13299. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  13300. (setPeerMessageCommonProperty): Removed.
  13301. (createRequestMessage): Removed.
  13302. (createCancelMessage): Removed.
  13303. (createPieceMessage): Removed.
  13304. (createHaveMessage): Removed.
  13305. (createChokeMessage): Removed.
  13306. (createUnchokeMessage): Removed.
  13307. (createInterestedMessage): Removed.
  13308. (createNotInterestedMessage): Removed.
  13309. (createBitfieldMessage): Removed.
  13310. (createKeepAliveMessage): Removed.
  13311. (createHaveAllMessage): Removed.
  13312. (createHaveNoneMessage): Removed.
  13313. (createRejectMessage): Removed.
  13314. (createAllowedFastMessage): Removed.
  13315. * src/PieceMessage.h
  13316. (createRejectMessage): New function.
  13317. (PieceMessage): Rewritten.
  13318. (onChoked): New function.
  13319. (onCanceled): New function.
  13320. * src/PieceMessage.cc
  13321. (send): If invalidate is true then do nothing, just return.
  13322. (createRejectMessage): New function.
  13323. (onChoked): New function.
  13324. (onCanceled): New function.
  13325. * src/RequestMessage.h
  13326. (RequestMessage): Rewritten.
  13327. (onPush): New function.
  13328. (onAbortPiece): New function.
  13329. * src/RequestMessage.cc
  13330. (onPush): New function.
  13331. (onAbortPiece): New function.
  13332. Update fd_set when a socket is added or deleted in order to improve
  13333. performance:
  13334. * src/DownloadEngine.h
  13335. (rfdset): New variable.
  13336. (wfdset): New variable.
  13337. (updateFdSet): New function.
  13338. * src/DownloadEngine.cc
  13339. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  13340. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  13341. (waitData): Copy rfdset and wfdset.
  13342. (updateFdSet): New function.
  13343. (addSocket): Call updateFdSet.
  13344. (deleteSocket): Call updateFdSet.
  13345. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13346. To add the support for Metalink3.0 backward compatible links:
  13347. * src/Request.h
  13348. (SAFE_CHARS): Added '#'.
  13349. (METALINK_MARK): New definition.
  13350. * src/Request.cc
  13351. (parseUrl): Added the support for Metalink3.0 backward compatible
  13352. links.
  13353. etc
  13354. * src/PeerInteraction.cc
  13355. (MsgPushBack): Removed.
  13356. (sendMessages): Use STL copy and back_inserter.
  13357. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  13358. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  13359. * src/TorrentMan.h
  13360. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  13361. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13362. * src/SharedHandle.h: New class.
  13363. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  13364. * src/HttpResponseCommand.h
  13365. (HttpResponseCommand): Wrapped Socket.
  13366. * src/SocketCore.h
  13367. (operator==): New function.
  13368. (operator!=): New function.
  13369. (operator<): New function.
  13370. (getSockfd): New function.
  13371. (isOpen): New function.
  13372. (writeData): New function.
  13373. * src/SocketCore.cc
  13374. (operator==): New function.
  13375. (operator!=): New function.
  13376. (operator<): New function.
  13377. * src/AbstractCommand.h
  13378. (socket): Changed its type to SocketHandle.
  13379. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13380. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13381. (disableReadCheckSocket): New function.
  13382. (disableWriteCheckSocket): New function.
  13383. (readCheckTarget): Changed its type to SocketHandle.
  13384. (writeCheckTarget): Changed its type to SocketHandle.
  13385. (AbstractCommand): Replaced Socket with SocketHandle.
  13386. * src/AbstractCommand.cc
  13387. (AbstractCommand): Replaced Socket with SocketHandle.
  13388. (~AbstractCommand): Removed the deallocation for Socket object.
  13389. (disableReadCheckSocket): New function.
  13390. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13391. (disableWriteCheckSocket): New function.
  13392. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13393. * src/HttpDownloadCommand.cc
  13394. (DownloadCommand): Replaced Socket with SocketHandle.
  13395. * src/PeerAbstractCommand.h
  13396. (socket): Changed its type to SocketHandle.
  13397. (peer): Changed its type to PeerHandle.
  13398. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13399. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13400. (disableReadCheckSocket): New function.
  13401. (disableWriteCheckSocket): New function.
  13402. (readCheckTarget): Changed its type to SocketHandle.
  13403. (writeCheckTarget): Changed its type to SocketHandle.
  13404. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13405. Replaced Peer with PeerHandle.
  13406. * src/HttpRequestCommand.cc
  13407. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13408. Use disableReadCheckSocket.
  13409. * src/PeerInitiateConnectionCommand.h
  13410. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13411. * src/PeerChokeCommand.cc
  13412. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  13413. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  13414. (execute): Use PeerHandle.
  13415. * src/PeerConnection.h
  13416. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  13417. (socket): Changed its type to SocketHandle.
  13418. (PeerConnection): Replaced Socket with SocketHandle.
  13419. * src/PeerConnection.cc
  13420. (PeerConnection): Replaced Socket with SocketHandle.
  13421. * src/PeerInteractionCommand.h
  13422. (PeerInteractionCommand): Replaced socket with SocketHandle.
  13423. Replaced Peer with PeerHandle.
  13424. * src/PeerInteractionCommand.cc
  13425. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  13426. Replaced Peer with PeerHandle.
  13427. (executeInternal): Use disableWriteCheckSocket.
  13428. Use HandshakeMessageHandle.
  13429. (receiveMessages): Use PeerMessageHandle.
  13430. (prepareForNextPeer): Use PeerHandle.
  13431. * src/HttpProxyRequestCommand.h
  13432. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13433. * src/HttpResponseCommand.cc
  13434. (HttpResponseCommand): Replaced Socket with SocketHandle.
  13435. * src/TorrentMan.cc
  13436. (nullPeer): Added external reference.
  13437. (~TorrentMan): Removed the deallocation of the elements of peers.
  13438. (addPeer): Rewritten.
  13439. (isPeerAvailable): Use nullPeer.
  13440. (deleteOldpeers): Replaced with deleteErrorPeer.
  13441. (deleteErrorPeer): New function.
  13442. (getPeer): Use PeerHandle and nullPeer.
  13443. (hasMissingPiece): Replaced Peer with PeerHandle.
  13444. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13445. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13446. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13447. (getMissingPiece): Replaced Peer with PeerHandle.
  13448. * src/FtpNegotiateCommand.cc
  13449. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  13450. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  13451. (recvGreeting): Use disableWriteCheckSocket.
  13452. (recvPasv): Removed the allocation of Socket.
  13453. Use disableReadCheckSocket.
  13454. (sendRestPasv): Use disableWriteCheckSocket.
  13455. (recvRetr): Changed assertion.
  13456. * src/PeerInteraction.h
  13457. (SharedHandle.h): Included SharedHandle.h.
  13458. (PeerMessageHandle): New type definition.
  13459. (HandshakeMessageHandle): New type definition.
  13460. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  13461. (peer): Changed its type to PeerHandle.
  13462. (createHandshakeMessage): Replaced HandshakeMessage with
  13463. HandshakeMessageHandle.
  13464. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  13465. (PeerInteraction): Replaced Peer with PeerHandle.
  13466. Replaced Socket with SocketHandle.
  13467. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13468. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13469. (receiveHandshake): Replaced HandshakeMessage with
  13470. HandshakeMessageHandle.
  13471. * src/PeerInteraction.cc
  13472. (PeerInteraction): Replaced Peer with PeerHandle.
  13473. Replaced Socket with SocketHandle.
  13474. (~PeerInteraction): Removed the deallocation of the elements of
  13475. messageQueue.
  13476. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  13477. (isSendingMessageInProgress): Replaced PeerMessage with
  13478. PeerMessageHandle.
  13479. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  13480. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  13481. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  13482. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  13483. (abortPiece): Use PeerMessageHandle.
  13484. (receiveHandshake): Replaced HandshakeMessage with
  13485. HandshakeMessageHandle. Removed try-catch block.
  13486. (createHandshakeMessage): Replaced HandshakeMessage with
  13487. HandshakeMessageHandle.
  13488. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  13489. Removed try-catch block.
  13490. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  13491. * src/HttpProxyResponseCommand.cc
  13492. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13493. * src/FtpTunnelResponseCommand.h
  13494. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13495. * src/HttpConnection.cc
  13496. (HttpConnection): Replaced Socket with SocketHandle.
  13497. * src/PeerAbstractCommand.cc
  13498. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  13499. (~PeerAbstractCommand): Removed the deallocation of socket.
  13500. Use disableReadCheckSocket, disableWriteCheckSocket.
  13501. (disableReadCheckSocket): New function.
  13502. (setReadCheckSocket): Replaced Socket with SocketHandle.
  13503. (disableWriteCheckSocket): New function.
  13504. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  13505. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  13506. * src/FtpTunnelRequestCommand.cc
  13507. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13508. (~FtpTunnelRequestCommand): Corrected indentation.
  13509. * src/DownloadCommand.h
  13510. (DownloadCommand): Replaced Socket with SocketHandle.
  13511. * src/PeerListenCommand.cc
  13512. (PeerListenCommand): Removed the initialization of socket.
  13513. (~PeerListenCommand): Removed the deallocation of socket.
  13514. (bindPort): Use SocketHandle.
  13515. (execute): Use SocketHandle and PeerHandle.
  13516. * src/FtpDowndloadCommand.cc
  13517. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13518. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  13519. * src/main.cc
  13520. (main): Corrected indentation.
  13521. * src/HttpInitiateConnectionCommand.cc
  13522. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  13523. (executeInternal): Removed the allocation of socket.
  13524. * src/HttpRequestCommand.h
  13525. (HttpRequestCommand): Replaced Socket with SocketHandle.
  13526. * src/FtpNegotiationCommand.h
  13527. (dataSocket): Changed its type to SocketHandle.
  13528. (serverSocket): Changed its type to SocketHandle.
  13529. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  13530. * src/TorrentMan.h
  13531. (MAX_PEER_UPDATE): Removed.
  13532. (MAX_PEERS): New definition.
  13533. (Peers): The element is now of type PeerHandle.
  13534. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  13535. (getPeer): Replaced Peer with PeerHandle.
  13536. (deleteOldErrorPeers): Removed.
  13537. (deleteErrorPeer): New function.
  13538. (hasMissingPiece): Replaced Peer with PeerHandle.
  13539. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  13540. (getMissingPiece): Replaced Peer with PeerHandle.
  13541. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  13542. (getMissingFastPiece): Replaced Peer with PeerHandle.
  13543. (addActivePeer): Replaced Peer with PeerHandle.
  13544. (deleteActivePeer): Replaced Peer with PeerHandle.
  13545. Added a check for the return value of find.
  13546. * src/FtpTunnelResponseCommand.cc
  13547. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  13548. * src/FtpInitiateConnectionCommand.cc
  13549. (executeInternal): Removed the allocation of socket.
  13550. * src/DownloadEngine.h
  13551. (Sockets): An element is now of type SocketHandle.
  13552. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  13553. (CommandUuids): New type definition.
  13554. (rsockets): Changed its type to SockCmdMap.
  13555. (wsockets): Changed its type to SockCmdMap.
  13556. (addSocket): Rewritten.
  13557. (deleteSocket): Rewritten.
  13558. (addSocketForReadCheck): Rewritten.
  13559. (deleteSocketForReadCheck): Rewritten.
  13560. (addSocketForWriteCheck): Rewritten.
  13561. (deleteSocketForWriteCheck): Rewritten.
  13562. (PairFind): New template class.
  13563. * src/HttpDownloadCommand.h
  13564. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  13565. * src/FtpConnection.cc
  13566. (FtpConnection): Replaced Socket with SocketHandle.
  13567. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  13568. block.
  13569. * src/InitiateConnectionCommandFactory.cc
  13570. (DlAbortEx.h): Included DlAbortEx.h.
  13571. (createInitiateConnectionCommand): Throw exception if the protocol of
  13572. requested URI is not supported.
  13573. * src/Peer.cc
  13574. (nullPeer): Changed its type to PeerHandle.
  13575. (operator==): New function.
  13576. (operator!=): New function.
  13577. * src/Peer.h
  13578. (SharedHandle.h): Included SharedHandle.h.
  13579. (operator==): New function.
  13580. (operator!=): New function.
  13581. (Peer): Added the default constructor.
  13582. Use resetStatus() to initialize member variables.
  13583. (nullPeer): Removed.
  13584. * src/TrackerUpdateCommand.cc
  13585. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  13586. with MIN_PEERS.
  13587. * src/PeerListenCommand.h
  13588. (socket): Changed its type to SocketHandle.
  13589. * src/Command.h
  13590. (CommandUuid): New type definition.
  13591. (uuid): New variable.
  13592. (uuidGen): New variable.
  13593. (Command): Added the initialization of uuid.
  13594. (getUuid): New function.
  13595. * src/Socket.h
  13596. (Socket): Removed.
  13597. (SocketHandle): New type definition.
  13598. * src/DownloadEngine.h
  13599. (FindCommand): New function object.
  13600. (run): The portion of socket check was rewritten.
  13601. (SetDescriptor): New function object.
  13602. (AccumulateActiveCommandUuid): New function object.
  13603. (waitData): Rewritten.
  13604. (addSocket): Rewritten.
  13605. (deleteSocket): Rewritten.
  13606. (addSocketForReadCheck): Rewritten.
  13607. (addSocketForWriteCheck): Rewritten.
  13608. (deleteSocketForReadCheck): Rewritten.
  13609. (deleteSocketForWriteCheck): Rewritten.
  13610. * src/HttpProxyResponseCommand.h
  13611. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  13612. * src/HttpConnection.h
  13613. (socket): Changed its type to SocketHandle.
  13614. (HttpConnection): Replaced Socket with SocketHandle.
  13615. * src/PeerInitiateConnectionCommand.cc
  13616. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  13617. (executeInternal): Removed the allocation of socket.
  13618. (prepareForNextPeer): Use PeerHandle.
  13619. * src/PeerMessage.h
  13620. (peer): Changed its type to PeerHandle.
  13621. (getPeer): Replaced Peer with PeerHandle.
  13622. (setPeer): Replaced Peer with PeerHandle.
  13623. * src/DownloadCommand.cc
  13624. (DownloadCommand): Replaced Socket with SocketHandle.
  13625. * src/FtpConnection.h
  13626. (socket): Changed its type to SocketHandle.
  13627. (FtpConnection): Replaced Socket with SocketHandle.
  13628. (sendPort); Replaced Socket with SocketHandle.
  13629. * src/FtpDowndloadCommand.h
  13630. (ctrlSocket): Changed its type to SocketHandle.
  13631. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  13632. * src/HttpProxyRequestCommand.cc
  13633. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  13634. * src/FtpTunnelRequestCommand.h
  13635. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  13636. etc
  13637. * src/PeerChokeCommand.h
  13638. (setAllPeerChoked): Removed.
  13639. (setAllPeerResetDelta): Removed.
  13640. * src/PeerChokeCommand.cc
  13641. (setAllPeerChoked): Removed.
  13642. (ChokePeer): New function object.
  13643. (setAllPeerResetDelta): Removed.
  13644. (ResetDelta): New function object.
  13645. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  13646. (execute): Show download speed when the local node is a seeder.
  13647. setAllPeerChoked and setAllPeerResetDelta were rewritten
  13648. using STL.
  13649. * src/TrackerWatcherCommand.h
  13650. (MIN_PEERS): Removed.
  13651. * src/TorrentMan.cc
  13652. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  13653. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13654. To fix the bug that .aria2 file is not saved if downloading is stopped
  13655. by the errors:it results that aria2 can not resume downloading:
  13656. * src/main.cc
  13657. (normalDownload): Added the call to save().
  13658. (main): Added the deletion of the elements in 'reserved'.
  13659. To fix log:
  13660. * src/PeerInteraction.cc
  13661. (receiveHandshake): Fixed log.
  13662. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13663. To improve download performance in BitTorrent:
  13664. * src/TorrentMan.cc
  13665. (getPeer): Check the number of connections. Return nullPeer if
  13666. it is greater than MAX_PEER_UPDATE.
  13667. This code was originally here, but was removed in 0.5.1.
  13668. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13669. To improve the conditional compilation:
  13670. * src/MultiDiskWriter.h:
  13671. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13672. * src/MultiDiskWriter.cc:
  13673. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13674. * src/Util.h:
  13675. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13676. Added ENABLE_BITTORRENT around computeFastSet().
  13677. * src/Util.cc:
  13678. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13679. Added ENABLE_BITTORRENT around computeFastSet().
  13680. * src/messageDigest.h:
  13681. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  13682. * src/ShaVisitor.h:
  13683. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13684. * src/ShaVisitor.cc:
  13685. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13686. * src/main.cc:
  13687. Added ENABLE_BITTORRENT around includes and blocks related to
  13688. BitTorrent.
  13689. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  13690. digest support is not available.
  13691. * src/AbstractDiskWriter.h:
  13692. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13693. * src/AbstractDiskWriter.cc:
  13694. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  13695. * src/MetalinkEntry.cc
  13696. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  13697. support is not available.
  13698. To add command-line options for Metalink:
  13699. * src/main.cc:
  13700. Added metalink-version, metalink-language, metalink-os,
  13701. follow-metalink.
  13702. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  13703. * src/main.cc: Use these definition.
  13704. * Release 0.6.0
  13705. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13706. To add Metalink support(http/ftp only):
  13707. * src/AbstractCommand.h
  13708. (tryReserved): New function.
  13709. * src/AbstractCommand.cc
  13710. (execute): Call tryReserved().
  13711. (tryReserved): New function.
  13712. * src/Request.h
  13713. (Requests): New type definition.
  13714. * src/SegmentMan.h
  13715. (reserved): New variable.
  13716. * src/Util.h
  13717. (fileChecksum): New function.
  13718. (toUpper): New function.
  13719. (toLower): New function.
  13720. * src/Util.cc
  13721. (messageDigest.h): Included.
  13722. (trim): Trim \r\n\t.
  13723. (fileChecksum): New function.
  13724. (toUpper): New function.
  13725. (toLower): New function.
  13726. * src/main.cc
  13727. (normalDownload): New function.
  13728. (main): Added 2 command-line options: metalink-file,
  13729. metalink-connection. Their usage has not been written yet.
  13730. * src/MetalinkProcessor.h: New class.
  13731. * src/Xml2MetalinkProcessor.h: New class.
  13732. * src/Xml2MetalinkProcessor.cc: New class.
  13733. * src/MetalinkEntry.h: New class.
  13734. * src/MetalinkEntry.cc: New class.
  13735. * src/MetalinkResource.h: New class.
  13736. * src/MetalinkResource.cc: New class.
  13737. To add md5 message digest checking:
  13738. * src/messageDigest.h: Rewritten.
  13739. * src/MultiDiskWriter.cc: Updated according to the changes in
  13740. messageDigest.h.
  13741. * src/ShaVisitor.cc: Updated according to the changes in
  13742. messageDigest.h.
  13743. * src/Util.cc: Updated according to the changes in messageDigest.h.
  13744. * src/AbstractDiskWriter.cc: Updated according to the changes in
  13745. messageDigest.h.
  13746. To fix a bug that causes segfault when the payload length in peer
  13747. message is less than 0:
  13748. * src/PeerConnection.cc:
  13749. (receiveMessage): Fixed the bug.
  13750. * src/PeerMessageUtil.cc
  13751. (checkLength): Throw an exception if length is less than or equals to
  13752. 0.
  13753. To add new interfaces to Base64 encoding/decoding:
  13754. * src/Base64.h
  13755. (part_encode): Changed the method signature.
  13756. (encode): New function(overload).
  13757. (decode): New function(overload).
  13758. * src/Base64.cc
  13759. (part_encode): Rewritten.
  13760. (encode): Rewritten.
  13761. (encode): New function(overload).
  13762. To prevent a peer to download same piece if there is an error in
  13763. checksum:
  13764. * src/PieceMessage.cc
  13765. (receivedAction): Call peerInteraction->abortPiece().
  13766. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13767. To fix the bug that causes same have message is sent many times to
  13768. a single peer.
  13769. * src/Time.cc
  13770. (isNewer): Use Util::difftv().
  13771. * src/Util.cc
  13772. (difftv): Added a cast to (long long int).
  13773. * src/TorrentMan.cc
  13774. (advertisePiece): Use push_front.
  13775. (getAdvertisedPieceIndexes): A performance improvement was made.
  13776. To fix the bug that sends tracker requests without a sleep interval
  13777. when the number of connections is less than 15.
  13778. * src/TrackerWatcherCommand.cc
  13779. (execute): Now the number of connections is not a factor to decide
  13780. whether or not a tracker request should be sent or not.
  13781. * src/Time.h
  13782. (setTimeInSec): New function.
  13783. * src/Time.cc
  13784. (setTimeInSec): New function.
  13785. etc.
  13786. * src/ChokeMessage.cc
  13787. (receivedAction): Removed peer->snubbing = false
  13788. * src/PeerConnection.h
  13789. (receiveHandshake): Updated doc.
  13790. * src/TorrentMan.h
  13791. (getAdvertisedPieceIndexes): Updated the method signature.
  13792. * src/TorrentMan.cc
  13793. (getAdvertisedPieceIndexes): Updated the method signature.
  13794. * src/Time.h
  13795. (getTimeInMicros): Added a cast to (long long int).
  13796. (getTimeInMillis): Added a cast to (long long int).
  13797. * Release 0.5.2
  13798. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13799. To make a listening socket non-block:
  13800. * src/SocketCore.h
  13801. (setNonBlockingMode): New function.
  13802. * src/SocketCore.cc
  13803. (setNonBlockingMode): New function.
  13804. (beginListen): Added a call to setNonBlockingMode().
  13805. (acceptConnection): Call setNonBlockingMode().
  13806. (setBlockingMode): Updated.
  13807. To handle tracker's NAT-checking:
  13808. * src/PeerConnection.cc
  13809. (receiveHandshake): 'msg' param is filled with received data and
  13810. its length is assigned to 'length' param, even if all handshake
  13811. message is not yet received.
  13812. * src/PeerInteractionCommand.cc
  13813. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  13814. a new peer connects to localhost.
  13815. A call to peerInteraction->sendHandshake() was removed because
  13816. it is called from peerInteraction->receiveHandshake(true).
  13817. * src/PeerInteraction.h
  13818. (quickReplied): New variable.
  13819. (receiveHandshake): Added an argument.
  13820. * src/PeerInteraction.cc
  13821. (PeerInteraction): Added the initialization of quickReplied.
  13822. (receiveHandshake): Send handshake message as soon as the info hash
  13823. in a handshake message from a peer is correct.
  13824. To change the random part of peer id and key parameter:
  13825. * src/TorrentMan.h
  13826. (key): New variable.
  13827. * src/TorrentMan.cc
  13828. (setupInternal1): Use Util::randomAlpha() to generate random part
  13829. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13830. key is also generated by Util::randomAlpha() and it is now 8 character
  13831. long.
  13832. * src/Util.h
  13833. (randomAlpha): New function.
  13834. * src/Util.cc
  13835. (randomAlpha): New function.
  13836. * src/TrackerWatcherCommand.cc
  13837. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13838. Added no_peer_id=1.
  13839. Set snubbing flag to false when a choke message is received from a
  13840. snubbed peer.
  13841. * src/ChokeMessage.cc
  13842. (receivedAction): Set snubbing flag to false.
  13843. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13844. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13845. * src/SimpleLogger.h (writeHeader): New function.
  13846. * src/SimpleLogger.cc (writeHeader): New function.
  13847. (writeLog): Fixed the bug that causes segfaults if exception message
  13848. contains an unescaped "%" character.
  13849. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13850. when a tracker request fails.
  13851. * src/Request.cc (parseUrl): Query string is now handled properly.
  13852. * Release 0.5.1
  13853. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13854. To add Time class which represents a specific instant in time and
  13855. its precision is microseconds. Time checking procedures were rewritten
  13856. using this object.
  13857. * src/Time.h: New class.
  13858. * src/Time.cc: New class.
  13859. * src/AbstractCommand.h
  13860. (updateCheckPoint): Removed.
  13861. (isTimeoutDetected): Removed.
  13862. (checkPoint): Changed the type to Time.
  13863. (timeout): New variable.
  13864. (setTimeout): New function.
  13865. * src/AbstractCommand.cc
  13866. (AbstractCommand): Removed the initialization of checkPoint.
  13867. Added the initialization of timeout.
  13868. (updateCheckPoint): Removed.
  13869. (isTimeoutDetected): Removed.
  13870. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13871. * src/PeerChokeCommand.h
  13872. (checkPoint): Changed the type to Time.
  13873. * src/PeerChokeCommand.cc
  13874. (PeerChokeCommand): Removed the initialization of checkPoint.
  13875. (execute): Rewritten using Time object.
  13876. * src/TrackerWatcherCommand.h
  13877. (checkPoint): Changed the type to Time.
  13878. * src/TrackerWatcherCommand.cc
  13879. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13880. (execute): Rewritten.
  13881. * src/ConsoleDownloadEngine.h
  13882. (cp): Changed the type to Time.
  13883. (startup): Changed the type to Time.
  13884. * src/ConsoleDownloadEngine.cc
  13885. (initStatistics): Use cp.reset(), startup.reset().
  13886. (calculateStatistics): Rewritten using Time object.
  13887. * src/PeerAbstractCommand.h
  13888. (updateCheckPoint): Removed.
  13889. (isTimeoutDetected): Removed.
  13890. (checkPoint): Changed the type to Time.
  13891. * src/PeerAbstractCommand.cc
  13892. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13893. (updateCheckPoint): Removed.
  13894. (isTimeoutDetected): Removed.
  13895. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13896. * src/PeerInteractionCommand.cc
  13897. (PeerInteractionCommand): Removed the initializations of struct
  13898. timeval variables.
  13899. * src/PeerInteractionCommand.h
  13900. (keepAliveCheckPoint): Changed the type to Time.
  13901. (chokeCheckPoint): Changed the type to Time.
  13902. (freqCheckPoint): Changed the type to Time.
  13903. (haveCheckTime): Changed the type to Time.
  13904. * src/PeerInteractionCommand.cc
  13905. (executeInternal): Rewritten using Time object.
  13906. (detectMessageFlooding): Rewritten using Time object.
  13907. (checkLongTimePeerChoking): Rewritten using Time object.
  13908. (sendKeepAlive): Rewritten using Time object.
  13909. (checkHave): Rewritten using Time object.
  13910. * src/SleepCommand.h
  13911. (checkPoint): Changed the type to Time.
  13912. * src/SleepCommand.cc
  13913. (SleepCommand): Removed the initialization of checkPoint.
  13914. (execute): Rewritten using Time object.
  13915. * src/TorrentAutoSaveCommand.h
  13916. (checkPoint): Changed the type to Time.
  13917. * src/TorrentAutoSaveCommand.cc
  13918. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13919. (execute): Rewritten.
  13920. * src/DownloadCommand.h
  13921. (sw): Changed the type to Time.
  13922. * src/DownloadCommand.cc
  13923. (DownloadCommand): Removed the initialization of sw.
  13924. (executeInternal): Rewritten.
  13925. * src/RequestSlot.h
  13926. (dispatchedTime): Changed the type to Time.
  13927. * src/RequestSlot.cc
  13928. (RequestSlot): Removed the call to setDispatchedTime().
  13929. (setDispatchedTime): Rewirtten.
  13930. (isTimeout): Rewritten.
  13931. (getLatencyInMillis): Rewritten.
  13932. * src/TorrentDownloadEngine.h
  13933. (cp): Changed the type to Time[2].
  13934. (startup): Changed the type to Time.
  13935. * src/TorrentDownloadEngine.cc
  13936. (initStatistics): Rewritten.
  13937. (calculateStatistics): Rewritten.
  13938. * src/DownloadEngine.cc
  13939. (run): Rewritten.
  13940. To detect all attempts to connect to the tracker are failed:
  13941. * src/AbstractCommand.cc
  13942. (execute): Increment e->segmentMan->errors if a command aborted.
  13943. * src/SegmentMan.h
  13944. (errors): New variable.
  13945. * src/SegmentMan.cc
  13946. (SegmentMan): Added the initialization of errors.
  13947. (init): Added the initialization of errors.
  13948. * src/TrackerWatcherCommand.cc
  13949. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13950. request was failed.
  13951. To handle snubbed peers:
  13952. * src/PeerChokeCommand.cc
  13953. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13954. (execute): Snubbed peers don't get unchoked.
  13955. * src/PeerInteraction.h
  13956. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13957. * src/PeerInteraction.cc
  13958. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13959. back the requested 16k block in 60 seconds.
  13960. * src/PieceMessage.cc
  13961. (receivedAction): A peer's snubbed state is cleard if it sends
  13962. the requested 16k block in 60 seconds.
  13963. * src/Peer.h
  13964. (snubbing): New variable.
  13965. * src/Peer.cc
  13966. (resetStatus): Added snubbed = false.
  13967. To fix the bug that causes have message is not sent:
  13968. * src/PeerInteractionCommand.cc
  13969. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13970. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13971. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13972. * src/TorrentMan.h
  13973. (HaveEntry): New class.
  13974. (advertisePiece): Rewritten.
  13975. (getAdvertisedPieceIndexes): Rewritten.
  13976. (Haves): Changed the type.
  13977. (getAdvertisedPieceIndexes): Added an argument.
  13978. Others:
  13979. * src/TorrentMan.h
  13980. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13981. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13982. * src/TorrentMan.cc
  13983. (getPeer): Don't check the number of connections here.
  13984. (setupInternal1): Changed peerId.
  13985. * src/PeerInteractionCommand.h
  13986. (KEEP_ALIVE_INTERVAL): New definition.
  13987. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13988. * src/main.cc
  13989. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13990. * src/DownloadEngine.h: Removed unnecessary header includes.
  13991. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13992. To fix the bug that causes segfaults if a tracker returns a zero-length
  13993. list as "peers":
  13994. * src/TrackerUpdateCommand.cc
  13995. (execute): Added a check to see wether the type of peers is Data*.
  13996. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13997. * Release 0.5.0
  13998. To fix compile issue with gcc3:
  13999. * src/CancelMessage.h
  14000. (ID): Renamed as ID_t
  14001. (ID_t): New enum.
  14002. * src/RejectMessage.h
  14003. (ID): Renamed as ID_t
  14004. (ID_t): New enum.
  14005. * src/SuggestPieceMessage.h
  14006. (ID): Renamed as ID_t
  14007. (ID_t): New enum.
  14008. * src/AllowedFastMessage.h
  14009. (ID): Renamed as ID_t
  14010. (ID_t): New enum.
  14011. * src/PortMessage.h
  14012. (ID): Renamed as ID_t
  14013. (ID_t): New enum.
  14014. * src/HaveNoneMessage.h
  14015. (ID): Renamed as ID_t
  14016. (ID_t): New enum.
  14017. * src/KeepAliveMessage.h
  14018. (ID): Renamed as ID_t
  14019. (ID_t): New enum.
  14020. * src/HaveAllMessage.h
  14021. (ID): Renamed as ID_t
  14022. (ID_t): New enum.
  14023. * src/UnchokeMessage.h
  14024. (ID): Renamed as ID_t
  14025. (ID_t): New enum.
  14026. * src/BitfieldMessage.h
  14027. (ID): Renamed as ID_t
  14028. (ID_t): New enum.
  14029. * src/PieceMessage.h
  14030. (ID): Renamed as ID_t
  14031. (ID_t): New enum.
  14032. * src/RequestMessage.h
  14033. (ID): Renamed as ID_t
  14034. (ID_t): New enum.
  14035. * src/NotInterestedMessage.h
  14036. (ID): Renamed as ID_t
  14037. (ID_t): New enum.
  14038. * src/ChokeMessage.h
  14039. (ID): Renamed as ID_t
  14040. (ID_t): New enum.
  14041. * src/InterestedMessage.h
  14042. (ID): Renamed as ID_t
  14043. (ID_t): New enum.
  14044. * src/HaveMessage.h
  14045. (ID): Renamed as ID_t
  14046. (ID_t): New enum.
  14047. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14048. * src/PeerAbstractCommand.h
  14049. (beforeSocketCheck): Removed.
  14050. * src/PeerAbstractCommand.cc
  14051. Modified in order to call executeInternal() even if socket check
  14052. and upload limit check fail.
  14053. * src/PeerInteractionCommand.h
  14054. (keepAlive): Removed.
  14055. (sendKeepAlive): New function.
  14056. (checkHave): New function.
  14057. (beforeSocketCheck): Removed.
  14058. * src/PeerInteractionCommand.cc
  14059. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  14060. calls to checkHave() and sendKeepAlive().
  14061. (keepAlive): Renamed to sendKeepAlive().
  14062. (sendKeepAlive): New function.
  14063. (beforeSocketCheck): Removed.
  14064. (checkHave): New function.
  14065. * src/BitfieldMan.cc
  14066. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  14067. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  14068. 0.
  14069. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  14070. * src/TorrentMan.h
  14071. (UsedPieces): Removed.
  14072. (Pieces): New type definition.
  14073. * src/Piece.h: Updated doc.
  14074. * src/Peer.h
  14075. (totalLength): Removed.
  14076. * src/Peer.cc
  14077. (updateLatency): Fixed the latency calculation.
  14078. * src/TorrentMan.cc
  14079. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  14080. than or equal to MAX_PEER_LIST_SIZE.
  14081. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  14082. then return false.
  14083. (deleteOldErrorPeers): Rewritten.
  14084. (deleteUsedPiece): Fixed the miss use of STL remove.
  14085. * src/PeerInteraction.h
  14086. (Pieces): Removed.
  14087. (deleteTimeoutRequestSlot): Removed.
  14088. (deleteCompletedRequestSlot): Removed.
  14089. (checkRequestSlot): New function.
  14090. * src/PeerInteraction.cc
  14091. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  14092. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  14093. (checkRequestSlot): New function.
  14094. * src/DownloadEngine.cc
  14095. (run): Clear activeSockets before calling waitData().
  14096. (waitData): Removed a call to activeSockets.clear().
  14097. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14098. To attempt to handle EINTR:
  14099. * src/SocketCore.cc
  14100. (isReadable): Added EINTR handling.
  14101. (isWritable): Added EINTR handling.
  14102. To improve the performance:
  14103. * src/AbstractCommand.cc
  14104. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14105. * src/PeerInteractionCommand.h
  14106. (receiveMessage): Renamed as receiveMessages().
  14107. (receiveMessages): New function.
  14108. * src/PeerInteractionCommand.cc
  14109. (executeInternal): receiveMessage loop is moved to new receiveMessages
  14110. () function. detectMessageFlooding() is moved here.
  14111. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  14112. (). The flooding detection for have message is comment out.
  14113. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  14114. Util::difftv().
  14115. (receiveMessage): Renamed as receiveMessages().
  14116. (receiveMessages): New function.
  14117. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  14118. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  14119. * src/SleepCommand.cc
  14120. (execute): Use Util::difftvsec() instead of Util::difftv().
  14121. * src/BitfieldMan.h
  14122. (getNthBitIndex): New function.
  14123. (hasMissingPiece): New function.
  14124. (getAllMissingIndexes): New function.
  14125. * src/BitfieldMan.cc
  14126. (countSetBit): Rewritten.
  14127. (getNthBitIndex): New function.
  14128. (getMissingIndexRandomly): Rewritten.
  14129. (hasMissingPiece): New function.
  14130. (getAllMissingIndexes): New function.
  14131. * src/TorrentMan.cc
  14132. (hasMissingPiece): New function.
  14133. (deleteUsedPiece): Rewritten using STL.
  14134. * src/PeerInteraction.cc
  14135. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  14136. is a little bit faster then TorrentMan::getMissingPieceIndex().
  14137. (addRequests): Updated the number of pending requests.
  14138. * src/PeerAbstractCommand.cc
  14139. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  14140. (execute): Returns true if TorrentMan::isHalt() is true.
  14141. Corrected the condition of upload limit checking.
  14142. * src/Util.h
  14143. (countBit): New function.
  14144. * src/Util.cc
  14145. (nbits): New variable.
  14146. (countBit): New function.
  14147. * src/DownloadEngine.h
  14148. (SockCmdMap): New type definition.
  14149. (waitData): Added an argument.
  14150. (addSocket): Added an argument.
  14151. (addSocketForReadCheck): Added an argument.
  14152. (addSocketForWriteCheck): Added an argument.
  14153. * src/DownloadEngine.cc
  14154. (run): Executes only commands whose sockets are ready to read or write.
  14155. All commands are executed in every 1 second.
  14156. (waitData): Calls select() again if it returned
  14157. EINTR.
  14158. (addSocket): Saves socket and command object pair to the map.
  14159. (deleteSocket): Deletes socket and command object pair from the map.
  14160. (addSocketForReadCheck): Added an argument.
  14161. (addSocketForWriteCheck): Added an argument.
  14162. * src/DownloadCommand.cc
  14163. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  14164. To send "event=stopped" to the tracker when the application finishes:
  14165. * src/PeerChokeCommand.h
  14166. (checkPoint): New variable.
  14167. * src/PeerChokeCommand.cc
  14168. (PeerChokeCommand): Added the initialization of checkPoint.
  14169. (execute): The interval check is now done by checkPoint, not
  14170. SleepCommand. Return true if TorrentMan::isHalt() is true.
  14171. * src/TorrentMan.h
  14172. (halt): New function.
  14173. (hasMissingPiece): New function.
  14174. (isHalt): New function.
  14175. (setHalt): New function.
  14176. * src/TorrentMan.cc
  14177. (TorrentMan): Added the initialization of halt.
  14178. * src/TorrentAutoSaveCommand.h
  14179. (checkPoint): New variable.
  14180. * src/PeerListenCommand.cc
  14181. (execute): Returns true if TorrentMan::isHalt() is true.
  14182. * src/main.cc
  14183. (setSignalHander): Added flags argument.
  14184. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  14185. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  14186. Removed printDownloadAbortMessage() after torrent downloading loop.
  14187. * src/TorrentAutoSaveCommand.cc
  14188. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  14189. (execute): Returns true if TorrentMan::isHalt() is true.
  14190. The interval check is now done by checkPoint, not SleepCommand.
  14191. * src/TrackerWatcherCommand.cc
  14192. (execute): If TorrentMan::isHalt(), then create a tracker request with
  14193. event=stopped.
  14194. * src/TrackerUpdateCommand.cc
  14195. (prepareForRetry): Do not use SleepCommand here.
  14196. (execute): Returns true if TorrentMan::isHalt() is true.
  14197. Others:
  14198. * src/TorrentMan.cc
  14199. (getMissingPieceIndex): Updated log message.
  14200. * src/PeerInteraction.cc
  14201. (createPeerMessag): Updated log message.
  14202. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14203. To add the ability to download several pieces in mix in a command and
  14204. increase the number of request slots according to request-cancel
  14205. latency:
  14206. * src/PeerInteractionCommand.cc
  14207. (executeInternal): The number of messages to be received at a time
  14208. is increased from 10 to 50.
  14209. * src/LogFactory
  14210. (getInstance): Added NullLogger.
  14211. * src/NullLogger.h: New class.
  14212. * src/BitfieldMan.h
  14213. (getMissingIndex): New function.
  14214. * src/BitfieldMan.cc
  14215. (getMissingIndex): New function.
  14216. * src/TorrentMan.h
  14217. (checkOutPiece): New function.
  14218. (getMissingPieceIndex): New function.
  14219. (getMissingFastPieceIndex): New function.
  14220. (getMissingFastPiece): New function.
  14221. * src/TorrentMan.cc
  14222. (updatePiece): Rewritten using STL.
  14223. (syncPiece): Rewritten using STL.
  14224. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  14225. checkOutPiece().
  14226. (getMissingPieceIndex): New function.
  14227. (getMissingFastPieceIndex): New function.
  14228. (getMissingFastPiece): New function.
  14229. (checkOutPiece): New function.
  14230. * src/PeerInteraction.h
  14231. (Pieces): New type definition.
  14232. (piece): Removed.
  14233. (pieces): New variable.
  14234. (getNewPieceAndSendInterest): Added the "piece" argument.
  14235. (abortPiece): Added the "piece" argument.
  14236. (abortAllPieces): New function.
  14237. (isInRequestSlot): New function.
  14238. (hasDownloadPiece): Added the "index" argument.
  14239. (setDownloadPiece): Removed.
  14240. (getDownloadPiece): Added the "index" argument.
  14241. (updatePiece): New function.
  14242. (createRequestMessage): Added the "index" argument.
  14243. * src/PeerInteraction.cc
  14244. (onChoked): Rewritten.
  14245. (abortPiece): Rewirtten.
  14246. (abortAllPieces): New function.
  14247. (deleteTimeoutRequestSlot): Rewritten.
  14248. Clarified code a little bit.
  14249. (deleteCompletedRequestSlot): Rewritten.
  14250. (isInRequestSlot): New function.
  14251. (syncPiece): Rewritten.
  14252. (updatePiece): New function.
  14253. (getNewPieceAndSendInterest): Rewritten.
  14254. (addRequests): Rewritten.
  14255. (getDownloadPiece): Rewritten.
  14256. (hasDownloadPiece): Rewritten.
  14257. (createRequestMessage): Added the "index" argument.
  14258. * src/common.h
  14259. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  14260. (DIV_FLOOR): New definition.
  14261. * src/PieceMessage.cc
  14262. (receivedAction): Update request-piece latency here.
  14263. * src/RequestSlot.h
  14264. (getLatencyInMillis): New function.
  14265. * src/RequestSlot.cc
  14266. (isTimeout): Rewritten using getLatencyInMillis.
  14267. (getLatencyInMillis): New function.
  14268. * src/Piece.h
  14269. (operator==): New function.
  14270. (getMissingBlockIndex): New function.
  14271. * src/Piece.cc
  14272. (operator==): New function.
  14273. (getMissingBlockIndex): New function.
  14274. * src/Peer.h
  14275. (DEFAULT_LATENCY): New definition.
  14276. (latency): New variable.
  14277. (updateLatency): New function.
  14278. (getLatency): New function.
  14279. * src/Peer.cc
  14280. (resetStatus): Reset latecy.
  14281. (updateLatency): New function.
  14282. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14283. * src/SocketCore.cc
  14284. (isReadable): Added secure to the condition.
  14285. * src/HttpConnection.cc
  14286. (receiveResponse): Fixed a bug that causes no response header
  14287. exception.
  14288. * src/Peer.h
  14289. (getFastSet): Fixed the return value type.
  14290. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14291. To remove a wait from download loop:
  14292. * src/DownloadEngine.cc
  14293. (run): Comment out shortSleep.
  14294. To rewrite the message handling:
  14295. * src/SimplePeerMessage.h: New class.
  14296. * src/SimplePeerMessage.cc: New class.
  14297. * src/CancelMessage.h: Derived from SimplePeerMessage.
  14298. (msg): New variable.
  14299. (create): New function.
  14300. (send): Removed.
  14301. (getMessage): New function.
  14302. (getMessageLength): New function.
  14303. * src/CancelMessage.cc
  14304. (create): New function.
  14305. (receivedAction): Replaced deleteRequestMessageInQueue with
  14306. rejectPieceMessageInQueue.
  14307. (send): Removed.
  14308. (getMessage): New function.
  14309. (getMessageLength): New function.
  14310. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  14311. (msg): New variable.
  14312. (msgLength): New variable.
  14313. (~BitfieldMessage): Deleted msg.
  14314. (send): Removed.
  14315. (getMessage): New function.
  14316. (getMessageLength): New function.
  14317. * src/BitfieldMessage.cc
  14318. (create): New function.
  14319. (send): Removed.
  14320. (getMessage): New function.
  14321. (getMessageLength): New function.
  14322. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  14323. (msg): New variable.
  14324. (sendPredicate): New function.
  14325. (onSendComplete): New function.
  14326. (send): Removed.
  14327. (getMessage): New function.
  14328. (getMessageLength): New function.
  14329. (create): New function.
  14330. * src/ChokeMessage.cc
  14331. (create): New function.
  14332. (send): Removed.
  14333. (sendPredicate): New function.
  14334. (getMessage): New function.
  14335. (getMessageLength): New function.
  14336. (onSendComplete): New function.
  14337. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  14338. (msg): New variable.
  14339. (send): Removed.
  14340. (getMessage): New function.
  14341. (getMessageLength): New function.
  14342. * src/KeepAliveMessage.cc
  14343. (send): Removed.
  14344. (getMessage): New function.
  14345. (getMessageLength): New function.
  14346. * src/PortMessage.h
  14347. (create): New function.
  14348. (receivedAction): Updated log message.
  14349. * src/PortMessage.cc: New file.
  14350. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  14351. (msg): New variable.
  14352. (sendPredicate): New function.
  14353. (onSendComplete): New function.
  14354. (create): New function.
  14355. (send): Removed.
  14356. (getMessage): New function.
  14357. (getMessageLength): New function.
  14358. * src/UnchokeMessage.cc
  14359. (create): New function.
  14360. (send): Removed.
  14361. (sendPredicate): New function.
  14362. (getMessage): New function.
  14363. (getMessageLength): New function.
  14364. (onSendComplete): New function.
  14365. * src/PieceMessage.h
  14366. (leftPieceDataLength): Removed.
  14367. (leftDataLength): New variable.
  14368. (headerSend): New variable.
  14369. (pendingCount): New variable.
  14370. (msgHeader): New variable.
  14371. (sendPieceData): New function.
  14372. (incrementPendingCount): New function.
  14373. (isPendingCountMax): New function.
  14374. (create): New function.
  14375. (getMessageHeader): New function.
  14376. (getMessageHeaderLength): New function.
  14377. * src/PieceMessage.cc
  14378. (create): New function.
  14379. (getMessageHeader): New function.
  14380. (getMessageHeaderLength): New function.
  14381. (send): Rewritten.
  14382. (sendPieceData): New function.
  14383. * src/HaveMessage.h: Derived from SimplePeerMessage.
  14384. (msg): New variable.
  14385. (create): New function.
  14386. (getMessage): New function.
  14387. (getMessageLength): New function.
  14388. * src/HaveMessage.cc
  14389. (create): New function.
  14390. (send): Removed.
  14391. (sendPieceData): New function.
  14392. (getMessage): New function.
  14393. (getMessageLength): New function.
  14394. * src/RequestMessage.h: Derived from SimplePeerMessage.
  14395. (msg): New variable.
  14396. (create): New function.
  14397. (send): Removed.
  14398. (getMessage): New function.
  14399. (getMessageLength): New function.
  14400. * src/RequestMessage.cc
  14401. (create): New function.
  14402. (receivedAction): Added the handling of fast extension.
  14403. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  14404. (send): Removed.
  14405. (getMessage): New function.
  14406. (getMessageLength): New function.
  14407. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  14408. (msg): New variable.
  14409. (sendPredicate): New function.
  14410. (onSendComplete): New function.
  14411. (create): New function.
  14412. (getMessage): New function.
  14413. (getMessageLength): New function.
  14414. * src/InterestedMessage.cc
  14415. (create): New function.
  14416. (send): Removed.
  14417. (sendPieceData): New function.
  14418. (getMessage): New function.
  14419. (getMessageLength): New function.
  14420. (onSendComplete): New function.
  14421. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  14422. (msg): New variable.
  14423. (sendPieceData): New function.
  14424. (onSendComplete): New function.
  14425. (create): New function.
  14426. (send): Removed.
  14427. (getMessage): New function.
  14428. (getMessageLength): New function.
  14429. * src/NotInterestedMessage.cc
  14430. (create): New function.
  14431. (send): Removed.
  14432. (sendPredicate): New function.
  14433. (getMessage): New function.
  14434. (getMessageLength): New function.
  14435. (onSendComplete): New function.
  14436. * src/AllowedFastMessage.h: New class.
  14437. * src/AllowedFastMessage.cc: New class.
  14438. * src/RejectMessage.h: New class.
  14439. * src/RejectMessage.cc: New class.
  14440. * src/SuggestPieceMessage.h: New class.
  14441. * src/SuggestPieceMessage.cc: New class.
  14442. * src/HaveAllMessage.h: New class.
  14443. * src/HaveAllMessage.cc: New class.
  14444. * src/HaveNoneMessage.h: New class.
  14445. * src/HaveNoneMessage.cc: New class.
  14446. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  14447. (msg): New variable.
  14448. (reserved): New variable.
  14449. (create): New function.
  14450. (getId): New function.
  14451. (receivedAction): New function.
  14452. (getMessage): New function.
  14453. (getMessageLength): New function.
  14454. (isFastExtensionSupported): New function.
  14455. * src/HandshakeMessage.cc
  14456. (HandshakeMessage): Moved here from HandshakeMessage.h.
  14457. (create): New function.
  14458. (getMessage): New function.
  14459. (getMessageLength): New function.
  14460. (toString): Added the output of reserved field.
  14461. (check): Added const qualifier.
  14462. (isFastExtensionSupported): New function.
  14463. * src/PeerMessageUtil.h
  14464. (createChokeMessage): Removed.
  14465. (createUnchokeMessage): Removed.
  14466. (createInterestedMessage): Removed.
  14467. (createNotInterestedMessage): Removed.
  14468. (createHaveMessage): Removed.
  14469. (createBitfieldMessage): Removed.
  14470. (createRequestMessage): Removed.
  14471. (createCancelMessage): Removed.
  14472. (createPieceMessage): Removed.
  14473. (createPortMessage): Removed.
  14474. (createChokeMessage): Removed.
  14475. (createUnchokeMessage): Removed.
  14476. (createInterestedMessage): Removed.
  14477. (createNotInterestedMessage): Removed.
  14478. (createHaveMessage): Removed.
  14479. (createBitfieldMessage): Removed.
  14480. (createRequestMessage): Removed.
  14481. (createCancelMessage): Removed.
  14482. (createPieceMessage): Removed.
  14483. (createKeepAliveMessage): Removed.
  14484. (createHandshakeMessage): Removed.
  14485. (setIntParam): New function.
  14486. (createPeerMessageString): New function.
  14487. * src/PeerMessageUtil.cc
  14488. (createChokeMessage): Removed.
  14489. (createUnchokeMessage): Removed.
  14490. (createInterestedMessage): Removed.
  14491. (createNotInterestedMessage): Removed.
  14492. (createHaveMessage): Removed.
  14493. (createBitfieldMessage): Removed.
  14494. (createRequestMessage): Removed.
  14495. (createCancelMessage): Removed.
  14496. (createPieceMessage): Removed.
  14497. (createPortMessage): Removed.
  14498. (createRequestMessage): Removed.
  14499. (createCancelMessage): Removed.
  14500. (createPieceMessage): Removed.
  14501. (createHaveMessage): Removed.
  14502. (createChokeMessage): Removed.
  14503. (createUnchokeMessage): Removed.
  14504. (createInterestedMessage): Removed.
  14505. (createNotInterestedMessage): Removed.
  14506. (createBitfieldMessage): Removed.
  14507. (createKeepAliveMessage): Removed.
  14508. (createHandshakeMessage): Removed.
  14509. (setIntParam): New function.
  14510. (createPeerMessageString): New function.
  14511. * src/PeerConnection.h
  14512. (peer): Removed.
  14513. (torrentMan): Removed.
  14514. (createNLengthMessage): Removed.
  14515. (setIntParam): Removed.
  14516. (writeOutgoingMessageLog): Removed all overloaded functions.
  14517. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14518. (sendMessage): New function.
  14519. (sendHandshake): Removed.
  14520. (sendKeepAlive): Removed.
  14521. (sendChoke): Removed.
  14522. (sendUnchoke): Removed.
  14523. (sendInterested): Removed.
  14524. (sendNotInterested): Removed.
  14525. (sendHave): Removed.
  14526. (sendBitfield): Removed.
  14527. (sendRequest): Removed.
  14528. (sendPiece): Removed.
  14529. (sendPieceHeader): Removed.
  14530. (sendPieceData): Removed.
  14531. (sendCancel): Removed.
  14532. (getPeer): Removed.
  14533. * src/PeerConnection.cc
  14534. (PeerConnection): Deleted peer and torrentMan from its arguments.
  14535. (sendHandshake): Removed.
  14536. (sendKeepAlive): Removed.
  14537. (createNLengthMessage): Removed.
  14538. (setIntParam): Removed.
  14539. (writeOutgoingMessageLog): Removed all overloaded functions.
  14540. (sendChoke): Removed.
  14541. (sendUnchoke): Removed.
  14542. (sendInterested): Removed.
  14543. (sendNotInterested): Removed.
  14544. (sendHave): Removed.
  14545. (sendBitfield): Removed.
  14546. (sendRequest): Removed.
  14547. (sendPiece): Removed.
  14548. (sendPieceHeader): Removed.
  14549. (sendPieceData): Removed.
  14550. (sendMessage): New function.
  14551. (sendCancel): Removed.
  14552. * src/PeerInteractionCommand.cc
  14553. (PeerInteractionCommand): Call setUploadLimit.
  14554. (executeInternal): Call setUploadLimit.
  14555. Added the handling of "inProgress" state of handshake message.
  14556. Call sendBitfield() or sendAllowdFast() instead of deprecated
  14557. sendNow().
  14558. (keepAlive): Call addMessage and sendMessage instead of deprecated
  14559. sendNow().
  14560. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  14561. * src/TorrentMan.h
  14562. (PEER_ID_LENGTH): New definition.
  14563. (hasAllPieces): New function.
  14564. * src/TorrentMan.cc
  14565. (getMissingPiece): Added the handling of fast extension.
  14566. (cancelPiece): Call updatePiece().
  14567. (hasAllPieces): New function.
  14568. * src/PeerInteraction.h
  14569. (fastSet): New variable.
  14570. (getNewPieceAndSendInterest): Changed the return type to void.
  14571. (send): Renamed as sendMessages.
  14572. (deleteAllRequestSlot): Removed.
  14573. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14574. (cancelAllRequest): Removed all overloaded functions.
  14575. (deleteAllRequestSlot): Removed.
  14576. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14577. (rejectPieceMessageInQueue): New function.
  14578. (rejectAllPieceMessageInQueue): New function.
  14579. (onChoked): New function.
  14580. (isSendingMessageInProgress): New function.
  14581. (getCorrespondingRequestSlot): Changed its arguments.
  14582. (isInFastSet): New function.
  14583. (addFastSetIndex): New function.
  14584. (addRequests): New function.
  14585. (sendNow): Removed.
  14586. (trySendNow): Removed.
  14587. (sendBitfield): New function.
  14588. (sendAllowdFast): New function.
  14589. (createHaveAllMessage): New function.
  14590. (createHaveNoneMessage): New function.
  14591. (createRejectMessage): New function.
  14592. (createAllowedFastMessage): New function.
  14593. * src/PeerInteraction.cc
  14594. (send): Renamed as sendMessages.
  14595. (sendMessages): New function.
  14596. (MsgPushBack): New class.
  14597. (isSendingMessageInProgress): New function.
  14598. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  14599. (rejectAllPieceMessageInQueue): New function.
  14600. Added the handling of fast extension.
  14601. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  14602. (rejectPieceMessageInQueue): New function.
  14603. Added the handling of fast extension.
  14604. (deleteRequestSlot): Replaced for loop with std::find.
  14605. (onChoked): New function.
  14606. (deleteAllRequestSlot): Removed.
  14607. (abortPiece): Rewirtten.
  14608. (deleteTimeoutRequestSlot): Updated log messages.
  14609. (getCorrespondingRequestSlot): Changed its arguments.
  14610. (cancelAllRequest): Removed all overloaded functions.
  14611. (receiveHandshake): Added the check to see whether an incoming peer
  14612. supports fast extension.
  14613. (createHandshakeMessage): Use HandshakeMessage::create instead of
  14614. PeerMessageUtil.
  14615. (createPeerMessage): Use create() of each message class instead of
  14616. PeerMessageUtil.
  14617. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  14618. AllowedFastMessage were added.
  14619. (getNewPieceAndSendInterest): Changed its return value type to void.
  14620. Added the handling of fast extension.
  14621. (addRequests): New function.
  14622. (sendNow): Removed.
  14623. (sendHandshake): Rewritten.
  14624. (trySendNow): Removed.
  14625. (sendBitfield): New function.
  14626. (sendAllowdFast): New function.
  14627. (isInFastSet): New function.
  14628. (addFastSetIndex): New function.
  14629. (createRequestMessage): Use RequestMessage::create instead of
  14630. PeerMessageUtil.
  14631. (createCancelMessage): Use CancelMessage::create instead of
  14632. PeerMessageUtil.
  14633. (createPieceMessage): Use PieceMessage::create instead of
  14634. PeerMessageUtil.
  14635. (createHaveMessage): Use HaveMessage::create instead of
  14636. PeerMessageUtil.
  14637. (createChokeMessage): Use ChokeMessage::create instead of
  14638. PeerMessageUtil.
  14639. (createUnchokeMessage): Use UnchokeMessage::create instead of
  14640. PeerMessageUtil.
  14641. (createInterestedMessage): Use InterestedMessage::create instead of
  14642. PeerMessageUtil.
  14643. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  14644. of PeerMessageUtil.
  14645. (createBitfieldMessage): Use BitfieldMessage::create instead of
  14646. PeerMessageUtil.
  14647. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  14648. PeerMessageUtil.
  14649. (createHaveAllMessage): New function.
  14650. (createHaveNoneMessage): New function.
  14651. (createRejectMessage): New function.
  14652. (createAllowedFastMessage: New function.
  14653. * src/Util.h
  14654. (sha1Sum): New function.
  14655. (computeFastSet): New function.
  14656. * src/Util.cc
  14657. (sha1Sum): New function.
  14658. (computeFastSet): New function.
  14659. * src/Peer.h
  14660. (fastExtensionEnabled): New variable.
  14661. (fastSet): New variable.
  14662. (setAllBitfield): New function.
  14663. (setFastExtensionEnabled): New function.
  14664. (isFastExtensionEnabled): New function.
  14665. (addFastSetIndex): New function.
  14666. (getFastSet): New function.
  14667. (isInFastSet): New function.
  14668. (countFastSet): New function.
  14669. * src/Peer.cc
  14670. (isInFastSet): New function.
  14671. (addFastSetIndex): New function.
  14672. (setAllBitfield): New function.
  14673. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  14674. sockets.
  14675. * src/PeerAbstractCommand.cc
  14676. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  14677. and uploadLimit.
  14678. (execute): Changed the procedure of checking sockets. The upload speed
  14679. checking were added.
  14680. (setUploadLimit): New function.
  14681. (setUploadLimitCheck): New function.
  14682. * src/PeerAbstractCommand.h
  14683. (setUploadLimit): New function.
  14684. (setUploadLimitCheck): New function.
  14685. (uploadLimit): New variable.
  14686. (uploadLimitCheck): New variable.
  14687. To contact a tracker regularly:
  14688. * src/TrackerWatcherCommand.h (interval): New variable.
  14689. (checkPoint): New variable.
  14690. (TrackerWatcherCommand): Added interval argument.
  14691. * src/TrackerWatcherCommand.cc
  14692. (TrackerWatcherCommand): Initialized checkPoint.
  14693. (execute): Now a tracker is contacted in every specified period.
  14694. If peer list is not needed, send request with numwant=0.
  14695. * src/TrackerUpdateCommand.cc
  14696. (execute): Updated log messages.
  14697. * src/DownloadEngine.cc
  14698. (~DownloadEngine): Removed two asserts.
  14699. (waitData): Uncommented wfds. May be a bug fix.
  14700. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14701. * src/PeerInteractionCommand.h
  14702. (checkInactiveConnection): Removed.
  14703. * src/PeerInteractionCommand.cc
  14704. (executeInternal): Removed following function calls:
  14705. detectMessageFlooding(), checkLongTimePeerChoking and
  14706. checkInactiveConnection().
  14707. (checkInactiveConnection): Removed.
  14708. (detectMessageFlooding): Removed function call to
  14709. checkInactiveConnection().
  14710. * src/PeerMessageUtil.h
  14711. (createChokeMessage): New function. Overload.
  14712. (createUnchokeMessage): New function. Overload.
  14713. (createInterestedMessage): New function. Overload.
  14714. (createNotInterestedMessage): New function. Overload.
  14715. (createHaveMessage): New function. Overload.
  14716. (createBitfieldMessage): New function. Overload.
  14717. (createRequestMessage): New function. Overload.
  14718. (createCancelMessage): New function. Overload.
  14719. (createPieceMessage): New function. Overload.
  14720. (createKeepAliveMessage): New function. Overload.
  14721. * src/PeerMessageUtil.cc
  14722. (createChokeMessage): New function. Overload.
  14723. (createUnchokeMessage): New function. Overload.
  14724. (createInterestedMessage): New function. Overload.
  14725. (createNotInterestedMessage): New function. Overload.
  14726. (createHaveMessage): New function. Overload.
  14727. (createBitfieldMessage): New function. Overload.
  14728. (createRequestMessage): New function. Overload.
  14729. (createCancelMessage): New function. Overload.
  14730. (createPieceMessage): New function. Overload.
  14731. (createKeepAliveMessage): New function. Overload.
  14732. * src/SendMessageQueue.cc
  14733. (createRequestMessage): Use PeerMessageUtil.
  14734. (createCancelMessage): Use PeerMessageUtil.
  14735. (createPieceMessage): Use PeerMessageUtil.
  14736. (createHaveMessage): Use PeerMessageUtil.
  14737. (createChokeMessage): Use PeerMessageUtil.
  14738. (createUnchokeMessage): Use PeerMessageUtil.
  14739. (createInterestedMessage): Use PeerMessageUtil.
  14740. (createNotInterestedMessage): Use PeerMessageUtil.
  14741. (createBitfieldMessage): Use PeerMessageUtil.
  14742. (createKeepAliveMessage): Use PeerMessageUtil.
  14743. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  14744. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  14745. * src/PeerInteraction.h: New class.
  14746. * src/PeerInteraction.cc: New class.
  14747. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14748. Each peer message has its own class.
  14749. * src/PendingMessages.h: Removed.
  14750. * src/PendingMessages.cc: Removed. The sending process was moved to
  14751. each message class.
  14752. * src/RequestSlotMan.h: Removed.
  14753. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  14754. SendMessageQueue.
  14755. * src/RequestMessage.h: New class.
  14756. * src/RequestMessage.cc: New class.
  14757. * src/CancelMessage.h: New class.
  14758. * src/CancelMessage.cc: New class.
  14759. * src/BitfieldMessage.h: New class.
  14760. * src/BitfieldMessage.cc: New class.
  14761. * src/ChokeMessage.h: New class.
  14762. * src/ChokeMessage.cc: New class.
  14763. * src/KeepAliveMessage.h: New class.
  14764. * src/KeepAliveMessage.cc: New class.
  14765. * src/PortMessage.h: New class.
  14766. * src/UnchokeMessage.h: New class.
  14767. * src/UnchokeMessage.cc: New class.
  14768. * src/PieceMessage.h: New class.
  14769. * src/PieceMessage.cc: New class.
  14770. * src/HaveMessage.h: New class.
  14771. * src/HaveMessage.cc: New class.
  14772. * src/BitfieldMessage.h: New class.
  14773. * src/BitfieldMessage.cc: New class.
  14774. * src/NotInterestedMessage.h: New class.
  14775. * src/NotInterestedMessage.cc: New class.
  14776. * src/InterestedMessage.h: New class.
  14777. * src/InterestedMessage.cc: New class.
  14778. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  14779. (getSendMessageQueue): New function.
  14780. (setSendMessageQueue): New function.
  14781. * src/HandshakeMessage.cc: New class.
  14782. * src/PeerConnection.h (receiveMessage): Changed return value and
  14783. arguments.
  14784. (receiveHandshake): Changed return value and arguments.
  14785. * src/PeerConnection.cc (receiveMessage): Do not create message class
  14786. here.
  14787. (receiveHandshake): Do not create handshake class here.
  14788. * src/PeerInteractionCommand.h (peerConnection): Removed.
  14789. (piece): Removed.
  14790. (syncPiece): Removed.
  14791. (sendInterest): Removed.
  14792. (sendMessages): Removed.
  14793. (createRequestPendingMessage): Removed.
  14794. (checkPieceHash): Removed.
  14795. (erasePieceOnDisk): Removed.
  14796. (getNewPieceAndSendInterest): Removed.
  14797. (onGotNewPice): Removed.
  14798. (onGotWrongPiece): Removed.
  14799. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14800. Removed peerConnection, piece.
  14801. (~PeerInteractionCommand): Removed peerConnection.
  14802. (executeInternal): Use sendMessageQueue instead of peerConnection.
  14803. (syncPiece): Moved to SendMessageQueue.
  14804. (decideChoking): Removed PendingMessage.
  14805. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  14806. The action after receiving peer message was moved to each message
  14807. class.
  14808. (onGotNewPice): Moved to SendMessageQueue.
  14809. (onGotWrongPiece): Moved to SendMessageQueue.
  14810. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  14811. (sendInterest): Moved to SendMessageQueue.
  14812. (createRequestPendingMessage): Removed.
  14813. (sendMessages): Moved to SendMessageQueue.
  14814. (onAbort): Use SendMessageQueue::abortPiece()
  14815. (keepAlive): Use sendMessageQueue instead of peerConnection.
  14816. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  14817. (checkPieceHash): Moved to SendMessageQueue.
  14818. (erasePieceOnDisk): Moved to SendMessageQueue.
  14819. * src/PeerMessageUtil.h
  14820. (createBitfieldMessage): Removed.
  14821. (createHaveMessage): Changed return value and arguments.
  14822. (createBitfieldMessage): Changed return value and arguments.
  14823. (createRequestCancelMessage): Removed.
  14824. (createPieceMessage): Changed return value and arguments.
  14825. (getShortIntParam): New function.
  14826. (checkIndex): Changed arguments.
  14827. (checkBegin): Changed arguments.
  14828. (checkLength): Changed arguments.
  14829. (checkPieceOffset): Removed.
  14830. (checkRange): New function.
  14831. (checkBitfield): Changed arguments.
  14832. (createPeerMessage): Removed.
  14833. (checkIntegrity): Removed.
  14834. (createHandshakeMessage): Changed arguments.
  14835. (createChokeMessage): New function.
  14836. (createUnchokeMessage): New function.
  14837. (createInterestedMessage): New function.
  14838. (createNotInterestedMessage): New function.
  14839. (createRequestMessage): New function.
  14840. (createCancelMessage): New function.
  14841. (createPortMessage): New function.
  14842. * src/PeerMessageUtil.cc
  14843. (createBitfieldMessage): Removed.
  14844. (createHaveMessage): Changed return value and arguments.
  14845. (createBitfieldMessage): Changed return value and arguments.
  14846. (createRequestCancelMessage): Removed.
  14847. (createPieceMessage): Changed return value and arguments.
  14848. (getShortIntParam): New function.
  14849. (checkIndex): Changed arguments.
  14850. (checkBegin): Changed arguments.
  14851. (checkLength): Changed arguments.
  14852. (checkPieceOffset): Removed.
  14853. (checkRange): New function.
  14854. (checkBitfield): Changed arguments.
  14855. (createPeerMessage): Removed.
  14856. (checkIntegrity): Removed.
  14857. (createHandshakeMessage): Changed arguments.
  14858. (createChokeMessage): New function.
  14859. (createUnchokeMessage): New function.
  14860. (createInterestedMessage): New function.
  14861. (createNotInterestedMessage): New function.
  14862. (createRequestMessage): New function.
  14863. (createCancelMessage): New function.
  14864. (createPortMessage): New function.
  14865. * src/PeerMessage.h
  14866. (id): Removed.
  14867. (index): Removed.
  14868. (begin): Removed.
  14869. (length): Removed.
  14870. (bitfield): Removed.
  14871. (bitfieldLength): Removed.
  14872. (block): Removed.
  14873. (blockLength): Removed.
  14874. (inProgress): New variable.
  14875. (cuid): New variable.
  14876. (peer): New variable.
  14877. (sendMessageQueue): New variable.
  14878. (logger): New variable.
  14879. (setBitfield): Removed.
  14880. (getBitfield): Removed.
  14881. (setBlock): Removed.
  14882. (getBlock): Removed.
  14883. (getBitfieldLength): Removed.
  14884. (getBlockLength): Removed.
  14885. (isInProgress): New function.
  14886. (toString): Made pure virtual.
  14887. (check): New function.
  14888. (send): New function.
  14889. (receivedAction): New function.
  14890. (getId): Made pure virtual.
  14891. (setId): Removed.
  14892. (getIndex): Removed.
  14893. (setIndex): Removed.
  14894. (getBegin): Removed.
  14895. (setBegin): Removed.
  14896. (getLength): Removed.
  14897. (setLength): Removed.
  14898. (getCuid): New function.
  14899. (setCuid): New function.
  14900. (getPeer): New function.
  14901. (setPeer): New function.
  14902. (getSendMessageQueue): New function.
  14903. (setSendMessageQueue): New function.
  14904. (ID): Removed.
  14905. * src/PeerMessage.cc
  14906. (setBitfield): Removed.
  14907. (setBlock): Removed.
  14908. (toString): Removed.
  14909. * src/TorrentMan.h
  14910. (getPieceLength): New function.
  14911. (getPieceLength): New function.
  14912. * src/SendMessageQueue.h
  14913. (REQUEST_TIME_OUT): New definition.
  14914. (RequestSlots): New definition.
  14915. (MessageQueue): New definition.
  14916. (requestSlotMan): Removed.
  14917. (pendingMessages): Removed.
  14918. (requestSlots): New variable.
  14919. (messageQueue): New variable.
  14920. (torrentMan): New variable.
  14921. (peerConnection): New variable.
  14922. (peer): New variable.
  14923. (piece): New variable.
  14924. (getNewPieceAndSendInterest): New function.
  14925. (createPeerMessage): New function.
  14926. (createHandshakeMessage): New function.
  14927. (send): Made private.
  14928. (setPeerMessageCommonProperty): New function.
  14929. (deleteAllRequestSlot): New function.
  14930. (deleteRequestMessageInQueue): New function.
  14931. (cancelAllRequest): Made private.
  14932. (cancelAllRequest): Made private.
  14933. (countRequestSlot): Made private.
  14934. (addPendingMessage): Removed.
  14935. (deletePendingPieceMessage): Removed.
  14936. (deletePendingRequestMessage): Removed.
  14937. (addMessage): New function.
  14938. (deletePieceMessageInQueue): New function.
  14939. (deleteTimeoutRequestSlot): Changed argument.
  14940. (deleteCompletedRequestSlot): Changed argument.
  14941. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14942. (getCorrespondingRequestSlot): New function.
  14943. (countPendingMessage): Removed.
  14944. (countMessageInQueue): New function.
  14945. (getTorrentMan): New function.
  14946. (getPeerConnection): New function.
  14947. (hasDownloadPiece): New function.
  14948. (getDownloadPiece): New function.
  14949. (setDownloadPiece): New function.
  14950. (syncPiece): New function.
  14951. (sendMessages): New function.
  14952. (sendNow): New function.
  14953. (trySendNow): New function.
  14954. (abortPiece): New function.
  14955. (sendHandshake): New function.
  14956. (receiveMessage): New function.
  14957. (receiveHandshake): New function.
  14958. (createRequestMessage): New function.
  14959. (createCancelMessage): New function.
  14960. (createPieceMessage): New function.
  14961. (createHaveMessage): New function.
  14962. (createChokeMessage): New function.
  14963. (createUnchokeMessage): New function.
  14964. (createInterestedMessage): New function.
  14965. (createNotInterestedMessage): New function.
  14966. (createBitfieldMessage): New function.
  14967. (createKeepAliveMessage): New function.
  14968. * src/SendMessageQueue.cc
  14969. (SendMessageQueue): Removed requestSlotMan.
  14970. Instantiated peerConnection here.
  14971. (~SendMessageQueue): Removed requestSlotMan.
  14972. Added deletion of peerConnection and the contents of messageQueue.
  14973. (send): Updated according to the change of messageQueue.
  14974. (addPendingMessage): Renamed to addMessage.
  14975. (addMessage): New function.
  14976. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14977. (deletePieceMessageInQueue): New function.
  14978. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14979. (deleteRequestMessageInQueue): New function.
  14980. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14981. here.
  14982. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14983. (...) was moved here.
  14984. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14985. moved here.
  14986. (deleteCompletedRequestSlot):
  14987. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14988. (getCorrespondingRequestSlot):
  14989. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14990. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14991. (countPendingMessage): Renamed to countMessageInQueue.
  14992. (countMessageInQueue): New function.
  14993. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14994. (receiveHandshake): New function.
  14995. (createHandshakeMessage): New function.
  14996. (receiveMessage): New function.
  14997. (createPeerMessage): New function.
  14998. (syncPiece): New function.
  14999. (getNewPieceAndSendInterest): New function.
  15000. (sendMessages): New function.
  15001. (sendNow): New function.
  15002. (trySendNow): New function.
  15003. (sendHandshake): New function.
  15004. (abortPiece): New function.
  15005. (getDownloadPiece): New function.
  15006. (getPeerMessageCommonProperty): New function.
  15007. (createRequestMessage): New function.
  15008. (createCancelMessage): New function.
  15009. (createPieceMessage): New function.
  15010. (createHaveMessage): New function.
  15011. (createChokeMessage): New function.
  15012. (createUnchokeMessage): New function.
  15013. (createInterestedMessage): New function.
  15014. (createNotInterestedMessage): New function.
  15015. (createBitfieldMessage): New function.
  15016. (createKeepAliveMessage): New function.
  15017. To add simple Content-Disposition support:
  15018. * src/HttpResponseCommand.h (determinFilename): New function.
  15019. * src/HttpResponseCommand.cc (executeInternal):
  15020. Use determinFilename(headers) instead of req->getFile() when comparing
  15021. filename.
  15022. (determinFilename): New function.
  15023. (handleDefaultEncoding): Use determinFilename(headers) instead of
  15024. req->getFile().
  15025. (handleOtherEncoding): Use determinFilename(headers) instead of
  15026. req->getFile().
  15027. * src/Util.h (getContentDispositionFilename): New function.
  15028. * src/Util.cc (getContentDispositionFilename): New function.
  15029. * src/LogFactory.h (release): New function.
  15030. * src/LogFactory.cc (release): New function.
  15031. To fix a bug that causes out-of-bound exception when HTTP status
  15032. line is wrong:
  15033. * src/HttpConnection.cc (receiveResponse): Added a check for header
  15034. size.
  15035. * src/common.h (Deleter): New class.
  15036. * src/SegmentMan.cc
  15037. (~SegmentMan): Added deletion of splitter and diskWriter.
  15038. * src/DownloadEngine.h
  15039. (Commands): Use deque.
  15040. (clearQueue): New function.
  15041. * src/DownloadEngine.cc
  15042. (~DownloadEngine): Added deletion of segmentMan.
  15043. (cleanQueue): New function.
  15044. * src/TorrentDownloadEngine.h
  15045. (TorrentDownloadEngine): The implementation was moved to
  15046. TorrentDownloadEngine.cc.
  15047. (~TorrentDownloadEngine): The implementation was moved to
  15048. TorrentDownloadEngine.cc.
  15049. * src/TorrentDownloadEngine.cc
  15050. (~TorrentDownloadEngine): Added deletion of torrentMan.
  15051. * src/main.cc
  15052. (clearRequest): Removed.
  15053. (handler): Added deletion of e.
  15054. (torrentHandler): Added deletion of te.
  15055. (main): Do not share splitter.
  15056. Use Deleter instead of clearRequest.
  15057. Deletion of classes were updated.
  15058. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15059. * src/main.cc (main): Fixed typo.
  15060. * src/message.h: Fixed typo.
  15061. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  15062. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15063. To add --select-file command-line option:
  15064. * src/Util.cc
  15065. (unfoldRange): New function.
  15066. (getNum): New function.
  15067. (unfoldSubRange): New function
  15068. * src/main.cc
  15069. (showUsage): Added help message.
  15070. (main): Added --select-file command-line option. Updated the layout of
  15071. file listing.
  15072. * src/common.h
  15073. (Integers): New definition.
  15074. * src/SocketCore.cc
  15075. (writeData): Removed timeout argument.
  15076. (readData): Removed timeout argument.
  15077. (peekData): Removed timeout argument.
  15078. * src/Socket.cc
  15079. (writeData): Removed timeout argument.
  15080. (readData): Removed timeout argument.
  15081. (peekData): Removed timeout argument.
  15082. * Release 0.4.1
  15083. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15084. To deploy upload rate based choking algorithm:
  15085. * src/PeerInteractionCommand.cc
  15086. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  15087. peer currently used.
  15088. (decideChoking): Deleted the choke/unchoke decision algorithm when
  15089. download completes. Simplified.
  15090. (receiveMessage): Updated.
  15091. * src/TorrentMan.h
  15092. (activePeers): New variable.
  15093. (addActivePeer): New function.
  15094. (getActivePeers): New function.
  15095. (deleteActivePeer): New function.
  15096. * src/TorrentMan.cc
  15097. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  15098. * src/PeerAbstractCommand.cc
  15099. (onAbort): Use peer->resetStatus().
  15100. * src/main.cc
  15101. (PeerChokeCommand.h): Included.
  15102. (main): Added the instance of ChokingCommand to the command queue.
  15103. * src/Peer.h
  15104. (amChoking): Renamed from amChocking
  15105. (chokingRequired): New variable.
  15106. (optUnchoking): New variable.
  15107. (deltaUpload): New variable.
  15108. (deltaDownload): New variable.
  15109. (addDeltaUpload): New function.
  15110. (resetDeltaUpload): New function.
  15111. (addDeltaDownload): New function.
  15112. (resetDeltaDownload): New function.
  15113. (addPeerUpload): Added a call to addDeltaUpload.
  15114. (addPeerDownload): Added a call to addDeltaDownload.
  15115. * src/Peer.cc
  15116. (shouldBeChoking): Renamed from shouldChoke.
  15117. (resetStatus): New function.
  15118. * src/PeerChokeCommand.h: New class.
  15119. * src/PeerChokeCommand.cc: New class.
  15120. To add lazy upload speed limiter:
  15121. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  15122. statistics calculation to TorrentDownloadEngine.
  15123. * src/TorrentConsoleDownloadEngine.cc
  15124. (sendStatistics): Renamed from printStatistics.
  15125. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  15126. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  15127. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  15128. * src/TorrentDownloadEngine.h: Added the variables for statistics
  15129. calculation.
  15130. (sendStatistics): New function as pure virtual function.
  15131. (getUploadSpeed): New function.
  15132. * src/TorrentDownloadEngine.cc
  15133. (initStatistics): New function.
  15134. (calculateSpeed): New function.
  15135. (calculateStatistics): New function.
  15136. * src/SendMessageQueue.h
  15137. (uploadLength): New variable.
  15138. (send): Added an argument.
  15139. (setUploadLimit): New function.
  15140. (getUploadLimit): New function.
  15141. * src/SendMessageQueue.cc
  15142. (send): Added upload speed limiter.
  15143. * src/prefs.h
  15144. (PREF_UPLOAD_LIMIT): New definition.
  15145. * src/PeerInteractionCommand.cc
  15146. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  15147. * src/main.cc
  15148. (main): Added --upload-limit option
  15149. For bug fixes:
  15150. * src/main.cc
  15151. (showUsage): Corrected --listen-port help
  15152. Other changes:
  15153. * src/TorrentMan.cc
  15154. (getPeer): Return nullPeer if connection is grather than
  15155. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  15156. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15157. To add some useful information to the exception message:
  15158. * src/SocketCore.cc : Updated messages.
  15159. * src/SegmentMan.cc :
  15160. * src/TorrentMan.cc : Updated messages.
  15161. * src/MultiDiskWriter.cc : Updated messages.
  15162. * src/Util.cc : Updated messages.
  15163. * src/AbstractDiskWriter.cc : Updated messages.
  15164. * src/PreAllocationDiskWriter.cc : Updated messages.
  15165. * src/message.cc : Added new messages. Updated some messages.
  15166. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  15167. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  15168. Updated threshold from 30 to 15.
  15169. * src/AbstractDiskWriter.h (filename): New variable.
  15170. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  15171. (createFile): Assigned filename.
  15172. * src/main.cc: Updated the help message for http-auth-scheme.
  15173. * Release 0.4.0
  15174. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15175. To add TrackerUpdateCommand with which replaces
  15176. CompactTrackerResponseProcessor:
  15177. * src/TrackerWatcherCommand.h (req): Removed.
  15178. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  15179. if the number of peer connections are less than 30.
  15180. * src/ByteArrayDiskWriter.h (readData): Implemented.
  15181. * src/SegmentMan.h (diskWriter): New function.
  15182. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  15183. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  15184. (main): Use TrackerUpdateCommand.
  15185. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  15186. (req): New variable.
  15187. (setTrackerResponseProcessor): Removed.
  15188. (getTrackerResponseProcessor): Removed.
  15189. (processTrackerResponse): Removed.
  15190. * src/DownloadEngine.h (diskWriter): Removed.
  15191. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  15192. to torrentMan->processTrackerResponse().
  15193. To add Util::expandBuffer:
  15194. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  15195. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  15196. * src/Util.h (expandBuffer): New function.
  15197. To fix the bug that causes segmentation fault when "-l ." is specified
  15198. in command-line option:
  15199. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  15200. (openFile): New function.
  15201. (closeFile): New function.
  15202. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  15203. (~SimpleLogger): Call closeFile();
  15204. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  15205. * src/main.cc (main): Added a check to see logger is configured
  15206. properly.
  15207. To enable HTTP authentication without specifying "--http-auth-scheme"
  15208. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  15209. * src/HttpConnection.cc (createRequest): Send Authorization header
  15210. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  15211. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  15212. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  15213. * src/Peer.cc (shouldChoke): Updated algorithm.
  15214. * src/message.h (EX_AUTH_FAILED): New definition.
  15215. (EX_FILE_OPEN): New definition.
  15216. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  15217. if status == 401.
  15218. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  15219. if req->isTorrent == true.
  15220. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  15221. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  15222. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  15223. (createFile): Updated message.
  15224. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15225. To add a readout of estimated remaining time to normal HTTP/FTP
  15226. downloads:
  15227. * src/ConsoleDownloadEngine.h (startup): New variable.
  15228. (startupLength): New variable.
  15229. (isStartupLengthSet): New variable.
  15230. (avgSpeed): New variable.
  15231. (eta): New variable.
  15232. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  15233. estimated remaining time.
  15234. (initStatistics): Initialized newly added variables.
  15235. (calculateStatistics): Calculate average speed and estimated remaining
  15236. time.
  15237. To decouple TorrentDownloadEngine from HttpResponseCommand:
  15238. * src/TrackerDownloadCommand.h: Removed.
  15239. * src/TrackerDownloadCommand.cc: Removed.
  15240. * src/TrackerInitCommand.h: Removed.
  15241. * src/TrackerInitCommand.cc: Removed.
  15242. * src/TrackerUpdateCommand.h: Removed.
  15243. * src/TrackerUpdateCommand.cc: Removed.
  15244. * src/TrackerWatcherCommand.cc (execute): The construction of request
  15245. url written in TrackerInitCommand was moved here. Do not create
  15246. tracker request command if torrentMan->trackers != 0.
  15247. * src/CompactTrackerResponseProcessor.h: New class.
  15248. * src/CompactTrackerResponseProcessor.cc: New class.
  15249. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  15250. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  15251. Decoupled TorrentDownloadEngine from this.
  15252. * src/SegmentMan.h (init): New function.
  15253. * src/SegmentMan.cc (init): New function.
  15254. * src/TorrentMan.h (responseProcessor): New variable.
  15255. (trackers): New variable.
  15256. (setTrackerResponseProcessor): New function.
  15257. (getTrackerResponseProcessor): New function.
  15258. (processTrackerResponse): New function.
  15259. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  15260. (processTrackerResponse): New function.
  15261. * src/main.cc (main): Use ByteArrayDiskWriter and
  15262. CompactTrackerResponseProcessor.
  15263. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  15264. processTrackerResponse().
  15265. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  15266. readout.
  15267. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  15268. which indicates download has completed.
  15269. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  15270. (closeFile): fd >= 0, not fd > 0
  15271. * src/main.cc (main): Added short cut for show-files.
  15272. Added short cut for torrent-file.
  15273. Added new command-line option listen-port.
  15274. Updated i18n messages.
  15275. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15276. To add LogFactory which creates singleton logger:
  15277. * src/LogFactory.h: New class.
  15278. * src/LogFactory.cc: New class.
  15279. * src/Command.h (logger): New variable.
  15280. (Constructor): Use LogFactory.
  15281. * src/AbstractCommand.cc: Use Command::logger
  15282. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  15283. Use LogFactory.
  15284. * src/SegmentSplitter.h : Made logger protected.
  15285. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  15286. * src/SegmentMan.cc (Constructor): Use LogFactory.
  15287. * src/DownloadEngine.h : Made logger protected.
  15288. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  15289. * src/PeerInteractionCommand.cc : Use Command::logger.
  15290. * src/HttpResponseCommand.cc : Use Command::logger.
  15291. * src/SegmentMan.h : Made logger private.
  15292. * src/TorrentMan.h : Made logger private.
  15293. * src/TorrentMan.cc : Use LogFactory.
  15294. * src/FtpNegotiateCommand.cc : Use Command::logger.
  15295. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  15296. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  15297. Use LogFactory.
  15298. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  15299. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  15300. Use LogFactory.
  15301. * src/DownloadCommand.cc : Use Command::logger.
  15302. * src/PeerAbstractCommand.cc : Use Command::logger.
  15303. * src/PeerListenCommand.cc : Use Command::logger.
  15304. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  15305. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  15306. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  15307. * src/TrackerWatcherCommand.cc : Use Command::logger.
  15308. * src/TrackerUpdateCommand.cc : Use Command::logger.
  15309. * src/TrackerDownloadCommand.cc : Use Command::logger.
  15310. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  15311. Use LogFactory.
  15312. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  15313. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  15314. Use LogFactory.
  15315. * src/main.cc (main): Use LogFactory.
  15316. * src/DiskAdaptor.h (logger): New variable.
  15317. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  15318. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  15319. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15320. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  15321. parameter to a tracker request.
  15322. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  15323. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  15324. * src/main.cc (setSignalHander): New function.
  15325. (main): Added a handler for SIGTERM.
  15326. (handler): Updated message.
  15327. (torrentHandler): Updated message.
  15328. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15329. * src/TorrentConsoleDownloadEngine.cc
  15330. (onPartialDownloadingCompletes): Renamed as
  15331. onSelectiveDownloadingCompletes.
  15332. (onSelectiveDownloadingCompletes): Updated message.
  15333. To add DiskAdaptor which abstract DiskWriter family:
  15334. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  15335. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  15336. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  15337. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  15338. MultiDiskAdaptor.h.
  15339. (readFileEntry): Changed its arguments.
  15340. (setup): setupDiskWriter is merged into this function.
  15341. (setupDiskWriter): Removed.
  15342. (setFileFilter): New function.
  15343. (readFileEntryFromMetaInfoFile): Updated according to the changes
  15344. made in readFileEntry.
  15345. (getFilePath): Removed.
  15346. (getTempFilePath): Removed.
  15347. (getSegmentFilePath): Updated due to the removal of getFilePath.
  15348. (fixFilename): Removed.
  15349. (copySingleFile): Removed.
  15350. (splitMultiFile): Removed.
  15351. (deleteTempFile): Removed.
  15352. (setFileEntriesToDownload): Removed.
  15353. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  15354. (isSelectiveDownloadingMode): New function.
  15355. (setAllMultiFileRequestedState): Removed.
  15356. (finishPartialDownloadingMode): Renamed as
  15357. finishSelectiveDownloadingMode.
  15358. (finishSelectiveDownloadingMode): New function.
  15359. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  15360. (getSelectedTotalLength): New function.
  15361. (onDownloadComplete): Use diskAdaptor.
  15362. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  15363. (Range): Removed.
  15364. (setMultiFileEntries): Renamed as setFileEntries.
  15365. (setFileEntries): New function.
  15366. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  15367. (pieceLength): New variable.
  15368. * src/main.cc (printDownloadCompeleteMessage): New function.
  15369. (torrentHandler): Use diskAdaptor instead of diskWriter.
  15370. (main): Renamed torrent-show-files to show-files.
  15371. Rewritten file contents listing.
  15372. * src/TorrentMan.h (FileEntry): Removed.
  15373. (multiFileTopDir): Removed.
  15374. (multiFileEntries): Removed.
  15375. (diskWriter): Removed.
  15376. (diskAdaptor): New variable.
  15377. * src/DefaultDiskWriter.h (totalLength): New variable.
  15378. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  15379. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  15380. diskWriter.
  15381. * src/TorrentConsoleDownloadEngine.h
  15382. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  15383. (partialTotalLength): Renamed as selectedTotalLength.
  15384. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  15385. openExistingFile, otherwise call initAndOpenFile.
  15386. (closeFile): fd > 0, not fd != 0.
  15387. * src/DirectDiskAdaptor.h: New class.
  15388. * src/DirectDiskAdaptor.cc: New class.
  15389. * src/MultiDiskAdaptor.h: New class.
  15390. * src/MultiDiskAdaptor.cc: New class.
  15391. * src/CopyDiskAdaptor.h: New class.
  15392. * src/CopyDiskAdaptor.cc: New class.
  15393. * src/DiskAdaptor.h: New class.
  15394. * src/DiskAdaptor.cc: New class.
  15395. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  15396. (PREF_SHOW_FILES): New definition.
  15397. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15398. To add the ability to download multi torrent into respective files
  15399. directly:
  15400. * src/DiskWriter.h (openFile): New function.
  15401. (seek): Removed.
  15402. * src/MultiDiskWriter.h: New class.
  15403. * src/MultiDiskWriter.cc: New class.
  15404. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  15405. protected.
  15406. (openFile): New function.
  15407. * src/AbstractDiskWriter.cc (openFile): New function.
  15408. * src/prefs.h (V_FALSE): New definition.
  15409. (PREF_DIRECT_FILE_MAPPING): New definition.
  15410. * src/TorrentMan.h (setupDiskWriter): New function.
  15411. (setAllMultiFileRequestedState): New function.
  15412. (onDownloadComplete): New function.
  15413. * src/TorrentMan.cc : Included MultiDiskWriter.h
  15414. (setupDiskWriter): New function.
  15415. (getFilePath): Updated.
  15416. (getTempFilePath): Updated.
  15417. (getSegmentFilePath): Updated.
  15418. (fixFilename): Updated.
  15419. (deleteTempFile): Updated.
  15420. (setAllMultiFileRequestedState): New function.
  15421. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  15422. (finishPartialDownloadingMode): Reset requested flags.
  15423. (onDownloadComplete): New function.
  15424. * src/main.cc: Added --direct-file-mapping option.
  15425. Use TorrentMan::setupDiskWriter().
  15426. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  15427. onDownloadComplete().
  15428. To fix ETA bug:
  15429. * src/Util.h (difftvsec): New function.
  15430. * src/Util.cc (difftvsec): New function.
  15431. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  15432. type of "elapsed" instead of long long int.
  15433. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  15434. The updates of statistics takes place every 1 seconds.
  15435. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  15436. (calculateSpeed): Changed its argument signature.
  15437. * src/PeerMessage.cc (toString): Fixed message.
  15438. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15439. To print ETA:
  15440. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  15441. completion handling when dealing with
  15442. TorrentMan::isPartialDownloadingMode() == true.
  15443. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  15444. New function.
  15445. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  15446. (sessionDownloadLength): New variable.
  15447. (avgSpeed): New variable.
  15448. (eta): New variable.
  15449. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  15450. new variables: eta, avgSpeed, startup.
  15451. (calculateSpeed): Calculate average speed and ETA.
  15452. (printStatistics): Added ETA.
  15453. * src/Util.h (secfmt): New function.
  15454. * src/Util.cc (secfmt): New function.
  15455. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15456. To detect "keep alive" flooding:
  15457. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  15458. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  15459. variable: keepAliveCount.
  15460. (detectMessageFlooding): Added "keep alive" flooding detection.
  15461. (receiveMessage): Increase keepAliveCount when "keep alive" message
  15462. received.
  15463. To add the ability to download only specified files in multi-file
  15464. torrent:
  15465. * src/BitfieldMan.h (filterBitfield): New variable.
  15466. (filterEnabled): New variable.
  15467. (setFilterBit): New function.
  15468. (enableFilter): New function.
  15469. (disableFilter): New function.
  15470. (isFilterEnabled): New function.
  15471. (getFilteredTotalLength): New function.
  15472. (getCompletedLength): New function.
  15473. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  15474. filterBitfield, filterEnabled.
  15475. (CopyConstructor): Added filterBitfield and filterEnabled.
  15476. (operator==): Added filterBitfield and filterEnabled.
  15477. (Destructor): Added filterBitfield.
  15478. (getMissingIndex): Use filterBitfield.
  15479. (getMissingUnusedIndex): Use filterBitfield.
  15480. (getFirstMissingUnusedIndex): Use filterBitfield.
  15481. (getFirstMissingUnusedIndex): Use filterBitfield.
  15482. (getAllMissingIndexes): Use filterBitfield.
  15483. (countMissingBlock): Use filterBitfield.
  15484. (countBlock): Use filterBitfield.
  15485. (setBitInternal): Added new argument on.
  15486. (setUseBit): Use setBitInternal.
  15487. (unsetUseBit): Use setBitInternal.
  15488. (setBit): Use setBitInternal.
  15489. (unsetBit): Use setBitInternal.
  15490. (isAllBitSet): Use filterBitfield.
  15491. (setFilterBit): New function.
  15492. (addFilter): New function.
  15493. (enableFilter): New function.
  15494. (disableFilter): New function.
  15495. (clearFilter): New function.
  15496. (isFilterEnabled): New function.
  15497. (getFilteredTotalLength): New function.
  15498. (getCompletedLength): New function.
  15499. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  15500. Initalized newly added variables.
  15501. [FileEntry](offset): New variable.
  15502. [FileEntry](extracted): New variable.
  15503. [FileEntry](requested): New variable.
  15504. (readFileEntry): New function.
  15505. (option): New variable.
  15506. (splitMultiFile): Removed const qualifier.
  15507. (fixFilename): Removed const qualifier.
  15508. (readFileEntryFromMetaInfoFile): New function.
  15509. (finishPartialDownloadingMode): New function.
  15510. (isPartialDownloadingMode): New function.
  15511. (setFileEntriesToDownload): New function.
  15512. (getCompletedLength): New function.
  15513. (getPartialTotalLength): New function.
  15514. * src/TorrentMan.cc (readFileEntry): New function.
  15515. (setup): Use readFileEntry. If no-preallocation option is specified,
  15516. use DefaultDiskWriter.
  15517. (readFileEntryFromMetaInfoFile): New function.
  15518. (fixFilename): Removed const qualifier.
  15519. (splitMultiFile): Removed const qualifier.
  15520. (setFileEntriesToDownload): New function.
  15521. (isPartialDownloadingMode): New function.
  15522. (finishPartialDownloadingMode): New function.
  15523. (getCompletedLength): New function.
  15524. (getPartialTotalLength): New function.
  15525. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  15526. New variable.
  15527. (partialTotalLength): New variable.
  15528. (downloadLength): New variable.
  15529. (totalLength): New variable.
  15530. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  15531. Added log.
  15532. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  15533. partialTotalLength, downloadLength, totalLength.
  15534. (calculate): Calculate downloadLength and totalLength.
  15535. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  15536. * src/main.cc (addCommand): Changed argument signature.
  15537. (main): Added new variable: args. Added new option "torrent-show-files"
  15538. "no-preallocation". Usage is not updated yet.
  15539. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15540. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  15541. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15542. Attempt to add the ability to listing file entries in a .torrent file.
  15543. This feature is not yet complete.
  15544. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  15545. * src/TorrentMan.cc (getMultiFileEntries): New function.
  15546. (getName): New function.
  15547. * src/TorrentMan.h (getMultiFileEntries): New function.
  15548. (getName): New function.
  15549. * src/main.cc (main): Use above 2 funtion.
  15550. * Release 0.3.2
  15551. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15552. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  15553. (detectMessageFlooding): Updated threshold value.
  15554. (checkLongTimePeerChoking): Updated timeout value.
  15555. (getNewPieceAndSendInterest): Added debug log.
  15556. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  15557. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  15558. (getPeer): Updated.
  15559. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  15560. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  15561. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  15562. is localhost.
  15563. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  15564. * src/PendingMessage.cc (processMessage): Not to send piece message
  15565. if peer is not interested in the pieces localhost has.
  15566. * src/Peer.cc (shouldChoke): Updated.
  15567. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  15568. * src/Util.cc (isPowerOf): New function.
  15569. * src/Util.h (isPowerOf): New function.
  15570. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  15571. whether or not it is power of 2.
  15572. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15573. Added new class SendMessageQueue that includes PendingMessages and
  15574. RequestSlotMan.
  15575. * src/SendMessageQueue.h: New class.
  15576. * src/SendMessageQueue.cc: New class.
  15577. * src/PendingMessage.h: Added new member variable blockIndex and its
  15578. accessors.
  15579. (createRequestMessage): Updated.
  15580. * src/PendingMessage.cc (createRequestMessage): Updated.
  15581. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  15582. SendMessageQueue.
  15583. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  15584. (receiveMessage): Updated with SendMessageQueue.
  15585. (deletePendingPieceMessage): Removed.
  15586. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  15587. (sendInterest): Updated with SendMessageQueue.
  15588. (createRequestPendingMessage): Updated with SendMessageQueue.
  15589. (sendMessages): Updated with SendMessageQueue.
  15590. (onAbort): Updated with SendMessageQueue.
  15591. (keepAlive): Updated with SendMessageQueue.
  15592. (beforeSocketCheck): Updated SendMessageQueue.
  15593. * src/PeerInteractionCommand (sendMessages): Shuffle
  15594. missingBLockIndexes before using it.
  15595. Added its own timeout for peer connection.
  15596. * src/PeerAbstractCommand.h: Added member variable timeout and its
  15597. setter.
  15598. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  15599. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  15600. Added setTimeout() call.
  15601. (executeInternal): Added setTimeout() call.
  15602. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  15603. Added timeout.
  15604. (isTimeoutDetected): Updated.
  15605. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  15606. option.
  15607. Added *simple* message flooding checker.
  15608. * src/PeerInteractionCommand.cc (executeInternal):
  15609. Added detectMessageFlooding() call.
  15610. (detectMessageFlooding): New function.
  15611. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  15612. (beforeSocketCheck): Added detectMessageFlooding() call.
  15613. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  15614. chokeUnchokeCount, haveCount, detectMessageFlooding().
  15615. Removed deletePendingPieceMessage(), getRequestSlot(),
  15616. deleteRequestSlot(), deleteAllRequestSlot().
  15617. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  15618. Added checkLongTimePeerChoking() call.
  15619. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  15620. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  15621. if duplicate == false.
  15622. The parameter "uploaded" and "downloaded" in the tracker request are
  15623. the size since the client sent the "started" event to the tracker.
  15624. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  15625. uploaded size to preDownloadedSize, preUploadedSize respectively.
  15626. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  15627. getSessionDownloadedSize(), getSessionUploadedSize().
  15628. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  15629. getSessionUploadedSize() instead of getDownloadedSize(),
  15630. getUploadedSize().
  15631. * src/PendingMessage.cc (processMessage): Do not send request message
  15632. if the peer is choking the client.
  15633. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  15634. less than interval.
  15635. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15636. * configure.in: Added gnutls support. Added several CPP macros.
  15637. * m4/openssl.m4: Added.
  15638. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  15639. readData(), peekData(). Added gnutls support.
  15640. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  15641. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  15642. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  15643. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  15644. Instead, added a check for whether setup method has executed
  15645. successfully.
  15646. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  15647. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  15648. * src/Makefile.am: Updated.
  15649. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  15650. using whether OpenSSL or gcrypt, depending on the result of configure
  15651. script.
  15652. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  15653. messageDigest.h.
  15654. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  15655. * src/PeerListenCommand.cc: Added log about port binded successfully.
  15656. Fixed memory leak.
  15657. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  15658. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  15659. Removed instantiation of TrackerInitCommand. Instead,
  15660. TrackerWatcherCommand is instantiated and pushed to the command queue.
  15661. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  15662. ENABLE_SSL.
  15663. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  15664. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  15665. If a piece is already acquired by another command, delete the request
  15666. slots for the piece.
  15667. * src/TrackerUpdateCommand.cc (execute):
  15668. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  15669. Added a check whether peer list is null.
  15670. Fixed the bug that causes sending completed event to the tracker
  15671. several times.
  15672. * src/TrackerInitCommand.cc (execute):
  15673. Fixed the bug that causes sending completed event to the tracker
  15674. several times.
  15675. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  15676. by using messageDigest.h.
  15677. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15678. * PeerConnection.cc: Replaced log message "keep-alive" with
  15679. "keep alive".
  15680. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  15681. localhost long time.
  15682. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  15683. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  15684. at most 100 failure entry from the list. If with duplicate = false,
  15685. MAX_PEER_LIST is not checked.
  15686. * PeerListenCommand.cc: Fixed the argument order of log message.
  15687. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15688. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  15689. Added warn().
  15690. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  15691. Implemented warn().
  15692. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  15693. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15694. * Request.h: Added AFTER_COMPLETED event.
  15695. * TorrentDownloadEngine.cc: Prints "Download complete" message
  15696. instead of downloaded size and progress(%) after download completes.
  15697. * PeerInteractionCommand.cc: After download completes, sends unchoke
  15698. message to the peer if it is interested in what localhost has
  15699. downloaded.
  15700. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  15701. destination instead of just renaming it.
  15702. * TorrentMan.cc: Added deleteTempFile().
  15703. * PeerAbstractCommand.cc: do not stop execution after download
  15704. completes. This makes localhost a seeder.
  15705. * Util.{h,cc}: Added fileCopy().
  15706. * PeerListenCommand.cc: do not stop execution after download completes.
  15707. This makes localhost a seeder.
  15708. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  15709. Added TorrentMan::deleteTempFile() to torrentHandler.
  15710. Initialized the variable dir as ".".
  15711. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  15712. Deleted renameSingleFile().
  15713. Added copySingleFile(), deleteTempFile().
  15714. * DownloadEngine.h: Added virtual function afterEachIteration().
  15715. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  15716. in onEndOfRun() to afterEachIteration().
  15717. In onEndOfRun(), changed if condition to check whether filenameFixed is
  15718. true.
  15719. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  15720. In rangedFileCopy(), added try-catch block to properly close file
  15721. descriptors.
  15722. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  15723. Added afterEachIteration(), isFilenameFixed().
  15724. * Peer.cc: Changed choking strategy.
  15725. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  15726. * TrackerInitCommand.cc: Send completed event only once.
  15727. * DownloadEngine.cc: Added a call to afterEachIteration().
  15728. * TrackerUpdateCommand.cc: Do not stop execution after download
  15729. completes.
  15730. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  15731. connect the peers at most MAX_PEER_UPDATE when a peer list is
  15732. received from a tracker.
  15733. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  15734. Decreased the number of failure peers to delete to 0(just comment out
  15735. the line).
  15736. * Release 0.3.1
  15737. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15738. * PeerInteractionCommand.cc: added a call to
  15739. TorrentMan::unadvertisePiece in Destructor.
  15740. * PeerInteractionCommand.cc: make have message sent immediately
  15741. if the size of pending message queue is zero.
  15742. * TorrentMan.cc: set the maximum size of peer list to 250.
  15743. * TorrentMan.h: changed the container type of Peers and UsedPieces
  15744. to deque.
  15745. * Util.cc: fixed rangedFileCopy.
  15746. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  15747. to Constructor. Also, moved digest cleanup to Destructor.
  15748. * MetaFileUtil.cc: fixed memory leak
  15749. * replaced std::vector with std::deque.
  15750. * AbstractCommand.cc: casted timeout value to long long int.
  15751. * ChunkedEncoding.cc: fixed memory leak.
  15752. * PeerInteractionCommand.cc: casted timeout value to long long int.
  15753. * SleepCommand.cc: casted timeout value to long long int.
  15754. * Data.cc: fixed memory leak.
  15755. * Data.cc: fixed toLLInt().
  15756. * BitfieldMan.cc: fixed memory leak.
  15757. * TorrentMan.cc: initialized storeDir to ".".
  15758. * TorrentMan.cc: fixed memory leak.
  15759. * TorrentMan.cc: corrected file paths of splitted files.
  15760. * PeerAbstractCommand.cc: casted timeout to long long int.
  15761. * main.cc: added delete(req) and delete(te->diskWriter).
  15762. * RequestSlot.cc: casted timeout value to long long int.
  15763. * Request.cc: fixed memory leak.
  15764. * PendingMessage.cc: make HAVE messages sent only when peer does not
  15765. have the piece.
  15766. * Peer.{h,cc}: added hasPiece(int index).
  15767. * main.cc: corrected addCommand.
  15768. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15769. * BitTorrent protocol support added.
  15770. * Release 0.3.0
  15771. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15772. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  15773. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15774. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  15775. decoding did not work properly.
  15776. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15777. * DownloadEngine.h: included sys/time.h
  15778. * DownloadEngine.cc: remove sys/time.h
  15779. * Makefile.am (SUBDIRS): Add intl.
  15780. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  15781. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15782. * main.cc: correct help message for --http-auth-scheme.
  15783. * main.cc: changed e-mail address for bug reports.
  15784. * ja.po: added japanese translation.
  15785. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15786. * SimpleLogger.cc: flush log file instead of stdout.
  15787. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15788. * main.cc: Fixed command-line option: max-tries
  15789. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  15790. does not equal to seg.sp.
  15791. * DownloadCommand.cc: If EOF is got from the server and the total size
  15792. of file is not zero, then throw DlRetryEx.
  15793. * main.cc: Set the minium value of min-segment-size to 1024.
  15794. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  15795. fails because of a regression since 0.2.0 release.
  15796. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15797. * HttpConnection.cc:
  15798. * common.h: defined the user agent name as macro
  15799. * DownloadEngine.{h, cc}:
  15800. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  15801. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  15802. * main.cc: Download complete/abort message is now generated by main.
  15803. * Makefile.am (SUBDIRS): Add m4.
  15804. (ACLOCAL_AMFLAGS): New variable.
  15805. (EXTRA_DIST): New variable.
  15806. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  15807. * gettext: added gettext functionality
  15808. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15809. * AbstractCommand.cc:
  15810. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  15811. unregister its cuid from SegmentMan.
  15812. * DownloadEngine.cc: .aria2 file was written when a downloading
  15813. failed with errors.
  15814. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  15815. Added "User-Agent" header to CONNECT proxy request.
  15816. Fixed "Proxy-Authorization" header. Now proxy authorization works
  15817. properly.
  15818. * Logger.h:
  15819. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15820. * ChunkedEncoding.cc: Added #include directive for strings.h
  15821. * Release 0.2.1
  15822. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15823. * Util.{h,cc}: added startsWith().
  15824. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15825. Util::endsWith().
  15826. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15827. * common.h: added #include directive of limit.h.
  15828. * DownloadEngine.cc: added #include directive of sys/time.h and
  15829. algorithm.
  15830. * Exception.h: added #include directive of stdio.h.
  15831. * AbstractCommand.h: added #include directive of sys/time.h.
  15832. * DownloadCommand.h: added #include directive of sys/time.h.
  15833. * *.h: added #include directive of common.h to all base classes.
  15834. subclasses' one was removed.
  15835. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15836. does not define these macros.
  15837. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15838. * Release 0.2.0
  15839. * main.cc:
  15840. * HttpInitiateConnectionCommand.{h,cc}:
  15841. * prefs.h:
  15842. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15843. We can now use GET command in http proxy.
  15844. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15845. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15846. that splits slowest segment of SegmentMan::commands vector.
  15847. This is the default split algorithm of aria2.
  15848. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15849. that splits first segment of SegmentMan::commands vector.
  15850. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15851. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15852. * Segment.h:
  15853. * SegmentMan.cc: Added speed field to Segment.h
  15854. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15855. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15856. * message.h: Change file size related %d to %lld.
  15857. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15858. * FtpInitiateConnectionCommand.{h,cc}:
  15859. * FtpNegotiationCommand.{h,cc}:
  15860. * FtpDownloadCommand.{h,cc}:
  15861. * FtpConnection.{h,cc}: Added FTP support
  15862. * SimpleLogger.cc: Log message now includes time information.
  15863. * main.cc: The value of --http-auth-scheme option is chagned from
  15864. 'BASIC' to 'basic'
  15865. * main.cc: Added --timeout command-line option.
  15866. * main.cc: Added --min-segment-size command-line option.
  15867. * main.cc: Added --max-retries command-line option.
  15868. * prefs.h: option string constants are now defined in prefs.h
  15869. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15870. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15871. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15872. with version 0.1.0's one.
  15873. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15874. * configure.in: Added --enable-ssl option to configure script.
  15875. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15876. cannot permit absoluteURI as Request-URI.
  15877. * HttpConnection.cc: Added Referer support.
  15878. * main.cc: Added referer command-line option.
  15879. * main.cc: Added rety-wait command-line option.
  15880. * Exception.h: Fixed formating bug in Exception::setMsg()
  15881. * SocketCore.{h,cc}:
  15882. * Socket.{h, cc}:
  15883. * Request.cc:
  15884. * InitiateConnectionCommandFactory.cc:
  15885. * HttpRequestCommand.cc: Added HTTPS support.
  15886. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15887. for SocketCore.
  15888. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15889. size is wrong
  15890. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15891. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15892. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15893. * Release 0.1.0