ChangeLog 652 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961
  1. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed type of tail to uint64_t
  3. * src/util.cc
  4. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Added --interface option. This feature binds sockets to given
  6. interface. You can specify interface name, IP address and
  7. hostname.
  8. * configure.ac
  9. * src/OptionHandlerFactory.cc
  10. * src/SocketCore.cc
  11. * src/SocketCore.h
  12. * src/main.cc
  13. * src/message.h
  14. * src/prefs.cc
  15. * src/prefs.h
  16. * src/usage_text.h
  17. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Updated man page for bt-prioritize-piece option in -i list.
  19. * doc/aria2c.1.txt
  20. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Added bt-prioritize-piece option to -i list.
  22. * src/download_helper.cc
  23. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Removed --http-auth-scheme option from man page.
  25. * doc/aria2c.1.txt
  26. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  27. Removed --http-auth-scheme option since it doesn't do nothing.
  28. * src/OptionHandlerFactory.cc
  29. * src/prefs.cc
  30. * src/prefs.h
  31. * src/usage_text.h
  32. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Adjusted the number of peer info which get_peers reply message can
  34. carry.
  35. * src/DHTGetPeersReplyMessage.cc
  36. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Added extension_message_test_helper.h to aria2c_SOURCES.
  38. * test/Makefile.am
  39. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  40. Documented --bt-prioritize-piece option in man page.
  41. * doc/aria2c.1.txt
  42. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  43. Added option --bt-prioritize-piece. This option instruct aria2 to
  44. try to download first and last pieces of each file first. The
  45. argument can contain 2 keywords:head and tail. To include both
  46. keywords, they must be separated by comma. These keywords can take
  47. one parameter, SIZE. For example , if head=SIZE is specified,
  48. pieces in the range of first SIZE bytes of each file get higher
  49. priority. tail=SIZE means the range of last SIZE bytes of each
  50. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  51. * src/DefaultPieceStorage.h
  52. * src/Makefile.am
  53. * src/OptionHandlerFactory.cc
  54. * src/OptionHandlerImpl.h
  55. * src/PriorityPieceSelector.cc
  56. * src/PriorityPieceSelector.h
  57. * src/RequestGroup.cc
  58. * src/prefs.cc
  59. * src/prefs.h
  60. * src/usage_text.h
  61. * src/util.cc
  62. * src/util.h
  63. * test/Makefile.am
  64. * test/MockPieceSelector.h
  65. * test/PriorityPieceSelectorTest.cc
  66. * test/UtilTest.cc
  67. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  68. Fixed typo
  69. * src/HttpRequest.h
  70. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  71. In Magnet URI with tr parameter, put each announce URI in separate
  72. tier.
  73. * src/bittorrent_helper.cc
  74. * test/BittorrentHelperTest.cc
  75. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Renamed ExtensionMessage::getBencodedData() as
  77. ExtensionMessage::getPayload()
  78. * src/BtExtendedMessage.cc
  79. * src/ExtensionMessage.h
  80. * src/HandshakeExtensionMessage.cc
  81. * src/HandshakeExtensionMessage.h
  82. * src/UTMetadataDataExtensionMessage.cc
  83. * src/UTMetadataDataExtensionMessage.h
  84. * src/UTMetadataRejectExtensionMessage.cc
  85. * src/UTMetadataRejectExtensionMessage.h
  86. * src/UTMetadataRequestExtensionMessage.cc
  87. * src/UTMetadataRequestExtensionMessage.h
  88. * src/UTPexExtensionMessage.cc
  89. * src/UTPexExtensionMessage.h
  90. * test/HandshakeExtensionMessageTest.cc
  91. * test/MockExtensionMessage.h
  92. * test/UTMetadataDataExtensionMessageTest.cc
  93. * test/UTMetadataRejectExtensionMessageTest.cc
  94. * test/UTMetadataRequestExtensionMessageTest.cc
  95. * test/UTPexExtensionMessageTest.cc
  96. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Updated man page for BitTorrent Magnet URI.
  98. * doc/aria2c.1.txt
  99. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Call DownloadContext::setOwnerRequestGroup() in
  101. RequestGroup::setDownloadContext().
  102. * src/BtDependency.cc
  103. * src/RequestGroup.cc
  104. * src/RequestGroup.h
  105. * src/download_helper.cc
  106. * test/DefaultBtMessageDispatcherTest.cc
  107. * test/DefaultExtensionMessageFactoryTest.cc
  108. * test/HandshakeExtensionMessageTest.cc
  109. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  110. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  111. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  112. from metadata, use new metadata2Torrent() function.
  113. * src/BtDependency.cc
  114. * src/UTMetadataPostDownloadHandler.cc
  115. * src/bittorrent_helper.cc
  116. * src/bittorrent_helper.h
  117. * test/BittorrentHelperTest.cc
  118. * test/BtDependencyTest.cc
  119. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  120. Use createRequestGroupForUri to create the download for torrent
  121. file.
  122. * src/Metalink2RequestGroup.cc
  123. * test/Metalink2RequestGroupTest.cc
  124. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Fixed typo
  126. * src/DownloadContext.h
  127. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Use createRequestGroupForBitTorrent()
  129. * src/BtPostDownloadHandler.cc
  130. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Added remove().
  132. * src/Option.cc
  133. * src/Option.h
  134. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Removed options which is only valid for URIs specified in
  136. command-line. If they are left, because op is used as a template
  137. for new RequestGroup(such as created in XML-RPC command,
  138. BtPostDownloadHandler etc), they causes unintentional effect.
  139. * src/main.cc
  140. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Refer to option value of PREF_OUT only in download_helper.
  142. * src/FtpNegotiationCommand.cc
  143. * src/HttpResponseCommand.cc
  144. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  145. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  146. * src/download_helper.cc
  147. * src/download_helper.h
  148. * src/XmlRpcMethodImpl.cc
  149. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. Updated man page for changeOption XML-RPC method.
  151. * doc/aria2c.1.txt
  152. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Added --bt-max-peers option to changeOption XML-RPC method.
  154. * src/XmlRpcMethod.cc
  155. * src/XmlRpcMethodImpl.cc
  156. * test/XmlRpcMethodTest.cc
  157. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  159. * test/XmlRpcMethodTest.cc
  160. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Removed redundant DownloadContext::hasAttribute(...) calls.
  162. * src/ConsoleStatCalc.cc
  163. * src/RequestGroup.cc
  164. * src/XmlRpcMethodImpl.cc
  165. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Changed the number of tracker request attempt from 5 to 2.
  167. * src/TrackerWatcherCommand.cc
  168. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Use host and protocol in original URI, because URI selector
  170. selects URI based on original URI, not redirected one.
  171. * src/Request.cc
  172. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  173. Fixed the bug which causes segmentation fault with tellWaiting
  174. XML-RPC method when BitTorrent download is waiting. The key of
  175. BtRegistry is changed from info hash to GID, because it is
  176. registered per RequestGroup, not info hash.
  177. * src/BtRegistry.cc
  178. * src/BtRegistry.h
  179. * src/BtSetup.cc
  180. * src/ConsoleStatCalc.cc
  181. * src/InitiatorMSEHandshakeCommand.cc
  182. * src/PeerInitiateConnectionCommand.cc
  183. * src/PeerInteractionCommand.cc
  184. * src/PeerInteractionCommand.h
  185. * src/PeerReceiveHandshakeCommand.cc
  186. * src/RequestGroup.cc
  187. * src/XmlRpcMethodImpl.cc
  188. * test/BtRegistryTest.cc
  189. * test/XmlRpcMethodTest.cc
  190. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Updated man page for changeOption XML-RPC method.
  192. * doc/aria2c.1.txt
  193. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  195. method.
  196. * src/XmlRpcMethod.cc
  197. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Documented about BitTorrent Magnet URI in man page.
  199. * doc/aria2c.1.txt
  200. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Fixed the bug that trackers in BitTorrent Magnet URI are not
  202. inherited to generated RequestGroup.
  203. * src/UTMetadataPostDownloadHandler.cc
  204. * test/UTMetadataPostDownloadHandlerTest.cc
  205. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Prepended "[METADATA]" before dn.
  207. * src/bittorrent_helper.cc
  208. * test/BittorrentHelperTest.cc
  209. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Rewritten Magnet URI parser.
  211. * src/Makefile.am
  212. * src/ProtocolDetector.cc
  213. * src/bittorrent_helper.cc
  214. * src/bittorrent_helper.h
  215. * src/download_helper.cc
  216. * src/magnet.cc
  217. * src/magnet.h
  218. * test/BittorrentHelperTest.cc
  219. * test/MagnetTest.cc
  220. * test/Makefile.am
  221. * test/ProtocolDetectorTest.cc
  222. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Use hton64
  224. * src/base32.cc
  225. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  226. Added Base32 encoded BitTorrent Magnet Link support.
  227. * src/Makefile.am
  228. * src/base32.cc
  229. * src/base32.h
  230. * src/bittorrent_helper.cc
  231. * test/Base32Test.cc
  232. * test/BittorrentHelperTest.cc
  233. * test/Makefile.am
  234. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Added BitTorrent Magnet Link support. Base32 encoded link is not
  236. supported yet. Fixed typo in method name in RequestGroup. In
  237. metadataGetMode, don't show "Your share ratio was ..." message.
  238. * src/DefaultBtInteractive.cc
  239. * src/DefaultBtInteractive.h
  240. * src/DownloadHandlerFactory.cc
  241. * src/DownloadHandlerFactory.h
  242. * src/HandshakeExtensionMessage.cc
  243. * src/Makefile.am
  244. * src/Metalink2RequestGroup.cc
  245. * src/PeerInteractionCommand.cc
  246. * src/RequestGroup.cc
  247. * src/RequestGroup.h
  248. * src/UTMetadataPostDownloadHandler.cc
  249. * src/UTMetadataPostDownloadHandler.h
  250. * src/download_helper.cc
  251. * test/HandshakeExtensionMessageTest.cc
  252. * test/Makefile.am
  253. * test/UTMetadataPostDownloadHandlerTest.cc
  254. * test/UTMetadataRejectExtensionMessageTest.cc
  255. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  256. In metadataGetMode, don't show SEEDING.
  257. * src/ConsoleStatCalc.cc
  258. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Fixed ut_metadata data handling. Implemented
  260. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  261. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  262. metadata_size is received.
  263. * src/DefaultExtensionMessageFactory.cc
  264. * src/DefaultExtensionMessageFactory.h
  265. * src/HandshakeExtensionMessage.cc
  266. * src/HandshakeExtensionMessage.h
  267. * src/UTMetadataDataExtensionMessage.cc
  268. * src/UTMetadataDataExtensionMessage.h
  269. * src/UTMetadataRequestExtensionMessage.cc
  270. * src/UTMetadataRequestFactory.cc
  271. * src/UTMetadataRequestFactory.h
  272. * src/UTMetadataRequestTracker.cc
  273. * src/UTMetadataRequestTracker.h
  274. * test/DefaultExtensionMessageFactoryTest.cc
  275. * test/HandshakeExtensionMessageTest.cc
  276. * test/MockBtMessage.h
  277. * test/UTMetadataDataExtensionMessageTest.cc
  278. * test/UTMetadataRequestExtensionMessageTest.cc
  279. * test/UTMetadataRequestFactoryTest.cc
  280. * test/UTMetadataRequestTrackerTest.cc
  281. * test/extension_message_test_helper.h
  282. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Drop connection if ut_metadata reject message is received.
  284. * src/UTMetadataRejectExtensionMessage.cc
  285. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  287. get high enough in that mode.
  288. * src/ActivePeerConnectionCommand.cc
  289. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Added BitTorrent magnet link support to ProtocolDetector.
  291. * src/ProtocolDetector.cc
  292. * src/ProtocolDetector.h
  293. * test/ProtocolDetectorTest.cc
  294. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  295. Don't inject validator into BtMessage in metadataGetMode because
  296. most of the checks depends on the total length of download but it
  297. is unknown. Delegate metadataGetMode to BtMessage.
  298. * src/DefaultBtMessageFactory.cc
  299. * src/DefaultBtMessageFactory.h
  300. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  302. * src/DefaultPieceStorage.h
  303. * src/PieceStorage.h
  304. * src/UnknownLengthPieceStorage.h
  305. * test/MockPieceStorage.h
  306. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  307. Added markTotalLengthIsKnown().
  308. * src/DownloadContext.h
  309. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  310. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  311. missing. If metadata is missing, always use DHT when it is ready.
  312. * src/BtSetup.cc
  313. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Added parseMagnetLink(). Hex encoded info hash is supported.
  315. Base32 encoded info hash is not supported yet.
  316. * src/bittorrent_helper.cc
  317. * src/bittorrent_helper.h
  318. * test/BittorrentHelperTest.cc
  319. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Added FromHex()
  321. * src/util.cc
  322. * src/util.h
  323. * test/UtilTest.cc
  324. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Added _metadataGetMode member variable. It toggles the action when
  326. messages are received: usually they almost do nothing if
  327. _metadataGetMode is true.
  328. * src/AbstractBtMessage.cc
  329. * src/AbstractBtMessage.h
  330. * src/BtAllowedFastMessage.cc
  331. * src/BtBitfieldMessage.cc
  332. * src/BtCancelMessage.cc
  333. * src/BtChokeMessage.cc
  334. * src/BtHaveAllMessage.cc
  335. * src/BtHaveMessage.cc
  336. * src/BtInterestedMessage.cc
  337. * src/BtNotInterestedMessage.cc
  338. * src/BtPieceMessage.cc
  339. * src/BtRejectMessage.cc
  340. * src/BtRequestMessage.cc
  341. * src/BtUnchokeMessage.cc
  342. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Added bencode::decode overload functions. They have extra argument
  344. 'end', passed by reference. 'end' points to the beyond the last
  345. position of data used in decoding process.
  346. * src/bencode.cc
  347. * src/bencode.h
  348. * test/BencodeTest.cc
  349. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  350. Initial support of Extension for Peers to Send Metadata
  351. Files(BEP9). Currently aria2 only serves metadata and cannot get
  352. metadata from swarm.
  353. * src/BtConstants.h
  354. * src/DefaultBtInteractive.cc
  355. * src/DefaultExtensionMessageFactory.cc
  356. * src/DefaultExtensionMessageFactory.h
  357. * src/ExtensionMessage.h
  358. * src/ExtensionMessageRegistry.h
  359. * src/HandshakeExtensionMessage.cc
  360. * src/HandshakeExtensionMessage.h
  361. * src/Makefile.am
  362. * src/PeerConnection.h
  363. * src/PeerInteractionCommand.cc
  364. * src/UTMetadataDataExtensionMessage.cc
  365. * src/UTMetadataDataExtensionMessage.h
  366. * src/UTMetadataExtensionMessage.cc
  367. * src/UTMetadataExtensionMessage.h
  368. * src/UTMetadataRejectExtensionMessage.cc
  369. * src/UTMetadataRejectExtensionMessage.h
  370. * src/UTMetadataRequestExtensionMessage.cc
  371. * src/UTMetadataRequestExtensionMessage.h
  372. * src/bittorrent_helper.cc
  373. * src/bittorrent_helper.h
  374. * test/BittorrentHelperTest.cc
  375. * test/DefaultExtensionMessageFactoryTest.cc
  376. * test/HandshakeExtensionMessageTest.cc
  377. * test/Makefile.am
  378. * test/UTMetadataDataExtensionMessageTest.cc
  379. * test/UTMetadataRejectExtensionMessageTest.cc
  380. * test/UTMetadataRequestExtensionMessageTest.cc
  381. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Cancel segment in prepareForRetry() because there is a chance that
  383. the command has segments.
  384. * src/CreateRequestCommand.cc
  385. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  386. Fixed the bug that slow server is not knocked down in favor of
  387. faster one.
  388. * src/AbstractCommand.cc
  389. * src/DefaultPieceStorage.cc
  390. * src/DefaultPieceStorage.h
  391. * src/PieceStorage.h
  392. * src/UnknownLengthPieceStorage.cc
  393. * src/UnknownLengthPieceStorage.h
  394. * test/MockPieceStorage.h
  395. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Fixed the bug that Request object is not added to
  397. _inFlightRequests in findFasterRequest().
  398. * src/FileEntry.cc
  399. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Changed the strategry of how to increase the number of outstanding
  401. requests. Now the number is doubled if there are no outstanding
  402. requests after receiving messages.
  403. * src/BtConstants.h
  404. * src/DefaultBtInteractive.cc
  405. * src/DefaultBtInteractive.h
  406. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  407. Check socket for reading if there are outstanding requests.
  408. * src/PeerInteractionCommand.cc
  409. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Moved frequently called methods to header file so they get
  411. inlined.
  412. * src/RequestSlot.cc
  413. * src/RequestSlot.h
  414. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  415. Copied in_addr instead of just casting from char* which might
  416. violate strict aliasing rules.
  417. * src/AsyncNameResolver.cc
  418. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Use dynamic_pointer_cast
  420. * test/BtPieceMessageTest.cc
  421. * test/BtRequestMessageTest.cc
  422. * test/DefaultBtRequestFactoryTest.cc
  423. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Added testSetUrl20()
  425. * test/RequestTest.cc
  426. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Code cleanup
  428. * src/bittorrent_helper.cc
  429. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Use C++ style cast
  431. * src/AsyncNameResolver.cc
  432. * src/Base64.h
  433. * src/BtBitfieldMessage.cc
  434. * src/BtHandshakeMessage.cc
  435. * src/DefaultBtMessageFactory.cc
  436. * src/DefaultBtProgressInfoFile.cc
  437. * src/EpollEventPoll.cc
  438. * src/ExpatMetalinkProcessor.cc
  439. * src/IteratableChecksumValidator.cc
  440. * src/IteratableChunkChecksumValidator.cc
  441. * src/MessageDigestHelper.cc
  442. * src/Platform.cc
  443. * src/RequestGroupMan.cc
  444. * src/SingleFileAllocationIterator.cc
  445. * src/Sqlite3MozCookieParser.cc
  446. * src/XML2SAXMetalinkProcessor.cc
  447. * src/Xml2XmlRpcRequestProcessor.cc
  448. * src/util.cc
  449. * src/util.h
  450. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  451. Fixed integer potential alignment problem.
  452. * src/bitfield.h
  453. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  454. Applied a patch from tizianomueller to fix sigbus errors on Linux
  455. sparc. I modified the patch to eliminate a cast to uint32_t* and
  456. include file ordering.
  457. * src/PeerListProcessor.h
  458. * src/bittorrent_helper.cc
  459. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  461. * src/Request.cc
  462. * src/util.cc
  463. * src/util.h
  464. * test/RequestTest.cc
  465. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  466. Rewritten util::uitos()
  467. * src/util.h
  468. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Code cleanup
  470. * src/Request.cc
  471. * src/Request.h
  472. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  473. Rewritten Request::parseUrl()
  474. * src/Request.cc
  475. * test/RequestTest.cc
  476. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Removed unused macro SAFE_CHARS
  478. * src/Request.cc
  479. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  480. Updated doc
  481. * src/DHTRoutingTableDeserializer.cc
  482. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Release 1.6.3
  484. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  485. Removed unused function.
  486. * test/DHTPeerAnnounceStorageTest.cc
  487. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  488. Only decrement cols if cols > 0
  489. * src/ConsoleStatCalc.cc
  490. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Updated Polish, Catalan, French, Italian, Russian and Japanese
  492. translations. Thanks to all translators.
  493. * po/ca.po
  494. * po/fr.po
  495. * po/it.po
  496. * po/ja.po
  497. * po/pl.po
  498. * po/ru.po
  499. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Updated translation template
  501. * po
  502. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Fixed compile error without ssl library.
  504. * src/util.cc
  505. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Logged received nodes in get_peers reply message.
  507. * src/DHTAbstractNodeLookupTask.cc
  508. * src/DHTAbstractNodeLookupTask.h
  509. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  511. error occurred in DHTMessageDispatcherImpl::sendMessage().
  512. * src/DHTMessageDispatcherImpl.cc
  513. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  514. Don't reuse URI if Request pool is not empty.
  515. * src/CreateRequestCommand.cc
  516. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  518. receive get_peers request for torrent which the client is now
  519. downloading.
  520. * src/BtSetup.cc
  521. * src/DHTPeerAnnounceEntry.cc
  522. * src/DHTPeerAnnounceEntry.h
  523. * src/DHTPeerAnnounceStorage.cc
  524. * src/DHTPeerAnnounceStorage.h
  525. * src/RequestGroup.cc
  526. * test/DHTPeerAnnounceEntryTest.cc
  527. * test/DHTPeerAnnounceStorageTest.cc
  528. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Fixed the bug that in Windows environment new blank line is
  530. inserted when console readout is updated.
  531. * src/ConsoleStatCalc.cc
  532. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Throw exception if binding listening port is failed. Removed
  534. RequestGroupMan::getInitialCommand(). Use
  535. fillRequestGroupFromReserver() instead. Delete commands for
  536. RequestGroup which has errors when it is being added.
  537. * src/BtSetup.cc
  538. * src/DownloadEngine.cc
  539. * src/DownloadEngine.h
  540. * src/DownloadEngineFactory.cc
  541. * src/MultiUrlRequestInfo.cc
  542. * src/RequestGroupMan.cc
  543. * src/RequestGroupMan.h
  544. * test/RequestGroupManTest.cc
  545. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Fixed the bug that when downloading more than one torrent,
  547. listening port is not reported properly to tracker for 2nd or
  548. later torrents.
  549. * src/BtSetup.cc
  550. * src/PeerListenCommand.cc
  551. * src/PeerListenCommand.h
  552. * src/RequestGroup.cc
  553. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  554. Bump up version number to 1.6.3
  555. * configure.ac
  556. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Removed Util.cc from POTFILES.in
  558. * po/POTFILES.in
  559. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  560. Updated man page for previous change.
  561. * doc/aria2c.1.txt
  562. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. If user name is embedded but password is missing in URI, first
  564. resolve password using .netrc. If password is found in .netrc,
  565. then use it as password. If not, use the password specified in
  566. --ftp-passwd.
  567. * src/AuthConfigFactory.cc
  568. * src/Request.cc
  569. * src/Request.h
  570. * test/AuthConfigFactoryTest.cc
  571. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  572. Fixed typo
  573. * doc/aria2c.1.txt
  574. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Fixed typo
  576. * src/usage_text.h
  577. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Added missing bitfield.cc
  579. * src/bitfield.cc
  580. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  581. Renamed Util.{cc,h} as util.{cc,h}
  582. * src/Util.cc
  583. * src/Util.h
  584. * src/util.cc
  585. * src/util.h
  586. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  587. Moved static functions in Util class to namespace util.
  588. * src
  589. * test
  590. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  591. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  592. Moved generateRandomKey to bittorrent_helper.cc.
  593. * src/DHTBucket.cc
  594. * src/DHTGetPeersMessage.cc
  595. * src/DHTGetPeersReplyMessage.cc
  596. * src/DHTMessage.cc
  597. * src/DHTNode.cc
  598. * src/DHTTokenTracker.cc
  599. * src/DHTUtil.cc: Removed.
  600. * src/DHTUtil.h: Removed.
  601. * src/Makefile.am
  602. * src/Util.cc
  603. * src/Util.h
  604. * src/bitfield.h
  605. * src/bittorrent_helper.cc
  606. * src/bittorrent_helper.h
  607. * test/ARC4Test.cc
  608. * test/BNodeTest.cc
  609. * test/DHTAnnouncePeerMessageTest.cc
  610. * test/DHTAnnouncePeerReplyMessageTest.cc
  611. * test/DHTFindNodeMessageTest.cc
  612. * test/DHTFindNodeReplyMessageTest.cc
  613. * test/DHTGetPeersMessageTest.cc
  614. * test/DHTGetPeersReplyMessageTest.cc
  615. * test/DHTPingMessageTest.cc
  616. * test/DHTPingReplyMessageTest.cc
  617. * test/DHTTokenTrackerTest.cc
  618. * test/DHTUtilTest.cc: Removed.
  619. * test/Makefile.am
  620. * test/UtilTest.cc
  621. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Removed the call to trim() because trim() is called for each
  623. element in split().
  624. * src/CookieParser.cc
  625. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Replaced Util::slice() with split()
  627. * src/AbstractCommand.cc
  628. * src/CookieParser.cc
  629. * src/File.cc
  630. * src/HttpHeaderProcessor.cc
  631. * src/HttpRequest.cc
  632. * src/Metalink2RequestGroup.cc
  633. * src/MetalinkParserController.cc
  634. * src/Netrc.cc
  635. * src/NsCookieParser.cc
  636. * src/ParameterizedStringParser.cc
  637. * src/ServerStatMan.cc
  638. * src/UriListParser.cc
  639. * src/Util.cc
  640. * src/Util.h
  641. * src/bittorrent_helper.cc
  642. * test/UtilTest.cc
  643. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Use request->getDir() instead of "/" for embedded user/pass in
  645. URI.
  646. * src/AuthConfigFactory.cc
  647. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Fixed wrong insertion point for BasicCred.
  649. * src/AuthConfigFactory.cc
  650. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Allowed non-regular file in LocalFilePathOptionHandler
  652. * src/OptionHandlerImpl.h
  653. * src/message.h
  654. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Fixed the bug that Netrc::parse() cannot recognize comment line.
  656. * src/Netrc.cc
  657. * src/Util.h
  658. * test/NetrcTest.cc
  659. * test/sample.netrc
  660. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Fixed typo
  662. * src/BtDependency.cc
  663. * src/BtRejectMessage.cc
  664. * src/FtpConnection.cc
  665. * src/HttpHeaderProcessor.h
  666. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Fixed lintian report in man page
  668. * doc/aria2c.1.txt
  669. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Release 1.6.2
  671. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Updated Ukrainian translation. Thanks to all translators.
  673. * po/uk.po
  674. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Updated translation template
  676. * po
  677. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Bump up version number to 1.6.2
  679. * configure.ac
  680. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  681. Updated licence message in -v output.
  682. * src/version_usage.cc
  683. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Replaced aria2 with aria2c in help message.
  685. * src/version_usage.cc
  686. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  688. * src/version_usage.cc
  689. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  690. Quoted localedir
  691. * src/Makefile.am
  692. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  694. utime. Check header for utime.h.
  695. * configure.ac
  696. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  698. * configure.ac
  699. * src/daemon.cc
  700. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  701. Don't set localedir manually. Leave it to autoconf.
  702. * configure.ac
  703. * src/Makefile.am
  704. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Added --install to ACLOCAL_AMFLAGS.
  706. Removed m4 from SUBDIRS.
  707. Updated automake 1.11 and autoconf 2.64.
  708. Replaced some obsolute macros with new one.
  709. * Makefile.am
  710. * configure.ac
  711. * m4/aria2_arg.m4
  712. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Removed Makefile.am in m4 directory.
  714. * configure.ac
  715. * m4/ChangeLog
  716. * m4/Makefile.am
  717. * m4/Makefile.in
  718. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Removed unused m4 macros.
  720. * m4/intldir.m4
  721. * m4/inttypes.m4
  722. * m4/isc-posix.m4
  723. * m4/libgnutls-extra.m4
  724. * m4/ulonglong.m4
  725. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Fixed the bug that causes segmentation fault if
  727. req->getCurrentUrl() contains printf formatting characters such as
  728. %d. The statement that causes this bug is useless and removed.
  729. * src/AbstractCommand.cc
  730. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  731. * Release 1.6.1
  732. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Updated Simplified Chinese translation. Thanks to translators.
  734. * po/zh_CN.po
  735. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  736. Updated translation template
  737. * po
  738. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  739. Bump up version number to 1.6.1
  740. * configure.ac
  741. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Changed interval from 120 to 60 for dropping inactive peer.
  743. * src/DefaultBtInteractive.cc
  744. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Updated man page for --user-agent and --peer-id-prefix option.
  746. * doc/aria2c.1.txt
  747. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Code clean up
  749. * src/BtPostDownloadHandler.cc
  750. * src/ContentTypeRequestGroupCriteria.cc
  751. * src/ContentTypeRequestGroupCriteria.h
  752. * src/DownloadHandlerConstants.cc
  753. * src/DownloadHandlerConstants.h
  754. * src/DownloadHandlerFactory.cc
  755. * src/MetalinkPostDownloadHandler.cc
  756. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  757. Don't save control file when aria2 exists while checking piece
  758. hash(behavior of -V option). If control file doesn't exist when
  759. aria2 launched, the completed length in saved control file will be
  760. 0 byte and this confuses user. disableSaveControlFile() is called
  761. in RequestGroup::processCheckIntegrityEntry().
  762. enableSaveControlFile() will be called after hash checking is
  763. done. See CheckIntegrityCommand.
  764. * src/CheckIntegrityCommand.cc
  765. * src/RequestGroup.cc
  766. * src/RequestGroup.h
  767. * src/RequestGroupMan.cc
  768. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Included version number in Peer ID and client version. Peer ID
  770. now starts with "aria2/VERSION-", where VERSION is
  771. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  772. * src/DefaultBtInteractive.cc
  773. * src/OptionHandlerFactory.cc
  774. * src/bittorrent_helper.cc
  775. * src/bittorrent_helper.h
  776. * src/main.cc
  777. * src/usage_text.h
  778. * test/BittorrentHelperTest.cc
  779. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  780. Fixed memory leak.
  781. * src/DownloadCommand.cc
  782. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Removed server, port, user and passwd key from options before
  784. XMLRPC::Client.call since they are not options of aria2.
  785. * doc/xmlrpc/aria2mon
  786. * doc/xmlrpc/aria2rpc
  787. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Included version number in user-agent string.
  789. * src/OptionHandlerFactory.cc
  790. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Fixed the bug that the option values changed by XML-RPC
  792. method(changeOption and changeGlobalOption) are overwritten to the
  793. previous value by the next these request which doesn't contain
  794. that option value. Supporse max-download-limit is initially 0. You
  795. changed this value to 100K by changeOption. Then you issue
  796. changeOption request to change max-upload-limit to 50K. This
  797. second request doesn't contain xml-download-limit, so it is back
  798. to initial value, 0. Another improvement is that exception is
  799. thrown when changeOption and changeGlobalOption request contains
  800. option name which doesn't allowed in each request.
  801. * src/DownloadEngine.h
  802. * src/XmlRpcMethod.cc
  803. * src/XmlRpcMethod.h
  804. * src/XmlRpcMethodImpl.cc
  805. * src/download_helper.cc
  806. * src/download_helper.h
  807. * test/XmlRpcMethodTest.cc
  808. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Added missing MetalinkParserStateImpl.{cc,h}
  810. * src/MetalinkParserStateImpl.cc
  811. * src/MetalinkParserStateImpl.h
  812. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  813. Put all MetalinkParserState subclasses into
  814. MetalinkParserStateImpl.cc. Use stack to track element structure.
  815. * src/FileMetalinkParserState.cc: Removed
  816. * src/FileMetalinkParserState.h: Removed
  817. * src/FilesMetalinkParserState.cc: Removed
  818. * src/FilesMetalinkParserState.h: Removed
  819. * src/FinMetalinkParserState.cc: Removed
  820. * src/FinMetalinkParserState.h: Removed
  821. * src/HashMetalinkParserState.cc: Removed
  822. * src/HashMetalinkParserState.h: Removed
  823. * src/InitialMetalinkParserState.cc: Removed
  824. * src/InitialMetalinkParserState.h: Removed
  825. * src/LanguageMetalinkParserState.cc: Removed
  826. * src/LanguageMetalinkParserState.h: Removed
  827. * src/Makefile.am
  828. * src/MetalinkMetalinkParserState.cc: Removed
  829. * src/MetalinkMetalinkParserState.h: Removed
  830. * src/MetalinkParserState.h
  831. * src/MetalinkParserStateMachine.cc
  832. * src/MetalinkParserStateMachine.h
  833. * src/OSMetalinkParserState.cc: Removed
  834. * src/OSMetalinkParserState.h: Removed
  835. * src/PieceHashMetalinkParserState.cc: Removed
  836. * src/PieceHashMetalinkParserState.h: Removed
  837. * src/PiecesMetalinkParserState.cc: Removed
  838. * src/PiecesMetalinkParserState.h: Removed
  839. * src/ResourcesMetalinkParserState.cc: Removed
  840. * src/ResourcesMetalinkParserState.h: Removed
  841. * src/SignatureMetalinkParserState.cc: Removed
  842. * src/SignatureMetalinkParserState.h: Removed
  843. * src/SizeMetalinkParserState.cc: Removed
  844. * src/SizeMetalinkParserState.h: Removed
  845. * src/SkipTagMetalinkParserState.cc: Removed
  846. * src/SkipTagMetalinkParserState.h: Removed
  847. * src/URLMetalinkParserState.cc: Removed
  848. * src/URLMetalinkParserState.h: Removed
  849. * src/VerificationMetalinkParserState.cc: Removed
  850. * src/VerificationMetalinkParserState.h: Removed
  851. * src/VersionMetalinkParserState.cc: Removed
  852. * src/VersionMetalinkParserState.h: Removed
  853. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Move all functions in PeerMessageUtil to bittorrent_helper.
  855. * src/BtBitfieldMessage.cc
  856. * src/BtBitfieldMessageValidator.h
  857. * src/BtExtendedMessage.cc
  858. * src/BtHandshakeMessage.cc
  859. * src/BtHandshakeMessageValidator.h
  860. * src/BtPieceMessage.cc
  861. * src/BtPieceMessageValidator.h
  862. * src/BtPortMessage.cc
  863. * src/DHTFindNodeReplyMessage.cc
  864. * src/DHTGetPeersReplyMessage.cc
  865. * src/DHTMessageFactoryImpl.cc
  866. * src/DHTRoutingTableDeserializer.cc
  867. * src/DHTRoutingTableSerializer.cc
  868. * src/DHTTokenTracker.cc
  869. * src/DefaultBtMessageFactory.cc
  870. * src/IndexBtMessage.cc
  871. * src/IndexBtMessage.h
  872. * src/IndexBtMessageValidator.h
  873. * src/Makefile.am
  874. * src/PeerMessageUtil.cc: Removed.
  875. * src/PeerMessageUtil.h: Removed.
  876. * src/RangeBtMessage.cc
  877. * src/RangeBtMessage.h
  878. * src/RangeBtMessageValidator.h
  879. * src/UTPexExtensionMessage.cc
  880. * src/ZeroBtMessage.cc
  881. * src/ZeroBtMessage.h
  882. * src/bittorrent_helper.cc
  883. * src/bittorrent_helper.h
  884. * test/BittorrentHelperTest.cc
  885. * test/BtAllowedFastMessageTest.cc
  886. * test/BtBitfieldMessageTest.cc
  887. * test/BtCancelMessageTest.cc
  888. * test/BtChokeMessageTest.cc
  889. * test/BtExtendedMessageTest.cc
  890. * test/BtHandshakeMessageTest.cc
  891. * test/BtHaveAllMessageTest.cc
  892. * test/BtHaveMessageTest.cc
  893. * test/BtHaveNoneMessageTest.cc
  894. * test/BtInterestedMessageTest.cc
  895. * test/BtNotInterestedMessageTest.cc
  896. * test/BtPieceMessageTest.cc
  897. * test/BtPortMessageTest.cc
  898. * test/BtRejectMessageTest.cc
  899. * test/BtRequestMessageTest.cc
  900. * test/BtSuggestPieceMessageTest.cc
  901. * test/BtUnchokeMessageTest.cc
  902. * test/DHTFindNodeReplyMessageTest.cc
  903. * test/DHTGetPeersReplyMessageTest.cc
  904. * test/DHTMessageFactoryImplTest.cc
  905. * test/DHTRoutingTableDeserializerTest.cc
  906. * test/DHTRoutingTableSerializerTest.cc
  907. * test/DefaultBtMessageFactoryTest.cc
  908. * test/DefaultExtensionMessageFactoryTest.cc
  909. * test/Makefile.am
  910. * test/PeerListProcessorTest.cc
  911. * test/PeerMessageUtilTest.cc: Removed.
  912. * test/UTPexExtensionMessageTest.cc
  913. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  914. Limit the size of values list when sending get_peers reply.
  915. * src/DHTGetPeersReplyMessage.cc
  916. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Updated banner
  918. * doc/xmlrpc/aria2rpc
  919. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  920. Added missing help message for remove command.
  921. * doc/xmlrpc/aria2rpc
  922. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  923. Generated configure and config.h.in
  924. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  925. Add check for fork(), which is missing on MinGW
  926. * src/daemon.cc
  927. * configure.ac
  928. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  930. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  931. Util::httpGMT().
  932. * src/Util.cc
  933. * src/Util.h
  934. * test/UtilTest.cc
  935. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. * Release 1.6.0
  937. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  938. Fixed a path to xmlrpc/README.txt
  939. * doc/Makefile.am
  940. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. Added XML-RPC in -v Configuration output.
  942. * src/FeatureConfig.cc
  943. * src/FeatureConfig.h
  944. * test/FeatureConfigTest.cc
  945. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Updated Bulgarian, Russian, Slovak and Japanese
  947. translations. Thanks to all translators.
  948. * po/bg.po
  949. * po/ja.po
  950. * po/ru.po
  951. * po/sk.po
  952. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Removed --retry-wait option from aria2rpc
  954. * doc/xmlrpc/aria2rpc
  955. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Removed --retry-wait option from man page.
  957. * doc/aria2c.1.txt
  958. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Removed --retry-wait option since the current architecture doesn't
  960. allow sleep for particular URI.
  961. * src/AbstractCommand.cc
  962. * src/OptionHandlerFactory.cc
  963. * src/download_helper.cc
  964. * src/prefs.cc
  965. * src/prefs.h
  966. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. Removed Retry-After header support. Since the current architecture
  968. doesn't allow sleep for particular URI.
  969. * src/HttpSkipResponseCommand.cc
  970. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Updated the help message for --daemon option.
  972. * doc/aria2c.1.txt
  973. * src/usage_text.h
  974. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  975. Added our own daemon() function for systems which desn't have
  976. daemon(3).
  977. * configure.ac
  978. * src/Makefile.am
  979. * src/daemon.cc
  980. * src/daemon.h
  981. * src/option_processing.cc
  982. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  983. Simplified File::getCurrentDir()
  984. * src/File.cc
  985. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Use exit() instead of _exit
  987. * src/RequestGroupMan.cc
  988. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Replaced "CATEGORY" with "TAGS".
  990. * src/usage_text.h
  991. * doc/aria2c.1.txt
  992. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Updated the help message for --help option.
  994. * src/usage_text.h
  995. * doc/aria2c.1.txt
  996. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  997. Updated man page for added help tags.
  998. * doc/aria2c.1.txt
  999. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Added help category #file. Added #file tag to the options related
  1001. to downloaded file.
  1002. * src/OptionHandlerFactory.cc
  1003. * src/help_tags.h
  1004. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Added help categories: #cookie and #hook. Added #https tag to
  1006. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1007. * src/OptionHandlerFactory.cc
  1008. * src/help_tags.h
  1009. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1010. Made MSG_NOT_FILE translatable.
  1011. * src/message.h
  1012. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1013. Updated man page for --help option.
  1014. * doc/aria2c.1.txt
  1015. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Updated doc.
  1017. * src/XmlRpcMethod.h
  1018. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1019. Help category now starts with "#" to distinguish a category from
  1020. keyword search. For example, "http" categroy is now "#http". You
  1021. can type "--help=#http" to get explanation of options related to
  1022. http. If '#' is omitted, then the argument is treated as a keyword
  1023. and aria2 searches options whose name includes the keyword and
  1024. print matched ones. For example, "--help=http" will show options
  1025. whose name includes "http".
  1026. * src/OptionHandlerFactory.cc
  1027. * src/help_tags.h
  1028. * src/usage_text.h
  1029. * src/version_usage.cc
  1030. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. Documented missing experimental tag and newly added xml-rpc tag in
  1032. man page.
  1033. * doc/aria2c.1.txt
  1034. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1035. Added xml-rpc help tag. Tagged xml-rpc related options with
  1036. xml-rpc tag.
  1037. * src/OptionHandlerFactory.cc
  1038. * src/help_tags.h
  1039. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1040. Updated message when a path is not a file. Updated common message
  1041. for wrong option.
  1042. * src/OptionHandlerException.cc
  1043. * src/message.h
  1044. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Use File::isFile() instead of File::exists(). Updated message when
  1046. a path is not a file.
  1047. * src/OptionHandlerImpl.cc
  1048. * src/message.h
  1049. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1050. Fixed the bug that server performence profile is not updated when
  1051. aria2c was terminated by emergency shutdown.
  1052. * src/TrackerWatcherCommand.cc
  1053. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1054. Use LocalFilePathOptionHandler for -T and -M option.
  1055. Updated message of MSG_FILE_NOT_EXIST.
  1056. * src/OptionHandlerFactory.cc
  1057. * src/message.h
  1058. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1059. Added LocalFilePathOptionHandler which check whether the specified
  1060. file path does exist or not.
  1061. * src/OptionHandlerImpl.cc
  1062. * src/message.h
  1063. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. Updated wiki page URI.
  1065. * README
  1066. * doc/aria2c.1.txt
  1067. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1068. Added README.txt for xmlrpc directory.
  1069. * doc/Makefile.am
  1070. * doc/xmlrpc/README.txt
  1071. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1072. Bump up version number to 1.6.0.
  1073. * configure.ac
  1074. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1075. Added XML-RPC client scripts written in ruby.
  1076. * doc/Makefile.am
  1077. * doc/xmlrpc/aria2mon
  1078. * doc/xmlrpc/aria2rpc
  1079. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. Added support for IPv6 literal address in URI. Now aria2 can
  1081. handle URI such as http://[::1]/
  1082. * src/HttpRequest.cc
  1083. * src/HttpRequest.h
  1084. * src/Request.cc
  1085. * src/Request.h
  1086. * test/HttpRequestTest.cc
  1087. * test/OptionHandlerTest.cc
  1088. * test/RequestTest.cc
  1089. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Fixed the bug that HTTP request header for XML-RPC request is not
  1091. parsed properly.
  1092. * src/HttpHeader.cc
  1093. * src/HttpHeaderProcessor.cc
  1094. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1095. Fixed the bug that XML-RPC authorization might be done before HTTP
  1096. request header is fully received.
  1097. * src/HttpServerCommand.cc
  1098. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Documented --xml-rpc-listen-all option in man page.
  1100. * doc/aria2c.1.txt
  1101. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Added --xml-rpc-listen-all option. If true is given to this
  1103. option, aria2 listens incoming XML-RPC requests on all network
  1104. interfaces. If false is given, listens only on local loopback
  1105. interface. The default value is false.
  1106. * src/HttpListenCommand.cc
  1107. * src/OptionHandlerFactory.cc
  1108. * src/SocketCore.cc
  1109. * src/SocketCore.h
  1110. * src/prefs.cc
  1111. * src/prefs.h
  1112. * src/usage_text.h
  1113. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1114. * Release 1.5.2
  1115. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Updated Ukrainian and Russian translations. Thanks to all
  1117. translators.
  1118. * po/ru.po
  1119. * po/uk.po
  1120. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1121. Bump up version number to 1.5.2
  1122. * configure.ac
  1123. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Get comment, comment.utf-8, created by and creation date from
  1125. .torrent file and print them in -S output.
  1126. * src/bittorrent_helper.cc
  1127. * src/bittorrent_helper.h
  1128. * test/BittorrentHelperTest.cc
  1129. * test/test.torrent
  1130. * test/utf8.torrent
  1131. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Show exact file size along in -S option output.
  1133. * src/Util.h
  1134. * src/bittorrent_helper.cc
  1135. * test/UtilTest.cc
  1136. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1137. Avoided unnecessary memory allocation in
  1138. BitfieldMan::getCompletedLength().
  1139. * src/BitfieldMan.cc
  1140. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Fixed the bug that download fails if
  1142. SocketCore::establishConnection() throws exception and aria2
  1143. doesn't try another address.
  1144. * src/AbstractCommand.cc
  1145. * src/InitiateConnectionCommand.cc
  1146. * src/message.h
  1147. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1148. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1149. detected properly.
  1150. * m4/sqlite3.m4
  1151. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1153. because it causes compile error if PARAMS macro is defined.
  1154. * src/XmlRpcElements.cc
  1155. * src/XmlRpcElements.h
  1156. * src/XmlRpcRequestParserStateImpl.cc
  1157. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1158. * Release 1.5.1
  1159. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1160. Bump up version number to 1.5.1
  1161. * configure.ac
  1162. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1163. Fixed compile error without BitTorrent support
  1164. * src/DefaultBtProgressInfoFile.cc
  1165. * src/DownloadEngine.cc
  1166. * src/DownloadEngine.h
  1167. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1168. Added missing '=' in Download Results
  1169. * src/RequestGroupMan.cc
  1170. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1171. Fixed compiler warning
  1172. * src/DefaultBtProgressInfoFile.cc
  1173. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1174. Fixed compiler warning on 32bit systems.
  1175. * src/DownloadCommand.cc
  1176. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Call flush from ServerStatMan::save()
  1178. * src/ServerStatMan.cc
  1179. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1180. Check stream status after file is opened.
  1181. * src/CookieStorage.cc
  1182. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1183. Rewritten Signature::save()
  1184. * src/Signature.cc
  1185. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Rewritten RequestGroupMan::saveServerStat()
  1187. * src/RequestGroupMan.cc
  1188. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. Rewritten stream error handling
  1190. * src/DHTAutoSaveCommand.cc
  1191. * src/DHTRoutingTableDeserializer.cc
  1192. * src/DHTRoutingTableSerializer.cc
  1193. * src/DHTSetup.cc
  1194. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1195. Check stream status after file is opened.
  1196. * src/DefaultBtProgressInfoFile.cc
  1197. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1198. Rewritten stream error handling
  1199. * src/DefaultBtProgressInfoFile.cc
  1200. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1201. Make sure that stream is closed before renaming file. Unit test
  1202. fails on mingw32 in the previous implementation.
  1203. * src/CookieStorage.cc
  1204. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1205. Fixed the unit test error without sqlite3
  1206. * test/CookieStorageTest.cc
  1207. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1208. Fixed the undefined reference error
  1209. * test/HttpResponseTest.cc
  1210. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1211. * Release 1.5.0
  1212. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1214. Ukrainian translations. Thanks to all translators.
  1215. * po/ru.po
  1216. * po/it.po
  1217. * po/da.po
  1218. * po/bg.po
  1219. * po/ja.po
  1220. * po/uk.po
  1221. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1222. Added missing src/Logger.cc
  1223. * src/Logger.cc
  1224. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Rewritten Logger to avoiding constly virtual call.
  1226. * src/LogFactory.cc
  1227. * src/LogFactory.h
  1228. * src/Logger.h
  1229. * src/Makefile.am
  1230. * src/Makefile.in
  1231. * src/NullLogger.h: Removed.
  1232. * src/SimpleLogger.cc
  1233. * src/SimpleLogger.h
  1234. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1235. Updated doc
  1236. * src/main.cc
  1237. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1238. Updated debug log message
  1239. * src/AbstractCommand.cc
  1240. * src/message.h
  1241. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1242. Avoid to create zombie process when commands specified in
  1243. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1244. X and NetBSD.
  1245. * src/main.cc
  1246. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Fixed typo
  1248. * src/usage_text.h
  1249. * doc/aria2c.1.txt
  1250. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Documented 'errorCode' of tellStatus in man page.
  1252. * doc/aria2c.1.txt
  1253. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1254. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  1255. This key is only available for stopped/completed downloads and its
  1256. value is the error code defined in EXIT STATUS in man page.
  1257. * src/XmlRpcMethodImpl.cc
  1258. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Fixed the bug that session download length is not updated when
  1260. PeerStat is not fastest one.
  1261. * src/SegmentMan.cc
  1262. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Updated doc.
  1264. * doc/aria2c.1.txt
  1265. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1266. Updated doc.
  1267. * src/AbstractCommand.cc
  1268. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1269. Handle the case when DownloadContext has no FileEntry.
  1270. * src/XmlRpcMethodImpl.cc
  1271. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Handle the situation where struct option.name is char *.
  1273. * configure.ac
  1274. * src/OptionParser.cc
  1275. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1276. Code cleanup
  1277. * src/AbstractCommand.cc
  1278. * src/DownloadCommand.cc
  1279. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. Use option of each download to create AuthConfig instead of global
  1281. option.
  1282. * src/AuthConfigFactory.cc
  1283. * src/AuthConfigFactory.h
  1284. * src/FtpNegotiationCommand.cc
  1285. * src/HttpRequest.cc
  1286. * src/HttpRequest.h
  1287. * src/HttpRequestCommand.cc
  1288. * src/HttpSkipResponseCommand.cc
  1289. * src/MultiUrlRequestInfo.cc
  1290. * test/AuthConfigFactoryTest.cc
  1291. * test/FtpConnectionTest.cc
  1292. * test/HttpRequestTest.cc
  1293. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Don't call prepareForRetry(1) if all segments are ignored in
  1295. SegmentMan.
  1296. * src/AbstractCommand.cc
  1297. * src/BitfieldMan.cc
  1298. * src/BitfieldMan.h
  1299. * src/SegmentMan.cc
  1300. * src/SegmentMan.h
  1301. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1302. Removed FileEntry::getAssociatedUris()
  1303. * src/FileEntry.h
  1304. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1305. Updated doc: TODO1.5 -> TODO
  1306. * src/FileEntry.cc
  1307. * src/HttpResponseCommand.cc
  1308. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. Added assertion fileEntries.size() == 1 if BitTorrent is not
  1310. involved.
  1311. * src/RequestGroup.cc
  1312. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1313. Eliminated duplicated filterBitfield initialization code.
  1314. * src/BitfieldMan.cc
  1315. * src/BitfieldMan.h
  1316. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1317. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  1318. relatively naive approach, though). For DownloadFailureException,
  1319. we handle the case when req is null properly.
  1320. * src/AbstractCommand.cc
  1321. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Added function returning suffix of control file to
  1323. DefaultBtProgressInfoFile.
  1324. * src/DefaultBtProgressInfoFile.cc
  1325. * src/DefaultBtProgressInfoFile.h
  1326. * src/RequestGroup.cc
  1327. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. Documented getVersion in man page.
  1329. * doc/aria2c.1.txt
  1330. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1331. Documented type of offset and num for tellWaiting xml-rpc method.
  1332. * doc/aria2c.1.txt
  1333. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1334. Implemented getVersion xml-rpc method. This method returns struct
  1335. which has 2 key-value pairs: "version" key is associated to the
  1336. version of aria2, such as "1.5.0". "enabledFeatures" key is
  1337. associated to the list of enabled features, such as "Async DNS",
  1338. "BitTorrent".
  1339. * src/FeatureConfig.h
  1340. * src/XmlRpcMethodFactory.cc
  1341. * src/XmlRpcMethodImpl.cc
  1342. * src/XmlRpcMethodImpl.h
  1343. * test/XmlRpcMethodTest.cc
  1344. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1345. Removed TLS1.1 protocol support when aria2 is built with gnutls
  1346. for compatibility issue.
  1347. * src/SocketCore.cc
  1348. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1349. Fixed compile error with openSSL
  1350. * src/bittorrent_helper.cc
  1351. * src/messageDigest.h
  1352. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1353. Removed bad code: setting certificate type priority to key
  1354. exchange priority.
  1355. * src/SocketCore.cc
  1356. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1357. Disconnect seeder if client is also in seed state.
  1358. * src/BtBitfieldMessage.cc
  1359. * src/BtHaveAllMessage.cc
  1360. * src/BtHaveMessage.cc
  1361. * src/message.h
  1362. * test/BtBitfieldMessageTest.cc
  1363. * test/BtHaveAllMessageTest.cc
  1364. * test/BtHaveMessageTest.cc
  1365. * test/MockPieceStorage.h
  1366. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1367. Keep CreateRequestCommand in queue when no segment is available so
  1368. that they can pick up pieces which slow BitTorrent peers are
  1369. downloading.
  1370. * src/AbstractCommand.cc
  1371. * src/CreateRequestCommand.cc
  1372. * src/CreateRequestCommand.h
  1373. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. --bt-stop-timeout now only checks download speed.
  1375. * src/BtStopDownloadCommand.cc
  1376. * src/BtStopDownloadCommand.h
  1377. * src/BtSetup.cc
  1378. * src/usage_text.h
  1379. * doc/aria2c.1.txt
  1380. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Fixed compile error regarding BUFSIZE.
  1382. * src/DownloadCommand.cc
  1383. * src/DownloadCommand.h
  1384. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1385. Documented tellWaiting xml-rpc method in man page.
  1386. * doc/aria2c.1.txt
  1387. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Bump up version number to 1.5.0
  1389. * configure.ac
  1390. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1391. Removed resolved TODO1.5
  1392. * src/AbstractCommand.cc
  1393. * src/DownloadCommand.cc
  1394. * src/RequestGroup.cc
  1395. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Release pooled and in-flight Request objectsand URIResult objects
  1397. in FileEntry after download completed.
  1398. * src/DownloadContext.cc
  1399. * src/DownloadContext.h
  1400. * src/FileEntry.cc
  1401. * src/FileEntry.h
  1402. * src/RequestGroup.cc
  1403. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1404. Set manual and source attribute in aria2c.1.txt
  1405. * doc/aria2c.1.txt
  1406. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Documented that the default value of --use-head is 'false' in man
  1408. page.
  1409. * doc/aria2c.1.txt
  1410. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1411. Added bt-stop-timeout option to -i list.
  1412. * doc/aria2c.1.txt
  1413. * src/download_helper.cc
  1414. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1415. Fixed typo
  1416. * doc/aria2c.1.txt
  1417. * src/usage_text.h
  1418. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1419. Removed peer-id-prefix option from -i list.
  1420. * doc/aria2c.1.txt
  1421. * src/download_helper.cc
  1422. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1423. Fixed typo
  1424. * doc/aria2c.1.txt
  1425. * src/usage_text.h
  1426. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Documented --bt-stop-timeout option in man page.
  1428. * doc/aria2c.1.txt
  1429. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Updated README regarding multi-file torrent web-seeding.
  1431. * doc/README.txt
  1432. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Updated man page regarding multi-file torrent web-seeding.
  1434. * doc/aria2c.1.txt
  1435. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Updated doc
  1437. * src/version_usage.cc
  1438. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Winsock select() doesn't work if no socket is in FD_SET. To
  1440. overcome this problem, a dummy socket is added to FD_SET and it is
  1441. given to select().
  1442. * src/SelectEventPoll.cc
  1443. * src/SelectEventPoll.h
  1444. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1445. Disabled --use-head option by default because --use-head=true
  1446. causes problems on some web sites.
  1447. * src/OptionHandlerFactory.cc
  1448. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Print URL List in -S option for torrent.
  1450. * src/bittorrent_helper.cc
  1451. * src/bittorrent_helper.h
  1452. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Allocate buffer in ctor of DownloadCommand.
  1454. * src/DownloadCommand.cc
  1455. * src/DownloadCommand.h
  1456. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Removed DiskAdaptor::onDownloadComplete()
  1458. * src/DirectDiskAdaptor.cc
  1459. * src/DirectDiskAdaptor.h
  1460. * src/DiskAdaptor.h
  1461. * src/MultiDiskAdaptor.cc
  1462. * src/MultiDiskAdaptor.h
  1463. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Committed missing BtStopDownloadCommand.{cc,h}
  1465. * src/BtStopDownloadCommand.cc
  1466. * src/BtStopDownloadCommand.h
  1467. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1468. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  1469. download if the download speed is 0 and the number of seeder is 0
  1470. in consecutive SEC seconds. By default, this function is disabled.
  1471. * src/BtSetup.cc
  1472. * src/Makefile.am
  1473. * src/OptionHandlerFactory.cc
  1474. * src/prefs.cc
  1475. * src/prefs.h
  1476. * src/usage_text.h
  1477. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Removed the call to DiskAdaptor::onDownloadComplete() from
  1479. BtCheckIntegrityEntry and DefaultPieceStorage.
  1480. * src/BtCheckIntegrityEntry.cc
  1481. * src/DefaultPieceStorage.cc
  1482. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1483. Commented out throw statements when number of piece is 0 to
  1484. download 0 length torrent.
  1485. * src/bittorrent_helper.cc
  1486. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Call RequestGroup::createNextCommandWithAdj() from
  1488. BtFileAllocationEntry if at least one FileEntry has URI. The
  1489. static function hasAssociatedUri in RequestGroup.cc is renamed as
  1490. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  1491. * src/BtFileAllocationEntry.cc
  1492. * src/FileEntry.h
  1493. * src/RequestGroup.cc
  1494. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. Generate peer ID after SimpleRandomizer is initialized.
  1496. * src/main.cc
  1497. * src/option_processing.cc
  1498. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1499. Removed unused method argument.
  1500. * src/CreateRequestCommand.cc
  1501. * src/RequestGroup.cc
  1502. * src/RequestGroup.h
  1503. * src/RequestGroupMan.cc
  1504. * src/TrackerWatcherCommand.cc
  1505. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Made URI reusing function work.
  1507. * src/CreateRequestCommand.cc
  1508. * src/FileEntry.cc
  1509. * src/FileEntry.h
  1510. * test/FileEntryTest.cc
  1511. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Add formerly fastest PeerStat's sessionDownloadLength to new
  1513. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  1514. bytes in a session.
  1515. * src/PeerStat.cc
  1516. * src/SegmentMan.cc
  1517. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. If pipelining is enabled, we can always pool socket.
  1519. * src/HttpDownloadCommand.cc
  1520. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. In a single file download, file size becomes known just after
  1522. downloading, set total length to FileEntry object when download
  1523. completed.
  1524. * src/DownloadCommand.cc
  1525. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Use std::vector::reserve() for fileEntries and pieceHashes in
  1527. bittorrent_helper
  1528. * src/bittorrent_helper.cc
  1529. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  1531. Removed hidden option PREF_RESET_URI.
  1532. * src/AbstractCommand.cc
  1533. * src/OptionHandlerFactory.cc
  1534. * src/prefs.cc
  1535. * src/prefs.h
  1536. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Removed unused variable/function.
  1538. * src/PeerStat.h
  1539. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1540. Show first URL in Download Results if file path is not available.
  1541. * src/FileEntry.h
  1542. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1543. Throw exception if file path doesn't exist in FTP URL.
  1544. * src/InitiateConnectionCommandFactory.cc
  1545. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1546. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  1547. * src/BitfieldMan.cc
  1548. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1549. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  1550. of PeerStat in SegmentMan. peerStats is used for calculating
  1551. download speed. Therefore all active PeerStats should be in
  1552. there. Another one is _fastestPeerStats and it only contains
  1553. fastest PeerStat for each hostname/protocol pair. They are used
  1554. for updating ServerStat.
  1555. * src/DownloadCommand.cc
  1556. * src/Request.h
  1557. * src/RequestGroupMan.cc
  1558. * src/SegmentMan.cc
  1559. * src/SegmentMan.h
  1560. * test/SegmentManTest.cc
  1561. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Try all available addresses returned by DNS until it gets
  1563. connected in HTTP(S)/FTP download
  1564. * src/AbstractCommand.cc
  1565. * src/AbstractCommand.h
  1566. * src/AbstractProxyRequestCommand.cc
  1567. * src/AbstractProxyRequestCommand.h
  1568. * src/DNSCache.h
  1569. * src/DownloadEngine.cc
  1570. * src/DownloadEngine.h
  1571. * src/FtpInitiateConnectionCommand.cc
  1572. * src/FtpInitiateConnectionCommand.h
  1573. * src/FtpNegotiationCommand.cc
  1574. * src/FtpNegotiationCommand.h
  1575. * src/HttpInitiateConnectionCommand.cc
  1576. * src/HttpInitiateConnectionCommand.h
  1577. * src/HttpRequestCommand.cc
  1578. * src/HttpRequestCommand.h
  1579. * src/InitiateConnectionCommand.cc
  1580. * src/InitiateConnectionCommand.h
  1581. * test/DNSCacheTest.cc
  1582. * test/Makefile.am
  1583. * test/SimpleDNSCacheTest.cc
  1584. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Updated doc
  1586. * src/download_helper.cc
  1587. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1588. Refactored fieldMan ctor.
  1589. * src/BitfieldMan.cc
  1590. * src/BitfieldMan.h
  1591. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Don't print "No files to download." message if -S is given.
  1593. * src/main.cc
  1594. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1595. Set referer and method to newly created Request object.
  1596. * src/CreateRequestCommand.cc
  1597. * src/FileEntry.cc
  1598. * src/FileEntry.h
  1599. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Removed ctor of AbstractCommand which doesn't take FileEntry.
  1601. * src/AbstractCommand.cc
  1602. * src/AbstractCommand.h
  1603. * src/CreateRequestCommand.cc
  1604. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1605. Get proxy download working
  1606. * src/AbstractProxyRequestCommand.cc
  1607. * src/AbstractProxyRequestCommand.h
  1608. * src/AbstractProxyResponseCommand.cc
  1609. * src/AbstractProxyResponseCommand.h
  1610. * src/FtpInitiateConnectionCommand.cc
  1611. * src/FtpTunnelRequestCommand.cc
  1612. * src/FtpTunnelRequestCommand.h
  1613. * src/FtpTunnelResponseCommand.cc
  1614. * src/FtpTunnelResponseCommand.h
  1615. * src/HttpInitiateConnectionCommand.cc
  1616. * src/HttpProxyRequestCommand.cc
  1617. * src/HttpProxyRequestCommand.h
  1618. * src/HttpProxyResponseCommand.cc
  1619. * src/HttpProxyResponseCommand.h
  1620. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1621. Use SegmentMan::getSegment(cuid) for single file download.
  1622. * src/AbstractCommand.cc
  1623. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1624. Fixed bufSize calculation
  1625. * src/DownloadCommand.cc
  1626. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1627. Don't append "/" if base URI ends with "/".
  1628. * src/bittorrent_helper.cc
  1629. * test/url-list-multiFile.torrent
  1630. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1631. HTTP pipelining is now working. Fixed Segmention fault in
  1632. BitfieldMan's copy ctor.
  1633. * src/AbstractCommand.cc
  1634. * src/BitfieldMan.cc
  1635. * src/BitfieldMan.h
  1636. * src/DownloadCommand.cc
  1637. * src/HttpDownloadCommand.cc
  1638. * src/HttpRequest.cc
  1639. * src/SegmentMan.cc
  1640. * src/SegmentMan.h
  1641. * test/BitfieldManTest.cc
  1642. * test/SegmentManTest.cc
  1643. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Removed ServerHost. Same functionality is implemented using
  1645. FileEntry's in-flight Request objects.
  1646. * src/AbstractCommand.cc
  1647. * src/BtDependency.cc
  1648. * src/CreateRequestCommand.cc
  1649. * src/FileEntry.cc
  1650. * src/FileEntry.h
  1651. * src/FtpNegotiationCommand.cc
  1652. * src/HttpResponseCommand.cc
  1653. * src/Makefile.am
  1654. * src/Metalink2RequestGroup.cc
  1655. * src/RequestGroup.cc
  1656. * src/RequestGroup.h
  1657. * src/ServerHost.cc: Removed
  1658. * src/ServerHost.h: Removed
  1659. * test/BtDependencyTest.cc
  1660. * test/FileEntryTest.cc
  1661. * test/RequestGroupTest.cc
  1662. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Rewritten PeerStat handling. In the previous implementation,
  1664. faster command tries to find slower command. In this new
  1665. implementation, slower command tries to find faster command.
  1666. PeerStat is now created in each HTTP/FTP request to get download
  1667. rate correctly. If the download range is small, the download rate
  1668. tends to small and this will occur at the later stage of download.
  1669. * src/AbstractCommand.cc
  1670. * src/DownloadCommand.cc
  1671. * src/FileEntry.cc
  1672. * src/FileEntry.h
  1673. * src/Request.cc
  1674. * src/Request.h
  1675. * src/RequestGroup.h
  1676. * src/RequestGroupMan.cc
  1677. * src/SegmentMan.cc
  1678. * src/SegmentMan.h
  1679. * test/SegmentManTest.cc
  1680. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Removed _uris from RequestGroup. All functions that refer to _uris
  1682. were moved to FileEntry. Exit status code are now defined in
  1683. DownloadResultCode.h.
  1684. * src/AbstractCommand.cc
  1685. * src/AdaptiveURISelector.cc
  1686. * src/AdaptiveURISelector.h
  1687. * src/AutoSaveCommand.cc
  1688. * src/BtPostDownloadHandler.cc
  1689. * src/CheckIntegrityDispatcherCommand.cc
  1690. * src/CookieStorage.cc
  1691. * src/DHTAutoSaveCommand.cc
  1692. * src/DHTBucketRefreshCommand.cc
  1693. * src/DHTEntryPointNameResolveCommand.cc
  1694. * src/DHTInteractionCommand.cc
  1695. * src/DHTPeerAnnounceCommand.cc
  1696. * src/DHTTokenUpdateCommand.cc
  1697. * src/DlAbortEx.h
  1698. * src/DlRetryEx.h
  1699. * src/DownloadCommand.cc
  1700. * src/DownloadContext.h
  1701. * src/DownloadFailureException.h
  1702. * src/DownloadResult.h
  1703. * src/DownloadResultCode.h
  1704. * src/FeedbackURISelector.cc
  1705. * src/FeedbackURISelector.h
  1706. * src/FileEntry.cc
  1707. * src/FileEntry.h
  1708. * src/FtpNegotiationCommand.cc
  1709. * src/HttpListenCommand.cc
  1710. * src/HttpResponseCommand.cc
  1711. * src/HttpServerResponseCommand.cc
  1712. * src/HttpSkipResponseCommand.cc
  1713. * src/InOrderURISelector.cc
  1714. * src/InOrderURISelector.h
  1715. * src/Makefile.am
  1716. * src/Makefile.in
  1717. * src/Metalink2RequestGroup.cc
  1718. * src/MultiUrlRequestInfo.cc
  1719. * src/MultiUrlRequestInfo.h
  1720. * src/OptionHandlerFactory.cc
  1721. * src/PeerListenCommand.cc
  1722. * src/RecoverableException.h
  1723. * src/RequestGroup.cc
  1724. * src/RequestGroup.h
  1725. * src/RequestGroupMan.cc
  1726. * src/RequestGroupMan.h
  1727. * src/TimedHaltCommand.cc
  1728. * src/TrackerWatcherCommand.cc
  1729. * src/URIResult.cc
  1730. * src/URIResult.h
  1731. * src/URISelector.h
  1732. * src/XmlRpcMethodImpl.cc
  1733. * src/bittorrent_helper.cc
  1734. * src/bittorrent_helper.h
  1735. * src/download_helper.cc
  1736. * src/main.cc
  1737. * src/option_processing.cc
  1738. * test/BtDependencyTest.cc
  1739. * test/BtPostDownloadHandlerTest.cc
  1740. * test/CookieStorageTest.cc
  1741. * test/DefaultBtMessageDispatcherTest.cc
  1742. * test/DownloadHandlerFactoryTest.cc
  1743. * test/DownloadHelperTest.cc
  1744. * test/FeedbackURISelectorTest.cc
  1745. * test/FileEntryTest.cc
  1746. * test/InOrderURISelectorTest.cc
  1747. * test/Metalink2RequestGroupTest.cc
  1748. * test/MetalinkPostDownloadHandlerTest.cc
  1749. * test/RequestGroupManTest.cc
  1750. * test/RequestGroupTest.cc
  1751. * test/XmlRpcMethodTest.cc
  1752. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Removed MockBtContext.h
  1754. * test/Makefile.am
  1755. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Removed _currentRequest from StreamCheckIntegrityEntry and
  1757. StreamFileAllocationEntry.
  1758. * src/AbstractCommand.cc
  1759. * src/HttpResponseCommand.cc
  1760. * src/RequestGroup.cc
  1761. * src/StreamCheckIntegrityEntry.cc
  1762. * src/StreamCheckIntegrityEntry.h
  1763. * src/StreamFileAllocationEntry.cc
  1764. * src/StreamFileAllocationEntry.h
  1765. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1766. Rewritten DownloadContext and removed SingleFileDownloadContext
  1767. and BtContext and its derived classes. BitTorrent specific
  1768. attributes are now set by DownloadContext::setAttribute() with key
  1769. bittorrent::BITTORRENT.
  1770. * src/AbstractBtMessage.cc
  1771. * src/AbstractBtMessage.h
  1772. * src/AbstractCommand.cc
  1773. * src/AbstractCommand.h
  1774. * src/AbstractProxyRequestCommand.cc
  1775. * src/AbstractProxyResponseCommand.cc
  1776. * src/ActivePeerConnectionCommand.cc
  1777. * src/ActivePeerConnectionCommand.h
  1778. * src/AnnounceList.cc
  1779. * src/BtCheckIntegrityEntry.cc
  1780. * src/BtConstants.h
  1781. * src/BtContext.h: Removed
  1782. * src/BtDependency.cc
  1783. * src/BtExtendedMessage.cc
  1784. * src/BtPieceMessage.cc
  1785. * src/BtPieceMessage.h
  1786. * src/BtPostDownloadHandler.cc
  1787. * src/BtRegistry.cc
  1788. * src/BtRegistry.h
  1789. * src/BtSetup.cc
  1790. * src/CheckIntegrityCommand.cc
  1791. * src/CheckIntegrityEntry.cc
  1792. * src/ChecksumCheckIntegrityEntry.cc
  1793. * src/ConsoleStatCalc.cc
  1794. * src/ContentTypeRequestGroupCriteria.cc
  1795. * src/DHTGetPeersCommand.cc
  1796. * src/DHTGetPeersCommand.h
  1797. * src/DHTPeerLookupTask.cc
  1798. * src/DHTPeerLookupTask.h
  1799. * src/DHTTaskFactory.h
  1800. * src/DHTTaskFactoryImpl.cc
  1801. * src/DHTTaskFactoryImpl.h
  1802. * src/DefaultBtAnnounce.cc
  1803. * src/DefaultBtAnnounce.h
  1804. * src/DefaultBtContext.cc: Removed
  1805. * src/DefaultBtContext.h: Removed
  1806. * src/DefaultBtInteractive.cc
  1807. * src/DefaultBtInteractive.h
  1808. * src/DefaultBtMessageDispatcher.cc
  1809. * src/DefaultBtMessageDispatcher.h
  1810. * src/DefaultBtMessageFactory.cc
  1811. * src/DefaultBtMessageFactory.h
  1812. * src/DefaultBtMessageReceiver.cc
  1813. * src/DefaultBtMessageReceiver.h
  1814. * src/DefaultBtProgressInfoFile.cc
  1815. * src/DefaultBtRequestFactory.cc
  1816. * src/DefaultBtRequestFactory.h
  1817. * src/DefaultExtensionMessageFactory.cc
  1818. * src/DefaultExtensionMessageFactory.h
  1819. * src/DefaultPeerStorage.cc
  1820. * src/DefaultPeerStorage.h
  1821. * src/DefaultPieceStorage.cc
  1822. * src/DefaultSegmentManFactory.cc
  1823. * src/DiskAdaptor.cc
  1824. * src/DiskAdaptor.h
  1825. * src/DownloadContext.cc
  1826. * src/DownloadContext.h
  1827. * src/DownloadEngine.cc
  1828. * src/DownloadEngineFactory.cc
  1829. * src/DownloadHandler.cc
  1830. * src/DownloadResult.h
  1831. * src/FileAllocationCommand.cc
  1832. * src/FileAllocationDispatcherCommand.cc
  1833. * src/FileAllocationEntry.cc
  1834. * src/FileEntry.h
  1835. * src/FillRequestGroupCommand.cc
  1836. * src/FtpDownloadCommand.cc
  1837. * src/FtpFinishDownloadCommand.cc
  1838. * src/FtpInitiateConnectionCommand.cc
  1839. * src/FtpNegotiationCommand.cc
  1840. * src/FtpTunnelRequestCommand.cc
  1841. * src/FtpTunnelResponseCommand.cc
  1842. * src/HandshakeExtensionMessage.cc
  1843. * src/HandshakeExtensionMessage.h
  1844. * src/HaveEraseCommand.cc
  1845. * src/HttpDownloadCommand.cc
  1846. * src/HttpInitiateConnectionCommand.cc
  1847. * src/HttpProxyRequestCommand.cc
  1848. * src/HttpProxyResponseCommand.cc
  1849. * src/HttpRequest.cc
  1850. * src/HttpRequest.h
  1851. * src/HttpRequestCommand.cc
  1852. * src/HttpResponseCommand.cc
  1853. * src/HttpServerBodyCommand.cc
  1854. * src/HttpServerCommand.cc
  1855. * src/HttpSkipResponseCommand.cc
  1856. * src/InitiateConnectionCommandFactory.cc
  1857. * src/InitiatorMSEHandshakeCommand.cc
  1858. * src/InitiatorMSEHandshakeCommand.h
  1859. * src/IteratableChecksumValidator.cc
  1860. * src/IteratableChecksumValidator.h
  1861. * src/IteratableChunkChecksumValidator.cc
  1862. * src/MSEHandshake.cc
  1863. * src/MSEHandshake.h
  1864. * src/Makefile.am
  1865. * src/Makefile.in
  1866. * src/Metalink2RequestGroup.cc
  1867. * src/MetalinkPostDownloadHandler.cc
  1868. * src/MultiDiskAdaptor.cc
  1869. * src/MultiDiskAdaptor.h
  1870. * src/MultiFileAllocationIterator.cc
  1871. * src/MultiUrlRequestInfo.cc
  1872. * src/PeerChokeCommand.cc
  1873. * src/PeerChokeCommand.h
  1874. * src/PeerInitiateConnectionCommand.cc
  1875. * src/PeerInitiateConnectionCommand.h
  1876. * src/PeerInteractionCommand.cc
  1877. * src/PeerInteractionCommand.h
  1878. * src/PeerReceiveHandshakeCommand.cc
  1879. * src/PieceHashCheckIntegrityEntry.cc
  1880. * src/RealtimeCommand.cc
  1881. * src/ReceiverMSEHandshakeCommand.cc
  1882. * src/RequestGroup.cc
  1883. * src/RequestGroup.h
  1884. * src/RequestGroupEntry.cc
  1885. * src/RequestGroupMan.cc
  1886. * src/SeedCheckCommand.cc
  1887. * src/SeedCheckCommand.h
  1888. * src/SegmentMan.cc
  1889. * src/ShareRatioSeedCriteria.h
  1890. * src/SingleFileDownloadContext.cc: Removed
  1891. * src/SingleFileDownloadContext.h: Removed
  1892. * src/SleepCommand.cc
  1893. * src/StreamCheckIntegrityEntry.cc
  1894. * src/TrackerWatcherCommand.cc
  1895. * src/TrackerWatcherCommand.h
  1896. * src/UnknownLengthPieceStorage.cc
  1897. * src/Util.cc
  1898. * src/Util.h
  1899. * src/XmlRpcMethodImpl.cc
  1900. * src/bittorrent_helper.cc
  1901. * src/bittorrent_helper.h
  1902. * src/download_helper.cc
  1903. * src/main.cc
  1904. * src/option_processing.cc
  1905. * test/BitfieldManTest.cc
  1906. * test/BittorrentHelperTest.cc
  1907. * test/BtCancelMessageTest.cc
  1908. * test/BtChokeMessageTest.cc
  1909. * test/BtDependencyTest.cc
  1910. * test/BtPieceMessageTest.cc
  1911. * test/BtPostDownloadHandlerTest.cc
  1912. * test/BtRegistryTest.cc
  1913. * test/BtRejectMessageTest.cc
  1914. * test/BtRequestMessageTest.cc
  1915. * test/DHTPeerAnnounceStorageTest.cc
  1916. * test/DefaultBtAnnounceTest.cc
  1917. * test/DefaultBtContextTest.cc: Removed
  1918. * test/DefaultBtMessageDispatcherTest.cc
  1919. * test/DefaultBtMessageFactoryTest.cc
  1920. * test/DefaultBtProgressInfoFileTest.cc
  1921. * test/DefaultBtRequestFactoryTest.cc
  1922. * test/DefaultExtensionMessageFactoryTest.cc
  1923. * test/DefaultPeerStorageTest.cc
  1924. * test/DefaultPieceStorageTest.cc
  1925. * test/DirectDiskAdaptorTest.cc
  1926. * test/DownloadContextTest.cc
  1927. * test/DownloadHandlerFactoryTest.cc
  1928. * test/DownloadHelperTest.cc
  1929. * test/HandshakeExtensionMessageTest.cc
  1930. * test/HttpRequestTest.cc
  1931. * test/HttpResponseTest.cc
  1932. * test/IteratableChecksumValidatorTest.cc
  1933. * test/IteratableChunkChecksumValidatorTest.cc
  1934. * test/MSEHandshakeTest.cc
  1935. * test/Makefile.am
  1936. * test/Makefile.in
  1937. * test/Metalink2RequestGroupTest.cc
  1938. * test/MetalinkPostDownloadHandlerTest.cc
  1939. * test/MockBtContext.h: Removed
  1940. * test/MockDHTTaskFactory.h
  1941. * test/MockDownloadContext.h: Removed
  1942. * test/MockPieceStorage.h
  1943. * test/MultiDiskAdaptorTest.cc
  1944. * test/MultiFileAllocationIteratorTest.cc
  1945. * test/RequestGroupManTest.cc
  1946. * test/RequestGroupTest.cc
  1947. * test/SegmentManTest.cc
  1948. * test/ShareRatioSeedCriteriaTest.cc
  1949. * test/SingleFileDownloadContextTest.cc: Removed
  1950. * test/UtilTest.cc
  1951. * test/XmlRpcMethodTest.cc
  1952. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1953. Added experimental support of WEB-Seeding for multi-file torrent.
  1954. Due to fundamental changes in file handling in HTTP/FTP code, many
  1955. functions are not working: PeerStat, ServerHost, proxy..etc
  1956. * src/AbstractCommand.cc
  1957. * src/AbstractCommand.h
  1958. * src/BitfieldMan.cc
  1959. * src/BitfieldMan.h
  1960. * src/CreateRequestCommand.cc
  1961. * src/CreateRequestCommand.h
  1962. * src/DefaultPieceStorage.cc
  1963. * src/DefaultPieceStorage.h
  1964. * src/DownloadCommand.cc
  1965. * src/DownloadCommand.h
  1966. * src/DownloadContext.cc
  1967. * src/DownloadContext.h
  1968. * src/FileEntry.cc
  1969. * src/FileEntry.h
  1970. * src/FtpDownloadCommand.cc
  1971. * src/FtpDownloadCommand.h
  1972. * src/FtpFinishDownloadCommand.cc
  1973. * src/FtpFinishDownloadCommand.h
  1974. * src/FtpInitiateConnectionCommand.cc
  1975. * src/FtpInitiateConnectionCommand.h
  1976. * src/FtpNegotiationCommand.cc
  1977. * src/FtpNegotiationCommand.h
  1978. * src/FtpTunnelResponseCommand.cc
  1979. * src/HttpDownloadCommand.cc
  1980. * src/HttpDownloadCommand.h
  1981. * src/HttpInitiateConnectionCommand.cc
  1982. * src/HttpInitiateConnectionCommand.h
  1983. * src/HttpProxyResponseCommand.cc
  1984. * src/HttpRequest.cc
  1985. * src/HttpRequest.h
  1986. * src/HttpRequestCommand.cc
  1987. * src/HttpRequestCommand.h
  1988. * src/HttpResponseCommand.cc
  1989. * src/HttpResponseCommand.h
  1990. * src/HttpSkipResponseCommand.cc
  1991. * src/HttpSkipResponseCommand.h
  1992. * src/InitiateConnectionCommand.cc
  1993. * src/InitiateConnectionCommand.h
  1994. * src/InitiateConnectionCommandFactory.cc
  1995. * src/InitiateConnectionCommandFactory.h
  1996. * src/Makefile.am
  1997. * src/PieceStorage.h
  1998. * src/RequestGroup.cc
  1999. * src/RequestGroup.h
  2000. * src/RequestGroupMan.cc
  2001. * src/SegmentMan.cc
  2002. * src/SegmentMan.h
  2003. * src/SingleFileDownloadContext.h
  2004. * src/StreamFileAllocationEntry.cc
  2005. * src/TrackerWatcherCommand.cc
  2006. * src/UnknownLengthPieceStorage.cc
  2007. * src/UnknownLengthPieceStorage.h
  2008. * src/array_fun.h
  2009. * src/bitfield.h
  2010. * src/download_helper.cc
  2011. * test/DownloadContextTest.cc
  2012. * test/Makefile.am
  2013. * test/MockDownloadContext.h
  2014. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2015. Added tellWaiting XML-RPC method.
  2016. * src/SingleFileDownloadContext.cc
  2017. * src/XmlRpcMethodFactory.cc
  2018. * src/XmlRpcMethodImpl.cc
  2019. * src/XmlRpcMethodImpl.h
  2020. * test/XmlRpcMethodTest.cc
  2021. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Updated CookieStorageTest
  2023. * test/CookieStorageTest.cc
  2024. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2026. handle excepion inside these functions.
  2027. * src/LibgnutlsTLSContext.cc
  2028. * src/LibgnutlsTLSContext.h
  2029. * src/LibsslTLSContext.cc
  2030. * src/LibsslTLSContext.h
  2031. * src/MultiUrlRequestInfo.cc
  2032. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Added comment
  2034. * src/RequestGroup.cc
  2035. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. In CookieStorage::load() and saveNsFormat(), handle exception
  2037. inside the functions. When saving Cookies, first write temporary
  2038. file and after successful writes, then renames it to final
  2039. destination.
  2040. * src/CookieStorage.cc
  2041. * src/CookieStorage.h
  2042. * src/MultiUrlRequestInfo.cc
  2043. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2044. The default value of --dir option is the absolute path to the
  2045. current directory. If getcwd() is failed, then it is ".", which is
  2046. the same value with old implementation. This change is necessary
  2047. because after daemon() call, the current working directory is
  2048. changed to /.
  2049. * src/File.cc
  2050. * src/File.h
  2051. * src/OptionHandlerFactory.cc
  2052. * src/option_processing.cc
  2053. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2054. Call daemon() with arguments(0,0), which means daemon() changes
  2055. current working directory to / and redirects stdin, stdout and
  2056. stderr to /dev/null.
  2057. * src/option_processing.cc
  2058. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Small performance optimizations.
  2060. * src/RequestGroupMan.cc
  2061. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2063. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2064. * src/RequestGroupMan.cc
  2065. * src/RequestGroupMan.h
  2066. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2068. setNoWiat(true) if newly created command calls
  2069. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2070. * src/HttpListenCommand.cc
  2071. * src/HttpServerBodyCommand.cc
  2072. * src/HttpServerCommand.cc
  2073. * src/HttpServerResponseCommand.cc
  2074. * src/InitiateConnectionCommand.cc
  2075. * src/RequestGroup.cc
  2076. * src/StreamFileAllocationEntry.cc
  2077. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2078. Removed include vector
  2079. * src/BtRegistry.h
  2080. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Rewritten BtRegistry
  2082. * src/BtRegistry.cc
  2083. * src/BtRegistry.h
  2084. * src/BtSetup.cc
  2085. * src/ConsoleStatCalc.cc
  2086. * src/PeerInteractionCommand.cc
  2087. * src/PeerReceiveHandshakeCommand.cc
  2088. * src/ReceiverMSEHandshakeCommand.cc
  2089. * src/RequestGroup.cc
  2090. * src/XmlRpcMethodImpl.cc
  2091. * test/BtRegistryTest.cc
  2092. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2094. * src/DefaultBtProgressInfoFile.cc
  2095. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2096. Throw an exception if position is less than 0.
  2097. * src/XmlRpcMethodImpl.cc
  2098. * test/XmlRpcMethodTest.cc
  2099. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Use writeFilePath() in ConsoleStatCalc.cc
  2101. * src/ConsoleStatCalc.cc
  2102. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Receive the return value as const reference from
  2104. DownloadContext::getFileEntries().
  2105. * src/DefaultPieceStorage.cc
  2106. * src/RequestGroupMan.cc
  2107. * src/XmlRpcMethodImpl.cc
  2108. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. DownloadContext now has _fileEntries so that
  2110. DownloadContext::getFileEntries() can returns its const reference.
  2111. * src/DefaultBtContext.cc
  2112. * src/DefaultBtContext.h
  2113. * src/DownloadContext.cc
  2114. * src/DownloadContext.h
  2115. * src/SingleFileDownloadContext.cc
  2116. * src/SingleFileDownloadContext.h
  2117. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2118. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2119. writeFilePath() function template from RequestGroupMan.cc to
  2120. FileEntry.h
  2121. * src/FileEntry.h
  2122. * src/RequestGroupMan.cc
  2123. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2124. Documented 'position' parameter is starting from 0 in man page.
  2125. * doc/aria2c.1.txt
  2126. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Updated doc.
  2128. * src/MSEHandshake.cc
  2129. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2130. Removed _acceptFeatures and its accessor functions from
  2131. RequestGroup since they are not used practically.
  2132. * src/HttpRequestCommand.cc
  2133. * src/RequestGroup.cc
  2134. * src/RequestGroup.h
  2135. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Removed member _maxTries from RequestGroup class to avoid
  2137. duplicate option value. Those classes who refer this variable
  2138. should use option value of PREF_MAX_TRIES directly.
  2139. * src/AbstractCommand.cc
  2140. * src/RequestGroup.cc
  2141. * src/RequestGroup.h
  2142. * src/TrackerWatcherCommand.cc
  2143. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2144. * Release 1.4.1
  2145. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Fixed compiler warnings on netbsd
  2147. * src/DHTConnectionImpl.cc
  2148. * src/PeerListenCommand.cc
  2149. * src/PeerSessionResource.cc
  2150. * src/SegmentMan.cc
  2151. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2152. Updated Ukrainian translation. Thanks to all translators.
  2153. * po/uk.po
  2154. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2155. Bump up version number to 1.4.1.
  2156. * configure.ac
  2157. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Added unit tests for strjoin, strconcat and strappend.
  2159. * test/a2functionalTest.cc
  2160. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Rewritten strconcat and strappend using operator+ instead of
  2162. append().
  2163. * src/a2functional.h
  2164. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2166. is enabled.
  2167. * src/Makefile.am
  2168. * test/Makefile.am
  2169. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Added countSeeder() function which counts seeder in the given
  2171. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2172. * src/ConsoleStatCalc.cc
  2173. * src/Peer.h
  2174. * src/XmlRpcMethodImpl.cc
  2175. * test/PeerTest.cc
  2176. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2177. Documented missing seeder in getPeers xml-rpc method.
  2178. Documented uploadLength and numSeeders.
  2179. * doc/aria2c.1.txt
  2180. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Added uploadLength and numSeeders to the response of tellStatus
  2182. xml-rpc method. Assert that PeerStorage instance is not null
  2183. instead of checking if statement. It should be non-null in this
  2184. context.
  2185. * src/XmlRpcMethodImpl.cc
  2186. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2187. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2188. * src/XmlRpcResponse.cc
  2189. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Avoid intermediate object during string concatenation.
  2191. * src/HttpRequest.cc
  2192. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2193. Added strjoin function template. Use it in pathJoin()
  2194. * src/Util.h
  2195. * src/a2functional.h
  2196. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Avoid intermediate object during string concatenation. Replaced
  2198. post-increment unary operator with pre-increment one in for loop.
  2199. * src/AdaptiveURISelector.cc
  2200. * src/AnnounceList.cc
  2201. * src/AuthConfig.h
  2202. * src/BtBitfieldMessage.cc
  2203. * src/BtExtendedMessage.cc
  2204. * src/BtHandshakeMessage.cc
  2205. * src/BtPieceMessage.cc
  2206. * src/BtPortMessage.cc
  2207. * src/Cookie.cc
  2208. * src/DHTAnnouncePeerMessage.cc
  2209. * src/DHTAutoSaveCommand.cc
  2210. * src/DHTGetPeersReplyMessage.cc
  2211. * src/DHTNode.cc
  2212. * src/DHTQueryMessage.cc
  2213. * src/DHTResponseMessage.cc
  2214. * src/DHTUnknownMessage.cc
  2215. * src/DefaultBtAnnounce.cc
  2216. * src/DefaultBtContext.cc
  2217. * src/DefaultBtInteractive.cc
  2218. * src/DefaultBtProgressInfoFile.cc
  2219. * src/DefaultPeerStorage.cc
  2220. * src/DownloadEngine.cc
  2221. * src/FeatureConfig.cc
  2222. * src/File.cc
  2223. * src/FtpConnection.cc
  2224. * src/FtpNegotiationCommand.cc
  2225. * src/HandshakeExtensionMessage.cc
  2226. * src/HttpConnection.cc
  2227. * src/HttpRequest.cc
  2228. * src/HttpResponseCommand.cc
  2229. * src/HttpServer.cc
  2230. * src/IndexBtMessage.cc
  2231. * src/Metalink2RequestGroup.cc
  2232. * src/OptionHandlerImpl.h
  2233. * src/PStringBuildVisitor.cc
  2234. * src/Peer.cc
  2235. * src/PeerListenCommand.cc
  2236. * src/Piece.cc
  2237. * src/RangeBtMessage.cc
  2238. * src/Request.cc
  2239. * src/Request.h
  2240. * src/RequestGroup.cc
  2241. * src/RequestGroupMan.cc
  2242. * src/ServerStat.cc
  2243. * src/ServerStatMan.cc
  2244. * src/UTPexExtensionMessage.cc
  2245. * src/Util.cc
  2246. * src/a2functional.h
  2247. * src/download_helper.cc
  2248. * src/messageDigest.cc
  2249. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2250. Unchoke a peer randomly at first and second choke round in seed
  2251. state.
  2252. * src/BtSeederStateChoke.cc
  2253. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  2254. Added (sock_t) to quiet compiler warnings in MinGW
  2255. * src/SocketCore.cc
  2256. * src/SocketCore.h
  2257. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  2259. * src/EpollEventPoll.h
  2260. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  2261. Added fork() emulation using CreateProcess() in MinGW
  2262. * src/RequestGroupMan.cc
  2263. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. * Release 1.4.0
  2265. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Added utf8.torrent to EXTRA_DIST
  2267. * test/Makefile.am
  2268. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Fixed docs of aria2.addMetalink xml-rpc method.
  2270. * doc/aria2c.1.txt
  2271. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2272. Added Slovak translation. Updated Ukrainian and Brazilian
  2273. Portuguese translation. Thanks to all translators.
  2274. * po/sk.po
  2275. * po/uk.po
  2276. * po/pt_BR.po
  2277. * po/LINGUAS
  2278. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Added test case for XmlRpcProcessor to fail to parse malformed
  2280. document.
  2281. * test/XmlRpcRequestProcessorTest.cc
  2282. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Removed *.gmo files in po because they are generated on 'make
  2284. dist'
  2285. * po/*.gmo
  2286. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2287. Documented max-concurrent-downloads of changeGlobalOption method
  2288. in man page.
  2289. * doc/aria2c.1.txt
  2290. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2291. Added max-concurrent-downloads option to changeGlobalOption
  2292. xml-rpc method. Rewritten loop conditional in
  2293. RequestGroupMan::fillRequestGroupFromReserver().
  2294. * src/RequestGroupMan.cc
  2295. * src/RequestGroupMan.h
  2296. * src/XmlRpcMethod.cc
  2297. * src/XmlRpcMethodImpl.cc
  2298. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Documented position parameter in man page.
  2300. * doc/aria2c.1.txt
  2301. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Added 'position' parameter to addUri, addTorrent and addMetalink
  2303. xml-rpc method.
  2304. * src/RequestGroupMan.cc
  2305. * src/RequestGroupMan.h
  2306. * src/XmlRpcMethodImpl.cc
  2307. * test/XmlRpcMethodTest.cc
  2308. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2309. Removed Peer.cc from compile source list when --disable-bittorrent
  2310. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  2311. takes Peer.
  2312. * src/DefaultPieceStorage.cc
  2313. * src/DefaultPieceStorage.h
  2314. * src/Makefile.am
  2315. * src/PieceStorage.h
  2316. * src/UnknownLengthPieceStorage.cc
  2317. * src/UnknownLengthPieceStorage.h
  2318. * test/MockPieceStorage.h
  2319. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2320. Implemented getter methods in header files to give them more
  2321. chance of optimization.
  2322. Return const reference for SharadHandle if possible.
  2323. * src/AbstractAuthResolver.cc
  2324. * src/AbstractAuthResolver.h
  2325. * src/AbstractBtMessage.cc
  2326. * src/AbstractBtMessage.h
  2327. * src/AbstractSingleDiskAdaptor.cc
  2328. * src/AbstractSingleDiskAdaptor.h
  2329. * src/AsyncNameResolver.cc
  2330. * src/AsyncNameResolver.h
  2331. * src/BNode.cc
  2332. * src/BNode.h
  2333. * src/BitfieldMan.cc
  2334. * src/BitfieldMan.h
  2335. * src/BtAbortOutstandingRequestEvent.h
  2336. * src/BtExtendedMessage.cc
  2337. * src/BtExtendedMessage.h
  2338. * src/BtSeederStateChoke.cc
  2339. * src/BtSeederStateChoke.h
  2340. * src/Cookie.cc
  2341. * src/Cookie.h
  2342. * src/DHTBucket.cc
  2343. * src/DHTBucket.h
  2344. * src/DHTConnectionImpl.cc
  2345. * src/DHTConnectionImpl.h
  2346. * src/DHTFindNodeReplyMessage.cc
  2347. * src/DHTFindNodeReplyMessage.h
  2348. * src/DHTGetPeersReplyMessage.cc
  2349. * src/DHTGetPeersReplyMessage.h
  2350. * src/DHTInteractionCommand.cc
  2351. * src/DHTMessage.cc
  2352. * src/DHTMessage.h
  2353. * src/DHTMessageDispatcherImpl.cc
  2354. * src/DHTMessageEntry.cc
  2355. * src/DHTMessageReceiver.cc
  2356. * src/DHTMessageReceiver.h
  2357. * src/DHTMessageTrackerEntry.cc
  2358. * src/DHTMessageTrackerEntry.h
  2359. * src/DHTPeerAnnounceEntry.cc
  2360. * src/DHTPeerAnnounceEntry.h
  2361. * src/DHTPeerLookupTask.cc
  2362. * src/DHTPeerLookupTask.h
  2363. * src/DHTRoutingTableDeserializer.cc
  2364. * src/DHTRoutingTableDeserializer.h
  2365. * src/DefaultBtAnnounce.cc
  2366. * src/DefaultBtAnnounce.h
  2367. * src/DefaultBtMessageDispatcher.cc
  2368. * src/DefaultBtMessageDispatcher.h
  2369. * src/DefaultBtRequestFactory.cc
  2370. * src/DefaultBtRequestFactory.h
  2371. * src/DiskAdaptor.cc
  2372. * src/DiskAdaptor.h
  2373. * src/DownloadContext.cc
  2374. * src/DownloadContext.h
  2375. * src/DownloadEngine.cc
  2376. * src/DownloadEngine.h
  2377. * src/EpollEventPoll.cc
  2378. * src/EpollEventPoll.h
  2379. * src/FtpConnection.cc
  2380. * src/FtpConnection.h
  2381. * src/HttpConnection.cc
  2382. * src/HttpConnection.h
  2383. * src/HttpHeader.cc
  2384. * src/HttpHeader.h
  2385. * src/HttpRequest.cc
  2386. * src/HttpRequest.h
  2387. * src/HttpResponse.cc
  2388. * src/HttpResponse.h
  2389. * src/LibsslTLSContext.cc
  2390. * src/LibsslTLSContext.h
  2391. * src/MSEHandshake.cc
  2392. * src/MSEHandshake.h
  2393. * src/MetalinkEntry.cc
  2394. * src/MetalinkEntry.h
  2395. * src/MetalinkParserController.cc
  2396. * src/MetalinkParserController.h
  2397. * src/MetalinkParserStateMachine.cc
  2398. * src/MetalinkParserStateMachine.h
  2399. * src/MultiDiskAdaptor.cc
  2400. * src/MultiDiskAdaptor.h
  2401. * src/NetrcAuthResolver.cc
  2402. * src/NetrcAuthResolver.h
  2403. * src/Peer.cc
  2404. * src/Peer.h
  2405. * src/PeerSessionResource.cc
  2406. * src/PeerSessionResource.h
  2407. * src/Piece.cc
  2408. * src/Piece.h
  2409. * src/PieceStatMan.cc
  2410. * src/PieceStatMan.h
  2411. * src/Request.cc
  2412. * src/Request.h
  2413. * src/RequestGroup.cc
  2414. * src/RequestGroup.h
  2415. * src/RequestGroupMan.cc
  2416. * src/RequestGroupMan.h
  2417. * src/RequestSlot.cc
  2418. * src/RequestSlot.h
  2419. * src/SegmentMan.cc
  2420. * src/SegmentMan.h
  2421. * src/SelectEventPoll.cc
  2422. * src/SelectEventPoll.h
  2423. * src/ServerStat.cc
  2424. * src/ServerStat.h
  2425. * src/Signature.cc
  2426. * src/Signature.h
  2427. * src/URIResult.cc
  2428. * src/URIResult.h
  2429. * src/UTPexExtensionMessage.cc
  2430. * src/UTPexExtensionMessage.h
  2431. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2432. Fixed compile error without BitTorrent and Metalink support.
  2433. * src/XmlRpcMethod.cc
  2434. * src/XmlRpcMethodFactory.cc
  2435. * src/XmlRpcMethodImpl.cc
  2436. * src/XmlRpcMethodImpl.h
  2437. * test/XmlRpcMethodTest.cc
  2438. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2439. Rewritten the help message for --allow-overwrite option.
  2440. * doc/aria2c.1.txt
  2441. * src/usage_text.h
  2442. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2443. Fixed typo
  2444. * doc/aria2c.1.txt
  2445. * src/usage_text.h
  2446. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Updated README for 1.4.0 release. Use new table syntax of
  2448. asciidoc.
  2449. * README
  2450. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Documented --xml-rpc-max-request-size option in man page.
  2452. * doc/aria2c.1.txt
  2453. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Moved C_* constants from BtContext to DefaultBtContext.
  2455. * src/BtContext.cc: Removed.
  2456. * src/BtContext.h
  2457. * src/DefaultBtContext.cc
  2458. * src/DefaultBtContext.h
  2459. * src/Makefile.am
  2460. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. Use name.utf-8 and path.utf-8 key in higher priority than name and
  2462. path key respectively when persing .torrent file.
  2463. * src/BtContext.cc
  2464. * src/BtContext.h
  2465. * src/DefaultBtContext.cc
  2466. * test/DefaultBtContextTest.cc
  2467. * test/utf8.torrent
  2468. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Added --xml-rpc-max-request-size option to limit the size of
  2470. XML-RPC request.
  2471. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Documented XML-RPC API in man page.
  2473. * doc/aria2c.1.txt
  2474. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2475. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  2476. will break strict-aliasing rules
  2477. * src/PeerConnection.cc
  2478. * test/DHTRoutingTableSerializerTest.cc
  2479. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  2481. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  2482. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  2483. PKG_CHECK_MODULES macro uses latter name.
  2484. * m4/sqlite3.m4
  2485. * src/Makefile.am
  2486. * test/Makefile.am
  2487. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Fixed typo
  2489. * configure.ac
  2490. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2491. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  2492. presence of libgnutls using pkg-config first. If it fails, fall
  2493. back to old macro libgnutls.m4.
  2494. * configure.ac
  2495. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2496. Use s itself instead of !s.bad()
  2497. * src/CookieStorage.cc
  2498. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. Documented --on-download-* option and --save-cookies option in man
  2500. page.
  2501. * doc/aria2c.1.txt
  2502. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2503. Set possible values for --load-cookie option to "/path/to/file".
  2504. * src/OptionHandlerFactory.cc
  2505. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2506. Added --save-cookies option.
  2507. * src/Cookie.cc
  2508. * src/Cookie.h
  2509. * src/CookieStorage.cc
  2510. * src/CookieStorage.h
  2511. * src/MultiUrlRequestInfo.cc
  2512. * src/OptionHandlerFactory.cc
  2513. * src/prefs.cc
  2514. * src/prefs.h
  2515. * src/usage_text.h
  2516. * test/CookieStorageTest.cc
  2517. * test/CookieTest.cc
  2518. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2519. Removed tellAll XML-RPC command because its reponse tends to be
  2520. big if stopped/waiting downloads pile up.
  2521. * src/XmlRpcMethodFactory.cc
  2522. * src/XmlRpcMethodImpl.cc
  2523. * src/XmlRpcMethodImpl.h
  2524. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Added the ability to execute command when download starts and
  2526. stops. You can also specify command for particular cases such as
  2527. complete/error download. Added --on-download-start,
  2528. --on-download-stop, --on-download-complete and --on-download-error
  2529. option.
  2530. * src/OptionHandlerFactory.cc
  2531. * src/RequestGroupMan.cc
  2532. * src/prefs.cc
  2533. * src/prefs.h
  2534. * src/usage_text.h
  2535. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Fixed test error
  2537. * test/BencodeTest.cc
  2538. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2539. Added unit tests.
  2540. * test/XmlRpcMethodTest.cc
  2541. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Made exception message more verbose.
  2543. * src/bencode.cc
  2544. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  2546. space in console readout. Also they are now shown in MiB/s if
  2547. speed > 1024KiB/s.
  2548. * src/ConsoleStatCalc.cc
  2549. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2550. Added SEED to console output, which represents the number of
  2551. seeders currently the client is connecting to.
  2552. * src/ConsoleStatCalc.cc
  2553. * src/ConsoleStatCalc.h
  2554. * src/DownloadEngine.cc
  2555. * src/NullStatCalc.h
  2556. * src/StatCalc.h
  2557. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2558. Added source filename(__FILE__) and line number(__LINE__) to
  2559. exception message.
  2560. * src/AbstractCommand.cc
  2561. * src/AbstractDiskWriter.cc
  2562. * src/AbstractProxyResponseCommand.cc
  2563. * src/BDE.h
  2564. * src/BtAllowedFastMessage.cc
  2565. * src/BtHandshakeMessageValidator.h
  2566. * src/BtHaveAllMessage.cc
  2567. * src/BtHaveNoneMessage.cc
  2568. * src/BtPieceMessage.cc
  2569. * src/BtRejectMessage.cc
  2570. * src/ChunkedDecoder.cc
  2571. * src/CookieStorage.cc
  2572. * src/DHTAnnouncePeerMessage.cc
  2573. * src/DHTEntryPointNameResolveCommand.cc
  2574. * src/DHTMessageFactoryImpl.cc
  2575. * src/DHTMessageTracker.cc
  2576. * src/DHTRoutingTableDeserializer.cc
  2577. * src/DHTRoutingTableSerializer.cc
  2578. * src/DHTSetup.cc
  2579. * src/DHTTokenTracker.cc
  2580. * src/DefaultBtAnnounce.cc
  2581. * src/DefaultBtContext.cc
  2582. * src/DefaultBtInteractive.cc
  2583. * src/DefaultBtMessageFactory.cc
  2584. * src/DefaultBtProgressInfoFile.cc
  2585. * src/DefaultExtensionMessageFactory.cc
  2586. * src/DlAbortEx.h
  2587. * src/DlRetryEx.h
  2588. * src/DownloadCommand.cc
  2589. * src/DownloadEngineFactory.cc
  2590. * src/DownloadFailureException.h
  2591. * src/Exception.cc
  2592. * src/Exception.h
  2593. * src/ExpatMetalinkProcessor.cc
  2594. * src/ExpatXmlRpcRequestProcessor.cc
  2595. * src/FallocFileAllocationIterator.cc
  2596. * src/FatalException.h
  2597. * src/FtpConnection.cc
  2598. * src/FtpFinishDownloadCommand.cc
  2599. * src/FtpInitiateConnectionCommand.cc
  2600. * src/FtpNegotiationCommand.cc
  2601. * src/GZipDecoder.cc
  2602. * src/HandshakeExtensionMessage.cc
  2603. * src/HttpConnection.cc
  2604. * src/HttpHeaderProcessor.cc
  2605. * src/HttpInitiateConnectionCommand.cc
  2606. * src/HttpResponse.cc
  2607. * src/HttpResponseCommand.cc
  2608. * src/HttpServer.cc
  2609. * src/HttpSkipResponseCommand.cc
  2610. * src/InitiateConnectionCommandFactory.cc
  2611. * src/IteratableChunkChecksumValidator.cc
  2612. * src/LibgcryptARC4Context.h
  2613. * src/LibgcryptARC4Decryptor.h
  2614. * src/LibgcryptARC4Encryptor.h
  2615. * src/LibgcryptDHKeyExchange.h
  2616. * src/LibgnutlsTLSContext.cc
  2617. * src/LibsslARC4Context.h
  2618. * src/LibsslARC4Decryptor.h
  2619. * src/LibsslARC4Encryptor.h
  2620. * src/LibsslDHKeyExchange.h
  2621. * src/LibsslTLSContext.cc
  2622. * src/MSEHandshake.cc
  2623. * src/MessageDigestHelper.cc
  2624. * src/MetalinkHelper.cc
  2625. * src/MultiDiskAdaptor.cc
  2626. * src/NameMatchOptionHandler.h
  2627. * src/NameResolver.cc
  2628. * src/Netrc.cc
  2629. * src/NsCookieParser.cc
  2630. * src/OptionHandlerException.cc
  2631. * src/OptionHandlerException.h
  2632. * src/OptionHandlerImpl.h
  2633. * src/OptionParser.cc
  2634. * src/ParameterizedStringParser.cc
  2635. * src/PeerAbstractCommand.cc
  2636. * src/PeerConnection.cc
  2637. * src/PeerMessageUtil.cc
  2638. * src/PeerReceiveHandshakeCommand.cc
  2639. * src/Platform.cc
  2640. * src/ReceiverMSEHandshakeCommand.cc
  2641. * src/RecoverableException.h
  2642. * src/RequestGroup.cc
  2643. * src/SimpleLogger.cc
  2644. * src/SocketCore.cc
  2645. * src/Sqlite3MozCookieParser.cc
  2646. * src/UTPexExtensionMessage.cc
  2647. * src/Util.cc
  2648. * src/XML2SAXMetalinkProcessor.cc
  2649. * src/Xml2XmlRpcRequestProcessor.cc
  2650. * src/XmlRpcMethodImpl.cc
  2651. * src/bencode.cc
  2652. * src/download_helper.cc
  2653. * src/messageDigest.h
  2654. * test/ExceptionTest.cc
  2655. * test/TestUtil.cc
  2656. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2657. Bump up version number to 1.4.0
  2658. * configure.ac
  2659. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2660. Added 2files.metalink to EXTRA_DIST
  2661. * test/Makefile.am
  2662. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2663. Added missing 2files.metalink
  2664. * test/2files.metalink
  2665. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2666. Show "[MEMORY]" prefix before filename in download summary if it
  2667. is downloaded into memory.
  2668. * src/DownloadResult.h
  2669. * src/RequestGroup.cc
  2670. * src/RequestGroupMan.cc
  2671. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2672. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  2673. * src/ExpatXmlRpcRequestProcessor.cc
  2674. * src/Xml2XmlRpcRequestProcessor.cc
  2675. * src/message.h
  2676. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2677. Defined const BDEs to avoid duplicate instantiation.
  2678. Defined MSG_GID_NOT_PROVIDED.
  2679. * src/XmlRpcMethodImpl.cc
  2680. * src/message.h
  2681. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2682. Code cleanup
  2683. * src/Xml2XmlRpcRequestProcessor.cc
  2684. * src/Xml2XmlRpcRequestProcessor.h
  2685. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2686. Defined ENABLE_XML_RPC
  2687. * configure.ac
  2688. * configure
  2689. * config.h.in
  2690. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Added ExpatXmlRpcRequestProcessor
  2692. * src/ExpatXmlRpcRequestProcessor.cc
  2693. * src/ExpatXmlRpcRequestProcessor.h
  2694. * src/Makefile.am
  2695. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2696. Added tests for addTorrent and addMetalink command.
  2697. * test/TestUtil.cc
  2698. * test/TestUtil.h
  2699. * test/XmlRpcMethodTest.cc
  2700. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Corrected the description of --file-allocation option.
  2702. * doc/aria2c.1.txt
  2703. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2704. Added tellAll command.
  2705. * src/XmlRpcMethodFactory.cc
  2706. * src/XmlRpcMethodImpl.cc
  2707. * src/XmlRpcMethodImpl.h
  2708. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  2710. * src/XmlRpcMethodImpl.cc
  2711. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2712. Added changeGlobalOption command. Currently,
  2713. max-overall-download-limit and max-overall-upload-limit option are
  2714. available.
  2715. * src/RequestGroupMan.h
  2716. * src/XmlRpcMethod.cc
  2717. * src/XmlRpcMethod.h
  2718. * src/XmlRpcMethodFactory.cc
  2719. * src/XmlRpcMethodImpl.cc
  2720. * src/XmlRpcMethodImpl.h
  2721. * test/XmlRpcMethodTest.cc
  2722. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2723. Added changeOption command. Currently, max-download-limit,
  2724. max-upload-limit option are available in this command.
  2725. * src/RequestGroup.h
  2726. * src/XmlRpcMethod.cc
  2727. * src/XmlRpcMethod.h
  2728. * src/XmlRpcMethodFactory.cc
  2729. * src/XmlRpcMethodImpl.cc
  2730. * src/XmlRpcMethodImpl.h
  2731. * test/XmlRpcMethodTest.cc
  2732. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Added purgeDownloadResult command.
  2734. * src/RequestGroupMan.cc
  2735. * src/RequestGroupMan.h
  2736. * src/XmlRpcMethodFactory.cc
  2737. * src/XmlRpcMethodImpl.cc
  2738. * src/XmlRpcMethodImpl.h
  2739. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2740. Refactored.
  2741. * src/XmlRpcMethod.cc
  2742. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2743. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  2744. XmlRpcResponse.
  2745. * src/HttpServerBodyCommand.cc
  2746. * src/Makefile.am
  2747. * src/XmlRpcMethod.cc
  2748. * src/XmlRpcMethod.h
  2749. * src/XmlRpcMethodImpl.cc
  2750. * src/XmlRpcResponse.cc
  2751. * src/XmlRpcResponse.h
  2752. * test/XmlRpcMethodTest.cc
  2753. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. In XML-RPC option struct, header and index-out option can take
  2755. array as value.
  2756. * src/XmlRpcMethod.cc
  2757. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2758. Removed unused option member from PeerConnection.
  2759. * src/InitiatorMSEHandshakeCommand.cc
  2760. * src/PeerConnection.cc
  2761. * src/PeerConnection.h
  2762. * src/PeerInteractionCommand.cc
  2763. * src/PeerReceiveHandshakeCommand.cc
  2764. * src/ReceiverMSEHandshakeCommand.cc
  2765. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2766. Added "seeder" key to getPeers response.
  2767. * src/XmlRpcMethodImpl.cc
  2768. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2769. Added addMetalink XML-RPC command.
  2770. * src/XmlRpcMethodFactory.cc
  2771. * src/XmlRpcMethodImpl.cc
  2772. * src/XmlRpcMethodImpl.h
  2773. * src/download_helper.cc
  2774. * src/download_helper.h
  2775. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2776. Fixed the bug that POU peers are never choked in seeding.
  2777. * src/BtSeederStateChoke.cc
  2778. * src/BtSeederStateChoke.h
  2779. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2780. Added web-seeding URI handling in addTorrent command.
  2781. * src/XmlRpcMethodImpl.cc
  2782. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2783. Added "length" key to getFiles response.
  2784. * src/XmlRpcMethodImpl.cc
  2785. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2786. Moved --no-netrc option from ftp option section to http/ftp option
  2787. section.
  2788. * doc/aria2c.1.txt
  2789. * src/OptionHandlerFactory.cc
  2790. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2791. Removed garbage "\" character before '
  2792. * doc/aria2c.1.txt
  2793. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2794. Removed garbage "\" character before http.
  2795. * doc/aria2c.1.txt
  2796. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2797. Documented additional options that can be specified in -i list.
  2798. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  2799. and --xml-rpc-passwd. Removed --enable-http-server and
  2800. --http-server-listen-port.
  2801. * doc/aria2c.1.txt
  2802. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  2804. * src/DefaultPeerStorage.cc
  2805. * src/DefaultPeerStorage.h
  2806. * src/PeerStorage.h
  2807. * src/XmlRpcMethodImpl.cc
  2808. * test/MockPeerStorage.h
  2809. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2810. Put a call to Socket::isReadable() in try block.
  2811. * src/HttpServerBodyCommand.cc
  2812. * src/HttpServerCommand.cc
  2813. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2814. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  2815. exception , so it is now in try block.
  2816. * src/HttpServerResponseCommand.cc
  2817. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2818. Added "amChoking" and "peerChoking" key in getPeers response.
  2819. * src/XmlRpcMethodImpl.cc
  2820. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2821. Added test case for zero-length filter.
  2822. * test/BitfieldManTest.cc
  2823. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2824. getFiles command now returns file data for finished/stopped
  2825. downloads.
  2826. * src/XmlRpcMethodImpl.cc
  2827. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2828. DownloadResult now has the list of FileEntry. The download
  2829. summary displays the path of first selected file and the number of
  2830. remaining files for multi-file torrent.
  2831. * src/DownloadResult.h
  2832. * src/RequestGroup.cc
  2833. * src/RequestGroupMan.cc
  2834. * test/RequestGroupTest.cc
  2835. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2836. Fixed segmentation fault error when no file is selected in
  2837. multi-file torrent.
  2838. * src/BitfieldMan.cc
  2839. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2840. Escaped <,>,& character in XML-RPC response.
  2841. * src/XmlRpcMethod.cc
  2842. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2843. Throw DlAbortEx instead of FatalException during parsing options
  2844. because we don't want for aria2 to quit when bad option is passed
  2845. via XML-RPC.
  2846. * src/OptionHandlerException.cc
  2847. * src/OptionHandlerException.h
  2848. * src/OptionHandlerImpl.h
  2849. * src/OptionParser.cc
  2850. * src/OptionParser.h
  2851. * src/PStringSegment.cc
  2852. * src/ParameterizedStringParser.cc
  2853. * src/download_helper.cc
  2854. * test/ParameterizedStringParserTest.cc
  2855. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. Selecting files are now done in
  2857. DefaultBtContext::setFileFileter().
  2858. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  2859. functions are removed because they are no longer used. Creating
  2860. filter in BitfieldMan is done in new funtion
  2861. PieceStorage::setupFileFilter()
  2862. * src/BtContext.cc
  2863. * src/BtContext.h
  2864. * src/DefaultBtContext.cc
  2865. * src/DefaultBtContext.h
  2866. * src/DefaultPieceStorage.cc
  2867. * src/DefaultPieceStorage.h
  2868. * src/DiskAdaptor.cc
  2869. * src/DiskAdaptor.h
  2870. * src/PieceStorage.h
  2871. * src/RequestGroup.cc
  2872. * src/UnknownLengthPieceStorage.h
  2873. * src/XmlRpcMethodImpl.cc
  2874. * test/DefaultBtContextTest.cc
  2875. * test/MockBtContext.h
  2876. * test/MockPieceStorage.h
  2877. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2878. Fixed compile error on Mac OS X
  2879. * src/HttpServer.cc
  2880. * src/XmlRpcMethod.h
  2881. * src/XmlRpcMethodImpl.cc
  2882. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2883. Use std::binary_search instead of std::find
  2884. * src/DefaultPieceStorage.cc
  2885. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2886. Removed unnecessary BDE() call; leave them to implicit conversion.
  2887. * src/XmlRpcMethodImpl.cc
  2888. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2889. Return connections and gid in string
  2890. * src/XmlRpcMethodImpl.cc
  2891. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2892. Renamed addURI as addUri
  2893. * src/XmlRpcMethodFactory.cc
  2894. * src/XmlRpcMethodImpl.cc
  2895. * src/XmlRpcMethodImpl.h
  2896. * test/XmlRpcMethodTest.cc
  2897. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Renamed addTorrentFile as addTorrent
  2899. * src/XmlRpcMethodFactory.cc
  2900. * src/XmlRpcMethodImpl.cc
  2901. * src/XmlRpcMethodImpl.h
  2902. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2903. The information for files, URIs, peers are removed from the
  2904. reponse of TellaActive, TellStatus command because they tend to be
  2905. large. Instead they can be retrieved by the dedicated commands:
  2906. getFiles, getUris and getPeers respectively.
  2907. * src/XmlRpcMethodFactory.cc
  2908. * src/XmlRpcMethodImpl.cc
  2909. * src/XmlRpcMethodImpl.h
  2910. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Removed --max-overall-upload-limit and
  2912. --max-overall-download-limit option from listRequestOptions.
  2913. * src/download_helper.cc
  2914. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2915. Log incoming host in HttpListenCommand.
  2916. * src/HttpListenCommand.cc
  2917. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2918. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  2919. --xml-rpc-passwd option.
  2920. * src/HttpServer.cc
  2921. * src/HttpServer.h
  2922. * src/HttpServerCommand.cc
  2923. * src/OptionHandlerFactory.cc
  2924. * src/prefs.cc
  2925. * src/prefs.h
  2926. * src/usage_text.h
  2927. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  2929. processing 0 length request.
  2930. * src/HttpServerBodyCommand.cc
  2931. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2932. Removed --enable-http-server and --http-server-listen-port
  2933. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  2934. instead. The original feature for --enable-http-server that
  2935. reports download progress in HTML was officially removed. Persist
  2936. XML-RPC connection if client supports keep-alive.
  2937. * src/DownloadEngineFactory.cc
  2938. * src/HttpServerCommand.cc
  2939. * src/HttpServerResponseCommand.cc
  2940. * src/Makefile.am
  2941. * src/Makefile.in
  2942. * src/OptionHandlerFactory.cc
  2943. * src/RequestGroupMan.cc
  2944. * src/main.cc
  2945. * src/option_processing.cc
  2946. * src/prefs.cc
  2947. * src/prefs.h
  2948. * src/usage_text.h
  2949. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2950. Added "uris" key to the response of tellStatus command. Added
  2951. "connections" key to the response of tellStatus and tellActive
  2952. command.
  2953. * src/XmlRpcMethodImpl.cc
  2954. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2955. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  2956. Added TellStatusXmlRpcMethod. Remove command can now remove
  2957. waiting RequestGroup.
  2958. * src/RequestGroupMan.cc
  2959. * src/RequestGroupMan.h
  2960. * src/XmlRpcMethodFactory.cc
  2961. * src/XmlRpcMethodImpl.cc
  2962. * src/XmlRpcMethodImpl.h
  2963. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Initialized _peerId
  2965. * src/Peer.cc
  2966. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Return fault structure for error. FailXmlRpcMethod is renamed as
  2968. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  2969. in non-torrent download. Return single param value.
  2970. * src/XmlRpcMethod.cc
  2971. * src/XmlRpcMethodFactory.cc
  2972. * src/XmlRpcMethodImpl.cc
  2973. * src/XmlRpcMethodImpl.h
  2974. * test/XmlRpcMethodTest.cc
  2975. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2976. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  2977. command.
  2978. * src/RequestGroup.cc
  2979. * src/RequestGroup.h
  2980. * src/RequestGroupMan.cc
  2981. * src/XmlRpcMethodImpl.cc
  2982. * test/RequestGroupTest.cc
  2983. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2984. Added more options that can be specified in -i list and xml-rpc
  2985. add* command.
  2986. * src/download_helper.h
  2987. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2988. The available options in -i list should be listed in
  2989. listRequestOptions().
  2990. * src/download_helper.cc
  2991. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2992. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  2993. command.
  2994. * src/XmlRpcMethodImpl.cc
  2995. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Now RequestGroup has its own copy of Option object. This will help
  2997. to give custom option for each RequestGroup.
  2998. addTorrentFile command now takes options.
  2999. * src/AbstractCommand.cc
  3000. * src/AbstractCommand.h
  3001. * src/AbstractProxyRequestCommand.cc
  3002. * src/ActivePeerConnectionCommand.cc
  3003. * src/ActivePeerConnectionCommand.h
  3004. * src/AdaptiveURISelector.cc
  3005. * src/BtCheckIntegrityEntry.cc
  3006. * src/BtDependency.cc
  3007. * src/BtDependency.h
  3008. * src/BtFileAllocationEntry.cc
  3009. * src/BtPostDownloadHandler.cc
  3010. * src/CheckIntegrityEntry.cc
  3011. * src/DownloadCommand.cc
  3012. * src/FtpDownloadCommand.cc
  3013. * src/FtpFinishDownloadCommand.cc
  3014. * src/FtpInitiateConnectionCommand.cc
  3015. * src/FtpNegotiationCommand.cc
  3016. * src/HttpInitiateConnectionCommand.cc
  3017. * src/HttpRequestCommand.cc
  3018. * src/HttpResponseCommand.cc
  3019. * src/HttpSkipResponseCommand.cc
  3020. * src/InitiateConnectionCommand.cc
  3021. * src/InitiateConnectionCommandFactory.cc
  3022. * src/InitiatorMSEHandshakeCommand.cc
  3023. * src/InitiatorMSEHandshakeCommand.h
  3024. * src/Metalink2RequestGroup.cc
  3025. * src/Metalink2RequestGroup.h
  3026. * src/MetalinkPostDownloadHandler.cc
  3027. * src/MultiUrlRequestInfo.cc
  3028. * src/MultiUrlRequestInfo.h
  3029. * src/PeerAbstractCommand.cc
  3030. * src/PeerInteractionCommand.cc
  3031. * src/PeerInteractionCommand.h
  3032. * src/PeerReceiveHandshakeCommand.cc
  3033. * src/PeerReceiveHandshakeCommand.h
  3034. * src/RequestGroup.cc
  3035. * src/RequestGroup.h
  3036. * src/TrackerWatcherCommand.cc
  3037. * src/TrackerWatcherCommand.h
  3038. * src/XmlRpcMethod.cc
  3039. * src/XmlRpcMethod.h
  3040. * src/XmlRpcMethodImpl.cc
  3041. * src/download_helper.cc
  3042. * src/download_helper.h
  3043. * src/main.cc
  3044. * test/BtDependencyTest.cc
  3045. * test/BtPostDownloadHandlerTest.cc
  3046. * test/DefaultBtMessageDispatcherTest.cc
  3047. * test/DownloadHandlerFactoryTest.cc
  3048. * test/DownloadHelperTest.cc
  3049. * test/Metalink2RequestGroupTest.cc
  3050. * test/MetalinkPostDownloadHandlerTest.cc
  3051. * test/RequestGroupManTest.cc
  3052. * test/RequestGroupTest.cc
  3053. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3054. Added tellActiveStatus xml-rpc command which reports download
  3055. status of active downloads.
  3056. * src/XmlRpcMethodFactory.cc
  3057. * src/XmlRpcMethodImpl.cc
  3058. * src/XmlRpcMethodImpl.h
  3059. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3060. Added addTorrentFile xml-rpc command which receives uploaded
  3061. torrent file and add download for it.
  3062. * src/RequestGroupMan.cc
  3063. * src/XmlRpcMethodFactory.cc
  3064. * src/XmlRpcMethodImpl.cc
  3065. * src/XmlRpcMethodImpl.h
  3066. * src/download_helper.cc
  3067. * src/download_helper.h
  3068. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3069. Added remove xml-rpc command which removes specified download.
  3070. There is a known issue: the removed unfinished downloads are
  3071. reported ERR when aria2 exits. They should be reported as INPR.
  3072. * src/RequestGroupMan.cc
  3073. * src/RequestGroupMan.h
  3074. * src/XmlRpcMethodFactory.cc
  3075. * src/XmlRpcMethodImpl.cc
  3076. * src/XmlRpcMethodImpl.h
  3077. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. If --enable-http-server is enabled, don't stop aria2 when all
  3079. download finished and don't quit when no files to download at
  3080. start up.
  3081. * src/RequestGroupMan.cc
  3082. * src/main.cc
  3083. * src/option_processing.cc
  3084. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Added missing AM_CONDITIONAL
  3086. * configure.ac
  3087. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3088. Added xml-rpc functionality. Currently only addURI commad is
  3089. supported. To enable xml-rpc, run aria2 with
  3090. --enable-http-server. This option name is temporal and will be
  3091. changed. The feature that reports download progress in html format
  3092. is temporarily disabled.
  3093. * src/HttpServer.cc
  3094. * src/HttpServer.h
  3095. * src/HttpServerBodyCommand.cc
  3096. * src/HttpServerBodyCommand.h
  3097. * src/HttpServerCommand.cc
  3098. * src/HttpServerResponseCommand.cc
  3099. * src/Makefile.am
  3100. * src/OptionParser.cc
  3101. * src/OptionParser.h
  3102. * src/RequestGroupMan.cc
  3103. * src/RequestGroupMan.h
  3104. * src/XmlRpcMethod.cc
  3105. * src/XmlRpcMethod.h
  3106. * src/XmlRpcMethodFactory.cc
  3107. * src/XmlRpcMethodFactory.h
  3108. * src/XmlRpcMethodImpl.cc
  3109. * src/XmlRpcMethodImpl.h
  3110. * src/download_helper.cc
  3111. * src/download_helper.h
  3112. * test/Makefile.am
  3113. * test/XmlRpcMethodTest.cc
  3114. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3115. Added xml-rpc request parser. The supported value types are:
  3116. i4/int, string, double, struct, array, base64. Currently only
  3117. libxml2 version is provided.
  3118. * src/Xml2XmlRpcRequestProcessor.cc
  3119. * src/Xml2XmlRpcRequestProcessor.h
  3120. * src/XmlRpcElements.cc
  3121. * src/XmlRpcElements.h
  3122. * src/XmlRpcRequest.h
  3123. * src/XmlRpcRequestParserController.cc
  3124. * src/XmlRpcRequestParserController.h
  3125. * src/XmlRpcRequestParserState.h
  3126. * src/XmlRpcRequestParserStateImpl.cc
  3127. * src/XmlRpcRequestParserStateImpl.h
  3128. * src/XmlRpcRequestParserStateMachine.cc
  3129. * src/XmlRpcRequestParserStateMachine.h
  3130. * src/XmlRpcRequestProcessor.h
  3131. * test/XmlRpcRequestParserControllerTest.cc
  3132. * test/XmlRpcRequestProcessorTest.cc
  3133. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3134. * Release 1.3.3
  3135. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3136. Fixed compile error since r1202.
  3137. * src/ExpatMetalinkProcessor.cc
  3138. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3139. Updated Ukrainian, Russian and Simplified Chinese
  3140. translations. Thanks to all translators.
  3141. * po/ru.po
  3142. * po/uk.po
  3143. * po/zh_CN.po
  3144. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3145. Pass reference of Option object instead of pointer.
  3146. * src/download_helper.cc
  3147. * src/download_helper.h
  3148. * src/main.cc
  3149. * test/DownloadHelperTest.cc
  3150. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3151. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3152. from option directly. Instead, get them from RequestGroup.
  3153. * src/ActivePeerConnectionCommand.cc
  3154. * src/ActivePeerConnectionCommand.h
  3155. * src/PeerReceiveHandshakeCommand.cc
  3156. * src/RequestGroup.h
  3157. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3158. Removed unused uploadLimitCheck and uploadLimit from
  3159. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3160. PeerInteractionCommand.
  3161. * src/PeerAbstractCommand.cc
  3162. * src/PeerAbstractCommand.h
  3163. * src/PeerInteractionCommand.cc
  3164. * src/PeerInteractionCommand.h
  3165. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3166. Fixed broken file renaming feature since r1202.
  3167. * src/FtpNegotiationCommand.cc
  3168. * src/FtpNegotiationCommand.h
  3169. * src/HttpResponseCommand.cc
  3170. * src/RequestGroup.cc
  3171. * src/RequestGroup.h
  3172. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Removed unused debug log
  3174. * src/SocketCore.cc
  3175. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3176. Generated configure and Makefile.in using autoconf 2.63 and
  3177. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3178. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3179. * configure.ac
  3180. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3181. Moved piece statistics stuff to new PieceStatMan class.
  3182. Refactored PieceSelector interface.
  3183. * src/DefaultPieceStorage.cc
  3184. * src/DefaultPieceStorage.h
  3185. * src/LongestSequencePieceSelector.cc
  3186. * src/LongestSequencePieceSelector.h
  3187. * src/Makefile.am
  3188. * src/PieceSelector.h
  3189. * src/PieceStatMan.cc
  3190. * src/PieceStatMan.h
  3191. * src/RarestPieceSelector.cc
  3192. * src/RarestPieceSelector.h
  3193. * src/RequestGroup.cc
  3194. * test/DefaultPieceStorageTest.cc
  3195. * test/InOrderPieceSelector.h
  3196. * test/Makefile.am
  3197. * test/PieceStatManTest.cc
  3198. * test/RarestPieceSelectorTest.cc
  3199. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. Added static member _protocolFamily to SocketCore. By default,
  3201. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3202. address. Sometime SocketCore::bind() and
  3203. SocketCore::establishConnection() use difference protocl family
  3204. and latter cannot connect to former. To avoid this situation, we
  3205. limit protocol family to AF_INET for unit tests.
  3206. * src/SocketCore.cc
  3207. * src/SocketCore.h
  3208. * test/AllTest.cc
  3209. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3210. Avoid std::bad_alloc for negative bencode string length.
  3211. * src/bencode.cc
  3212. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3213. Supported segmented downloading with chunked transfer encoding and
  3214. content-length.
  3215. * src/DownloadCommand.cc
  3216. * src/HttpResponseCommand.cc
  3217. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Bump up version number to 1.3.3
  3219. * configure.ac
  3220. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3222. from 4096 to 65536 (for insanely large ftp login banners)
  3223. * src/FtpConnection.h
  3224. * test/FtpConnectionTest.cc
  3225. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. In DefaultBtContext::getActualBasePath(), return first
  3227. FileEntry::getPath() for single file torrent.
  3228. * src/DefaultBtContext.cc
  3229. * test/DefaultBtContextTest.cc
  3230. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3231. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3232. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3233. Removed _directIOAllowed member from DiskWriter.
  3234. * src/AbstractDiskWriter.cc
  3235. * src/AbstractDiskWriter.h
  3236. * src/AbstractSingleDiskAdaptor.cc
  3237. * src/AbstractSingleDiskAdaptor.h
  3238. * src/BinaryStream.h
  3239. * src/ByteArrayDiskWriter.h
  3240. * src/DefaultPieceStorage.cc
  3241. * src/DiskWriter.h
  3242. * src/MultiDiskAdaptor.cc
  3243. * src/MultiDiskAdaptor.h
  3244. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Now the constructor of AbstractDiskWriter takes filename as an
  3246. argument and filename argument is removed from openFile(),
  3247. initAndOpenFile(), openExistingFile() interface. storeDir member
  3248. and its accessor functions are removed from DiskAdaptor because it
  3249. is not used anymore. size() member function of DefaultDiskWriter,
  3250. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3251. opening file.
  3252. * src/AbstractDiskWriter.cc
  3253. * src/AbstractDiskWriter.h
  3254. * src/AbstractSingleDiskAdaptor.cc
  3255. * src/AbstractSingleDiskAdaptor.h
  3256. * src/ByteArrayDiskWriter.cc
  3257. * src/ByteArrayDiskWriter.h
  3258. * src/ByteArrayDiskWriterFactory.cc
  3259. * src/ByteArrayDiskWriterFactory.h
  3260. * src/DefaultDiskWriter.cc
  3261. * src/DefaultDiskWriter.h
  3262. * src/DefaultDiskWriterFactory.cc
  3263. * src/DefaultDiskWriterFactory.h
  3264. * src/DefaultPieceStorage.cc
  3265. * src/DirectDiskAdaptor.cc
  3266. * src/DirectDiskAdaptor.h
  3267. * src/DiskAdaptor.h
  3268. * src/DiskWriter.h
  3269. * src/DiskWriterFactory.h
  3270. * src/MessageDigestHelper.cc
  3271. * src/MultiDiskAdaptor.cc
  3272. * src/RequestGroup.cc
  3273. * src/UnknownLengthPieceStorage.cc
  3274. * src/Util.cc
  3275. * test/DefaultDiskWriterTest.cc
  3276. * test/DirectDiskAdaptorTest.cc
  3277. * test/FallocFileAllocationIteratorTest.cc
  3278. * test/MessageDigestHelperTest.cc
  3279. * test/MetalinkProcessorTest.cc
  3280. * test/MultiDiskAdaptorTest.cc
  3281. * test/MultiFileAllocationIteratorTest.cc
  3282. * test/SingleFileAllocationIteratorTest.cc
  3283. * test/UtilTest.cc
  3284. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. Fixed the bug that aria2 aborts when --select-file is used. This
  3286. bug was introduced in r1199.
  3287. * src/MultiDiskAdaptor.cc
  3288. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3289. Code cleanup
  3290. * test/MockPieceStorage.cc
  3291. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3292. Fixed the bug that read-only file with wrong file size will cause
  3293. error because it cannot be truncated to the correct size. Now if
  3294. file size is different than the expected one, re-open file in
  3295. writable mode.
  3296. * src/AbstractSingleDiskAdaptor.cc
  3297. * src/AbstractSingleDiskAdaptor.h
  3298. * src/BtCheckIntegrityEntry.cc
  3299. * src/DiskAdaptor.h
  3300. * src/MultiDiskAdaptor.h
  3301. * src/RequestGroup.cc
  3302. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3303. Fixed the bug that with --check-integrity option aria2 reports
  3304. downloaded file size is 0 even if some parts of file is correctly
  3305. downloaded. This bug is reproducible for the download that a file
  3306. includes last piece is missing. This bug doesn't reveal for
  3307. single-torrent with file allocation on.
  3308. * src/IteratableChecksumValidator.cc
  3309. * test/IteratableChecksumValidatorTest.cc
  3310. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3311. Avoid circular reference between RequestGroup and AdaptiveURISelector
  3312. * src/RequestGroupMan.cc
  3313. * src/AdaptiveURISelector.cc
  3314. * src/AdaptiveURISelector.h
  3315. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3316. * Release 1.3.2
  3317. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3318. Updated README
  3319. * README
  3320. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3321. Updated Ukrainian translations. Thanks to Alexander10.
  3322. * po/uk.po
  3323. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3324. Code cleanup
  3325. * src/MetalinkParserStateMachine.cc
  3326. * src/MetalinkParserStateMachine.h
  3327. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3328. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  3329. and expat simultaneously, MetalinkProcessor is now not base class
  3330. and it is directly implemented in XML2SAXMetalinkProcessor and
  3331. ExpatMetalinkProcessor.
  3332. * src/ExpatMetalinkProcessor.cc
  3333. * src/ExpatMetalinkProcessor.h
  3334. * src/Makefile.am
  3335. * src/MetalinkHelper.cc
  3336. * src/MetalinkProcessor.h
  3337. * src/MetalinkProcessorFactory.cc: Removed.
  3338. * src/MetalinkProcessorFactory.h: Removed
  3339. * src/XML2SAXMetalinkProcessor.cc
  3340. * src/XML2SAXMetalinkProcessor.h
  3341. * test/MetalinkProcessorTest.cc
  3342. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3343. Bump up version number to 1.3.2
  3344. * configure.ac
  3345. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3346. Added missing file.
  3347. * test/Makefile.am
  3348. * test/url-list-singleFileEndsWithSlash.torrent
  3349. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3350. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  3351. request.
  3352. * src/AnnounceList.cc
  3353. * src/AnnounceList.h
  3354. * src/BDE.cc: Added
  3355. * src/BDE.h: Added
  3356. * src/DHTAbstractMessage.cc
  3357. * src/DHTAbstractMessage.h
  3358. * src/DHTAnnouncePeerMessage.cc
  3359. * src/DHTAnnouncePeerMessage.h
  3360. * src/DHTAnnouncePeerReplyMessage.cc
  3361. * src/DHTAnnouncePeerReplyMessage.h
  3362. * src/DHTFindNodeMessage.cc
  3363. * src/DHTFindNodeMessage.h
  3364. * src/DHTFindNodeReplyMessage.cc
  3365. * src/DHTFindNodeReplyMessage.h
  3366. * src/DHTGetPeersMessage.cc
  3367. * src/DHTGetPeersMessage.h
  3368. * src/DHTGetPeersReplyMessage.cc
  3369. * src/DHTGetPeersReplyMessage.h
  3370. * src/DHTMessageFactory.h
  3371. * src/DHTMessageFactoryImpl.cc
  3372. * src/DHTMessageFactoryImpl.h
  3373. * src/DHTMessageReceiver.cc
  3374. * src/DHTMessageTracker.cc
  3375. * src/DHTMessageTracker.h
  3376. * src/DHTPingMessage.cc
  3377. * src/DHTPingMessage.h
  3378. * src/DHTPingReplyMessage.cc
  3379. * src/DHTPingReplyMessage.h
  3380. * src/DHTQueryMessage.cc
  3381. * src/DHTQueryMessage.h
  3382. * src/DHTResponseMessage.cc
  3383. * src/DHTResponseMessage.h
  3384. * src/DefaultBtAnnounce.cc
  3385. * src/DefaultBtContext.cc
  3386. * src/DefaultBtContext.h
  3387. * src/HandshakeExtensionMessage.cc
  3388. * src/Makefile.am
  3389. * src/PeerListProcessor.h
  3390. * src/UTPexExtensionMessage.cc
  3391. * src/bencode.cc
  3392. * src/bencode.h
  3393. * test/AnnounceListTest.cc
  3394. * test/BDETest.cc: Added
  3395. * test/BencodeTest.cc
  3396. * test/DHTAnnouncePeerMessageTest.cc
  3397. * test/DHTAnnouncePeerReplyMessageTest.cc
  3398. * test/DHTFindNodeMessageTest.cc
  3399. * test/DHTFindNodeReplyMessageTest.cc
  3400. * test/DHTGetPeersMessageTest.cc
  3401. * test/DHTGetPeersReplyMessageTest.cc
  3402. * test/DHTMessageFactoryImplTest.cc
  3403. * test/DHTMessageTrackerTest.cc
  3404. * test/DHTPingMessageTest.cc
  3405. * test/DHTPingReplyMessageTest.cc
  3406. * test/Makefile.am
  3407. * test/MockDHTMessageFactory.h
  3408. * test/PeerListProcessorTest.cc
  3409. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3410. Use url-list (web-seeding) only for single-file torrent. This is
  3411. basically the same behavior with Metalink file with torrent and
  3412. URIs.
  3413. * src/RequestGroup.cc
  3414. * src/DefaultBtContext.cc
  3415. * test/DefaultBtContextTest.cc
  3416. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3417. Rewritten expr
  3418. * src/array_fun.h
  3419. * test/array_funTest.cc
  3420. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3421. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  3422. * src/DefaultBtMessageDispatcher.cc
  3423. * src/a2algo.h
  3424. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3425. Removed ExtendedMessagingAware. Instead of using inheritance,
  3426. added ExtensionMessageRegistry and it is passed to
  3427. DefaultExtensionMessageFactory.
  3428. * src/DefaultBtInteractive.cc
  3429. * src/DefaultBtInteractive.h
  3430. * src/DefaultExtensionMessageFactory.cc
  3431. * src/DefaultExtensionMessageFactory.h
  3432. * src/ExtendedMessagingAware.h: Removed.
  3433. * src/ExtensionMessageFactory.h
  3434. * src/ExtensionMessageRegistry.h: Added.
  3435. * src/Makefile.am
  3436. * src/PeerInteractionCommand.cc
  3437. * test/DefaultExtensionMessageFactoryTest.cc
  3438. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3439. Fixed typo in log messages
  3440. * src/MSEHandshake.cc
  3441. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3442. Fixed the bug that prevents torrent download from finishing. The
  3443. bug doesn't reveal for all torrents. The torrents affected this
  3444. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  3445. of pieces.
  3446. * src/bitfield.h
  3447. * test/bitfieldTest.cc
  3448. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3449. Code cleanup
  3450. * src/PeerListProcessor.h
  3451. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3452. Removed RequestGroupAware
  3453. * src/AbstractCommand.cc
  3454. * src/AbstractCommand.h
  3455. * src/ActivePeerConnectionCommand.cc
  3456. * src/ActivePeerConnectionCommand.h
  3457. * src/DHTGetPeersCommand.cc
  3458. * src/DHTGetPeersCommand.h
  3459. * src/InitiatorMSEHandshakeCommand.cc
  3460. * src/InitiatorMSEHandshakeCommand.h
  3461. * src/Makefile.am
  3462. * src/PeerInitiateConnectionCommand.cc
  3463. * src/PeerInitiateConnectionCommand.h
  3464. * src/PeerInteractionCommand.cc
  3465. * src/PeerInteractionCommand.h
  3466. * src/RealtimeCommand.cc
  3467. * src/RealtimeCommand.h
  3468. * src/RequestGroupAware.cc: Removed
  3469. * src/RequestGroupAware.h: Removed
  3470. * src/SeedCheckCommand.cc
  3471. * src/SeedCheckCommand.h
  3472. * src/SleepCommand.cc
  3473. * src/TrackerWatcherCommand.cc
  3474. * src/TrackerWatcherCommand.h
  3475. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3476. Rewritten PeerListProcessor
  3477. * src/PeerListProcessor.h
  3478. * src/CompactPeerListProcessor.h: Removed
  3479. * src/CompactPeerListProcessor.cc: Removed
  3480. * src/DelegatingPeerListProcessor.cc: Removed.
  3481. * src/DefaultBtAnnounce.cc
  3482. * src/Makefile.am
  3483. * src/UTPexExtensionMessage.cc
  3484. * src/DefaultPeerListProcessor.h: Removed.
  3485. * src/DefaultPeerListProcessor.cc: Removed.
  3486. * src/DelegatingPeerListProcessor.h: Removed.
  3487. * test/Makefile.am
  3488. * test/PeerListProcessorTest.cc
  3489. * test/DefaultPeerListProcessorTest.cc: Removed.
  3490. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3491. Rewritten RequestGroupMan::calculateStat()
  3492. * src/RequestGroupMan.cc
  3493. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3494. Removed unnecessary virtual destructor for Request class.
  3495. * src/Request.cc
  3496. * src/Request.h
  3497. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3498. Avoid dynamic_pointer_cast.
  3499. * src/DHTGetPeersCommand.cc
  3500. * src/DHTGetPeersCommand.h
  3501. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3502. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  3503. BtEvent.
  3504. * src/AbstractBtEventListener.h: Removed.
  3505. * src/AbstractBtMessage.cc
  3506. * src/AbstractBtMessage.h
  3507. * src/BtAbortOutstandingRequestEvent.h
  3508. * src/BtCancelSendingPieceEvent.h
  3509. * src/BtChokedEvent.h: Removed.
  3510. * src/BtChokingEvent.h
  3511. * src/BtEvent.h: Removed
  3512. * src/BtEventListener.h: Removed.
  3513. * src/BtMessage.h
  3514. * src/BtPieceMessage.cc
  3515. * src/BtPieceMessage.h
  3516. * src/BtRequestMessage.cc
  3517. * src/BtRequestMessage.h
  3518. * src/DefaultBtMessageDispatcher.cc
  3519. * src/Makefile.am
  3520. * src/a2functional.h
  3521. * test/BtPieceMessageTest.cc
  3522. * test/BtRequestMessageTest.cc
  3523. * test/DefaultBtMessageDispatcherTest.cc
  3524. * test/MockBtMessage.h
  3525. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3526. Code cleanup
  3527. * src/RequestGroupMan.cc
  3528. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Code cleanup
  3530. * src/DownloadCommand.cc
  3531. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3532. Fixed segmentation fault when GZipDecoder::decode() returns 0
  3533. byte.
  3534. * src/DownloadCommand.cc
  3535. * src/bitfield.h
  3536. * test/bitfieldTest.cc
  3537. Fixed the bug that causes infinite loop if broken web server
  3538. returns chunked response without last "0" chunk-size marker and
  3539. closes connection.
  3540. * src/DownloadCommand.cc
  3541. Instantiate properly configured HttpDownloadCommand for
  3542. non-resumable downlaods.
  3543. * src/HttpResponseCommand.cc
  3544. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Rewritten array operation functions.
  3546. * src/BitfieldMan.cc
  3547. * src/array_fun.h
  3548. * test/array_funTest.cc
  3549. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3550. Removed unused variable 'query'
  3551. * src/Request.cc
  3552. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3553. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  3554. accidentally set to false in r1162.
  3555. * configure.ac
  3556. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Code cleanup
  3558. * src/BNode.cc
  3559. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3560. Increase prefixLength for the bucket which doesn't own local node
  3561. ID when splitting bucket.
  3562. * src/DHTBucket.cc
  3563. * test/DHTBucketTest.cc
  3564. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3565. * Release 1.3.1
  3566. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Bump up version number to 1.3.1
  3568. * configure.ac
  3569. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3570. Removed unused variable checkPoint. Also removed include directive
  3571. for TimeA2.h.
  3572. * src/SeedCheckCommand.h
  3573. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. Fixed the bug that upload limit exceeds the value specified in
  3575. --seed-ratio option depending on the timing of the execution of
  3576. SeedCheckCommand.
  3577. * src/SeedCheckCommand.cc
  3578. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3579. Fixed the bug that removed peer's session upload/download length
  3580. are counted twice in _cachedTransferStat before it is
  3581. re-calculated. This affected the calculation of shara ratio,
  3582. resulting aria2 wrongly determines that specified share ratio is
  3583. reached. Also fixed the typo in calculateStatFor function name.
  3584. * src/BtSetup.cc
  3585. * src/DefaultPeerStorage.cc
  3586. * src/ShareRatioSeedCriteria.h
  3587. * test/ShareRatioSeedCriteriaTest.cc
  3588. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3589. * Release 1.3.0
  3590. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3591. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  3592. Nynorsk translations. Thanks to all translators.
  3593. * po/es.po
  3594. * po/ja.po
  3595. * po/nn.po
  3596. * po/ru.po
  3597. * po/uk.po
  3598. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3599. Rewritten isInRange()
  3600. * src/DHTBucket.cc
  3601. * test/DHTBucketTest.cc
  3602. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3603. Fixed typo
  3604. * doc/aria2c.1.txt
  3605. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3606. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  3607. malloc/realloc is not used.
  3608. * src/configure.ac
  3609. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3610. BitfieldMan::getMissingIndexes family functions now takes unsigned
  3611. char* bitfield instead of stl container for efficiency.
  3612. PieceSelector::select now takes this
  3613. bitfield. RarestPieceSelector::select now also performs
  3614. efficiently for this change. bitfield namespace is introduced and
  3615. it has several helper functions to handle basic bitfield
  3616. operations such as test, count set bits, etc.
  3617. * src/BitfieldMan.cc
  3618. * src/BitfieldMan.h
  3619. * src/DefaultBtRequestFactory.cc
  3620. * src/DefaultPieceStorage.cc
  3621. * src/DefaultPieceStorage.h
  3622. * src/LongestSequencePieceSelector.cc
  3623. * src/LongestSequencePieceSelector.h
  3624. * src/Makefile.am
  3625. * src/Piece.cc
  3626. * src/Piece.h
  3627. * src/PieceSelector.h
  3628. * src/RarestPieceSelector.cc
  3629. * src/RarestPieceSelector.h
  3630. * src/Util.cc
  3631. * src/Util.h
  3632. * src/bitfield.h
  3633. * test/BitfieldManTest.cc
  3634. * test/LongestSequencePieceSelectorTest.cc
  3635. * test/Makefile.am
  3636. * test/RarestPieceSelectorTest.cc
  3637. * test/UtilTest.cc
  3638. * test/bitfieldTest.cc
  3639. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3640. Made accepted socket non-block.
  3641. * src/FtpNegotiationCommand.cc
  3642. * src/HttpListenCommand.cc
  3643. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3644. Guarded #ifdef HAVE_POSIX_FALLOCATE
  3645. * src/AbstractSingleDiskAdaptor.cc
  3646. * src/DefaultPieceStorage.cc
  3647. * src/DiskAdaptor.h
  3648. * src/DiskAdaptor.h
  3649. * src/MultiFileAllocationIterator.cc
  3650. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3651. Run
  3652. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  3653. in every 1 sec. The timeout of RequestSlot is 60s by default and
  3654. it doesn't need to be called every time when
  3655. DefaultBtInteractive::doInteractionProcessing() is called.
  3656. * src/DefaultBtInteractive.cc
  3657. * src/DefaultBtInteractive.h
  3658. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3659. Documented 'falloc' in man page.
  3660. * doc/aria2c.1.txt
  3661. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3662. Updated doc
  3663. * src/usage_text.h
  3664. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3665. Added 'falloc' parameter for --file-allocation option. 'falloc'
  3666. allocation mode uses posix_fallocate() system call to allocate
  3667. file on disk. If you are using newer file systems such as ext4
  3668. (with extents support), btrfs or xfs, 'falloc' is your best
  3669. choice. It allocates large(few GiB) files almost instantly. Don't
  3670. use 'falloc' with legacy file systems such as ext3 because it
  3671. takes almost same time as 'prealloc' and it blocks aria2 entirely
  3672. until allocation finishes. 'falloc' may not be available if your
  3673. system doesn't have posix_fallocate() system call.
  3674. * configure.ac
  3675. * src/AbstractDiskWriter.cc
  3676. * src/AbstractDiskWriter.h
  3677. * src/AbstractSingleDiskAdaptor.cc
  3678. * src/BinaryStream.h
  3679. * src/BtCheckIntegrityEntry.cc
  3680. * src/ByteArrayDiskWriter.h
  3681. * src/CheckIntegrityEntry.cc
  3682. * src/CheckIntegrityEntry.h
  3683. * src/DefaultPieceStorage.cc
  3684. * src/DiskAdaptor.cc
  3685. * src/DiskAdaptor.h
  3686. * src/DiskWriter.h
  3687. * src/FallocFileAllocationIterator.cc
  3688. * src/FallocFileAllocationIterator.h
  3689. * src/FileAllocationEntry.cc
  3690. * src/FileAllocationEntry.h
  3691. * src/Makefile.am
  3692. * src/MultiFileAllocationIterator.cc
  3693. * src/MultiFileAllocationIterator.h
  3694. * src/OptionHandlerFactory.cc
  3695. * src/RequestGroup.cc
  3696. * src/StreamCheckIntegrityEntry.cc
  3697. * src/prefs.cc
  3698. * src/prefs.h
  3699. * src/usage_text.h
  3700. * test/FallocFileAllocationIteratorTest.cc
  3701. * test/Makefile.am
  3702. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3703. Removed duplicate enableDirectIO() call.
  3704. * src/MultiFileAllocationIterator.cc
  3705. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3706. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  3707. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  3708. cost of std::rotate().
  3709. * src/RarestPieceSelector.cc
  3710. * src/RarestPieceSelector.h
  3711. * test/RarestPieceSelectorTest.cc
  3712. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Updated usage doc for --bt-tracker-interval option.
  3714. * src/usage_text.h
  3715. * doc/aria2c.1.txt
  3716. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3717. Documented --bt-tracker-interval option in man page.
  3718. * doc/aria2c.1.txt
  3719. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3720. Added an option to specify the interval between tracker requests.
  3721. If non-zero value is specified, aria2 uses it and ignores the
  3722. interval value in the response of tracker. If zero is specified,
  3723. aria2 determines the inteval value based on the tarcker response
  3724. and download progress.
  3725. * src/DefaultBtAnnounce.cc
  3726. * src/DefaultBtAnnounce.h
  3727. * src/OptionHandlerFactory.cc
  3728. * src/RequestGroup.cc
  3729. * src/prefs.cc
  3730. * src/prefs.h
  3731. * src/usage_text.h
  3732. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3733. Added operator+=, operator-=, operator-
  3734. * src/TransferStat.cc
  3735. * src/TransferStat.h
  3736. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3737. Refactored RarestPieceSelector to reduce CPU load, especially for
  3738. addPieceStats.
  3739. * src/RarestPieceSelector.cc
  3740. * src/RarestPieceSelector.h
  3741. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3742. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  3743. getAllMissingBlockIndexes to reduce a call to
  3744. array_function_base::operator[].
  3745. * src/BitfieldMan.cc
  3746. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3747. Cached TransferStat/download speed to avoid to sum them up in each
  3748. call.
  3749. * src/DefaultPeerStorage.cc
  3750. * src/DefaultPeerStorage.h
  3751. * src/SegmentMan.cc
  3752. * src/SegmentMan.h
  3753. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3754. Typedefed cuid_t as int32_t in Command.h
  3755. * src/CUIDCounter.h
  3756. * src/Command.cc
  3757. * src/Command.h
  3758. * src/DownloadEngine.cc
  3759. * src/DownloadEngine.h
  3760. * src/PeerStat.h
  3761. * src/SegmentMan.cc
  3762. * src/SegmentMan.h
  3763. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3764. Reduced the number of calls to PeerStorage::calculateStat() and
  3765. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  3766. transfer rate.
  3767. * src/DefaultBtInteractive.cc
  3768. * src/DefaultBtMessageDispatcher.cc
  3769. * src/DefaultPeerStorage.cc
  3770. * src/DefaultPeerStorage.h
  3771. * src/DownloadCommand.cc
  3772. * src/DownloadEngine.cc
  3773. * src/PeerStorage.h
  3774. * src/SegmentMan.cc
  3775. * src/SegmentMan.h
  3776. * test/MockPeerStorage.h
  3777. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3778. Prepended _dir+"/" after joining path elements in torrent file.
  3779. * src/DefaultBtContext.cc
  3780. * test/DefaultBtContextTest.cc
  3781. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3782. Added missing IndexBtMessageValidator.h
  3783. * src/Makefile.am
  3784. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3785. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  3786. Chinese translations. Thank you for contributing our project.
  3787. * po/id.po
  3788. * po/it.po
  3789. * po/ru.po
  3790. * po/uk.po
  3791. * po/zh_CN.po
  3792. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3793. Updated README
  3794. * README
  3795. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3796. Bump up version number to 1.3.0
  3797. * configure.ac
  3798. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3799. Updated doc
  3800. * src/DefaultBtContext.h
  3801. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Slice/joinPath for name of single torrent.
  3803. * src/DefaultBtContext.cc
  3804. * test/DefaultBtContextTest.cc
  3805. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Updated man page: Documented --dry-run and --index-out
  3807. options. Changed the default value of --uri-selector and
  3808. --http-auth-challenge options. Removed --direct-file-mapping
  3809. option. Added example for --index-out
  3810. * doc/aria2c.1.txt
  3811. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3812. Updated TEXT_DRY_RUN
  3813. * src/usage_text.h
  3814. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Changed the default value of --uri-selector option from 'inorder'
  3816. to 'feedback'
  3817. * src/OptionHandlerFactory.cc
  3818. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3819. Included current URI in exception message.
  3820. * src/AbstractCommand.cc
  3821. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3822. Renamed ServerStatURISelector as FeedbackURISelector.
  3823. * src/FeedbackURISelector.cc
  3824. * src/FeedbackURISelector.h
  3825. * src/Makefile.am
  3826. * src/RequestGroupMan.cc
  3827. * src/ServerStatURISelector.cc
  3828. * src/ServerStatURISelector.h
  3829. * test/FeedbackURISelectorTest.cc
  3830. * test/Makefile.am
  3831. * test/ServerStatURISelectorTest.cc
  3832. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3833. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  3834. all URIs are tested and their timeout is not reached.
  3835. * src/AdaptiveURISelector.cc
  3836. * src/AdaptiveURISelector.h
  3837. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3838. Changed the default value of --http-auth-challenge option to false.
  3839. * src/OptionHandlerFactory.cc
  3840. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3841. Reuse URIs when all unused URIs run out.
  3842. * src/OptionHandlerFactory.cc
  3843. * src/RequestGroup.cc
  3844. * src/prefs.cc
  3845. * src/prefs.h
  3846. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3847. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  3848. and BtRejectMessage are derived from RangeBtMessage class.
  3849. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  3850. derived from IndexBtMessage class. BtChokeMessage,
  3851. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  3852. BtNotInterestedMessage and BtUnchokeMessage are derived from
  3853. ZeroBtMessage class.
  3854. * src/AbstractBtMessage.cc
  3855. * src/AbstractBtMessage.h
  3856. * src/BtAllowedFastMessage.cc
  3857. * src/BtAllowedFastMessage.h
  3858. * src/BtAllowedFastMessageValidator.h: Removed
  3859. * src/BtBitfieldMessage.cc
  3860. * src/BtBitfieldMessage.h
  3861. * src/BtCancelMessage.cc
  3862. * src/BtCancelMessage.h
  3863. * src/BtCancelMessageValidator.h: Removed
  3864. * src/BtChokeMessage.cc
  3865. * src/BtChokeMessage.h
  3866. * src/BtExtendedMessage.cc
  3867. * src/BtExtendedMessage.h
  3868. * src/BtHandshakeMessage.cc
  3869. * src/BtHandshakeMessage.h
  3870. * src/BtHaveAllMessage.cc
  3871. * src/BtHaveAllMessage.h
  3872. * src/BtHaveMessage.cc
  3873. * src/BtHaveMessage.h
  3874. * src/BtHaveMessageValidator.h: Removed
  3875. * src/BtHaveNoneMessage.cc
  3876. * src/BtHaveNoneMessage.h
  3877. * src/BtInterestedMessage.cc
  3878. * src/BtInterestedMessage.h
  3879. * src/BtKeepAliveMessage.cc
  3880. * src/BtKeepAliveMessage.h
  3881. * src/BtNotInterestedMessage.cc
  3882. * src/BtNotInterestedMessage.h
  3883. * src/BtPieceMessage.cc
  3884. * src/BtPieceMessage.h
  3885. * src/BtPortMessage.cc
  3886. * src/BtPortMessage.h
  3887. * src/BtRejectMessage.cc
  3888. * src/BtRejectMessage.h
  3889. * src/BtRejectMessageValidator.h: Removed
  3890. * src/BtRequestMessage.cc
  3891. * src/BtRequestMessage.h
  3892. * src/BtRequestMessageValidator.h: Removed
  3893. * src/BtSuggestPieceMessage.cc
  3894. * src/BtSuggestPieceMessage.h
  3895. * src/BtSuggestPieceMessageValidator.h: Removed
  3896. * src/BtUnchokeMessage.cc
  3897. * src/BtUnchokeMessage.h
  3898. * src/DefaultBtMessageFactory.cc
  3899. * src/IndexBtMessage.cc
  3900. * src/IndexBtMessage.h
  3901. * src/IndexBtMessageValidator.h
  3902. * src/Makefile.am
  3903. * src/PeerMessageUtil.cc
  3904. * src/PeerMessageUtil.h
  3905. * src/RangeBtMessage.cc
  3906. * src/RangeBtMessage.h
  3907. * src/RangeBtMessageValidator.h
  3908. * src/SimpleBtMessage.cc
  3909. * src/SimpleBtMessage.h
  3910. * src/ZeroBtMessage.cc
  3911. * src/ZeroBtMessage.h
  3912. * test/BtRequestMessageTest.cc
  3913. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3914. Reverted usage_text.h to r1093 to avoid to lose translated
  3915. messages.
  3916. * src/usage_text.h
  3917. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3918. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  3919. declared as non-const previously is now const and defined in class
  3920. definition.
  3921. * src/AbstractBtMessage.cc
  3922. * src/AbstractBtMessage.h
  3923. * src/BtAllowedFastMessage.cc
  3924. * src/BtAllowedFastMessage.h
  3925. * src/BtBitfieldMessage.h
  3926. * src/BtCancelMessage.cc
  3927. * src/BtCancelMessage.h
  3928. * src/BtChokeMessage.cc
  3929. * src/BtChokeMessage.h
  3930. * src/BtExtendedMessage.cc
  3931. * src/BtExtendedMessage.h
  3932. * src/BtHandshakeMessage.cc
  3933. * src/BtHandshakeMessage.h
  3934. * src/BtHaveAllMessage.cc
  3935. * src/BtHaveAllMessage.h
  3936. * src/BtHaveMessage.cc
  3937. * src/BtHaveMessage.h
  3938. * src/BtHaveNoneMessage.cc
  3939. * src/BtHaveNoneMessage.h
  3940. * src/BtInterestedMessage.cc
  3941. * src/BtInterestedMessage.h
  3942. * src/BtKeepAliveMessage.cc
  3943. * src/BtKeepAliveMessage.h
  3944. * src/BtMessage.h
  3945. * src/BtNotInterestedMessage.cc
  3946. * src/BtNotInterestedMessage.h
  3947. * src/BtPieceMessage.h
  3948. * src/BtPortMessage.cc
  3949. * src/BtPortMessage.h
  3950. * src/BtRejectMessage.cc
  3951. * src/BtRejectMessage.h
  3952. * src/BtRequestMessage.cc
  3953. * src/BtRequestMessage.h
  3954. * src/BtSuggestPieceMessage.cc
  3955. * src/BtSuggestPieceMessage.h
  3956. * src/BtUnchokeMessage.cc
  3957. * src/BtUnchokeMessage.h
  3958. * src/SimpleBtMessage.cc
  3959. * src/SimpleBtMessage.h
  3960. * test/MockBtMessage.h
  3961. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3962. Use FileEntry::exists()
  3963. * src/MultiDiskAdaptor.cc
  3964. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3965. Added exists()
  3966. * src/FileEntry.cc
  3967. * src/FileEntry.h
  3968. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3969. Added missing prefix dir.
  3970. * src/download_helper.cc
  3971. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. Removed --direct-file-mapping option and CopyDiskAdaptor.
  3973. * src/CopyDiskAdaptor.cc: Removed
  3974. * src/CopyDiskAdaptor.h: Removed
  3975. * src/DefaultPieceStorage.cc
  3976. * src/Makefile.am
  3977. * src/OptionHandlerFactory.cc
  3978. * src/prefs.cc
  3979. * src/prefs.h
  3980. * src/usage_text.h
  3981. * test/CopyDiskAdaptorTest.cc: Removed
  3982. * test/Makefile.am
  3983. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3984. Rewritten isSameFileBeingDownloaded()
  3985. * src/RequestGroupMan.cc
  3986. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3987. Removed getName() from DownloadContext. getName() is declared in
  3988. BtContext.
  3989. * src/BtContext.h
  3990. * src/DownloadContext.h
  3991. * src/SingleFileDownloadContext.cc
  3992. * src/SingleFileDownloadContext.h
  3993. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  3994. in AbstractSingleDiskAdaptor.
  3995. * src/AbstractSingleDiskAdaptor.h
  3996. * src/DiskAdaptor.h
  3997. * src/MultiDiskAdaptor.h
  3998. * src/RequestGroup.cc
  3999. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4000. MultiDiskAdaptor.
  4001. * src/DefaultPieceStorage.cc
  4002. * src/MultiDiskAdaptor.cc
  4003. * src/MultiDiskAdaptor.h
  4004. * test/MultiDiskAdaptorTest.cc
  4005. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4006. FileEntry::getPath() contains store(top level) directory to
  4007. simplify path handling operation. In the previous implementation,
  4008. store directory is concatenated to FileEntry::getPath() in
  4009. DownloadContext.
  4010. * src/BtDependency.cc
  4011. * src/BtPostDownloadHandler.cc
  4012. * src/CopyDiskAdaptor.cc
  4013. * src/DefaultBtContext.cc
  4014. * src/DirectDiskAdaptor.cc
  4015. * src/FileEntry.cc
  4016. * src/FileEntry.h
  4017. * src/FtpNegotiationCommand.cc
  4018. * src/HttpResponse.cc
  4019. * src/HttpResponseCommand.cc
  4020. * src/Metalink2RequestGroup.cc
  4021. * src/MultiDiskAdaptor.cc
  4022. * src/MultiDiskAdaptor.h
  4023. * src/MultiFileAllocationIterator.cc
  4024. * src/RequestGroup.cc
  4025. * src/SingleFileDownloadContext.cc
  4026. * src/SingleFileDownloadContext.h
  4027. * src/download_helper.cc
  4028. * test/BtDependencyTest.cc
  4029. * test/CopyDiskAdaptorTest.cc
  4030. * test/DefaultBtContextTest.cc
  4031. * test/DefaultBtProgressInfoFileTest.cc
  4032. * test/DirectDiskAdaptorTest.cc
  4033. * test/DownloadHelperTest.cc
  4034. * test/FileEntryTest.cc
  4035. * test/MultiDiskAdaptorTest.cc
  4036. * test/MultiFileAllocationIteratorTest.cc
  4037. * test/RequestGroupTest.cc
  4038. * test/SingleFileDownloadContextTest.cc
  4039. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4040. Fixed compiler warning
  4041. * src/download_helper.cc
  4042. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4043. Throw exception if same infohash torrent is now downloading.
  4044. * src/RequestGroup.cc
  4045. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4046. Added --dry-run option. In this mode, aria2 just checks whether
  4047. the remote file is available and doesn't download data. This
  4048. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4049. are canceled in this mode.
  4050. * src/FtpNegotiationCommand.cc
  4051. * src/HttpResponseCommand.cc
  4052. * src/HttpResponseCommand.h
  4053. * src/OptionHandlerFactory.cc
  4054. * src/RequestGroup.cc
  4055. * src/RequestGroupMan.cc
  4056. * src/prefs.cc
  4057. * src/prefs.h
  4058. * src/usage_text.h
  4059. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4060. Fixed compiler waring
  4061. * test/UriListParserTest.cc
  4062. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4063. Parse options in -i list using OptionParser.
  4064. * src/UriListParser.cc
  4065. * src/UriListParser.h
  4066. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. Don't reset URI in retry to avoid additional round trips because
  4068. of redirects.
  4069. * src/AbstractCommand.cc
  4070. * src/OptionHandlerFactory.cc
  4071. * src/prefs.cc
  4072. * src/prefs.h
  4073. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. Declared hide() in OptionHandler.
  4075. * src/NameMatchOptionHandler.h
  4076. * src/OptionHandler.h
  4077. * src/OptionHandlerImpl.h
  4078. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4079. Updated doc
  4080. * src/Peer.h
  4081. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4082. Added log message in setStatusInternal()
  4083. * src/ServerStat.cc
  4084. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4085. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4086. effectively exclude failed server.
  4087. * src/AbstractCommand.cc
  4088. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4089. Added --index-out option to specify each file path for torrent.
  4090. Here index shown in --show-files option is used to specify which
  4091. file path should be altered. For example, to change the file path
  4092. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4093. option multiple times: --index-out=1=aria2.tar.bz2
  4094. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4095. available. This option can be specified in -i list.
  4096. * src/DefaultBtContext.cc
  4097. * src/DefaultBtContext.h
  4098. * src/MultiDiskAdaptor.cc
  4099. * src/MultiDiskAdaptor.h
  4100. * src/MultiFileAllocationIterator.cc
  4101. * src/OptionHandlerFactory.cc
  4102. * src/OptionHandlerImpl.h
  4103. * src/Util.cc
  4104. * src/Util.h
  4105. * src/download_helper.cc
  4106. * src/prefs.cc
  4107. * src/prefs.h
  4108. * src/usage_text.h
  4109. * test/DefaultBtContextTest.cc
  4110. * test/MultiDiskAdaptorTest.cc
  4111. * test/MultiFileAllocationIteratorTest.cc
  4112. * test/UtilTest.cc
  4113. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4114. Use Util::pathJoin()
  4115. * src/MetalinkParserController.cc
  4116. * test/test.xml
  4117. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4118. Use Util::pathJoin()
  4119. * src/DefaultBtContext.cc
  4120. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4121. Added Util::pathJoin()
  4122. * src/Util.h
  4123. * test/UtilTest.cc
  4124. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4125. Applied basename function to remove directory element in
  4126. content-disposition value.
  4127. Return empty string if content-disposition value is ".." or ".".
  4128. * src/Util.cc
  4129. * test/UtilTest.cc
  4130. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4131. Added --max-overall-download-limit in man page.
  4132. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4133. * doc/aria2c.1.txt
  4134. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4135. Added --max-overall-download-limit option. Now --max-upload-limit
  4136. option is not ignored when --max-overall-upload-limit option has
  4137. non-zero value. aria2 checks download(upload) speed in the order:
  4138. first checks overall speed limit and if it is not exceeded, then
  4139. checks speed limit per download. Thus you can specify both
  4140. value. For example, set --max-overall-download-limit=1M and
  4141. --max-download-limit=500K to prevent from one download from eating
  4142. all overall speed limit.
  4143. * src/DefaultBtInteractive.cc
  4144. * src/DefaultBtInteractive.h
  4145. * src/DefaultBtMessageDispatcher.cc
  4146. * src/DefaultBtMessageDispatcher.h
  4147. * src/DownloadCommand.cc
  4148. * src/DownloadCommand.h
  4149. * src/FtpNegotiationCommand.cc
  4150. * src/HttpResponseCommand.cc
  4151. * src/OptionHandlerFactory.cc
  4152. * src/PeerInteractionCommand.cc
  4153. * src/RequestGroup.cc
  4154. * src/RequestGroup.h
  4155. * src/RequestGroupMan.cc
  4156. * src/RequestGroupMan.h
  4157. * src/prefs.cc
  4158. * src/prefs.h
  4159. * src/usage_text.h
  4160. * test/DefaultBtMessageDispatcherTest.cc
  4161. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4162. Documented select-file option in Input File section.
  4163. Documented --http-auth-challenge option.
  4164. * doc/aria2c.1.txt
  4165. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4166. Now select-file can be specified in the uri list(-i list).
  4167. * src/BtContext.cc
  4168. * src/BtContext.h
  4169. * src/RequestGroup.cc
  4170. * src/Sequence.h
  4171. * src/download_helper.cc
  4172. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4173. Made the upper value of --max-concurrent-downloads options unlimited.
  4174. * src/OptionHandlerFactory.cc
  4175. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4176. Fixed the bug that disk writer is not created even if it shares
  4177. same piece with the preceding file if the length of previous file
  4178. is 0.
  4179. * src/MultiDiskAdaptor.cc
  4180. * test/MultiDiskAdaptorTest.cc
  4181. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4182. In BitTorrent, Open files in read-only mode for hash check. After
  4183. that, re-open file in read/write mode only when the download is
  4184. not finished.
  4185. * src/AbstractDiskWriter.cc
  4186. * src/AbstractDiskWriter.h
  4187. * src/AbstractSingleDiskAdaptor.cc
  4188. * src/AbstractSingleDiskAdaptor.h
  4189. * src/BtCheckIntegrityEntry.cc
  4190. * src/DiskAdaptor.h
  4191. * src/DiskWriter.h
  4192. * src/MultiDiskAdaptor.cc
  4193. * src/MultiDiskAdaptor.h
  4194. * src/RequestGroup.cc
  4195. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4196. Added --http-auth-challenge option. If it is set to true(by
  4197. default), aria2 sends HTTP authorization header only when it is
  4198. requested by the server. If false is set, then authorization
  4199. header is always sent to the server. This is useful for servers
  4200. that don't respond 401 code when authentication is required.
  4201. There is an exception: if username and password are embedded in
  4202. URI, authorization header is always sent to the server regardless
  4203. of this option.
  4204. * src/AuthConfigFactory.cc
  4205. * src/HttpSkipResponseCommand.cc
  4206. * src/OptionHandlerFactory.cc
  4207. * src/prefs.cc
  4208. * src/prefs.h
  4209. * src/usage_text.h
  4210. * test/AuthConfigFactoryTest.cc
  4211. * test/HttpRequestTest.cc
  4212. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4213. * Release 1.2.0
  4214. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4215. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4216. Thanks to all translators.
  4217. * po/es.po
  4218. * po/ja.po
  4219. * po/ru.po
  4220. * po/uk.po
  4221. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Call deleteSocketForReadCheck() before socket is closed.
  4223. * src/HttpListenCommand.cc
  4224. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4225. Defined virtual destructor for BObject.
  4226. * src/bencode.h
  4227. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4228. Rewritten BDE to make it efficient.
  4229. * src/bencode.cc
  4230. * src/bencode.h
  4231. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4232. Removed function throw list.
  4233. * src/bencode.cc
  4234. * src/bencode.h
  4235. * test/BencodeTest.cc
  4236. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4237. Enclosed all URLs in double quotes in command-line examples.
  4238. * doc/aria2c.1.txt
  4239. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. Updated reference/see also section.
  4241. * README
  4242. * doc/aria2c.1.txt
  4243. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Reorganized man page based on man man-pages.
  4245. * doc/aria2c.1.txt
  4246. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4247. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4248. because same documents are available in man page. Added
  4249. References section.
  4250. * README
  4251. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4252. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4253. PERFORMANCE PROFILE section.
  4254. * doc/aria2c.1.txt
  4255. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4256. Rewritten the section for configuration file.
  4257. * README
  4258. * doc/aria2c.1.txt
  4259. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4260. Fixed the segmentation fault during execution of choking algorithm
  4261. in leecher state because of broken compare operator
  4262. implementation.
  4263. * src/BtLeecherStateChoke.cc
  4264. * src/BtLeecherStateChoke.h
  4265. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4266. Open file in binary mode.
  4267. * src/CookieStorage.cc
  4268. * src/DHTSetup.cc
  4269. * src/DHTUtil.cc
  4270. * src/Netrc.cc
  4271. * src/NsCookieParser.cc
  4272. * src/ProtocolDetector.cc
  4273. * src/RequestGroupMan.cc
  4274. * src/Signature.cc
  4275. * src/bencode.cc
  4276. * src/download_helper.cc
  4277. * src/option_processing.cc
  4278. * test/CookieParserTest.cc
  4279. * test/DefaultBtProgressInfoFileTest.cc
  4280. * test/FileTest.cc
  4281. * test/GZipDecoderTest.cc
  4282. * test/RequestGroupManTest.cc
  4283. * test/SignatureTest.cc
  4284. * test/SingleFileAllocationIteratorTest.cc
  4285. * test/UriListParserTest.cc
  4286. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4287. Removed operator[] because it is ambiguous with built-in []
  4288. operator.
  4289. * src/array_fun.h
  4290. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4291. Fixed compile error
  4292. * src/OptionParser.cc
  4293. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4294. Added missing call to arrayWrapperConst
  4295. * test/array_funTest.cc
  4296. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4297. Use array_wrapper instead of array_ptr.
  4298. * src/DHTRoutingTableDeserializer.cc
  4299. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4300. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  4301. * src/array_fun.h
  4302. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. Added array_wrapper template.
  4304. * src/array_fun.h
  4305. * test/array_funTest.cc
  4306. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4307. Use operator T* of array_ptr.
  4308. * src/OptionParser.cc
  4309. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4310. Use localhost instead of 127.0.0.1
  4311. * test/FtpConnectionTest.cc
  4312. * test/MSEHandshakeTest.cc
  4313. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4314. Added operator T*
  4315. * src/array_fun.h
  4316. * test/array_funTest.cc
  4317. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4318. Use dynamically allocated char array to detect memory access
  4319. violation.
  4320. * src/DHTRoutingTableDeserializer.cc
  4321. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4322. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  4323. defined.
  4324. * src/PeerMessageUtil.cc
  4325. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4326. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  4327. * configure.ac
  4328. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4329. Added a check to see struct sockaddr_in has sin_len member.
  4330. * configure.ac
  4331. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. Fixed buffer overrun.
  4333. * src/DHTRoutingTableDeserializer.cc
  4334. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. Added LL for long long int constant.
  4336. * test/FtpConnectionTest.cc
  4337. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4338. Casted to unsigned int to suppress compiler warning on netbsd.
  4339. * src/BtRuntime.h
  4340. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4341. Assign the value of tv.tv_sec to time_t timesec instead of giving
  4342. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  4343. type time_t.
  4344. * src/SimpleLogger.cc
  4345. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4346. Added test for FtpConnection::receiveSizeResponse().
  4347. * test/FtpConnectionTest.cc
  4348. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Fix epoll error on the old kernel 2.6.8 or ealier.
  4350. * src/EpollEventPoll.cc
  4351. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4352. Use Util::parseLLInt instead of sscanf for portability. The
  4353. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  4354. * src/FtpConnection.cc
  4355. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4356. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  4357. block. It should not filter anything.
  4358. * src/BitfieldMan.cc
  4359. * src/ConsoleStatCalc.cc
  4360. * test/BitfieldManTest.cc
  4361. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4362. Fixed the bug that the boolean options that don't take arguments
  4363. don't work.
  4364. * src/OptionHandlerImpl.h
  4365. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4366. Fixed broken selected file BitTorrent download.
  4367. * src/MultiDiskAdaptor.cc
  4368. * test/MultiDiskAdaptorTest.cc
  4369. * test/MultiFileAllocationIteratorTest.cc
  4370. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4371. Fixed #define guard for EpollEventPoll
  4372. * src/EpollEventPoll.h
  4373. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4374. Wait 2 seconds. 1 second is sometimes not enough.
  4375. * test/TimeSeedCriteriaTest.cc
  4376. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4377. Use localhost instead of 127.0.0.1.
  4378. * test/DHTConnectionImplTest.cc
  4379. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4380. Suppressed compiler warning.
  4381. * src/AdaptiveURISelector.cc
  4382. * src/DefaultPieceStorage.cc
  4383. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4384. Defined virtual destructor.
  4385. * src/MetalinkParserState.h
  4386. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4387. Give NULL for second argument of getaddrinfo instead of "0".
  4388. * src/NameResolver.cc
  4389. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4390. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  4391. included strptime doesn't parse data for this format.
  4392. * src/FtpConnection.cc
  4393. * test/FtpConnectionTest.cc
  4394. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Removed tests giving -1 for unsigned argument.
  4396. * test/SingleFileDownloadContextTest.cc
  4397. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4398. Don't use sha256 in tests because it might not be supported by the
  4399. SSL library.
  4400. * test/MetalinkProcessorTest.cc
  4401. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4402. Removed tests giving -1 for unsigned argument.
  4403. * test/AlphaNumberDecoratorTest
  4404. * test/BitfieldManTest.cc
  4405. * test/DefaultBtContextTest.cc
  4406. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4407. Fixed compile error without libcares when epoll is available.
  4408. * src/EpollEventPoll.cc
  4409. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4410. Included fstream instead of iostream.
  4411. * test/SignatureTest.cc
  4412. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4413. Removed #include <algorithm>
  4414. * test/RequestGroupTest.cc
  4415. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4416. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  4417. using RequestGroup::extractURIResult().
  4418. * src/AdaptiveURISelector.cc
  4419. * src/RequestGroup.cc
  4420. * src/RequestGroup.h
  4421. * test/RequestGroupTest.cc
  4422. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4423. Added tests for array_ptr.
  4424. * test/array_funTest.cc
  4425. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4426. Don't send ip parameter to a tracker if ip parameter is empty
  4427. string.
  4428. * src/DefaultBtAnnounce.cc
  4429. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4430. Adjusted line feed.
  4431. * src/version_usage.cc
  4432. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4433. Print tags, possible values when OptionHandlerException is caught.
  4434. * src/option_processing.cc
  4435. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4436. Changed the message for FatalException.
  4437. * src/OptionParser.cc
  4438. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4439. Documented --bt-external-ip option in man page. Updated man pages
  4440. for --proxy-method option.
  4441. * doc/aria2c.1.txt
  4442. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4443. Use GET method for FTP via HTTP proxy.
  4444. * src/FtpInitiateConnectionCommand.cc
  4445. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4446. Changed the default value of --proxy-method option from 'tunnel'
  4447. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  4448. option.
  4449. * src/AbstractCommand.cc
  4450. * src/AbstractCommand.h
  4451. * src/FtpInitiateConnectionCommand.cc
  4452. * src/HttpDownloadCommand.cc
  4453. * src/HttpInitiateConnectionCommand.cc
  4454. * src/HttpInitiateConnectionCommand.h
  4455. * src/OptionHandlerFactory.cc
  4456. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4457. Initialized _logger
  4458. * src/SelectEventPoll.cc
  4459. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4460. Defined a copy constructor for the same type.
  4461. * src/SharedHandle.h
  4462. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Added OptionParser::parseArg() which internally uses getopt_long
  4464. to parse command-line options. All command-line options are now
  4465. configured by OptionHandler. No manual editing of struct option*
  4466. is required any more.
  4467. * src/NameMatchOptionHandler.h
  4468. * src/OptionHandler.h
  4469. * src/OptionHandlerFactory.cc
  4470. * src/OptionHandlerImpl.h
  4471. * src/OptionParser.cc
  4472. * src/OptionParser.h
  4473. * src/array_fun.h
  4474. * src/main.cc
  4475. * src/option_processing.cc
  4476. * test/OptionHandlerTest.cc
  4477. * test/OptionParserTest.cc
  4478. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4479. Fixed configure error with --disable-epoll
  4480. * configure.ac
  4481. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4482. Fixed compile error when HAVE_EPOLL is not defined.
  4483. Fixed linker error on bigendian systems.
  4484. * src/SocketCore.cc
  4485. * src/SocketCore.h
  4486. * test/DefaultBtProgressInfoFileTest.cc
  4487. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Added --bt-external-ip option. You can specify the external IP
  4489. address to report to a BitTorrent tracker. Although this function
  4490. is named 'external', it can accept any kind of IP addresses.
  4491. * src/DefaultBtAnnounce.cc
  4492. * src/OptionHandlerFactory.cc
  4493. * src/option_processing.cc
  4494. * src/prefs.cc
  4495. * src/prefs.h
  4496. * src/usage_text.h
  4497. * test/DefaultBtAnnounceTest.cc
  4498. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4499. Extracted the algorithm to find the longest incremental sequence
  4500. as max_sequence template.
  4501. * src/LongestSequencePieceSelector.cc
  4502. * src/a2algo.h
  4503. * test/Makefile.am
  4504. * test/a2algoTest.cc
  4505. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4506. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  4507. * src/usage_text.h
  4508. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4509. Updated doc for --uri-selector, --http-server-listen-port and
  4510. --enable-http-server option. Documented --event-poll option.
  4511. * doc/aria2c.1.txt
  4512. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4513. Updated doc for --enable-http-server.
  4514. * src/usage_text.h
  4515. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4516. Documented --http-server-listen-port and --enable-http-server in
  4517. man page.
  4518. * doc/aria2c.1.txt
  4519. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4520. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  4521. translations. Thanks to all translators.
  4522. * po/es.po
  4523. * po/id.po
  4524. * po/it.po
  4525. * po/ru.po
  4526. * po/uk.po
  4527. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Bump up version number to 1.2.0
  4529. * configure.ac
  4530. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. BtContext::getAnnounceTiers() now returns const reference.
  4532. * src/BtContext.h
  4533. * src/DefaultBtContext.cc
  4534. * src/DefaultBtContext.h
  4535. * test/MockBtContext.h
  4536. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4537. Change the number of retries for tracker request based on the
  4538. number of available tracker in a torrent file.
  4539. * src/TrackerWatcherCommand.cc
  4540. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4541. Added _maxTries property to RequestGroup and assign the option
  4542. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  4543. RequestGroup::getMaxTries() instead of
  4544. Option::getAsInt(PREF_MAX_TRIES).
  4545. * src/AbstractCommand.cc
  4546. * src/RequestGroup.cc
  4547. * src/RequestGroup.h
  4548. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4549. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  4550. Mandriva. I modified the patch: make RequestGroup have the
  4551. timeout value and AdaptiveURISelector directly modifies that
  4552. value.
  4553. * src/AbstractCommand.cc
  4554. * src/AdaptiveURISelector.cc
  4555. * src/AdaptiveURISelector.h
  4556. * src/FtpNegotiationCommand.cc
  4557. * src/RequestGroup.cc
  4558. * src/RequestGroup.h
  4559. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4560. Fixed compiler warning
  4561. * test/IteratableChecksumValidatorTest.cc
  4562. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4563. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  4564. integrated downloads. This PieceSelector subclass finds the
  4565. longest continuous sequence in the available missing pieces and
  4566. selects the last index of such sequence. This makes HTTP/FTP
  4567. connections less interrupted by the pieces obtained by BitTorrent
  4568. peers.
  4569. * src/DefaultPieceStorage.cc
  4570. * src/DefaultPieceStorage.h
  4571. * src/LongestSequencePieceSelector.cc
  4572. * src/LongestSequencePieceSelector.h
  4573. * src/Makefile.am
  4574. * src/PieceSelector.h
  4575. * src/RarestPieceSelector.h
  4576. * src/RequestGroup.cc
  4577. * test/BtDependencyTest.cc
  4578. * test/DefaultPieceStorageTest.cc
  4579. * test/IteratableChecksumValidatorTest.cc
  4580. * test/LongestSequencePieceSelectorTest.cc
  4581. * test/Makefile.am
  4582. * test/SegmentManTest.cc
  4583. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4584. Fixed the bug that the average speed is wrong in
  4585. http/ftp/BitTorrent integrated download. Only the download bytes
  4586. in BitTorrent were considered.
  4587. * src/RequestGroup.cc
  4588. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4589. Choose port for BitTorrent/DHT randomly from the specified range.
  4590. * src/DHTConnectionImpl.cc
  4591. * src/PeerListenCommand.cc
  4592. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4593. Send HTTP Authorization header only if it is requested by the
  4594. server(response 401). There are some exceptions. The authorization
  4595. header for proxy is always sent if it is available without request
  4596. by the server. If username/password is specified in the URI, it
  4597. is immediately sent to the server without request by the server.
  4598. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  4599. SharedHandle<AuthConfig>().
  4600. NetrcAuthResolver::resolveAuthConfig() returns
  4601. SharedHandle<AuthConfig>() if no AuthConfig is available.
  4602. * src/AbstractAuthResolver.cc
  4603. * src/AbstractProxyRequestCommand.cc
  4604. * src/AuthConfigFactory.cc
  4605. * src/AuthConfigFactory.h
  4606. * src/HttpConnection.cc
  4607. * src/HttpRequest.cc
  4608. * src/HttpRequest.h
  4609. * src/HttpResponse.cc
  4610. * src/HttpResponseCommand.cc
  4611. * src/HttpSkipResponseCommand.cc
  4612. * test/AuthConfigFactoryTest.cc
  4613. * test/HttpRequestTest.cc
  4614. * test/HttpResponseTest.cc
  4615. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4616. Remove leading "--" from help keyword and a substring after "="
  4617. from help keyword, so that one can query options by '-h--max-' or
  4618. '-hmax-peers=10'.
  4619. * src/option_processing.cc
  4620. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4621. Rewritten PStringVisitor and its implementation.
  4622. * src/PStringBuildVisitor.cc
  4623. * src/PStringBuildVisitor.h
  4624. * src/PStringDatum.h
  4625. * src/PStringNumLoop.h
  4626. * src/PStringSegment.cc
  4627. * src/PStringSegment.h
  4628. * src/PStringSelect.h
  4629. * src/PStringVisitor.h
  4630. * src/download_helper.cc
  4631. * test/PStringBuildVisitorTest.cc
  4632. * test/ParameterizedStringParserTest.cc
  4633. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4634. Persist connection between the built-in HTTP server and a client
  4635. if a client supports keep-alive. Fixed the bug that aria2 exits
  4636. when the HTTP server receives EOF from a client.
  4637. * src/HttpServer.cc
  4638. * src/HttpServer.h
  4639. * src/HttpServerCommand.cc
  4640. * src/HttpServerCommand.h
  4641. * src/HttpServerResponseCommand.cc
  4642. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4643. Added experimental built-in HTTP server. Currently, when a client
  4644. accesses to the server, it responds with the current download
  4645. progress. By default, it is disabled. To enable the server, give
  4646. --enable-http-server option. To change the default port number
  4647. for the server to listen to, use --http-server-listen-port option.
  4648. The response HTML is very simple and refreshes it self each 1
  4649. second. Because of this refresh, you see flicker in normal web
  4650. browser such as Firefox. I recommend to use console-based browser
  4651. such as elinks, w3m. To connect to the server, run 'elinks
  4652. http://localhost:6800/' while running aria2. Please replace port
  4653. number '6800'(which is default) with your preference.
  4654. * src/DownloadEngineFactory.cc
  4655. * src/HttpHeader.cc
  4656. * src/HttpHeader.h
  4657. * src/HttpHeaderProcessor.cc
  4658. * src/HttpHeaderProcessor.h
  4659. * src/HttpListenCommand.cc
  4660. * src/HttpListenCommand.h
  4661. * src/HttpServer.cc
  4662. * src/HttpServer.h
  4663. * src/HttpServerCommand.cc
  4664. * src/HttpServerCommand.h
  4665. * src/HttpServerResponseCommand.cc
  4666. * src/HttpServerResponseCommand.h
  4667. * src/Makefile.am
  4668. * src/OptionHandlerFactory.cc
  4669. * src/Util.cc
  4670. * src/Util.h
  4671. * src/help_tags.h
  4672. * src/option_processing.cc
  4673. * src/prefs.cc
  4674. * src/prefs.h
  4675. * src/usage_text.h
  4676. * test/HttpHeaderProcessorTest.cc
  4677. * test/UtilTest.cc
  4678. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4679. Removed.
  4680. * src/CheckIntegrityMan.cc
  4681. * src/FileAllocationMan.cc
  4682. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4683. Made (piece) hash check sequential for each RequestGroup because
  4684. simultaneous hash check is slower than sequential execution.
  4685. * src/CheckIntegrityCommand.cc
  4686. * src/CheckIntegrityDispatcherCommand.cc
  4687. * src/CheckIntegrityDispatcherCommand.h
  4688. * src/CheckIntegrityMan.h
  4689. * src/ConsoleStatCalc.cc
  4690. * src/DownloadCommand.cc
  4691. * src/DownloadEngine.cc
  4692. * src/DownloadEngine.h
  4693. * src/DownloadEngineFactory.cc
  4694. * src/Makefile.am
  4695. * src/Makefile.in
  4696. * src/RequestGroup.cc
  4697. * src/StatCalc.h
  4698. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4699. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  4700. SequentialDispatcherCommand.
  4701. * src/FileAllocationDispatcherCommand.cc
  4702. * src/SequentialDispatcherCommand.h
  4703. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4704. Rewritten FileAllocationDispatcherCommand using brand new
  4705. SequentialDispatcherCommand.
  4706. * src/DownloadEngineFactory.cc
  4707. * src/FileAllocationCommand.cc
  4708. * src/FileAllocationDispatcherCommand.cc
  4709. * src/FileAllocationDispatcherCommand.h
  4710. * src/Makefile.am
  4711. * src/SequentialDispatcherCommand.h
  4712. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4713. Replaced FileAllocationMan with
  4714. SequentialPicker<FileAllocationEntry>.
  4715. * src/BtCheckIntegrityEntry.cc
  4716. * src/ConsoleStatCalc.cc
  4717. * src/DownloadEngine.cc
  4718. * src/DownloadEngine.h
  4719. * src/DownloadEngineFactory.cc
  4720. * src/FileAllocationCommand.cc
  4721. * src/FileAllocationDispatcherCommand.cc
  4722. * src/FileAllocationMan.h
  4723. * src/Makefile.am
  4724. * src/SequentialPicker.h
  4725. * src/StatCalc.h
  4726. * src/StreamCheckIntegrityEntry.cc
  4727. * test/Makefile.am
  4728. * test/SequentialPickerTest.cc
  4729. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4730. Added doc for adaptive URI selector.
  4731. * doc/aria2c.1.txt
  4732. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4733. Added doc for adaptive URI selector.
  4734. * src/usage_text.h
  4735. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4736. Added doc for --bt-max-peers option.
  4737. * doc/aria2c.1.txt
  4738. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4739. Added doc for --bt-hash-check-seed option.
  4740. * doc/aria2c.1.txt
  4741. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4742. Documented exit codes.
  4743. * doc/aria2c.1.txt
  4744. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4745. Added --bt-max-peers option to specify the maximum number of peers
  4746. per torrent. 0 means unlimited number of peers.
  4747. * src/ActivePeerConnectionCommand.cc
  4748. * src/BtRuntime.h
  4749. * src/DefaultPeerStorage.cc
  4750. * src/DefaultPeerStorage.h
  4751. * src/OptionHandlerFactory.cc
  4752. * src/RequestGroup.cc
  4753. * src/option_processing.cc
  4754. * src/prefs.cc
  4755. * src/prefs.h
  4756. * src/usage_text.h
  4757. * test/DefaultPeerStorageTest.cc
  4758. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4759. Added --bt-hash-check-seed option. If true is given to this
  4760. option, after hash check using --check-integrity option and file
  4761. is complete, continue to seed file. If you want to check file and
  4762. download it only when it is damaged or incomplete, set this option
  4763. to false. This option has effect only on BitTorrent download.
  4764. The default value is true(This is the same behavior with the
  4765. previous release).
  4766. * src/BtCheckIntegrityEntry.cc
  4767. * src/OptionHandlerFactory.cc
  4768. * src/option_processing.cc
  4769. * src/prefs.cc
  4770. * src/prefs.h
  4771. * src/usage_text.h
  4772. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4773. Updated copyright year.
  4774. * src/version_usage.cc
  4775. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4776. Rewritten the usage text for --bt-request-peer-speed-limit option.
  4777. * doc/aria2c.1.txt
  4778. * src/usage_text.h
  4779. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4780. Made the max value of split option unlimited.
  4781. * doc/aria2c.1.txt
  4782. * src/OptionHandlerFactory.cc
  4783. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4784. Fixed compile warning/error.
  4785. * src/DownloadResult.h
  4786. * src/HttpDownloadCommand.cc
  4787. * src/ServerStat.cc
  4788. * test/RequestGroupTest.cc
  4789. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4790. Added --event-poll option to select the method for polling events.
  4791. The available methods are "select" and "epoll". "epoll" is
  4792. available on Linux only. The earlier release has the compile
  4793. option to choose from these methods.
  4794. * configure.ac
  4795. * src/RequestGroupMan.cc
  4796. * src/OptionHandlerFactory.cc
  4797. * src/EpollEventPoll.h
  4798. * src/StreamFileAllocationEntry.cc
  4799. * src/a2io.h
  4800. * src/SelectEventPoll.h
  4801. * src/option_processing.cc
  4802. * src/prefs.h
  4803. * src/EpollEventPoll.cc
  4804. * src/EventPoll.h
  4805. * src/SocketCore.h
  4806. * src/Makefile.am
  4807. * src/main.cc
  4808. * src/DownloadEngine.h
  4809. * src/SelectEventPoll.cc
  4810. * src/DownloadEngine.cc
  4811. * src/SocketCore.cc
  4812. * src/DownloadEngineFactory.cc
  4813. * src/Makefile.in
  4814. * src/prefs.cc
  4815. * src/usage_text.h
  4816. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4817. Included RecoverableException.h from main.cc
  4818. * src/main.cc
  4819. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4820. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  4821. now returns last error encountered in the HTTP/FTP downloads as a
  4822. exit status value. If all downloads finished successfully, aria2
  4823. returns 0. The error code is defined in src/DownloadResult.h.
  4824. The error occurred in the download currently in progress is not
  4825. reported as a last error. If no error has encountered but there
  4826. are in progress or waiting downloads, aria2 returns 7.
  4827. * src/AbstractCommand.cc
  4828. * src/DlAbortEx.h
  4829. * src/DlRetryEx.h
  4830. * src/DownloadCommand.cc
  4831. * src/DownloadFailureException.h
  4832. * src/DownloadResult.h
  4833. * src/FtpNegotiationCommand.cc
  4834. * src/HttpSkipResponseCommand.cc
  4835. * src/Makefile.am
  4836. * src/MultiUrlRequestInfo.cc
  4837. * src/MultiUrlRequestInfo.h
  4838. * src/RecoverableException.h
  4839. * src/RequestGroup.cc
  4840. * src/RequestGroup.h
  4841. * src/RequestGroupMan.cc
  4842. * src/RequestGroupMan.h
  4843. * src/URIResult.cc
  4844. * src/URIResult.h
  4845. * src/main.cc
  4846. * src/option_processing.cc
  4847. * test/RequestGroupTest.cc
  4848. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4849. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  4850. patch adds AdaptiveURISelector, which selects one of the bests
  4851. mirrors for first and reserved connections. For supplementary
  4852. ones, it returns mirrors which has not been tested yet, and if
  4853. each of them already tested, returns mirrors which has to be
  4854. tested again. Otherwise, it doesn't return anymore mirrors.
  4855. * src/AdaptiveURISelector.cc
  4856. * src/AdaptiveURISelector.h
  4857. * src/FtpNegotiationCommand.cc
  4858. * src/HttpResponseCommand.cc
  4859. * src/Makefile.am
  4860. * src/Makefile.in
  4861. * src/OptionHandlerFactory.cc
  4862. * src/RequestGroup.cc
  4863. * src/RequestGroup.h
  4864. * src/RequestGroupMan.cc
  4865. * src/ServerStat.cc
  4866. * src/ServerStat.h
  4867. * src/ServerStatMan.cc
  4868. * src/SpeedCalc.cc
  4869. * src/URISelector.h
  4870. * src/prefs.cc
  4871. * src/prefs.h
  4872. * test/RequestGroupManTest.cc
  4873. * test/ServerStatManTest.cc
  4874. * test/ServerStatTest.cc
  4875. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4876. Fixed unit test error.
  4877. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  4878. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4879. * Release 1.1.2
  4880. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4881. Updated Russian translation. Thanks to the translators.
  4882. * po/ru.po
  4883. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Added the description of --use-head option to man page.
  4885. * doc/aria2c.1.txt
  4886. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4887. Bump up version number to 1.1.2
  4888. * configure.ac
  4889. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4890. Added --use-head option to toggle whether HEAD method should be
  4891. used in the first HTTP request. By default aria2 uses HEAD method
  4892. as the first request. When the server doesn't recognize HEAD, then
  4893. give aria2 --use-head=false to force aria2 to use GET method
  4894. instead.
  4895. * src/OptionHandlerFactory.cc
  4896. * src/RequestGroupMan.cc
  4897. * src/option_processing.cc
  4898. * src/prefs.cc
  4899. * src/prefs.h
  4900. * src/usage_text.h
  4901. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4902. Fixed the bug that BitTorrent download doesn't finish when REJECT
  4903. message is received before CHOKE message. The old implementation
  4904. doen't clear the use-bit of the piece when recieved REJECT
  4905. message.
  4906. * src/DefaultBtMessageDispatcher.cc
  4907. * test/DefaultBtMessageDispatcherTest.cc
  4908. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4909. * Release 1.1.1
  4910. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4911. Bump up version number to 1.1.1.
  4912. * configure.ac
  4913. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4914. Fixed the bug that --summary-interval=0 doesn't work. The summary
  4915. is printed repeatedly.
  4916. * src/ConsoleStatCalc.cc
  4917. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4918. * Release 1.1.0
  4919. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4920. Added ifdef clause for conditional compilation.
  4921. * src/main.cc
  4922. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4923. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  4924. translations. Thanks to all translators.
  4925. * po/ja.po
  4926. * po/ru.po
  4927. * po/uk.po
  4928. * po/zh_CN.po
  4929. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4930. Added the preceding ">>> " before the message "Printing the
  4931. contents of file..." to make the output more readable.
  4932. * src/main.cc
  4933. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4934. Added try-catch block in the loop in showFiles() to continue the
  4935. operation even if the exception occurred in one file.
  4936. * src/main.cc (showFiles)
  4937. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4938. Made messages in showFiles() translatable.
  4939. * po/aria2.pot
  4940. * src/main.cc
  4941. * src/message.h
  4942. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4943. Print the contents of Torrent/Metalink files are printed without
  4944. -T/-M options.
  4945. * src/main.cc
  4946. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4947. Escaped '--' with '\--'
  4948. * README
  4949. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4950. Updated "How to build" section in README. Mentioned about
  4951. --with-ca-bundle compile option.
  4952. * README
  4953. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4954. Bump up version number to 1.1.0.
  4955. * configure.ac
  4956. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4957. Added a note for --dht-listen-port option.
  4958. * doc/aria2c.1.txt
  4959. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4960. Update doc for --realtime-chunk-checksum option.
  4961. * doc/aria2c.1.txt
  4962. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4963. Update doc for --realtime-chunk-checksum option.
  4964. * src/usage_text.h
  4965. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4966. Updated French, Japanese, Russian and Ukrainian translations.
  4967. Thanks to all translators.
  4968. * po/fr.po
  4969. * po/ja.po
  4970. * po/ru.po
  4971. * po/uk.po
  4972. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4973. Renamed aria2c.pot to aria2.pot
  4974. * po/aria2.pot
  4975. * po/aria2c.pot: Removed.
  4976. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4977. Removed MetaEntry.h
  4978. * src/Makefile.am
  4979. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4980. Rename file by appending digits if a local file exists and its
  4981. file size is larger than that of remote file with --continue
  4982. option. The old implementation just throws exception in such case.
  4983. * src/RequestGroup.cc
  4984. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4985. Fixed the bug that download progress summary is not printed in the
  4986. interval specified by the option.
  4987. * src/ConsoleStatCalc.cc
  4988. * src/ConsoleStatCalc.h
  4989. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4990. Fixed compiler warning
  4991. * src/Cookie.cc
  4992. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4993. Fixed the cookie implementation based on RFC2965.
  4994. Now if a value in domain field is not started with dot, then
  4995. prepend dot. That means a cookie with domain=sf.net is sent to
  4996. wiki.sf.net.
  4997. * src/Cookie.cc
  4998. * test/CookieParserTest.cc
  4999. * test/CookieStorageTest.cc
  5000. * test/CookieTest.cc
  5001. * test/NsCookieParserTest.cc
  5002. * test/Sqlite3MozCookieParserTest.cc
  5003. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5004. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5005. is enabled and the server doesn't support keep-alive.
  5006. * src/AbstractCommand.cc
  5007. * src/DownloadCommand.cc
  5008. * src/HttpDownloadCommand.cc
  5009. * src/HttpDownloadCommand.h
  5010. * src/HttpResponseCommand.cc
  5011. * src/Request.cc
  5012. * src/Request.h
  5013. * test/RequestTest.cc
  5014. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5015. Removed Dictionary/List/Data and its related classes.
  5016. * src/BencodeVisitor.cc: Removed.
  5017. * src/BencodeVisitor.h: Removed.
  5018. * src/Data.cc: Removed.
  5019. * src/Data.h: Removed.
  5020. * src/Dictionary.cc: Removed.
  5021. * src/Dictionary.h: Removed.
  5022. * src/List.cc: Removed.
  5023. * src/List.h: Removed.
  5024. * src/Makefile.am
  5025. * src/MetaEntry.h: Removed.
  5026. * src/MetaEntryVisitor.h: Removed.
  5027. * src/MetaFileUtil.cc: Removed.
  5028. * src/MetaFileUtil.h: Removed.
  5029. * test/BencodeVisitorTest.cc: Removed.
  5030. * test/DataTest.cc: Removed.
  5031. * test/DictionaryTest.cc: Removed.
  5032. * test/ListTest.cc: Removed.
  5033. * test/Makefile.am
  5034. * test/MetaFileUtilTest.cc: Removed.
  5035. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5036. Removed include of MetaEntry.h
  5037. * test/DHTMessageTrackerEntryTest.cc
  5038. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5039. Use BDE instead of Dictionary/List/Data.
  5040. * src/AnnounceList.cc
  5041. * src/AnnounceList.h
  5042. * test/AnnounceListTest.cc
  5043. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5044. Use BDE instead of Dictionary/List/Data.
  5045. * src/DHTAbstractMessage.cc
  5046. * src/DHTAbstractMessage.h
  5047. * src/DHTAnnouncePeerMessage.cc
  5048. * src/DHTAnnouncePeerMessage.h
  5049. * src/DHTAnnouncePeerReplyMessage.cc
  5050. * src/DHTAnnouncePeerReplyMessage.h
  5051. * src/DHTFindNodeMessage.cc
  5052. * src/DHTFindNodeMessage.h
  5053. * src/DHTFindNodeReplyMessage.cc
  5054. * src/DHTFindNodeReplyMessage.h
  5055. * src/DHTGetPeersMessage.cc
  5056. * src/DHTGetPeersMessage.h
  5057. * src/DHTGetPeersReplyMessage.cc
  5058. * src/DHTGetPeersReplyMessage.h
  5059. * src/DHTMessageFactory.h
  5060. * src/DHTMessageFactoryImpl.cc
  5061. * src/DHTMessageFactoryImpl.h
  5062. * src/DHTMessageReceiver.cc
  5063. * src/DHTMessageTracker.cc
  5064. * src/DHTMessageTracker.h
  5065. * src/DHTPingMessage.cc
  5066. * src/DHTPingMessage.h
  5067. * src/DHTPingReplyMessage.cc
  5068. * src/DHTPingReplyMessage.h
  5069. * src/DHTQueryMessage.cc
  5070. * src/DHTQueryMessage.h
  5071. * src/DHTResponseMessage.cc
  5072. * src/DHTResponseMessage.h
  5073. * test/DHTAnnouncePeerMessageTest.cc
  5074. * test/DHTAnnouncePeerReplyMessageTest.cc
  5075. * test/DHTFindNodeMessageTest.cc
  5076. * test/DHTFindNodeReplyMessageTest.cc
  5077. * test/DHTGetPeersMessageTest.cc
  5078. * test/DHTGetPeersReplyMessageTest.cc
  5079. * test/DHTMessageFactoryImplTest.cc
  5080. * test/DHTMessageTrackerTest.cc
  5081. * test/DHTPingMessageTest.cc
  5082. * test/DHTPingReplyMessageTest.cc
  5083. * test/MockDHTMessageFactory.h
  5084. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5085. Added tests the case where length < 0 is specified.
  5086. * test/BencodeTest.cc
  5087. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5088. Fixed memory leak in decoderawstring()
  5089. * src/bencode.cc
  5090. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5091. Added missing #ifdef guard. Added uc() function for String and
  5092. removeKey() for Dict.
  5093. * src/bencode.cc
  5094. * src/bencode.h
  5095. * test/BencodeTest.cc
  5096. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5097. Use BDE instead of Dictionary/List/Data.
  5098. * src/HandshakeExtensionMessage.cc
  5099. * src/HandshakeExtensionMessage.h
  5100. * test/HandshakeExtensionMessageTest.cc
  5101. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5102. Added --max-overall-upload-limit option. This option limits the
  5103. overall upload speed. Stated in help message that the existing
  5104. --max-upload-limit option limits the upload speed per each
  5105. torrent. Man page is also updated.
  5106. * doc/aria2c.1.txt
  5107. * src/DefaultBtMessageDispatcher.cc
  5108. * src/DefaultBtMessageDispatcher.h
  5109. * src/OptionHandlerFactory.cc
  5110. * src/PeerInteractionCommand.cc
  5111. * src/option_processing.cc
  5112. * src/prefs.cc
  5113. * src/prefs.h
  5114. * src/usage_text.h
  5115. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5116. Use BDE instead of Dictionary/List/Data classes.
  5117. * src/CompactPeerListProcessor.cc
  5118. * src/CompactPeerListProcessor.h
  5119. * src/DefaultBtAnnounce.cc
  5120. * src/DefaultBtContext.cc
  5121. * src/DefaultBtContext.h
  5122. * src/DefaultPeerListProcessor.cc
  5123. * src/DefaultPeerListProcessor.h
  5124. * src/DelegatingPeerListProcessor.cc
  5125. * src/DelegatingPeerListProcessor.h
  5126. * src/PeerListProcessor.h
  5127. * src/UTPexExtensionMessage.cc
  5128. * src/Util.h
  5129. * src/message.h
  5130. * test/DefaultBtContextTest.cc
  5131. * test/DefaultPeerListProcessorTest.cc
  5132. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5133. Added bencode helper functions and BDE class.
  5134. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5135. * src/Makefile.am
  5136. * src/bencode.cc
  5137. * src/bencode.h
  5138. * test/BencodeTest.cc
  5139. * test/Makefile.am
  5140. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5141. Fixed the bug that bad URI is sent to the tracker when the announe
  5142. URI in torrent file includes query.
  5143. * src/DefaultBtAnnounce.cc
  5144. * test/DefaultBtAnnounceTest.cc
  5145. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5146. Added Option::blank().
  5147. Use !Option::blank(name) instead of Option::defined(name) for
  5148. the options that take filename.
  5149. * src/MultiUrlRequestInfo.cc
  5150. * src/Option.cc
  5151. * src/Option.h
  5152. * src/main.cc
  5153. * src/option_processing.cc
  5154. * test/OptionTest.cc
  5155. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Documented the default value of --check-certificate option in man
  5157. page.
  5158. * doc/aria2c.1.txt
  5159. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5160. Enabled --check-certificate by default. Added compile
  5161. time(configure) option --with-ca-bundle to specify CA bundle.
  5162. Warn if --check-certificate=true and --ca-certificate is not
  5163. specified or loading CA certificate is failed.
  5164. * configure.ac
  5165. * src/MultiUrlRequestInfo.cc
  5166. * src/OptionHandlerFactory.cc
  5167. * src/message.h
  5168. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5169. Mentioned https tag in help option.
  5170. * doc/aria2c.1.txt
  5171. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5172. Added `https' tag to help option category. Added https tag to
  5173. --ca-certificate, --certificate, --check-certificate and
  5174. --private-key option.
  5175. * src/OptionHandlerFactory.cc
  5176. * src/help_tags.h
  5177. * src/option_processing.cc
  5178. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5179. Changed the package name from `aria2c' to `aria2' in order to fix
  5180. the packaging issue in Debian and Fedora. The name of the
  5181. executable is not changed.
  5182. * configure.ac
  5183. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5184. Fixed typos
  5185. * src/usage_text.h
  5186. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5187. Fixed typos and updated doc.
  5188. * README
  5189. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5190. Fixed typos
  5191. * doc/aria2c.1.txt
  5192. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5193. Fixed typos
  5194. * src/usage_text.h
  5195. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5196. Print a message when no files to download.
  5197. * src/download_helper.cc
  5198. * src/main.cc
  5199. * src/message.h
  5200. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5201. RFC3986 complied Percent-Encoding(urlencode).
  5202. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5203. ones.
  5204. * src/Request.cc
  5205. * src/Util.cc
  5206. * src/Util.h
  5207. * test/BtHandshakeMessageTest.cc
  5208. * test/DefaultBtAnnounceTest.cc
  5209. * test/DefaultBtContextTest.cc
  5210. * test/RequestTest.cc
  5211. * test/UtilTest.cc
  5212. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5213. Fixed the bug that prevents aria2 from downloading 0-length files
  5214. via HTTP/FTP.
  5215. * src/DefaultBtContext.cc
  5216. * src/DefaultBtContext.h
  5217. * src/DownloadContext.h
  5218. * src/FtpNegotiationCommand.cc
  5219. * src/HttpResponseCommand.cc
  5220. * src/HttpResponseCommand.h
  5221. * src/RequestGroup.cc
  5222. * src/SingleFileDownloadContext.cc
  5223. * src/SingleFileDownloadContext.h
  5224. * test/BtPostDownloadHandlerTest.cc
  5225. * test/MetalinkPostDownloadHandlerTest.cc
  5226. * test/MockBtContext.h
  5227. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5228. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5229. * src/option_processing.cc
  5230. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5231. Applied aria2-1.0.1-mingw.patch.
  5232. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5233. mingw.
  5234. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5235. * src/SocketCore.cc
  5236. * src/a2netcompat.h
  5237. * test/SocketCoreTest.cc
  5238. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5239. * Release 1.0.1
  5240. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5241. Updated Ukrainian and Norwegian Nynorsk translations.
  5242. Thanks to all translators.
  5243. * po/nn.po
  5244. * po/uk.po
  5245. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5246. Don't show download result when -S option is used.
  5247. * src/main.cc
  5248. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5249. Bump up version number to 1.0.1
  5250. * configure.ac
  5251. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5252. Closed files after the test cases in MultiDiskWriterTest::
  5253. testResetDiskWriterEntries(). This will fix the unit test error
  5254. in mingw32 build.
  5255. * test/MultiDiskWriterTest.cc
  5256. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5257. Use HEAD method to get file size from HTTP server for segmented
  5258. downloading.
  5259. The request to the BitTorrent Tracker always uses GET method because
  5260. the response of the tracker is small and it doesn't need segmented
  5261. download.
  5262. * src/FtpNegotiationCommand.cc
  5263. * src/HttpRequest.cc
  5264. * src/HttpResponseCommand.cc
  5265. * src/HttpSkipResponseCommand.cc
  5266. * src/RequestGroup.cc
  5267. * src/RequestGroup.h
  5268. * src/TrackerWatcherCommand.cc
  5269. * test/HttpRequestTest.cc
  5270. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5271. Fixed the bug that causes floating exception when -T option is used and
  5272. no URIs are given.
  5273. * src/download_helper.cc
  5274. * test/DownloadHelperTest.cc
  5275. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  5276. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  5277. errors in MinGW:
  5278. Closed file after saving server stats (RequestGroupMan.cc)
  5279. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  5280. Ignored case & handled 2-digit years (strptime.c)
  5281. Added missing suseconds_t definition (a2time.h)
  5282. Fixed socket CLOSE() define (SocketCore.cc)
  5283. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  5284. Changed utime() test values from x000 to x00000 as MinGW failed on
  5285. values less than timezone offset from Unix epoch
  5286. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  5287. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  5288. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  5289. handle negative dates (CookieParserTest.cc)
  5290. * src/a2time.h
  5291. * src/FtpConnection.cc
  5292. * src/RequestGroupMan.cc
  5293. * src/SocketCore.cc
  5294. * src/strptime.c
  5295. * test/CookieParserTest.cc
  5296. * test/CopyDiskAdaptorTest.cc
  5297. * test/FileTest.cc
  5298. * test/FtpConnectionTest.cc
  5299. * test/MultiDiskAdaptorTest.cc
  5300. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5301. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  5302. * doc/aria2c.1.txt
  5303. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5304. * Release 1.0.0
  5305. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5306. Added '~' to reserved characters.
  5307. * src/Util.cc
  5308. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5309. Do not urlencode Request::url in setUrl() because we want unmodified
  5310. URL using Request::getUrl()
  5311. * src/Request.cc
  5312. * src/Request.h
  5313. * test/RequestTest.cc
  5314. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5315. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  5316. Thanks to all translators.
  5317. * po/bg.po
  5318. * po/fr.po
  5319. * po/ja.po
  5320. * po/ru.po
  5321. * po/uk.po
  5322. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5323. Bump up version number to 1.0.0
  5324. * configure.ac
  5325. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5326. Added nosqlite3 build to build_test.sh.
  5327. Renamed noxml as expat.
  5328. * build_test.sh
  5329. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5330. Updated INPUT FILE section.
  5331. * doc/aria2c.1.txt
  5332. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5333. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  5334. on big endian systems because test .aria2 files are made for little
  5335. endian systems.
  5336. * test/DefaultBtProgressInfoFileTest.cc
  5337. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5338. Dropped ares support.
  5339. * README
  5340. * configure.ac
  5341. * m4/libares.m4: Removed.
  5342. * src/AsyncNameResolver.cc
  5343. * src/Makefile.am
  5344. * test/Makefile.am
  5345. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  5347. Removed const qualifier from DiskWriter::size().
  5348. * src/AbstractDiskWriter.cc
  5349. * src/AbstractDiskWriter.h
  5350. * src/ByteArrayDiskWriter.cc
  5351. * src/ByteArrayDiskWriter.h
  5352. * src/DiskWriter.h
  5353. * test/ByteArrayDiskWriterTest.cc
  5354. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5355. Fixed the bug that causes segmentation fault/bus error during executing
  5356. choking algorithm while seeding. This is caused by improper
  5357. implementation of compare function which returns inconsistent results
  5358. depending on the timing of last unchoke.
  5359. * src/BtSeederStateChoke.cc
  5360. * src/BtSeederStateChoke.h
  5361. * src/DefaultPeerStorage.cc
  5362. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5363. Removed TODO
  5364. * TODO
  5365. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5366. Added a section that explains how to pass argument to options that
  5367. takes optional arguments with its short form.
  5368. * doc/aria2c.1.txt
  5369. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5370. Added -u for the short form of --max-upload-limit option.
  5371. * doc/aria2c.1.txt
  5372. * src/option_processing.cc
  5373. * src/usage_text.h
  5374. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5375. Added -V for the short form of --check-integrity option.
  5376. Now the argument of --check-integrity option is optional:
  5377. if it is omitted, it is evaluated as true.
  5378. * doc/aria2c.1.txt
  5379. * src/option_processing.cc
  5380. * src/usage_text.h
  5381. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5382. Made the default value of --ftp-pasv option set to true and it can take
  5383. true/false values.
  5384. * src/OptionHandlerFactory.cc
  5385. * src/option_processing.cc
  5386. * src/usage_text.h
  5387. * doc/aria2c.1.txt
  5388. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5389. Given custom random number generator to std::random_shuffle.
  5390. * src/AnnounceList.cc
  5391. * src/BtLeecherStateChoke.cc
  5392. * src/BtSeederStateChoke.cc
  5393. * src/DefaultBtRequestFactory.cc
  5394. * src/MetalinkEntry.cc
  5395. * src/RarestPieceSelector.cc
  5396. * src/SimpleRandomizer.cc
  5397. * src/SimpleRandomizer.h
  5398. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5399. Now the default value of --enable-direct-io is true.
  5400. * src/OptionHandlerFactory.cc
  5401. * doc/aria2c.1.txt
  5402. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5403. Erase peer before executing onReturningPeer and onErasingPeer
  5404. because choking algorithm called from onReturningPeer doesn't
  5405. like erasing peer in the active peer list.
  5406. * src/DefaultPeerStorage.cc
  5407. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5408. Instead of creating special filename in createDownloadResult() if
  5409. inMemoryDownload() is true, now it is done in getFilePath().
  5410. * src/RequestGroup.cc
  5411. * test/RequestGroupTest.cc
  5412. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5413. Print "[MEMORY]" and filename if a file is not saved in disk and just
  5414. processed in memory. This is the fix for previous comment out.
  5415. * src/MemoryBufferPreDownloadHandler.cc
  5416. * src/RequestGroup.cc
  5417. * src/RequestGroup.h
  5418. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5419. Commented out the code which sets virtual directory path "[MEMORY]"
  5420. propagate directory to store to following RequestGroup.
  5421. * src/MemoryBufferPreDownloadHandler.cc
  5422. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5423. Bump up version number to 1.0.0b
  5424. * configure.ac
  5425. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5426. Added input_uris.txt to EXTRA_DIST
  5427. * test/Makefile.am
  5428. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5429. Removed PeerObject.h from Makefile.am
  5430. * src/Makefile.am
  5431. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. Avoid slow seeding
  5433. * src/PeerInteractionCommand.cc
  5434. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5435. Updated usage for -i option.
  5436. * src/usage_text.h (TEXT_INPUT_FILE)
  5437. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5438. Added INPUT FILE section to man page.
  5439. Escaped fake URLs.
  5440. * doc/aria2c.1.txt
  5441. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5442. Fixed wrong note position for -o option.
  5443. * doc/aria2c.1.txt
  5444. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5445. Fixed compile error without SSL/XML library.
  5446. * src/DefaultBtProgressInfoFile.cc
  5447. * src/DefaultBtProgressInfoFile.h
  5448. * src/FileMetalinkParserState.cc
  5449. * src/RequestGroup.h
  5450. * src/SocketCore.cc
  5451. * src/SocketCore.h
  5452. * src/VerificationMetalinkParserState.cc
  5453. * src/download_helper.h
  5454. * src/main.cc
  5455. * test/DefaultBtProgressInfoFileTest.cc
  5456. * test/DownloadHelperTest.cc
  5457. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5458. Rewritten URI handling functions. They are now provided as a testable
  5459. functions.
  5460. * src/Makefile.am
  5461. * src/RequestGroup.cc
  5462. * src/RequestGroup.h
  5463. * src/download_helper.cc
  5464. * src/download_helper.h
  5465. * src/main.cc
  5466. * test/DownloadHelperTest.cc
  5467. * test/Makefile.am
  5468. * test/input_uris.txt
  5469. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5470. Quickly terminate commands when ctrl-c is pressed.
  5471. * src/DownloadEngine.cc
  5472. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5473. Quickly terminate idle commands when download finished.
  5474. * src/AbstractCommand.cc
  5475. * src/DownloadCommand.cc
  5476. * src/DownloadEngine.cc
  5477. * src/DownloadEngine.h
  5478. * src/SleepCommand.cc
  5479. * src/SleepCommand.h
  5480. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5481. Added the ability to specify output filename and directory in input
  5482. file.
  5483. Additional parameters are added in the following line of URIs
  5484. with proceeding white space(s), 1 parameter in 1 line.
  5485. The parameter names are the same with the command-line option name
  5486. without proceeding "--". Not all the options are available here:
  5487. at the moment, 'dir' and 'out' options are avialable.
  5488. Please note that out option has no effect against Metalink or BitTorrent
  5489. downloads.
  5490. Example input file:
  5491. http://host/foo-1.1.tar.bz2
  5492. out=foo.tar.bz2
  5493. dir=/tmp/downloads
  5494. http://host/thundermonkey-2.0.tar.bz2
  5495. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  5496. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  5497. thundermonkey-2.0.tar.bz2 is saved as
  5498. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  5499. * src/BtPostDownloadHandler.cc
  5500. * src/Metalink2RequestGroup.cc
  5501. * src/Metalink2RequestGroup.h
  5502. * src/MetalinkPostDownloadHandler.cc
  5503. * src/UriListParser.cc
  5504. * src/UriListParser.h
  5505. * src/main.cc
  5506. * test/Metalink2RequestGroupTest.cc
  5507. * test/UriListParserTest.cc
  5508. * test/filelist1.txt
  5509. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5510. Fixed error when SSL library is not found.
  5511. * configure.ac
  5512. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5513. Cross referenced among -s, -C and -j options.
  5514. Updated usage of -C and -s options.
  5515. * src/usage_text.h
  5516. * doc/aria2c.1.txt
  5517. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5518. Fixed bad cast in 32bit platforms.
  5519. * test/DefaultPieceStorageTest.cc
  5520. (DefaultPieceStorageTest::testGetCompletedLength)
  5521. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. Fixed unit test fails on 32bit platforms.
  5523. * test/CookieParserTest.cc
  5524. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5525. Show an average download speed in Download results.
  5526. * src/BtFileAllocationEntry.cc
  5527. * src/DefaultPieceStorage.cc
  5528. * src/DownloadContext.cc
  5529. * src/DownloadContext.h
  5530. * src/DownloadResult.h
  5531. * src/RequestGroup.cc
  5532. * src/RequestGroupMan.cc
  5533. * src/StreamFileAllocationEntry.cc
  5534. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5535. Fixed the bug that metalink file is not processed if Content-Type
  5536. field has a paramter.
  5537. * src/HttpResponse.cc
  5538. * src/HttpResponse.h
  5539. * test/HttpResponseTest.cc
  5540. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5541. Removed unused code.
  5542. * src/DefaultBtAnnounce.cc
  5543. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5544. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  5545. the value larger than DefaultPieceStorage::getTotalLength() when
  5546. in flight pieces are involved.
  5547. * src/DefaultPieceStorage.cc
  5548. * test/DefaultPieceStorageTest.cc
  5549. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5550. Bump up version number to 1.0.0a.
  5551. * configure.ac
  5552. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5553. Updated configure.ac
  5554. * configure.ac
  5555. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5556. Added usege for proxy.
  5557. * doc/aria2c.1.txt
  5558. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5559. Added usage for --ca-certificate, --certificate, --private-key and
  5560. --check-certificate options.
  5561. * doc/aria2c.1.txt
  5562. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5563. Updated man page
  5564. * doc/aria2c.1.txt
  5565. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Added --no-proxy option. It receives comman separated hostname or
  5567. domains to which proxy should not be used.
  5568. aria2 honors the environment variable no_proxy to override no-proxy
  5569. value in configuration file. The user can override the environment
  5570. variable no_proxy with --no-proxy command-line option.
  5571. * src/AbstractCommand.cc
  5572. * src/OptionHandlerFactory.cc
  5573. * src/option_processing.cc
  5574. * src/prefs.cc
  5575. * src/prefs.h
  5576. * src/usage_text.h
  5577. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5578. Added the ability to verify peer in SSL/TLS using given CA certificates.
  5579. The CA certificates are specified in --ca-certificate option.
  5580. By default, the verification is disabled. Use --check-certificate
  5581. option to enable it.
  5582. * src/HttpRequestCommand.cc
  5583. * src/LibgnutlsTLSContext.cc
  5584. * src/LibgnutlsTLSContext.h
  5585. * src/LibsslTLSContext.cc
  5586. * src/LibsslTLSContext.h
  5587. * src/MultiUrlRequestInfo.cc
  5588. * src/OptionHandlerFactory.cc
  5589. * src/SocketCore.cc
  5590. * src/SocketCore.h
  5591. * src/a2functional.h
  5592. * src/message.h
  5593. * src/option_processing.cc
  5594. * src/prefs.cc
  5595. * src/prefs.h
  5596. * src/usage_text.h
  5597. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5598. Added client certificate authentication for SSL/TLS.
  5599. Currently a private key must be decrypted for use with aria2.
  5600. If a user accidentally gives encrypted file to aria2 then following
  5601. thing happens:
  5602. If encrypted private key is given to aria2, it behaves differently
  5603. depending on the ssl library it uses. If aria2 built with openssl then
  5604. openssl prompts the user for password. If aria2 build with gnutls then
  5605. aria2 exists with error at start up.
  5606. * src/DownloadEngineFactory.cc
  5607. * src/MultiUrlRequestInfo.cc
  5608. * src/OptionHandlerFactory.cc
  5609. * src/option_processing.cc
  5610. * src/prefs.cc
  5611. * src/prefs.h
  5612. * src/usage_text.h
  5613. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5614. Introduced TLSContext that holds TLS related data that can be shared
  5615. with multiple SSL connections.
  5616. * src/DownloadEngineFactory.cc
  5617. * src/LibgnutlsTLSContext.cc
  5618. * src/LibgnutlsTLSContext.h
  5619. * src/LibsslTLSContext.cc
  5620. * src/LibsslTLSContext.h
  5621. * src/Makefile.am
  5622. * src/SocketCore.cc
  5623. * src/SocketCore.h
  5624. * src/TLSContext.h
  5625. * src/message.h
  5626. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5627. Fixed the bug that the DiskWriter of the first FileEntry whose
  5628. `needsFileAllocation' property is false is not created
  5629. even if it shares a piece with next FileEntry which `requested' property
  5630. is true.
  5631. Fixed the bug that zero-length file is not created if pre file
  5632. allocation is not done.
  5633. * src/MultiDiskAdaptor.cc
  5634. * src/MultiDiskAdaptor.h
  5635. * test/MultiDiskAdaptorTest.cc
  5636. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Added the ability to pool proxy connection.
  5638. The conneciton in FTP with proxy-method=GET is not pooled.
  5639. Proxy-Connection header will not be sent when sending CONNECT method.
  5640. * src/DownloadEngine.cc
  5641. * src/DownloadEngine.h
  5642. * src/FtpFinishDownloadCommand.cc
  5643. * src/FtpInitiateConnectionCommand.cc
  5644. * src/FtpNegotiationCommand.cc
  5645. * src/HttpDownloadCommand.cc
  5646. * src/HttpInitiateConnectionCommand.cc
  5647. * src/HttpRequest.cc
  5648. * src/HttpRequest.h
  5649. * src/HttpResponse.cc
  5650. * src/HttpSkipResponseCommand.cc
  5651. * test/HttpRequestTest.cc
  5652. * test/HttpResponseTest.cc
  5653. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Handle date before epoch.
  5655. To create *bad* Time object, call Time::null().
  5656. * src/CookieParser.cc
  5657. * src/FtpConnection.cc
  5658. * src/FtpConnection.h
  5659. * src/FtpNegotiationCommand.cc
  5660. * src/RequestGroup.cc
  5661. * src/TimeA2.cc
  5662. * src/TimeA2.h
  5663. * test/CookieParserTest.cc
  5664. * test/FtpConnectionTest.cc
  5665. * test/TimeTest.cc
  5666. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5667. Added support for following envrionment variables: http_proxy,
  5668. https_proxy, ftp_proxy and all_proxy.
  5669. Each variable is equivalent to the aria2 option whose name is the
  5670. variable name with '_' replaced with '-'.
  5671. They overrides options specified in aria2.conf file.
  5672. The envrionment variables can be overrode using command-line option.
  5673. * src/option_processing.cc
  5674. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5675. Renamed --http-proxy-method as --proxy-method.
  5676. * src/AbstractCommand.cc
  5677. * src/FtpInitiateConnectionCommand.cc
  5678. * src/HttpInitiateConnectionCommand.cc
  5679. * src/OptionHandlerFactory.cc
  5680. * src/option_processing.cc
  5681. * src/prefs.cc
  5682. * src/prefs.h
  5683. * src/usage_text.h
  5684. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5685. Deprecated --http-proxy-user and --http-proxy-passwd options.
  5686. Added --https-proxy, --ftp-proxy and --all-proxy options.
  5687. Above 3 options and --http-proxy option can handle proxy in URL format
  5688. like: http://user:passwd@host:port.
  5689. If a proxy requires user/password, they must be specified in a URL.
  5690. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  5691. instead.
  5692. * src/AbstractCommand.cc
  5693. * src/AbstractCommand.h
  5694. * src/AbstractProxyRequestCommand.cc
  5695. * src/AbstractProxyRequestCommand.h
  5696. * src/AuthConfigFactory.cc
  5697. * src/AuthConfigFactory.h
  5698. * src/FtpFinishDownloadCommand.cc
  5699. * src/FtpInitiateConnectionCommand.cc
  5700. * src/FtpInitiateConnectionCommand.h
  5701. * src/FtpNegotiationCommand.cc
  5702. * src/FtpTunnelRequestCommand.cc
  5703. * src/FtpTunnelRequestCommand.h
  5704. * src/HttpDownloadCommand.cc
  5705. * src/HttpInitiateConnectionCommand.cc
  5706. * src/HttpInitiateConnectionCommand.h
  5707. * src/HttpProxyRequestCommand.cc
  5708. * src/HttpProxyRequestCommand.h
  5709. * src/HttpRequest.cc
  5710. * src/HttpRequest.h
  5711. * src/HttpRequestCommand.cc
  5712. * src/HttpRequestCommand.h
  5713. * src/HttpSkipResponseCommand.cc
  5714. * src/InitiateConnectionCommand.cc
  5715. * src/InitiateConnectionCommand.h
  5716. * src/OptionHandlerFactory.cc
  5717. * src/OptionHandlerImpl.h
  5718. * src/Request.cc
  5719. * src/option_processing.cc
  5720. * src/prefs.cc
  5721. * src/prefs.h
  5722. * src/usage_text.h
  5723. * test/AuthConfigFactoryTest.cc
  5724. * test/HttpRequestTest.cc
  5725. * test/OptionHandlerTest.cc
  5726. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. Execute choking algorithm when unchoked and interested peer is
  5728. disconected.
  5729. * src/DefaultPeerStorage.cc
  5730. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Added testcase for BtNotInterestedMessage from unchoked peer.
  5732. * test/BtNotInterestedMessageTest.cc
  5733. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Execute choking algorithm when BtInterestedMessage arrives from
  5735. unchoked peer.
  5736. * src/BtInterestedMessage.cc
  5737. * src/BtInterestedMessage.h
  5738. * src/DefaultBtMessageFactory.cc
  5739. * test/BtInterestedMessageTest.cc
  5740. * test/MockPeerStorage.h
  5741. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5742. AuthConfigFactory is now part of DownloadEngine.
  5743. * src/AbstractProxyRequestCommand.cc
  5744. * src/AuthConfigFactory.h
  5745. * src/DownloadEngine.cc
  5746. * src/DownloadEngine.h
  5747. * src/FtpConnection.cc
  5748. * src/FtpConnection.h
  5749. * src/FtpNegotiationCommand.cc
  5750. * src/HttpConnection.cc
  5751. * src/HttpRequest.cc
  5752. * src/HttpRequest.h
  5753. * src/HttpRequestCommand.cc
  5754. * src/HttpResponse.cc
  5755. * src/HttpResponseCommand.cc
  5756. * src/HttpSkipResponseCommand.cc
  5757. * src/MultiUrlRequestInfo.cc
  5758. * src/main.cc
  5759. * test/FtpConnectionTest.cc
  5760. * test/HttpRequestTest.cc
  5761. * test/HttpResponseTest.cc
  5762. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. Corrected catched exception type.
  5764. * src/ServerStatMan.cc
  5765. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. DNSCache is now part of DownloadEngine.
  5767. * src/DNSCache.h
  5768. * src/DownloadEngine.cc
  5769. * src/DownloadEngine.h
  5770. * src/InitiateConnectionCommand.cc
  5771. * src/MultiUrlRequestInfo.cc
  5772. * test/Makefile.am
  5773. * test/Makefile.in
  5774. * test/SimpleDNSCacheTest.cc
  5775. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5776. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  5777. DownloadEngine.
  5778. * src/ActivePeerConnectionCommand.cc
  5779. * src/BtSetup.cc
  5780. * src/CUIDCounter.h
  5781. * src/DHTSetup.cc
  5782. * src/DownloadCommand.cc
  5783. * src/DownloadEngine.cc
  5784. * src/DownloadEngine.h
  5785. * src/DownloadEngineFactory.cc
  5786. * src/FileAllocationDispatcherCommand.cc
  5787. * src/InitiatorMSEHandshakeCommand.cc
  5788. * src/PeerInitiateConnectionCommand.cc
  5789. * src/PeerInteractionCommand.cc
  5790. * src/PeerListenCommand.cc
  5791. * src/RequestGroup.cc
  5792. * src/StreamFileAllocationEntry.cc
  5793. * src/TrackerWatcherCommand.cc
  5794. * src/main.cc
  5795. * test/RequestGroupManTest.cc
  5796. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Implemented commented code in BtSeederStateChoke
  5798. * src/BtSeederStateChoke.cc
  5799. * src/Peer.cc
  5800. * src/Peer.h
  5801. * src/PeerInteractionCommand.cc
  5802. * src/PeerSessionResource.cc
  5803. * src/PeerSessionResource.h
  5804. * test/MockBtMessageDispatcher.h
  5805. * test/PeerSessionResourceTest.cc
  5806. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5807. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  5808. its object.
  5809. * src/AbstractBtMessage.cc
  5810. * src/ActivePeerConnectionCommand.cc
  5811. * src/ActivePeerConnectionCommand.h
  5812. * src/BtContextAwareCommand.cc
  5813. * src/BtContextAwareCommand.h
  5814. * src/BtExtendedMessage.cc
  5815. * src/BtExtendedMessage.h
  5816. * src/BtInterestedMessage.cc
  5817. * src/BtInterestedMessage.h
  5818. * src/BtNotInterestedMessage.cc
  5819. * src/BtNotInterestedMessage.h
  5820. * src/BtRegistry.cc
  5821. * src/BtRegistry.h
  5822. * src/BtSeederStateChoke.cc
  5823. * src/BtSetup.cc
  5824. * src/DHTGetPeersCommand.cc
  5825. * src/DHTGetPeersCommand.h
  5826. * src/DHTPeerAnnounceEntry.cc
  5827. * src/DHTPeerAnnounceEntry.h
  5828. * src/DHTPeerAnnounceStorage.cc
  5829. * src/DHTPeerAnnounceStorage.h
  5830. * src/DHTPeerLookupTask.cc
  5831. * src/DHTPeerLookupTask.h
  5832. * src/DHTSetup.cc
  5833. * src/DHTSetup.h
  5834. * src/DHTTaskFactory.h
  5835. * src/DHTTaskFactoryImpl.cc
  5836. * src/DHTTaskFactoryImpl.h
  5837. * src/DefaultBtAnnounce.cc
  5838. * src/DefaultBtInteractive.cc
  5839. * src/DefaultBtInteractive.h
  5840. * src/DefaultBtMessageDispatcher.cc
  5841. * src/DefaultBtMessageDispatcher.h
  5842. * src/DefaultBtMessageFactory.cc
  5843. * src/DefaultBtMessageFactory.h
  5844. * src/DefaultBtMessageReceiver.cc
  5845. * src/DefaultBtProgressInfoFile.cc
  5846. * src/DefaultBtProgressInfoFile.h
  5847. * src/DefaultBtRequestFactory.cc
  5848. * src/DefaultBtRequestFactory.h
  5849. * src/DefaultExtensionMessageFactory.cc
  5850. * src/DefaultExtensionMessageFactory.h
  5851. * src/DefaultPeerStorage.cc
  5852. * src/DefaultPeerStorage.h
  5853. * src/DownloadEngine.cc
  5854. * src/DownloadEngine.h
  5855. * src/InitiatorMSEHandshakeCommand.cc
  5856. * src/InitiatorMSEHandshakeCommand.h
  5857. * src/MSEHandshake.cc
  5858. * src/MSEHandshake.h
  5859. * src/Makefile.am
  5860. * src/Makefile.in
  5861. * src/PeerChokeCommand.cc
  5862. * src/PeerChokeCommand.h
  5863. * src/PeerInitiateConnectionCommand.cc
  5864. * src/PeerInitiateConnectionCommand.h
  5865. * src/PeerInteractionCommand.cc
  5866. * src/PeerInteractionCommand.h
  5867. * src/PeerObject.h
  5868. * src/PeerReceiveHandshakeCommand.cc
  5869. * src/PeerReceiveHandshakeCommand.h
  5870. * src/ReceiverMSEHandshakeCommand.cc
  5871. * src/RequestGroup.cc
  5872. * src/RequestGroup.h
  5873. * src/RequestGroupMan.cc
  5874. * src/RequestGroupMan.h
  5875. * src/SeedCheckCommand.cc
  5876. * src/SeedCheckCommand.h
  5877. * src/ShareRatioSeedCriteria.h
  5878. * src/SimpleBtMessage.cc
  5879. * src/TrackerWatcherCommand.cc
  5880. * src/TrackerWatcherCommand.h
  5881. * src/UTPexExtensionMessage.cc
  5882. * src/UTPexExtensionMessage.h
  5883. * test/BtCancelMessageTest.cc
  5884. * test/BtChokeMessageTest.cc
  5885. * test/BtExtendedMessageTest.cc
  5886. * test/BtInterestedMessageTest.cc
  5887. * test/BtNotInterestedMessageTest.cc
  5888. * test/BtPieceMessageTest.cc
  5889. * test/BtPortMessageTest.cc
  5890. * test/BtRegistryTest.cc
  5891. * test/BtRejectMessageTest.cc
  5892. * test/BtRequestMessageTest.cc
  5893. * test/DHTPeerAnnounceEntryTest.cc
  5894. * test/DHTPeerAnnounceStorageTest.cc
  5895. * test/DefaultBtMessageDispatcherTest.cc
  5896. * test/DefaultBtMessageFactoryTest.cc
  5897. * test/DefaultBtProgressInfoFileTest.cc
  5898. * test/DefaultBtRequestFactoryTest.cc
  5899. * test/DefaultExtensionMessageFactoryTest.cc
  5900. * test/MSEHandshakeTest.cc
  5901. * test/MockDHTTaskFactory.h
  5902. * test/ShareRatioSeedCriteriaTest.cc
  5903. * test/UTPexExtensionMessageTest.cc
  5904. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5905. Fixed compiler warning.
  5906. * test/UtilTest.cc
  5907. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5908. Treat Cookie object as session cookie if expiry = 0 is given.
  5909. With this change, you can specify session scoped cookies in an external
  5910. file setting expiry value to 0.
  5911. * src/Cookie.cc
  5912. * src/Cookie.h
  5913. * test/CookieParserTest.cc
  5914. * test/CookieStorageTest.cc
  5915. * test/CookieTest.cc
  5916. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Changed signature of DHTMessageFactory::createResponseMessage().
  5918. Removed unused validateIDMatch.
  5919. * src/DHTMessageFactory.h
  5920. * src/DHTMessageFactoryImpl.cc
  5921. * src/DHTMessageFactoryImpl.h
  5922. * src/DHTMessageTracker.cc
  5923. * test/DHTMessageFactoryImplTest.cc
  5924. * test/MockDHTMessageFactory.h
  5925. Dropped DHT message coming from same ID of localhost.
  5926. * src/DHTMessageReceiver.cc
  5927. Rejected adding node whose ID is the same as localhost's.
  5928. * src/DHTRoutingTable.cc
  5929. * test/BtPortMessageTest.cc
  5930. * test/DHTRoutingTableTest.cc
  5931. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. Pool connection when redirection occurs with Content-Length = 0.
  5933. * src/HttpSkipResponseCommand.cc
  5934. * src/HttpSkipResponseCommand.h
  5935. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Fixed the bug that causes time out when redirection occurs with
  5937. content-length 0.
  5938. * src/HttpResponseCommand.cc
  5939. * src/HttpSkipResponseCommand.cc
  5940. * src/HttpSkipResponseCommand.h
  5941. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5942. Now each status legends is shown only when it appears in Download
  5943. Result. If Download Result has no item, then status legend will not
  5944. be printed.
  5945. * src/RequestGroupMan.cc
  5946. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Removed duplicate creation of OptionHandlers.
  5948. * src/option_processing.cc
  5949. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5950. Fixed the bug that causes segmentation fault when accessing files which
  5951. don't exist or are not included in --select-file option while
  5952. validating chunk checksum.
  5953. * src/MultiDiskAdaptor.cc
  5954. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Fixed compiler warning.
  5956. * test/UtilTest.cc
  5957. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5958. Included cstdlib. This fixed the compile error with g++-4.3.2.
  5959. * src/IteratableChecksumValidator.cc
  5960. * src/IteratableChunkChecksumValidator.cc
  5961. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5962. * Release 0.16.2
  5963. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5964. Added Serbian translation. Updated Ukrainian translation.
  5965. Thanks to all translators.
  5966. * po/sr.po
  5967. * po/uk.po
  5968. * po/LINGUAS
  5969. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5970. Bump up version number to 0.16.2
  5971. * configure.ac
  5972. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Added length equality test to operator== to drop a piece message
  5974. whose length does not match to the requested one.
  5975. * src/RequestSlot.cc
  5976. * test/DefaultBtMessageDispatcherTest.cc
  5977. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  5979. recieved.
  5980. In this fix, if a request larger than 16KiB length is received, aria2
  5981. disconnects the peer.
  5982. * src/BtConstants.h
  5983. * src/PeerMessageUtil.cc
  5984. * src/PeerMessageUtil.h
  5985. * test/BtRequestMessageTest.cc
  5986. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5987. * Release 0.16.1
  5988. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5989. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  5990. * doc/aria2c.1.txt
  5991. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5992. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  5993. Updated French, Simplified Chinese and Japanese translations.
  5994. Thanks to all translators.
  5995. en@quot and en@boldquot are also added.
  5996. * po/LINGUAS
  5997. * po/fr.po
  5998. * po/ja.po
  5999. * po/uk.po
  6000. * po/vi.po
  6001. * po/zh_CN.po
  6002. * po/zh_TW.po
  6003. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6004. Bump up version number to 0.16.1.
  6005. * configure.ac
  6006. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. Updated README.
  6008. * README
  6009. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6010. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6011. not to replace '--' with em dash character.
  6012. * doc/aria2c.1.txt
  6013. * doc/makeman
  6014. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6015. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6016. every SEC seconds.
  6017. * src/DownloadEngineFactory.cc
  6018. * src/OptionHandlerFactory.cc
  6019. * src/option_processing.cc
  6020. * src/usage_text.h
  6021. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Fixed compile warning on linux-amd64
  6023. * src/FtpConnection.cc
  6024. * src/IteratableChunkChecksumValidator.cc
  6025. * src/MultiDiskAdaptor.cc
  6026. Fixed the bug that unit test fails on linux-amd64
  6027. * test/UtilTest.cc
  6028. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Added --dht-file-path option to change the path to dht.dat, which is a
  6030. serialized DHT routing table.
  6031. * src/OptionHandlerFactory.cc
  6032. * src/option_processing.cc
  6033. * src/usage_text.h
  6034. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Fixed possible underflow.
  6036. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6037. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. Fixed the bug that last character in URI is not encoded.
  6039. * src/Request.cc
  6040. * test/RequestTest.cc
  6041. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6042. Fixed the bug that referer header field contains fragment.
  6043. Now Request class removes fragment part of URI and encodes it
  6044. in Request::setUri() and setReferer().
  6045. * src/Request.h
  6046. * src/Request.cc
  6047. * test/RequestTest.cc
  6048. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6049. Added missing m4 macros.
  6050. * m4/cppunit.m4
  6051. * m4/libgcrypt.m4
  6052. * m4/libgnutls-extra.m4
  6053. * m4/libgnutls.m4
  6054. * m4/libxml2.m4
  6055. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Fixed compile error with gcc-4.4(snapshot)
  6057. * src/File.cc
  6058. * src/FtpConnection.cc
  6059. * src/OptionHandlerImpl.h
  6060. * src/Util.cc
  6061. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6062. Removed assert()
  6063. * src/SocketBuffer.cc (SocketBuffer::send)
  6064. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6065. Changed the type of _numNewConnection to unsigned int.
  6066. * src/ActivePeerConnectionCommand.cc
  6067. * src/ActivePeerConnectionCommand.h
  6068. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. * Release 0.16.0
  6070. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Updated doc
  6072. * README
  6073. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6075. translations. Thanks to all translators.
  6076. * po/bg.po
  6077. * po/de.po
  6078. * po/fr.po
  6079. * po/ja.po
  6080. * po/zh_CN.po
  6081. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6082. Bump up version number to 0.16.0.
  6083. * configure.ac
  6084. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6085. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6086. int32_t.
  6087. Changed the type of count to int32_t.
  6088. * src/Metalink2RequestGroup.cc
  6089. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6090. Added test for Time::elapsed(time_t).
  6091. * test/TimeTest.cc
  6092. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6093. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6094. Util::difftv() should be used instead.
  6095. * src/TimeA2.cc
  6096. * src/TimeA2.h
  6097. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6098. Made socket for dht connections non-blocking
  6099. * src/DHTAbstractMessage.cc
  6100. * src/DHTAbstractMessage.h
  6101. * src/DHTConnection.h
  6102. * src/DHTConnectionImpl.cc
  6103. * src/DHTConnectionImpl.h
  6104. * src/DHTMessage.h
  6105. * src/DHTMessageDispatcherImpl.cc
  6106. * src/DHTMessageDispatcherImpl.h
  6107. * src/DHTUnknownMessage.cc
  6108. * src/DHTUnknownMessage.h
  6109. * src/SocketCore.cc
  6110. * src/SocketCore.h
  6111. * test/MockDHTMessage.h
  6112. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6113. Changed the type of offset to int.
  6114. * src/ParameterizedStringParser.cc
  6115. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. Made getAsInt() return int32_t
  6117. * src/Option.h
  6118. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6120. build.
  6121. * configure.ac
  6122. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6123. Use sqlite3_open if sqlite3_open_v2 is not available.
  6124. * src/Sqlite3MozCookieParser.cc
  6125. * src/Sqlite3MozCookieParser.h
  6126. * m4/sqlite3.m4
  6127. * test/Sqlite3MozCookieParserTest.cc
  6128. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6129. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6130. * src/BtPieceMessage.cc
  6131. * src/DHTPeerAnnounceStorage.cc
  6132. * src/DefaultPieceStorage.cc
  6133. * src/DownloadCommand.cc
  6134. * src/DownloadEngine.cc
  6135. * src/FtpConnection.cc
  6136. * src/PeerConnection.cc
  6137. * src/PeerMessageUtil.cc
  6138. * src/RequestGroup.cc
  6139. * src/RequestGroupMan.cc
  6140. * src/SimpleBtMessage.cc
  6141. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6143. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6144. * src/AbstractDiskWriter.cc
  6145. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6146. Don't set Request::supportsPersistentConnection() in HttpConnection
  6147. since this code is also used in AbstractProxyResponseCommand.
  6148. Moved those code to HttpResponse.
  6149. * src/HttpResponse.cc
  6150. * src/HttpResponse.h
  6151. * src/HttpConnection.cc
  6152. * src/HttpConnection.h
  6153. * src/HttpResponseCommand.cc
  6154. * test/HttpResponseTest.cc
  6155. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6157. The configuration is minimum: no torrent, no metalink, so there may be
  6158. other compile error on their code.
  6159. * src/a2netcompat.h
  6160. * src/File.cc
  6161. * src/File.h
  6162. * src/SocketCore.cc
  6163. * src/SocketCore.h
  6164. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Made a socket of incoming peer non-blocking.
  6166. * src/PeerListenCommand.cc
  6167. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6169. whole message data is not sent in one send() call.
  6170. * src/BtPieceMessage.cc
  6171. * src/BtPieceMessage.h
  6172. * src/PeerConnection.cc
  6173. * src/PeerConnection.h
  6174. * src/SimpleBtMessage.cc
  6175. * src/SimpleBtMessage.h
  6176. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6177. Fixed the bug that aria2 downloads faster than max-download-limit when
  6178. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6179. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6180. , instead of sum of them.
  6181. * src/ActivePeerConnectionCommand.cc
  6182. * src/DefaultBtInteractive.cc
  6183. * src/DownloadCommand.cc
  6184. * src/PeerInteractionCommand.cc
  6185. * src/PeerReceiveHandshakeCommand.cc
  6186. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6187. Fixed the bug that HTTPS download fails.
  6188. * src/AbstractCommand.cc
  6189. * src/AbstractCommand.h
  6190. * src/DownloadCommand.cc
  6191. * src/FtpConnection.cc
  6192. * src/HttpConnection.cc
  6193. * src/HttpRequestCommand.cc
  6194. * src/HttpResponseCommand.cc
  6195. * src/HttpSkipResponseCommand.cc
  6196. * src/MSEHandshake.cc
  6197. * src/PeerConnection.cc
  6198. * src/SocketCore.cc
  6199. * src/SocketCore.h
  6200. Fixed the bug that aria2 doesn't download whole content body and cannot
  6201. reuse connection if chunked transfer encoding and gzip content encoding
  6202. are set.
  6203. * src/DownloadCommand.cc
  6204. * src/HttpSkipResponseCommand.cc
  6205. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6206. Updated man page.
  6207. * doc/aria2c.1.txt
  6208. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6209. When error occurred while aria2 was parsing an .aria2.conf file, print
  6210. the usage of the option that caused error.
  6211. * src/option_processing.cc
  6212. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Fixed compile error on OptionHandlerException
  6214. * src/Makefile.am
  6215. * src/OptionHandlerException.cc
  6216. * src/OptionHandlerException.h
  6217. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Moved message of the error to OptionHandlerException.h
  6219. * src/NameMatchOptionHandler.h
  6220. * src/OptionHandlerException.h
  6221. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6222. When error occurs while aria2 is parsing an command-line option, print
  6223. the usage of the option.
  6224. * src/Makefile.am
  6225. * src/NameMatchOptionHandler.h
  6226. * src/OptionHandlerException.h
  6227. * src/option_processing.cc
  6228. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6229. Reverted previous change.
  6230. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6231. username is not in URI.
  6232. * src/HttpRequest.cc
  6233. * src/Request.cc
  6234. * test/HttpRequestTest.cc
  6235. * test/RequestTest.cc
  6236. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. Now colon is required for username and password in FTP URL, like:
  6238. ftp://username:password@host.
  6239. If colon is not there, aria2 don't parse it as a username. For example,
  6240. aria2 don't retrieve username from ftp://username@host.
  6241. This fix was made in order to login FTP server via non-transparent ftp
  6242. proxy.
  6243. * src/Request.cc
  6244. * test/RequestTest.cc
  6245. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6246. Use netrc for HTTP.
  6247. Now FTP user/password is sent in Authorization header when
  6248. --ftp-via-http-proxy=get is given.
  6249. * src/AuthConfigFactory.cc
  6250. * src/HttpRequest.cc
  6251. * src/HttpRequest.h
  6252. * src/NetrcAuthResolver.cc
  6253. * src/NetrcAuthResolver.h
  6254. * src/OptionHandlerFactory.cc
  6255. * src/option_processing.cc
  6256. * src/prefs.cc
  6257. * src/prefs.h
  6258. * test/AuthConfigFactoryTest.cc
  6259. * test/HttpRequestTest.cc
  6260. * test/NetrcAuthResolverTest.cc
  6261. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6262. Issue PWD command first and get working directory and use it as a prefix
  6263. for CWD command.
  6264. * src/DownloadEngine.cc
  6265. * src/DownloadEngine.h
  6266. * src/FtpConnection.cc
  6267. * src/FtpConnection.h
  6268. * src/FtpFinishDownloadCommand.cc
  6269. * src/FtpInitiateConnectionCommand.cc
  6270. * src/FtpNegotiationCommand.cc
  6271. * src/FtpNegotiationCommand.h
  6272. * test/FtpConnectionTest.cc
  6273. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6274. Removed default user/pass for FTP user/pass, since it should not have
  6275. precedence over netrc configuration by default.
  6276. * src/OptionHandlerFactory.cc
  6277. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. Added debug log for socket event.
  6279. * src/AbstractCommand.cc
  6280. * src/PeerAbstractCommand.cc
  6281. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6282. Log microseconds.
  6283. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  6284. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6285. Replaced HelpItem.cc with OptionHandler.cc.
  6286. * po/POTFILES.in
  6287. Updated po files with 'make update-po'
  6288. * po/aria2c.pot
  6289. * po/*.po
  6290. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Removed possible values from the text.
  6292. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  6293. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Removed unused preferences:
  6295. PREF_NO_PREALLOCATION
  6296. PREF_STDOUT_LOG
  6297. PREF_TRACKER_MAX_TRIES
  6298. PREF_DIRECT_DOWNLOAD_TIMEOUT
  6299. PREF_MIN_SEGMENT_SIZE
  6300. * src/option_processing.cc
  6301. * src/prefs.cc
  6302. * src/prefs.h
  6303. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6304. Integrated HelpItem into OptionParser to ease the workload for adding
  6305. new options. Removed default value from usage text.
  6306. * src/HelpItem.cc: Removed.
  6307. * src/HelpItem.h: Removed.
  6308. * src/HelpItemFactory.cc: Removed.
  6309. * src/HelpItemFactory.h: Removed.
  6310. * src/Makefile.am
  6311. * src/Makefile.in
  6312. * src/NameMatchOptionHandler.h
  6313. * src/OptionHandler.cc
  6314. * src/OptionHandler.h
  6315. * src/OptionHandlerFactory.cc
  6316. * src/OptionHandlerImpl.h
  6317. * src/OptionParser.cc
  6318. * src/OptionParser.h
  6319. * src/TagContainer.cc: Removed.
  6320. * src/TagContainer.h: Removed.
  6321. * src/TaggedItem.cc: Removed.
  6322. * src/TaggedItem.h: Removed.
  6323. * src/main.cc
  6324. * src/option_processing.cc
  6325. * src/usage_text.h
  6326. * src/version_usage.cc
  6327. * test/HelpItemTest.cc: Removed.
  6328. * test/Makefile.am
  6329. * test/Makefile.in
  6330. * test/OptionHandlerTest.cc
  6331. * test/OptionParserTest.cc
  6332. * test/TagContainerTest.cc: Removed.
  6333. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. Moved `TransferStat stat = ...' to inside the `if' clause.
  6335. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  6336. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6337. Fixed the bug that a block in a piece is requested when same block is
  6338. already requested to the same peer in end game mode.
  6339. * src/BtRequestFactory.h
  6340. * src/DefaultBtInteractive.cc
  6341. * src/DefaultBtRequestFactory.cc
  6342. * src/DefaultBtRequestFactory.h
  6343. * src/DefaultPieceStorage.cc
  6344. * src/DefaultPieceStorage.h
  6345. * src/PieceStorage.h
  6346. * src/UnknownLengthPieceStorage.cc
  6347. * src/UnknownLengthPieceStorage.h
  6348. * test/DefaultBtRequestFactoryTest.cc
  6349. * test/DefaultPieceStorageTest.cc
  6350. * test/MockBtRequestFactory.h
  6351. * test/MockPieceStorage.h
  6352. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6353. Removed _uploadLength and _downloadLength from PeerSessionResource
  6354. and use PeerStat::_sessionUploadLength and
  6355. PeerStat::_sessionDownloadLength.
  6356. * src/PeerSessionResource.cc
  6357. * src/PeerSessionResource.h
  6358. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. Fixed the bug that prefixLength of split bucket which doesn't include
  6360. local node ID is incremented.
  6361. * src/DHTBucket.cc
  6362. * src/DHTBucket.h
  6363. * test/DHTBucketTest.cc
  6364. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Added cookies.sqlite to EXTRA_DIST
  6366. * test/Makefile.am
  6367. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6368. Added Turkish translation. Updated French, German, Russian and
  6369. Simplified Chinese translations. Thanks to all translators.
  6370. * po/LINGUAS
  6371. * po/de.po
  6372. * po/fr.po
  6373. * po/ru.po
  6374. * po/tr.po
  6375. * po/zh_CN.po
  6376. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Added deliminating text to the beginning of the log so that one can find
  6378. where the log starts easily.
  6379. * src/main.cc
  6380. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6381. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  6382. to fix compile error when async DNS is not enabled by configuration.
  6383. * src/AbstractCommand.cc
  6384. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6385. If establishing conneciton to a server is failed, then mark error on
  6386. its ServerStat.
  6387. Added the cause of error to log when error event occurred.
  6388. Moved message string to message.h for translation.
  6389. * src/AbstractCommand.cc
  6390. * src/AbstractCommand.h
  6391. * src/FtpNegotiationCommand.cc
  6392. * src/HttpRequestCommand.cc
  6393. * src/PeerAbstractCommand.cc
  6394. * src/message.h
  6395. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6396. Added the function to get error message from socket.
  6397. * src/SocketCore.cc
  6398. * src/SocketCore.h
  6399. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Added convenient method RequestGroupMan::getOrCreateServerStat()
  6401. * src/RequestGroupMan.cc
  6402. * src/RequestGroupMan.h
  6403. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. If error event is received in epoll, then abort download immediately.
  6405. * src/AbstractCommand.cc
  6406. * src/Command.cc
  6407. * src/Command.h
  6408. * src/DownloadEngine.cc
  6409. * src/PeerAbstractCommand.cc
  6410. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6411. Added usage message for --uri-selector, --server-stat-of,
  6412. --server-stat-in, --server-stat-timeout options.
  6413. * src/HelpItemFactory.cc
  6414. * src/usage_text.h
  6415. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6416. Added upper limit of FTP response buffer. The current implementation
  6417. uses 4096bytes as a limit.
  6418. * src/FtpConnection.cc
  6419. * src/FtpConnection.h
  6420. * test/FtpConnectionTest.cc
  6421. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. Use non-blocking socket for TCP communication to avoid possible
  6423. blocking due to buffer full.
  6424. * src/AbstractProxyRequestCommand.cc
  6425. * src/FtpConnection.cc
  6426. * src/FtpConnection.h
  6427. * src/FtpNegotiationCommand.cc
  6428. * src/FtpNegotiationCommand.h
  6429. * src/HttpConnection.cc
  6430. * src/HttpConnection.h
  6431. * src/HttpRequestCommand.cc
  6432. * src/InitiatorMSEHandshakeCommand.cc
  6433. * src/InitiatorMSEHandshakeCommand.h
  6434. * src/MSEHandshake.cc
  6435. * src/MSEHandshake.h
  6436. * src/Makefile.am
  6437. * src/PeerConnection.cc
  6438. * src/PeerConnection.h
  6439. * src/PeerInteractionCommand.cc
  6440. * src/PeerListenCommand.cc
  6441. * src/ReceiverMSEHandshakeCommand.cc
  6442. * src/ReceiverMSEHandshakeCommand.h
  6443. * src/SocketBuffer.cc
  6444. * src/SocketBuffer.h
  6445. * src/SocketCore.cc
  6446. * src/SocketCore.h
  6447. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6448. Call setStatusRealtime() in constructor.
  6449. * src/RealtimeCommand.cc
  6450. * src/RealtimeCommand.h
  6451. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Call Download::setNoWait(true) to execute newly created command without
  6453. a pause.
  6454. * src/AbstractCommand.cc
  6455. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. Added --max-file-not-found=NUM option. If aria2 receives `file not
  6457. found' error from HTTP/FTP server NUM times without getting single
  6458. bytes of data, then force the download to fail.
  6459. Basically aria2 tris all URIs available. So if long list of URIs are
  6460. specified in Metalink, then aria2 will take a long time to fail
  6461. eventually if all URIs are outdated. This option eases this situation
  6462. to limit the number of servers to try.
  6463. * src/FtpNegotiationCommand.cc
  6464. * src/HelpItemFactory.cc
  6465. * src/HttpResponseCommand.cc
  6466. * src/OptionHandlerFactory.cc
  6467. * src/PeerStat.h
  6468. * src/RequestGroup.cc
  6469. * src/RequestGroup.h
  6470. * src/SegmentMan.cc
  6471. * src/SegmentMan.h
  6472. * src/option_processing.cc
  6473. * src/prefs.cc
  6474. * src/prefs.h
  6475. * src/usage_text.h
  6476. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6477. Fixed the bug that bulkReceiveResponse() reads all received data as a
  6478. response even if more than one response is in it.
  6479. * src/FtpConnection.cc
  6480. * src/FtpConnection.h
  6481. * test/FtpConnectionTest.cc
  6482. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Merged from stable-0.15
  6484. * m4/libcares.m4
  6485. Use pkg-config
  6486. * m4/sqlite3.m4
  6487. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. Removed unnecessary if statement.
  6489. * src/DefaultPieceStorage.cc (initPieceStorage)
  6490. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6491. Added --connect-timeout option to specify connect timeout in seconds.
  6492. This option is in effect for HTTP/FTP/proxy server. The timeout for
  6493. connecting to BitTorrent peer is not controlled by this option.
  6494. * src/AbstractProxyRequestCommand.cc
  6495. * src/FtpNegotiationCommand.cc
  6496. * src/HelpItemFactory.cc
  6497. * src/HttpRequestCommand.cc
  6498. * src/OptionHandlerFactory.cc
  6499. * src/option_processing.cc
  6500. * src/prefs.cc
  6501. * src/prefs.h
  6502. * src/usage_text.h
  6503. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6504. Added help message for -R option.
  6505. * src/HelpItemFactory.cc
  6506. * src/usage_text.h
  6507. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6508. Added the message that the time is in local time zone.
  6509. * src/RequestGroup.cc
  6510. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6511. Implemented the ability to get timestamp from remote FTP server using
  6512. MDTM command described in RFC3659.
  6513. * src/FtpConnection.cc
  6514. * src/FtpConnection.h
  6515. * src/FtpNegotiationCommand.cc
  6516. * src/FtpNegotiationCommand.h
  6517. * test/FtpConnectionTest.cc
  6518. * test/Makefile.am
  6519. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6520. Implemented the ability to get timestamp from remote HTTP server and
  6521. apply it to local file. To enable this feature, --remote-time option
  6522. is added. No usage text has been written yet.
  6523. If several servers returns difference timestamp, then aria2 uses latest
  6524. one.
  6525. * src/CopyDiskAdaptor.cc
  6526. * src/CopyDiskAdaptor.h
  6527. * src/DirectDiskAdaptor.cc
  6528. * src/DirectDiskAdaptor.h
  6529. * src/DiskAdaptor.h
  6530. * src/File.cc
  6531. * src/File.h
  6532. * src/HttpHeader.cc
  6533. * src/HttpHeader.h
  6534. * src/HttpResponse.cc
  6535. * src/HttpResponse.h
  6536. * src/HttpResponseCommand.cc
  6537. * src/HttpResponseCommand.h
  6538. * src/MultiDiskAdaptor.cc
  6539. * src/MultiDiskAdaptor.h
  6540. * src/OptionHandlerFactory.cc
  6541. * src/RequestGroup.cc
  6542. * src/RequestGroup.h
  6543. * src/RequestGroupMan.cc
  6544. * src/option_processing.cc
  6545. * src/prefs.cc
  6546. * src/prefs.h
  6547. * test/CopyDiskAdaptorTest.cc
  6548. * test/FileTest.cc
  6549. * test/Makefile.am
  6550. * test/Makefile.in
  6551. * test/MultiDiskAdaptorTest.cc
  6552. * test/TestUtil.cc
  6553. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Fixed the bug that DiskWriterEntry is not created when its
  6555. FileEntry.isRequested() is false and it doesn't share a piece with
  6556. other FileEntries that are requested. This bug causes segmentation fault
  6557. in the end.
  6558. * src/MultiDiskAdaptor.cc
  6559. * src/MultiDiskAdaptor.h
  6560. * src/MultiFileAllocationIterator.cc
  6561. * test/MultiDiskAdaptorTest.cc
  6562. * test/MultiFileAllocationIteratorTest.cc
  6563. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  6565. called if the number of file entries are greater than max open files.
  6566. * src/AbstractSingleDiskAdaptor.cc
  6567. * src/AbstractSingleDiskAdaptor.h
  6568. * src/DiskAdaptor.h
  6569. * src/MultiDiskAdaptor.cc
  6570. * src/MultiDiskAdaptor.h
  6571. * test/MultiDiskAdaptorTest.cc
  6572. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6573. Added a constuctor that receives struct timeval.
  6574. Added operator<.
  6575. * src/TimeA2.cc
  6576. * src/TimeA2.h
  6577. * test/TimeTest.cc
  6578. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6579. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  6580. * src/CookieParser.cc
  6581. * test/CookieParserTest.cc
  6582. * test/HttpResponseTest.cc
  6583. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. Implmented the functions to parse date.
  6585. * src/TimeA2.cc
  6586. * src/TimeA2.h
  6587. * test/TimeTest.cc
  6588. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Added "Firefox3 Cookie" feature to FeatureConfig
  6590. * src/FeatureConfig.cc
  6591. * src/FeatureConfig.h
  6592. * test/FeatureConfigTest.cc
  6593. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Bump up version number to 0.16.0b
  6595. * configure.ac
  6596. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6597. Use pkg-config if is is available.
  6598. * m4/openssl.m4
  6599. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6600. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  6601. * src/BtAnnounce.h
  6602. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6603. If an error occurred with a URI, remove identical URI from remaining
  6604. URI list because it is likely that same error occurred in the end and it
  6605. is waste of time.
  6606. * src/AbstractCommand.cc
  6607. * src/RequestGroup.cc
  6608. * src/RequestGroup.h
  6609. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. Removed wrong comment.
  6611. * src/DefaultPeerStorage.cc
  6612. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6613. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  6614. Added return value of getpid() to argument of srand() to achieve more
  6615. randomized value.
  6616. * src/SimpleRandomizer.cc
  6617. * src/SimpleRandomizer.h
  6618. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Contact tracker frequently when the number of connections are 0 and
  6620. download is not finished yet.
  6621. * src/ActivePeerConnectionCommand.cc
  6622. * src/BtAnnounce.h
  6623. * src/DefaultBtAnnounce.cc
  6624. * src/DefaultBtAnnounce.h
  6625. * test/MockBtAnnounce.h
  6626. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6627. Moved threshold values to UTPexExtensionMessage.
  6628. * src/DefaultBtInteractive.cc
  6629. * src/Peer.cc
  6630. * src/Peer.h
  6631. * src/UTPexExtensionMessage.cc
  6632. * src/UTPexExtensionMessage.h
  6633. * test/UTPexExtensionMessageTest.cc
  6634. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Added _incoming member to Peer class and made it true if the peer
  6636. initiated connection. Don't add those peer to UTPex message.
  6637. If extended handshake is received, assign _incoming to false.
  6638. * src/DefaultBtInteractive.cc
  6639. * src/HandshakeExtensionMessage.cc
  6640. * src/Peer.cc
  6641. * src/Peer.h
  6642. * src/PeerListenCommand.cc
  6643. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6644. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  6645. Encoding Decoder. Removed size threshold for turning off on the fly
  6646. inflation because resulting file may or may not be inflated depending
  6647. on the file size and I think it is not expected by users.
  6648. This change fixes segmentation fault when Metalink file contains gzipped
  6649. file and its filesize is provided.
  6650. * src/HttpResponseCommand.cc
  6651. * src/HttpResponseCommand.h
  6652. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6653. Made Cookie immutable.
  6654. * src/Cookie.cc
  6655. * src/Cookie.h
  6656. * src/CookieParser.cc
  6657. * src/CookieParser.h
  6658. * src/CookieStorage.cc
  6659. * test/CookieParserTest.cc
  6660. * test/CookieStorageTest.cc
  6661. * test/NsCookieParserTest.cc
  6662. * test/Sqlite3MozCookieParserTest.cc
  6663. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. Removed CookieBox, CookieBoxFactory.
  6665. * src/CookieBox.cc
  6666. * src/CookieBox.h
  6667. * src/CookieBoxFactory.cc
  6668. * src/CookieBoxFactory.h
  6669. * src/Makefile.am
  6670. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Use CookieStorage class instead of CookieBox class.
  6672. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  6673. * src/AbstractProxyRequestCommand.cc
  6674. * src/CookieStorage.cc
  6675. * src/DownloadEngine.cc
  6676. * src/DownloadEngine.h
  6677. * src/HttpConnection.cc
  6678. * src/HttpConnection.h
  6679. * src/HttpRequest.cc
  6680. * src/HttpRequest.h
  6681. * src/HttpRequestCommand.cc
  6682. * src/HttpResponse.cc
  6683. * src/HttpResponseCommand.cc
  6684. * src/HttpSkipResponseCommand.cc
  6685. * src/Makefile.am
  6686. * src/MultiUrlRequestInfo.cc
  6687. * src/Request.cc
  6688. * src/Request.h
  6689. * src/main.cc
  6690. * test/AllTest.cc
  6691. * test/CookieStorageTest.cc
  6692. * test/CookieTest.cc
  6693. * test/HttpRequestTest.cc
  6694. * test/HttpResponseTest.cc
  6695. * test/Makefile.am
  6696. * test/NsCookieParserTest.cc
  6697. * test/Sqlite3MozCookieParserTest.cc
  6698. * test/nscookietest.txt
  6699. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. Updated
  6701. * test/Cookies.sqlite
  6702. * test/nscookietest.txt
  6703. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6704. Added tests for CookieStorage::load()
  6705. * test/CookieStorageTest.cc
  6706. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6707. Added CookieStorage class which is based on RFC2109 and manages cookies
  6708. more strictly than CookieBox and CookieBoxFactory class.
  6709. * src/CookieStorage.cc
  6710. * src/CookieStorage.h
  6711. * src/Cookie.cc
  6712. * src/Cookie.h
  6713. * test/CookieStorageTest.cc
  6714. * test/CookieTest.cc
  6715. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. Fixed the bug that commands are created more than the number of pieces.
  6717. * src/RequestGroup.cc
  6718. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Fixed infinite loop bug in FTP when SIZE command failed.
  6720. * src/FtpNegotiationCommand.cc
  6721. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6722. Removed DirectDiskAdaptorTest.h
  6723. * test/Makefile.am
  6724. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Fixed chunk checksum validation cannot detect trailing garbage data.
  6726. BUG#2074141
  6727. * src/AbstractSingleDiskAdaptor.cc
  6728. * src/AbstractSingleDiskAdaptor.h
  6729. * src/CheckIntegrityEntry.cc
  6730. * src/CheckIntegrityEntry.h
  6731. * src/DiskAdaptor.h
  6732. * src/MultiDiskAdaptor.cc
  6733. * src/MultiDiskAdaptor.h
  6734. * src/RequestGroup.cc
  6735. * test/DirectDiskAdaptorTest.cc
  6736. * test/MultiDiskAdaptorTest.cc
  6737. * test/TestUtil.cc
  6738. * test/TestUtil.h
  6739. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. Bump up version number of dht.dat file to 3. In version 3 format, time
  6741. is stored in 64bit, network byte order.
  6742. New build can load old format(version 2) but it saves the file in new
  6743. format. It means once you used new build, your dht.dat becomes
  6744. incompatible with older build.
  6745. * src/DHTRoutingTableDeserializer.cc
  6746. * src/DHTRoutingTableSerializer.cc
  6747. * test/DHTRoutingTableSerializerTest.cc
  6748. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  6750. * test/Makefile.am
  6751. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Bump up version number of .aria2 control file to 0001.
  6753. New aria2 can still load version 0000 file but it saves the file in
  6754. version 0001 format. It means that new aria2 can resume download
  6755. started by old aria2 but the opposite is not true.
  6756. * src/DefaultBtProgressInfoFile.cc
  6757. * src/DefaultBtProgressInfoFile.h
  6758. * test/DefaultBtProgressInfoFileTest.cc
  6759. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Added ntoh64 and hton64 as inline functions.
  6761. * src/Util.cc
  6762. * test/UtilTest.cc
  6763. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6764. Added sqlite3 depenency and Firefox3 cookie support.
  6765. * README
  6766. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. State that firefox3 cookie is supported explicitly in the usage.
  6768. * src/usage_text.h
  6769. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6770. Externalized message.
  6771. * src/RequestGroupMan.cc
  6772. * src/message.h
  6773. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Save temporary file first and rename to the destination on success.
  6775. Added test cases.
  6776. * src/RequestGroupMan.cc
  6777. * test/RequestGroupManTest.cc
  6778. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. Fixed the bug that the number of connected peer is exceeding the limit
  6780. (55 by default) in seeding mode.
  6781. Multiplied 0.8 to _maxUploadSpeedLimit.
  6782. * src/ActivePeerConnectionCommand.cc
  6783. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Clear table item.
  6785. * src/Dictionary.cc
  6786. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. Fixed error handling of lseek.
  6788. * src/AbstractDiskWriter.cc
  6789. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6790. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  6791. style cookie file.
  6792. * src/usage_text.h
  6793. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6794. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  6795. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  6796. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  6797. * src/Util.cc
  6798. * src/Util.h
  6799. * src/CookieParser.cc
  6800. * test/UtilTest.cc
  6801. * test/CookieParserTest.cc
  6802. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6803. Separate the implementation to load old mozilla format of cookie to
  6804. NsCookieParser class.
  6805. * src/CookieBoxFactory.cc
  6806. * src/CookieBoxFactory.h
  6807. * src/NsCookieParser.cc
  6808. * src/NsCookieParser.h
  6809. * test/NsCookieParserTest.cc
  6810. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Made parse() const
  6812. * src/Sqlite3MozCookieParser.cc
  6813. * src/Sqlite3MozCookieParser.h
  6814. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6815. Added firefox3 cookie support based on the patch submitted by
  6816. tizianomueller.
  6817. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  6818. this functionality.
  6819. * configure.ac
  6820. * m4/sqlite3.m4
  6821. * src/CookieBoxFactory.cc
  6822. * src/CookieBoxFactory.h
  6823. * src/Makefile.am
  6824. * src/Makefile.in
  6825. * src/Sqlite3MozCookieParser.cc
  6826. * src/Sqlite3MozCookieParser.h
  6827. * src/main.cc
  6828. * test/CookieBoxFactoryTest.cc
  6829. * test/Makefile.am
  6830. * test/Makefile.in
  6831. * test/Sqlite3MozCookieParserTest.cc
  6832. * test/badcookies.sqlite
  6833. * test/cookies.sqlite
  6834. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6835. Added Danish and Greek translations.
  6836. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  6837. Great thanks to all translators.
  6838. * po/LINGUAS
  6839. * po/el.po
  6840. * po/da.po
  6841. * po/es.po
  6842. * po/ca.po
  6843. * po/nn.po
  6844. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Fixed man page: --follow-bittorrent should be --follow-torrent
  6846. * doc/aria2c.1.txt
  6847. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Fixed: numCommand is less than the value specified in -C option.
  6849. * src/RequestGroup.cc
  6850. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. Fixed occasional assertion failure in PieceSegment.
  6852. Calling PieceStorage::getMissingPiece(size_t) was missing after
  6853. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  6854. creation of duplicate segments and one of the segment was finished then
  6855. assertion failure was caused.
  6856. * src/SegmentMan.cc
  6857. * test/SegmentManTest.cc
  6858. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6859. Added options to load/save the server's performance/status to a file
  6860. and the timeout to drop their data.
  6861. --server-stat-of=FILE specifies the file to which performance data
  6862. is saved.
  6863. --server-stat-if=FILE specifies the file to read previously saved
  6864. by --server-stat-of option. Might be used with --uri-selector=feedback.
  6865. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  6866. TIMEOUT is specified in seconds and the default value is 24hours.
  6867. * src/MultiUrlRequestInfo.cc
  6868. * src/OptionHandlerFactory.cc
  6869. * src/RequestGroupMan.cc
  6870. * src/RequestGroupMan.h
  6871. * src/ServerStatMan.cc
  6872. * src/ServerStatMan.h
  6873. * src/option_processing.cc
  6874. * src/prefs.cc
  6875. * src/prefs.h
  6876. * test/ServerStatManTest.cc
  6877. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  6879. * src/ServerStatMan.cc
  6880. * src/ServerStatMan.h
  6881. * test/ServerStatManTest.cc
  6882. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6883. Implemented ServerStatMan::load(...) function and its test case.
  6884. * src/ServerStat.cc
  6885. * src/ServerStat.h
  6886. * src/ServerStatMan.cc
  6887. * test/ServerStatManTest.cc
  6888. * test/ServerStatTest.cc
  6889. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6890. Use time_t instead of int32_t. Use int64_t where milli second is
  6891. expected.
  6892. * src/TimeA2.cc
  6893. * src/TimeA2.h
  6894. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6895. Implemented ServerStatMan::save(...) function and its test case.
  6896. * src/ServerStat.cc
  6897. * src/ServerStat.h
  6898. * src/ServerStatMan.cc
  6899. * src/ServerStatMan.h
  6900. * test/ServerStatManTest.cc
  6901. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6902. Now aria2 uses name attribute in Metalink as local filename in
  6903. BitTorrent downloads. BUG#2033999
  6904. * src/BtContext.h
  6905. * src/BtDependency.cc
  6906. * src/DefaultBtContext.cc
  6907. * src/DefaultBtContext.h
  6908. * src/SingleFileDownloadContext.cc
  6909. * src/SingleFileDownloadContext.h
  6910. * test/BtDependencyTest.cc
  6911. * test/DefaultBtContextTest.cc
  6912. * test/MockBtContext.h
  6913. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. Added AC_C_BIGENDIAN
  6915. * src/configure.ac
  6916. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Limited numCommand less than or equal to the number of piece.
  6918. * src/RequestGroup.cc
  6919. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  6921. directive.
  6922. * test/DefaultPieceStorageTest.cc
  6923. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6924. Fixed memory leak in test code
  6925. * test/AnnounceListTest.cc
  6926. * test/DefaultPeerListProcessorTest.cc
  6927. * test/DefaultPeerStorageTest.cc
  6928. * test/MetaFileUtilTest.cc
  6929. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6930. Fixed wrong argument passing to BitfieldMan::isBitSet()
  6931. * src/DefaultPieceStorage.cc
  6932. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6933. Initialized _directIOAllowed
  6934. * src/MultiDiskAdaptor.cc
  6935. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. Fixed memory leak
  6937. * src/GZipDecoder.cc
  6938. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Fixed memory leak
  6940. * src/MetalinkParserStateMachine.cc
  6941. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6942. Fixed memory leak
  6943. * src/Dictionary.cc
  6944. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6945. Fixed memory leak
  6946. * src/IteratableChunkChecksumValidator.h
  6947. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6948. Fixed unmatched malloc/free.
  6949. * src/IteratableChunkChecksumValidator.cc
  6950. * src/IteratableChecksumValidator.cc
  6951. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Removed max chunk size check. This change fixes BUG#2040169
  6953. * src/ChunkedDecoder.cc
  6954. * src/ChunkedDecoder.h
  6955. * test/ChunkedDecoderTest.cc
  6956. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6957. Implemented download speed based URI selection algorithm.
  6958. Introduced new option --uri-selector.
  6959. If --uri-selector=feedback is given, aria2 uses download speed observed
  6960. in the previous downloads and chooses fastest server in the URI list.
  6961. Currently at most 10 URIs are considered to introduce randomeness for
  6962. finding better servers. The speed is average download speed in the
  6963. downloads.
  6964. On the other hand, if --uri-selector=inorder is given, which is default,
  6965. URI is tried in order in URI list.
  6966. The usage text for the new option has not been written yet.
  6967. * src/AbstractCommand.cc
  6968. * src/DownloadCommand.cc
  6969. * src/DownloadEngine.cc
  6970. * src/DownloadEngineFactory.cc
  6971. * src/InOrderURISelector.cc
  6972. * src/InOrderURISelector.h
  6973. * src/OptionHandlerFactory.cc
  6974. * src/PeerStat.h
  6975. * src/RequestGroup.cc
  6976. * src/RequestGroup.h
  6977. * src/RequestGroupMan.cc
  6978. * src/RequestGroupMan.h
  6979. * src/SegmentMan.cc
  6980. * src/SegmentMan.h
  6981. * src/ServerStat.cc
  6982. * src/ServerStat.h
  6983. * src/ServerStatMan.cc
  6984. * src/ServerStatMan.h
  6985. * src/ServerStatURISelector.cc
  6986. * src/ServerStatURISelector.h
  6987. * src/URISelector.h
  6988. * src/option_processing.cc
  6989. * src/prefs.cc
  6990. * src/prefs.h
  6991. * test/InOrderURISelectorTest.cc
  6992. * test/RequestGroupManTest.cc
  6993. * test/ServerStatManTest.cc
  6994. * test/ServerStatURISelectorTest.cc
  6995. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6996. * Release 0.15.1+2
  6997. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Bump up version number to 0.15.1+2
  6999. * configure.ac
  7000. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7001. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7002. * m4/aria2_arg.m4
  7003. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7004. * Release 0.15.1+1
  7005. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Bump up version number to 0.15.1+1
  7007. * configure.ac
  7008. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Fixed the bug that causes segmentaion fault when resuming download
  7010. using metalink without size tag. Reproducible only using HTTP URI.
  7011. * src/HttpResponseCommand.cc
  7012. * src/FtpNegotiationCommand.cc
  7013. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7014. * Release 0.15.1
  7015. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Updated Bulgarian and French translations, thanks to all translators.
  7017. * po/bg.po
  7018. * po/fr.po
  7019. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7020. Bump up version number to 0.15.1
  7021. * configure.ac
  7022. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. Avoid repeated call of gettimeofday() when calculating speed.
  7024. * src/SpeedCalc.cc
  7025. * src/SpeedCalc.h
  7026. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7027. Removed writable check when socket's send buffer is full in BitTorrent
  7028. downloads to lower CPU usage.
  7029. * src/PeerInteractionCommand.cc
  7030. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Fixed broken gzip inflation.
  7032. Turn off segmented downloading if gzip content is smaller than or equal
  7033. to 1MiB and inflate the data on the fly, because HTTP response header
  7034. doesn't contain the length of inflated file we can't determin where
  7035. the chunk of data should be written.
  7036. On the other hand, if gzip content is larger than 1MB, then turn off
  7037. on the fly inflation, because some servers returns "content-type: gzip"
  7038. for *.tgz, *.gz files.
  7039. * src/DownloadCommand.cc
  7040. * src/HttpResponseCommand.cc
  7041. * src/HttpResponseCommand.h
  7042. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Applied tizianomueller's patch to fix compile error.
  7044. * test/BitfieldManTest.cc
  7045. * test/BtRequestMessageTest.cc
  7046. * test/DefaultBtContextTest.cc
  7047. * test/DefaultDiskWriterTest.cc
  7048. * test/DefaultPieceStorageTest.cc
  7049. * test/HttpHeaderProcessorTest.cc
  7050. * test/HttpResponseTest.cc
  7051. * test/Metalink2RequestGroupTest.cc
  7052. * test/MetalinkParserControllerTest.cc
  7053. * test/MetalinkProcessorTest.cc
  7054. * test/PeerSessionResourceTest.cc
  7055. * test/UtilTest.cc
  7056. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. * Release 0.15.0
  7058. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Reordered src files in POTFILES.in so that usage text appears first.
  7060. * po/POTFILES.in
  7061. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. Bump up version number to 0.15.0
  7063. * configure.ac
  7064. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7065. Added Bulgarian translation.
  7066. Updated Catalan, Spanish, French and Japanese translations.
  7067. Thanks to all translators.
  7068. * po/LINGUAS
  7069. * po/bg.po
  7070. * po/ca.po
  7071. * po/es.po
  7072. * po/fr.po
  7073. * po/ja.po
  7074. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Updated feature list. Added libz for dependency section.
  7076. Added a description about unit testing using CppUnit.
  7077. * README
  7078. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Added a test for libz. Quoted where it is necessary.
  7080. * build_test.sh
  7081. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7082. Added GZip to `Enabled Features' list.
  7083. * src/FeatureConfig.cc
  7084. * src/FeatureConfig.h
  7085. * test/FeatureConfigTest.cc
  7086. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7087. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7088. the transfer has not yet started.
  7089. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7090. * src/SegmentMan.cc
  7091. * src/SegmentMan.h
  7092. * test/SegmentManTest.cc
  7093. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7094. Cache last calculated average download/upload speed.
  7095. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7096. cached value.
  7097. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7098. * src/PeerStat.h
  7099. * src/SpeedCalc.cc
  7100. * src/SpeedCalc.h
  7101. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Call parseUrl directly.
  7103. * src/Request.cc (resetUrl)
  7104. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Supported absolute/relative path in Location header field.
  7106. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7107. * src/HttpHeader.cc
  7108. * src/HttpHeader.h
  7109. * src/HttpResponse.cc
  7110. * src/HttpSkipResponseCommand.cc
  7111. * src/Request.cc
  7112. * test/HttpHeaderTest.cc
  7113. * test/HttpResponseTest.cc
  7114. * test/RequestTest.cc
  7115. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Changed help text for --load-cookie option.
  7117. * doc/aria2c.1.txt
  7118. * src/usage_text.h
  7119. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7120. Regenerated test/Makefile.in to remove stale ChangeLog.
  7121. * test/Makefile.in
  7122. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7123. Updated po files.
  7124. * po/aria2c.pot
  7125. * po/*.po
  7126. * po/*.gmo
  7127. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Bump up version number to 0.15.0b
  7129. * configure.ac
  7130. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Externalize messages.
  7132. * src/RequestGroupMan.cc
  7133. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7134. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Use File::exists() instead of File::isFile() to allow non-regular file
  7136. such as block special files.
  7137. * src/AbstractDiskWriter.cc
  7138. * src/MultiDiskWriter.cc
  7139. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7140. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7141. * src/gai_strerror.h
  7142. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7143. Fixed compile error. Thanks gknauf for the patch.
  7144. * src/asctime_r.c
  7145. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. Included asctime_r.h from a2time.h.
  7147. * src/a2time.h
  7148. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Added a message "aria2 doesn't verify signature" to log message when
  7150. signature file is saved.
  7151. * src/RequestGroupMan.cc
  7152. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7153. Added the ability to save signature when download is completed if
  7154. signature is available. The filename of signature file is the path to
  7155. download file followed by ".sig". If it already exists, then signature
  7156. will not be saved.
  7157. * src/RequestGroupMan.cc
  7158. * src/Signature.cc
  7159. * test/SignatureTest.cc
  7160. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Updated the descriptions for --bt-seed-unverified.
  7162. * doc/aria2c.1
  7163. * doc/aria2c.1.html
  7164. * doc/aria2c.1.txt
  7165. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7166. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7167. that this is not going to verify files using piece hashes.
  7168. * src/HelpItemFactory.cc
  7169. * src/OptionHandlerFactory.cc
  7170. * src/RequestGroup.cc
  7171. * src/option_processing.cc
  7172. * src/prefs.cc
  7173. * src/prefs.h
  7174. * src/usage_text.h
  7175. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7176. Added the ability to retrieve signature from Metalink file.
  7177. A retrieved signature is stored in Signature class and it is held by
  7178. DownloadContext class. Note that aria2 doesn't verify signature.
  7179. * src/DownloadContext.cc
  7180. * src/DownloadContext.h
  7181. * src/Makefile.am
  7182. * src/Makefile.in
  7183. * src/Metalink2RequestGroup.cc
  7184. * src/MetalinkEntry.cc
  7185. * src/MetalinkEntry.h
  7186. * src/MetalinkParserController.cc
  7187. * src/MetalinkParserController.h
  7188. * src/MetalinkParserStateMachine.cc
  7189. * src/MetalinkParserStateMachine.h
  7190. * src/Signature.cc
  7191. * src/Signature.h
  7192. * src/SignatureMetalinkParserState.cc
  7193. * src/SignatureMetalinkParserState.h
  7194. * src/VerificationMetalinkParserState.cc
  7195. * src/VerificationMetalinkParserState.h
  7196. * test/Metalink2RequestGroupTest.cc
  7197. * test/MetalinkParserControllerTest.cc
  7198. * test/MetalinkProcessorTest.cc
  7199. * test/test.xml
  7200. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Close DiskAdaptor after renaming file.
  7202. * src/RequestGroup.cc
  7203. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Corrected indentation
  7205. * src/DefaultBtProgressInfoFile.cc
  7206. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7207. Moved the calls of std::ios::exceptions() inside of try-catch block
  7208. because if an error occurred in constructor of std::fstream, then
  7209. exception is thrown immediately when std::ios::exceptions() is called
  7210. which results unhandled exception and aria2c aborts.
  7211. * src/DefaultBtProgressInfoFile.cc
  7212. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7213. Added the test for the previous change in DefaultBtContext.cc
  7214. * test/DefaultBtContextTest.cc
  7215. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Fixed the bug that causes infinite loop when the number of pieces are
  7217. fewer than allowed fast set size which is 10 by default.
  7218. * src/DefaultBtContext.cc
  7219. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Updated the descriptions for -j, -s. Added --bt-seed.
  7221. * doc/aria2c.1
  7222. * doc/aria2c.1.html
  7223. * doc/aria2c.1.txt
  7224. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7225. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7226. aria2 seeds previously downloaded files without validating piece hashs.
  7227. * src/HelpItemFactory.cc
  7228. * src/OptionHandlerFactory.cc
  7229. * src/RequestGroup.cc
  7230. * src/option_processing.cc
  7231. * src/prefs.cc
  7232. * src/prefs.h
  7233. * src/usage_text.h
  7234. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Updated DESCRIPTION of man page.
  7236. * doc/aria2c.1
  7237. * doc/aria2c.1.html
  7238. * doc/aria2c.1.txt
  7239. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7240. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7241. Don't define `struct addrinfo' when __sun is defined.
  7242. * src/getaddrinfo.h
  7243. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7244. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7245. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7246. second argument is of type `struct _stati64'. Otherwise it is defined as
  7247. `struct stat'.
  7248. * src/AbstractDiskWriter.cc
  7249. * src/File.cc
  7250. * src/File.h
  7251. * src/a2io.h
  7252. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. Fixed the compile error in hurd-i386
  7254. See the original bug report:
  7255. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  7256. * src/a2io.h
  7257. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. Code cleanup.
  7259. * src/PeerAbstractCommand.cc
  7260. * src/PeerAbstractCommand.h
  7261. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Removed TransferEncoding.
  7263. * src/DownloadCommand.cc
  7264. * src/DownloadCommand.h
  7265. * src/HttpResponseCommand.cc
  7266. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. Updated po files.
  7268. * po/aria2c.pot
  7269. * po/*.po
  7270. * po/*.gmo
  7271. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  7273. * src/A2STR.cc
  7274. * src/A2STR.h
  7275. * src/ChunkedDecoder.cc
  7276. * src/ChunkedDecoder.h
  7277. * src/ChunkedEncoding.cc: Removed
  7278. * src/ChunkedEncoding.h: Removed
  7279. * src/DownloadCommand.cc
  7280. * src/DownloadCommand.h
  7281. * src/HttpDownloadCommand.cc
  7282. * src/HttpResponse.cc
  7283. * src/HttpResponse.h
  7284. * src/HttpResponseCommand.cc
  7285. * src/HttpSkipResponseCommand.cc
  7286. * src/HttpSkipResponseCommand.h
  7287. * src/Makefile.am
  7288. * src/TransferEncoding.h: Removed
  7289. * test/ChunkedDecoderTest.cc
  7290. * test/ChunkedEncodingTest.cc: Removed
  7291. * test/HttpResponseTest.cc
  7292. * test/Makefile.am
  7293. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7294. Use append instead of insert.
  7295. * src/GZipDecoder.cc
  7296. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Updated doc
  7298. * src/Decoder.h
  7299. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Updated usage text for -s option.
  7301. * src/usage_text.h
  7302. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7303. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  7304. * src/Request.cc
  7305. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Cleaned up configure.ac.
  7307. * configure.ac
  7308. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  7310. AC_ARG_ENABLE.
  7311. * configure.ac
  7312. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. Added gzip, deflate decoding support in HTTP using libz. If compiled
  7314. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  7315. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  7316. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  7317. fly and writes decoded data to a local disk.
  7318. * README
  7319. * README.html
  7320. * configure.ac
  7321. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  7322. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  7323. * m4/libz.m4
  7324. * src/Decoder.h
  7325. * src/DownloadCommand.cc
  7326. * src/DownloadCommand.h
  7327. * src/Exception.h
  7328. * src/GZipDecoder.cc
  7329. * src/GZipDecoder.h
  7330. * src/HttpHeader.cc
  7331. * src/HttpHeader.h
  7332. * src/HttpRequest.cc
  7333. * src/HttpRequest.h
  7334. * src/HttpResponse.cc
  7335. * src/HttpResponse.h
  7336. * src/HttpResponseCommand.cc
  7337. * src/Makefile.am
  7338. * test/GZipDecoderTest.cc
  7339. * test/HttpRequestTest.cc
  7340. * test/HttpResponseTest.cc
  7341. * test/Makefile.am
  7342. * test/Makefile.in
  7343. * test/gzip_decode_test.gz
  7344. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Clarified usage of -j option.
  7346. * src/usage_text.h
  7347. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Disabled getting size from the response of RETR.
  7349. If SIZE command failed, then disable resuming and segmented downloading.
  7350. * src/FtpConnection.cc
  7351. * src/FtpConnection.h
  7352. * src/FtpNegotiationCommand.cc
  7353. * src/FtpNegotiationCommand.h
  7354. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7355. Use digits to find first byte of file size, which makes the intention
  7356. of the code clearer.
  7357. * src/FtpConnection.cc
  7358. Don't call validateTotalLength() when size is 0.
  7359. * src/FtpNegotiationCommand.cc
  7360. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7361. Updated po files.
  7362. * po/aria2c.pot
  7363. * po/*.gmo
  7364. * po/*.po
  7365. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7366. Clarified usage text for --split option.
  7367. * src/usage_text.h
  7368. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7369. Bump up version number to 0.15.0dev. "dev" means "development"
  7370. version, which means I started the development of the next release!
  7371. * src/configure.ac
  7372. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7373. If FTP server returns negative response with REST raw command and
  7374. requested range is not 0, throw exception. If requested range is 0,
  7375. continue download a file from 0 byte.
  7376. * src/FtpNegotiationCommand.cc
  7377. * src/FtpNegotiationCommand.h
  7378. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Supported FTP server which don't recognize SIZE raw command.
  7380. If SIZE raw command is failed, aria2 will try to get file size
  7381. from the response of RETR raw command. If both attempts are failed,
  7382. then resuming and segmented downloading are disabled.
  7383. * src/FtpConnection.cc
  7384. * src/FtpConnection.h
  7385. * src/FtpNegotiationCommand.cc
  7386. * src/FtpNegotiationCommand.h
  7387. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. * Release 0.14.0+1
  7389. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Bump up version number to 0.14.0+1
  7391. * src/configure.ac
  7392. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7393. Fixed the code that refers static member variable from non-static
  7394. context.
  7395. * src/DefaultPeerStorage.cc
  7396. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. * Release 0.14.0
  7398. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Added build test script
  7400. * build_test.sh
  7401. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. Updated ja.po
  7403. * src/ja.po
  7404. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7405. Bump up version number to 0.14.0
  7406. * src/configure.ac
  7407. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Updated ja.po and fr.po. Great thanks for french translators and
  7409. Sebastien WILLEMIJNS.
  7410. * po/fr.po
  7411. * po/ja.po
  7412. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Added configure option to enable/disable epoll support.
  7414. * configure.ac
  7415. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7416. Updated man page.
  7417. * doc/aria2c.1.txt
  7418. * doc/aria2c.1
  7419. * doc/aria2c.1.html
  7420. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Added missing default value '5' to the usage of --split option.
  7422. * src/HelpItemFactory.cc
  7423. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Filled up pieces based on the number of missing blocks, rather than
  7425. simplay the number of piece * block length.
  7426. * src/BtRequestFactory.h
  7427. * src/DefaultBtInteractive.cc
  7428. * src/DefaultBtInteractive.h
  7429. * src/DefaultBtRequestFactory.cc
  7430. * src/DefaultBtRequestFactory.h
  7431. * src/Piece.cc
  7432. * src/Piece.h
  7433. * test/BitfieldManTest.cc
  7434. * test/DefaultBtRequestFactoryTest.cc
  7435. * test/MockBtRequestFactory.h
  7436. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Made _epEvents a member variable.
  7438. * src/DownloadEngine.cc
  7439. * src/DownloadEngine.h
  7440. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Cancel download if http redirect is bounded more than 20 times.
  7442. * src/AbstractCommand.cc
  7443. * src/HttpSkipResponseCommand.cc
  7444. * src/Request.cc
  7445. * src/Request.h
  7446. * test/RequestTest.cc
  7447. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7448. Fixed unhandled exception(removed keyword `new').
  7449. * src/SocketCore.cc (initEPOLL)
  7450. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7451. Removed visit(const MetaEntry*)
  7452. * src/MetaEntryVisitor.h:
  7453. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  7454. and made them virtual.
  7455. * src/BencodeVisitor.h
  7456. * src/BencodeVisitor.cc
  7457. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7458. Updated po files.
  7459. * po/aria2c.pot
  7460. * po/*.po
  7461. * po/*.gmo
  7462. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Moved the call setWriteCheckSocket inside the previous clause to reduce
  7464. the number of socket to watch out.
  7465. * src/PeerInteractionCommand.cc
  7466. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7467. When there is not enough space in disk when writing a chunk of data,
  7468. aria2 now prints the message to the console to warn user and aborts
  7469. its download. Not all downloads are canceled because some downloads
  7470. may use another disk or partition. BUG#1640332
  7471. * src/AbstractDiskWriter.cc
  7472. * src/PeerAbstractCommand.cc
  7473. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  7474. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  7475. setHaltRequested(true) to cancel download.
  7476. * src/PeerInteractionCommand.h
  7477. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  7479. socket from int to sock_t as sockets are unsigned in Windows.
  7480. For AsyncNameResolver, DownloadEngine, I did additional modification
  7481. for the portion of the code changed according to epoll support.
  7482. I defined sock_t in a2netcompat.h to use sock_t without including
  7483. SocketCore.h.
  7484. * src/AsyncNameResolver.cc
  7485. * src/AsyncNameResolver.h
  7486. * src/DownloadEngine.cc
  7487. * src/DownloadEngine.h
  7488. * src/SocketCore.cc
  7489. * src/SocketCore.h
  7490. * src/a2netcompat.h
  7491. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  7493. changes in the patch were applied.
  7494. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  7495. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  7496. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  7497. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  7499. a2io.h and common.h were modified.
  7500. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  7501. MinGW.
  7502. * src/common.h: Changed off_t to 64 bit in MinGW.
  7503. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7505. only a2netcompat.h is modified.
  7506. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  7507. directives.
  7508. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7509. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  7510. only gai_strerror.h is modified.
  7511. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  7512. winsock errors in MinGW.
  7513. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  7515. follow sources are applied.
  7516. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  7517. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  7518. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  7519. I included locale.h from Platform.cc.
  7520. * src/main.cc: Moved common setup/teardown code to Platform class.
  7521. * test/AllTest.cc: Use Platform class.
  7522. Set locale to C in AllTest.cc to prevent the messages to be localized.
  7523. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7524. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  7525. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  7526. * test/HttpRequestTest.cc: Casted to off_t where it should.
  7527. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Applied Ross's aria2-0.13.2+1-mingw.patch and
  7529. aria2-0.13.2+1-mingw-2.patch.
  7530. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  7531. systems which don't have termious.h. I moved the directive inside of
  7532. if(isTTY) { ... clause so that line is wiped out without termious.h.
  7533. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  7534. anyway.
  7535. * src/asctime_r.h
  7536. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  7537. I added 2nd argument to the prototype declaration.
  7538. * src/StringFormat.cc: Get rid of vasprintf.
  7539. * src/getaddrinfo.h: Fixed constants.
  7540. * configure.ac: Added the check for asctime_r function.
  7541. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  7542. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7543. Added writable test for Socket when the sending message is in progress.
  7544. Usually the sending message is piece message. Without wriable check,
  7545. upload latency is dropped to more than 1sec.
  7546. * src/PeerInteractionCommand.cc
  7547. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. Create only requested files and files which shares a piece with
  7549. requested file in multi-torrent downloads. Directory structures are
  7550. also created in the same rule.
  7551. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  7552. DiskWriterEntry as in the previous implementation.
  7553. * src/MultiDiskWriter.cc
  7554. * src/MultiFileAllocationIterator.cc
  7555. * src/MultiFileAllocationIterator.h
  7556. * test/MultiFileAllocationIteratorTest.cc
  7557. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. Commented out -lprofiler
  7559. * src/Makefile.am
  7560. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7561. Bump up version number to 0.14.0b.
  7562. * src/configure.ac
  7563. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7564. Actively establish connection to peers in seeding, when peer cache
  7565. is not full and max upload speed limit is not reached.
  7566. * src/ActivePeerConnectionCommand.cc
  7567. * src/ActivePeerConnectionCommand.h
  7568. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7569. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  7570. to make room more fleshy, recently found peers.
  7571. Peer::_badConditionStartTime is not used anymore. Consider to remove
  7572. it.
  7573. * src/DefaultPeerStorage.cc
  7574. * test/DefaultPeerStorageTest.cc
  7575. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Returns cached data only when the previous receiveHandshake() is called
  7577. with peek = true.
  7578. * src/PeerConnection.cc (receiveHandshake)
  7579. * src/PeerConnection.h (receiveHandshake)
  7580. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Changed default value of -s option from 1 to 5.
  7582. Also max value of -s option is changed from 5 to 16.
  7583. * src/HelpItemFactory.cc
  7584. * src/OptionHandlerFactory.cc
  7585. * src/option_processing.cc
  7586. * src/usage_text.h
  7587. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7588. Changed -s options behavior. Now it means the number of connections
  7589. made simultaneously in each http/ftp download.
  7590. If 1 URL is specified, the behavior is the same with old implementation.
  7591. If -s N is given and more than N URLs are specified, first N URLs are
  7592. used and remaining URLs are used for backup. If less than N URLs are
  7593. specified, some of URLs are used more than once so that totally N
  7594. connections are made simultaneously.
  7595. * src/main.cc
  7596. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Included missing iosfwd or ostream header.
  7598. * src/RequestGroupMan.cc
  7599. * src/TaggedItem.cc
  7600. * src/TaggedItem.h
  7601. * src/Util.cc
  7602. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7603. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  7604. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  7605. * src/HttpConnection.cc: Included missing sstream.
  7606. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7607. Added --bt-max-open-files option.
  7608. * src/DefaultPieceStorage.cc
  7609. * src/HelpItemFactory.cc
  7610. * src/MultiDiskAdaptor.cc
  7611. * src/MultiDiskAdaptor.h
  7612. * src/OptionHandlerFactory.cc
  7613. * src/option_processing.cc
  7614. * src/prefs.cc
  7615. * src/prefs.h
  7616. * src/usage_text.h
  7617. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Fixed the bug that aria2 aborts when a path to a directory is given
  7619. in command-line.
  7620. * src/ProtocolDetector.cc
  7621. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7622. Limited the number files opened in each BitTorrent download. The default
  7623. value is 100. The option to change this value will be added.
  7624. * src/MultiDiskAdaptor.cc
  7625. * src/MultiDiskAdaptor.h
  7626. * src/MultiFileAllocationIterator.cc
  7627. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7628. Fixed the bug that HTTP downloads don't start with old libraries.
  7629. * src/HttpHeaderProcessor.cc
  7630. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7631. Use empty() instead of size() > 0.
  7632. * src/HttpConnection.cc
  7633. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7634. Drop connection if the incoming peer ID is the same with localhost's
  7635. one. The previous implementation drops connection when incoming peer's
  7636. IP address is the same with localhost's one.
  7637. * src/PeerListenCommand.cc
  7638. * src/DefaultBtInteractive.cc
  7639. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7640. Returns cached data without checking whether socket is readable
  7641. if the cache is available.
  7642. * src/PeerConnection.cc (receiveHandshake)
  7643. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7644. Included stdint.h
  7645. * src/common.h
  7646. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7647. Removed duplicate HAVE_GETTIMEOFDAY
  7648. * src/Makefile.am
  7649. * src/Makefile.in
  7650. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7651. Use interval as a minInterval when minInterval is not supplied.
  7652. * src/DefaultBtAnnounce.cc
  7653. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7654. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  7655. attempt is failed, then 2nd attempt get kicked out more quickly.
  7656. And it is now static const member of DefaultBtAnnounce.
  7657. * src/DefaultBtAnnounce.h
  7658. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7659. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  7660. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  7661. * src/ActivePeerConnectionCommand.cc
  7662. * src/BtConstants.h
  7663. * src/BtRuntime.h
  7664. * src/DHTGetPeersCommand.cc
  7665. * src/DefaultBtAnnounce.cc
  7666. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  7667. BtRuntime::MAX_PEERS.
  7668. * src/DefaultPeerStorage.h
  7669. * src/InitiatorMSEHandshakeCommand.cc
  7670. * src/PeerInitiateConnectionCommand.cc
  7671. * src/PeerInteractionCommand.cc
  7672. * src/PeerReceiveHandshakeCommand.cc
  7673. * src/TrackerWatcherCommand.cc
  7674. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7675. Always Connect to _numNewConnection
  7676. * src/ActivePeerConnectionCommand.cc
  7677. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Made `begin' unsigned int.
  7679. * src/GrowSegment.h
  7680. * src/Piece.cc
  7681. * src/Piece.h
  7682. * src/PiecedSegment.cc
  7683. * src/PiecedSegment.h
  7684. * src/Segment.h
  7685. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7686. Calculate piece hash when data is arrived if the data is arrived in
  7687. order. This removes additional read operation for hash calculation.
  7688. If the data is arrived in out of order, the hash is calucated when the
  7689. piece is completed. This is the same behavior as the old implementation.
  7690. * src/BtPieceMessage.cc
  7691. * src/DefaultBtProgressInfoFile.cc
  7692. * src/DefaultPieceStorage.cc
  7693. * src/DownloadCommand.cc
  7694. * src/DownloadCommand.h
  7695. * src/DownloadEngine.cc
  7696. * src/GrowSegment.cc
  7697. * src/GrowSegment.h
  7698. * src/Piece.cc
  7699. * src/Piece.h
  7700. * src/PiecedSegment.cc
  7701. * src/PiecedSegment.h
  7702. * src/Segment.h
  7703. * test/PieceTest.cc
  7704. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7705. Try to keep the ordering of outgoing piece message.
  7706. * src/DefaultBtMessageDispatcher.cc
  7707. (DefaultBtMessageDispatcher::sendMessages)
  7708. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7709. Fixed busy loop when error/hup epoll events occur.
  7710. * src/AbstractCommand.cc
  7711. * src/PeerAbstractCommand.cc
  7712. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7713. Added --bt-request-peer-speed-limit option, which was a constant
  7714. SLOW_SPEED_THRESHOLD.
  7715. * src/ActivePeerConnectionCommand.cc
  7716. * src/ActivePeerConnectionCommand.h
  7717. * src/BtConstants.h
  7718. * src/HelpItemFactory.cc
  7719. * src/OptionHandlerFactory.cc
  7720. * src/PeerReceiveHandshakeCommand.cc
  7721. * src/option_processing.cc
  7722. * src/prefs.cc
  7723. * src/prefs.h
  7724. * src/usage_text.h
  7725. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Removed repeated call of getTopDirPath(). Instead, call it once and
  7727. cache the result.
  7728. * src/MultiDiskAdaptor.cc
  7729. * src/MultiDiskAdaptor.h
  7730. (mkdir, openFile, initAndOpenFile, openExistingFile)
  7731. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7732. Fixed compile error on debian etch.
  7733. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  7734. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  7735. it is undefined.
  7736. * src/Util.cc (ULLONG_MAX)
  7737. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Added epoll support. Use epoll if it is available. If not, use select.
  7739. When async dns is enabled in compile time, epoll support is enabled
  7740. only when aria2 is built with c-ares. This condition statement is
  7741. defined in a2io.h.
  7742. Currently aria2 supports both c-ares and ares, but ares is maintained
  7743. for quite a while and debian already has c-ares package, ares support
  7744. will be dropped in the future version.
  7745. * configure.ac
  7746. * src/AbstractCommand.cc
  7747. * src/AsyncNameResolver.cc
  7748. * src/AsyncNameResolver.h
  7749. * src/Command.cc
  7750. * src/Command.h
  7751. * src/DownloadEngine.cc
  7752. * src/DownloadEngine.h
  7753. * src/PeerAbstractCommand.cc
  7754. * src/SocketCore.cc
  7755. * src/SocketCore.h
  7756. * src/a2io.h
  7757. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  7759. directive.
  7760. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. Do not do write operation to /dev/null file.
  7762. * src/LogFactory.cc
  7763. * src/SimpleLogger.cc
  7764. Replaced vasprintf with vsnprintf
  7765. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7766. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7767. * src/BtRequestMessage.cc
  7768. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  7769. for segmentation fault caused by previous commit.
  7770. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7771. Reduced the usage of gettimeofday().
  7772. * src/DefaultBtMessageDispatcher.cc
  7773. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  7774. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7775. * src/RequestSlot.cc
  7776. * src/RequestSlot.h
  7777. (RequestSlot::isTimeout)
  7778. Made RequestSlot have a reference to Piece object to avoid find
  7779. Piece repeatedly.
  7780. * src/DefaultBtMessageDispatcher.cc
  7781. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  7782. * src/RequestSlot.cc
  7783. * src/RequestSlot.h
  7784. (RequestSlot::getPiece)
  7785. * test/DefaultBtMessageDispatcherTest.cc
  7786. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. * src/TimeA2.cc
  7788. * src/TimeA2.h
  7789. (Time::difference): New function.
  7790. (Time::elapsed): Done optimization.
  7791. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7792. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  7793. directive.
  7794. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7795. * src/option_processing.cc: Added missing `defined' keyword to #if
  7796. directive.
  7797. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Bump up version number to 0.13.2+1
  7799. * src/configure.ac
  7800. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7801. Refactored broken outstanding piece handling.
  7802. * src/DefaultPieceStorage.cc
  7803. * src/DefaultPieceStorage.h
  7804. * src/Piece.cc
  7805. * src/Piece.h
  7806. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7807. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  7808. name collision of static variable and predefined macro.
  7809. * src/BtContext.cc
  7810. * src/BtContext.h
  7811. * src/CookieBoxFactory.cc
  7812. * src/CookieBoxFactory.h
  7813. * src/CookieParser.cc
  7814. * src/CookieParser.h
  7815. * src/DefaultBtContext.cc
  7816. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7817. * src/RequestGroup.cc
  7818. (RequestGroup::createInitialCommand): Use empty() instead of size().
  7819. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. * Release 0.13.2
  7821. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  7823. * po/fr.po
  7824. * po/ja.po
  7825. * po/aria2c.pot
  7826. * po/*.po
  7827. * po/*.gmo
  7828. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. Bump up version number to 0.13.2
  7830. * src/configure.ac
  7831. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7832. Refactord.
  7833. * src/RequestGroupMan.cc
  7834. (removeStoppedGroup)
  7835. (fillRequestGroupFromReserver)
  7836. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7837. Fixed compile error on Ubuntu.
  7838. * src/BtPieceMessage.cc
  7839. * src/MessageDigestHelper.cc
  7840. * src/Util.cc
  7841. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. Fixed compile error when configured with --disable-bittorrent
  7843. * test/DownloadHandlerFactoryTest.cc
  7844. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. Done make update-po
  7846. * po/aria2c.pot
  7847. * po/*.po
  7848. * po/*.gmo
  7849. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7850. Bump up version number to 0.13.2rc.
  7851. * src/configure.ac
  7852. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Made option name bold. Updated SYNOPSIS to make it more readable.
  7854. * doc/aria2c.1.txt
  7855. * doc/aria2c.1
  7856. * doc/aria2c.1.html
  7857. * src/version_usage.cc
  7858. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. Refactored. Use std::string instead of size and char*.
  7860. * Data.cc
  7861. * Data.h
  7862. * test/Data.cc
  7863. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7864. Added trimSelf(). Rewritten trim() to use trimSelf().
  7865. * Util.cc
  7866. * Util.h
  7867. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. * src/ChunkChecksum.h (getChecksum): Return const reference.
  7869. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7870. Fixed compile error when configured with --disable-metalink.
  7871. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  7872. * test/FeatureConfigTest.cc
  7873. * test/DownloadHandlerFactoryTest.cc
  7874. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. Fixed compile error when configured with --without-gnutls
  7876. --without-openssl
  7877. * src/main.cc
  7878. * test/DefaultBtProgressInfoFileTest.cc
  7879. * test/SegmentManTest.cc
  7880. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Fixed compile error with OpenSSL.
  7882. * src/IteratableChunkChecksumValidator.cc
  7883. * src/LibsslDHKeyExchange.h
  7884. * src/MessageDigestHelper.cc
  7885. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. Revert the default value of --max-concurrent-downloads to 5.
  7887. Revert the default value of --metalink-servers to 5.
  7888. Man pages was also updated.
  7889. * src/option_processing.cc
  7890. * doc/aria2c.1.txt
  7891. * doc/aria2c.1.html
  7892. * doc/aria2c.1
  7893. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7894. Returns const reference:
  7895. DownloadContext::getPieceHash, DownloadContext::getName,
  7896. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  7897. BtContext::getInfoHashAsString,
  7898. * src/BtContext.h
  7899. * src/DefaultBtContext.cc
  7900. * src/DefaultBtContext.h
  7901. * src/DownloadContext.h
  7902. * src/SingleFileDownloadContext.h
  7903. * test/MockBtContext.h
  7904. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7905. * src/RequestGroup.h (getDir): Removed.
  7906. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Returns const reference. The internal urlencode function was optimized
  7908. a little bit.
  7909. * src/Request.cc
  7910. * src/Request.h
  7911. * src/HttpRequest.cc
  7912. * src/HttpRequest.h
  7913. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7914. Defined option name and possible values as std::string to reduce
  7915. temporary string object creation in runtime.
  7916. * src/HelpItemFactory.cc
  7917. * src/LogFactory.cc
  7918. * src/Option.cc
  7919. * src/OptionHandlerFactory.cc
  7920. * src/option_processing.cc
  7921. * src/prefs.cc
  7922. * src/prefs.h
  7923. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7924. Return const reference.
  7925. * src/DownloadHandlerConstants.cc
  7926. * src/DownloadHandlerConstants.h
  7927. (getMetalinkExtensions)
  7928. (getMetalinkContentTypes)
  7929. (getBtExtensions)
  7930. (getBtContentTypes)
  7931. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7932. * src/HttpHeader.cc (get): Rewritten.
  7933. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Make HttpHeader::getFirst(...) return const reference.
  7935. * src/HttpHeader.cc
  7936. * src/HttpHeader.h
  7937. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7938. Use Option::getAsBool(...) instead of Option::get(...) and compare
  7939. it with V_TRUE.
  7940. * src/DefaultPieceStorage.cc
  7941. * src/DownloadCommand.cc
  7942. * src/FtpNegotiationCommand.cc
  7943. * src/HttpRequest.cc
  7944. * src/InitiateConnectionCommand.cc
  7945. * src/RequestGroup.cc
  7946. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Made Option::get(...) return const reference of std::string.
  7948. * src/Option.cc
  7949. * src/Option.h
  7950. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7951. Replaced std:copy with insert.
  7952. * src/DefaultBtMessageDispatcher.cc
  7953. * src/DefaultPieceStorage.cc
  7954. * src/DownloadEngineFactory.cc
  7955. * src/RequestGroup.cc
  7956. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7957. Included SocketCore.h to fix compiler warning.
  7958. * src/InitiateConnectionCommand.cc
  7959. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. Put piece selection strategy algorithm to RarestPieceSelector class,
  7961. Added a switch to choose whether randomized selection so that unit
  7962. tests emit same results in, possibly, win32.
  7963. * src/DefaultPieceStorage.cc
  7964. * src/DefaultPieceStorage.h
  7965. * src/RarestPieceSelector.cc
  7966. * src/RarestPieceSelector.h
  7967. * test/DefaultPieceStorageTest.cc
  7968. * test/RarestPieceSelectorTest.cc
  7969. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7970. Don't pool connection if HTTP proxy is enabled.
  7971. * src/FtpFinishDownloadCommand.cc
  7972. * src/FtpNegotiationCommand.cc
  7973. * src/HttpSkipResponseCommand.cc
  7974. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7975. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  7976. * src/AbstractCommand.cc
  7977. * src/AbstractCommand.h
  7978. * src/ActivePeerConnectionCommand.cc
  7979. * src/FtpInitiateConnectionCommand.cc
  7980. * src/HttpInitiateConnectionCommand.cc
  7981. * src/InitiateConnectionCommandFactory.cc
  7982. * src/PeerAbstractCommand.cc
  7983. * src/PeerAbstractCommand.h
  7984. * src/PeerInitiateConnectionCommand.cc
  7985. * src/TrackerWatcherCommand.cc
  7986. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7987. Sort RequestSlot in ascending order and manipulate them using
  7988. lower_bound.
  7989. * src/DefaultBtMessageDispatcher.cc
  7990. * src/DefaultBtMessageDispatcher.h
  7991. (getMessageQueue): Added const qualifier.
  7992. (getRequestSlots): Added const qualifier.
  7993. (sendMessages): Use empty() instead of size().
  7994. (doCancelSendingPieceAction): Use HandleEvent object.
  7995. (doAbortOutstandingRequestAction): Rewritten.
  7996. (doChokedAction): Rewritten.
  7997. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  7998. (isOutstandingRequest): Rewritten.
  7999. (getOutstandingRequest): Rewritten.
  8000. (removeOutstandingRequest): Rewritten.
  8001. (addOutstandingRequest): Rewritten.
  8002. * src/RequestSlot.cc
  8003. * src/RequestSlot.h
  8004. (operator=): Rewritten.
  8005. (operator!=): New function.
  8006. (operator<): New function.
  8007. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. * src/DefaultBtRequestFactory.cc
  8009. (doChokedAction): Rewritten.
  8010. (removeCompletedPiece): Rewritten.
  8011. (removeTargetPiece): Rewritten.
  8012. (createRequestMessages): Added the debug log.
  8013. (createRequestMessagesOnEndGame: Added the debug log.
  8014. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Added the debug log message.
  8016. * src/BtPieceMessage.cc (doReceivedAction)
  8017. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8018. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8019. used lower_bound to process them rather than linear search.
  8020. * src/DHTPeerAnnounceStorage.cc
  8021. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8023. peer has at least one completed piece.
  8024. * src/Peer.cc
  8025. * src/Peer.h
  8026. * src/PeerInteractionCommand.cc
  8027. * src/PeerSessionResource.cc
  8028. * src/PeerSessionResource.h
  8029. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8030. Removed unnecessary sorting
  8031. * src/DefaultPieceStorage (DefaultPieceStorage)
  8032. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8033. Rewritten the portion of the code that mangaes allowed fast indexes.
  8034. * src/PeerSessionResource.cc
  8035. * src/PeerSessionResource.h
  8036. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8037. Removed the invalid string including '\r' from ru.po and
  8038. did make update-po.
  8039. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Added --log-level and --summary-interval to man page.
  8041. * doc/aria2c.1.txt
  8042. * doc/aria2c.1.html
  8043. * doc/aria2c.1
  8044. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8045. Added --log-level option to specify log level. Log messages under
  8046. the specified level are not output. Default value is `debug'.
  8047. * src/HelpItemFactory.cc
  8048. * src/LogFactory.cc
  8049. * src/LogFactory.h
  8050. * src/Logger.h
  8051. * src/OptionHandlerFactory.cc
  8052. * src/SimpleLogger.cc
  8053. * src/SimpleLogger.h
  8054. * src/main.cc
  8055. * src/option_processing.cc
  8056. * src/prefs.h
  8057. * src/usage_text.h
  8058. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Print download progress summary of all parallel downloads in specified
  8060. interval, default 60 secs. While aria2 could download several files
  8061. in parallel (see -j option), it displayed just first download progress,
  8062. and the other downloads are hidden from the users. This new feature
  8063. prints all downloads currently in-progress to the console so that you
  8064. can check the status of all downloads. The interval can be adjusted
  8065. by --summary-interval option.
  8066. The progress readout is now cut so that all fits in the one line of
  8067. console.
  8068. * src/ConsoleStatCalc.cc
  8069. * src/ConsoleStatCalc.h
  8070. * src/HelpItemFactory.cc
  8071. * src/OptionHandlerFactory.cc
  8072. * src/RequestGroupMan.cc
  8073. * src/RequestGroupMan.h
  8074. * src/main.cc
  8075. * src/option_processing.cc
  8076. * src/prefs.h
  8077. * src/usage_text.h
  8078. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8080. * src/DownloadEngine.cc (DownloadEngine)
  8081. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8083. defined.
  8084. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8085. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. Use erase+lower_bound+insert instead of sort.
  8087. * src/DefaultPieceStorage.cc (addPieceStats)
  8088. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8089. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8090. * src/A2STR.cc
  8091. * src/A2STR.h
  8092. * src/OptionParser.cc (parse)
  8093. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Defined fake filename `[tracker.announce]' as static const std::string.
  8095. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8096. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. Defined default filename `index.html' as static const std::string
  8098. * src/SingleFileDownloadContext.cc
  8099. * src/SingleFileDownloadContext.h
  8100. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Defined "[MEMORY]" as static const std::string.
  8102. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8103. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Defined control file's version number as static const std::string.
  8105. * src/DefaultBtProgressInfoFile.cc
  8106. * src/DefaultBtProgressInfoFile.h
  8107. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Use Request::METHOD_GET
  8109. * src/RequestGroup.cc (createNextCommandWithAdj)
  8110. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8111. Defined "OK", "ERR", "INPR" as static const std::string
  8112. * src/RequestGroupMan.cc (showDownloadResults)
  8113. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Defined default client used in extended handshake as static const
  8115. std::string
  8116. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8117. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8118. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8119. * src/HttpConnection.cc (eraseConfidentialInfo)
  8120. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8121. Defined default ftp user and password as static const std::string
  8122. * src/AuthConfigFactory.cc
  8123. * src/AuthConfigFactory.h
  8124. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Defined strings used in netrc as static const std::string
  8126. * src/Netrc.cc
  8127. * src/Netrc.h
  8128. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Defined HTTP status as static const std::string
  8130. * src/AbstractProxyResponseCommand.cc
  8131. * src/HttpHeader.cc
  8132. * src/HttpHeader.h
  8133. * src/HttpResponse.cc
  8134. * src/HttpResponseCommand.cc
  8135. * src/HttpSkipResponseCommand.cc
  8136. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Defined "\r\n", "A", "I" as static const std::string
  8138. * src/A2STR.cc
  8139. * src/A2STR.h
  8140. * src/FtpConnection.cc
  8141. * src/FtpConnection.h
  8142. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. Added COLON_C(".") and used it in Request::parseUrl()
  8144. * src/A2STR.cc
  8145. * src/A2STR.h
  8146. * src/Request.cc (parseUrl)
  8147. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8148. Changed the type of padName from `const std::string&' to `const char*'.
  8149. * src/MSEHandshake.cc (verifyPadLength)
  8150. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8151. Defined "sha1" as static const std::string.
  8152. * src/MetalinkParserController.cc
  8153. * src/MetalinkParserController.h
  8154. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8155. Defined message digest algorithm name as static const std::string
  8156. * src/DHTTokenTracker.cc
  8157. * src/DHTUtil.cc
  8158. * src/DefaultBtContext.cc
  8159. * src/MSEHandshake.cc
  8160. * src/MessageDigestHelper.cc
  8161. * src/Peer.cc
  8162. * src/messageDigest.cc
  8163. * src/messageDigest.h
  8164. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Made string literals used in SAX parser static const std::string.
  8166. * src/FileMetalinkParserState.cc
  8167. * src/FileMetalinkParserState.h
  8168. * src/FilesMetalinkParserState.cc
  8169. * src/FilesMetalinkParserState.h
  8170. * src/InitialMetalinkParserState.cc
  8171. * src/InitialMetalinkParserState.h
  8172. * src/MetalinkMetalinkParserState.cc
  8173. * src/MetalinkMetalinkParserState.h
  8174. * src/PiecesMetalinkParserState.cc
  8175. * src/PiecesMetalinkParserState.h
  8176. * src/ResourcesMetalinkParserState.cc
  8177. * src/ResourcesMetalinkParserState.h
  8178. * src/VerificationMetalinkParserState.cc
  8179. * src/VerificationMetalinkParserState.h
  8180. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8182. * src/A2STR.cc
  8183. * src/A2STR.h
  8184. * src/File.cc
  8185. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Defined static const std::string IP("ip"), PORT("port") and use them
  8187. instead of string literals.
  8188. * src/DefaultPeerListProcessor.cc
  8189. * src/DefaultPeerListProcessor.h
  8190. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8191. Made string literals for torrent file processing static const
  8192. std::string.
  8193. * src/BtContext.cc
  8194. * src/BtContext.h
  8195. * src/DefaultBtContext.cc
  8196. * src/DefaultBtContext.h
  8197. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8198. Made string literal for tracker response static const std::string
  8199. * src/BtAnnounce.cc
  8200. * src/BtAnnounce.h
  8201. * src/DefaultBtAnnounce.cc
  8202. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8203. Use DHTMessage::T instead of "t".
  8204. * src/DHTMessageTracker.cc (messageArrived)
  8205. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8206. Made keyName static const. Made trimmed charset static const
  8207. std::string.
  8208. * src/Util.cc (getContentDispositionFilename)
  8209. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8210. Made USER_AGENT const. Made "/" static const std::string.
  8211. * src/A2STR.cc
  8212. * src/A2STR.h
  8213. * src/HttpRequest.cc
  8214. * src/HttpRequest.h
  8215. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. Made string listeral to static const std::string:
  8217. "Content-Range", "Content-Length"
  8218. * src/HttpHeader.cc
  8219. * src/HttpHeader.h
  8220. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8221. Made string listeral to static const std::string.
  8222. * src/HttpConnection.cc
  8223. * src/HttpHeader.cc
  8224. * src/HttpHeader.h
  8225. * src/HttpResponse.cc
  8226. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8227. Made string listeral to static const std::string.
  8228. * src/A2STR.cc
  8229. * src/A2STR.h
  8230. * src/SimpleLogger.cc
  8231. * src/SimpleLogger.h
  8232. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8233. Made string literal to static const std::string.
  8234. Rewritten CookieParser::setField.
  8235. * src/A2STR.cc
  8236. * src/A2STR.h
  8237. * src/CookieBoxFactory.cc
  8238. * src/CookieBoxFactory.h
  8239. * src/CookieParser.cc
  8240. * src/CookieParser.h
  8241. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Made string literal to static const std::string
  8243. * src/DHTAbstractMessage.cc
  8244. * src/DHTAnnouncePeerMessage.cc
  8245. * src/DHTAnnouncePeerMessage.h
  8246. * src/DHTAnnouncePeerReplyMessage.cc
  8247. * src/DHTAnnouncePeerReplyMessage.h
  8248. * src/DHTFindNodeMessage.cc
  8249. * src/DHTFindNodeMessage.h
  8250. * src/DHTFindNodeReplyMessage.cc
  8251. * src/DHTFindNodeReplyMessage.h
  8252. * src/DHTGetPeersMessage.cc
  8253. * src/DHTGetPeersMessage.h
  8254. * src/DHTGetPeersReplyMessage.cc
  8255. * src/DHTGetPeersReplyMessage.h
  8256. * src/DHTMessage.cc
  8257. * src/DHTMessage.h
  8258. * src/DHTMessageFactoryImpl.cc
  8259. * src/DHTMessageReceiver.cc
  8260. * src/DHTPingMessage.cc
  8261. * src/DHTPingMessage.h
  8262. * src/DHTPingReplyMessage.cc
  8263. * src/DHTPingReplyMessage.h
  8264. * src/DHTQueryMessage.cc
  8265. * src/DHTQueryMessage.h
  8266. * src/DHTResponseMessage.cc
  8267. * src/DHTResponseMessage.h
  8268. * src/DHTUnknownMessage.cc
  8269. * src/DHTUnknownMessage.h
  8270. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8271. Made string literal to static const std::string
  8272. * src/BtChokeMessage.cc (toString)
  8273. * src/BtHaveAllMessage.cc (toString)
  8274. * src/BtHaveNoneMessage.cc (toString)
  8275. * src/BtInterestedMessage.cc (toString)
  8276. * src/BtNotInterestedMessage.cc (toString)
  8277. * src/BtUnchokeMessage.cc (toString)
  8278. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Replaced "" with static const variable A2STR::NIL.
  8280. Replaced string comparison against "" with std::string::empty().
  8281. Added PROTO_* to Request class and use them as a protocol string
  8282. constant.
  8283. Made "started", "stopped", "completed" static const variable in
  8284. AnnounceList class.
  8285. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Updated translations. Great thanks to translators.
  8287. * po/ca.po
  8288. * po/de.po
  8289. * po/fr.po
  8290. * po/it.po
  8291. * po/ja.po
  8292. * po/ru.po
  8293. * po/zh_CN.po
  8294. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Updated man page; categorized options and fixed typo.
  8296. * doc/aria2c.1.txt
  8297. * doc/aria2c.1.html
  8298. * doc/aria2c.1
  8299. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8300. Removed const ref
  8301. * src/MetalinkEntry.cc (AddProtocolPreference)
  8302. * src/RequestGroup.cc (FindServerHostByHostname)
  8303. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Rewritten Accept-Features handling.
  8305. * src/HttpRequestCommand.cc (createHttpRequest)
  8306. * src/a2functional.h
  8307. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8308. Changed method signature:
  8309. DHTAbstractNodeLookupTask::toEntries
  8310. * src/DHTAbstractNodeLookupTask.cc
  8311. * src/DHTAbstractNodeLookupTask.h
  8312. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8313. Changed method signature:
  8314. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  8315. * src/BtContext.h
  8316. * src/DefaultBtContext.cc
  8317. * src/DefaultBtContext.h
  8318. * src/DefaultBtInteractive.cc
  8319. * test/DefaultBtContextTest.cc
  8320. * test/MockBtContext.h
  8321. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Changed method signature:
  8323. MultiFileAllocationIterator::makeDiskWriterEntries
  8324. * src/MultiFileAllocationIterator.cc
  8325. * src/MultiFileAllocationIterator.h
  8326. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Changed method sinature:
  8328. MetalinkEntry::toFileEntry,
  8329. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  8330. Metalinker::queryEntry
  8331. * src/Metalink2RequestGroup.cc
  8332. * src/MetalinkEntry.cc
  8333. * src/MetalinkEntry.h
  8334. * src/MetalinkHelper.cc
  8335. * src/MetalinkHelper.h
  8336. * src/Metalinker.cc
  8337. * src/Metalinker.h
  8338. * src/main.cc
  8339. * test/MetalinkHelperTest.cc
  8340. * test/MetalinkerTest.cc
  8341. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. Changed method sinature:
  8343. RequestGroup::getURIs
  8344. * src/RequestGroup.cc
  8345. * src/RequestGroup.h
  8346. * test/Metalink2RequestGroupTest.cc
  8347. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8348. Changed method signature:
  8349. PeerListProcessor::extractPeer
  8350. * src/CompactPeerListProcessor.cc
  8351. * src/CompactPeerListProcessor.h
  8352. * src/DefaultBtAnnounce.cc
  8353. * src/DefaultPeerListProcessor.cc
  8354. * src/DefaultPeerListProcessor.h
  8355. * src/DelegatingPeerListProcessor.cc
  8356. * src/DelegatingPeerListProcessor.h
  8357. * src/PeerListProcessor.h
  8358. * src/UTPexExtensionMessage.cc
  8359. * test/DefaultPeerListProcessorTest.cc
  8360. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. Changed method signature:
  8362. BtRequestFactory::createRequestMessages,
  8363. BtRequestFactory::createRequestMessagesOnEndGame
  8364. * src/BtRequestFactory.h
  8365. * src/DefaultBtInteractive.cc
  8366. * src/DefaultBtRequestFactory.cc
  8367. * src/DefaultBtRequestFactory.h
  8368. * test/DefaultBtRequestFactoryTest.cc
  8369. * test/MockBtRequestFactory.h
  8370. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Changed method signature:
  8372. PieceStorage::getInFlightPieces
  8373. * src/DefaultBtProgressInfoFile.cc
  8374. * src/DefaultPieceStorage.cc
  8375. * src/DefaultPieceStorage.h
  8376. * src/PieceStorage.h
  8377. * src/UnknownLengthPieceStorage.cc
  8378. * src/UnknownLengthPieceStorage.h
  8379. * test/DefaultBtProgressInfoFileTest.cc
  8380. * test/MockPieceStorage.h
  8381. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8382. Changed method signature:
  8383. PostDownloadHandler::getNextRequestGroups
  8384. Metalink2RequestGroup::generate
  8385. RequestGroup::postDownloadProcessing
  8386. * src/BtPostDownloadHandler.cc
  8387. * src/BtPostDownloadHandler.h
  8388. * src/Metalink2RequestGroup.cc
  8389. * src/Metalink2RequestGroup.h
  8390. * src/MetalinkPostDownloadHandler.cc
  8391. * src/MetalinkPostDownloadHandler.h
  8392. * src/PostDownloadHandler.h
  8393. * src/RequestGroup.cc
  8394. * src/RequestGroup.h
  8395. * src/RequestGroupMan.cc
  8396. * src/main.cc
  8397. * test/BtPostDownloadHandlerTest.cc
  8398. * test/Metalink2RequestGroupTest.cc
  8399. * test/MetalinkPostDownloadHandlerTest.cc
  8400. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Rewritten AccRequestGroup
  8402. * src/main.cc
  8403. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8404. Rewritten.
  8405. * src/TaggedItem.cc (toTagString)
  8406. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Rewritten Accept-Features handling.
  8408. * src/HttpRequestCommand.cc (createHttpRequest)
  8409. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8410. Rewritten accept types handling.
  8411. * HttpRequest.cc (createRequest)
  8412. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8413. Rewritten
  8414. * src/FeatureConfig.cc (featureSummary)
  8415. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8416. Changed method signature:
  8417. PeerStorage::getActivePeers
  8418. * src/DHTPeerAnnounceEntry.cc
  8419. * src/DefaultPeerStorage.cc
  8420. * src/DefaultPeerStorage.h
  8421. * src/PeerStorage.h
  8422. * test/DefaultPeerStorageTest.cc
  8423. * test/MockPeerStorage.h
  8424. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8425. Changed method signature:
  8426. DHTPeerAnnounceStorage::getPeers,
  8427. DHTPeerAnnounceEntry::getPeers
  8428. * src/DHTGetPeersMessage.cc
  8429. * src/DHTPeerAnnounceEntry.cc
  8430. * src/DHTPeerAnnounceEntry.h
  8431. * src/DHTPeerAnnounceStorage.cc
  8432. * src/DHTPeerAnnounceStorage.h
  8433. * test/DHTAnnouncePeerMessageTest.cc
  8434. * test/DHTPeerAnnounceEntryTest.cc
  8435. * test/DHTPeerAnnounceStorageTest.cc
  8436. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8437. Changed method signature:
  8438. NameResolver::resolve
  8439. * src/DHTEntryPointNameResolveCommand.cc
  8440. * src/InitiateConnectionCommand.cc
  8441. * src/NameResolver.cc
  8442. * src/NameResolver.h
  8443. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. Changed method signature:
  8445. PieceStorage::getAdvertisedPieceIndexes
  8446. * src/DefaultBtInteractive.cc
  8447. * src/DefaultPieceStorage.cc
  8448. * src/DefaultPieceStorage.h
  8449. * src/PieceStorage.h
  8450. * src/UnknownLengthPieceStorage.h
  8451. * test/MockPieceStorage.h
  8452. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8453. Changed method signature:
  8454. SegmentMan::getInFlightSegment
  8455. * src/AbstractCommand.cc
  8456. * src/SegmentMan.cc
  8457. * src/SegmentMan.h
  8458. * test/SegmentManTest.cc
  8459. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8460. Changed method signature:
  8461. DHTAbstractNodeLookupTask::getNodesFromMessage
  8462. * src/DHTAbstractNodeLookupTask.cc
  8463. * src/DHTAbstractNodeLookupTask.h
  8464. * src/DHTNodeLookupTask.cc
  8465. * src/DHTNodeLookupTask.h
  8466. * src/DHTPeerLookupTask.cc
  8467. * src/DHTPeerLookupTask.h
  8468. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8469. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  8470. * src/AbstractCommand.cc
  8471. * src/BtCheckIntegrityEntry.cc
  8472. * src/BtCheckIntegrityEntry.h
  8473. * src/BtFileAllocationEntry.cc
  8474. * src/BtFileAllocationEntry.h
  8475. * src/BtSetup.cc
  8476. * src/BtSetup.h
  8477. * src/CheckIntegrityCommand.cc
  8478. * src/CheckIntegrityEntry.h
  8479. * src/ChecksumCheckIntegrityEntry.cc
  8480. * src/ChecksumCheckIntegrityEntry.h
  8481. * src/DHTSetup.cc
  8482. * src/DHTSetup.h
  8483. * src/DownloadEngine.cc
  8484. * src/FileAllocationCommand.cc
  8485. * src/FileAllocationEntry.h
  8486. * src/RequestGroup.cc
  8487. * src/RequestGroup.h
  8488. * src/RequestGroupMan.cc
  8489. * src/RequestGroupMan.h
  8490. * src/StreamCheckIntegrityEntry.cc
  8491. * src/StreamCheckIntegrityEntry.h
  8492. * src/StreamFileAllocationEntry.cc
  8493. * src/StreamFileAllocationEntry.h
  8494. * src/TrackerWatcherCommand.cc
  8495. * src/a2functional.h
  8496. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Changed method signature:
  8498. BNode::findClosestKNodes, BNode:: enumerateBucket,
  8499. DHTBucket::getGoodNodes,
  8500. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  8501. * src/BNode.cc
  8502. * src/BNode.h
  8503. * src/DHTAbstractNodeLookupTask.cc
  8504. * src/DHTAutoSaveCommand.cc
  8505. * src/DHTBucket.cc
  8506. * src/DHTBucket.h
  8507. * src/DHTBucketRefreshTask.cc
  8508. * src/DHTFindNodeMessage.cc
  8509. * src/DHTGetPeersMessage.cc
  8510. * src/DHTRoutingTable.cc
  8511. * src/DHTRoutingTable.h
  8512. * test/BNodeTest.cc
  8513. * test/DHTBucketTest.cc
  8514. * test/DHTRoutingTableTest.cc
  8515. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8516. In piece selection functions, Pass std::deque<...> by reference rather
  8517. than returning it.
  8518. * src/BitfieldMan.cc
  8519. * src/BitfieldMan.h
  8520. * src/DefaultBtRequestFactory.cc
  8521. * src/DefaultPieceStorage.cc
  8522. * src/Piece.cc
  8523. * src/Piece.h
  8524. * test/BitfieldManTest.cc
  8525. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Implemented rarest piece first piece selection strategy.
  8527. * src/AbstractBtMessage.cc
  8528. * src/AbstractBtMessage.h
  8529. * src/BitfieldMan.cc
  8530. * src/BitfieldMan.h
  8531. * src/BtBitfieldMessage.cc
  8532. * src/BtHaveAllMessage.cc
  8533. * src/BtHaveMessage.cc
  8534. * src/DefaultPieceStorage.cc
  8535. * src/DefaultPieceStorage.h
  8536. * src/PeerInteractionCommand.cc
  8537. * src/PieceStorage.h
  8538. * src/UnknownLengthPieceStorage.h
  8539. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8540. Rewritten readData and writeData.
  8541. * src/MultiDiskAdaptor.cc
  8542. * src/MultiDiskAdaptor.h
  8543. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Move \n out of the message "Usage: ...".
  8545. * src/version_usage.cc
  8546. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Bump up version number to 0.13.2b.
  8548. * configure.ac
  8549. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8550. Added const qualifier to argument Exception& e.
  8551. * src/Logger.h
  8552. * src/SimpleLogger.cc
  8553. * src/SimpleLogger.h
  8554. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8555. Pool connection when CWD, SIZE command fails.
  8556. * src/FtpNegotiationCommand.cc
  8557. * src/FtpNegotiationCommand.h
  8558. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  8560. * src/HttpResponseCommand.cc
  8561. * src/HttpSkipResponseCommand.cc
  8562. * src/HttpSkipResponseCommand.h
  8563. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. Pool connection when a server returns 4xx, 5xx responses.
  8565. * src/HttpNullDownloadCommand.cc
  8566. * src/HttpNullDownloadCommand.h
  8567. * src/HttpResponse.cc
  8568. * src/HttpResponse.h
  8569. * src/HttpResponseCommand.cc
  8570. * src/HttpResponseCommand.h
  8571. * test/HttpResponseTest.cc
  8572. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Print usage when no URL is specifed or bad command-line option is
  8574. specified.
  8575. * src/HelpItemFactory.cc
  8576. * src/help_tags.h
  8577. * src/option_processing.cc
  8578. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8579. Removed duplicate log message.
  8580. * src/AbstractCommand.cc (asyncResolveHostname)
  8581. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8582. Updated man page: --async-dns and --ftp-reuse-connection were added.
  8583. Changed -j option's default value from 5 to 1.
  8584. Added new examples using protocol auto detection feature.
  8585. Removed -T, -M usage where it can be omitted.
  8586. * doc/aria2c.1.txt
  8587. * doc/aria2c.1.html
  8588. * doc/aria2c.1.txt
  8589. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. Updated command-line usage text, so that it tells users that they
  8591. can specify any number of torrent files and metalink files in
  8592. command-line.
  8593. * src/version_usage.cc
  8594. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8595. Changed the default value of -j option to 1.
  8596. * src/HelpItemFactory.cc
  8597. * src/option_processing.cc
  8598. * src/usage_text.h
  8599. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Added the ability to reuse connection in FTP and it is enabled by
  8601. default. It can be disabled by --ftp-reuse-connection=false option.
  8602. * src/Command.cc
  8603. * src/DownloadCommand.cc
  8604. * src/FtpDownloadCommand.cc
  8605. * src/FtpDownloadCommand.h
  8606. * src/FtpFinishDownloadCommand.cc
  8607. * src/FtpFinishDownloadCommand.h
  8608. * src/FtpInitiateConnectionCommand.cc
  8609. * src/FtpNegotiationCommand.cc
  8610. * src/FtpNegotiationCommand.h
  8611. * src/HelpItemFactory.cc
  8612. * src/Makefile.am
  8613. * src/Makefile.in
  8614. * src/OptionHandlerFactory.cc
  8615. * src/option_processing.cc
  8616. * src/prefs.h
  8617. * src/usage_text.h
  8618. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Call Command::transitStatus() before calling Command::execute(),
  8620. so that the status change made in execute() is not cleared.
  8621. * src/DownloadEngine.cc
  8622. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8623. Removed forward declaration of SocketCore class.
  8624. * src/HttpDownloadCommand.h
  8625. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8626. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  8627. in InitiateConnectionCommandFactory. They should be set only when
  8628. the protocol is HTTP or HTTPS.
  8629. * src/InitiateConnectionCommandFactory.cc
  8630. * src/RequestGroup.cc
  8631. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Fixed infinite loop in checksum checking.
  8633. * src/IteratableChecksumValidator.cc
  8634. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8635. Set _supportsPersistentConnection to true by default.
  8636. * src/Request.cc
  8637. * src/RequestGroup.cc
  8638. * test/HttpRequestTest.cc
  8639. * test/RequestTest.cc
  8640. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8641. Added timeout to socket pool. The default timeout is 15 seconds,
  8642. which is the same value Apache uses.
  8643. * src/DownloadEngine.cc
  8644. * src/DownloadEngine.h
  8645. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8646. Fixed misuse of multimap::find()
  8647. * src/HttpHeader.cc
  8648. * test/HttpHeaderTest.cc
  8649. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8650. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  8651. option.
  8652. The asynchronous DNS is not capable of IPv6 yet.
  8653. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  8654. least for HTTP download.
  8655. * src/AbstractCommand.cc
  8656. * src/AbstractCommand.h
  8657. * src/AsyncNameResolver.cc
  8658. * src/AsyncNameResolver.h
  8659. * src/DHTEntryPointNameResolveCommand.cc
  8660. * src/DHTEntryPointNameResolveCommand.h
  8661. * src/DownloadEngine.cc
  8662. * src/DownloadEngine.h
  8663. * src/FtpInitiateConnectionCommand.cc
  8664. * src/FtpInitiateConnectionCommand.h
  8665. * src/HelpItemFactory.cc
  8666. * src/HttpInitiateConnectionCommand.cc
  8667. * src/HttpInitiateConnectionCommand.h
  8668. * src/InitiateConnectionCommand.cc
  8669. * src/InitiateConnectionCommand.h
  8670. * src/Makefile.am
  8671. * src/Makefile.in
  8672. * src/NameResolver.cc
  8673. * src/NameResolver.h
  8674. * src/OptionHandlerFactory.cc
  8675. * src/SocketCore.cc
  8676. * src/SocketCore.h
  8677. * src/Util.cc
  8678. * src/Util.h
  8679. * src/option_processing.cc
  8680. * src/prefs.h
  8681. * src/usage_text.h
  8682. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Updated man page: --quiet, --header were added.
  8684. --metalink-servers and --enable-http-keep-alive option were updated.
  8685. * doc/aria2c.1
  8686. * doc/aria2c.1.html
  8687. * doc/aria2c.1.txt
  8688. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8689. Enable HTTP keep-alive by default.
  8690. * src/HelpItemFactory.cc
  8691. * src/option_processing.cc
  8692. * src/usage_text.h
  8693. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. Disable http keep-alive if the remote server is not HTTP/1.1.
  8695. * src/HttpConnection.cc
  8696. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Receive content body of 302 response so that the connection can be
  8698. reused later when http keep-alive is enabled.
  8699. * src/HttpNullDownloadCommand.cc
  8700. * src/HttpNullDownloadCommand.h
  8701. * src/HttpResponseCommand.cc
  8702. * src/HttpResponseCommand.h
  8703. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8704. const SharedHandle<Request> -> const SharedHandle<Request>&
  8705. * src/FtpDowndloadCommand.cc
  8706. * src/FtpDowndloadCommand.h
  8707. * src/HttpDownloadCommand.cc
  8708. * src/HttpDownloadCommand.h
  8709. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8710. Fixed the bug that the control file(.aria2 file) is not renamed
  8711. according to tryAutoFileRenaming().
  8712. tryAutoFileRenaming() was rewritten so that if both renamed file and
  8713. its control file exist, use them and continue download.
  8714. The old implementation didn't take into account of control file's
  8715. existence, so basically you couldn't continue download of renamed file.
  8716. * src/BtProgressInfoFile.h
  8717. * src/DefaultBtProgressInfoFile.cc
  8718. * src/DefaultBtProgressInfoFile.h
  8719. * src/NullProgressInfoFile.h
  8720. * src/RequestGroup.cc
  8721. * test/DefaultBtProgressInfoFileTest.cc
  8722. * test/MockBtProgressInfoFile.h
  8723. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. Change the default value of --metalink-servers option from `5' to `1'.
  8725. * src/HelpItemFactory.cc
  8726. * src/option_processing.cc
  8727. * src/usage_text.h
  8728. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8729. Reimplemented transparent metalink using Accept request header.
  8730. * src/HttpRequest.cc
  8731. * src/HttpRequest.h
  8732. * src/HttpRequestCommand.cc
  8733. * src/Metalink2RequestGroup.cc
  8734. * src/RequestGroup.cc
  8735. * src/RequestGroup.h
  8736. * test/HttpRequestTest.cc
  8737. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8738. Bump up version number to 0.13.2a
  8739. * configure.ac
  8740. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Updated configure.ac using the result of autoscan.
  8742. * configure.ac
  8743. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8744. Fixed compilation error without gcrypt/openssl.
  8745. * src/DownloadCommand.cc
  8746. * src/DownloadCommand.h
  8747. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8748. Reorganized version information so that it can be displayed in a
  8749. standard terminal screen without scrolling.
  8750. Removed http, ftp from Configuration section, because they are always
  8751. enabled.
  8752. * src/FeatureConfig.cc
  8753. * src/FeatureConfig.h
  8754. * src/main.cc
  8755. * src/messageDigest.cc
  8756. * src/messageDigest.h
  8757. * src/version_usage.cc
  8758. * test/FeatureConfigTest.cc
  8759. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Masked user ID in log.
  8761. * src/FtpConnection.cc (sendUser)
  8762. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8763. Removed query part from filename in HTTP download. The query part means
  8764. the substring after "?" in URL. Firefox seems do the same thing.
  8765. A query part is sometimes very long and not suitable to filename,
  8766. so I think it is better to remove it from filename.
  8767. * src/HttpRequest.cc
  8768. * src/HttpRequest.h
  8769. * src/Request.cc
  8770. * src/Request.h
  8771. * test/HttpRequestTest.cc
  8772. * test/RequestTest.cc
  8773. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8774. Rewritten Exception class. Throw exception object, not its pointer and
  8775. catch by reference, so that remove problematic delete operator for
  8776. catched exception.
  8777. * src/Exception.cc
  8778. * src/Exception.h
  8779. * test/ExceptionTest.cc
  8780. * src/*: All files throwing/catching exception.
  8781. * test/*: All files throwing/catching exception.
  8782. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Now auto protocol detection is enabled without -Z option.
  8784. But there is a important difference between with/without -Z optoin.
  8785. For example, if you type:
  8786. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  8787. then, aria2 interprets there are 3 request groups:
  8788. (1) http://host/file, http://mirror/file <-- multi-source download
  8789. (2) file1.torrent
  8790. (3) file2.metalink
  8791. On the other hand, if you invoke above command with -Z option, it is
  8792. interpreted as 4 request groups:
  8793. (1) http://host/file
  8794. (2) file1.torrent
  8795. (3) file2.metalink
  8796. (4) http://mirror/file
  8797. I think usually user don't mix multi-source URLs and torrent files, so
  8798. there is no big problem here.
  8799. * src/main.cc
  8800. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8801. Fixed the bug that causes segmentaion fault when reading XML containing
  8802. unescapsed character like '&'.
  8803. Also a modification was made which avoids adding unnecessary
  8804. characters stack and appending unused string.
  8805. * src/ExpatMetalinkProcessor.cc
  8806. * src/FileMetalinkParserState.h
  8807. * src/FilesMetalinkParserState.h
  8808. * src/FinMetalinkParserState.h
  8809. * src/HashMetalinkParserState.h
  8810. * src/InitialMetalinkParserState.h
  8811. * src/LanguageMetalinkParserState.h
  8812. * src/MetalinkMetalinkParserState.h
  8813. * src/MetalinkParserState.h
  8814. * src/MetalinkParserStateMachine.cc
  8815. * src/MetalinkParserStateMachine.h
  8816. * src/OSMetalinkParserState.h
  8817. * src/PieceHashMetalinkParserState.h
  8818. * src/PiecesMetalinkParserState.h
  8819. * src/ResourcesMetalinkParserState.h
  8820. * src/SizeMetalinkParserState.h
  8821. * src/SkipTagMetalinkParserState.h
  8822. * src/URLMetalinkParserState.h
  8823. * src/VerificationMetalinkParserState.h
  8824. * src/VersionMetalinkParserState.h
  8825. * src/XML2SAXMetalinkProcessor.cc
  8826. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Added StringFormat class, which internally calls vasprintf.
  8828. operator<< is defined for this class, so it can be used with iostream
  8829. classes nicely. SimpleLogger and following functions are rewritten
  8830. using StringFormat class.
  8831. Besides, now Logger class's methods are non-const, many classes
  8832. that has a const Logger* as a member variable are modified to remove
  8833. const qualifier from the variable declaration.
  8834. * src/HelpItemFactory.cc
  8835. * src/Request.cc
  8836. * src/SimpleLogger.cc
  8837. * src/StringFormat.cc
  8838. * src/StringFormat.h
  8839. * src/Util.cc
  8840. * src/option_processing.cc
  8841. * src/version_usage.cc
  8842. * test/StringFormatTest.cc
  8843. * src/*.h: The classes that has const Logger* as a member variable.
  8844. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8845. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  8846. failed. Also fixed memory link when exception is thrown there.
  8847. * src/main.cc (AccRequestGroup)
  8848. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8849. Added build-in "Accept-Features" support. For now only "metalink" is
  8850. used in this header field.
  8851. This "metalink" value is removed from the list when connecting URLs
  8852. fed by metalink file to avoid loop in "transparent" metlaink.
  8853. * src/HttpRequest.cc
  8854. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  8855. header is also held in this variable. Also renamed setUserHeaders as
  8856. addHeader and it was rewritten to add header not just to clear the old
  8857. value.
  8858. * src/HttpRequestCommand.cc
  8859. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  8860. from "Accept-Features" list.
  8861. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  8862. default.
  8863. * src/RequestGroup.h
  8864. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  8865. * src/a2functional.h: Included <string> because Concat class depends on
  8866. it.
  8867. * test/HttpRequestTest.cc
  8868. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8869. Added comment
  8870. * src/RequestGroup.cc (createNextCommand)
  8871. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8872. Capitalized METHOD_GET and METHOD_HEAD
  8873. * src/Request.cc
  8874. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Added getDownloadResults() method
  8876. * src/RequestGroupMan.cc
  8877. * src/RequestGroupMan.h
  8878. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8879. Fixed the bug that aria2 exits when commands is empty() but
  8880. _routineCommands are not.
  8881. * src/DownloadEngine.cc
  8882. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Use the default value pulled from Option object in HelpItemFactory.
  8884. except options whose defualt value is embedded in a usage text.
  8885. * src/HelpItemFactory.cc
  8886. * src/HelpItemFactory.h
  8887. * src/option_processing.cc
  8888. * src/version_usage.cc
  8889. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8890. Added --quiet option to make aria2 quiet (no console output).
  8891. --quiet option is tagged with ADVANCED.
  8892. * src/HelpItemFactory.cc
  8893. * src/LogFactory.cc
  8894. * src/LogFactory.h
  8895. * src/MultiUrlRequestInfo.cc
  8896. * src/MultiUrlRequestInfo.h
  8897. * src/NullStatCalc.h: New class. This class prints nothing.
  8898. * src/OptionHandlerFactory.cc
  8899. * src/main.cc
  8900. * src/option_processing.cc
  8901. * src/prefs.h
  8902. * src/usage_text.h
  8903. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  8905. * src/HelpItemFactory.cc (createHelpItems):
  8906. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Fixed compilation error in ExpatMetalinkProcessor.cc
  8908. * src/ExpatMetalinkProcessor.cc
  8909. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8910. Reuse socket if the origin server supports HTTP keep-alive and
  8911. --enable-http-keep-alive or --enable-http-pipelining is given.
  8912. The current implementation doesn't reuse the connections established
  8913. against proxy server.
  8914. * src/AbstractCommand.cc
  8915. * src/DownloadEngine.cc
  8916. * src/DownloadEngine.h
  8917. * src/HttpDownloadCommand.cc
  8918. * src/HttpInitiateConnectionCommand.cc
  8919. * src/HttpResponseCommand.cc
  8920. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8921. Rewritten HTTP keep-alive and pipelining routine.
  8922. * src/AbstractCommand.cc
  8923. * src/HttpConnection.cc
  8924. * src/HttpDownloadCommand.cc
  8925. * src/HttpRequest.cc
  8926. * src/HttpRequestCommand.cc
  8927. * src/HttpResponseCommand.cc
  8928. * src/Request.cc
  8929. * src/Request.h
  8930. * src/RequestGroup.cc
  8931. * test/HttpRequestTest.cc
  8932. * test/HttpResponseTest.cc
  8933. * test/RequestTest.cc
  8934. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8935. Added missing setUserHeaders call
  8936. * src/HttpRequestCommand.cc
  8937. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  8939. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  8940. waste of time because it is more likey false.
  8941. * src/FileAllocationDispatcherCommand.cc (execute)
  8942. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. Now HTTP status and version are a member variable of HttpHeader.
  8944. HTTP status is processed as a string, not integer.
  8945. * src/AbstractProxyResponseCommand.cc
  8946. * src/HttpConnection.cc
  8947. * src/HttpHeader.cc
  8948. * src/HttpHeader.h
  8949. * src/HttpHeaderProcessor.cc
  8950. * src/HttpHeaderProcessor.h
  8951. * src/HttpResponse.cc
  8952. * src/HttpResponse.h
  8953. * test/HttpHeaderProcessorTest.cc
  8954. * test/HttpResponseTest.cc
  8955. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8956. Added --header option. You can specify any number of additional HTTP headers
  8957. like:
  8958. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  8959. Unlike other commad-line option, you can use --header option multiple times.
  8960. * src/HelpItemFactory.cc
  8961. * src/HttpRequest.{cc, h}
  8962. * src/HttpRequestCommand.cc
  8963. * src/OptionHandlerFactory.cc
  8964. * src/OptionHandlerImpl.h
  8965. * src/option_processing.cc
  8966. * src/prefs.h
  8967. * src/usage_text.h
  8968. * test/HttpRequestTest.cc (testUserHeaders)
  8969. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8970. Eliminates the time lag between sequential downloads and commands in
  8971. the same RequestGroup.
  8972. In old implementation, aria2 occasionally waits 1 seconds before
  8973. executing next command or RequestGroup.
  8974. This is really a waste of time, and new implementation eliminates
  8975. this unnecessary time lag.
  8976. * src/AbstractCommand.cc
  8977. * src/AutoSaveCommand.cc
  8978. * src/CheckIntegrityCommand.cc
  8979. * src/Command.{cc, h}
  8980. * src/DownloadEngine.{cc, h}
  8981. * src/DownloadEngineFactory.cc
  8982. * src/FileAllocationCommand.cc
  8983. * src/FileAllocationDispatcherCommand.cc
  8984. * src/FillRequestGroupCommand.cc
  8985. * src/FtpInitiateConnectionCommand.cc
  8986. * src/HaveEraseCommand.cc
  8987. * src/HttpInitiateConnectionCommand.cc
  8988. * src/HttpResponseCommand.cc
  8989. * src/RealtimeCommand.cc
  8990. * src/RequestGroup.cc
  8991. * src/RequestGroupMan.cc
  8992. * src/StreamFileAllocationEntry.cc
  8993. * src/TimeBasedCommand.{cc, h}
  8994. * src/TimedHaltCommand.cc
  8995. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8996. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  8997. keyword explicit and SharedHandle's default constructor initializes
  8998. its internal obj to null, old implementation initializes it using
  8999. obj's default constructor.
  9000. To assign null, write SharedHandle<T> x(...); x.reset();
  9001. TODO: test/SharedHandleTest.cc needs more tests.
  9002. * src/SharedHandle.h
  9003. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9004. Fixed type in man page.
  9005. * doc/aria2c.1.txt
  9006. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9007. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9008. * src/SimpleLogger.{cc, h}
  9009. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9010. Implemented auto protocol detection.
  9011. Now you can do:
  9012. aria2c -Z http://host/file file1.torrent file2.metalink
  9013. (Note: -Z option is required for auto protcol detection.)
  9014. Then aria2c downloads 3 files simultaneously:
  9015. 1. http://host/file
  9016. 2. file1.torrent <-- read local torrent file
  9017. 3. file2.metalink <-- read local Metalink file.
  9018. Same thing goes with -i option. Assume your uris.txt contans:
  9019. http://host/file
  9020. file1.torrent
  9021. file2.metalink
  9022. Then you can do: aria2c -i uris.txt
  9023. (Note: -Z option is not needed if -i option is given.)
  9024. * src/main.cc
  9025. * src/ProtocolDetector.{cc, h}
  9026. * test/ProtocolDetectorTest.cc
  9027. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9028. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9029. installed
  9030. * src/ARC4Encryptor.h
  9031. * src/ARC4Decryptor.h
  9032. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9033. Renamed argument from 'errno' to 'err', since errno is confused with
  9034. errno defined in errno.h.
  9035. * src/LibgcryptARC4Decryptor.h
  9036. * src/LibgcryptARC4Context.h
  9037. * src/LibgcryptDHKeyExchange.h
  9038. * src/LibgcryptARC4Encryptor.h
  9039. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Rewritten choking algorithm.
  9041. * src/PeerChokeCommand.{cc, h}
  9042. * src/BtInterestedMessage.cc
  9043. * src/PeerSessionResource.{cc, h}
  9044. * src/DefaultPeerStorage.{cc, h}
  9045. * src/BtNotInterestedMessage.cc
  9046. * src/DefaultBtMessageDispatcher.{cc, h}
  9047. * src/BtMessageDispatcher.h
  9048. * src/Peer.{cc, h}
  9049. * src/BtLeecherStateChoke.{cc, h}
  9050. * src/BtSetup.cc
  9051. * src/BtSeederStateChoke.{cc, h}
  9052. * src/PeerStorage.h
  9053. * test/MockPeerStorage.h
  9054. * test/MockBtMessageDispatcher.h
  9055. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. Fixed compilation error on x84-64 platform.
  9057. * src/AuthConfig.cc: Included ostream.
  9058. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9059. Rewritten getBasename() and getDirname(), without standard library
  9060. basename(), dirname().
  9061. * src/File.cc
  9062. * test/FileTest.cc
  9063. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Added Simplified Chinese translation. Also updated the following
  9065. translations: Polish, Dutch, German. Great thanks to all translators.
  9066. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9067. Suppress content-range error when 'Content-Range' response header
  9068. doesn't contains bytes-unit specifier 'bytes'
  9069. * src/HttpHeader.cc (getRange)
  9070. * test/HttpHeaderTest.cc
  9071. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9072. Fixed compilation error with g++-4.3
  9073. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9074. Added missing include files for MinGW
  9075. * test/HttpHeaderProcessorTest.cc
  9076. * test/DHTRoutingTableSerializerTest.cc
  9077. * test/DHTRoutingTableDeserializerTest.cc
  9078. * test/UriListParserTest.cc
  9079. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9080. Now download line is printed nicely with no garbage at the end of
  9081. line. I use ioctl to get the columns of terminal.
  9082. If stdout is redirected to another device, instead of carriage return,
  9083. end of line '\n' character is used. This is feature request#1909659
  9084. * src/ConsoleStatCalc.cc (calculateStat)
  9085. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9086. Included a2time.h
  9087. * src/DHTMessageDispatcher.h
  9088. * src/DHTMessageEntry.h
  9089. * src/DHTReplaceNodeTask.h
  9090. * src/DHTMessageTracker.h
  9091. * src/Util.h
  9092. * src/CookieBox.h
  9093. * src/SocketCore.h
  9094. * src/DefaultBtMessageDispatcher.h
  9095. * src/SocketCore.cc
  9096. * src/Util.cc
  9097. * src/DHTPingTask.h
  9098. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9099. Fixed high memory footprint when DHT is enabled.
  9100. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9101. queued than it is processed and the queue is getting longer. As a
  9102. consequence, momory usage is increased.
  9103. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9104. replacement cache in DHTBucket which is described in Kademlia paper.
  9105. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9106. DHTReplaceNodeTask.
  9107. * src/DHTBucket.{h, cc}
  9108. (cacheNode): New function.
  9109. (getCachedNodes): New function.
  9110. (dropNode): Push back cached node to _nodes.
  9111. * test/DHTBucketTest.cc
  9112. (testCacheNode): New test
  9113. (testDropNode): New test
  9114. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9116. the unused 4KB memory when ssl is not used.
  9117. * src/SocketCore.cc
  9118. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9119. Added summary log for peer announce storage.
  9120. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9121. Removed cast
  9122. * src/DefaultPeerStorage.cc (addPeer)
  9123. Log exception message
  9124. * src/DHTMessageTracker.cc (handleTimeout)
  9125. Fixed casting
  9126. * test/HttpRequestTest.cc
  9127. * test/MetalinkProcessorTest.cc
  9128. * test/PieceTest.cc
  9129. * test/MetalinkEntryTest.cc
  9130. * test/SequenceTest.cc
  9131. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9132. * src/ParameterizedStringParser.cc (createLoop):
  9133. Removed unused variable sstep.
  9134. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9135. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. * src/Util.{h, cc}
  9137. (parseUInt): New function.
  9138. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9139. The actual range is uint32_t.
  9140. * test/UtilTest.cc
  9141. * src/ParameterizedStringParser.cc:
  9142. Use Util::parseUInt() for loop variables.
  9143. * test/ParameterizedStringParserTest.cc
  9144. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9145. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Rewritten the functions for binding port.
  9147. * src/DHTConnectionImpl.{h, cc}
  9148. * src/PeerListenCommand.{h, cc}
  9149. * src/DHTSetup.cc
  9150. * src/BtSetup.cc
  9151. * test/DHTConnectionImplTest.cc
  9152. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. type cleanup for allmost all remaining files.
  9154. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9155. Type clarification
  9156. * src/PeerSessionResource.{h, cc}
  9157. * src/DefaultPieceStorage.{h, cc}
  9158. * src/Peer.{h, cc}
  9159. * test/PeerSessionResourceTest.cc
  9160. Use div function
  9161. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9162. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9163. Type clarification
  9164. * src/DefaultPeerStorage.{h, cc}
  9165. * test/DefaultPeerStorageTest.cc
  9166. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9167. Type clarification: size_t for length or size, uint64_t for file
  9168. length, off_t for file offset.
  9169. * src/DefaultBtProgressInfoFile.cc
  9170. * src/DefaultBtContext.{h, cc}
  9171. * src/DefaultBtInteractive.cc
  9172. * src/DownloadCommand.{h, cc}
  9173. * src/IteratableChunkChecksumValidator.{h, cc}
  9174. * src/SegmentMan.{h, cc}
  9175. * src/SingleFileDownloadContext.{h, cc}
  9176. * src/IteratableChecksumValidator.{h, cc}
  9177. * src/BtContext.h
  9178. * src/IteratableValidator.h
  9179. * src/DownloadContext.h
  9180. * test/SingleFileDownloadContextTest.cc
  9181. * test/DefaultBtContextTest.cc
  9182. * test/MockBtContext.h
  9183. * test/Metalink2RequestGroupTest.cc
  9184. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Type clarification: size_t for length or size, uint64_t for file
  9186. length, off_t for file offset.
  9187. * src/PiecedSegment.cc
  9188. * src/GrowSegment.h
  9189. * src/DefaultBtRequestFactory.h
  9190. * src/DefaultBtProgressInfoFile.cc
  9191. * src/UnknownLengthPieceStorage.h
  9192. * src/DefaultPieceStorage.cc
  9193. * src/UnknownLengthPieceStorage.cc
  9194. * src/DefaultBtInteractive.cc
  9195. * src/GrowSegment.cc
  9196. * src/BitfieldMan.h
  9197. * src/DownloadCommand.cc
  9198. * src/BtRequestFactory.h
  9199. * src/PiecedSegment.h
  9200. * src/DefaultPieceStorage.h
  9201. * src/Piece.cc
  9202. * src/DefaultBtRequestFactory.cc
  9203. * src/PieceStorage.h
  9204. * src/Segment.h
  9205. * src/Piece.h
  9206. * src/BitfieldMan.cc
  9207. * src/Util.cc
  9208. * test/DefaultBtProgressInfoFileTest.cc
  9209. * test/DefaultPieceStorageTest.cc
  9210. * test/MockPieceStorage.h
  9211. * test/BtRequestMessageTest.cc
  9212. * test/DefaultBtMessageDispatcherTest.cc
  9213. * test/BitfieldManTest.cc
  9214. * test/GrowSegmentTest.cc
  9215. * test/PieceTest.cc
  9216. * test/SegmentTest.cc
  9217. * test/SegmentManTest.cc
  9218. * test/DefaultBtRequestFactoryTest.cc
  9219. * test/MockBtRequestFactory.h
  9220. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9221. Fixed compilation error with --disable-nls
  9222. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9223. in gettext.h causes the problem.
  9224. * src/common.h
  9225. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9226. Removed subPiece related functions.
  9227. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9228. * src/DefaultPieceStorage.{h, cc}
  9229. * test/PieceTest.cc
  9230. * test/DefaultPieceStorageTest.cc
  9231. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9232. Use unsigned char for data store.
  9233. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9234. Bump up version number to 0.13.0+1
  9235. * configure.ac
  9236. * Release 0.13.0+1
  9237. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9238. Changed inactive connection timeout to 120.
  9239. To accept more mulually interested peers, disconnect peer when there
  9240. is no interest between us after certain time passed.
  9241. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9242. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9244. when compiled with async DNS support.
  9245. * src/DownloadEngine.cc
  9246. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9247. value '10' will be a little bit short when some DNS servers are
  9248. offline and several DNS servers are tried. It should be configured
  9249. by command-line option.
  9250. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9251. Merged Ross's mingw patch.
  9252. * src/DHTRoutingTableDeserializer.cc
  9253. * src/DHTRoutingTableSerializer.cc
  9254. * src/Platform.{h, cc}
  9255. * src/timegm.h
  9256. * src/gettimeofday.h
  9257. * src/getaddrinfo.h
  9258. * src/SocketCore.h
  9259. * src/common.h
  9260. * src/inet_aton.h
  9261. * src/DownloadEngine.h
  9262. * src/gai_strerror.h
  9263. * src/a2netcompat.h
  9264. * configure.ac
  9265. * configure
  9266. * aclocal.m4
  9267. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. Included missing iostream.
  9269. * test/AllTest.cc
  9270. * test/BtDependencyTest.cc
  9271. * test/BtExtendedMessageTest.cc
  9272. * test/DHTConnectionImplTest.cc
  9273. * test/DHTMessageFactoryImplTest.cc
  9274. * test/DHTMessageTrackerEntryTest.cc
  9275. * test/DHTNodeTest.cc
  9276. * test/DHTRoutingTableSerializerTest.cc
  9277. * test/DefaultBtAnnounceTest.cc
  9278. * test/DefaultBtContextTest.cc
  9279. * test/DefaultBtMessageFactoryTest.cc
  9280. * test/DefaultExtensionMessageFactoryTest.cc
  9281. * test/HandshakeExtensionMessageTest.cc
  9282. * test/HttpResponseTest.cc
  9283. * test/MetalinkProcessorTest.cc
  9284. * test/MultiFileAllocationIteratorTest.cc
  9285. * test/SocketCoreTest.cc
  9286. * test/UTPexExtensionMessageTest.cc
  9287. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9288. Reorganized includes.
  9289. * src/NameResolver.cc
  9290. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9291. Fixed compilation error without ares/c-ares
  9292. * src/NameResolver.h:
  9293. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9294. Added a test for large file.
  9295. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  9296. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9297. Fixed the bug that file size is ignored if size > INT32_MAX
  9298. * src/SizeMetalinkParserState.cc (endElement):
  9299. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9300. Bump up version number to 0.13.0
  9301. * configure.ac
  9302. * Release 0.13.0
  9303. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Updated Makfefile.am to make 'make dist' work.
  9305. Now packaged filename is aria2c-VERSION.tar.bz2.
  9306. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  9307. Added LICENSE.OpenSSL to dist_noinst_DATA.
  9308. Large file support is now configured by configure script.
  9309. * configure.ac
  9310. Removed unsused source files
  9311. * src/
  9312. * test/
  9313. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  9314. Peer.h and BtContext.h respectively.
  9315. * src/Peer.h
  9316. * src/BtContext.h
  9317. Updated translations.
  9318. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  9319. translations. Great thanks to all translators!;)
  9320. * po/*.{po, gmo}
  9321. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9322. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  9323. statically declared sha1 MessageDigestContext.
  9324. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  9325. initialization of short-lived MessageDigestContext.
  9326. * src/MessageDigestHelper.{h, cc}
  9327. * src/main.cc
  9328. Now DownloadCommand has a reference to MessageDigestContext to avoid
  9329. the initialization of MessageDigestContext every time in validating
  9330. chunk checksum.
  9331. * src/DownloadCommand.{h, cc}
  9332. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. Add a file descriptor which connected to fast peer(latency<1500) to
  9334. select(). This change reduced CPU load.
  9335. * src/PeerInteractionCommand.cc
  9336. * src/DefaultBtInteractive.{h, cc}
  9337. * src/BtInteractive.h
  9338. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Fixed the previous insufficient fix for possible busy loop.
  9340. * src/MSEHandshake.cc (identifyHandshakeType)
  9341. Removed unused functions.
  9342. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  9343. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9344. Fixed possible busy loop if first 20 bytes are not received for a few
  9345. minutes.
  9346. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  9347. * src/ReceiverMSEHandshakeCommand.cc
  9348. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Fixed compilation error
  9350. * src/ExpatMetalinkProcessor.cc
  9351. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9352. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  9353. * src/DHTBucket.cc
  9354. Removed unnecessary cast.
  9355. * src/HandshakeExtensionMessage.cc
  9356. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  9358. is missing.
  9359. * src/OptionHandlerFactory.cc
  9360. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9361. Fixed the bug that HAVE message is not sent for a piece they are
  9362. downloaded fom http/ftp server before any BitTorrent handshake is done
  9363. with peers.
  9364. * src/DefaultBtInteractive.cc
  9365. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9366. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  9367. * src/Makefile.am
  9368. * src/Makefile.in
  9369. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9370. Updated README. Added html version of README and man page.
  9371. * README
  9372. * README.html
  9373. * readme2html: Shell script to generate README.html from README using
  9374. asciidoc.
  9375. * doc/aria2c.1.html
  9376. * doc/makeman: Added the line to generate aria2c.1.html
  9377. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Fixed offset calculation.
  9379. * src/LibgcryptDHKeyExchange.h (computeSecret)
  9380. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9381. Rewritten itos and uitos using template. llitos and ullitos are
  9382. replaced with itos and uitos respectively.
  9383. * src/Util.{h, cc}
  9384. * test/UtilTest.cc
  9385. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9386. Fixed the bug that DH key exchange sometimes fails due to bad handling
  9387. of the number of bytes required for storing public key and shared
  9388. secret.
  9389. * src/LibgcryptDHKeyExchange.h
  9390. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  9391. * src/MSEHandshake.cc
  9392. * test/DHKeyExchangeTest.cc
  9393. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9394. Removed since they are not used.
  9395. * src/Xml2MetalinkProcessor.{h, cc}
  9396. * src/Socket.cc
  9397. * src/SegmentSplitter.{h, cc}
  9398. * test/Xml2MetalinkProcessorTest.cc
  9399. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9400. Fixed the bug that prevents aria2 from stopping other than by pressing
  9401. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  9402. option. aria2 doesn't stop even after --seed-time is satisfied and
  9403. continues to output blank lines in the console.
  9404. * src/ReceiverMSEHandshakeCommand.cc
  9405. * src/PeerReceiveHandshakeCommand.cc
  9406. * src/PeerListenCommand.cc
  9407. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9408. Bump up version number to 0.13.0rc
  9409. * configure.ac
  9410. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9411. Updated man page and some usage text.
  9412. * doc/aria2c.1.txt
  9413. * src/usage_text.h
  9414. * po/*.{po, gmo}
  9415. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9416. Updated translations. Added Finnish and Hebrew translations.
  9417. Great thanks to all translators!
  9418. * po/*.{po, gmo}
  9419. * po/LINGUAS
  9420. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9421. Log more detailed information about each message.
  9422. * src/DHTQueryMessage.{h, cc}
  9423. * src/DHTGetPeersMessage.{h, cc}
  9424. * src/DHTFindNodeReplyMessage.{h, cc}
  9425. * src/DHTGetPeersReplyMessage.{h, cc}
  9426. * src/DHTAnnouncePeerMessage.{h, cc}
  9427. * src/DHTResponseMessage.{h, cc}
  9428. * src/DHTFindNodeMessage.{h, cc}
  9429. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9430. Use constants defined in prefs.h
  9431. * src/option_processing.cc
  9432. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  9434. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Make room for future enchancements for IPv6 addresses.
  9436. Bump up version number of dht.dat file format to 2.
  9437. Not compatible with previous version.
  9438. * src/DHTRoutingTableSerializer.cc
  9439. * src/DHTRoutingTableDeserializer.cc
  9440. * test/DHTRoutingTableSerializerTest.cc
  9441. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. Added handling for the return values from
  9443. PeerMessageUtil::createcompact().
  9444. * src/DefaultBtContext.cc (computeFastSet):
  9445. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9446. Fixed abort when peer's ip address is IPv4-mapped address.
  9447. * src/DefaultBtContext.cc (computeFastSet)
  9448. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  9449. cannot handle IPv4-mapped addresses.
  9450. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  9451. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9452. Proper return value handling for OpenSSL functions.
  9453. * src/LibsslDHKeyExchange.h
  9454. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9455. Random bytes generation using libgcrypt and OpenSSL.
  9456. * src/DHTUtil.{h, cc}
  9457. * test/DHTUtilTest.cc
  9458. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9459. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  9460. received.
  9461. * src/DHTMessageReceiver.cc (receiveMessage)
  9462. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. Fixed the bug that a return code is always 0. BUG#1897704
  9464. If error occurred during the download or there exist unfinished
  9465. downloads, aria2 returns with code 1.
  9466. * src/RequestGroupMan.{h, cc}
  9467. * src/MultiUrlRequestInfo.{h, cc}
  9468. * src/main.cc
  9469. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. IPv6 support for SocketCore class.
  9471. TODO: In SocketCore::establishConnection(), this is insufficient to
  9472. determin the failure of connect() here because the socket is
  9473. non-blocking state. The next addresses should be tried after select().
  9474. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  9475. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  9476. instead which address family independent.
  9477. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  9478. information in a compact peer format which is for IPv4 only.
  9479. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  9480. this is a spec of BitTorrent protocol.
  9481. * src/SocketCore.{h, cc}
  9482. * src/PeerMessageUtil.cc
  9483. * test/SocketCoreTest.cc
  9484. * test/PeerMessageUtilTest.cc
  9485. * test/DHTConnectionImplTest.cc
  9486. Handle IPv4-mapped addresses.
  9487. * src/DHTNode.cc: Now identity is determined by node id.
  9488. * src/DHTMessageTrackerEntry.cc
  9489. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  9490. should handle it.
  9491. * src/DHTRoutingTableDeserializer.cc
  9492. * src/DHTMessageFactoryImpl.cc
  9493. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Change the unit of --stop option from a minute to a second.
  9495. * src/usage_text.h
  9496. * src/DownloadEngineFactory.cc
  9497. * src/OptionHandlerFactory.cc
  9498. * src/message.h
  9499. * src/TimedHaltCommand.cc
  9500. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9501. Make listening socket non-block mode.
  9502. * src/FtpConnection.cc
  9503. * src/FtpNegotiationCommand.{h, cc}
  9504. * src/PeerListenCommand.cc
  9505. Fixed the bug that cause slow ftp negotiation.
  9506. * src/FtpNegotiationCommand.{h, cc}
  9507. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. Added basic tag to --enable-dht, --dht-listen-port option.
  9509. * src/HelpItemFactory.cc (createHelpItems)
  9510. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9511. Updated text.
  9512. * src/usage_text.h
  9513. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  9515. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Determin _threadtholdSpeed in each constructor for
  9517. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  9518. * src/ActivePeerConnectionCommand.{h, cc}
  9519. * src/PeerReceiveHandshakeCommand.{h, cc}
  9520. * src/BtSetup.cc
  9521. * src/BtConstants.h
  9522. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9523. Added --bt-min-crypto-level and --bt-require-crypto options.
  9524. * src/OptionHandlerFactory.cc
  9525. * src/MSEHandshake.cc
  9526. * src/HelpItemFactory.cc
  9527. * src/option_processing.cc
  9528. * src/ReceiverMSEHandshakeCommand.cc
  9529. * src/prefs.h
  9530. * src/DefaultBtAnnounce.cc
  9531. * src/InitiatorMSEHandshakeCommand.cc
  9532. * src/usage_text.h
  9533. * test/MSEHandshakeTest.cc
  9534. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9535. Bump version number to 0.13.0b
  9536. * configure.ac
  9537. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Updated doc.
  9539. * src/MessageDigestHelper.h:
  9540. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9541. Use raw message digest as a token instead of its hexadecimal
  9542. representation.
  9543. * src/DHTTokenTracker.cc (generateToken)
  9544. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9545. Added Message Stream Encryption(MSE) support.
  9546. Currently, aria2 accepts incoming connections with Obfuscation Header
  9547. and legacy BitTorrent Header and establishes connections with
  9548. Obfuscation Header first and if failed then retry with legacy
  9549. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  9550. choose ARC4. The new option to change the default behavior is planned.
  9551. For tracker extension, "supportcrypto=1" is added statically.
  9552. * src/PeerInitiateConnectionCommand.{h, cc}
  9553. * src/PeerConnection.{h, cc}
  9554. * src/HandleRegistry.h
  9555. * src/SocketCore.h
  9556. * src/PeerReceiveHandshakeCommand.{h, cc}
  9557. * src/BtRegistry.{h, cc}
  9558. * src/PeerListenCommand.cc
  9559. * src/InitiatorMSEHandshakeCommand.{h, cc}
  9560. * src/ReceiverMSEHandshakeCommand.{h, cc}
  9561. * src/MSEHandshake.{h, cc}
  9562. * src/ARC4Encryptor.h
  9563. * src/ARC4Decryptor.h
  9564. * src/LibgcryptARC4Encryptor.h
  9565. * src/LibgcryptARC4Decryptor.h
  9566. * src/LibgcryptARC4Context.h
  9567. * src/LibsslARC4Encryptor.h
  9568. * src/LibsslARC4Decryptor.h
  9569. * src/LibsslARC4Context.h
  9570. * src/DHKeyExchange.h
  9571. * src/LibgcryptDHKeyExchange.h
  9572. * src/LibsslDHKeyExchange.h
  9573. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  9574. * test/DefaultBtAnnounceTest.cc
  9575. * test/ARC4Test.cc
  9576. * test/DHKeyExchangeTest.cc
  9577. Removed prepareForRetry() because it is not used.
  9578. * src/PeerAbstractCommand.{h, cc}
  9579. * src/PeerInteractionCommand.{h, cc}
  9580. * src/PeerInitiateConnectionCommand.{h, cc}
  9581. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9582. Added the ability to load nodes from torrent file. These nodes are
  9583. added to the routing table when downloading that torrent.
  9584. * src/BtContext.h
  9585. * src/DefaultBtContext.{h, cc}
  9586. * src/DHTSetup.cc
  9587. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  9588. hostname and port pair, and resolves all of them.
  9589. * src/NameResolver.{h, cc}: Added reset().
  9590. * src/RequestGroup.cc
  9591. * test/DefaultBtContextTest.cc
  9592. * test/MockBtContext.h
  9593. Removed assert() from DefaultBtContext and throw exception instead.
  9594. * src/DefaultBtContext.cc
  9595. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9596. Fixed segmentation fault bug when exiting if dht is disabled.
  9597. * src/RequestGroup.cc
  9598. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9599. Fixed typo in log message and define the message in message.h
  9600. * src/TimedHaltCommand.cc
  9601. * src/message.h
  9602. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9603. Included RecoverableException.h to fix compilation error.
  9604. * test/DHTMessageFactoryImplTest.cc
  9605. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  9607. * test/DHTPingMessageTest.cc
  9608. * test/DHTGetPeersMessageTest.cc
  9609. * test/DHTFindNodeMessageTest.cc
  9610. * test/DHTAnnouncePeerMessageTest.cc
  9611. * test/MockDHTMessage.h
  9612. * test/MockDHTMessageFactory.h
  9613. * test/MockDHTMessageDispatcher.h: New class.
  9614. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  9616. virtual.
  9617. * src/DHTMessageDispatcher.h
  9618. * src/DHTMessageDispatcherImpl.{h, cc}
  9619. * src/DHTSetup.cc
  9620. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Adding handling of DHT error message. Just log error message and
  9622. throw exception.
  9623. * src/DHTMessageFactoryImpl.cc
  9624. * test/DHTMessageFactoryImplTest.cc
  9625. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. Added handling of dynamic cast failure.
  9627. * src/DHTNodeLookupTask.cc
  9628. * src/DHTPeerLookupTask.cc
  9629. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9630. Added the ability to stop aria2 itself when given time has passed
  9631. from start. Use --stop option to specify time in minutes.
  9632. When 0 is given, this feature is disabled.
  9633. * src/OptionHandlerFactory.cc
  9634. * src/TimeBasedCommand.h: Make _interval protected scope.
  9635. * src/HelpItemFactory.cc
  9636. * src/option_processing.cc
  9637. * src/prefs.h
  9638. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  9639. before calling RequestGroupMan::fillRequestGroupFromReserver().
  9640. Without this modification, the result list shows "ERR" when aria2 is
  9641. stopped by --stop option. It should be "INPR".
  9642. * src/DownloadEngine.{h, cc}
  9643. * src/DownloadEngineFactory.cc
  9644. * src/usage_text.h
  9645. * src/TimedHaltCommand.{h, cc}: New class.
  9646. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9647. Bootstrap through node added by port message.
  9648. Currently bootstrap is executed if the number of buckets in routing
  9649. table is 1.
  9650. * src/BtPortMessage.{h, cc}
  9651. * src/DefaultBtMessageFactory.{h, cc}
  9652. * src/PeerInteractionCommand.cc
  9653. * test/BtPortMessageTest.cc
  9654. * test/MockDHTTask.h
  9655. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9656. Extract the Peer class's member variables, which are only needed after
  9657. PeerInteractionCommand, into PeerSessionResource class.
  9658. This class is instantiated in PeerInteractionCommand class's ctor and
  9659. released in its dtor.
  9660. This will make Peer class lightweight and uses less memory for peers
  9661. which are not connected and wait in the queue.
  9662. * src/PeerChokeCommand.cc
  9663. * src/PeerSessionResource.{h, cc}
  9664. * src/PeerInteractionCommand.cc
  9665. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  9666. * src/DefaultBtInteractive.cc
  9667. * src/BtPieceMessage.cc
  9668. * src/BtInterestedMessage.cc
  9669. * src/BtUnchokeMessage.cc
  9670. * src/DefaultPeerStorage.{h, cc}
  9671. * src/PeerInitiateConnectionCommand.cc
  9672. * src/ActivePeerConnectionCommand.cc
  9673. * src/BtNotInterestedMessage.cc
  9674. * src/DefaultBtMessageDispatcher.cc
  9675. * src/BtChokeMessage.cc
  9676. * src/BtRequestMessage.cc
  9677. * src/Peer.{h, cc}
  9678. * src/BtRegistry.h
  9679. * src/TrackerWatcherCommand.cc
  9680. * src/PeerReceiveHandshakeCommand.cc
  9681. * test/BtExtendedMessageTest.cc
  9682. * test/BtAllowedFastMessageTest.cc
  9683. * test/BtCancelMessageTest.cc
  9684. * test/DefaultPieceStorageTest.cc
  9685. * test/BtBitfieldMessageTest.cc
  9686. * test/BtHaveMessageTest.cc
  9687. * test/BtNotInterestedMessageTest.cc
  9688. * test/BtRequestMessageTest.cc
  9689. * test/PeerSessionResourceTest.cc
  9690. * test/DefaultBtMessageDispatcherTest.cc
  9691. * test/PeerTest.cc
  9692. * test/BtInterestedMessageTest.cc
  9693. * test/BtRejectMessageTest.cc
  9694. * test/BtChokeMessageTest.cc
  9695. * test/DefaultPeerStorageTest.cc
  9696. * test/BtHaveNoneMessageTest.cc
  9697. * test/BtHaveAllMessageTest.cc
  9698. * test/DefaultExtensionMessageFactoryTest.cc
  9699. * test/BtUnchokeMessageTest.cc
  9700. * test/DefaultBtMessageFactoryTest.cc
  9701. * test/HandshakeExtensionMessageTest.cc
  9702. * test/UTPexExtensionMessageTest.cc
  9703. * test/DefaultBtRequestFactoryTest.cc
  9704. * test/BtPieceMessageTest.cc
  9705. Removed typedef PeerStats.
  9706. * src/PeerStat.h
  9707. * src/SegmentMan.cc
  9708. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9709. Added std namespace to copy, remove_copy, back_inserter,
  9710. front_inserter.
  9711. * src/RequestGroupMan.cc
  9712. * src/DefaultPieceStorage.cc
  9713. * src/StreamFileAllocationEntry.cc
  9714. * src/BtFileAllocationEntry.cc
  9715. * src/RequestGroup.cc
  9716. * src/MetalinkEntry.cc
  9717. * src/DelegatingPeerListProcessor.cc
  9718. * src/DefaultBtRequestFactory.cc
  9719. * src/DefaultBtMessageDispatcher.cc
  9720. * src/version_usage.cc: Included <algorithm>
  9721. * src/main.cc
  9722. * src/MetalinkParserController.cc
  9723. * src/DefaultBtContext.cc
  9724. * src/DownloadEngineFactory.cc
  9725. * src/a2algo.h
  9726. Removed.
  9727. * test/StreamUriListParserTest.cc
  9728. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9729. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  9730. ActivePeerConnectionCommand when it is given and
  9731. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  9732. * src/ActivePeerConnectionCommand.{h, cc}
  9733. * src/BtSetup.cc
  9734. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9735. Only add socket to DownloadEngine's select routine when peer or
  9736. localhost is unchoked and interested. This lowers CPU usage a
  9737. little bit.
  9738. * src/PeerInteractionCommand.cc
  9739. * src/PeerAbstractCommand.{h, cc}
  9740. * src/BtInteractive.h
  9741. * src/DefaultBtInteractive.{h, cc}
  9742. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9743. Revert previous change because get_peers message is needed for
  9744. announce_peer anyway.
  9745. * src/DHTGetPeersCommand.cc
  9746. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Request peers thought DHT only when download hasn't finished.
  9748. * src/DHTGetPeersCommand.cc
  9749. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  9751. * src/DHTBucketRefreshTask.{h, cc}
  9752. * src/DHTSetup.cc
  9753. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9754. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  9755. standard classes.
  9756. Included string.h where mem* function are used.
  9757. Added namespace aria2.
  9758. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9759. Create directory before saving DHT routing table.
  9760. Now ios::failure is now handled properly.
  9761. * src/DHTAutoSaveCommand.cc
  9762. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. Removed unnecessary cerr.
  9764. * src/DownloadEngine.cc
  9765. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9766. Catch exception inside DHTMessageReceiver::receiveMessage().
  9767. Log unknown message.
  9768. * src/DHTMessageReceiver.{h, cc}
  9769. * src/DHTMessageFactory.h
  9770. * src/DHTMessageFactoryImpl.{h, cc}
  9771. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  9772. * src/DHTInteractionCommand.cc
  9773. * src/DHTUnknownMessage.{h, cc}
  9774. * test/DHTUnknownMessageTest.cc
  9775. * test/MockDHTMessageFactory.h
  9776. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9777. Commented out ip address comparison because a host can have multiple
  9778. ip addresses and it is hard to predict the hostname is resolved into
  9779. which one.
  9780. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  9781. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9782. * po/Makefile.in: Removed since this is generated by configure.
  9783. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9784. Fixed compiler warning about redefinition of SIZE_MAX.
  9785. Use common.h instead of config.h directly here.
  9786. * src/Platform.{h, cc}
  9787. The check of ENABLE_NLS is made in gettext.h, so it is not required
  9788. here.
  9789. * common.h
  9790. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  9791. Updated gettext related files.
  9792. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  9793. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  9794. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9795. Added DHT functionality, compatible with mainline.
  9796. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  9797. You may need to specify entry point to DHT network using
  9798. --dht-entry-point. DHT uses UDP port to listen incoming message.
  9799. Use --dht-listen-port to specify port number. Make sure that your
  9800. firewall configuration can pass through UDP traffic to the port.
  9801. The routing table is saved in $HOME/.aria2/dht.dat.
  9802. * src/DHT*
  9803. * src/BNode.{h, cc}
  9804. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  9805. particular torrent.
  9806. * src/Data.cc: Rewritten ctor.
  9807. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  9808. --dht-entry-point.
  9809. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  9810. * src/RequestGroup.cc: Initialize DHT functionality. When download
  9811. ends, remove BtContext from DHTPeerAnnounceStorage.
  9812. * src/BtPortMessage.{h, cc}: Rewritten.
  9813. * src/message.h
  9814. * src/OptionHandlerImpl.cc
  9815. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  9816. --dht-entry-point.
  9817. * src/Dictionary.{h, cc} (remove): New function.
  9818. * src/prefs.h
  9819. * src/DefaultBtMessageFactory.h
  9820. * src/BtHandshakeMessage.cc
  9821. * src/ActivePeerConnectionCommand.cc
  9822. * src/SocketCore.{h, cc}: Added datagram socket support.
  9823. * src/DefaultBtMessageFactory.cc
  9824. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  9825. Create DHT commands.
  9826. * src/BtMessageFactory.h
  9827. * src/PeerMessageUtil.{h, cc}
  9828. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9829. Fixed the bug that log file is not written when configuration file doesn't exist.
  9830. This is caused by using Logger class before LogFactory is not configured.
  9831. BUG #1875079
  9832. * src/option_processing.cc
  9833. Warning message "configuration doesn't exist" is only printed when --conf is
  9834. given.
  9835. * src/option_processing.cc
  9836. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9837. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  9838. ShaVisitor is now deprecated and slated to be removed.
  9839. * src/DefaultBtContext.cc
  9840. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9841. Externalize message to message.h
  9842. * src/Platform.cc
  9843. * src/message.h
  9844. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Set default domain and default path to cookie.
  9846. * src/HttpResponse.cc
  9847. * src/CookieBox.{h, cc}
  9848. * src/CookieParser.{h, cc}
  9849. * test/CookieParserTest.cc
  9850. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9851. Added --no-conf and --conf-path command-line option.
  9852. --no-conf option disables loading aria2.conf file.
  9853. --conf-path option changes the configuration file path. The default
  9854. file path is $HOME/.aria2/aria2.conf
  9855. Added a warning message when the configuration file is not found.
  9856. * src/HelpItemFactory.cc
  9857. * src/option_processing.cc
  9858. * src/prefs.h
  9859. * src/usage_text.h
  9860. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Added the message to inform users that other help categories are
  9862. available in -h option.
  9863. * src/version_usage.cc
  9864. * src/TagContainer.{h, cc}
  9865. * test/TagContainerTest.cc
  9866. * src/TaggedItem.{h, cc}
  9867. * test/TaggedItemTest.cc
  9868. * src/HelpItem.h
  9869. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9870. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  9871. from PiecedSegment's ctor.
  9872. Previously Piece::getAllMissingBlockIndexes() is called from
  9873. PiecedSegment() but it is rather expensive since only first element is
  9874. used.
  9875. * src/PiecedSegment.cc
  9876. * src/Piece.{h, cc}
  9877. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9878. Rewritten get*Missing*Index functions. Now no need to allocate memory
  9879. each time these functions are called.
  9880. * src/BitfieldMan.{h, cc}
  9881. * test/BitfieldManTest.cc
  9882. * src/array_fun.h
  9883. * test/array_funTest.cc
  9884. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  9885. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  9886. filtered. Removed unnecessary cast to int32_t.
  9887. * src/BitfieldMan.{h, cc}
  9888. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  9890. payload length(4bytes) are received. This happens because lenbufLength
  9891. is not updated in this particular case and successive call of
  9892. receiveMessage() overwrites payload length with bytes recieved which
  9893. are payload body.
  9894. * src/PeerConnection.{h, cc}
  9895. * src/message.h
  9896. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9897. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  9898. peer if there are peers that have same ipaddr and port.
  9899. I've experiened segmentation fault and "pure virtual function was
  9900. called" error.
  9901. * src/Peer.h
  9902. * test/PeerTest.cc
  9903. * src/DefaultPeerStorage.cc
  9904. * test/DefaultPeerStorageTest.cc
  9905. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9906. Removed a call to isPowerOf() because it is no longer necessary here
  9907. and a request block is not always power of 2.
  9908. BUG#1866924
  9909. * src/PeerMessageUtil.cc (checkLength)
  9910. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. Fixed the bug that always first found Segment is removed from
  9912. usedSegmentEntries. Removed unused functions.
  9913. * src/SegmentMan.{h, cc}
  9914. * test/SegmentManTest.cc
  9915. Fixed the bug that ServerHost is not removed.
  9916. * src/RequestGroup.cc
  9917. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9918. Fixed the bug that SegmentMan::completeSegment() is not called
  9919. even if Segment is complete when --lowest-speed-limit is enabled.
  9920. BUG#1864525
  9921. * src/DownloadCommand.{h, cc}
  9922. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9923. Fixed: hash algorithm 'sha1' is always used.
  9924. * src/DownloadCommand.cc (validatePieceHash)
  9925. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9926. Added --enable-peer-exchange command-line option.
  9927. * src/OptionHandlerFactory.cc
  9928. * src/HelpItemFactory.cc
  9929. * src/option_processing.cc
  9930. * src/usage_text.h
  9931. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9932. Move extension from BtRuntime to ExtensionMessageFactory, because
  9933. extension can be specified per peer, not per torrent.
  9934. * src/DefaultBtInteractive.cc
  9935. * src/BtRuntime.h
  9936. * src/ExtendedMessagingAware.h
  9937. * src/ExtensionMessageFactory.h
  9938. * src/DefaultExtensionMessageFactory.cc
  9939. * test/DefaultExtensionMessageFactoryTest.cc
  9940. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9941. Added categorized option help. Specify category using --help option.
  9942. Also added the ability to search options in forward match.
  9943. * src/HelpItem.{h, cc}
  9944. * test/HelpItemTest.cc
  9945. * src/HelpItemFactory.{h, cc}
  9946. * src/TagContainer.{h, cc}
  9947. * test/TagContainerTest.cc
  9948. * src/option_processing.cc
  9949. * src/prefs.h
  9950. * src/TaggedItem.{h, cc}
  9951. * test/TaggedItemTest.cc
  9952. * src/version_usage.cc
  9953. * src/help_tags.h
  9954. * src/usage_text.h
  9955. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9956. Fixed segmentation fault when bad torrent metainfo is parsed.
  9957. Added dynamic_cast properly to detect the misconfiguration of metainfo
  9958. and then throw exception or skip it.
  9959. * src/DefaultBtContext.{h, cc}
  9960. * test/DefaultBtContextTest.cc
  9961. * src/AnnounceList.cc
  9962. * src/CompactPeerListProcessor.cc
  9963. * src/message.h
  9964. * src/DefaultBtAnnounce.{h, cc}
  9965. * test/DefaultBtAnnounceTest.cc
  9966. * src/BencodeVisitor.cc
  9967. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9968. Added missing "B"(=Byte). So now the message looks like this:
  9969. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  9970. * src/message.h (MSG_SHARE_RATIO_REPORT)
  9971. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9972. Show the seed ratio after torrent downloads.
  9973. For example, after torrent download completed and --seed-time and
  9974. --seed-ratio conditions are fulfilled, following message is printed
  9975. right after "Download complete: .....":
  9976. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  9977. * src/RequestGroupMan.cc
  9978. * src/RequestGroup.{h, cc}
  9979. * src/message.h
  9980. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9981. Remove a defunct control file. A defunct control file means that while
  9982. it exists, but the corresponding download file is missing.
  9983. After its removal, a download restarts from the beginning.
  9984. * src/RequestGroup.cc
  9985. * src/message.h
  9986. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9987. Allocate bitfield in Peer when it is really used. More specifically,
  9988. bitfield in Peer is allocated after the connection is established and
  9989. deallocated when the connection is dropped.
  9990. Since 2 parameters(piece length and total length) was removed from the
  9991. constructor of Peer class, many test classes were modified accordingly.
  9992. See svn log for more detailed information.
  9993. * src/PeerInteractionCommand.cc
  9994. * src/CompactPeerListProcessor.cc
  9995. * src/Peer.cc
  9996. * src/DefaultPeerListProcessor.cc
  9997. * src/PeerListenCommand.cc
  9998. * src/PeerReceiveHandshakeCommand.cc
  9999. Fixed memory leak
  10000. * src/Piece.cc
  10001. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10002. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10003. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10004. command-line options.
  10005. * src/option_processing.cc
  10006. * src/ActivePeerConnectionCommand.cc
  10007. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10008. Send have message to peer if it already has the piece.
  10009. * src/BtHaveMessage.{h, cc}
  10010. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10012. port.
  10013. * src/DefaultPeerStorage.{h, cc}
  10014. * test/DefaultPeerStorageTest.cc
  10015. * src/HandshakeExtensionMessage.cc
  10016. * test/HandshakeExtensionMessageTest.cc
  10017. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10018. * src/PeerStorage.h
  10019. * test/MockPeerStorage.h
  10020. * src/PeerListenCommand.cc
  10021. * src/PeerReceiveHandshakeCommand.cc
  10022. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10023. Added --metalink-enable-unique-protocol option.
  10024. * src/Metalink2RequestGroup.cc
  10025. * src/option_processing.cc
  10026. * src/prefs.h
  10027. * src/version_usage.cc
  10028. * doc/aria2c.1.txt
  10029. * doc/aria2c.1
  10030. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10031. Allow a peer in incomingPeer to be added peers.
  10032. * src/DefaultPeerStorage.cc
  10033. * test/DefaultPeerStorageTest.cc
  10034. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10035. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10036. I could reproduce this bug in following procedure:
  10037. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10038. 2. Restart aria2.
  10039. 3. You see the download stopped around 99%.
  10040. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10041. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10042. If timeout is reached, then _nextCommand is unused and it may contains
  10043. segments and they won't be canceled. Actually, timeout is not needed
  10044. here because if the server dropped connection, then retry is made.
  10045. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Added uTorrent compatible Peer Exchange.
  10047. * src/BencodeVisitor.{h, cc}
  10048. * test/BencodeVisitorTest.cc
  10049. * src/BtConstants.h
  10050. * src/BtContext.h: Added 'private' flag.
  10051. * src/BtExtendedMessage.{h, cc}
  10052. * test/BtExtendedMessageTest.cc
  10053. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10054. reserved field.
  10055. * test/BtHandshakeMessageTest.cc
  10056. * src/BtMessageFactory.h
  10057. * src/BtRegistry.h
  10058. * src/BtRuntime.h: This class holds default extension message IDs for
  10059. aria2. By default, aria2 uses ID 8 for ut_pex.
  10060. * src/DefaultBtContext.cc
  10061. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10062. When it is true, aria2 enables ut_pex. This value is set by
  10063. PeerInteractionCommand.
  10064. * src/DefaultBtMessageFactory.{h, cc}
  10065. * test/DefaultBtMessageFactoryTest.cc
  10066. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10067. handling to DefaultBtInteractive class.
  10068. * src/DefaultExtensionMessageFactory.{h, cc}
  10069. * test/DefaultExtensionMessageFactoryTest.cc
  10070. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10071. the container(peers and incomingPeers. The equality is determined by
  10072. Peer::id).
  10073. * test/DefaultPeerStorageTest.cc
  10074. * src/ExtensionMessage.h
  10075. * test/MockExtensionMessage.h
  10076. * src/ExtensionMessageFactory.h
  10077. * test/MockExtensionMessageFactory.h
  10078. * src/HandshakeExtensionMessage.{h, cc}
  10079. * test/HandshakeExtensionMessageTest.cc
  10080. * src/MetaEntry.h
  10081. * src/Peer.{h, cc}
  10082. * src/PeerInteractionCommand.cc
  10083. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10084. addIncomingPeer.
  10085. * src/PeerMessageUtil.{h, cc}
  10086. * src/PeerObject.h
  10087. * src/UTPexExtensionMessage.{h, cc}
  10088. * test/UTPexExtensionMessageTest.cc
  10089. * src/message.h
  10090. * src/prefs.h
  10091. Fixed the bug that returns incomplete data when it contains null
  10092. character. A convenient constructor was also added.
  10093. * src/Data.{h, cc}
  10094. Rewritten.
  10095. * src/CompactPeerListProcessor.cc
  10096. Fixed typos.
  10097. * src/message.h
  10098. * src/MetaFileUtil.cc
  10099. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10100. Added "Status Legend" label to the explanation text of 'stat' in
  10101. download result and moved it to the last. BUG#1848214
  10102. * src/RequestGroupMan.cc
  10103. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10104. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10105. * src/Makefie.am
  10106. * test/Makefile.am
  10107. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10108. Fixed the bug that prevents aria2 from loading cookie file when expire
  10109. value is greater than 2^31-1. BUG#1851066
  10110. * src/CookieBoxFactory.cc
  10111. * test/CookieBoxFactoryTest.cc
  10112. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10113. Fixed possible memory leak when an exception is thrown.
  10114. * src/XML2SAXMetalinkProcessor.cc
  10115. Added Expat support. If both libxml2 and Expat are installed, then
  10116. libxml2 is used by default.
  10117. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10118. ExpatMetalinkProcessor according to the configuration.
  10119. * src/ExpatMetalinkProcessor.{h, cc}
  10120. * src/main.cc: Removed libxml2 specific header and init/free function.
  10121. * src/MetalinkProcessorFactory.{h, cc}
  10122. * src/MetalinkHelper.cc
  10123. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10124. * src/MetalinkProcessor.h
  10125. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10126. MetalinkProcessorTest is used instead.
  10127. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10128. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10129. MetalinkProcessorFactory::newInstance().
  10130. * m4/libexpat.m4
  10131. * configure.ac: Added configuration options for libexpat.
  10132. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10133. Disabled -s option in metalink download.
  10134. * src/Metalink2RequestGroup.cc
  10135. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10136. If several protocols are available for a mirror in metalink file,
  10137. aria2 now use one of them. --metalink-preferred-protocol option was
  10138. added to specify the preference of protocol.
  10139. * src/AbstractCommand.cc
  10140. * src/OptionHandlerFactory.cc
  10141. * src/ServerHost.{h, cc}
  10142. * src/Metalink2RequestGroup.cc
  10143. * src/RequestGroup.{h, cc}
  10144. * test/RequestGroupTest.cc
  10145. * src/option_processing.cc
  10146. * src/prefs.h
  10147. * src/HttpResponseCommand.cc
  10148. * src/MetalinkResource.{h, cc}
  10149. * src/FtpNegotiationCommand.cc
  10150. * src/MetalinkEntry.{h, cc}
  10151. * src/MetalinkEntryTest.cc
  10152. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10153. Code cleanup and added debug log.
  10154. * src/PeerConnection.cc
  10155. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10156. Compiler error fix: applied the patch by Tiziano Mueller
  10157. * src/RequestGroup.cc
  10158. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10159. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10160. in stopped and completed event.
  10161. * src/AnnounceList.{h, cc}
  10162. * test/AnnounceListTest.cc
  10163. * src/DefaultBtAnnounce.cc
  10164. * test/DefaultBtAnnounceTest.cc
  10165. Sorted URLs.
  10166. * test/Metalink2RequestGroupTest.cc
  10167. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10168. Removed unnecessary string copy. Updated doc and corrected indentation.
  10169. * src/Base64.cc
  10170. Fixed compilation warnings
  10171. * test/DataTest.cc
  10172. * test/HttpRequestTest.cc
  10173. * test/MetaFileUtilTest.cc
  10174. * test/RequestTest.cc
  10175. * Release 0.12.0
  10176. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10177. Updated translations
  10178. * po/{de,fr,ja,nl,ru}.po
  10179. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10180. translations. Many thanks to translators.
  10181. * po/{ca,es,it,pt_BR,sv}.po
  10182. * po/LINGUAS
  10183. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10184. Added a notice about URL
  10185. * src/version_usage.cc
  10186. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10187. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10188. aria2 repeatedly sends stopped request when tracker returns error code.
  10189. * src/AnnounceList.cc
  10190. * test/AnnounceListTest.cc
  10191. * src/AnnounceTier.h
  10192. Added a message when ctrl-c is hit.
  10193. Now second ctrl-c is also handled in signal handler.
  10194. * src/RequestGroupMan.{h, cc}
  10195. * src/RequestGroup.{h, cc}
  10196. * src/MultiUrlRequestInfo.cc
  10197. * src/DownloadEngine.cc
  10198. * src/TrackerWatcherCommand.cc
  10199. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10200. Code cleanup
  10201. * src/Base64.cc (encode)
  10202. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10203. Changed Direct/IO enable/disable procesure in file allocation routine.
  10204. * src/SingleFileAllocationIterator.cc
  10205. (SingleFileAllocationIterator):
  10206. Disable directIO if offset is not multiple of 512.
  10207. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10208. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10209. Enable created SingleFileAllocationIterator's directIO.
  10210. * src/FileAllocationEntry.cc
  10211. (FileAllocationEntry): Enable directIO here.
  10212. (~FileAllocationEntry): Disable directIO here.
  10213. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10214. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10215. * src/Peer.{h, cc}
  10216. * src/DefaultPieceStorage.cc
  10217. * test/DefaultPieceStorageTest.cc
  10218. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10219. Rewritten direct I/O support routine
  10220. * src/SingleFileAllocationIterator.cc
  10221. * src/MultiDiskAdaptor.{h, cc}
  10222. * src/ByteArrayDiskWriter.h
  10223. * src/AbstractSingleDiskAdaptor.h
  10224. * src/AbstractDiskWriter.cc
  10225. * src/DefaultPieceStorage.cc
  10226. * src/DiskWriter.h
  10227. * src/BinaryStream.h
  10228. * src/IteratableChunkChecksumValidator.cc
  10229. * src/IteratableChecksumValidator.cc
  10230. * src/CheckIntegrityEntry.cc
  10231. * src/FileAllocationEntry.cc
  10232. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10233. Fixed typo
  10234. * src/version_usage.cc
  10235. Updated doc
  10236. * doc/aria2c.1.txt
  10237. * doc/aria2c.1
  10238. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10239. Fixed compile error without message digest support.
  10240. * src/FileMetalinkParserState.cc
  10241. * src/MetalinkParserController.{h, cc}
  10242. * test/XML2SAXMetalinkProcessorTest.cc
  10243. * test/MetalinkParserControllerTest.cc
  10244. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10245. Enable direct I/O support in checksum checking.
  10246. * src/IteratableChunkChecksumValidator.{h, cc}
  10247. * test/IteratableChunkChecksumValidatorTest.cc
  10248. * src/CheckIntegrityEntry.cc
  10249. * src/PieceHashCheckIntegrityEntry.cc
  10250. * src/IteratableChecksumValidator.{h, cc}
  10251. * src/BtCheckIntegrityEntry.cc: Added doc.
  10252. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10253. Added --allow-piece-length-change option.
  10254. * src/DefaultBtProgressInfoFile.cc
  10255. * test/DefaultBtProgressInfoFileTest.cc
  10256. * src/OptionHandlerFactory.cc
  10257. * src/option_processing.cc
  10258. * src/prefs.h
  10259. * src/version_usage.cc
  10260. * doc/aria2c.1.txt
  10261. * doc/aria2c.1
  10262. Fixed: duplicated result entry appears when exception is thrown in
  10263. RequestGroup::createInitiateConnectionCommand().
  10264. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  10265. Add RequestGroup to _requestGroup after RequetGroup::
  10266. createInitiateConnectionCommand() succeeds.
  10267. Externalized message
  10268. * src/XML2SAXMetalinkProcessor.cc
  10269. * src/message.h
  10270. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10271. Forced download abort when received negative response from http/ftp
  10272. server.
  10273. * src/HttpResponseCommand.cc
  10274. * src/FtpNegotiationCommand.cc
  10275. * src/HttpResponse.cc
  10276. * src/FtpConnection.cc
  10277. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10278. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  10279. the predecessor, Xml2MetalinkParser class.
  10280. I tested them against 94KB metalink file with 1234 chunk checksums.
  10281. The new one parsed it in 22msec, while it took 6000msec with old one.
  10282. * src/XML2SAXMetalinkProcessor.{h, cc}
  10283. * test/XML2SAXMetalinkProcessorTest.cc
  10284. * src/MetalinkParserController.{h, cc}
  10285. * test/MetalinkParserControllerTest.cc
  10286. * src/MetalinkParserState.h: Also added 16 subclasses.
  10287. * src/main.cc
  10288. * src/Metalink2RequestGroup.cc
  10289. * src/MetalinkHelper.cc
  10290. * src/MetalinkEntry.cc
  10291. * src/ChunkChecksum.h
  10292. Rewritten Base64 class for better performance.
  10293. * src/Base64.{h, cc}
  10294. * test/Base64Test.cc
  10295. * src/HttpRequest.cc
  10296. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10297. Fixed the bug#1841757: aria2 will connect to server to only get
  10298. file size.
  10299. * src/StreamFileAllocationEntry.cc
  10300. * src/option_processing.cc
  10301. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  10302. downloads.
  10303. * src/FtpNegotiationCommand.cc
  10304. Suppressed wrong message when finding PreDownloadHandler
  10305. * src/RequestGroup.cc
  10306. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10307. Updated usage
  10308. * src/version_usage.cc
  10309. Updated man page
  10310. * doc/aria2c.1.txt
  10311. * doc/aria2c.1
  10312. Updated po files
  10313. * po/aria2c.pot
  10314. * po/*.po
  10315. * po/*.gmo
  10316. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10317. Eliminated g++-4.2 warning
  10318. * src/DownloadHandlerConstants.{h, cc}
  10319. * src/Util.cc
  10320. * test/MetaFileUtilTest.cc
  10321. * test/PStringBuildVisitorTest.cc
  10322. Fixed bug: --check-integrity doesn't work for multi file torrent.
  10323. * src/RequestGroup.cc
  10324. * src/BtCheckIntegrityEntry.cc
  10325. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10326. Fixed a2io.h
  10327. * src/a2io.h
  10328. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10329. Added direct I/O support. The current implementation uses O_DIRECT,
  10330. which is not posix standard and is tested on linux 2.6.21.
  10331. Currently only file allocation uses direct I/O.
  10332. * src/SingleFileAllocationIterator.{h, cc}
  10333. * test/SingleFileAllocationIteratorTest.cc
  10334. * src/MultiFileAllocationIterator.{h, cc}
  10335. * test/MultiFileAllocationIteratorTest.cc
  10336. * src/BinaryStream.h
  10337. * src/DiskWriter.h
  10338. * src/AbstractDiskWriter.{h, cc}
  10339. * src/ByteArrayDiskWriter.h
  10340. * src/DiskAdaptor.h
  10341. * src/AbstractSingleDiskAdaptor.{h, cc}
  10342. * src/MultiDiskAdaptor.{h, cc}
  10343. * src/FileAllocationEntry.cc
  10344. * src/Util.{h, cc}
  10345. * src/OptionHandlerFactory.cc
  10346. * src/prefs.h
  10347. * src/version_usage.cc
  10348. * src/option_processing.cc
  10349. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  10350. handleException.
  10351. * src/MultiFileAllocationIterator.cc
  10352. Added EINTR handling
  10353. * src/SocketCore.cc
  10354. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10355. Updated usage
  10356. * src/version_usage.cc
  10357. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10358. Applied Ross's patch for MinGW port.
  10359. * src/DownloadEngine.h
  10360. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. Set Content-Type to SingleFileDownloadContext when http response is
  10362. received.
  10363. * src/HttpResponseCommand.cc
  10364. * src/HttpResponse.{h, cc}
  10365. * test/HttpResponseTest.cc
  10366. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Rewritten to add content-type support.
  10368. * src/DownloadHandler.{h, cc}
  10369. * src/BtPostDownloadHandler.{h, cc}
  10370. * test/BtPostDownloadHandlerTest.cc
  10371. * src/MetalinkPostDownloadHandler.{h, cc}
  10372. * test/MetalinkPostDownloadHandlerTest.cc
  10373. * src/PostDownloadHandler.{h, cc}
  10374. * src/DownloadHandlerConstants.{h, cc}
  10375. * src/RequestGroup.cc
  10376. * src/HttpResponseCommand.cc
  10377. * src/FtpNegotiationCommand.cc
  10378. * src/SingleFileDownloadContext.{h, cc}
  10379. * src/RequestGroup.h
  10380. * src/RequestGroupCriteria.h
  10381. * src/ContentTypeRequestGroupCriteria.h
  10382. Added 'mem' option value for --follow-metalink, --follow-torrent.
  10383. If it is give, metalink/torrent file is not written to the disk, but
  10384. just is kept in memory. Parsing is occurred on memory.
  10385. * src/MetalinkHelper.{h, cc}
  10386. * src/MetalinkProcessor.h
  10387. * src/Xml2MetalinkProcessor.{h, cc}
  10388. * test/Xml2MetalinkProcessorTest.cc
  10389. * src/DownloadHandlerFactory.{h, cc}
  10390. * test/DownloadHandlerFactoryTest.cc
  10391. * src/PreDownloadHandler.{h, cc}
  10392. * src/OptionHandlerFactory.cc
  10393. * src/DefaultBtContext.{h, cc}
  10394. * test/DefaultBtContextTest.cc
  10395. * src/version_usage.cc
  10396. * src/Metalink2RequestGroup.{h, cc}
  10397. * src/RequestGroup.{h, cc}
  10398. * src/a2functional.h
  10399. * test/a2functionalTest.cc
  10400. * src/MemoryBufferPreDownloadHandler.{h, cc}
  10401. * src/OptionHandlerImpl.h
  10402. * src/prefs.h
  10403. * src/Util.{h, cc}
  10404. * test/UtilTest.cc
  10405. Keep DownloadResult rather than RequestGroup after downloads to reduce
  10406. memory usage.
  10407. * src/RequestGroupMan.{h, cc}
  10408. * src/DownloadEngine.cc
  10409. * src/BtDependency.{h, cc}: Changed the type of dependee from
  10410. WeakHandle to SharedHandle because WeakHandle could be null.
  10411. * src/RequestGroup.{h, cc}
  10412. * src/DownloadEngineFactory.cc
  10413. * src/DownloadResult.h
  10414. Set totalLength after download finished
  10415. * src/UnknownLengthPieceStorage.{h, cc}
  10416. Keep torrent file specified in metalink in memory.
  10417. * src/Metalink2RequestGroup.cc
  10418. * src/BtDependency.cc
  10419. * src/TrueRequestGroupCriteria.h
  10420. Fixed the bug: seekg is used where seekp should be used.
  10421. * src/ByteArrayDiskWriter.cc
  10422. * test/ByteArraydiskWriterTest.cc
  10423. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10424. Fixed syntax error
  10425. * test/SequenceTest.cc
  10426. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10427. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10428. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  10429. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  10430. * src/RequestGroup.cc (downloadFinishedByFileLength)
  10431. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10432. Added the check to see whether ares_host_callback accepts timeouts
  10433. with c-ares; only c-ares 1.5.0 or newer accepts it.
  10434. * src/NameResolver.{h, cc}
  10435. * m4/libcares.m4
  10436. * configure.ac: Set C++ for language choice.
  10437. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10438. Fixed: compilation fails without c-ares/ares
  10439. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  10440. Generate http/ftp commands only when download is incomplete.
  10441. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  10442. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10443. Corrected typo. Examples are removed since they are available in man
  10444. page.
  10445. * src/version_usage.cc
  10446. Updated man page.
  10447. * doc/aria2c.1
  10448. * doc/aria2c.1.txt
  10449. * doc/makeman: Commented out sed command.
  10450. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10451. Throw DlAbortEx when a remote file is not found.
  10452. * src/HttpResponse.cc
  10453. * src/FtpNegotiationCommand.cc
  10454. * src/message.h
  10455. Overwrite an existing file if --allow-overwrite=true is given.
  10456. * src/RequestGroup.cc
  10457. Removed unused functions
  10458. * src/AbstractCommand.h
  10459. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10460. Removed 'extern' from 'extern typedef ...' in src/*.h
  10461. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10462. Updated usage
  10463. * src/version_usage.cc
  10464. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10465. Trim announce URL
  10466. * src/DefaultBtContext.cc
  10467. * test/ShaVisitorTest.cc
  10468. Trim argument s. Give trimed s to exception constructor.
  10469. * src/Util.cc (parseInt)(parseLLInt)
  10470. * test/UtilTest.cc
  10471. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10472. Set precision back to 1.
  10473. * src/ConsoleStatCalc.cc (calculateStat)
  10474. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. Replaced strtol with Util::parseInt
  10476. * src/ChunkedEncoding.cc
  10477. * src/HttpConnection.cc
  10478. * src/CookieBoxFactory.cc
  10479. * src/ParameterizedStringParser.cc
  10480. * src/Util.cc
  10481. * test/UtilTest.cc
  10482. * test/OptionHandlerTest.cc
  10483. * src/Request.cc
  10484. Throw exception when empty string is given. The message for exception
  10485. changed.
  10486. * src/Util.cc (parseInt)(parseLLInt)
  10487. * src/message.h
  10488. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Set precision to 2 because share ratio is rounded into 1.0 if precision
  10490. set to 1.
  10491. * src/ConsoleStatCalc.cc (calculateStat)
  10492. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Preallocate non-requested file which is adjacent forward to requested
  10494. file('requested' files means the files given in --select-file option)
  10495. if they share a same piece.
  10496. This fixes long pause in the file system which doesn't support sparse
  10497. files like FAT32 while downloading.
  10498. * src/MultiFileAllocationIterator.{h, cc}
  10499. * test/MultiFileAllocationIteratorTest.cc
  10500. * src/FileEntry.{h, cc}
  10501. Removed unused _option.
  10502. * src/MultiDiskAdaptor.h
  10503. * test/MultiDiskAdaptorTest.cc
  10504. * src/DefaultPieceStorage.cc
  10505. Set the default value of --seed-ratio to 1.0.
  10506. If 0.0 is given, then seeding continues regardless of share ratio.
  10507. * src/version_usage.cc
  10508. * src/option_processing.cc
  10509. * src/BtSetup.cc
  10510. * doc/aria2c.1.txt
  10511. * doc/aria2c.1
  10512. Fixed: Selective download is not working in BitTorrent
  10513. * src/RequestGroup.cc
  10514. Introduced Sequence class. Use this instead of Util::unfoldRange()
  10515. * src/PieceStorage.h
  10516. * test/MockPieceStorage.h
  10517. * src/UnknownLengthPieceStorage.h
  10518. * src/DefaultPieceStorage.{h, cc}
  10519. * src/Metalink2RequestGroup.cc
  10520. * src/RequestGroup.cc
  10521. * src/Sequence.h
  10522. * test/SequenceTest.cc
  10523. * src/IntSequence.h
  10524. * src/message.h
  10525. * src/Util.{h, cc}
  10526. * test/UtilTest.cc
  10527. Added new function 'parse' to catch exception thrown by subclass's
  10528. parseArg
  10529. * src/OptionHandler.h
  10530. * src/OptionParser.cc
  10531. * src/NameMatchOptionHandler.h
  10532. * src/OptionHandlerImpl.h
  10533. * test/OptionHandlerTest.cc
  10534. Added IntegerRangeOptionHandler. Used for --listen-port and
  10535. --select-file. Now --listen-port accepts range of port.
  10536. * src/OptionHandlerFactory.cc
  10537. * src/version_usage.cc
  10538. * src/OptionHandlerImpl.h
  10539. * src/option_processing.cc
  10540. * src/BtSetup.cc
  10541. * src/PeerListenCommand.{h, cc}
  10542. * doc/aria2c.1.txt
  10543. * doc/aria2c.1
  10544. Implemented operator< for Exception class to provide easy way to print
  10545. exception stack trace.
  10546. * src/Exception.{h, cc}
  10547. * src/main.cc
  10548. * src/option_processing.cc
  10549. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10550. * src/version_usage.cc
  10551. (showVersion): Reworked.
  10552. (showUsage): Added examples.
  10553. Removed Hint for total length and file name.
  10554. * src/Metalink2RequestGroup.cc
  10555. * src/RequestGroup.{h, cc}
  10556. * src/HttpResponseCommand.cc
  10557. * src/FtpNegotiationCommand.cc
  10558. Now --follow-torrent and --follow-metalink option work properly.
  10559. * src/RequestGroup.cc
  10560. Updated man page
  10561. * doc/aria2c.1.txt
  10562. * doc/aria2c.1
  10563. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10564. Removed.
  10565. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  10566. Use Segment::operator==()
  10567. * src/HttpConnection.cc
  10568. * src/Segment.h
  10569. Updated usage
  10570. * src/version_usage.cc
  10571. Added EINTR treatment.
  10572. * src/SocketCore.cc
  10573. * src/AbstractDiskWriter.cc
  10574. Rewritten.
  10575. * src/Util.cc (rangedFileCopy)
  10576. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10577. Fixed typo.
  10578. * src/version_usage.cc
  10579. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10580. Implemented. Now -c option works fine.
  10581. * src/DefaultPieceStorage.cc (markPiecesDone)
  10582. * test/DefaultPieceStorageTest.cc
  10583. Removed.
  10584. * src/SegmentMan.{h, cc}
  10585. (markAllPiecesDone)
  10586. (markPieceDone)
  10587. Synchronized po files with
  10588. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  10589. * src/fr.po
  10590. * src/ru.po
  10591. * src/de.po
  10592. * src/ja.po
  10593. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10594. Added ifdef and some modifications to compile without BitTorrent,
  10595. Metalink, MessageDigest
  10596. support.
  10597. * src/PieceHashCheckIntegrityEntry.cc
  10598. * src/MetalinkEntry.h
  10599. * src/version_usage.cc
  10600. * src/main.cc
  10601. * src/DownloadEngine.{h, cc}
  10602. * src/Metalink2RequestGroup.cc
  10603. * src/Peer.cc
  10604. * src/RequestGroup.cc
  10605. * src/MetalinkHelper.cc
  10606. * test/DefaultPieceStorageTest.cc
  10607. * test/MetalinkPostDownloadHandlerTest.cc
  10608. * test/Metalink2RequestGroupTest.cc
  10609. Hide TOTAL SPD when all downloads complete.
  10610. * src/ConsoleStatCalc.cc
  10611. Log target system information.
  10612. * src/main.cc
  10613. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. Now --metalink-location accepts a comma-deliminated list of locations.
  10615. * src/MetalinkEntry.{h, cc}
  10616. * test/MetalinkEntryTest.cc
  10617. * src/version_usage.cc
  10618. * src/Metalink2RequestGroup.cc
  10619. * src/Xml2MetalinkProcessor.cc
  10620. * test/Xml2MetalinkProcessorTest.cc
  10621. * doc/aria2c.1.txt
  10622. * doc/aria2c.1
  10623. * src/Util.cc (toUpper)(toLower): Rewritten.
  10624. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10625. Added the ability to detect duplicate download entry which is about to
  10626. download the same file other RequestGroup is downloading.
  10627. * src/RequestGroup.cc
  10628. * src/HttpResponseCommand.cc
  10629. * src/FtpNegotiationCommand.cc
  10630. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10631. Recalculates download progress when loading a control file,
  10632. if the piece length of DownloadContext is different from the one saved
  10633. in the control file. Currently in-flight pieces are ignored.
  10634. * src/DefaultBtProgressInfoFile.cc
  10635. * test/DefaultBtProgressInfoFileTest.cc
  10636. * src/Util.{h, cc}
  10637. * test/UtilTest.cc
  10638. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10639. Do not rotate tiers in announce-list.
  10640. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  10641. AnnounceList::allTiersFailed() used instead to detect whether all
  10642. tiers are tried and failed.
  10643. * test/DefaultBtAnnounceTest.cc
  10644. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  10645. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  10646. * test/AnnounceListTest.cc
  10647. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  10648. clause. Catch RecoverableException instead of DlRetryEx instead.
  10649. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10650. Implemented checksum validation feature(1 checksum for each file)
  10651. The validation takes place after the download.
  10652. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  10653. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  10654. * src/CheckIntegrityCommand.cc: Changed log message.
  10655. * src/Metalink2RequestGroup.cc: Set checksum to
  10656. SingleFileDownloadContext.
  10657. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  10658. PieceHashCheckIntegrity class.
  10659. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  10660. PieceHashCheckIntegrity class.
  10661. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  10662. * src/IteratableValidator.h: New class.
  10663. * src/message.h
  10664. * src/CheckIntegrityEntry.{h, cc}
  10665. * src/IteratableChunkChecksumValidator.{h, cc}
  10666. * src/SingleFileDownloadContext.h
  10667. * src/DownloadCommand.cc
  10668. --allow-overwrite=true is no longer needed to check file integrity
  10669. before download in BitTorrent download.
  10670. * src/RequestGroup.cc (getInitialCommand)
  10671. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  10672. throws exception.
  10673. * src/RequestGroupMan.cc (getInitialCommands)
  10674. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10675. urlencode the given url inside Request::parseUrl(...)
  10676. * src/Request.{h, cc}
  10677. * src/Util.{h, cc}
  10678. * test/RequestTest.cc
  10679. Removed #!metalink3! notation support because it is deleted from
  10680. the metalink specification.
  10681. * src/Request.{h, cc}
  10682. * test/RequestTest.cc
  10683. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10684. Don't connect server before checking file integrity at startup, if
  10685. filesize and output file path are known.
  10686. * src/AbstractCommand.cc
  10687. * src/StreamFileAllocationEntry.cc
  10688. * src/Metalink2RequestGroup.cc
  10689. * src/RequestGroup.{h, cc}
  10690. * src/HttpResponseCommand.cc
  10691. * src/FtpNegotiationCommand.cc
  10692. Added DownloadFailureException. If it is thrown, RequestGroup should
  10693. halt.
  10694. * src/AbstractCommand.cc
  10695. * src/DownloadFailureException.h
  10696. * src/RequestGroup.cc
  10697. Catch RecoverableException, instead of DlAbortEx.
  10698. * src/RequestGroupMan.cc
  10699. * src/FillRequestGroupCommand.cc
  10700. * src/MetaFileUtil.cc
  10701. * src/IteratableChunkChecksumValidator.cc
  10702. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  10703. getGID())
  10704. * src/CheckIntegrityCommand.cc
  10705. * src/message.h
  10706. Print gid instead of idx.
  10707. * src/RequestGroupMan.cc
  10708. Removed exception throwers declaration.
  10709. * src/DirectDiskAdaptor.{h, cc}
  10710. * src/SocketCore.{h, cc}
  10711. * src/MultiDiskAdaptor.{h, cc}
  10712. * src/HttpConnection.{h, cc}
  10713. * src/HttpResponse.{h, cc}
  10714. * src/DiskAdaptor.{h, cc}
  10715. * src/CopyDiskAdaptor.{h, cc}
  10716. * src/MultiDiskAdaptor.{h, cc}
  10717. * src/HttpHeaderProcessor.{h, cc}
  10718. * src/AbstractSingleDiskAdaptor.{h, cc}
  10719. * src/Util.{h, cc}
  10720. * test/UtilTest.cc
  10721. * src/DefaultDiskWriter.{h, cc}
  10722. * src/FtpConnection.{h, cc}
  10723. * src/AbstractDiskWriter.{h, cc}
  10724. Removed duplicate code.
  10725. * src/StreamCheckIntegrityEntry.cc
  10726. Removed unnecessary include.
  10727. * src/DiskWriter.h
  10728. Included Exception.h
  10729. * src/option_processing.cc
  10730. Included 2 files and added doc
  10731. * src/TrackerWatcherCommand.cc
  10732. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  10733. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10734. Changed CheckIntegrityEntry interface so that it can define
  10735. the action when all the chunk checksums are valid.
  10736. * src/CheckIntegrityEntry.h
  10737. * src/StreamCheckIntegrityEntry.{h, cc}
  10738. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  10739. are valid, then aira2 goes to seeding mode. Sometimes it is better
  10740. to exit rather than doing seeding. So, it would be good to toggle this
  10741. behavior.
  10742. * src/CheckIntegrityCommand.cc
  10743. * src/AbstractCommand.cc
  10744. * src/RequestGroup.cc
  10745. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10746. Reflect the download length of in-flight pieces.
  10747. It makes the download length readout more precise.
  10748. * src/DefaultPieceStorage.{h, cc}
  10749. * test/DefaultPieceStorageTest.cc
  10750. * src/a2functional.h
  10751. * test/a2functionalTest.cc
  10752. Lower CPU load when --max-download-limit is used.
  10753. There is up and down in speed indicator when enabling
  10754. http-pipelining but a download goes well. I think the problem is that
  10755. because http-pipelining is enabled, DownloadCommand is created for
  10756. each segment and in its constructor, PeerStat::downloadStart() is
  10757. called. In PeerStat::downloadStart(), speed calculation object is
  10758. reseted, which makes download speed zero.
  10759. * src/DownloadCommand.cc
  10760. Rewritten using accumulate.
  10761. * src/RequestGroupMan.cc (calculateStat)
  10762. Code clearnup.
  10763. * src/FtpNegotiationCommand.cc
  10764. * src/HttpResponseCommand.cc
  10765. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10766. Fixed: Can not resume: aria2 reports download already finished.
  10767. * src/AbstractCommand.{h, cc}
  10768. * src/HttpResponseCommand.cc
  10769. * src/FtpNegotiateCommand.cc
  10770. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. Now a file is stored in the directory specified in .metalnk file
  10772. (file[@name]).
  10773. * src/Metalink2RequestGroup.cc
  10774. Create the directory structure when opening the file if it doesn't
  10775. exist.
  10776. * src/AbstractDiskWriter.cc
  10777. * src/Util.{h, cc}
  10778. * src/File.h
  10779. * test/UtilTest.cc
  10780. Removed file name comparison
  10781. * src/Metalink2RequestGroup.cc
  10782. * src/HttpResponseCommand.cc
  10783. Rewritten using Util::mkdirs()
  10784. * src/FileEntry.cc (setupDir)
  10785. * test/FileEntryTest.cc
  10786. Updated doc
  10787. * src/SingleFileDownloadContext.h
  10788. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10789. Now SleepCommand dispatches nextCommand when halt is requested.
  10790. It avoids a possible long wait after hitting CTRL-C.
  10791. * src/SleepCommand.{h, cc}
  10792. * src/RequestGroupAware.{h, cc}
  10793. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10794. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  10795. to open listen port, then remove the port number from the tracker
  10796. request.
  10797. * src/DefaultBtAnnounce.cc
  10798. * test/DefaultBtAnnounceTest.cc
  10799. * test/MockPieceStorage.h
  10800. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  10801. them more testable.
  10802. * src/DefaultBtAnnounce.{h, cc}
  10803. * src/DefaultBtContext.{h, cc}
  10804. * src/Util.{h, cc}
  10805. * test/DefaultBtAnnounceTest.cc
  10806. * test/DefaultBtContextTest.cc
  10807. * test/UtilTest.cc
  10808. Added 'B' to upload bytes readout.
  10809. * src/ConsoleStatCalc.cc
  10810. Now the listen port for BitTorrent download is opened when it is
  10811. needed.
  10812. * src/DownloadEngineFactory.cc
  10813. * src/BtSetup.{h, cc}
  10814. * src/PeerListenCommand.{h, cc}
  10815. Now an exception thrown while parsing tracker response is now logged.
  10816. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  10817. called, which means no retry is made in this case, assuming a tracker
  10818. has a problem.
  10819. * src/TrackerWatcherCommand.cc
  10820. Fixed: downloading a file whose length is unkown fails.
  10821. * src/DownloadCommand.cc
  10822. Simplified prepareForNextSegment()
  10823. * src/DownloadCommand.cc
  10824. Updated
  10825. * po/POTFILES.in
  10826. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10827. Re-implemented a file listing for Metalink, which was dropped while
  10828. http/ftp/torrent integration was being implemented.
  10829. * src/MetalinkHelper.{h, cc}: New class.
  10830. * test/MetalinkHelperTest.cc
  10831. * src/main.cc
  10832. * src/Metalink2RequestGroup.cc
  10833. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10834. Added the ability to display the detailed torrent file information.
  10835. Now -S option gives not only a file listing, but also total download
  10836. length, info hash, announce URI, piece length, the number of pieces,
  10837. and mode(single or multi-torrent).
  10838. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  10839. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  10840. KiB)
  10841. * test/UtilTest.cc
  10842. * src/main.cc
  10843. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10844. Added ftp://USER:PASSWD@Servername automatic parsing.
  10845. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  10846. _password. Recognize username and password in URI.
  10847. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  10848. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  10849. * src/RequestFactory.{h, cc}: Removed.
  10850. * src/AuthConfigFactory.{h, cc}: New class.
  10851. * src/FtpConnection.cc: Use AuthConfigFactory.
  10852. * src/HttpRequest.cc: Use AuthConfigFactory.
  10853. * test/HttpRequestTest.cc: Updated.
  10854. * test/RequestTest.cc: Updated.
  10855. * test/AuthConfigFactoryTest.cc: New class.
  10856. * test/RequestFactoryTest.cc: Removed.
  10857. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10858. Use RequestGroup::allDownloadFinished() to decide whether the control
  10859. file should be removed or saved.
  10860. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  10861. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  10862. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10863. Use File::renameTo()
  10864. * src/DefaultBtProgressInfoFile.cc
  10865. Added --no-file-allocation-limit command-line option.
  10866. * src/version_usage.cc
  10867. * src/option_processing.cc
  10868. * src/OptionHandlerFactory.cc
  10869. * src/RequestGroup.{h, cc}
  10870. * src/BtCheckIntegrityEntry.cc
  10871. * src/StreamCheckIntegrityEntry.cc
  10872. * src/prefs.h
  10873. * doc/aria2c.1.txt
  10874. * doc/aria2c.1
  10875. Now prealloc is the default value for --file-allocation option.
  10876. * src/version_usage.cc
  10877. * src/option_processing.cc
  10878. * doc/aria2c.1.txt
  10879. * doc/aria2c.1
  10880. Don't URL-encode user-agent.
  10881. * src/HttpRequest.cc
  10882. Updated translations
  10883. * po/LINGUAS: Added nl for Dutch translation.
  10884. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  10885. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  10886. * po/POTFILES.in: Updated.
  10887. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10888. Added the ability to recognize url-list in a torrent file.
  10889. The retrieved URLs are attached to the corresponding FileEntry.
  10890. * src/DefaultBtContext.{h, cc}
  10891. * src/FileEntry.{h, cc}
  10892. * test/DefaultBtContextTest.cc
  10893. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10894. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  10895. after the download finishes.
  10896. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10897. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  10898. the data smaller than block length.
  10899. A block length can be specified by constructor's argument.
  10900. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  10901. Get a missing piece in the range of given FileEntry. This function is
  10902. not used in the program yet.
  10903. * src/Util.h: Added some macros.
  10904. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Added HTTP/1.1 keep alive and pipelining support.
  10906. See --enable-http-keep-alive and --enable-http-pipelining option.
  10907. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  10908. Segment.
  10909. * src/HttpDownloadCommand.{h, cc}
  10910. * src/OptionHandlerFactory.cc
  10911. * src/HttpConnection.{h, cc}
  10912. * src/version_usage.cc
  10913. * src/HttpInitiateConnectionCommand.cc
  10914. * src/FtpInitiateConnectionCommand.cc
  10915. * src/Segment.h
  10916. * src/HttpRequestCommand.{h, cc}
  10917. * src/option_processing.cc
  10918. * src/prefs.h
  10919. * src/HttpResponseCommand.cc
  10920. * src/SegmentMan.{h, cc}
  10921. * src/FtpNegotiateCommand.cc
  10922. * src/HttpProxyResponseCommand.cc
  10923. * src/Request.cc
  10924. * src/HttpRequest.cc
  10925. * src/DownloadCommand.cc
  10926. * test/HttpRequestTest.cc
  10927. * test/RequestTest.cc
  10928. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10929. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  10930. finished.
  10931. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10932. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  10933. catching it inside the method.
  10934. When no file entry is found in a metalink without querying user
  10935. preferences, throw the exception with the error message that suggests
  10936. metalink file is probably broken.
  10937. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  10938. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10939. Fixed the bug that prevents remote Metalink/Torrent file from begin
  10940. processed.
  10941. * src/RequestGroupMan.cc (removeStoppedGroup)
  10942. Added debug message.
  10943. * src/BtPostDownloadHandler.cc
  10944. * src/MetalinkPostDownloadHandler.cc
  10945. * src/PostDownloadHandler.{h, cc}
  10946. * src/RequestGroup.cc
  10947. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10948. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  10949. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10950. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  10951. stops and there are any unfinished or in-progress downloads.
  10952. Added the legend of "stat".
  10953. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10954. Throw exception when chunck checksum verification fails.
  10955. * src/DownloadCommand.cc (validatePieceHash): New function.
  10956. * src/PiecedSegment.{h, cc} (clear): New function.
  10957. * src/GrowSegment.{h, cc} (clear): New function.
  10958. * src/Segment.h (clear): New function.
  10959. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  10960. * test/SegmentTest.cc
  10961. * test/GrowSegmentTest.cc
  10962. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10963. Do not send referer when redirected.
  10964. * src/Request.cc (redirectUrl)
  10965. * test/RequestTest.cc
  10966. * test/HttpRequestTest.cc
  10967. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10968. Implemented BitTorrent/http/ftp integrated download.
  10969. I've rewritten lots of files and now some headers have forward
  10970. class declarations to reduce compile time.
  10971. The implementation is extremely alpha stage, I recommend to use this
  10972. for testing purpose only.
  10973. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10974. Fixed the compilation error on 64bit platform.
  10975. * test/HttpHeaderProcessorTest.cc
  10976. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10977. Merged Ross's patch that fixes compilation problem in MinGW
  10978. * test/DefaultBtProgressInfoFileTest.cc
  10979. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10980. Updated fr.po by sebone
  10981. * po/fr.po
  10982. Updated man page.
  10983. * doc/aria2c.1.txt
  10984. * Release 0.11.3
  10985. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10986. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  10987. failure in Metalink.
  10988. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10989. Automatically save *.aria2 control file of http/ftp download in every
  10990. 60 seconds.
  10991. * src/AutoSaveCommand.{h, cc}: New class.
  10992. * src/TimeBasedCommand.{h, cc}: New class.
  10993. * src/DownloadEngineFactory.cc (newConsoleEngine)
  10994. Disable parameterized URI support by default. Added -P option to
  10995. enable the feature.
  10996. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  10997. * src/OptionHandlerFactory.cc
  10998. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  10999. Updated Japanese translation.
  11000. * po/ja.po
  11001. Updated man page.
  11002. * doc/aria2c.1.txt
  11003. * Release 0.11.3-rc
  11004. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11005. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11006. it is successful, then renamed to *.aria2.
  11007. This prevents *.aria2 file from being truncated or corrupted when
  11008. file system becomes out of space.
  11009. * src/DefaultBtProgressInfoFile.cc (save)
  11010. * src/SegmentMan.cc (save)
  11011. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11012. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11013. Reduced the fragmentation of bitfield in http/ftp download.
  11014. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11015. * test/BitfieldManTest.cc
  11016. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Added the ability to disable segmented download in .metalink.
  11018. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11019. 'url' tag.
  11020. * src/MetalinkEntry.{h, cc}
  11021. * src/RequestResource.{h, cc}
  11022. * src/MetalinkRequestInfo.cc
  11023. * src/Xml2MetalinkProcessor.cc
  11024. * test/Xml2MetalinkProcessorTest.cc
  11025. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11026. Added parameterized URI support.
  11027. * src/main.cc: -Z option added.
  11028. * src/OptionHandlerFactory.cc
  11029. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11030. * src/PStringDatum.h: New class.
  11031. * src/PStringSegment.{h,cc}: New class.
  11032. * src/PStringNumLoop.h: New class.
  11033. * src/PStringSelect.h: New class.
  11034. * src/NumberDecorator.h: New class.
  11035. * src/FixedWidthNumberDecorator.h: New class.
  11036. * src/AlphaNumberDecorator.h: New class.
  11037. * src/PStringVisitor.h: New class.
  11038. * src/PStringBuildVisitor.{h,cc}: New class.
  11039. * src/ParameterizedStringParser.{h,cc}: New class.
  11040. * src/Util.{h,cc}
  11041. (isNumber): New function.
  11042. (isLowercase): New function.
  11043. (isUppercase): New function.
  11044. (alphaToNum): New function.
  11045. * test/ParameterizedStringParserTest.cc: New class.
  11046. * test/AlphaNumberDecoratorTest.cc: New class.
  11047. * test/PStringBuildVisitorTest.cc: New class.
  11048. * test/UtilTest.cc
  11049. (testIsNumber): New function.
  11050. (testIsLowercase): New function.
  11051. (testIsUppercase): New function.
  11052. (testAlphaToNum): New function.
  11053. Added '\n' after the error message
  11054. * src/RequestInfo.h (printDownloadAbortMessage)
  11055. Added auto file renaming feature in http(s)/ftp download.
  11056. * src/main.cc: Added --auto-file-renaming command-line option.
  11057. * src/OptionHandlerFactory.cc
  11058. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11059. * src/RequestGroup.{h, cc}
  11060. (shouldCancelDownloadForSafety): Rewritten
  11061. (tryAutoFileRenaming): New function.
  11062. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11063. * src/HttpResponseCommand.cc
  11064. (executeInternal): Removed the call to RequestGroupMan::
  11065. isSameFileBeingDownloaded()
  11066. * src/FtpNegotiateCommand.cc
  11067. (recvSize): Removed the call to RequestGroupMan::
  11068. isSameFileBeingDownloaded()
  11069. * test/RequestGroupTest.cc: New class.
  11070. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11071. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11072. IO.
  11073. * src/DefaultBtProgressInfoFile.cc
  11074. * src/MetaFileUtil.cc
  11075. * src/SimpleLogger.cc
  11076. * src/SegmentMan.cc
  11077. * src/Util.cc
  11078. * src/Platform.cc
  11079. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11080. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11081. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11082. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11083. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11084. Fixed the bug that prevents file allocation is not done when
  11085. dowloading multi-torrent file.
  11086. * src/AbstractDiskWriter.cc (openFile)
  11087. Increase the maximum number of -j option from 15 to 45.
  11088. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11089. Added fr.po, thanks to Charles Landemaine.
  11090. * po/fr.po
  11091. * po/LINGUAS
  11092. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11093. gcc 3.4.4 support:
  11094. * src/DefaultBtContext.cc: int32_t -> int
  11095. * src/main.cc: int -> int32_t, int32_t -> int
  11096. * src/messageDigest.h: uint32_t -> unsigned int
  11097. * src/NameResolver.h: int32_t -> int
  11098. * src/PeerConnection.cc: int -> int32_t
  11099. * src/SpeedCalc.cc: int32_t -> int
  11100. * src/TrackerUpdateCommand.h: int -> int32_t
  11101. * src/Util.cc: int32_t -> int
  11102. * src/Util.h: int32_t -> int
  11103. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11104. * test/AnnounceListTest.cc: int -> int32_t
  11105. * test/ChunkedEncodingTest.cc: int -> int32_t
  11106. * test/DataTest.cc: int -> int32_t
  11107. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11108. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11109. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11110. * test/FeatureConfigTest.cc: int -> int32_t
  11111. * test/MetalinkEntryTest.cc: int -> int32_t
  11112. * test/MockBtRequestFactory.h: int -> int32_t
  11113. * test/MockPieceStorage.h: int -> int32_t
  11114. * test/OptionTest.cc: int -> int32_t
  11115. * test/RequestTest.cc: int -> int32_t
  11116. * test/SegmentManTest.cc: int -> int32_t
  11117. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11118. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11119. Move sleep functions to Util class:
  11120. * src/Util.cc
  11121. (sleep): New function.
  11122. (usleep): New function.
  11123. * src/DownloadCommand.cc: sleep -> Util::sleep
  11124. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11125. MinGW build enhancements. The following files are added:
  11126. * src/timegm.{c,h}
  11127. Changes to support the above new files:
  11128. * configure.ac
  11129. * src/Makefile.am
  11130. * src/a2time.h
  11131. * src/Util.cc:
  11132. * src/strptime.c: Added support for %Z option.
  11133. Fixed MinGW non-blocking bug.
  11134. * src/SocketCore.cc
  11135. * src/HttpRequestCommand.cc
  11136. Miscellenous build fixes/enhancements.
  11137. * configure.ac: Added summary report.
  11138. * src/Platform.h: Tweaked #include's.
  11139. * src/a2netcompat.h: Tweaked #include's.
  11140. * src/strptime.h: Tweaked #include's.
  11141. * src/gai_strerror.c: Tweaked #include's.
  11142. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11143. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11144. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11145. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11146. Increased the initial connection size in BitTorrent download to 40.
  11147. * src/BtRuntime.h
  11148. Added the usage message of --peer-id-prefix option.
  11149. * src/main.cc
  11150. * Release 0.11.2
  11151. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11152. MessageDigestHelper is introduced in order to simplify the use
  11153. of message digest. Removed repeated code.
  11154. The message digest algorithm is now specified by string, like "sha1",
  11155. "md5".
  11156. * src/messageDigest.{h, cc}
  11157. * src/MessageDigestHelper.{h, cc}: New class.
  11158. * src/DefaultPieceStorage.cc
  11159. * src/DefaultBtContext.{h, cc}
  11160. (computeFastSet): New function.
  11161. (setInfoHash): Added for unit testing.
  11162. (setNumPieces): Added for unit testing.
  11163. * src/DefaultBtInteractive.cc
  11164. * src/BtPieceMessage.cc
  11165. * src/Peer.cc
  11166. * src/Checksum.h
  11167. * src/message.h
  11168. * src/IteratableChecksumValidator.h
  11169. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11170. inside it.
  11171. * src/SegmentMan.{h, cc}
  11172. (checkIntegrity): Removed.
  11173. * src/IteratableChunkChecksumValidator.{h, cc}
  11174. * src/Util.h
  11175. (sha1Sum): Removed.
  11176. (simpleMessageDigest): Removed.
  11177. (fileChecksum): Removed.
  11178. (computeFastSet): Removed.
  11179. * src/ShaVisitor.cc
  11180. * src/ChunkChecksum.h
  11181. * src/DownloadCommand.cc
  11182. Removed messageDigest virtual functions.
  11183. * src/MultiDiskAdaptor.{h, cc}
  11184. * src/DiskAdaptor.h
  11185. * src/ByteArrayDiskWriter.h
  11186. * src/DiskWriter.h
  11187. * src/DiskAdaptorWriter.h
  11188. * src/AbstractSingleDiskAdaptor.{h, cc}
  11189. * src/AbstractDiskWriter.{h, cc}
  11190. Fixed comilation error when message digest is disabled.
  11191. * src/MetalinkEntry.{h, cc}
  11192. * src/MetalinkRequestInfo.cc
  11193. Removed srandom and random.
  11194. * src/SimpleRandomizer.h
  11195. Added size() virtual function to DiskAdaptor
  11196. * src/MultiDiskAdaptor.h
  11197. Fixed the bug that causes that files are not opened correctly in
  11198. multi-file torrent.
  11199. * src/TorrentRequestInfo.cc
  11200. * src/MultiDiskAdaptor.cc
  11201. Added SHA256 support
  11202. * src/messageDigest.cc
  11203. * src/Xml2MetalinkProcessor.cc
  11204. Show supported message digest algorithms
  11205. * src/main.cc
  11206. Updated contact info.
  11207. * src/main.cc
  11208. Applied Ross's patch
  11209. * src/a2netcompat.h
  11210. * src/main.cc
  11211. Fixed the bug that prevents a remote metalink from not being processed
  11212. even if '-o foo.metalink' is specified.
  11213. * src/MetalinkRequestInfo.cc
  11214. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11215. Merged Dan's patch:
  11216. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11217. Use va_copy to avoid core dump on amd64:
  11218. * src/SimpleLogger.cc
  11219. Updated contact info.
  11220. * src/main.cc
  11221. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11222. digest is not available.
  11223. * src/MetalinkEntry.h
  11224. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11225. Make a2netcompat.h include a2io.h to fix compilation error:
  11226. * src/a2netcompat.h
  11227. * src/SocketCore.cc: Removed include of a2io.h
  11228. * src/Util.cc: Removed include of a2io.h
  11229. Gather time related functions to a2time.h:
  11230. * src/a2time.h: New file.
  11231. * src/DefaultPeerStorage.cc
  11232. * src/SimpleLogger.cc
  11233. * src/Util.{h, cc}
  11234. * src/SimpleRandomizer.h
  11235. * src/TimeA2.{h,cc}
  11236. * src/DownloadCommand.cc
  11237. * src/main.cc
  11238. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11239. a2netcompat.h:
  11240. * src/NameResolver.cc
  11241. Fixed compilation error without openssl:
  11242. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11243. Added default block to suppress compiler warnings:
  11244. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11245. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11246. MinGW build enhancements. The following files are added:
  11247. * src/gai_strerror.{c,h}
  11248. * src/gettimeofday.{c,h}
  11249. Changes to support the above new files:
  11250. * configure.ac
  11251. * src/Makefile.am
  11252. * src/a2netcompat.h
  11253. * src/TimeA2.cc
  11254. * src/DefaultPeerStorage.cc
  11255. * src/NameResolver.cc: removed mingw_strerror() function.
  11256. * src/SocketCore.cc: removed mingw_strerror() function.
  11257. Miscellaneous MinGW build fixes.
  11258. * src/a2io.h: Use _lseeki64() instead of lseek()
  11259. * src/common.h
  11260. * src/DefaultFileAllocator.cc
  11261. * src/GlowFileAllocator.cc
  11262. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  11263. * src/NameResolver.cc
  11264. (callback): Changed int32_t to int.
  11265. (resolve): Changed int32_t to int.
  11266. * src/Platform.cc
  11267. * src/Platform.h
  11268. * test/MultiDiskWriterTest.cc
  11269. * test/PeerMessageUtilTest.cc
  11270. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  11271. Other enhancements and fixes.
  11272. * src/HttpRequestCommand.cc
  11273. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  11274. * src/SocketCore.cc:
  11275. (error): New function to abstract errno/WSAGetLastError().
  11276. (errorMsg): New function to abstract errno/WSAGetLastError().
  11277. (initiateSecureConnection): Added more detailed error reporting.
  11278. * src/SocketCore.h: Added private variable blocking, to allow
  11279. proper handling of OpenSSL psuedo-errors.
  11280. * src/message.h
  11281. (EX_SSL_INIT_FAILURE)
  11282. (EX_SSL_IO_ERROR)
  11283. (EX_SSL_PROTOCOL_ERROR)
  11284. (EX_SSL_UNKNOWN_ERROR)
  11285. (EX_SSL_CONNECT_ERROR)
  11286. (EX_SOCKET_BLOCKING)
  11287. (EX_SOCKET_NONBLOCKING)
  11288. (EX_SOCKET_UNKNOWN_ERROR)
  11289. * src/Util.cc
  11290. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  11291. reserved name.
  11292. (httpGMT): Fixed typo.
  11293. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11294. Merged Ross's win32 patch(manually)
  11295. In the course of merging, following files are added.
  11296. * src/strptime.{h,c}
  11297. * src/libgen.{h,c}
  11298. * src/inet_aton.{h,c}
  11299. * src/Platform.{h,cc}
  11300. * src/localtime_r.{h,c}
  11301. * src/getaddrinfo.{h,c}
  11302. I've gethered network related things, and put them to following file:
  11303. * src/a2netcompat.h
  11304. Also io related things are put to following file:
  11305. * src/a2io.h
  11306. Changed %lld to %s because mingw32 doesn't recognize %lld.
  11307. * src/message.h
  11308. (MSG_ALLOCATION_COMPLETED)
  11309. (EX_TOO_LARGE_FILE)
  11310. (EX_SIZE_MISMATCH)
  11311. (EX_FILE_OFFSET_OUT_OF_RANGE)
  11312. (EX_INVALID_CHUNK_CHECKSUM)
  11313. (EX_INVALID_RANGE_HEADER)
  11314. * src/FileAllocationCommand.cc
  11315. * src/HttpResponse.cc
  11316. * src/RequestGroup.cc
  11317. * src/MultiDiskAdaptor.cc
  11318. * src/OptionHandlerImpl.h
  11319. * src/HttpResponseCommand.cc
  11320. * src/FtpNegotiateCommand.cc
  11321. * src/IteratableChecksumValidator.cc
  11322. * src/SegmentMan.cc
  11323. * src/ChunkChecksumValidator.cc
  11324. Added Randomizer::getRandomNumber(long int)
  11325. * src/Randomizer.h (getRandomNumber)
  11326. * src/SimpleRandomizer.h (getRandomNumber)
  11327. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  11328. * src/Util.cc (randomAlpha): Use this new function.
  11329. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11330. Converted int's to in32_t. long long int's are also converted to
  11331. int64_t
  11332. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11333. Fixed the bug that prevents cookies from being sent to the server
  11334. if the domain of cookie is FQDN and starts with ".".
  11335. * src/Cookie.cc (match)
  11336. To add the ability to change peer id.
  11337. * src/DefaultBtContext.h
  11338. (_peerIdPrefix): New variable
  11339. (setPeerIdPrefix): New function.
  11340. * src/torrentRequestInfo.cc
  11341. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  11342. DefaultBtContext.
  11343. * src/main.cc (main): Added peer-id-prefix command-line option.
  11344. The usage message is not added yet.
  11345. * src/DefaultBtContext.cc
  11346. (generatePeerId): Use _peerIdPrefix.
  11347. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  11348. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11349. Fixed the bug that prevents filename in content-disposition from
  11350. being retrieved when filename is not quoted.
  11351. * src/Util.cc (getContentDispositionFilename)
  11352. Fixed the bug that causes infinate loop and memory leak when file open
  11353. operation failed.
  11354. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11355. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11356. Fixed the bug that causes segfault when all URIs specified are
  11357. unsupported.
  11358. * src/RequestGroupMan.cc (getInitialCommands)
  11359. Check if RequestGroup::createNextCommand() returns empty list of
  11360. commands.
  11361. * src/RequestGroup.cc (createNextCommand)
  11362. Change log level from info to error so that users can notice that
  11363. an error occurred.
  11364. Fixed the bug that causes segfault when a zero-sized file is
  11365. downloaded.
  11366. * src/BitfieldMan.cc (isAllBitSet)
  11367. Return true if bitfieldLength is 0.
  11368. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11369. * src/main.cc
  11370. (showUsage): Added 3 usage examples for metalink download.
  11371. Replace MetalinkChunkChecksum with ChunkChecksum.
  11372. * src/MetalinkChunkChecksum.h: Removed.
  11373. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  11374. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  11375. * src/Xml2MetalinkProcessor.cc
  11376. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  11377. * src/MetalinkRequestInfo.cc (execute)
  11378. * Release 0.11.1
  11379. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11380. Reads URIs from stdin when "-i -" is specified.
  11381. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  11382. * src/UriListParser.h, src/UriListParser.cc: New class.
  11383. * src/StreamUriListParser.h: New class.
  11384. * src/FileUriListParser.h: New class.
  11385. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  11386. instead of UriFileListParser.
  11387. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11388. Made console readout more readable.
  11389. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11390. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11391. Fix the bug that causes -s option not to work.
  11392. * src/main.cc (main)
  11393. * src/a2algo.h: New file.
  11394. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11395. Create directory structure specified in metalink file.
  11396. * src/RequestGroup.h, src/RequestGroup.cc
  11397. (initAndOpenFile): Create a directory to store files if it does not
  11398. exist.
  11399. (getDir): New function.
  11400. Added ETA and download speed for an individual file to readout.
  11401. * src/ConsoleDownloadEngine.cc (sendStatistics)
  11402. * src/RequestGroup.h
  11403. (calculateDownloadSpeed): New function.
  11404. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11405. Made -S option work with metalink file and provided selective download
  11406. to metalink.
  11407. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  11408. (filename): Removed.
  11409. (file): New variable.
  11410. (size): Removed.
  11411. (operator=): Updated.
  11412. (getPath): New function.
  11413. (getLength): New function.
  11414. (toFileEntry): New function.
  11415. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  11416. (execute): Use toStream.
  11417. (showFileEntry): Removed.
  11418. * src/MetalinkRequestInfo.h
  11419. (targetFiles): New variable.
  11420. (setTargetFiles): New variable.
  11421. * src/MetalinkRequestInfo.cc
  11422. (execute): Added the ability to print file information included in
  11423. a metalink file.
  11424. Added selective download mode to metalink.
  11425. * src/main.cc
  11426. (showUsage): Updated to denote that -S and --select-file options are
  11427. applicable to metalink.
  11428. * src/FileEntry.h
  11429. (operator=): New function.
  11430. (getBasename): New function.
  11431. (getDirname): New function.
  11432. * src/Util.h, src/Util.cc
  11433. (toStream): New function.
  11434. * src/Xml2MetalinkProcessor.cc: Updated.
  11435. Made aria2 work with metalink with directory structure.
  11436. * src/File.h, src/File.cc
  11437. (getBasename): New function.
  11438. (getDirname): New function.
  11439. * src/RequestGroup.h, src/RequestGroup.cc
  11440. (_topDir): New variable.
  11441. (setTopDir): New function.
  11442. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  11443. Rewrote HTTP header parsing with stringstream.
  11444. * src/HttpConnection.h, src/HttpConnection.cc
  11445. (HttpRequestEntry): New class.
  11446. (headerBuf): Removed.
  11447. (headerBufLength): Removed.
  11448. (outstandingHttpRequests): Now its element type is
  11449. HttpRequestEntryHandle.
  11450. (findEndOfHeader): Removed.
  11451. (receiveResponse): Rewritten.
  11452. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  11453. Updated doc for -j option to notice that it should be used with -i
  11454. option.
  11455. * src/main.cc (showUsage)
  11456. Removed unused classes.
  11457. * src/RequestInfo.h
  11458. (FileInfo): Removed.
  11459. (checksum): Removed.
  11460. (fileInfo): Removed.
  11461. (setChecksum): Removed.
  11462. (getChecksum): Removed.
  11463. (getFileInfo): Removed.
  11464. Use ISO units.
  11465. * src/ConsoleDownloadEngine.cc
  11466. * src/TorrentConsoleDownloadEngine.cc
  11467. * src/Util.cc (abbrevSize)
  11468. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11469. Added the default listening ports to the help message.
  11470. * src/main.cc (showUsage)
  11471. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11472. Reduce the number of calls to gettimeofday to lower CPU load.
  11473. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  11474. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  11475. * src/Peer.h (calculateUploadSpeed): New function.
  11476. (calculateDownloadSpeed): New function.
  11477. * src/DefaultPeerStorage.cc
  11478. (CalculateStat): Added _now variable.
  11479. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  11480. and Peer::calculateUploadSpeed(const struct timeval&)
  11481. Drop connection if no request or piece message is exchanged in
  11482. a certain interval.
  11483. * src/DefaultBtInteractive.h
  11484. (btRuntime): New variable.
  11485. (inactiveCheckPoint): New variable.
  11486. (checkActiveInteraction): New function.
  11487. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  11488. request or piece message is received.
  11489. (checkActiveInteraction): New function.
  11490. (doInteractionProcessing): Call checkActiveInteraction.
  11491. Fixed the bug that causes remote Metalink and Torrent files are not
  11492. processed.
  11493. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  11494. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11495. Changed format of log file.
  11496. * src/SimpleLogger.cc
  11497. * Release 0.11.0
  11498. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11499. * src/AbstractCommand.cc
  11500. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  11501. MSG_MAX_TRY from error to info.
  11502. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  11503. * src/message.h
  11504. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  11505. (MSG_DOWNLOAD_ABORTED): Added %s.
  11506. (MSG_RESTARTING_DOWNLOAD): Added %s.
  11507. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  11508. * src/PeerAbstractCommand.cc
  11509. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  11510. * src/Request.h
  11511. (cookieBox): Made ShardHandle.
  11512. * src/RequestGroup.h, src/RequestGroup.cc
  11513. (createNextCommandWithAdj): New function.
  11514. * src/FileAllocationCommand.cc
  11515. (executeInternal): Use createNextCommandWithAdj().
  11516. * src/CheckIntegrityCommand.cc
  11517. (executeInternal): Use createNextCommandWithAdj().
  11518. Added --load-cookies command-option.
  11519. * src/OptionHandlerFactory.cc
  11520. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  11521. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  11522. Now aria2 can handle cookie's expiration date.
  11523. * src/Cookie.h (expires): Changed its type to time_t.
  11524. * src/main.cc: Added --load-cookies command-line option.
  11525. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  11526. * src/Util.h, src/Util.cc (httpGMT): New function.
  11527. * src/Request.cc (Request): Initialize cookieBox using
  11528. CookieBoxFactory.
  11529. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  11530. * src/CookieParser.h, src/CookieParser.cc: New class.
  11531. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  11532. * src/HttpResponseCommand.cc
  11533. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  11534. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  11535. download.
  11536. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11537. Added -j command-line option.
  11538. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11539. * src/main.cc
  11540. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  11541. Rewritten using stringstream.
  11542. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  11543. Rewritten using stringstream.
  11544. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11545. Make download size shown in MB, KB.
  11546. * src/ConsoleDownloadEngine.h (sendStatistics)
  11547. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  11548. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11549. Accept incoming connections if download rate is low.
  11550. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  11551. (_lowestSpeedLimit): New variable.
  11552. (setLowestSpeedLimit): New function.
  11553. (execute): Accept incoming connections if download rate is low.
  11554. MAX_PEERS is ignored in this case.
  11555. Disable PREF_OUT in multiple concurrent download:
  11556. * src/RequestGroup.h, src/RequestGroup.cc
  11557. (setUserDefinedFilename): New function.
  11558. * src/DownloadEngineFactory.cc
  11559. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  11560. concurrent download.
  11561. * src/DefaultSegmentManFactory.cc
  11562. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  11563. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11564. RequestGroup::getNextCommand() was renamed to createNextCommand().
  11565. Added its overloaded method.
  11566. * src/RequestGroup.h
  11567. (_numConcurrentCommand): New variable.
  11568. (setNumConcurrentCommand): New function.
  11569. * src/RequestGroup.cc
  11570. Abort download if same file is being downloaded concurrently.
  11571. * src/RequestGroup.h, src/RequestGroupMan.cc
  11572. (isSameFileBeingDownloaded): New function.
  11573. * src/HttpResponseCommand.cc (executeInternal)
  11574. * src/FtpNegotiateCommand.cc (recvSize)
  11575. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  11576. * main.cc: Added help message for -i option.
  11577. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11578. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  11579. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  11580. * src/MetalinkEntry.h
  11581. (checksum): Changed to ChecksumHandle
  11582. * src/MetalinkRequestInfo.cc
  11583. (checksum): Changed to ChecksumHandle
  11584. * src/File.cc
  11585. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  11586. * src/common.h
  11587. (DIR_OPEN_MODE): New definition
  11588. * src/RequestGroup.cc
  11589. (prepareForNextAction): Added an argument.
  11590. * src/message.h
  11591. (MSG_GOOD_CHECKSUM): New definition
  11592. (MSG_BAD_CHECKSUM): New definition
  11593. * src/HttpResponseCommand.cc
  11594. (handleDefaultEncoding): Continue download sequence in new
  11595. non-segmented download.
  11596. * src/FileAllocationEntry.h
  11597. (_nextDownloadCommand): New variable.
  11598. * src/DownloadCommand.cc
  11599. (prepareForNextSegment): Create ChecksumCommand if checksum is
  11600. available.
  11601. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  11602. * src/IteratableChecksumValidator.h,
  11603. src/IteratableChecksumValidator.cc: New class.
  11604. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  11605. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11606. Change file mode to 666:
  11607. * src/common.h (OPEN_MODE): New definition.
  11608. * src/File.cc
  11609. * src/Util.cc
  11610. * src/Directry.cc
  11611. * src/AbstractDiskWriter.cc
  11612. Change the level of log message "download aborted" to debug:
  11613. * src/PeerAbstractCommand.cc (execute)
  11614. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  11615. * src/TrackerWatcherCommand.cc
  11616. (createCommand): Sleep some seconds after request failed.
  11617. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  11618. then abort tracker request.
  11619. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11620. * Added the simultaneous download feature.
  11621. * src/main.cc: Print "Exception caught: " when exception is caught.
  11622. Use CUIDCounter instead of BtRuntime::getNewCuid():
  11623. * src/ActivePeerConnectionCommand.cc
  11624. * src/PeerInteractionCommand.cc
  11625. * src/BtRuntime.h
  11626. (cuidCounter): Removed.
  11627. (getNewCuid): Removed.
  11628. * src/DownloadEngineFactory.cc
  11629. * src/PeerListenCommand.cc
  11630. * src/TrackerUpdateCommand.cc
  11631. * src/PeerInitiateConnectionCommand.cc
  11632. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11633. * src/PeerAbstractCommand.cc
  11634. (onAbort): Call PeerStorage::returnPeer()
  11635. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  11636. (incomingPeers): New variable.
  11637. (addIncomingPeer): New function.
  11638. (returnPeer): New function.
  11639. (onErasingPeer): New function.
  11640. (addPeer): push_back -> push_front
  11641. (getActivePeers): Rewritten.
  11642. (calculateStat): Rewritten.
  11643. * src/PeerStorage.h
  11644. (TransferStat::copy): New function.
  11645. (TransferStat::TransferStat): New function.
  11646. (TransferStat::operator=): New function.
  11647. (addIncomingPeer): New function.
  11648. (returnPeer): New function.
  11649. * src/PeerListenCommand.cc
  11650. (execute): Use PeerStorage::addIncomingPeer() instead of
  11651. Peer::addPeer().
  11652. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11653. Connect to a peer actively when download speed is lower than specified
  11654. speed in torrent download:
  11655. * src/ActivePeerConnectionCommand.h: New class.
  11656. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11657. * src/HttpRequest.cc (createRequest): url-encode user-agent
  11658. * src/main.cc: Fixed the bug that prevents download if .netrc
  11659. doesn't exist.
  11660. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11661. To cache resolved hostname:
  11662. * src/AbstractCommand.h, src/AbstractCommand.cc
  11663. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  11664. Added dns cache.
  11665. * src/FtpInitiateConnectionCommand.cc
  11666. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  11667. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  11668. NameResolver working without ares.
  11669. * src/TorrentRequestInfo.cc
  11670. (execute): Don't cache dns in torrent download.
  11671. * src/HttpInitiateConnectionCommand.cc
  11672. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  11673. * src/DNSCache.h: New class.
  11674. * src/UrlRequestInfo.cc
  11675. (execute): Use dns cache.
  11676. In http request, suppress port number in http request header if port
  11677. is 80 or 443:
  11678. * src/HttpRequest.cc (getHostText): Suppress port number in http
  11679. request header if port is 80 or 443.
  11680. (createProxyRequest): Allways send port number.
  11681. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11682. To add the command-line option which disables netrc support:
  11683. * src/OptionHandlerFactory.cc
  11684. (createOptionHandlers): Added PREF_NO_NETRC.
  11685. * src/main.cc: Added -n option.
  11686. * src/prefs.h (PREF_NO_NETRC): New definition.
  11687. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  11688. V_TRUE.
  11689. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  11690. is V_FALSE. This may get configurable in the future release.
  11691. To clear peer's error status by time basis:
  11692. * src/PeerAbstractCommand.cc
  11693. (onAbort): Call Peer::startBadCondition().
  11694. * src/Peer.h, src/Peer.cc
  11695. (error): Removed.
  11696. (_badConditionStartTime): New variable.
  11697. (_badConditionInterval): New variable. Initialized to 10 seconds.
  11698. (startBadCondition): New function.
  11699. (isGood): New function.
  11700. * src/DefaultPeerStorage.cc
  11701. (addPeer): Use Peer::isGood().
  11702. (FindFinePeer): Use Peer::isGood().
  11703. Always include port number in http request header:
  11704. * src/HttpRequest.cc (getHostText): Always include port number in
  11705. http request header.
  11706. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11707. To the ability to read options from a config file:
  11708. * src/main.cc: Command-line parameter validation is delegated to
  11709. OptionHandler class.
  11710. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  11711. * src/Option.h, src/Option.cc (clear): New function.
  11712. * src/OptionParser.h, src/OptionParser.cc: New class.
  11713. * src/OptionHandler.h: New class.
  11714. * src/NameMatchOptionHandler.h: New class.
  11715. * src/OptionHandlerImpl.h: New classes.
  11716. * src/prefs.h: '_' -> '-'
  11717. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  11718. (FTP_PASV): New definition.
  11719. * src/Util.h, src/Util.cc (getRealSize): New function.
  11720. To disable netrc support if .netrc file does not have correct
  11721. permissions:
  11722. * src/File.h, src/File.cc (mode): New function.
  11723. To prevent confidential information to be logged:
  11724. * src/HttpConnection.h, src/HttpConnection.cc
  11725. (eraseConfidentialInfo): New function.
  11726. (sendRequest): Call eraseConfidentialInfo().
  11727. (sendProxyRequest): Call eraseConfidentialInfo().
  11728. * src/main.cc: Validate permissions of .netrc file.
  11729. To add --user-agent command-line option:
  11730. * src/main.cc: Added new command line option: --user-agent
  11731. * src/prefs.h (PREF_USER_AGENT): New definition.
  11732. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  11733. parameter to HttpRequest object.
  11734. * src/AbstractProxyRequestCommand.cc
  11735. (executeInternal): Set user-agent option parameter to HttpRequest
  11736. object.
  11737. Marged the patches from Dan Fandrich.
  11738. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11739. Use filename and size from Metalink file instead of sending HEAD
  11740. request:
  11741. * src/UrlRequestInfo.h
  11742. (_filename): New variable.
  11743. (_totalLength): New variable.
  11744. (setTotalLength): New variable.
  11745. (setFilename): New variable.
  11746. * src/MetalinkRequestInfo.cc
  11747. (execute): Set filename and size to UrlRequestInfo
  11748. * src/UrlRequestInfo.cc
  11749. (execute): Use filename and size from Metalink instead of seding
  11750. HEAD request to servers.
  11751. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11752. To add the ability to resume downloading a partially downloaded file
  11753. which is downloaded from the beginning:
  11754. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  11755. takes this role.
  11756. * src/main.cc: Added -c option.
  11757. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  11758. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  11759. * src/prefs.h (PREF_CONTINUE): New definition.
  11760. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  11761. * src/DefaultDiskWriter.cc
  11762. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  11763. * src/AbstractDiskWriter.h
  11764. (glowFileAllocator): New variable.
  11765. * src/AbstractDiskWriter.cc
  11766. (openExistingFile): Now preallocate file space from the end of the
  11767. existing file if totalLength argument is specified and grater than 0.
  11768. * src/UrlRequestInfo.cc: If -c option is specified and the file
  11769. to download exists in local, continue the download of the file.
  11770. --allow-overwrite=true is assumed in this context.
  11771. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  11772. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  11773. Throw exception if --check-integrity=true is specified but chunk
  11774. checksums are not provided:
  11775. * src/UrlRequestInfo.cc
  11776. Do not print URLs to stdout:
  11777. * src/UrlRequestInfo.cc
  11778. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11779. * src/Request.h: Use AuthResolver to get authentication information.
  11780. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  11781. set to RequestFactory object.
  11782. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  11783. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  11784. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  11785. create Request object.
  11786. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  11787. To integrate Netrc into exsiting classes:
  11788. * src/Request.h
  11789. (_userDefinedAuthConfig): New variable.
  11790. (findNetrcAuthenticator): New function.
  11791. (segment): Removed.
  11792. (setUserDefinedAuthConfig): New function.
  11793. (resolveHttpAuthConfigItem): New function.
  11794. (resolveFtpAuthConfigItem): New function.
  11795. (resolveHttpProxyAuthConfigItem): New function.
  11796. * src/HttpRequest.h
  11797. (authConfig): Removed.
  11798. (proxyAuthConfig): Removed.
  11799. (setAuthConfig): Removed.
  11800. (setProxyAuthConfig): Removed.
  11801. * src/UrlRequest.h
  11802. (getHeadResult): Added a parameter: authConfigHandle
  11803. * src/common.h
  11804. (SingletonHolder.h): New include.
  11805. * src/main.cc
  11806. (Netrc.h): New include.
  11807. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  11808. Added initial value of PREF_NETRC_PATH.
  11809. Added the initialization of netrc.
  11810. * src/AuthConfig.h: New class.
  11811. * src/prefs.h
  11812. (PREF_NETRC_PATH): New definition.
  11813. * src/HttpAuthConfig.h: Removed.
  11814. * src/Netrc.cc
  11815. (getRequiredNextToken): New function.
  11816. (skipMacdef): New function.
  11817. (parse): Rewritten.
  11818. * src/Netrc.h
  11819. (getRequiredNextToken): New function.
  11820. (skipMacdef): New function.
  11821. * src/Util.h, src/Util.cc
  11822. (getHomeDir): New function.
  11823. * src/TrackerWatcherComand.cc
  11824. (createRequestCommand): Use AuthConfig.
  11825. * src/FtpConnection.cc
  11826. (sendUser): Use Request::resolveFtpAuthConfigItem().
  11827. (sendPass): Use Request::resolveFtpAuthConfigItem().
  11828. * src/Request.cc
  11829. (findNetrcAuthenticator): New function.
  11830. (resolveHttpAuthConfigItem): New function.
  11831. (resolveFtpAuthConfigItem): New function.
  11832. (resolveHttpProxyAuthConfigItem): New function.
  11833. * src/UrlRequestInfo.cc: Use AuthConfig.
  11834. * src/HttpRequest.cc
  11835. (createRequest): Use authConfig.
  11836. (getProxyAuthString): Use authConfig.
  11837. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  11838. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  11839. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11840. To reduce overhead to find commands whose socket is either
  11841. readable or writable in the download engine loop:
  11842. * src/Command.h, src/Command.cc
  11843. (STATUS): New enum.
  11844. (status): New variable.
  11845. (statusMatch): New function.
  11846. (setStatusActive): New function.
  11847. (setStatusInactive): New function.
  11848. * src/DownloadEngine.h, src/DownloadEngine.cc
  11849. (executeCommand): New function.
  11850. (run): Simplified.
  11851. (waitData): Call Command::setStatusActive() when command's socket is
  11852. readable or writable.
  11853. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11854. To handle Segment as SegmentHandle:
  11855. * src/AbstractCommand.cc (execute): Rewritten.
  11856. * src/SegmentMan.h: Segment -> SegmentHandle
  11857. Introducded HttpResponse class, HttpRequest class to improve code
  11858. extensiveness and make it clear:
  11859. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  11860. HttpResponse class.
  11861. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  11862. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  11863. * src/HttpConnection.cc: Contruction of http request were moved to
  11864. HttpRequest class.
  11865. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  11866. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  11867. * src/HttpAuthConfig.h: New class.
  11868. * src/Range.h: New class.
  11869. To make FtpTunnel{Request, Response}Command and
  11870. HttpProxy{Request, Response}Command derived from
  11871. AbstractProxy{Request, Response}Command:
  11872. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  11873. Derived from AbstractProxyRequestCommand class.
  11874. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  11875. Derived from AbstractProxyResponseCommand class.
  11876. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  11877. Derived from AbstractProxyRequestCommand class.
  11878. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  11879. Derived from AbstractProxyResponseCommand class.
  11880. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  11881. : New class.
  11882. * src/AbstractProxyResponseCommand.h,
  11883. src/AbstractProxyResponseCommand.cc: New class.
  11884. To add netrc support:
  11885. * src/Netrc.h, src/Netrc.cc: New class.
  11886. * src/Util.h, src/Util.cc (split): New function.
  11887. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  11888. "Content-Range" header instead of "Range" header.
  11889. * src/HttpHeader.h
  11890. (getStatus): Removed.
  11891. (setStatus): Removed.
  11892. * src/Segment.h
  11893. (getPositionToWrite): New function.
  11894. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11895. * src/HttpHeader.h
  11896. (Range.h): New include.
  11897. (status): New variable.
  11898. (HttpHeader): Initialized status with 0.
  11899. (getStatus): New function.
  11900. (setStatus): New function.
  11901. (getRange): New function.
  11902. (HttpHeaderHandle): New function.
  11903. * src/HttpHeader.cc
  11904. (getRange): New function.
  11905. * src/Request.h
  11906. (RequestWeakHandle): New definition.
  11907. * src/HttpConnection.h
  11908. (HttpConnectionHandle): New type definition.
  11909. * src/HttpConnection.cc
  11910. (receiveResponse): Set HTTP status to headers.
  11911. * src/main.cc
  11912. (showUsage): Fixed typo.
  11913. * src/Segment.h
  11914. (SegmentHandle): New type definition.
  11915. * src/BitfieldMan.h
  11916. (getMissingUnusedLength): New function.
  11917. * src/BitfieldMan.cc
  11918. (getMissingUnusedLength): New function.
  11919. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11920. To fix static initialization order problem:
  11921. * src/BitfieldManFactory.h
  11922. (defaultRandomizer): Removed.
  11923. (factory): New variable.
  11924. (getNewFactory): Removed.
  11925. (getFactoryInstance): New function.
  11926. (setDefaultRandomizer): Rewritten.
  11927. (getDefaultRandomizer): Rewritten.
  11928. * src/BitfieldManFactory.cc
  11929. (defaultRandomizer): Removed.
  11930. (factory): Initialized to 0.
  11931. (BitfieldManFactory): Initialized randomizer to 0.
  11932. * src/DefaultPieceStorage.cc
  11933. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  11934. * src/Peer.cc
  11935. (Peer): getNewFactory() -> getFactoryInstance()
  11936. * src/SegmentMan.cc
  11937. (initBitfield): getNewFactory() -> getFactoryInstance()
  11938. * src/Piece.cc
  11939. (Piece): getNewFactory() -> getFactoryInstance()
  11940. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11941. To fix the bug that causes crash on Max OS X:
  11942. * src/SimpleRandomizer.h
  11943. (getInstance): Create new instance if the static variable is null.
  11944. * src/SimpleRandomizer.cc
  11945. (randomizer): Initialized to 0.
  11946. * src/BitfieldManFactory.h
  11947. (getNewFactory): Removed the call to setRandomizer().
  11948. To fix the miscalculation of the range of checksum:
  11949. * src/BitfieldMan.h
  11950. (isBitSetOffsetRange): New function.
  11951. * src/BitfieldMan.cc
  11952. (isBitSetOffsetRange): New function.
  11953. * src/SegmentMan.cc
  11954. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  11955. Use bitfield->getBlockLength() instead of segment.segmentLength.
  11956. * Release 0.10.1
  11957. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11958. To lower CPU usage in BitTorrent download when --max-upload-limit
  11959. command-line option specified:
  11960. * src/DefaultBtMessageDispatcher.cc
  11961. (sendMessages): Calculate uploading speed only when current message
  11962. is uploading data and is not sent yet.
  11963. * src/DefaultPeerStorage.h
  11964. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  11965. * src/HttpResponseCommand.cc
  11966. (handleDefaultEncoding): Added the cast to int32_t to itos.
  11967. This fixes compile error in Soralis 10.
  11968. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11969. To fix segfault in Metalink download:
  11970. * src/UrlRequestInfo.h
  11971. (filename): Removed.
  11972. (totalLength): Removed.
  11973. (setTotalLength): Removed.
  11974. (setFilename): Removed.
  11975. * src/MetalinkRequestInfo.cc
  11976. (execute): Do not set filename and totalLength to reqInfo.
  11977. Set chunk checksum to reqInfo if it is not null.
  11978. * src/HttpResponseCommand.cc
  11979. (executeInternal): Fixed filename in log.
  11980. (handleDefaultEncoding): Removed the call to initBitfield() and
  11981. markAllPiecesDone().
  11982. (handleOtherEncoding): Added HEAD method handling.
  11983. * src/FtpNegotiateCommand.cc
  11984. (executeInternal): Added SEQ_HEAD_OK handling.
  11985. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  11986. return false.
  11987. * src/FtpNegotiateCommand.h
  11988. (SEQ_HEAD_OK): New definition.
  11989. * src/SegmentMan.cc
  11990. (initBitfield): Delete bitfield.
  11991. (isChunkChecksumValidationReady): Fixed the condition.
  11992. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  11993. works fine.
  11994. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11995. * src/Xml2MetalinkProcessor.h
  11996. (xpathExists): New function.
  11997. * src/Xml2MetalinkProcessor.cc
  11998. (xpathExists): New function.
  11999. Not to send HEAD request if filename and size are available in Metalink
  12000. file:
  12001. * src/UrlRequestInfo.h
  12002. (filename): New variable.
  12003. (totalLength): New variable.
  12004. (setTotalLength): New function.
  12005. (setFilename): New function.
  12006. * src/MetalinkRequestInfo.cc
  12007. (execute): Set filename and size to UrlRequestInfo.
  12008. * src/MetalinkEntry.cc
  12009. (MetalinkEntry): Initialize size with 0.
  12010. * src/UrlRequestInfo.cc
  12011. (execute): Set filename and size to SegmentMan.
  12012. Not to download rest of the files after selected files are downloaded
  12013. in BitTorrent:
  12014. * src/PieceStorage.h
  12015. (allDownloadFinished): New function.
  12016. * src/DefaultBtAnnounce.cc
  12017. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12018. downloadFinished.
  12019. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12020. * src/DefaultPieceStorage.cc
  12021. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12022. Commented out the call to finishSelectiveDownloadingMode().
  12023. (downloadFinished): Call isFilteredAllBitSet() instead of
  12024. isAllBitSet().
  12025. (allDownloadFinished): New function.
  12026. * src/DefaultBtInteractive.cc
  12027. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12028. downloadFinished().
  12029. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12030. * src/TorrentDownloadEngine.cc
  12031. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12032. * src/BitfieldMan.h
  12033. (isFilteredAllBitSet): New function.
  12034. * src/ShareRatioSeedCriteria.h
  12035. (PieceStorage.h): New include.
  12036. (pieceStorage): New variable.
  12037. (evaluate):
  12038. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12039. * src/BitfieldMan.cc
  12040. (isFilteredAllBitSet): New function.
  12041. (isAllBitSet): Filter is not took into account.
  12042. Rename --force-truncate as --allow-overwrite:
  12043. * src/TorrentRequestInfo.cc
  12044. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12045. * src/main.cc
  12046. (showUsage): --force-truncate -> --allow-overwrite
  12047. * src/message.h
  12048. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12049. * src/prefs.h
  12050. (PREF_FORCE_TRUNCATE): Removed.
  12051. (PREF_ALLOW_OVERWRITE): New definition.
  12052. * src/SegmentMan.cc
  12053. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12054. * src/MetalinkRequestInfo.cc
  12055. (execute): Queueing message are now logged in info level.
  12056. * src/common.h
  12057. (LONG_LONG_MAX): Removed.
  12058. (LONG_LONG_MIN): Removed.
  12059. * src/HttpResponseCommand.cc
  12060. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12061. * src/FtpNegotiateCommand.cc
  12062. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12063. * src/main.cc
  12064. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12065. command-line option.
  12066. (main): Added --check-integriy and --realtime-chunk-checksum
  12067. command-line option.
  12068. --force-truncate -> --allow-overwrite
  12069. Set initial value of --check-integrity option to false.
  12070. Don't show usage when error occurs while persing command-line options.
  12071. Removed deprecated --upload-limit option.
  12072. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12073. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12074. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12075. * src/BtAllowedFastMessage.cc:
  12076. * src/BtBitfieldMessage.cc
  12077. * src/BtCancelMessage.cc
  12078. * src/BtChokeMessage.cc
  12079. * src/BtHaveAllMessage.cc
  12080. * src/BtHaveMessage.cc
  12081. * src/BtHaveNoneMessage.cc
  12082. * src/BtInterestedMessage.cc
  12083. * src/BtNotInterestedMessage.cc
  12084. * src/BtPieceMessage.cc
  12085. * src/BtPortMessage.cc
  12086. * src/BtRejectMessage.cc
  12087. * src/BtRequestMessage.cc
  12088. * src/BtSuggestPieceMessage.cc
  12089. * src/BtUnchokeMessage.cc
  12090. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12091. files are affected.
  12092. * src/ChunkChecksumValidator.cc
  12093. * src/SegmentMan.cc
  12094. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12095. To add chunk checksum validation:
  12096. * src/MetalinkEntry.h
  12097. (MetalinkChunkChecksum.h): New include.
  12098. (chunkChecksum): New variable.
  12099. * src/Request.h
  12100. (method): New variable.
  12101. (setMethod): New function.
  12102. (getMethod): New function.
  12103. (METHOD_GET): New static constant.
  12104. (METHOD_HEAD): New static constant.
  12105. * src/Xml2MetalinkProcessor.h
  12106. (getPieceHash): New function.
  12107. * src/PieceStorage.h
  12108. (markAllPiecesDone): New function.
  12109. (checkIntegrity): New function.
  12110. * src/FileAllocator.h
  12111. (NullFileAllocationMonitor.h): New include.
  12112. (FileAllocator): Initialize fileAllocationMonitor with new
  12113. NullFileAllocationMonitor().
  12114. * src/MultiDiskAdaptor.h
  12115. (messageDigest.h): Remove include.
  12116. (ctx): Removed.
  12117. (hashUpdate): Added ctx.
  12118. (MultiDiskAdaptor): Removed ctx.
  12119. (sha1Sum): Renamed as messageDigest.
  12120. (messageDigest): New function.
  12121. * src/UrlRequestInfo.h
  12122. (HeadResult): New class.
  12123. (digestAlgo): New variable.
  12124. (chunkChecksumLength): New variable.
  12125. (chunkChecksums): New variable.
  12126. (getHeadResult): New function.
  12127. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12128. (setDigestAlgo): New function.
  12129. (setChunkChecksumLength): New function.
  12130. (setChunkChecksums): New function.
  12131. * src/DefaultPieceStorage.cc
  12132. (DiskAdaptorWriter.h): New include.
  12133. (ChunkChecksumValidator.h): New include.
  12134. (markAllPiecesDone): New function.
  12135. (checkIntegrity): New function.
  12136. * src/DefaultBtContext.h
  12137. (getPieceHashes): New function.
  12138. * src/TorrentRequestInfo.cc
  12139. (execute): Try to validate chunk checksum if file already exists and
  12140. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12141. * src/messageDigest.h
  12142. (~MessageDigestContext): Added digestFree().
  12143. * src/MetalinkRequestInfo.cc
  12144. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12145. * src/DiskAdaptor.h
  12146. (messageDigest.h): New include.
  12147. (sha1Sum): Renamed as messageDigest.
  12148. (messageDigest): New function.
  12149. * src/DownloadCommand.h
  12150. (PeerStat.h): New include.
  12151. (maxDownloadSpeedLimit): New variable.
  12152. (startupIdleTime): New variable.
  12153. (lowestDownloadSpeedLimit): New variable.
  12154. (peerStat): New variable.
  12155. (setMaxDownloadSpeedLimit): New function.
  12156. (setStartupIdleTime): New function.
  12157. (setLowestDownloadSPeedLimit): New function.
  12158. * src/BtContext.h
  12159. (getPieceHashes): New function.
  12160. * src/main.cc
  12161. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12162. option to true for testing purpose.
  12163. * src/BtPieceMessage.cc
  12164. (checkPieceHash): Use messageDigest
  12165. * src/DownloadEngine.cc
  12166. (SetDescriptor): Removed.
  12167. (AccumulateActiveCommand): Removed.
  12168. (waitData): Rewritten.
  12169. (updateFdSet): Rewritten.
  12170. * src/MultiDiskAdaptor.cc
  12171. (hashUpdate): Added ctx.
  12172. (sha1Sum): Renamed as messageDigest.
  12173. (messageDigest): New function.
  12174. * src/BitfieldMan.h
  12175. (isBitRangeSet): New function.
  12176. (unsetBitRange): New function.
  12177. * src/ByteArrayDiskWriter.h
  12178. (sha1Sum): Renamed as messageDigest.
  12179. (messageDigest): New function.
  12180. * src/ConsoleDownloadEngine.cc
  12181. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12182. * src/DiskWriter.h
  12183. (messageDigest.h): New include.
  12184. (sha1Sum): Renamed as messageDigest.
  12185. (messageDigest): New function.
  12186. * src/ChunkChecksumValidator.h: New class.
  12187. * src/DiskAdaptorWriter.h: New class.
  12188. * src/prefs.h
  12189. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12190. (PREF_CHECK_INTEGRITY): New definition.
  12191. * src/HttpResponseCommand.cc
  12192. (handleDefaultEncoding): Added method "HEAD" handling.
  12193. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12194. (handleOtherEncoding):
  12195. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12196. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12197. startupIdleTime, lowestDownloadSpeedLimit to command.
  12198. * src/SegmentMan.h
  12199. (getSegmentEntryByIndex): New function.
  12200. (getSegmentEntryByCuid): New function.
  12201. (getSegmentEntryIteratorByCuid): New function.
  12202. (diskWriter): DiskWriter -> DiskWriterHandle
  12203. (pieceHashes): New variable.
  12204. (chunkHashLength): New variable.
  12205. (digestAlgo): New variable.
  12206. (FindPeerStat): Removed.
  12207. (getPeerStat): Rewritten.
  12208. (markAllPiecesDone): New function.
  12209. (checkIntegrity): New function.
  12210. (tryChunkChecksumValidation): New function.
  12211. (isChunkChecksumValidationReady): New function.
  12212. * src/BitfieldMan.cc
  12213. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12214. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12215. blocks to 0.
  12216. (isBitRangeSet): New function.
  12217. (unsetBitRange): New function.
  12218. * src/FtpNegotiateCommand.cc
  12219. (executeInternal): Set maxDownloadSpeedLimit,
  12220. startupIdleTime, lowestDownloadSpeedLimit to command.
  12221. (recvSize): Added method "HEAD" handling.
  12222. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12223. * src/AbstractSingleDiskAdaptor.cc
  12224. (sha1Sum): Renamed as messageDigest.
  12225. (messageDigest): New function.
  12226. * src/AbstractSingleDiskAdaptor.h
  12227. (sha1Sum): Renamed as messageDigest.
  12228. (messageDigest): New function.
  12229. * src/Util.h
  12230. (indexRange): New function.
  12231. * src/MetalinkEntry.cc
  12232. (MetalinkEntry): Initialized chunkChecksum to 0.
  12233. * src/ShaVisitor.cc
  12234. (~ShaVisitor): Removed the call to ctx.digestFree().
  12235. * src/SegmentMan.cc
  12236. (ChunkChecksumValidator.h): New include.
  12237. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12238. to DIGEST_ALGO_SHA1.
  12239. (~SegmentMan): Removed diskWriter.
  12240. (FindSegmentEntryByIndex): Removed.
  12241. (FindSegmentEntryByCuid): Removed.
  12242. (checkoutSegment): Rewritten.
  12243. (findSlowerSegmentEntry): Rewritten.
  12244. (getSegment): Rewritten.
  12245. (updateSegment): Rewritten.
  12246. (completeSegment): Rewritten.
  12247. (markAllPiecesDone): New function.
  12248. (checkIntegrity): New function.
  12249. (isChunkChecksumValidationReady): New function.
  12250. (tryChunkChecksumValidation): New function.
  12251. * src/Xml2MetalinkProcessor.cc
  12252. (getEntry): Get size and set it to entry.
  12253. Get chunk checksum and set it to entry.
  12254. (getPieceHash): New function.
  12255. * src/Util.cc
  12256. (sha1Sum): Removed ctx.digestFree()
  12257. (fileChecksum): Removed ctx.digestFree()
  12258. (indexRange): New function.
  12259. * src/Request.cc
  12260. (METHOD_GET): New variable.
  12261. (METHOD_HEAD): New variable.
  12262. (Request): Added method.
  12263. * src/UrlRequestInfo.cc
  12264. (FatalException.h): New include.
  12265. (message.h): New include.
  12266. (operator<<): Added operator<< for class HeadResult.
  12267. (getHeadResult): New function.
  12268. (execute): Get filename and size in separate download engine.
  12269. * src/ChunkChecksumValidator.cc: New class.
  12270. * src/DownloadCommand.cc:
  12271. (DownloadCommand): Added peerStat.
  12272. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  12273. the value from Option.
  12274. The buffer size is now 16KB.
  12275. Use peerStat member instead of getting it from SegmentMan.
  12276. Use startupIdleTime member instead of gettingit from Option.
  12277. Added chunk checksum validation.
  12278. * src/AbstractDiskWriter.cc
  12279. (AbstractDiskWriter): Removed ctx.
  12280. (~AbstractDiskWriter): Removed ctx.digestFree()
  12281. (writeDataInternal): Returns the return value of write.
  12282. (readDataInternal): Returns the return value of read.
  12283. (sha1Sum): Renamed as messageDigest
  12284. (messageDigest): New function.
  12285. * src/AbstractDiwkWriter.h
  12286. (messageDigest.h): Removed include.
  12287. (ctx): Removed.
  12288. (sha1Sum): Renamed as messageDigest
  12289. (messageDigest): New function.
  12290. * src/DefaultPieceStorage.h
  12291. (markAllPiecesDone): New function.
  12292. (checkIntegrity): New function.
  12293. * src/NullFileAllocationMonitor.h: New class.
  12294. * src/MetalinkChunkChecksum.h: New class.
  12295. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12296. To decrease CPU usage in bittorrent download, calculation results in
  12297. BitfieldMan were cached and realtime fetching PeerObject was removed
  12298. with WeakHandle introduced. Option values are set to the objects
  12299. by setter before download begins.
  12300. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  12301. * src/DefaultBtRequestFactory.h
  12302. (dispatcher): BtMessageDispatcherHandle ->
  12303. BtMessageDispatcherWeakHandle.
  12304. (messageFactory): New variable.
  12305. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  12306. BtMessageDispatcherWeakHandle.
  12307. (setBtMessageFactory): New function.
  12308. * src/DefaultBtMessageDispatcher.cc:
  12309. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  12310. from Option.
  12311. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  12312. feating the value from Option.
  12313. Use messageFactory member.
  12314. * src/PeerInteractionCommand.cc
  12315. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  12316. Add reverse dependencies to factory object.
  12317. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  12318. dispatcher.
  12319. Set messageFactory to receiver.
  12320. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  12321. btInteractive.
  12322. Set receiver to peerObject.
  12323. Set maxDownloadSpeedLimit to this.
  12324. (executeInternal): Use maxDownloadSpeedLimit member.
  12325. * src/BtChokeMessage.cc
  12326. (doReceivedAction): Use dispatcher, requestFactory member.
  12327. (onSendComplete): Use dispatcher member.
  12328. * src/PeerInteractionCommand.h
  12329. (maxDownloadSpeedLimit): New variable.
  12330. * src/DefaultBtMessageReceiver.h
  12331. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12332. (dispatcher):
  12333. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12334. (messageFactory): New variable.
  12335. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12336. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  12337. (setDispatcher):
  12338. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  12339. (setBtMessageFactory): New function.
  12340. * src/DefaultBtInteractive.cc
  12341. (initiateHandshake): Use messageFactory member.
  12342. (addBitfieldMessageToQueue): Use messageFactory member.
  12343. (addAllowedFastMessageToQueue): Use messageFactory member.
  12344. (decideChoking): Use messageFactory member.
  12345. (checkHave): Use messageFactory member.
  12346. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  12347. (receiveMessages): Use maxDownloadSpeedLimit member.
  12348. (decideInterest): Use messageFactory member.
  12349. * src/BtRequestMessage.cc
  12350. (doReceivedAction): Use messageFactory, dispatcher member.
  12351. (onQueued): Use dispatcher member.
  12352. * src/BtPieceMessage.cc
  12353. (doReceivedAction): Use dispatcher member.
  12354. (send): Use peerConnection member.
  12355. (onWrongPiece): Use requestFactory member.
  12356. (handleChokingEvent): Use messageFactory, dispatcher member.
  12357. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  12358. * src/BtMessageDispatcher.h
  12359. (BtMessageDispatcherWeakHandle): New type definition.
  12360. * src/SimpleBtMessage.cc
  12361. (send): Use peerConnection member.
  12362. * src/BtRejectMessage.cc
  12363. (doReceivedAction): Use dispatcher member.
  12364. * src/DefaultBtMessageDispatcher.h
  12365. (Option.h): Removed include.
  12366. (messageFactory): New variable.
  12367. (option): Removed.
  12368. (maxUploadSpeedLimit): New variable.
  12369. (requestTimeout): New variable.
  12370. (DefaultBtMessageDispatcher): Removed option.
  12371. Added maxUploadSpeedLimit, requestTimeout.
  12372. (setOption): Removed.
  12373. (getOption): Removed.
  12374. (setMaxUploadSpeedLimit): New function.
  12375. (setRequestTimeout): New function.
  12376. (setBtMessageFactory): New function.
  12377. * src/DefaultBtInteractive.h
  12378. (btMessageReceiver):
  12379. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12380. (dispatcher):
  12381. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12382. (btRequestFactory):
  12383. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12384. (peerConnection):
  12385. PeerConnectionHandle -> PeerConnectionWeakHandle
  12386. (messageFactory): New variable.
  12387. (option): Removed.
  12388. (keepAliveInterval): New variable.
  12389. (maxDownloadSpeedLimit): New variable.
  12390. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  12391. (setBtMessageReceiver):
  12392. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  12393. (setDispatcher):
  12394. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  12395. (setBtRequestFactory):
  12396. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  12397. (setPeerConnection):
  12398. PeerConnectionHandle -> PeerConnectionWeakHandle
  12399. (setOption): Removed.
  12400. (setKeepAliveInterval): New function.
  12401. (setMaxDownloadSpeedLimit): New function.
  12402. (setBtMessageFactory): New function.
  12403. * src/BitfieldMan.h
  12404. (cachedNumMissingBlock): New variable.
  12405. (cachedNumFilteredBlock): New variable.
  12406. (cachedCompletedLength): New variable.
  12407. (cachedFilteredComletedLength): New variable.
  12408. (cachedFilteredTotalLength): New variable.
  12409. (countMissingBlockNow): New function.
  12410. (countFilteredBlockNow): New function.
  12411. (getFilteredTotalLengthNow): New function.
  12412. (getCompletedLengthNow): New function.
  12413. (getFilteredCompletedLengthNow): New function.
  12414. (updateCache): New function.
  12415. * src/AbstractBtMessage.h
  12416. (BtMessageDispatcher.h): New include.
  12417. (PeerConnection.h): New include.
  12418. (BtRequestFactory.h): New include
  12419. (BtMessageFactory.h): New include.
  12420. (dispatcher): New variable.
  12421. (messageFactory): New variable.
  12422. (peerConnection: New variable.
  12423. (setBtMessageDispatcher): New function.
  12424. (setPeerConnection): New function.
  12425. (setBtMessageFactory): New function.
  12426. (setBtRequestFactory): New function.
  12427. * src/DefaultBtMessageFactory.cc
  12428. (setCommonProperty): Set dispatcher, requestFactory, this,
  12429. peerConnection to msg.
  12430. * src/BtRegistry.h
  12431. (BT_MESSAGE_RECEIVER): New macro.
  12432. * src/PeerConnection.h
  12433. (PeerConnectionWeakHandle): New type definition.
  12434. * src/BtMessageFactory.h
  12435. (BtMessageFactoryWeakHandle): New type definition.
  12436. * src/BitfieldMan.cc
  12437. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  12438. cachedCompletedLength, cachedFilteredComletedLength,
  12439. cachedFilteredTotalLength.
  12440. Call updateCache().
  12441. (countMissingBlock): Return cachedNumMissingBlock.
  12442. (countMissingBlockNow): New function.
  12443. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  12444. (countFilteredBlockNow): New function.
  12445. (setBit): Call updateCache().
  12446. (unsetBit): Call updateCache().
  12447. (setBitfield): Call updateCache().
  12448. (clearAllBit): Call updateCache().
  12449. (setAllBit): Use setBitInternal instead of setBit.
  12450. Call updateCache().
  12451. (addFilter): Call updateCache().
  12452. (enableFilter): Call updateCache().
  12453. (disableFilter): Call updateCache().
  12454. (clearFilter): Call updateCache().
  12455. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  12456. (getFilteredTotalLengthNow): New function.
  12457. (getCompletedLength): Return cachedCompletedLength.
  12458. (getCompletedLengthNow): New function.
  12459. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  12460. (getFilteredCompletedLengthNow): New function.
  12461. (updateCache): New function.
  12462. * src/BtMessageReceiver.h
  12463. (BtMessageReceiverWeakHandle): New type definition.
  12464. * src/DefaultBtMessageReceiver.cc
  12465. (receiveHandshake): Use messageFactory member.
  12466. (sendHandshake): Use messageFactory member.
  12467. (receiveMessage): Use messageFactory member.
  12468. * src/DefaultBtMessageFactory.h
  12469. (dispatcher): New variable.
  12470. (requestFactory): New variable.
  12471. (peerConnection): New variablle.
  12472. (setBtMessageDispatcher): New function.
  12473. (setBtRequestFactory): New function.
  12474. (setPeerConnection): New function.
  12475. * src/SharedHandle.h
  12476. (RefCount): New class.
  12477. (WeakHandle): New class.
  12478. * src/PeerObject.h
  12479. (BtMessageReceiver.h): New include.
  12480. (PeerObject): Added btMessageReceiver.
  12481. (btMessageReceiver): New variable.
  12482. * src/Util.cc
  12483. (countBit): Simplified.
  12484. * src/BtCancelMessage.cc
  12485. (doReceivedAction): Use dispatcher member.
  12486. * src/BtRequestFactory.h
  12487. (BtRequestFactoryWeakHandle): New type definition.
  12488. * src/PeerStorage.h
  12489. (downloadSpeed): int -> uint32_t
  12490. (uploadSpeed): int -> uint32_t
  12491. (sessionDownloadLength): long long int -> uint64_t
  12492. (sessionUploadLength): long long int -> uint64_t
  12493. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12494. To add RecoverableException, FatalException:
  12495. * src/AbstractCommand.cc
  12496. (onAbort): Exception -> RecoverableException
  12497. * src/PeerAbstractCommand.h
  12498. (RecoverableException.h): New include.
  12499. (onAbort): Exception -> RecoverableException.
  12500. * src/PeerInteractionCommand.cc
  12501. (onAbort): Exception -> RecoverableException.
  12502. * src/PeerAbstractCommand.cc
  12503. (execute): Exception -> RecoverableException.
  12504. (onAbort): Exception -> RecoverableException.
  12505. * src/TorrentRequestInfo.cc
  12506. (execute): Exception -> RecoverableException.
  12507. * src/MetalinkRequestInfo.cc
  12508. (execute): Exception -> RecoverableException.
  12509. * src/MetaFileUtil.cc: RecoverableException.
  12510. * src/AbstractCommand.h
  12511. (onAbort): Exception -> RecoverableException.
  12512. * src/DlRetryEx.h: Exception -> RecoverableException.
  12513. * src/DlAbortEx.h: Exception -> RecoverableException.
  12514. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  12515. * src/Util.cc: Exception -> RecoverableException.
  12516. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  12517. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  12518. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  12519. To make ID static const int
  12520. * src/BtInterestedMessage.h
  12521. (ID_t): Removed.
  12522. (ID): New variable.
  12523. (getId): Made non-const.
  12524. * src/BtPieceMessage.h
  12525. (ID_t): Removed.
  12526. (ID): New variable.
  12527. (getId): Made non-const.
  12528. * src/BtChokeMessage.h
  12529. (ID_t): Removed.
  12530. (ID): New variable.
  12531. (getId): Made non-const.
  12532. * src/BtHaveAllMessage.h
  12533. (ID_t): Removed.
  12534. (ID): New variable.
  12535. (getId): Made non-const.
  12536. * src/BtKeepAliveMessage.h
  12537. (ID_t): Removed.
  12538. (ID): New variable.
  12539. (getId): Made non-const.
  12540. * src/BtHandshakeMessage.h
  12541. (ID): New variable.
  12542. (getId): Made non-const.
  12543. * src/BtSuggestPieceMessage.h
  12544. (ID_t): Removed.
  12545. (ID): New variable.
  12546. (getId): Made non-const.
  12547. * src/BtPortMessage.h
  12548. (ID_t): Removed.
  12549. (ID): New variable.
  12550. (getId): Made non-const.
  12551. * src/AbstractBtMessage.h
  12552. (id): Removed.
  12553. (AbstractBtMessage): Removed id.
  12554. (getId): Removed.
  12555. * src/BtHaveMessage.h
  12556. (ID_t): Removed.
  12557. (ID): New variable.
  12558. (getId): Made non-const.
  12559. * src/BtAllowedFastMessage.h
  12560. (ID_t): Removed.
  12561. (ID): New variable.
  12562. (getId): Made non-const.
  12563. * src/BtCancelMessage.h
  12564. (ID_t): Removed.
  12565. (ID): New variable.
  12566. (getId): Made non-const.
  12567. * src/BtNotInterestedMessage.h
  12568. (ID_t): Removed.
  12569. (ID): New variable.
  12570. (getId): Made non-const.
  12571. * src/BtChokeMessage.h
  12572. (ID_t): Removed.
  12573. (ID): New variable.
  12574. (getId): Made non-const.
  12575. * src/BtRejectMessage.h
  12576. (ID_t): Removed.
  12577. (ID): New variable.
  12578. (getId): Made non-const.
  12579. * src/BtBitfieldMessage.h
  12580. (ID_t): Removed.
  12581. (ID): New variable.
  12582. (getId): Made non-const.
  12583. * src/BtUnchokeMessage.h
  12584. (ID_t): Removed.
  12585. (ID): New variable.
  12586. (getId): Made non-const.
  12587. * src/BtRequestMessage.h
  12588. (ID_t): Removed.
  12589. (ID): New variable.
  12590. (getId): Made non-const.
  12591. * src/BtHaveMessage.h
  12592. (ID_t): Removed.
  12593. (ID): New variable.
  12594. (getId): Made non-const.
  12595. To add --force-truncate command-line option and a check whether
  12596. the file already exists:
  12597. * src/DirectDiskAdaptor.h
  12598. (getFilePath): Made virtual public.
  12599. * src/MultiDiskAdaptor.h
  12600. (File.h): New include.
  12601. (DiskWriterEntry::fileEntry): Made private.
  12602. (DiskWriterEntry::fileExists): New function.
  12603. (DiskWriterEntry::getFileEntry): New function.
  12604. (fileExists): New function.
  12605. (getFilePath): New function.
  12606. * src/TorrentRequestInfo.cc
  12607. (FatalException.h): New include.
  12608. (message.h): New include.
  12609. (RecoverableException.h): New include.
  12610. (execute): Added a check whether file is already exists or not.
  12611. * src/DiskAdaptor.h
  12612. (fileExists): New function.
  12613. (getFilePath): New function.
  12614. * src/main.cc
  12615. (showUsage): Added an explanation of --force-truncate command-line
  12616. option.
  12617. (main): Added --force-truncate command-line option.
  12618. * src/Exception.h
  12619. (setMsg): buf[256] -> buf[1024]
  12620. * src/CopyDiskWriter.h
  12621. (getFilePath): Made public virtual.
  12622. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  12623. (fileExists): New function.
  12624. * src/DownloadEngineFactory.cc
  12625. (newTorrentConsoleEngine): Don't open file here.
  12626. * src/message.h
  12627. (EX_FILE_ALREADY_EXISTS): New definition.
  12628. * src/prefs.h
  12629. (PREF_FOECE_TRUNCATE): New definition.
  12630. * src/HttpResponseCommand.cc
  12631. (handleDefaultEncoding): Added a check whether the file already exists.
  12632. * src/SegmentMan.h
  12633. (fileExists): New function.
  12634. (shouldCancelDownloadForSafety): New function.
  12635. * src/FtpNegotiateCommand.cc
  12636. (recvSize): Added a check whether the file already exists.
  12637. * src/AbstractSingleDiskAdaptor.cc
  12638. (File.h): New include.
  12639. (fileExists): New function.
  12640. * src/AbstractSingleDiskAdaptor.h
  12641. (getFilePath): Removed.
  12642. (fileExists): New function.
  12643. * src/SegmentMan.cc
  12644. (fileExists): New function.
  12645. (shouldCancelDownloadForSafety): New function.
  12646. To fix regression bug in torrent downloading:
  12647. * src/DefaultBtRequestFactory.cc
  12648. (doChokedAction): New function.
  12649. * src/DefaultBtRequestFactory.h
  12650. (doChokedAction): New function.
  12651. * src/DefaultBtMessageDispatcher.cc
  12652. (doChokedAction): Do not delete request if its target is in allowed
  12653. fast set.
  12654. * src/DefaultBtInteractive.cc
  12655. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  12656. (sendKeepAlive): Send keep alive message even if the outgoing message
  12657. queue is not empty.
  12658. (decideInterest): Simplified the code.
  12659. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  12660. it is already called when BtChokeMessage is received from a peer.
  12661. * src/BtRequestFactory.h
  12662. (doChokedAction): New function.
  12663. To clean up code:
  12664. * src/PeerInteractionCommand.h
  12665. (executeInternal): Added virtual keyword explicitly.
  12666. (prepareForRetry): Added virtual keyword explicitly.
  12667. (prepareForNextPeer): Added virtual keyword explicitly.
  12668. (onAbort): Added virtual keyword explicitly.
  12669. * src/RequestSlot.cc
  12670. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  12671. * src/BtPieceMessage.cc
  12672. (doReceivedAction): Added a debug log of piece's bitfield.
  12673. * src/Piece.h
  12674. (getBitfieldLength): New function.
  12675. * src/ByteArrayDiskWriter.cc
  12676. (clear): Added buf = 0 to avoid double free corruption.
  12677. * src/FileAllocator.cc
  12678. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  12679. Added cp.reset().
  12680. * src/BitfieldMan.h
  12681. (operator=): Rewritten.
  12682. * src/BitfieldMan.cc
  12683. (BitfieldMan): Initialized bitfield, useBitfield.
  12684. * src/PeerConnection.cc
  12685. (receiveMessage): Added a call to socket->readable() after getting
  12686. message length to avoid possible EOF.
  12687. * src/Util.cc
  12688. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  12689. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12690. To add an ability to pre-allocate file space:
  12691. * src/DirectDiskAdaptor.h: Rewritten.
  12692. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  12693. * src/MultiDiskAdaptor.h: Rewritten.
  12694. * src/DefaultPieceStorage.cc
  12695. (MultiDiskWriter.h): Removed include.
  12696. (PreAllocationDiskWriter.h): Removed include.
  12697. (FileAllocationMonitor.h): New include.
  12698. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  12699. (initStorage): Rewritten.
  12700. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12701. * src/FileAllocator.h: New class.
  12702. * src/FileAllocator.cc: New class.
  12703. * src/FileAllocationMonitor.h: New class.
  12704. * src/FileAllocationMonitor.cc: New class.
  12705. * src/ConsoleFileAllocationMonitor.h: New class.
  12706. * src/ConsoleFileAllocationMonitor.cc: New class.
  12707. * src/AbstractSingleDiskAdaptor.h: New class.
  12708. * src/AbstractSingleDiskAdaptor.cc: New class.
  12709. * src/DiskAdaptor.h
  12710. (Directory.h): Removed include.
  12711. (DiskWriter.h): Removed include.
  12712. (FileEntry.h): Removed include.
  12713. (diskWriter): Removed.
  12714. (DiskAdaptor): Removed diskWriter.
  12715. (openFile): Made pure virtual.
  12716. (closeFile): Made pure virtual.
  12717. (openExistingFile): Made pure virtual.
  12718. (initAndOpenFile): Made pure virtual.
  12719. (writeData): Made pure virtual.
  12720. (readData): Made pure virtual.
  12721. (sha1Sum): Made pure virtual.
  12722. (getStoreDir): Returns const reference of storeDir.
  12723. (DiskAdaptorHandle): New type definition.
  12724. * src/main.cc
  12725. (ConsoleFileAllocationMonitor.h): New include.
  12726. (showUsage): Added default value description of -s option.
  12727. Added the description of --file-allocation option.
  12728. (main): Set default value of --file-allocation option to 'none'.
  12729. Added --file-allocation command-line option.
  12730. Setup FileAllocationMonitorFactory.
  12731. * src/FtpInitiateConnectionCommand.cc
  12732. (executeInternal): Removed diskWriter related processing, which was
  12733. moved to FtpNegotiationCommand.cc.
  12734. * src/DirectDiskAdaptor.cc
  12735. (getFilePath): Made non-const.
  12736. * src/CopyDiskAdaptor.h
  12737. (DiskAdaptor.h): Removed include.
  12738. (DiskWriter.h): Removed include.
  12739. (AbstractSingleDiskAdaptor.h): New include.
  12740. (getFilePath): Made non-const. Added virtual keyword.
  12741. (CopyDiskAdaptor): Removed diskWriter.
  12742. (getTempFile): Returns const reference.
  12743. (CopyDiskAdaptorHandle): New type definition.
  12744. * src/ByteArrayDiskWriter.cc
  12745. (clear): Simplified.
  12746. (initAndOpenFile): Rewritten.
  12747. (openFile): Call initAndOpenFile()
  12748. * src/MultiDiskAdaptor.cc: Rewritten.
  12749. * src/DownloadEngineFactory.cc
  12750. (FileAllocator.h): New include.
  12751. (FileAllocationMonitor.h): New include.
  12752. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  12753. create DefaultDiskWriter with file allocator.
  12754. * src/DiskWriter.h
  12755. (initAndOpenFile): Added totalLength argument.
  12756. (openFile): Added totalLength argument.
  12757. * src/prefs.h
  12758. (PREF_FILE_ALLOCATION): New definition.
  12759. (V_PREALLOC): New definition.
  12760. (V_NONE): New definition.
  12761. * src/HttpResponseCommand.cc
  12762. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  12763. size.
  12764. * src/FtpNegotiateCommand.cc
  12765. (Util.h): New include.
  12766. (recvSize): Open file here.
  12767. * src/Util.h
  12768. (ullitos): New function.
  12769. * src/CopyDiskWriter.h
  12770. (getFilePath): Made non-const.
  12771. * src/DefaultDiskWriter.h
  12772. (Option.h): New include.
  12773. (totalLength): Removed.
  12774. (DefaultDiskWriter): Removed totalLength.
  12775. (initAndOpenFile): Added totalLength argument.
  12776. (DefaultDiskWriterHandle): New type definition.
  12777. (createNewDiskWriter): New function.
  12778. * src/Util.cc
  12779. (ullitos): New function.
  12780. * src/DefaultDiskWriter.cc
  12781. (message.h): New include.
  12782. (FileAllocator.h): New include.
  12783. (prefs.h): New include.
  12784. (Util.h): New include.
  12785. (DefaultDiskWriter): Removed totalLength.
  12786. (initAndOpenFile): Added file allocation.
  12787. (createNewDiskWriter): New function. Just for temporary solution.
  12788. It will be rewritten later.
  12789. * src/DiskAdaptor.cc
  12790. (DiskAdaptor): Removed diskWriter.
  12791. * src/AbstractDiskWriter.cc
  12792. (LogFactory.h): New include.
  12793. (AbstractDiskWriter): Added fileAllocator, logger.
  12794. (openFile): Added totalLength argument.
  12795. * src/AbstractDiskWriter.h
  12796. (FileAllocator.h): New include.
  12797. (Logger.h): New include.
  12798. (fileAllocator): New variable.
  12799. (logger): New variable.
  12800. (openFile): Added totalLength argument. Added virtual keyword
  12801. explicitly.
  12802. (openExistingFile): Added totalLength argument. Added virtual keyword
  12803. explicitly.
  12804. (closeFile): Added virtual keyword explicitly.
  12805. (sha1Sum): Added virtual keyword explicitly.
  12806. (writeData): Added virtual keyword explicitly.
  12807. (readData): Added virtual keyword explicitly.
  12808. (setFileAllocator): New function.
  12809. * src/DefaultPieceStorage.h
  12810. (FileAllocator.h): New include.
  12811. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12812. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  12813. * src/FileProgressMonitor.h: New class.
  12814. To compile aria2 on PC-BSD:
  12815. * src/DefaultBtContext.cc
  12816. (libgen.h): New include.
  12817. To fix memory leak:
  12818. * src/Exception.h
  12819. (~Exception): Delete cause. Fixed memory leak.
  12820. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12821. Rewritten a portion of bittorrent implementation:
  12822. * src/BtMessageValidator.h: New class.
  12823. * src/BtBitfieldMessageValidator.h: New class.
  12824. * src/BtHandshakeMessageValidator.h: New class.
  12825. * src/BtRequestMessageValidator.h: New class.
  12826. * src/BtSuggestPieceMessageValidator.h: New class.
  12827. * src/BtAllowedFastMessageValidator.h: New class.
  12828. * src/BtRejectMessageValidator.h: New class.
  12829. * src/BtCancelMessageValidator.h: New class.
  12830. * src/BtPieceMessageValidator.h: New class.
  12831. * src/BtHaveMessageValidator.h: New class.
  12832. * src/BtEventListener.h: New class.
  12833. * src/AbstractBtEventListener.h: New class.
  12834. * src/BtEvent.h: New class.
  12835. * src/BtChokingEvent.h: New class.
  12836. * src/BtChokedEvent.h: New class.
  12837. * src/BtCancelSendingPieceEvent.h: New class.
  12838. * src/BtAbortOutstandingRequestEvent.h: New class.
  12839. * src/Randomizer.h: New class.
  12840. * src/SimpleRandomizer.h: New class.
  12841. * src/BtMessage.h: New class.
  12842. * src/AbstractBtMessage.h: New class.
  12843. * src/SimpleBtMessage.h: New class.
  12844. * src/BtHaveMessage.h: New class.
  12845. * src/BtInterestedMessage.h: New class.
  12846. * src/BtAllowedFastMessage.h: New class.
  12847. * src/BtUnchokeMessage.h: New class.
  12848. * src/BtCancelMessage.h: New class.
  12849. * src/BtNotInterestedMessage.h: New class.
  12850. * src/BtChokeMessage.h: New class.
  12851. * src/BtHaveNoneMessage.h: New class.
  12852. * src/BtHandshakeMessage.h: New class.
  12853. * src/BtSuggestPieceMessage.h: New class.
  12854. * src/BtHaveMessage.h: New class.
  12855. * src/BtPieceMessage.h: New class.
  12856. * src/BtHaveAllMessage.h: New class.
  12857. * src/BtKeepAliveMessage.h: New class.
  12858. * src/BtPortMessage.h: New class.
  12859. * src/BtRejectMessage.h: New class.
  12860. * src/BtBitfieldMessage.h: New class.
  12861. * src/BtRequestMessage.h: New class.
  12862. * src/DefaultBtRequestFactory.h: New class.
  12863. * src/DefaultBtMessageReceiver.h: New class.
  12864. * src/BtInteractive.h: New class.
  12865. * src/BtMessageDispatcher.h: New class.
  12866. * src/DefaultBtMessageDispatcher.h: New class.
  12867. * src/DefaultBtInteractive.h: New class.
  12868. * src/BitfieldManFactory.h: New class.
  12869. * src/HandleRegistry.h: New class.
  12870. * src/BtMessageFactory.h: New class.
  12871. * src/BtMessageReceiver.h: New class.
  12872. * src/DefaultBtMessageFactory.h: New class.
  12873. * src/PeerObject.h: New class.
  12874. * src/BtRequestFactory.h: New class.
  12875. * src/SuggestPieceMessage.h: Removed.
  12876. * src/PortMessage.h: Removed.
  12877. * src/SuggestPieceMessage.h: Removed.
  12878. * src/KeepAliveMessage.h: Removed.
  12879. * src/HandshakeMessage.h: Removed.
  12880. * src/PeerInteraction.h: Removed.
  12881. * src/UnchokeMessage.h: Removed.
  12882. * src/PieceMessage.h: Removed.
  12883. * src/RequestMessage.h: Removed.
  12884. * src/InterestedMessage.h: Removed.
  12885. * src/HaveMessage.h: Removed.
  12886. * src/CancelMessage.h: Removed.
  12887. * src/RejectMessage.h: Removed.
  12888. * src/AllowedFastMessage.h: Removed.
  12889. * src/HaveNoneMessage.h: Removed.
  12890. * src/SimplePeerMessage.h: Removed.
  12891. * src/HaveAllMessage.h: Removed.
  12892. * src/BitfieldMessage.h: Removed.
  12893. * src/PeerMessageFactory.h: Removed.
  12894. * src/NotInterestedMessage.h: Removed.
  12895. * src/ChokeMessage.h: Removed.
  12896. * src/PeerMessage.h: Removed.
  12897. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12898. To know root cause of exception:
  12899. * src/Exception.h
  12900. (cause): New variable.
  12901. (Exception): Added a parameter.
  12902. (getMsg): Return const reference to msg.
  12903. (getCause): New function.
  12904. * src/DlRetryEx.h
  12905. (DlRetryEx): Added a parameter 'cause'.
  12906. Added an overloaded constructor.
  12907. (DlAbortEx): Added a parameter 'cause'.
  12908. Added an overloaded constructor.
  12909. * src/SimpleLogger.cc
  12910. (writeLog): Log nested exception messages recursively.
  12911. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12912. * src/DefaultBtProgressInfoFile.cc
  12913. (load): Fixed memory leak when the infohash doesn't match.
  12914. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12915. * src/DefaultPeerStorage.cc
  12916. (calculateStat): Simplified the code by combining 2 loops into 1.
  12917. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12918. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  12919. for BitTorrent download:
  12920. * src/PeerAbstractCommand.cc
  12921. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  12922. * src/main.cc:
  12923. (timeoutSpecified): Removed.
  12924. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  12925. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  12926. * src/TorrentRequestInfo.cc
  12927. (timeoutSpecified): Removed.
  12928. (torrentHandler): Removed timeoutSpecified and the adjustment of
  12929. timeout value.
  12930. * src/prefs.h
  12931. (PREF_BT_TIMEOUT): New definition.
  12932. Delete unused variables:
  12933. * src/TorrentRequestInfo.cc
  12934. (requestInfo): Removed.
  12935. Move setSignalHander to Util::setGlobalSignalHandler:
  12936. * src/TorrentRequestInfo.cc:
  12937. setSignalHander -> Util::setGlobalSignalHandler
  12938. * src/main.cc
  12939. (setSignalHander): Removed.
  12940. (main): setSignalHander -> Util::setGlobalSignalHandler
  12941. * src/Util.h
  12942. (setGlobalSignalHandler): New function.
  12943. * src/Util.cc
  12944. (setGlobalSignalHandler): New function.
  12945. * src/UrlRequestInfo.cc:
  12946. setSignalHander -> Util::setGlobalSignalHandler
  12947. Reset peer status in order to exit gracefully:
  12948. * src/PeerAbstractCommand.cc
  12949. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  12950. To fix the bug that causes the number of bytes uploaded is not saved
  12951. to .aria2 file:
  12952. * src/DefaultPeerStorage.h
  12953. (removedPeerSessionDownloadLength): New variable.
  12954. (removedPeerSessionUploadLength): New variable.
  12955. * src/DefaultPeerStorage.cc
  12956. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  12957. removedPeerSessionUploadLength(0).
  12958. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  12959. through all peers, and then add removedPeerSessionDownloadLength(
  12960. removedPeerSessionUploadLength) to it.
  12961. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  12962. (to) the peer to removedPeerSessionDownloadLength
  12963. (removedPeerSessionUploadLength).
  12964. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12965. To add Metalink location option:
  12966. * src/MetalinkRequestInfo.cc
  12967. (execute): Call MetalinkEntry::setLocationPreference()
  12968. * src/main.cc
  12969. (showUsage): Added the help message for --metalink-location option.
  12970. (main): Added --metalink-location option.
  12971. * src/prefs.h
  12972. (PREF_METALINK_LOCATION): New definition.
  12973. * src/MetalinkEntry.cc
  12974. (AddLocationPreference): New function object.
  12975. (setLocationPreference): New function.
  12976. * src/Xml2MetalinkProcessor.cc
  12977. (getResource): Set location attribute to MetalinkResource
  12978. To show URLs to download
  12979. * src/UrlRequestInfo.h
  12980. (printUrls): New function.
  12981. To add multiple <file> Metalink support:
  12982. * src/MetalinkEntry.h
  12983. (MetalinkResources): Removed.
  12984. (setLocationPreference): New function.
  12985. (MetalinkEntryHandle): New type definition.
  12986. (MetalinkEntries): New type definition.
  12987. * src/Xml2MetalinkProcessor.h
  12988. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  12989. (getResource): MetalinkResource* -> MetalinkResourceHandle
  12990. (parseFile): Metalinker* -> MetalinkerHandle
  12991. * src/UrlRequestInfo.h
  12992. (execute): RequestInfo* -> RequestInfos
  12993. * src/MetalinkRequestInfo.cc
  12994. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  12995. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  12996. (execute): RequestInfo* -> RequestInfos
  12997. Added multiple <file> support. Print filename when it is queued.
  12998. * src/MetalinkRequestInfo.h
  12999. (execute): RequestInfo* -> RequestInfos
  13000. (getDownloadEngine): Removed.
  13001. * src/RequestInfo.h
  13002. (RequestInfoHandle): New type definition.
  13003. (RequestInfos): New type definition.
  13004. (execute): RequestInfo* -> RequestInfos
  13005. (getDownloadEngine): Removed.
  13006. * src/MetalinkResource.h
  13007. (MetalinkResourceHandle): New type definition.
  13008. (MetalinkResources): New type definition.
  13009. * src/MetalinkEntry.cc
  13010. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13011. because the element is now of type MetalinkResourceHandle.
  13012. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13013. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13014. (dropUnsupportedResource): Removed the deletion of the elements of
  13015. resources because the element is now of type MetalinkResourceHandle.
  13016. * src/Xml2MetalinkProcessor.cc
  13017. (parseFile): Metalinker* -> MetalinkerHandle
  13018. MetalinkEntry* -> MetalinkEntryHandle
  13019. Removed try-catch block.
  13020. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13021. MetalinkResource* -> MetalinkResourceHandle
  13022. Removed try-catch block.
  13023. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13024. Free result by using xmlXPathFreeObject()
  13025. * src/Metalinker.cc
  13026. (~Metalinker): Removed the deletion of entries.
  13027. MetalinkEntry* -> MetalinkEntryHandle
  13028. (queryEntry): Add multiple <file> Metalink support.
  13029. * src/Metalinker.h
  13030. (MetalinkEntries): Removed.
  13031. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13032. * src/MetalinkProcessor.h
  13033. (parseFile): Metalinker* -> MetalinkerHandle
  13034. Bug fixes:
  13035. * src/PeerChokeCommand.cc
  13036. (execute): cat01->cat02
  13037. * src/DefaultPieceStorage.cc
  13038. (DefaultPieceStorage): Added diskAdaptor(0)
  13039. * src/TrackerWatcherComand.cc:
  13040. (execute): Use btAnnounce->noMoreAnnounce()
  13041. to determin whether the function returns true or not.
  13042. * src/TrackerUpdateCommand.cc:
  13043. (execute): Use btAnnounce->noMoreAnnounce()
  13044. to determin whether the function returns true or not.
  13045. * src/FtpConnection.cc
  13046. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13047. This is the fix of the busy loop bug.
  13048. * src/DownloadCommand.cc
  13049. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13050. cached PeerStat.
  13051. The value of "name" entry in torrent file is now set by
  13052. *DiskAdaptor::setTopDir(...) methods.
  13053. * src/MultiDiskAdaptor.h
  13054. (topDir): New variable.
  13055. (setTopDir): New function.
  13056. (getTopDir): New function.
  13057. * src/MultiDiskAdaptor.cc
  13058. (getFilePath): Concat storDir, "/" and topDir.
  13059. (mkdir): Use getFilePath() to get the directory path for output.
  13060. * src/DefaultPieceStorage.cc
  13061. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13062. CopyDiskAdaptor.
  13063. * src/CopyDiskAdaptor.h
  13064. (topDir): New variable.
  13065. (setTopDir): New function.
  13066. (getTopDir): New function.
  13067. * src/CopyDiskAdaptor.cc
  13068. (fixFilename): Updated.
  13069. Misc
  13070. * src/UrlRequestInfo.h
  13071. (e): Removed.
  13072. (UrlRequestInfo): Removed e.
  13073. (getDownloadEngine): Removed.
  13074. * src/UrlRequestInfo.cc
  13075. (handler): Rewritten.
  13076. (printUrls): New function.
  13077. (execute): Call printUrls().
  13078. * src/HandshakeMessage.cc
  13079. (check): peerinteraction->getBtContext() -> btContext
  13080. * src/PeerInteraction.h
  13081. (getBtContext): Removed.
  13082. * src/TorrentRequestInfo.h
  13083. (execute): RequestInfo* -> RequestInfos
  13084. (getDownloadEngine): Removed.
  13085. * src/TorrentRequestInfo.cc
  13086. (haltRequested): Removed.
  13087. (btHaltRequested): New variable.
  13088. (torrentHandler): haltRequested -> btHaltRequested
  13089. (execute): RequestInfo* -> RequestInfos
  13090. * src/TorrentConsoleDownloadEngine.cc
  13091. (afterEachIteration): haltRequested -> btHaltRequested.
  13092. * src/ConsoleDownloadEngine.h
  13093. (initStatistics): Added virtual.
  13094. (calculateStatistics): Added virtual.
  13095. (onEndOfRun): Added virtual.
  13096. (afterEachIteration): Added virtual.
  13097. * src/ConsoleDownloadEngine.cc
  13098. (haltRequested): New variable.
  13099. (afterEachIteration): New function.
  13100. * src/main.cc
  13101. (requestInfo): Removed.
  13102. * src/SegmentMan.cc
  13103. (findSlowerSegmentEntry): Refactored.
  13104. * Release 0.9.0
  13105. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13106. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13107. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13108. * src/TorrentMan.h: Removed.
  13109. * src/TorrentMan.cc: Removed.
  13110. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13111. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13112. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13113. * src/PeerAbstractCommand.cc: Use btRuntime.
  13114. * src/BtContextAwareCommand.h: New class.
  13115. * src/FileEntry.h: Added accessor methods for following variables.
  13116. (path): Made private.
  13117. (length): Made private.
  13118. (offset): Made private.
  13119. (extracted): Made private.
  13120. (requested): Made private.
  13121. (FileEntries): New definition.
  13122. (FileEntryHandle): New definition.
  13123. * src/FileEntry.cc: New file.
  13124. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13125. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13126. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13127. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13128. * src/PieceStorage.h: New file.
  13129. * src/PeerInteractionCommand.h: Use btContext.
  13130. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13131. btRuntime.
  13132. * src/DefaultBtProgressInfoFile.h: New file.
  13133. * src/DefaultBtProgressInfoFile.cc: New file.
  13134. * src/File.cc
  13135. (Util.h): New include.
  13136. (mkdirs): New function.
  13137. * src/MultiDiskAdaptor.h
  13138. (mkdir): New function.
  13139. * src/PeerListProcessor.h
  13140. (Peers): Removed.
  13141. * src/PeerInteraction.h
  13142. (torrentMan): Removed.
  13143. (btContext): New variable.
  13144. (peerStorage): New variable.
  13145. (pieceStorage): New variable.
  13146. (btAnnounce): New variable.
  13147. (getTorrentMan): Removed.
  13148. (getBtContext): New function.
  13149. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13150. btAnnounce.
  13151. * src/HandshakeMessage.h
  13152. (TorrentMan.h): Removed.
  13153. * src/HandshakeMessage.cc: Use btContext.
  13154. * src/DefaultBtAnnounce.cc: New file.
  13155. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13156. * src/DefaultPieceStorage.cc: New file.
  13157. * src/DefaultBtContext.h: New file.
  13158. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13159. Use the accessor methods of FileEntry.
  13160. * src/CookieBox.cc: Updated to use Util::slice().
  13161. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13162. * src/common.h (SharedHandle.h): New include.
  13163. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13164. pieceStorage.
  13165. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13166. * src/DiskAdaptor.h
  13167. (topDir): Removed.
  13168. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13169. (setTopDir): Removed.
  13170. (getTopDir): Removed.
  13171. * src/BtContext.h: New file.
  13172. * src/DefaultPeerStorage.h: New file.
  13173. * src/PieceMessage.h (TorrentMan.h): Removed.
  13174. * src/RequestMessage.h (TorrentMan.h): Removed.
  13175. * src/TorrentDownloadEngine.h
  13176. (uploadLength): New variable.
  13177. (btContext): New variable.
  13178. (btRuntime): New variable.
  13179. (pieceStorage): New variable.
  13180. (peerStorage): New variable.
  13181. (btAnnounce): New variable.
  13182. (btProgressInfoFile): New variable.
  13183. (torrentMan): Removed.
  13184. (setBtContext): New function.
  13185. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13186. peerStorage, btAnnounce, btProgressInfoFile.
  13187. * src/Piece.h
  13188. (toString): New function.
  13189. (Pieces): New type definition.
  13190. * src/Peer.h
  13191. (active): New variable.
  13192. (Peer): Added active.
  13193. (activate): Set active to true.
  13194. (deactivate): Set active to false.
  13195. (isActive): New function.
  13196. (Peers): New type definition.
  13197. * src/DirectDiskAdaptor.cc
  13198. (getFilePath): Use the accessor methods of FileEntry.
  13199. * src/TorrentConsoleDownloadEngine.h
  13200. (afterEachIteration): New function.
  13201. * src/TorrentConsoleDownloadEngine.cc
  13202. (haltRequested): New variable.
  13203. (sendStatistics): Use pieceStorage, btRuntime.
  13204. (afterEachIteration): New function.
  13205. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13206. * src/Directry.h
  13207. (Directory): New function.
  13208. (DirectoryHandle): New type definition.
  13209. * src/BtProgressInfoFile.h: New file.
  13210. * src/RequestMessage.cc: Use pieceStorage.
  13211. * src/BtRuntime.h: New file.
  13212. * src/DefaultBtContext.cc: New file.
  13213. * src/BitfieldMan.h
  13214. (getCompletedLength): New function(private).
  13215. (getCompletedLength): New function.
  13216. (getFilteredCompletedLength): New function.
  13217. * src/BitfieldMan.h
  13218. (getCompletedLength): New function(private).
  13219. (getCompletedLength): New function.
  13220. (getFilteredCompletedLength): New function.
  13221. * src/MultiDiskAdaptor.cc
  13222. (mkdir): New function.
  13223. (openFile): Call mkdir().
  13224. (initAndOpenFile): Call mkdir().
  13225. * src/CancelMessage.h
  13226. (TorrentMan.h): Removed.
  13227. * src/RejectMessage.h
  13228. (TorrentMan.h): Removed.
  13229. * src/DownloadEngineFactory.cc
  13230. (DefaultPieceStorage.h): New include.
  13231. (DefaultPeerStorage.h): New include.
  13232. (DefaultBtAnnounce.h): New include.
  13233. (DefaultBtProgressInfoFile.h): New include.
  13234. (newTorrentConsoleEngine): Rewritten.
  13235. * src/ShareRatioSeedCriteria.h
  13236. (torrentMan): Removed.
  13237. (btContext): New variable.
  13238. (peerStorage): New variable.
  13239. (btRuntime): New variable.
  13240. (evaluate): Use btContext, btRuntime, peerStorage.
  13241. * src/AnnounceTier.h: New file.
  13242. * src/BtAnnounce.h: New file.
  13243. * src/BtRegistry.h: New file.
  13244. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13245. * src/PeerConnection.h (TorrentMan.h): Removed.
  13246. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13247. * src/Util.h
  13248. (slice): Added an argument.
  13249. * src/Util.cc
  13250. (slice): Added an argument to control whether trim is made or not.
  13251. * src/PeerStorage.h: New file.
  13252. * src/BtRegistry.cc: New file.
  13253. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  13254. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  13255. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  13256. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  13257. * src/TorrentRequestInfo.h
  13258. (e): Removed.
  13259. (showFileEntry): Added an argument.
  13260. (getDownloadEngine): Return 0.
  13261. * src/DefaultBtAnnounce.h: New file.
  13262. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  13263. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  13264. * src/PeerMessageFactory.h
  13265. (btContext): New variable.
  13266. (pieceStorage): New variable.
  13267. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  13268. btAnnounce.
  13269. * src/DiskAdaptor.cc
  13270. (DiskAdaptor): Removed topDir.
  13271. (~DiskAdaptor): Removed topDir.
  13272. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  13273. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  13274. * src/File.h (mkdirs): New function.
  13275. * src/DefaultPeerStorage): New file.
  13276. * src/DownloadEngineFactory.h
  13277. (newTorrentConsoleEngine): Use btContext.
  13278. * src/BtContextAwareCommand.cc: New file.
  13279. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  13280. * src/PeerMessage.h
  13281. (btContext): New variable.
  13282. (peerStorage): New variable.
  13283. (pieceStorage): New variable.
  13284. (setBtContext): New function.
  13285. * src/Directry.cc
  13286. (Directory): New function.
  13287. (createDir): Do nothing if name.size() == 0.
  13288. * src/AnnounceList.h
  13289. (AnnounceTier): Removed.
  13290. (AnnounceTiers): Removed.
  13291. * src/DefaultPieceStorage.h: New file.
  13292. * src/Piece.cc (toString): New function.
  13293. To fix typo:
  13294. * src/main.cc (showVersion): Fixed typo.
  13295. To fix compile warning:
  13296. * src/DelegatingPeerListProcessor.cc
  13297. (canHandle): Added "return false".
  13298. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13299. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  13300. make the process of announce request testable.
  13301. * src/TrackerWatcherCommand.h
  13302. (TimeA2.h): Removed.
  13303. (interval): Removed.
  13304. (checkPoint): Removed.
  13305. (createRequestCommand): Added an argument 'url'.
  13306. (TrackerWatherCommand): Removed interval.
  13307. (createCommand): New function.
  13308. * src/DownloadEngineFactory.cc
  13309. (newTorrentConsoleEngine): Updated according to the changes in
  13310. TrackerWatherCommand.
  13311. * src/TorrentMan.cc
  13312. (DelegatingPeerListProcessor.h): New includes.
  13313. (TorrentMan): Added the initialization of announceInterval.
  13314. (isStoppedAnnounceReady): New function.
  13315. (isCompletedAnnounceReady): New function.
  13316. (isDefaultAnnounceReady): New function.
  13317. (isAnnounceReady): New function.
  13318. (getAnnounceUrl): New function.
  13319. (announceStart): New function.
  13320. (announceFailure): New function.
  13321. (announceSuccess): New function.
  13322. (isAllAnnounceFailed): New function.
  13323. (resetAnnounce): New function.
  13324. (processAnnounceResponse): New function.
  13325. (needMorePeerConnection): New function.
  13326. (noMoreAnnounce): New function.
  13327. * src/TrackerUpdateCommand.h
  13328. (getTrackerResponse): int->size_t
  13329. * src/TorrentMan.h
  13330. (isStoppedAnnounceReady): New function.
  13331. (isCompletedAnnounceReady): New function.
  13332. (isDefaultAnnounceReady): New function.
  13333. (announceInterval): New variable.
  13334. (isAnnounceReady): New function.
  13335. (getAnnounceUrl): New function.
  13336. (announceStart): New function.
  13337. (announceFailure): New function.
  13338. (announceSuccess): New function.
  13339. (isAllAnnounceFailed): New function.
  13340. (resetAnnounce): New function.
  13341. (processAnnounceResponse): New function.
  13342. (needMorePeerConnection): New function.
  13343. (noMoreAnnounce): New function.
  13344. * src/TrackerWatcherCommand.cc
  13345. (TrackerWatherCommand): Removed interval and checkPoint.
  13346. (execute): Rewritten.
  13347. (createCommand): New function.
  13348. (createRequestCommand): Rewritten.
  13349. * src/TrackerUpdateCommand.cc
  13350. (MetaFileUtil.h): Removed.
  13351. (DelegatingPeerListProcessor.h): Removed.
  13352. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  13353. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13354. Request -> RequestHandle:
  13355. * src/HttpResponseCommand.h: Request->RequestHandle
  13356. * src/AbstractCommand.cc: Request->RequestHandle
  13357. * src/HttpDownloadCommand.cc: Request->RequestHandle
  13358. * src/HttpRequestCommand.cc: Request->RequestHandle
  13359. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  13360. * src/AbstractCommand.h: Request->RequestHandle
  13361. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  13362. * src/HttpResponseCommand.cc: Request->RequestHandle
  13363. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  13364. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  13365. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  13366. * src/HttpConnection.h: Request->RequestHandle
  13367. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  13368. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  13369. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13370. * src/DownloadCommand.h: Request->RequestHandle
  13371. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  13372. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  13373. * src/HttpRequestCommand.h: Request->RequestHandle
  13374. * src/FtpNegotiateCommand.h: Request->RequestHandle
  13375. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  13376. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  13377. * src/HttpDownloadCommand.h: Request->RequestHandle
  13378. * src/FtpConnection.cc: Request->RequestHandle
  13379. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  13380. * src/UrlRequestInfo.cc: Request->RequestHandle
  13381. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  13382. * src/HttpConnection.h: Request->RequestHandle
  13383. * src/DownloadCommand.cc: Request->RequestHandle
  13384. * src/FtpConnection.h: Request->RequestHandle
  13385. * src/FtpDowndloadCommand.h: Request->RequestHandle
  13386. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  13387. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  13388. * src/Request.h
  13389. (SharedHandle.h): New include.
  13390. (RequestHandle): New type definition.
  13391. (Requests): Redefined.
  13392. To add MULTITRACKER support:
  13393. * src/TrackerWatcherCommand.h
  13394. (createRequestCommand): New function.
  13395. * src/DownloadEngineFactory.cc
  13396. (newTorrentConsoleEngine): Removed req.
  13397. * src/prefs.h
  13398. (PREF_TRACKER_MAX_TRIES): New definition.
  13399. * src/TorrentMan.cc
  13400. (TorrentMan): Removed req. Added trackerNumTry.
  13401. (~TorrentMan): Removed req.
  13402. (setupInternal1): Added announceList.
  13403. * src/TorrentRequestInfo.cc
  13404. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  13405. announces is now specified by PREF_TRACKER_MAX_TRIES.
  13406. * src/main.cc
  13407. (main): Added PREF_TRACKER_MAX_TRIES.
  13408. * src/TorrentMan.h
  13409. (Request.h): Removed.
  13410. (AnnounceList.h): New include.
  13411. (trackerNumTry): New variable.
  13412. (req): Removed.
  13413. (announceList): New variable.
  13414. * src/TrackerWatcherCommand.cc
  13415. (execute): Rewritten.
  13416. (createRequestCommand): New function.
  13417. * src/TrackerUpdateCommand.cc
  13418. (execute): Updated with the use of AnnounceList.
  13419. * src/AnnounceList.cc: New class.
  13420. * src/AnnounceList.h: New class.
  13421. To fix typo:
  13422. * src/prefs.h
  13423. (PREF_MAX_TRIES): max_try->max_tries
  13424. To not to decode "+" as space in URL decode:
  13425. * src/Util.cc
  13426. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  13427. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13428. To add timeout to async name resolution:
  13429. * src/AbstractCommand.h
  13430. (nameResolveFinished): New function. This is not elegant way. It needs
  13431. to be more refined.
  13432. (nameResolverCheck): New variable.
  13433. * src/AbstractCommand.cc
  13434. (AbstractCommand): Added nameResolverCheck.
  13435. (execute): Added the check whether the name resolution has finished.
  13436. (setNameResolverCheck): Set nameResolverCheck to true.
  13437. (disableNameResolverCheck): Set nameResolverCheck to false.
  13438. (nameResolverFinished): New function.
  13439. * src/FtpInitiateConnectionCommand.h
  13440. (nameResolverFinished): New function.
  13441. * src/FtpInitiateConnectionCommand.cc
  13442. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13443. * src/HttpInitiateConnectionCommand.h
  13444. (nameResolverFinished): New function.
  13445. * src/HttpInitiateConnectionCommand.cc
  13446. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  13447. * src/prefs.h
  13448. (PREF_DNS_TIMEOUT): New definition.
  13449. * src/main.cc
  13450. (main): Added PREF_DNS_TIMEOUT.
  13451. To add the support for a non-compact response from a tracker:
  13452. * src/PeerListProcessor.h: New class.
  13453. * src/DefaultPeerListProcessor.h: New class.
  13454. * src/DefaultPeerListProcessor.cc: New class.
  13455. * src/CompactPeerListProcessor.h: New class.
  13456. * src/CompactPeerListProcessor.cc: New class.
  13457. * src/DelegatingPeerListProcessor.h: New class.
  13458. * src/DelegatingPeerListProcessor.cc: New class.
  13459. * src/TorrentMan.cc
  13460. (addPeer): New function(overload).
  13461. (addPeer): Delete unused peers only when new peer is added.
  13462. * src/TorrentMan.h
  13463. (PeerListProcessor.h): Included.
  13464. (Peers): Removed.
  13465. (addPeer): New function(overload).
  13466. * src/TrackerUpdateCommand.cc
  13467. (netinet/in.h): Removed.
  13468. (DelegatingPeerListProcessor.h): Included.
  13469. (execute): Updated to use DelegatingPeerListProcessor.
  13470. To fix the memory leak in TorrentMan::peers:
  13471. * src/PeerAbstractCommand.cc
  13472. (onAbort): Added peer->resetStatus().
  13473. * src/Peer.h
  13474. (resetStatus): Made public.
  13475. To improve the precision of the speed calculation:
  13476. * src/SpeedCalc.h
  13477. (nextInterval): New variable.
  13478. * src/SpeedCalc.cc
  13479. (reset): Added nextInterval.
  13480. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  13481. (changeSw): Set nextInterval to 15 seconds relative to the current
  13482. instant time.
  13483. * src/main.cc
  13484. (showVersion): Updated.
  13485. (showUsage): Updated.
  13486. * Release 0.8.1
  13487. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13488. * src/main.cc
  13489. (showUsage): Commented out --min-segment-size option.
  13490. (main): Commented out --min-segment-size option.
  13491. * Release 0.8.0
  13492. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13493. * src/*.{h,cc}:
  13494. Added an exception to the license which allows linking with OpenSSL.
  13495. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13496. * src/AbstractCommand.cc
  13497. (execute): Check whether the download has finished before checking
  13498. socket status.
  13499. Return true if peerStat->getStatus() == REQUEST_IDLE.
  13500. Do not exit even if no segment is available.
  13501. * src/prefs.h
  13502. (PREF_STARTUP_IDLE_TIME): New definition.
  13503. * src/PeerInteractionCommand.cc
  13504. (executeInternal): Removed max speed limit. Because it performs bad.
  13505. (receiveMessages): Added max speed limit. This was better than above,
  13506. but still a little bit to be desired. Sometimes the download speed
  13507. became much faster than I specified.
  13508. * src/SpeedCalc.h
  13509. (start): New variable.
  13510. (accumulatedLength): New variable.
  13511. (getAvgSpeed): New function.
  13512. * src/SpeedCalc.cc
  13513. (reset): Added start, accumulatedLength.
  13514. (update): Added calculation of an average speed.
  13515. (getAvgSpeed): New function.
  13516. * src/DownloadCommand.h
  13517. (sw): Removed.
  13518. * src/main.cc
  13519. (main): Added PREF_STARTUP_IDLE_TIME.
  13520. * src/PeerStat.h
  13521. (STATUS): Added REQUEST_IDLE.
  13522. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  13523. (getAvgDownloadSpeed): New function
  13524. (requestIdle): New function.
  13525. * src/SegmentMan.h
  13526. (SegmentEntryHandle): New type definition.
  13527. (SegmentEntries): Now holds SegmentEntryHandle.
  13528. (findSlowerSegmentEntry): New funtion.
  13529. * src/SegmentMan.cc
  13530. (save): Updated according to the changes in SegmentEntries.
  13531. (read): Updated according to the changes in SegmentEntries.
  13532. (FindSegmentEntryByIndex): Updated according to the changes in
  13533. SegmentEntries.
  13534. (FindSegmentEntryByCuid): Updated according to the changes in
  13535. SegmentEntries.
  13536. (checkoutSegment): Updated according to the changes in SegmentEntries.
  13537. (onNullBitfield): Updated according to the changes in SegmentEntries.
  13538. Renamed uitr as itr.
  13539. (findSlowerSegmentEntry): New function.
  13540. (getSegment): Updated according to the changes in SegmentEntries.
  13541. Added the feature that cancels the segment with slow server and fast
  13542. one takes it over.
  13543. (cancelSegment): Updated according to the changes in SegmentEntries.
  13544. (getDownloadLength): Updated according to the changes in
  13545. SegmentEntries.
  13546. (init): Assigned 0 to bitfield after deleting it.
  13547. * src/DownloadCommand.cc
  13548. (STARTUP_IDLE_TIME): Removed.
  13549. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  13550. * src/PeerChokeCommand.cc
  13551. (optUnchokingPeer): Updated according to the changes in Peer.
  13552. (ResetDelta): Removed.
  13553. (UploadFaster): Updated according to the changes in Peer.
  13554. (DownloadFaster): Updated according to the changes in Peer.
  13555. (execute): I clarify the meaning of "upload" and "download" here.
  13556. "upload" means the transfer from localhost to remote host.
  13557. "download" means the transfer from remote host to localhost.
  13558. Based on this rule, I swapped orderByUploadRate and
  13559. orderByDownloadRate.
  13560. * src/PeerInteractionCommand.cc
  13561. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  13562. (executeInternal): Removed the argument of
  13563. peerInteraction->sendMessages().
  13564. (receiveMessages): Rewritten download speed limit.
  13565. (sendKeepAlive): Removed peerInteraction->sendMessages().
  13566. * src/HttpResponseCommand.cc
  13567. (handleDefaultEncoding): If file size is unknown in torrent request,
  13568. do not call segmentMan->initBitfield() here.
  13569. Disabled persistent connection feature in torrent request.
  13570. * src/UrlRequestInfo.h
  13571. (UrlRequestInfo): Removed const qualifier from option.
  13572. * src/TorrentMan.h
  13573. (TransferStat): New class.
  13574. (deltaDownloadLength): Removed.
  13575. (deltaUploadLength): Removed.
  13576. (addDeltaDownloadLength): Removed.
  13577. (getDeltaDownloadLength): Removed.
  13578. (resetDeltaDownloadLength): Removed.
  13579. (addDeltaUploadLength): Removed.
  13580. (getDeltaUploadLength): Removed.
  13581. (resetDeltaUploadLength): Removed.
  13582. (addActivePeer): Added peer->activate().
  13583. (deleteActivePeer): Added peer->deactivate().
  13584. (calculateStat): New function.
  13585. * src/TorrentMan.cc
  13586. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  13587. (calculateStat): New function.
  13588. * src/PeerInteraction.h
  13589. (uploadLimit): Removed.
  13590. (option): New variable.
  13591. (setUploadLimit): Removed.
  13592. (getUploadSpeed): Removed.
  13593. (sendMessages): Removed the argument "currentUploadSpeed".
  13594. * src/PeerInteraction.cc
  13595. (prefs.h): Included.
  13596. (PeerInteraction): Removed uploadLimit. Added option.
  13597. (sendMessages): Rewritten upload speed limit.
  13598. (sendHandshake): Removed the argument from sendMessages().
  13599. (sendBitfield): Removed the argument from sendMessages().
  13600. * src/PeerAbstractCommand.cc
  13601. (execute): Commented out the portion of upload limit.
  13602. (onAbort): Removed peer->resetStatus().
  13603. * src/TorrentRequestInfo.cc
  13604. (timeoutSpecified): Declared extern.
  13605. (execute): Set timeout to 180 if timeout is not specified by.
  13606. command-line.
  13607. * src/PieceMessage.cc
  13608. (receivedAction): Added peer->updateDownloadLength().
  13609. Removed peer->addPeerUpload().
  13610. Removed torrentMan->addDeltaDownloadLength().
  13611. (send): Added peer->updateUploadLength().
  13612. Removed peer->addPeerDownload().
  13613. Removed torrentMan->addDeltaUploadLength().
  13614. * src/main.cc
  13615. (timeoutSpecified): New variable.
  13616. (main): Set timeoutSpecified to false.
  13617. If the command-line option "--upload-limit" is specified, then
  13618. timeoutSpecified is set to true. This option will remain in the next
  13619. release, but be deprecated in the future release.
  13620. * src/TorrentRequestInfo.h
  13621. (TorrentRequestInfo): Removed const qualifier from op.
  13622. * src/PeerStat.h
  13623. (uploadSpeed): New variable.
  13624. (PeerStat): Added default value to cuid.
  13625. (calculateUploadSpeed): New function.
  13626. (updateUploadLength): New function.
  13627. (getMaxUploadSpeed): New function.
  13628. (getAvgUploadSpeed): New function.
  13629. (reset): Added uploadSpeed. Set status to IDLE.
  13630. * src/TorrentDownloadEngine.h
  13631. (cp): Declared as Time.
  13632. (sessionDownloadLengthArray): Removed.
  13633. (sessionUploadLengthArray): Removed.
  13634. (currentCp): Removed.
  13635. (lastCalcStat): New variable
  13636. (lastElapsed): Removed.
  13637. (sessionDownloadLength): Removed.
  13638. (calculateStat): New function.
  13639. * src/TorrentDownloadEngine.cc
  13640. (initStatistics): Removed lastElapsed, cp[],
  13641. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  13642. currentCp, sessionDownloadLength.
  13643. Added cp.reset() and lastCalcStat.reset().
  13644. (calculateSpeed): Changed the name of the argument.
  13645. (calculateStatistics): Rewritten.
  13646. (calculateStat): New function.
  13647. * src/Peer.h
  13648. (PeerStat.h): Included.
  13649. (peerUpload): Removed.
  13650. (peerDownload): Removed.
  13651. (peerStat): New variable.
  13652. (sessionUploadLength): New variable.
  13653. (sessionDownloadLength): New variable.
  13654. (deltaUpload): Removed.
  13655. (deltaDownload): Removed.
  13656. (resetStatus): Made private.
  13657. (Peer): Added sessionUploadLength, sessionDownloadLength.
  13658. Removed peerUpload, peerDownload.
  13659. (updateUploadLength): New function.
  13660. (addDeltaUpload): Removed.
  13661. (updateDownloadLength): New function.
  13662. (resetDeltaUpload): Removed.
  13663. (getDeltaUpload): Removed.
  13664. (addDeltaDownload): Removed.
  13665. (calculateUploadSpeed): New function.
  13666. (resetDeltaDownload): Removed.
  13667. (getDeltaDownload): Removed.
  13668. (calculateDownloadSpeed): New function.
  13669. (getSessionUploadLength): New function.
  13670. (getSessionDownloadLength): New function.
  13671. (activate): New function.
  13672. (deactivate): New function.
  13673. (addPeerUpload): Removed.
  13674. (setPeerUpload): Removed.
  13675. (getPeerUpload): Removed.
  13676. (addPeerDownload): Removed.
  13677. (setPeerDownload): Removed.
  13678. (getPeerDownload): Removed.
  13679. * src/Peer.cc
  13680. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  13681. * src/MetalinkRequestInfo.h
  13682. (MetalinkRequestInfo): Removed const qualifier from op.
  13683. * src/RequestInfo.h
  13684. (op): Removed const qualifier.
  13685. (RequestInfo): Removed const qualifier from op.
  13686. * src/prefs.h
  13687. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  13688. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  13689. * src/PeerInteractionCommand.cc
  13690. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  13691. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  13692. * src/PeerInteraction.cc
  13693. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  13694. * src/main.cc
  13695. (showUsage): Updated the description of "--lowest-speed-limit" option.
  13696. Added the description of "--max-download-limit" option.
  13697. Removed the description of "--upload-limit" option.
  13698. Added the description of "--max-upload-limit" option.
  13699. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  13700. Added "--max-download-limit" option and "--max-upload-limit" option.
  13701. Added the warning message if "--upload-limit" option is used.
  13702. * src/DownloadCommand.cc
  13703. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  13704. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13705. To rewrite segment download mechanism for HTTP/FTP download.
  13706. Use BitfieldMan to manage segment download.
  13707. * src/HttpResponseCommand.h
  13708. (executeInternal): Pass the reference of segment.
  13709. * src/AbstractCommand.cc
  13710. (prepareForRetry): Call segmentMan->cancelSegment here.
  13711. (onAbort): Call segmentMan->cancelSegment here.
  13712. * src/HttpDownloadCommand.cc
  13713. (prepareForNextSegment): New function.
  13714. * src/DownloadEngineFactory.cc
  13715. (newConsoleEngine): Removed splitter.
  13716. (newTorrentConsoleEngine): Removed splitter.
  13717. * src/Request.h
  13718. (segment): Renamed from seg.
  13719. * src/FtpInitiateConnectionCommand.h
  13720. (executeInternal): Pass the reference of segment.
  13721. * src/AbstractCommand.h
  13722. (executeInternal): Pass the reference of segment.
  13723. * src/pref.h
  13724. (PREF_SEGMENT_SIZE): New definition.
  13725. * src/HttpProxyRequestCommand.h
  13726. (executeInternal): Pass the reference of segment.
  13727. * src/HttpResponseCommand.cc
  13728. (checkResponse): Allowed status 206 when a request range starts 0.
  13729. (handleDefaultEncoding): Rewritten the code related to Segment.
  13730. (handleOtherEncoding): Rewritten the code related to Segment.
  13731. * src/SegmentMan.h
  13732. (SegmentEntry): New class.
  13733. (SegmentEntries): New type definition.
  13734. (bitfield): New variable.
  13735. (usedSegmentEntries): New variable.
  13736. (onNullBitfield): New function.
  13737. (checkoutSegment): New function.
  13738. (segments): Removed.
  13739. (splitter): Removed.
  13740. (unregisterId): Removed.
  13741. (getSegment): New function(overload)
  13742. (getDownloadedSize): Removed.
  13743. (cancelSegment): New function.
  13744. (completeSegment): New function.
  13745. (initBitfield): New function.
  13746. (hasSegment): New function.
  13747. (getDownloadLength): New function.
  13748. * src/BitfieldMan.h
  13749. (getStartIndex): New function.
  13750. (getEndIndex): New function.
  13751. (getMissingUnusedIndex): New function(overload).
  13752. (getSparseMissingUnusedIndex): New function.
  13753. * src/BitfieldMan.cc
  13754. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  13755. (getMissingUnusedIndex): New function(overload).
  13756. (Range): New class.
  13757. (getStartIndex): New function.
  13758. (getEndIndex): New function.
  13759. (getSparseMissingUnusedIndex): New function.
  13760. (isBitSetInternal): Return false if the given index is less than 0.
  13761. * src/HttpInitiateConnectionCommand.h
  13762. (executeInternal): Pass the reference of segment.
  13763. * src/FtpNegotiateCommand.h
  13764. (executeInternal): Pass the reference of segment.
  13765. * src/FtpNegotiateCommand.cc
  13766. (recvSize): Initialize bitfield here.
  13767. * src/FtpTunnelResponseCommand.h
  13768. (executeInternal): Pass the reference of segment.
  13769. * src/HttpConnection.cc
  13770. (createRequest): Rewritten range header processing.
  13771. * src/DownloadCommand.h
  13772. (executeInternal): Pass the reference of segment.
  13773. (prepareForRetry): Removed.
  13774. (prepareForNextSegment): Added an argument segment. Made it a virtual
  13775. function.
  13776. * src/main.cc
  13777. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  13778. * src/SegmentMan.cc
  13779. (SegmentMan): Added bitfield. Removed splitter.
  13780. (~SegmentMan): Added bitfield. Removed splitter.
  13781. (unregisterId): Removed.
  13782. (getSegment): Rewritten.
  13783. (updateSegment): Rewritten.
  13784. (save): Rewritten.
  13785. (read): Rewritten.
  13786. (finished): Rewritten.
  13787. (getDownloadedSize): Removed.
  13788. (initBitfield): New function.
  13789. (FindSegmentEntryByIndex): New function object.
  13790. (FindSegmentEntryByCuid): New function object.
  13791. (checkoutSegment): New function.
  13792. (onNullBitfield): New function.
  13793. (getSegment): New function(overload).
  13794. (CancelSegment): New function object.
  13795. (cancelSegment): New function.
  13796. (completeSegment): New function.
  13797. (hasSegment): New function.
  13798. (getDownloadLength): New function.
  13799. * src/FtpInitiateConnectionCommand.cc
  13800. (executeInternal): Load .aria2 file after hostname resolution finishes.
  13801. * src/Segment.h: Rewritten.
  13802. * src/Segment.cc (operator<<): New function.
  13803. * src/HttpDownloadCommand.h
  13804. (prepareForNextSegment): New function.
  13805. * src/Request.cc
  13806. (resetUrl): Made segment null.
  13807. * src/DownloadEngine.cc
  13808. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  13809. * src/HttpProxyRequestCommand.h
  13810. (executeInternal): Pass the reference of segment.
  13811. * src/DownloadCommand.cc
  13812. (executeInternal): Rewritten the code related to Segment.
  13813. (prepareForRetry): Removed.
  13814. (prepareForNextSegment): Rewritten.
  13815. * src/FtpTunnelResponseCommand.h
  13816. (executeInternal): Pass the reference of segment.
  13817. To add HTTP 1.1 persistent connection support(experimental)
  13818. * src/HttpRequestCommand.cc
  13819. (executeInternal): Disable keep alive if it is disabled by
  13820. configuration.
  13821. * src/Request.h
  13822. (keepAlive): New variable.
  13823. (isKeepAlive): New function.
  13824. (setKeepAlive): New function.
  13825. * src/pref.h
  13826. (PREF_HTTP_KEEP_ALIVE): New definition.
  13827. * src/HttpResponseCommand.cc
  13828. (executeInternal): Check the remote server supports keep alive.
  13829. * src/HttpConnection.cc
  13830. (createRequest): Send "Connection: close" only if keep alive is
  13831. disabled.
  13832. * src/main.cc
  13833. (main):
  13834. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  13835. To add max download speed limit:
  13836. * src/pref.h
  13837. (PREF_MAX_SPEED_LIMIT): New definition.
  13838. * src/PeerInteractionCommand.cc
  13839. (executeInternal): Added max download speed limit. Not tested yet.
  13840. * src/SegmentMan.h
  13841. (PeerStats): New type definition.
  13842. (peerStats): New variable.
  13843. (registerPeerStat): New function.
  13844. (FindPeerStat): New function object.
  13845. (getPeerStat): New function.
  13846. (calculateDownloadSpeed): New function.
  13847. * src/SpeedCalc.h: New class.
  13848. * src/SpeedCalc.cc: New class.
  13849. * src/main.cc
  13850. (main):
  13851. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  13852. download speed is not restricted).
  13853. * src/PeerStat.h: New class.
  13854. * src/SegmentMan.cc
  13855. (registerPeerStat): New function.
  13856. (calculateDownloadSpeed): New function.
  13857. * src/DownloadCommand.cc
  13858. (STARTUP_IDLE_TIME): New definition.
  13859. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  13860. downloadStart.
  13861. (~DownloadCommand): Call peerStat->downloadStop.
  13862. (executeInternal): Added download speed limitter. Rewritten lowest
  13863. speed limitter.
  13864. * src/HttpConnection.cc
  13865. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  13866. * src/AbstractCommand.cc
  13867. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  13868. Added hostname to the error message.
  13869. * src/ConsoleDownloadEngine.cc
  13870. (calculateStatistics): Initialize psize with dlSize.
  13871. * src/PieceMessage.cc
  13872. (receivedAction): Do not call peerInteraction->abortPiece here.
  13873. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  13874. * src/BitfieldMan.h
  13875. (clearAllUseBit): New function.
  13876. (setAllUseBit): New function.
  13877. * src/BitfieldMan.cc
  13878. (clearAllBit): Do not clear useBitfield here.
  13879. (clearAllUseBit): New function.
  13880. (setAllUseBit): New function.
  13881. * src/Piece.cc
  13882. (clearAllBlock): Call bitfield->clearAllUseBit().
  13883. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13884. To make filename URL-decoded:
  13885. * src/HttpResponseCommand.h: Updated doc.
  13886. * src/HttpResponseCommand.cc
  13887. (determinFilename): Made filename URL-decoded.
  13888. * src/FtpInitiateConnectionCommand.cc
  13889. (executeInternal): Made filename URL-decoded.
  13890. * src/Util.h (urldecode): New function.
  13891. * src/Util.cc (urldecode): New function.
  13892. To fix a bug that caused assertion failure in ares_strerror:
  13893. * src/NameResolver.cc (callback): Fixed the bug.
  13894. * Release 0.7.3
  13895. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13896. To add --seed-time and --seed-ratio command-line option:
  13897. * src/Option.h (getAsDouble): New function.
  13898. * src/Option.cc (getAsDouble): New function.
  13899. * src/SeedCheckCommand.h: New class.
  13900. * src/SeedCheckCommand.cc: New class.
  13901. * src/DownloadEngineFactory.cc
  13902. (SeedCheckCommand.h): Included.
  13903. (UnionSeedCriteria.h): Included.
  13904. (TimeSeedCriteria.h): Included.
  13905. (ShareRatioSeedCriteria.h): Included.
  13906. (newTorrentConsoleEngine): Added the processing of seed option.
  13907. * src/SeedCriteria.h: New class.
  13908. * src/ShareRatioSeedCriteria.h: New class.
  13909. * src/TimeSeedCriteria.h: New class.
  13910. * src/UnionSeedCriteria.h: New class.
  13911. * src/prefs.h
  13912. (PREF_SEED_TIME): New definition.
  13913. (PREF_SEED_RATIO): New definition.
  13914. * src/main.cc
  13915. (showUsage): Added --seed-time and --seed-ratio option.
  13916. (main): Added --seed-time and --seed-ratio option.
  13917. Made default log file name "/dev/null".
  13918. * src/SharedHandle.h
  13919. (SharedHandle): Copy constructor. Made it assignable from the
  13920. SharedHandle of the subclasses.
  13921. (operator=): Made it assignable from the SharedHandle of the
  13922. subclasses.
  13923. (getRefCount): New function.
  13924. To add notice log level and the switch to write log to stdout. This
  13925. switch is configurable per log level.
  13926. * src/Logger.h
  13927. (notice): New function.
  13928. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  13929. constant.
  13930. * src/LogFactory.cc
  13931. (getInstance): The use of NullLogger was removed. A log message with
  13932. notice log level was made written to stdout along with log file.
  13933. * src/NullLogger.h
  13934. (notice): New function.
  13935. * src/SimpleLogger.h
  13936. (writeHeader): Added the 'file' argument.
  13937. (writeLog): Added the 'file' argument.
  13938. (writeFile): New function.
  13939. (stdoutField): New variable.
  13940. (SimpleLogger): Removed the default constructor.
  13941. (SimpleLogger): Made the default value of logfile 0.
  13942. (debug): Added 'virtual' keyword.
  13943. (info): Added 'virtual' keyword.
  13944. (warn): Added 'virtual' keyword.
  13945. (error): Added 'virtual' keyword.
  13946. (notice): New function.
  13947. (setStdout): New function.
  13948. * src/SimpleLogger.cc
  13949. (WRITE_LOG): Replaced writeLog with writeFile.
  13950. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  13951. (SimpleLogger): Removed the default constructor.
  13952. (setStdout): New function.
  13953. (writeLog): Added the handling of NOTICE log level.
  13954. (writeFile): New function.
  13955. (notice): New function.
  13956. * src/TorrentMan.h: Updated doc.
  13957. * src/BitfieldMan.h: Updated doc.
  13958. * src/TrackerWatcherCommand.cc
  13959. (execute): Return true if error occurred in the request to the tracker
  13960. and halt is requested.
  13961. * src/TrackerUpdateCommand.cc
  13962. (execute): Return true if error occurred in the request to the tracker
  13963. and halt is requested.
  13964. To call onDownloadComplete from TorrentMan::completePiece(), not from
  13965. DownloadEngine:
  13966. * src/TorrentConsoleDownloadEngine.h
  13967. (onSelectiveDownloadingCompletes): Removed.
  13968. * src/TorrentConsoleDownloadEngine.cc
  13969. (onSelectiveDownloadingCompletes): Removed.
  13970. * src/TorrentDownloadEngine.h
  13971. (onEndOfRun): Added 'virtual' keyword.
  13972. (afterEachIteration): Removed.
  13973. (onSelectiveDownloadingCompletes): Removed.
  13974. * src/TorrentDownloadEngine.cc
  13975. (onEndOfRun): Removed filenameFixed.
  13976. (afterEachIteration): Removed.
  13977. * src/TorrentMan.cc
  13978. (completePiece): Call onDownloadComplete here.
  13979. (onDownloadComplete): Added 2 log messages.
  13980. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13981. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  13982. * src/NameResolver.h: Added the prototype declaration of callback().
  13983. To support c-ares library:
  13984. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13985. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13986. * src/FtpInitiateConnectionCommand.h:
  13987. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13988. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13989. * src/HttpInitiateConnectionCommand.h:
  13990. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13991. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  13992. Added thes upport of c-ares's ares_strerror(the idea came from patch
  13993. #1542285 by tizianomueller)
  13994. * src/HttpInitiateConnectionCommand.cc:
  13995. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13996. * src/FtpInitiateConnectionCommand.cc:
  13997. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  13998. * src/DownloadEngine.h:
  13999. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14000. * src/DownloadEngine.cc:
  14001. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14002. To fix the bug that causes compilation failure with metalink-support
  14003. disabled(bug#1543587):
  14004. * src/main.cc: Fixed with the patch by tizianomueller.
  14005. * Release 0.7.2
  14006. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14007. * src/main.cc
  14008. (main): Added a message to inform users that aria2 is starting to
  14009. verify checksum.
  14010. * src/RequestInfo.cc
  14011. (printDownloadAbortMessage): Added a message to inform users that
  14012. transfer can be resumed.
  14013. * src/FeatureConfig.cc
  14014. (FEATURE_ASYNC_DNS): New definition.
  14015. (FeatureConfig): Added aysnc DNS entry.
  14016. To replace CommandUuid with Command* in SocketEntry and
  14017. NameResolverEntry:
  14018. * src/DownloadEngine.h
  14019. (CommandUuids): Removed.
  14020. (SocketEntry::commandUuid): Removed.
  14021. (SocketEntry::command): New variable.
  14022. (SocketEntry::SocketEntry): Updated.
  14023. (SocketEntry::operator==): Updated.
  14024. (NameResolverEntry::commandUuid): Removed.
  14025. (NameResolverEntry::command): New variable.
  14026. (NameResolverEntry::NameResolverEntry): Updated.
  14027. (NameResolverEntry::operator==): Updated.
  14028. (waitData): Changed the argument type.
  14029. (addSocketForReadCheck): Changed the argument type.
  14030. (deleteSocketForReadCheck): Changed the argument type.
  14031. (addSocketForWriteCheck): Changed the argument type.
  14032. (deleteSocketForWriteCheck): Changed the argument type.
  14033. (addNameResolverCheck): Changed the argument type.
  14034. (deleteNameResolverCheck): Changed the argument type.
  14035. * src/DownloadEngine.cc
  14036. (FindCommand): Removed.
  14037. (run): Removed activeUuid. Added activeCommands instead.
  14038. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14039. (AccumulateActiveCommand): New function object.
  14040. (waitData): Use AccumulateActiveCommand.
  14041. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14042. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14043. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14044. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14045. (addNameResolverCheck): Use Command instead of CommandUuid.
  14046. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14047. * src/AbstractCommand.cc
  14048. (disableReadCheckSocket): Updated according to the changes in
  14049. DownloadEngine.
  14050. (setReadCheckSocket): Updated according to the changes in
  14051. DownloadEngine.
  14052. (disableWriteCheckSocket): Updated according to the changes in
  14053. DownloadEngine.
  14054. (setWriteCheckSocket): Updated according to the changes in
  14055. DownloadEngine.
  14056. (setNameResolverCheck): Updated according to the changes in
  14057. DownloadEngine.
  14058. (disableNameResolverCheck): Updated according to the changes in
  14059. DownloadEngine.
  14060. * src/AbstractCommand.cc
  14061. (disableReadCheckSocket): Updated according to the changes in
  14062. DownloadEngine.
  14063. (setReadCheckSocket): Updated according to the changes in
  14064. DownloadEngine.
  14065. (disableWriteCheckSocket): Updated according to the changes in
  14066. DownloadEngine.
  14067. (setWriteCheckSocket): Updated according to the changes in
  14068. DownloadEngine.
  14069. * release 0.7.1
  14070. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14071. To handle the case where some BitTorrent tracker requires all letters
  14072. except for [A-Za-z0-9] is URL encoded.
  14073. * src/Util.h
  14074. (torrentUrlencode): New function.
  14075. * src/Util.cc
  14076. (ctype.h): Included.
  14077. (torrentUrlencode): New function.
  14078. * src/TrackerWatcherCommand.cc
  14079. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14080. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14081. To add asynchronous DNS support(libares):
  14082. * src/AbstractCommand.h
  14083. (setNameResolverCheck): New function.
  14084. (disableNameResolverCheck): New function
  14085. (resolveHostname): New function.
  14086. * src/AbstractCommand.cc
  14087. (setNameResolverCheck): New function.
  14088. (disableNameResolverCheck): New function
  14089. (resolveHostname): New function.
  14090. * src/FtpInitiateConnectionCommand.h
  14091. (nameResolver): New function.
  14092. * src/FtpInitiateConnectionCommand.cc
  14093. (Util.h): Included.
  14094. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14095. disableWriteCheckSocket.
  14096. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14097. (executeInternal): Added async DNS support.
  14098. * src/HttpInitiateConnectionCommand.h
  14099. (nameResolver): New function.
  14100. * src/HttpInitiateConnectionCommand.cc
  14101. (DlRetryEx.h): Included.
  14102. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14103. disableWriteCheckSocket.
  14104. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14105. (executeInternal): Added async DNS support.
  14106. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14107. by extern "C" declaration.
  14108. * src/NameResolver.cc: New class.
  14109. * src/Util.h:
  14110. (isNumberAndDotsNotation): New function
  14111. * src/Util.cc
  14112. (isNumberAndDotsNotation): New function.
  14113. * src/DownloadEngine.h
  14114. (NameResolver.h): Included.
  14115. (NameResolverEntry): New class.
  14116. (NameResolverEntries): New type definition.
  14117. (addNameResolverCheck): New function.
  14118. (deleteNameResolverCheck): New function.
  14119. * src/DownloadEngine.cc
  14120. (run): Initialize cp with 0.
  14121. (SetDescriptor::operator()): Added for NameResolverEntry.
  14122. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14123. (waitData): Check nameResolver entries.
  14124. (updateFdSet): Update fds in nameResolver entries.
  14125. (addNameResolverCheck): New function.
  14126. (deleteNameResolverCheck): new function.
  14127. * src/PeerInteractionCommand.cc
  14128. (executeInternal): Fixed wrong socket handling.
  14129. * src/main.cc
  14130. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14131. * src/Util.cc
  14132. (fileChecksum): Removed the call to ctx.digestReset().
  14133. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14134. * po/ru.po: Azamat sent me Russian translation.
  14135. * src/FtpNegotiateCommand.cc
  14136. (recvGreeting): Call disableWriteCheckSocket just after
  14137. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14138. (recvRetr): Recognized status code 125 as a acceptable response code.
  14139. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14140. case-insesitive filesystem(BUG#1531057).
  14141. * src/Time.h: Renamed as TimeA2.h.
  14142. * src/Time.cc: Renamed as TimeA2.cc.
  14143. * src/TimeA2.h: New class.
  14144. * src/TimeA2.cc: New class.
  14145. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14146. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14147. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14148. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14149. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14150. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14151. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14152. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14153. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14154. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14155. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14156. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14157. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14158. * release 0.7.0
  14159. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14160. * src/PeerChokeCommand.h
  14161. (PeerChokeCommand): Rearranged the arguments.
  14162. * src/PeerChokeCommand.cc
  14163. (PeerChokeCommand): Rearranged the arguments.
  14164. * src/MetalinkEntry.h
  14165. (Checksum.h): Included.
  14166. (md5): Removed.
  14167. (sha1): Removed.
  14168. (checksum): New variable.
  14169. (operator=): Updated.
  14170. (check): Removed.
  14171. * src/prefs.h
  14172. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14173. (PREF_FOLLOW_TORRENT): New definition.
  14174. (PREF_SELECT_FILE): New definition.
  14175. (PREF_FOLLOW_METALINK): New definition.
  14176. * src/MetalinkResource.h
  14177. (TYPE_HTTPS): Added to enum TYPE.
  14178. * src/TorrentMan.cc
  14179. (~TorrentMan): Rewritten.
  14180. * src/MultiDiskWriter.cc
  14181. (MultiDiskAdaptor): Updated according to the changes in
  14182. MessageDigestContext.
  14183. (~MultiDiskAdaptor): Updated according to the changes in
  14184. MessageDigestContext.
  14185. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14186. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14187. * src/Util.h
  14188. (fileChecksum): Updated according to the changes in
  14189. MessageDigestContext.
  14190. * src/Util.cc
  14191. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14192. (fileChecksum): Updated according to the changes in
  14193. MessageDigestContext.
  14194. * src/messageDigest.h: Rewritten.
  14195. * src/MetalinkEntry.cc
  14196. (check): Removed.
  14197. (Supported): Updated.
  14198. (dropUnsupportedResource): Fixed a memory leak.
  14199. * src/ShaVisitor.cc
  14200. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14201. (~ShaVisitor): Updated according to the changes in
  14202. MessageDigestContext.
  14203. (visit): Updated according to the changes in MessageDigestContext.
  14204. * src/main.cc
  14205. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14206. command-line option added.
  14207. * src/DownloadEngine.h
  14208. (SocketEntry): New class.
  14209. (SocketEntries): New definition.
  14210. (PairFind): Removed.
  14211. (SockCmdMap): Removed.
  14212. * src/DownloadEngine.cc
  14213. (DownloadEngine): Rewritten.
  14214. (~DownloadEngine): Rewritten.
  14215. (run): Renamed activeCommandUuids as activeUuids.
  14216. (SetDescriptor): Rewritten.
  14217. (AccumulateActiveCommandUuid): Removed.
  14218. (AccumulateActiveUuid): New function object.
  14219. (waitData): Rewritten.
  14220. (updateFdSet): Rewritten.
  14221. (addSocket): Rewritten.
  14222. (deleteSocket): Rewritten.
  14223. (addSocketForReadCheck): Rewritten.
  14224. (deleteSocketForReadCheck): Rewritten.
  14225. (addSocketForWriteCheck): Rewritten.
  14226. (deleteSocketForWriteCheck): Rewritten.
  14227. * src/Xml2MetalinkProcessor.cc
  14228. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14229. * src/DownloadCommand.cc
  14230. (executeInternal): Added the check routine for lowest speed limit.
  14231. * src/AbstractDiskWriter.cc
  14232. (AbstractDiskWriter): Updated according to the changes in
  14233. MessageDigestContext.
  14234. (~AbstractDiskWriter): Updated according to the changes in
  14235. MessageDigestContext.
  14236. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14237. * src/RequestInfo.h: New class.
  14238. * src/UrlRequestInfo.h: New class.
  14239. * src/UrlRequestInfo.cc: New class.
  14240. * src/TorrentRequestInfo.h: New class.
  14241. * src/TorrentRequestInfo.cc: New class.
  14242. * src/MetalinkRequestInfo.h: New class.
  14243. * src/MetalinkRequestInfo.cc: New class.
  14244. * src/Checksum.h: New class.
  14245. * src/DownloadEngineFactory.h: New class.
  14246. * src/DownloadEngineFactory.cc: New class.
  14247. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14248. * src/Option.h
  14249. (getAsBool): New function.
  14250. * src/Option.cc
  14251. (prefs.h): Included.
  14252. (defined): 0-length value is now recognized as undefined.
  14253. (getAsInt): Rewritten.
  14254. (getAsLLInt): Rewritten.
  14255. (getAsBool): New function.
  14256. * src/FeatureConfig.h: Rewritten.
  14257. * src/FeatureConfig.cc: Rewritten.
  14258. * src/prefs.h
  14259. (PREF_STDOUT_LOG): New definition.
  14260. (PREF_LOG): New definition.
  14261. (PREF_DIR): New definition.
  14262. (PREF_OUT): New definition.
  14263. (PREF_SPLIT): New definition.
  14264. (PREF_DAEMON): New definition.
  14265. (PREF_REFERER): New definition.
  14266. (PREF_TORRENT_FILE): New definition.
  14267. (PREF_LISTEN_PORT): New definition.
  14268. (PREF_METALINK_FILE): New definition.
  14269. (PREF_METALINK_VERSION): New definition.
  14270. (PREF_METALINK_LANGUAGE): New definition.
  14271. (PREF_METALINK_OS): New definition.
  14272. (PREF_METALINK_SERVERS): New definition.
  14273. * src/main.cc
  14274. (main): Following command-line parameters are now put into Option
  14275. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  14276. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  14277. metalinkLanguage, metalinkOs, metalinkServers
  14278. To fix the bug that aria2 can not handle http response header properly.
  14279. * src/HttpHeader.cc
  14280. (put): Made name lowercased.
  14281. (defined): Made name lowercased.
  14282. (getFirst): Made name lowercased.
  14283. (get): Made name lowercased.
  14284. (getFirstAsInt): Rewritten.
  14285. (getFirstAsLLInt): Rewritten.
  14286. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14287. * src/TorrentMan.h:
  14288. (advertisePiece): Updated doc.
  14289. (getAdvertisedPieceIndexes): Updated doc.
  14290. (removeAdvertisedPiece); New function.
  14291. * src/TorrentMan.cc
  14292. (FindElapsedHave): New function object.
  14293. (removeAdvertisedPiece): New function.
  14294. * src/HaveEraseCommand.h: New class.
  14295. * src/HaveEraseCommand.cc: New class.
  14296. * src/FeatureConfig.h: New class.
  14297. * src/FeatureConfig.cc: New class.
  14298. * src/Request.h
  14299. (defaultPorts): Removed.
  14300. * src/Request.cc
  14301. (FeatureConfig.h): Included.
  14302. (Request): Removed the statements related to defaultPorts.
  14303. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  14304. A default port number is now retrieved from FeatureConfig.
  14305. * src/main.cc
  14306. (HaveEraseCommand.h): Included.
  14307. (showVersion): Added the output of feature list.
  14308. (main): Added HaveEraseCommand to command queue in BitTorrent
  14309. downloading.
  14310. * src/PeerInteractionCommand.h
  14311. (chokeCheckPoint): Commented out.
  14312. (periodicExecPoint): New variable.
  14313. * src/PeerInteractionCommand.cc
  14314. (executeInternal): Following methods are now called in at least every
  14315. 0.5 seconds to reduce CPU usage:
  14316. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  14317. checkHave(), sendKeepAlive().
  14318. (checkLongTimePeerChoking): Commented out.
  14319. * src/BitfieldMan.h
  14320. (getNthBitIndex): Changed the method signature.
  14321. (getMissingIndexRandomly): Changed the method signature.
  14322. * src/BitfieldMan.cc
  14323. (getNthBitIndex): Rewritten
  14324. (getMissingIndexRandomly): Rewritten.
  14325. (hasMissingPiece): Rewritten.
  14326. (getMissingIndex): Refactored.
  14327. (getMissingUnusedIndex); Refactored.
  14328. (getMissingIndex): Refactored.
  14329. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14330. * src/PeerMessage.h
  14331. (Piece.h): Included.
  14332. (SharedHandle.h): Included.
  14333. (invalidate): New variable.
  14334. (uploading): New variable.
  14335. (isInvalidate): New function.
  14336. (isUploading): New function.
  14337. (onPush): New function.
  14338. (onChoked): New function.
  14339. (onCanceled): New function.
  14340. (onAbortPiece): New function.
  14341. (PeerMessageHandle): New type definition.
  14342. * src/PeerMessage.cc
  14343. (PeerMessage): Added the initialization for invalidate and uploading.
  14344. * src/CancelMessage.h
  14345. (CancelMessage): Rewritten.
  14346. * src/RejectMessage.h
  14347. (RejectMessage): Rewritten.
  14348. * src/Metalinker.h
  14349. (operator=): Defined.
  14350. * src/MetaEntry.h
  14351. (operator=): Defined.
  14352. * src/MetalinkResource.h
  14353. (operator=): Defined.
  14354. * src/AllowedFastMessage.h
  14355. (AllowedFastMessage): Rewritten.
  14356. * src/HandshakeMessage.h
  14357. (HandshakeMessage): New function(overload).
  14358. * src/HandshakeMessage.cc
  14359. (HandshakeMessage): Rewritten.
  14360. (init): New function.
  14361. * src/HaveMessage.h
  14362. (HaveMessage): Rewritten.
  14363. * src/Time.h
  14364. (operator=): Defined the function body here.
  14365. * src/Time.cc
  14366. (operator=): Removed.
  14367. * src/SocketCore.h
  14368. (operator==): Defined here.
  14369. (operator!=): Defined here.
  14370. (operator<): Defined here.
  14371. * src/SocketCore.cc
  14372. (operator==): Removed.
  14373. (operator<): Removed.
  14374. * src/BitfieldMan.h
  14375. (operator=): Defined the function body here.
  14376. * src/BitfieldMan.cc
  14377. (operator=): Removed.
  14378. * src/TorrentMan.h
  14379. (deleteErrorPeer): Removed.
  14380. (deleteUnusedPeer); New function.
  14381. * src/TorrentMan.cc
  14382. (addPeer): Call deleteUnusedPeer.
  14383. (deleteErrorPeer): Removed.
  14384. (deleteUnusedPeer): New function.
  14385. * src/PeerAbstractCommand.h
  14386. (setNoCheck): New function.
  14387. (noCheck): New variable.
  14388. * src/PeerAbstractCommand.cc
  14389. (PeerAbstractCommand): Added the initialization of noCheck.
  14390. (execute): Added a check for noCheck.
  14391. (setNoCheck): New function.
  14392. * src/Util.h
  14393. (stdio.h): Included.
  14394. * src/Util.cc
  14395. (unistd.h): Included.
  14396. * src/DefaultDiskWriter.cc
  14397. (unistd.h): Included.
  14398. * src/Peer.h
  14399. (operator==): Defined the function body here.
  14400. (operator!=): Defined the function body here.
  14401. * src/Peer.cc
  14402. (operator==): Removed.
  14403. (operator!=): Removed.
  14404. * src/Piece.h
  14405. (Piece): Defined the function body here(copy constructor).
  14406. (operator=): Defined the function body here.
  14407. (operator==): Defined the function body here.
  14408. * src/Piece.cc
  14409. (Piece): Removed(copy constructor).
  14410. (operator=): Removed.
  14411. (operator==): Removed.
  14412. * src/PeerMessageUtil.h
  14413. (ChokeMessage.h): Removed.
  14414. (UnchokeMessage.h): Removed.
  14415. (InterestedMessage.h): Removed.
  14416. (NotInterestedMessage.h): Removed.
  14417. (HaveMessage.h): Removed.
  14418. (BitfieldMessage.h): Removed.
  14419. (RequestMessage.h): Removed.
  14420. (CancelMessage.h): Removed.
  14421. (PieceMessage.h): Removed.
  14422. (HandshakeMessage.h): Removed.
  14423. (KeepAliveMessage.h): Removed.
  14424. (PortMessage.h): Removed.
  14425. (HaveAllMessage.h): Removed.
  14426. (HaveNoneMessage.h): Removed.
  14427. (PeerConnection.h): Removed.
  14428. (HandshakeMessage.h): Included.
  14429. * src/BitfieldMessage.h
  14430. (init): New function.
  14431. (BitfieldMessage): Rewritten.
  14432. (BitfieldMessage): New function(overload).
  14433. * src/RequestSlot.h
  14434. (operator=): Defined the function body here.
  14435. (operator==): Defined the function body here.
  14436. * src/RequestSlot.cc
  14437. (operator=): Removed.
  14438. (operator==): Removed.
  14439. To remove the dependency on the PeerMessage subclass from
  14440. PeerInteraction:
  14441. * src/PeerMessageFactory.h: New class.
  14442. * src/PeerMessageFactory.cc: New class.
  14443. * src/SimplePeerMessage.cc
  14444. (send): If invalidate is true then do nothing.
  14445. * src/PeerInteractionCommand.cc
  14446. (HandshakeMessage.h): Included.
  14447. (KeepAliveMessage.h): Included.
  14448. (ChokeMessage.h): Included.
  14449. (UnchokeMessage.h): Included.
  14450. (HaveMessage.h): Included.
  14451. (executeInternal): Call setNoCheck().
  14452. Removed setWriteCheckSocket(socket).
  14453. * src/PeerInteraction.h
  14454. (ChokeMessage.h): Removed.
  14455. (UnchokeMessage.h): Removed.
  14456. (InterestedMessage.h): Removed.
  14457. (NotInterestedMessage.h): Removed.
  14458. (HaveMessage.h): Removed.
  14459. (BitfieldMessage.h): Removed.
  14460. (RequestMessage.h): Removed.
  14461. (CancelMessage.h): Removed.
  14462. (PieceMessage.h): Removed.
  14463. (HandshakeMessage.h): Removed.
  14464. (KeepAliveMessage.h): Removed.
  14465. (PortMessage.h): Removed.
  14466. (HaveAllMessage.h): Removed.
  14467. (HaveNoneMessage.h): Removed.
  14468. (RejectMessage.h): Removed.
  14469. (AllowedFastMessage.h): Removed.
  14470. (SuggestPieceMessage.h): Removed.
  14471. (PeerMessageFactory.h): Included.
  14472. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  14473. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  14474. (PeerMessageFactory): New variable.
  14475. (createPeerMessage): Removed.
  14476. (createHandshakeMessage): Removed.
  14477. (setPeerMessageCommonProperty): Removed.
  14478. (addRequestSlot): New function.
  14479. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14480. (getPeerMessageFactory): New function.
  14481. (createRequestMessage): Removed.
  14482. (createCancelMessage): Removed.
  14483. (createPieceMessage): Removed.
  14484. (createHaveMessage): Removed.
  14485. (createChokeMessage): Removed.
  14486. (createUnchokeMessage): Removed.
  14487. (createInterestedMessage): Removed.
  14488. (createNotInterestedMessage): Removed.
  14489. (createBitfieldMessage): Removed.
  14490. (createKeepAliveMessage): Removed.
  14491. (createHaveAllMessage): Removed.
  14492. (createHaveNoneMessage): Removed.
  14493. (createRejectMessage): Removed.
  14494. (createAllowedFastMessage): Removed.
  14495. * src/PeerInteraction.cc
  14496. (PeerInteraction): Allocate PeerMessageFactory here.
  14497. (~PeerInteraction): Deallocate PeerMessageFactory here.
  14498. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  14499. PieceMessage::ID.
  14500. (addMessage): Simplified by using PeerMessage::onPush().
  14501. (addRequestSlot): New function.
  14502. (rejectAllPieceMessageInQueue): Simplified by using
  14503. PeerMessage::onChoked().
  14504. (rejectPieceMessageInQueue): Simplified by using
  14505. PeerMessage::onCanceled().
  14506. (abortPiece): Simplified by using PeerMessage::abortPiece().
  14507. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  14508. (createHandshakeMessage): Removed.
  14509. (createPeerMessage): Removed.
  14510. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  14511. (setPeerMessageCommonProperty): Removed.
  14512. (createRequestMessage): Removed.
  14513. (createCancelMessage): Removed.
  14514. (createPieceMessage): Removed.
  14515. (createHaveMessage): Removed.
  14516. (createChokeMessage): Removed.
  14517. (createUnchokeMessage): Removed.
  14518. (createInterestedMessage): Removed.
  14519. (createNotInterestedMessage): Removed.
  14520. (createBitfieldMessage): Removed.
  14521. (createKeepAliveMessage): Removed.
  14522. (createHaveAllMessage): Removed.
  14523. (createHaveNoneMessage): Removed.
  14524. (createRejectMessage): Removed.
  14525. (createAllowedFastMessage): Removed.
  14526. * src/PieceMessage.h
  14527. (createRejectMessage): New function.
  14528. (PieceMessage): Rewritten.
  14529. (onChoked): New function.
  14530. (onCanceled): New function.
  14531. * src/PieceMessage.cc
  14532. (send): If invalidate is true then do nothing, just return.
  14533. (createRejectMessage): New function.
  14534. (onChoked): New function.
  14535. (onCanceled): New function.
  14536. * src/RequestMessage.h
  14537. (RequestMessage): Rewritten.
  14538. (onPush): New function.
  14539. (onAbortPiece): New function.
  14540. * src/RequestMessage.cc
  14541. (onPush): New function.
  14542. (onAbortPiece): New function.
  14543. Update fd_set when a socket is added or deleted in order to improve
  14544. performance:
  14545. * src/DownloadEngine.h
  14546. (rfdset): New variable.
  14547. (wfdset): New variable.
  14548. (updateFdSet): New function.
  14549. * src/DownloadEngine.cc
  14550. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  14551. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  14552. (waitData): Copy rfdset and wfdset.
  14553. (updateFdSet): New function.
  14554. (addSocket): Call updateFdSet.
  14555. (deleteSocket): Call updateFdSet.
  14556. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14557. To add the support for Metalink3.0 backward compatible links:
  14558. * src/Request.h
  14559. (SAFE_CHARS): Added '#'.
  14560. (METALINK_MARK): New definition.
  14561. * src/Request.cc
  14562. (parseUrl): Added the support for Metalink3.0 backward compatible
  14563. links.
  14564. etc
  14565. * src/PeerInteraction.cc
  14566. (MsgPushBack): Removed.
  14567. (sendMessages): Use STL copy and back_inserter.
  14568. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  14569. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  14570. * src/TorrentMan.h
  14571. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  14572. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14573. * src/SharedHandle.h: New class.
  14574. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  14575. * src/HttpResponseCommand.h
  14576. (HttpResponseCommand): Wrapped Socket.
  14577. * src/SocketCore.h
  14578. (operator==): New function.
  14579. (operator!=): New function.
  14580. (operator<): New function.
  14581. (getSockfd): New function.
  14582. (isOpen): New function.
  14583. (writeData): New function.
  14584. * src/SocketCore.cc
  14585. (operator==): New function.
  14586. (operator!=): New function.
  14587. (operator<): New function.
  14588. * src/AbstractCommand.h
  14589. (socket): Changed its type to SocketHandle.
  14590. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14591. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14592. (disableReadCheckSocket): New function.
  14593. (disableWriteCheckSocket): New function.
  14594. (readCheckTarget): Changed its type to SocketHandle.
  14595. (writeCheckTarget): Changed its type to SocketHandle.
  14596. (AbstractCommand): Replaced Socket with SocketHandle.
  14597. * src/AbstractCommand.cc
  14598. (AbstractCommand): Replaced Socket with SocketHandle.
  14599. (~AbstractCommand): Removed the deallocation for Socket object.
  14600. (disableReadCheckSocket): New function.
  14601. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14602. (disableWriteCheckSocket): New function.
  14603. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14604. * src/HttpDownloadCommand.cc
  14605. (DownloadCommand): Replaced Socket with SocketHandle.
  14606. * src/PeerAbstractCommand.h
  14607. (socket): Changed its type to SocketHandle.
  14608. (peer): Changed its type to PeerHandle.
  14609. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14610. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14611. (disableReadCheckSocket): New function.
  14612. (disableWriteCheckSocket): New function.
  14613. (readCheckTarget): Changed its type to SocketHandle.
  14614. (writeCheckTarget): Changed its type to SocketHandle.
  14615. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14616. Replaced Peer with PeerHandle.
  14617. * src/HttpRequestCommand.cc
  14618. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14619. Use disableReadCheckSocket.
  14620. * src/PeerInitiateConnectionCommand.h
  14621. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14622. * src/PeerChokeCommand.cc
  14623. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  14624. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  14625. (execute): Use PeerHandle.
  14626. * src/PeerConnection.h
  14627. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  14628. (socket): Changed its type to SocketHandle.
  14629. (PeerConnection): Replaced Socket with SocketHandle.
  14630. * src/PeerConnection.cc
  14631. (PeerConnection): Replaced Socket with SocketHandle.
  14632. * src/PeerInteractionCommand.h
  14633. (PeerInteractionCommand): Replaced socket with SocketHandle.
  14634. Replaced Peer with PeerHandle.
  14635. * src/PeerInteractionCommand.cc
  14636. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  14637. Replaced Peer with PeerHandle.
  14638. (executeInternal): Use disableWriteCheckSocket.
  14639. Use HandshakeMessageHandle.
  14640. (receiveMessages): Use PeerMessageHandle.
  14641. (prepareForNextPeer): Use PeerHandle.
  14642. * src/HttpProxyRequestCommand.h
  14643. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14644. * src/HttpResponseCommand.cc
  14645. (HttpResponseCommand): Replaced Socket with SocketHandle.
  14646. * src/TorrentMan.cc
  14647. (nullPeer): Added external reference.
  14648. (~TorrentMan): Removed the deallocation of the elements of peers.
  14649. (addPeer): Rewritten.
  14650. (isPeerAvailable): Use nullPeer.
  14651. (deleteOldpeers): Replaced with deleteErrorPeer.
  14652. (deleteErrorPeer): New function.
  14653. (getPeer): Use PeerHandle and nullPeer.
  14654. (hasMissingPiece): Replaced Peer with PeerHandle.
  14655. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14656. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14657. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14658. (getMissingPiece): Replaced Peer with PeerHandle.
  14659. * src/FtpNegotiateCommand.cc
  14660. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  14661. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  14662. (recvGreeting): Use disableWriteCheckSocket.
  14663. (recvPasv): Removed the allocation of Socket.
  14664. Use disableReadCheckSocket.
  14665. (sendRestPasv): Use disableWriteCheckSocket.
  14666. (recvRetr): Changed assertion.
  14667. * src/PeerInteraction.h
  14668. (SharedHandle.h): Included SharedHandle.h.
  14669. (PeerMessageHandle): New type definition.
  14670. (HandshakeMessageHandle): New type definition.
  14671. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  14672. (peer): Changed its type to PeerHandle.
  14673. (createHandshakeMessage): Replaced HandshakeMessage with
  14674. HandshakeMessageHandle.
  14675. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  14676. (PeerInteraction): Replaced Peer with PeerHandle.
  14677. Replaced Socket with SocketHandle.
  14678. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14679. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14680. (receiveHandshake): Replaced HandshakeMessage with
  14681. HandshakeMessageHandle.
  14682. * src/PeerInteraction.cc
  14683. (PeerInteraction): Replaced Peer with PeerHandle.
  14684. Replaced Socket with SocketHandle.
  14685. (~PeerInteraction): Removed the deallocation of the elements of
  14686. messageQueue.
  14687. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  14688. (isSendingMessageInProgress): Replaced PeerMessage with
  14689. PeerMessageHandle.
  14690. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  14691. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  14692. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  14693. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  14694. (abortPiece): Use PeerMessageHandle.
  14695. (receiveHandshake): Replaced HandshakeMessage with
  14696. HandshakeMessageHandle. Removed try-catch block.
  14697. (createHandshakeMessage): Replaced HandshakeMessage with
  14698. HandshakeMessageHandle.
  14699. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  14700. Removed try-catch block.
  14701. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  14702. * src/HttpProxyResponseCommand.cc
  14703. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14704. * src/FtpTunnelResponseCommand.h
  14705. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14706. * src/HttpConnection.cc
  14707. (HttpConnection): Replaced Socket with SocketHandle.
  14708. * src/PeerAbstractCommand.cc
  14709. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  14710. (~PeerAbstractCommand): Removed the deallocation of socket.
  14711. Use disableReadCheckSocket, disableWriteCheckSocket.
  14712. (disableReadCheckSocket): New function.
  14713. (setReadCheckSocket): Replaced Socket with SocketHandle.
  14714. (disableWriteCheckSocket): New function.
  14715. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  14716. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  14717. * src/FtpTunnelRequestCommand.cc
  14718. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14719. (~FtpTunnelRequestCommand): Corrected indentation.
  14720. * src/DownloadCommand.h
  14721. (DownloadCommand): Replaced Socket with SocketHandle.
  14722. * src/PeerListenCommand.cc
  14723. (PeerListenCommand): Removed the initialization of socket.
  14724. (~PeerListenCommand): Removed the deallocation of socket.
  14725. (bindPort): Use SocketHandle.
  14726. (execute): Use SocketHandle and PeerHandle.
  14727. * src/FtpDowndloadCommand.cc
  14728. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14729. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  14730. * src/main.cc
  14731. (main): Corrected indentation.
  14732. * src/HttpInitiateConnectionCommand.cc
  14733. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  14734. (executeInternal): Removed the allocation of socket.
  14735. * src/HttpRequestCommand.h
  14736. (HttpRequestCommand): Replaced Socket with SocketHandle.
  14737. * src/FtpNegotiationCommand.h
  14738. (dataSocket): Changed its type to SocketHandle.
  14739. (serverSocket): Changed its type to SocketHandle.
  14740. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  14741. * src/TorrentMan.h
  14742. (MAX_PEER_UPDATE): Removed.
  14743. (MAX_PEERS): New definition.
  14744. (Peers): The element is now of type PeerHandle.
  14745. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  14746. (getPeer): Replaced Peer with PeerHandle.
  14747. (deleteOldErrorPeers): Removed.
  14748. (deleteErrorPeer): New function.
  14749. (hasMissingPiece): Replaced Peer with PeerHandle.
  14750. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  14751. (getMissingPiece): Replaced Peer with PeerHandle.
  14752. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  14753. (getMissingFastPiece): Replaced Peer with PeerHandle.
  14754. (addActivePeer): Replaced Peer with PeerHandle.
  14755. (deleteActivePeer): Replaced Peer with PeerHandle.
  14756. Added a check for the return value of find.
  14757. * src/FtpTunnelResponseCommand.cc
  14758. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  14759. * src/FtpInitiateConnectionCommand.cc
  14760. (executeInternal): Removed the allocation of socket.
  14761. * src/DownloadEngine.h
  14762. (Sockets): An element is now of type SocketHandle.
  14763. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  14764. (CommandUuids): New type definition.
  14765. (rsockets): Changed its type to SockCmdMap.
  14766. (wsockets): Changed its type to SockCmdMap.
  14767. (addSocket): Rewritten.
  14768. (deleteSocket): Rewritten.
  14769. (addSocketForReadCheck): Rewritten.
  14770. (deleteSocketForReadCheck): Rewritten.
  14771. (addSocketForWriteCheck): Rewritten.
  14772. (deleteSocketForWriteCheck): Rewritten.
  14773. (PairFind): New template class.
  14774. * src/HttpDownloadCommand.h
  14775. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  14776. * src/FtpConnection.cc
  14777. (FtpConnection): Replaced Socket with SocketHandle.
  14778. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  14779. block.
  14780. * src/InitiateConnectionCommandFactory.cc
  14781. (DlAbortEx.h): Included DlAbortEx.h.
  14782. (createInitiateConnectionCommand): Throw exception if the protocol of
  14783. requested URI is not supported.
  14784. * src/Peer.cc
  14785. (nullPeer): Changed its type to PeerHandle.
  14786. (operator==): New function.
  14787. (operator!=): New function.
  14788. * src/Peer.h
  14789. (SharedHandle.h): Included SharedHandle.h.
  14790. (operator==): New function.
  14791. (operator!=): New function.
  14792. (Peer): Added the default constructor.
  14793. Use resetStatus() to initialize member variables.
  14794. (nullPeer): Removed.
  14795. * src/TrackerUpdateCommand.cc
  14796. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  14797. with MIN_PEERS.
  14798. * src/PeerListenCommand.h
  14799. (socket): Changed its type to SocketHandle.
  14800. * src/Command.h
  14801. (CommandUuid): New type definition.
  14802. (uuid): New variable.
  14803. (uuidGen): New variable.
  14804. (Command): Added the initialization of uuid.
  14805. (getUuid): New function.
  14806. * src/Socket.h
  14807. (Socket): Removed.
  14808. (SocketHandle): New type definition.
  14809. * src/DownloadEngine.h
  14810. (FindCommand): New function object.
  14811. (run): The portion of socket check was rewritten.
  14812. (SetDescriptor): New function object.
  14813. (AccumulateActiveCommandUuid): New function object.
  14814. (waitData): Rewritten.
  14815. (addSocket): Rewritten.
  14816. (deleteSocket): Rewritten.
  14817. (addSocketForReadCheck): Rewritten.
  14818. (addSocketForWriteCheck): Rewritten.
  14819. (deleteSocketForReadCheck): Rewritten.
  14820. (deleteSocketForWriteCheck): Rewritten.
  14821. * src/HttpProxyResponseCommand.h
  14822. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  14823. * src/HttpConnection.h
  14824. (socket): Changed its type to SocketHandle.
  14825. (HttpConnection): Replaced Socket with SocketHandle.
  14826. * src/PeerInitiateConnectionCommand.cc
  14827. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  14828. (executeInternal): Removed the allocation of socket.
  14829. (prepareForNextPeer): Use PeerHandle.
  14830. * src/PeerMessage.h
  14831. (peer): Changed its type to PeerHandle.
  14832. (getPeer): Replaced Peer with PeerHandle.
  14833. (setPeer): Replaced Peer with PeerHandle.
  14834. * src/DownloadCommand.cc
  14835. (DownloadCommand): Replaced Socket with SocketHandle.
  14836. * src/FtpConnection.h
  14837. (socket): Changed its type to SocketHandle.
  14838. (FtpConnection): Replaced Socket with SocketHandle.
  14839. (sendPort); Replaced Socket with SocketHandle.
  14840. * src/FtpDowndloadCommand.h
  14841. (ctrlSocket): Changed its type to SocketHandle.
  14842. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  14843. * src/HttpProxyRequestCommand.cc
  14844. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  14845. * src/FtpTunnelRequestCommand.h
  14846. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  14847. etc
  14848. * src/PeerChokeCommand.h
  14849. (setAllPeerChoked): Removed.
  14850. (setAllPeerResetDelta): Removed.
  14851. * src/PeerChokeCommand.cc
  14852. (setAllPeerChoked): Removed.
  14853. (ChokePeer): New function object.
  14854. (setAllPeerResetDelta): Removed.
  14855. (ResetDelta): New function object.
  14856. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  14857. (execute): Show download speed when the local node is a seeder.
  14858. setAllPeerChoked and setAllPeerResetDelta were rewritten
  14859. using STL.
  14860. * src/TrackerWatcherCommand.h
  14861. (MIN_PEERS): Removed.
  14862. * src/TorrentMan.cc
  14863. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  14864. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14865. To fix the bug that .aria2 file is not saved if downloading is stopped
  14866. by the errors:it results that aria2 can not resume downloading:
  14867. * src/main.cc
  14868. (normalDownload): Added the call to save().
  14869. (main): Added the deletion of the elements in 'reserved'.
  14870. To fix log:
  14871. * src/PeerInteraction.cc
  14872. (receiveHandshake): Fixed log.
  14873. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14874. To improve download performance in BitTorrent:
  14875. * src/TorrentMan.cc
  14876. (getPeer): Check the number of connections. Return nullPeer if
  14877. it is greater than MAX_PEER_UPDATE.
  14878. This code was originally here, but was removed in 0.5.1.
  14879. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14880. To improve the conditional compilation:
  14881. * src/MultiDiskWriter.h:
  14882. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14883. * src/MultiDiskWriter.cc:
  14884. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14885. * src/Util.h:
  14886. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14887. Added ENABLE_BITTORRENT around computeFastSet().
  14888. * src/Util.cc:
  14889. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14890. Added ENABLE_BITTORRENT around computeFastSet().
  14891. * src/messageDigest.h:
  14892. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  14893. * src/ShaVisitor.h:
  14894. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14895. * src/ShaVisitor.cc:
  14896. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14897. * src/main.cc:
  14898. Added ENABLE_BITTORRENT around includes and blocks related to
  14899. BitTorrent.
  14900. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  14901. digest support is not available.
  14902. * src/AbstractDiskWriter.h:
  14903. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14904. * src/AbstractDiskWriter.cc:
  14905. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  14906. * src/MetalinkEntry.cc
  14907. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  14908. support is not available.
  14909. To add command-line options for Metalink:
  14910. * src/main.cc:
  14911. Added metalink-version, metalink-language, metalink-os,
  14912. follow-metalink.
  14913. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  14914. * src/main.cc: Use these definition.
  14915. * Release 0.6.0
  14916. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14917. To add Metalink support(http/ftp only):
  14918. * src/AbstractCommand.h
  14919. (tryReserved): New function.
  14920. * src/AbstractCommand.cc
  14921. (execute): Call tryReserved().
  14922. (tryReserved): New function.
  14923. * src/Request.h
  14924. (Requests): New type definition.
  14925. * src/SegmentMan.h
  14926. (reserved): New variable.
  14927. * src/Util.h
  14928. (fileChecksum): New function.
  14929. (toUpper): New function.
  14930. (toLower): New function.
  14931. * src/Util.cc
  14932. (messageDigest.h): Included.
  14933. (trim): Trim \r\n\t.
  14934. (fileChecksum): New function.
  14935. (toUpper): New function.
  14936. (toLower): New function.
  14937. * src/main.cc
  14938. (normalDownload): New function.
  14939. (main): Added 2 command-line options: metalink-file,
  14940. metalink-connection. Their usage has not been written yet.
  14941. * src/MetalinkProcessor.h: New class.
  14942. * src/Xml2MetalinkProcessor.h: New class.
  14943. * src/Xml2MetalinkProcessor.cc: New class.
  14944. * src/MetalinkEntry.h: New class.
  14945. * src/MetalinkEntry.cc: New class.
  14946. * src/MetalinkResource.h: New class.
  14947. * src/MetalinkResource.cc: New class.
  14948. To add md5 message digest checking:
  14949. * src/messageDigest.h: Rewritten.
  14950. * src/MultiDiskWriter.cc: Updated according to the changes in
  14951. messageDigest.h.
  14952. * src/ShaVisitor.cc: Updated according to the changes in
  14953. messageDigest.h.
  14954. * src/Util.cc: Updated according to the changes in messageDigest.h.
  14955. * src/AbstractDiskWriter.cc: Updated according to the changes in
  14956. messageDigest.h.
  14957. To fix a bug that causes segfault when the payload length in peer
  14958. message is less than 0:
  14959. * src/PeerConnection.cc:
  14960. (receiveMessage): Fixed the bug.
  14961. * src/PeerMessageUtil.cc
  14962. (checkLength): Throw an exception if length is less than or equals to
  14963. 0.
  14964. To add new interfaces to Base64 encoding/decoding:
  14965. * src/Base64.h
  14966. (part_encode): Changed the method signature.
  14967. (encode): New function(overload).
  14968. (decode): New function(overload).
  14969. * src/Base64.cc
  14970. (part_encode): Rewritten.
  14971. (encode): Rewritten.
  14972. (encode): New function(overload).
  14973. To prevent a peer to download same piece if there is an error in
  14974. checksum:
  14975. * src/PieceMessage.cc
  14976. (receivedAction): Call peerInteraction->abortPiece().
  14977. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14978. To fix the bug that causes same have message is sent many times to
  14979. a single peer.
  14980. * src/Time.cc
  14981. (isNewer): Use Util::difftv().
  14982. * src/Util.cc
  14983. (difftv): Added a cast to (long long int).
  14984. * src/TorrentMan.cc
  14985. (advertisePiece): Use push_front.
  14986. (getAdvertisedPieceIndexes): A performance improvement was made.
  14987. To fix the bug that sends tracker requests without a sleep interval
  14988. when the number of connections is less than 15.
  14989. * src/TrackerWatcherCommand.cc
  14990. (execute): Now the number of connections is not a factor to decide
  14991. whether or not a tracker request should be sent or not.
  14992. * src/Time.h
  14993. (setTimeInSec): New function.
  14994. * src/Time.cc
  14995. (setTimeInSec): New function.
  14996. etc.
  14997. * src/ChokeMessage.cc
  14998. (receivedAction): Removed peer->snubbing = false
  14999. * src/PeerConnection.h
  15000. (receiveHandshake): Updated doc.
  15001. * src/TorrentMan.h
  15002. (getAdvertisedPieceIndexes): Updated the method signature.
  15003. * src/TorrentMan.cc
  15004. (getAdvertisedPieceIndexes): Updated the method signature.
  15005. * src/Time.h
  15006. (getTimeInMicros): Added a cast to (long long int).
  15007. (getTimeInMillis): Added a cast to (long long int).
  15008. * Release 0.5.2
  15009. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15010. To make a listening socket non-block:
  15011. * src/SocketCore.h
  15012. (setNonBlockingMode): New function.
  15013. * src/SocketCore.cc
  15014. (setNonBlockingMode): New function.
  15015. (beginListen): Added a call to setNonBlockingMode().
  15016. (acceptConnection): Call setNonBlockingMode().
  15017. (setBlockingMode): Updated.
  15018. To handle tracker's NAT-checking:
  15019. * src/PeerConnection.cc
  15020. (receiveHandshake): 'msg' param is filled with received data and
  15021. its length is assigned to 'length' param, even if all handshake
  15022. message is not yet received.
  15023. * src/PeerInteractionCommand.cc
  15024. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15025. a new peer connects to localhost.
  15026. A call to peerInteraction->sendHandshake() was removed because
  15027. it is called from peerInteraction->receiveHandshake(true).
  15028. * src/PeerInteraction.h
  15029. (quickReplied): New variable.
  15030. (receiveHandshake): Added an argument.
  15031. * src/PeerInteraction.cc
  15032. (PeerInteraction): Added the initialization of quickReplied.
  15033. (receiveHandshake): Send handshake message as soon as the info hash
  15034. in a handshake message from a peer is correct.
  15035. To change the random part of peer id and key parameter:
  15036. * src/TorrentMan.h
  15037. (key): New variable.
  15038. * src/TorrentMan.cc
  15039. (setupInternal1): Use Util::randomAlpha() to generate random part
  15040. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15041. key is also generated by Util::randomAlpha() and it is now 8 character
  15042. long.
  15043. * src/Util.h
  15044. (randomAlpha): New function.
  15045. * src/Util.cc
  15046. (randomAlpha): New function.
  15047. * src/TrackerWatcherCommand.cc
  15048. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15049. Added no_peer_id=1.
  15050. Set snubbing flag to false when a choke message is received from a
  15051. snubbed peer.
  15052. * src/ChokeMessage.cc
  15053. (receivedAction): Set snubbing flag to false.
  15054. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15055. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15056. * src/SimpleLogger.h (writeHeader): New function.
  15057. * src/SimpleLogger.cc (writeHeader): New function.
  15058. (writeLog): Fixed the bug that causes segfaults if exception message
  15059. contains an unescaped "%" character.
  15060. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15061. when a tracker request fails.
  15062. * src/Request.cc (parseUrl): Query string is now handled properly.
  15063. * Release 0.5.1
  15064. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15065. To add Time class which represents a specific instant in time and
  15066. its precision is microseconds. Time checking procedures were rewritten
  15067. using this object.
  15068. * src/Time.h: New class.
  15069. * src/Time.cc: New class.
  15070. * src/AbstractCommand.h
  15071. (updateCheckPoint): Removed.
  15072. (isTimeoutDetected): Removed.
  15073. (checkPoint): Changed the type to Time.
  15074. (timeout): New variable.
  15075. (setTimeout): New function.
  15076. * src/AbstractCommand.cc
  15077. (AbstractCommand): Removed the initialization of checkPoint.
  15078. Added the initialization of timeout.
  15079. (updateCheckPoint): Removed.
  15080. (isTimeoutDetected): Removed.
  15081. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15082. * src/PeerChokeCommand.h
  15083. (checkPoint): Changed the type to Time.
  15084. * src/PeerChokeCommand.cc
  15085. (PeerChokeCommand): Removed the initialization of checkPoint.
  15086. (execute): Rewritten using Time object.
  15087. * src/TrackerWatcherCommand.h
  15088. (checkPoint): Changed the type to Time.
  15089. * src/TrackerWatcherCommand.cc
  15090. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15091. (execute): Rewritten.
  15092. * src/ConsoleDownloadEngine.h
  15093. (cp): Changed the type to Time.
  15094. (startup): Changed the type to Time.
  15095. * src/ConsoleDownloadEngine.cc
  15096. (initStatistics): Use cp.reset(), startup.reset().
  15097. (calculateStatistics): Rewritten using Time object.
  15098. * src/PeerAbstractCommand.h
  15099. (updateCheckPoint): Removed.
  15100. (isTimeoutDetected): Removed.
  15101. (checkPoint): Changed the type to Time.
  15102. * src/PeerAbstractCommand.cc
  15103. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15104. (updateCheckPoint): Removed.
  15105. (isTimeoutDetected): Removed.
  15106. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15107. * src/PeerInteractionCommand.cc
  15108. (PeerInteractionCommand): Removed the initializations of struct
  15109. timeval variables.
  15110. * src/PeerInteractionCommand.h
  15111. (keepAliveCheckPoint): Changed the type to Time.
  15112. (chokeCheckPoint): Changed the type to Time.
  15113. (freqCheckPoint): Changed the type to Time.
  15114. (haveCheckTime): Changed the type to Time.
  15115. * src/PeerInteractionCommand.cc
  15116. (executeInternal): Rewritten using Time object.
  15117. (detectMessageFlooding): Rewritten using Time object.
  15118. (checkLongTimePeerChoking): Rewritten using Time object.
  15119. (sendKeepAlive): Rewritten using Time object.
  15120. (checkHave): Rewritten using Time object.
  15121. * src/SleepCommand.h
  15122. (checkPoint): Changed the type to Time.
  15123. * src/SleepCommand.cc
  15124. (SleepCommand): Removed the initialization of checkPoint.
  15125. (execute): Rewritten using Time object.
  15126. * src/TorrentAutoSaveCommand.h
  15127. (checkPoint): Changed the type to Time.
  15128. * src/TorrentAutoSaveCommand.cc
  15129. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15130. (execute): Rewritten.
  15131. * src/DownloadCommand.h
  15132. (sw): Changed the type to Time.
  15133. * src/DownloadCommand.cc
  15134. (DownloadCommand): Removed the initialization of sw.
  15135. (executeInternal): Rewritten.
  15136. * src/RequestSlot.h
  15137. (dispatchedTime): Changed the type to Time.
  15138. * src/RequestSlot.cc
  15139. (RequestSlot): Removed the call to setDispatchedTime().
  15140. (setDispatchedTime): Rewirtten.
  15141. (isTimeout): Rewritten.
  15142. (getLatencyInMillis): Rewritten.
  15143. * src/TorrentDownloadEngine.h
  15144. (cp): Changed the type to Time[2].
  15145. (startup): Changed the type to Time.
  15146. * src/TorrentDownloadEngine.cc
  15147. (initStatistics): Rewritten.
  15148. (calculateStatistics): Rewritten.
  15149. * src/DownloadEngine.cc
  15150. (run): Rewritten.
  15151. To detect all attempts to connect to the tracker are failed:
  15152. * src/AbstractCommand.cc
  15153. (execute): Increment e->segmentMan->errors if a command aborted.
  15154. * src/SegmentMan.h
  15155. (errors): New variable.
  15156. * src/SegmentMan.cc
  15157. (SegmentMan): Added the initialization of errors.
  15158. (init): Added the initialization of errors.
  15159. * src/TrackerWatcherCommand.cc
  15160. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15161. request was failed.
  15162. To handle snubbed peers:
  15163. * src/PeerChokeCommand.cc
  15164. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15165. (execute): Snubbed peers don't get unchoked.
  15166. * src/PeerInteraction.h
  15167. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15168. * src/PeerInteraction.cc
  15169. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15170. back the requested 16k block in 60 seconds.
  15171. * src/PieceMessage.cc
  15172. (receivedAction): A peer's snubbed state is cleard if it sends
  15173. the requested 16k block in 60 seconds.
  15174. * src/Peer.h
  15175. (snubbing): New variable.
  15176. * src/Peer.cc
  15177. (resetStatus): Added snubbed = false.
  15178. To fix the bug that causes have message is not sent:
  15179. * src/PeerInteractionCommand.cc
  15180. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15181. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15182. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15183. * src/TorrentMan.h
  15184. (HaveEntry): New class.
  15185. (advertisePiece): Rewritten.
  15186. (getAdvertisedPieceIndexes): Rewritten.
  15187. (Haves): Changed the type.
  15188. (getAdvertisedPieceIndexes): Added an argument.
  15189. Others:
  15190. * src/TorrentMan.h
  15191. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15192. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15193. * src/TorrentMan.cc
  15194. (getPeer): Don't check the number of connections here.
  15195. (setupInternal1): Changed peerId.
  15196. * src/PeerInteractionCommand.h
  15197. (KEEP_ALIVE_INTERVAL): New definition.
  15198. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15199. * src/main.cc
  15200. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15201. * src/DownloadEngine.h: Removed unnecessary header includes.
  15202. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15203. To fix the bug that causes segfaults if a tracker returns a zero-length
  15204. list as "peers":
  15205. * src/TrackerUpdateCommand.cc
  15206. (execute): Added a check to see wether the type of peers is Data*.
  15207. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15208. * Release 0.5.0
  15209. To fix compile issue with gcc3:
  15210. * src/CancelMessage.h
  15211. (ID): Renamed as ID_t
  15212. (ID_t): New enum.
  15213. * src/RejectMessage.h
  15214. (ID): Renamed as ID_t
  15215. (ID_t): New enum.
  15216. * src/SuggestPieceMessage.h
  15217. (ID): Renamed as ID_t
  15218. (ID_t): New enum.
  15219. * src/AllowedFastMessage.h
  15220. (ID): Renamed as ID_t
  15221. (ID_t): New enum.
  15222. * src/PortMessage.h
  15223. (ID): Renamed as ID_t
  15224. (ID_t): New enum.
  15225. * src/HaveNoneMessage.h
  15226. (ID): Renamed as ID_t
  15227. (ID_t): New enum.
  15228. * src/KeepAliveMessage.h
  15229. (ID): Renamed as ID_t
  15230. (ID_t): New enum.
  15231. * src/HaveAllMessage.h
  15232. (ID): Renamed as ID_t
  15233. (ID_t): New enum.
  15234. * src/UnchokeMessage.h
  15235. (ID): Renamed as ID_t
  15236. (ID_t): New enum.
  15237. * src/BitfieldMessage.h
  15238. (ID): Renamed as ID_t
  15239. (ID_t): New enum.
  15240. * src/PieceMessage.h
  15241. (ID): Renamed as ID_t
  15242. (ID_t): New enum.
  15243. * src/RequestMessage.h
  15244. (ID): Renamed as ID_t
  15245. (ID_t): New enum.
  15246. * src/NotInterestedMessage.h
  15247. (ID): Renamed as ID_t
  15248. (ID_t): New enum.
  15249. * src/ChokeMessage.h
  15250. (ID): Renamed as ID_t
  15251. (ID_t): New enum.
  15252. * src/InterestedMessage.h
  15253. (ID): Renamed as ID_t
  15254. (ID_t): New enum.
  15255. * src/HaveMessage.h
  15256. (ID): Renamed as ID_t
  15257. (ID_t): New enum.
  15258. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15259. * src/PeerAbstractCommand.h
  15260. (beforeSocketCheck): Removed.
  15261. * src/PeerAbstractCommand.cc
  15262. Modified in order to call executeInternal() even if socket check
  15263. and upload limit check fail.
  15264. * src/PeerInteractionCommand.h
  15265. (keepAlive): Removed.
  15266. (sendKeepAlive): New function.
  15267. (checkHave): New function.
  15268. (beforeSocketCheck): Removed.
  15269. * src/PeerInteractionCommand.cc
  15270. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  15271. calls to checkHave() and sendKeepAlive().
  15272. (keepAlive): Renamed to sendKeepAlive().
  15273. (sendKeepAlive): New function.
  15274. (beforeSocketCheck): Removed.
  15275. (checkHave): New function.
  15276. * src/BitfieldMan.cc
  15277. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  15278. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  15279. 0.
  15280. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  15281. * src/TorrentMan.h
  15282. (UsedPieces): Removed.
  15283. (Pieces): New type definition.
  15284. * src/Piece.h: Updated doc.
  15285. * src/Peer.h
  15286. (totalLength): Removed.
  15287. * src/Peer.cc
  15288. (updateLatency): Fixed the latency calculation.
  15289. * src/TorrentMan.cc
  15290. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  15291. than or equal to MAX_PEER_LIST_SIZE.
  15292. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  15293. then return false.
  15294. (deleteOldErrorPeers): Rewritten.
  15295. (deleteUsedPiece): Fixed the miss use of STL remove.
  15296. * src/PeerInteraction.h
  15297. (Pieces): Removed.
  15298. (deleteTimeoutRequestSlot): Removed.
  15299. (deleteCompletedRequestSlot): Removed.
  15300. (checkRequestSlot): New function.
  15301. * src/PeerInteraction.cc
  15302. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  15303. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  15304. (checkRequestSlot): New function.
  15305. * src/DownloadEngine.cc
  15306. (run): Clear activeSockets before calling waitData().
  15307. (waitData): Removed a call to activeSockets.clear().
  15308. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15309. To attempt to handle EINTR:
  15310. * src/SocketCore.cc
  15311. (isReadable): Added EINTR handling.
  15312. (isWritable): Added EINTR handling.
  15313. To improve the performance:
  15314. * src/AbstractCommand.cc
  15315. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15316. * src/PeerInteractionCommand.h
  15317. (receiveMessage): Renamed as receiveMessages().
  15318. (receiveMessages): New function.
  15319. * src/PeerInteractionCommand.cc
  15320. (executeInternal): receiveMessage loop is moved to new receiveMessages
  15321. () function. detectMessageFlooding() is moved here.
  15322. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  15323. (). The flooding detection for have message is comment out.
  15324. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  15325. Util::difftv().
  15326. (receiveMessage): Renamed as receiveMessages().
  15327. (receiveMessages): New function.
  15328. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  15329. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  15330. * src/SleepCommand.cc
  15331. (execute): Use Util::difftvsec() instead of Util::difftv().
  15332. * src/BitfieldMan.h
  15333. (getNthBitIndex): New function.
  15334. (hasMissingPiece): New function.
  15335. (getAllMissingIndexes): New function.
  15336. * src/BitfieldMan.cc
  15337. (countSetBit): Rewritten.
  15338. (getNthBitIndex): New function.
  15339. (getMissingIndexRandomly): Rewritten.
  15340. (hasMissingPiece): New function.
  15341. (getAllMissingIndexes): New function.
  15342. * src/TorrentMan.cc
  15343. (hasMissingPiece): New function.
  15344. (deleteUsedPiece): Rewritten using STL.
  15345. * src/PeerInteraction.cc
  15346. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  15347. is a little bit faster then TorrentMan::getMissingPieceIndex().
  15348. (addRequests): Updated the number of pending requests.
  15349. * src/PeerAbstractCommand.cc
  15350. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  15351. (execute): Returns true if TorrentMan::isHalt() is true.
  15352. Corrected the condition of upload limit checking.
  15353. * src/Util.h
  15354. (countBit): New function.
  15355. * src/Util.cc
  15356. (nbits): New variable.
  15357. (countBit): New function.
  15358. * src/DownloadEngine.h
  15359. (SockCmdMap): New type definition.
  15360. (waitData): Added an argument.
  15361. (addSocket): Added an argument.
  15362. (addSocketForReadCheck): Added an argument.
  15363. (addSocketForWriteCheck): Added an argument.
  15364. * src/DownloadEngine.cc
  15365. (run): Executes only commands whose sockets are ready to read or write.
  15366. All commands are executed in every 1 second.
  15367. (waitData): Calls select() again if it returned
  15368. EINTR.
  15369. (addSocket): Saves socket and command object pair to the map.
  15370. (deleteSocket): Deletes socket and command object pair from the map.
  15371. (addSocketForReadCheck): Added an argument.
  15372. (addSocketForWriteCheck): Added an argument.
  15373. * src/DownloadCommand.cc
  15374. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  15375. To send "event=stopped" to the tracker when the application finishes:
  15376. * src/PeerChokeCommand.h
  15377. (checkPoint): New variable.
  15378. * src/PeerChokeCommand.cc
  15379. (PeerChokeCommand): Added the initialization of checkPoint.
  15380. (execute): The interval check is now done by checkPoint, not
  15381. SleepCommand. Return true if TorrentMan::isHalt() is true.
  15382. * src/TorrentMan.h
  15383. (halt): New function.
  15384. (hasMissingPiece): New function.
  15385. (isHalt): New function.
  15386. (setHalt): New function.
  15387. * src/TorrentMan.cc
  15388. (TorrentMan): Added the initialization of halt.
  15389. * src/TorrentAutoSaveCommand.h
  15390. (checkPoint): New variable.
  15391. * src/PeerListenCommand.cc
  15392. (execute): Returns true if TorrentMan::isHalt() is true.
  15393. * src/main.cc
  15394. (setSignalHander): Added flags argument.
  15395. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  15396. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  15397. Removed printDownloadAbortMessage() after torrent downloading loop.
  15398. * src/TorrentAutoSaveCommand.cc
  15399. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  15400. (execute): Returns true if TorrentMan::isHalt() is true.
  15401. The interval check is now done by checkPoint, not SleepCommand.
  15402. * src/TrackerWatcherCommand.cc
  15403. (execute): If TorrentMan::isHalt(), then create a tracker request with
  15404. event=stopped.
  15405. * src/TrackerUpdateCommand.cc
  15406. (prepareForRetry): Do not use SleepCommand here.
  15407. (execute): Returns true if TorrentMan::isHalt() is true.
  15408. Others:
  15409. * src/TorrentMan.cc
  15410. (getMissingPieceIndex): Updated log message.
  15411. * src/PeerInteraction.cc
  15412. (createPeerMessag): Updated log message.
  15413. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15414. To add the ability to download several pieces in mix in a command and
  15415. increase the number of request slots according to request-cancel
  15416. latency:
  15417. * src/PeerInteractionCommand.cc
  15418. (executeInternal): The number of messages to be received at a time
  15419. is increased from 10 to 50.
  15420. * src/LogFactory
  15421. (getInstance): Added NullLogger.
  15422. * src/NullLogger.h: New class.
  15423. * src/BitfieldMan.h
  15424. (getMissingIndex): New function.
  15425. * src/BitfieldMan.cc
  15426. (getMissingIndex): New function.
  15427. * src/TorrentMan.h
  15428. (checkOutPiece): New function.
  15429. (getMissingPieceIndex): New function.
  15430. (getMissingFastPieceIndex): New function.
  15431. (getMissingFastPiece): New function.
  15432. * src/TorrentMan.cc
  15433. (updatePiece): Rewritten using STL.
  15434. (syncPiece): Rewritten using STL.
  15435. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  15436. checkOutPiece().
  15437. (getMissingPieceIndex): New function.
  15438. (getMissingFastPieceIndex): New function.
  15439. (getMissingFastPiece): New function.
  15440. (checkOutPiece): New function.
  15441. * src/PeerInteraction.h
  15442. (Pieces): New type definition.
  15443. (piece): Removed.
  15444. (pieces): New variable.
  15445. (getNewPieceAndSendInterest): Added the "piece" argument.
  15446. (abortPiece): Added the "piece" argument.
  15447. (abortAllPieces): New function.
  15448. (isInRequestSlot): New function.
  15449. (hasDownloadPiece): Added the "index" argument.
  15450. (setDownloadPiece): Removed.
  15451. (getDownloadPiece): Added the "index" argument.
  15452. (updatePiece): New function.
  15453. (createRequestMessage): Added the "index" argument.
  15454. * src/PeerInteraction.cc
  15455. (onChoked): Rewritten.
  15456. (abortPiece): Rewirtten.
  15457. (abortAllPieces): New function.
  15458. (deleteTimeoutRequestSlot): Rewritten.
  15459. Clarified code a little bit.
  15460. (deleteCompletedRequestSlot): Rewritten.
  15461. (isInRequestSlot): New function.
  15462. (syncPiece): Rewritten.
  15463. (updatePiece): New function.
  15464. (getNewPieceAndSendInterest): Rewritten.
  15465. (addRequests): Rewritten.
  15466. (getDownloadPiece): Rewritten.
  15467. (hasDownloadPiece): Rewritten.
  15468. (createRequestMessage): Added the "index" argument.
  15469. * src/common.h
  15470. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  15471. (DIV_FLOOR): New definition.
  15472. * src/PieceMessage.cc
  15473. (receivedAction): Update request-piece latency here.
  15474. * src/RequestSlot.h
  15475. (getLatencyInMillis): New function.
  15476. * src/RequestSlot.cc
  15477. (isTimeout): Rewritten using getLatencyInMillis.
  15478. (getLatencyInMillis): New function.
  15479. * src/Piece.h
  15480. (operator==): New function.
  15481. (getMissingBlockIndex): New function.
  15482. * src/Piece.cc
  15483. (operator==): New function.
  15484. (getMissingBlockIndex): New function.
  15485. * src/Peer.h
  15486. (DEFAULT_LATENCY): New definition.
  15487. (latency): New variable.
  15488. (updateLatency): New function.
  15489. (getLatency): New function.
  15490. * src/Peer.cc
  15491. (resetStatus): Reset latecy.
  15492. (updateLatency): New function.
  15493. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15494. * src/SocketCore.cc
  15495. (isReadable): Added secure to the condition.
  15496. * src/HttpConnection.cc
  15497. (receiveResponse): Fixed a bug that causes no response header
  15498. exception.
  15499. * src/Peer.h
  15500. (getFastSet): Fixed the return value type.
  15501. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15502. To remove a wait from download loop:
  15503. * src/DownloadEngine.cc
  15504. (run): Comment out shortSleep.
  15505. To rewrite the message handling:
  15506. * src/SimplePeerMessage.h: New class.
  15507. * src/SimplePeerMessage.cc: New class.
  15508. * src/CancelMessage.h: Derived from SimplePeerMessage.
  15509. (msg): New variable.
  15510. (create): New function.
  15511. (send): Removed.
  15512. (getMessage): New function.
  15513. (getMessageLength): New function.
  15514. * src/CancelMessage.cc
  15515. (create): New function.
  15516. (receivedAction): Replaced deleteRequestMessageInQueue with
  15517. rejectPieceMessageInQueue.
  15518. (send): Removed.
  15519. (getMessage): New function.
  15520. (getMessageLength): New function.
  15521. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  15522. (msg): New variable.
  15523. (msgLength): New variable.
  15524. (~BitfieldMessage): Deleted msg.
  15525. (send): Removed.
  15526. (getMessage): New function.
  15527. (getMessageLength): New function.
  15528. * src/BitfieldMessage.cc
  15529. (create): New function.
  15530. (send): Removed.
  15531. (getMessage): New function.
  15532. (getMessageLength): New function.
  15533. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  15534. (msg): New variable.
  15535. (sendPredicate): New function.
  15536. (onSendComplete): New function.
  15537. (send): Removed.
  15538. (getMessage): New function.
  15539. (getMessageLength): New function.
  15540. (create): New function.
  15541. * src/ChokeMessage.cc
  15542. (create): New function.
  15543. (send): Removed.
  15544. (sendPredicate): New function.
  15545. (getMessage): New function.
  15546. (getMessageLength): New function.
  15547. (onSendComplete): New function.
  15548. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  15549. (msg): New variable.
  15550. (send): Removed.
  15551. (getMessage): New function.
  15552. (getMessageLength): New function.
  15553. * src/KeepAliveMessage.cc
  15554. (send): Removed.
  15555. (getMessage): New function.
  15556. (getMessageLength): New function.
  15557. * src/PortMessage.h
  15558. (create): New function.
  15559. (receivedAction): Updated log message.
  15560. * src/PortMessage.cc: New file.
  15561. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  15562. (msg): New variable.
  15563. (sendPredicate): New function.
  15564. (onSendComplete): New function.
  15565. (create): New function.
  15566. (send): Removed.
  15567. (getMessage): New function.
  15568. (getMessageLength): New function.
  15569. * src/UnchokeMessage.cc
  15570. (create): New function.
  15571. (send): Removed.
  15572. (sendPredicate): New function.
  15573. (getMessage): New function.
  15574. (getMessageLength): New function.
  15575. (onSendComplete): New function.
  15576. * src/PieceMessage.h
  15577. (leftPieceDataLength): Removed.
  15578. (leftDataLength): New variable.
  15579. (headerSend): New variable.
  15580. (pendingCount): New variable.
  15581. (msgHeader): New variable.
  15582. (sendPieceData): New function.
  15583. (incrementPendingCount): New function.
  15584. (isPendingCountMax): New function.
  15585. (create): New function.
  15586. (getMessageHeader): New function.
  15587. (getMessageHeaderLength): New function.
  15588. * src/PieceMessage.cc
  15589. (create): New function.
  15590. (getMessageHeader): New function.
  15591. (getMessageHeaderLength): New function.
  15592. (send): Rewritten.
  15593. (sendPieceData): New function.
  15594. * src/HaveMessage.h: Derived from SimplePeerMessage.
  15595. (msg): New variable.
  15596. (create): New function.
  15597. (getMessage): New function.
  15598. (getMessageLength): New function.
  15599. * src/HaveMessage.cc
  15600. (create): New function.
  15601. (send): Removed.
  15602. (sendPieceData): New function.
  15603. (getMessage): New function.
  15604. (getMessageLength): New function.
  15605. * src/RequestMessage.h: Derived from SimplePeerMessage.
  15606. (msg): New variable.
  15607. (create): New function.
  15608. (send): Removed.
  15609. (getMessage): New function.
  15610. (getMessageLength): New function.
  15611. * src/RequestMessage.cc
  15612. (create): New function.
  15613. (receivedAction): Added the handling of fast extension.
  15614. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  15615. (send): Removed.
  15616. (getMessage): New function.
  15617. (getMessageLength): New function.
  15618. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  15619. (msg): New variable.
  15620. (sendPredicate): New function.
  15621. (onSendComplete): New function.
  15622. (create): New function.
  15623. (getMessage): New function.
  15624. (getMessageLength): New function.
  15625. * src/InterestedMessage.cc
  15626. (create): New function.
  15627. (send): Removed.
  15628. (sendPieceData): New function.
  15629. (getMessage): New function.
  15630. (getMessageLength): New function.
  15631. (onSendComplete): New function.
  15632. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  15633. (msg): New variable.
  15634. (sendPieceData): New function.
  15635. (onSendComplete): New function.
  15636. (create): New function.
  15637. (send): Removed.
  15638. (getMessage): New function.
  15639. (getMessageLength): New function.
  15640. * src/NotInterestedMessage.cc
  15641. (create): New function.
  15642. (send): Removed.
  15643. (sendPredicate): New function.
  15644. (getMessage): New function.
  15645. (getMessageLength): New function.
  15646. (onSendComplete): New function.
  15647. * src/AllowedFastMessage.h: New class.
  15648. * src/AllowedFastMessage.cc: New class.
  15649. * src/RejectMessage.h: New class.
  15650. * src/RejectMessage.cc: New class.
  15651. * src/SuggestPieceMessage.h: New class.
  15652. * src/SuggestPieceMessage.cc: New class.
  15653. * src/HaveAllMessage.h: New class.
  15654. * src/HaveAllMessage.cc: New class.
  15655. * src/HaveNoneMessage.h: New class.
  15656. * src/HaveNoneMessage.cc: New class.
  15657. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  15658. (msg): New variable.
  15659. (reserved): New variable.
  15660. (create): New function.
  15661. (getId): New function.
  15662. (receivedAction): New function.
  15663. (getMessage): New function.
  15664. (getMessageLength): New function.
  15665. (isFastExtensionSupported): New function.
  15666. * src/HandshakeMessage.cc
  15667. (HandshakeMessage): Moved here from HandshakeMessage.h.
  15668. (create): New function.
  15669. (getMessage): New function.
  15670. (getMessageLength): New function.
  15671. (toString): Added the output of reserved field.
  15672. (check): Added const qualifier.
  15673. (isFastExtensionSupported): New function.
  15674. * src/PeerMessageUtil.h
  15675. (createChokeMessage): Removed.
  15676. (createUnchokeMessage): Removed.
  15677. (createInterestedMessage): Removed.
  15678. (createNotInterestedMessage): Removed.
  15679. (createHaveMessage): Removed.
  15680. (createBitfieldMessage): Removed.
  15681. (createRequestMessage): Removed.
  15682. (createCancelMessage): Removed.
  15683. (createPieceMessage): Removed.
  15684. (createPortMessage): Removed.
  15685. (createChokeMessage): Removed.
  15686. (createUnchokeMessage): Removed.
  15687. (createInterestedMessage): Removed.
  15688. (createNotInterestedMessage): Removed.
  15689. (createHaveMessage): Removed.
  15690. (createBitfieldMessage): Removed.
  15691. (createRequestMessage): Removed.
  15692. (createCancelMessage): Removed.
  15693. (createPieceMessage): Removed.
  15694. (createKeepAliveMessage): Removed.
  15695. (createHandshakeMessage): Removed.
  15696. (setIntParam): New function.
  15697. (createPeerMessageString): New function.
  15698. * src/PeerMessageUtil.cc
  15699. (createChokeMessage): Removed.
  15700. (createUnchokeMessage): Removed.
  15701. (createInterestedMessage): Removed.
  15702. (createNotInterestedMessage): Removed.
  15703. (createHaveMessage): Removed.
  15704. (createBitfieldMessage): Removed.
  15705. (createRequestMessage): Removed.
  15706. (createCancelMessage): Removed.
  15707. (createPieceMessage): Removed.
  15708. (createPortMessage): Removed.
  15709. (createRequestMessage): Removed.
  15710. (createCancelMessage): Removed.
  15711. (createPieceMessage): Removed.
  15712. (createHaveMessage): Removed.
  15713. (createChokeMessage): Removed.
  15714. (createUnchokeMessage): Removed.
  15715. (createInterestedMessage): Removed.
  15716. (createNotInterestedMessage): Removed.
  15717. (createBitfieldMessage): Removed.
  15718. (createKeepAliveMessage): Removed.
  15719. (createHandshakeMessage): Removed.
  15720. (setIntParam): New function.
  15721. (createPeerMessageString): New function.
  15722. * src/PeerConnection.h
  15723. (peer): Removed.
  15724. (torrentMan): Removed.
  15725. (createNLengthMessage): Removed.
  15726. (setIntParam): Removed.
  15727. (writeOutgoingMessageLog): Removed all overloaded functions.
  15728. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15729. (sendMessage): New function.
  15730. (sendHandshake): Removed.
  15731. (sendKeepAlive): Removed.
  15732. (sendChoke): Removed.
  15733. (sendUnchoke): Removed.
  15734. (sendInterested): Removed.
  15735. (sendNotInterested): Removed.
  15736. (sendHave): Removed.
  15737. (sendBitfield): Removed.
  15738. (sendRequest): Removed.
  15739. (sendPiece): Removed.
  15740. (sendPieceHeader): Removed.
  15741. (sendPieceData): Removed.
  15742. (sendCancel): Removed.
  15743. (getPeer): Removed.
  15744. * src/PeerConnection.cc
  15745. (PeerConnection): Deleted peer and torrentMan from its arguments.
  15746. (sendHandshake): Removed.
  15747. (sendKeepAlive): Removed.
  15748. (createNLengthMessage): Removed.
  15749. (setIntParam): Removed.
  15750. (writeOutgoingMessageLog): Removed all overloaded functions.
  15751. (sendChoke): Removed.
  15752. (sendUnchoke): Removed.
  15753. (sendInterested): Removed.
  15754. (sendNotInterested): Removed.
  15755. (sendHave): Removed.
  15756. (sendBitfield): Removed.
  15757. (sendRequest): Removed.
  15758. (sendPiece): Removed.
  15759. (sendPieceHeader): Removed.
  15760. (sendPieceData): Removed.
  15761. (sendMessage): New function.
  15762. (sendCancel): Removed.
  15763. * src/PeerInteractionCommand.cc
  15764. (PeerInteractionCommand): Call setUploadLimit.
  15765. (executeInternal): Call setUploadLimit.
  15766. Added the handling of "inProgress" state of handshake message.
  15767. Call sendBitfield() or sendAllowdFast() instead of deprecated
  15768. sendNow().
  15769. (keepAlive): Call addMessage and sendMessage instead of deprecated
  15770. sendNow().
  15771. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  15772. * src/TorrentMan.h
  15773. (PEER_ID_LENGTH): New definition.
  15774. (hasAllPieces): New function.
  15775. * src/TorrentMan.cc
  15776. (getMissingPiece): Added the handling of fast extension.
  15777. (cancelPiece): Call updatePiece().
  15778. (hasAllPieces): New function.
  15779. * src/PeerInteraction.h
  15780. (fastSet): New variable.
  15781. (getNewPieceAndSendInterest): Changed the return type to void.
  15782. (send): Renamed as sendMessages.
  15783. (deleteAllRequestSlot): Removed.
  15784. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15785. (cancelAllRequest): Removed all overloaded functions.
  15786. (deleteAllRequestSlot): Removed.
  15787. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15788. (rejectPieceMessageInQueue): New function.
  15789. (rejectAllPieceMessageInQueue): New function.
  15790. (onChoked): New function.
  15791. (isSendingMessageInProgress): New function.
  15792. (getCorrespondingRequestSlot): Changed its arguments.
  15793. (isInFastSet): New function.
  15794. (addFastSetIndex): New function.
  15795. (addRequests): New function.
  15796. (sendNow): Removed.
  15797. (trySendNow): Removed.
  15798. (sendBitfield): New function.
  15799. (sendAllowdFast): New function.
  15800. (createHaveAllMessage): New function.
  15801. (createHaveNoneMessage): New function.
  15802. (createRejectMessage): New function.
  15803. (createAllowedFastMessage): New function.
  15804. * src/PeerInteraction.cc
  15805. (send): Renamed as sendMessages.
  15806. (sendMessages): New function.
  15807. (MsgPushBack): New class.
  15808. (isSendingMessageInProgress): New function.
  15809. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  15810. (rejectAllPieceMessageInQueue): New function.
  15811. Added the handling of fast extension.
  15812. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  15813. (rejectPieceMessageInQueue): New function.
  15814. Added the handling of fast extension.
  15815. (deleteRequestSlot): Replaced for loop with std::find.
  15816. (onChoked): New function.
  15817. (deleteAllRequestSlot): Removed.
  15818. (abortPiece): Rewirtten.
  15819. (deleteTimeoutRequestSlot): Updated log messages.
  15820. (getCorrespondingRequestSlot): Changed its arguments.
  15821. (cancelAllRequest): Removed all overloaded functions.
  15822. (receiveHandshake): Added the check to see whether an incoming peer
  15823. supports fast extension.
  15824. (createHandshakeMessage): Use HandshakeMessage::create instead of
  15825. PeerMessageUtil.
  15826. (createPeerMessage): Use create() of each message class instead of
  15827. PeerMessageUtil.
  15828. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  15829. AllowedFastMessage were added.
  15830. (getNewPieceAndSendInterest): Changed its return value type to void.
  15831. Added the handling of fast extension.
  15832. (addRequests): New function.
  15833. (sendNow): Removed.
  15834. (sendHandshake): Rewritten.
  15835. (trySendNow): Removed.
  15836. (sendBitfield): New function.
  15837. (sendAllowdFast): New function.
  15838. (isInFastSet): New function.
  15839. (addFastSetIndex): New function.
  15840. (createRequestMessage): Use RequestMessage::create instead of
  15841. PeerMessageUtil.
  15842. (createCancelMessage): Use CancelMessage::create instead of
  15843. PeerMessageUtil.
  15844. (createPieceMessage): Use PieceMessage::create instead of
  15845. PeerMessageUtil.
  15846. (createHaveMessage): Use HaveMessage::create instead of
  15847. PeerMessageUtil.
  15848. (createChokeMessage): Use ChokeMessage::create instead of
  15849. PeerMessageUtil.
  15850. (createUnchokeMessage): Use UnchokeMessage::create instead of
  15851. PeerMessageUtil.
  15852. (createInterestedMessage): Use InterestedMessage::create instead of
  15853. PeerMessageUtil.
  15854. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  15855. of PeerMessageUtil.
  15856. (createBitfieldMessage): Use BitfieldMessage::create instead of
  15857. PeerMessageUtil.
  15858. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  15859. PeerMessageUtil.
  15860. (createHaveAllMessage): New function.
  15861. (createHaveNoneMessage): New function.
  15862. (createRejectMessage): New function.
  15863. (createAllowedFastMessage: New function.
  15864. * src/Util.h
  15865. (sha1Sum): New function.
  15866. (computeFastSet): New function.
  15867. * src/Util.cc
  15868. (sha1Sum): New function.
  15869. (computeFastSet): New function.
  15870. * src/Peer.h
  15871. (fastExtensionEnabled): New variable.
  15872. (fastSet): New variable.
  15873. (setAllBitfield): New function.
  15874. (setFastExtensionEnabled): New function.
  15875. (isFastExtensionEnabled): New function.
  15876. (addFastSetIndex): New function.
  15877. (getFastSet): New function.
  15878. (isInFastSet): New function.
  15879. (countFastSet): New function.
  15880. * src/Peer.cc
  15881. (isInFastSet): New function.
  15882. (addFastSetIndex): New function.
  15883. (setAllBitfield): New function.
  15884. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  15885. sockets.
  15886. * src/PeerAbstractCommand.cc
  15887. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  15888. and uploadLimit.
  15889. (execute): Changed the procedure of checking sockets. The upload speed
  15890. checking were added.
  15891. (setUploadLimit): New function.
  15892. (setUploadLimitCheck): New function.
  15893. * src/PeerAbstractCommand.h
  15894. (setUploadLimit): New function.
  15895. (setUploadLimitCheck): New function.
  15896. (uploadLimit): New variable.
  15897. (uploadLimitCheck): New variable.
  15898. To contact a tracker regularly:
  15899. * src/TrackerWatcherCommand.h (interval): New variable.
  15900. (checkPoint): New variable.
  15901. (TrackerWatcherCommand): Added interval argument.
  15902. * src/TrackerWatcherCommand.cc
  15903. (TrackerWatcherCommand): Initialized checkPoint.
  15904. (execute): Now a tracker is contacted in every specified period.
  15905. If peer list is not needed, send request with numwant=0.
  15906. * src/TrackerUpdateCommand.cc
  15907. (execute): Updated log messages.
  15908. * src/DownloadEngine.cc
  15909. (~DownloadEngine): Removed two asserts.
  15910. (waitData): Uncommented wfds. May be a bug fix.
  15911. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15912. * src/PeerInteractionCommand.h
  15913. (checkInactiveConnection): Removed.
  15914. * src/PeerInteractionCommand.cc
  15915. (executeInternal): Removed following function calls:
  15916. detectMessageFlooding(), checkLongTimePeerChoking and
  15917. checkInactiveConnection().
  15918. (checkInactiveConnection): Removed.
  15919. (detectMessageFlooding): Removed function call to
  15920. checkInactiveConnection().
  15921. * src/PeerMessageUtil.h
  15922. (createChokeMessage): New function. Overload.
  15923. (createUnchokeMessage): New function. Overload.
  15924. (createInterestedMessage): New function. Overload.
  15925. (createNotInterestedMessage): New function. Overload.
  15926. (createHaveMessage): New function. Overload.
  15927. (createBitfieldMessage): New function. Overload.
  15928. (createRequestMessage): New function. Overload.
  15929. (createCancelMessage): New function. Overload.
  15930. (createPieceMessage): New function. Overload.
  15931. (createKeepAliveMessage): New function. Overload.
  15932. * src/PeerMessageUtil.cc
  15933. (createChokeMessage): New function. Overload.
  15934. (createUnchokeMessage): New function. Overload.
  15935. (createInterestedMessage): New function. Overload.
  15936. (createNotInterestedMessage): New function. Overload.
  15937. (createHaveMessage): New function. Overload.
  15938. (createBitfieldMessage): New function. Overload.
  15939. (createRequestMessage): New function. Overload.
  15940. (createCancelMessage): New function. Overload.
  15941. (createPieceMessage): New function. Overload.
  15942. (createKeepAliveMessage): New function. Overload.
  15943. * src/SendMessageQueue.cc
  15944. (createRequestMessage): Use PeerMessageUtil.
  15945. (createCancelMessage): Use PeerMessageUtil.
  15946. (createPieceMessage): Use PeerMessageUtil.
  15947. (createHaveMessage): Use PeerMessageUtil.
  15948. (createChokeMessage): Use PeerMessageUtil.
  15949. (createUnchokeMessage): Use PeerMessageUtil.
  15950. (createInterestedMessage): Use PeerMessageUtil.
  15951. (createNotInterestedMessage): Use PeerMessageUtil.
  15952. (createBitfieldMessage): Use PeerMessageUtil.
  15953. (createKeepAliveMessage): Use PeerMessageUtil.
  15954. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  15955. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  15956. * src/PeerInteraction.h: New class.
  15957. * src/PeerInteraction.cc: New class.
  15958. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15959. Each peer message has its own class.
  15960. * src/PendingMessages.h: Removed.
  15961. * src/PendingMessages.cc: Removed. The sending process was moved to
  15962. each message class.
  15963. * src/RequestSlotMan.h: Removed.
  15964. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  15965. SendMessageQueue.
  15966. * src/RequestMessage.h: New class.
  15967. * src/RequestMessage.cc: New class.
  15968. * src/CancelMessage.h: New class.
  15969. * src/CancelMessage.cc: New class.
  15970. * src/BitfieldMessage.h: New class.
  15971. * src/BitfieldMessage.cc: New class.
  15972. * src/ChokeMessage.h: New class.
  15973. * src/ChokeMessage.cc: New class.
  15974. * src/KeepAliveMessage.h: New class.
  15975. * src/KeepAliveMessage.cc: New class.
  15976. * src/PortMessage.h: New class.
  15977. * src/UnchokeMessage.h: New class.
  15978. * src/UnchokeMessage.cc: New class.
  15979. * src/PieceMessage.h: New class.
  15980. * src/PieceMessage.cc: New class.
  15981. * src/HaveMessage.h: New class.
  15982. * src/HaveMessage.cc: New class.
  15983. * src/BitfieldMessage.h: New class.
  15984. * src/BitfieldMessage.cc: New class.
  15985. * src/NotInterestedMessage.h: New class.
  15986. * src/NotInterestedMessage.cc: New class.
  15987. * src/InterestedMessage.h: New class.
  15988. * src/InterestedMessage.cc: New class.
  15989. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  15990. (getSendMessageQueue): New function.
  15991. (setSendMessageQueue): New function.
  15992. * src/HandshakeMessage.cc: New class.
  15993. * src/PeerConnection.h (receiveMessage): Changed return value and
  15994. arguments.
  15995. (receiveHandshake): Changed return value and arguments.
  15996. * src/PeerConnection.cc (receiveMessage): Do not create message class
  15997. here.
  15998. (receiveHandshake): Do not create handshake class here.
  15999. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16000. (piece): Removed.
  16001. (syncPiece): Removed.
  16002. (sendInterest): Removed.
  16003. (sendMessages): Removed.
  16004. (createRequestPendingMessage): Removed.
  16005. (checkPieceHash): Removed.
  16006. (erasePieceOnDisk): Removed.
  16007. (getNewPieceAndSendInterest): Removed.
  16008. (onGotNewPice): Removed.
  16009. (onGotWrongPiece): Removed.
  16010. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16011. Removed peerConnection, piece.
  16012. (~PeerInteractionCommand): Removed peerConnection.
  16013. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16014. (syncPiece): Moved to SendMessageQueue.
  16015. (decideChoking): Removed PendingMessage.
  16016. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16017. The action after receiving peer message was moved to each message
  16018. class.
  16019. (onGotNewPice): Moved to SendMessageQueue.
  16020. (onGotWrongPiece): Moved to SendMessageQueue.
  16021. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16022. (sendInterest): Moved to SendMessageQueue.
  16023. (createRequestPendingMessage): Removed.
  16024. (sendMessages): Moved to SendMessageQueue.
  16025. (onAbort): Use SendMessageQueue::abortPiece()
  16026. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16027. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16028. (checkPieceHash): Moved to SendMessageQueue.
  16029. (erasePieceOnDisk): Moved to SendMessageQueue.
  16030. * src/PeerMessageUtil.h
  16031. (createBitfieldMessage): Removed.
  16032. (createHaveMessage): Changed return value and arguments.
  16033. (createBitfieldMessage): Changed return value and arguments.
  16034. (createRequestCancelMessage): Removed.
  16035. (createPieceMessage): Changed return value and arguments.
  16036. (getShortIntParam): New function.
  16037. (checkIndex): Changed arguments.
  16038. (checkBegin): Changed arguments.
  16039. (checkLength): Changed arguments.
  16040. (checkPieceOffset): Removed.
  16041. (checkRange): New function.
  16042. (checkBitfield): Changed arguments.
  16043. (createPeerMessage): Removed.
  16044. (checkIntegrity): Removed.
  16045. (createHandshakeMessage): Changed arguments.
  16046. (createChokeMessage): New function.
  16047. (createUnchokeMessage): New function.
  16048. (createInterestedMessage): New function.
  16049. (createNotInterestedMessage): New function.
  16050. (createRequestMessage): New function.
  16051. (createCancelMessage): New function.
  16052. (createPortMessage): New function.
  16053. * src/PeerMessageUtil.cc
  16054. (createBitfieldMessage): Removed.
  16055. (createHaveMessage): Changed return value and arguments.
  16056. (createBitfieldMessage): Changed return value and arguments.
  16057. (createRequestCancelMessage): Removed.
  16058. (createPieceMessage): Changed return value and arguments.
  16059. (getShortIntParam): New function.
  16060. (checkIndex): Changed arguments.
  16061. (checkBegin): Changed arguments.
  16062. (checkLength): Changed arguments.
  16063. (checkPieceOffset): Removed.
  16064. (checkRange): New function.
  16065. (checkBitfield): Changed arguments.
  16066. (createPeerMessage): Removed.
  16067. (checkIntegrity): Removed.
  16068. (createHandshakeMessage): Changed arguments.
  16069. (createChokeMessage): New function.
  16070. (createUnchokeMessage): New function.
  16071. (createInterestedMessage): New function.
  16072. (createNotInterestedMessage): New function.
  16073. (createRequestMessage): New function.
  16074. (createCancelMessage): New function.
  16075. (createPortMessage): New function.
  16076. * src/PeerMessage.h
  16077. (id): Removed.
  16078. (index): Removed.
  16079. (begin): Removed.
  16080. (length): Removed.
  16081. (bitfield): Removed.
  16082. (bitfieldLength): Removed.
  16083. (block): Removed.
  16084. (blockLength): Removed.
  16085. (inProgress): New variable.
  16086. (cuid): New variable.
  16087. (peer): New variable.
  16088. (sendMessageQueue): New variable.
  16089. (logger): New variable.
  16090. (setBitfield): Removed.
  16091. (getBitfield): Removed.
  16092. (setBlock): Removed.
  16093. (getBlock): Removed.
  16094. (getBitfieldLength): Removed.
  16095. (getBlockLength): Removed.
  16096. (isInProgress): New function.
  16097. (toString): Made pure virtual.
  16098. (check): New function.
  16099. (send): New function.
  16100. (receivedAction): New function.
  16101. (getId): Made pure virtual.
  16102. (setId): Removed.
  16103. (getIndex): Removed.
  16104. (setIndex): Removed.
  16105. (getBegin): Removed.
  16106. (setBegin): Removed.
  16107. (getLength): Removed.
  16108. (setLength): Removed.
  16109. (getCuid): New function.
  16110. (setCuid): New function.
  16111. (getPeer): New function.
  16112. (setPeer): New function.
  16113. (getSendMessageQueue): New function.
  16114. (setSendMessageQueue): New function.
  16115. (ID): Removed.
  16116. * src/PeerMessage.cc
  16117. (setBitfield): Removed.
  16118. (setBlock): Removed.
  16119. (toString): Removed.
  16120. * src/TorrentMan.h
  16121. (getPieceLength): New function.
  16122. (getPieceLength): New function.
  16123. * src/SendMessageQueue.h
  16124. (REQUEST_TIME_OUT): New definition.
  16125. (RequestSlots): New definition.
  16126. (MessageQueue): New definition.
  16127. (requestSlotMan): Removed.
  16128. (pendingMessages): Removed.
  16129. (requestSlots): New variable.
  16130. (messageQueue): New variable.
  16131. (torrentMan): New variable.
  16132. (peerConnection): New variable.
  16133. (peer): New variable.
  16134. (piece): New variable.
  16135. (getNewPieceAndSendInterest): New function.
  16136. (createPeerMessage): New function.
  16137. (createHandshakeMessage): New function.
  16138. (send): Made private.
  16139. (setPeerMessageCommonProperty): New function.
  16140. (deleteAllRequestSlot): New function.
  16141. (deleteRequestMessageInQueue): New function.
  16142. (cancelAllRequest): Made private.
  16143. (cancelAllRequest): Made private.
  16144. (countRequestSlot): Made private.
  16145. (addPendingMessage): Removed.
  16146. (deletePendingPieceMessage): Removed.
  16147. (deletePendingRequestMessage): Removed.
  16148. (addMessage): New function.
  16149. (deletePieceMessageInQueue): New function.
  16150. (deleteTimeoutRequestSlot): Changed argument.
  16151. (deleteCompletedRequestSlot): Changed argument.
  16152. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16153. (getCorrespondingRequestSlot): New function.
  16154. (countPendingMessage): Removed.
  16155. (countMessageInQueue): New function.
  16156. (getTorrentMan): New function.
  16157. (getPeerConnection): New function.
  16158. (hasDownloadPiece): New function.
  16159. (getDownloadPiece): New function.
  16160. (setDownloadPiece): New function.
  16161. (syncPiece): New function.
  16162. (sendMessages): New function.
  16163. (sendNow): New function.
  16164. (trySendNow): New function.
  16165. (abortPiece): New function.
  16166. (sendHandshake): New function.
  16167. (receiveMessage): New function.
  16168. (receiveHandshake): New function.
  16169. (createRequestMessage): New function.
  16170. (createCancelMessage): New function.
  16171. (createPieceMessage): New function.
  16172. (createHaveMessage): New function.
  16173. (createChokeMessage): New function.
  16174. (createUnchokeMessage): New function.
  16175. (createInterestedMessage): New function.
  16176. (createNotInterestedMessage): New function.
  16177. (createBitfieldMessage): New function.
  16178. (createKeepAliveMessage): New function.
  16179. * src/SendMessageQueue.cc
  16180. (SendMessageQueue): Removed requestSlotMan.
  16181. Instantiated peerConnection here.
  16182. (~SendMessageQueue): Removed requestSlotMan.
  16183. Added deletion of peerConnection and the contents of messageQueue.
  16184. (send): Updated according to the change of messageQueue.
  16185. (addPendingMessage): Renamed to addMessage.
  16186. (addMessage): New function.
  16187. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16188. (deletePieceMessageInQueue): New function.
  16189. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16190. (deleteRequestMessageInQueue): New function.
  16191. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16192. here.
  16193. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16194. (...) was moved here.
  16195. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16196. moved here.
  16197. (deleteCompletedRequestSlot):
  16198. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16199. (getCorrespondingRequestSlot):
  16200. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16201. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16202. (countPendingMessage): Renamed to countMessageInQueue.
  16203. (countMessageInQueue): New function.
  16204. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16205. (receiveHandshake): New function.
  16206. (createHandshakeMessage): New function.
  16207. (receiveMessage): New function.
  16208. (createPeerMessage): New function.
  16209. (syncPiece): New function.
  16210. (getNewPieceAndSendInterest): New function.
  16211. (sendMessages): New function.
  16212. (sendNow): New function.
  16213. (trySendNow): New function.
  16214. (sendHandshake): New function.
  16215. (abortPiece): New function.
  16216. (getDownloadPiece): New function.
  16217. (getPeerMessageCommonProperty): New function.
  16218. (createRequestMessage): New function.
  16219. (createCancelMessage): New function.
  16220. (createPieceMessage): New function.
  16221. (createHaveMessage): New function.
  16222. (createChokeMessage): New function.
  16223. (createUnchokeMessage): New function.
  16224. (createInterestedMessage): New function.
  16225. (createNotInterestedMessage): New function.
  16226. (createBitfieldMessage): New function.
  16227. (createKeepAliveMessage): New function.
  16228. To add simple Content-Disposition support:
  16229. * src/HttpResponseCommand.h (determinFilename): New function.
  16230. * src/HttpResponseCommand.cc (executeInternal):
  16231. Use determinFilename(headers) instead of req->getFile() when comparing
  16232. filename.
  16233. (determinFilename): New function.
  16234. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16235. req->getFile().
  16236. (handleOtherEncoding): Use determinFilename(headers) instead of
  16237. req->getFile().
  16238. * src/Util.h (getContentDispositionFilename): New function.
  16239. * src/Util.cc (getContentDispositionFilename): New function.
  16240. * src/LogFactory.h (release): New function.
  16241. * src/LogFactory.cc (release): New function.
  16242. To fix a bug that causes out-of-bound exception when HTTP status
  16243. line is wrong:
  16244. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16245. size.
  16246. * src/common.h (Deleter): New class.
  16247. * src/SegmentMan.cc
  16248. (~SegmentMan): Added deletion of splitter and diskWriter.
  16249. * src/DownloadEngine.h
  16250. (Commands): Use deque.
  16251. (clearQueue): New function.
  16252. * src/DownloadEngine.cc
  16253. (~DownloadEngine): Added deletion of segmentMan.
  16254. (cleanQueue): New function.
  16255. * src/TorrentDownloadEngine.h
  16256. (TorrentDownloadEngine): The implementation was moved to
  16257. TorrentDownloadEngine.cc.
  16258. (~TorrentDownloadEngine): The implementation was moved to
  16259. TorrentDownloadEngine.cc.
  16260. * src/TorrentDownloadEngine.cc
  16261. (~TorrentDownloadEngine): Added deletion of torrentMan.
  16262. * src/main.cc
  16263. (clearRequest): Removed.
  16264. (handler): Added deletion of e.
  16265. (torrentHandler): Added deletion of te.
  16266. (main): Do not share splitter.
  16267. Use Deleter instead of clearRequest.
  16268. Deletion of classes were updated.
  16269. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16270. * src/main.cc (main): Fixed typo.
  16271. * src/message.h: Fixed typo.
  16272. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  16273. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16274. To add --select-file command-line option:
  16275. * src/Util.cc
  16276. (unfoldRange): New function.
  16277. (getNum): New function.
  16278. (unfoldSubRange): New function
  16279. * src/main.cc
  16280. (showUsage): Added help message.
  16281. (main): Added --select-file command-line option. Updated the layout of
  16282. file listing.
  16283. * src/common.h
  16284. (Integers): New definition.
  16285. * src/SocketCore.cc
  16286. (writeData): Removed timeout argument.
  16287. (readData): Removed timeout argument.
  16288. (peekData): Removed timeout argument.
  16289. * src/Socket.cc
  16290. (writeData): Removed timeout argument.
  16291. (readData): Removed timeout argument.
  16292. (peekData): Removed timeout argument.
  16293. * Release 0.4.1
  16294. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16295. To deploy upload rate based choking algorithm:
  16296. * src/PeerInteractionCommand.cc
  16297. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  16298. peer currently used.
  16299. (decideChoking): Deleted the choke/unchoke decision algorithm when
  16300. download completes. Simplified.
  16301. (receiveMessage): Updated.
  16302. * src/TorrentMan.h
  16303. (activePeers): New variable.
  16304. (addActivePeer): New function.
  16305. (getActivePeers): New function.
  16306. (deleteActivePeer): New function.
  16307. * src/TorrentMan.cc
  16308. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  16309. * src/PeerAbstractCommand.cc
  16310. (onAbort): Use peer->resetStatus().
  16311. * src/main.cc
  16312. (PeerChokeCommand.h): Included.
  16313. (main): Added the instance of ChokingCommand to the command queue.
  16314. * src/Peer.h
  16315. (amChoking): Renamed from amChocking
  16316. (chokingRequired): New variable.
  16317. (optUnchoking): New variable.
  16318. (deltaUpload): New variable.
  16319. (deltaDownload): New variable.
  16320. (addDeltaUpload): New function.
  16321. (resetDeltaUpload): New function.
  16322. (addDeltaDownload): New function.
  16323. (resetDeltaDownload): New function.
  16324. (addPeerUpload): Added a call to addDeltaUpload.
  16325. (addPeerDownload): Added a call to addDeltaDownload.
  16326. * src/Peer.cc
  16327. (shouldBeChoking): Renamed from shouldChoke.
  16328. (resetStatus): New function.
  16329. * src/PeerChokeCommand.h: New class.
  16330. * src/PeerChokeCommand.cc: New class.
  16331. To add lazy upload speed limiter:
  16332. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  16333. statistics calculation to TorrentDownloadEngine.
  16334. * src/TorrentConsoleDownloadEngine.cc
  16335. (sendStatistics): Renamed from printStatistics.
  16336. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  16337. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  16338. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  16339. * src/TorrentDownloadEngine.h: Added the variables for statistics
  16340. calculation.
  16341. (sendStatistics): New function as pure virtual function.
  16342. (getUploadSpeed): New function.
  16343. * src/TorrentDownloadEngine.cc
  16344. (initStatistics): New function.
  16345. (calculateSpeed): New function.
  16346. (calculateStatistics): New function.
  16347. * src/SendMessageQueue.h
  16348. (uploadLength): New variable.
  16349. (send): Added an argument.
  16350. (setUploadLimit): New function.
  16351. (getUploadLimit): New function.
  16352. * src/SendMessageQueue.cc
  16353. (send): Added upload speed limiter.
  16354. * src/prefs.h
  16355. (PREF_UPLOAD_LIMIT): New definition.
  16356. * src/PeerInteractionCommand.cc
  16357. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  16358. * src/main.cc
  16359. (main): Added --upload-limit option
  16360. For bug fixes:
  16361. * src/main.cc
  16362. (showUsage): Corrected --listen-port help
  16363. Other changes:
  16364. * src/TorrentMan.cc
  16365. (getPeer): Return nullPeer if connection is grather than
  16366. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  16367. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16368. To add some useful information to the exception message:
  16369. * src/SocketCore.cc : Updated messages.
  16370. * src/SegmentMan.cc :
  16371. * src/TorrentMan.cc : Updated messages.
  16372. * src/MultiDiskWriter.cc : Updated messages.
  16373. * src/Util.cc : Updated messages.
  16374. * src/AbstractDiskWriter.cc : Updated messages.
  16375. * src/PreAllocationDiskWriter.cc : Updated messages.
  16376. * src/message.cc : Added new messages. Updated some messages.
  16377. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  16378. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  16379. Updated threshold from 30 to 15.
  16380. * src/AbstractDiskWriter.h (filename): New variable.
  16381. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  16382. (createFile): Assigned filename.
  16383. * src/main.cc: Updated the help message for http-auth-scheme.
  16384. * Release 0.4.0
  16385. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16386. To add TrackerUpdateCommand with which replaces
  16387. CompactTrackerResponseProcessor:
  16388. * src/TrackerWatcherCommand.h (req): Removed.
  16389. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  16390. if the number of peer connections are less than 30.
  16391. * src/ByteArrayDiskWriter.h (readData): Implemented.
  16392. * src/SegmentMan.h (diskWriter): New function.
  16393. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  16394. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  16395. (main): Use TrackerUpdateCommand.
  16396. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  16397. (req): New variable.
  16398. (setTrackerResponseProcessor): Removed.
  16399. (getTrackerResponseProcessor): Removed.
  16400. (processTrackerResponse): Removed.
  16401. * src/DownloadEngine.h (diskWriter): Removed.
  16402. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  16403. to torrentMan->processTrackerResponse().
  16404. To add Util::expandBuffer:
  16405. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  16406. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  16407. * src/Util.h (expandBuffer): New function.
  16408. To fix the bug that causes segmentation fault when "-l ." is specified
  16409. in command-line option:
  16410. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  16411. (openFile): New function.
  16412. (closeFile): New function.
  16413. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  16414. (~SimpleLogger): Call closeFile();
  16415. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  16416. * src/main.cc (main): Added a check to see logger is configured
  16417. properly.
  16418. To enable HTTP authentication without specifying "--http-auth-scheme"
  16419. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  16420. * src/HttpConnection.cc (createRequest): Send Authorization header
  16421. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  16422. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  16423. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  16424. * src/Peer.cc (shouldChoke): Updated algorithm.
  16425. * src/message.h (EX_AUTH_FAILED): New definition.
  16426. (EX_FILE_OPEN): New definition.
  16427. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  16428. if status == 401.
  16429. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  16430. if req->isTorrent == true.
  16431. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  16432. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  16433. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  16434. (createFile): Updated message.
  16435. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16436. To add a readout of estimated remaining time to normal HTTP/FTP
  16437. downloads:
  16438. * src/ConsoleDownloadEngine.h (startup): New variable.
  16439. (startupLength): New variable.
  16440. (isStartupLengthSet): New variable.
  16441. (avgSpeed): New variable.
  16442. (eta): New variable.
  16443. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  16444. estimated remaining time.
  16445. (initStatistics): Initialized newly added variables.
  16446. (calculateStatistics): Calculate average speed and estimated remaining
  16447. time.
  16448. To decouple TorrentDownloadEngine from HttpResponseCommand:
  16449. * src/TrackerDownloadCommand.h: Removed.
  16450. * src/TrackerDownloadCommand.cc: Removed.
  16451. * src/TrackerInitCommand.h: Removed.
  16452. * src/TrackerInitCommand.cc: Removed.
  16453. * src/TrackerUpdateCommand.h: Removed.
  16454. * src/TrackerUpdateCommand.cc: Removed.
  16455. * src/TrackerWatcherCommand.cc (execute): The construction of request
  16456. url written in TrackerInitCommand was moved here. Do not create
  16457. tracker request command if torrentMan->trackers != 0.
  16458. * src/CompactTrackerResponseProcessor.h: New class.
  16459. * src/CompactTrackerResponseProcessor.cc: New class.
  16460. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  16461. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  16462. Decoupled TorrentDownloadEngine from this.
  16463. * src/SegmentMan.h (init): New function.
  16464. * src/SegmentMan.cc (init): New function.
  16465. * src/TorrentMan.h (responseProcessor): New variable.
  16466. (trackers): New variable.
  16467. (setTrackerResponseProcessor): New function.
  16468. (getTrackerResponseProcessor): New function.
  16469. (processTrackerResponse): New function.
  16470. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  16471. (processTrackerResponse): New function.
  16472. * src/main.cc (main): Use ByteArrayDiskWriter and
  16473. CompactTrackerResponseProcessor.
  16474. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  16475. processTrackerResponse().
  16476. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  16477. readout.
  16478. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  16479. which indicates download has completed.
  16480. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  16481. (closeFile): fd >= 0, not fd > 0
  16482. * src/main.cc (main): Added short cut for show-files.
  16483. Added short cut for torrent-file.
  16484. Added new command-line option listen-port.
  16485. Updated i18n messages.
  16486. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16487. To add LogFactory which creates singleton logger:
  16488. * src/LogFactory.h: New class.
  16489. * src/LogFactory.cc: New class.
  16490. * src/Command.h (logger): New variable.
  16491. (Constructor): Use LogFactory.
  16492. * src/AbstractCommand.cc: Use Command::logger
  16493. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  16494. Use LogFactory.
  16495. * src/SegmentSplitter.h : Made logger protected.
  16496. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  16497. * src/SegmentMan.cc (Constructor): Use LogFactory.
  16498. * src/DownloadEngine.h : Made logger protected.
  16499. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  16500. * src/PeerInteractionCommand.cc : Use Command::logger.
  16501. * src/HttpResponseCommand.cc : Use Command::logger.
  16502. * src/SegmentMan.h : Made logger private.
  16503. * src/TorrentMan.h : Made logger private.
  16504. * src/TorrentMan.cc : Use LogFactory.
  16505. * src/FtpNegotiateCommand.cc : Use Command::logger.
  16506. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  16507. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  16508. Use LogFactory.
  16509. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  16510. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  16511. Use LogFactory.
  16512. * src/DownloadCommand.cc : Use Command::logger.
  16513. * src/PeerAbstractCommand.cc : Use Command::logger.
  16514. * src/PeerListenCommand.cc : Use Command::logger.
  16515. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  16516. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  16517. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  16518. * src/TrackerWatcherCommand.cc : Use Command::logger.
  16519. * src/TrackerUpdateCommand.cc : Use Command::logger.
  16520. * src/TrackerDownloadCommand.cc : Use Command::logger.
  16521. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  16522. Use LogFactory.
  16523. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  16524. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  16525. Use LogFactory.
  16526. * src/main.cc (main): Use LogFactory.
  16527. * src/DiskAdaptor.h (logger): New variable.
  16528. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  16529. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  16530. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16531. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  16532. parameter to a tracker request.
  16533. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  16534. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  16535. * src/main.cc (setSignalHander): New function.
  16536. (main): Added a handler for SIGTERM.
  16537. (handler): Updated message.
  16538. (torrentHandler): Updated message.
  16539. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16540. * src/TorrentConsoleDownloadEngine.cc
  16541. (onPartialDownloadingCompletes): Renamed as
  16542. onSelectiveDownloadingCompletes.
  16543. (onSelectiveDownloadingCompletes): Updated message.
  16544. To add DiskAdaptor which abstract DiskWriter family:
  16545. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  16546. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  16547. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  16548. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  16549. MultiDiskAdaptor.h.
  16550. (readFileEntry): Changed its arguments.
  16551. (setup): setupDiskWriter is merged into this function.
  16552. (setupDiskWriter): Removed.
  16553. (setFileFilter): New function.
  16554. (readFileEntryFromMetaInfoFile): Updated according to the changes
  16555. made in readFileEntry.
  16556. (getFilePath): Removed.
  16557. (getTempFilePath): Removed.
  16558. (getSegmentFilePath): Updated due to the removal of getFilePath.
  16559. (fixFilename): Removed.
  16560. (copySingleFile): Removed.
  16561. (splitMultiFile): Removed.
  16562. (deleteTempFile): Removed.
  16563. (setFileEntriesToDownload): Removed.
  16564. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  16565. (isSelectiveDownloadingMode): New function.
  16566. (setAllMultiFileRequestedState): Removed.
  16567. (finishPartialDownloadingMode): Renamed as
  16568. finishSelectiveDownloadingMode.
  16569. (finishSelectiveDownloadingMode): New function.
  16570. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  16571. (getSelectedTotalLength): New function.
  16572. (onDownloadComplete): Use diskAdaptor.
  16573. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  16574. (Range): Removed.
  16575. (setMultiFileEntries): Renamed as setFileEntries.
  16576. (setFileEntries): New function.
  16577. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  16578. (pieceLength): New variable.
  16579. * src/main.cc (printDownloadCompeleteMessage): New function.
  16580. (torrentHandler): Use diskAdaptor instead of diskWriter.
  16581. (main): Renamed torrent-show-files to show-files.
  16582. Rewritten file contents listing.
  16583. * src/TorrentMan.h (FileEntry): Removed.
  16584. (multiFileTopDir): Removed.
  16585. (multiFileEntries): Removed.
  16586. (diskWriter): Removed.
  16587. (diskAdaptor): New variable.
  16588. * src/DefaultDiskWriter.h (totalLength): New variable.
  16589. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  16590. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  16591. diskWriter.
  16592. * src/TorrentConsoleDownloadEngine.h
  16593. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  16594. (partialTotalLength): Renamed as selectedTotalLength.
  16595. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  16596. openExistingFile, otherwise call initAndOpenFile.
  16597. (closeFile): fd > 0, not fd != 0.
  16598. * src/DirectDiskAdaptor.h: New class.
  16599. * src/DirectDiskAdaptor.cc: New class.
  16600. * src/MultiDiskAdaptor.h: New class.
  16601. * src/MultiDiskAdaptor.cc: New class.
  16602. * src/CopyDiskAdaptor.h: New class.
  16603. * src/CopyDiskAdaptor.cc: New class.
  16604. * src/DiskAdaptor.h: New class.
  16605. * src/DiskAdaptor.cc: New class.
  16606. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  16607. (PREF_SHOW_FILES): New definition.
  16608. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16609. To add the ability to download multi torrent into respective files
  16610. directly:
  16611. * src/DiskWriter.h (openFile): New function.
  16612. (seek): Removed.
  16613. * src/MultiDiskWriter.h: New class.
  16614. * src/MultiDiskWriter.cc: New class.
  16615. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  16616. protected.
  16617. (openFile): New function.
  16618. * src/AbstractDiskWriter.cc (openFile): New function.
  16619. * src/prefs.h (V_FALSE): New definition.
  16620. (PREF_DIRECT_FILE_MAPPING): New definition.
  16621. * src/TorrentMan.h (setupDiskWriter): New function.
  16622. (setAllMultiFileRequestedState): New function.
  16623. (onDownloadComplete): New function.
  16624. * src/TorrentMan.cc : Included MultiDiskWriter.h
  16625. (setupDiskWriter): New function.
  16626. (getFilePath): Updated.
  16627. (getTempFilePath): Updated.
  16628. (getSegmentFilePath): Updated.
  16629. (fixFilename): Updated.
  16630. (deleteTempFile): Updated.
  16631. (setAllMultiFileRequestedState): New function.
  16632. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  16633. (finishPartialDownloadingMode): Reset requested flags.
  16634. (onDownloadComplete): New function.
  16635. * src/main.cc: Added --direct-file-mapping option.
  16636. Use TorrentMan::setupDiskWriter().
  16637. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  16638. onDownloadComplete().
  16639. To fix ETA bug:
  16640. * src/Util.h (difftvsec): New function.
  16641. * src/Util.cc (difftvsec): New function.
  16642. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  16643. type of "elapsed" instead of long long int.
  16644. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  16645. The updates of statistics takes place every 1 seconds.
  16646. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  16647. (calculateSpeed): Changed its argument signature.
  16648. * src/PeerMessage.cc (toString): Fixed message.
  16649. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16650. To print ETA:
  16651. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  16652. completion handling when dealing with
  16653. TorrentMan::isPartialDownloadingMode() == true.
  16654. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  16655. New function.
  16656. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  16657. (sessionDownloadLength): New variable.
  16658. (avgSpeed): New variable.
  16659. (eta): New variable.
  16660. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  16661. new variables: eta, avgSpeed, startup.
  16662. (calculateSpeed): Calculate average speed and ETA.
  16663. (printStatistics): Added ETA.
  16664. * src/Util.h (secfmt): New function.
  16665. * src/Util.cc (secfmt): New function.
  16666. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16667. To detect "keep alive" flooding:
  16668. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  16669. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  16670. variable: keepAliveCount.
  16671. (detectMessageFlooding): Added "keep alive" flooding detection.
  16672. (receiveMessage): Increase keepAliveCount when "keep alive" message
  16673. received.
  16674. To add the ability to download only specified files in multi-file
  16675. torrent:
  16676. * src/BitfieldMan.h (filterBitfield): New variable.
  16677. (filterEnabled): New variable.
  16678. (setFilterBit): New function.
  16679. (enableFilter): New function.
  16680. (disableFilter): New function.
  16681. (isFilterEnabled): New function.
  16682. (getFilteredTotalLength): New function.
  16683. (getCompletedLength): New function.
  16684. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  16685. filterBitfield, filterEnabled.
  16686. (CopyConstructor): Added filterBitfield and filterEnabled.
  16687. (operator==): Added filterBitfield and filterEnabled.
  16688. (Destructor): Added filterBitfield.
  16689. (getMissingIndex): Use filterBitfield.
  16690. (getMissingUnusedIndex): Use filterBitfield.
  16691. (getFirstMissingUnusedIndex): Use filterBitfield.
  16692. (getFirstMissingUnusedIndex): Use filterBitfield.
  16693. (getAllMissingIndexes): Use filterBitfield.
  16694. (countMissingBlock): Use filterBitfield.
  16695. (countBlock): Use filterBitfield.
  16696. (setBitInternal): Added new argument on.
  16697. (setUseBit): Use setBitInternal.
  16698. (unsetUseBit): Use setBitInternal.
  16699. (setBit): Use setBitInternal.
  16700. (unsetBit): Use setBitInternal.
  16701. (isAllBitSet): Use filterBitfield.
  16702. (setFilterBit): New function.
  16703. (addFilter): New function.
  16704. (enableFilter): New function.
  16705. (disableFilter): New function.
  16706. (clearFilter): New function.
  16707. (isFilterEnabled): New function.
  16708. (getFilteredTotalLength): New function.
  16709. (getCompletedLength): New function.
  16710. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  16711. Initalized newly added variables.
  16712. [FileEntry](offset): New variable.
  16713. [FileEntry](extracted): New variable.
  16714. [FileEntry](requested): New variable.
  16715. (readFileEntry): New function.
  16716. (option): New variable.
  16717. (splitMultiFile): Removed const qualifier.
  16718. (fixFilename): Removed const qualifier.
  16719. (readFileEntryFromMetaInfoFile): New function.
  16720. (finishPartialDownloadingMode): New function.
  16721. (isPartialDownloadingMode): New function.
  16722. (setFileEntriesToDownload): New function.
  16723. (getCompletedLength): New function.
  16724. (getPartialTotalLength): New function.
  16725. * src/TorrentMan.cc (readFileEntry): New function.
  16726. (setup): Use readFileEntry. If no-preallocation option is specified,
  16727. use DefaultDiskWriter.
  16728. (readFileEntryFromMetaInfoFile): New function.
  16729. (fixFilename): Removed const qualifier.
  16730. (splitMultiFile): Removed const qualifier.
  16731. (setFileEntriesToDownload): New function.
  16732. (isPartialDownloadingMode): New function.
  16733. (finishPartialDownloadingMode): New function.
  16734. (getCompletedLength): New function.
  16735. (getPartialTotalLength): New function.
  16736. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  16737. New variable.
  16738. (partialTotalLength): New variable.
  16739. (downloadLength): New variable.
  16740. (totalLength): New variable.
  16741. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  16742. Added log.
  16743. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  16744. partialTotalLength, downloadLength, totalLength.
  16745. (calculate): Calculate downloadLength and totalLength.
  16746. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  16747. * src/main.cc (addCommand): Changed argument signature.
  16748. (main): Added new variable: args. Added new option "torrent-show-files"
  16749. "no-preallocation". Usage is not updated yet.
  16750. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16751. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  16752. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16753. Attempt to add the ability to listing file entries in a .torrent file.
  16754. This feature is not yet complete.
  16755. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  16756. * src/TorrentMan.cc (getMultiFileEntries): New function.
  16757. (getName): New function.
  16758. * src/TorrentMan.h (getMultiFileEntries): New function.
  16759. (getName): New function.
  16760. * src/main.cc (main): Use above 2 funtion.
  16761. * Release 0.3.2
  16762. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16763. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  16764. (detectMessageFlooding): Updated threshold value.
  16765. (checkLongTimePeerChoking): Updated timeout value.
  16766. (getNewPieceAndSendInterest): Added debug log.
  16767. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  16768. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  16769. (getPeer): Updated.
  16770. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  16771. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  16772. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  16773. is localhost.
  16774. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  16775. * src/PendingMessage.cc (processMessage): Not to send piece message
  16776. if peer is not interested in the pieces localhost has.
  16777. * src/Peer.cc (shouldChoke): Updated.
  16778. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  16779. * src/Util.cc (isPowerOf): New function.
  16780. * src/Util.h (isPowerOf): New function.
  16781. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  16782. whether or not it is power of 2.
  16783. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16784. Added new class SendMessageQueue that includes PendingMessages and
  16785. RequestSlotMan.
  16786. * src/SendMessageQueue.h: New class.
  16787. * src/SendMessageQueue.cc: New class.
  16788. * src/PendingMessage.h: Added new member variable blockIndex and its
  16789. accessors.
  16790. (createRequestMessage): Updated.
  16791. * src/PendingMessage.cc (createRequestMessage): Updated.
  16792. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  16793. SendMessageQueue.
  16794. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  16795. (receiveMessage): Updated with SendMessageQueue.
  16796. (deletePendingPieceMessage): Removed.
  16797. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  16798. (sendInterest): Updated with SendMessageQueue.
  16799. (createRequestPendingMessage): Updated with SendMessageQueue.
  16800. (sendMessages): Updated with SendMessageQueue.
  16801. (onAbort): Updated with SendMessageQueue.
  16802. (keepAlive): Updated with SendMessageQueue.
  16803. (beforeSocketCheck): Updated SendMessageQueue.
  16804. * src/PeerInteractionCommand (sendMessages): Shuffle
  16805. missingBLockIndexes before using it.
  16806. Added its own timeout for peer connection.
  16807. * src/PeerAbstractCommand.h: Added member variable timeout and its
  16808. setter.
  16809. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  16810. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16811. Added setTimeout() call.
  16812. (executeInternal): Added setTimeout() call.
  16813. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  16814. Added timeout.
  16815. (isTimeoutDetected): Updated.
  16816. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  16817. option.
  16818. Added *simple* message flooding checker.
  16819. * src/PeerInteractionCommand.cc (executeInternal):
  16820. Added detectMessageFlooding() call.
  16821. (detectMessageFlooding): New function.
  16822. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  16823. (beforeSocketCheck): Added detectMessageFlooding() call.
  16824. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  16825. chokeUnchokeCount, haveCount, detectMessageFlooding().
  16826. Removed deletePendingPieceMessage(), getRequestSlot(),
  16827. deleteRequestSlot(), deleteAllRequestSlot().
  16828. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  16829. Added checkLongTimePeerChoking() call.
  16830. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  16831. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  16832. if duplicate == false.
  16833. The parameter "uploaded" and "downloaded" in the tracker request are
  16834. the size since the client sent the "started" event to the tracker.
  16835. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  16836. uploaded size to preDownloadedSize, preUploadedSize respectively.
  16837. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  16838. getSessionDownloadedSize(), getSessionUploadedSize().
  16839. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  16840. getSessionUploadedSize() instead of getDownloadedSize(),
  16841. getUploadedSize().
  16842. * src/PendingMessage.cc (processMessage): Do not send request message
  16843. if the peer is choking the client.
  16844. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  16845. less than interval.
  16846. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16847. * configure.in: Added gnutls support. Added several CPP macros.
  16848. * m4/openssl.m4: Added.
  16849. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  16850. readData(), peekData(). Added gnutls support.
  16851. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  16852. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  16853. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  16854. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  16855. Instead, added a check for whether setup method has executed
  16856. successfully.
  16857. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  16858. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  16859. * src/Makefile.am: Updated.
  16860. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  16861. using whether OpenSSL or gcrypt, depending on the result of configure
  16862. script.
  16863. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  16864. messageDigest.h.
  16865. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  16866. * src/PeerListenCommand.cc: Added log about port binded successfully.
  16867. Fixed memory leak.
  16868. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  16869. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  16870. Removed instantiation of TrackerInitCommand. Instead,
  16871. TrackerWatcherCommand is instantiated and pushed to the command queue.
  16872. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  16873. ENABLE_SSL.
  16874. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  16875. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  16876. If a piece is already acquired by another command, delete the request
  16877. slots for the piece.
  16878. * src/TrackerUpdateCommand.cc (execute):
  16879. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  16880. Added a check whether peer list is null.
  16881. Fixed the bug that causes sending completed event to the tracker
  16882. several times.
  16883. * src/TrackerInitCommand.cc (execute):
  16884. Fixed the bug that causes sending completed event to the tracker
  16885. several times.
  16886. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  16887. by using messageDigest.h.
  16888. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16889. * PeerConnection.cc: Replaced log message "keep-alive" with
  16890. "keep alive".
  16891. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  16892. localhost long time.
  16893. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  16894. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  16895. at most 100 failure entry from the list. If with duplicate = false,
  16896. MAX_PEER_LIST is not checked.
  16897. * PeerListenCommand.cc: Fixed the argument order of log message.
  16898. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16899. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  16900. Added warn().
  16901. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  16902. Implemented warn().
  16903. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  16904. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16905. * Request.h: Added AFTER_COMPLETED event.
  16906. * TorrentDownloadEngine.cc: Prints "Download complete" message
  16907. instead of downloaded size and progress(%) after download completes.
  16908. * PeerInteractionCommand.cc: After download completes, sends unchoke
  16909. message to the peer if it is interested in what localhost has
  16910. downloaded.
  16911. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  16912. destination instead of just renaming it.
  16913. * TorrentMan.cc: Added deleteTempFile().
  16914. * PeerAbstractCommand.cc: do not stop execution after download
  16915. completes. This makes localhost a seeder.
  16916. * Util.{h,cc}: Added fileCopy().
  16917. * PeerListenCommand.cc: do not stop execution after download completes.
  16918. This makes localhost a seeder.
  16919. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  16920. Added TorrentMan::deleteTempFile() to torrentHandler.
  16921. Initialized the variable dir as ".".
  16922. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  16923. Deleted renameSingleFile().
  16924. Added copySingleFile(), deleteTempFile().
  16925. * DownloadEngine.h: Added virtual function afterEachIteration().
  16926. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  16927. in onEndOfRun() to afterEachIteration().
  16928. In onEndOfRun(), changed if condition to check whether filenameFixed is
  16929. true.
  16930. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  16931. In rangedFileCopy(), added try-catch block to properly close file
  16932. descriptors.
  16933. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  16934. Added afterEachIteration(), isFilenameFixed().
  16935. * Peer.cc: Changed choking strategy.
  16936. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  16937. * TrackerInitCommand.cc: Send completed event only once.
  16938. * DownloadEngine.cc: Added a call to afterEachIteration().
  16939. * TrackerUpdateCommand.cc: Do not stop execution after download
  16940. completes.
  16941. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  16942. connect the peers at most MAX_PEER_UPDATE when a peer list is
  16943. received from a tracker.
  16944. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  16945. Decreased the number of failure peers to delete to 0(just comment out
  16946. the line).
  16947. * Release 0.3.1
  16948. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16949. * PeerInteractionCommand.cc: added a call to
  16950. TorrentMan::unadvertisePiece in Destructor.
  16951. * PeerInteractionCommand.cc: make have message sent immediately
  16952. if the size of pending message queue is zero.
  16953. * TorrentMan.cc: set the maximum size of peer list to 250.
  16954. * TorrentMan.h: changed the container type of Peers and UsedPieces
  16955. to deque.
  16956. * Util.cc: fixed rangedFileCopy.
  16957. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  16958. to Constructor. Also, moved digest cleanup to Destructor.
  16959. * MetaFileUtil.cc: fixed memory leak
  16960. * replaced std::vector with std::deque.
  16961. * AbstractCommand.cc: casted timeout value to long long int.
  16962. * ChunkedEncoding.cc: fixed memory leak.
  16963. * PeerInteractionCommand.cc: casted timeout value to long long int.
  16964. * SleepCommand.cc: casted timeout value to long long int.
  16965. * Data.cc: fixed memory leak.
  16966. * Data.cc: fixed toLLInt().
  16967. * BitfieldMan.cc: fixed memory leak.
  16968. * TorrentMan.cc: initialized storeDir to ".".
  16969. * TorrentMan.cc: fixed memory leak.
  16970. * TorrentMan.cc: corrected file paths of splitted files.
  16971. * PeerAbstractCommand.cc: casted timeout to long long int.
  16972. * main.cc: added delete(req) and delete(te->diskWriter).
  16973. * RequestSlot.cc: casted timeout value to long long int.
  16974. * Request.cc: fixed memory leak.
  16975. * PendingMessage.cc: make HAVE messages sent only when peer does not
  16976. have the piece.
  16977. * Peer.{h,cc}: added hasPiece(int index).
  16978. * main.cc: corrected addCommand.
  16979. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16980. * BitTorrent protocol support added.
  16981. * Release 0.3.0
  16982. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16983. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  16984. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16985. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  16986. decoding did not work properly.
  16987. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16988. * DownloadEngine.h: included sys/time.h
  16989. * DownloadEngine.cc: remove sys/time.h
  16990. * Makefile.am (SUBDIRS): Add intl.
  16991. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  16992. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16993. * main.cc: correct help message for --http-auth-scheme.
  16994. * main.cc: changed e-mail address for bug reports.
  16995. * ja.po: added japanese translation.
  16996. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16997. * SimpleLogger.cc: flush log file instead of stdout.
  16998. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16999. * main.cc: Fixed command-line option: max-tries
  17000. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17001. does not equal to seg.sp.
  17002. * DownloadCommand.cc: If EOF is got from the server and the total size
  17003. of file is not zero, then throw DlRetryEx.
  17004. * main.cc: Set the minium value of min-segment-size to 1024.
  17005. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17006. fails because of a regression since 0.2.0 release.
  17007. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17008. * HttpConnection.cc:
  17009. * common.h: defined the user agent name as macro
  17010. * DownloadEngine.{h, cc}:
  17011. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17012. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17013. * main.cc: Download complete/abort message is now generated by main.
  17014. * Makefile.am (SUBDIRS): Add m4.
  17015. (ACLOCAL_AMFLAGS): New variable.
  17016. (EXTRA_DIST): New variable.
  17017. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17018. * gettext: added gettext functionality
  17019. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17020. * AbstractCommand.cc:
  17021. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17022. unregister its cuid from SegmentMan.
  17023. * DownloadEngine.cc: .aria2 file was written when a downloading
  17024. failed with errors.
  17025. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17026. Added "User-Agent" header to CONNECT proxy request.
  17027. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17028. properly.
  17029. * Logger.h:
  17030. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17031. * ChunkedEncoding.cc: Added #include directive for strings.h
  17032. * Release 0.2.1
  17033. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17034. * Util.{h,cc}: added startsWith().
  17035. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17036. Util::endsWith().
  17037. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17038. * common.h: added #include directive of limit.h.
  17039. * DownloadEngine.cc: added #include directive of sys/time.h and
  17040. algorithm.
  17041. * Exception.h: added #include directive of stdio.h.
  17042. * AbstractCommand.h: added #include directive of sys/time.h.
  17043. * DownloadCommand.h: added #include directive of sys/time.h.
  17044. * *.h: added #include directive of common.h to all base classes.
  17045. subclasses' one was removed.
  17046. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17047. does not define these macros.
  17048. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17049. * Release 0.2.0
  17050. * main.cc:
  17051. * HttpInitiateConnectionCommand.{h,cc}:
  17052. * prefs.h:
  17053. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17054. We can now use GET command in http proxy.
  17055. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17056. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17057. that splits slowest segment of SegmentMan::commands vector.
  17058. This is the default split algorithm of aria2.
  17059. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17060. that splits first segment of SegmentMan::commands vector.
  17061. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17062. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17063. * Segment.h:
  17064. * SegmentMan.cc: Added speed field to Segment.h
  17065. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17066. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17067. * message.h: Change file size related %d to %lld.
  17068. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17069. * FtpInitiateConnectionCommand.{h,cc}:
  17070. * FtpNegotiationCommand.{h,cc}:
  17071. * FtpDownloadCommand.{h,cc}:
  17072. * FtpConnection.{h,cc}: Added FTP support
  17073. * SimpleLogger.cc: Log message now includes time information.
  17074. * main.cc: The value of --http-auth-scheme option is chagned from
  17075. 'BASIC' to 'basic'
  17076. * main.cc: Added --timeout command-line option.
  17077. * main.cc: Added --min-segment-size command-line option.
  17078. * main.cc: Added --max-retries command-line option.
  17079. * prefs.h: option string constants are now defined in prefs.h
  17080. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17081. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17082. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17083. with version 0.1.0's one.
  17084. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17085. * configure.in: Added --enable-ssl option to configure script.
  17086. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17087. cannot permit absoluteURI as Request-URI.
  17088. * HttpConnection.cc: Added Referer support.
  17089. * main.cc: Added referer command-line option.
  17090. * main.cc: Added rety-wait command-line option.
  17091. * Exception.h: Fixed formating bug in Exception::setMsg()
  17092. * SocketCore.{h,cc}:
  17093. * Socket.{h, cc}:
  17094. * Request.cc:
  17095. * InitiateConnectionCommandFactory.cc:
  17096. * HttpRequestCommand.cc: Added HTTPS support.
  17097. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17098. for SocketCore.
  17099. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17100. size is wrong
  17101. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17102. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17103. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17104. * Release 0.1.0