ChangeLog 695 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445
  1. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Added aiFlags argument to getInterfaceAddress(). Use
  3. AI_NUMERICHOST to find interface specified using
  4. --bt-lpd-interface option to avoid time-consuming address lookup.
  5. * src/BtSetup.cc
  6. * src/SocketCore.cc
  7. * src/SocketCore.h
  8. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Return SharedHandle<LpdMessage>(new LpdMessage()) if received data
  10. is bad in LpdMessageReceiver.
  11. * src/LpdMessage.h
  12. * src/LpdMessageReceiver.cc
  13. * src/LpdMessageReceiver.h
  14. * src/LpdReceiveMessageCommand.cc
  15. * test/LpdMessageReceiverTest.cc
  16. 2010-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Added --bt-lpd-interface option to specify the interface to use
  18. for Local Peer Discovery. LpdMessageDispatcher object now has its
  19. own socket. LpdMessageReceiver's socket is binded to multicast
  20. address to only receive multicast packets.
  21. * src/BtSetup.cc
  22. * src/LpdMessageDispatcher.cc
  23. * src/LpdMessageDispatcher.h
  24. * src/LpdMessageReceiver.cc
  25. * src/LpdMessageReceiver.h
  26. * src/LpdReceiveMessageCommand.cc
  27. * src/LpdReceiveMessageCommand.h
  28. * src/OptionHandlerFactory.cc
  29. * src/SocketCore.cc
  30. * src/SocketCore.h
  31. * src/prefs.cc
  32. * src/prefs.h
  33. * src/usage_text.h
  34. * test/LpdMessageDispatcherTest.cc
  35. * test/LpdMessageReceiverTest.cc
  36. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  37. Put the portion of code to get interface addresses in
  38. SocketCore::bindAddress() into newly added getInterfaceAddress().
  39. * src/SocketCore.cc
  40. * src/SocketCore.h
  41. 2010-02-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Rewritten util::parseInt() and parseUInt()
  43. * src/util.cc
  44. 2010-02-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Fixed compile error with mingw32 cross compiler. Defined
  46. a2_sockopt_t as void* for the target systems other than mingw32.
  47. * src/SocketCore.cc
  48. * src/a2netcompat.h
  49. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Removed 'always true' condition
  51. * src/util.cc
  52. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Documented --bt-enable-lpd option in man page.
  54. * doc/aria2c.1.txt
  55. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Added Local Peer Discovery. It is disabled by default. Use
  57. --bt-enable-lpd to enable the function.
  58. * src/BtConstants.h
  59. * src/BtSetup.cc
  60. * src/LpdDispatchMessageCommand.cc
  61. * src/LpdDispatchMessageCommand.h
  62. * src/LpdMessage.h
  63. * src/LpdMessageDispatcher.cc
  64. * src/LpdMessageDispatcher.h
  65. * src/LpdMessageReceiver.cc
  66. * src/LpdMessageReceiver.h
  67. * src/LpdReceiveMessageCommand.cc
  68. * src/LpdReceiveMessageCommand.h
  69. * src/Makefile.am
  70. * src/OptionHandlerFactory.cc
  71. * src/Peer.cc
  72. * src/Peer.h
  73. * src/PeerInteractionCommand.cc
  74. * src/SocketCore.cc
  75. * src/SocketCore.h
  76. * src/prefs.cc
  77. * src/prefs.h
  78. * src/usage_text.h
  79. * src/util.cc
  80. * src/util.h
  81. * test/LpdMessageDispatcherTest.cc
  82. * test/LpdMessageReceiverTest.cc
  83. * test/Makefile.am
  84. 2010-02-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. User-defined custom request headers specified by --header option
  86. now override builtin headers if they have same name.
  87. * src/HttpRequest.cc
  88. * src/HttpRequest.h
  89. * test/HttpRequestTest.cc
  90. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Rewirtten util::isNumber()
  92. * src/util.cc
  93. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. Reverted changes in r1893. setlocale(LC_CTYPE, "") is needed
  95. because without it localized error messages are not printed
  96. correctly.
  97. * src/Platform.cc
  98. 2010-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  99. Added unit tests for util::getContentDispositionFilename() from
  100. http://greenbytes.de/tech/tc2231/ Fixed the function so that added
  101. tests are passed.
  102. * src/util.cc
  103. * test/UtilTest.cc
  104. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Removed setlocale() for LC_CTYPE. It may affect isxdigit in
  106. util.cc
  107. * src/Platform.cc
  108. 2010-02-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  109. Support RFC2231 "Parameter Value Character Set and Language
  110. Information" in Content-Disposition header.
  111. * src/HttpResponse.cc
  112. * src/util.cc
  113. * src/util.h
  114. * test/UtilTest.cc
  115. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Print CXXFLAGS
  117. * configure.ac
  118. 2010-02-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Small optimization for A2_WOULDBLOCK(e)
  120. * src/SocketCore.cc
  121. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Removed test file
  123. * test/CookieStorageTest.cc
  124. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  125. Check both EAGAIN and EWOULDBLOCK
  126. * src/SocketCore.cc
  127. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  128. Removed ret == 0 checking for SSL_read(), SSL_write() and
  129. SSL_peek() because the checks are done in the caller. In
  130. SocketBuffer::send(), throw exception if nothing could be written
  131. and socket error was not EWOULDBLOCK
  132. * src/SocketBuffer.cc
  133. * src/SocketCore.cc
  134. 2010-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  135. Fixed error code handling so that it can handle Winsock2 error
  136. code.
  137. * src/SocketCore.cc
  138. * src/SocketCore.h
  139. 2010-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  140. Bump up version number to 1.9.0a
  141. * configure.ac
  142. * doc/aria2c.1.txt
  143. 2010-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  144. Fixed the bug that aria2 doesn't handle return value if error
  145. occurred before download begins.
  146. * src/MultiUrlRequestInfo.cc
  147. * src/main.cc
  148. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Removed SegmentManFactory class.
  150. * src/AbstractSegmentManFactory.h
  151. * src/DefaultSegmentManFactory.cc
  152. * src/DefaultSegmentManFactory.h
  153. * src/Makefile.am
  154. * src/RequestGroup.cc
  155. * src/RequestGroup.h
  156. * src/SegmentManFactory.h
  157. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Destroyed digest context after getting calculated hash.
  159. * src/Piece.cc
  160. * src/Piece.h
  161. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Removed BitfieldManFactory class.
  163. * src/BitfieldManFactory.cc
  164. * src/BitfieldManFactory.h
  165. * src/DefaultPieceStorage.cc
  166. * src/Makefile.am
  167. * src/PeerSessionResource.cc
  168. * src/Piece.cc
  169. * src/main.cc
  170. * test/DefaultPieceStorageTest.cc
  171. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Removed unused methods from BitfieldMan class. Moved
  173. getFirstMissingIndex to bitfield.h. Updated doc for BitfieldMan
  174. class.
  175. * src/BitfieldMan.cc
  176. * src/BitfieldMan.h
  177. * src/BitfieldManFactory.cc
  178. * src/BitfieldManFactory.h
  179. * src/bitfield.h
  180. * src/main.cc
  181. * test/BitfieldManTest.cc
  182. * test/DefaultPieceStorageTest.cc
  183. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Moved getFirstNMissingIndex to bitfield.h and made it return the
  185. number of appended indexes.
  186. * src/BitfieldMan.cc
  187. * src/BitfieldMan.h
  188. * src/Piece.cc
  189. * src/Piece.h
  190. * src/bitfield.h
  191. * test/BitfieldManTest.cc
  192. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. Added more tests.
  194. * test/BitfieldManTest.cc
  195. 2010-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Added BitfieldMan::getFirstNMissingUnusedIndex() to get multiple
  197. unused block indexes at once instead of calling
  198. getFirstMissingUnusedIndex() multiple times. Made use of it in
  199. Piece class and DefaultBtRequestFactory class via Piece class.
  200. * src/BitfieldMan.cc
  201. * src/BitfieldMan.h
  202. * src/DefaultBtRequestFactory.cc
  203. * src/Piece.cc
  204. * src/Piece.h
  205. * test/BitfieldManTest.cc
  206. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  207. Use std::make_pair(...)
  208. * src/DHTMessageTracker.cc
  209. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Use std::make_pair(...)
  211. * src/bittorrent_helper.cc
  212. 2010-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. urlencode(removeFragment(...)) in parseUrl(...)
  214. * src/Request.cc
  215. 2010-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Wrapped logger->debug(...) with if(logger->debug()) { ... }
  217. * src/AbstractCommand.cc
  218. * src/AdaptiveURISelector.cc
  219. * src/BtPieceMessage.cc
  220. * src/BtPortMessage.cc
  221. * src/CreateRequestCommand.cc
  222. * src/DHTAbstractNodeLookupTask.cc
  223. * src/DHTBucket.cc
  224. * src/DHTGetPeersCommand.cc
  225. * src/DHTMessageDispatcherImpl.cc
  226. * src/DHTMessageFactoryImpl.cc
  227. * src/DHTMessageTracker.cc
  228. * src/DHTPeerAnnounceStorage.cc
  229. * src/DHTRoutingTable.cc
  230. * src/DHTSetup.cc
  231. * src/DefaultBtAnnounce.cc
  232. * src/DefaultBtInteractive.cc
  233. * src/DefaultBtMessageDispatcher.cc
  234. * src/DefaultBtMessageReceiver.cc
  235. * src/DefaultBtProgressInfoFile.cc
  236. * src/DefaultBtRequestFactory.cc
  237. * src/DefaultPeerStorage.cc
  238. * src/DefaultPieceStorage.cc
  239. * src/DownloadCommand.cc
  240. * src/DownloadEngine.cc
  241. * src/EpollEventPoll.cc
  242. * src/FileAllocationCommand.cc
  243. * src/FileEntry.cc
  244. * src/FtpNegotiationCommand.cc
  245. * src/HandshakeExtensionMessage.cc
  246. * src/HttpListenCommand.cc
  247. * src/HttpServer.cc
  248. * src/HttpSkipResponseCommand.cc
  249. * src/IteratableChunkChecksumValidator.cc
  250. * src/Logger.h
  251. * src/MSEHandshake.cc
  252. * src/MetalinkPostDownloadHandler.cc
  253. * src/MultiDiskAdaptor.cc
  254. * src/PeerAbstractCommand.cc
  255. * src/PeerConnection.cc
  256. * src/PeerListenCommand.cc
  257. * src/PeerReceiveHandshakeCommand.cc
  258. * src/RequestGroup.cc
  259. * src/RequestGroupMan.cc
  260. * src/SegmentMan.cc
  261. * src/SelectEventPoll.cc
  262. * src/ServerStat.cc
  263. * src/SimpleBtMessage.cc
  264. * src/SocketCore.cc
  265. * src/TrackerWatcherCommand.cc
  266. * src/UTMetadataDataExtensionMessage.cc
  267. * src/UTMetadataRequestFactory.cc
  268. * src/UTMetadataRequestTracker.cc
  269. * src/XmlRpcMethod.cc
  270. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  271. Changed log level from debug to info
  272. * src/BtDependency.cc
  273. * src/BtPostDownloadHandler.cc
  274. 2010-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Removed unused PeerSessionResource::_latency.
  276. * src/BtConstants.h
  277. * src/BtPieceMessage.cc
  278. * src/Peer.cc
  279. * src/Peer.h
  280. * src/PeerSessionResource.cc
  281. * src/PeerSessionResource.h
  282. * test/PeerSessionResourceTest.cc
  283. 2010-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Fixed the bug that --file-allocation=falloc doesn't work with
  285. single file download.
  286. * src/AbstractSingleDiskAdaptor.cc
  287. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Release 1.8.2
  289. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  290. Added Portuguese translation. Updated Ukrainian and Spanish
  291. translation. Thanks to all translators.
  292. * po/LINGUAS
  293. * po/es.po
  294. * po/pt.po
  295. * po/uk.po
  296. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Remove fragment from redirected URI.
  298. * src/Request.cc
  299. * test/RequestTest.cc
  300. 2010-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Updated po templates.
  302. * po/aria2.pot
  303. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  304. Drop legacy ifdef for ares support and code cleanup.
  305. * src/AsyncNameResolver.cc
  306. * src/AsyncNameResolver.h
  307. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  308. Call ares_library_init and ares_library_cleanup if they are
  309. available. Some code cleanups.
  310. * src/Platform.cc
  311. 2010-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Call ares_process_fd() each time after epoll to handle timeout.
  313. * src/EpollEventPoll.cc
  314. * src/EpollEventPoll.h
  315. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Suppressed type-cast compiler warning
  317. * src/CookieStorage.cc
  318. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Fixed compile error on Mac OS X.
  320. * src/CookieStorage.h
  321. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Removed cookietest.txt from Makefile.am
  323. * test/Makefile.am
  324. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  325. Updated version number in man page.
  326. * doc/aria2c.1.txt
  327. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  328. Rewritten help message for --allow-overwrite option.
  329. * doc/aria2c.1.txt
  330. * src/usage_text.h
  331. 2010-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Added bittorrent key to the response of tellStatus XML-RPC method.
  333. The associated value of the key is a struct and contains data
  334. retrieved from .torrent file, such as name, announce-list,
  335. comment, etc.
  336. * doc/aria2c.1.txt
  337. * src/XmlRpcMethodImpl.cc
  338. * src/XmlRpcMethodImpl.h
  339. * test/XmlRpcMethodTest.cc
  340. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Removed parse(std::istream&) and parse(const std::string&) from
  342. CookieParser.
  343. * src/CookieParser.cc
  344. * src/CookieParser.h
  345. * test/CookieParserTest.cc
  346. * test/cookietest.txt: Removed
  347. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Fixed the bug that cookie for domain a.b.c is not sent to the host
  349. a.b.c if no other cookies are stored. Fixed the bug that
  350. Cookie::markOriginServerOnly() is not called when cookies are
  351. loaded from file/sqlite3 database.
  352. * src/Cookie.h
  353. * src/CookieStorage.cc
  354. * src/NsCookieParser.cc
  355. * src/Sqlite3MozCookieParser.cc
  356. * test/CookieStorageTest.cc
  357. * test/NsCookieParserTest.cc
  358. * test/Sqlite3MozCookieParserTest.cc
  359. * test/cookies.sqlite
  360. * test/nscookietest.txt
  361. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  363. both _pieceStorage and _segmentMan are initialized or they are
  364. not.
  365. * src/RequestGroup.cc
  366. * src/RequestGroup.h
  367. * test/BtDependencyTest.cc
  368. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  369. Bump up version number to 1.8.2
  370. * configure.ac
  371. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Replaced "." with A2STR::DOT_C
  373. * src/AbstractCommand.cc
  374. * src/Cookie.cc
  375. * src/DownloadContext.cc
  376. * src/FtpConnection.cc
  377. * src/RequestGroup.cc
  378. * src/util.cc
  379. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Replaced isNumberAndDotsNotation() with isNumericHost().
  381. isNumericHost() can handle IPv6 address.
  382. * src/Cookie.cc
  383. * src/CookieStorage.cc
  384. * src/util.cc
  385. * src/util.h
  386. * test/CookieTest.cc
  387. * test/UtilTest.cc
  388. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  389. Included A2STR.h
  390. * src/CookieStorage.cc
  391. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Rewritten Cookie storage.
  393. * src/Cookie.cc
  394. * src/Cookie.h
  395. * src/CookieParser.cc
  396. * src/CookieStorage.cc
  397. * src/CookieStorage.h
  398. * src/a2functional.h
  399. * test/CookieParserTest.cc
  400. * test/CookieStorageTest.cc
  401. * test/CookieTest.cc
  402. * test/HttpResponseTest.cc
  403. * test/TestUtil.h
  404. * test/a2functionalTest.cc
  405. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Handle redirected URI which is not properly percent encoded.
  407. * src/Request.cc
  408. * test/RequestTest.cc
  409. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  410. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  411. not found' in the N times(N is where --max-file-not-found=N, N>0)
  412. in a row without single '200 OK' response.
  413. * src/RequestGroup.cc.
  414. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  415. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  416. readout by 80 characters in mingw32 build. Catch exception in
  417. DHTMessageReceiver::receiveMessage().
  418. * src/AbstractDiskWriter.cc
  419. * src/ConsoleStatCalc.cc
  420. * src/DHTMessageReceiver.cc
  421. * src/File.cc
  422. * src/RequestGroupMan.cc
  423. * src/a2io.h
  424. * test/FileTest.cc
  425. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Fixed compile error with intel compiler
  427. * src/XmlRpcMethodImpl.cc
  428. * src/XmlRpcMethodImpl.h
  429. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  430. Release 1.8.1
  431. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  432. Updated Swedish, Russian and Italian translations. Thanks to all
  433. translators.
  434. * po/it.po
  435. * po/ru.po
  436. * po/sv.po
  437. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Fixed broken OptionParser::findByName().
  439. * src/OptionParser.cc
  440. * test/OptionParserTest.cc
  441. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. Fixed test error without BitTorrent support.
  443. * test/XmlRpcMethodTest.cc
  444. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  445. Fixed compile error without GNUTLS/OpenSSL.
  446. * src/util.cc
  447. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Changed compression level to Z_DEFAULT_COMPRESSION.
  449. * src/GZipEncoder.cc
  450. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  451. Added missing command line options: --http-no-cache,
  452. --bt-save-metadata and --bt-metadata-only.
  453. * doc/xmlrpc/aria2rpc
  454. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  456. client accepts gzip content encoding.
  457. * src/A2STR.cc
  458. * src/A2STR.h
  459. * src/GZipEncoder.cc
  460. * src/GZipEncoder.h
  461. * src/HttpHeader.cc
  462. * src/HttpHeader.h
  463. * src/HttpServer.cc
  464. * src/HttpServer.h
  465. * src/HttpServerBodyCommand.cc
  466. * src/HttpServerCommand.cc
  467. * src/Makefile.am
  468. * src/XmlRpcResponse.cc
  469. * src/XmlRpcResponse.h
  470. * test/GZipEncoderTest.cc
  471. * test/Makefile.am
  472. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  473. Added XML-RPC client sample code in Python.
  474. * doc/aria2c.1.txt
  475. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  476. Updated po templates.
  477. * po/aria2.pot
  478. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  479. Bump up version number to 1.8.1
  480. * configure.ac
  481. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Added version number to man page. Updated copyright year in man
  483. page.
  484. * doc/aria2c.1.txt
  485. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Rewritten toTagString
  487. * src/NameMatchOptionHandler.cc
  488. * test/OptionHandlerTest.cc
  489. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  490. Added dir and files key to the response struct of aria2.tellStatus
  491. XML-RPC method. The value associated with files key is the list
  492. of files. Its element is the same struct used in aria2.getFiles
  493. XML-RPC method. Added uris key to the response struct of
  494. aria2.getFiles XML-RPC method. The value associated with uris key
  495. is the list of URIs. Its element is the same struct used in
  496. aria2.getUris XML-RPC method.
  497. * doc/aria2c.1.txt
  498. * src/XmlRpcMethodImpl.cc
  499. * test/XmlRpcMethodTest.cc
  500. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Added aria2.getSessionInfo XML-RPC method. This method returns a
  502. struct containing Session ID, which is generated each time when
  503. aria2 is invoked.
  504. * doc/aria2c.1.txt
  505. * doc/xmlrpc/aria2rpc
  506. * src/DownloadEngine.cc
  507. * src/DownloadEngine.h
  508. * src/XmlRpcMethodFactory.cc
  509. * src/XmlRpcMethodImpl.cc
  510. * src/XmlRpcMethodImpl.h
  511. * test/XmlRpcMethodTest.cc
  512. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Moved generateRandomKey() from bittorrent_helper to util.
  514. * src/DHTBucket.cc
  515. * src/DHTNode.cc
  516. * src/bittorrent_helper.cc
  517. * src/bittorrent_helper.h
  518. * src/util.cc
  519. * src/util.h
  520. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  521. Updated doc about GID.
  522. * doc/aria2c.1.txt
  523. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  524. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  525. accepts a negative integer. 'offset' == -1 points last download
  526. in the waiting queue and 'offset' == -2 points the download before
  527. the last download, and so on. The downloads in the response are in
  528. reversed order.
  529. * doc/aria2c.1.txt
  530. * src/XmlRpcMethodImpl.cc
  531. * src/XmlRpcMethodImpl.h
  532. * test/XmlRpcMethodTest.cc
  533. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Added --human-readable option. This option, when true is given,
  535. prints sizes and speed in human readable format(e.g., 1.2Ki,
  536. 3.4Mi) in the console readout. The default value is true and it
  537. looks exactly the same as aria2-1.8.0. So the 'new feature'
  538. appears when false is given. In this case, sizes and speed are
  539. printed without in bytes. No Ki, Mi units conversion is used.
  540. This may be useful for a program to parse the output of aria2.
  541. * doc/aria2c.1.txt
  542. * src/ConsoleStatCalc.cc
  543. * src/ConsoleStatCalc.h
  544. * src/OptionHandlerFactory.cc
  545. * src/main.cc
  546. * src/prefs.cc
  547. * src/prefs.h
  548. * src/usage_text.h
  549. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  551. option accepts empty string "". When "" is given, it erases
  552. previously defined proxy.
  553. * doc/aria2c.1.txt
  554. * src/OptionHandlerImpl.h
  555. * src/usage_text.h
  556. * test/OptionHandlerTest.cc
  557. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Code cleanup for proxy URI handling.
  559. * src/AbstractCommand.cc
  560. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  561. Added --bt-metadata-only option. If true is given to this option,
  562. aria2 downloads metadata only. The file(s) described in metadata
  563. will not be downloaded. This option has effect only when
  564. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  565. * doc/aria2c.1.txt
  566. * src/OptionHandlerFactory.cc
  567. * src/UTMetadataPostDownloadHandler.cc
  568. * src/download_helper.cc
  569. * src/prefs.cc
  570. * src/prefs.h
  571. * src/usage_text.h
  572. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Fixed memory leak. Commands stored in std::deque<Command*> are not
  574. deleted when exception is thrown. Make sure that when passing
  575. std::deque<Command*> to function to store Commands, handle
  576. exception and delete these Commands.
  577. * src/AbstractCommand.cc
  578. * src/CheckIntegrityCommand.cc
  579. * src/FileAllocationCommand.cc
  580. * src/RequestGroup.cc
  581. * src/TrackerWatcherCommand.cc
  582. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  584. * src/A2STR.cc
  585. * src/A2STR.h
  586. * src/FtpNegotiationCommand.cc
  587. * src/HttpResponseCommand.cc
  588. * src/util.cc
  589. * src/util.h
  590. * test/UtilTest.cc
  591. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Treat --dir="" as --dir="."
  593. * src/FtpNegotiationCommand.cc
  594. * src/HttpResponseCommand.cc
  595. * src/Metalink2RequestGroup.cc
  596. * src/UTMetadataPostDownloadHandler.cc
  597. * src/bittorrent_helper.cc
  598. * src/download_helper.cc
  599. * src/util.cc
  600. * src/util.h
  601. * test/UtilTest.cc
  602. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  603. Code clean up.
  604. * src/main.cc
  605. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  606. Reset GID to 1 when they reach maximum value. Rewritten
  607. CUIDCounter::newID()
  608. * src/CUIDCounter.h
  609. * src/RequestGroup.cc
  610. * src/RequestGroup.h
  611. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  612. Documented --http-no-cache option in man page.
  613. * doc/aria2c.1.txt
  614. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  615. Added --http-no-cache option. When true is given, aria2 sends
  616. Cache-Control: no-cache and Pragma: no-cache header to avoid
  617. cached content. If false is given , these headers are not sent
  618. and you can add Cache-Control header with a directive you like
  619. using --header option.
  620. * src/HttpRequest.cc
  621. * src/HttpRequest.h
  622. * src/HttpRequestCommand.cc
  623. * src/OptionHandlerFactory.cc
  624. * src/download_helper.cc
  625. * src/prefs.cc
  626. * src/prefs.h
  627. * src/usage_text.h
  628. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  629. Removed Logger from OptionParser. When OptionParser is used to
  630. parse options at bootstrap, LogFactory is not configured yet
  631. properly. When LogFactory is used in OptionParser, it initializes
  632. itself to return a logger which has no ability to write log to the
  633. disk.
  634. * src/OptionParser.cc
  635. * src/OptionParser.h
  636. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  637. Added following sentance to the help message of --out option:
  638. --out option is ignored when -Z is used.
  639. * doc/aria2c.1.txt
  640. * src/usage_text.h
  641. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Added --bt-save-metadata option to -i list options.
  643. * doc/aria2c.1.txt
  644. * src/download_helper.cc
  645. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  647. additional libraries.
  648. * src/MultiUrlRequestInfo.cc
  649. * src/NameResolver.cc
  650. * src/SelectEventPoll.cc
  651. * src/SelectEventPoll.h
  652. * src/SocketCore.cc
  653. * src/SocketCore.h
  654. * src/a2netcompat.h
  655. * src/daemon.cc
  656. * src/main.cc
  657. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Fixed typo.
  659. * src/DHTMessageReceiver.cc
  660. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Fixed the bug that causes segmentation fault if unknown option is
  662. put in aria2.conf file. BUG#2928303
  663. * src/OptionParser.cc
  664. * src/OptionParser.h
  665. * src/option_processing.cc
  666. * test/OptionParserTest.cc
  667. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  668. Ignore port message with port=0.
  669. * src/BtPortMessage.cc
  670. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  671. Run autoupdate
  672. * configure.ac
  673. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  674. Updated autoconf/automake auxiliary files.
  675. * INSTALL
  676. * config.guess
  677. * config.sub
  678. * depcomp
  679. * install-sh
  680. * m4/intldir.m4
  681. * missing
  682. * mkinstalldirs
  683. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  684. Removed unused function.
  685. * src/SharedHandle.h
  686. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  687. Find pooled socket using all cached addresses.
  688. * src/DNSCache.h
  689. * src/DownloadEngine.cc
  690. * src/DownloadEngine.h
  691. * src/InitiateConnectionCommand.cc
  692. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  693. Updated copyright year.
  694. * src/version_usage.cc
  695. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Pool connection if _contentEncodingDecoder is used and server
  697. supports persistent connection.
  698. * src/HttpDownloadCommand.cc
  699. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Updated doc.
  701. * src/DownloadCommand.cc
  702. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Untabify. Fixed one line in copyright which is longer than 80
  704. columns.
  705. * src
  706. * test
  707. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Release 1.8.0
  709. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  710. Updated po templates.
  711. * po/aria2.pot
  712. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Documented --bt-save-metadata option in man page.
  714. * doc/aria2c.1.txt
  715. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Fixed usage of --bt-save-metadata option.
  717. * src/usage_text.h
  718. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Updated po templates.
  720. * po/aria2.pot
  721. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  723. causes name resolution error when none of network interface has
  724. IPv4 address.
  725. * src/main.cc
  726. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Bump up version number to 1.8.0.
  728. * configure.ac
  729. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  730. Use info hash as a filename when saving BitTorrent metadata.
  731. * src/UTMetadataPostDownloadHandler.cc
  732. * test/UTMetadataPostDownloadHandlerTest.cc
  733. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  734. Documented system.multicall XML-RPC method in man page.
  735. * doc/aria2c.1.txt
  736. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Added signal handler for SIGHUP to save .aria2 file when terminal
  738. is closed. The handler is the same one for SIGINT and SIGTERM.
  739. * src/MultiUrlRequestInfo.cc
  740. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Defined method name in XmlRpcMethod subclasses.
  742. * src/XmlRpcMethodFactory.cc
  743. * src/XmlRpcMethodImpl.cc
  744. * src/XmlRpcMethodImpl.h
  745. * test/XmlRpcMethodTest.cc
  746. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Added system.multicall XML-RPC method.
  748. * src/XmlRpcMethod.cc
  749. * src/XmlRpcMethod.h
  750. * src/XmlRpcMethodFactory.cc
  751. * src/XmlRpcMethodImpl.cc
  752. * src/XmlRpcMethodImpl.h
  753. * test/XmlRpcMethodTest.cc
  754. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  755. Check structure depth when decoding.
  756. * src/bencode.cc
  757. * src/bencode.h
  758. * test/BencodeTest.cc
  759. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  760. Documented tellStopped XML-RPC method in man page.
  761. * doc/aria2c.1.txt
  762. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  763. Added tellStopped XML-RPC method to aria2rpc.
  764. * doc/xmlrpc/aria2rpc
  765. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  766. Added tellStopped XML-RPC method. This method returns stopped
  767. download in the specified range. It takes same parameters with
  768. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  769. * src/XmlRpcMethodFactory.cc
  770. * src/XmlRpcMethodImpl.cc
  771. * src/XmlRpcMethodImpl.h
  772. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  774. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  775. when conducting unit tests because they fail if networking
  776. interface is not configured with IPv4 address.
  777. * src/NameResolver.cc
  778. * src/SocketCore.cc
  779. * src/SocketCore.h
  780. * src/a2netcompat.h
  781. * test/AllTest.cc
  782. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Fixed unit test error
  784. * test/UTMetadataPostDownloadHandlerTest.cc
  785. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Defined static string constants for efficiency.
  787. * src/XmlRpcMethodImpl.cc
  788. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Added --bt-save-metadata option. When true is given, it saves
  790. metadata as .torrent file. This option has effect only when
  791. BitTorrent Magnet URI is used. The filename is name in metadata
  792. with suffix .torrent. The directory to be saved is the same
  793. directory where download file is saved. If the same file already
  794. exists, metdata is not saved.
  795. * src/OptionHandlerFactory.cc
  796. * src/UTMetadataPostDownloadHandler.cc
  797. * src/UTMetadataPostDownloadHandler.h
  798. * src/message.h
  799. * src/prefs.cc
  800. * src/prefs.h
  801. * src/usage_text.h
  802. * test/UTMetadataDataExtensionMessageTest.cc
  803. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Added util::saveAs() function. Use it in Signature::save().
  805. * src/Signature.cc
  806. * src/util.cc
  807. * src/util.h
  808. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Upcase info hash in Magnet URI.
  810. * doc/aria2c.1.txt
  811. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Refactored RequestGroupMan::changeReservedGroupPosition()
  813. * src/RequestGroupMan.cc
  814. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Updated the description for aria2.addTorrent XML-RPC method.
  816. * doc/aria2c.1.txt
  817. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  818. Added changePosition to aria2rpc.
  819. * doc/xmlrpc/aria2rpc
  820. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Documented changePosition XML-RPC method in man page.
  822. * doc/aria2c.1.txt
  823. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  824. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  825. pos and how. This method changes the position of download denoted
  826. by gid. If how is POS_SET, it moves the download to a position
  827. relative to the beginning of the queue. If how is POS_CUR, it
  828. moves the download to a position relative to the current
  829. position. If how is POS_END, it moves the download to a position
  830. relative to the end of the queue. If the destination position is
  831. less than 0 or beyond the end of the queue, it moves the download
  832. to the beginning or the end of the queue respectively. Returns
  833. the destination position.
  834. * src/RequestGroupMan.cc
  835. * src/RequestGroupMan.h
  836. * src/XmlRpcMethodFactory.cc
  837. * src/XmlRpcMethodImpl.cc
  838. * src/XmlRpcMethodImpl.h
  839. * test/RequestGroupManTest.cc
  840. * test/XmlRpcMethodTest.cc
  841. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  842. Added getOption and getGlobalOption to aria2rpc.
  843. * doc/xmlrpc/aria2rpc
  844. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  845. Documented getOption and getGlobalOption XML-RPC method in man
  846. page
  847. * doc/aria2c.1.txt
  848. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Added getOption and getGlobalOption XML-RPC method. getOption
  850. takes GID as a parameter and returns its options as struct.
  851. getGlobalOption takes no parameter and returns global
  852. options. Because global option is used as a template for the
  853. option of newly added downloads, it includes options returned by
  854. getOption.
  855. * src/Option.h
  856. * src/XmlRpcMethodFactory.cc
  857. * src/XmlRpcMethodImpl.cc
  858. * src/XmlRpcMethodImpl.h
  859. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Sort _optionHandlers in OptionParser by name in ascending order.
  861. Use vector instead of deque for efficiency.
  862. * src/OptionHandler.h
  863. * src/OptionHandlerFactory.h
  864. * src/OptionParser.cc
  865. * src/OptionParser.h
  866. * src/version_usage.cc
  867. * test/OptionParserTest.cc
  868. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Code cleanup
  870. * src/XmlRpcMethod.cc
  871. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Documented about followedBy and belongsTo in man page.
  873. * doc/aria2c.1.txt
  874. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  875. Added following 2 keys, followedBy and belongsTo, to the response
  876. of tellStatus.
  877. followedBy: List of GIDs which are generated by the consequence of
  878. this download. For example, when aria2 downloaded Metalink file,
  879. it generates downloads described in it(see *--follow-metalink*
  880. option). This value is useful to track these auto generated
  881. downloads. If there is no such downloads, this key will not be
  882. included in the response.
  883. belongsTo: GID of a parent download. Some downloads are a part of
  884. another download. For example, if a file in Metalink has
  885. BitTorrent resource, the download of .torrent is a part of that
  886. file. If this download has no parent, this key will not be
  887. included in the response.
  888. * src/BtPostDownloadHandler.cc
  889. * src/DownloadResult.h
  890. * src/Metalink2RequestGroup.cc
  891. * src/MetalinkPostDownloadHandler.cc
  892. * src/RequestGroup.cc
  893. * src/RequestGroup.h
  894. * src/UTMetadataPostDownloadHandler.cc
  895. * src/XmlRpcMethodImpl.cc
  896. * src/XmlRpcMethodImpl.h
  897. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  898. Assigned BObject in BDE() to avoid segmentation fault when calling
  899. methods of BDE::none().
  900. * src/BDE.cc
  901. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  902. Show info hash in Magnet URI in upper case letters in -S output.
  903. * src/bittorrent_helper.cc
  904. * test/BittorrentHelperTest.cc
  905. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  906. Removed old useless comment
  907. * src/MultiUrlRequestInfo.cc
  908. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  910. not properly used in configure script and failed to detect gnutls.
  911. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  912. and the initialization of pkg-config is done in first occurrence
  913. of PKG_CHECK_MODULES which is not executed because it is inside of
  914. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  915. * configure.ac
  916. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  917. Release 1.7.2
  918. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Fixed the bug that RequestGroupMan::downloadFinished() returns
  920. true even if all downloads haven't finished, especially when
  921. PostDownloadHandler is involved. Changed the condition so that it
  922. only returns true if both _requestGroups and _reservedGroups are
  923. empty.
  924. * src/RequestGroupMan.cc
  925. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Log listening port for BitTorrent/DHT in notice level.
  927. * src/DHTConnectionImpl.cc
  928. * src/PeerListenCommand.cc
  929. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  930. Updated po templates.
  931. * po/aria2.pot
  932. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Bump up version number to 1.7.2
  934. * configure.ac
  935. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Changed default value of --enable-dht from 'false' to 'true'.
  937. * doc/aria2c.1.txt
  938. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Enabled DHT by default because of Magnet URI support. To disable
  940. DHT, use --enable-dht=false
  941. * src/OptionHandlerFactory.cc
  942. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Print Magnet URI in -S output.
  944. * src/AnnounceList.cc
  945. * src/bittorrent_helper.cc
  946. * src/bittorrent_helper.h
  947. * test/BittorrentHelperTest.cc
  948. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  949. Added --bt-prioritize-piece option to aria2rpc.
  950. * doc/xmlrpc/aria2rpc
  951. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Refer Magnet URI in --help. Made some cosmetic changes.
  953. * src/version_usage.cc
  954. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  955. Updated -T and -M option.
  956. * doc/aria2c.1.txt
  957. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Fixed typo
  959. * doc/aria2c.1.txt
  960. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Fixed the bug that line separator is missing in horizontal bar.
  962. * doc/xmlrpc/aria2mon
  963. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  964. Updated usage text for --metalink-file option.
  965. * src/usage_text.h
  966. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  967. If '-' is given as an argument to --metalink-file option, aria2
  968. reads Metalink file from stdin.
  969. * src/OptionHandlerFactory.cc
  970. * src/OptionHandlerImpl.h
  971. * src/a2io.h
  972. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  973. Fixed the bug that aria2 listens wrong port if --interface option
  974. is used.
  975. * src/SocketCore.cc
  976. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Fixed the bug that query parameter in magnet URI is not decoded.
  978. * src/magnet.cc
  979. * test/MagnetTest.cc
  980. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Specified defaultSize as an argument for easy testing.
  982. * src/util.cc
  983. * src/util.h
  984. * test/UtilTest.cc
  985. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Release 1.7.1
  987. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  988. Bump up version number to 1.7.1
  989. * configure.ac
  990. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  991. Fixed the bug --bt-prioritize-piece=tail is not working.
  992. * src/util.cc
  993. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  994. Release 1.7.0
  995. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Updated po templates.
  997. * po/aria2.pot
  998. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Updated help message for --bt-prioritize-piece. Some cosmetic
  1000. changes.
  1001. * doc/aria2c.1.txt
  1002. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1003. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  1004. * src/usage_text.h
  1005. * src/util.cc
  1006. * test/UtilTest.cc
  1007. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Updated Russian, Ukrainian, German and French translations.
  1009. Thanks to all translators involved.
  1010. * po/de.po
  1011. * po/fr.po
  1012. * po/ru.po
  1013. * po/uk.po
  1014. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1015. Mentioned about pkg-config
  1016. * README
  1017. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Fixed typo. Referred --index-out option in BitTorrent notes.
  1019. * README
  1020. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Store all addresses found by getifaddrs() and getaddrinfo(). In
  1022. bind, try all addresses until success
  1023. * src/SocketCore.cc
  1024. * src/SocketCore.h
  1025. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Updated po templates.
  1027. * po/aria2.pot
  1028. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Bump up version number to 1.7.0
  1030. * configure.ac
  1031. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Fixed compile error if ENABLE_BITTORRENT is undefined.
  1033. * src/DefaultPieceStorage.cc
  1034. * src/DefaultPieceStorage.h
  1035. * src/PieceStorage.h
  1036. * src/UnknownLengthPieceStorage.cc
  1037. * src/UnknownLengthPieceStorage.h
  1038. * test/MockPieceStorage.h
  1039. * test/ProtocolDetectorTest.cc
  1040. * test/XmlRpcMethodTest.cc
  1041. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1042. Documented in man page that if getifaddrs() is missing,
  1043. --interface option doesn't accept interface name.
  1044. * doc/aria2c.1.txt
  1045. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1046. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  1047. * src/DefaultBtAnnounce.cc
  1048. * src/DefaultBtAnnounce.h
  1049. * test/DefaultBtAnnounceTest.cc
  1050. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1051. Fixed the bug that connection is always dropped if handshake
  1052. message in extension protocol don't have metadata_size.
  1053. src/HandshakeExtensionMessage.cc
  1054. * src/HandshakeExtensionMessage.cc
  1055. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  1057. text saying DHT is recommended when Magnet URI is provided.
  1058. * doc/aria2c.1.txt
  1059. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  1061. URI is supplied. Notify user that they should consider enabling
  1062. DHT if they use Magnet URI.
  1063. * src/RequestGroup.cc
  1064. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Added --disable-ipv6 option to disable IPv6.
  1066. * doc/aria2c.1.txt
  1067. * src/InitiateConnectionCommand.cc
  1068. * src/NameResolver.cc
  1069. * src/NameResolver.h
  1070. * src/OptionHandlerFactory.cc
  1071. * src/main.cc
  1072. * src/prefs.cc
  1073. * src/prefs.h
  1074. * src/usage_text.h
  1075. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Updated usage text for --bt-prioritize-piece option.
  1077. * doc/aria2c.1.txt
  1078. * src/usage_text.h
  1079. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1080. In configure script, if --with-PACKAGE and --enable-FEATURE are
  1081. given and PACKAGE is missing in the system or FEATURE cannot be
  1082. enabled, print error message and stop the script.
  1083. * configure.ac
  1084. * m4/aria2_arg.m4
  1085. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1086. Halt metadata download immediately when metadata download is done.
  1087. Don't wait unresponsive tracker.
  1088. * src/ByteArrayDiskWriter.h
  1089. * src/DefaultBtInteractive.cc
  1090. * src/DefaultExtensionMessageFactory.cc
  1091. * src/DefaultExtensionMessageFactory.h
  1092. * src/PeerInteractionCommand.cc
  1093. * src/UTMetadataDataExtensionMessage.cc
  1094. * src/UTMetadataDataExtensionMessage.h
  1095. * src/UTMetadataRequestExtensionMessage.cc
  1096. * test/UTMetadataDataExtensionMessageTest.cc
  1097. * test/UTMetadataRequestExtensionMessageTest.cc
  1098. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Documented --interface option in man page.
  1100. * doc/aria2c.1.txt
  1101. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1102. Try resolved address in the order received from the resolver.
  1103. * src/DNSCache.h
  1104. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1105. Added debug logs.
  1106. * src/SocketCore.cc
  1107. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Fixed type of tail to uint64_t
  1109. * src/util.cc
  1110. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Added --interface option. This feature binds sockets to given
  1112. interface. You can specify interface name, IP address and
  1113. hostname.
  1114. * configure.ac
  1115. * src/OptionHandlerFactory.cc
  1116. * src/SocketCore.cc
  1117. * src/SocketCore.h
  1118. * src/main.cc
  1119. * src/message.h
  1120. * src/prefs.cc
  1121. * src/prefs.h
  1122. * src/usage_text.h
  1123. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1124. Updated man page for bt-prioritize-piece option in -i list.
  1125. * doc/aria2c.1.txt
  1126. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. Added bt-prioritize-piece option to -i list.
  1128. * src/download_helper.cc
  1129. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Removed --http-auth-scheme option from man page.
  1131. * doc/aria2c.1.txt
  1132. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Removed --http-auth-scheme option since it doesn't do nothing.
  1134. * src/OptionHandlerFactory.cc
  1135. * src/prefs.cc
  1136. * src/prefs.h
  1137. * src/usage_text.h
  1138. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Adjusted the number of peer info which get_peers reply message can
  1140. carry.
  1141. * src/DHTGetPeersReplyMessage.cc
  1142. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1143. Added extension_message_test_helper.h to aria2c_SOURCES.
  1144. * test/Makefile.am
  1145. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Documented --bt-prioritize-piece option in man page.
  1147. * doc/aria2c.1.txt
  1148. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1149. Added option --bt-prioritize-piece. This option instruct aria2 to
  1150. try to download first and last pieces of each file first. The
  1151. argument can contain 2 keywords:head and tail. To include both
  1152. keywords, they must be separated by comma. These keywords can take
  1153. one parameter, SIZE. For example , if head=SIZE is specified,
  1154. pieces in the range of first SIZE bytes of each file get higher
  1155. priority. tail=SIZE means the range of last SIZE bytes of each
  1156. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  1157. * src/DefaultPieceStorage.h
  1158. * src/Makefile.am
  1159. * src/OptionHandlerFactory.cc
  1160. * src/OptionHandlerImpl.h
  1161. * src/PriorityPieceSelector.cc
  1162. * src/PriorityPieceSelector.h
  1163. * src/RequestGroup.cc
  1164. * src/prefs.cc
  1165. * src/prefs.h
  1166. * src/usage_text.h
  1167. * src/util.cc
  1168. * src/util.h
  1169. * test/Makefile.am
  1170. * test/MockPieceSelector.h
  1171. * test/PriorityPieceSelectorTest.cc
  1172. * test/UtilTest.cc
  1173. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1174. Fixed typo
  1175. * src/HttpRequest.h
  1176. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. In Magnet URI with tr parameter, put each announce URI in separate
  1178. tier.
  1179. * src/bittorrent_helper.cc
  1180. * test/BittorrentHelperTest.cc
  1181. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Renamed ExtensionMessage::getBencodedData() as
  1183. ExtensionMessage::getPayload()
  1184. * src/BtExtendedMessage.cc
  1185. * src/ExtensionMessage.h
  1186. * src/HandshakeExtensionMessage.cc
  1187. * src/HandshakeExtensionMessage.h
  1188. * src/UTMetadataDataExtensionMessage.cc
  1189. * src/UTMetadataDataExtensionMessage.h
  1190. * src/UTMetadataRejectExtensionMessage.cc
  1191. * src/UTMetadataRejectExtensionMessage.h
  1192. * src/UTMetadataRequestExtensionMessage.cc
  1193. * src/UTMetadataRequestExtensionMessage.h
  1194. * src/UTPexExtensionMessage.cc
  1195. * src/UTPexExtensionMessage.h
  1196. * test/HandshakeExtensionMessageTest.cc
  1197. * test/MockExtensionMessage.h
  1198. * test/UTMetadataDataExtensionMessageTest.cc
  1199. * test/UTMetadataRejectExtensionMessageTest.cc
  1200. * test/UTMetadataRequestExtensionMessageTest.cc
  1201. * test/UTPexExtensionMessageTest.cc
  1202. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1203. Updated man page for BitTorrent Magnet URI.
  1204. * doc/aria2c.1.txt
  1205. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Call DownloadContext::setOwnerRequestGroup() in
  1207. RequestGroup::setDownloadContext().
  1208. * src/BtDependency.cc
  1209. * src/RequestGroup.cc
  1210. * src/RequestGroup.h
  1211. * src/download_helper.cc
  1212. * test/DefaultBtMessageDispatcherTest.cc
  1213. * test/DefaultExtensionMessageFactoryTest.cc
  1214. * test/HandshakeExtensionMessageTest.cc
  1215. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1216. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  1217. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  1218. from metadata, use new metadata2Torrent() function.
  1219. * src/BtDependency.cc
  1220. * src/UTMetadataPostDownloadHandler.cc
  1221. * src/bittorrent_helper.cc
  1222. * src/bittorrent_helper.h
  1223. * test/BittorrentHelperTest.cc
  1224. * test/BtDependencyTest.cc
  1225. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Use createRequestGroupForUri to create the download for torrent
  1227. file.
  1228. * src/Metalink2RequestGroup.cc
  1229. * test/Metalink2RequestGroupTest.cc
  1230. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Fixed typo
  1232. * src/DownloadContext.h
  1233. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Use createRequestGroupForBitTorrent()
  1235. * src/BtPostDownloadHandler.cc
  1236. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Added remove().
  1238. * src/Option.cc
  1239. * src/Option.h
  1240. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Removed options which is only valid for URIs specified in
  1242. command-line. If they are left, because op is used as a template
  1243. for new RequestGroup(such as created in XML-RPC command,
  1244. BtPostDownloadHandler etc), they causes unintentional effect.
  1245. * src/main.cc
  1246. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Refer to option value of PREF_OUT only in download_helper.
  1248. * src/FtpNegotiationCommand.cc
  1249. * src/HttpResponseCommand.cc
  1250. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1251. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  1252. * src/download_helper.cc
  1253. * src/download_helper.h
  1254. * src/XmlRpcMethodImpl.cc
  1255. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Updated man page for changeOption XML-RPC method.
  1257. * doc/aria2c.1.txt
  1258. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1259. Added --bt-max-peers option to changeOption XML-RPC method.
  1260. * src/XmlRpcMethod.cc
  1261. * src/XmlRpcMethodImpl.cc
  1262. * test/XmlRpcMethodTest.cc
  1263. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  1265. * test/XmlRpcMethodTest.cc
  1266. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1267. Removed redundant DownloadContext::hasAttribute(...) calls.
  1268. * src/ConsoleStatCalc.cc
  1269. * src/RequestGroup.cc
  1270. * src/XmlRpcMethodImpl.cc
  1271. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Changed the number of tracker request attempt from 5 to 2.
  1273. * src/TrackerWatcherCommand.cc
  1274. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Use host and protocol in original URI, because URI selector
  1276. selects URI based on original URI, not redirected one.
  1277. * src/Request.cc
  1278. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Fixed the bug which causes segmentation fault with tellWaiting
  1280. XML-RPC method when BitTorrent download is waiting. The key of
  1281. BtRegistry is changed from info hash to GID, because it is
  1282. registered per RequestGroup, not info hash.
  1283. * src/BtRegistry.cc
  1284. * src/BtRegistry.h
  1285. * src/BtSetup.cc
  1286. * src/ConsoleStatCalc.cc
  1287. * src/InitiatorMSEHandshakeCommand.cc
  1288. * src/PeerInitiateConnectionCommand.cc
  1289. * src/PeerInteractionCommand.cc
  1290. * src/PeerInteractionCommand.h
  1291. * src/PeerReceiveHandshakeCommand.cc
  1292. * src/RequestGroup.cc
  1293. * src/XmlRpcMethodImpl.cc
  1294. * test/BtRegistryTest.cc
  1295. * test/XmlRpcMethodTest.cc
  1296. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Updated man page for changeOption XML-RPC method.
  1298. * doc/aria2c.1.txt
  1299. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  1301. method.
  1302. * src/XmlRpcMethod.cc
  1303. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. Documented about BitTorrent Magnet URI in man page.
  1305. * doc/aria2c.1.txt
  1306. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1307. Fixed the bug that trackers in BitTorrent Magnet URI are not
  1308. inherited to generated RequestGroup.
  1309. * src/UTMetadataPostDownloadHandler.cc
  1310. * test/UTMetadataPostDownloadHandlerTest.cc
  1311. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Prepended "[METADATA]" before dn.
  1313. * src/bittorrent_helper.cc
  1314. * test/BittorrentHelperTest.cc
  1315. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1316. Rewritten Magnet URI parser.
  1317. * src/Makefile.am
  1318. * src/ProtocolDetector.cc
  1319. * src/bittorrent_helper.cc
  1320. * src/bittorrent_helper.h
  1321. * src/download_helper.cc
  1322. * src/magnet.cc
  1323. * src/magnet.h
  1324. * test/BittorrentHelperTest.cc
  1325. * test/MagnetTest.cc
  1326. * test/Makefile.am
  1327. * test/ProtocolDetectorTest.cc
  1328. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1329. Use hton64
  1330. * src/base32.cc
  1331. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1332. Added Base32 encoded BitTorrent Magnet Link support.
  1333. * src/Makefile.am
  1334. * src/base32.cc
  1335. * src/base32.h
  1336. * src/bittorrent_helper.cc
  1337. * test/Base32Test.cc
  1338. * test/BittorrentHelperTest.cc
  1339. * test/Makefile.am
  1340. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1341. Added BitTorrent Magnet Link support. Base32 encoded link is not
  1342. supported yet. Fixed typo in method name in RequestGroup. In
  1343. metadataGetMode, don't show "Your share ratio was ..." message.
  1344. * src/DefaultBtInteractive.cc
  1345. * src/DefaultBtInteractive.h
  1346. * src/DownloadHandlerFactory.cc
  1347. * src/DownloadHandlerFactory.h
  1348. * src/HandshakeExtensionMessage.cc
  1349. * src/Makefile.am
  1350. * src/Metalink2RequestGroup.cc
  1351. * src/PeerInteractionCommand.cc
  1352. * src/RequestGroup.cc
  1353. * src/RequestGroup.h
  1354. * src/UTMetadataPostDownloadHandler.cc
  1355. * src/UTMetadataPostDownloadHandler.h
  1356. * src/download_helper.cc
  1357. * test/HandshakeExtensionMessageTest.cc
  1358. * test/Makefile.am
  1359. * test/UTMetadataPostDownloadHandlerTest.cc
  1360. * test/UTMetadataRejectExtensionMessageTest.cc
  1361. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1362. In metadataGetMode, don't show SEEDING.
  1363. * src/ConsoleStatCalc.cc
  1364. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Fixed ut_metadata data handling. Implemented
  1366. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1367. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1368. metadata_size is received.
  1369. * src/DefaultExtensionMessageFactory.cc
  1370. * src/DefaultExtensionMessageFactory.h
  1371. * src/HandshakeExtensionMessage.cc
  1372. * src/HandshakeExtensionMessage.h
  1373. * src/UTMetadataDataExtensionMessage.cc
  1374. * src/UTMetadataDataExtensionMessage.h
  1375. * src/UTMetadataRequestExtensionMessage.cc
  1376. * src/UTMetadataRequestFactory.cc
  1377. * src/UTMetadataRequestFactory.h
  1378. * src/UTMetadataRequestTracker.cc
  1379. * src/UTMetadataRequestTracker.h
  1380. * test/DefaultExtensionMessageFactoryTest.cc
  1381. * test/HandshakeExtensionMessageTest.cc
  1382. * test/MockBtMessage.h
  1383. * test/UTMetadataDataExtensionMessageTest.cc
  1384. * test/UTMetadataRequestExtensionMessageTest.cc
  1385. * test/UTMetadataRequestFactoryTest.cc
  1386. * test/UTMetadataRequestTrackerTest.cc
  1387. * test/extension_message_test_helper.h
  1388. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1389. Drop connection if ut_metadata reject message is received.
  1390. * src/UTMetadataRejectExtensionMessage.cc
  1391. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1392. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1393. get high enough in that mode.
  1394. * src/ActivePeerConnectionCommand.cc
  1395. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Added BitTorrent magnet link support to ProtocolDetector.
  1397. * src/ProtocolDetector.cc
  1398. * src/ProtocolDetector.h
  1399. * test/ProtocolDetectorTest.cc
  1400. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Don't inject validator into BtMessage in metadataGetMode because
  1402. most of the checks depends on the total length of download but it
  1403. is unknown. Delegate metadataGetMode to BtMessage.
  1404. * src/DefaultBtMessageFactory.cc
  1405. * src/DefaultBtMessageFactory.h
  1406. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1408. * src/DefaultPieceStorage.h
  1409. * src/PieceStorage.h
  1410. * src/UnknownLengthPieceStorage.h
  1411. * test/MockPieceStorage.h
  1412. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Added markTotalLengthIsKnown().
  1414. * src/DownloadContext.h
  1415. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1417. missing. If metadata is missing, always use DHT when it is ready.
  1418. * src/BtSetup.cc
  1419. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1420. Added parseMagnetLink(). Hex encoded info hash is supported.
  1421. Base32 encoded info hash is not supported yet.
  1422. * src/bittorrent_helper.cc
  1423. * src/bittorrent_helper.h
  1424. * test/BittorrentHelperTest.cc
  1425. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1426. Added FromHex()
  1427. * src/util.cc
  1428. * src/util.h
  1429. * test/UtilTest.cc
  1430. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1431. Added _metadataGetMode member variable. It toggles the action when
  1432. messages are received: usually they almost do nothing if
  1433. _metadataGetMode is true.
  1434. * src/AbstractBtMessage.cc
  1435. * src/AbstractBtMessage.h
  1436. * src/BtAllowedFastMessage.cc
  1437. * src/BtBitfieldMessage.cc
  1438. * src/BtCancelMessage.cc
  1439. * src/BtChokeMessage.cc
  1440. * src/BtHaveAllMessage.cc
  1441. * src/BtHaveMessage.cc
  1442. * src/BtInterestedMessage.cc
  1443. * src/BtNotInterestedMessage.cc
  1444. * src/BtPieceMessage.cc
  1445. * src/BtRejectMessage.cc
  1446. * src/BtRequestMessage.cc
  1447. * src/BtUnchokeMessage.cc
  1448. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Added bencode::decode overload functions. They have extra argument
  1450. 'end', passed by reference. 'end' points to the beyond the last
  1451. position of data used in decoding process.
  1452. * src/bencode.cc
  1453. * src/bencode.h
  1454. * test/BencodeTest.cc
  1455. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Initial support of Extension for Peers to Send Metadata
  1457. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1458. metadata from swarm.
  1459. * src/BtConstants.h
  1460. * src/DefaultBtInteractive.cc
  1461. * src/DefaultExtensionMessageFactory.cc
  1462. * src/DefaultExtensionMessageFactory.h
  1463. * src/ExtensionMessage.h
  1464. * src/ExtensionMessageRegistry.h
  1465. * src/HandshakeExtensionMessage.cc
  1466. * src/HandshakeExtensionMessage.h
  1467. * src/Makefile.am
  1468. * src/PeerConnection.h
  1469. * src/PeerInteractionCommand.cc
  1470. * src/UTMetadataDataExtensionMessage.cc
  1471. * src/UTMetadataDataExtensionMessage.h
  1472. * src/UTMetadataExtensionMessage.cc
  1473. * src/UTMetadataExtensionMessage.h
  1474. * src/UTMetadataRejectExtensionMessage.cc
  1475. * src/UTMetadataRejectExtensionMessage.h
  1476. * src/UTMetadataRequestExtensionMessage.cc
  1477. * src/UTMetadataRequestExtensionMessage.h
  1478. * src/bittorrent_helper.cc
  1479. * src/bittorrent_helper.h
  1480. * test/BittorrentHelperTest.cc
  1481. * test/DefaultExtensionMessageFactoryTest.cc
  1482. * test/HandshakeExtensionMessageTest.cc
  1483. * test/Makefile.am
  1484. * test/UTMetadataDataExtensionMessageTest.cc
  1485. * test/UTMetadataRejectExtensionMessageTest.cc
  1486. * test/UTMetadataRequestExtensionMessageTest.cc
  1487. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Cancel segment in prepareForRetry() because there is a chance that
  1489. the command has segments.
  1490. * src/CreateRequestCommand.cc
  1491. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Fixed the bug that slow server is not knocked down in favor of
  1493. faster one.
  1494. * src/AbstractCommand.cc
  1495. * src/DefaultPieceStorage.cc
  1496. * src/DefaultPieceStorage.h
  1497. * src/PieceStorage.h
  1498. * src/UnknownLengthPieceStorage.cc
  1499. * src/UnknownLengthPieceStorage.h
  1500. * test/MockPieceStorage.h
  1501. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Fixed the bug that Request object is not added to
  1503. _inFlightRequests in findFasterRequest().
  1504. * src/FileEntry.cc
  1505. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1506. Changed the strategry of how to increase the number of outstanding
  1507. requests. Now the number is doubled if there are no outstanding
  1508. requests after receiving messages.
  1509. * src/BtConstants.h
  1510. * src/DefaultBtInteractive.cc
  1511. * src/DefaultBtInteractive.h
  1512. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. Check socket for reading if there are outstanding requests.
  1514. * src/PeerInteractionCommand.cc
  1515. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1516. Moved frequently called methods to header file so they get
  1517. inlined.
  1518. * src/RequestSlot.cc
  1519. * src/RequestSlot.h
  1520. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. Copied in_addr instead of just casting from char* which might
  1522. violate strict aliasing rules.
  1523. * src/AsyncNameResolver.cc
  1524. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1525. Use dynamic_pointer_cast
  1526. * test/BtPieceMessageTest.cc
  1527. * test/BtRequestMessageTest.cc
  1528. * test/DefaultBtRequestFactoryTest.cc
  1529. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Added testSetUrl20()
  1531. * test/RequestTest.cc
  1532. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Code cleanup
  1534. * src/bittorrent_helper.cc
  1535. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Use C++ style cast
  1537. * src/AsyncNameResolver.cc
  1538. * src/Base64.h
  1539. * src/BtBitfieldMessage.cc
  1540. * src/BtHandshakeMessage.cc
  1541. * src/DefaultBtMessageFactory.cc
  1542. * src/DefaultBtProgressInfoFile.cc
  1543. * src/EpollEventPoll.cc
  1544. * src/ExpatMetalinkProcessor.cc
  1545. * src/IteratableChecksumValidator.cc
  1546. * src/IteratableChunkChecksumValidator.cc
  1547. * src/MessageDigestHelper.cc
  1548. * src/Platform.cc
  1549. * src/RequestGroupMan.cc
  1550. * src/SingleFileAllocationIterator.cc
  1551. * src/Sqlite3MozCookieParser.cc
  1552. * src/XML2SAXMetalinkProcessor.cc
  1553. * src/Xml2XmlRpcRequestProcessor.cc
  1554. * src/util.cc
  1555. * src/util.h
  1556. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1557. Fixed integer potential alignment problem.
  1558. * src/bitfield.h
  1559. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1560. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1561. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1562. include file ordering.
  1563. * src/PeerListProcessor.h
  1564. * src/bittorrent_helper.cc
  1565. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1566. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1567. * src/Request.cc
  1568. * src/util.cc
  1569. * src/util.h
  1570. * test/RequestTest.cc
  1571. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Rewritten util::uitos()
  1573. * src/util.h
  1574. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Code cleanup
  1576. * src/Request.cc
  1577. * src/Request.h
  1578. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Rewritten Request::parseUrl()
  1580. * src/Request.cc
  1581. * test/RequestTest.cc
  1582. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1583. Removed unused macro SAFE_CHARS
  1584. * src/Request.cc
  1585. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1586. Updated doc
  1587. * src/DHTRoutingTableDeserializer.cc
  1588. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Release 1.6.3
  1590. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Removed unused function.
  1592. * test/DHTPeerAnnounceStorageTest.cc
  1593. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1594. Only decrement cols if cols > 0
  1595. * src/ConsoleStatCalc.cc
  1596. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1597. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1598. translations. Thanks to all translators.
  1599. * po/ca.po
  1600. * po/fr.po
  1601. * po/it.po
  1602. * po/ja.po
  1603. * po/pl.po
  1604. * po/ru.po
  1605. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Updated translation template
  1607. * po
  1608. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Fixed compile error without ssl library.
  1610. * src/util.cc
  1611. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Logged received nodes in get_peers reply message.
  1613. * src/DHTAbstractNodeLookupTask.cc
  1614. * src/DHTAbstractNodeLookupTask.h
  1615. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1616. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1617. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1618. * src/DHTMessageDispatcherImpl.cc
  1619. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1620. Don't reuse URI if Request pool is not empty.
  1621. * src/CreateRequestCommand.cc
  1622. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1623. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1624. receive get_peers request for torrent which the client is now
  1625. downloading.
  1626. * src/BtSetup.cc
  1627. * src/DHTPeerAnnounceEntry.cc
  1628. * src/DHTPeerAnnounceEntry.h
  1629. * src/DHTPeerAnnounceStorage.cc
  1630. * src/DHTPeerAnnounceStorage.h
  1631. * src/RequestGroup.cc
  1632. * test/DHTPeerAnnounceEntryTest.cc
  1633. * test/DHTPeerAnnounceStorageTest.cc
  1634. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Fixed the bug that in Windows environment new blank line is
  1636. inserted when console readout is updated.
  1637. * src/ConsoleStatCalc.cc
  1638. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1639. Throw exception if binding listening port is failed. Removed
  1640. RequestGroupMan::getInitialCommand(). Use
  1641. fillRequestGroupFromReserver() instead. Delete commands for
  1642. RequestGroup which has errors when it is being added.
  1643. * src/BtSetup.cc
  1644. * src/DownloadEngine.cc
  1645. * src/DownloadEngine.h
  1646. * src/DownloadEngineFactory.cc
  1647. * src/MultiUrlRequestInfo.cc
  1648. * src/RequestGroupMan.cc
  1649. * src/RequestGroupMan.h
  1650. * test/RequestGroupManTest.cc
  1651. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Fixed the bug that when downloading more than one torrent,
  1653. listening port is not reported properly to tracker for 2nd or
  1654. later torrents.
  1655. * src/BtSetup.cc
  1656. * src/PeerListenCommand.cc
  1657. * src/PeerListenCommand.h
  1658. * src/RequestGroup.cc
  1659. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Bump up version number to 1.6.3
  1661. * configure.ac
  1662. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Removed Util.cc from POTFILES.in
  1664. * po/POTFILES.in
  1665. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1666. Updated man page for previous change.
  1667. * doc/aria2c.1.txt
  1668. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. If user name is embedded but password is missing in URI, first
  1670. resolve password using .netrc. If password is found in .netrc,
  1671. then use it as password. If not, use the password specified in
  1672. --ftp-passwd.
  1673. * src/AuthConfigFactory.cc
  1674. * src/Request.cc
  1675. * src/Request.h
  1676. * test/AuthConfigFactoryTest.cc
  1677. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1678. Fixed typo
  1679. * doc/aria2c.1.txt
  1680. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1681. Fixed typo
  1682. * src/usage_text.h
  1683. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Added missing bitfield.cc
  1685. * src/bitfield.cc
  1686. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Renamed Util.{cc,h} as util.{cc,h}
  1688. * src/Util.cc
  1689. * src/Util.h
  1690. * src/util.cc
  1691. * src/util.h
  1692. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1693. Moved static functions in Util class to namespace util.
  1694. * src
  1695. * test
  1696. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1697. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1698. Moved generateRandomKey to bittorrent_helper.cc.
  1699. * src/DHTBucket.cc
  1700. * src/DHTGetPeersMessage.cc
  1701. * src/DHTGetPeersReplyMessage.cc
  1702. * src/DHTMessage.cc
  1703. * src/DHTNode.cc
  1704. * src/DHTTokenTracker.cc
  1705. * src/DHTUtil.cc: Removed.
  1706. * src/DHTUtil.h: Removed.
  1707. * src/Makefile.am
  1708. * src/Util.cc
  1709. * src/Util.h
  1710. * src/bitfield.h
  1711. * src/bittorrent_helper.cc
  1712. * src/bittorrent_helper.h
  1713. * test/ARC4Test.cc
  1714. * test/BNodeTest.cc
  1715. * test/DHTAnnouncePeerMessageTest.cc
  1716. * test/DHTAnnouncePeerReplyMessageTest.cc
  1717. * test/DHTFindNodeMessageTest.cc
  1718. * test/DHTFindNodeReplyMessageTest.cc
  1719. * test/DHTGetPeersMessageTest.cc
  1720. * test/DHTGetPeersReplyMessageTest.cc
  1721. * test/DHTPingMessageTest.cc
  1722. * test/DHTPingReplyMessageTest.cc
  1723. * test/DHTTokenTrackerTest.cc
  1724. * test/DHTUtilTest.cc: Removed.
  1725. * test/Makefile.am
  1726. * test/UtilTest.cc
  1727. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1728. Removed the call to trim() because trim() is called for each
  1729. element in split().
  1730. * src/CookieParser.cc
  1731. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1732. Replaced Util::slice() with split()
  1733. * src/AbstractCommand.cc
  1734. * src/CookieParser.cc
  1735. * src/File.cc
  1736. * src/HttpHeaderProcessor.cc
  1737. * src/HttpRequest.cc
  1738. * src/Metalink2RequestGroup.cc
  1739. * src/MetalinkParserController.cc
  1740. * src/Netrc.cc
  1741. * src/NsCookieParser.cc
  1742. * src/ParameterizedStringParser.cc
  1743. * src/ServerStatMan.cc
  1744. * src/UriListParser.cc
  1745. * src/Util.cc
  1746. * src/Util.h
  1747. * src/bittorrent_helper.cc
  1748. * test/UtilTest.cc
  1749. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Use request->getDir() instead of "/" for embedded user/pass in
  1751. URI.
  1752. * src/AuthConfigFactory.cc
  1753. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1754. Fixed wrong insertion point for BasicCred.
  1755. * src/AuthConfigFactory.cc
  1756. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1757. Allowed non-regular file in LocalFilePathOptionHandler
  1758. * src/OptionHandlerImpl.h
  1759. * src/message.h
  1760. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1762. * src/Netrc.cc
  1763. * src/Util.h
  1764. * test/NetrcTest.cc
  1765. * test/sample.netrc
  1766. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1767. Fixed typo
  1768. * src/BtDependency.cc
  1769. * src/BtRejectMessage.cc
  1770. * src/FtpConnection.cc
  1771. * src/HttpHeaderProcessor.h
  1772. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1773. Fixed lintian report in man page
  1774. * doc/aria2c.1.txt
  1775. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1776. Release 1.6.2
  1777. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Updated Ukrainian translation. Thanks to all translators.
  1779. * po/uk.po
  1780. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Updated translation template
  1782. * po
  1783. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1784. Bump up version number to 1.6.2
  1785. * configure.ac
  1786. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Updated licence message in -v output.
  1788. * src/version_usage.cc
  1789. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1790. Replaced aria2 with aria2c in help message.
  1791. * src/version_usage.cc
  1792. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1793. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1794. * src/version_usage.cc
  1795. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Quoted localedir
  1797. * src/Makefile.am
  1798. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1799. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1800. utime. Check header for utime.h.
  1801. * configure.ac
  1802. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1803. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1804. * configure.ac
  1805. * src/daemon.cc
  1806. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Don't set localedir manually. Leave it to autoconf.
  1808. * configure.ac
  1809. * src/Makefile.am
  1810. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1811. Added --install to ACLOCAL_AMFLAGS.
  1812. Removed m4 from SUBDIRS.
  1813. Updated automake 1.11 and autoconf 2.64.
  1814. Replaced some obsolute macros with new one.
  1815. * Makefile.am
  1816. * configure.ac
  1817. * m4/aria2_arg.m4
  1818. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1819. Removed Makefile.am in m4 directory.
  1820. * configure.ac
  1821. * m4/ChangeLog
  1822. * m4/Makefile.am
  1823. * m4/Makefile.in
  1824. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Removed unused m4 macros.
  1826. * m4/intldir.m4
  1827. * m4/inttypes.m4
  1828. * m4/isc-posix.m4
  1829. * m4/libgnutls-extra.m4
  1830. * m4/ulonglong.m4
  1831. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1832. Fixed the bug that causes segmentation fault if
  1833. req->getCurrentUrl() contains printf formatting characters such as
  1834. %d. The statement that causes this bug is useless and removed.
  1835. * src/AbstractCommand.cc
  1836. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1837. * Release 1.6.1
  1838. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1839. Updated Simplified Chinese translation. Thanks to translators.
  1840. * po/zh_CN.po
  1841. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1842. Updated translation template
  1843. * po
  1844. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Bump up version number to 1.6.1
  1846. * configure.ac
  1847. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Changed interval from 120 to 60 for dropping inactive peer.
  1849. * src/DefaultBtInteractive.cc
  1850. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1851. Updated man page for --user-agent and --peer-id-prefix option.
  1852. * doc/aria2c.1.txt
  1853. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1854. Code clean up
  1855. * src/BtPostDownloadHandler.cc
  1856. * src/ContentTypeRequestGroupCriteria.cc
  1857. * src/ContentTypeRequestGroupCriteria.h
  1858. * src/DownloadHandlerConstants.cc
  1859. * src/DownloadHandlerConstants.h
  1860. * src/DownloadHandlerFactory.cc
  1861. * src/MetalinkPostDownloadHandler.cc
  1862. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1863. Don't save control file when aria2 exists while checking piece
  1864. hash(behavior of -V option). If control file doesn't exist when
  1865. aria2 launched, the completed length in saved control file will be
  1866. 0 byte and this confuses user. disableSaveControlFile() is called
  1867. in RequestGroup::processCheckIntegrityEntry().
  1868. enableSaveControlFile() will be called after hash checking is
  1869. done. See CheckIntegrityCommand.
  1870. * src/CheckIntegrityCommand.cc
  1871. * src/RequestGroup.cc
  1872. * src/RequestGroup.h
  1873. * src/RequestGroupMan.cc
  1874. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1875. Included version number in Peer ID and client version. Peer ID
  1876. now starts with "aria2/VERSION-", where VERSION is
  1877. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1878. * src/DefaultBtInteractive.cc
  1879. * src/OptionHandlerFactory.cc
  1880. * src/bittorrent_helper.cc
  1881. * src/bittorrent_helper.h
  1882. * src/main.cc
  1883. * src/usage_text.h
  1884. * test/BittorrentHelperTest.cc
  1885. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1886. Fixed memory leak.
  1887. * src/DownloadCommand.cc
  1888. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1889. Removed server, port, user and passwd key from options before
  1890. XMLRPC::Client.call since they are not options of aria2.
  1891. * doc/xmlrpc/aria2mon
  1892. * doc/xmlrpc/aria2rpc
  1893. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Included version number in user-agent string.
  1895. * src/OptionHandlerFactory.cc
  1896. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. Fixed the bug that the option values changed by XML-RPC
  1898. method(changeOption and changeGlobalOption) are overwritten to the
  1899. previous value by the next these request which doesn't contain
  1900. that option value. Supporse max-download-limit is initially 0. You
  1901. changed this value to 100K by changeOption. Then you issue
  1902. changeOption request to change max-upload-limit to 50K. This
  1903. second request doesn't contain xml-download-limit, so it is back
  1904. to initial value, 0. Another improvement is that exception is
  1905. thrown when changeOption and changeGlobalOption request contains
  1906. option name which doesn't allowed in each request.
  1907. * src/DownloadEngine.h
  1908. * src/XmlRpcMethod.cc
  1909. * src/XmlRpcMethod.h
  1910. * src/XmlRpcMethodImpl.cc
  1911. * src/download_helper.cc
  1912. * src/download_helper.h
  1913. * test/XmlRpcMethodTest.cc
  1914. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1915. Added missing MetalinkParserStateImpl.{cc,h}
  1916. * src/MetalinkParserStateImpl.cc
  1917. * src/MetalinkParserStateImpl.h
  1918. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Put all MetalinkParserState subclasses into
  1920. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1921. * src/FileMetalinkParserState.cc: Removed
  1922. * src/FileMetalinkParserState.h: Removed
  1923. * src/FilesMetalinkParserState.cc: Removed
  1924. * src/FilesMetalinkParserState.h: Removed
  1925. * src/FinMetalinkParserState.cc: Removed
  1926. * src/FinMetalinkParserState.h: Removed
  1927. * src/HashMetalinkParserState.cc: Removed
  1928. * src/HashMetalinkParserState.h: Removed
  1929. * src/InitialMetalinkParserState.cc: Removed
  1930. * src/InitialMetalinkParserState.h: Removed
  1931. * src/LanguageMetalinkParserState.cc: Removed
  1932. * src/LanguageMetalinkParserState.h: Removed
  1933. * src/Makefile.am
  1934. * src/MetalinkMetalinkParserState.cc: Removed
  1935. * src/MetalinkMetalinkParserState.h: Removed
  1936. * src/MetalinkParserState.h
  1937. * src/MetalinkParserStateMachine.cc
  1938. * src/MetalinkParserStateMachine.h
  1939. * src/OSMetalinkParserState.cc: Removed
  1940. * src/OSMetalinkParserState.h: Removed
  1941. * src/PieceHashMetalinkParserState.cc: Removed
  1942. * src/PieceHashMetalinkParserState.h: Removed
  1943. * src/PiecesMetalinkParserState.cc: Removed
  1944. * src/PiecesMetalinkParserState.h: Removed
  1945. * src/ResourcesMetalinkParserState.cc: Removed
  1946. * src/ResourcesMetalinkParserState.h: Removed
  1947. * src/SignatureMetalinkParserState.cc: Removed
  1948. * src/SignatureMetalinkParserState.h: Removed
  1949. * src/SizeMetalinkParserState.cc: Removed
  1950. * src/SizeMetalinkParserState.h: Removed
  1951. * src/SkipTagMetalinkParserState.cc: Removed
  1952. * src/SkipTagMetalinkParserState.h: Removed
  1953. * src/URLMetalinkParserState.cc: Removed
  1954. * src/URLMetalinkParserState.h: Removed
  1955. * src/VerificationMetalinkParserState.cc: Removed
  1956. * src/VerificationMetalinkParserState.h: Removed
  1957. * src/VersionMetalinkParserState.cc: Removed
  1958. * src/VersionMetalinkParserState.h: Removed
  1959. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1960. Move all functions in PeerMessageUtil to bittorrent_helper.
  1961. * src/BtBitfieldMessage.cc
  1962. * src/BtBitfieldMessageValidator.h
  1963. * src/BtExtendedMessage.cc
  1964. * src/BtHandshakeMessage.cc
  1965. * src/BtHandshakeMessageValidator.h
  1966. * src/BtPieceMessage.cc
  1967. * src/BtPieceMessageValidator.h
  1968. * src/BtPortMessage.cc
  1969. * src/DHTFindNodeReplyMessage.cc
  1970. * src/DHTGetPeersReplyMessage.cc
  1971. * src/DHTMessageFactoryImpl.cc
  1972. * src/DHTRoutingTableDeserializer.cc
  1973. * src/DHTRoutingTableSerializer.cc
  1974. * src/DHTTokenTracker.cc
  1975. * src/DefaultBtMessageFactory.cc
  1976. * src/IndexBtMessage.cc
  1977. * src/IndexBtMessage.h
  1978. * src/IndexBtMessageValidator.h
  1979. * src/Makefile.am
  1980. * src/PeerMessageUtil.cc: Removed.
  1981. * src/PeerMessageUtil.h: Removed.
  1982. * src/RangeBtMessage.cc
  1983. * src/RangeBtMessage.h
  1984. * src/RangeBtMessageValidator.h
  1985. * src/UTPexExtensionMessage.cc
  1986. * src/ZeroBtMessage.cc
  1987. * src/ZeroBtMessage.h
  1988. * src/bittorrent_helper.cc
  1989. * src/bittorrent_helper.h
  1990. * test/BittorrentHelperTest.cc
  1991. * test/BtAllowedFastMessageTest.cc
  1992. * test/BtBitfieldMessageTest.cc
  1993. * test/BtCancelMessageTest.cc
  1994. * test/BtChokeMessageTest.cc
  1995. * test/BtExtendedMessageTest.cc
  1996. * test/BtHandshakeMessageTest.cc
  1997. * test/BtHaveAllMessageTest.cc
  1998. * test/BtHaveMessageTest.cc
  1999. * test/BtHaveNoneMessageTest.cc
  2000. * test/BtInterestedMessageTest.cc
  2001. * test/BtNotInterestedMessageTest.cc
  2002. * test/BtPieceMessageTest.cc
  2003. * test/BtPortMessageTest.cc
  2004. * test/BtRejectMessageTest.cc
  2005. * test/BtRequestMessageTest.cc
  2006. * test/BtSuggestPieceMessageTest.cc
  2007. * test/BtUnchokeMessageTest.cc
  2008. * test/DHTFindNodeReplyMessageTest.cc
  2009. * test/DHTGetPeersReplyMessageTest.cc
  2010. * test/DHTMessageFactoryImplTest.cc
  2011. * test/DHTRoutingTableDeserializerTest.cc
  2012. * test/DHTRoutingTableSerializerTest.cc
  2013. * test/DefaultBtMessageFactoryTest.cc
  2014. * test/DefaultExtensionMessageFactoryTest.cc
  2015. * test/Makefile.am
  2016. * test/PeerListProcessorTest.cc
  2017. * test/PeerMessageUtilTest.cc: Removed.
  2018. * test/UTPexExtensionMessageTest.cc
  2019. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2020. Limit the size of values list when sending get_peers reply.
  2021. * src/DHTGetPeersReplyMessage.cc
  2022. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2023. Updated banner
  2024. * doc/xmlrpc/aria2rpc
  2025. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Added missing help message for remove command.
  2027. * doc/xmlrpc/aria2rpc
  2028. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Generated configure and config.h.in
  2030. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  2031. Add check for fork(), which is missing on MinGW
  2032. * src/daemon.cc
  2033. * configure.ac
  2034. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2035. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  2036. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  2037. Util::httpGMT().
  2038. * src/Util.cc
  2039. * src/Util.h
  2040. * test/UtilTest.cc
  2041. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2042. * Release 1.6.0
  2043. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2044. Fixed a path to xmlrpc/README.txt
  2045. * doc/Makefile.am
  2046. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Added XML-RPC in -v Configuration output.
  2048. * src/FeatureConfig.cc
  2049. * src/FeatureConfig.h
  2050. * test/FeatureConfigTest.cc
  2051. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2052. Updated Bulgarian, Russian, Slovak and Japanese
  2053. translations. Thanks to all translators.
  2054. * po/bg.po
  2055. * po/ja.po
  2056. * po/ru.po
  2057. * po/sk.po
  2058. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Removed --retry-wait option from aria2rpc
  2060. * doc/xmlrpc/aria2rpc
  2061. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2062. Removed --retry-wait option from man page.
  2063. * doc/aria2c.1.txt
  2064. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2065. Removed --retry-wait option since the current architecture doesn't
  2066. allow sleep for particular URI.
  2067. * src/AbstractCommand.cc
  2068. * src/OptionHandlerFactory.cc
  2069. * src/download_helper.cc
  2070. * src/prefs.cc
  2071. * src/prefs.h
  2072. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2073. Removed Retry-After header support. Since the current architecture
  2074. doesn't allow sleep for particular URI.
  2075. * src/HttpSkipResponseCommand.cc
  2076. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Updated the help message for --daemon option.
  2078. * doc/aria2c.1.txt
  2079. * src/usage_text.h
  2080. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Added our own daemon() function for systems which desn't have
  2082. daemon(3).
  2083. * configure.ac
  2084. * src/Makefile.am
  2085. * src/daemon.cc
  2086. * src/daemon.h
  2087. * src/option_processing.cc
  2088. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Simplified File::getCurrentDir()
  2090. * src/File.cc
  2091. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Use exit() instead of _exit
  2093. * src/RequestGroupMan.cc
  2094. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Replaced "CATEGORY" with "TAGS".
  2096. * src/usage_text.h
  2097. * doc/aria2c.1.txt
  2098. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Updated the help message for --help option.
  2100. * src/usage_text.h
  2101. * doc/aria2c.1.txt
  2102. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Updated man page for added help tags.
  2104. * doc/aria2c.1.txt
  2105. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. Added help category #file. Added #file tag to the options related
  2107. to downloaded file.
  2108. * src/OptionHandlerFactory.cc
  2109. * src/help_tags.h
  2110. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2111. Added help categories: #cookie and #hook. Added #https tag to
  2112. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  2113. * src/OptionHandlerFactory.cc
  2114. * src/help_tags.h
  2115. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2116. Made MSG_NOT_FILE translatable.
  2117. * src/message.h
  2118. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Updated man page for --help option.
  2120. * doc/aria2c.1.txt
  2121. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Updated doc.
  2123. * src/XmlRpcMethod.h
  2124. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. Help category now starts with "#" to distinguish a category from
  2126. keyword search. For example, "http" categroy is now "#http". You
  2127. can type "--help=#http" to get explanation of options related to
  2128. http. If '#' is omitted, then the argument is treated as a keyword
  2129. and aria2 searches options whose name includes the keyword and
  2130. print matched ones. For example, "--help=http" will show options
  2131. whose name includes "http".
  2132. * src/OptionHandlerFactory.cc
  2133. * src/help_tags.h
  2134. * src/usage_text.h
  2135. * src/version_usage.cc
  2136. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Documented missing experimental tag and newly added xml-rpc tag in
  2138. man page.
  2139. * doc/aria2c.1.txt
  2140. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. Added xml-rpc help tag. Tagged xml-rpc related options with
  2142. xml-rpc tag.
  2143. * src/OptionHandlerFactory.cc
  2144. * src/help_tags.h
  2145. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2146. Updated message when a path is not a file. Updated common message
  2147. for wrong option.
  2148. * src/OptionHandlerException.cc
  2149. * src/message.h
  2150. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Use File::isFile() instead of File::exists(). Updated message when
  2152. a path is not a file.
  2153. * src/OptionHandlerImpl.cc
  2154. * src/message.h
  2155. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2156. Fixed the bug that server performence profile is not updated when
  2157. aria2c was terminated by emergency shutdown.
  2158. * src/TrackerWatcherCommand.cc
  2159. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2160. Use LocalFilePathOptionHandler for -T and -M option.
  2161. Updated message of MSG_FILE_NOT_EXIST.
  2162. * src/OptionHandlerFactory.cc
  2163. * src/message.h
  2164. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Added LocalFilePathOptionHandler which check whether the specified
  2166. file path does exist or not.
  2167. * src/OptionHandlerImpl.cc
  2168. * src/message.h
  2169. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2170. Updated wiki page URI.
  2171. * README
  2172. * doc/aria2c.1.txt
  2173. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2174. Added README.txt for xmlrpc directory.
  2175. * doc/Makefile.am
  2176. * doc/xmlrpc/README.txt
  2177. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Bump up version number to 1.6.0.
  2179. * configure.ac
  2180. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2181. Added XML-RPC client scripts written in ruby.
  2182. * doc/Makefile.am
  2183. * doc/xmlrpc/aria2mon
  2184. * doc/xmlrpc/aria2rpc
  2185. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2186. Added support for IPv6 literal address in URI. Now aria2 can
  2187. handle URI such as http://[::1]/
  2188. * src/HttpRequest.cc
  2189. * src/HttpRequest.h
  2190. * src/Request.cc
  2191. * src/Request.h
  2192. * test/HttpRequestTest.cc
  2193. * test/OptionHandlerTest.cc
  2194. * test/RequestTest.cc
  2195. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2196. Fixed the bug that HTTP request header for XML-RPC request is not
  2197. parsed properly.
  2198. * src/HttpHeader.cc
  2199. * src/HttpHeaderProcessor.cc
  2200. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2201. Fixed the bug that XML-RPC authorization might be done before HTTP
  2202. request header is fully received.
  2203. * src/HttpServerCommand.cc
  2204. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2205. Documented --xml-rpc-listen-all option in man page.
  2206. * doc/aria2c.1.txt
  2207. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2208. Added --xml-rpc-listen-all option. If true is given to this
  2209. option, aria2 listens incoming XML-RPC requests on all network
  2210. interfaces. If false is given, listens only on local loopback
  2211. interface. The default value is false.
  2212. * src/HttpListenCommand.cc
  2213. * src/OptionHandlerFactory.cc
  2214. * src/SocketCore.cc
  2215. * src/SocketCore.h
  2216. * src/prefs.cc
  2217. * src/prefs.h
  2218. * src/usage_text.h
  2219. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2220. * Release 1.5.2
  2221. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2222. Updated Ukrainian and Russian translations. Thanks to all
  2223. translators.
  2224. * po/ru.po
  2225. * po/uk.po
  2226. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2227. Bump up version number to 1.5.2
  2228. * configure.ac
  2229. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2230. Get comment, comment.utf-8, created by and creation date from
  2231. .torrent file and print them in -S output.
  2232. * src/bittorrent_helper.cc
  2233. * src/bittorrent_helper.h
  2234. * test/BittorrentHelperTest.cc
  2235. * test/test.torrent
  2236. * test/utf8.torrent
  2237. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2238. Show exact file size along in -S option output.
  2239. * src/Util.h
  2240. * src/bittorrent_helper.cc
  2241. * test/UtilTest.cc
  2242. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Avoided unnecessary memory allocation in
  2244. BitfieldMan::getCompletedLength().
  2245. * src/BitfieldMan.cc
  2246. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2247. Fixed the bug that download fails if
  2248. SocketCore::establishConnection() throws exception and aria2
  2249. doesn't try another address.
  2250. * src/AbstractCommand.cc
  2251. * src/InitiateConnectionCommand.cc
  2252. * src/message.h
  2253. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2254. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  2255. detected properly.
  2256. * m4/sqlite3.m4
  2257. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  2259. because it causes compile error if PARAMS macro is defined.
  2260. * src/XmlRpcElements.cc
  2261. * src/XmlRpcElements.h
  2262. * src/XmlRpcRequestParserStateImpl.cc
  2263. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. * Release 1.5.1
  2265. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2266. Bump up version number to 1.5.1
  2267. * configure.ac
  2268. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2269. Fixed compile error without BitTorrent support
  2270. * src/DefaultBtProgressInfoFile.cc
  2271. * src/DownloadEngine.cc
  2272. * src/DownloadEngine.h
  2273. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2274. Added missing '=' in Download Results
  2275. * src/RequestGroupMan.cc
  2276. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2277. Fixed compiler warning
  2278. * src/DefaultBtProgressInfoFile.cc
  2279. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2280. Fixed compiler warning on 32bit systems.
  2281. * src/DownloadCommand.cc
  2282. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Call flush from ServerStatMan::save()
  2284. * src/ServerStatMan.cc
  2285. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2286. Check stream status after file is opened.
  2287. * src/CookieStorage.cc
  2288. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Rewritten Signature::save()
  2290. * src/Signature.cc
  2291. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Rewritten RequestGroupMan::saveServerStat()
  2293. * src/RequestGroupMan.cc
  2294. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Rewritten stream error handling
  2296. * src/DHTAutoSaveCommand.cc
  2297. * src/DHTRoutingTableDeserializer.cc
  2298. * src/DHTRoutingTableSerializer.cc
  2299. * src/DHTSetup.cc
  2300. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2301. Check stream status after file is opened.
  2302. * src/DefaultBtProgressInfoFile.cc
  2303. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Rewritten stream error handling
  2305. * src/DefaultBtProgressInfoFile.cc
  2306. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2307. Make sure that stream is closed before renaming file. Unit test
  2308. fails on mingw32 in the previous implementation.
  2309. * src/CookieStorage.cc
  2310. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2311. Fixed the unit test error without sqlite3
  2312. * test/CookieStorageTest.cc
  2313. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2314. Fixed the undefined reference error
  2315. * test/HttpResponseTest.cc
  2316. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2317. * Release 1.5.0
  2318. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2319. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  2320. Ukrainian translations. Thanks to all translators.
  2321. * po/ru.po
  2322. * po/it.po
  2323. * po/da.po
  2324. * po/bg.po
  2325. * po/ja.po
  2326. * po/uk.po
  2327. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2328. Added missing src/Logger.cc
  2329. * src/Logger.cc
  2330. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2331. Rewritten Logger to avoiding constly virtual call.
  2332. * src/LogFactory.cc
  2333. * src/LogFactory.h
  2334. * src/Logger.h
  2335. * src/Makefile.am
  2336. * src/Makefile.in
  2337. * src/NullLogger.h: Removed.
  2338. * src/SimpleLogger.cc
  2339. * src/SimpleLogger.h
  2340. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2341. Updated doc
  2342. * src/main.cc
  2343. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2344. Updated debug log message
  2345. * src/AbstractCommand.cc
  2346. * src/message.h
  2347. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2348. Avoid to create zombie process when commands specified in
  2349. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  2350. X and NetBSD.
  2351. * src/main.cc
  2352. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2353. Fixed typo
  2354. * src/usage_text.h
  2355. * doc/aria2c.1.txt
  2356. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2357. Documented 'errorCode' of tellStatus in man page.
  2358. * doc/aria2c.1.txt
  2359. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2360. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2361. This key is only available for stopped/completed downloads and its
  2362. value is the error code defined in EXIT STATUS in man page.
  2363. * src/XmlRpcMethodImpl.cc
  2364. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2365. Fixed the bug that session download length is not updated when
  2366. PeerStat is not fastest one.
  2367. * src/SegmentMan.cc
  2368. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2369. Updated doc.
  2370. * doc/aria2c.1.txt
  2371. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2372. Updated doc.
  2373. * src/AbstractCommand.cc
  2374. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2375. Handle the case when DownloadContext has no FileEntry.
  2376. * src/XmlRpcMethodImpl.cc
  2377. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2378. Handle the situation where struct option.name is char *.
  2379. * configure.ac
  2380. * src/OptionParser.cc
  2381. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2382. Code cleanup
  2383. * src/AbstractCommand.cc
  2384. * src/DownloadCommand.cc
  2385. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2386. Use option of each download to create AuthConfig instead of global
  2387. option.
  2388. * src/AuthConfigFactory.cc
  2389. * src/AuthConfigFactory.h
  2390. * src/FtpNegotiationCommand.cc
  2391. * src/HttpRequest.cc
  2392. * src/HttpRequest.h
  2393. * src/HttpRequestCommand.cc
  2394. * src/HttpSkipResponseCommand.cc
  2395. * src/MultiUrlRequestInfo.cc
  2396. * test/AuthConfigFactoryTest.cc
  2397. * test/FtpConnectionTest.cc
  2398. * test/HttpRequestTest.cc
  2399. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2400. Don't call prepareForRetry(1) if all segments are ignored in
  2401. SegmentMan.
  2402. * src/AbstractCommand.cc
  2403. * src/BitfieldMan.cc
  2404. * src/BitfieldMan.h
  2405. * src/SegmentMan.cc
  2406. * src/SegmentMan.h
  2407. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2408. Removed FileEntry::getAssociatedUris()
  2409. * src/FileEntry.h
  2410. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2411. Updated doc: TODO1.5 -> TODO
  2412. * src/FileEntry.cc
  2413. * src/HttpResponseCommand.cc
  2414. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2415. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2416. involved.
  2417. * src/RequestGroup.cc
  2418. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Eliminated duplicated filterBitfield initialization code.
  2420. * src/BitfieldMan.cc
  2421. * src/BitfieldMan.h
  2422. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2423. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2424. relatively naive approach, though). For DownloadFailureException,
  2425. we handle the case when req is null properly.
  2426. * src/AbstractCommand.cc
  2427. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Added function returning suffix of control file to
  2429. DefaultBtProgressInfoFile.
  2430. * src/DefaultBtProgressInfoFile.cc
  2431. * src/DefaultBtProgressInfoFile.h
  2432. * src/RequestGroup.cc
  2433. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2434. Documented getVersion in man page.
  2435. * doc/aria2c.1.txt
  2436. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2437. Documented type of offset and num for tellWaiting xml-rpc method.
  2438. * doc/aria2c.1.txt
  2439. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2440. Implemented getVersion xml-rpc method. This method returns struct
  2441. which has 2 key-value pairs: "version" key is associated to the
  2442. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2443. associated to the list of enabled features, such as "Async DNS",
  2444. "BitTorrent".
  2445. * src/FeatureConfig.h
  2446. * src/XmlRpcMethodFactory.cc
  2447. * src/XmlRpcMethodImpl.cc
  2448. * src/XmlRpcMethodImpl.h
  2449. * test/XmlRpcMethodTest.cc
  2450. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2452. for compatibility issue.
  2453. * src/SocketCore.cc
  2454. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Fixed compile error with openSSL
  2456. * src/bittorrent_helper.cc
  2457. * src/messageDigest.h
  2458. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2459. Removed bad code: setting certificate type priority to key
  2460. exchange priority.
  2461. * src/SocketCore.cc
  2462. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2463. Disconnect seeder if client is also in seed state.
  2464. * src/BtBitfieldMessage.cc
  2465. * src/BtHaveAllMessage.cc
  2466. * src/BtHaveMessage.cc
  2467. * src/message.h
  2468. * test/BtBitfieldMessageTest.cc
  2469. * test/BtHaveAllMessageTest.cc
  2470. * test/BtHaveMessageTest.cc
  2471. * test/MockPieceStorage.h
  2472. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2473. Keep CreateRequestCommand in queue when no segment is available so
  2474. that they can pick up pieces which slow BitTorrent peers are
  2475. downloading.
  2476. * src/AbstractCommand.cc
  2477. * src/CreateRequestCommand.cc
  2478. * src/CreateRequestCommand.h
  2479. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2480. --bt-stop-timeout now only checks download speed.
  2481. * src/BtStopDownloadCommand.cc
  2482. * src/BtStopDownloadCommand.h
  2483. * src/BtSetup.cc
  2484. * src/usage_text.h
  2485. * doc/aria2c.1.txt
  2486. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2487. Fixed compile error regarding BUFSIZE.
  2488. * src/DownloadCommand.cc
  2489. * src/DownloadCommand.h
  2490. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2491. Documented tellWaiting xml-rpc method in man page.
  2492. * doc/aria2c.1.txt
  2493. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2494. Bump up version number to 1.5.0
  2495. * configure.ac
  2496. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2497. Removed resolved TODO1.5
  2498. * src/AbstractCommand.cc
  2499. * src/DownloadCommand.cc
  2500. * src/RequestGroup.cc
  2501. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2502. Release pooled and in-flight Request objectsand URIResult objects
  2503. in FileEntry after download completed.
  2504. * src/DownloadContext.cc
  2505. * src/DownloadContext.h
  2506. * src/FileEntry.cc
  2507. * src/FileEntry.h
  2508. * src/RequestGroup.cc
  2509. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2510. Set manual and source attribute in aria2c.1.txt
  2511. * doc/aria2c.1.txt
  2512. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2513. Documented that the default value of --use-head is 'false' in man
  2514. page.
  2515. * doc/aria2c.1.txt
  2516. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2517. Added bt-stop-timeout option to -i list.
  2518. * doc/aria2c.1.txt
  2519. * src/download_helper.cc
  2520. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Fixed typo
  2522. * doc/aria2c.1.txt
  2523. * src/usage_text.h
  2524. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2525. Removed peer-id-prefix option from -i list.
  2526. * doc/aria2c.1.txt
  2527. * src/download_helper.cc
  2528. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2529. Fixed typo
  2530. * doc/aria2c.1.txt
  2531. * src/usage_text.h
  2532. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2533. Documented --bt-stop-timeout option in man page.
  2534. * doc/aria2c.1.txt
  2535. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2536. Updated README regarding multi-file torrent web-seeding.
  2537. * doc/README.txt
  2538. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2539. Updated man page regarding multi-file torrent web-seeding.
  2540. * doc/aria2c.1.txt
  2541. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2542. Updated doc
  2543. * src/version_usage.cc
  2544. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Winsock select() doesn't work if no socket is in FD_SET. To
  2546. overcome this problem, a dummy socket is added to FD_SET and it is
  2547. given to select().
  2548. * src/SelectEventPoll.cc
  2549. * src/SelectEventPoll.h
  2550. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2551. Disabled --use-head option by default because --use-head=true
  2552. causes problems on some web sites.
  2553. * src/OptionHandlerFactory.cc
  2554. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2555. Print URL List in -S option for torrent.
  2556. * src/bittorrent_helper.cc
  2557. * src/bittorrent_helper.h
  2558. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Allocate buffer in ctor of DownloadCommand.
  2560. * src/DownloadCommand.cc
  2561. * src/DownloadCommand.h
  2562. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2563. Removed DiskAdaptor::onDownloadComplete()
  2564. * src/DirectDiskAdaptor.cc
  2565. * src/DirectDiskAdaptor.h
  2566. * src/DiskAdaptor.h
  2567. * src/MultiDiskAdaptor.cc
  2568. * src/MultiDiskAdaptor.h
  2569. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2570. Committed missing BtStopDownloadCommand.{cc,h}
  2571. * src/BtStopDownloadCommand.cc
  2572. * src/BtStopDownloadCommand.h
  2573. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2574. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2575. download if the download speed is 0 and the number of seeder is 0
  2576. in consecutive SEC seconds. By default, this function is disabled.
  2577. * src/BtSetup.cc
  2578. * src/Makefile.am
  2579. * src/OptionHandlerFactory.cc
  2580. * src/prefs.cc
  2581. * src/prefs.h
  2582. * src/usage_text.h
  2583. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Removed the call to DiskAdaptor::onDownloadComplete() from
  2585. BtCheckIntegrityEntry and DefaultPieceStorage.
  2586. * src/BtCheckIntegrityEntry.cc
  2587. * src/DefaultPieceStorage.cc
  2588. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2589. Commented out throw statements when number of piece is 0 to
  2590. download 0 length torrent.
  2591. * src/bittorrent_helper.cc
  2592. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2593. Call RequestGroup::createNextCommandWithAdj() from
  2594. BtFileAllocationEntry if at least one FileEntry has URI. The
  2595. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2596. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2597. * src/BtFileAllocationEntry.cc
  2598. * src/FileEntry.h
  2599. * src/RequestGroup.cc
  2600. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2601. Generate peer ID after SimpleRandomizer is initialized.
  2602. * src/main.cc
  2603. * src/option_processing.cc
  2604. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Removed unused method argument.
  2606. * src/CreateRequestCommand.cc
  2607. * src/RequestGroup.cc
  2608. * src/RequestGroup.h
  2609. * src/RequestGroupMan.cc
  2610. * src/TrackerWatcherCommand.cc
  2611. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2612. Made URI reusing function work.
  2613. * src/CreateRequestCommand.cc
  2614. * src/FileEntry.cc
  2615. * src/FileEntry.h
  2616. * test/FileEntryTest.cc
  2617. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2618. Add formerly fastest PeerStat's sessionDownloadLength to new
  2619. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2620. bytes in a session.
  2621. * src/PeerStat.cc
  2622. * src/SegmentMan.cc
  2623. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. If pipelining is enabled, we can always pool socket.
  2625. * src/HttpDownloadCommand.cc
  2626. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. In a single file download, file size becomes known just after
  2628. downloading, set total length to FileEntry object when download
  2629. completed.
  2630. * src/DownloadCommand.cc
  2631. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2632. Use std::vector::reserve() for fileEntries and pieceHashes in
  2633. bittorrent_helper
  2634. * src/bittorrent_helper.cc
  2635. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2636. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2637. Removed hidden option PREF_RESET_URI.
  2638. * src/AbstractCommand.cc
  2639. * src/OptionHandlerFactory.cc
  2640. * src/prefs.cc
  2641. * src/prefs.h
  2642. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2643. Removed unused variable/function.
  2644. * src/PeerStat.h
  2645. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2646. Show first URL in Download Results if file path is not available.
  2647. * src/FileEntry.h
  2648. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Throw exception if file path doesn't exist in FTP URL.
  2650. * src/InitiateConnectionCommandFactory.cc
  2651. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2652. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2653. * src/BitfieldMan.cc
  2654. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2655. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2656. of PeerStat in SegmentMan. peerStats is used for calculating
  2657. download speed. Therefore all active PeerStats should be in
  2658. there. Another one is _fastestPeerStats and it only contains
  2659. fastest PeerStat for each hostname/protocol pair. They are used
  2660. for updating ServerStat.
  2661. * src/DownloadCommand.cc
  2662. * src/Request.h
  2663. * src/RequestGroupMan.cc
  2664. * src/SegmentMan.cc
  2665. * src/SegmentMan.h
  2666. * test/SegmentManTest.cc
  2667. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Try all available addresses returned by DNS until it gets
  2669. connected in HTTP(S)/FTP download
  2670. * src/AbstractCommand.cc
  2671. * src/AbstractCommand.h
  2672. * src/AbstractProxyRequestCommand.cc
  2673. * src/AbstractProxyRequestCommand.h
  2674. * src/DNSCache.h
  2675. * src/DownloadEngine.cc
  2676. * src/DownloadEngine.h
  2677. * src/FtpInitiateConnectionCommand.cc
  2678. * src/FtpInitiateConnectionCommand.h
  2679. * src/FtpNegotiationCommand.cc
  2680. * src/FtpNegotiationCommand.h
  2681. * src/HttpInitiateConnectionCommand.cc
  2682. * src/HttpInitiateConnectionCommand.h
  2683. * src/HttpRequestCommand.cc
  2684. * src/HttpRequestCommand.h
  2685. * src/InitiateConnectionCommand.cc
  2686. * src/InitiateConnectionCommand.h
  2687. * test/DNSCacheTest.cc
  2688. * test/Makefile.am
  2689. * test/SimpleDNSCacheTest.cc
  2690. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2691. Updated doc
  2692. * src/download_helper.cc
  2693. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2694. Refactored fieldMan ctor.
  2695. * src/BitfieldMan.cc
  2696. * src/BitfieldMan.h
  2697. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2698. Don't print "No files to download." message if -S is given.
  2699. * src/main.cc
  2700. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2701. Set referer and method to newly created Request object.
  2702. * src/CreateRequestCommand.cc
  2703. * src/FileEntry.cc
  2704. * src/FileEntry.h
  2705. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2706. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2707. * src/AbstractCommand.cc
  2708. * src/AbstractCommand.h
  2709. * src/CreateRequestCommand.cc
  2710. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2711. Get proxy download working
  2712. * src/AbstractProxyRequestCommand.cc
  2713. * src/AbstractProxyRequestCommand.h
  2714. * src/AbstractProxyResponseCommand.cc
  2715. * src/AbstractProxyResponseCommand.h
  2716. * src/FtpInitiateConnectionCommand.cc
  2717. * src/FtpTunnelRequestCommand.cc
  2718. * src/FtpTunnelRequestCommand.h
  2719. * src/FtpTunnelResponseCommand.cc
  2720. * src/FtpTunnelResponseCommand.h
  2721. * src/HttpInitiateConnectionCommand.cc
  2722. * src/HttpProxyRequestCommand.cc
  2723. * src/HttpProxyRequestCommand.h
  2724. * src/HttpProxyResponseCommand.cc
  2725. * src/HttpProxyResponseCommand.h
  2726. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2727. Use SegmentMan::getSegment(cuid) for single file download.
  2728. * src/AbstractCommand.cc
  2729. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2730. Fixed bufSize calculation
  2731. * src/DownloadCommand.cc
  2732. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2733. Don't append "/" if base URI ends with "/".
  2734. * src/bittorrent_helper.cc
  2735. * test/url-list-multiFile.torrent
  2736. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2737. HTTP pipelining is now working. Fixed Segmention fault in
  2738. BitfieldMan's copy ctor.
  2739. * src/AbstractCommand.cc
  2740. * src/BitfieldMan.cc
  2741. * src/BitfieldMan.h
  2742. * src/DownloadCommand.cc
  2743. * src/HttpDownloadCommand.cc
  2744. * src/HttpRequest.cc
  2745. * src/SegmentMan.cc
  2746. * src/SegmentMan.h
  2747. * test/BitfieldManTest.cc
  2748. * test/SegmentManTest.cc
  2749. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2750. Removed ServerHost. Same functionality is implemented using
  2751. FileEntry's in-flight Request objects.
  2752. * src/AbstractCommand.cc
  2753. * src/BtDependency.cc
  2754. * src/CreateRequestCommand.cc
  2755. * src/FileEntry.cc
  2756. * src/FileEntry.h
  2757. * src/FtpNegotiationCommand.cc
  2758. * src/HttpResponseCommand.cc
  2759. * src/Makefile.am
  2760. * src/Metalink2RequestGroup.cc
  2761. * src/RequestGroup.cc
  2762. * src/RequestGroup.h
  2763. * src/ServerHost.cc: Removed
  2764. * src/ServerHost.h: Removed
  2765. * test/BtDependencyTest.cc
  2766. * test/FileEntryTest.cc
  2767. * test/RequestGroupTest.cc
  2768. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2769. Rewritten PeerStat handling. In the previous implementation,
  2770. faster command tries to find slower command. In this new
  2771. implementation, slower command tries to find faster command.
  2772. PeerStat is now created in each HTTP/FTP request to get download
  2773. rate correctly. If the download range is small, the download rate
  2774. tends to small and this will occur at the later stage of download.
  2775. * src/AbstractCommand.cc
  2776. * src/DownloadCommand.cc
  2777. * src/FileEntry.cc
  2778. * src/FileEntry.h
  2779. * src/Request.cc
  2780. * src/Request.h
  2781. * src/RequestGroup.h
  2782. * src/RequestGroupMan.cc
  2783. * src/SegmentMan.cc
  2784. * src/SegmentMan.h
  2785. * test/SegmentManTest.cc
  2786. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2787. Removed _uris from RequestGroup. All functions that refer to _uris
  2788. were moved to FileEntry. Exit status code are now defined in
  2789. DownloadResultCode.h.
  2790. * src/AbstractCommand.cc
  2791. * src/AdaptiveURISelector.cc
  2792. * src/AdaptiveURISelector.h
  2793. * src/AutoSaveCommand.cc
  2794. * src/BtPostDownloadHandler.cc
  2795. * src/CheckIntegrityDispatcherCommand.cc
  2796. * src/CookieStorage.cc
  2797. * src/DHTAutoSaveCommand.cc
  2798. * src/DHTBucketRefreshCommand.cc
  2799. * src/DHTEntryPointNameResolveCommand.cc
  2800. * src/DHTInteractionCommand.cc
  2801. * src/DHTPeerAnnounceCommand.cc
  2802. * src/DHTTokenUpdateCommand.cc
  2803. * src/DlAbortEx.h
  2804. * src/DlRetryEx.h
  2805. * src/DownloadCommand.cc
  2806. * src/DownloadContext.h
  2807. * src/DownloadFailureException.h
  2808. * src/DownloadResult.h
  2809. * src/DownloadResultCode.h
  2810. * src/FeedbackURISelector.cc
  2811. * src/FeedbackURISelector.h
  2812. * src/FileEntry.cc
  2813. * src/FileEntry.h
  2814. * src/FtpNegotiationCommand.cc
  2815. * src/HttpListenCommand.cc
  2816. * src/HttpResponseCommand.cc
  2817. * src/HttpServerResponseCommand.cc
  2818. * src/HttpSkipResponseCommand.cc
  2819. * src/InOrderURISelector.cc
  2820. * src/InOrderURISelector.h
  2821. * src/Makefile.am
  2822. * src/Makefile.in
  2823. * src/Metalink2RequestGroup.cc
  2824. * src/MultiUrlRequestInfo.cc
  2825. * src/MultiUrlRequestInfo.h
  2826. * src/OptionHandlerFactory.cc
  2827. * src/PeerListenCommand.cc
  2828. * src/RecoverableException.h
  2829. * src/RequestGroup.cc
  2830. * src/RequestGroup.h
  2831. * src/RequestGroupMan.cc
  2832. * src/RequestGroupMan.h
  2833. * src/TimedHaltCommand.cc
  2834. * src/TrackerWatcherCommand.cc
  2835. * src/URIResult.cc
  2836. * src/URIResult.h
  2837. * src/URISelector.h
  2838. * src/XmlRpcMethodImpl.cc
  2839. * src/bittorrent_helper.cc
  2840. * src/bittorrent_helper.h
  2841. * src/download_helper.cc
  2842. * src/main.cc
  2843. * src/option_processing.cc
  2844. * test/BtDependencyTest.cc
  2845. * test/BtPostDownloadHandlerTest.cc
  2846. * test/CookieStorageTest.cc
  2847. * test/DefaultBtMessageDispatcherTest.cc
  2848. * test/DownloadHandlerFactoryTest.cc
  2849. * test/DownloadHelperTest.cc
  2850. * test/FeedbackURISelectorTest.cc
  2851. * test/FileEntryTest.cc
  2852. * test/InOrderURISelectorTest.cc
  2853. * test/Metalink2RequestGroupTest.cc
  2854. * test/MetalinkPostDownloadHandlerTest.cc
  2855. * test/RequestGroupManTest.cc
  2856. * test/RequestGroupTest.cc
  2857. * test/XmlRpcMethodTest.cc
  2858. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2859. Removed MockBtContext.h
  2860. * test/Makefile.am
  2861. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2862. Removed _currentRequest from StreamCheckIntegrityEntry and
  2863. StreamFileAllocationEntry.
  2864. * src/AbstractCommand.cc
  2865. * src/HttpResponseCommand.cc
  2866. * src/RequestGroup.cc
  2867. * src/StreamCheckIntegrityEntry.cc
  2868. * src/StreamCheckIntegrityEntry.h
  2869. * src/StreamFileAllocationEntry.cc
  2870. * src/StreamFileAllocationEntry.h
  2871. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2872. Rewritten DownloadContext and removed SingleFileDownloadContext
  2873. and BtContext and its derived classes. BitTorrent specific
  2874. attributes are now set by DownloadContext::setAttribute() with key
  2875. bittorrent::BITTORRENT.
  2876. * src/AbstractBtMessage.cc
  2877. * src/AbstractBtMessage.h
  2878. * src/AbstractCommand.cc
  2879. * src/AbstractCommand.h
  2880. * src/AbstractProxyRequestCommand.cc
  2881. * src/AbstractProxyResponseCommand.cc
  2882. * src/ActivePeerConnectionCommand.cc
  2883. * src/ActivePeerConnectionCommand.h
  2884. * src/AnnounceList.cc
  2885. * src/BtCheckIntegrityEntry.cc
  2886. * src/BtConstants.h
  2887. * src/BtContext.h: Removed
  2888. * src/BtDependency.cc
  2889. * src/BtExtendedMessage.cc
  2890. * src/BtPieceMessage.cc
  2891. * src/BtPieceMessage.h
  2892. * src/BtPostDownloadHandler.cc
  2893. * src/BtRegistry.cc
  2894. * src/BtRegistry.h
  2895. * src/BtSetup.cc
  2896. * src/CheckIntegrityCommand.cc
  2897. * src/CheckIntegrityEntry.cc
  2898. * src/ChecksumCheckIntegrityEntry.cc
  2899. * src/ConsoleStatCalc.cc
  2900. * src/ContentTypeRequestGroupCriteria.cc
  2901. * src/DHTGetPeersCommand.cc
  2902. * src/DHTGetPeersCommand.h
  2903. * src/DHTPeerLookupTask.cc
  2904. * src/DHTPeerLookupTask.h
  2905. * src/DHTTaskFactory.h
  2906. * src/DHTTaskFactoryImpl.cc
  2907. * src/DHTTaskFactoryImpl.h
  2908. * src/DefaultBtAnnounce.cc
  2909. * src/DefaultBtAnnounce.h
  2910. * src/DefaultBtContext.cc: Removed
  2911. * src/DefaultBtContext.h: Removed
  2912. * src/DefaultBtInteractive.cc
  2913. * src/DefaultBtInteractive.h
  2914. * src/DefaultBtMessageDispatcher.cc
  2915. * src/DefaultBtMessageDispatcher.h
  2916. * src/DefaultBtMessageFactory.cc
  2917. * src/DefaultBtMessageFactory.h
  2918. * src/DefaultBtMessageReceiver.cc
  2919. * src/DefaultBtMessageReceiver.h
  2920. * src/DefaultBtProgressInfoFile.cc
  2921. * src/DefaultBtRequestFactory.cc
  2922. * src/DefaultBtRequestFactory.h
  2923. * src/DefaultExtensionMessageFactory.cc
  2924. * src/DefaultExtensionMessageFactory.h
  2925. * src/DefaultPeerStorage.cc
  2926. * src/DefaultPeerStorage.h
  2927. * src/DefaultPieceStorage.cc
  2928. * src/DefaultSegmentManFactory.cc
  2929. * src/DiskAdaptor.cc
  2930. * src/DiskAdaptor.h
  2931. * src/DownloadContext.cc
  2932. * src/DownloadContext.h
  2933. * src/DownloadEngine.cc
  2934. * src/DownloadEngineFactory.cc
  2935. * src/DownloadHandler.cc
  2936. * src/DownloadResult.h
  2937. * src/FileAllocationCommand.cc
  2938. * src/FileAllocationDispatcherCommand.cc
  2939. * src/FileAllocationEntry.cc
  2940. * src/FileEntry.h
  2941. * src/FillRequestGroupCommand.cc
  2942. * src/FtpDownloadCommand.cc
  2943. * src/FtpFinishDownloadCommand.cc
  2944. * src/FtpInitiateConnectionCommand.cc
  2945. * src/FtpNegotiationCommand.cc
  2946. * src/FtpTunnelRequestCommand.cc
  2947. * src/FtpTunnelResponseCommand.cc
  2948. * src/HandshakeExtensionMessage.cc
  2949. * src/HandshakeExtensionMessage.h
  2950. * src/HaveEraseCommand.cc
  2951. * src/HttpDownloadCommand.cc
  2952. * src/HttpInitiateConnectionCommand.cc
  2953. * src/HttpProxyRequestCommand.cc
  2954. * src/HttpProxyResponseCommand.cc
  2955. * src/HttpRequest.cc
  2956. * src/HttpRequest.h
  2957. * src/HttpRequestCommand.cc
  2958. * src/HttpResponseCommand.cc
  2959. * src/HttpServerBodyCommand.cc
  2960. * src/HttpServerCommand.cc
  2961. * src/HttpSkipResponseCommand.cc
  2962. * src/InitiateConnectionCommandFactory.cc
  2963. * src/InitiatorMSEHandshakeCommand.cc
  2964. * src/InitiatorMSEHandshakeCommand.h
  2965. * src/IteratableChecksumValidator.cc
  2966. * src/IteratableChecksumValidator.h
  2967. * src/IteratableChunkChecksumValidator.cc
  2968. * src/MSEHandshake.cc
  2969. * src/MSEHandshake.h
  2970. * src/Makefile.am
  2971. * src/Makefile.in
  2972. * src/Metalink2RequestGroup.cc
  2973. * src/MetalinkPostDownloadHandler.cc
  2974. * src/MultiDiskAdaptor.cc
  2975. * src/MultiDiskAdaptor.h
  2976. * src/MultiFileAllocationIterator.cc
  2977. * src/MultiUrlRequestInfo.cc
  2978. * src/PeerChokeCommand.cc
  2979. * src/PeerChokeCommand.h
  2980. * src/PeerInitiateConnectionCommand.cc
  2981. * src/PeerInitiateConnectionCommand.h
  2982. * src/PeerInteractionCommand.cc
  2983. * src/PeerInteractionCommand.h
  2984. * src/PeerReceiveHandshakeCommand.cc
  2985. * src/PieceHashCheckIntegrityEntry.cc
  2986. * src/RealtimeCommand.cc
  2987. * src/ReceiverMSEHandshakeCommand.cc
  2988. * src/RequestGroup.cc
  2989. * src/RequestGroup.h
  2990. * src/RequestGroupEntry.cc
  2991. * src/RequestGroupMan.cc
  2992. * src/SeedCheckCommand.cc
  2993. * src/SeedCheckCommand.h
  2994. * src/SegmentMan.cc
  2995. * src/ShareRatioSeedCriteria.h
  2996. * src/SingleFileDownloadContext.cc: Removed
  2997. * src/SingleFileDownloadContext.h: Removed
  2998. * src/SleepCommand.cc
  2999. * src/StreamCheckIntegrityEntry.cc
  3000. * src/TrackerWatcherCommand.cc
  3001. * src/TrackerWatcherCommand.h
  3002. * src/UnknownLengthPieceStorage.cc
  3003. * src/Util.cc
  3004. * src/Util.h
  3005. * src/XmlRpcMethodImpl.cc
  3006. * src/bittorrent_helper.cc
  3007. * src/bittorrent_helper.h
  3008. * src/download_helper.cc
  3009. * src/main.cc
  3010. * src/option_processing.cc
  3011. * test/BitfieldManTest.cc
  3012. * test/BittorrentHelperTest.cc
  3013. * test/BtCancelMessageTest.cc
  3014. * test/BtChokeMessageTest.cc
  3015. * test/BtDependencyTest.cc
  3016. * test/BtPieceMessageTest.cc
  3017. * test/BtPostDownloadHandlerTest.cc
  3018. * test/BtRegistryTest.cc
  3019. * test/BtRejectMessageTest.cc
  3020. * test/BtRequestMessageTest.cc
  3021. * test/DHTPeerAnnounceStorageTest.cc
  3022. * test/DefaultBtAnnounceTest.cc
  3023. * test/DefaultBtContextTest.cc: Removed
  3024. * test/DefaultBtMessageDispatcherTest.cc
  3025. * test/DefaultBtMessageFactoryTest.cc
  3026. * test/DefaultBtProgressInfoFileTest.cc
  3027. * test/DefaultBtRequestFactoryTest.cc
  3028. * test/DefaultExtensionMessageFactoryTest.cc
  3029. * test/DefaultPeerStorageTest.cc
  3030. * test/DefaultPieceStorageTest.cc
  3031. * test/DirectDiskAdaptorTest.cc
  3032. * test/DownloadContextTest.cc
  3033. * test/DownloadHandlerFactoryTest.cc
  3034. * test/DownloadHelperTest.cc
  3035. * test/HandshakeExtensionMessageTest.cc
  3036. * test/HttpRequestTest.cc
  3037. * test/HttpResponseTest.cc
  3038. * test/IteratableChecksumValidatorTest.cc
  3039. * test/IteratableChunkChecksumValidatorTest.cc
  3040. * test/MSEHandshakeTest.cc
  3041. * test/Makefile.am
  3042. * test/Makefile.in
  3043. * test/Metalink2RequestGroupTest.cc
  3044. * test/MetalinkPostDownloadHandlerTest.cc
  3045. * test/MockBtContext.h: Removed
  3046. * test/MockDHTTaskFactory.h
  3047. * test/MockDownloadContext.h: Removed
  3048. * test/MockPieceStorage.h
  3049. * test/MultiDiskAdaptorTest.cc
  3050. * test/MultiFileAllocationIteratorTest.cc
  3051. * test/RequestGroupManTest.cc
  3052. * test/RequestGroupTest.cc
  3053. * test/SegmentManTest.cc
  3054. * test/ShareRatioSeedCriteriaTest.cc
  3055. * test/SingleFileDownloadContextTest.cc: Removed
  3056. * test/UtilTest.cc
  3057. * test/XmlRpcMethodTest.cc
  3058. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3059. Added experimental support of WEB-Seeding for multi-file torrent.
  3060. Due to fundamental changes in file handling in HTTP/FTP code, many
  3061. functions are not working: PeerStat, ServerHost, proxy..etc
  3062. * src/AbstractCommand.cc
  3063. * src/AbstractCommand.h
  3064. * src/BitfieldMan.cc
  3065. * src/BitfieldMan.h
  3066. * src/CreateRequestCommand.cc
  3067. * src/CreateRequestCommand.h
  3068. * src/DefaultPieceStorage.cc
  3069. * src/DefaultPieceStorage.h
  3070. * src/DownloadCommand.cc
  3071. * src/DownloadCommand.h
  3072. * src/DownloadContext.cc
  3073. * src/DownloadContext.h
  3074. * src/FileEntry.cc
  3075. * src/FileEntry.h
  3076. * src/FtpDownloadCommand.cc
  3077. * src/FtpDownloadCommand.h
  3078. * src/FtpFinishDownloadCommand.cc
  3079. * src/FtpFinishDownloadCommand.h
  3080. * src/FtpInitiateConnectionCommand.cc
  3081. * src/FtpInitiateConnectionCommand.h
  3082. * src/FtpNegotiationCommand.cc
  3083. * src/FtpNegotiationCommand.h
  3084. * src/FtpTunnelResponseCommand.cc
  3085. * src/HttpDownloadCommand.cc
  3086. * src/HttpDownloadCommand.h
  3087. * src/HttpInitiateConnectionCommand.cc
  3088. * src/HttpInitiateConnectionCommand.h
  3089. * src/HttpProxyResponseCommand.cc
  3090. * src/HttpRequest.cc
  3091. * src/HttpRequest.h
  3092. * src/HttpRequestCommand.cc
  3093. * src/HttpRequestCommand.h
  3094. * src/HttpResponseCommand.cc
  3095. * src/HttpResponseCommand.h
  3096. * src/HttpSkipResponseCommand.cc
  3097. * src/HttpSkipResponseCommand.h
  3098. * src/InitiateConnectionCommand.cc
  3099. * src/InitiateConnectionCommand.h
  3100. * src/InitiateConnectionCommandFactory.cc
  3101. * src/InitiateConnectionCommandFactory.h
  3102. * src/Makefile.am
  3103. * src/PieceStorage.h
  3104. * src/RequestGroup.cc
  3105. * src/RequestGroup.h
  3106. * src/RequestGroupMan.cc
  3107. * src/SegmentMan.cc
  3108. * src/SegmentMan.h
  3109. * src/SingleFileDownloadContext.h
  3110. * src/StreamFileAllocationEntry.cc
  3111. * src/TrackerWatcherCommand.cc
  3112. * src/UnknownLengthPieceStorage.cc
  3113. * src/UnknownLengthPieceStorage.h
  3114. * src/array_fun.h
  3115. * src/bitfield.h
  3116. * src/download_helper.cc
  3117. * test/DownloadContextTest.cc
  3118. * test/Makefile.am
  3119. * test/MockDownloadContext.h
  3120. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3121. Added tellWaiting XML-RPC method.
  3122. * src/SingleFileDownloadContext.cc
  3123. * src/XmlRpcMethodFactory.cc
  3124. * src/XmlRpcMethodImpl.cc
  3125. * src/XmlRpcMethodImpl.h
  3126. * test/XmlRpcMethodTest.cc
  3127. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3128. Updated CookieStorageTest
  3129. * test/CookieStorageTest.cc
  3130. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3131. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  3132. handle excepion inside these functions.
  3133. * src/LibgnutlsTLSContext.cc
  3134. * src/LibgnutlsTLSContext.h
  3135. * src/LibsslTLSContext.cc
  3136. * src/LibsslTLSContext.h
  3137. * src/MultiUrlRequestInfo.cc
  3138. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3139. Added comment
  3140. * src/RequestGroup.cc
  3141. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3142. In CookieStorage::load() and saveNsFormat(), handle exception
  3143. inside the functions. When saving Cookies, first write temporary
  3144. file and after successful writes, then renames it to final
  3145. destination.
  3146. * src/CookieStorage.cc
  3147. * src/CookieStorage.h
  3148. * src/MultiUrlRequestInfo.cc
  3149. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. The default value of --dir option is the absolute path to the
  3151. current directory. If getcwd() is failed, then it is ".", which is
  3152. the same value with old implementation. This change is necessary
  3153. because after daemon() call, the current working directory is
  3154. changed to /.
  3155. * src/File.cc
  3156. * src/File.h
  3157. * src/OptionHandlerFactory.cc
  3158. * src/option_processing.cc
  3159. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Call daemon() with arguments(0,0), which means daemon() changes
  3161. current working directory to / and redirects stdin, stdout and
  3162. stderr to /dev/null.
  3163. * src/option_processing.cc
  3164. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3165. Small performance optimizations.
  3166. * src/RequestGroupMan.cc
  3167. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3168. Added _xmlRpc member variable to RequestGroupMan to reduce the
  3169. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  3170. * src/RequestGroupMan.cc
  3171. * src/RequestGroupMan.h
  3172. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  3174. setNoWiat(true) if newly created command calls
  3175. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  3176. * src/HttpListenCommand.cc
  3177. * src/HttpServerBodyCommand.cc
  3178. * src/HttpServerCommand.cc
  3179. * src/HttpServerResponseCommand.cc
  3180. * src/InitiateConnectionCommand.cc
  3181. * src/RequestGroup.cc
  3182. * src/StreamFileAllocationEntry.cc
  3183. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3184. Removed include vector
  3185. * src/BtRegistry.h
  3186. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3187. Rewritten BtRegistry
  3188. * src/BtRegistry.cc
  3189. * src/BtRegistry.h
  3190. * src/BtSetup.cc
  3191. * src/ConsoleStatCalc.cc
  3192. * src/PeerInteractionCommand.cc
  3193. * src/PeerReceiveHandshakeCommand.cc
  3194. * src/ReceiverMSEHandshakeCommand.cc
  3195. * src/RequestGroup.cc
  3196. * src/XmlRpcMethodImpl.cc
  3197. * test/BtRegistryTest.cc
  3198. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3199. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  3200. * src/DefaultBtProgressInfoFile.cc
  3201. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3202. Throw an exception if position is less than 0.
  3203. * src/XmlRpcMethodImpl.cc
  3204. * test/XmlRpcMethodTest.cc
  3205. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3206. Use writeFilePath() in ConsoleStatCalc.cc
  3207. * src/ConsoleStatCalc.cc
  3208. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3209. Receive the return value as const reference from
  3210. DownloadContext::getFileEntries().
  3211. * src/DefaultPieceStorage.cc
  3212. * src/RequestGroupMan.cc
  3213. * src/XmlRpcMethodImpl.cc
  3214. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3215. DownloadContext now has _fileEntries so that
  3216. DownloadContext::getFileEntries() can returns its const reference.
  3217. * src/DefaultBtContext.cc
  3218. * src/DefaultBtContext.h
  3219. * src/DownloadContext.cc
  3220. * src/DownloadContext.h
  3221. * src/SingleFileDownloadContext.cc
  3222. * src/SingleFileDownloadContext.h
  3223. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3224. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  3225. writeFilePath() function template from RequestGroupMan.cc to
  3226. FileEntry.h
  3227. * src/FileEntry.h
  3228. * src/RequestGroupMan.cc
  3229. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3230. Documented 'position' parameter is starting from 0 in man page.
  3231. * doc/aria2c.1.txt
  3232. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Updated doc.
  3234. * src/MSEHandshake.cc
  3235. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3236. Removed _acceptFeatures and its accessor functions from
  3237. RequestGroup since they are not used practically.
  3238. * src/HttpRequestCommand.cc
  3239. * src/RequestGroup.cc
  3240. * src/RequestGroup.h
  3241. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3242. Removed member _maxTries from RequestGroup class to avoid
  3243. duplicate option value. Those classes who refer this variable
  3244. should use option value of PREF_MAX_TRIES directly.
  3245. * src/AbstractCommand.cc
  3246. * src/RequestGroup.cc
  3247. * src/RequestGroup.h
  3248. * src/TrackerWatcherCommand.cc
  3249. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3250. * Release 1.4.1
  3251. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3252. Fixed compiler warnings on netbsd
  3253. * src/DHTConnectionImpl.cc
  3254. * src/PeerListenCommand.cc
  3255. * src/PeerSessionResource.cc
  3256. * src/SegmentMan.cc
  3257. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3258. Updated Ukrainian translation. Thanks to all translators.
  3259. * po/uk.po
  3260. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3261. Bump up version number to 1.4.1.
  3262. * configure.ac
  3263. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3264. Added unit tests for strjoin, strconcat and strappend.
  3265. * test/a2functionalTest.cc
  3266. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3267. Rewritten strconcat and strappend using operator+ instead of
  3268. append().
  3269. * src/a2functional.h
  3270. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  3272. is enabled.
  3273. * src/Makefile.am
  3274. * test/Makefile.am
  3275. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3276. Added countSeeder() function which counts seeder in the given
  3277. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  3278. * src/ConsoleStatCalc.cc
  3279. * src/Peer.h
  3280. * src/XmlRpcMethodImpl.cc
  3281. * test/PeerTest.cc
  3282. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3283. Documented missing seeder in getPeers xml-rpc method.
  3284. Documented uploadLength and numSeeders.
  3285. * doc/aria2c.1.txt
  3286. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3287. Added uploadLength and numSeeders to the response of tellStatus
  3288. xml-rpc method. Assert that PeerStorage instance is not null
  3289. instead of checking if statement. It should be non-null in this
  3290. context.
  3291. * src/XmlRpcMethodImpl.cc
  3292. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3293. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  3294. * src/XmlRpcResponse.cc
  3295. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. Avoid intermediate object during string concatenation.
  3297. * src/HttpRequest.cc
  3298. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3299. Added strjoin function template. Use it in pathJoin()
  3300. * src/Util.h
  3301. * src/a2functional.h
  3302. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3303. Avoid intermediate object during string concatenation. Replaced
  3304. post-increment unary operator with pre-increment one in for loop.
  3305. * src/AdaptiveURISelector.cc
  3306. * src/AnnounceList.cc
  3307. * src/AuthConfig.h
  3308. * src/BtBitfieldMessage.cc
  3309. * src/BtExtendedMessage.cc
  3310. * src/BtHandshakeMessage.cc
  3311. * src/BtPieceMessage.cc
  3312. * src/BtPortMessage.cc
  3313. * src/Cookie.cc
  3314. * src/DHTAnnouncePeerMessage.cc
  3315. * src/DHTAutoSaveCommand.cc
  3316. * src/DHTGetPeersReplyMessage.cc
  3317. * src/DHTNode.cc
  3318. * src/DHTQueryMessage.cc
  3319. * src/DHTResponseMessage.cc
  3320. * src/DHTUnknownMessage.cc
  3321. * src/DefaultBtAnnounce.cc
  3322. * src/DefaultBtContext.cc
  3323. * src/DefaultBtInteractive.cc
  3324. * src/DefaultBtProgressInfoFile.cc
  3325. * src/DefaultPeerStorage.cc
  3326. * src/DownloadEngine.cc
  3327. * src/FeatureConfig.cc
  3328. * src/File.cc
  3329. * src/FtpConnection.cc
  3330. * src/FtpNegotiationCommand.cc
  3331. * src/HandshakeExtensionMessage.cc
  3332. * src/HttpConnection.cc
  3333. * src/HttpRequest.cc
  3334. * src/HttpResponseCommand.cc
  3335. * src/HttpServer.cc
  3336. * src/IndexBtMessage.cc
  3337. * src/Metalink2RequestGroup.cc
  3338. * src/OptionHandlerImpl.h
  3339. * src/PStringBuildVisitor.cc
  3340. * src/Peer.cc
  3341. * src/PeerListenCommand.cc
  3342. * src/Piece.cc
  3343. * src/RangeBtMessage.cc
  3344. * src/Request.cc
  3345. * src/Request.h
  3346. * src/RequestGroup.cc
  3347. * src/RequestGroupMan.cc
  3348. * src/ServerStat.cc
  3349. * src/ServerStatMan.cc
  3350. * src/UTPexExtensionMessage.cc
  3351. * src/Util.cc
  3352. * src/a2functional.h
  3353. * src/download_helper.cc
  3354. * src/messageDigest.cc
  3355. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3356. Unchoke a peer randomly at first and second choke round in seed
  3357. state.
  3358. * src/BtSeederStateChoke.cc
  3359. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3360. Added (sock_t) to quiet compiler warnings in MinGW
  3361. * src/SocketCore.cc
  3362. * src/SocketCore.h
  3363. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3364. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3365. * src/EpollEventPoll.h
  3366. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3367. Added fork() emulation using CreateProcess() in MinGW
  3368. * src/RequestGroupMan.cc
  3369. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3370. * Release 1.4.0
  3371. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3372. Added utf8.torrent to EXTRA_DIST
  3373. * test/Makefile.am
  3374. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3375. Fixed docs of aria2.addMetalink xml-rpc method.
  3376. * doc/aria2c.1.txt
  3377. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3378. Added Slovak translation. Updated Ukrainian and Brazilian
  3379. Portuguese translation. Thanks to all translators.
  3380. * po/sk.po
  3381. * po/uk.po
  3382. * po/pt_BR.po
  3383. * po/LINGUAS
  3384. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3385. Added test case for XmlRpcProcessor to fail to parse malformed
  3386. document.
  3387. * test/XmlRpcRequestProcessorTest.cc
  3388. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3389. Removed *.gmo files in po because they are generated on 'make
  3390. dist'
  3391. * po/*.gmo
  3392. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3393. Documented max-concurrent-downloads of changeGlobalOption method
  3394. in man page.
  3395. * doc/aria2c.1.txt
  3396. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3397. Added max-concurrent-downloads option to changeGlobalOption
  3398. xml-rpc method. Rewritten loop conditional in
  3399. RequestGroupMan::fillRequestGroupFromReserver().
  3400. * src/RequestGroupMan.cc
  3401. * src/RequestGroupMan.h
  3402. * src/XmlRpcMethod.cc
  3403. * src/XmlRpcMethodImpl.cc
  3404. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3405. Documented position parameter in man page.
  3406. * doc/aria2c.1.txt
  3407. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3408. Added 'position' parameter to addUri, addTorrent and addMetalink
  3409. xml-rpc method.
  3410. * src/RequestGroupMan.cc
  3411. * src/RequestGroupMan.h
  3412. * src/XmlRpcMethodImpl.cc
  3413. * test/XmlRpcMethodTest.cc
  3414. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3415. Removed Peer.cc from compile source list when --disable-bittorrent
  3416. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3417. takes Peer.
  3418. * src/DefaultPieceStorage.cc
  3419. * src/DefaultPieceStorage.h
  3420. * src/Makefile.am
  3421. * src/PieceStorage.h
  3422. * src/UnknownLengthPieceStorage.cc
  3423. * src/UnknownLengthPieceStorage.h
  3424. * test/MockPieceStorage.h
  3425. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3426. Implemented getter methods in header files to give them more
  3427. chance of optimization.
  3428. Return const reference for SharadHandle if possible.
  3429. * src/AbstractAuthResolver.cc
  3430. * src/AbstractAuthResolver.h
  3431. * src/AbstractBtMessage.cc
  3432. * src/AbstractBtMessage.h
  3433. * src/AbstractSingleDiskAdaptor.cc
  3434. * src/AbstractSingleDiskAdaptor.h
  3435. * src/AsyncNameResolver.cc
  3436. * src/AsyncNameResolver.h
  3437. * src/BNode.cc
  3438. * src/BNode.h
  3439. * src/BitfieldMan.cc
  3440. * src/BitfieldMan.h
  3441. * src/BtAbortOutstandingRequestEvent.h
  3442. * src/BtExtendedMessage.cc
  3443. * src/BtExtendedMessage.h
  3444. * src/BtSeederStateChoke.cc
  3445. * src/BtSeederStateChoke.h
  3446. * src/Cookie.cc
  3447. * src/Cookie.h
  3448. * src/DHTBucket.cc
  3449. * src/DHTBucket.h
  3450. * src/DHTConnectionImpl.cc
  3451. * src/DHTConnectionImpl.h
  3452. * src/DHTFindNodeReplyMessage.cc
  3453. * src/DHTFindNodeReplyMessage.h
  3454. * src/DHTGetPeersReplyMessage.cc
  3455. * src/DHTGetPeersReplyMessage.h
  3456. * src/DHTInteractionCommand.cc
  3457. * src/DHTMessage.cc
  3458. * src/DHTMessage.h
  3459. * src/DHTMessageDispatcherImpl.cc
  3460. * src/DHTMessageEntry.cc
  3461. * src/DHTMessageReceiver.cc
  3462. * src/DHTMessageReceiver.h
  3463. * src/DHTMessageTrackerEntry.cc
  3464. * src/DHTMessageTrackerEntry.h
  3465. * src/DHTPeerAnnounceEntry.cc
  3466. * src/DHTPeerAnnounceEntry.h
  3467. * src/DHTPeerLookupTask.cc
  3468. * src/DHTPeerLookupTask.h
  3469. * src/DHTRoutingTableDeserializer.cc
  3470. * src/DHTRoutingTableDeserializer.h
  3471. * src/DefaultBtAnnounce.cc
  3472. * src/DefaultBtAnnounce.h
  3473. * src/DefaultBtMessageDispatcher.cc
  3474. * src/DefaultBtMessageDispatcher.h
  3475. * src/DefaultBtRequestFactory.cc
  3476. * src/DefaultBtRequestFactory.h
  3477. * src/DiskAdaptor.cc
  3478. * src/DiskAdaptor.h
  3479. * src/DownloadContext.cc
  3480. * src/DownloadContext.h
  3481. * src/DownloadEngine.cc
  3482. * src/DownloadEngine.h
  3483. * src/EpollEventPoll.cc
  3484. * src/EpollEventPoll.h
  3485. * src/FtpConnection.cc
  3486. * src/FtpConnection.h
  3487. * src/HttpConnection.cc
  3488. * src/HttpConnection.h
  3489. * src/HttpHeader.cc
  3490. * src/HttpHeader.h
  3491. * src/HttpRequest.cc
  3492. * src/HttpRequest.h
  3493. * src/HttpResponse.cc
  3494. * src/HttpResponse.h
  3495. * src/LibsslTLSContext.cc
  3496. * src/LibsslTLSContext.h
  3497. * src/MSEHandshake.cc
  3498. * src/MSEHandshake.h
  3499. * src/MetalinkEntry.cc
  3500. * src/MetalinkEntry.h
  3501. * src/MetalinkParserController.cc
  3502. * src/MetalinkParserController.h
  3503. * src/MetalinkParserStateMachine.cc
  3504. * src/MetalinkParserStateMachine.h
  3505. * src/MultiDiskAdaptor.cc
  3506. * src/MultiDiskAdaptor.h
  3507. * src/NetrcAuthResolver.cc
  3508. * src/NetrcAuthResolver.h
  3509. * src/Peer.cc
  3510. * src/Peer.h
  3511. * src/PeerSessionResource.cc
  3512. * src/PeerSessionResource.h
  3513. * src/Piece.cc
  3514. * src/Piece.h
  3515. * src/PieceStatMan.cc
  3516. * src/PieceStatMan.h
  3517. * src/Request.cc
  3518. * src/Request.h
  3519. * src/RequestGroup.cc
  3520. * src/RequestGroup.h
  3521. * src/RequestGroupMan.cc
  3522. * src/RequestGroupMan.h
  3523. * src/RequestSlot.cc
  3524. * src/RequestSlot.h
  3525. * src/SegmentMan.cc
  3526. * src/SegmentMan.h
  3527. * src/SelectEventPoll.cc
  3528. * src/SelectEventPoll.h
  3529. * src/ServerStat.cc
  3530. * src/ServerStat.h
  3531. * src/Signature.cc
  3532. * src/Signature.h
  3533. * src/URIResult.cc
  3534. * src/URIResult.h
  3535. * src/UTPexExtensionMessage.cc
  3536. * src/UTPexExtensionMessage.h
  3537. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3538. Fixed compile error without BitTorrent and Metalink support.
  3539. * src/XmlRpcMethod.cc
  3540. * src/XmlRpcMethodFactory.cc
  3541. * src/XmlRpcMethodImpl.cc
  3542. * src/XmlRpcMethodImpl.h
  3543. * test/XmlRpcMethodTest.cc
  3544. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3545. Rewritten the help message for --allow-overwrite option.
  3546. * doc/aria2c.1.txt
  3547. * src/usage_text.h
  3548. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Fixed typo
  3550. * doc/aria2c.1.txt
  3551. * src/usage_text.h
  3552. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3553. Updated README for 1.4.0 release. Use new table syntax of
  3554. asciidoc.
  3555. * README
  3556. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3557. Documented --xml-rpc-max-request-size option in man page.
  3558. * doc/aria2c.1.txt
  3559. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3560. Moved C_* constants from BtContext to DefaultBtContext.
  3561. * src/BtContext.cc: Removed.
  3562. * src/BtContext.h
  3563. * src/DefaultBtContext.cc
  3564. * src/DefaultBtContext.h
  3565. * src/Makefile.am
  3566. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3568. path key respectively when persing .torrent file.
  3569. * src/BtContext.cc
  3570. * src/BtContext.h
  3571. * src/DefaultBtContext.cc
  3572. * test/DefaultBtContextTest.cc
  3573. * test/utf8.torrent
  3574. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3575. Added --xml-rpc-max-request-size option to limit the size of
  3576. XML-RPC request.
  3577. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3578. Documented XML-RPC API in man page.
  3579. * doc/aria2c.1.txt
  3580. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3581. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3582. will break strict-aliasing rules
  3583. * src/PeerConnection.cc
  3584. * test/DHTRoutingTableSerializerTest.cc
  3585. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3587. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3588. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3589. PKG_CHECK_MODULES macro uses latter name.
  3590. * m4/sqlite3.m4
  3591. * src/Makefile.am
  3592. * test/Makefile.am
  3593. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3594. Fixed typo
  3595. * configure.ac
  3596. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3597. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3598. presence of libgnutls using pkg-config first. If it fails, fall
  3599. back to old macro libgnutls.m4.
  3600. * configure.ac
  3601. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Use s itself instead of !s.bad()
  3603. * src/CookieStorage.cc
  3604. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3605. Documented --on-download-* option and --save-cookies option in man
  3606. page.
  3607. * doc/aria2c.1.txt
  3608. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3609. Set possible values for --load-cookie option to "/path/to/file".
  3610. * src/OptionHandlerFactory.cc
  3611. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3612. Added --save-cookies option.
  3613. * src/Cookie.cc
  3614. * src/Cookie.h
  3615. * src/CookieStorage.cc
  3616. * src/CookieStorage.h
  3617. * src/MultiUrlRequestInfo.cc
  3618. * src/OptionHandlerFactory.cc
  3619. * src/prefs.cc
  3620. * src/prefs.h
  3621. * src/usage_text.h
  3622. * test/CookieStorageTest.cc
  3623. * test/CookieTest.cc
  3624. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3625. Removed tellAll XML-RPC command because its reponse tends to be
  3626. big if stopped/waiting downloads pile up.
  3627. * src/XmlRpcMethodFactory.cc
  3628. * src/XmlRpcMethodImpl.cc
  3629. * src/XmlRpcMethodImpl.h
  3630. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3631. Added the ability to execute command when download starts and
  3632. stops. You can also specify command for particular cases such as
  3633. complete/error download. Added --on-download-start,
  3634. --on-download-stop, --on-download-complete and --on-download-error
  3635. option.
  3636. * src/OptionHandlerFactory.cc
  3637. * src/RequestGroupMan.cc
  3638. * src/prefs.cc
  3639. * src/prefs.h
  3640. * src/usage_text.h
  3641. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3642. Fixed test error
  3643. * test/BencodeTest.cc
  3644. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3645. Added unit tests.
  3646. * test/XmlRpcMethodTest.cc
  3647. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3648. Made exception message more verbose.
  3649. * src/bencode.cc
  3650. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3651. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3652. space in console readout. Also they are now shown in MiB/s if
  3653. speed > 1024KiB/s.
  3654. * src/ConsoleStatCalc.cc
  3655. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3656. Added SEED to console output, which represents the number of
  3657. seeders currently the client is connecting to.
  3658. * src/ConsoleStatCalc.cc
  3659. * src/ConsoleStatCalc.h
  3660. * src/DownloadEngine.cc
  3661. * src/NullStatCalc.h
  3662. * src/StatCalc.h
  3663. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Added source filename(__FILE__) and line number(__LINE__) to
  3665. exception message.
  3666. * src/AbstractCommand.cc
  3667. * src/AbstractDiskWriter.cc
  3668. * src/AbstractProxyResponseCommand.cc
  3669. * src/BDE.h
  3670. * src/BtAllowedFastMessage.cc
  3671. * src/BtHandshakeMessageValidator.h
  3672. * src/BtHaveAllMessage.cc
  3673. * src/BtHaveNoneMessage.cc
  3674. * src/BtPieceMessage.cc
  3675. * src/BtRejectMessage.cc
  3676. * src/ChunkedDecoder.cc
  3677. * src/CookieStorage.cc
  3678. * src/DHTAnnouncePeerMessage.cc
  3679. * src/DHTEntryPointNameResolveCommand.cc
  3680. * src/DHTMessageFactoryImpl.cc
  3681. * src/DHTMessageTracker.cc
  3682. * src/DHTRoutingTableDeserializer.cc
  3683. * src/DHTRoutingTableSerializer.cc
  3684. * src/DHTSetup.cc
  3685. * src/DHTTokenTracker.cc
  3686. * src/DefaultBtAnnounce.cc
  3687. * src/DefaultBtContext.cc
  3688. * src/DefaultBtInteractive.cc
  3689. * src/DefaultBtMessageFactory.cc
  3690. * src/DefaultBtProgressInfoFile.cc
  3691. * src/DefaultExtensionMessageFactory.cc
  3692. * src/DlAbortEx.h
  3693. * src/DlRetryEx.h
  3694. * src/DownloadCommand.cc
  3695. * src/DownloadEngineFactory.cc
  3696. * src/DownloadFailureException.h
  3697. * src/Exception.cc
  3698. * src/Exception.h
  3699. * src/ExpatMetalinkProcessor.cc
  3700. * src/ExpatXmlRpcRequestProcessor.cc
  3701. * src/FallocFileAllocationIterator.cc
  3702. * src/FatalException.h
  3703. * src/FtpConnection.cc
  3704. * src/FtpFinishDownloadCommand.cc
  3705. * src/FtpInitiateConnectionCommand.cc
  3706. * src/FtpNegotiationCommand.cc
  3707. * src/GZipDecoder.cc
  3708. * src/HandshakeExtensionMessage.cc
  3709. * src/HttpConnection.cc
  3710. * src/HttpHeaderProcessor.cc
  3711. * src/HttpInitiateConnectionCommand.cc
  3712. * src/HttpResponse.cc
  3713. * src/HttpResponseCommand.cc
  3714. * src/HttpServer.cc
  3715. * src/HttpSkipResponseCommand.cc
  3716. * src/InitiateConnectionCommandFactory.cc
  3717. * src/IteratableChunkChecksumValidator.cc
  3718. * src/LibgcryptARC4Context.h
  3719. * src/LibgcryptARC4Decryptor.h
  3720. * src/LibgcryptARC4Encryptor.h
  3721. * src/LibgcryptDHKeyExchange.h
  3722. * src/LibgnutlsTLSContext.cc
  3723. * src/LibsslARC4Context.h
  3724. * src/LibsslARC4Decryptor.h
  3725. * src/LibsslARC4Encryptor.h
  3726. * src/LibsslDHKeyExchange.h
  3727. * src/LibsslTLSContext.cc
  3728. * src/MSEHandshake.cc
  3729. * src/MessageDigestHelper.cc
  3730. * src/MetalinkHelper.cc
  3731. * src/MultiDiskAdaptor.cc
  3732. * src/NameMatchOptionHandler.h
  3733. * src/NameResolver.cc
  3734. * src/Netrc.cc
  3735. * src/NsCookieParser.cc
  3736. * src/OptionHandlerException.cc
  3737. * src/OptionHandlerException.h
  3738. * src/OptionHandlerImpl.h
  3739. * src/OptionParser.cc
  3740. * src/ParameterizedStringParser.cc
  3741. * src/PeerAbstractCommand.cc
  3742. * src/PeerConnection.cc
  3743. * src/PeerMessageUtil.cc
  3744. * src/PeerReceiveHandshakeCommand.cc
  3745. * src/Platform.cc
  3746. * src/ReceiverMSEHandshakeCommand.cc
  3747. * src/RecoverableException.h
  3748. * src/RequestGroup.cc
  3749. * src/SimpleLogger.cc
  3750. * src/SocketCore.cc
  3751. * src/Sqlite3MozCookieParser.cc
  3752. * src/UTPexExtensionMessage.cc
  3753. * src/Util.cc
  3754. * src/XML2SAXMetalinkProcessor.cc
  3755. * src/Xml2XmlRpcRequestProcessor.cc
  3756. * src/XmlRpcMethodImpl.cc
  3757. * src/bencode.cc
  3758. * src/download_helper.cc
  3759. * src/messageDigest.h
  3760. * test/ExceptionTest.cc
  3761. * test/TestUtil.cc
  3762. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3763. Bump up version number to 1.4.0
  3764. * configure.ac
  3765. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3766. Added 2files.metalink to EXTRA_DIST
  3767. * test/Makefile.am
  3768. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3769. Added missing 2files.metalink
  3770. * test/2files.metalink
  3771. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3772. Show "[MEMORY]" prefix before filename in download summary if it
  3773. is downloaded into memory.
  3774. * src/DownloadResult.h
  3775. * src/RequestGroup.cc
  3776. * src/RequestGroupMan.cc
  3777. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3778. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3779. * src/ExpatXmlRpcRequestProcessor.cc
  3780. * src/Xml2XmlRpcRequestProcessor.cc
  3781. * src/message.h
  3782. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3783. Defined const BDEs to avoid duplicate instantiation.
  3784. Defined MSG_GID_NOT_PROVIDED.
  3785. * src/XmlRpcMethodImpl.cc
  3786. * src/message.h
  3787. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3788. Code cleanup
  3789. * src/Xml2XmlRpcRequestProcessor.cc
  3790. * src/Xml2XmlRpcRequestProcessor.h
  3791. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3792. Defined ENABLE_XML_RPC
  3793. * configure.ac
  3794. * configure
  3795. * config.h.in
  3796. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3797. Added ExpatXmlRpcRequestProcessor
  3798. * src/ExpatXmlRpcRequestProcessor.cc
  3799. * src/ExpatXmlRpcRequestProcessor.h
  3800. * src/Makefile.am
  3801. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3802. Added tests for addTorrent and addMetalink command.
  3803. * test/TestUtil.cc
  3804. * test/TestUtil.h
  3805. * test/XmlRpcMethodTest.cc
  3806. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3807. Corrected the description of --file-allocation option.
  3808. * doc/aria2c.1.txt
  3809. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3810. Added tellAll command.
  3811. * src/XmlRpcMethodFactory.cc
  3812. * src/XmlRpcMethodImpl.cc
  3813. * src/XmlRpcMethodImpl.h
  3814. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3816. * src/XmlRpcMethodImpl.cc
  3817. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3818. Added changeGlobalOption command. Currently,
  3819. max-overall-download-limit and max-overall-upload-limit option are
  3820. available.
  3821. * src/RequestGroupMan.h
  3822. * src/XmlRpcMethod.cc
  3823. * src/XmlRpcMethod.h
  3824. * src/XmlRpcMethodFactory.cc
  3825. * src/XmlRpcMethodImpl.cc
  3826. * src/XmlRpcMethodImpl.h
  3827. * test/XmlRpcMethodTest.cc
  3828. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3829. Added changeOption command. Currently, max-download-limit,
  3830. max-upload-limit option are available in this command.
  3831. * src/RequestGroup.h
  3832. * src/XmlRpcMethod.cc
  3833. * src/XmlRpcMethod.h
  3834. * src/XmlRpcMethodFactory.cc
  3835. * src/XmlRpcMethodImpl.cc
  3836. * src/XmlRpcMethodImpl.h
  3837. * test/XmlRpcMethodTest.cc
  3838. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3839. Added purgeDownloadResult command.
  3840. * src/RequestGroupMan.cc
  3841. * src/RequestGroupMan.h
  3842. * src/XmlRpcMethodFactory.cc
  3843. * src/XmlRpcMethodImpl.cc
  3844. * src/XmlRpcMethodImpl.h
  3845. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3846. Refactored.
  3847. * src/XmlRpcMethod.cc
  3848. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3849. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3850. XmlRpcResponse.
  3851. * src/HttpServerBodyCommand.cc
  3852. * src/Makefile.am
  3853. * src/XmlRpcMethod.cc
  3854. * src/XmlRpcMethod.h
  3855. * src/XmlRpcMethodImpl.cc
  3856. * src/XmlRpcResponse.cc
  3857. * src/XmlRpcResponse.h
  3858. * test/XmlRpcMethodTest.cc
  3859. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3860. In XML-RPC option struct, header and index-out option can take
  3861. array as value.
  3862. * src/XmlRpcMethod.cc
  3863. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3864. Removed unused option member from PeerConnection.
  3865. * src/InitiatorMSEHandshakeCommand.cc
  3866. * src/PeerConnection.cc
  3867. * src/PeerConnection.h
  3868. * src/PeerInteractionCommand.cc
  3869. * src/PeerReceiveHandshakeCommand.cc
  3870. * src/ReceiverMSEHandshakeCommand.cc
  3871. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3872. Added "seeder" key to getPeers response.
  3873. * src/XmlRpcMethodImpl.cc
  3874. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3875. Added addMetalink XML-RPC command.
  3876. * src/XmlRpcMethodFactory.cc
  3877. * src/XmlRpcMethodImpl.cc
  3878. * src/XmlRpcMethodImpl.h
  3879. * src/download_helper.cc
  3880. * src/download_helper.h
  3881. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3882. Fixed the bug that POU peers are never choked in seeding.
  3883. * src/BtSeederStateChoke.cc
  3884. * src/BtSeederStateChoke.h
  3885. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3886. Added web-seeding URI handling in addTorrent command.
  3887. * src/XmlRpcMethodImpl.cc
  3888. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3889. Added "length" key to getFiles response.
  3890. * src/XmlRpcMethodImpl.cc
  3891. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3892. Moved --no-netrc option from ftp option section to http/ftp option
  3893. section.
  3894. * doc/aria2c.1.txt
  3895. * src/OptionHandlerFactory.cc
  3896. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Removed garbage "\" character before '
  3898. * doc/aria2c.1.txt
  3899. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3900. Removed garbage "\" character before http.
  3901. * doc/aria2c.1.txt
  3902. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3903. Documented additional options that can be specified in -i list.
  3904. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3905. and --xml-rpc-passwd. Removed --enable-http-server and
  3906. --http-server-listen-port.
  3907. * doc/aria2c.1.txt
  3908. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3909. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3910. * src/DefaultPeerStorage.cc
  3911. * src/DefaultPeerStorage.h
  3912. * src/PeerStorage.h
  3913. * src/XmlRpcMethodImpl.cc
  3914. * test/MockPeerStorage.h
  3915. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3916. Put a call to Socket::isReadable() in try block.
  3917. * src/HttpServerBodyCommand.cc
  3918. * src/HttpServerCommand.cc
  3919. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3920. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3921. exception , so it is now in try block.
  3922. * src/HttpServerResponseCommand.cc
  3923. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3924. Added "amChoking" and "peerChoking" key in getPeers response.
  3925. * src/XmlRpcMethodImpl.cc
  3926. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3927. Added test case for zero-length filter.
  3928. * test/BitfieldManTest.cc
  3929. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3930. getFiles command now returns file data for finished/stopped
  3931. downloads.
  3932. * src/XmlRpcMethodImpl.cc
  3933. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3934. DownloadResult now has the list of FileEntry. The download
  3935. summary displays the path of first selected file and the number of
  3936. remaining files for multi-file torrent.
  3937. * src/DownloadResult.h
  3938. * src/RequestGroup.cc
  3939. * src/RequestGroupMan.cc
  3940. * test/RequestGroupTest.cc
  3941. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3942. Fixed segmentation fault error when no file is selected in
  3943. multi-file torrent.
  3944. * src/BitfieldMan.cc
  3945. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Escaped <,>,& character in XML-RPC response.
  3947. * src/XmlRpcMethod.cc
  3948. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3949. Throw DlAbortEx instead of FatalException during parsing options
  3950. because we don't want for aria2 to quit when bad option is passed
  3951. via XML-RPC.
  3952. * src/OptionHandlerException.cc
  3953. * src/OptionHandlerException.h
  3954. * src/OptionHandlerImpl.h
  3955. * src/OptionParser.cc
  3956. * src/OptionParser.h
  3957. * src/PStringSegment.cc
  3958. * src/ParameterizedStringParser.cc
  3959. * src/download_helper.cc
  3960. * test/ParameterizedStringParserTest.cc
  3961. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3962. Selecting files are now done in
  3963. DefaultBtContext::setFileFileter().
  3964. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3965. functions are removed because they are no longer used. Creating
  3966. filter in BitfieldMan is done in new funtion
  3967. PieceStorage::setupFileFilter()
  3968. * src/BtContext.cc
  3969. * src/BtContext.h
  3970. * src/DefaultBtContext.cc
  3971. * src/DefaultBtContext.h
  3972. * src/DefaultPieceStorage.cc
  3973. * src/DefaultPieceStorage.h
  3974. * src/DiskAdaptor.cc
  3975. * src/DiskAdaptor.h
  3976. * src/PieceStorage.h
  3977. * src/RequestGroup.cc
  3978. * src/UnknownLengthPieceStorage.h
  3979. * src/XmlRpcMethodImpl.cc
  3980. * test/DefaultBtContextTest.cc
  3981. * test/MockBtContext.h
  3982. * test/MockPieceStorage.h
  3983. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3984. Fixed compile error on Mac OS X
  3985. * src/HttpServer.cc
  3986. * src/XmlRpcMethod.h
  3987. * src/XmlRpcMethodImpl.cc
  3988. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3989. Use std::binary_search instead of std::find
  3990. * src/DefaultPieceStorage.cc
  3991. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3992. Removed unnecessary BDE() call; leave them to implicit conversion.
  3993. * src/XmlRpcMethodImpl.cc
  3994. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3995. Return connections and gid in string
  3996. * src/XmlRpcMethodImpl.cc
  3997. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3998. Renamed addURI as addUri
  3999. * src/XmlRpcMethodFactory.cc
  4000. * src/XmlRpcMethodImpl.cc
  4001. * src/XmlRpcMethodImpl.h
  4002. * test/XmlRpcMethodTest.cc
  4003. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4004. Renamed addTorrentFile as addTorrent
  4005. * src/XmlRpcMethodFactory.cc
  4006. * src/XmlRpcMethodImpl.cc
  4007. * src/XmlRpcMethodImpl.h
  4008. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4009. The information for files, URIs, peers are removed from the
  4010. reponse of TellaActive, TellStatus command because they tend to be
  4011. large. Instead they can be retrieved by the dedicated commands:
  4012. getFiles, getUris and getPeers respectively.
  4013. * src/XmlRpcMethodFactory.cc
  4014. * src/XmlRpcMethodImpl.cc
  4015. * src/XmlRpcMethodImpl.h
  4016. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4017. Removed --max-overall-upload-limit and
  4018. --max-overall-download-limit option from listRequestOptions.
  4019. * src/download_helper.cc
  4020. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4021. Log incoming host in HttpListenCommand.
  4022. * src/HttpListenCommand.cc
  4023. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4024. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  4025. --xml-rpc-passwd option.
  4026. * src/HttpServer.cc
  4027. * src/HttpServer.h
  4028. * src/HttpServerCommand.cc
  4029. * src/OptionHandlerFactory.cc
  4030. * src/prefs.cc
  4031. * src/prefs.h
  4032. * src/usage_text.h
  4033. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4034. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  4035. processing 0 length request.
  4036. * src/HttpServerBodyCommand.cc
  4037. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4038. Removed --enable-http-server and --http-server-listen-port
  4039. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  4040. instead. The original feature for --enable-http-server that
  4041. reports download progress in HTML was officially removed. Persist
  4042. XML-RPC connection if client supports keep-alive.
  4043. * src/DownloadEngineFactory.cc
  4044. * src/HttpServerCommand.cc
  4045. * src/HttpServerResponseCommand.cc
  4046. * src/Makefile.am
  4047. * src/Makefile.in
  4048. * src/OptionHandlerFactory.cc
  4049. * src/RequestGroupMan.cc
  4050. * src/main.cc
  4051. * src/option_processing.cc
  4052. * src/prefs.cc
  4053. * src/prefs.h
  4054. * src/usage_text.h
  4055. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4056. Added "uris" key to the response of tellStatus command. Added
  4057. "connections" key to the response of tellStatus and tellActive
  4058. command.
  4059. * src/XmlRpcMethodImpl.cc
  4060. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4061. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  4062. Added TellStatusXmlRpcMethod. Remove command can now remove
  4063. waiting RequestGroup.
  4064. * src/RequestGroupMan.cc
  4065. * src/RequestGroupMan.h
  4066. * src/XmlRpcMethodFactory.cc
  4067. * src/XmlRpcMethodImpl.cc
  4068. * src/XmlRpcMethodImpl.h
  4069. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4070. Initialized _peerId
  4071. * src/Peer.cc
  4072. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4073. Return fault structure for error. FailXmlRpcMethod is renamed as
  4074. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  4075. in non-torrent download. Return single param value.
  4076. * src/XmlRpcMethod.cc
  4077. * src/XmlRpcMethodFactory.cc
  4078. * src/XmlRpcMethodImpl.cc
  4079. * src/XmlRpcMethodImpl.h
  4080. * test/XmlRpcMethodTest.cc
  4081. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4082. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  4083. command.
  4084. * src/RequestGroup.cc
  4085. * src/RequestGroup.h
  4086. * src/RequestGroupMan.cc
  4087. * src/XmlRpcMethodImpl.cc
  4088. * test/RequestGroupTest.cc
  4089. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4090. Added more options that can be specified in -i list and xml-rpc
  4091. add* command.
  4092. * src/download_helper.h
  4093. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4094. The available options in -i list should be listed in
  4095. listRequestOptions().
  4096. * src/download_helper.cc
  4097. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4098. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  4099. command.
  4100. * src/XmlRpcMethodImpl.cc
  4101. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4102. Now RequestGroup has its own copy of Option object. This will help
  4103. to give custom option for each RequestGroup.
  4104. addTorrentFile command now takes options.
  4105. * src/AbstractCommand.cc
  4106. * src/AbstractCommand.h
  4107. * src/AbstractProxyRequestCommand.cc
  4108. * src/ActivePeerConnectionCommand.cc
  4109. * src/ActivePeerConnectionCommand.h
  4110. * src/AdaptiveURISelector.cc
  4111. * src/BtCheckIntegrityEntry.cc
  4112. * src/BtDependency.cc
  4113. * src/BtDependency.h
  4114. * src/BtFileAllocationEntry.cc
  4115. * src/BtPostDownloadHandler.cc
  4116. * src/CheckIntegrityEntry.cc
  4117. * src/DownloadCommand.cc
  4118. * src/FtpDownloadCommand.cc
  4119. * src/FtpFinishDownloadCommand.cc
  4120. * src/FtpInitiateConnectionCommand.cc
  4121. * src/FtpNegotiationCommand.cc
  4122. * src/HttpInitiateConnectionCommand.cc
  4123. * src/HttpRequestCommand.cc
  4124. * src/HttpResponseCommand.cc
  4125. * src/HttpSkipResponseCommand.cc
  4126. * src/InitiateConnectionCommand.cc
  4127. * src/InitiateConnectionCommandFactory.cc
  4128. * src/InitiatorMSEHandshakeCommand.cc
  4129. * src/InitiatorMSEHandshakeCommand.h
  4130. * src/Metalink2RequestGroup.cc
  4131. * src/Metalink2RequestGroup.h
  4132. * src/MetalinkPostDownloadHandler.cc
  4133. * src/MultiUrlRequestInfo.cc
  4134. * src/MultiUrlRequestInfo.h
  4135. * src/PeerAbstractCommand.cc
  4136. * src/PeerInteractionCommand.cc
  4137. * src/PeerInteractionCommand.h
  4138. * src/PeerReceiveHandshakeCommand.cc
  4139. * src/PeerReceiveHandshakeCommand.h
  4140. * src/RequestGroup.cc
  4141. * src/RequestGroup.h
  4142. * src/TrackerWatcherCommand.cc
  4143. * src/TrackerWatcherCommand.h
  4144. * src/XmlRpcMethod.cc
  4145. * src/XmlRpcMethod.h
  4146. * src/XmlRpcMethodImpl.cc
  4147. * src/download_helper.cc
  4148. * src/download_helper.h
  4149. * src/main.cc
  4150. * test/BtDependencyTest.cc
  4151. * test/BtPostDownloadHandlerTest.cc
  4152. * test/DefaultBtMessageDispatcherTest.cc
  4153. * test/DownloadHandlerFactoryTest.cc
  4154. * test/DownloadHelperTest.cc
  4155. * test/Metalink2RequestGroupTest.cc
  4156. * test/MetalinkPostDownloadHandlerTest.cc
  4157. * test/RequestGroupManTest.cc
  4158. * test/RequestGroupTest.cc
  4159. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4160. Added tellActiveStatus xml-rpc command which reports download
  4161. status of active downloads.
  4162. * src/XmlRpcMethodFactory.cc
  4163. * src/XmlRpcMethodImpl.cc
  4164. * src/XmlRpcMethodImpl.h
  4165. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4166. Added addTorrentFile xml-rpc command which receives uploaded
  4167. torrent file and add download for it.
  4168. * src/RequestGroupMan.cc
  4169. * src/XmlRpcMethodFactory.cc
  4170. * src/XmlRpcMethodImpl.cc
  4171. * src/XmlRpcMethodImpl.h
  4172. * src/download_helper.cc
  4173. * src/download_helper.h
  4174. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4175. Added remove xml-rpc command which removes specified download.
  4176. There is a known issue: the removed unfinished downloads are
  4177. reported ERR when aria2 exits. They should be reported as INPR.
  4178. * src/RequestGroupMan.cc
  4179. * src/RequestGroupMan.h
  4180. * src/XmlRpcMethodFactory.cc
  4181. * src/XmlRpcMethodImpl.cc
  4182. * src/XmlRpcMethodImpl.h
  4183. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4184. If --enable-http-server is enabled, don't stop aria2 when all
  4185. download finished and don't quit when no files to download at
  4186. start up.
  4187. * src/RequestGroupMan.cc
  4188. * src/main.cc
  4189. * src/option_processing.cc
  4190. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4191. Added missing AM_CONDITIONAL
  4192. * configure.ac
  4193. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4194. Added xml-rpc functionality. Currently only addURI commad is
  4195. supported. To enable xml-rpc, run aria2 with
  4196. --enable-http-server. This option name is temporal and will be
  4197. changed. The feature that reports download progress in html format
  4198. is temporarily disabled.
  4199. * src/HttpServer.cc
  4200. * src/HttpServer.h
  4201. * src/HttpServerBodyCommand.cc
  4202. * src/HttpServerBodyCommand.h
  4203. * src/HttpServerCommand.cc
  4204. * src/HttpServerResponseCommand.cc
  4205. * src/Makefile.am
  4206. * src/OptionParser.cc
  4207. * src/OptionParser.h
  4208. * src/RequestGroupMan.cc
  4209. * src/RequestGroupMan.h
  4210. * src/XmlRpcMethod.cc
  4211. * src/XmlRpcMethod.h
  4212. * src/XmlRpcMethodFactory.cc
  4213. * src/XmlRpcMethodFactory.h
  4214. * src/XmlRpcMethodImpl.cc
  4215. * src/XmlRpcMethodImpl.h
  4216. * src/download_helper.cc
  4217. * src/download_helper.h
  4218. * test/Makefile.am
  4219. * test/XmlRpcMethodTest.cc
  4220. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4221. Added xml-rpc request parser. The supported value types are:
  4222. i4/int, string, double, struct, array, base64. Currently only
  4223. libxml2 version is provided.
  4224. * src/Xml2XmlRpcRequestProcessor.cc
  4225. * src/Xml2XmlRpcRequestProcessor.h
  4226. * src/XmlRpcElements.cc
  4227. * src/XmlRpcElements.h
  4228. * src/XmlRpcRequest.h
  4229. * src/XmlRpcRequestParserController.cc
  4230. * src/XmlRpcRequestParserController.h
  4231. * src/XmlRpcRequestParserState.h
  4232. * src/XmlRpcRequestParserStateImpl.cc
  4233. * src/XmlRpcRequestParserStateImpl.h
  4234. * src/XmlRpcRequestParserStateMachine.cc
  4235. * src/XmlRpcRequestParserStateMachine.h
  4236. * src/XmlRpcRequestProcessor.h
  4237. * test/XmlRpcRequestParserControllerTest.cc
  4238. * test/XmlRpcRequestProcessorTest.cc
  4239. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. * Release 1.3.3
  4241. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4242. Fixed compile error since r1202.
  4243. * src/ExpatMetalinkProcessor.cc
  4244. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4245. Updated Ukrainian, Russian and Simplified Chinese
  4246. translations. Thanks to all translators.
  4247. * po/ru.po
  4248. * po/uk.po
  4249. * po/zh_CN.po
  4250. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4251. Pass reference of Option object instead of pointer.
  4252. * src/download_helper.cc
  4253. * src/download_helper.h
  4254. * src/main.cc
  4255. * test/DownloadHelperTest.cc
  4256. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4257. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  4258. from option directly. Instead, get them from RequestGroup.
  4259. * src/ActivePeerConnectionCommand.cc
  4260. * src/ActivePeerConnectionCommand.h
  4261. * src/PeerReceiveHandshakeCommand.cc
  4262. * src/RequestGroup.h
  4263. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4264. Removed unused uploadLimitCheck and uploadLimit from
  4265. PeerAbstractCommand. Removed unused maxDownloadLimit from
  4266. PeerInteractionCommand.
  4267. * src/PeerAbstractCommand.cc
  4268. * src/PeerAbstractCommand.h
  4269. * src/PeerInteractionCommand.cc
  4270. * src/PeerInteractionCommand.h
  4271. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Fixed broken file renaming feature since r1202.
  4273. * src/FtpNegotiationCommand.cc
  4274. * src/FtpNegotiationCommand.h
  4275. * src/HttpResponseCommand.cc
  4276. * src/RequestGroup.cc
  4277. * src/RequestGroup.h
  4278. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4279. Removed unused debug log
  4280. * src/SocketCore.cc
  4281. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4282. Generated configure and Makefile.in using autoconf 2.63 and
  4283. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  4284. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  4285. * configure.ac
  4286. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4287. Moved piece statistics stuff to new PieceStatMan class.
  4288. Refactored PieceSelector interface.
  4289. * src/DefaultPieceStorage.cc
  4290. * src/DefaultPieceStorage.h
  4291. * src/LongestSequencePieceSelector.cc
  4292. * src/LongestSequencePieceSelector.h
  4293. * src/Makefile.am
  4294. * src/PieceSelector.h
  4295. * src/PieceStatMan.cc
  4296. * src/PieceStatMan.h
  4297. * src/RarestPieceSelector.cc
  4298. * src/RarestPieceSelector.h
  4299. * src/RequestGroup.cc
  4300. * test/DefaultPieceStorageTest.cc
  4301. * test/InOrderPieceSelector.h
  4302. * test/Makefile.am
  4303. * test/PieceStatManTest.cc
  4304. * test/RarestPieceSelectorTest.cc
  4305. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4306. Added static member _protocolFamily to SocketCore. By default,
  4307. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  4308. address. Sometime SocketCore::bind() and
  4309. SocketCore::establishConnection() use difference protocl family
  4310. and latter cannot connect to former. To avoid this situation, we
  4311. limit protocol family to AF_INET for unit tests.
  4312. * src/SocketCore.cc
  4313. * src/SocketCore.h
  4314. * test/AllTest.cc
  4315. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4316. Avoid std::bad_alloc for negative bencode string length.
  4317. * src/bencode.cc
  4318. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4319. Supported segmented downloading with chunked transfer encoding and
  4320. content-length.
  4321. * src/DownloadCommand.cc
  4322. * src/HttpResponseCommand.cc
  4323. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4324. Bump up version number to 1.3.3
  4325. * configure.ac
  4326. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4327. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  4328. from 4096 to 65536 (for insanely large ftp login banners)
  4329. * src/FtpConnection.h
  4330. * test/FtpConnectionTest.cc
  4331. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4332. In DefaultBtContext::getActualBasePath(), return first
  4333. FileEntry::getPath() for single file torrent.
  4334. * src/DefaultBtContext.cc
  4335. * test/DefaultBtContextTest.cc
  4336. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Removed directIOAllowed() from BinaryStream, DiskWriter,
  4338. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  4339. Removed _directIOAllowed member from DiskWriter.
  4340. * src/AbstractDiskWriter.cc
  4341. * src/AbstractDiskWriter.h
  4342. * src/AbstractSingleDiskAdaptor.cc
  4343. * src/AbstractSingleDiskAdaptor.h
  4344. * src/BinaryStream.h
  4345. * src/ByteArrayDiskWriter.h
  4346. * src/DefaultPieceStorage.cc
  4347. * src/DiskWriter.h
  4348. * src/MultiDiskAdaptor.cc
  4349. * src/MultiDiskAdaptor.h
  4350. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4351. Now the constructor of AbstractDiskWriter takes filename as an
  4352. argument and filename argument is removed from openFile(),
  4353. initAndOpenFile(), openExistingFile() interface. storeDir member
  4354. and its accessor functions are removed from DiskAdaptor because it
  4355. is not used anymore. size() member function of DefaultDiskWriter,
  4356. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  4357. opening file.
  4358. * src/AbstractDiskWriter.cc
  4359. * src/AbstractDiskWriter.h
  4360. * src/AbstractSingleDiskAdaptor.cc
  4361. * src/AbstractSingleDiskAdaptor.h
  4362. * src/ByteArrayDiskWriter.cc
  4363. * src/ByteArrayDiskWriter.h
  4364. * src/ByteArrayDiskWriterFactory.cc
  4365. * src/ByteArrayDiskWriterFactory.h
  4366. * src/DefaultDiskWriter.cc
  4367. * src/DefaultDiskWriter.h
  4368. * src/DefaultDiskWriterFactory.cc
  4369. * src/DefaultDiskWriterFactory.h
  4370. * src/DefaultPieceStorage.cc
  4371. * src/DirectDiskAdaptor.cc
  4372. * src/DirectDiskAdaptor.h
  4373. * src/DiskAdaptor.h
  4374. * src/DiskWriter.h
  4375. * src/DiskWriterFactory.h
  4376. * src/MessageDigestHelper.cc
  4377. * src/MultiDiskAdaptor.cc
  4378. * src/RequestGroup.cc
  4379. * src/UnknownLengthPieceStorage.cc
  4380. * src/Util.cc
  4381. * test/DefaultDiskWriterTest.cc
  4382. * test/DirectDiskAdaptorTest.cc
  4383. * test/FallocFileAllocationIteratorTest.cc
  4384. * test/MessageDigestHelperTest.cc
  4385. * test/MetalinkProcessorTest.cc
  4386. * test/MultiDiskAdaptorTest.cc
  4387. * test/MultiFileAllocationIteratorTest.cc
  4388. * test/SingleFileAllocationIteratorTest.cc
  4389. * test/UtilTest.cc
  4390. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4391. Fixed the bug that aria2 aborts when --select-file is used. This
  4392. bug was introduced in r1199.
  4393. * src/MultiDiskAdaptor.cc
  4394. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4395. Code cleanup
  4396. * test/MockPieceStorage.cc
  4397. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4398. Fixed the bug that read-only file with wrong file size will cause
  4399. error because it cannot be truncated to the correct size. Now if
  4400. file size is different than the expected one, re-open file in
  4401. writable mode.
  4402. * src/AbstractSingleDiskAdaptor.cc
  4403. * src/AbstractSingleDiskAdaptor.h
  4404. * src/BtCheckIntegrityEntry.cc
  4405. * src/DiskAdaptor.h
  4406. * src/MultiDiskAdaptor.h
  4407. * src/RequestGroup.cc
  4408. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4409. Fixed the bug that with --check-integrity option aria2 reports
  4410. downloaded file size is 0 even if some parts of file is correctly
  4411. downloaded. This bug is reproducible for the download that a file
  4412. includes last piece is missing. This bug doesn't reveal for
  4413. single-torrent with file allocation on.
  4414. * src/IteratableChecksumValidator.cc
  4415. * test/IteratableChecksumValidatorTest.cc
  4416. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4417. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4418. * src/RequestGroupMan.cc
  4419. * src/AdaptiveURISelector.cc
  4420. * src/AdaptiveURISelector.h
  4421. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4422. * Release 1.3.2
  4423. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4424. Updated README
  4425. * README
  4426. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4427. Updated Ukrainian translations. Thanks to Alexander10.
  4428. * po/uk.po
  4429. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4430. Code cleanup
  4431. * src/MetalinkParserStateMachine.cc
  4432. * src/MetalinkParserStateMachine.h
  4433. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4434. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4435. and expat simultaneously, MetalinkProcessor is now not base class
  4436. and it is directly implemented in XML2SAXMetalinkProcessor and
  4437. ExpatMetalinkProcessor.
  4438. * src/ExpatMetalinkProcessor.cc
  4439. * src/ExpatMetalinkProcessor.h
  4440. * src/Makefile.am
  4441. * src/MetalinkHelper.cc
  4442. * src/MetalinkProcessor.h
  4443. * src/MetalinkProcessorFactory.cc: Removed.
  4444. * src/MetalinkProcessorFactory.h: Removed
  4445. * src/XML2SAXMetalinkProcessor.cc
  4446. * src/XML2SAXMetalinkProcessor.h
  4447. * test/MetalinkProcessorTest.cc
  4448. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4449. Bump up version number to 1.3.2
  4450. * configure.ac
  4451. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4452. Added missing file.
  4453. * test/Makefile.am
  4454. * test/url-list-singleFileEndsWithSlash.torrent
  4455. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4456. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4457. request.
  4458. * src/AnnounceList.cc
  4459. * src/AnnounceList.h
  4460. * src/BDE.cc: Added
  4461. * src/BDE.h: Added
  4462. * src/DHTAbstractMessage.cc
  4463. * src/DHTAbstractMessage.h
  4464. * src/DHTAnnouncePeerMessage.cc
  4465. * src/DHTAnnouncePeerMessage.h
  4466. * src/DHTAnnouncePeerReplyMessage.cc
  4467. * src/DHTAnnouncePeerReplyMessage.h
  4468. * src/DHTFindNodeMessage.cc
  4469. * src/DHTFindNodeMessage.h
  4470. * src/DHTFindNodeReplyMessage.cc
  4471. * src/DHTFindNodeReplyMessage.h
  4472. * src/DHTGetPeersMessage.cc
  4473. * src/DHTGetPeersMessage.h
  4474. * src/DHTGetPeersReplyMessage.cc
  4475. * src/DHTGetPeersReplyMessage.h
  4476. * src/DHTMessageFactory.h
  4477. * src/DHTMessageFactoryImpl.cc
  4478. * src/DHTMessageFactoryImpl.h
  4479. * src/DHTMessageReceiver.cc
  4480. * src/DHTMessageTracker.cc
  4481. * src/DHTMessageTracker.h
  4482. * src/DHTPingMessage.cc
  4483. * src/DHTPingMessage.h
  4484. * src/DHTPingReplyMessage.cc
  4485. * src/DHTPingReplyMessage.h
  4486. * src/DHTQueryMessage.cc
  4487. * src/DHTQueryMessage.h
  4488. * src/DHTResponseMessage.cc
  4489. * src/DHTResponseMessage.h
  4490. * src/DefaultBtAnnounce.cc
  4491. * src/DefaultBtContext.cc
  4492. * src/DefaultBtContext.h
  4493. * src/HandshakeExtensionMessage.cc
  4494. * src/Makefile.am
  4495. * src/PeerListProcessor.h
  4496. * src/UTPexExtensionMessage.cc
  4497. * src/bencode.cc
  4498. * src/bencode.h
  4499. * test/AnnounceListTest.cc
  4500. * test/BDETest.cc: Added
  4501. * test/BencodeTest.cc
  4502. * test/DHTAnnouncePeerMessageTest.cc
  4503. * test/DHTAnnouncePeerReplyMessageTest.cc
  4504. * test/DHTFindNodeMessageTest.cc
  4505. * test/DHTFindNodeReplyMessageTest.cc
  4506. * test/DHTGetPeersMessageTest.cc
  4507. * test/DHTGetPeersReplyMessageTest.cc
  4508. * test/DHTMessageFactoryImplTest.cc
  4509. * test/DHTMessageTrackerTest.cc
  4510. * test/DHTPingMessageTest.cc
  4511. * test/DHTPingReplyMessageTest.cc
  4512. * test/Makefile.am
  4513. * test/MockDHTMessageFactory.h
  4514. * test/PeerListProcessorTest.cc
  4515. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4516. Use url-list (web-seeding) only for single-file torrent. This is
  4517. basically the same behavior with Metalink file with torrent and
  4518. URIs.
  4519. * src/RequestGroup.cc
  4520. * src/DefaultBtContext.cc
  4521. * test/DefaultBtContextTest.cc
  4522. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4523. Rewritten expr
  4524. * src/array_fun.h
  4525. * test/array_funTest.cc
  4526. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4527. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4528. * src/DefaultBtMessageDispatcher.cc
  4529. * src/a2algo.h
  4530. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. Removed ExtendedMessagingAware. Instead of using inheritance,
  4532. added ExtensionMessageRegistry and it is passed to
  4533. DefaultExtensionMessageFactory.
  4534. * src/DefaultBtInteractive.cc
  4535. * src/DefaultBtInteractive.h
  4536. * src/DefaultExtensionMessageFactory.cc
  4537. * src/DefaultExtensionMessageFactory.h
  4538. * src/ExtendedMessagingAware.h: Removed.
  4539. * src/ExtensionMessageFactory.h
  4540. * src/ExtensionMessageRegistry.h: Added.
  4541. * src/Makefile.am
  4542. * src/PeerInteractionCommand.cc
  4543. * test/DefaultExtensionMessageFactoryTest.cc
  4544. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4545. Fixed typo in log messages
  4546. * src/MSEHandshake.cc
  4547. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Fixed the bug that prevents torrent download from finishing. The
  4549. bug doesn't reveal for all torrents. The torrents affected this
  4550. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4551. of pieces.
  4552. * src/bitfield.h
  4553. * test/bitfieldTest.cc
  4554. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4555. Code cleanup
  4556. * src/PeerListProcessor.h
  4557. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4558. Removed RequestGroupAware
  4559. * src/AbstractCommand.cc
  4560. * src/AbstractCommand.h
  4561. * src/ActivePeerConnectionCommand.cc
  4562. * src/ActivePeerConnectionCommand.h
  4563. * src/DHTGetPeersCommand.cc
  4564. * src/DHTGetPeersCommand.h
  4565. * src/InitiatorMSEHandshakeCommand.cc
  4566. * src/InitiatorMSEHandshakeCommand.h
  4567. * src/Makefile.am
  4568. * src/PeerInitiateConnectionCommand.cc
  4569. * src/PeerInitiateConnectionCommand.h
  4570. * src/PeerInteractionCommand.cc
  4571. * src/PeerInteractionCommand.h
  4572. * src/RealtimeCommand.cc
  4573. * src/RealtimeCommand.h
  4574. * src/RequestGroupAware.cc: Removed
  4575. * src/RequestGroupAware.h: Removed
  4576. * src/SeedCheckCommand.cc
  4577. * src/SeedCheckCommand.h
  4578. * src/SleepCommand.cc
  4579. * src/TrackerWatcherCommand.cc
  4580. * src/TrackerWatcherCommand.h
  4581. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4582. Rewritten PeerListProcessor
  4583. * src/PeerListProcessor.h
  4584. * src/CompactPeerListProcessor.h: Removed
  4585. * src/CompactPeerListProcessor.cc: Removed
  4586. * src/DelegatingPeerListProcessor.cc: Removed.
  4587. * src/DefaultBtAnnounce.cc
  4588. * src/Makefile.am
  4589. * src/UTPexExtensionMessage.cc
  4590. * src/DefaultPeerListProcessor.h: Removed.
  4591. * src/DefaultPeerListProcessor.cc: Removed.
  4592. * src/DelegatingPeerListProcessor.h: Removed.
  4593. * test/Makefile.am
  4594. * test/PeerListProcessorTest.cc
  4595. * test/DefaultPeerListProcessorTest.cc: Removed.
  4596. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4597. Rewritten RequestGroupMan::calculateStat()
  4598. * src/RequestGroupMan.cc
  4599. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4600. Removed unnecessary virtual destructor for Request class.
  4601. * src/Request.cc
  4602. * src/Request.h
  4603. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4604. Avoid dynamic_pointer_cast.
  4605. * src/DHTGetPeersCommand.cc
  4606. * src/DHTGetPeersCommand.h
  4607. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4608. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4609. BtEvent.
  4610. * src/AbstractBtEventListener.h: Removed.
  4611. * src/AbstractBtMessage.cc
  4612. * src/AbstractBtMessage.h
  4613. * src/BtAbortOutstandingRequestEvent.h
  4614. * src/BtCancelSendingPieceEvent.h
  4615. * src/BtChokedEvent.h: Removed.
  4616. * src/BtChokingEvent.h
  4617. * src/BtEvent.h: Removed
  4618. * src/BtEventListener.h: Removed.
  4619. * src/BtMessage.h
  4620. * src/BtPieceMessage.cc
  4621. * src/BtPieceMessage.h
  4622. * src/BtRequestMessage.cc
  4623. * src/BtRequestMessage.h
  4624. * src/DefaultBtMessageDispatcher.cc
  4625. * src/Makefile.am
  4626. * src/a2functional.h
  4627. * test/BtPieceMessageTest.cc
  4628. * test/BtRequestMessageTest.cc
  4629. * test/DefaultBtMessageDispatcherTest.cc
  4630. * test/MockBtMessage.h
  4631. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4632. Code cleanup
  4633. * src/RequestGroupMan.cc
  4634. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4635. Code cleanup
  4636. * src/DownloadCommand.cc
  4637. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4638. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4639. byte.
  4640. * src/DownloadCommand.cc
  4641. * src/bitfield.h
  4642. * test/bitfieldTest.cc
  4643. Fixed the bug that causes infinite loop if broken web server
  4644. returns chunked response without last "0" chunk-size marker and
  4645. closes connection.
  4646. * src/DownloadCommand.cc
  4647. Instantiate properly configured HttpDownloadCommand for
  4648. non-resumable downlaods.
  4649. * src/HttpResponseCommand.cc
  4650. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4651. Rewritten array operation functions.
  4652. * src/BitfieldMan.cc
  4653. * src/array_fun.h
  4654. * test/array_funTest.cc
  4655. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4656. Removed unused variable 'query'
  4657. * src/Request.cc
  4658. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4659. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4660. accidentally set to false in r1162.
  4661. * configure.ac
  4662. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4663. Code cleanup
  4664. * src/BNode.cc
  4665. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4666. Increase prefixLength for the bucket which doesn't own local node
  4667. ID when splitting bucket.
  4668. * src/DHTBucket.cc
  4669. * test/DHTBucketTest.cc
  4670. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4671. * Release 1.3.1
  4672. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4673. Bump up version number to 1.3.1
  4674. * configure.ac
  4675. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4676. Removed unused variable checkPoint. Also removed include directive
  4677. for TimeA2.h.
  4678. * src/SeedCheckCommand.h
  4679. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4680. Fixed the bug that upload limit exceeds the value specified in
  4681. --seed-ratio option depending on the timing of the execution of
  4682. SeedCheckCommand.
  4683. * src/SeedCheckCommand.cc
  4684. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4685. Fixed the bug that removed peer's session upload/download length
  4686. are counted twice in _cachedTransferStat before it is
  4687. re-calculated. This affected the calculation of shara ratio,
  4688. resulting aria2 wrongly determines that specified share ratio is
  4689. reached. Also fixed the typo in calculateStatFor function name.
  4690. * src/BtSetup.cc
  4691. * src/DefaultPeerStorage.cc
  4692. * src/ShareRatioSeedCriteria.h
  4693. * test/ShareRatioSeedCriteriaTest.cc
  4694. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4695. * Release 1.3.0
  4696. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4697. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4698. Nynorsk translations. Thanks to all translators.
  4699. * po/es.po
  4700. * po/ja.po
  4701. * po/nn.po
  4702. * po/ru.po
  4703. * po/uk.po
  4704. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4705. Rewritten isInRange()
  4706. * src/DHTBucket.cc
  4707. * test/DHTBucketTest.cc
  4708. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4709. Fixed typo
  4710. * doc/aria2c.1.txt
  4711. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4712. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4713. malloc/realloc is not used.
  4714. * src/configure.ac
  4715. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4716. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4717. char* bitfield instead of stl container for efficiency.
  4718. PieceSelector::select now takes this
  4719. bitfield. RarestPieceSelector::select now also performs
  4720. efficiently for this change. bitfield namespace is introduced and
  4721. it has several helper functions to handle basic bitfield
  4722. operations such as test, count set bits, etc.
  4723. * src/BitfieldMan.cc
  4724. * src/BitfieldMan.h
  4725. * src/DefaultBtRequestFactory.cc
  4726. * src/DefaultPieceStorage.cc
  4727. * src/DefaultPieceStorage.h
  4728. * src/LongestSequencePieceSelector.cc
  4729. * src/LongestSequencePieceSelector.h
  4730. * src/Makefile.am
  4731. * src/Piece.cc
  4732. * src/Piece.h
  4733. * src/PieceSelector.h
  4734. * src/RarestPieceSelector.cc
  4735. * src/RarestPieceSelector.h
  4736. * src/Util.cc
  4737. * src/Util.h
  4738. * src/bitfield.h
  4739. * test/BitfieldManTest.cc
  4740. * test/LongestSequencePieceSelectorTest.cc
  4741. * test/Makefile.am
  4742. * test/RarestPieceSelectorTest.cc
  4743. * test/UtilTest.cc
  4744. * test/bitfieldTest.cc
  4745. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4746. Made accepted socket non-block.
  4747. * src/FtpNegotiationCommand.cc
  4748. * src/HttpListenCommand.cc
  4749. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4750. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4751. * src/AbstractSingleDiskAdaptor.cc
  4752. * src/DefaultPieceStorage.cc
  4753. * src/DiskAdaptor.h
  4754. * src/DiskAdaptor.h
  4755. * src/MultiFileAllocationIterator.cc
  4756. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4757. Run
  4758. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4759. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4760. it doesn't need to be called every time when
  4761. DefaultBtInteractive::doInteractionProcessing() is called.
  4762. * src/DefaultBtInteractive.cc
  4763. * src/DefaultBtInteractive.h
  4764. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4765. Documented 'falloc' in man page.
  4766. * doc/aria2c.1.txt
  4767. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4768. Updated doc
  4769. * src/usage_text.h
  4770. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4771. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4772. allocation mode uses posix_fallocate() system call to allocate
  4773. file on disk. If you are using newer file systems such as ext4
  4774. (with extents support), btrfs or xfs, 'falloc' is your best
  4775. choice. It allocates large(few GiB) files almost instantly. Don't
  4776. use 'falloc' with legacy file systems such as ext3 because it
  4777. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4778. until allocation finishes. 'falloc' may not be available if your
  4779. system doesn't have posix_fallocate() system call.
  4780. * configure.ac
  4781. * src/AbstractDiskWriter.cc
  4782. * src/AbstractDiskWriter.h
  4783. * src/AbstractSingleDiskAdaptor.cc
  4784. * src/BinaryStream.h
  4785. * src/BtCheckIntegrityEntry.cc
  4786. * src/ByteArrayDiskWriter.h
  4787. * src/CheckIntegrityEntry.cc
  4788. * src/CheckIntegrityEntry.h
  4789. * src/DefaultPieceStorage.cc
  4790. * src/DiskAdaptor.cc
  4791. * src/DiskAdaptor.h
  4792. * src/DiskWriter.h
  4793. * src/FallocFileAllocationIterator.cc
  4794. * src/FallocFileAllocationIterator.h
  4795. * src/FileAllocationEntry.cc
  4796. * src/FileAllocationEntry.h
  4797. * src/Makefile.am
  4798. * src/MultiFileAllocationIterator.cc
  4799. * src/MultiFileAllocationIterator.h
  4800. * src/OptionHandlerFactory.cc
  4801. * src/RequestGroup.cc
  4802. * src/StreamCheckIntegrityEntry.cc
  4803. * src/prefs.cc
  4804. * src/prefs.h
  4805. * src/usage_text.h
  4806. * test/FallocFileAllocationIteratorTest.cc
  4807. * test/Makefile.am
  4808. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4809. Removed duplicate enableDirectIO() call.
  4810. * src/MultiFileAllocationIterator.cc
  4811. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4812. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4813. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4814. cost of std::rotate().
  4815. * src/RarestPieceSelector.cc
  4816. * src/RarestPieceSelector.h
  4817. * test/RarestPieceSelectorTest.cc
  4818. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4819. Updated usage doc for --bt-tracker-interval option.
  4820. * src/usage_text.h
  4821. * doc/aria2c.1.txt
  4822. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4823. Documented --bt-tracker-interval option in man page.
  4824. * doc/aria2c.1.txt
  4825. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4826. Added an option to specify the interval between tracker requests.
  4827. If non-zero value is specified, aria2 uses it and ignores the
  4828. interval value in the response of tracker. If zero is specified,
  4829. aria2 determines the inteval value based on the tarcker response
  4830. and download progress.
  4831. * src/DefaultBtAnnounce.cc
  4832. * src/DefaultBtAnnounce.h
  4833. * src/OptionHandlerFactory.cc
  4834. * src/RequestGroup.cc
  4835. * src/prefs.cc
  4836. * src/prefs.h
  4837. * src/usage_text.h
  4838. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4839. Added operator+=, operator-=, operator-
  4840. * src/TransferStat.cc
  4841. * src/TransferStat.h
  4842. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4843. Refactored RarestPieceSelector to reduce CPU load, especially for
  4844. addPieceStats.
  4845. * src/RarestPieceSelector.cc
  4846. * src/RarestPieceSelector.h
  4847. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4848. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4849. getAllMissingBlockIndexes to reduce a call to
  4850. array_function_base::operator[].
  4851. * src/BitfieldMan.cc
  4852. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4853. Cached TransferStat/download speed to avoid to sum them up in each
  4854. call.
  4855. * src/DefaultPeerStorage.cc
  4856. * src/DefaultPeerStorage.h
  4857. * src/SegmentMan.cc
  4858. * src/SegmentMan.h
  4859. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4860. Typedefed cuid_t as int32_t in Command.h
  4861. * src/CUIDCounter.h
  4862. * src/Command.cc
  4863. * src/Command.h
  4864. * src/DownloadEngine.cc
  4865. * src/DownloadEngine.h
  4866. * src/PeerStat.h
  4867. * src/SegmentMan.cc
  4868. * src/SegmentMan.h
  4869. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4870. Reduced the number of calls to PeerStorage::calculateStat() and
  4871. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4872. transfer rate.
  4873. * src/DefaultBtInteractive.cc
  4874. * src/DefaultBtMessageDispatcher.cc
  4875. * src/DefaultPeerStorage.cc
  4876. * src/DefaultPeerStorage.h
  4877. * src/DownloadCommand.cc
  4878. * src/DownloadEngine.cc
  4879. * src/PeerStorage.h
  4880. * src/SegmentMan.cc
  4881. * src/SegmentMan.h
  4882. * test/MockPeerStorage.h
  4883. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4884. Prepended _dir+"/" after joining path elements in torrent file.
  4885. * src/DefaultBtContext.cc
  4886. * test/DefaultBtContextTest.cc
  4887. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4888. Added missing IndexBtMessageValidator.h
  4889. * src/Makefile.am
  4890. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4891. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4892. Chinese translations. Thank you for contributing our project.
  4893. * po/id.po
  4894. * po/it.po
  4895. * po/ru.po
  4896. * po/uk.po
  4897. * po/zh_CN.po
  4898. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4899. Updated README
  4900. * README
  4901. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4902. Bump up version number to 1.3.0
  4903. * configure.ac
  4904. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4905. Updated doc
  4906. * src/DefaultBtContext.h
  4907. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4908. Slice/joinPath for name of single torrent.
  4909. * src/DefaultBtContext.cc
  4910. * test/DefaultBtContextTest.cc
  4911. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4912. Updated man page: Documented --dry-run and --index-out
  4913. options. Changed the default value of --uri-selector and
  4914. --http-auth-challenge options. Removed --direct-file-mapping
  4915. option. Added example for --index-out
  4916. * doc/aria2c.1.txt
  4917. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4918. Updated TEXT_DRY_RUN
  4919. * src/usage_text.h
  4920. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4921. Changed the default value of --uri-selector option from 'inorder'
  4922. to 'feedback'
  4923. * src/OptionHandlerFactory.cc
  4924. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4925. Included current URI in exception message.
  4926. * src/AbstractCommand.cc
  4927. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4928. Renamed ServerStatURISelector as FeedbackURISelector.
  4929. * src/FeedbackURISelector.cc
  4930. * src/FeedbackURISelector.h
  4931. * src/Makefile.am
  4932. * src/RequestGroupMan.cc
  4933. * src/ServerStatURISelector.cc
  4934. * src/ServerStatURISelector.h
  4935. * test/FeedbackURISelectorTest.cc
  4936. * test/Makefile.am
  4937. * test/ServerStatURISelectorTest.cc
  4938. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4939. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4940. all URIs are tested and their timeout is not reached.
  4941. * src/AdaptiveURISelector.cc
  4942. * src/AdaptiveURISelector.h
  4943. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4944. Changed the default value of --http-auth-challenge option to false.
  4945. * src/OptionHandlerFactory.cc
  4946. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4947. Reuse URIs when all unused URIs run out.
  4948. * src/OptionHandlerFactory.cc
  4949. * src/RequestGroup.cc
  4950. * src/prefs.cc
  4951. * src/prefs.h
  4952. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4953. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4954. and BtRejectMessage are derived from RangeBtMessage class.
  4955. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4956. derived from IndexBtMessage class. BtChokeMessage,
  4957. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4958. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4959. ZeroBtMessage class.
  4960. * src/AbstractBtMessage.cc
  4961. * src/AbstractBtMessage.h
  4962. * src/BtAllowedFastMessage.cc
  4963. * src/BtAllowedFastMessage.h
  4964. * src/BtAllowedFastMessageValidator.h: Removed
  4965. * src/BtBitfieldMessage.cc
  4966. * src/BtBitfieldMessage.h
  4967. * src/BtCancelMessage.cc
  4968. * src/BtCancelMessage.h
  4969. * src/BtCancelMessageValidator.h: Removed
  4970. * src/BtChokeMessage.cc
  4971. * src/BtChokeMessage.h
  4972. * src/BtExtendedMessage.cc
  4973. * src/BtExtendedMessage.h
  4974. * src/BtHandshakeMessage.cc
  4975. * src/BtHandshakeMessage.h
  4976. * src/BtHaveAllMessage.cc
  4977. * src/BtHaveAllMessage.h
  4978. * src/BtHaveMessage.cc
  4979. * src/BtHaveMessage.h
  4980. * src/BtHaveMessageValidator.h: Removed
  4981. * src/BtHaveNoneMessage.cc
  4982. * src/BtHaveNoneMessage.h
  4983. * src/BtInterestedMessage.cc
  4984. * src/BtInterestedMessage.h
  4985. * src/BtKeepAliveMessage.cc
  4986. * src/BtKeepAliveMessage.h
  4987. * src/BtNotInterestedMessage.cc
  4988. * src/BtNotInterestedMessage.h
  4989. * src/BtPieceMessage.cc
  4990. * src/BtPieceMessage.h
  4991. * src/BtPortMessage.cc
  4992. * src/BtPortMessage.h
  4993. * src/BtRejectMessage.cc
  4994. * src/BtRejectMessage.h
  4995. * src/BtRejectMessageValidator.h: Removed
  4996. * src/BtRequestMessage.cc
  4997. * src/BtRequestMessage.h
  4998. * src/BtRequestMessageValidator.h: Removed
  4999. * src/BtSuggestPieceMessage.cc
  5000. * src/BtSuggestPieceMessage.h
  5001. * src/BtSuggestPieceMessageValidator.h: Removed
  5002. * src/BtUnchokeMessage.cc
  5003. * src/BtUnchokeMessage.h
  5004. * src/DefaultBtMessageFactory.cc
  5005. * src/IndexBtMessage.cc
  5006. * src/IndexBtMessage.h
  5007. * src/IndexBtMessageValidator.h
  5008. * src/Makefile.am
  5009. * src/PeerMessageUtil.cc
  5010. * src/PeerMessageUtil.h
  5011. * src/RangeBtMessage.cc
  5012. * src/RangeBtMessage.h
  5013. * src/RangeBtMessageValidator.h
  5014. * src/SimpleBtMessage.cc
  5015. * src/SimpleBtMessage.h
  5016. * src/ZeroBtMessage.cc
  5017. * src/ZeroBtMessage.h
  5018. * test/BtRequestMessageTest.cc
  5019. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5020. Reverted usage_text.h to r1093 to avoid to lose translated
  5021. messages.
  5022. * src/usage_text.h
  5023. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5024. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  5025. declared as non-const previously is now const and defined in class
  5026. definition.
  5027. * src/AbstractBtMessage.cc
  5028. * src/AbstractBtMessage.h
  5029. * src/BtAllowedFastMessage.cc
  5030. * src/BtAllowedFastMessage.h
  5031. * src/BtBitfieldMessage.h
  5032. * src/BtCancelMessage.cc
  5033. * src/BtCancelMessage.h
  5034. * src/BtChokeMessage.cc
  5035. * src/BtChokeMessage.h
  5036. * src/BtExtendedMessage.cc
  5037. * src/BtExtendedMessage.h
  5038. * src/BtHandshakeMessage.cc
  5039. * src/BtHandshakeMessage.h
  5040. * src/BtHaveAllMessage.cc
  5041. * src/BtHaveAllMessage.h
  5042. * src/BtHaveMessage.cc
  5043. * src/BtHaveMessage.h
  5044. * src/BtHaveNoneMessage.cc
  5045. * src/BtHaveNoneMessage.h
  5046. * src/BtInterestedMessage.cc
  5047. * src/BtInterestedMessage.h
  5048. * src/BtKeepAliveMessage.cc
  5049. * src/BtKeepAliveMessage.h
  5050. * src/BtMessage.h
  5051. * src/BtNotInterestedMessage.cc
  5052. * src/BtNotInterestedMessage.h
  5053. * src/BtPieceMessage.h
  5054. * src/BtPortMessage.cc
  5055. * src/BtPortMessage.h
  5056. * src/BtRejectMessage.cc
  5057. * src/BtRejectMessage.h
  5058. * src/BtRequestMessage.cc
  5059. * src/BtRequestMessage.h
  5060. * src/BtSuggestPieceMessage.cc
  5061. * src/BtSuggestPieceMessage.h
  5062. * src/BtUnchokeMessage.cc
  5063. * src/BtUnchokeMessage.h
  5064. * src/SimpleBtMessage.cc
  5065. * src/SimpleBtMessage.h
  5066. * test/MockBtMessage.h
  5067. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5068. Use FileEntry::exists()
  5069. * src/MultiDiskAdaptor.cc
  5070. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5071. Added exists()
  5072. * src/FileEntry.cc
  5073. * src/FileEntry.h
  5074. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5075. Added missing prefix dir.
  5076. * src/download_helper.cc
  5077. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5078. Removed --direct-file-mapping option and CopyDiskAdaptor.
  5079. * src/CopyDiskAdaptor.cc: Removed
  5080. * src/CopyDiskAdaptor.h: Removed
  5081. * src/DefaultPieceStorage.cc
  5082. * src/Makefile.am
  5083. * src/OptionHandlerFactory.cc
  5084. * src/prefs.cc
  5085. * src/prefs.h
  5086. * src/usage_text.h
  5087. * test/CopyDiskAdaptorTest.cc: Removed
  5088. * test/Makefile.am
  5089. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5090. Rewritten isSameFileBeingDownloaded()
  5091. * src/RequestGroupMan.cc
  5092. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5093. Removed getName() from DownloadContext. getName() is declared in
  5094. BtContext.
  5095. * src/BtContext.h
  5096. * src/DownloadContext.h
  5097. * src/SingleFileDownloadContext.cc
  5098. * src/SingleFileDownloadContext.h
  5099. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  5100. in AbstractSingleDiskAdaptor.
  5101. * src/AbstractSingleDiskAdaptor.h
  5102. * src/DiskAdaptor.h
  5103. * src/MultiDiskAdaptor.h
  5104. * src/RequestGroup.cc
  5105. Removed setTopDir() and getTopDir() and getTopDirPath() from
  5106. MultiDiskAdaptor.
  5107. * src/DefaultPieceStorage.cc
  5108. * src/MultiDiskAdaptor.cc
  5109. * src/MultiDiskAdaptor.h
  5110. * test/MultiDiskAdaptorTest.cc
  5111. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5112. FileEntry::getPath() contains store(top level) directory to
  5113. simplify path handling operation. In the previous implementation,
  5114. store directory is concatenated to FileEntry::getPath() in
  5115. DownloadContext.
  5116. * src/BtDependency.cc
  5117. * src/BtPostDownloadHandler.cc
  5118. * src/CopyDiskAdaptor.cc
  5119. * src/DefaultBtContext.cc
  5120. * src/DirectDiskAdaptor.cc
  5121. * src/FileEntry.cc
  5122. * src/FileEntry.h
  5123. * src/FtpNegotiationCommand.cc
  5124. * src/HttpResponse.cc
  5125. * src/HttpResponseCommand.cc
  5126. * src/Metalink2RequestGroup.cc
  5127. * src/MultiDiskAdaptor.cc
  5128. * src/MultiDiskAdaptor.h
  5129. * src/MultiFileAllocationIterator.cc
  5130. * src/RequestGroup.cc
  5131. * src/SingleFileDownloadContext.cc
  5132. * src/SingleFileDownloadContext.h
  5133. * src/download_helper.cc
  5134. * test/BtDependencyTest.cc
  5135. * test/CopyDiskAdaptorTest.cc
  5136. * test/DefaultBtContextTest.cc
  5137. * test/DefaultBtProgressInfoFileTest.cc
  5138. * test/DirectDiskAdaptorTest.cc
  5139. * test/DownloadHelperTest.cc
  5140. * test/FileEntryTest.cc
  5141. * test/MultiDiskAdaptorTest.cc
  5142. * test/MultiFileAllocationIteratorTest.cc
  5143. * test/RequestGroupTest.cc
  5144. * test/SingleFileDownloadContextTest.cc
  5145. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5146. Fixed compiler warning
  5147. * src/download_helper.cc
  5148. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5149. Throw exception if same infohash torrent is now downloading.
  5150. * src/RequestGroup.cc
  5151. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5152. Added --dry-run option. In this mode, aria2 just checks whether
  5153. the remote file is available and doesn't download data. This
  5154. option has effect on HTTP/FTP downloads and BitTorrent downloads
  5155. are canceled in this mode.
  5156. * src/FtpNegotiationCommand.cc
  5157. * src/HttpResponseCommand.cc
  5158. * src/HttpResponseCommand.h
  5159. * src/OptionHandlerFactory.cc
  5160. * src/RequestGroup.cc
  5161. * src/RequestGroupMan.cc
  5162. * src/prefs.cc
  5163. * src/prefs.h
  5164. * src/usage_text.h
  5165. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5166. Fixed compiler waring
  5167. * test/UriListParserTest.cc
  5168. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5169. Parse options in -i list using OptionParser.
  5170. * src/UriListParser.cc
  5171. * src/UriListParser.h
  5172. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5173. Don't reset URI in retry to avoid additional round trips because
  5174. of redirects.
  5175. * src/AbstractCommand.cc
  5176. * src/OptionHandlerFactory.cc
  5177. * src/prefs.cc
  5178. * src/prefs.h
  5179. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5180. Declared hide() in OptionHandler.
  5181. * src/NameMatchOptionHandler.h
  5182. * src/OptionHandler.h
  5183. * src/OptionHandlerImpl.h
  5184. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5185. Updated doc
  5186. * src/Peer.h
  5187. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5188. Added log message in setStatusInternal()
  5189. * src/ServerStat.cc
  5190. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5191. Call ServerStat::setError() in AbstractCommand::onAbort() to
  5192. effectively exclude failed server.
  5193. * src/AbstractCommand.cc
  5194. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5195. Added --index-out option to specify each file path for torrent.
  5196. Here index shown in --show-files option is used to specify which
  5197. file path should be altered. For example, to change the file path
  5198. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  5199. option multiple times: --index-out=1=aria2.tar.bz2
  5200. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  5201. available. This option can be specified in -i list.
  5202. * src/DefaultBtContext.cc
  5203. * src/DefaultBtContext.h
  5204. * src/MultiDiskAdaptor.cc
  5205. * src/MultiDiskAdaptor.h
  5206. * src/MultiFileAllocationIterator.cc
  5207. * src/OptionHandlerFactory.cc
  5208. * src/OptionHandlerImpl.h
  5209. * src/Util.cc
  5210. * src/Util.h
  5211. * src/download_helper.cc
  5212. * src/prefs.cc
  5213. * src/prefs.h
  5214. * src/usage_text.h
  5215. * test/DefaultBtContextTest.cc
  5216. * test/MultiDiskAdaptorTest.cc
  5217. * test/MultiFileAllocationIteratorTest.cc
  5218. * test/UtilTest.cc
  5219. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5220. Use Util::pathJoin()
  5221. * src/MetalinkParserController.cc
  5222. * test/test.xml
  5223. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5224. Use Util::pathJoin()
  5225. * src/DefaultBtContext.cc
  5226. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5227. Added Util::pathJoin()
  5228. * src/Util.h
  5229. * test/UtilTest.cc
  5230. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5231. Applied basename function to remove directory element in
  5232. content-disposition value.
  5233. Return empty string if content-disposition value is ".." or ".".
  5234. * src/Util.cc
  5235. * test/UtilTest.cc
  5236. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5237. Added --max-overall-download-limit in man page.
  5238. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  5239. * doc/aria2c.1.txt
  5240. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5241. Added --max-overall-download-limit option. Now --max-upload-limit
  5242. option is not ignored when --max-overall-upload-limit option has
  5243. non-zero value. aria2 checks download(upload) speed in the order:
  5244. first checks overall speed limit and if it is not exceeded, then
  5245. checks speed limit per download. Thus you can specify both
  5246. value. For example, set --max-overall-download-limit=1M and
  5247. --max-download-limit=500K to prevent from one download from eating
  5248. all overall speed limit.
  5249. * src/DefaultBtInteractive.cc
  5250. * src/DefaultBtInteractive.h
  5251. * src/DefaultBtMessageDispatcher.cc
  5252. * src/DefaultBtMessageDispatcher.h
  5253. * src/DownloadCommand.cc
  5254. * src/DownloadCommand.h
  5255. * src/FtpNegotiationCommand.cc
  5256. * src/HttpResponseCommand.cc
  5257. * src/OptionHandlerFactory.cc
  5258. * src/PeerInteractionCommand.cc
  5259. * src/RequestGroup.cc
  5260. * src/RequestGroup.h
  5261. * src/RequestGroupMan.cc
  5262. * src/RequestGroupMan.h
  5263. * src/prefs.cc
  5264. * src/prefs.h
  5265. * src/usage_text.h
  5266. * test/DefaultBtMessageDispatcherTest.cc
  5267. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5268. Documented select-file option in Input File section.
  5269. Documented --http-auth-challenge option.
  5270. * doc/aria2c.1.txt
  5271. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5272. Now select-file can be specified in the uri list(-i list).
  5273. * src/BtContext.cc
  5274. * src/BtContext.h
  5275. * src/RequestGroup.cc
  5276. * src/Sequence.h
  5277. * src/download_helper.cc
  5278. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5279. Made the upper value of --max-concurrent-downloads options unlimited.
  5280. * src/OptionHandlerFactory.cc
  5281. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5282. Fixed the bug that disk writer is not created even if it shares
  5283. same piece with the preceding file if the length of previous file
  5284. is 0.
  5285. * src/MultiDiskAdaptor.cc
  5286. * test/MultiDiskAdaptorTest.cc
  5287. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5288. In BitTorrent, Open files in read-only mode for hash check. After
  5289. that, re-open file in read/write mode only when the download is
  5290. not finished.
  5291. * src/AbstractDiskWriter.cc
  5292. * src/AbstractDiskWriter.h
  5293. * src/AbstractSingleDiskAdaptor.cc
  5294. * src/AbstractSingleDiskAdaptor.h
  5295. * src/BtCheckIntegrityEntry.cc
  5296. * src/DiskAdaptor.h
  5297. * src/DiskWriter.h
  5298. * src/MultiDiskAdaptor.cc
  5299. * src/MultiDiskAdaptor.h
  5300. * src/RequestGroup.cc
  5301. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5302. Added --http-auth-challenge option. If it is set to true(by
  5303. default), aria2 sends HTTP authorization header only when it is
  5304. requested by the server. If false is set, then authorization
  5305. header is always sent to the server. This is useful for servers
  5306. that don't respond 401 code when authentication is required.
  5307. There is an exception: if username and password are embedded in
  5308. URI, authorization header is always sent to the server regardless
  5309. of this option.
  5310. * src/AuthConfigFactory.cc
  5311. * src/HttpSkipResponseCommand.cc
  5312. * src/OptionHandlerFactory.cc
  5313. * src/prefs.cc
  5314. * src/prefs.h
  5315. * src/usage_text.h
  5316. * test/AuthConfigFactoryTest.cc
  5317. * test/HttpRequestTest.cc
  5318. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5319. * Release 1.2.0
  5320. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5321. Updated Spanish, Ukrainian, Russian and Japanese translations.
  5322. Thanks to all translators.
  5323. * po/es.po
  5324. * po/ja.po
  5325. * po/ru.po
  5326. * po/uk.po
  5327. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5328. Call deleteSocketForReadCheck() before socket is closed.
  5329. * src/HttpListenCommand.cc
  5330. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5331. Defined virtual destructor for BObject.
  5332. * src/bencode.h
  5333. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5334. Rewritten BDE to make it efficient.
  5335. * src/bencode.cc
  5336. * src/bencode.h
  5337. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5338. Removed function throw list.
  5339. * src/bencode.cc
  5340. * src/bencode.h
  5341. * test/BencodeTest.cc
  5342. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5343. Enclosed all URLs in double quotes in command-line examples.
  5344. * doc/aria2c.1.txt
  5345. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5346. Updated reference/see also section.
  5347. * README
  5348. * doc/aria2c.1.txt
  5349. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5350. Reorganized man page based on man man-pages.
  5351. * doc/aria2c.1.txt
  5352. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5353. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  5354. because same documents are available in man page. Added
  5355. References section.
  5356. * README
  5357. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5358. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  5359. PERFORMANCE PROFILE section.
  5360. * doc/aria2c.1.txt
  5361. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5362. Rewritten the section for configuration file.
  5363. * README
  5364. * doc/aria2c.1.txt
  5365. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5366. Fixed the segmentation fault during execution of choking algorithm
  5367. in leecher state because of broken compare operator
  5368. implementation.
  5369. * src/BtLeecherStateChoke.cc
  5370. * src/BtLeecherStateChoke.h
  5371. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5372. Open file in binary mode.
  5373. * src/CookieStorage.cc
  5374. * src/DHTSetup.cc
  5375. * src/DHTUtil.cc
  5376. * src/Netrc.cc
  5377. * src/NsCookieParser.cc
  5378. * src/ProtocolDetector.cc
  5379. * src/RequestGroupMan.cc
  5380. * src/Signature.cc
  5381. * src/bencode.cc
  5382. * src/download_helper.cc
  5383. * src/option_processing.cc
  5384. * test/CookieParserTest.cc
  5385. * test/DefaultBtProgressInfoFileTest.cc
  5386. * test/FileTest.cc
  5387. * test/GZipDecoderTest.cc
  5388. * test/RequestGroupManTest.cc
  5389. * test/SignatureTest.cc
  5390. * test/SingleFileAllocationIteratorTest.cc
  5391. * test/UriListParserTest.cc
  5392. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5393. Removed operator[] because it is ambiguous with built-in []
  5394. operator.
  5395. * src/array_fun.h
  5396. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5397. Fixed compile error
  5398. * src/OptionParser.cc
  5399. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5400. Added missing call to arrayWrapperConst
  5401. * test/array_funTest.cc
  5402. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5403. Use array_wrapper instead of array_ptr.
  5404. * src/DHTRoutingTableDeserializer.cc
  5405. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5406. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5407. * src/array_fun.h
  5408. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5409. Added array_wrapper template.
  5410. * src/array_fun.h
  5411. * test/array_funTest.cc
  5412. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5413. Use operator T* of array_ptr.
  5414. * src/OptionParser.cc
  5415. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5416. Use localhost instead of 127.0.0.1
  5417. * test/FtpConnectionTest.cc
  5418. * test/MSEHandshakeTest.cc
  5419. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5420. Added operator T*
  5421. * src/array_fun.h
  5422. * test/array_funTest.cc
  5423. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5424. Use dynamically allocated char array to detect memory access
  5425. violation.
  5426. * src/DHTRoutingTableDeserializer.cc
  5427. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5428. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5429. defined.
  5430. * src/PeerMessageUtil.cc
  5431. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5432. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5433. * configure.ac
  5434. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5435. Added a check to see struct sockaddr_in has sin_len member.
  5436. * configure.ac
  5437. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5438. Fixed buffer overrun.
  5439. * src/DHTRoutingTableDeserializer.cc
  5440. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5441. Added LL for long long int constant.
  5442. * test/FtpConnectionTest.cc
  5443. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5444. Casted to unsigned int to suppress compiler warning on netbsd.
  5445. * src/BtRuntime.h
  5446. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5447. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5448. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5449. type time_t.
  5450. * src/SimpleLogger.cc
  5451. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5452. Added test for FtpConnection::receiveSizeResponse().
  5453. * test/FtpConnectionTest.cc
  5454. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5455. Fix epoll error on the old kernel 2.6.8 or ealier.
  5456. * src/EpollEventPoll.cc
  5457. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5458. Use Util::parseLLInt instead of sscanf for portability. The
  5459. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5460. * src/FtpConnection.cc
  5461. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5462. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5463. block. It should not filter anything.
  5464. * src/BitfieldMan.cc
  5465. * src/ConsoleStatCalc.cc
  5466. * test/BitfieldManTest.cc
  5467. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5468. Fixed the bug that the boolean options that don't take arguments
  5469. don't work.
  5470. * src/OptionHandlerImpl.h
  5471. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5472. Fixed broken selected file BitTorrent download.
  5473. * src/MultiDiskAdaptor.cc
  5474. * test/MultiDiskAdaptorTest.cc
  5475. * test/MultiFileAllocationIteratorTest.cc
  5476. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5477. Fixed #define guard for EpollEventPoll
  5478. * src/EpollEventPoll.h
  5479. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5480. Wait 2 seconds. 1 second is sometimes not enough.
  5481. * test/TimeSeedCriteriaTest.cc
  5482. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5483. Use localhost instead of 127.0.0.1.
  5484. * test/DHTConnectionImplTest.cc
  5485. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5486. Suppressed compiler warning.
  5487. * src/AdaptiveURISelector.cc
  5488. * src/DefaultPieceStorage.cc
  5489. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5490. Defined virtual destructor.
  5491. * src/MetalinkParserState.h
  5492. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5493. Give NULL for second argument of getaddrinfo instead of "0".
  5494. * src/NameResolver.cc
  5495. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5496. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5497. included strptime doesn't parse data for this format.
  5498. * src/FtpConnection.cc
  5499. * test/FtpConnectionTest.cc
  5500. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5501. Removed tests giving -1 for unsigned argument.
  5502. * test/SingleFileDownloadContextTest.cc
  5503. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5504. Don't use sha256 in tests because it might not be supported by the
  5505. SSL library.
  5506. * test/MetalinkProcessorTest.cc
  5507. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5508. Removed tests giving -1 for unsigned argument.
  5509. * test/AlphaNumberDecoratorTest
  5510. * test/BitfieldManTest.cc
  5511. * test/DefaultBtContextTest.cc
  5512. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5513. Fixed compile error without libcares when epoll is available.
  5514. * src/EpollEventPoll.cc
  5515. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5516. Included fstream instead of iostream.
  5517. * test/SignatureTest.cc
  5518. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5519. Removed #include <algorithm>
  5520. * test/RequestGroupTest.cc
  5521. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5523. using RequestGroup::extractURIResult().
  5524. * src/AdaptiveURISelector.cc
  5525. * src/RequestGroup.cc
  5526. * src/RequestGroup.h
  5527. * test/RequestGroupTest.cc
  5528. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5529. Added tests for array_ptr.
  5530. * test/array_funTest.cc
  5531. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5532. Don't send ip parameter to a tracker if ip parameter is empty
  5533. string.
  5534. * src/DefaultBtAnnounce.cc
  5535. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5536. Adjusted line feed.
  5537. * src/version_usage.cc
  5538. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5539. Print tags, possible values when OptionHandlerException is caught.
  5540. * src/option_processing.cc
  5541. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5542. Changed the message for FatalException.
  5543. * src/OptionParser.cc
  5544. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5545. Documented --bt-external-ip option in man page. Updated man pages
  5546. for --proxy-method option.
  5547. * doc/aria2c.1.txt
  5548. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5549. Use GET method for FTP via HTTP proxy.
  5550. * src/FtpInitiateConnectionCommand.cc
  5551. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5552. Changed the default value of --proxy-method option from 'tunnel'
  5553. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5554. option.
  5555. * src/AbstractCommand.cc
  5556. * src/AbstractCommand.h
  5557. * src/FtpInitiateConnectionCommand.cc
  5558. * src/HttpDownloadCommand.cc
  5559. * src/HttpInitiateConnectionCommand.cc
  5560. * src/HttpInitiateConnectionCommand.h
  5561. * src/OptionHandlerFactory.cc
  5562. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5563. Initialized _logger
  5564. * src/SelectEventPoll.cc
  5565. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Defined a copy constructor for the same type.
  5567. * src/SharedHandle.h
  5568. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5569. Added OptionParser::parseArg() which internally uses getopt_long
  5570. to parse command-line options. All command-line options are now
  5571. configured by OptionHandler. No manual editing of struct option*
  5572. is required any more.
  5573. * src/NameMatchOptionHandler.h
  5574. * src/OptionHandler.h
  5575. * src/OptionHandlerFactory.cc
  5576. * src/OptionHandlerImpl.h
  5577. * src/OptionParser.cc
  5578. * src/OptionParser.h
  5579. * src/array_fun.h
  5580. * src/main.cc
  5581. * src/option_processing.cc
  5582. * test/OptionHandlerTest.cc
  5583. * test/OptionParserTest.cc
  5584. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5585. Fixed configure error with --disable-epoll
  5586. * configure.ac
  5587. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5588. Fixed compile error when HAVE_EPOLL is not defined.
  5589. Fixed linker error on bigendian systems.
  5590. * src/SocketCore.cc
  5591. * src/SocketCore.h
  5592. * test/DefaultBtProgressInfoFileTest.cc
  5593. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5594. Added --bt-external-ip option. You can specify the external IP
  5595. address to report to a BitTorrent tracker. Although this function
  5596. is named 'external', it can accept any kind of IP addresses.
  5597. * src/DefaultBtAnnounce.cc
  5598. * src/OptionHandlerFactory.cc
  5599. * src/option_processing.cc
  5600. * src/prefs.cc
  5601. * src/prefs.h
  5602. * src/usage_text.h
  5603. * test/DefaultBtAnnounceTest.cc
  5604. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5605. Extracted the algorithm to find the longest incremental sequence
  5606. as max_sequence template.
  5607. * src/LongestSequencePieceSelector.cc
  5608. * src/a2algo.h
  5609. * test/Makefile.am
  5610. * test/a2algoTest.cc
  5611. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5612. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5613. * src/usage_text.h
  5614. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5615. Updated doc for --uri-selector, --http-server-listen-port and
  5616. --enable-http-server option. Documented --event-poll option.
  5617. * doc/aria2c.1.txt
  5618. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5619. Updated doc for --enable-http-server.
  5620. * src/usage_text.h
  5621. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5622. Documented --http-server-listen-port and --enable-http-server in
  5623. man page.
  5624. * doc/aria2c.1.txt
  5625. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5626. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5627. translations. Thanks to all translators.
  5628. * po/es.po
  5629. * po/id.po
  5630. * po/it.po
  5631. * po/ru.po
  5632. * po/uk.po
  5633. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5634. Bump up version number to 1.2.0
  5635. * configure.ac
  5636. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5637. BtContext::getAnnounceTiers() now returns const reference.
  5638. * src/BtContext.h
  5639. * src/DefaultBtContext.cc
  5640. * src/DefaultBtContext.h
  5641. * test/MockBtContext.h
  5642. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5643. Change the number of retries for tracker request based on the
  5644. number of available tracker in a torrent file.
  5645. * src/TrackerWatcherCommand.cc
  5646. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5647. Added _maxTries property to RequestGroup and assign the option
  5648. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5649. RequestGroup::getMaxTries() instead of
  5650. Option::getAsInt(PREF_MAX_TRIES).
  5651. * src/AbstractCommand.cc
  5652. * src/RequestGroup.cc
  5653. * src/RequestGroup.h
  5654. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5655. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5656. Mandriva. I modified the patch: make RequestGroup have the
  5657. timeout value and AdaptiveURISelector directly modifies that
  5658. value.
  5659. * src/AbstractCommand.cc
  5660. * src/AdaptiveURISelector.cc
  5661. * src/AdaptiveURISelector.h
  5662. * src/FtpNegotiationCommand.cc
  5663. * src/RequestGroup.cc
  5664. * src/RequestGroup.h
  5665. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Fixed compiler warning
  5667. * test/IteratableChecksumValidatorTest.cc
  5668. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5669. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5670. integrated downloads. This PieceSelector subclass finds the
  5671. longest continuous sequence in the available missing pieces and
  5672. selects the last index of such sequence. This makes HTTP/FTP
  5673. connections less interrupted by the pieces obtained by BitTorrent
  5674. peers.
  5675. * src/DefaultPieceStorage.cc
  5676. * src/DefaultPieceStorage.h
  5677. * src/LongestSequencePieceSelector.cc
  5678. * src/LongestSequencePieceSelector.h
  5679. * src/Makefile.am
  5680. * src/PieceSelector.h
  5681. * src/RarestPieceSelector.h
  5682. * src/RequestGroup.cc
  5683. * test/BtDependencyTest.cc
  5684. * test/DefaultPieceStorageTest.cc
  5685. * test/IteratableChecksumValidatorTest.cc
  5686. * test/LongestSequencePieceSelectorTest.cc
  5687. * test/Makefile.am
  5688. * test/SegmentManTest.cc
  5689. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5690. Fixed the bug that the average speed is wrong in
  5691. http/ftp/BitTorrent integrated download. Only the download bytes
  5692. in BitTorrent were considered.
  5693. * src/RequestGroup.cc
  5694. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5695. Choose port for BitTorrent/DHT randomly from the specified range.
  5696. * src/DHTConnectionImpl.cc
  5697. * src/PeerListenCommand.cc
  5698. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5699. Send HTTP Authorization header only if it is requested by the
  5700. server(response 401). There are some exceptions. The authorization
  5701. header for proxy is always sent if it is available without request
  5702. by the server. If username/password is specified in the URI, it
  5703. is immediately sent to the server without request by the server.
  5704. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5705. SharedHandle<AuthConfig>().
  5706. NetrcAuthResolver::resolveAuthConfig() returns
  5707. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5708. * src/AbstractAuthResolver.cc
  5709. * src/AbstractProxyRequestCommand.cc
  5710. * src/AuthConfigFactory.cc
  5711. * src/AuthConfigFactory.h
  5712. * src/HttpConnection.cc
  5713. * src/HttpRequest.cc
  5714. * src/HttpRequest.h
  5715. * src/HttpResponse.cc
  5716. * src/HttpResponseCommand.cc
  5717. * src/HttpSkipResponseCommand.cc
  5718. * test/AuthConfigFactoryTest.cc
  5719. * test/HttpRequestTest.cc
  5720. * test/HttpResponseTest.cc
  5721. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5722. Remove leading "--" from help keyword and a substring after "="
  5723. from help keyword, so that one can query options by '-h--max-' or
  5724. '-hmax-peers=10'.
  5725. * src/option_processing.cc
  5726. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5727. Rewritten PStringVisitor and its implementation.
  5728. * src/PStringBuildVisitor.cc
  5729. * src/PStringBuildVisitor.h
  5730. * src/PStringDatum.h
  5731. * src/PStringNumLoop.h
  5732. * src/PStringSegment.cc
  5733. * src/PStringSegment.h
  5734. * src/PStringSelect.h
  5735. * src/PStringVisitor.h
  5736. * src/download_helper.cc
  5737. * test/PStringBuildVisitorTest.cc
  5738. * test/ParameterizedStringParserTest.cc
  5739. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5740. Persist connection between the built-in HTTP server and a client
  5741. if a client supports keep-alive. Fixed the bug that aria2 exits
  5742. when the HTTP server receives EOF from a client.
  5743. * src/HttpServer.cc
  5744. * src/HttpServer.h
  5745. * src/HttpServerCommand.cc
  5746. * src/HttpServerCommand.h
  5747. * src/HttpServerResponseCommand.cc
  5748. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5749. Added experimental built-in HTTP server. Currently, when a client
  5750. accesses to the server, it responds with the current download
  5751. progress. By default, it is disabled. To enable the server, give
  5752. --enable-http-server option. To change the default port number
  5753. for the server to listen to, use --http-server-listen-port option.
  5754. The response HTML is very simple and refreshes it self each 1
  5755. second. Because of this refresh, you see flicker in normal web
  5756. browser such as Firefox. I recommend to use console-based browser
  5757. such as elinks, w3m. To connect to the server, run 'elinks
  5758. http://localhost:6800/' while running aria2. Please replace port
  5759. number '6800'(which is default) with your preference.
  5760. * src/DownloadEngineFactory.cc
  5761. * src/HttpHeader.cc
  5762. * src/HttpHeader.h
  5763. * src/HttpHeaderProcessor.cc
  5764. * src/HttpHeaderProcessor.h
  5765. * src/HttpListenCommand.cc
  5766. * src/HttpListenCommand.h
  5767. * src/HttpServer.cc
  5768. * src/HttpServer.h
  5769. * src/HttpServerCommand.cc
  5770. * src/HttpServerCommand.h
  5771. * src/HttpServerResponseCommand.cc
  5772. * src/HttpServerResponseCommand.h
  5773. * src/Makefile.am
  5774. * src/OptionHandlerFactory.cc
  5775. * src/Util.cc
  5776. * src/Util.h
  5777. * src/help_tags.h
  5778. * src/option_processing.cc
  5779. * src/prefs.cc
  5780. * src/prefs.h
  5781. * src/usage_text.h
  5782. * test/HttpHeaderProcessorTest.cc
  5783. * test/UtilTest.cc
  5784. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5785. Removed.
  5786. * src/CheckIntegrityMan.cc
  5787. * src/FileAllocationMan.cc
  5788. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5789. Made (piece) hash check sequential for each RequestGroup because
  5790. simultaneous hash check is slower than sequential execution.
  5791. * src/CheckIntegrityCommand.cc
  5792. * src/CheckIntegrityDispatcherCommand.cc
  5793. * src/CheckIntegrityDispatcherCommand.h
  5794. * src/CheckIntegrityMan.h
  5795. * src/ConsoleStatCalc.cc
  5796. * src/DownloadCommand.cc
  5797. * src/DownloadEngine.cc
  5798. * src/DownloadEngine.h
  5799. * src/DownloadEngineFactory.cc
  5800. * src/Makefile.am
  5801. * src/Makefile.in
  5802. * src/RequestGroup.cc
  5803. * src/StatCalc.h
  5804. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5805. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5806. SequentialDispatcherCommand.
  5807. * src/FileAllocationDispatcherCommand.cc
  5808. * src/SequentialDispatcherCommand.h
  5809. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5810. Rewritten FileAllocationDispatcherCommand using brand new
  5811. SequentialDispatcherCommand.
  5812. * src/DownloadEngineFactory.cc
  5813. * src/FileAllocationCommand.cc
  5814. * src/FileAllocationDispatcherCommand.cc
  5815. * src/FileAllocationDispatcherCommand.h
  5816. * src/Makefile.am
  5817. * src/SequentialDispatcherCommand.h
  5818. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5819. Replaced FileAllocationMan with
  5820. SequentialPicker<FileAllocationEntry>.
  5821. * src/BtCheckIntegrityEntry.cc
  5822. * src/ConsoleStatCalc.cc
  5823. * src/DownloadEngine.cc
  5824. * src/DownloadEngine.h
  5825. * src/DownloadEngineFactory.cc
  5826. * src/FileAllocationCommand.cc
  5827. * src/FileAllocationDispatcherCommand.cc
  5828. * src/FileAllocationMan.h
  5829. * src/Makefile.am
  5830. * src/SequentialPicker.h
  5831. * src/StatCalc.h
  5832. * src/StreamCheckIntegrityEntry.cc
  5833. * test/Makefile.am
  5834. * test/SequentialPickerTest.cc
  5835. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5836. Added doc for adaptive URI selector.
  5837. * doc/aria2c.1.txt
  5838. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5839. Added doc for adaptive URI selector.
  5840. * src/usage_text.h
  5841. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5842. Added doc for --bt-max-peers option.
  5843. * doc/aria2c.1.txt
  5844. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5845. Added doc for --bt-hash-check-seed option.
  5846. * doc/aria2c.1.txt
  5847. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5848. Documented exit codes.
  5849. * doc/aria2c.1.txt
  5850. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5851. Added --bt-max-peers option to specify the maximum number of peers
  5852. per torrent. 0 means unlimited number of peers.
  5853. * src/ActivePeerConnectionCommand.cc
  5854. * src/BtRuntime.h
  5855. * src/DefaultPeerStorage.cc
  5856. * src/DefaultPeerStorage.h
  5857. * src/OptionHandlerFactory.cc
  5858. * src/RequestGroup.cc
  5859. * src/option_processing.cc
  5860. * src/prefs.cc
  5861. * src/prefs.h
  5862. * src/usage_text.h
  5863. * test/DefaultPeerStorageTest.cc
  5864. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5865. Added --bt-hash-check-seed option. If true is given to this
  5866. option, after hash check using --check-integrity option and file
  5867. is complete, continue to seed file. If you want to check file and
  5868. download it only when it is damaged or incomplete, set this option
  5869. to false. This option has effect only on BitTorrent download.
  5870. The default value is true(This is the same behavior with the
  5871. previous release).
  5872. * src/BtCheckIntegrityEntry.cc
  5873. * src/OptionHandlerFactory.cc
  5874. * src/option_processing.cc
  5875. * src/prefs.cc
  5876. * src/prefs.h
  5877. * src/usage_text.h
  5878. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5879. Updated copyright year.
  5880. * src/version_usage.cc
  5881. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5882. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5883. * doc/aria2c.1.txt
  5884. * src/usage_text.h
  5885. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5886. Made the max value of split option unlimited.
  5887. * doc/aria2c.1.txt
  5888. * src/OptionHandlerFactory.cc
  5889. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5890. Fixed compile warning/error.
  5891. * src/DownloadResult.h
  5892. * src/HttpDownloadCommand.cc
  5893. * src/ServerStat.cc
  5894. * test/RequestGroupTest.cc
  5895. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5896. Added --event-poll option to select the method for polling events.
  5897. The available methods are "select" and "epoll". "epoll" is
  5898. available on Linux only. The earlier release has the compile
  5899. option to choose from these methods.
  5900. * configure.ac
  5901. * src/RequestGroupMan.cc
  5902. * src/OptionHandlerFactory.cc
  5903. * src/EpollEventPoll.h
  5904. * src/StreamFileAllocationEntry.cc
  5905. * src/a2io.h
  5906. * src/SelectEventPoll.h
  5907. * src/option_processing.cc
  5908. * src/prefs.h
  5909. * src/EpollEventPoll.cc
  5910. * src/EventPoll.h
  5911. * src/SocketCore.h
  5912. * src/Makefile.am
  5913. * src/main.cc
  5914. * src/DownloadEngine.h
  5915. * src/SelectEventPoll.cc
  5916. * src/DownloadEngine.cc
  5917. * src/SocketCore.cc
  5918. * src/DownloadEngineFactory.cc
  5919. * src/Makefile.in
  5920. * src/prefs.cc
  5921. * src/usage_text.h
  5922. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5923. Included RecoverableException.h from main.cc
  5924. * src/main.cc
  5925. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5926. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5927. now returns last error encountered in the HTTP/FTP downloads as a
  5928. exit status value. If all downloads finished successfully, aria2
  5929. returns 0. The error code is defined in src/DownloadResult.h.
  5930. The error occurred in the download currently in progress is not
  5931. reported as a last error. If no error has encountered but there
  5932. are in progress or waiting downloads, aria2 returns 7.
  5933. * src/AbstractCommand.cc
  5934. * src/DlAbortEx.h
  5935. * src/DlRetryEx.h
  5936. * src/DownloadCommand.cc
  5937. * src/DownloadFailureException.h
  5938. * src/DownloadResult.h
  5939. * src/FtpNegotiationCommand.cc
  5940. * src/HttpSkipResponseCommand.cc
  5941. * src/Makefile.am
  5942. * src/MultiUrlRequestInfo.cc
  5943. * src/MultiUrlRequestInfo.h
  5944. * src/RecoverableException.h
  5945. * src/RequestGroup.cc
  5946. * src/RequestGroup.h
  5947. * src/RequestGroupMan.cc
  5948. * src/RequestGroupMan.h
  5949. * src/URIResult.cc
  5950. * src/URIResult.h
  5951. * src/main.cc
  5952. * src/option_processing.cc
  5953. * test/RequestGroupTest.cc
  5954. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5955. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5956. patch adds AdaptiveURISelector, which selects one of the bests
  5957. mirrors for first and reserved connections. For supplementary
  5958. ones, it returns mirrors which has not been tested yet, and if
  5959. each of them already tested, returns mirrors which has to be
  5960. tested again. Otherwise, it doesn't return anymore mirrors.
  5961. * src/AdaptiveURISelector.cc
  5962. * src/AdaptiveURISelector.h
  5963. * src/FtpNegotiationCommand.cc
  5964. * src/HttpResponseCommand.cc
  5965. * src/Makefile.am
  5966. * src/Makefile.in
  5967. * src/OptionHandlerFactory.cc
  5968. * src/RequestGroup.cc
  5969. * src/RequestGroup.h
  5970. * src/RequestGroupMan.cc
  5971. * src/ServerStat.cc
  5972. * src/ServerStat.h
  5973. * src/ServerStatMan.cc
  5974. * src/SpeedCalc.cc
  5975. * src/URISelector.h
  5976. * src/prefs.cc
  5977. * src/prefs.h
  5978. * test/RequestGroupManTest.cc
  5979. * test/ServerStatManTest.cc
  5980. * test/ServerStatTest.cc
  5981. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5982. Fixed unit test error.
  5983. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5984. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5985. * Release 1.1.2
  5986. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5987. Updated Russian translation. Thanks to the translators.
  5988. * po/ru.po
  5989. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5990. Added the description of --use-head option to man page.
  5991. * doc/aria2c.1.txt
  5992. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5993. Bump up version number to 1.1.2
  5994. * configure.ac
  5995. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5996. Added --use-head option to toggle whether HEAD method should be
  5997. used in the first HTTP request. By default aria2 uses HEAD method
  5998. as the first request. When the server doesn't recognize HEAD, then
  5999. give aria2 --use-head=false to force aria2 to use GET method
  6000. instead.
  6001. * src/OptionHandlerFactory.cc
  6002. * src/RequestGroupMan.cc
  6003. * src/option_processing.cc
  6004. * src/prefs.cc
  6005. * src/prefs.h
  6006. * src/usage_text.h
  6007. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6008. Fixed the bug that BitTorrent download doesn't finish when REJECT
  6009. message is received before CHOKE message. The old implementation
  6010. doen't clear the use-bit of the piece when recieved REJECT
  6011. message.
  6012. * src/DefaultBtMessageDispatcher.cc
  6013. * test/DefaultBtMessageDispatcherTest.cc
  6014. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6015. * Release 1.1.1
  6016. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6017. Bump up version number to 1.1.1.
  6018. * configure.ac
  6019. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6020. Fixed the bug that --summary-interval=0 doesn't work. The summary
  6021. is printed repeatedly.
  6022. * src/ConsoleStatCalc.cc
  6023. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6024. * Release 1.1.0
  6025. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6026. Added ifdef clause for conditional compilation.
  6027. * src/main.cc
  6028. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6029. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  6030. translations. Thanks to all translators.
  6031. * po/ja.po
  6032. * po/ru.po
  6033. * po/uk.po
  6034. * po/zh_CN.po
  6035. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6036. Added the preceding ">>> " before the message "Printing the
  6037. contents of file..." to make the output more readable.
  6038. * src/main.cc
  6039. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6040. Added try-catch block in the loop in showFiles() to continue the
  6041. operation even if the exception occurred in one file.
  6042. * src/main.cc (showFiles)
  6043. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6044. Made messages in showFiles() translatable.
  6045. * po/aria2.pot
  6046. * src/main.cc
  6047. * src/message.h
  6048. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6049. Print the contents of Torrent/Metalink files are printed without
  6050. -T/-M options.
  6051. * src/main.cc
  6052. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6053. Escaped '--' with '\--'
  6054. * README
  6055. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6056. Updated "How to build" section in README. Mentioned about
  6057. --with-ca-bundle compile option.
  6058. * README
  6059. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6060. Bump up version number to 1.1.0.
  6061. * configure.ac
  6062. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6063. Added a note for --dht-listen-port option.
  6064. * doc/aria2c.1.txt
  6065. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6066. Update doc for --realtime-chunk-checksum option.
  6067. * doc/aria2c.1.txt
  6068. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6069. Update doc for --realtime-chunk-checksum option.
  6070. * src/usage_text.h
  6071. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6072. Updated French, Japanese, Russian and Ukrainian translations.
  6073. Thanks to all translators.
  6074. * po/fr.po
  6075. * po/ja.po
  6076. * po/ru.po
  6077. * po/uk.po
  6078. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6079. Renamed aria2c.pot to aria2.pot
  6080. * po/aria2.pot
  6081. * po/aria2c.pot: Removed.
  6082. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6083. Removed MetaEntry.h
  6084. * src/Makefile.am
  6085. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6086. Rename file by appending digits if a local file exists and its
  6087. file size is larger than that of remote file with --continue
  6088. option. The old implementation just throws exception in such case.
  6089. * src/RequestGroup.cc
  6090. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6091. Fixed the bug that download progress summary is not printed in the
  6092. interval specified by the option.
  6093. * src/ConsoleStatCalc.cc
  6094. * src/ConsoleStatCalc.h
  6095. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6096. Fixed compiler warning
  6097. * src/Cookie.cc
  6098. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6099. Fixed the cookie implementation based on RFC2965.
  6100. Now if a value in domain field is not started with dot, then
  6101. prepend dot. That means a cookie with domain=sf.net is sent to
  6102. wiki.sf.net.
  6103. * src/Cookie.cc
  6104. * test/CookieParserTest.cc
  6105. * test/CookieStorageTest.cc
  6106. * test/CookieTest.cc
  6107. * test/NsCookieParserTest.cc
  6108. * test/Sqlite3MozCookieParserTest.cc
  6109. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6110. Fixed the bug that causes corrupted downloads if HTTP pipelining
  6111. is enabled and the server doesn't support keep-alive.
  6112. * src/AbstractCommand.cc
  6113. * src/DownloadCommand.cc
  6114. * src/HttpDownloadCommand.cc
  6115. * src/HttpDownloadCommand.h
  6116. * src/HttpResponseCommand.cc
  6117. * src/Request.cc
  6118. * src/Request.h
  6119. * test/RequestTest.cc
  6120. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6121. Removed Dictionary/List/Data and its related classes.
  6122. * src/BencodeVisitor.cc: Removed.
  6123. * src/BencodeVisitor.h: Removed.
  6124. * src/Data.cc: Removed.
  6125. * src/Data.h: Removed.
  6126. * src/Dictionary.cc: Removed.
  6127. * src/Dictionary.h: Removed.
  6128. * src/List.cc: Removed.
  6129. * src/List.h: Removed.
  6130. * src/Makefile.am
  6131. * src/MetaEntry.h: Removed.
  6132. * src/MetaEntryVisitor.h: Removed.
  6133. * src/MetaFileUtil.cc: Removed.
  6134. * src/MetaFileUtil.h: Removed.
  6135. * test/BencodeVisitorTest.cc: Removed.
  6136. * test/DataTest.cc: Removed.
  6137. * test/DictionaryTest.cc: Removed.
  6138. * test/ListTest.cc: Removed.
  6139. * test/Makefile.am
  6140. * test/MetaFileUtilTest.cc: Removed.
  6141. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6142. Removed include of MetaEntry.h
  6143. * test/DHTMessageTrackerEntryTest.cc
  6144. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6145. Use BDE instead of Dictionary/List/Data.
  6146. * src/AnnounceList.cc
  6147. * src/AnnounceList.h
  6148. * test/AnnounceListTest.cc
  6149. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6150. Use BDE instead of Dictionary/List/Data.
  6151. * src/DHTAbstractMessage.cc
  6152. * src/DHTAbstractMessage.h
  6153. * src/DHTAnnouncePeerMessage.cc
  6154. * src/DHTAnnouncePeerMessage.h
  6155. * src/DHTAnnouncePeerReplyMessage.cc
  6156. * src/DHTAnnouncePeerReplyMessage.h
  6157. * src/DHTFindNodeMessage.cc
  6158. * src/DHTFindNodeMessage.h
  6159. * src/DHTFindNodeReplyMessage.cc
  6160. * src/DHTFindNodeReplyMessage.h
  6161. * src/DHTGetPeersMessage.cc
  6162. * src/DHTGetPeersMessage.h
  6163. * src/DHTGetPeersReplyMessage.cc
  6164. * src/DHTGetPeersReplyMessage.h
  6165. * src/DHTMessageFactory.h
  6166. * src/DHTMessageFactoryImpl.cc
  6167. * src/DHTMessageFactoryImpl.h
  6168. * src/DHTMessageReceiver.cc
  6169. * src/DHTMessageTracker.cc
  6170. * src/DHTMessageTracker.h
  6171. * src/DHTPingMessage.cc
  6172. * src/DHTPingMessage.h
  6173. * src/DHTPingReplyMessage.cc
  6174. * src/DHTPingReplyMessage.h
  6175. * src/DHTQueryMessage.cc
  6176. * src/DHTQueryMessage.h
  6177. * src/DHTResponseMessage.cc
  6178. * src/DHTResponseMessage.h
  6179. * test/DHTAnnouncePeerMessageTest.cc
  6180. * test/DHTAnnouncePeerReplyMessageTest.cc
  6181. * test/DHTFindNodeMessageTest.cc
  6182. * test/DHTFindNodeReplyMessageTest.cc
  6183. * test/DHTGetPeersMessageTest.cc
  6184. * test/DHTGetPeersReplyMessageTest.cc
  6185. * test/DHTMessageFactoryImplTest.cc
  6186. * test/DHTMessageTrackerTest.cc
  6187. * test/DHTPingMessageTest.cc
  6188. * test/DHTPingReplyMessageTest.cc
  6189. * test/MockDHTMessageFactory.h
  6190. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6191. Added tests the case where length < 0 is specified.
  6192. * test/BencodeTest.cc
  6193. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6194. Fixed memory leak in decoderawstring()
  6195. * src/bencode.cc
  6196. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6197. Added missing #ifdef guard. Added uc() function for String and
  6198. removeKey() for Dict.
  6199. * src/bencode.cc
  6200. * src/bencode.h
  6201. * test/BencodeTest.cc
  6202. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6203. Use BDE instead of Dictionary/List/Data.
  6204. * src/HandshakeExtensionMessage.cc
  6205. * src/HandshakeExtensionMessage.h
  6206. * test/HandshakeExtensionMessageTest.cc
  6207. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6208. Added --max-overall-upload-limit option. This option limits the
  6209. overall upload speed. Stated in help message that the existing
  6210. --max-upload-limit option limits the upload speed per each
  6211. torrent. Man page is also updated.
  6212. * doc/aria2c.1.txt
  6213. * src/DefaultBtMessageDispatcher.cc
  6214. * src/DefaultBtMessageDispatcher.h
  6215. * src/OptionHandlerFactory.cc
  6216. * src/PeerInteractionCommand.cc
  6217. * src/option_processing.cc
  6218. * src/prefs.cc
  6219. * src/prefs.h
  6220. * src/usage_text.h
  6221. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6222. Use BDE instead of Dictionary/List/Data classes.
  6223. * src/CompactPeerListProcessor.cc
  6224. * src/CompactPeerListProcessor.h
  6225. * src/DefaultBtAnnounce.cc
  6226. * src/DefaultBtContext.cc
  6227. * src/DefaultBtContext.h
  6228. * src/DefaultPeerListProcessor.cc
  6229. * src/DefaultPeerListProcessor.h
  6230. * src/DelegatingPeerListProcessor.cc
  6231. * src/DelegatingPeerListProcessor.h
  6232. * src/PeerListProcessor.h
  6233. * src/UTPexExtensionMessage.cc
  6234. * src/Util.h
  6235. * src/message.h
  6236. * test/DefaultBtContextTest.cc
  6237. * test/DefaultPeerListProcessorTest.cc
  6238. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6239. Added bencode helper functions and BDE class.
  6240. They will replace MetaFileUtil and Dictionary/List/Data classes.
  6241. * src/Makefile.am
  6242. * src/bencode.cc
  6243. * src/bencode.h
  6244. * test/BencodeTest.cc
  6245. * test/Makefile.am
  6246. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6247. Fixed the bug that bad URI is sent to the tracker when the announe
  6248. URI in torrent file includes query.
  6249. * src/DefaultBtAnnounce.cc
  6250. * test/DefaultBtAnnounceTest.cc
  6251. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6252. Added Option::blank().
  6253. Use !Option::blank(name) instead of Option::defined(name) for
  6254. the options that take filename.
  6255. * src/MultiUrlRequestInfo.cc
  6256. * src/Option.cc
  6257. * src/Option.h
  6258. * src/main.cc
  6259. * src/option_processing.cc
  6260. * test/OptionTest.cc
  6261. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6262. Documented the default value of --check-certificate option in man
  6263. page.
  6264. * doc/aria2c.1.txt
  6265. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6266. Enabled --check-certificate by default. Added compile
  6267. time(configure) option --with-ca-bundle to specify CA bundle.
  6268. Warn if --check-certificate=true and --ca-certificate is not
  6269. specified or loading CA certificate is failed.
  6270. * configure.ac
  6271. * src/MultiUrlRequestInfo.cc
  6272. * src/OptionHandlerFactory.cc
  6273. * src/message.h
  6274. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6275. Mentioned https tag in help option.
  6276. * doc/aria2c.1.txt
  6277. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6278. Added `https' tag to help option category. Added https tag to
  6279. --ca-certificate, --certificate, --check-certificate and
  6280. --private-key option.
  6281. * src/OptionHandlerFactory.cc
  6282. * src/help_tags.h
  6283. * src/option_processing.cc
  6284. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6285. Changed the package name from `aria2c' to `aria2' in order to fix
  6286. the packaging issue in Debian and Fedora. The name of the
  6287. executable is not changed.
  6288. * configure.ac
  6289. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6290. Fixed typos
  6291. * src/usage_text.h
  6292. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6293. Fixed typos and updated doc.
  6294. * README
  6295. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6296. Fixed typos
  6297. * doc/aria2c.1.txt
  6298. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6299. Fixed typos
  6300. * src/usage_text.h
  6301. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6302. Print a message when no files to download.
  6303. * src/download_helper.cc
  6304. * src/main.cc
  6305. * src/message.h
  6306. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6307. RFC3986 complied Percent-Encoding(urlencode).
  6308. Use uppercase hexadecimal digits for encoded text instead of lowercase
  6309. ones.
  6310. * src/Request.cc
  6311. * src/Util.cc
  6312. * src/Util.h
  6313. * test/BtHandshakeMessageTest.cc
  6314. * test/DefaultBtAnnounceTest.cc
  6315. * test/DefaultBtContextTest.cc
  6316. * test/RequestTest.cc
  6317. * test/UtilTest.cc
  6318. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6319. Fixed the bug that prevents aria2 from downloading 0-length files
  6320. via HTTP/FTP.
  6321. * src/DefaultBtContext.cc
  6322. * src/DefaultBtContext.h
  6323. * src/DownloadContext.h
  6324. * src/FtpNegotiationCommand.cc
  6325. * src/HttpResponseCommand.cc
  6326. * src/HttpResponseCommand.h
  6327. * src/RequestGroup.cc
  6328. * src/SingleFileDownloadContext.cc
  6329. * src/SingleFileDownloadContext.h
  6330. * test/BtPostDownloadHandlerTest.cc
  6331. * test/MetalinkPostDownloadHandlerTest.cc
  6332. * test/MockBtContext.h
  6333. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6334. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  6335. * src/option_processing.cc
  6336. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6337. Applied aria2-1.0.1-mingw.patch.
  6338. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  6339. mingw.
  6340. Collected 4th and 5th argument types for getsockopt and setsockopt.
  6341. * src/SocketCore.cc
  6342. * src/a2netcompat.h
  6343. * test/SocketCoreTest.cc
  6344. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6345. * Release 1.0.1
  6346. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6347. Updated Ukrainian and Norwegian Nynorsk translations.
  6348. Thanks to all translators.
  6349. * po/nn.po
  6350. * po/uk.po
  6351. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6352. Don't show download result when -S option is used.
  6353. * src/main.cc
  6354. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6355. Bump up version number to 1.0.1
  6356. * configure.ac
  6357. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6358. Closed files after the test cases in MultiDiskWriterTest::
  6359. testResetDiskWriterEntries(). This will fix the unit test error
  6360. in mingw32 build.
  6361. * test/MultiDiskWriterTest.cc
  6362. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6363. Use HEAD method to get file size from HTTP server for segmented
  6364. downloading.
  6365. The request to the BitTorrent Tracker always uses GET method because
  6366. the response of the tracker is small and it doesn't need segmented
  6367. download.
  6368. * src/FtpNegotiationCommand.cc
  6369. * src/HttpRequest.cc
  6370. * src/HttpResponseCommand.cc
  6371. * src/HttpSkipResponseCommand.cc
  6372. * src/RequestGroup.cc
  6373. * src/RequestGroup.h
  6374. * src/TrackerWatcherCommand.cc
  6375. * test/HttpRequestTest.cc
  6376. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6377. Fixed the bug that causes floating exception when -T option is used and
  6378. no URIs are given.
  6379. * src/download_helper.cc
  6380. * test/DownloadHelperTest.cc
  6381. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6382. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6383. errors in MinGW:
  6384. Closed file after saving server stats (RequestGroupMan.cc)
  6385. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6386. Ignored case & handled 2-digit years (strptime.c)
  6387. Added missing suseconds_t definition (a2time.h)
  6388. Fixed socket CLOSE() define (SocketCore.cc)
  6389. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6390. Changed utime() test values from x000 to x00000 as MinGW failed on
  6391. values less than timezone offset from Unix epoch
  6392. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6393. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6394. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6395. handle negative dates (CookieParserTest.cc)
  6396. * src/a2time.h
  6397. * src/FtpConnection.cc
  6398. * src/RequestGroupMan.cc
  6399. * src/SocketCore.cc
  6400. * src/strptime.c
  6401. * test/CookieParserTest.cc
  6402. * test/CopyDiskAdaptorTest.cc
  6403. * test/FileTest.cc
  6404. * test/FtpConnectionTest.cc
  6405. * test/MultiDiskAdaptorTest.cc
  6406. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6407. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6408. * doc/aria2c.1.txt
  6409. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6410. * Release 1.0.0
  6411. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6412. Added '~' to reserved characters.
  6413. * src/Util.cc
  6414. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6415. Do not urlencode Request::url in setUrl() because we want unmodified
  6416. URL using Request::getUrl()
  6417. * src/Request.cc
  6418. * src/Request.h
  6419. * test/RequestTest.cc
  6420. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6421. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6422. Thanks to all translators.
  6423. * po/bg.po
  6424. * po/fr.po
  6425. * po/ja.po
  6426. * po/ru.po
  6427. * po/uk.po
  6428. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6429. Bump up version number to 1.0.0
  6430. * configure.ac
  6431. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6432. Added nosqlite3 build to build_test.sh.
  6433. Renamed noxml as expat.
  6434. * build_test.sh
  6435. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6436. Updated INPUT FILE section.
  6437. * doc/aria2c.1.txt
  6438. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6439. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6440. on big endian systems because test .aria2 files are made for little
  6441. endian systems.
  6442. * test/DefaultBtProgressInfoFileTest.cc
  6443. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6444. Dropped ares support.
  6445. * README
  6446. * configure.ac
  6447. * m4/libares.m4: Removed.
  6448. * src/AsyncNameResolver.cc
  6449. * src/Makefile.am
  6450. * test/Makefile.am
  6451. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6452. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6453. Removed const qualifier from DiskWriter::size().
  6454. * src/AbstractDiskWriter.cc
  6455. * src/AbstractDiskWriter.h
  6456. * src/ByteArrayDiskWriter.cc
  6457. * src/ByteArrayDiskWriter.h
  6458. * src/DiskWriter.h
  6459. * test/ByteArrayDiskWriterTest.cc
  6460. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6461. Fixed the bug that causes segmentation fault/bus error during executing
  6462. choking algorithm while seeding. This is caused by improper
  6463. implementation of compare function which returns inconsistent results
  6464. depending on the timing of last unchoke.
  6465. * src/BtSeederStateChoke.cc
  6466. * src/BtSeederStateChoke.h
  6467. * src/DefaultPeerStorage.cc
  6468. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6469. Removed TODO
  6470. * TODO
  6471. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6472. Added a section that explains how to pass argument to options that
  6473. takes optional arguments with its short form.
  6474. * doc/aria2c.1.txt
  6475. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6476. Added -u for the short form of --max-upload-limit option.
  6477. * doc/aria2c.1.txt
  6478. * src/option_processing.cc
  6479. * src/usage_text.h
  6480. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6481. Added -V for the short form of --check-integrity option.
  6482. Now the argument of --check-integrity option is optional:
  6483. if it is omitted, it is evaluated as true.
  6484. * doc/aria2c.1.txt
  6485. * src/option_processing.cc
  6486. * src/usage_text.h
  6487. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6488. Made the default value of --ftp-pasv option set to true and it can take
  6489. true/false values.
  6490. * src/OptionHandlerFactory.cc
  6491. * src/option_processing.cc
  6492. * src/usage_text.h
  6493. * doc/aria2c.1.txt
  6494. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6495. Given custom random number generator to std::random_shuffle.
  6496. * src/AnnounceList.cc
  6497. * src/BtLeecherStateChoke.cc
  6498. * src/BtSeederStateChoke.cc
  6499. * src/DefaultBtRequestFactory.cc
  6500. * src/MetalinkEntry.cc
  6501. * src/RarestPieceSelector.cc
  6502. * src/SimpleRandomizer.cc
  6503. * src/SimpleRandomizer.h
  6504. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6505. Now the default value of --enable-direct-io is true.
  6506. * src/OptionHandlerFactory.cc
  6507. * doc/aria2c.1.txt
  6508. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6509. Erase peer before executing onReturningPeer and onErasingPeer
  6510. because choking algorithm called from onReturningPeer doesn't
  6511. like erasing peer in the active peer list.
  6512. * src/DefaultPeerStorage.cc
  6513. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6514. Instead of creating special filename in createDownloadResult() if
  6515. inMemoryDownload() is true, now it is done in getFilePath().
  6516. * src/RequestGroup.cc
  6517. * test/RequestGroupTest.cc
  6518. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6519. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6520. processed in memory. This is the fix for previous comment out.
  6521. * src/MemoryBufferPreDownloadHandler.cc
  6522. * src/RequestGroup.cc
  6523. * src/RequestGroup.h
  6524. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6525. Commented out the code which sets virtual directory path "[MEMORY]"
  6526. propagate directory to store to following RequestGroup.
  6527. * src/MemoryBufferPreDownloadHandler.cc
  6528. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6529. Bump up version number to 1.0.0b
  6530. * configure.ac
  6531. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6532. Added input_uris.txt to EXTRA_DIST
  6533. * test/Makefile.am
  6534. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6535. Removed PeerObject.h from Makefile.am
  6536. * src/Makefile.am
  6537. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6538. Avoid slow seeding
  6539. * src/PeerInteractionCommand.cc
  6540. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6541. Updated usage for -i option.
  6542. * src/usage_text.h (TEXT_INPUT_FILE)
  6543. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6544. Added INPUT FILE section to man page.
  6545. Escaped fake URLs.
  6546. * doc/aria2c.1.txt
  6547. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6548. Fixed wrong note position for -o option.
  6549. * doc/aria2c.1.txt
  6550. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6551. Fixed compile error without SSL/XML library.
  6552. * src/DefaultBtProgressInfoFile.cc
  6553. * src/DefaultBtProgressInfoFile.h
  6554. * src/FileMetalinkParserState.cc
  6555. * src/RequestGroup.h
  6556. * src/SocketCore.cc
  6557. * src/SocketCore.h
  6558. * src/VerificationMetalinkParserState.cc
  6559. * src/download_helper.h
  6560. * src/main.cc
  6561. * test/DefaultBtProgressInfoFileTest.cc
  6562. * test/DownloadHelperTest.cc
  6563. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6564. Rewritten URI handling functions. They are now provided as a testable
  6565. functions.
  6566. * src/Makefile.am
  6567. * src/RequestGroup.cc
  6568. * src/RequestGroup.h
  6569. * src/download_helper.cc
  6570. * src/download_helper.h
  6571. * src/main.cc
  6572. * test/DownloadHelperTest.cc
  6573. * test/Makefile.am
  6574. * test/input_uris.txt
  6575. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6576. Quickly terminate commands when ctrl-c is pressed.
  6577. * src/DownloadEngine.cc
  6578. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6579. Quickly terminate idle commands when download finished.
  6580. * src/AbstractCommand.cc
  6581. * src/DownloadCommand.cc
  6582. * src/DownloadEngine.cc
  6583. * src/DownloadEngine.h
  6584. * src/SleepCommand.cc
  6585. * src/SleepCommand.h
  6586. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6587. Added the ability to specify output filename and directory in input
  6588. file.
  6589. Additional parameters are added in the following line of URIs
  6590. with proceeding white space(s), 1 parameter in 1 line.
  6591. The parameter names are the same with the command-line option name
  6592. without proceeding "--". Not all the options are available here:
  6593. at the moment, 'dir' and 'out' options are avialable.
  6594. Please note that out option has no effect against Metalink or BitTorrent
  6595. downloads.
  6596. Example input file:
  6597. http://host/foo-1.1.tar.bz2
  6598. out=foo.tar.bz2
  6599. dir=/tmp/downloads
  6600. http://host/thundermonkey-2.0.tar.bz2
  6601. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6602. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6603. thundermonkey-2.0.tar.bz2 is saved as
  6604. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6605. * src/BtPostDownloadHandler.cc
  6606. * src/Metalink2RequestGroup.cc
  6607. * src/Metalink2RequestGroup.h
  6608. * src/MetalinkPostDownloadHandler.cc
  6609. * src/UriListParser.cc
  6610. * src/UriListParser.h
  6611. * src/main.cc
  6612. * test/Metalink2RequestGroupTest.cc
  6613. * test/UriListParserTest.cc
  6614. * test/filelist1.txt
  6615. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6616. Fixed error when SSL library is not found.
  6617. * configure.ac
  6618. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6619. Cross referenced among -s, -C and -j options.
  6620. Updated usage of -C and -s options.
  6621. * src/usage_text.h
  6622. * doc/aria2c.1.txt
  6623. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6624. Fixed bad cast in 32bit platforms.
  6625. * test/DefaultPieceStorageTest.cc
  6626. (DefaultPieceStorageTest::testGetCompletedLength)
  6627. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6628. Fixed unit test fails on 32bit platforms.
  6629. * test/CookieParserTest.cc
  6630. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6631. Show an average download speed in Download results.
  6632. * src/BtFileAllocationEntry.cc
  6633. * src/DefaultPieceStorage.cc
  6634. * src/DownloadContext.cc
  6635. * src/DownloadContext.h
  6636. * src/DownloadResult.h
  6637. * src/RequestGroup.cc
  6638. * src/RequestGroupMan.cc
  6639. * src/StreamFileAllocationEntry.cc
  6640. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6641. Fixed the bug that metalink file is not processed if Content-Type
  6642. field has a paramter.
  6643. * src/HttpResponse.cc
  6644. * src/HttpResponse.h
  6645. * test/HttpResponseTest.cc
  6646. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6647. Removed unused code.
  6648. * src/DefaultBtAnnounce.cc
  6649. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6650. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6651. the value larger than DefaultPieceStorage::getTotalLength() when
  6652. in flight pieces are involved.
  6653. * src/DefaultPieceStorage.cc
  6654. * test/DefaultPieceStorageTest.cc
  6655. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6656. Bump up version number to 1.0.0a.
  6657. * configure.ac
  6658. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6659. Updated configure.ac
  6660. * configure.ac
  6661. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6662. Added usege for proxy.
  6663. * doc/aria2c.1.txt
  6664. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6665. Added usage for --ca-certificate, --certificate, --private-key and
  6666. --check-certificate options.
  6667. * doc/aria2c.1.txt
  6668. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6669. Updated man page
  6670. * doc/aria2c.1.txt
  6671. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6672. Added --no-proxy option. It receives comman separated hostname or
  6673. domains to which proxy should not be used.
  6674. aria2 honors the environment variable no_proxy to override no-proxy
  6675. value in configuration file. The user can override the environment
  6676. variable no_proxy with --no-proxy command-line option.
  6677. * src/AbstractCommand.cc
  6678. * src/OptionHandlerFactory.cc
  6679. * src/option_processing.cc
  6680. * src/prefs.cc
  6681. * src/prefs.h
  6682. * src/usage_text.h
  6683. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6684. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6685. The CA certificates are specified in --ca-certificate option.
  6686. By default, the verification is disabled. Use --check-certificate
  6687. option to enable it.
  6688. * src/HttpRequestCommand.cc
  6689. * src/LibgnutlsTLSContext.cc
  6690. * src/LibgnutlsTLSContext.h
  6691. * src/LibsslTLSContext.cc
  6692. * src/LibsslTLSContext.h
  6693. * src/MultiUrlRequestInfo.cc
  6694. * src/OptionHandlerFactory.cc
  6695. * src/SocketCore.cc
  6696. * src/SocketCore.h
  6697. * src/a2functional.h
  6698. * src/message.h
  6699. * src/option_processing.cc
  6700. * src/prefs.cc
  6701. * src/prefs.h
  6702. * src/usage_text.h
  6703. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6704. Added client certificate authentication for SSL/TLS.
  6705. Currently a private key must be decrypted for use with aria2.
  6706. If a user accidentally gives encrypted file to aria2 then following
  6707. thing happens:
  6708. If encrypted private key is given to aria2, it behaves differently
  6709. depending on the ssl library it uses. If aria2 built with openssl then
  6710. openssl prompts the user for password. If aria2 build with gnutls then
  6711. aria2 exists with error at start up.
  6712. * src/DownloadEngineFactory.cc
  6713. * src/MultiUrlRequestInfo.cc
  6714. * src/OptionHandlerFactory.cc
  6715. * src/option_processing.cc
  6716. * src/prefs.cc
  6717. * src/prefs.h
  6718. * src/usage_text.h
  6719. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6720. Introduced TLSContext that holds TLS related data that can be shared
  6721. with multiple SSL connections.
  6722. * src/DownloadEngineFactory.cc
  6723. * src/LibgnutlsTLSContext.cc
  6724. * src/LibgnutlsTLSContext.h
  6725. * src/LibsslTLSContext.cc
  6726. * src/LibsslTLSContext.h
  6727. * src/Makefile.am
  6728. * src/SocketCore.cc
  6729. * src/SocketCore.h
  6730. * src/TLSContext.h
  6731. * src/message.h
  6732. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6733. Fixed the bug that the DiskWriter of the first FileEntry whose
  6734. `needsFileAllocation' property is false is not created
  6735. even if it shares a piece with next FileEntry which `requested' property
  6736. is true.
  6737. Fixed the bug that zero-length file is not created if pre file
  6738. allocation is not done.
  6739. * src/MultiDiskAdaptor.cc
  6740. * src/MultiDiskAdaptor.h
  6741. * test/MultiDiskAdaptorTest.cc
  6742. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. Added the ability to pool proxy connection.
  6744. The conneciton in FTP with proxy-method=GET is not pooled.
  6745. Proxy-Connection header will not be sent when sending CONNECT method.
  6746. * src/DownloadEngine.cc
  6747. * src/DownloadEngine.h
  6748. * src/FtpFinishDownloadCommand.cc
  6749. * src/FtpInitiateConnectionCommand.cc
  6750. * src/FtpNegotiationCommand.cc
  6751. * src/HttpDownloadCommand.cc
  6752. * src/HttpInitiateConnectionCommand.cc
  6753. * src/HttpRequest.cc
  6754. * src/HttpRequest.h
  6755. * src/HttpResponse.cc
  6756. * src/HttpSkipResponseCommand.cc
  6757. * test/HttpRequestTest.cc
  6758. * test/HttpResponseTest.cc
  6759. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6760. Handle date before epoch.
  6761. To create *bad* Time object, call Time::null().
  6762. * src/CookieParser.cc
  6763. * src/FtpConnection.cc
  6764. * src/FtpConnection.h
  6765. * src/FtpNegotiationCommand.cc
  6766. * src/RequestGroup.cc
  6767. * src/TimeA2.cc
  6768. * src/TimeA2.h
  6769. * test/CookieParserTest.cc
  6770. * test/FtpConnectionTest.cc
  6771. * test/TimeTest.cc
  6772. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6773. Added support for following envrionment variables: http_proxy,
  6774. https_proxy, ftp_proxy and all_proxy.
  6775. Each variable is equivalent to the aria2 option whose name is the
  6776. variable name with '_' replaced with '-'.
  6777. They overrides options specified in aria2.conf file.
  6778. The envrionment variables can be overrode using command-line option.
  6779. * src/option_processing.cc
  6780. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6781. Renamed --http-proxy-method as --proxy-method.
  6782. * src/AbstractCommand.cc
  6783. * src/FtpInitiateConnectionCommand.cc
  6784. * src/HttpInitiateConnectionCommand.cc
  6785. * src/OptionHandlerFactory.cc
  6786. * src/option_processing.cc
  6787. * src/prefs.cc
  6788. * src/prefs.h
  6789. * src/usage_text.h
  6790. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6792. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6793. Above 3 options and --http-proxy option can handle proxy in URL format
  6794. like: http://user:passwd@host:port.
  6795. If a proxy requires user/password, they must be specified in a URL.
  6796. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6797. instead.
  6798. * src/AbstractCommand.cc
  6799. * src/AbstractCommand.h
  6800. * src/AbstractProxyRequestCommand.cc
  6801. * src/AbstractProxyRequestCommand.h
  6802. * src/AuthConfigFactory.cc
  6803. * src/AuthConfigFactory.h
  6804. * src/FtpFinishDownloadCommand.cc
  6805. * src/FtpInitiateConnectionCommand.cc
  6806. * src/FtpInitiateConnectionCommand.h
  6807. * src/FtpNegotiationCommand.cc
  6808. * src/FtpTunnelRequestCommand.cc
  6809. * src/FtpTunnelRequestCommand.h
  6810. * src/HttpDownloadCommand.cc
  6811. * src/HttpInitiateConnectionCommand.cc
  6812. * src/HttpInitiateConnectionCommand.h
  6813. * src/HttpProxyRequestCommand.cc
  6814. * src/HttpProxyRequestCommand.h
  6815. * src/HttpRequest.cc
  6816. * src/HttpRequest.h
  6817. * src/HttpRequestCommand.cc
  6818. * src/HttpRequestCommand.h
  6819. * src/HttpSkipResponseCommand.cc
  6820. * src/InitiateConnectionCommand.cc
  6821. * src/InitiateConnectionCommand.h
  6822. * src/OptionHandlerFactory.cc
  6823. * src/OptionHandlerImpl.h
  6824. * src/Request.cc
  6825. * src/option_processing.cc
  6826. * src/prefs.cc
  6827. * src/prefs.h
  6828. * src/usage_text.h
  6829. * test/AuthConfigFactoryTest.cc
  6830. * test/HttpRequestTest.cc
  6831. * test/OptionHandlerTest.cc
  6832. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6833. Execute choking algorithm when unchoked and interested peer is
  6834. disconected.
  6835. * src/DefaultPeerStorage.cc
  6836. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Added testcase for BtNotInterestedMessage from unchoked peer.
  6838. * test/BtNotInterestedMessageTest.cc
  6839. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6840. Execute choking algorithm when BtInterestedMessage arrives from
  6841. unchoked peer.
  6842. * src/BtInterestedMessage.cc
  6843. * src/BtInterestedMessage.h
  6844. * src/DefaultBtMessageFactory.cc
  6845. * test/BtInterestedMessageTest.cc
  6846. * test/MockPeerStorage.h
  6847. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. AuthConfigFactory is now part of DownloadEngine.
  6849. * src/AbstractProxyRequestCommand.cc
  6850. * src/AuthConfigFactory.h
  6851. * src/DownloadEngine.cc
  6852. * src/DownloadEngine.h
  6853. * src/FtpConnection.cc
  6854. * src/FtpConnection.h
  6855. * src/FtpNegotiationCommand.cc
  6856. * src/HttpConnection.cc
  6857. * src/HttpRequest.cc
  6858. * src/HttpRequest.h
  6859. * src/HttpRequestCommand.cc
  6860. * src/HttpResponse.cc
  6861. * src/HttpResponseCommand.cc
  6862. * src/HttpSkipResponseCommand.cc
  6863. * src/MultiUrlRequestInfo.cc
  6864. * src/main.cc
  6865. * test/FtpConnectionTest.cc
  6866. * test/HttpRequestTest.cc
  6867. * test/HttpResponseTest.cc
  6868. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6869. Corrected catched exception type.
  6870. * src/ServerStatMan.cc
  6871. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6872. DNSCache is now part of DownloadEngine.
  6873. * src/DNSCache.h
  6874. * src/DownloadEngine.cc
  6875. * src/DownloadEngine.h
  6876. * src/InitiateConnectionCommand.cc
  6877. * src/MultiUrlRequestInfo.cc
  6878. * test/Makefile.am
  6879. * test/Makefile.in
  6880. * test/SimpleDNSCacheTest.cc
  6881. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6882. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6883. DownloadEngine.
  6884. * src/ActivePeerConnectionCommand.cc
  6885. * src/BtSetup.cc
  6886. * src/CUIDCounter.h
  6887. * src/DHTSetup.cc
  6888. * src/DownloadCommand.cc
  6889. * src/DownloadEngine.cc
  6890. * src/DownloadEngine.h
  6891. * src/DownloadEngineFactory.cc
  6892. * src/FileAllocationDispatcherCommand.cc
  6893. * src/InitiatorMSEHandshakeCommand.cc
  6894. * src/PeerInitiateConnectionCommand.cc
  6895. * src/PeerInteractionCommand.cc
  6896. * src/PeerListenCommand.cc
  6897. * src/RequestGroup.cc
  6898. * src/StreamFileAllocationEntry.cc
  6899. * src/TrackerWatcherCommand.cc
  6900. * src/main.cc
  6901. * test/RequestGroupManTest.cc
  6902. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6903. Implemented commented code in BtSeederStateChoke
  6904. * src/BtSeederStateChoke.cc
  6905. * src/Peer.cc
  6906. * src/Peer.h
  6907. * src/PeerInteractionCommand.cc
  6908. * src/PeerSessionResource.cc
  6909. * src/PeerSessionResource.h
  6910. * test/MockBtMessageDispatcher.h
  6911. * test/PeerSessionResourceTest.cc
  6912. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6914. its object.
  6915. * src/AbstractBtMessage.cc
  6916. * src/ActivePeerConnectionCommand.cc
  6917. * src/ActivePeerConnectionCommand.h
  6918. * src/BtContextAwareCommand.cc
  6919. * src/BtContextAwareCommand.h
  6920. * src/BtExtendedMessage.cc
  6921. * src/BtExtendedMessage.h
  6922. * src/BtInterestedMessage.cc
  6923. * src/BtInterestedMessage.h
  6924. * src/BtNotInterestedMessage.cc
  6925. * src/BtNotInterestedMessage.h
  6926. * src/BtRegistry.cc
  6927. * src/BtRegistry.h
  6928. * src/BtSeederStateChoke.cc
  6929. * src/BtSetup.cc
  6930. * src/DHTGetPeersCommand.cc
  6931. * src/DHTGetPeersCommand.h
  6932. * src/DHTPeerAnnounceEntry.cc
  6933. * src/DHTPeerAnnounceEntry.h
  6934. * src/DHTPeerAnnounceStorage.cc
  6935. * src/DHTPeerAnnounceStorage.h
  6936. * src/DHTPeerLookupTask.cc
  6937. * src/DHTPeerLookupTask.h
  6938. * src/DHTSetup.cc
  6939. * src/DHTSetup.h
  6940. * src/DHTTaskFactory.h
  6941. * src/DHTTaskFactoryImpl.cc
  6942. * src/DHTTaskFactoryImpl.h
  6943. * src/DefaultBtAnnounce.cc
  6944. * src/DefaultBtInteractive.cc
  6945. * src/DefaultBtInteractive.h
  6946. * src/DefaultBtMessageDispatcher.cc
  6947. * src/DefaultBtMessageDispatcher.h
  6948. * src/DefaultBtMessageFactory.cc
  6949. * src/DefaultBtMessageFactory.h
  6950. * src/DefaultBtMessageReceiver.cc
  6951. * src/DefaultBtProgressInfoFile.cc
  6952. * src/DefaultBtProgressInfoFile.h
  6953. * src/DefaultBtRequestFactory.cc
  6954. * src/DefaultBtRequestFactory.h
  6955. * src/DefaultExtensionMessageFactory.cc
  6956. * src/DefaultExtensionMessageFactory.h
  6957. * src/DefaultPeerStorage.cc
  6958. * src/DefaultPeerStorage.h
  6959. * src/DownloadEngine.cc
  6960. * src/DownloadEngine.h
  6961. * src/InitiatorMSEHandshakeCommand.cc
  6962. * src/InitiatorMSEHandshakeCommand.h
  6963. * src/MSEHandshake.cc
  6964. * src/MSEHandshake.h
  6965. * src/Makefile.am
  6966. * src/Makefile.in
  6967. * src/PeerChokeCommand.cc
  6968. * src/PeerChokeCommand.h
  6969. * src/PeerInitiateConnectionCommand.cc
  6970. * src/PeerInitiateConnectionCommand.h
  6971. * src/PeerInteractionCommand.cc
  6972. * src/PeerInteractionCommand.h
  6973. * src/PeerObject.h
  6974. * src/PeerReceiveHandshakeCommand.cc
  6975. * src/PeerReceiveHandshakeCommand.h
  6976. * src/ReceiverMSEHandshakeCommand.cc
  6977. * src/RequestGroup.cc
  6978. * src/RequestGroup.h
  6979. * src/RequestGroupMan.cc
  6980. * src/RequestGroupMan.h
  6981. * src/SeedCheckCommand.cc
  6982. * src/SeedCheckCommand.h
  6983. * src/ShareRatioSeedCriteria.h
  6984. * src/SimpleBtMessage.cc
  6985. * src/TrackerWatcherCommand.cc
  6986. * src/TrackerWatcherCommand.h
  6987. * src/UTPexExtensionMessage.cc
  6988. * src/UTPexExtensionMessage.h
  6989. * test/BtCancelMessageTest.cc
  6990. * test/BtChokeMessageTest.cc
  6991. * test/BtExtendedMessageTest.cc
  6992. * test/BtInterestedMessageTest.cc
  6993. * test/BtNotInterestedMessageTest.cc
  6994. * test/BtPieceMessageTest.cc
  6995. * test/BtPortMessageTest.cc
  6996. * test/BtRegistryTest.cc
  6997. * test/BtRejectMessageTest.cc
  6998. * test/BtRequestMessageTest.cc
  6999. * test/DHTPeerAnnounceEntryTest.cc
  7000. * test/DHTPeerAnnounceStorageTest.cc
  7001. * test/DefaultBtMessageDispatcherTest.cc
  7002. * test/DefaultBtMessageFactoryTest.cc
  7003. * test/DefaultBtProgressInfoFileTest.cc
  7004. * test/DefaultBtRequestFactoryTest.cc
  7005. * test/DefaultExtensionMessageFactoryTest.cc
  7006. * test/MSEHandshakeTest.cc
  7007. * test/MockDHTTaskFactory.h
  7008. * test/ShareRatioSeedCriteriaTest.cc
  7009. * test/UTPexExtensionMessageTest.cc
  7010. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7011. Fixed compiler warning.
  7012. * test/UtilTest.cc
  7013. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7014. Treat Cookie object as session cookie if expiry = 0 is given.
  7015. With this change, you can specify session scoped cookies in an external
  7016. file setting expiry value to 0.
  7017. * src/Cookie.cc
  7018. * src/Cookie.h
  7019. * test/CookieParserTest.cc
  7020. * test/CookieStorageTest.cc
  7021. * test/CookieTest.cc
  7022. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7023. Changed signature of DHTMessageFactory::createResponseMessage().
  7024. Removed unused validateIDMatch.
  7025. * src/DHTMessageFactory.h
  7026. * src/DHTMessageFactoryImpl.cc
  7027. * src/DHTMessageFactoryImpl.h
  7028. * src/DHTMessageTracker.cc
  7029. * test/DHTMessageFactoryImplTest.cc
  7030. * test/MockDHTMessageFactory.h
  7031. Dropped DHT message coming from same ID of localhost.
  7032. * src/DHTMessageReceiver.cc
  7033. Rejected adding node whose ID is the same as localhost's.
  7034. * src/DHTRoutingTable.cc
  7035. * test/BtPortMessageTest.cc
  7036. * test/DHTRoutingTableTest.cc
  7037. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7038. Pool connection when redirection occurs with Content-Length = 0.
  7039. * src/HttpSkipResponseCommand.cc
  7040. * src/HttpSkipResponseCommand.h
  7041. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7042. Fixed the bug that causes time out when redirection occurs with
  7043. content-length 0.
  7044. * src/HttpResponseCommand.cc
  7045. * src/HttpSkipResponseCommand.cc
  7046. * src/HttpSkipResponseCommand.h
  7047. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Now each status legends is shown only when it appears in Download
  7049. Result. If Download Result has no item, then status legend will not
  7050. be printed.
  7051. * src/RequestGroupMan.cc
  7052. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Removed duplicate creation of OptionHandlers.
  7054. * src/option_processing.cc
  7055. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Fixed the bug that causes segmentation fault when accessing files which
  7057. don't exist or are not included in --select-file option while
  7058. validating chunk checksum.
  7059. * src/MultiDiskAdaptor.cc
  7060. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7061. Fixed compiler warning.
  7062. * test/UtilTest.cc
  7063. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Included cstdlib. This fixed the compile error with g++-4.3.2.
  7065. * src/IteratableChecksumValidator.cc
  7066. * src/IteratableChunkChecksumValidator.cc
  7067. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. * Release 0.16.2
  7069. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7070. Added Serbian translation. Updated Ukrainian translation.
  7071. Thanks to all translators.
  7072. * po/sr.po
  7073. * po/uk.po
  7074. * po/LINGUAS
  7075. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7076. Bump up version number to 0.16.2
  7077. * configure.ac
  7078. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. Added length equality test to operator== to drop a piece message
  7080. whose length does not match to the requested one.
  7081. * src/RequestSlot.cc
  7082. * test/DefaultBtMessageDispatcherTest.cc
  7083. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  7085. recieved.
  7086. In this fix, if a request larger than 16KiB length is received, aria2
  7087. disconnects the peer.
  7088. * src/BtConstants.h
  7089. * src/PeerMessageUtil.cc
  7090. * src/PeerMessageUtil.h
  7091. * test/BtRequestMessageTest.cc
  7092. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. * Release 0.16.1
  7094. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7095. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  7096. * doc/aria2c.1.txt
  7097. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7098. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  7099. Updated French, Simplified Chinese and Japanese translations.
  7100. Thanks to all translators.
  7101. en@quot and en@boldquot are also added.
  7102. * po/LINGUAS
  7103. * po/fr.po
  7104. * po/ja.po
  7105. * po/uk.po
  7106. * po/vi.po
  7107. * po/zh_CN.po
  7108. * po/zh_TW.po
  7109. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7110. Bump up version number to 0.16.1.
  7111. * configure.ac
  7112. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7113. Updated README.
  7114. * README
  7115. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  7117. not to replace '--' with em dash character.
  7118. * doc/aria2c.1.txt
  7119. * doc/makeman
  7120. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7121. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  7122. every SEC seconds.
  7123. * src/DownloadEngineFactory.cc
  7124. * src/OptionHandlerFactory.cc
  7125. * src/option_processing.cc
  7126. * src/usage_text.h
  7127. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7128. Fixed compile warning on linux-amd64
  7129. * src/FtpConnection.cc
  7130. * src/IteratableChunkChecksumValidator.cc
  7131. * src/MultiDiskAdaptor.cc
  7132. Fixed the bug that unit test fails on linux-amd64
  7133. * test/UtilTest.cc
  7134. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7135. Added --dht-file-path option to change the path to dht.dat, which is a
  7136. serialized DHT routing table.
  7137. * src/OptionHandlerFactory.cc
  7138. * src/option_processing.cc
  7139. * src/usage_text.h
  7140. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Fixed possible underflow.
  7142. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  7143. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Fixed the bug that last character in URI is not encoded.
  7145. * src/Request.cc
  7146. * test/RequestTest.cc
  7147. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Fixed the bug that referer header field contains fragment.
  7149. Now Request class removes fragment part of URI and encodes it
  7150. in Request::setUri() and setReferer().
  7151. * src/Request.h
  7152. * src/Request.cc
  7153. * test/RequestTest.cc
  7154. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7155. Added missing m4 macros.
  7156. * m4/cppunit.m4
  7157. * m4/libgcrypt.m4
  7158. * m4/libgnutls-extra.m4
  7159. * m4/libgnutls.m4
  7160. * m4/libxml2.m4
  7161. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Fixed compile error with gcc-4.4(snapshot)
  7163. * src/File.cc
  7164. * src/FtpConnection.cc
  7165. * src/OptionHandlerImpl.h
  7166. * src/Util.cc
  7167. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Removed assert()
  7169. * src/SocketBuffer.cc (SocketBuffer::send)
  7170. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7171. Changed the type of _numNewConnection to unsigned int.
  7172. * src/ActivePeerConnectionCommand.cc
  7173. * src/ActivePeerConnectionCommand.h
  7174. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7175. * Release 0.16.0
  7176. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7177. Updated doc
  7178. * README
  7179. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7180. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  7181. translations. Thanks to all translators.
  7182. * po/bg.po
  7183. * po/de.po
  7184. * po/fr.po
  7185. * po/ja.po
  7186. * po/zh_CN.po
  7187. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7188. Bump up version number to 0.16.0.
  7189. * configure.ac
  7190. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7191. Casted entry->maxConnections to int32_t for std::min<T> with T =
  7192. int32_t.
  7193. Changed the type of count to int32_t.
  7194. * src/Metalink2RequestGroup.cc
  7195. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7196. Added test for Time::elapsed(time_t).
  7197. * test/TimeTest.cc
  7198. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7199. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  7200. Util::difftv() should be used instead.
  7201. * src/TimeA2.cc
  7202. * src/TimeA2.h
  7203. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7204. Made socket for dht connections non-blocking
  7205. * src/DHTAbstractMessage.cc
  7206. * src/DHTAbstractMessage.h
  7207. * src/DHTConnection.h
  7208. * src/DHTConnectionImpl.cc
  7209. * src/DHTConnectionImpl.h
  7210. * src/DHTMessage.h
  7211. * src/DHTMessageDispatcherImpl.cc
  7212. * src/DHTMessageDispatcherImpl.h
  7213. * src/DHTUnknownMessage.cc
  7214. * src/DHTUnknownMessage.h
  7215. * src/SocketCore.cc
  7216. * src/SocketCore.h
  7217. * test/MockDHTMessage.h
  7218. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. Changed the type of offset to int.
  7220. * src/ParameterizedStringParser.cc
  7221. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Made getAsInt() return int32_t
  7223. * src/Option.h
  7224. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7225. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  7226. build.
  7227. * configure.ac
  7228. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Use sqlite3_open if sqlite3_open_v2 is not available.
  7230. * src/Sqlite3MozCookieParser.cc
  7231. * src/Sqlite3MozCookieParser.h
  7232. * m4/sqlite3.m4
  7233. * test/Sqlite3MozCookieParserTest.cc
  7234. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  7236. * src/BtPieceMessage.cc
  7237. * src/DHTPeerAnnounceStorage.cc
  7238. * src/DefaultPieceStorage.cc
  7239. * src/DownloadCommand.cc
  7240. * src/DownloadEngine.cc
  7241. * src/FtpConnection.cc
  7242. * src/PeerConnection.cc
  7243. * src/PeerMessageUtil.cc
  7244. * src/RequestGroup.cc
  7245. * src/RequestGroupMan.cc
  7246. * src/SimpleBtMessage.cc
  7247. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7248. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  7249. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  7250. * src/AbstractDiskWriter.cc
  7251. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7252. Don't set Request::supportsPersistentConnection() in HttpConnection
  7253. since this code is also used in AbstractProxyResponseCommand.
  7254. Moved those code to HttpResponse.
  7255. * src/HttpResponse.cc
  7256. * src/HttpResponse.h
  7257. * src/HttpConnection.cc
  7258. * src/HttpConnection.h
  7259. * src/HttpResponseCommand.cc
  7260. * test/HttpResponseTest.cc
  7261. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7262. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  7263. The configuration is minimum: no torrent, no metalink, so there may be
  7264. other compile error on their code.
  7265. * src/a2netcompat.h
  7266. * src/File.cc
  7267. * src/File.h
  7268. * src/SocketCore.cc
  7269. * src/SocketCore.h
  7270. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7271. Made a socket of incoming peer non-blocking.
  7272. * src/PeerListenCommand.cc
  7273. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7274. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  7275. whole message data is not sent in one send() call.
  7276. * src/BtPieceMessage.cc
  7277. * src/BtPieceMessage.h
  7278. * src/PeerConnection.cc
  7279. * src/PeerConnection.h
  7280. * src/SimpleBtMessage.cc
  7281. * src/SimpleBtMessage.h
  7282. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7283. Fixed the bug that aria2 downloads faster than max-download-limit when
  7284. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  7285. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  7286. , instead of sum of them.
  7287. * src/ActivePeerConnectionCommand.cc
  7288. * src/DefaultBtInteractive.cc
  7289. * src/DownloadCommand.cc
  7290. * src/PeerInteractionCommand.cc
  7291. * src/PeerReceiveHandshakeCommand.cc
  7292. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7293. Fixed the bug that HTTPS download fails.
  7294. * src/AbstractCommand.cc
  7295. * src/AbstractCommand.h
  7296. * src/DownloadCommand.cc
  7297. * src/FtpConnection.cc
  7298. * src/HttpConnection.cc
  7299. * src/HttpRequestCommand.cc
  7300. * src/HttpResponseCommand.cc
  7301. * src/HttpSkipResponseCommand.cc
  7302. * src/MSEHandshake.cc
  7303. * src/PeerConnection.cc
  7304. * src/SocketCore.cc
  7305. * src/SocketCore.h
  7306. Fixed the bug that aria2 doesn't download whole content body and cannot
  7307. reuse connection if chunked transfer encoding and gzip content encoding
  7308. are set.
  7309. * src/DownloadCommand.cc
  7310. * src/HttpSkipResponseCommand.cc
  7311. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7312. Updated man page.
  7313. * doc/aria2c.1.txt
  7314. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. When error occurred while aria2 was parsing an .aria2.conf file, print
  7316. the usage of the option that caused error.
  7317. * src/option_processing.cc
  7318. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Fixed compile error on OptionHandlerException
  7320. * src/Makefile.am
  7321. * src/OptionHandlerException.cc
  7322. * src/OptionHandlerException.h
  7323. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7324. Moved message of the error to OptionHandlerException.h
  7325. * src/NameMatchOptionHandler.h
  7326. * src/OptionHandlerException.h
  7327. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7328. When error occurs while aria2 is parsing an command-line option, print
  7329. the usage of the option.
  7330. * src/Makefile.am
  7331. * src/NameMatchOptionHandler.h
  7332. * src/OptionHandlerException.h
  7333. * src/option_processing.cc
  7334. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Reverted previous change.
  7336. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  7337. username is not in URI.
  7338. * src/HttpRequest.cc
  7339. * src/Request.cc
  7340. * test/HttpRequestTest.cc
  7341. * test/RequestTest.cc
  7342. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7343. Now colon is required for username and password in FTP URL, like:
  7344. ftp://username:password@host.
  7345. If colon is not there, aria2 don't parse it as a username. For example,
  7346. aria2 don't retrieve username from ftp://username@host.
  7347. This fix was made in order to login FTP server via non-transparent ftp
  7348. proxy.
  7349. * src/Request.cc
  7350. * test/RequestTest.cc
  7351. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7352. Use netrc for HTTP.
  7353. Now FTP user/password is sent in Authorization header when
  7354. --ftp-via-http-proxy=get is given.
  7355. * src/AuthConfigFactory.cc
  7356. * src/HttpRequest.cc
  7357. * src/HttpRequest.h
  7358. * src/NetrcAuthResolver.cc
  7359. * src/NetrcAuthResolver.h
  7360. * src/OptionHandlerFactory.cc
  7361. * src/option_processing.cc
  7362. * src/prefs.cc
  7363. * src/prefs.h
  7364. * test/AuthConfigFactoryTest.cc
  7365. * test/HttpRequestTest.cc
  7366. * test/NetrcAuthResolverTest.cc
  7367. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7368. Issue PWD command first and get working directory and use it as a prefix
  7369. for CWD command.
  7370. * src/DownloadEngine.cc
  7371. * src/DownloadEngine.h
  7372. * src/FtpConnection.cc
  7373. * src/FtpConnection.h
  7374. * src/FtpFinishDownloadCommand.cc
  7375. * src/FtpInitiateConnectionCommand.cc
  7376. * src/FtpNegotiationCommand.cc
  7377. * src/FtpNegotiationCommand.h
  7378. * test/FtpConnectionTest.cc
  7379. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. Removed default user/pass for FTP user/pass, since it should not have
  7381. precedence over netrc configuration by default.
  7382. * src/OptionHandlerFactory.cc
  7383. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7384. Added debug log for socket event.
  7385. * src/AbstractCommand.cc
  7386. * src/PeerAbstractCommand.cc
  7387. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7388. Log microseconds.
  7389. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7390. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Replaced HelpItem.cc with OptionHandler.cc.
  7392. * po/POTFILES.in
  7393. Updated po files with 'make update-po'
  7394. * po/aria2c.pot
  7395. * po/*.po
  7396. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7397. Removed possible values from the text.
  7398. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7399. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7400. Removed unused preferences:
  7401. PREF_NO_PREALLOCATION
  7402. PREF_STDOUT_LOG
  7403. PREF_TRACKER_MAX_TRIES
  7404. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7405. PREF_MIN_SEGMENT_SIZE
  7406. * src/option_processing.cc
  7407. * src/prefs.cc
  7408. * src/prefs.h
  7409. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7410. Integrated HelpItem into OptionParser to ease the workload for adding
  7411. new options. Removed default value from usage text.
  7412. * src/HelpItem.cc: Removed.
  7413. * src/HelpItem.h: Removed.
  7414. * src/HelpItemFactory.cc: Removed.
  7415. * src/HelpItemFactory.h: Removed.
  7416. * src/Makefile.am
  7417. * src/Makefile.in
  7418. * src/NameMatchOptionHandler.h
  7419. * src/OptionHandler.cc
  7420. * src/OptionHandler.h
  7421. * src/OptionHandlerFactory.cc
  7422. * src/OptionHandlerImpl.h
  7423. * src/OptionParser.cc
  7424. * src/OptionParser.h
  7425. * src/TagContainer.cc: Removed.
  7426. * src/TagContainer.h: Removed.
  7427. * src/TaggedItem.cc: Removed.
  7428. * src/TaggedItem.h: Removed.
  7429. * src/main.cc
  7430. * src/option_processing.cc
  7431. * src/usage_text.h
  7432. * src/version_usage.cc
  7433. * test/HelpItemTest.cc: Removed.
  7434. * test/Makefile.am
  7435. * test/Makefile.in
  7436. * test/OptionHandlerTest.cc
  7437. * test/OptionParserTest.cc
  7438. * test/TagContainerTest.cc: Removed.
  7439. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7440. Moved `TransferStat stat = ...' to inside the `if' clause.
  7441. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7442. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7443. Fixed the bug that a block in a piece is requested when same block is
  7444. already requested to the same peer in end game mode.
  7445. * src/BtRequestFactory.h
  7446. * src/DefaultBtInteractive.cc
  7447. * src/DefaultBtRequestFactory.cc
  7448. * src/DefaultBtRequestFactory.h
  7449. * src/DefaultPieceStorage.cc
  7450. * src/DefaultPieceStorage.h
  7451. * src/PieceStorage.h
  7452. * src/UnknownLengthPieceStorage.cc
  7453. * src/UnknownLengthPieceStorage.h
  7454. * test/DefaultBtRequestFactoryTest.cc
  7455. * test/DefaultPieceStorageTest.cc
  7456. * test/MockBtRequestFactory.h
  7457. * test/MockPieceStorage.h
  7458. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7459. Removed _uploadLength and _downloadLength from PeerSessionResource
  7460. and use PeerStat::_sessionUploadLength and
  7461. PeerStat::_sessionDownloadLength.
  7462. * src/PeerSessionResource.cc
  7463. * src/PeerSessionResource.h
  7464. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7465. Fixed the bug that prefixLength of split bucket which doesn't include
  7466. local node ID is incremented.
  7467. * src/DHTBucket.cc
  7468. * src/DHTBucket.h
  7469. * test/DHTBucketTest.cc
  7470. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Added cookies.sqlite to EXTRA_DIST
  7472. * test/Makefile.am
  7473. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Added Turkish translation. Updated French, German, Russian and
  7475. Simplified Chinese translations. Thanks to all translators.
  7476. * po/LINGUAS
  7477. * po/de.po
  7478. * po/fr.po
  7479. * po/ru.po
  7480. * po/tr.po
  7481. * po/zh_CN.po
  7482. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Added deliminating text to the beginning of the log so that one can find
  7484. where the log starts easily.
  7485. * src/main.cc
  7486. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7487. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7488. to fix compile error when async DNS is not enabled by configuration.
  7489. * src/AbstractCommand.cc
  7490. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7491. If establishing conneciton to a server is failed, then mark error on
  7492. its ServerStat.
  7493. Added the cause of error to log when error event occurred.
  7494. Moved message string to message.h for translation.
  7495. * src/AbstractCommand.cc
  7496. * src/AbstractCommand.h
  7497. * src/FtpNegotiationCommand.cc
  7498. * src/HttpRequestCommand.cc
  7499. * src/PeerAbstractCommand.cc
  7500. * src/message.h
  7501. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7502. Added the function to get error message from socket.
  7503. * src/SocketCore.cc
  7504. * src/SocketCore.h
  7505. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7507. * src/RequestGroupMan.cc
  7508. * src/RequestGroupMan.h
  7509. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. If error event is received in epoll, then abort download immediately.
  7511. * src/AbstractCommand.cc
  7512. * src/Command.cc
  7513. * src/Command.h
  7514. * src/DownloadEngine.cc
  7515. * src/PeerAbstractCommand.cc
  7516. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7517. Added usage message for --uri-selector, --server-stat-of,
  7518. --server-stat-in, --server-stat-timeout options.
  7519. * src/HelpItemFactory.cc
  7520. * src/usage_text.h
  7521. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7522. Added upper limit of FTP response buffer. The current implementation
  7523. uses 4096bytes as a limit.
  7524. * src/FtpConnection.cc
  7525. * src/FtpConnection.h
  7526. * test/FtpConnectionTest.cc
  7527. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Use non-blocking socket for TCP communication to avoid possible
  7529. blocking due to buffer full.
  7530. * src/AbstractProxyRequestCommand.cc
  7531. * src/FtpConnection.cc
  7532. * src/FtpConnection.h
  7533. * src/FtpNegotiationCommand.cc
  7534. * src/FtpNegotiationCommand.h
  7535. * src/HttpConnection.cc
  7536. * src/HttpConnection.h
  7537. * src/HttpRequestCommand.cc
  7538. * src/InitiatorMSEHandshakeCommand.cc
  7539. * src/InitiatorMSEHandshakeCommand.h
  7540. * src/MSEHandshake.cc
  7541. * src/MSEHandshake.h
  7542. * src/Makefile.am
  7543. * src/PeerConnection.cc
  7544. * src/PeerConnection.h
  7545. * src/PeerInteractionCommand.cc
  7546. * src/PeerListenCommand.cc
  7547. * src/ReceiverMSEHandshakeCommand.cc
  7548. * src/ReceiverMSEHandshakeCommand.h
  7549. * src/SocketBuffer.cc
  7550. * src/SocketBuffer.h
  7551. * src/SocketCore.cc
  7552. * src/SocketCore.h
  7553. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7554. Call setStatusRealtime() in constructor.
  7555. * src/RealtimeCommand.cc
  7556. * src/RealtimeCommand.h
  7557. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. Call Download::setNoWait(true) to execute newly created command without
  7559. a pause.
  7560. * src/AbstractCommand.cc
  7561. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7563. found' error from HTTP/FTP server NUM times without getting single
  7564. bytes of data, then force the download to fail.
  7565. Basically aria2 tris all URIs available. So if long list of URIs are
  7566. specified in Metalink, then aria2 will take a long time to fail
  7567. eventually if all URIs are outdated. This option eases this situation
  7568. to limit the number of servers to try.
  7569. * src/FtpNegotiationCommand.cc
  7570. * src/HelpItemFactory.cc
  7571. * src/HttpResponseCommand.cc
  7572. * src/OptionHandlerFactory.cc
  7573. * src/PeerStat.h
  7574. * src/RequestGroup.cc
  7575. * src/RequestGroup.h
  7576. * src/SegmentMan.cc
  7577. * src/SegmentMan.h
  7578. * src/option_processing.cc
  7579. * src/prefs.cc
  7580. * src/prefs.h
  7581. * src/usage_text.h
  7582. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7583. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7584. response even if more than one response is in it.
  7585. * src/FtpConnection.cc
  7586. * src/FtpConnection.h
  7587. * test/FtpConnectionTest.cc
  7588. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. Merged from stable-0.15
  7590. * m4/libcares.m4
  7591. Use pkg-config
  7592. * m4/sqlite3.m4
  7593. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7594. Removed unnecessary if statement.
  7595. * src/DefaultPieceStorage.cc (initPieceStorage)
  7596. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Added --connect-timeout option to specify connect timeout in seconds.
  7598. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7599. connecting to BitTorrent peer is not controlled by this option.
  7600. * src/AbstractProxyRequestCommand.cc
  7601. * src/FtpNegotiationCommand.cc
  7602. * src/HelpItemFactory.cc
  7603. * src/HttpRequestCommand.cc
  7604. * src/OptionHandlerFactory.cc
  7605. * src/option_processing.cc
  7606. * src/prefs.cc
  7607. * src/prefs.h
  7608. * src/usage_text.h
  7609. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7610. Added help message for -R option.
  7611. * src/HelpItemFactory.cc
  7612. * src/usage_text.h
  7613. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Added the message that the time is in local time zone.
  7615. * src/RequestGroup.cc
  7616. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7617. Implemented the ability to get timestamp from remote FTP server using
  7618. MDTM command described in RFC3659.
  7619. * src/FtpConnection.cc
  7620. * src/FtpConnection.h
  7621. * src/FtpNegotiationCommand.cc
  7622. * src/FtpNegotiationCommand.h
  7623. * test/FtpConnectionTest.cc
  7624. * test/Makefile.am
  7625. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Implemented the ability to get timestamp from remote HTTP server and
  7627. apply it to local file. To enable this feature, --remote-time option
  7628. is added. No usage text has been written yet.
  7629. If several servers returns difference timestamp, then aria2 uses latest
  7630. one.
  7631. * src/CopyDiskAdaptor.cc
  7632. * src/CopyDiskAdaptor.h
  7633. * src/DirectDiskAdaptor.cc
  7634. * src/DirectDiskAdaptor.h
  7635. * src/DiskAdaptor.h
  7636. * src/File.cc
  7637. * src/File.h
  7638. * src/HttpHeader.cc
  7639. * src/HttpHeader.h
  7640. * src/HttpResponse.cc
  7641. * src/HttpResponse.h
  7642. * src/HttpResponseCommand.cc
  7643. * src/HttpResponseCommand.h
  7644. * src/MultiDiskAdaptor.cc
  7645. * src/MultiDiskAdaptor.h
  7646. * src/OptionHandlerFactory.cc
  7647. * src/RequestGroup.cc
  7648. * src/RequestGroup.h
  7649. * src/RequestGroupMan.cc
  7650. * src/option_processing.cc
  7651. * src/prefs.cc
  7652. * src/prefs.h
  7653. * test/CopyDiskAdaptorTest.cc
  7654. * test/FileTest.cc
  7655. * test/Makefile.am
  7656. * test/Makefile.in
  7657. * test/MultiDiskAdaptorTest.cc
  7658. * test/TestUtil.cc
  7659. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Fixed the bug that DiskWriterEntry is not created when its
  7661. FileEntry.isRequested() is false and it doesn't share a piece with
  7662. other FileEntries that are requested. This bug causes segmentation fault
  7663. in the end.
  7664. * src/MultiDiskAdaptor.cc
  7665. * src/MultiDiskAdaptor.h
  7666. * src/MultiFileAllocationIterator.cc
  7667. * test/MultiDiskAdaptorTest.cc
  7668. * test/MultiFileAllocationIteratorTest.cc
  7669. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7671. called if the number of file entries are greater than max open files.
  7672. * src/AbstractSingleDiskAdaptor.cc
  7673. * src/AbstractSingleDiskAdaptor.h
  7674. * src/DiskAdaptor.h
  7675. * src/MultiDiskAdaptor.cc
  7676. * src/MultiDiskAdaptor.h
  7677. * test/MultiDiskAdaptorTest.cc
  7678. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7679. Added a constuctor that receives struct timeval.
  7680. Added operator<.
  7681. * src/TimeA2.cc
  7682. * src/TimeA2.h
  7683. * test/TimeTest.cc
  7684. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7685. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7686. * src/CookieParser.cc
  7687. * test/CookieParserTest.cc
  7688. * test/HttpResponseTest.cc
  7689. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7690. Implmented the functions to parse date.
  7691. * src/TimeA2.cc
  7692. * src/TimeA2.h
  7693. * test/TimeTest.cc
  7694. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7695. Added "Firefox3 Cookie" feature to FeatureConfig
  7696. * src/FeatureConfig.cc
  7697. * src/FeatureConfig.h
  7698. * test/FeatureConfigTest.cc
  7699. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7700. Bump up version number to 0.16.0b
  7701. * configure.ac
  7702. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. Use pkg-config if is is available.
  7704. * m4/openssl.m4
  7705. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7706. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7707. * src/BtAnnounce.h
  7708. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7709. If an error occurred with a URI, remove identical URI from remaining
  7710. URI list because it is likely that same error occurred in the end and it
  7711. is waste of time.
  7712. * src/AbstractCommand.cc
  7713. * src/RequestGroup.cc
  7714. * src/RequestGroup.h
  7715. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Removed wrong comment.
  7717. * src/DefaultPeerStorage.cc
  7718. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7720. Added return value of getpid() to argument of srand() to achieve more
  7721. randomized value.
  7722. * src/SimpleRandomizer.cc
  7723. * src/SimpleRandomizer.h
  7724. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7725. Contact tracker frequently when the number of connections are 0 and
  7726. download is not finished yet.
  7727. * src/ActivePeerConnectionCommand.cc
  7728. * src/BtAnnounce.h
  7729. * src/DefaultBtAnnounce.cc
  7730. * src/DefaultBtAnnounce.h
  7731. * test/MockBtAnnounce.h
  7732. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7733. Moved threshold values to UTPexExtensionMessage.
  7734. * src/DefaultBtInteractive.cc
  7735. * src/Peer.cc
  7736. * src/Peer.h
  7737. * src/UTPexExtensionMessage.cc
  7738. * src/UTPexExtensionMessage.h
  7739. * test/UTPexExtensionMessageTest.cc
  7740. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7741. Added _incoming member to Peer class and made it true if the peer
  7742. initiated connection. Don't add those peer to UTPex message.
  7743. If extended handshake is received, assign _incoming to false.
  7744. * src/DefaultBtInteractive.cc
  7745. * src/HandshakeExtensionMessage.cc
  7746. * src/Peer.cc
  7747. * src/Peer.h
  7748. * src/PeerListenCommand.cc
  7749. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7751. Encoding Decoder. Removed size threshold for turning off on the fly
  7752. inflation because resulting file may or may not be inflated depending
  7753. on the file size and I think it is not expected by users.
  7754. This change fixes segmentation fault when Metalink file contains gzipped
  7755. file and its filesize is provided.
  7756. * src/HttpResponseCommand.cc
  7757. * src/HttpResponseCommand.h
  7758. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7759. Made Cookie immutable.
  7760. * src/Cookie.cc
  7761. * src/Cookie.h
  7762. * src/CookieParser.cc
  7763. * src/CookieParser.h
  7764. * src/CookieStorage.cc
  7765. * test/CookieParserTest.cc
  7766. * test/CookieStorageTest.cc
  7767. * test/NsCookieParserTest.cc
  7768. * test/Sqlite3MozCookieParserTest.cc
  7769. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7770. Removed CookieBox, CookieBoxFactory.
  7771. * src/CookieBox.cc
  7772. * src/CookieBox.h
  7773. * src/CookieBoxFactory.cc
  7774. * src/CookieBoxFactory.h
  7775. * src/Makefile.am
  7776. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. Use CookieStorage class instead of CookieBox class.
  7778. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7779. * src/AbstractProxyRequestCommand.cc
  7780. * src/CookieStorage.cc
  7781. * src/DownloadEngine.cc
  7782. * src/DownloadEngine.h
  7783. * src/HttpConnection.cc
  7784. * src/HttpConnection.h
  7785. * src/HttpRequest.cc
  7786. * src/HttpRequest.h
  7787. * src/HttpRequestCommand.cc
  7788. * src/HttpResponse.cc
  7789. * src/HttpResponseCommand.cc
  7790. * src/HttpSkipResponseCommand.cc
  7791. * src/Makefile.am
  7792. * src/MultiUrlRequestInfo.cc
  7793. * src/Request.cc
  7794. * src/Request.h
  7795. * src/main.cc
  7796. * test/AllTest.cc
  7797. * test/CookieStorageTest.cc
  7798. * test/CookieTest.cc
  7799. * test/HttpRequestTest.cc
  7800. * test/HttpResponseTest.cc
  7801. * test/Makefile.am
  7802. * test/NsCookieParserTest.cc
  7803. * test/Sqlite3MozCookieParserTest.cc
  7804. * test/nscookietest.txt
  7805. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Updated
  7807. * test/Cookies.sqlite
  7808. * test/nscookietest.txt
  7809. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7810. Added tests for CookieStorage::load()
  7811. * test/CookieStorageTest.cc
  7812. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7813. Added CookieStorage class which is based on RFC2109 and manages cookies
  7814. more strictly than CookieBox and CookieBoxFactory class.
  7815. * src/CookieStorage.cc
  7816. * src/CookieStorage.h
  7817. * src/Cookie.cc
  7818. * src/Cookie.h
  7819. * test/CookieStorageTest.cc
  7820. * test/CookieTest.cc
  7821. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7822. Fixed the bug that commands are created more than the number of pieces.
  7823. * src/RequestGroup.cc
  7824. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7825. Fixed infinite loop bug in FTP when SIZE command failed.
  7826. * src/FtpNegotiationCommand.cc
  7827. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Removed DirectDiskAdaptorTest.h
  7829. * test/Makefile.am
  7830. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7831. Fixed chunk checksum validation cannot detect trailing garbage data.
  7832. BUG#2074141
  7833. * src/AbstractSingleDiskAdaptor.cc
  7834. * src/AbstractSingleDiskAdaptor.h
  7835. * src/CheckIntegrityEntry.cc
  7836. * src/CheckIntegrityEntry.h
  7837. * src/DiskAdaptor.h
  7838. * src/MultiDiskAdaptor.cc
  7839. * src/MultiDiskAdaptor.h
  7840. * src/RequestGroup.cc
  7841. * test/DirectDiskAdaptorTest.cc
  7842. * test/MultiDiskAdaptorTest.cc
  7843. * test/TestUtil.cc
  7844. * test/TestUtil.h
  7845. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7846. Bump up version number of dht.dat file to 3. In version 3 format, time
  7847. is stored in 64bit, network byte order.
  7848. New build can load old format(version 2) but it saves the file in new
  7849. format. It means once you used new build, your dht.dat becomes
  7850. incompatible with older build.
  7851. * src/DHTRoutingTableDeserializer.cc
  7852. * src/DHTRoutingTableSerializer.cc
  7853. * test/DHTRoutingTableSerializerTest.cc
  7854. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7855. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7856. * test/Makefile.am
  7857. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7858. Bump up version number of .aria2 control file to 0001.
  7859. New aria2 can still load version 0000 file but it saves the file in
  7860. version 0001 format. It means that new aria2 can resume download
  7861. started by old aria2 but the opposite is not true.
  7862. * src/DefaultBtProgressInfoFile.cc
  7863. * src/DefaultBtProgressInfoFile.h
  7864. * test/DefaultBtProgressInfoFileTest.cc
  7865. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Added ntoh64 and hton64 as inline functions.
  7867. * src/Util.cc
  7868. * test/UtilTest.cc
  7869. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7870. Added sqlite3 depenency and Firefox3 cookie support.
  7871. * README
  7872. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7873. State that firefox3 cookie is supported explicitly in the usage.
  7874. * src/usage_text.h
  7875. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7876. Externalized message.
  7877. * src/RequestGroupMan.cc
  7878. * src/message.h
  7879. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. Save temporary file first and rename to the destination on success.
  7881. Added test cases.
  7882. * src/RequestGroupMan.cc
  7883. * test/RequestGroupManTest.cc
  7884. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7885. Fixed the bug that the number of connected peer is exceeding the limit
  7886. (55 by default) in seeding mode.
  7887. Multiplied 0.8 to _maxUploadSpeedLimit.
  7888. * src/ActivePeerConnectionCommand.cc
  7889. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7890. Clear table item.
  7891. * src/Dictionary.cc
  7892. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7893. Fixed error handling of lseek.
  7894. * src/AbstractDiskWriter.cc
  7895. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7896. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7897. style cookie file.
  7898. * src/usage_text.h
  7899. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7900. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7901. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7902. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7903. * src/Util.cc
  7904. * src/Util.h
  7905. * src/CookieParser.cc
  7906. * test/UtilTest.cc
  7907. * test/CookieParserTest.cc
  7908. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7909. Separate the implementation to load old mozilla format of cookie to
  7910. NsCookieParser class.
  7911. * src/CookieBoxFactory.cc
  7912. * src/CookieBoxFactory.h
  7913. * src/NsCookieParser.cc
  7914. * src/NsCookieParser.h
  7915. * test/NsCookieParserTest.cc
  7916. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Made parse() const
  7918. * src/Sqlite3MozCookieParser.cc
  7919. * src/Sqlite3MozCookieParser.h
  7920. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7921. Added firefox3 cookie support based on the patch submitted by
  7922. tizianomueller.
  7923. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7924. this functionality.
  7925. * configure.ac
  7926. * m4/sqlite3.m4
  7927. * src/CookieBoxFactory.cc
  7928. * src/CookieBoxFactory.h
  7929. * src/Makefile.am
  7930. * src/Makefile.in
  7931. * src/Sqlite3MozCookieParser.cc
  7932. * src/Sqlite3MozCookieParser.h
  7933. * src/main.cc
  7934. * test/CookieBoxFactoryTest.cc
  7935. * test/Makefile.am
  7936. * test/Makefile.in
  7937. * test/Sqlite3MozCookieParserTest.cc
  7938. * test/badcookies.sqlite
  7939. * test/cookies.sqlite
  7940. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Added Danish and Greek translations.
  7942. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7943. Great thanks to all translators.
  7944. * po/LINGUAS
  7945. * po/el.po
  7946. * po/da.po
  7947. * po/es.po
  7948. * po/ca.po
  7949. * po/nn.po
  7950. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7951. Fixed man page: --follow-bittorrent should be --follow-torrent
  7952. * doc/aria2c.1.txt
  7953. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7954. Fixed: numCommand is less than the value specified in -C option.
  7955. * src/RequestGroup.cc
  7956. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7957. Fixed occasional assertion failure in PieceSegment.
  7958. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7959. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7960. creation of duplicate segments and one of the segment was finished then
  7961. assertion failure was caused.
  7962. * src/SegmentMan.cc
  7963. * test/SegmentManTest.cc
  7964. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Added options to load/save the server's performance/status to a file
  7966. and the timeout to drop their data.
  7967. --server-stat-of=FILE specifies the file to which performance data
  7968. is saved.
  7969. --server-stat-if=FILE specifies the file to read previously saved
  7970. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7971. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7972. TIMEOUT is specified in seconds and the default value is 24hours.
  7973. * src/MultiUrlRequestInfo.cc
  7974. * src/OptionHandlerFactory.cc
  7975. * src/RequestGroupMan.cc
  7976. * src/RequestGroupMan.h
  7977. * src/ServerStatMan.cc
  7978. * src/ServerStatMan.h
  7979. * src/option_processing.cc
  7980. * src/prefs.cc
  7981. * src/prefs.h
  7982. * test/ServerStatManTest.cc
  7983. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7984. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7985. * src/ServerStatMan.cc
  7986. * src/ServerStatMan.h
  7987. * test/ServerStatManTest.cc
  7988. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7989. Implemented ServerStatMan::load(...) function and its test case.
  7990. * src/ServerStat.cc
  7991. * src/ServerStat.h
  7992. * src/ServerStatMan.cc
  7993. * test/ServerStatManTest.cc
  7994. * test/ServerStatTest.cc
  7995. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7996. Use time_t instead of int32_t. Use int64_t where milli second is
  7997. expected.
  7998. * src/TimeA2.cc
  7999. * src/TimeA2.h
  8000. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8001. Implemented ServerStatMan::save(...) function and its test case.
  8002. * src/ServerStat.cc
  8003. * src/ServerStat.h
  8004. * src/ServerStatMan.cc
  8005. * src/ServerStatMan.h
  8006. * test/ServerStatManTest.cc
  8007. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Now aria2 uses name attribute in Metalink as local filename in
  8009. BitTorrent downloads. BUG#2033999
  8010. * src/BtContext.h
  8011. * src/BtDependency.cc
  8012. * src/DefaultBtContext.cc
  8013. * src/DefaultBtContext.h
  8014. * src/SingleFileDownloadContext.cc
  8015. * src/SingleFileDownloadContext.h
  8016. * test/BtDependencyTest.cc
  8017. * test/DefaultBtContextTest.cc
  8018. * test/MockBtContext.h
  8019. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8020. Added AC_C_BIGENDIAN
  8021. * src/configure.ac
  8022. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8023. Limited numCommand less than or equal to the number of piece.
  8024. * src/RequestGroup.cc
  8025. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8026. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  8027. directive.
  8028. * test/DefaultPieceStorageTest.cc
  8029. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8030. Fixed memory leak in test code
  8031. * test/AnnounceListTest.cc
  8032. * test/DefaultPeerListProcessorTest.cc
  8033. * test/DefaultPeerStorageTest.cc
  8034. * test/MetaFileUtilTest.cc
  8035. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8036. Fixed wrong argument passing to BitfieldMan::isBitSet()
  8037. * src/DefaultPieceStorage.cc
  8038. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8039. Initialized _directIOAllowed
  8040. * src/MultiDiskAdaptor.cc
  8041. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8042. Fixed memory leak
  8043. * src/GZipDecoder.cc
  8044. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8045. Fixed memory leak
  8046. * src/MetalinkParserStateMachine.cc
  8047. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8048. Fixed memory leak
  8049. * src/Dictionary.cc
  8050. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Fixed memory leak
  8052. * src/IteratableChunkChecksumValidator.h
  8053. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8054. Fixed unmatched malloc/free.
  8055. * src/IteratableChunkChecksumValidator.cc
  8056. * src/IteratableChecksumValidator.cc
  8057. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8058. Removed max chunk size check. This change fixes BUG#2040169
  8059. * src/ChunkedDecoder.cc
  8060. * src/ChunkedDecoder.h
  8061. * test/ChunkedDecoderTest.cc
  8062. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8063. Implemented download speed based URI selection algorithm.
  8064. Introduced new option --uri-selector.
  8065. If --uri-selector=feedback is given, aria2 uses download speed observed
  8066. in the previous downloads and chooses fastest server in the URI list.
  8067. Currently at most 10 URIs are considered to introduce randomeness for
  8068. finding better servers. The speed is average download speed in the
  8069. downloads.
  8070. On the other hand, if --uri-selector=inorder is given, which is default,
  8071. URI is tried in order in URI list.
  8072. The usage text for the new option has not been written yet.
  8073. * src/AbstractCommand.cc
  8074. * src/DownloadCommand.cc
  8075. * src/DownloadEngine.cc
  8076. * src/DownloadEngineFactory.cc
  8077. * src/InOrderURISelector.cc
  8078. * src/InOrderURISelector.h
  8079. * src/OptionHandlerFactory.cc
  8080. * src/PeerStat.h
  8081. * src/RequestGroup.cc
  8082. * src/RequestGroup.h
  8083. * src/RequestGroupMan.cc
  8084. * src/RequestGroupMan.h
  8085. * src/SegmentMan.cc
  8086. * src/SegmentMan.h
  8087. * src/ServerStat.cc
  8088. * src/ServerStat.h
  8089. * src/ServerStatMan.cc
  8090. * src/ServerStatMan.h
  8091. * src/ServerStatURISelector.cc
  8092. * src/ServerStatURISelector.h
  8093. * src/URISelector.h
  8094. * src/option_processing.cc
  8095. * src/prefs.cc
  8096. * src/prefs.h
  8097. * test/InOrderURISelectorTest.cc
  8098. * test/RequestGroupManTest.cc
  8099. * test/ServerStatManTest.cc
  8100. * test/ServerStatURISelectorTest.cc
  8101. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8102. * Release 0.15.1+2
  8103. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. Bump up version number to 0.15.1+2
  8105. * configure.ac
  8106. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8107. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  8108. * m4/aria2_arg.m4
  8109. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8110. * Release 0.15.1+1
  8111. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Bump up version number to 0.15.1+1
  8113. * configure.ac
  8114. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Fixed the bug that causes segmentaion fault when resuming download
  8116. using metalink without size tag. Reproducible only using HTTP URI.
  8117. * src/HttpResponseCommand.cc
  8118. * src/FtpNegotiationCommand.cc
  8119. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. * Release 0.15.1
  8121. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Updated Bulgarian and French translations, thanks to all translators.
  8123. * po/bg.po
  8124. * po/fr.po
  8125. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Bump up version number to 0.15.1
  8127. * configure.ac
  8128. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. Avoid repeated call of gettimeofday() when calculating speed.
  8130. * src/SpeedCalc.cc
  8131. * src/SpeedCalc.h
  8132. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8133. Removed writable check when socket's send buffer is full in BitTorrent
  8134. downloads to lower CPU usage.
  8135. * src/PeerInteractionCommand.cc
  8136. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Fixed broken gzip inflation.
  8138. Turn off segmented downloading if gzip content is smaller than or equal
  8139. to 1MiB and inflate the data on the fly, because HTTP response header
  8140. doesn't contain the length of inflated file we can't determin where
  8141. the chunk of data should be written.
  8142. On the other hand, if gzip content is larger than 1MB, then turn off
  8143. on the fly inflation, because some servers returns "content-type: gzip"
  8144. for *.tgz, *.gz files.
  8145. * src/DownloadCommand.cc
  8146. * src/HttpResponseCommand.cc
  8147. * src/HttpResponseCommand.h
  8148. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8149. Applied tizianomueller's patch to fix compile error.
  8150. * test/BitfieldManTest.cc
  8151. * test/BtRequestMessageTest.cc
  8152. * test/DefaultBtContextTest.cc
  8153. * test/DefaultDiskWriterTest.cc
  8154. * test/DefaultPieceStorageTest.cc
  8155. * test/HttpHeaderProcessorTest.cc
  8156. * test/HttpResponseTest.cc
  8157. * test/Metalink2RequestGroupTest.cc
  8158. * test/MetalinkParserControllerTest.cc
  8159. * test/MetalinkProcessorTest.cc
  8160. * test/PeerSessionResourceTest.cc
  8161. * test/UtilTest.cc
  8162. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. * Release 0.15.0
  8164. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8165. Reordered src files in POTFILES.in so that usage text appears first.
  8166. * po/POTFILES.in
  8167. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8168. Bump up version number to 0.15.0
  8169. * configure.ac
  8170. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8171. Added Bulgarian translation.
  8172. Updated Catalan, Spanish, French and Japanese translations.
  8173. Thanks to all translators.
  8174. * po/LINGUAS
  8175. * po/bg.po
  8176. * po/ca.po
  8177. * po/es.po
  8178. * po/fr.po
  8179. * po/ja.po
  8180. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8181. Updated feature list. Added libz for dependency section.
  8182. Added a description about unit testing using CppUnit.
  8183. * README
  8184. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8185. Added a test for libz. Quoted where it is necessary.
  8186. * build_test.sh
  8187. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8188. Added GZip to `Enabled Features' list.
  8189. * src/FeatureConfig.cc
  8190. * src/FeatureConfig.h
  8191. * test/FeatureConfigTest.cc
  8192. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8193. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  8194. the transfer has not yet started.
  8195. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  8196. * src/SegmentMan.cc
  8197. * src/SegmentMan.h
  8198. * test/SegmentManTest.cc
  8199. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8200. Cache last calculated average download/upload speed.
  8201. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  8202. cached value.
  8203. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  8204. * src/PeerStat.h
  8205. * src/SpeedCalc.cc
  8206. * src/SpeedCalc.h
  8207. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Call parseUrl directly.
  8209. * src/Request.cc (resetUrl)
  8210. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8211. Supported absolute/relative path in Location header field.
  8212. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  8213. * src/HttpHeader.cc
  8214. * src/HttpHeader.h
  8215. * src/HttpResponse.cc
  8216. * src/HttpSkipResponseCommand.cc
  8217. * src/Request.cc
  8218. * test/HttpHeaderTest.cc
  8219. * test/HttpResponseTest.cc
  8220. * test/RequestTest.cc
  8221. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Changed help text for --load-cookie option.
  8223. * doc/aria2c.1.txt
  8224. * src/usage_text.h
  8225. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. Regenerated test/Makefile.in to remove stale ChangeLog.
  8227. * test/Makefile.in
  8228. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8229. Updated po files.
  8230. * po/aria2c.pot
  8231. * po/*.po
  8232. * po/*.gmo
  8233. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8234. Bump up version number to 0.15.0b
  8235. * configure.ac
  8236. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8237. Externalize messages.
  8238. * src/RequestGroupMan.cc
  8239. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  8240. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8241. Use File::exists() instead of File::isFile() to allow non-regular file
  8242. such as block special files.
  8243. * src/AbstractDiskWriter.cc
  8244. * src/MultiDiskWriter.cc
  8245. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8246. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  8247. * src/gai_strerror.h
  8248. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8249. Fixed compile error. Thanks gknauf for the patch.
  8250. * src/asctime_r.c
  8251. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8252. Included asctime_r.h from a2time.h.
  8253. * src/a2time.h
  8254. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8255. Added a message "aria2 doesn't verify signature" to log message when
  8256. signature file is saved.
  8257. * src/RequestGroupMan.cc
  8258. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8259. Added the ability to save signature when download is completed if
  8260. signature is available. The filename of signature file is the path to
  8261. download file followed by ".sig". If it already exists, then signature
  8262. will not be saved.
  8263. * src/RequestGroupMan.cc
  8264. * src/Signature.cc
  8265. * test/SignatureTest.cc
  8266. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8267. Updated the descriptions for --bt-seed-unverified.
  8268. * doc/aria2c.1
  8269. * doc/aria2c.1.html
  8270. * doc/aria2c.1.txt
  8271. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8272. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  8273. that this is not going to verify files using piece hashes.
  8274. * src/HelpItemFactory.cc
  8275. * src/OptionHandlerFactory.cc
  8276. * src/RequestGroup.cc
  8277. * src/option_processing.cc
  8278. * src/prefs.cc
  8279. * src/prefs.h
  8280. * src/usage_text.h
  8281. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. Added the ability to retrieve signature from Metalink file.
  8283. A retrieved signature is stored in Signature class and it is held by
  8284. DownloadContext class. Note that aria2 doesn't verify signature.
  8285. * src/DownloadContext.cc
  8286. * src/DownloadContext.h
  8287. * src/Makefile.am
  8288. * src/Makefile.in
  8289. * src/Metalink2RequestGroup.cc
  8290. * src/MetalinkEntry.cc
  8291. * src/MetalinkEntry.h
  8292. * src/MetalinkParserController.cc
  8293. * src/MetalinkParserController.h
  8294. * src/MetalinkParserStateMachine.cc
  8295. * src/MetalinkParserStateMachine.h
  8296. * src/Signature.cc
  8297. * src/Signature.h
  8298. * src/SignatureMetalinkParserState.cc
  8299. * src/SignatureMetalinkParserState.h
  8300. * src/VerificationMetalinkParserState.cc
  8301. * src/VerificationMetalinkParserState.h
  8302. * test/Metalink2RequestGroupTest.cc
  8303. * test/MetalinkParserControllerTest.cc
  8304. * test/MetalinkProcessorTest.cc
  8305. * test/test.xml
  8306. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Close DiskAdaptor after renaming file.
  8308. * src/RequestGroup.cc
  8309. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8310. Corrected indentation
  8311. * src/DefaultBtProgressInfoFile.cc
  8312. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8313. Moved the calls of std::ios::exceptions() inside of try-catch block
  8314. because if an error occurred in constructor of std::fstream, then
  8315. exception is thrown immediately when std::ios::exceptions() is called
  8316. which results unhandled exception and aria2c aborts.
  8317. * src/DefaultBtProgressInfoFile.cc
  8318. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8319. Added the test for the previous change in DefaultBtContext.cc
  8320. * test/DefaultBtContextTest.cc
  8321. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Fixed the bug that causes infinite loop when the number of pieces are
  8323. fewer than allowed fast set size which is 10 by default.
  8324. * src/DefaultBtContext.cc
  8325. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8326. Updated the descriptions for -j, -s. Added --bt-seed.
  8327. * doc/aria2c.1
  8328. * doc/aria2c.1.html
  8329. * doc/aria2c.1.txt
  8330. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8331. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  8332. aria2 seeds previously downloaded files without validating piece hashs.
  8333. * src/HelpItemFactory.cc
  8334. * src/OptionHandlerFactory.cc
  8335. * src/RequestGroup.cc
  8336. * src/option_processing.cc
  8337. * src/prefs.cc
  8338. * src/prefs.h
  8339. * src/usage_text.h
  8340. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8341. Updated DESCRIPTION of man page.
  8342. * doc/aria2c.1
  8343. * doc/aria2c.1.html
  8344. * doc/aria2c.1.txt
  8345. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  8347. Don't define `struct addrinfo' when __sun is defined.
  8348. * src/getaddrinfo.h
  8349. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  8351. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  8352. second argument is of type `struct _stati64'. Otherwise it is defined as
  8353. `struct stat'.
  8354. * src/AbstractDiskWriter.cc
  8355. * src/File.cc
  8356. * src/File.h
  8357. * src/a2io.h
  8358. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8359. Fixed the compile error in hurd-i386
  8360. See the original bug report:
  8361. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8362. * src/a2io.h
  8363. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Code cleanup.
  8365. * src/PeerAbstractCommand.cc
  8366. * src/PeerAbstractCommand.h
  8367. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Removed TransferEncoding.
  8369. * src/DownloadCommand.cc
  8370. * src/DownloadCommand.h
  8371. * src/HttpResponseCommand.cc
  8372. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8373. Updated po files.
  8374. * po/aria2c.pot
  8375. * po/*.po
  8376. * po/*.gmo
  8377. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8379. * src/A2STR.cc
  8380. * src/A2STR.h
  8381. * src/ChunkedDecoder.cc
  8382. * src/ChunkedDecoder.h
  8383. * src/ChunkedEncoding.cc: Removed
  8384. * src/ChunkedEncoding.h: Removed
  8385. * src/DownloadCommand.cc
  8386. * src/DownloadCommand.h
  8387. * src/HttpDownloadCommand.cc
  8388. * src/HttpResponse.cc
  8389. * src/HttpResponse.h
  8390. * src/HttpResponseCommand.cc
  8391. * src/HttpSkipResponseCommand.cc
  8392. * src/HttpSkipResponseCommand.h
  8393. * src/Makefile.am
  8394. * src/TransferEncoding.h: Removed
  8395. * test/ChunkedDecoderTest.cc
  8396. * test/ChunkedEncodingTest.cc: Removed
  8397. * test/HttpResponseTest.cc
  8398. * test/Makefile.am
  8399. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Use append instead of insert.
  8401. * src/GZipDecoder.cc
  8402. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8403. Updated doc
  8404. * src/Decoder.h
  8405. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8406. Updated usage text for -s option.
  8407. * src/usage_text.h
  8408. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8409. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8410. * src/Request.cc
  8411. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Cleaned up configure.ac.
  8413. * configure.ac
  8414. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8415. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8416. AC_ARG_ENABLE.
  8417. * configure.ac
  8418. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8419. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8420. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8421. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8422. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8423. fly and writes decoded data to a local disk.
  8424. * README
  8425. * README.html
  8426. * configure.ac
  8427. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8428. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8429. * m4/libz.m4
  8430. * src/Decoder.h
  8431. * src/DownloadCommand.cc
  8432. * src/DownloadCommand.h
  8433. * src/Exception.h
  8434. * src/GZipDecoder.cc
  8435. * src/GZipDecoder.h
  8436. * src/HttpHeader.cc
  8437. * src/HttpHeader.h
  8438. * src/HttpRequest.cc
  8439. * src/HttpRequest.h
  8440. * src/HttpResponse.cc
  8441. * src/HttpResponse.h
  8442. * src/HttpResponseCommand.cc
  8443. * src/Makefile.am
  8444. * test/GZipDecoderTest.cc
  8445. * test/HttpRequestTest.cc
  8446. * test/HttpResponseTest.cc
  8447. * test/Makefile.am
  8448. * test/Makefile.in
  8449. * test/gzip_decode_test.gz
  8450. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Clarified usage of -j option.
  8452. * src/usage_text.h
  8453. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8454. Disabled getting size from the response of RETR.
  8455. If SIZE command failed, then disable resuming and segmented downloading.
  8456. * src/FtpConnection.cc
  8457. * src/FtpConnection.h
  8458. * src/FtpNegotiationCommand.cc
  8459. * src/FtpNegotiationCommand.h
  8460. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Use digits to find first byte of file size, which makes the intention
  8462. of the code clearer.
  8463. * src/FtpConnection.cc
  8464. Don't call validateTotalLength() when size is 0.
  8465. * src/FtpNegotiationCommand.cc
  8466. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. Updated po files.
  8468. * po/aria2c.pot
  8469. * po/*.gmo
  8470. * po/*.po
  8471. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Clarified usage text for --split option.
  8473. * src/usage_text.h
  8474. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. Bump up version number to 0.15.0dev. "dev" means "development"
  8476. version, which means I started the development of the next release!
  8477. * src/configure.ac
  8478. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. If FTP server returns negative response with REST raw command and
  8480. requested range is not 0, throw exception. If requested range is 0,
  8481. continue download a file from 0 byte.
  8482. * src/FtpNegotiationCommand.cc
  8483. * src/FtpNegotiationCommand.h
  8484. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Supported FTP server which don't recognize SIZE raw command.
  8486. If SIZE raw command is failed, aria2 will try to get file size
  8487. from the response of RETR raw command. If both attempts are failed,
  8488. then resuming and segmented downloading are disabled.
  8489. * src/FtpConnection.cc
  8490. * src/FtpConnection.h
  8491. * src/FtpNegotiationCommand.cc
  8492. * src/FtpNegotiationCommand.h
  8493. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8494. * Release 0.14.0+1
  8495. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8496. Bump up version number to 0.14.0+1
  8497. * src/configure.ac
  8498. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8499. Fixed the code that refers static member variable from non-static
  8500. context.
  8501. * src/DefaultPeerStorage.cc
  8502. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8503. * Release 0.14.0
  8504. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. Added build test script
  8506. * build_test.sh
  8507. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8508. Updated ja.po
  8509. * src/ja.po
  8510. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8511. Bump up version number to 0.14.0
  8512. * src/configure.ac
  8513. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8514. Updated ja.po and fr.po. Great thanks for french translators and
  8515. Sebastien WILLEMIJNS.
  8516. * po/fr.po
  8517. * po/ja.po
  8518. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. Added configure option to enable/disable epoll support.
  8520. * configure.ac
  8521. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8522. Updated man page.
  8523. * doc/aria2c.1.txt
  8524. * doc/aria2c.1
  8525. * doc/aria2c.1.html
  8526. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8527. Added missing default value '5' to the usage of --split option.
  8528. * src/HelpItemFactory.cc
  8529. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8530. Filled up pieces based on the number of missing blocks, rather than
  8531. simplay the number of piece * block length.
  8532. * src/BtRequestFactory.h
  8533. * src/DefaultBtInteractive.cc
  8534. * src/DefaultBtInteractive.h
  8535. * src/DefaultBtRequestFactory.cc
  8536. * src/DefaultBtRequestFactory.h
  8537. * src/Piece.cc
  8538. * src/Piece.h
  8539. * test/BitfieldManTest.cc
  8540. * test/DefaultBtRequestFactoryTest.cc
  8541. * test/MockBtRequestFactory.h
  8542. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8543. Made _epEvents a member variable.
  8544. * src/DownloadEngine.cc
  8545. * src/DownloadEngine.h
  8546. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Cancel download if http redirect is bounded more than 20 times.
  8548. * src/AbstractCommand.cc
  8549. * src/HttpSkipResponseCommand.cc
  8550. * src/Request.cc
  8551. * src/Request.h
  8552. * test/RequestTest.cc
  8553. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Fixed unhandled exception(removed keyword `new').
  8555. * src/SocketCore.cc (initEPOLL)
  8556. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. Removed visit(const MetaEntry*)
  8558. * src/MetaEntryVisitor.h:
  8559. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8560. and made them virtual.
  8561. * src/BencodeVisitor.h
  8562. * src/BencodeVisitor.cc
  8563. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. Updated po files.
  8565. * po/aria2c.pot
  8566. * po/*.po
  8567. * po/*.gmo
  8568. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8570. the number of socket to watch out.
  8571. * src/PeerInteractionCommand.cc
  8572. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. When there is not enough space in disk when writing a chunk of data,
  8574. aria2 now prints the message to the console to warn user and aborts
  8575. its download. Not all downloads are canceled because some downloads
  8576. may use another disk or partition. BUG#1640332
  8577. * src/AbstractDiskWriter.cc
  8578. * src/PeerAbstractCommand.cc
  8579. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8580. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8581. setHaltRequested(true) to cancel download.
  8582. * src/PeerInteractionCommand.h
  8583. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8584. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8585. socket from int to sock_t as sockets are unsigned in Windows.
  8586. For AsyncNameResolver, DownloadEngine, I did additional modification
  8587. for the portion of the code changed according to epoll support.
  8588. I defined sock_t in a2netcompat.h to use sock_t without including
  8589. SocketCore.h.
  8590. * src/AsyncNameResolver.cc
  8591. * src/AsyncNameResolver.h
  8592. * src/DownloadEngine.cc
  8593. * src/DownloadEngine.h
  8594. * src/SocketCore.cc
  8595. * src/SocketCore.h
  8596. * src/a2netcompat.h
  8597. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8598. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8599. changes in the patch were applied.
  8600. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8601. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8602. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8603. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8604. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8605. a2io.h and common.h were modified.
  8606. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8607. MinGW.
  8608. * src/common.h: Changed off_t to 64 bit in MinGW.
  8609. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8611. only a2netcompat.h is modified.
  8612. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8613. directives.
  8614. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8615. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8616. only gai_strerror.h is modified.
  8617. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8618. winsock errors in MinGW.
  8619. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8621. follow sources are applied.
  8622. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8623. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8624. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8625. I included locale.h from Platform.cc.
  8626. * src/main.cc: Moved common setup/teardown code to Platform class.
  8627. * test/AllTest.cc: Use Platform class.
  8628. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8629. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8631. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8632. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8633. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8634. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8635. aria2-0.13.2+1-mingw-2.patch.
  8636. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8637. systems which don't have termious.h. I moved the directive inside of
  8638. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8639. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8640. anyway.
  8641. * src/asctime_r.h
  8642. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8643. I added 2nd argument to the prototype declaration.
  8644. * src/StringFormat.cc: Get rid of vasprintf.
  8645. * src/getaddrinfo.h: Fixed constants.
  8646. * configure.ac: Added the check for asctime_r function.
  8647. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8648. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8649. Added writable test for Socket when the sending message is in progress.
  8650. Usually the sending message is piece message. Without wriable check,
  8651. upload latency is dropped to more than 1sec.
  8652. * src/PeerInteractionCommand.cc
  8653. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8654. Create only requested files and files which shares a piece with
  8655. requested file in multi-torrent downloads. Directory structures are
  8656. also created in the same rule.
  8657. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8658. DiskWriterEntry as in the previous implementation.
  8659. * src/MultiDiskWriter.cc
  8660. * src/MultiFileAllocationIterator.cc
  8661. * src/MultiFileAllocationIterator.h
  8662. * test/MultiFileAllocationIteratorTest.cc
  8663. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. Commented out -lprofiler
  8665. * src/Makefile.am
  8666. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8667. Bump up version number to 0.14.0b.
  8668. * src/configure.ac
  8669. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Actively establish connection to peers in seeding, when peer cache
  8671. is not full and max upload speed limit is not reached.
  8672. * src/ActivePeerConnectionCommand.cc
  8673. * src/ActivePeerConnectionCommand.h
  8674. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8676. to make room more fleshy, recently found peers.
  8677. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8678. it.
  8679. * src/DefaultPeerStorage.cc
  8680. * test/DefaultPeerStorageTest.cc
  8681. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8682. Returns cached data only when the previous receiveHandshake() is called
  8683. with peek = true.
  8684. * src/PeerConnection.cc (receiveHandshake)
  8685. * src/PeerConnection.h (receiveHandshake)
  8686. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8687. Changed default value of -s option from 1 to 5.
  8688. Also max value of -s option is changed from 5 to 16.
  8689. * src/HelpItemFactory.cc
  8690. * src/OptionHandlerFactory.cc
  8691. * src/option_processing.cc
  8692. * src/usage_text.h
  8693. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8694. Changed -s options behavior. Now it means the number of connections
  8695. made simultaneously in each http/ftp download.
  8696. If 1 URL is specified, the behavior is the same with old implementation.
  8697. If -s N is given and more than N URLs are specified, first N URLs are
  8698. used and remaining URLs are used for backup. If less than N URLs are
  8699. specified, some of URLs are used more than once so that totally N
  8700. connections are made simultaneously.
  8701. * src/main.cc
  8702. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. Included missing iosfwd or ostream header.
  8704. * src/RequestGroupMan.cc
  8705. * src/TaggedItem.cc
  8706. * src/TaggedItem.h
  8707. * src/Util.cc
  8708. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8709. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8710. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8711. * src/HttpConnection.cc: Included missing sstream.
  8712. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8713. Added --bt-max-open-files option.
  8714. * src/DefaultPieceStorage.cc
  8715. * src/HelpItemFactory.cc
  8716. * src/MultiDiskAdaptor.cc
  8717. * src/MultiDiskAdaptor.h
  8718. * src/OptionHandlerFactory.cc
  8719. * src/option_processing.cc
  8720. * src/prefs.cc
  8721. * src/prefs.h
  8722. * src/usage_text.h
  8723. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. Fixed the bug that aria2 aborts when a path to a directory is given
  8725. in command-line.
  8726. * src/ProtocolDetector.cc
  8727. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. Limited the number files opened in each BitTorrent download. The default
  8729. value is 100. The option to change this value will be added.
  8730. * src/MultiDiskAdaptor.cc
  8731. * src/MultiDiskAdaptor.h
  8732. * src/MultiFileAllocationIterator.cc
  8733. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8734. Fixed the bug that HTTP downloads don't start with old libraries.
  8735. * src/HttpHeaderProcessor.cc
  8736. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8737. Use empty() instead of size() > 0.
  8738. * src/HttpConnection.cc
  8739. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. Drop connection if the incoming peer ID is the same with localhost's
  8741. one. The previous implementation drops connection when incoming peer's
  8742. IP address is the same with localhost's one.
  8743. * src/PeerListenCommand.cc
  8744. * src/DefaultBtInteractive.cc
  8745. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8746. Returns cached data without checking whether socket is readable
  8747. if the cache is available.
  8748. * src/PeerConnection.cc (receiveHandshake)
  8749. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8750. Included stdint.h
  8751. * src/common.h
  8752. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8753. Removed duplicate HAVE_GETTIMEOFDAY
  8754. * src/Makefile.am
  8755. * src/Makefile.in
  8756. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8757. Use interval as a minInterval when minInterval is not supplied.
  8758. * src/DefaultBtAnnounce.cc
  8759. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8760. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8761. attempt is failed, then 2nd attempt get kicked out more quickly.
  8762. And it is now static const member of DefaultBtAnnounce.
  8763. * src/DefaultBtAnnounce.h
  8764. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8765. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8766. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8767. * src/ActivePeerConnectionCommand.cc
  8768. * src/BtConstants.h
  8769. * src/BtRuntime.h
  8770. * src/DHTGetPeersCommand.cc
  8771. * src/DefaultBtAnnounce.cc
  8772. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8773. BtRuntime::MAX_PEERS.
  8774. * src/DefaultPeerStorage.h
  8775. * src/InitiatorMSEHandshakeCommand.cc
  8776. * src/PeerInitiateConnectionCommand.cc
  8777. * src/PeerInteractionCommand.cc
  8778. * src/PeerReceiveHandshakeCommand.cc
  8779. * src/TrackerWatcherCommand.cc
  8780. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8781. Always Connect to _numNewConnection
  8782. * src/ActivePeerConnectionCommand.cc
  8783. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8784. Made `begin' unsigned int.
  8785. * src/GrowSegment.h
  8786. * src/Piece.cc
  8787. * src/Piece.h
  8788. * src/PiecedSegment.cc
  8789. * src/PiecedSegment.h
  8790. * src/Segment.h
  8791. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8792. Calculate piece hash when data is arrived if the data is arrived in
  8793. order. This removes additional read operation for hash calculation.
  8794. If the data is arrived in out of order, the hash is calucated when the
  8795. piece is completed. This is the same behavior as the old implementation.
  8796. * src/BtPieceMessage.cc
  8797. * src/DefaultBtProgressInfoFile.cc
  8798. * src/DefaultPieceStorage.cc
  8799. * src/DownloadCommand.cc
  8800. * src/DownloadCommand.h
  8801. * src/DownloadEngine.cc
  8802. * src/GrowSegment.cc
  8803. * src/GrowSegment.h
  8804. * src/Piece.cc
  8805. * src/Piece.h
  8806. * src/PiecedSegment.cc
  8807. * src/PiecedSegment.h
  8808. * src/Segment.h
  8809. * test/PieceTest.cc
  8810. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8811. Try to keep the ordering of outgoing piece message.
  8812. * src/DefaultBtMessageDispatcher.cc
  8813. (DefaultBtMessageDispatcher::sendMessages)
  8814. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8815. Fixed busy loop when error/hup epoll events occur.
  8816. * src/AbstractCommand.cc
  8817. * src/PeerAbstractCommand.cc
  8818. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8819. Added --bt-request-peer-speed-limit option, which was a constant
  8820. SLOW_SPEED_THRESHOLD.
  8821. * src/ActivePeerConnectionCommand.cc
  8822. * src/ActivePeerConnectionCommand.h
  8823. * src/BtConstants.h
  8824. * src/HelpItemFactory.cc
  8825. * src/OptionHandlerFactory.cc
  8826. * src/PeerReceiveHandshakeCommand.cc
  8827. * src/option_processing.cc
  8828. * src/prefs.cc
  8829. * src/prefs.h
  8830. * src/usage_text.h
  8831. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Removed repeated call of getTopDirPath(). Instead, call it once and
  8833. cache the result.
  8834. * src/MultiDiskAdaptor.cc
  8835. * src/MultiDiskAdaptor.h
  8836. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8837. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8838. Fixed compile error on debian etch.
  8839. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8840. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8841. it is undefined.
  8842. * src/Util.cc (ULLONG_MAX)
  8843. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8844. Added epoll support. Use epoll if it is available. If not, use select.
  8845. When async dns is enabled in compile time, epoll support is enabled
  8846. only when aria2 is built with c-ares. This condition statement is
  8847. defined in a2io.h.
  8848. Currently aria2 supports both c-ares and ares, but ares is maintained
  8849. for quite a while and debian already has c-ares package, ares support
  8850. will be dropped in the future version.
  8851. * configure.ac
  8852. * src/AbstractCommand.cc
  8853. * src/AsyncNameResolver.cc
  8854. * src/AsyncNameResolver.h
  8855. * src/Command.cc
  8856. * src/Command.h
  8857. * src/DownloadEngine.cc
  8858. * src/DownloadEngine.h
  8859. * src/PeerAbstractCommand.cc
  8860. * src/SocketCore.cc
  8861. * src/SocketCore.h
  8862. * src/a2io.h
  8863. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8865. directive.
  8866. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Do not do write operation to /dev/null file.
  8868. * src/LogFactory.cc
  8869. * src/SimpleLogger.cc
  8870. Replaced vasprintf with vsnprintf
  8871. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8872. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8873. * src/BtRequestMessage.cc
  8874. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8875. for segmentation fault caused by previous commit.
  8876. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8877. Reduced the usage of gettimeofday().
  8878. * src/DefaultBtMessageDispatcher.cc
  8879. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8880. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8881. * src/RequestSlot.cc
  8882. * src/RequestSlot.h
  8883. (RequestSlot::isTimeout)
  8884. Made RequestSlot have a reference to Piece object to avoid find
  8885. Piece repeatedly.
  8886. * src/DefaultBtMessageDispatcher.cc
  8887. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8888. * src/RequestSlot.cc
  8889. * src/RequestSlot.h
  8890. (RequestSlot::getPiece)
  8891. * test/DefaultBtMessageDispatcherTest.cc
  8892. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8893. * src/TimeA2.cc
  8894. * src/TimeA2.h
  8895. (Time::difference): New function.
  8896. (Time::elapsed): Done optimization.
  8897. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8899. directive.
  8900. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. * src/option_processing.cc: Added missing `defined' keyword to #if
  8902. directive.
  8903. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8904. Bump up version number to 0.13.2+1
  8905. * src/configure.ac
  8906. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8907. Refactored broken outstanding piece handling.
  8908. * src/DefaultPieceStorage.cc
  8909. * src/DefaultPieceStorage.h
  8910. * src/Piece.cc
  8911. * src/Piece.h
  8912. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8914. name collision of static variable and predefined macro.
  8915. * src/BtContext.cc
  8916. * src/BtContext.h
  8917. * src/CookieBoxFactory.cc
  8918. * src/CookieBoxFactory.h
  8919. * src/CookieParser.cc
  8920. * src/CookieParser.h
  8921. * src/DefaultBtContext.cc
  8922. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. * src/RequestGroup.cc
  8924. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8925. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8926. * Release 0.13.2
  8927. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8928. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8929. * po/fr.po
  8930. * po/ja.po
  8931. * po/aria2c.pot
  8932. * po/*.po
  8933. * po/*.gmo
  8934. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8935. Bump up version number to 0.13.2
  8936. * src/configure.ac
  8937. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8938. Refactord.
  8939. * src/RequestGroupMan.cc
  8940. (removeStoppedGroup)
  8941. (fillRequestGroupFromReserver)
  8942. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. Fixed compile error on Ubuntu.
  8944. * src/BtPieceMessage.cc
  8945. * src/MessageDigestHelper.cc
  8946. * src/Util.cc
  8947. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8948. Fixed compile error when configured with --disable-bittorrent
  8949. * test/DownloadHandlerFactoryTest.cc
  8950. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8951. Done make update-po
  8952. * po/aria2c.pot
  8953. * po/*.po
  8954. * po/*.gmo
  8955. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8956. Bump up version number to 0.13.2rc.
  8957. * src/configure.ac
  8958. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8959. Made option name bold. Updated SYNOPSIS to make it more readable.
  8960. * doc/aria2c.1.txt
  8961. * doc/aria2c.1
  8962. * doc/aria2c.1.html
  8963. * src/version_usage.cc
  8964. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8965. Refactored. Use std::string instead of size and char*.
  8966. * Data.cc
  8967. * Data.h
  8968. * test/Data.cc
  8969. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8970. Added trimSelf(). Rewritten trim() to use trimSelf().
  8971. * Util.cc
  8972. * Util.h
  8973. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8974. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8975. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8976. Fixed compile error when configured with --disable-metalink.
  8977. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8978. * test/FeatureConfigTest.cc
  8979. * test/DownloadHandlerFactoryTest.cc
  8980. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8981. Fixed compile error when configured with --without-gnutls
  8982. --without-openssl
  8983. * src/main.cc
  8984. * test/DefaultBtProgressInfoFileTest.cc
  8985. * test/SegmentManTest.cc
  8986. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8987. Fixed compile error with OpenSSL.
  8988. * src/IteratableChunkChecksumValidator.cc
  8989. * src/LibsslDHKeyExchange.h
  8990. * src/MessageDigestHelper.cc
  8991. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8992. Revert the default value of --max-concurrent-downloads to 5.
  8993. Revert the default value of --metalink-servers to 5.
  8994. Man pages was also updated.
  8995. * src/option_processing.cc
  8996. * doc/aria2c.1.txt
  8997. * doc/aria2c.1.html
  8998. * doc/aria2c.1
  8999. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. Returns const reference:
  9001. DownloadContext::getPieceHash, DownloadContext::getName,
  9002. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  9003. BtContext::getInfoHashAsString,
  9004. * src/BtContext.h
  9005. * src/DefaultBtContext.cc
  9006. * src/DefaultBtContext.h
  9007. * src/DownloadContext.h
  9008. * src/SingleFileDownloadContext.h
  9009. * test/MockBtContext.h
  9010. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9011. * src/RequestGroup.h (getDir): Removed.
  9012. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. Returns const reference. The internal urlencode function was optimized
  9014. a little bit.
  9015. * src/Request.cc
  9016. * src/Request.h
  9017. * src/HttpRequest.cc
  9018. * src/HttpRequest.h
  9019. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9020. Defined option name and possible values as std::string to reduce
  9021. temporary string object creation in runtime.
  9022. * src/HelpItemFactory.cc
  9023. * src/LogFactory.cc
  9024. * src/Option.cc
  9025. * src/OptionHandlerFactory.cc
  9026. * src/option_processing.cc
  9027. * src/prefs.cc
  9028. * src/prefs.h
  9029. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9030. Return const reference.
  9031. * src/DownloadHandlerConstants.cc
  9032. * src/DownloadHandlerConstants.h
  9033. (getMetalinkExtensions)
  9034. (getMetalinkContentTypes)
  9035. (getBtExtensions)
  9036. (getBtContentTypes)
  9037. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9038. * src/HttpHeader.cc (get): Rewritten.
  9039. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Make HttpHeader::getFirst(...) return const reference.
  9041. * src/HttpHeader.cc
  9042. * src/HttpHeader.h
  9043. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9044. Use Option::getAsBool(...) instead of Option::get(...) and compare
  9045. it with V_TRUE.
  9046. * src/DefaultPieceStorage.cc
  9047. * src/DownloadCommand.cc
  9048. * src/FtpNegotiationCommand.cc
  9049. * src/HttpRequest.cc
  9050. * src/InitiateConnectionCommand.cc
  9051. * src/RequestGroup.cc
  9052. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9053. Made Option::get(...) return const reference of std::string.
  9054. * src/Option.cc
  9055. * src/Option.h
  9056. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9057. Replaced std:copy with insert.
  9058. * src/DefaultBtMessageDispatcher.cc
  9059. * src/DefaultPieceStorage.cc
  9060. * src/DownloadEngineFactory.cc
  9061. * src/RequestGroup.cc
  9062. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9063. Included SocketCore.h to fix compiler warning.
  9064. * src/InitiateConnectionCommand.cc
  9065. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. Put piece selection strategy algorithm to RarestPieceSelector class,
  9067. Added a switch to choose whether randomized selection so that unit
  9068. tests emit same results in, possibly, win32.
  9069. * src/DefaultPieceStorage.cc
  9070. * src/DefaultPieceStorage.h
  9071. * src/RarestPieceSelector.cc
  9072. * src/RarestPieceSelector.h
  9073. * test/DefaultPieceStorageTest.cc
  9074. * test/RarestPieceSelectorTest.cc
  9075. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9076. Don't pool connection if HTTP proxy is enabled.
  9077. * src/FtpFinishDownloadCommand.cc
  9078. * src/FtpNegotiationCommand.cc
  9079. * src/HttpSkipResponseCommand.cc
  9080. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9081. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  9082. * src/AbstractCommand.cc
  9083. * src/AbstractCommand.h
  9084. * src/ActivePeerConnectionCommand.cc
  9085. * src/FtpInitiateConnectionCommand.cc
  9086. * src/HttpInitiateConnectionCommand.cc
  9087. * src/InitiateConnectionCommandFactory.cc
  9088. * src/PeerAbstractCommand.cc
  9089. * src/PeerAbstractCommand.h
  9090. * src/PeerInitiateConnectionCommand.cc
  9091. * src/TrackerWatcherCommand.cc
  9092. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. Sort RequestSlot in ascending order and manipulate them using
  9094. lower_bound.
  9095. * src/DefaultBtMessageDispatcher.cc
  9096. * src/DefaultBtMessageDispatcher.h
  9097. (getMessageQueue): Added const qualifier.
  9098. (getRequestSlots): Added const qualifier.
  9099. (sendMessages): Use empty() instead of size().
  9100. (doCancelSendingPieceAction): Use HandleEvent object.
  9101. (doAbortOutstandingRequestAction): Rewritten.
  9102. (doChokedAction): Rewritten.
  9103. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  9104. (isOutstandingRequest): Rewritten.
  9105. (getOutstandingRequest): Rewritten.
  9106. (removeOutstandingRequest): Rewritten.
  9107. (addOutstandingRequest): Rewritten.
  9108. * src/RequestSlot.cc
  9109. * src/RequestSlot.h
  9110. (operator=): Rewritten.
  9111. (operator!=): New function.
  9112. (operator<): New function.
  9113. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9114. * src/DefaultBtRequestFactory.cc
  9115. (doChokedAction): Rewritten.
  9116. (removeCompletedPiece): Rewritten.
  9117. (removeTargetPiece): Rewritten.
  9118. (createRequestMessages): Added the debug log.
  9119. (createRequestMessagesOnEndGame: Added the debug log.
  9120. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. Added the debug log message.
  9122. * src/BtPieceMessage.cc (doReceivedAction)
  9123. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  9125. used lower_bound to process them rather than linear search.
  9126. * src/DHTPeerAnnounceStorage.cc
  9127. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. Call subtractPieceStats from ~PeerInteractionCommand only when the
  9129. peer has at least one completed piece.
  9130. * src/Peer.cc
  9131. * src/Peer.h
  9132. * src/PeerInteractionCommand.cc
  9133. * src/PeerSessionResource.cc
  9134. * src/PeerSessionResource.h
  9135. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9136. Removed unnecessary sorting
  9137. * src/DefaultPieceStorage (DefaultPieceStorage)
  9138. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9139. Rewritten the portion of the code that mangaes allowed fast indexes.
  9140. * src/PeerSessionResource.cc
  9141. * src/PeerSessionResource.h
  9142. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9143. Removed the invalid string including '\r' from ru.po and
  9144. did make update-po.
  9145. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9146. Added --log-level and --summary-interval to man page.
  9147. * doc/aria2c.1.txt
  9148. * doc/aria2c.1.html
  9149. * doc/aria2c.1
  9150. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9151. Added --log-level option to specify log level. Log messages under
  9152. the specified level are not output. Default value is `debug'.
  9153. * src/HelpItemFactory.cc
  9154. * src/LogFactory.cc
  9155. * src/LogFactory.h
  9156. * src/Logger.h
  9157. * src/OptionHandlerFactory.cc
  9158. * src/SimpleLogger.cc
  9159. * src/SimpleLogger.h
  9160. * src/main.cc
  9161. * src/option_processing.cc
  9162. * src/prefs.h
  9163. * src/usage_text.h
  9164. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9165. Print download progress summary of all parallel downloads in specified
  9166. interval, default 60 secs. While aria2 could download several files
  9167. in parallel (see -j option), it displayed just first download progress,
  9168. and the other downloads are hidden from the users. This new feature
  9169. prints all downloads currently in-progress to the console so that you
  9170. can check the status of all downloads. The interval can be adjusted
  9171. by --summary-interval option.
  9172. The progress readout is now cut so that all fits in the one line of
  9173. console.
  9174. * src/ConsoleStatCalc.cc
  9175. * src/ConsoleStatCalc.h
  9176. * src/HelpItemFactory.cc
  9177. * src/OptionHandlerFactory.cc
  9178. * src/RequestGroupMan.cc
  9179. * src/RequestGroupMan.h
  9180. * src/main.cc
  9181. * src/option_processing.cc
  9182. * src/prefs.h
  9183. * src/usage_text.h
  9184. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9185. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  9186. * src/DownloadEngine.cc (DownloadEngine)
  9187. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  9189. defined.
  9190. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  9191. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9192. Use erase+lower_bound+insert instead of sort.
  9193. * src/DefaultPieceStorage.cc (addPieceStats)
  9194. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9195. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  9196. * src/A2STR.cc
  9197. * src/A2STR.h
  9198. * src/OptionParser.cc (parse)
  9199. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9200. Defined fake filename `[tracker.announce]' as static const std::string.
  9201. * src/TrackerWatcherCommand.cc (createRequestGroup)
  9202. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9203. Defined default filename `index.html' as static const std::string
  9204. * src/SingleFileDownloadContext.cc
  9205. * src/SingleFileDownloadContext.h
  9206. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9207. Defined "[MEMORY]" as static const std::string.
  9208. * src/MemoryBufferPreDownloadHandler.cc (execute)
  9209. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Defined control file's version number as static const std::string.
  9211. * src/DefaultBtProgressInfoFile.cc
  9212. * src/DefaultBtProgressInfoFile.h
  9213. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. Use Request::METHOD_GET
  9215. * src/RequestGroup.cc (createNextCommandWithAdj)
  9216. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9217. Defined "OK", "ERR", "INPR" as static const std::string
  9218. * src/RequestGroupMan.cc (showDownloadResults)
  9219. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9220. Defined default client used in extended handshake as static const
  9221. std::string
  9222. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  9223. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9224. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  9225. * src/HttpConnection.cc (eraseConfidentialInfo)
  9226. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9227. Defined default ftp user and password as static const std::string
  9228. * src/AuthConfigFactory.cc
  9229. * src/AuthConfigFactory.h
  9230. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9231. Defined strings used in netrc as static const std::string
  9232. * src/Netrc.cc
  9233. * src/Netrc.h
  9234. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9235. Defined HTTP status as static const std::string
  9236. * src/AbstractProxyResponseCommand.cc
  9237. * src/HttpHeader.cc
  9238. * src/HttpHeader.h
  9239. * src/HttpResponse.cc
  9240. * src/HttpResponseCommand.cc
  9241. * src/HttpSkipResponseCommand.cc
  9242. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Defined "\r\n", "A", "I" as static const std::string
  9244. * src/A2STR.cc
  9245. * src/A2STR.h
  9246. * src/FtpConnection.cc
  9247. * src/FtpConnection.h
  9248. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9249. Added COLON_C(".") and used it in Request::parseUrl()
  9250. * src/A2STR.cc
  9251. * src/A2STR.h
  9252. * src/Request.cc (parseUrl)
  9253. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9254. Changed the type of padName from `const std::string&' to `const char*'.
  9255. * src/MSEHandshake.cc (verifyPadLength)
  9256. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9257. Defined "sha1" as static const std::string.
  9258. * src/MetalinkParserController.cc
  9259. * src/MetalinkParserController.h
  9260. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9261. Defined message digest algorithm name as static const std::string
  9262. * src/DHTTokenTracker.cc
  9263. * src/DHTUtil.cc
  9264. * src/DefaultBtContext.cc
  9265. * src/MSEHandshake.cc
  9266. * src/MessageDigestHelper.cc
  9267. * src/Peer.cc
  9268. * src/messageDigest.cc
  9269. * src/messageDigest.h
  9270. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9271. Made string literals used in SAX parser static const std::string.
  9272. * src/FileMetalinkParserState.cc
  9273. * src/FileMetalinkParserState.h
  9274. * src/FilesMetalinkParserState.cc
  9275. * src/FilesMetalinkParserState.h
  9276. * src/InitialMetalinkParserState.cc
  9277. * src/InitialMetalinkParserState.h
  9278. * src/MetalinkMetalinkParserState.cc
  9279. * src/MetalinkMetalinkParserState.h
  9280. * src/PiecesMetalinkParserState.cc
  9281. * src/PiecesMetalinkParserState.h
  9282. * src/ResourcesMetalinkParserState.cc
  9283. * src/ResourcesMetalinkParserState.h
  9284. * src/VerificationMetalinkParserState.cc
  9285. * src/VerificationMetalinkParserState.h
  9286. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9287. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  9288. * src/A2STR.cc
  9289. * src/A2STR.h
  9290. * src/File.cc
  9291. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9292. Defined static const std::string IP("ip"), PORT("port") and use them
  9293. instead of string literals.
  9294. * src/DefaultPeerListProcessor.cc
  9295. * src/DefaultPeerListProcessor.h
  9296. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9297. Made string literals for torrent file processing static const
  9298. std::string.
  9299. * src/BtContext.cc
  9300. * src/BtContext.h
  9301. * src/DefaultBtContext.cc
  9302. * src/DefaultBtContext.h
  9303. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9304. Made string literal for tracker response static const std::string
  9305. * src/BtAnnounce.cc
  9306. * src/BtAnnounce.h
  9307. * src/DefaultBtAnnounce.cc
  9308. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9309. Use DHTMessage::T instead of "t".
  9310. * src/DHTMessageTracker.cc (messageArrived)
  9311. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9312. Made keyName static const. Made trimmed charset static const
  9313. std::string.
  9314. * src/Util.cc (getContentDispositionFilename)
  9315. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9316. Made USER_AGENT const. Made "/" static const std::string.
  9317. * src/A2STR.cc
  9318. * src/A2STR.h
  9319. * src/HttpRequest.cc
  9320. * src/HttpRequest.h
  9321. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9322. Made string listeral to static const std::string:
  9323. "Content-Range", "Content-Length"
  9324. * src/HttpHeader.cc
  9325. * src/HttpHeader.h
  9326. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9327. Made string listeral to static const std::string.
  9328. * src/HttpConnection.cc
  9329. * src/HttpHeader.cc
  9330. * src/HttpHeader.h
  9331. * src/HttpResponse.cc
  9332. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9333. Made string listeral to static const std::string.
  9334. * src/A2STR.cc
  9335. * src/A2STR.h
  9336. * src/SimpleLogger.cc
  9337. * src/SimpleLogger.h
  9338. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9339. Made string literal to static const std::string.
  9340. Rewritten CookieParser::setField.
  9341. * src/A2STR.cc
  9342. * src/A2STR.h
  9343. * src/CookieBoxFactory.cc
  9344. * src/CookieBoxFactory.h
  9345. * src/CookieParser.cc
  9346. * src/CookieParser.h
  9347. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. Made string literal to static const std::string
  9349. * src/DHTAbstractMessage.cc
  9350. * src/DHTAnnouncePeerMessage.cc
  9351. * src/DHTAnnouncePeerMessage.h
  9352. * src/DHTAnnouncePeerReplyMessage.cc
  9353. * src/DHTAnnouncePeerReplyMessage.h
  9354. * src/DHTFindNodeMessage.cc
  9355. * src/DHTFindNodeMessage.h
  9356. * src/DHTFindNodeReplyMessage.cc
  9357. * src/DHTFindNodeReplyMessage.h
  9358. * src/DHTGetPeersMessage.cc
  9359. * src/DHTGetPeersMessage.h
  9360. * src/DHTGetPeersReplyMessage.cc
  9361. * src/DHTGetPeersReplyMessage.h
  9362. * src/DHTMessage.cc
  9363. * src/DHTMessage.h
  9364. * src/DHTMessageFactoryImpl.cc
  9365. * src/DHTMessageReceiver.cc
  9366. * src/DHTPingMessage.cc
  9367. * src/DHTPingMessage.h
  9368. * src/DHTPingReplyMessage.cc
  9369. * src/DHTPingReplyMessage.h
  9370. * src/DHTQueryMessage.cc
  9371. * src/DHTQueryMessage.h
  9372. * src/DHTResponseMessage.cc
  9373. * src/DHTResponseMessage.h
  9374. * src/DHTUnknownMessage.cc
  9375. * src/DHTUnknownMessage.h
  9376. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9377. Made string literal to static const std::string
  9378. * src/BtChokeMessage.cc (toString)
  9379. * src/BtHaveAllMessage.cc (toString)
  9380. * src/BtHaveNoneMessage.cc (toString)
  9381. * src/BtInterestedMessage.cc (toString)
  9382. * src/BtNotInterestedMessage.cc (toString)
  9383. * src/BtUnchokeMessage.cc (toString)
  9384. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9385. Replaced "" with static const variable A2STR::NIL.
  9386. Replaced string comparison against "" with std::string::empty().
  9387. Added PROTO_* to Request class and use them as a protocol string
  9388. constant.
  9389. Made "started", "stopped", "completed" static const variable in
  9390. AnnounceList class.
  9391. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Updated translations. Great thanks to translators.
  9393. * po/ca.po
  9394. * po/de.po
  9395. * po/fr.po
  9396. * po/it.po
  9397. * po/ja.po
  9398. * po/ru.po
  9399. * po/zh_CN.po
  9400. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9401. Updated man page; categorized options and fixed typo.
  9402. * doc/aria2c.1.txt
  9403. * doc/aria2c.1.html
  9404. * doc/aria2c.1
  9405. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9406. Removed const ref
  9407. * src/MetalinkEntry.cc (AddProtocolPreference)
  9408. * src/RequestGroup.cc (FindServerHostByHostname)
  9409. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Rewritten Accept-Features handling.
  9411. * src/HttpRequestCommand.cc (createHttpRequest)
  9412. * src/a2functional.h
  9413. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9414. Changed method signature:
  9415. DHTAbstractNodeLookupTask::toEntries
  9416. * src/DHTAbstractNodeLookupTask.cc
  9417. * src/DHTAbstractNodeLookupTask.h
  9418. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9419. Changed method signature:
  9420. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9421. * src/BtContext.h
  9422. * src/DefaultBtContext.cc
  9423. * src/DefaultBtContext.h
  9424. * src/DefaultBtInteractive.cc
  9425. * test/DefaultBtContextTest.cc
  9426. * test/MockBtContext.h
  9427. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9428. Changed method signature:
  9429. MultiFileAllocationIterator::makeDiskWriterEntries
  9430. * src/MultiFileAllocationIterator.cc
  9431. * src/MultiFileAllocationIterator.h
  9432. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9433. Changed method sinature:
  9434. MetalinkEntry::toFileEntry,
  9435. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9436. Metalinker::queryEntry
  9437. * src/Metalink2RequestGroup.cc
  9438. * src/MetalinkEntry.cc
  9439. * src/MetalinkEntry.h
  9440. * src/MetalinkHelper.cc
  9441. * src/MetalinkHelper.h
  9442. * src/Metalinker.cc
  9443. * src/Metalinker.h
  9444. * src/main.cc
  9445. * test/MetalinkHelperTest.cc
  9446. * test/MetalinkerTest.cc
  9447. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. Changed method sinature:
  9449. RequestGroup::getURIs
  9450. * src/RequestGroup.cc
  9451. * src/RequestGroup.h
  9452. * test/Metalink2RequestGroupTest.cc
  9453. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Changed method signature:
  9455. PeerListProcessor::extractPeer
  9456. * src/CompactPeerListProcessor.cc
  9457. * src/CompactPeerListProcessor.h
  9458. * src/DefaultBtAnnounce.cc
  9459. * src/DefaultPeerListProcessor.cc
  9460. * src/DefaultPeerListProcessor.h
  9461. * src/DelegatingPeerListProcessor.cc
  9462. * src/DelegatingPeerListProcessor.h
  9463. * src/PeerListProcessor.h
  9464. * src/UTPexExtensionMessage.cc
  9465. * test/DefaultPeerListProcessorTest.cc
  9466. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. Changed method signature:
  9468. BtRequestFactory::createRequestMessages,
  9469. BtRequestFactory::createRequestMessagesOnEndGame
  9470. * src/BtRequestFactory.h
  9471. * src/DefaultBtInteractive.cc
  9472. * src/DefaultBtRequestFactory.cc
  9473. * src/DefaultBtRequestFactory.h
  9474. * test/DefaultBtRequestFactoryTest.cc
  9475. * test/MockBtRequestFactory.h
  9476. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9477. Changed method signature:
  9478. PieceStorage::getInFlightPieces
  9479. * src/DefaultBtProgressInfoFile.cc
  9480. * src/DefaultPieceStorage.cc
  9481. * src/DefaultPieceStorage.h
  9482. * src/PieceStorage.h
  9483. * src/UnknownLengthPieceStorage.cc
  9484. * src/UnknownLengthPieceStorage.h
  9485. * test/DefaultBtProgressInfoFileTest.cc
  9486. * test/MockPieceStorage.h
  9487. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9488. Changed method signature:
  9489. PostDownloadHandler::getNextRequestGroups
  9490. Metalink2RequestGroup::generate
  9491. RequestGroup::postDownloadProcessing
  9492. * src/BtPostDownloadHandler.cc
  9493. * src/BtPostDownloadHandler.h
  9494. * src/Metalink2RequestGroup.cc
  9495. * src/Metalink2RequestGroup.h
  9496. * src/MetalinkPostDownloadHandler.cc
  9497. * src/MetalinkPostDownloadHandler.h
  9498. * src/PostDownloadHandler.h
  9499. * src/RequestGroup.cc
  9500. * src/RequestGroup.h
  9501. * src/RequestGroupMan.cc
  9502. * src/main.cc
  9503. * test/BtPostDownloadHandlerTest.cc
  9504. * test/Metalink2RequestGroupTest.cc
  9505. * test/MetalinkPostDownloadHandlerTest.cc
  9506. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9507. Rewritten AccRequestGroup
  9508. * src/main.cc
  9509. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9510. Rewritten.
  9511. * src/TaggedItem.cc (toTagString)
  9512. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9513. Rewritten Accept-Features handling.
  9514. * src/HttpRequestCommand.cc (createHttpRequest)
  9515. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9516. Rewritten accept types handling.
  9517. * HttpRequest.cc (createRequest)
  9518. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9519. Rewritten
  9520. * src/FeatureConfig.cc (featureSummary)
  9521. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9522. Changed method signature:
  9523. PeerStorage::getActivePeers
  9524. * src/DHTPeerAnnounceEntry.cc
  9525. * src/DefaultPeerStorage.cc
  9526. * src/DefaultPeerStorage.h
  9527. * src/PeerStorage.h
  9528. * test/DefaultPeerStorageTest.cc
  9529. * test/MockPeerStorage.h
  9530. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9531. Changed method signature:
  9532. DHTPeerAnnounceStorage::getPeers,
  9533. DHTPeerAnnounceEntry::getPeers
  9534. * src/DHTGetPeersMessage.cc
  9535. * src/DHTPeerAnnounceEntry.cc
  9536. * src/DHTPeerAnnounceEntry.h
  9537. * src/DHTPeerAnnounceStorage.cc
  9538. * src/DHTPeerAnnounceStorage.h
  9539. * test/DHTAnnouncePeerMessageTest.cc
  9540. * test/DHTPeerAnnounceEntryTest.cc
  9541. * test/DHTPeerAnnounceStorageTest.cc
  9542. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9543. Changed method signature:
  9544. NameResolver::resolve
  9545. * src/DHTEntryPointNameResolveCommand.cc
  9546. * src/InitiateConnectionCommand.cc
  9547. * src/NameResolver.cc
  9548. * src/NameResolver.h
  9549. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9550. Changed method signature:
  9551. PieceStorage::getAdvertisedPieceIndexes
  9552. * src/DefaultBtInteractive.cc
  9553. * src/DefaultPieceStorage.cc
  9554. * src/DefaultPieceStorage.h
  9555. * src/PieceStorage.h
  9556. * src/UnknownLengthPieceStorage.h
  9557. * test/MockPieceStorage.h
  9558. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9559. Changed method signature:
  9560. SegmentMan::getInFlightSegment
  9561. * src/AbstractCommand.cc
  9562. * src/SegmentMan.cc
  9563. * src/SegmentMan.h
  9564. * test/SegmentManTest.cc
  9565. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9566. Changed method signature:
  9567. DHTAbstractNodeLookupTask::getNodesFromMessage
  9568. * src/DHTAbstractNodeLookupTask.cc
  9569. * src/DHTAbstractNodeLookupTask.h
  9570. * src/DHTNodeLookupTask.cc
  9571. * src/DHTNodeLookupTask.h
  9572. * src/DHTPeerLookupTask.cc
  9573. * src/DHTPeerLookupTask.h
  9574. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9575. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9576. * src/AbstractCommand.cc
  9577. * src/BtCheckIntegrityEntry.cc
  9578. * src/BtCheckIntegrityEntry.h
  9579. * src/BtFileAllocationEntry.cc
  9580. * src/BtFileAllocationEntry.h
  9581. * src/BtSetup.cc
  9582. * src/BtSetup.h
  9583. * src/CheckIntegrityCommand.cc
  9584. * src/CheckIntegrityEntry.h
  9585. * src/ChecksumCheckIntegrityEntry.cc
  9586. * src/ChecksumCheckIntegrityEntry.h
  9587. * src/DHTSetup.cc
  9588. * src/DHTSetup.h
  9589. * src/DownloadEngine.cc
  9590. * src/FileAllocationCommand.cc
  9591. * src/FileAllocationEntry.h
  9592. * src/RequestGroup.cc
  9593. * src/RequestGroup.h
  9594. * src/RequestGroupMan.cc
  9595. * src/RequestGroupMan.h
  9596. * src/StreamCheckIntegrityEntry.cc
  9597. * src/StreamCheckIntegrityEntry.h
  9598. * src/StreamFileAllocationEntry.cc
  9599. * src/StreamFileAllocationEntry.h
  9600. * src/TrackerWatcherCommand.cc
  9601. * src/a2functional.h
  9602. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9603. Changed method signature:
  9604. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9605. DHTBucket::getGoodNodes,
  9606. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9607. * src/BNode.cc
  9608. * src/BNode.h
  9609. * src/DHTAbstractNodeLookupTask.cc
  9610. * src/DHTAutoSaveCommand.cc
  9611. * src/DHTBucket.cc
  9612. * src/DHTBucket.h
  9613. * src/DHTBucketRefreshTask.cc
  9614. * src/DHTFindNodeMessage.cc
  9615. * src/DHTGetPeersMessage.cc
  9616. * src/DHTRoutingTable.cc
  9617. * src/DHTRoutingTable.h
  9618. * test/BNodeTest.cc
  9619. * test/DHTBucketTest.cc
  9620. * test/DHTRoutingTableTest.cc
  9621. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. In piece selection functions, Pass std::deque<...> by reference rather
  9623. than returning it.
  9624. * src/BitfieldMan.cc
  9625. * src/BitfieldMan.h
  9626. * src/DefaultBtRequestFactory.cc
  9627. * src/DefaultPieceStorage.cc
  9628. * src/Piece.cc
  9629. * src/Piece.h
  9630. * test/BitfieldManTest.cc
  9631. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. Implemented rarest piece first piece selection strategy.
  9633. * src/AbstractBtMessage.cc
  9634. * src/AbstractBtMessage.h
  9635. * src/BitfieldMan.cc
  9636. * src/BitfieldMan.h
  9637. * src/BtBitfieldMessage.cc
  9638. * src/BtHaveAllMessage.cc
  9639. * src/BtHaveMessage.cc
  9640. * src/DefaultPieceStorage.cc
  9641. * src/DefaultPieceStorage.h
  9642. * src/PeerInteractionCommand.cc
  9643. * src/PieceStorage.h
  9644. * src/UnknownLengthPieceStorage.h
  9645. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9646. Rewritten readData and writeData.
  9647. * src/MultiDiskAdaptor.cc
  9648. * src/MultiDiskAdaptor.h
  9649. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9650. Move \n out of the message "Usage: ...".
  9651. * src/version_usage.cc
  9652. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9653. Bump up version number to 0.13.2b.
  9654. * configure.ac
  9655. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9656. Added const qualifier to argument Exception& e.
  9657. * src/Logger.h
  9658. * src/SimpleLogger.cc
  9659. * src/SimpleLogger.h
  9660. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9661. Pool connection when CWD, SIZE command fails.
  9662. * src/FtpNegotiationCommand.cc
  9663. * src/FtpNegotiationCommand.h
  9664. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9666. * src/HttpResponseCommand.cc
  9667. * src/HttpSkipResponseCommand.cc
  9668. * src/HttpSkipResponseCommand.h
  9669. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9670. Pool connection when a server returns 4xx, 5xx responses.
  9671. * src/HttpNullDownloadCommand.cc
  9672. * src/HttpNullDownloadCommand.h
  9673. * src/HttpResponse.cc
  9674. * src/HttpResponse.h
  9675. * src/HttpResponseCommand.cc
  9676. * src/HttpResponseCommand.h
  9677. * test/HttpResponseTest.cc
  9678. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9679. Print usage when no URL is specifed or bad command-line option is
  9680. specified.
  9681. * src/HelpItemFactory.cc
  9682. * src/help_tags.h
  9683. * src/option_processing.cc
  9684. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9685. Removed duplicate log message.
  9686. * src/AbstractCommand.cc (asyncResolveHostname)
  9687. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9688. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9689. Changed -j option's default value from 5 to 1.
  9690. Added new examples using protocol auto detection feature.
  9691. Removed -T, -M usage where it can be omitted.
  9692. * doc/aria2c.1.txt
  9693. * doc/aria2c.1.html
  9694. * doc/aria2c.1.txt
  9695. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9696. Updated command-line usage text, so that it tells users that they
  9697. can specify any number of torrent files and metalink files in
  9698. command-line.
  9699. * src/version_usage.cc
  9700. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9701. Changed the default value of -j option to 1.
  9702. * src/HelpItemFactory.cc
  9703. * src/option_processing.cc
  9704. * src/usage_text.h
  9705. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9706. Added the ability to reuse connection in FTP and it is enabled by
  9707. default. It can be disabled by --ftp-reuse-connection=false option.
  9708. * src/Command.cc
  9709. * src/DownloadCommand.cc
  9710. * src/FtpDownloadCommand.cc
  9711. * src/FtpDownloadCommand.h
  9712. * src/FtpFinishDownloadCommand.cc
  9713. * src/FtpFinishDownloadCommand.h
  9714. * src/FtpInitiateConnectionCommand.cc
  9715. * src/FtpNegotiationCommand.cc
  9716. * src/FtpNegotiationCommand.h
  9717. * src/HelpItemFactory.cc
  9718. * src/Makefile.am
  9719. * src/Makefile.in
  9720. * src/OptionHandlerFactory.cc
  9721. * src/option_processing.cc
  9722. * src/prefs.h
  9723. * src/usage_text.h
  9724. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9725. Call Command::transitStatus() before calling Command::execute(),
  9726. so that the status change made in execute() is not cleared.
  9727. * src/DownloadEngine.cc
  9728. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9729. Removed forward declaration of SocketCore class.
  9730. * src/HttpDownloadCommand.h
  9731. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9732. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9733. in InitiateConnectionCommandFactory. They should be set only when
  9734. the protocol is HTTP or HTTPS.
  9735. * src/InitiateConnectionCommandFactory.cc
  9736. * src/RequestGroup.cc
  9737. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9738. Fixed infinite loop in checksum checking.
  9739. * src/IteratableChecksumValidator.cc
  9740. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9741. Set _supportsPersistentConnection to true by default.
  9742. * src/Request.cc
  9743. * src/RequestGroup.cc
  9744. * test/HttpRequestTest.cc
  9745. * test/RequestTest.cc
  9746. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9747. Added timeout to socket pool. The default timeout is 15 seconds,
  9748. which is the same value Apache uses.
  9749. * src/DownloadEngine.cc
  9750. * src/DownloadEngine.h
  9751. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9752. Fixed misuse of multimap::find()
  9753. * src/HttpHeader.cc
  9754. * test/HttpHeaderTest.cc
  9755. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9757. option.
  9758. The asynchronous DNS is not capable of IPv6 yet.
  9759. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9760. least for HTTP download.
  9761. * src/AbstractCommand.cc
  9762. * src/AbstractCommand.h
  9763. * src/AsyncNameResolver.cc
  9764. * src/AsyncNameResolver.h
  9765. * src/DHTEntryPointNameResolveCommand.cc
  9766. * src/DHTEntryPointNameResolveCommand.h
  9767. * src/DownloadEngine.cc
  9768. * src/DownloadEngine.h
  9769. * src/FtpInitiateConnectionCommand.cc
  9770. * src/FtpInitiateConnectionCommand.h
  9771. * src/HelpItemFactory.cc
  9772. * src/HttpInitiateConnectionCommand.cc
  9773. * src/HttpInitiateConnectionCommand.h
  9774. * src/InitiateConnectionCommand.cc
  9775. * src/InitiateConnectionCommand.h
  9776. * src/Makefile.am
  9777. * src/Makefile.in
  9778. * src/NameResolver.cc
  9779. * src/NameResolver.h
  9780. * src/OptionHandlerFactory.cc
  9781. * src/SocketCore.cc
  9782. * src/SocketCore.h
  9783. * src/Util.cc
  9784. * src/Util.h
  9785. * src/option_processing.cc
  9786. * src/prefs.h
  9787. * src/usage_text.h
  9788. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9789. Updated man page: --quiet, --header were added.
  9790. --metalink-servers and --enable-http-keep-alive option were updated.
  9791. * doc/aria2c.1
  9792. * doc/aria2c.1.html
  9793. * doc/aria2c.1.txt
  9794. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9795. Enable HTTP keep-alive by default.
  9796. * src/HelpItemFactory.cc
  9797. * src/option_processing.cc
  9798. * src/usage_text.h
  9799. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9800. Disable http keep-alive if the remote server is not HTTP/1.1.
  9801. * src/HttpConnection.cc
  9802. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9803. Receive content body of 302 response so that the connection can be
  9804. reused later when http keep-alive is enabled.
  9805. * src/HttpNullDownloadCommand.cc
  9806. * src/HttpNullDownloadCommand.h
  9807. * src/HttpResponseCommand.cc
  9808. * src/HttpResponseCommand.h
  9809. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. const SharedHandle<Request> -> const SharedHandle<Request>&
  9811. * src/FtpDowndloadCommand.cc
  9812. * src/FtpDowndloadCommand.h
  9813. * src/HttpDownloadCommand.cc
  9814. * src/HttpDownloadCommand.h
  9815. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9816. Fixed the bug that the control file(.aria2 file) is not renamed
  9817. according to tryAutoFileRenaming().
  9818. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9819. its control file exist, use them and continue download.
  9820. The old implementation didn't take into account of control file's
  9821. existence, so basically you couldn't continue download of renamed file.
  9822. * src/BtProgressInfoFile.h
  9823. * src/DefaultBtProgressInfoFile.cc
  9824. * src/DefaultBtProgressInfoFile.h
  9825. * src/NullProgressInfoFile.h
  9826. * src/RequestGroup.cc
  9827. * test/DefaultBtProgressInfoFileTest.cc
  9828. * test/MockBtProgressInfoFile.h
  9829. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9830. Change the default value of --metalink-servers option from `5' to `1'.
  9831. * src/HelpItemFactory.cc
  9832. * src/option_processing.cc
  9833. * src/usage_text.h
  9834. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9835. Reimplemented transparent metalink using Accept request header.
  9836. * src/HttpRequest.cc
  9837. * src/HttpRequest.h
  9838. * src/HttpRequestCommand.cc
  9839. * src/Metalink2RequestGroup.cc
  9840. * src/RequestGroup.cc
  9841. * src/RequestGroup.h
  9842. * test/HttpRequestTest.cc
  9843. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9844. Bump up version number to 0.13.2a
  9845. * configure.ac
  9846. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9847. Updated configure.ac using the result of autoscan.
  9848. * configure.ac
  9849. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. Fixed compilation error without gcrypt/openssl.
  9851. * src/DownloadCommand.cc
  9852. * src/DownloadCommand.h
  9853. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9854. Reorganized version information so that it can be displayed in a
  9855. standard terminal screen without scrolling.
  9856. Removed http, ftp from Configuration section, because they are always
  9857. enabled.
  9858. * src/FeatureConfig.cc
  9859. * src/FeatureConfig.h
  9860. * src/main.cc
  9861. * src/messageDigest.cc
  9862. * src/messageDigest.h
  9863. * src/version_usage.cc
  9864. * test/FeatureConfigTest.cc
  9865. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Masked user ID in log.
  9867. * src/FtpConnection.cc (sendUser)
  9868. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9869. Removed query part from filename in HTTP download. The query part means
  9870. the substring after "?" in URL. Firefox seems do the same thing.
  9871. A query part is sometimes very long and not suitable to filename,
  9872. so I think it is better to remove it from filename.
  9873. * src/HttpRequest.cc
  9874. * src/HttpRequest.h
  9875. * src/Request.cc
  9876. * src/Request.h
  9877. * test/HttpRequestTest.cc
  9878. * test/RequestTest.cc
  9879. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9880. Rewritten Exception class. Throw exception object, not its pointer and
  9881. catch by reference, so that remove problematic delete operator for
  9882. catched exception.
  9883. * src/Exception.cc
  9884. * src/Exception.h
  9885. * test/ExceptionTest.cc
  9886. * src/*: All files throwing/catching exception.
  9887. * test/*: All files throwing/catching exception.
  9888. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. Now auto protocol detection is enabled without -Z option.
  9890. But there is a important difference between with/without -Z optoin.
  9891. For example, if you type:
  9892. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9893. then, aria2 interprets there are 3 request groups:
  9894. (1) http://host/file, http://mirror/file <-- multi-source download
  9895. (2) file1.torrent
  9896. (3) file2.metalink
  9897. On the other hand, if you invoke above command with -Z option, it is
  9898. interpreted as 4 request groups:
  9899. (1) http://host/file
  9900. (2) file1.torrent
  9901. (3) file2.metalink
  9902. (4) http://mirror/file
  9903. I think usually user don't mix multi-source URLs and torrent files, so
  9904. there is no big problem here.
  9905. * src/main.cc
  9906. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9907. Fixed the bug that causes segmentaion fault when reading XML containing
  9908. unescapsed character like '&'.
  9909. Also a modification was made which avoids adding unnecessary
  9910. characters stack and appending unused string.
  9911. * src/ExpatMetalinkProcessor.cc
  9912. * src/FileMetalinkParserState.h
  9913. * src/FilesMetalinkParserState.h
  9914. * src/FinMetalinkParserState.h
  9915. * src/HashMetalinkParserState.h
  9916. * src/InitialMetalinkParserState.h
  9917. * src/LanguageMetalinkParserState.h
  9918. * src/MetalinkMetalinkParserState.h
  9919. * src/MetalinkParserState.h
  9920. * src/MetalinkParserStateMachine.cc
  9921. * src/MetalinkParserStateMachine.h
  9922. * src/OSMetalinkParserState.h
  9923. * src/PieceHashMetalinkParserState.h
  9924. * src/PiecesMetalinkParserState.h
  9925. * src/ResourcesMetalinkParserState.h
  9926. * src/SizeMetalinkParserState.h
  9927. * src/SkipTagMetalinkParserState.h
  9928. * src/URLMetalinkParserState.h
  9929. * src/VerificationMetalinkParserState.h
  9930. * src/VersionMetalinkParserState.h
  9931. * src/XML2SAXMetalinkProcessor.cc
  9932. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9933. Added StringFormat class, which internally calls vasprintf.
  9934. operator<< is defined for this class, so it can be used with iostream
  9935. classes nicely. SimpleLogger and following functions are rewritten
  9936. using StringFormat class.
  9937. Besides, now Logger class's methods are non-const, many classes
  9938. that has a const Logger* as a member variable are modified to remove
  9939. const qualifier from the variable declaration.
  9940. * src/HelpItemFactory.cc
  9941. * src/Request.cc
  9942. * src/SimpleLogger.cc
  9943. * src/StringFormat.cc
  9944. * src/StringFormat.h
  9945. * src/Util.cc
  9946. * src/option_processing.cc
  9947. * src/version_usage.cc
  9948. * test/StringFormatTest.cc
  9949. * src/*.h: The classes that has const Logger* as a member variable.
  9950. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9951. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9952. failed. Also fixed memory link when exception is thrown there.
  9953. * src/main.cc (AccRequestGroup)
  9954. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9955. Added build-in "Accept-Features" support. For now only "metalink" is
  9956. used in this header field.
  9957. This "metalink" value is removed from the list when connecting URLs
  9958. fed by metalink file to avoid loop in "transparent" metlaink.
  9959. * src/HttpRequest.cc
  9960. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9961. header is also held in this variable. Also renamed setUserHeaders as
  9962. addHeader and it was rewritten to add header not just to clear the old
  9963. value.
  9964. * src/HttpRequestCommand.cc
  9965. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9966. from "Accept-Features" list.
  9967. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9968. default.
  9969. * src/RequestGroup.h
  9970. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9971. * src/a2functional.h: Included <string> because Concat class depends on
  9972. it.
  9973. * test/HttpRequestTest.cc
  9974. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9975. Added comment
  9976. * src/RequestGroup.cc (createNextCommand)
  9977. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. Capitalized METHOD_GET and METHOD_HEAD
  9979. * src/Request.cc
  9980. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9981. Added getDownloadResults() method
  9982. * src/RequestGroupMan.cc
  9983. * src/RequestGroupMan.h
  9984. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9985. Fixed the bug that aria2 exits when commands is empty() but
  9986. _routineCommands are not.
  9987. * src/DownloadEngine.cc
  9988. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Use the default value pulled from Option object in HelpItemFactory.
  9990. except options whose defualt value is embedded in a usage text.
  9991. * src/HelpItemFactory.cc
  9992. * src/HelpItemFactory.h
  9993. * src/option_processing.cc
  9994. * src/version_usage.cc
  9995. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9996. Added --quiet option to make aria2 quiet (no console output).
  9997. --quiet option is tagged with ADVANCED.
  9998. * src/HelpItemFactory.cc
  9999. * src/LogFactory.cc
  10000. * src/LogFactory.h
  10001. * src/MultiUrlRequestInfo.cc
  10002. * src/MultiUrlRequestInfo.h
  10003. * src/NullStatCalc.h: New class. This class prints nothing.
  10004. * src/OptionHandlerFactory.cc
  10005. * src/main.cc
  10006. * src/option_processing.cc
  10007. * src/prefs.h
  10008. * src/usage_text.h
  10009. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10010. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  10011. * src/HelpItemFactory.cc (createHelpItems):
  10012. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10013. Fixed compilation error in ExpatMetalinkProcessor.cc
  10014. * src/ExpatMetalinkProcessor.cc
  10015. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10016. Reuse socket if the origin server supports HTTP keep-alive and
  10017. --enable-http-keep-alive or --enable-http-pipelining is given.
  10018. The current implementation doesn't reuse the connections established
  10019. against proxy server.
  10020. * src/AbstractCommand.cc
  10021. * src/DownloadEngine.cc
  10022. * src/DownloadEngine.h
  10023. * src/HttpDownloadCommand.cc
  10024. * src/HttpInitiateConnectionCommand.cc
  10025. * src/HttpResponseCommand.cc
  10026. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10027. Rewritten HTTP keep-alive and pipelining routine.
  10028. * src/AbstractCommand.cc
  10029. * src/HttpConnection.cc
  10030. * src/HttpDownloadCommand.cc
  10031. * src/HttpRequest.cc
  10032. * src/HttpRequestCommand.cc
  10033. * src/HttpResponseCommand.cc
  10034. * src/Request.cc
  10035. * src/Request.h
  10036. * src/RequestGroup.cc
  10037. * test/HttpRequestTest.cc
  10038. * test/HttpResponseTest.cc
  10039. * test/RequestTest.cc
  10040. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10041. Added missing setUserHeaders call
  10042. * src/HttpRequestCommand.cc
  10043. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10044. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  10045. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  10046. waste of time because it is more likey false.
  10047. * src/FileAllocationDispatcherCommand.cc (execute)
  10048. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10049. Now HTTP status and version are a member variable of HttpHeader.
  10050. HTTP status is processed as a string, not integer.
  10051. * src/AbstractProxyResponseCommand.cc
  10052. * src/HttpConnection.cc
  10053. * src/HttpHeader.cc
  10054. * src/HttpHeader.h
  10055. * src/HttpHeaderProcessor.cc
  10056. * src/HttpHeaderProcessor.h
  10057. * src/HttpResponse.cc
  10058. * src/HttpResponse.h
  10059. * test/HttpHeaderProcessorTest.cc
  10060. * test/HttpResponseTest.cc
  10061. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10062. Added --header option. You can specify any number of additional HTTP headers
  10063. like:
  10064. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  10065. Unlike other commad-line option, you can use --header option multiple times.
  10066. * src/HelpItemFactory.cc
  10067. * src/HttpRequest.{cc, h}
  10068. * src/HttpRequestCommand.cc
  10069. * src/OptionHandlerFactory.cc
  10070. * src/OptionHandlerImpl.h
  10071. * src/option_processing.cc
  10072. * src/prefs.h
  10073. * src/usage_text.h
  10074. * test/HttpRequestTest.cc (testUserHeaders)
  10075. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10076. Eliminates the time lag between sequential downloads and commands in
  10077. the same RequestGroup.
  10078. In old implementation, aria2 occasionally waits 1 seconds before
  10079. executing next command or RequestGroup.
  10080. This is really a waste of time, and new implementation eliminates
  10081. this unnecessary time lag.
  10082. * src/AbstractCommand.cc
  10083. * src/AutoSaveCommand.cc
  10084. * src/CheckIntegrityCommand.cc
  10085. * src/Command.{cc, h}
  10086. * src/DownloadEngine.{cc, h}
  10087. * src/DownloadEngineFactory.cc
  10088. * src/FileAllocationCommand.cc
  10089. * src/FileAllocationDispatcherCommand.cc
  10090. * src/FillRequestGroupCommand.cc
  10091. * src/FtpInitiateConnectionCommand.cc
  10092. * src/HaveEraseCommand.cc
  10093. * src/HttpInitiateConnectionCommand.cc
  10094. * src/HttpResponseCommand.cc
  10095. * src/RealtimeCommand.cc
  10096. * src/RequestGroup.cc
  10097. * src/RequestGroupMan.cc
  10098. * src/StreamFileAllocationEntry.cc
  10099. * src/TimeBasedCommand.{cc, h}
  10100. * src/TimedHaltCommand.cc
  10101. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10102. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  10103. keyword explicit and SharedHandle's default constructor initializes
  10104. its internal obj to null, old implementation initializes it using
  10105. obj's default constructor.
  10106. To assign null, write SharedHandle<T> x(...); x.reset();
  10107. TODO: test/SharedHandleTest.cc needs more tests.
  10108. * src/SharedHandle.h
  10109. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10110. Fixed type in man page.
  10111. * doc/aria2c.1.txt
  10112. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10113. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  10114. * src/SimpleLogger.{cc, h}
  10115. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. Implemented auto protocol detection.
  10117. Now you can do:
  10118. aria2c -Z http://host/file file1.torrent file2.metalink
  10119. (Note: -Z option is required for auto protcol detection.)
  10120. Then aria2c downloads 3 files simultaneously:
  10121. 1. http://host/file
  10122. 2. file1.torrent <-- read local torrent file
  10123. 3. file2.metalink <-- read local Metalink file.
  10124. Same thing goes with -i option. Assume your uris.txt contans:
  10125. http://host/file
  10126. file1.torrent
  10127. file2.metalink
  10128. Then you can do: aria2c -i uris.txt
  10129. (Note: -Z option is not needed if -i option is given.)
  10130. * src/main.cc
  10131. * src/ProtocolDetector.{cc, h}
  10132. * test/ProtocolDetectorTest.cc
  10133. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10134. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  10135. installed
  10136. * src/ARC4Encryptor.h
  10137. * src/ARC4Decryptor.h
  10138. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10139. Renamed argument from 'errno' to 'err', since errno is confused with
  10140. errno defined in errno.h.
  10141. * src/LibgcryptARC4Decryptor.h
  10142. * src/LibgcryptARC4Context.h
  10143. * src/LibgcryptDHKeyExchange.h
  10144. * src/LibgcryptARC4Encryptor.h
  10145. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10146. Rewritten choking algorithm.
  10147. * src/PeerChokeCommand.{cc, h}
  10148. * src/BtInterestedMessage.cc
  10149. * src/PeerSessionResource.{cc, h}
  10150. * src/DefaultPeerStorage.{cc, h}
  10151. * src/BtNotInterestedMessage.cc
  10152. * src/DefaultBtMessageDispatcher.{cc, h}
  10153. * src/BtMessageDispatcher.h
  10154. * src/Peer.{cc, h}
  10155. * src/BtLeecherStateChoke.{cc, h}
  10156. * src/BtSetup.cc
  10157. * src/BtSeederStateChoke.{cc, h}
  10158. * src/PeerStorage.h
  10159. * test/MockPeerStorage.h
  10160. * test/MockBtMessageDispatcher.h
  10161. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. Fixed compilation error on x84-64 platform.
  10163. * src/AuthConfig.cc: Included ostream.
  10164. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10165. Rewritten getBasename() and getDirname(), without standard library
  10166. basename(), dirname().
  10167. * src/File.cc
  10168. * test/FileTest.cc
  10169. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10170. Added Simplified Chinese translation. Also updated the following
  10171. translations: Polish, Dutch, German. Great thanks to all translators.
  10172. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10173. Suppress content-range error when 'Content-Range' response header
  10174. doesn't contains bytes-unit specifier 'bytes'
  10175. * src/HttpHeader.cc (getRange)
  10176. * test/HttpHeaderTest.cc
  10177. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10178. Fixed compilation error with g++-4.3
  10179. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10180. Added missing include files for MinGW
  10181. * test/HttpHeaderProcessorTest.cc
  10182. * test/DHTRoutingTableSerializerTest.cc
  10183. * test/DHTRoutingTableDeserializerTest.cc
  10184. * test/UriListParserTest.cc
  10185. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10186. Now download line is printed nicely with no garbage at the end of
  10187. line. I use ioctl to get the columns of terminal.
  10188. If stdout is redirected to another device, instead of carriage return,
  10189. end of line '\n' character is used. This is feature request#1909659
  10190. * src/ConsoleStatCalc.cc (calculateStat)
  10191. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. Included a2time.h
  10193. * src/DHTMessageDispatcher.h
  10194. * src/DHTMessageEntry.h
  10195. * src/DHTReplaceNodeTask.h
  10196. * src/DHTMessageTracker.h
  10197. * src/Util.h
  10198. * src/CookieBox.h
  10199. * src/SocketCore.h
  10200. * src/DefaultBtMessageDispatcher.h
  10201. * src/SocketCore.cc
  10202. * src/Util.cc
  10203. * src/DHTPingTask.h
  10204. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10205. Fixed high memory footprint when DHT is enabled.
  10206. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  10207. queued than it is processed and the queue is getting longer. As a
  10208. consequence, momory usage is increased.
  10209. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  10210. replacement cache in DHTBucket which is described in Kademlia paper.
  10211. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  10212. DHTReplaceNodeTask.
  10213. * src/DHTBucket.{h, cc}
  10214. (cacheNode): New function.
  10215. (getCachedNodes): New function.
  10216. (dropNode): Push back cached node to _nodes.
  10217. * test/DHTBucketTest.cc
  10218. (testCacheNode): New test
  10219. (testDropNode): New test
  10220. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10221. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  10222. the unused 4KB memory when ssl is not used.
  10223. * src/SocketCore.cc
  10224. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10225. Added summary log for peer announce storage.
  10226. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  10227. Removed cast
  10228. * src/DefaultPeerStorage.cc (addPeer)
  10229. Log exception message
  10230. * src/DHTMessageTracker.cc (handleTimeout)
  10231. Fixed casting
  10232. * test/HttpRequestTest.cc
  10233. * test/MetalinkProcessorTest.cc
  10234. * test/PieceTest.cc
  10235. * test/MetalinkEntryTest.cc
  10236. * test/SequenceTest.cc
  10237. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10238. * src/ParameterizedStringParser.cc (createLoop):
  10239. Removed unused variable sstep.
  10240. * src/AlphaNumberDecorator.h (decode): Rewritten.
  10241. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10242. * src/Util.{h, cc}
  10243. (parseUInt): New function.
  10244. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  10245. The actual range is uint32_t.
  10246. * test/UtilTest.cc
  10247. * src/ParameterizedStringParser.cc:
  10248. Use Util::parseUInt() for loop variables.
  10249. * test/ParameterizedStringParserTest.cc
  10250. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  10251. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10252. Rewritten the functions for binding port.
  10253. * src/DHTConnectionImpl.{h, cc}
  10254. * src/PeerListenCommand.{h, cc}
  10255. * src/DHTSetup.cc
  10256. * src/BtSetup.cc
  10257. * test/DHTConnectionImplTest.cc
  10258. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10259. type cleanup for allmost all remaining files.
  10260. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10261. Type clarification
  10262. * src/PeerSessionResource.{h, cc}
  10263. * src/DefaultPieceStorage.{h, cc}
  10264. * src/Peer.{h, cc}
  10265. * test/PeerSessionResourceTest.cc
  10266. Use div function
  10267. * src/BtPieceMessage.cc (erasePieceOnDisk)
  10268. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10269. Type clarification
  10270. * src/DefaultPeerStorage.{h, cc}
  10271. * test/DefaultPeerStorageTest.cc
  10272. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10273. Type clarification: size_t for length or size, uint64_t for file
  10274. length, off_t for file offset.
  10275. * src/DefaultBtProgressInfoFile.cc
  10276. * src/DefaultBtContext.{h, cc}
  10277. * src/DefaultBtInteractive.cc
  10278. * src/DownloadCommand.{h, cc}
  10279. * src/IteratableChunkChecksumValidator.{h, cc}
  10280. * src/SegmentMan.{h, cc}
  10281. * src/SingleFileDownloadContext.{h, cc}
  10282. * src/IteratableChecksumValidator.{h, cc}
  10283. * src/BtContext.h
  10284. * src/IteratableValidator.h
  10285. * src/DownloadContext.h
  10286. * test/SingleFileDownloadContextTest.cc
  10287. * test/DefaultBtContextTest.cc
  10288. * test/MockBtContext.h
  10289. * test/Metalink2RequestGroupTest.cc
  10290. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10291. Type clarification: size_t for length or size, uint64_t for file
  10292. length, off_t for file offset.
  10293. * src/PiecedSegment.cc
  10294. * src/GrowSegment.h
  10295. * src/DefaultBtRequestFactory.h
  10296. * src/DefaultBtProgressInfoFile.cc
  10297. * src/UnknownLengthPieceStorage.h
  10298. * src/DefaultPieceStorage.cc
  10299. * src/UnknownLengthPieceStorage.cc
  10300. * src/DefaultBtInteractive.cc
  10301. * src/GrowSegment.cc
  10302. * src/BitfieldMan.h
  10303. * src/DownloadCommand.cc
  10304. * src/BtRequestFactory.h
  10305. * src/PiecedSegment.h
  10306. * src/DefaultPieceStorage.h
  10307. * src/Piece.cc
  10308. * src/DefaultBtRequestFactory.cc
  10309. * src/PieceStorage.h
  10310. * src/Segment.h
  10311. * src/Piece.h
  10312. * src/BitfieldMan.cc
  10313. * src/Util.cc
  10314. * test/DefaultBtProgressInfoFileTest.cc
  10315. * test/DefaultPieceStorageTest.cc
  10316. * test/MockPieceStorage.h
  10317. * test/BtRequestMessageTest.cc
  10318. * test/DefaultBtMessageDispatcherTest.cc
  10319. * test/BitfieldManTest.cc
  10320. * test/GrowSegmentTest.cc
  10321. * test/PieceTest.cc
  10322. * test/SegmentTest.cc
  10323. * test/SegmentManTest.cc
  10324. * test/DefaultBtRequestFactoryTest.cc
  10325. * test/MockBtRequestFactory.h
  10326. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10327. Fixed compilation error with --disable-nls
  10328. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  10329. in gettext.h causes the problem.
  10330. * src/common.h
  10331. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10332. Removed subPiece related functions.
  10333. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  10334. * src/DefaultPieceStorage.{h, cc}
  10335. * test/PieceTest.cc
  10336. * test/DefaultPieceStorageTest.cc
  10337. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10338. Use unsigned char for data store.
  10339. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10340. Bump up version number to 0.13.0+1
  10341. * configure.ac
  10342. * Release 0.13.0+1
  10343. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10344. Changed inactive connection timeout to 120.
  10345. To accept more mulually interested peers, disconnect peer when there
  10346. is no interest between us after certain time passed.
  10347. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  10348. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10349. Fixed the bug that aria2 only uses first dns server in resolv.conf
  10350. when compiled with async DNS support.
  10351. * src/DownloadEngine.cc
  10352. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  10353. value '10' will be a little bit short when some DNS servers are
  10354. offline and several DNS servers are tried. It should be configured
  10355. by command-line option.
  10356. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10357. Merged Ross's mingw patch.
  10358. * src/DHTRoutingTableDeserializer.cc
  10359. * src/DHTRoutingTableSerializer.cc
  10360. * src/Platform.{h, cc}
  10361. * src/timegm.h
  10362. * src/gettimeofday.h
  10363. * src/getaddrinfo.h
  10364. * src/SocketCore.h
  10365. * src/common.h
  10366. * src/inet_aton.h
  10367. * src/DownloadEngine.h
  10368. * src/gai_strerror.h
  10369. * src/a2netcompat.h
  10370. * configure.ac
  10371. * configure
  10372. * aclocal.m4
  10373. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10374. Included missing iostream.
  10375. * test/AllTest.cc
  10376. * test/BtDependencyTest.cc
  10377. * test/BtExtendedMessageTest.cc
  10378. * test/DHTConnectionImplTest.cc
  10379. * test/DHTMessageFactoryImplTest.cc
  10380. * test/DHTMessageTrackerEntryTest.cc
  10381. * test/DHTNodeTest.cc
  10382. * test/DHTRoutingTableSerializerTest.cc
  10383. * test/DefaultBtAnnounceTest.cc
  10384. * test/DefaultBtContextTest.cc
  10385. * test/DefaultBtMessageFactoryTest.cc
  10386. * test/DefaultExtensionMessageFactoryTest.cc
  10387. * test/HandshakeExtensionMessageTest.cc
  10388. * test/HttpResponseTest.cc
  10389. * test/MetalinkProcessorTest.cc
  10390. * test/MultiFileAllocationIteratorTest.cc
  10391. * test/SocketCoreTest.cc
  10392. * test/UTPexExtensionMessageTest.cc
  10393. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10394. Reorganized includes.
  10395. * src/NameResolver.cc
  10396. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10397. Fixed compilation error without ares/c-ares
  10398. * src/NameResolver.h:
  10399. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10400. Added a test for large file.
  10401. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10402. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10403. Fixed the bug that file size is ignored if size > INT32_MAX
  10404. * src/SizeMetalinkParserState.cc (endElement):
  10405. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10406. Bump up version number to 0.13.0
  10407. * configure.ac
  10408. * Release 0.13.0
  10409. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10410. Updated Makfefile.am to make 'make dist' work.
  10411. Now packaged filename is aria2c-VERSION.tar.bz2.
  10412. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10413. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10414. Large file support is now configured by configure script.
  10415. * configure.ac
  10416. Removed unsused source files
  10417. * src/
  10418. * test/
  10419. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10420. Peer.h and BtContext.h respectively.
  10421. * src/Peer.h
  10422. * src/BtContext.h
  10423. Updated translations.
  10424. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10425. translations. Great thanks to all translators!;)
  10426. * po/*.{po, gmo}
  10427. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10428. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10429. statically declared sha1 MessageDigestContext.
  10430. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10431. initialization of short-lived MessageDigestContext.
  10432. * src/MessageDigestHelper.{h, cc}
  10433. * src/main.cc
  10434. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10435. the initialization of MessageDigestContext every time in validating
  10436. chunk checksum.
  10437. * src/DownloadCommand.{h, cc}
  10438. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10439. Add a file descriptor which connected to fast peer(latency<1500) to
  10440. select(). This change reduced CPU load.
  10441. * src/PeerInteractionCommand.cc
  10442. * src/DefaultBtInteractive.{h, cc}
  10443. * src/BtInteractive.h
  10444. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. Fixed the previous insufficient fix for possible busy loop.
  10446. * src/MSEHandshake.cc (identifyHandshakeType)
  10447. Removed unused functions.
  10448. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10449. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10450. Fixed possible busy loop if first 20 bytes are not received for a few
  10451. minutes.
  10452. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10453. * src/ReceiverMSEHandshakeCommand.cc
  10454. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10455. Fixed compilation error
  10456. * src/ExpatMetalinkProcessor.cc
  10457. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10458. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10459. * src/DHTBucket.cc
  10460. Removed unnecessary cast.
  10461. * src/HandshakeExtensionMessage.cc
  10462. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10464. is missing.
  10465. * src/OptionHandlerFactory.cc
  10466. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10467. Fixed the bug that HAVE message is not sent for a piece they are
  10468. downloaded fom http/ftp server before any BitTorrent handshake is done
  10469. with peers.
  10470. * src/DefaultBtInteractive.cc
  10471. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10472. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10473. * src/Makefile.am
  10474. * src/Makefile.in
  10475. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10476. Updated README. Added html version of README and man page.
  10477. * README
  10478. * README.html
  10479. * readme2html: Shell script to generate README.html from README using
  10480. asciidoc.
  10481. * doc/aria2c.1.html
  10482. * doc/makeman: Added the line to generate aria2c.1.html
  10483. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10484. Fixed offset calculation.
  10485. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10486. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10487. Rewritten itos and uitos using template. llitos and ullitos are
  10488. replaced with itos and uitos respectively.
  10489. * src/Util.{h, cc}
  10490. * test/UtilTest.cc
  10491. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10492. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10493. of the number of bytes required for storing public key and shared
  10494. secret.
  10495. * src/LibgcryptDHKeyExchange.h
  10496. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10497. * src/MSEHandshake.cc
  10498. * test/DHKeyExchangeTest.cc
  10499. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10500. Removed since they are not used.
  10501. * src/Xml2MetalinkProcessor.{h, cc}
  10502. * src/Socket.cc
  10503. * src/SegmentSplitter.{h, cc}
  10504. * test/Xml2MetalinkProcessorTest.cc
  10505. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10506. Fixed the bug that prevents aria2 from stopping other than by pressing
  10507. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10508. option. aria2 doesn't stop even after --seed-time is satisfied and
  10509. continues to output blank lines in the console.
  10510. * src/ReceiverMSEHandshakeCommand.cc
  10511. * src/PeerReceiveHandshakeCommand.cc
  10512. * src/PeerListenCommand.cc
  10513. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10514. Bump up version number to 0.13.0rc
  10515. * configure.ac
  10516. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10517. Updated man page and some usage text.
  10518. * doc/aria2c.1.txt
  10519. * src/usage_text.h
  10520. * po/*.{po, gmo}
  10521. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10522. Updated translations. Added Finnish and Hebrew translations.
  10523. Great thanks to all translators!
  10524. * po/*.{po, gmo}
  10525. * po/LINGUAS
  10526. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10527. Log more detailed information about each message.
  10528. * src/DHTQueryMessage.{h, cc}
  10529. * src/DHTGetPeersMessage.{h, cc}
  10530. * src/DHTFindNodeReplyMessage.{h, cc}
  10531. * src/DHTGetPeersReplyMessage.{h, cc}
  10532. * src/DHTAnnouncePeerMessage.{h, cc}
  10533. * src/DHTResponseMessage.{h, cc}
  10534. * src/DHTFindNodeMessage.{h, cc}
  10535. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10536. Use constants defined in prefs.h
  10537. * src/option_processing.cc
  10538. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10540. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Make room for future enchancements for IPv6 addresses.
  10542. Bump up version number of dht.dat file format to 2.
  10543. Not compatible with previous version.
  10544. * src/DHTRoutingTableSerializer.cc
  10545. * src/DHTRoutingTableDeserializer.cc
  10546. * test/DHTRoutingTableSerializerTest.cc
  10547. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10548. Added handling for the return values from
  10549. PeerMessageUtil::createcompact().
  10550. * src/DefaultBtContext.cc (computeFastSet):
  10551. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10552. Fixed abort when peer's ip address is IPv4-mapped address.
  10553. * src/DefaultBtContext.cc (computeFastSet)
  10554. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10555. cannot handle IPv4-mapped addresses.
  10556. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10557. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10558. Proper return value handling for OpenSSL functions.
  10559. * src/LibsslDHKeyExchange.h
  10560. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10561. Random bytes generation using libgcrypt and OpenSSL.
  10562. * src/DHTUtil.{h, cc}
  10563. * test/DHTUtilTest.cc
  10564. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10565. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10566. received.
  10567. * src/DHTMessageReceiver.cc (receiveMessage)
  10568. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10569. Fixed the bug that a return code is always 0. BUG#1897704
  10570. If error occurred during the download or there exist unfinished
  10571. downloads, aria2 returns with code 1.
  10572. * src/RequestGroupMan.{h, cc}
  10573. * src/MultiUrlRequestInfo.{h, cc}
  10574. * src/main.cc
  10575. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10576. IPv6 support for SocketCore class.
  10577. TODO: In SocketCore::establishConnection(), this is insufficient to
  10578. determin the failure of connect() here because the socket is
  10579. non-blocking state. The next addresses should be tried after select().
  10580. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10581. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10582. instead which address family independent.
  10583. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10584. information in a compact peer format which is for IPv4 only.
  10585. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10586. this is a spec of BitTorrent protocol.
  10587. * src/SocketCore.{h, cc}
  10588. * src/PeerMessageUtil.cc
  10589. * test/SocketCoreTest.cc
  10590. * test/PeerMessageUtilTest.cc
  10591. * test/DHTConnectionImplTest.cc
  10592. Handle IPv4-mapped addresses.
  10593. * src/DHTNode.cc: Now identity is determined by node id.
  10594. * src/DHTMessageTrackerEntry.cc
  10595. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10596. should handle it.
  10597. * src/DHTRoutingTableDeserializer.cc
  10598. * src/DHTMessageFactoryImpl.cc
  10599. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10600. Change the unit of --stop option from a minute to a second.
  10601. * src/usage_text.h
  10602. * src/DownloadEngineFactory.cc
  10603. * src/OptionHandlerFactory.cc
  10604. * src/message.h
  10605. * src/TimedHaltCommand.cc
  10606. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Make listening socket non-block mode.
  10608. * src/FtpConnection.cc
  10609. * src/FtpNegotiationCommand.{h, cc}
  10610. * src/PeerListenCommand.cc
  10611. Fixed the bug that cause slow ftp negotiation.
  10612. * src/FtpNegotiationCommand.{h, cc}
  10613. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10614. Added basic tag to --enable-dht, --dht-listen-port option.
  10615. * src/HelpItemFactory.cc (createHelpItems)
  10616. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10617. Updated text.
  10618. * src/usage_text.h
  10619. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10620. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10621. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10622. Determin _threadtholdSpeed in each constructor for
  10623. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10624. * src/ActivePeerConnectionCommand.{h, cc}
  10625. * src/PeerReceiveHandshakeCommand.{h, cc}
  10626. * src/BtSetup.cc
  10627. * src/BtConstants.h
  10628. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10629. Added --bt-min-crypto-level and --bt-require-crypto options.
  10630. * src/OptionHandlerFactory.cc
  10631. * src/MSEHandshake.cc
  10632. * src/HelpItemFactory.cc
  10633. * src/option_processing.cc
  10634. * src/ReceiverMSEHandshakeCommand.cc
  10635. * src/prefs.h
  10636. * src/DefaultBtAnnounce.cc
  10637. * src/InitiatorMSEHandshakeCommand.cc
  10638. * src/usage_text.h
  10639. * test/MSEHandshakeTest.cc
  10640. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10641. Bump version number to 0.13.0b
  10642. * configure.ac
  10643. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10644. Updated doc.
  10645. * src/MessageDigestHelper.h:
  10646. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10647. Use raw message digest as a token instead of its hexadecimal
  10648. representation.
  10649. * src/DHTTokenTracker.cc (generateToken)
  10650. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10651. Added Message Stream Encryption(MSE) support.
  10652. Currently, aria2 accepts incoming connections with Obfuscation Header
  10653. and legacy BitTorrent Header and establishes connections with
  10654. Obfuscation Header first and if failed then retry with legacy
  10655. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10656. choose ARC4. The new option to change the default behavior is planned.
  10657. For tracker extension, "supportcrypto=1" is added statically.
  10658. * src/PeerInitiateConnectionCommand.{h, cc}
  10659. * src/PeerConnection.{h, cc}
  10660. * src/HandleRegistry.h
  10661. * src/SocketCore.h
  10662. * src/PeerReceiveHandshakeCommand.{h, cc}
  10663. * src/BtRegistry.{h, cc}
  10664. * src/PeerListenCommand.cc
  10665. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10666. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10667. * src/MSEHandshake.{h, cc}
  10668. * src/ARC4Encryptor.h
  10669. * src/ARC4Decryptor.h
  10670. * src/LibgcryptARC4Encryptor.h
  10671. * src/LibgcryptARC4Decryptor.h
  10672. * src/LibgcryptARC4Context.h
  10673. * src/LibsslARC4Encryptor.h
  10674. * src/LibsslARC4Decryptor.h
  10675. * src/LibsslARC4Context.h
  10676. * src/DHKeyExchange.h
  10677. * src/LibgcryptDHKeyExchange.h
  10678. * src/LibsslDHKeyExchange.h
  10679. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10680. * test/DefaultBtAnnounceTest.cc
  10681. * test/ARC4Test.cc
  10682. * test/DHKeyExchangeTest.cc
  10683. Removed prepareForRetry() because it is not used.
  10684. * src/PeerAbstractCommand.{h, cc}
  10685. * src/PeerInteractionCommand.{h, cc}
  10686. * src/PeerInitiateConnectionCommand.{h, cc}
  10687. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10688. Added the ability to load nodes from torrent file. These nodes are
  10689. added to the routing table when downloading that torrent.
  10690. * src/BtContext.h
  10691. * src/DefaultBtContext.{h, cc}
  10692. * src/DHTSetup.cc
  10693. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10694. hostname and port pair, and resolves all of them.
  10695. * src/NameResolver.{h, cc}: Added reset().
  10696. * src/RequestGroup.cc
  10697. * test/DefaultBtContextTest.cc
  10698. * test/MockBtContext.h
  10699. Removed assert() from DefaultBtContext and throw exception instead.
  10700. * src/DefaultBtContext.cc
  10701. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Fixed segmentation fault bug when exiting if dht is disabled.
  10703. * src/RequestGroup.cc
  10704. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10705. Fixed typo in log message and define the message in message.h
  10706. * src/TimedHaltCommand.cc
  10707. * src/message.h
  10708. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10709. Included RecoverableException.h to fix compilation error.
  10710. * test/DHTMessageFactoryImplTest.cc
  10711. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10712. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10713. * test/DHTPingMessageTest.cc
  10714. * test/DHTGetPeersMessageTest.cc
  10715. * test/DHTFindNodeMessageTest.cc
  10716. * test/DHTAnnouncePeerMessageTest.cc
  10717. * test/MockDHTMessage.h
  10718. * test/MockDHTMessageFactory.h
  10719. * test/MockDHTMessageDispatcher.h: New class.
  10720. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10721. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10722. virtual.
  10723. * src/DHTMessageDispatcher.h
  10724. * src/DHTMessageDispatcherImpl.{h, cc}
  10725. * src/DHTSetup.cc
  10726. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10727. Adding handling of DHT error message. Just log error message and
  10728. throw exception.
  10729. * src/DHTMessageFactoryImpl.cc
  10730. * test/DHTMessageFactoryImplTest.cc
  10731. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10732. Added handling of dynamic cast failure.
  10733. * src/DHTNodeLookupTask.cc
  10734. * src/DHTPeerLookupTask.cc
  10735. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10736. Added the ability to stop aria2 itself when given time has passed
  10737. from start. Use --stop option to specify time in minutes.
  10738. When 0 is given, this feature is disabled.
  10739. * src/OptionHandlerFactory.cc
  10740. * src/TimeBasedCommand.h: Make _interval protected scope.
  10741. * src/HelpItemFactory.cc
  10742. * src/option_processing.cc
  10743. * src/prefs.h
  10744. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10745. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10746. Without this modification, the result list shows "ERR" when aria2 is
  10747. stopped by --stop option. It should be "INPR".
  10748. * src/DownloadEngine.{h, cc}
  10749. * src/DownloadEngineFactory.cc
  10750. * src/usage_text.h
  10751. * src/TimedHaltCommand.{h, cc}: New class.
  10752. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10753. Bootstrap through node added by port message.
  10754. Currently bootstrap is executed if the number of buckets in routing
  10755. table is 1.
  10756. * src/BtPortMessage.{h, cc}
  10757. * src/DefaultBtMessageFactory.{h, cc}
  10758. * src/PeerInteractionCommand.cc
  10759. * test/BtPortMessageTest.cc
  10760. * test/MockDHTTask.h
  10761. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10762. Extract the Peer class's member variables, which are only needed after
  10763. PeerInteractionCommand, into PeerSessionResource class.
  10764. This class is instantiated in PeerInteractionCommand class's ctor and
  10765. released in its dtor.
  10766. This will make Peer class lightweight and uses less memory for peers
  10767. which are not connected and wait in the queue.
  10768. * src/PeerChokeCommand.cc
  10769. * src/PeerSessionResource.{h, cc}
  10770. * src/PeerInteractionCommand.cc
  10771. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10772. * src/DefaultBtInteractive.cc
  10773. * src/BtPieceMessage.cc
  10774. * src/BtInterestedMessage.cc
  10775. * src/BtUnchokeMessage.cc
  10776. * src/DefaultPeerStorage.{h, cc}
  10777. * src/PeerInitiateConnectionCommand.cc
  10778. * src/ActivePeerConnectionCommand.cc
  10779. * src/BtNotInterestedMessage.cc
  10780. * src/DefaultBtMessageDispatcher.cc
  10781. * src/BtChokeMessage.cc
  10782. * src/BtRequestMessage.cc
  10783. * src/Peer.{h, cc}
  10784. * src/BtRegistry.h
  10785. * src/TrackerWatcherCommand.cc
  10786. * src/PeerReceiveHandshakeCommand.cc
  10787. * test/BtExtendedMessageTest.cc
  10788. * test/BtAllowedFastMessageTest.cc
  10789. * test/BtCancelMessageTest.cc
  10790. * test/DefaultPieceStorageTest.cc
  10791. * test/BtBitfieldMessageTest.cc
  10792. * test/BtHaveMessageTest.cc
  10793. * test/BtNotInterestedMessageTest.cc
  10794. * test/BtRequestMessageTest.cc
  10795. * test/PeerSessionResourceTest.cc
  10796. * test/DefaultBtMessageDispatcherTest.cc
  10797. * test/PeerTest.cc
  10798. * test/BtInterestedMessageTest.cc
  10799. * test/BtRejectMessageTest.cc
  10800. * test/BtChokeMessageTest.cc
  10801. * test/DefaultPeerStorageTest.cc
  10802. * test/BtHaveNoneMessageTest.cc
  10803. * test/BtHaveAllMessageTest.cc
  10804. * test/DefaultExtensionMessageFactoryTest.cc
  10805. * test/BtUnchokeMessageTest.cc
  10806. * test/DefaultBtMessageFactoryTest.cc
  10807. * test/HandshakeExtensionMessageTest.cc
  10808. * test/UTPexExtensionMessageTest.cc
  10809. * test/DefaultBtRequestFactoryTest.cc
  10810. * test/BtPieceMessageTest.cc
  10811. Removed typedef PeerStats.
  10812. * src/PeerStat.h
  10813. * src/SegmentMan.cc
  10814. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10815. Added std namespace to copy, remove_copy, back_inserter,
  10816. front_inserter.
  10817. * src/RequestGroupMan.cc
  10818. * src/DefaultPieceStorage.cc
  10819. * src/StreamFileAllocationEntry.cc
  10820. * src/BtFileAllocationEntry.cc
  10821. * src/RequestGroup.cc
  10822. * src/MetalinkEntry.cc
  10823. * src/DelegatingPeerListProcessor.cc
  10824. * src/DefaultBtRequestFactory.cc
  10825. * src/DefaultBtMessageDispatcher.cc
  10826. * src/version_usage.cc: Included <algorithm>
  10827. * src/main.cc
  10828. * src/MetalinkParserController.cc
  10829. * src/DefaultBtContext.cc
  10830. * src/DownloadEngineFactory.cc
  10831. * src/a2algo.h
  10832. Removed.
  10833. * test/StreamUriListParserTest.cc
  10834. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10835. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10836. ActivePeerConnectionCommand when it is given and
  10837. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10838. * src/ActivePeerConnectionCommand.{h, cc}
  10839. * src/BtSetup.cc
  10840. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10841. Only add socket to DownloadEngine's select routine when peer or
  10842. localhost is unchoked and interested. This lowers CPU usage a
  10843. little bit.
  10844. * src/PeerInteractionCommand.cc
  10845. * src/PeerAbstractCommand.{h, cc}
  10846. * src/BtInteractive.h
  10847. * src/DefaultBtInteractive.{h, cc}
  10848. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10849. Revert previous change because get_peers message is needed for
  10850. announce_peer anyway.
  10851. * src/DHTGetPeersCommand.cc
  10852. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10853. Request peers thought DHT only when download hasn't finished.
  10854. * src/DHTGetPeersCommand.cc
  10855. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10856. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10857. * src/DHTBucketRefreshTask.{h, cc}
  10858. * src/DHTSetup.cc
  10859. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10860. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10861. standard classes.
  10862. Included string.h where mem* function are used.
  10863. Added namespace aria2.
  10864. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10865. Create directory before saving DHT routing table.
  10866. Now ios::failure is now handled properly.
  10867. * src/DHTAutoSaveCommand.cc
  10868. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10869. Removed unnecessary cerr.
  10870. * src/DownloadEngine.cc
  10871. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10872. Catch exception inside DHTMessageReceiver::receiveMessage().
  10873. Log unknown message.
  10874. * src/DHTMessageReceiver.{h, cc}
  10875. * src/DHTMessageFactory.h
  10876. * src/DHTMessageFactoryImpl.{h, cc}
  10877. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10878. * src/DHTInteractionCommand.cc
  10879. * src/DHTUnknownMessage.{h, cc}
  10880. * test/DHTUnknownMessageTest.cc
  10881. * test/MockDHTMessageFactory.h
  10882. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10883. Commented out ip address comparison because a host can have multiple
  10884. ip addresses and it is hard to predict the hostname is resolved into
  10885. which one.
  10886. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10887. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10888. * po/Makefile.in: Removed since this is generated by configure.
  10889. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10890. Fixed compiler warning about redefinition of SIZE_MAX.
  10891. Use common.h instead of config.h directly here.
  10892. * src/Platform.{h, cc}
  10893. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10894. here.
  10895. * common.h
  10896. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10897. Updated gettext related files.
  10898. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10899. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10900. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10901. Added DHT functionality, compatible with mainline.
  10902. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10903. You may need to specify entry point to DHT network using
  10904. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10905. Use --dht-listen-port to specify port number. Make sure that your
  10906. firewall configuration can pass through UDP traffic to the port.
  10907. The routing table is saved in $HOME/.aria2/dht.dat.
  10908. * src/DHT*
  10909. * src/BNode.{h, cc}
  10910. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10911. particular torrent.
  10912. * src/Data.cc: Rewritten ctor.
  10913. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10914. --dht-entry-point.
  10915. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10916. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10917. ends, remove BtContext from DHTPeerAnnounceStorage.
  10918. * src/BtPortMessage.{h, cc}: Rewritten.
  10919. * src/message.h
  10920. * src/OptionHandlerImpl.cc
  10921. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10922. --dht-entry-point.
  10923. * src/Dictionary.{h, cc} (remove): New function.
  10924. * src/prefs.h
  10925. * src/DefaultBtMessageFactory.h
  10926. * src/BtHandshakeMessage.cc
  10927. * src/ActivePeerConnectionCommand.cc
  10928. * src/SocketCore.{h, cc}: Added datagram socket support.
  10929. * src/DefaultBtMessageFactory.cc
  10930. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10931. Create DHT commands.
  10932. * src/BtMessageFactory.h
  10933. * src/PeerMessageUtil.{h, cc}
  10934. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10935. Fixed the bug that log file is not written when configuration file doesn't exist.
  10936. This is caused by using Logger class before LogFactory is not configured.
  10937. BUG #1875079
  10938. * src/option_processing.cc
  10939. Warning message "configuration doesn't exist" is only printed when --conf is
  10940. given.
  10941. * src/option_processing.cc
  10942. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10943. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10944. ShaVisitor is now deprecated and slated to be removed.
  10945. * src/DefaultBtContext.cc
  10946. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10947. Externalize message to message.h
  10948. * src/Platform.cc
  10949. * src/message.h
  10950. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10951. Set default domain and default path to cookie.
  10952. * src/HttpResponse.cc
  10953. * src/CookieBox.{h, cc}
  10954. * src/CookieParser.{h, cc}
  10955. * test/CookieParserTest.cc
  10956. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10957. Added --no-conf and --conf-path command-line option.
  10958. --no-conf option disables loading aria2.conf file.
  10959. --conf-path option changes the configuration file path. The default
  10960. file path is $HOME/.aria2/aria2.conf
  10961. Added a warning message when the configuration file is not found.
  10962. * src/HelpItemFactory.cc
  10963. * src/option_processing.cc
  10964. * src/prefs.h
  10965. * src/usage_text.h
  10966. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10967. Added the message to inform users that other help categories are
  10968. available in -h option.
  10969. * src/version_usage.cc
  10970. * src/TagContainer.{h, cc}
  10971. * test/TagContainerTest.cc
  10972. * src/TaggedItem.{h, cc}
  10973. * test/TaggedItemTest.cc
  10974. * src/HelpItem.h
  10975. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10976. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10977. from PiecedSegment's ctor.
  10978. Previously Piece::getAllMissingBlockIndexes() is called from
  10979. PiecedSegment() but it is rather expensive since only first element is
  10980. used.
  10981. * src/PiecedSegment.cc
  10982. * src/Piece.{h, cc}
  10983. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10984. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10985. each time these functions are called.
  10986. * src/BitfieldMan.{h, cc}
  10987. * test/BitfieldManTest.cc
  10988. * src/array_fun.h
  10989. * test/array_funTest.cc
  10990. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10991. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10992. filtered. Removed unnecessary cast to int32_t.
  10993. * src/BitfieldMan.{h, cc}
  10994. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10995. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10996. payload length(4bytes) are received. This happens because lenbufLength
  10997. is not updated in this particular case and successive call of
  10998. receiveMessage() overwrites payload length with bytes recieved which
  10999. are payload body.
  11000. * src/PeerConnection.{h, cc}
  11001. * src/message.h
  11002. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11003. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  11004. peer if there are peers that have same ipaddr and port.
  11005. I've experiened segmentation fault and "pure virtual function was
  11006. called" error.
  11007. * src/Peer.h
  11008. * test/PeerTest.cc
  11009. * src/DefaultPeerStorage.cc
  11010. * test/DefaultPeerStorageTest.cc
  11011. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11012. Removed a call to isPowerOf() because it is no longer necessary here
  11013. and a request block is not always power of 2.
  11014. BUG#1866924
  11015. * src/PeerMessageUtil.cc (checkLength)
  11016. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Fixed the bug that always first found Segment is removed from
  11018. usedSegmentEntries. Removed unused functions.
  11019. * src/SegmentMan.{h, cc}
  11020. * test/SegmentManTest.cc
  11021. Fixed the bug that ServerHost is not removed.
  11022. * src/RequestGroup.cc
  11023. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Fixed the bug that SegmentMan::completeSegment() is not called
  11025. even if Segment is complete when --lowest-speed-limit is enabled.
  11026. BUG#1864525
  11027. * src/DownloadCommand.{h, cc}
  11028. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. Fixed: hash algorithm 'sha1' is always used.
  11030. * src/DownloadCommand.cc (validatePieceHash)
  11031. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11032. Added --enable-peer-exchange command-line option.
  11033. * src/OptionHandlerFactory.cc
  11034. * src/HelpItemFactory.cc
  11035. * src/option_processing.cc
  11036. * src/usage_text.h
  11037. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11038. Move extension from BtRuntime to ExtensionMessageFactory, because
  11039. extension can be specified per peer, not per torrent.
  11040. * src/DefaultBtInteractive.cc
  11041. * src/BtRuntime.h
  11042. * src/ExtendedMessagingAware.h
  11043. * src/ExtensionMessageFactory.h
  11044. * src/DefaultExtensionMessageFactory.cc
  11045. * test/DefaultExtensionMessageFactoryTest.cc
  11046. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11047. Added categorized option help. Specify category using --help option.
  11048. Also added the ability to search options in forward match.
  11049. * src/HelpItem.{h, cc}
  11050. * test/HelpItemTest.cc
  11051. * src/HelpItemFactory.{h, cc}
  11052. * src/TagContainer.{h, cc}
  11053. * test/TagContainerTest.cc
  11054. * src/option_processing.cc
  11055. * src/prefs.h
  11056. * src/TaggedItem.{h, cc}
  11057. * test/TaggedItemTest.cc
  11058. * src/version_usage.cc
  11059. * src/help_tags.h
  11060. * src/usage_text.h
  11061. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11062. Fixed segmentation fault when bad torrent metainfo is parsed.
  11063. Added dynamic_cast properly to detect the misconfiguration of metainfo
  11064. and then throw exception or skip it.
  11065. * src/DefaultBtContext.{h, cc}
  11066. * test/DefaultBtContextTest.cc
  11067. * src/AnnounceList.cc
  11068. * src/CompactPeerListProcessor.cc
  11069. * src/message.h
  11070. * src/DefaultBtAnnounce.{h, cc}
  11071. * test/DefaultBtAnnounceTest.cc
  11072. * src/BencodeVisitor.cc
  11073. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. Added missing "B"(=Byte). So now the message looks like this:
  11075. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  11076. * src/message.h (MSG_SHARE_RATIO_REPORT)
  11077. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11078. Show the seed ratio after torrent downloads.
  11079. For example, after torrent download completed and --seed-time and
  11080. --seed-ratio conditions are fulfilled, following message is printed
  11081. right after "Download complete: .....":
  11082. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  11083. * src/RequestGroupMan.cc
  11084. * src/RequestGroup.{h, cc}
  11085. * src/message.h
  11086. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11087. Remove a defunct control file. A defunct control file means that while
  11088. it exists, but the corresponding download file is missing.
  11089. After its removal, a download restarts from the beginning.
  11090. * src/RequestGroup.cc
  11091. * src/message.h
  11092. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11093. Allocate bitfield in Peer when it is really used. More specifically,
  11094. bitfield in Peer is allocated after the connection is established and
  11095. deallocated when the connection is dropped.
  11096. Since 2 parameters(piece length and total length) was removed from the
  11097. constructor of Peer class, many test classes were modified accordingly.
  11098. See svn log for more detailed information.
  11099. * src/PeerInteractionCommand.cc
  11100. * src/CompactPeerListProcessor.cc
  11101. * src/Peer.cc
  11102. * src/DefaultPeerListProcessor.cc
  11103. * src/PeerListenCommand.cc
  11104. * src/PeerReceiveHandshakeCommand.cc
  11105. Fixed memory leak
  11106. * src/Piece.cc
  11107. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11108. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  11109. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  11110. command-line options.
  11111. * src/option_processing.cc
  11112. * src/ActivePeerConnectionCommand.cc
  11113. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11114. Send have message to peer if it already has the piece.
  11115. * src/BtHaveMessage.{h, cc}
  11116. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11117. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  11118. port.
  11119. * src/DefaultPeerStorage.{h, cc}
  11120. * test/DefaultPeerStorageTest.cc
  11121. * src/HandshakeExtensionMessage.cc
  11122. * test/HandshakeExtensionMessageTest.cc
  11123. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  11124. * src/PeerStorage.h
  11125. * test/MockPeerStorage.h
  11126. * src/PeerListenCommand.cc
  11127. * src/PeerReceiveHandshakeCommand.cc
  11128. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11129. Added --metalink-enable-unique-protocol option.
  11130. * src/Metalink2RequestGroup.cc
  11131. * src/option_processing.cc
  11132. * src/prefs.h
  11133. * src/version_usage.cc
  11134. * doc/aria2c.1.txt
  11135. * doc/aria2c.1
  11136. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11137. Allow a peer in incomingPeer to be added peers.
  11138. * src/DefaultPeerStorage.cc
  11139. * test/DefaultPeerStorageTest.cc
  11140. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11141. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  11142. I could reproduce this bug in following procedure:
  11143. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  11144. 2. Restart aria2.
  11145. 3. You see the download stopped around 99%.
  11146. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  11147. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  11148. If timeout is reached, then _nextCommand is unused and it may contains
  11149. segments and they won't be canceled. Actually, timeout is not needed
  11150. here because if the server dropped connection, then retry is made.
  11151. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11152. Added uTorrent compatible Peer Exchange.
  11153. * src/BencodeVisitor.{h, cc}
  11154. * test/BencodeVisitorTest.cc
  11155. * src/BtConstants.h
  11156. * src/BtContext.h: Added 'private' flag.
  11157. * src/BtExtendedMessage.{h, cc}
  11158. * test/BtExtendedMessageTest.cc
  11159. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  11160. reserved field.
  11161. * test/BtHandshakeMessageTest.cc
  11162. * src/BtMessageFactory.h
  11163. * src/BtRegistry.h
  11164. * src/BtRuntime.h: This class holds default extension message IDs for
  11165. aria2. By default, aria2 uses ID 8 for ut_pex.
  11166. * src/DefaultBtContext.cc
  11167. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  11168. When it is true, aria2 enables ut_pex. This value is set by
  11169. PeerInteractionCommand.
  11170. * src/DefaultBtMessageFactory.{h, cc}
  11171. * test/DefaultBtMessageFactoryTest.cc
  11172. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  11173. handling to DefaultBtInteractive class.
  11174. * src/DefaultExtensionMessageFactory.{h, cc}
  11175. * test/DefaultExtensionMessageFactoryTest.cc
  11176. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  11177. the container(peers and incomingPeers. The equality is determined by
  11178. Peer::id).
  11179. * test/DefaultPeerStorageTest.cc
  11180. * src/ExtensionMessage.h
  11181. * test/MockExtensionMessage.h
  11182. * src/ExtensionMessageFactory.h
  11183. * test/MockExtensionMessageFactory.h
  11184. * src/HandshakeExtensionMessage.{h, cc}
  11185. * test/HandshakeExtensionMessageTest.cc
  11186. * src/MetaEntry.h
  11187. * src/Peer.{h, cc}
  11188. * src/PeerInteractionCommand.cc
  11189. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  11190. addIncomingPeer.
  11191. * src/PeerMessageUtil.{h, cc}
  11192. * src/PeerObject.h
  11193. * src/UTPexExtensionMessage.{h, cc}
  11194. * test/UTPexExtensionMessageTest.cc
  11195. * src/message.h
  11196. * src/prefs.h
  11197. Fixed the bug that returns incomplete data when it contains null
  11198. character. A convenient constructor was also added.
  11199. * src/Data.{h, cc}
  11200. Rewritten.
  11201. * src/CompactPeerListProcessor.cc
  11202. Fixed typos.
  11203. * src/message.h
  11204. * src/MetaFileUtil.cc
  11205. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11206. Added "Status Legend" label to the explanation text of 'stat' in
  11207. download result and moved it to the last. BUG#1848214
  11208. * src/RequestGroupMan.cc
  11209. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11210. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  11211. * src/Makefie.am
  11212. * test/Makefile.am
  11213. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11214. Fixed the bug that prevents aria2 from loading cookie file when expire
  11215. value is greater than 2^31-1. BUG#1851066
  11216. * src/CookieBoxFactory.cc
  11217. * test/CookieBoxFactoryTest.cc
  11218. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11219. Fixed possible memory leak when an exception is thrown.
  11220. * src/XML2SAXMetalinkProcessor.cc
  11221. Added Expat support. If both libxml2 and Expat are installed, then
  11222. libxml2 is used by default.
  11223. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  11224. ExpatMetalinkProcessor according to the configuration.
  11225. * src/ExpatMetalinkProcessor.{h, cc}
  11226. * src/main.cc: Removed libxml2 specific header and init/free function.
  11227. * src/MetalinkProcessorFactory.{h, cc}
  11228. * src/MetalinkHelper.cc
  11229. * src/Metalinker.h: Removed unnecessary libxml2 header.
  11230. * src/MetalinkProcessor.h
  11231. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  11232. MetalinkProcessorTest is used instead.
  11233. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  11234. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  11235. MetalinkProcessorFactory::newInstance().
  11236. * m4/libexpat.m4
  11237. * configure.ac: Added configuration options for libexpat.
  11238. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11239. Disabled -s option in metalink download.
  11240. * src/Metalink2RequestGroup.cc
  11241. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11242. If several protocols are available for a mirror in metalink file,
  11243. aria2 now use one of them. --metalink-preferred-protocol option was
  11244. added to specify the preference of protocol.
  11245. * src/AbstractCommand.cc
  11246. * src/OptionHandlerFactory.cc
  11247. * src/ServerHost.{h, cc}
  11248. * src/Metalink2RequestGroup.cc
  11249. * src/RequestGroup.{h, cc}
  11250. * test/RequestGroupTest.cc
  11251. * src/option_processing.cc
  11252. * src/prefs.h
  11253. * src/HttpResponseCommand.cc
  11254. * src/MetalinkResource.{h, cc}
  11255. * src/FtpNegotiationCommand.cc
  11256. * src/MetalinkEntry.{h, cc}
  11257. * src/MetalinkEntryTest.cc
  11258. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11259. Code cleanup and added debug log.
  11260. * src/PeerConnection.cc
  11261. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11262. Compiler error fix: applied the patch by Tiziano Mueller
  11263. * src/RequestGroup.cc
  11264. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11265. Fixed the bug: only first announce URL is tried in AnnounceTier,
  11266. in stopped and completed event.
  11267. * src/AnnounceList.{h, cc}
  11268. * test/AnnounceListTest.cc
  11269. * src/DefaultBtAnnounce.cc
  11270. * test/DefaultBtAnnounceTest.cc
  11271. Sorted URLs.
  11272. * test/Metalink2RequestGroupTest.cc
  11273. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11274. Removed unnecessary string copy. Updated doc and corrected indentation.
  11275. * src/Base64.cc
  11276. Fixed compilation warnings
  11277. * test/DataTest.cc
  11278. * test/HttpRequestTest.cc
  11279. * test/MetaFileUtilTest.cc
  11280. * test/RequestTest.cc
  11281. * Release 0.12.0
  11282. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11283. Updated translations
  11284. * po/{de,fr,ja,nl,ru}.po
  11285. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  11286. translations. Many thanks to translators.
  11287. * po/{ca,es,it,pt_BR,sv}.po
  11288. * po/LINGUAS
  11289. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11290. Added a notice about URL
  11291. * src/version_usage.cc
  11292. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  11293. Fixed the bug#1845750; CTRL+C does not stop torrent.
  11294. aria2 repeatedly sends stopped request when tracker returns error code.
  11295. * src/AnnounceList.cc
  11296. * test/AnnounceListTest.cc
  11297. * src/AnnounceTier.h
  11298. Added a message when ctrl-c is hit.
  11299. Now second ctrl-c is also handled in signal handler.
  11300. * src/RequestGroupMan.{h, cc}
  11301. * src/RequestGroup.{h, cc}
  11302. * src/MultiUrlRequestInfo.cc
  11303. * src/DownloadEngine.cc
  11304. * src/TrackerWatcherCommand.cc
  11305. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11306. Code cleanup
  11307. * src/Base64.cc (encode)
  11308. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11309. Changed Direct/IO enable/disable procesure in file allocation routine.
  11310. * src/SingleFileAllocationIterator.cc
  11311. (SingleFileAllocationIterator):
  11312. Disable directIO if offset is not multiple of 512.
  11313. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  11314. * src/MultiFileAllocationIterator.cc (allocateChunk):
  11315. Enable created SingleFileAllocationIterator's directIO.
  11316. * src/FileAllocationEntry.cc
  11317. (FileAllocationEntry): Enable directIO here.
  11318. (~FileAllocationEntry): Disable directIO here.
  11319. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11320. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  11321. * src/Peer.{h, cc}
  11322. * src/DefaultPieceStorage.cc
  11323. * test/DefaultPieceStorageTest.cc
  11324. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11325. Rewritten direct I/O support routine
  11326. * src/SingleFileAllocationIterator.cc
  11327. * src/MultiDiskAdaptor.{h, cc}
  11328. * src/ByteArrayDiskWriter.h
  11329. * src/AbstractSingleDiskAdaptor.h
  11330. * src/AbstractDiskWriter.cc
  11331. * src/DefaultPieceStorage.cc
  11332. * src/DiskWriter.h
  11333. * src/BinaryStream.h
  11334. * src/IteratableChunkChecksumValidator.cc
  11335. * src/IteratableChecksumValidator.cc
  11336. * src/CheckIntegrityEntry.cc
  11337. * src/FileAllocationEntry.cc
  11338. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11339. Fixed typo
  11340. * src/version_usage.cc
  11341. Updated doc
  11342. * doc/aria2c.1.txt
  11343. * doc/aria2c.1
  11344. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11345. Fixed compile error without message digest support.
  11346. * src/FileMetalinkParserState.cc
  11347. * src/MetalinkParserController.{h, cc}
  11348. * test/XML2SAXMetalinkProcessorTest.cc
  11349. * test/MetalinkParserControllerTest.cc
  11350. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11351. Enable direct I/O support in checksum checking.
  11352. * src/IteratableChunkChecksumValidator.{h, cc}
  11353. * test/IteratableChunkChecksumValidatorTest.cc
  11354. * src/CheckIntegrityEntry.cc
  11355. * src/PieceHashCheckIntegrityEntry.cc
  11356. * src/IteratableChecksumValidator.{h, cc}
  11357. * src/BtCheckIntegrityEntry.cc: Added doc.
  11358. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11359. Added --allow-piece-length-change option.
  11360. * src/DefaultBtProgressInfoFile.cc
  11361. * test/DefaultBtProgressInfoFileTest.cc
  11362. * src/OptionHandlerFactory.cc
  11363. * src/option_processing.cc
  11364. * src/prefs.h
  11365. * src/version_usage.cc
  11366. * doc/aria2c.1.txt
  11367. * doc/aria2c.1
  11368. Fixed: duplicated result entry appears when exception is thrown in
  11369. RequestGroup::createInitiateConnectionCommand().
  11370. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11371. Add RequestGroup to _requestGroup after RequetGroup::
  11372. createInitiateConnectionCommand() succeeds.
  11373. Externalized message
  11374. * src/XML2SAXMetalinkProcessor.cc
  11375. * src/message.h
  11376. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11377. Forced download abort when received negative response from http/ftp
  11378. server.
  11379. * src/HttpResponseCommand.cc
  11380. * src/FtpNegotiationCommand.cc
  11381. * src/HttpResponse.cc
  11382. * src/FtpConnection.cc
  11383. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11384. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11385. the predecessor, Xml2MetalinkParser class.
  11386. I tested them against 94KB metalink file with 1234 chunk checksums.
  11387. The new one parsed it in 22msec, while it took 6000msec with old one.
  11388. * src/XML2SAXMetalinkProcessor.{h, cc}
  11389. * test/XML2SAXMetalinkProcessorTest.cc
  11390. * src/MetalinkParserController.{h, cc}
  11391. * test/MetalinkParserControllerTest.cc
  11392. * src/MetalinkParserState.h: Also added 16 subclasses.
  11393. * src/main.cc
  11394. * src/Metalink2RequestGroup.cc
  11395. * src/MetalinkHelper.cc
  11396. * src/MetalinkEntry.cc
  11397. * src/ChunkChecksum.h
  11398. Rewritten Base64 class for better performance.
  11399. * src/Base64.{h, cc}
  11400. * test/Base64Test.cc
  11401. * src/HttpRequest.cc
  11402. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11403. Fixed the bug#1841757: aria2 will connect to server to only get
  11404. file size.
  11405. * src/StreamFileAllocationEntry.cc
  11406. * src/option_processing.cc
  11407. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11408. downloads.
  11409. * src/FtpNegotiationCommand.cc
  11410. Suppressed wrong message when finding PreDownloadHandler
  11411. * src/RequestGroup.cc
  11412. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11413. Updated usage
  11414. * src/version_usage.cc
  11415. Updated man page
  11416. * doc/aria2c.1.txt
  11417. * doc/aria2c.1
  11418. Updated po files
  11419. * po/aria2c.pot
  11420. * po/*.po
  11421. * po/*.gmo
  11422. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11423. Eliminated g++-4.2 warning
  11424. * src/DownloadHandlerConstants.{h, cc}
  11425. * src/Util.cc
  11426. * test/MetaFileUtilTest.cc
  11427. * test/PStringBuildVisitorTest.cc
  11428. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11429. * src/RequestGroup.cc
  11430. * src/BtCheckIntegrityEntry.cc
  11431. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11432. Fixed a2io.h
  11433. * src/a2io.h
  11434. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11435. Added direct I/O support. The current implementation uses O_DIRECT,
  11436. which is not posix standard and is tested on linux 2.6.21.
  11437. Currently only file allocation uses direct I/O.
  11438. * src/SingleFileAllocationIterator.{h, cc}
  11439. * test/SingleFileAllocationIteratorTest.cc
  11440. * src/MultiFileAllocationIterator.{h, cc}
  11441. * test/MultiFileAllocationIteratorTest.cc
  11442. * src/BinaryStream.h
  11443. * src/DiskWriter.h
  11444. * src/AbstractDiskWriter.{h, cc}
  11445. * src/ByteArrayDiskWriter.h
  11446. * src/DiskAdaptor.h
  11447. * src/AbstractSingleDiskAdaptor.{h, cc}
  11448. * src/MultiDiskAdaptor.{h, cc}
  11449. * src/FileAllocationEntry.cc
  11450. * src/Util.{h, cc}
  11451. * src/OptionHandlerFactory.cc
  11452. * src/prefs.h
  11453. * src/version_usage.cc
  11454. * src/option_processing.cc
  11455. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11456. handleException.
  11457. * src/MultiFileAllocationIterator.cc
  11458. Added EINTR handling
  11459. * src/SocketCore.cc
  11460. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11461. Updated usage
  11462. * src/version_usage.cc
  11463. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11464. Applied Ross's patch for MinGW port.
  11465. * src/DownloadEngine.h
  11466. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11467. Set Content-Type to SingleFileDownloadContext when http response is
  11468. received.
  11469. * src/HttpResponseCommand.cc
  11470. * src/HttpResponse.{h, cc}
  11471. * test/HttpResponseTest.cc
  11472. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11473. Rewritten to add content-type support.
  11474. * src/DownloadHandler.{h, cc}
  11475. * src/BtPostDownloadHandler.{h, cc}
  11476. * test/BtPostDownloadHandlerTest.cc
  11477. * src/MetalinkPostDownloadHandler.{h, cc}
  11478. * test/MetalinkPostDownloadHandlerTest.cc
  11479. * src/PostDownloadHandler.{h, cc}
  11480. * src/DownloadHandlerConstants.{h, cc}
  11481. * src/RequestGroup.cc
  11482. * src/HttpResponseCommand.cc
  11483. * src/FtpNegotiationCommand.cc
  11484. * src/SingleFileDownloadContext.{h, cc}
  11485. * src/RequestGroup.h
  11486. * src/RequestGroupCriteria.h
  11487. * src/ContentTypeRequestGroupCriteria.h
  11488. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11489. If it is give, metalink/torrent file is not written to the disk, but
  11490. just is kept in memory. Parsing is occurred on memory.
  11491. * src/MetalinkHelper.{h, cc}
  11492. * src/MetalinkProcessor.h
  11493. * src/Xml2MetalinkProcessor.{h, cc}
  11494. * test/Xml2MetalinkProcessorTest.cc
  11495. * src/DownloadHandlerFactory.{h, cc}
  11496. * test/DownloadHandlerFactoryTest.cc
  11497. * src/PreDownloadHandler.{h, cc}
  11498. * src/OptionHandlerFactory.cc
  11499. * src/DefaultBtContext.{h, cc}
  11500. * test/DefaultBtContextTest.cc
  11501. * src/version_usage.cc
  11502. * src/Metalink2RequestGroup.{h, cc}
  11503. * src/RequestGroup.{h, cc}
  11504. * src/a2functional.h
  11505. * test/a2functionalTest.cc
  11506. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11507. * src/OptionHandlerImpl.h
  11508. * src/prefs.h
  11509. * src/Util.{h, cc}
  11510. * test/UtilTest.cc
  11511. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11512. memory usage.
  11513. * src/RequestGroupMan.{h, cc}
  11514. * src/DownloadEngine.cc
  11515. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11516. WeakHandle to SharedHandle because WeakHandle could be null.
  11517. * src/RequestGroup.{h, cc}
  11518. * src/DownloadEngineFactory.cc
  11519. * src/DownloadResult.h
  11520. Set totalLength after download finished
  11521. * src/UnknownLengthPieceStorage.{h, cc}
  11522. Keep torrent file specified in metalink in memory.
  11523. * src/Metalink2RequestGroup.cc
  11524. * src/BtDependency.cc
  11525. * src/TrueRequestGroupCriteria.h
  11526. Fixed the bug: seekg is used where seekp should be used.
  11527. * src/ByteArrayDiskWriter.cc
  11528. * test/ByteArraydiskWriterTest.cc
  11529. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11530. Fixed syntax error
  11531. * test/SequenceTest.cc
  11532. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11533. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11534. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11535. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11536. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11537. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11538. Added the check to see whether ares_host_callback accepts timeouts
  11539. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11540. * src/NameResolver.{h, cc}
  11541. * m4/libcares.m4
  11542. * configure.ac: Set C++ for language choice.
  11543. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11544. Fixed: compilation fails without c-ares/ares
  11545. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11546. Generate http/ftp commands only when download is incomplete.
  11547. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11548. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11549. Corrected typo. Examples are removed since they are available in man
  11550. page.
  11551. * src/version_usage.cc
  11552. Updated man page.
  11553. * doc/aria2c.1
  11554. * doc/aria2c.1.txt
  11555. * doc/makeman: Commented out sed command.
  11556. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11557. Throw DlAbortEx when a remote file is not found.
  11558. * src/HttpResponse.cc
  11559. * src/FtpNegotiationCommand.cc
  11560. * src/message.h
  11561. Overwrite an existing file if --allow-overwrite=true is given.
  11562. * src/RequestGroup.cc
  11563. Removed unused functions
  11564. * src/AbstractCommand.h
  11565. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11566. Removed 'extern' from 'extern typedef ...' in src/*.h
  11567. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11568. Updated usage
  11569. * src/version_usage.cc
  11570. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11571. Trim announce URL
  11572. * src/DefaultBtContext.cc
  11573. * test/ShaVisitorTest.cc
  11574. Trim argument s. Give trimed s to exception constructor.
  11575. * src/Util.cc (parseInt)(parseLLInt)
  11576. * test/UtilTest.cc
  11577. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11578. Set precision back to 1.
  11579. * src/ConsoleStatCalc.cc (calculateStat)
  11580. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11581. Replaced strtol with Util::parseInt
  11582. * src/ChunkedEncoding.cc
  11583. * src/HttpConnection.cc
  11584. * src/CookieBoxFactory.cc
  11585. * src/ParameterizedStringParser.cc
  11586. * src/Util.cc
  11587. * test/UtilTest.cc
  11588. * test/OptionHandlerTest.cc
  11589. * src/Request.cc
  11590. Throw exception when empty string is given. The message for exception
  11591. changed.
  11592. * src/Util.cc (parseInt)(parseLLInt)
  11593. * src/message.h
  11594. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11595. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11596. set to 1.
  11597. * src/ConsoleStatCalc.cc (calculateStat)
  11598. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11599. Preallocate non-requested file which is adjacent forward to requested
  11600. file('requested' files means the files given in --select-file option)
  11601. if they share a same piece.
  11602. This fixes long pause in the file system which doesn't support sparse
  11603. files like FAT32 while downloading.
  11604. * src/MultiFileAllocationIterator.{h, cc}
  11605. * test/MultiFileAllocationIteratorTest.cc
  11606. * src/FileEntry.{h, cc}
  11607. Removed unused _option.
  11608. * src/MultiDiskAdaptor.h
  11609. * test/MultiDiskAdaptorTest.cc
  11610. * src/DefaultPieceStorage.cc
  11611. Set the default value of --seed-ratio to 1.0.
  11612. If 0.0 is given, then seeding continues regardless of share ratio.
  11613. * src/version_usage.cc
  11614. * src/option_processing.cc
  11615. * src/BtSetup.cc
  11616. * doc/aria2c.1.txt
  11617. * doc/aria2c.1
  11618. Fixed: Selective download is not working in BitTorrent
  11619. * src/RequestGroup.cc
  11620. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11621. * src/PieceStorage.h
  11622. * test/MockPieceStorage.h
  11623. * src/UnknownLengthPieceStorage.h
  11624. * src/DefaultPieceStorage.{h, cc}
  11625. * src/Metalink2RequestGroup.cc
  11626. * src/RequestGroup.cc
  11627. * src/Sequence.h
  11628. * test/SequenceTest.cc
  11629. * src/IntSequence.h
  11630. * src/message.h
  11631. * src/Util.{h, cc}
  11632. * test/UtilTest.cc
  11633. Added new function 'parse' to catch exception thrown by subclass's
  11634. parseArg
  11635. * src/OptionHandler.h
  11636. * src/OptionParser.cc
  11637. * src/NameMatchOptionHandler.h
  11638. * src/OptionHandlerImpl.h
  11639. * test/OptionHandlerTest.cc
  11640. Added IntegerRangeOptionHandler. Used for --listen-port and
  11641. --select-file. Now --listen-port accepts range of port.
  11642. * src/OptionHandlerFactory.cc
  11643. * src/version_usage.cc
  11644. * src/OptionHandlerImpl.h
  11645. * src/option_processing.cc
  11646. * src/BtSetup.cc
  11647. * src/PeerListenCommand.{h, cc}
  11648. * doc/aria2c.1.txt
  11649. * doc/aria2c.1
  11650. Implemented operator< for Exception class to provide easy way to print
  11651. exception stack trace.
  11652. * src/Exception.{h, cc}
  11653. * src/main.cc
  11654. * src/option_processing.cc
  11655. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11656. * src/version_usage.cc
  11657. (showVersion): Reworked.
  11658. (showUsage): Added examples.
  11659. Removed Hint for total length and file name.
  11660. * src/Metalink2RequestGroup.cc
  11661. * src/RequestGroup.{h, cc}
  11662. * src/HttpResponseCommand.cc
  11663. * src/FtpNegotiationCommand.cc
  11664. Now --follow-torrent and --follow-metalink option work properly.
  11665. * src/RequestGroup.cc
  11666. Updated man page
  11667. * doc/aria2c.1.txt
  11668. * doc/aria2c.1
  11669. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11670. Removed.
  11671. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11672. Use Segment::operator==()
  11673. * src/HttpConnection.cc
  11674. * src/Segment.h
  11675. Updated usage
  11676. * src/version_usage.cc
  11677. Added EINTR treatment.
  11678. * src/SocketCore.cc
  11679. * src/AbstractDiskWriter.cc
  11680. Rewritten.
  11681. * src/Util.cc (rangedFileCopy)
  11682. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11683. Fixed typo.
  11684. * src/version_usage.cc
  11685. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11686. Implemented. Now -c option works fine.
  11687. * src/DefaultPieceStorage.cc (markPiecesDone)
  11688. * test/DefaultPieceStorageTest.cc
  11689. Removed.
  11690. * src/SegmentMan.{h, cc}
  11691. (markAllPiecesDone)
  11692. (markPieceDone)
  11693. Synchronized po files with
  11694. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11695. * src/fr.po
  11696. * src/ru.po
  11697. * src/de.po
  11698. * src/ja.po
  11699. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11700. Added ifdef and some modifications to compile without BitTorrent,
  11701. Metalink, MessageDigest
  11702. support.
  11703. * src/PieceHashCheckIntegrityEntry.cc
  11704. * src/MetalinkEntry.h
  11705. * src/version_usage.cc
  11706. * src/main.cc
  11707. * src/DownloadEngine.{h, cc}
  11708. * src/Metalink2RequestGroup.cc
  11709. * src/Peer.cc
  11710. * src/RequestGroup.cc
  11711. * src/MetalinkHelper.cc
  11712. * test/DefaultPieceStorageTest.cc
  11713. * test/MetalinkPostDownloadHandlerTest.cc
  11714. * test/Metalink2RequestGroupTest.cc
  11715. Hide TOTAL SPD when all downloads complete.
  11716. * src/ConsoleStatCalc.cc
  11717. Log target system information.
  11718. * src/main.cc
  11719. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11720. Now --metalink-location accepts a comma-deliminated list of locations.
  11721. * src/MetalinkEntry.{h, cc}
  11722. * test/MetalinkEntryTest.cc
  11723. * src/version_usage.cc
  11724. * src/Metalink2RequestGroup.cc
  11725. * src/Xml2MetalinkProcessor.cc
  11726. * test/Xml2MetalinkProcessorTest.cc
  11727. * doc/aria2c.1.txt
  11728. * doc/aria2c.1
  11729. * src/Util.cc (toUpper)(toLower): Rewritten.
  11730. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11731. Added the ability to detect duplicate download entry which is about to
  11732. download the same file other RequestGroup is downloading.
  11733. * src/RequestGroup.cc
  11734. * src/HttpResponseCommand.cc
  11735. * src/FtpNegotiationCommand.cc
  11736. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11737. Recalculates download progress when loading a control file,
  11738. if the piece length of DownloadContext is different from the one saved
  11739. in the control file. Currently in-flight pieces are ignored.
  11740. * src/DefaultBtProgressInfoFile.cc
  11741. * test/DefaultBtProgressInfoFileTest.cc
  11742. * src/Util.{h, cc}
  11743. * test/UtilTest.cc
  11744. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11745. Do not rotate tiers in announce-list.
  11746. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11747. AnnounceList::allTiersFailed() used instead to detect whether all
  11748. tiers are tried and failed.
  11749. * test/DefaultBtAnnounceTest.cc
  11750. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11751. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11752. * test/AnnounceListTest.cc
  11753. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11754. clause. Catch RecoverableException instead of DlRetryEx instead.
  11755. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11756. Implemented checksum validation feature(1 checksum for each file)
  11757. The validation takes place after the download.
  11758. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11759. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11760. * src/CheckIntegrityCommand.cc: Changed log message.
  11761. * src/Metalink2RequestGroup.cc: Set checksum to
  11762. SingleFileDownloadContext.
  11763. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11764. PieceHashCheckIntegrity class.
  11765. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11766. PieceHashCheckIntegrity class.
  11767. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11768. * src/IteratableValidator.h: New class.
  11769. * src/message.h
  11770. * src/CheckIntegrityEntry.{h, cc}
  11771. * src/IteratableChunkChecksumValidator.{h, cc}
  11772. * src/SingleFileDownloadContext.h
  11773. * src/DownloadCommand.cc
  11774. --allow-overwrite=true is no longer needed to check file integrity
  11775. before download in BitTorrent download.
  11776. * src/RequestGroup.cc (getInitialCommand)
  11777. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11778. throws exception.
  11779. * src/RequestGroupMan.cc (getInitialCommands)
  11780. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11781. urlencode the given url inside Request::parseUrl(...)
  11782. * src/Request.{h, cc}
  11783. * src/Util.{h, cc}
  11784. * test/RequestTest.cc
  11785. Removed #!metalink3! notation support because it is deleted from
  11786. the metalink specification.
  11787. * src/Request.{h, cc}
  11788. * test/RequestTest.cc
  11789. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11790. Don't connect server before checking file integrity at startup, if
  11791. filesize and output file path are known.
  11792. * src/AbstractCommand.cc
  11793. * src/StreamFileAllocationEntry.cc
  11794. * src/Metalink2RequestGroup.cc
  11795. * src/RequestGroup.{h, cc}
  11796. * src/HttpResponseCommand.cc
  11797. * src/FtpNegotiationCommand.cc
  11798. Added DownloadFailureException. If it is thrown, RequestGroup should
  11799. halt.
  11800. * src/AbstractCommand.cc
  11801. * src/DownloadFailureException.h
  11802. * src/RequestGroup.cc
  11803. Catch RecoverableException, instead of DlAbortEx.
  11804. * src/RequestGroupMan.cc
  11805. * src/FillRequestGroupCommand.cc
  11806. * src/MetaFileUtil.cc
  11807. * src/IteratableChunkChecksumValidator.cc
  11808. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11809. getGID())
  11810. * src/CheckIntegrityCommand.cc
  11811. * src/message.h
  11812. Print gid instead of idx.
  11813. * src/RequestGroupMan.cc
  11814. Removed exception throwers declaration.
  11815. * src/DirectDiskAdaptor.{h, cc}
  11816. * src/SocketCore.{h, cc}
  11817. * src/MultiDiskAdaptor.{h, cc}
  11818. * src/HttpConnection.{h, cc}
  11819. * src/HttpResponse.{h, cc}
  11820. * src/DiskAdaptor.{h, cc}
  11821. * src/CopyDiskAdaptor.{h, cc}
  11822. * src/MultiDiskAdaptor.{h, cc}
  11823. * src/HttpHeaderProcessor.{h, cc}
  11824. * src/AbstractSingleDiskAdaptor.{h, cc}
  11825. * src/Util.{h, cc}
  11826. * test/UtilTest.cc
  11827. * src/DefaultDiskWriter.{h, cc}
  11828. * src/FtpConnection.{h, cc}
  11829. * src/AbstractDiskWriter.{h, cc}
  11830. Removed duplicate code.
  11831. * src/StreamCheckIntegrityEntry.cc
  11832. Removed unnecessary include.
  11833. * src/DiskWriter.h
  11834. Included Exception.h
  11835. * src/option_processing.cc
  11836. Included 2 files and added doc
  11837. * src/TrackerWatcherCommand.cc
  11838. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11839. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11840. Changed CheckIntegrityEntry interface so that it can define
  11841. the action when all the chunk checksums are valid.
  11842. * src/CheckIntegrityEntry.h
  11843. * src/StreamCheckIntegrityEntry.{h, cc}
  11844. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11845. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11846. to exit rather than doing seeding. So, it would be good to toggle this
  11847. behavior.
  11848. * src/CheckIntegrityCommand.cc
  11849. * src/AbstractCommand.cc
  11850. * src/RequestGroup.cc
  11851. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11852. Reflect the download length of in-flight pieces.
  11853. It makes the download length readout more precise.
  11854. * src/DefaultPieceStorage.{h, cc}
  11855. * test/DefaultPieceStorageTest.cc
  11856. * src/a2functional.h
  11857. * test/a2functionalTest.cc
  11858. Lower CPU load when --max-download-limit is used.
  11859. There is up and down in speed indicator when enabling
  11860. http-pipelining but a download goes well. I think the problem is that
  11861. because http-pipelining is enabled, DownloadCommand is created for
  11862. each segment and in its constructor, PeerStat::downloadStart() is
  11863. called. In PeerStat::downloadStart(), speed calculation object is
  11864. reseted, which makes download speed zero.
  11865. * src/DownloadCommand.cc
  11866. Rewritten using accumulate.
  11867. * src/RequestGroupMan.cc (calculateStat)
  11868. Code clearnup.
  11869. * src/FtpNegotiationCommand.cc
  11870. * src/HttpResponseCommand.cc
  11871. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11872. Fixed: Can not resume: aria2 reports download already finished.
  11873. * src/AbstractCommand.{h, cc}
  11874. * src/HttpResponseCommand.cc
  11875. * src/FtpNegotiateCommand.cc
  11876. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11877. Now a file is stored in the directory specified in .metalnk file
  11878. (file[@name]).
  11879. * src/Metalink2RequestGroup.cc
  11880. Create the directory structure when opening the file if it doesn't
  11881. exist.
  11882. * src/AbstractDiskWriter.cc
  11883. * src/Util.{h, cc}
  11884. * src/File.h
  11885. * test/UtilTest.cc
  11886. Removed file name comparison
  11887. * src/Metalink2RequestGroup.cc
  11888. * src/HttpResponseCommand.cc
  11889. Rewritten using Util::mkdirs()
  11890. * src/FileEntry.cc (setupDir)
  11891. * test/FileEntryTest.cc
  11892. Updated doc
  11893. * src/SingleFileDownloadContext.h
  11894. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11895. Now SleepCommand dispatches nextCommand when halt is requested.
  11896. It avoids a possible long wait after hitting CTRL-C.
  11897. * src/SleepCommand.{h, cc}
  11898. * src/RequestGroupAware.{h, cc}
  11899. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11900. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11901. to open listen port, then remove the port number from the tracker
  11902. request.
  11903. * src/DefaultBtAnnounce.cc
  11904. * test/DefaultBtAnnounceTest.cc
  11905. * test/MockPieceStorage.h
  11906. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11907. them more testable.
  11908. * src/DefaultBtAnnounce.{h, cc}
  11909. * src/DefaultBtContext.{h, cc}
  11910. * src/Util.{h, cc}
  11911. * test/DefaultBtAnnounceTest.cc
  11912. * test/DefaultBtContextTest.cc
  11913. * test/UtilTest.cc
  11914. Added 'B' to upload bytes readout.
  11915. * src/ConsoleStatCalc.cc
  11916. Now the listen port for BitTorrent download is opened when it is
  11917. needed.
  11918. * src/DownloadEngineFactory.cc
  11919. * src/BtSetup.{h, cc}
  11920. * src/PeerListenCommand.{h, cc}
  11921. Now an exception thrown while parsing tracker response is now logged.
  11922. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11923. called, which means no retry is made in this case, assuming a tracker
  11924. has a problem.
  11925. * src/TrackerWatcherCommand.cc
  11926. Fixed: downloading a file whose length is unkown fails.
  11927. * src/DownloadCommand.cc
  11928. Simplified prepareForNextSegment()
  11929. * src/DownloadCommand.cc
  11930. Updated
  11931. * po/POTFILES.in
  11932. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11933. Re-implemented a file listing for Metalink, which was dropped while
  11934. http/ftp/torrent integration was being implemented.
  11935. * src/MetalinkHelper.{h, cc}: New class.
  11936. * test/MetalinkHelperTest.cc
  11937. * src/main.cc
  11938. * src/Metalink2RequestGroup.cc
  11939. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11940. Added the ability to display the detailed torrent file information.
  11941. Now -S option gives not only a file listing, but also total download
  11942. length, info hash, announce URI, piece length, the number of pieces,
  11943. and mode(single or multi-torrent).
  11944. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11945. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11946. KiB)
  11947. * test/UtilTest.cc
  11948. * src/main.cc
  11949. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11950. Added ftp://USER:PASSWD@Servername automatic parsing.
  11951. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11952. _password. Recognize username and password in URI.
  11953. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11954. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11955. * src/RequestFactory.{h, cc}: Removed.
  11956. * src/AuthConfigFactory.{h, cc}: New class.
  11957. * src/FtpConnection.cc: Use AuthConfigFactory.
  11958. * src/HttpRequest.cc: Use AuthConfigFactory.
  11959. * test/HttpRequestTest.cc: Updated.
  11960. * test/RequestTest.cc: Updated.
  11961. * test/AuthConfigFactoryTest.cc: New class.
  11962. * test/RequestFactoryTest.cc: Removed.
  11963. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11964. Use RequestGroup::allDownloadFinished() to decide whether the control
  11965. file should be removed or saved.
  11966. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11967. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11968. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11969. Use File::renameTo()
  11970. * src/DefaultBtProgressInfoFile.cc
  11971. Added --no-file-allocation-limit command-line option.
  11972. * src/version_usage.cc
  11973. * src/option_processing.cc
  11974. * src/OptionHandlerFactory.cc
  11975. * src/RequestGroup.{h, cc}
  11976. * src/BtCheckIntegrityEntry.cc
  11977. * src/StreamCheckIntegrityEntry.cc
  11978. * src/prefs.h
  11979. * doc/aria2c.1.txt
  11980. * doc/aria2c.1
  11981. Now prealloc is the default value for --file-allocation option.
  11982. * src/version_usage.cc
  11983. * src/option_processing.cc
  11984. * doc/aria2c.1.txt
  11985. * doc/aria2c.1
  11986. Don't URL-encode user-agent.
  11987. * src/HttpRequest.cc
  11988. Updated translations
  11989. * po/LINGUAS: Added nl for Dutch translation.
  11990. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11991. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11992. * po/POTFILES.in: Updated.
  11993. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11994. Added the ability to recognize url-list in a torrent file.
  11995. The retrieved URLs are attached to the corresponding FileEntry.
  11996. * src/DefaultBtContext.{h, cc}
  11997. * src/FileEntry.{h, cc}
  11998. * test/DefaultBtContextTest.cc
  11999. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12000. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  12001. after the download finishes.
  12002. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12003. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  12004. the data smaller than block length.
  12005. A block length can be specified by constructor's argument.
  12006. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  12007. Get a missing piece in the range of given FileEntry. This function is
  12008. not used in the program yet.
  12009. * src/Util.h: Added some macros.
  12010. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12011. Added HTTP/1.1 keep alive and pipelining support.
  12012. See --enable-http-keep-alive and --enable-http-pipelining option.
  12013. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  12014. Segment.
  12015. * src/HttpDownloadCommand.{h, cc}
  12016. * src/OptionHandlerFactory.cc
  12017. * src/HttpConnection.{h, cc}
  12018. * src/version_usage.cc
  12019. * src/HttpInitiateConnectionCommand.cc
  12020. * src/FtpInitiateConnectionCommand.cc
  12021. * src/Segment.h
  12022. * src/HttpRequestCommand.{h, cc}
  12023. * src/option_processing.cc
  12024. * src/prefs.h
  12025. * src/HttpResponseCommand.cc
  12026. * src/SegmentMan.{h, cc}
  12027. * src/FtpNegotiateCommand.cc
  12028. * src/HttpProxyResponseCommand.cc
  12029. * src/Request.cc
  12030. * src/HttpRequest.cc
  12031. * src/DownloadCommand.cc
  12032. * test/HttpRequestTest.cc
  12033. * test/RequestTest.cc
  12034. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12035. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  12036. finished.
  12037. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12038. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  12039. catching it inside the method.
  12040. When no file entry is found in a metalink without querying user
  12041. preferences, throw the exception with the error message that suggests
  12042. metalink file is probably broken.
  12043. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  12044. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12045. Fixed the bug that prevents remote Metalink/Torrent file from begin
  12046. processed.
  12047. * src/RequestGroupMan.cc (removeStoppedGroup)
  12048. Added debug message.
  12049. * src/BtPostDownloadHandler.cc
  12050. * src/MetalinkPostDownloadHandler.cc
  12051. * src/PostDownloadHandler.{h, cc}
  12052. * src/RequestGroup.cc
  12053. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12054. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  12055. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12056. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  12057. stops and there are any unfinished or in-progress downloads.
  12058. Added the legend of "stat".
  12059. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12060. Throw exception when chunck checksum verification fails.
  12061. * src/DownloadCommand.cc (validatePieceHash): New function.
  12062. * src/PiecedSegment.{h, cc} (clear): New function.
  12063. * src/GrowSegment.{h, cc} (clear): New function.
  12064. * src/Segment.h (clear): New function.
  12065. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  12066. * test/SegmentTest.cc
  12067. * test/GrowSegmentTest.cc
  12068. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12069. Do not send referer when redirected.
  12070. * src/Request.cc (redirectUrl)
  12071. * test/RequestTest.cc
  12072. * test/HttpRequestTest.cc
  12073. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12074. Implemented BitTorrent/http/ftp integrated download.
  12075. I've rewritten lots of files and now some headers have forward
  12076. class declarations to reduce compile time.
  12077. The implementation is extremely alpha stage, I recommend to use this
  12078. for testing purpose only.
  12079. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12080. Fixed the compilation error on 64bit platform.
  12081. * test/HttpHeaderProcessorTest.cc
  12082. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12083. Merged Ross's patch that fixes compilation problem in MinGW
  12084. * test/DefaultBtProgressInfoFileTest.cc
  12085. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12086. Updated fr.po by sebone
  12087. * po/fr.po
  12088. Updated man page.
  12089. * doc/aria2c.1.txt
  12090. * Release 0.11.3
  12091. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12092. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  12093. failure in Metalink.
  12094. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12095. Automatically save *.aria2 control file of http/ftp download in every
  12096. 60 seconds.
  12097. * src/AutoSaveCommand.{h, cc}: New class.
  12098. * src/TimeBasedCommand.{h, cc}: New class.
  12099. * src/DownloadEngineFactory.cc (newConsoleEngine)
  12100. Disable parameterized URI support by default. Added -P option to
  12101. enable the feature.
  12102. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  12103. * src/OptionHandlerFactory.cc
  12104. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  12105. Updated Japanese translation.
  12106. * po/ja.po
  12107. Updated man page.
  12108. * doc/aria2c.1.txt
  12109. * Release 0.11.3-rc
  12110. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12111. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  12112. it is successful, then renamed to *.aria2.
  12113. This prevents *.aria2 file from being truncated or corrupted when
  12114. file system becomes out of space.
  12115. * src/DefaultBtProgressInfoFile.cc (save)
  12116. * src/SegmentMan.cc (save)
  12117. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  12118. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12119. Reduced the fragmentation of bitfield in http/ftp download.
  12120. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  12121. * test/BitfieldManTest.cc
  12122. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12123. Added the ability to disable segmented download in .metalink.
  12124. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  12125. 'url' tag.
  12126. * src/MetalinkEntry.{h, cc}
  12127. * src/RequestResource.{h, cc}
  12128. * src/MetalinkRequestInfo.cc
  12129. * src/Xml2MetalinkProcessor.cc
  12130. * test/Xml2MetalinkProcessorTest.cc
  12131. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12132. Added parameterized URI support.
  12133. * src/main.cc: -Z option added.
  12134. * src/OptionHandlerFactory.cc
  12135. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  12136. * src/PStringDatum.h: New class.
  12137. * src/PStringSegment.{h,cc}: New class.
  12138. * src/PStringNumLoop.h: New class.
  12139. * src/PStringSelect.h: New class.
  12140. * src/NumberDecorator.h: New class.
  12141. * src/FixedWidthNumberDecorator.h: New class.
  12142. * src/AlphaNumberDecorator.h: New class.
  12143. * src/PStringVisitor.h: New class.
  12144. * src/PStringBuildVisitor.{h,cc}: New class.
  12145. * src/ParameterizedStringParser.{h,cc}: New class.
  12146. * src/Util.{h,cc}
  12147. (isNumber): New function.
  12148. (isLowercase): New function.
  12149. (isUppercase): New function.
  12150. (alphaToNum): New function.
  12151. * test/ParameterizedStringParserTest.cc: New class.
  12152. * test/AlphaNumberDecoratorTest.cc: New class.
  12153. * test/PStringBuildVisitorTest.cc: New class.
  12154. * test/UtilTest.cc
  12155. (testIsNumber): New function.
  12156. (testIsLowercase): New function.
  12157. (testIsUppercase): New function.
  12158. (testAlphaToNum): New function.
  12159. Added '\n' after the error message
  12160. * src/RequestInfo.h (printDownloadAbortMessage)
  12161. Added auto file renaming feature in http(s)/ftp download.
  12162. * src/main.cc: Added --auto-file-renaming command-line option.
  12163. * src/OptionHandlerFactory.cc
  12164. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  12165. * src/RequestGroup.{h, cc}
  12166. (shouldCancelDownloadForSafety): Rewritten
  12167. (tryAutoFileRenaming): New function.
  12168. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  12169. * src/HttpResponseCommand.cc
  12170. (executeInternal): Removed the call to RequestGroupMan::
  12171. isSameFileBeingDownloaded()
  12172. * src/FtpNegotiateCommand.cc
  12173. (recvSize): Removed the call to RequestGroupMan::
  12174. isSameFileBeingDownloaded()
  12175. * test/RequestGroupTest.cc: New class.
  12176. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12177. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  12178. IO.
  12179. * src/DefaultBtProgressInfoFile.cc
  12180. * src/MetaFileUtil.cc
  12181. * src/SimpleLogger.cc
  12182. * src/SegmentMan.cc
  12183. * src/Util.cc
  12184. * src/Platform.cc
  12185. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12186. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  12187. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12188. Avoid sparse files if possible, because VFAT32 doesn't support it.
  12189. * src/DefaultDiskWriter.cc (initAndOpenFile)
  12190. Fixed the bug that prevents file allocation is not done when
  12191. dowloading multi-torrent file.
  12192. * src/AbstractDiskWriter.cc (openFile)
  12193. Increase the maximum number of -j option from 15 to 45.
  12194. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12195. Added fr.po, thanks to Charles Landemaine.
  12196. * po/fr.po
  12197. * po/LINGUAS
  12198. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12199. gcc 3.4.4 support:
  12200. * src/DefaultBtContext.cc: int32_t -> int
  12201. * src/main.cc: int -> int32_t, int32_t -> int
  12202. * src/messageDigest.h: uint32_t -> unsigned int
  12203. * src/NameResolver.h: int32_t -> int
  12204. * src/PeerConnection.cc: int -> int32_t
  12205. * src/SpeedCalc.cc: int32_t -> int
  12206. * src/TrackerUpdateCommand.h: int -> int32_t
  12207. * src/Util.cc: int32_t -> int
  12208. * src/Util.h: int32_t -> int
  12209. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  12210. * test/AnnounceListTest.cc: int -> int32_t
  12211. * test/ChunkedEncodingTest.cc: int -> int32_t
  12212. * test/DataTest.cc: int -> int32_t
  12213. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  12214. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  12215. * test/DefaultPieceStorageTest.cc: int -> int32_t
  12216. * test/FeatureConfigTest.cc: int -> int32_t
  12217. * test/MetalinkEntryTest.cc: int -> int32_t
  12218. * test/MockBtRequestFactory.h: int -> int32_t
  12219. * test/MockPieceStorage.h: int -> int32_t
  12220. * test/OptionTest.cc: int -> int32_t
  12221. * test/RequestTest.cc: int -> int32_t
  12222. * test/SegmentManTest.cc: int -> int32_t
  12223. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  12224. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  12225. Move sleep functions to Util class:
  12226. * src/Util.cc
  12227. (sleep): New function.
  12228. (usleep): New function.
  12229. * src/DownloadCommand.cc: sleep -> Util::sleep
  12230. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  12231. MinGW build enhancements. The following files are added:
  12232. * src/timegm.{c,h}
  12233. Changes to support the above new files:
  12234. * configure.ac
  12235. * src/Makefile.am
  12236. * src/a2time.h
  12237. * src/Util.cc:
  12238. * src/strptime.c: Added support for %Z option.
  12239. Fixed MinGW non-blocking bug.
  12240. * src/SocketCore.cc
  12241. * src/HttpRequestCommand.cc
  12242. Miscellenous build fixes/enhancements.
  12243. * configure.ac: Added summary report.
  12244. * src/Platform.h: Tweaked #include's.
  12245. * src/a2netcompat.h: Tweaked #include's.
  12246. * src/strptime.h: Tweaked #include's.
  12247. * src/gai_strerror.c: Tweaked #include's.
  12248. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  12249. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  12250. * src/gettimeofday.h: Added HAVE_CONFIG_H
  12251. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12252. Increased the initial connection size in BitTorrent download to 40.
  12253. * src/BtRuntime.h
  12254. Added the usage message of --peer-id-prefix option.
  12255. * src/main.cc
  12256. * Release 0.11.2
  12257. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12258. MessageDigestHelper is introduced in order to simplify the use
  12259. of message digest. Removed repeated code.
  12260. The message digest algorithm is now specified by string, like "sha1",
  12261. "md5".
  12262. * src/messageDigest.{h, cc}
  12263. * src/MessageDigestHelper.{h, cc}: New class.
  12264. * src/DefaultPieceStorage.cc
  12265. * src/DefaultBtContext.{h, cc}
  12266. (computeFastSet): New function.
  12267. (setInfoHash): Added for unit testing.
  12268. (setNumPieces): Added for unit testing.
  12269. * src/DefaultBtInteractive.cc
  12270. * src/BtPieceMessage.cc
  12271. * src/Peer.cc
  12272. * src/Checksum.h
  12273. * src/message.h
  12274. * src/IteratableChecksumValidator.h
  12275. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  12276. inside it.
  12277. * src/SegmentMan.{h, cc}
  12278. (checkIntegrity): Removed.
  12279. * src/IteratableChunkChecksumValidator.{h, cc}
  12280. * src/Util.h
  12281. (sha1Sum): Removed.
  12282. (simpleMessageDigest): Removed.
  12283. (fileChecksum): Removed.
  12284. (computeFastSet): Removed.
  12285. * src/ShaVisitor.cc
  12286. * src/ChunkChecksum.h
  12287. * src/DownloadCommand.cc
  12288. Removed messageDigest virtual functions.
  12289. * src/MultiDiskAdaptor.{h, cc}
  12290. * src/DiskAdaptor.h
  12291. * src/ByteArrayDiskWriter.h
  12292. * src/DiskWriter.h
  12293. * src/DiskAdaptorWriter.h
  12294. * src/AbstractSingleDiskAdaptor.{h, cc}
  12295. * src/AbstractDiskWriter.{h, cc}
  12296. Fixed comilation error when message digest is disabled.
  12297. * src/MetalinkEntry.{h, cc}
  12298. * src/MetalinkRequestInfo.cc
  12299. Removed srandom and random.
  12300. * src/SimpleRandomizer.h
  12301. Added size() virtual function to DiskAdaptor
  12302. * src/MultiDiskAdaptor.h
  12303. Fixed the bug that causes that files are not opened correctly in
  12304. multi-file torrent.
  12305. * src/TorrentRequestInfo.cc
  12306. * src/MultiDiskAdaptor.cc
  12307. Added SHA256 support
  12308. * src/messageDigest.cc
  12309. * src/Xml2MetalinkProcessor.cc
  12310. Show supported message digest algorithms
  12311. * src/main.cc
  12312. Updated contact info.
  12313. * src/main.cc
  12314. Applied Ross's patch
  12315. * src/a2netcompat.h
  12316. * src/main.cc
  12317. Fixed the bug that prevents a remote metalink from not being processed
  12318. even if '-o foo.metalink' is specified.
  12319. * src/MetalinkRequestInfo.cc
  12320. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12321. Merged Dan's patch:
  12322. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  12323. Use va_copy to avoid core dump on amd64:
  12324. * src/SimpleLogger.cc
  12325. Updated contact info.
  12326. * src/main.cc
  12327. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  12328. digest is not available.
  12329. * src/MetalinkEntry.h
  12330. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12331. Make a2netcompat.h include a2io.h to fix compilation error:
  12332. * src/a2netcompat.h
  12333. * src/SocketCore.cc: Removed include of a2io.h
  12334. * src/Util.cc: Removed include of a2io.h
  12335. Gather time related functions to a2time.h:
  12336. * src/a2time.h: New file.
  12337. * src/DefaultPeerStorage.cc
  12338. * src/SimpleLogger.cc
  12339. * src/Util.{h, cc}
  12340. * src/SimpleRandomizer.h
  12341. * src/TimeA2.{h,cc}
  12342. * src/DownloadCommand.cc
  12343. * src/main.cc
  12344. Removed #ifdef __MINGW32__ since gai_strerror is included in
  12345. a2netcompat.h:
  12346. * src/NameResolver.cc
  12347. Fixed compilation error without openssl:
  12348. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  12349. Added default block to suppress compiler warnings:
  12350. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  12351. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  12352. MinGW build enhancements. The following files are added:
  12353. * src/gai_strerror.{c,h}
  12354. * src/gettimeofday.{c,h}
  12355. Changes to support the above new files:
  12356. * configure.ac
  12357. * src/Makefile.am
  12358. * src/a2netcompat.h
  12359. * src/TimeA2.cc
  12360. * src/DefaultPeerStorage.cc
  12361. * src/NameResolver.cc: removed mingw_strerror() function.
  12362. * src/SocketCore.cc: removed mingw_strerror() function.
  12363. Miscellaneous MinGW build fixes.
  12364. * src/a2io.h: Use _lseeki64() instead of lseek()
  12365. * src/common.h
  12366. * src/DefaultFileAllocator.cc
  12367. * src/GlowFileAllocator.cc
  12368. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12369. * src/NameResolver.cc
  12370. (callback): Changed int32_t to int.
  12371. (resolve): Changed int32_t to int.
  12372. * src/Platform.cc
  12373. * src/Platform.h
  12374. * test/MultiDiskWriterTest.cc
  12375. * test/PeerMessageUtilTest.cc
  12376. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12377. Other enhancements and fixes.
  12378. * src/HttpRequestCommand.cc
  12379. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12380. * src/SocketCore.cc:
  12381. (error): New function to abstract errno/WSAGetLastError().
  12382. (errorMsg): New function to abstract errno/WSAGetLastError().
  12383. (initiateSecureConnection): Added more detailed error reporting.
  12384. * src/SocketCore.h: Added private variable blocking, to allow
  12385. proper handling of OpenSSL psuedo-errors.
  12386. * src/message.h
  12387. (EX_SSL_INIT_FAILURE)
  12388. (EX_SSL_IO_ERROR)
  12389. (EX_SSL_PROTOCOL_ERROR)
  12390. (EX_SSL_UNKNOWN_ERROR)
  12391. (EX_SSL_CONNECT_ERROR)
  12392. (EX_SOCKET_BLOCKING)
  12393. (EX_SOCKET_NONBLOCKING)
  12394. (EX_SOCKET_UNKNOWN_ERROR)
  12395. * src/Util.cc
  12396. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12397. reserved name.
  12398. (httpGMT): Fixed typo.
  12399. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12400. Merged Ross's win32 patch(manually)
  12401. In the course of merging, following files are added.
  12402. * src/strptime.{h,c}
  12403. * src/libgen.{h,c}
  12404. * src/inet_aton.{h,c}
  12405. * src/Platform.{h,cc}
  12406. * src/localtime_r.{h,c}
  12407. * src/getaddrinfo.{h,c}
  12408. I've gethered network related things, and put them to following file:
  12409. * src/a2netcompat.h
  12410. Also io related things are put to following file:
  12411. * src/a2io.h
  12412. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12413. * src/message.h
  12414. (MSG_ALLOCATION_COMPLETED)
  12415. (EX_TOO_LARGE_FILE)
  12416. (EX_SIZE_MISMATCH)
  12417. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12418. (EX_INVALID_CHUNK_CHECKSUM)
  12419. (EX_INVALID_RANGE_HEADER)
  12420. * src/FileAllocationCommand.cc
  12421. * src/HttpResponse.cc
  12422. * src/RequestGroup.cc
  12423. * src/MultiDiskAdaptor.cc
  12424. * src/OptionHandlerImpl.h
  12425. * src/HttpResponseCommand.cc
  12426. * src/FtpNegotiateCommand.cc
  12427. * src/IteratableChecksumValidator.cc
  12428. * src/SegmentMan.cc
  12429. * src/ChunkChecksumValidator.cc
  12430. Added Randomizer::getRandomNumber(long int)
  12431. * src/Randomizer.h (getRandomNumber)
  12432. * src/SimpleRandomizer.h (getRandomNumber)
  12433. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12434. * src/Util.cc (randomAlpha): Use this new function.
  12435. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12436. Converted int's to in32_t. long long int's are also converted to
  12437. int64_t
  12438. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12439. Fixed the bug that prevents cookies from being sent to the server
  12440. if the domain of cookie is FQDN and starts with ".".
  12441. * src/Cookie.cc (match)
  12442. To add the ability to change peer id.
  12443. * src/DefaultBtContext.h
  12444. (_peerIdPrefix): New variable
  12445. (setPeerIdPrefix): New function.
  12446. * src/torrentRequestInfo.cc
  12447. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12448. DefaultBtContext.
  12449. * src/main.cc (main): Added peer-id-prefix command-line option.
  12450. The usage message is not added yet.
  12451. * src/DefaultBtContext.cc
  12452. (generatePeerId): Use _peerIdPrefix.
  12453. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12454. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12455. Fixed the bug that prevents filename in content-disposition from
  12456. being retrieved when filename is not quoted.
  12457. * src/Util.cc (getContentDispositionFilename)
  12458. Fixed the bug that causes infinate loop and memory leak when file open
  12459. operation failed.
  12460. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12461. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12462. Fixed the bug that causes segfault when all URIs specified are
  12463. unsupported.
  12464. * src/RequestGroupMan.cc (getInitialCommands)
  12465. Check if RequestGroup::createNextCommand() returns empty list of
  12466. commands.
  12467. * src/RequestGroup.cc (createNextCommand)
  12468. Change log level from info to error so that users can notice that
  12469. an error occurred.
  12470. Fixed the bug that causes segfault when a zero-sized file is
  12471. downloaded.
  12472. * src/BitfieldMan.cc (isAllBitSet)
  12473. Return true if bitfieldLength is 0.
  12474. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12475. * src/main.cc
  12476. (showUsage): Added 3 usage examples for metalink download.
  12477. Replace MetalinkChunkChecksum with ChunkChecksum.
  12478. * src/MetalinkChunkChecksum.h: Removed.
  12479. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12480. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12481. * src/Xml2MetalinkProcessor.cc
  12482. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12483. * src/MetalinkRequestInfo.cc (execute)
  12484. * Release 0.11.1
  12485. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12486. Reads URIs from stdin when "-i -" is specified.
  12487. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12488. * src/UriListParser.h, src/UriListParser.cc: New class.
  12489. * src/StreamUriListParser.h: New class.
  12490. * src/FileUriListParser.h: New class.
  12491. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12492. instead of UriFileListParser.
  12493. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12494. Made console readout more readable.
  12495. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12496. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12497. Fix the bug that causes -s option not to work.
  12498. * src/main.cc (main)
  12499. * src/a2algo.h: New file.
  12500. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12501. Create directory structure specified in metalink file.
  12502. * src/RequestGroup.h, src/RequestGroup.cc
  12503. (initAndOpenFile): Create a directory to store files if it does not
  12504. exist.
  12505. (getDir): New function.
  12506. Added ETA and download speed for an individual file to readout.
  12507. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12508. * src/RequestGroup.h
  12509. (calculateDownloadSpeed): New function.
  12510. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12511. Made -S option work with metalink file and provided selective download
  12512. to metalink.
  12513. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12514. (filename): Removed.
  12515. (file): New variable.
  12516. (size): Removed.
  12517. (operator=): Updated.
  12518. (getPath): New function.
  12519. (getLength): New function.
  12520. (toFileEntry): New function.
  12521. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12522. (execute): Use toStream.
  12523. (showFileEntry): Removed.
  12524. * src/MetalinkRequestInfo.h
  12525. (targetFiles): New variable.
  12526. (setTargetFiles): New variable.
  12527. * src/MetalinkRequestInfo.cc
  12528. (execute): Added the ability to print file information included in
  12529. a metalink file.
  12530. Added selective download mode to metalink.
  12531. * src/main.cc
  12532. (showUsage): Updated to denote that -S and --select-file options are
  12533. applicable to metalink.
  12534. * src/FileEntry.h
  12535. (operator=): New function.
  12536. (getBasename): New function.
  12537. (getDirname): New function.
  12538. * src/Util.h, src/Util.cc
  12539. (toStream): New function.
  12540. * src/Xml2MetalinkProcessor.cc: Updated.
  12541. Made aria2 work with metalink with directory structure.
  12542. * src/File.h, src/File.cc
  12543. (getBasename): New function.
  12544. (getDirname): New function.
  12545. * src/RequestGroup.h, src/RequestGroup.cc
  12546. (_topDir): New variable.
  12547. (setTopDir): New function.
  12548. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12549. Rewrote HTTP header parsing with stringstream.
  12550. * src/HttpConnection.h, src/HttpConnection.cc
  12551. (HttpRequestEntry): New class.
  12552. (headerBuf): Removed.
  12553. (headerBufLength): Removed.
  12554. (outstandingHttpRequests): Now its element type is
  12555. HttpRequestEntryHandle.
  12556. (findEndOfHeader): Removed.
  12557. (receiveResponse): Rewritten.
  12558. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12559. Updated doc for -j option to notice that it should be used with -i
  12560. option.
  12561. * src/main.cc (showUsage)
  12562. Removed unused classes.
  12563. * src/RequestInfo.h
  12564. (FileInfo): Removed.
  12565. (checksum): Removed.
  12566. (fileInfo): Removed.
  12567. (setChecksum): Removed.
  12568. (getChecksum): Removed.
  12569. (getFileInfo): Removed.
  12570. Use ISO units.
  12571. * src/ConsoleDownloadEngine.cc
  12572. * src/TorrentConsoleDownloadEngine.cc
  12573. * src/Util.cc (abbrevSize)
  12574. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12575. Added the default listening ports to the help message.
  12576. * src/main.cc (showUsage)
  12577. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12578. Reduce the number of calls to gettimeofday to lower CPU load.
  12579. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12580. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12581. * src/Peer.h (calculateUploadSpeed): New function.
  12582. (calculateDownloadSpeed): New function.
  12583. * src/DefaultPeerStorage.cc
  12584. (CalculateStat): Added _now variable.
  12585. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12586. and Peer::calculateUploadSpeed(const struct timeval&)
  12587. Drop connection if no request or piece message is exchanged in
  12588. a certain interval.
  12589. * src/DefaultBtInteractive.h
  12590. (btRuntime): New variable.
  12591. (inactiveCheckPoint): New variable.
  12592. (checkActiveInteraction): New function.
  12593. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12594. request or piece message is received.
  12595. (checkActiveInteraction): New function.
  12596. (doInteractionProcessing): Call checkActiveInteraction.
  12597. Fixed the bug that causes remote Metalink and Torrent files are not
  12598. processed.
  12599. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12600. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12601. Changed format of log file.
  12602. * src/SimpleLogger.cc
  12603. * Release 0.11.0
  12604. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12605. * src/AbstractCommand.cc
  12606. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12607. MSG_MAX_TRY from error to info.
  12608. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12609. * src/message.h
  12610. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12611. (MSG_DOWNLOAD_ABORTED): Added %s.
  12612. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12613. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12614. * src/PeerAbstractCommand.cc
  12615. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12616. * src/Request.h
  12617. (cookieBox): Made ShardHandle.
  12618. * src/RequestGroup.h, src/RequestGroup.cc
  12619. (createNextCommandWithAdj): New function.
  12620. * src/FileAllocationCommand.cc
  12621. (executeInternal): Use createNextCommandWithAdj().
  12622. * src/CheckIntegrityCommand.cc
  12623. (executeInternal): Use createNextCommandWithAdj().
  12624. Added --load-cookies command-option.
  12625. * src/OptionHandlerFactory.cc
  12626. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12627. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12628. Now aria2 can handle cookie's expiration date.
  12629. * src/Cookie.h (expires): Changed its type to time_t.
  12630. * src/main.cc: Added --load-cookies command-line option.
  12631. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12632. * src/Util.h, src/Util.cc (httpGMT): New function.
  12633. * src/Request.cc (Request): Initialize cookieBox using
  12634. CookieBoxFactory.
  12635. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12636. * src/CookieParser.h, src/CookieParser.cc: New class.
  12637. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12638. * src/HttpResponseCommand.cc
  12639. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12640. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12641. download.
  12642. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12643. Added -j command-line option.
  12644. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12645. * src/main.cc
  12646. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12647. Rewritten using stringstream.
  12648. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12649. Rewritten using stringstream.
  12650. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12651. Make download size shown in MB, KB.
  12652. * src/ConsoleDownloadEngine.h (sendStatistics)
  12653. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12654. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12655. Accept incoming connections if download rate is low.
  12656. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12657. (_lowestSpeedLimit): New variable.
  12658. (setLowestSpeedLimit): New function.
  12659. (execute): Accept incoming connections if download rate is low.
  12660. MAX_PEERS is ignored in this case.
  12661. Disable PREF_OUT in multiple concurrent download:
  12662. * src/RequestGroup.h, src/RequestGroup.cc
  12663. (setUserDefinedFilename): New function.
  12664. * src/DownloadEngineFactory.cc
  12665. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12666. concurrent download.
  12667. * src/DefaultSegmentManFactory.cc
  12668. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12669. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12670. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12671. Added its overloaded method.
  12672. * src/RequestGroup.h
  12673. (_numConcurrentCommand): New variable.
  12674. (setNumConcurrentCommand): New function.
  12675. * src/RequestGroup.cc
  12676. Abort download if same file is being downloaded concurrently.
  12677. * src/RequestGroup.h, src/RequestGroupMan.cc
  12678. (isSameFileBeingDownloaded): New function.
  12679. * src/HttpResponseCommand.cc (executeInternal)
  12680. * src/FtpNegotiateCommand.cc (recvSize)
  12681. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12682. * main.cc: Added help message for -i option.
  12683. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12684. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12685. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12686. * src/MetalinkEntry.h
  12687. (checksum): Changed to ChecksumHandle
  12688. * src/MetalinkRequestInfo.cc
  12689. (checksum): Changed to ChecksumHandle
  12690. * src/File.cc
  12691. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12692. * src/common.h
  12693. (DIR_OPEN_MODE): New definition
  12694. * src/RequestGroup.cc
  12695. (prepareForNextAction): Added an argument.
  12696. * src/message.h
  12697. (MSG_GOOD_CHECKSUM): New definition
  12698. (MSG_BAD_CHECKSUM): New definition
  12699. * src/HttpResponseCommand.cc
  12700. (handleDefaultEncoding): Continue download sequence in new
  12701. non-segmented download.
  12702. * src/FileAllocationEntry.h
  12703. (_nextDownloadCommand): New variable.
  12704. * src/DownloadCommand.cc
  12705. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12706. available.
  12707. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12708. * src/IteratableChecksumValidator.h,
  12709. src/IteratableChecksumValidator.cc: New class.
  12710. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12711. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12712. Change file mode to 666:
  12713. * src/common.h (OPEN_MODE): New definition.
  12714. * src/File.cc
  12715. * src/Util.cc
  12716. * src/Directry.cc
  12717. * src/AbstractDiskWriter.cc
  12718. Change the level of log message "download aborted" to debug:
  12719. * src/PeerAbstractCommand.cc (execute)
  12720. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12721. * src/TrackerWatcherCommand.cc
  12722. (createCommand): Sleep some seconds after request failed.
  12723. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12724. then abort tracker request.
  12725. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12726. * Added the simultaneous download feature.
  12727. * src/main.cc: Print "Exception caught: " when exception is caught.
  12728. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12729. * src/ActivePeerConnectionCommand.cc
  12730. * src/PeerInteractionCommand.cc
  12731. * src/BtRuntime.h
  12732. (cuidCounter): Removed.
  12733. (getNewCuid): Removed.
  12734. * src/DownloadEngineFactory.cc
  12735. * src/PeerListenCommand.cc
  12736. * src/TrackerUpdateCommand.cc
  12737. * src/PeerInitiateConnectionCommand.cc
  12738. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12739. * src/PeerAbstractCommand.cc
  12740. (onAbort): Call PeerStorage::returnPeer()
  12741. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12742. (incomingPeers): New variable.
  12743. (addIncomingPeer): New function.
  12744. (returnPeer): New function.
  12745. (onErasingPeer): New function.
  12746. (addPeer): push_back -> push_front
  12747. (getActivePeers): Rewritten.
  12748. (calculateStat): Rewritten.
  12749. * src/PeerStorage.h
  12750. (TransferStat::copy): New function.
  12751. (TransferStat::TransferStat): New function.
  12752. (TransferStat::operator=): New function.
  12753. (addIncomingPeer): New function.
  12754. (returnPeer): New function.
  12755. * src/PeerListenCommand.cc
  12756. (execute): Use PeerStorage::addIncomingPeer() instead of
  12757. Peer::addPeer().
  12758. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12759. Connect to a peer actively when download speed is lower than specified
  12760. speed in torrent download:
  12761. * src/ActivePeerConnectionCommand.h: New class.
  12762. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12763. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12764. * src/main.cc: Fixed the bug that prevents download if .netrc
  12765. doesn't exist.
  12766. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12767. To cache resolved hostname:
  12768. * src/AbstractCommand.h, src/AbstractCommand.cc
  12769. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12770. Added dns cache.
  12771. * src/FtpInitiateConnectionCommand.cc
  12772. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12773. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12774. NameResolver working without ares.
  12775. * src/TorrentRequestInfo.cc
  12776. (execute): Don't cache dns in torrent download.
  12777. * src/HttpInitiateConnectionCommand.cc
  12778. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12779. * src/DNSCache.h: New class.
  12780. * src/UrlRequestInfo.cc
  12781. (execute): Use dns cache.
  12782. In http request, suppress port number in http request header if port
  12783. is 80 or 443:
  12784. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12785. request header if port is 80 or 443.
  12786. (createProxyRequest): Allways send port number.
  12787. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12788. To add the command-line option which disables netrc support:
  12789. * src/OptionHandlerFactory.cc
  12790. (createOptionHandlers): Added PREF_NO_NETRC.
  12791. * src/main.cc: Added -n option.
  12792. * src/prefs.h (PREF_NO_NETRC): New definition.
  12793. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12794. V_TRUE.
  12795. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12796. is V_FALSE. This may get configurable in the future release.
  12797. To clear peer's error status by time basis:
  12798. * src/PeerAbstractCommand.cc
  12799. (onAbort): Call Peer::startBadCondition().
  12800. * src/Peer.h, src/Peer.cc
  12801. (error): Removed.
  12802. (_badConditionStartTime): New variable.
  12803. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12804. (startBadCondition): New function.
  12805. (isGood): New function.
  12806. * src/DefaultPeerStorage.cc
  12807. (addPeer): Use Peer::isGood().
  12808. (FindFinePeer): Use Peer::isGood().
  12809. Always include port number in http request header:
  12810. * src/HttpRequest.cc (getHostText): Always include port number in
  12811. http request header.
  12812. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12813. To the ability to read options from a config file:
  12814. * src/main.cc: Command-line parameter validation is delegated to
  12815. OptionHandler class.
  12816. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12817. * src/Option.h, src/Option.cc (clear): New function.
  12818. * src/OptionParser.h, src/OptionParser.cc: New class.
  12819. * src/OptionHandler.h: New class.
  12820. * src/NameMatchOptionHandler.h: New class.
  12821. * src/OptionHandlerImpl.h: New classes.
  12822. * src/prefs.h: '_' -> '-'
  12823. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12824. (FTP_PASV): New definition.
  12825. * src/Util.h, src/Util.cc (getRealSize): New function.
  12826. To disable netrc support if .netrc file does not have correct
  12827. permissions:
  12828. * src/File.h, src/File.cc (mode): New function.
  12829. To prevent confidential information to be logged:
  12830. * src/HttpConnection.h, src/HttpConnection.cc
  12831. (eraseConfidentialInfo): New function.
  12832. (sendRequest): Call eraseConfidentialInfo().
  12833. (sendProxyRequest): Call eraseConfidentialInfo().
  12834. * src/main.cc: Validate permissions of .netrc file.
  12835. To add --user-agent command-line option:
  12836. * src/main.cc: Added new command line option: --user-agent
  12837. * src/prefs.h (PREF_USER_AGENT): New definition.
  12838. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12839. parameter to HttpRequest object.
  12840. * src/AbstractProxyRequestCommand.cc
  12841. (executeInternal): Set user-agent option parameter to HttpRequest
  12842. object.
  12843. Marged the patches from Dan Fandrich.
  12844. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12845. Use filename and size from Metalink file instead of sending HEAD
  12846. request:
  12847. * src/UrlRequestInfo.h
  12848. (_filename): New variable.
  12849. (_totalLength): New variable.
  12850. (setTotalLength): New variable.
  12851. (setFilename): New variable.
  12852. * src/MetalinkRequestInfo.cc
  12853. (execute): Set filename and size to UrlRequestInfo
  12854. * src/UrlRequestInfo.cc
  12855. (execute): Use filename and size from Metalink instead of seding
  12856. HEAD request to servers.
  12857. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12858. To add the ability to resume downloading a partially downloaded file
  12859. which is downloaded from the beginning:
  12860. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12861. takes this role.
  12862. * src/main.cc: Added -c option.
  12863. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12864. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12865. * src/prefs.h (PREF_CONTINUE): New definition.
  12866. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12867. * src/DefaultDiskWriter.cc
  12868. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12869. * src/AbstractDiskWriter.h
  12870. (glowFileAllocator): New variable.
  12871. * src/AbstractDiskWriter.cc
  12872. (openExistingFile): Now preallocate file space from the end of the
  12873. existing file if totalLength argument is specified and grater than 0.
  12874. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12875. to download exists in local, continue the download of the file.
  12876. --allow-overwrite=true is assumed in this context.
  12877. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12878. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12879. Throw exception if --check-integrity=true is specified but chunk
  12880. checksums are not provided:
  12881. * src/UrlRequestInfo.cc
  12882. Do not print URLs to stdout:
  12883. * src/UrlRequestInfo.cc
  12884. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12885. * src/Request.h: Use AuthResolver to get authentication information.
  12886. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12887. set to RequestFactory object.
  12888. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12889. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12890. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12891. create Request object.
  12892. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12893. To integrate Netrc into exsiting classes:
  12894. * src/Request.h
  12895. (_userDefinedAuthConfig): New variable.
  12896. (findNetrcAuthenticator): New function.
  12897. (segment): Removed.
  12898. (setUserDefinedAuthConfig): New function.
  12899. (resolveHttpAuthConfigItem): New function.
  12900. (resolveFtpAuthConfigItem): New function.
  12901. (resolveHttpProxyAuthConfigItem): New function.
  12902. * src/HttpRequest.h
  12903. (authConfig): Removed.
  12904. (proxyAuthConfig): Removed.
  12905. (setAuthConfig): Removed.
  12906. (setProxyAuthConfig): Removed.
  12907. * src/UrlRequest.h
  12908. (getHeadResult): Added a parameter: authConfigHandle
  12909. * src/common.h
  12910. (SingletonHolder.h): New include.
  12911. * src/main.cc
  12912. (Netrc.h): New include.
  12913. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12914. Added initial value of PREF_NETRC_PATH.
  12915. Added the initialization of netrc.
  12916. * src/AuthConfig.h: New class.
  12917. * src/prefs.h
  12918. (PREF_NETRC_PATH): New definition.
  12919. * src/HttpAuthConfig.h: Removed.
  12920. * src/Netrc.cc
  12921. (getRequiredNextToken): New function.
  12922. (skipMacdef): New function.
  12923. (parse): Rewritten.
  12924. * src/Netrc.h
  12925. (getRequiredNextToken): New function.
  12926. (skipMacdef): New function.
  12927. * src/Util.h, src/Util.cc
  12928. (getHomeDir): New function.
  12929. * src/TrackerWatcherComand.cc
  12930. (createRequestCommand): Use AuthConfig.
  12931. * src/FtpConnection.cc
  12932. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12933. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12934. * src/Request.cc
  12935. (findNetrcAuthenticator): New function.
  12936. (resolveHttpAuthConfigItem): New function.
  12937. (resolveFtpAuthConfigItem): New function.
  12938. (resolveHttpProxyAuthConfigItem): New function.
  12939. * src/UrlRequestInfo.cc: Use AuthConfig.
  12940. * src/HttpRequest.cc
  12941. (createRequest): Use authConfig.
  12942. (getProxyAuthString): Use authConfig.
  12943. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12944. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12945. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12946. To reduce overhead to find commands whose socket is either
  12947. readable or writable in the download engine loop:
  12948. * src/Command.h, src/Command.cc
  12949. (STATUS): New enum.
  12950. (status): New variable.
  12951. (statusMatch): New function.
  12952. (setStatusActive): New function.
  12953. (setStatusInactive): New function.
  12954. * src/DownloadEngine.h, src/DownloadEngine.cc
  12955. (executeCommand): New function.
  12956. (run): Simplified.
  12957. (waitData): Call Command::setStatusActive() when command's socket is
  12958. readable or writable.
  12959. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12960. To handle Segment as SegmentHandle:
  12961. * src/AbstractCommand.cc (execute): Rewritten.
  12962. * src/SegmentMan.h: Segment -> SegmentHandle
  12963. Introducded HttpResponse class, HttpRequest class to improve code
  12964. extensiveness and make it clear:
  12965. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12966. HttpResponse class.
  12967. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12968. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12969. * src/HttpConnection.cc: Contruction of http request were moved to
  12970. HttpRequest class.
  12971. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12972. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12973. * src/HttpAuthConfig.h: New class.
  12974. * src/Range.h: New class.
  12975. To make FtpTunnel{Request, Response}Command and
  12976. HttpProxy{Request, Response}Command derived from
  12977. AbstractProxy{Request, Response}Command:
  12978. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12979. Derived from AbstractProxyRequestCommand class.
  12980. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12981. Derived from AbstractProxyResponseCommand class.
  12982. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12983. Derived from AbstractProxyRequestCommand class.
  12984. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12985. Derived from AbstractProxyResponseCommand class.
  12986. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12987. : New class.
  12988. * src/AbstractProxyResponseCommand.h,
  12989. src/AbstractProxyResponseCommand.cc: New class.
  12990. To add netrc support:
  12991. * src/Netrc.h, src/Netrc.cc: New class.
  12992. * src/Util.h, src/Util.cc (split): New function.
  12993. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12994. "Content-Range" header instead of "Range" header.
  12995. * src/HttpHeader.h
  12996. (getStatus): Removed.
  12997. (setStatus): Removed.
  12998. * src/Segment.h
  12999. (getPositionToWrite): New function.
  13000. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13001. * src/HttpHeader.h
  13002. (Range.h): New include.
  13003. (status): New variable.
  13004. (HttpHeader): Initialized status with 0.
  13005. (getStatus): New function.
  13006. (setStatus): New function.
  13007. (getRange): New function.
  13008. (HttpHeaderHandle): New function.
  13009. * src/HttpHeader.cc
  13010. (getRange): New function.
  13011. * src/Request.h
  13012. (RequestWeakHandle): New definition.
  13013. * src/HttpConnection.h
  13014. (HttpConnectionHandle): New type definition.
  13015. * src/HttpConnection.cc
  13016. (receiveResponse): Set HTTP status to headers.
  13017. * src/main.cc
  13018. (showUsage): Fixed typo.
  13019. * src/Segment.h
  13020. (SegmentHandle): New type definition.
  13021. * src/BitfieldMan.h
  13022. (getMissingUnusedLength): New function.
  13023. * src/BitfieldMan.cc
  13024. (getMissingUnusedLength): New function.
  13025. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13026. To fix static initialization order problem:
  13027. * src/BitfieldManFactory.h
  13028. (defaultRandomizer): Removed.
  13029. (factory): New variable.
  13030. (getNewFactory): Removed.
  13031. (getFactoryInstance): New function.
  13032. (setDefaultRandomizer): Rewritten.
  13033. (getDefaultRandomizer): Rewritten.
  13034. * src/BitfieldManFactory.cc
  13035. (defaultRandomizer): Removed.
  13036. (factory): Initialized to 0.
  13037. (BitfieldManFactory): Initialized randomizer to 0.
  13038. * src/DefaultPieceStorage.cc
  13039. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  13040. * src/Peer.cc
  13041. (Peer): getNewFactory() -> getFactoryInstance()
  13042. * src/SegmentMan.cc
  13043. (initBitfield): getNewFactory() -> getFactoryInstance()
  13044. * src/Piece.cc
  13045. (Piece): getNewFactory() -> getFactoryInstance()
  13046. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13047. To fix the bug that causes crash on Max OS X:
  13048. * src/SimpleRandomizer.h
  13049. (getInstance): Create new instance if the static variable is null.
  13050. * src/SimpleRandomizer.cc
  13051. (randomizer): Initialized to 0.
  13052. * src/BitfieldManFactory.h
  13053. (getNewFactory): Removed the call to setRandomizer().
  13054. To fix the miscalculation of the range of checksum:
  13055. * src/BitfieldMan.h
  13056. (isBitSetOffsetRange): New function.
  13057. * src/BitfieldMan.cc
  13058. (isBitSetOffsetRange): New function.
  13059. * src/SegmentMan.cc
  13060. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  13061. Use bitfield->getBlockLength() instead of segment.segmentLength.
  13062. * Release 0.10.1
  13063. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13064. To lower CPU usage in BitTorrent download when --max-upload-limit
  13065. command-line option specified:
  13066. * src/DefaultBtMessageDispatcher.cc
  13067. (sendMessages): Calculate uploading speed only when current message
  13068. is uploading data and is not sent yet.
  13069. * src/DefaultPeerStorage.h
  13070. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  13071. * src/HttpResponseCommand.cc
  13072. (handleDefaultEncoding): Added the cast to int32_t to itos.
  13073. This fixes compile error in Soralis 10.
  13074. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13075. To fix segfault in Metalink download:
  13076. * src/UrlRequestInfo.h
  13077. (filename): Removed.
  13078. (totalLength): Removed.
  13079. (setTotalLength): Removed.
  13080. (setFilename): Removed.
  13081. * src/MetalinkRequestInfo.cc
  13082. (execute): Do not set filename and totalLength to reqInfo.
  13083. Set chunk checksum to reqInfo if it is not null.
  13084. * src/HttpResponseCommand.cc
  13085. (executeInternal): Fixed filename in log.
  13086. (handleDefaultEncoding): Removed the call to initBitfield() and
  13087. markAllPiecesDone().
  13088. (handleOtherEncoding): Added HEAD method handling.
  13089. * src/FtpNegotiateCommand.cc
  13090. (executeInternal): Added SEQ_HEAD_OK handling.
  13091. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  13092. return false.
  13093. * src/FtpNegotiateCommand.h
  13094. (SEQ_HEAD_OK): New definition.
  13095. * src/SegmentMan.cc
  13096. (initBitfield): Delete bitfield.
  13097. (isChunkChecksumValidationReady): Fixed the condition.
  13098. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  13099. works fine.
  13100. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13101. * src/Xml2MetalinkProcessor.h
  13102. (xpathExists): New function.
  13103. * src/Xml2MetalinkProcessor.cc
  13104. (xpathExists): New function.
  13105. Not to send HEAD request if filename and size are available in Metalink
  13106. file:
  13107. * src/UrlRequestInfo.h
  13108. (filename): New variable.
  13109. (totalLength): New variable.
  13110. (setTotalLength): New function.
  13111. (setFilename): New function.
  13112. * src/MetalinkRequestInfo.cc
  13113. (execute): Set filename and size to UrlRequestInfo.
  13114. * src/MetalinkEntry.cc
  13115. (MetalinkEntry): Initialize size with 0.
  13116. * src/UrlRequestInfo.cc
  13117. (execute): Set filename and size to SegmentMan.
  13118. Not to download rest of the files after selected files are downloaded
  13119. in BitTorrent:
  13120. * src/PieceStorage.h
  13121. (allDownloadFinished): New function.
  13122. * src/DefaultBtAnnounce.cc
  13123. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  13124. downloadFinished.
  13125. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  13126. * src/DefaultPieceStorage.cc
  13127. (completePiece): Use allDownloadFinished instead of downloadFinished.
  13128. Commented out the call to finishSelectiveDownloadingMode().
  13129. (downloadFinished): Call isFilteredAllBitSet() instead of
  13130. isAllBitSet().
  13131. (allDownloadFinished): New function.
  13132. * src/DefaultBtInteractive.cc
  13133. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  13134. downloadFinished().
  13135. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  13136. * src/TorrentDownloadEngine.cc
  13137. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  13138. * src/BitfieldMan.h
  13139. (isFilteredAllBitSet): New function.
  13140. * src/ShareRatioSeedCriteria.h
  13141. (PieceStorage.h): New include.
  13142. (pieceStorage): New variable.
  13143. (evaluate):
  13144. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  13145. * src/BitfieldMan.cc
  13146. (isFilteredAllBitSet): New function.
  13147. (isAllBitSet): Filter is not took into account.
  13148. Rename --force-truncate as --allow-overwrite:
  13149. * src/TorrentRequestInfo.cc
  13150. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  13151. * src/main.cc
  13152. (showUsage): --force-truncate -> --allow-overwrite
  13153. * src/message.h
  13154. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  13155. * src/prefs.h
  13156. (PREF_FORCE_TRUNCATE): Removed.
  13157. (PREF_ALLOW_OVERWRITE): New definition.
  13158. * src/SegmentMan.cc
  13159. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  13160. * src/MetalinkRequestInfo.cc
  13161. (execute): Queueing message are now logged in info level.
  13162. * src/common.h
  13163. (LONG_LONG_MAX): Removed.
  13164. (LONG_LONG_MIN): Removed.
  13165. * src/HttpResponseCommand.cc
  13166. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  13167. * src/FtpNegotiateCommand.cc
  13168. (recvSize): LONG_LONG_MAX -> INT64_MAX
  13169. * src/main.cc
  13170. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  13171. command-line option.
  13172. (main): Added --check-integriy and --realtime-chunk-checksum
  13173. command-line option.
  13174. --force-truncate -> --allow-overwrite
  13175. Set initial value of --check-integrity option to false.
  13176. Don't show usage when error occurs while persing command-line options.
  13177. Removed deprecated --upload-limit option.
  13178. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13179. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  13180. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  13181. * src/BtAllowedFastMessage.cc:
  13182. * src/BtBitfieldMessage.cc
  13183. * src/BtCancelMessage.cc
  13184. * src/BtChokeMessage.cc
  13185. * src/BtHaveAllMessage.cc
  13186. * src/BtHaveMessage.cc
  13187. * src/BtHaveNoneMessage.cc
  13188. * src/BtInterestedMessage.cc
  13189. * src/BtNotInterestedMessage.cc
  13190. * src/BtPieceMessage.cc
  13191. * src/BtPortMessage.cc
  13192. * src/BtRejectMessage.cc
  13193. * src/BtRequestMessage.cc
  13194. * src/BtSuggestPieceMessage.cc
  13195. * src/BtUnchokeMessage.cc
  13196. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  13197. files are affected.
  13198. * src/ChunkChecksumValidator.cc
  13199. * src/SegmentMan.cc
  13200. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13201. To add chunk checksum validation:
  13202. * src/MetalinkEntry.h
  13203. (MetalinkChunkChecksum.h): New include.
  13204. (chunkChecksum): New variable.
  13205. * src/Request.h
  13206. (method): New variable.
  13207. (setMethod): New function.
  13208. (getMethod): New function.
  13209. (METHOD_GET): New static constant.
  13210. (METHOD_HEAD): New static constant.
  13211. * src/Xml2MetalinkProcessor.h
  13212. (getPieceHash): New function.
  13213. * src/PieceStorage.h
  13214. (markAllPiecesDone): New function.
  13215. (checkIntegrity): New function.
  13216. * src/FileAllocator.h
  13217. (NullFileAllocationMonitor.h): New include.
  13218. (FileAllocator): Initialize fileAllocationMonitor with new
  13219. NullFileAllocationMonitor().
  13220. * src/MultiDiskAdaptor.h
  13221. (messageDigest.h): Remove include.
  13222. (ctx): Removed.
  13223. (hashUpdate): Added ctx.
  13224. (MultiDiskAdaptor): Removed ctx.
  13225. (sha1Sum): Renamed as messageDigest.
  13226. (messageDigest): New function.
  13227. * src/UrlRequestInfo.h
  13228. (HeadResult): New class.
  13229. (digestAlgo): New variable.
  13230. (chunkChecksumLength): New variable.
  13231. (chunkChecksums): New variable.
  13232. (getHeadResult): New function.
  13233. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  13234. (setDigestAlgo): New function.
  13235. (setChunkChecksumLength): New function.
  13236. (setChunkChecksums): New function.
  13237. * src/DefaultPieceStorage.cc
  13238. (DiskAdaptorWriter.h): New include.
  13239. (ChunkChecksumValidator.h): New include.
  13240. (markAllPiecesDone): New function.
  13241. (checkIntegrity): New function.
  13242. * src/DefaultBtContext.h
  13243. (getPieceHashes): New function.
  13244. * src/TorrentRequestInfo.cc
  13245. (execute): Try to validate chunk checksum if file already exists and
  13246. .aria2 file doesn't there and user allows aria2 to overwrite it.
  13247. * src/messageDigest.h
  13248. (~MessageDigestContext): Added digestFree().
  13249. * src/MetalinkRequestInfo.cc
  13250. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  13251. * src/DiskAdaptor.h
  13252. (messageDigest.h): New include.
  13253. (sha1Sum): Renamed as messageDigest.
  13254. (messageDigest): New function.
  13255. * src/DownloadCommand.h
  13256. (PeerStat.h): New include.
  13257. (maxDownloadSpeedLimit): New variable.
  13258. (startupIdleTime): New variable.
  13259. (lowestDownloadSpeedLimit): New variable.
  13260. (peerStat): New variable.
  13261. (setMaxDownloadSpeedLimit): New function.
  13262. (setStartupIdleTime): New function.
  13263. (setLowestDownloadSPeedLimit): New function.
  13264. * src/BtContext.h
  13265. (getPieceHashes): New function.
  13266. * src/main.cc
  13267. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  13268. option to true for testing purpose.
  13269. * src/BtPieceMessage.cc
  13270. (checkPieceHash): Use messageDigest
  13271. * src/DownloadEngine.cc
  13272. (SetDescriptor): Removed.
  13273. (AccumulateActiveCommand): Removed.
  13274. (waitData): Rewritten.
  13275. (updateFdSet): Rewritten.
  13276. * src/MultiDiskAdaptor.cc
  13277. (hashUpdate): Added ctx.
  13278. (sha1Sum): Renamed as messageDigest.
  13279. (messageDigest): New function.
  13280. * src/BitfieldMan.h
  13281. (isBitRangeSet): New function.
  13282. (unsetBitRange): New function.
  13283. * src/ByteArrayDiskWriter.h
  13284. (sha1Sum): Renamed as messageDigest.
  13285. (messageDigest): New function.
  13286. * src/ConsoleDownloadEngine.cc
  13287. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  13288. * src/DiskWriter.h
  13289. (messageDigest.h): New include.
  13290. (sha1Sum): Renamed as messageDigest.
  13291. (messageDigest): New function.
  13292. * src/ChunkChecksumValidator.h: New class.
  13293. * src/DiskAdaptorWriter.h: New class.
  13294. * src/prefs.h
  13295. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  13296. (PREF_CHECK_INTEGRITY): New definition.
  13297. * src/HttpResponseCommand.cc
  13298. (handleDefaultEncoding): Added method "HEAD" handling.
  13299. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13300. (handleOtherEncoding):
  13301. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  13302. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  13303. startupIdleTime, lowestDownloadSpeedLimit to command.
  13304. * src/SegmentMan.h
  13305. (getSegmentEntryByIndex): New function.
  13306. (getSegmentEntryByCuid): New function.
  13307. (getSegmentEntryIteratorByCuid): New function.
  13308. (diskWriter): DiskWriter -> DiskWriterHandle
  13309. (pieceHashes): New variable.
  13310. (chunkHashLength): New variable.
  13311. (digestAlgo): New variable.
  13312. (FindPeerStat): Removed.
  13313. (getPeerStat): Rewritten.
  13314. (markAllPiecesDone): New function.
  13315. (checkIntegrity): New function.
  13316. (tryChunkChecksumValidation): New function.
  13317. (isChunkChecksumValidationReady): New function.
  13318. * src/BitfieldMan.cc
  13319. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  13320. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  13321. blocks to 0.
  13322. (isBitRangeSet): New function.
  13323. (unsetBitRange): New function.
  13324. * src/FtpNegotiateCommand.cc
  13325. (executeInternal): Set maxDownloadSpeedLimit,
  13326. startupIdleTime, lowestDownloadSpeedLimit to command.
  13327. (recvSize): Added method "HEAD" handling.
  13328. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  13329. * src/AbstractSingleDiskAdaptor.cc
  13330. (sha1Sum): Renamed as messageDigest.
  13331. (messageDigest): New function.
  13332. * src/AbstractSingleDiskAdaptor.h
  13333. (sha1Sum): Renamed as messageDigest.
  13334. (messageDigest): New function.
  13335. * src/Util.h
  13336. (indexRange): New function.
  13337. * src/MetalinkEntry.cc
  13338. (MetalinkEntry): Initialized chunkChecksum to 0.
  13339. * src/ShaVisitor.cc
  13340. (~ShaVisitor): Removed the call to ctx.digestFree().
  13341. * src/SegmentMan.cc
  13342. (ChunkChecksumValidator.h): New include.
  13343. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  13344. to DIGEST_ALGO_SHA1.
  13345. (~SegmentMan): Removed diskWriter.
  13346. (FindSegmentEntryByIndex): Removed.
  13347. (FindSegmentEntryByCuid): Removed.
  13348. (checkoutSegment): Rewritten.
  13349. (findSlowerSegmentEntry): Rewritten.
  13350. (getSegment): Rewritten.
  13351. (updateSegment): Rewritten.
  13352. (completeSegment): Rewritten.
  13353. (markAllPiecesDone): New function.
  13354. (checkIntegrity): New function.
  13355. (isChunkChecksumValidationReady): New function.
  13356. (tryChunkChecksumValidation): New function.
  13357. * src/Xml2MetalinkProcessor.cc
  13358. (getEntry): Get size and set it to entry.
  13359. Get chunk checksum and set it to entry.
  13360. (getPieceHash): New function.
  13361. * src/Util.cc
  13362. (sha1Sum): Removed ctx.digestFree()
  13363. (fileChecksum): Removed ctx.digestFree()
  13364. (indexRange): New function.
  13365. * src/Request.cc
  13366. (METHOD_GET): New variable.
  13367. (METHOD_HEAD): New variable.
  13368. (Request): Added method.
  13369. * src/UrlRequestInfo.cc
  13370. (FatalException.h): New include.
  13371. (message.h): New include.
  13372. (operator<<): Added operator<< for class HeadResult.
  13373. (getHeadResult): New function.
  13374. (execute): Get filename and size in separate download engine.
  13375. * src/ChunkChecksumValidator.cc: New class.
  13376. * src/DownloadCommand.cc:
  13377. (DownloadCommand): Added peerStat.
  13378. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13379. the value from Option.
  13380. The buffer size is now 16KB.
  13381. Use peerStat member instead of getting it from SegmentMan.
  13382. Use startupIdleTime member instead of gettingit from Option.
  13383. Added chunk checksum validation.
  13384. * src/AbstractDiskWriter.cc
  13385. (AbstractDiskWriter): Removed ctx.
  13386. (~AbstractDiskWriter): Removed ctx.digestFree()
  13387. (writeDataInternal): Returns the return value of write.
  13388. (readDataInternal): Returns the return value of read.
  13389. (sha1Sum): Renamed as messageDigest
  13390. (messageDigest): New function.
  13391. * src/AbstractDiwkWriter.h
  13392. (messageDigest.h): Removed include.
  13393. (ctx): Removed.
  13394. (sha1Sum): Renamed as messageDigest
  13395. (messageDigest): New function.
  13396. * src/DefaultPieceStorage.h
  13397. (markAllPiecesDone): New function.
  13398. (checkIntegrity): New function.
  13399. * src/NullFileAllocationMonitor.h: New class.
  13400. * src/MetalinkChunkChecksum.h: New class.
  13401. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13402. To decrease CPU usage in bittorrent download, calculation results in
  13403. BitfieldMan were cached and realtime fetching PeerObject was removed
  13404. with WeakHandle introduced. Option values are set to the objects
  13405. by setter before download begins.
  13406. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13407. * src/DefaultBtRequestFactory.h
  13408. (dispatcher): BtMessageDispatcherHandle ->
  13409. BtMessageDispatcherWeakHandle.
  13410. (messageFactory): New variable.
  13411. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13412. BtMessageDispatcherWeakHandle.
  13413. (setBtMessageFactory): New function.
  13414. * src/DefaultBtMessageDispatcher.cc:
  13415. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13416. from Option.
  13417. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13418. feating the value from Option.
  13419. Use messageFactory member.
  13420. * src/PeerInteractionCommand.cc
  13421. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13422. Add reverse dependencies to factory object.
  13423. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13424. dispatcher.
  13425. Set messageFactory to receiver.
  13426. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13427. btInteractive.
  13428. Set receiver to peerObject.
  13429. Set maxDownloadSpeedLimit to this.
  13430. (executeInternal): Use maxDownloadSpeedLimit member.
  13431. * src/BtChokeMessage.cc
  13432. (doReceivedAction): Use dispatcher, requestFactory member.
  13433. (onSendComplete): Use dispatcher member.
  13434. * src/PeerInteractionCommand.h
  13435. (maxDownloadSpeedLimit): New variable.
  13436. * src/DefaultBtMessageReceiver.h
  13437. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13438. (dispatcher):
  13439. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13440. (messageFactory): New variable.
  13441. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13442. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13443. (setDispatcher):
  13444. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13445. (setBtMessageFactory): New function.
  13446. * src/DefaultBtInteractive.cc
  13447. (initiateHandshake): Use messageFactory member.
  13448. (addBitfieldMessageToQueue): Use messageFactory member.
  13449. (addAllowedFastMessageToQueue): Use messageFactory member.
  13450. (decideChoking): Use messageFactory member.
  13451. (checkHave): Use messageFactory member.
  13452. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13453. (receiveMessages): Use maxDownloadSpeedLimit member.
  13454. (decideInterest): Use messageFactory member.
  13455. * src/BtRequestMessage.cc
  13456. (doReceivedAction): Use messageFactory, dispatcher member.
  13457. (onQueued): Use dispatcher member.
  13458. * src/BtPieceMessage.cc
  13459. (doReceivedAction): Use dispatcher member.
  13460. (send): Use peerConnection member.
  13461. (onWrongPiece): Use requestFactory member.
  13462. (handleChokingEvent): Use messageFactory, dispatcher member.
  13463. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13464. * src/BtMessageDispatcher.h
  13465. (BtMessageDispatcherWeakHandle): New type definition.
  13466. * src/SimpleBtMessage.cc
  13467. (send): Use peerConnection member.
  13468. * src/BtRejectMessage.cc
  13469. (doReceivedAction): Use dispatcher member.
  13470. * src/DefaultBtMessageDispatcher.h
  13471. (Option.h): Removed include.
  13472. (messageFactory): New variable.
  13473. (option): Removed.
  13474. (maxUploadSpeedLimit): New variable.
  13475. (requestTimeout): New variable.
  13476. (DefaultBtMessageDispatcher): Removed option.
  13477. Added maxUploadSpeedLimit, requestTimeout.
  13478. (setOption): Removed.
  13479. (getOption): Removed.
  13480. (setMaxUploadSpeedLimit): New function.
  13481. (setRequestTimeout): New function.
  13482. (setBtMessageFactory): New function.
  13483. * src/DefaultBtInteractive.h
  13484. (btMessageReceiver):
  13485. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13486. (dispatcher):
  13487. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13488. (btRequestFactory):
  13489. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13490. (peerConnection):
  13491. PeerConnectionHandle -> PeerConnectionWeakHandle
  13492. (messageFactory): New variable.
  13493. (option): Removed.
  13494. (keepAliveInterval): New variable.
  13495. (maxDownloadSpeedLimit): New variable.
  13496. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13497. (setBtMessageReceiver):
  13498. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13499. (setDispatcher):
  13500. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13501. (setBtRequestFactory):
  13502. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13503. (setPeerConnection):
  13504. PeerConnectionHandle -> PeerConnectionWeakHandle
  13505. (setOption): Removed.
  13506. (setKeepAliveInterval): New function.
  13507. (setMaxDownloadSpeedLimit): New function.
  13508. (setBtMessageFactory): New function.
  13509. * src/BitfieldMan.h
  13510. (cachedNumMissingBlock): New variable.
  13511. (cachedNumFilteredBlock): New variable.
  13512. (cachedCompletedLength): New variable.
  13513. (cachedFilteredComletedLength): New variable.
  13514. (cachedFilteredTotalLength): New variable.
  13515. (countMissingBlockNow): New function.
  13516. (countFilteredBlockNow): New function.
  13517. (getFilteredTotalLengthNow): New function.
  13518. (getCompletedLengthNow): New function.
  13519. (getFilteredCompletedLengthNow): New function.
  13520. (updateCache): New function.
  13521. * src/AbstractBtMessage.h
  13522. (BtMessageDispatcher.h): New include.
  13523. (PeerConnection.h): New include.
  13524. (BtRequestFactory.h): New include
  13525. (BtMessageFactory.h): New include.
  13526. (dispatcher): New variable.
  13527. (messageFactory): New variable.
  13528. (peerConnection: New variable.
  13529. (setBtMessageDispatcher): New function.
  13530. (setPeerConnection): New function.
  13531. (setBtMessageFactory): New function.
  13532. (setBtRequestFactory): New function.
  13533. * src/DefaultBtMessageFactory.cc
  13534. (setCommonProperty): Set dispatcher, requestFactory, this,
  13535. peerConnection to msg.
  13536. * src/BtRegistry.h
  13537. (BT_MESSAGE_RECEIVER): New macro.
  13538. * src/PeerConnection.h
  13539. (PeerConnectionWeakHandle): New type definition.
  13540. * src/BtMessageFactory.h
  13541. (BtMessageFactoryWeakHandle): New type definition.
  13542. * src/BitfieldMan.cc
  13543. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13544. cachedCompletedLength, cachedFilteredComletedLength,
  13545. cachedFilteredTotalLength.
  13546. Call updateCache().
  13547. (countMissingBlock): Return cachedNumMissingBlock.
  13548. (countMissingBlockNow): New function.
  13549. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13550. (countFilteredBlockNow): New function.
  13551. (setBit): Call updateCache().
  13552. (unsetBit): Call updateCache().
  13553. (setBitfield): Call updateCache().
  13554. (clearAllBit): Call updateCache().
  13555. (setAllBit): Use setBitInternal instead of setBit.
  13556. Call updateCache().
  13557. (addFilter): Call updateCache().
  13558. (enableFilter): Call updateCache().
  13559. (disableFilter): Call updateCache().
  13560. (clearFilter): Call updateCache().
  13561. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13562. (getFilteredTotalLengthNow): New function.
  13563. (getCompletedLength): Return cachedCompletedLength.
  13564. (getCompletedLengthNow): New function.
  13565. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13566. (getFilteredCompletedLengthNow): New function.
  13567. (updateCache): New function.
  13568. * src/BtMessageReceiver.h
  13569. (BtMessageReceiverWeakHandle): New type definition.
  13570. * src/DefaultBtMessageReceiver.cc
  13571. (receiveHandshake): Use messageFactory member.
  13572. (sendHandshake): Use messageFactory member.
  13573. (receiveMessage): Use messageFactory member.
  13574. * src/DefaultBtMessageFactory.h
  13575. (dispatcher): New variable.
  13576. (requestFactory): New variable.
  13577. (peerConnection): New variablle.
  13578. (setBtMessageDispatcher): New function.
  13579. (setBtRequestFactory): New function.
  13580. (setPeerConnection): New function.
  13581. * src/SharedHandle.h
  13582. (RefCount): New class.
  13583. (WeakHandle): New class.
  13584. * src/PeerObject.h
  13585. (BtMessageReceiver.h): New include.
  13586. (PeerObject): Added btMessageReceiver.
  13587. (btMessageReceiver): New variable.
  13588. * src/Util.cc
  13589. (countBit): Simplified.
  13590. * src/BtCancelMessage.cc
  13591. (doReceivedAction): Use dispatcher member.
  13592. * src/BtRequestFactory.h
  13593. (BtRequestFactoryWeakHandle): New type definition.
  13594. * src/PeerStorage.h
  13595. (downloadSpeed): int -> uint32_t
  13596. (uploadSpeed): int -> uint32_t
  13597. (sessionDownloadLength): long long int -> uint64_t
  13598. (sessionUploadLength): long long int -> uint64_t
  13599. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13600. To add RecoverableException, FatalException:
  13601. * src/AbstractCommand.cc
  13602. (onAbort): Exception -> RecoverableException
  13603. * src/PeerAbstractCommand.h
  13604. (RecoverableException.h): New include.
  13605. (onAbort): Exception -> RecoverableException.
  13606. * src/PeerInteractionCommand.cc
  13607. (onAbort): Exception -> RecoverableException.
  13608. * src/PeerAbstractCommand.cc
  13609. (execute): Exception -> RecoverableException.
  13610. (onAbort): Exception -> RecoverableException.
  13611. * src/TorrentRequestInfo.cc
  13612. (execute): Exception -> RecoverableException.
  13613. * src/MetalinkRequestInfo.cc
  13614. (execute): Exception -> RecoverableException.
  13615. * src/MetaFileUtil.cc: RecoverableException.
  13616. * src/AbstractCommand.h
  13617. (onAbort): Exception -> RecoverableException.
  13618. * src/DlRetryEx.h: Exception -> RecoverableException.
  13619. * src/DlAbortEx.h: Exception -> RecoverableException.
  13620. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13621. * src/Util.cc: Exception -> RecoverableException.
  13622. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13623. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13624. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13625. To make ID static const int
  13626. * src/BtInterestedMessage.h
  13627. (ID_t): Removed.
  13628. (ID): New variable.
  13629. (getId): Made non-const.
  13630. * src/BtPieceMessage.h
  13631. (ID_t): Removed.
  13632. (ID): New variable.
  13633. (getId): Made non-const.
  13634. * src/BtChokeMessage.h
  13635. (ID_t): Removed.
  13636. (ID): New variable.
  13637. (getId): Made non-const.
  13638. * src/BtHaveAllMessage.h
  13639. (ID_t): Removed.
  13640. (ID): New variable.
  13641. (getId): Made non-const.
  13642. * src/BtKeepAliveMessage.h
  13643. (ID_t): Removed.
  13644. (ID): New variable.
  13645. (getId): Made non-const.
  13646. * src/BtHandshakeMessage.h
  13647. (ID): New variable.
  13648. (getId): Made non-const.
  13649. * src/BtSuggestPieceMessage.h
  13650. (ID_t): Removed.
  13651. (ID): New variable.
  13652. (getId): Made non-const.
  13653. * src/BtPortMessage.h
  13654. (ID_t): Removed.
  13655. (ID): New variable.
  13656. (getId): Made non-const.
  13657. * src/AbstractBtMessage.h
  13658. (id): Removed.
  13659. (AbstractBtMessage): Removed id.
  13660. (getId): Removed.
  13661. * src/BtHaveMessage.h
  13662. (ID_t): Removed.
  13663. (ID): New variable.
  13664. (getId): Made non-const.
  13665. * src/BtAllowedFastMessage.h
  13666. (ID_t): Removed.
  13667. (ID): New variable.
  13668. (getId): Made non-const.
  13669. * src/BtCancelMessage.h
  13670. (ID_t): Removed.
  13671. (ID): New variable.
  13672. (getId): Made non-const.
  13673. * src/BtNotInterestedMessage.h
  13674. (ID_t): Removed.
  13675. (ID): New variable.
  13676. (getId): Made non-const.
  13677. * src/BtChokeMessage.h
  13678. (ID_t): Removed.
  13679. (ID): New variable.
  13680. (getId): Made non-const.
  13681. * src/BtRejectMessage.h
  13682. (ID_t): Removed.
  13683. (ID): New variable.
  13684. (getId): Made non-const.
  13685. * src/BtBitfieldMessage.h
  13686. (ID_t): Removed.
  13687. (ID): New variable.
  13688. (getId): Made non-const.
  13689. * src/BtUnchokeMessage.h
  13690. (ID_t): Removed.
  13691. (ID): New variable.
  13692. (getId): Made non-const.
  13693. * src/BtRequestMessage.h
  13694. (ID_t): Removed.
  13695. (ID): New variable.
  13696. (getId): Made non-const.
  13697. * src/BtHaveMessage.h
  13698. (ID_t): Removed.
  13699. (ID): New variable.
  13700. (getId): Made non-const.
  13701. To add --force-truncate command-line option and a check whether
  13702. the file already exists:
  13703. * src/DirectDiskAdaptor.h
  13704. (getFilePath): Made virtual public.
  13705. * src/MultiDiskAdaptor.h
  13706. (File.h): New include.
  13707. (DiskWriterEntry::fileEntry): Made private.
  13708. (DiskWriterEntry::fileExists): New function.
  13709. (DiskWriterEntry::getFileEntry): New function.
  13710. (fileExists): New function.
  13711. (getFilePath): New function.
  13712. * src/TorrentRequestInfo.cc
  13713. (FatalException.h): New include.
  13714. (message.h): New include.
  13715. (RecoverableException.h): New include.
  13716. (execute): Added a check whether file is already exists or not.
  13717. * src/DiskAdaptor.h
  13718. (fileExists): New function.
  13719. (getFilePath): New function.
  13720. * src/main.cc
  13721. (showUsage): Added an explanation of --force-truncate command-line
  13722. option.
  13723. (main): Added --force-truncate command-line option.
  13724. * src/Exception.h
  13725. (setMsg): buf[256] -> buf[1024]
  13726. * src/CopyDiskWriter.h
  13727. (getFilePath): Made public virtual.
  13728. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13729. (fileExists): New function.
  13730. * src/DownloadEngineFactory.cc
  13731. (newTorrentConsoleEngine): Don't open file here.
  13732. * src/message.h
  13733. (EX_FILE_ALREADY_EXISTS): New definition.
  13734. * src/prefs.h
  13735. (PREF_FOECE_TRUNCATE): New definition.
  13736. * src/HttpResponseCommand.cc
  13737. (handleDefaultEncoding): Added a check whether the file already exists.
  13738. * src/SegmentMan.h
  13739. (fileExists): New function.
  13740. (shouldCancelDownloadForSafety): New function.
  13741. * src/FtpNegotiateCommand.cc
  13742. (recvSize): Added a check whether the file already exists.
  13743. * src/AbstractSingleDiskAdaptor.cc
  13744. (File.h): New include.
  13745. (fileExists): New function.
  13746. * src/AbstractSingleDiskAdaptor.h
  13747. (getFilePath): Removed.
  13748. (fileExists): New function.
  13749. * src/SegmentMan.cc
  13750. (fileExists): New function.
  13751. (shouldCancelDownloadForSafety): New function.
  13752. To fix regression bug in torrent downloading:
  13753. * src/DefaultBtRequestFactory.cc
  13754. (doChokedAction): New function.
  13755. * src/DefaultBtRequestFactory.h
  13756. (doChokedAction): New function.
  13757. * src/DefaultBtMessageDispatcher.cc
  13758. (doChokedAction): Do not delete request if its target is in allowed
  13759. fast set.
  13760. * src/DefaultBtInteractive.cc
  13761. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13762. (sendKeepAlive): Send keep alive message even if the outgoing message
  13763. queue is not empty.
  13764. (decideInterest): Simplified the code.
  13765. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13766. it is already called when BtChokeMessage is received from a peer.
  13767. * src/BtRequestFactory.h
  13768. (doChokedAction): New function.
  13769. To clean up code:
  13770. * src/PeerInteractionCommand.h
  13771. (executeInternal): Added virtual keyword explicitly.
  13772. (prepareForRetry): Added virtual keyword explicitly.
  13773. (prepareForNextPeer): Added virtual keyword explicitly.
  13774. (onAbort): Added virtual keyword explicitly.
  13775. * src/RequestSlot.cc
  13776. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13777. * src/BtPieceMessage.cc
  13778. (doReceivedAction): Added a debug log of piece's bitfield.
  13779. * src/Piece.h
  13780. (getBitfieldLength): New function.
  13781. * src/ByteArrayDiskWriter.cc
  13782. (clear): Added buf = 0 to avoid double free corruption.
  13783. * src/FileAllocator.cc
  13784. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13785. Added cp.reset().
  13786. * src/BitfieldMan.h
  13787. (operator=): Rewritten.
  13788. * src/BitfieldMan.cc
  13789. (BitfieldMan): Initialized bitfield, useBitfield.
  13790. * src/PeerConnection.cc
  13791. (receiveMessage): Added a call to socket->readable() after getting
  13792. message length to avoid possible EOF.
  13793. * src/Util.cc
  13794. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13795. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13796. To add an ability to pre-allocate file space:
  13797. * src/DirectDiskAdaptor.h: Rewritten.
  13798. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13799. * src/MultiDiskAdaptor.h: Rewritten.
  13800. * src/DefaultPieceStorage.cc
  13801. (MultiDiskWriter.h): Removed include.
  13802. (PreAllocationDiskWriter.h): Removed include.
  13803. (FileAllocationMonitor.h): New include.
  13804. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13805. (initStorage): Rewritten.
  13806. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13807. * src/FileAllocator.h: New class.
  13808. * src/FileAllocator.cc: New class.
  13809. * src/FileAllocationMonitor.h: New class.
  13810. * src/FileAllocationMonitor.cc: New class.
  13811. * src/ConsoleFileAllocationMonitor.h: New class.
  13812. * src/ConsoleFileAllocationMonitor.cc: New class.
  13813. * src/AbstractSingleDiskAdaptor.h: New class.
  13814. * src/AbstractSingleDiskAdaptor.cc: New class.
  13815. * src/DiskAdaptor.h
  13816. (Directory.h): Removed include.
  13817. (DiskWriter.h): Removed include.
  13818. (FileEntry.h): Removed include.
  13819. (diskWriter): Removed.
  13820. (DiskAdaptor): Removed diskWriter.
  13821. (openFile): Made pure virtual.
  13822. (closeFile): Made pure virtual.
  13823. (openExistingFile): Made pure virtual.
  13824. (initAndOpenFile): Made pure virtual.
  13825. (writeData): Made pure virtual.
  13826. (readData): Made pure virtual.
  13827. (sha1Sum): Made pure virtual.
  13828. (getStoreDir): Returns const reference of storeDir.
  13829. (DiskAdaptorHandle): New type definition.
  13830. * src/main.cc
  13831. (ConsoleFileAllocationMonitor.h): New include.
  13832. (showUsage): Added default value description of -s option.
  13833. Added the description of --file-allocation option.
  13834. (main): Set default value of --file-allocation option to 'none'.
  13835. Added --file-allocation command-line option.
  13836. Setup FileAllocationMonitorFactory.
  13837. * src/FtpInitiateConnectionCommand.cc
  13838. (executeInternal): Removed diskWriter related processing, which was
  13839. moved to FtpNegotiationCommand.cc.
  13840. * src/DirectDiskAdaptor.cc
  13841. (getFilePath): Made non-const.
  13842. * src/CopyDiskAdaptor.h
  13843. (DiskAdaptor.h): Removed include.
  13844. (DiskWriter.h): Removed include.
  13845. (AbstractSingleDiskAdaptor.h): New include.
  13846. (getFilePath): Made non-const. Added virtual keyword.
  13847. (CopyDiskAdaptor): Removed diskWriter.
  13848. (getTempFile): Returns const reference.
  13849. (CopyDiskAdaptorHandle): New type definition.
  13850. * src/ByteArrayDiskWriter.cc
  13851. (clear): Simplified.
  13852. (initAndOpenFile): Rewritten.
  13853. (openFile): Call initAndOpenFile()
  13854. * src/MultiDiskAdaptor.cc: Rewritten.
  13855. * src/DownloadEngineFactory.cc
  13856. (FileAllocator.h): New include.
  13857. (FileAllocationMonitor.h): New include.
  13858. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13859. create DefaultDiskWriter with file allocator.
  13860. * src/DiskWriter.h
  13861. (initAndOpenFile): Added totalLength argument.
  13862. (openFile): Added totalLength argument.
  13863. * src/prefs.h
  13864. (PREF_FILE_ALLOCATION): New definition.
  13865. (V_PREALLOC): New definition.
  13866. (V_NONE): New definition.
  13867. * src/HttpResponseCommand.cc
  13868. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13869. size.
  13870. * src/FtpNegotiateCommand.cc
  13871. (Util.h): New include.
  13872. (recvSize): Open file here.
  13873. * src/Util.h
  13874. (ullitos): New function.
  13875. * src/CopyDiskWriter.h
  13876. (getFilePath): Made non-const.
  13877. * src/DefaultDiskWriter.h
  13878. (Option.h): New include.
  13879. (totalLength): Removed.
  13880. (DefaultDiskWriter): Removed totalLength.
  13881. (initAndOpenFile): Added totalLength argument.
  13882. (DefaultDiskWriterHandle): New type definition.
  13883. (createNewDiskWriter): New function.
  13884. * src/Util.cc
  13885. (ullitos): New function.
  13886. * src/DefaultDiskWriter.cc
  13887. (message.h): New include.
  13888. (FileAllocator.h): New include.
  13889. (prefs.h): New include.
  13890. (Util.h): New include.
  13891. (DefaultDiskWriter): Removed totalLength.
  13892. (initAndOpenFile): Added file allocation.
  13893. (createNewDiskWriter): New function. Just for temporary solution.
  13894. It will be rewritten later.
  13895. * src/DiskAdaptor.cc
  13896. (DiskAdaptor): Removed diskWriter.
  13897. * src/AbstractDiskWriter.cc
  13898. (LogFactory.h): New include.
  13899. (AbstractDiskWriter): Added fileAllocator, logger.
  13900. (openFile): Added totalLength argument.
  13901. * src/AbstractDiskWriter.h
  13902. (FileAllocator.h): New include.
  13903. (Logger.h): New include.
  13904. (fileAllocator): New variable.
  13905. (logger): New variable.
  13906. (openFile): Added totalLength argument. Added virtual keyword
  13907. explicitly.
  13908. (openExistingFile): Added totalLength argument. Added virtual keyword
  13909. explicitly.
  13910. (closeFile): Added virtual keyword explicitly.
  13911. (sha1Sum): Added virtual keyword explicitly.
  13912. (writeData): Added virtual keyword explicitly.
  13913. (readData): Added virtual keyword explicitly.
  13914. (setFileAllocator): New function.
  13915. * src/DefaultPieceStorage.h
  13916. (FileAllocator.h): New include.
  13917. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13918. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13919. * src/FileProgressMonitor.h: New class.
  13920. To compile aria2 on PC-BSD:
  13921. * src/DefaultBtContext.cc
  13922. (libgen.h): New include.
  13923. To fix memory leak:
  13924. * src/Exception.h
  13925. (~Exception): Delete cause. Fixed memory leak.
  13926. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13927. Rewritten a portion of bittorrent implementation:
  13928. * src/BtMessageValidator.h: New class.
  13929. * src/BtBitfieldMessageValidator.h: New class.
  13930. * src/BtHandshakeMessageValidator.h: New class.
  13931. * src/BtRequestMessageValidator.h: New class.
  13932. * src/BtSuggestPieceMessageValidator.h: New class.
  13933. * src/BtAllowedFastMessageValidator.h: New class.
  13934. * src/BtRejectMessageValidator.h: New class.
  13935. * src/BtCancelMessageValidator.h: New class.
  13936. * src/BtPieceMessageValidator.h: New class.
  13937. * src/BtHaveMessageValidator.h: New class.
  13938. * src/BtEventListener.h: New class.
  13939. * src/AbstractBtEventListener.h: New class.
  13940. * src/BtEvent.h: New class.
  13941. * src/BtChokingEvent.h: New class.
  13942. * src/BtChokedEvent.h: New class.
  13943. * src/BtCancelSendingPieceEvent.h: New class.
  13944. * src/BtAbortOutstandingRequestEvent.h: New class.
  13945. * src/Randomizer.h: New class.
  13946. * src/SimpleRandomizer.h: New class.
  13947. * src/BtMessage.h: New class.
  13948. * src/AbstractBtMessage.h: New class.
  13949. * src/SimpleBtMessage.h: New class.
  13950. * src/BtHaveMessage.h: New class.
  13951. * src/BtInterestedMessage.h: New class.
  13952. * src/BtAllowedFastMessage.h: New class.
  13953. * src/BtUnchokeMessage.h: New class.
  13954. * src/BtCancelMessage.h: New class.
  13955. * src/BtNotInterestedMessage.h: New class.
  13956. * src/BtChokeMessage.h: New class.
  13957. * src/BtHaveNoneMessage.h: New class.
  13958. * src/BtHandshakeMessage.h: New class.
  13959. * src/BtSuggestPieceMessage.h: New class.
  13960. * src/BtHaveMessage.h: New class.
  13961. * src/BtPieceMessage.h: New class.
  13962. * src/BtHaveAllMessage.h: New class.
  13963. * src/BtKeepAliveMessage.h: New class.
  13964. * src/BtPortMessage.h: New class.
  13965. * src/BtRejectMessage.h: New class.
  13966. * src/BtBitfieldMessage.h: New class.
  13967. * src/BtRequestMessage.h: New class.
  13968. * src/DefaultBtRequestFactory.h: New class.
  13969. * src/DefaultBtMessageReceiver.h: New class.
  13970. * src/BtInteractive.h: New class.
  13971. * src/BtMessageDispatcher.h: New class.
  13972. * src/DefaultBtMessageDispatcher.h: New class.
  13973. * src/DefaultBtInteractive.h: New class.
  13974. * src/BitfieldManFactory.h: New class.
  13975. * src/HandleRegistry.h: New class.
  13976. * src/BtMessageFactory.h: New class.
  13977. * src/BtMessageReceiver.h: New class.
  13978. * src/DefaultBtMessageFactory.h: New class.
  13979. * src/PeerObject.h: New class.
  13980. * src/BtRequestFactory.h: New class.
  13981. * src/SuggestPieceMessage.h: Removed.
  13982. * src/PortMessage.h: Removed.
  13983. * src/SuggestPieceMessage.h: Removed.
  13984. * src/KeepAliveMessage.h: Removed.
  13985. * src/HandshakeMessage.h: Removed.
  13986. * src/PeerInteraction.h: Removed.
  13987. * src/UnchokeMessage.h: Removed.
  13988. * src/PieceMessage.h: Removed.
  13989. * src/RequestMessage.h: Removed.
  13990. * src/InterestedMessage.h: Removed.
  13991. * src/HaveMessage.h: Removed.
  13992. * src/CancelMessage.h: Removed.
  13993. * src/RejectMessage.h: Removed.
  13994. * src/AllowedFastMessage.h: Removed.
  13995. * src/HaveNoneMessage.h: Removed.
  13996. * src/SimplePeerMessage.h: Removed.
  13997. * src/HaveAllMessage.h: Removed.
  13998. * src/BitfieldMessage.h: Removed.
  13999. * src/PeerMessageFactory.h: Removed.
  14000. * src/NotInterestedMessage.h: Removed.
  14001. * src/ChokeMessage.h: Removed.
  14002. * src/PeerMessage.h: Removed.
  14003. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14004. To know root cause of exception:
  14005. * src/Exception.h
  14006. (cause): New variable.
  14007. (Exception): Added a parameter.
  14008. (getMsg): Return const reference to msg.
  14009. (getCause): New function.
  14010. * src/DlRetryEx.h
  14011. (DlRetryEx): Added a parameter 'cause'.
  14012. Added an overloaded constructor.
  14013. (DlAbortEx): Added a parameter 'cause'.
  14014. Added an overloaded constructor.
  14015. * src/SimpleLogger.cc
  14016. (writeLog): Log nested exception messages recursively.
  14017. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14018. * src/DefaultBtProgressInfoFile.cc
  14019. (load): Fixed memory leak when the infohash doesn't match.
  14020. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14021. * src/DefaultPeerStorage.cc
  14022. (calculateStat): Simplified the code by combining 2 loops into 1.
  14023. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14024. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  14025. for BitTorrent download:
  14026. * src/PeerAbstractCommand.cc
  14027. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  14028. * src/main.cc:
  14029. (timeoutSpecified): Removed.
  14030. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  14031. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  14032. * src/TorrentRequestInfo.cc
  14033. (timeoutSpecified): Removed.
  14034. (torrentHandler): Removed timeoutSpecified and the adjustment of
  14035. timeout value.
  14036. * src/prefs.h
  14037. (PREF_BT_TIMEOUT): New definition.
  14038. Delete unused variables:
  14039. * src/TorrentRequestInfo.cc
  14040. (requestInfo): Removed.
  14041. Move setSignalHander to Util::setGlobalSignalHandler:
  14042. * src/TorrentRequestInfo.cc:
  14043. setSignalHander -> Util::setGlobalSignalHandler
  14044. * src/main.cc
  14045. (setSignalHander): Removed.
  14046. (main): setSignalHander -> Util::setGlobalSignalHandler
  14047. * src/Util.h
  14048. (setGlobalSignalHandler): New function.
  14049. * src/Util.cc
  14050. (setGlobalSignalHandler): New function.
  14051. * src/UrlRequestInfo.cc:
  14052. setSignalHander -> Util::setGlobalSignalHandler
  14053. Reset peer status in order to exit gracefully:
  14054. * src/PeerAbstractCommand.cc
  14055. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  14056. To fix the bug that causes the number of bytes uploaded is not saved
  14057. to .aria2 file:
  14058. * src/DefaultPeerStorage.h
  14059. (removedPeerSessionDownloadLength): New variable.
  14060. (removedPeerSessionUploadLength): New variable.
  14061. * src/DefaultPeerStorage.cc
  14062. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  14063. removedPeerSessionUploadLength(0).
  14064. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  14065. through all peers, and then add removedPeerSessionDownloadLength(
  14066. removedPeerSessionUploadLength) to it.
  14067. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  14068. (to) the peer to removedPeerSessionDownloadLength
  14069. (removedPeerSessionUploadLength).
  14070. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14071. To add Metalink location option:
  14072. * src/MetalinkRequestInfo.cc
  14073. (execute): Call MetalinkEntry::setLocationPreference()
  14074. * src/main.cc
  14075. (showUsage): Added the help message for --metalink-location option.
  14076. (main): Added --metalink-location option.
  14077. * src/prefs.h
  14078. (PREF_METALINK_LOCATION): New definition.
  14079. * src/MetalinkEntry.cc
  14080. (AddLocationPreference): New function object.
  14081. (setLocationPreference): New function.
  14082. * src/Xml2MetalinkProcessor.cc
  14083. (getResource): Set location attribute to MetalinkResource
  14084. To show URLs to download
  14085. * src/UrlRequestInfo.h
  14086. (printUrls): New function.
  14087. To add multiple <file> Metalink support:
  14088. * src/MetalinkEntry.h
  14089. (MetalinkResources): Removed.
  14090. (setLocationPreference): New function.
  14091. (MetalinkEntryHandle): New type definition.
  14092. (MetalinkEntries): New type definition.
  14093. * src/Xml2MetalinkProcessor.h
  14094. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14095. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14096. (parseFile): Metalinker* -> MetalinkerHandle
  14097. * src/UrlRequestInfo.h
  14098. (execute): RequestInfo* -> RequestInfos
  14099. * src/MetalinkRequestInfo.cc
  14100. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  14101. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  14102. (execute): RequestInfo* -> RequestInfos
  14103. Added multiple <file> support. Print filename when it is queued.
  14104. * src/MetalinkRequestInfo.h
  14105. (execute): RequestInfo* -> RequestInfos
  14106. (getDownloadEngine): Removed.
  14107. * src/RequestInfo.h
  14108. (RequestInfoHandle): New type definition.
  14109. (RequestInfos): New type definition.
  14110. (execute): RequestInfo* -> RequestInfos
  14111. (getDownloadEngine): Removed.
  14112. * src/MetalinkResource.h
  14113. (MetalinkResourceHandle): New type definition.
  14114. (MetalinkResources): New type definition.
  14115. * src/MetalinkEntry.cc
  14116. (~MetalinkEntry): Removed the deletion of the elements of resources,
  14117. because the element is now of type MetalinkResourceHandle.
  14118. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  14119. (Supported): MetalinkResource* -> MetalinkResourceHandle
  14120. (dropUnsupportedResource): Removed the deletion of the elements of
  14121. resources because the element is now of type MetalinkResourceHandle.
  14122. * src/Xml2MetalinkProcessor.cc
  14123. (parseFile): Metalinker* -> MetalinkerHandle
  14124. MetalinkEntry* -> MetalinkEntryHandle
  14125. Removed try-catch block.
  14126. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  14127. MetalinkResource* -> MetalinkResourceHandle
  14128. Removed try-catch block.
  14129. (getResource): MetalinkResource* -> MetalinkResourceHandle
  14130. Free result by using xmlXPathFreeObject()
  14131. * src/Metalinker.cc
  14132. (~Metalinker): Removed the deletion of entries.
  14133. MetalinkEntry* -> MetalinkEntryHandle
  14134. (queryEntry): Add multiple <file> Metalink support.
  14135. * src/Metalinker.h
  14136. (MetalinkEntries): Removed.
  14137. (queryEntry): MetalinkEntry* -> MetalinkEntries
  14138. * src/MetalinkProcessor.h
  14139. (parseFile): Metalinker* -> MetalinkerHandle
  14140. Bug fixes:
  14141. * src/PeerChokeCommand.cc
  14142. (execute): cat01->cat02
  14143. * src/DefaultPieceStorage.cc
  14144. (DefaultPieceStorage): Added diskAdaptor(0)
  14145. * src/TrackerWatcherComand.cc:
  14146. (execute): Use btAnnounce->noMoreAnnounce()
  14147. to determin whether the function returns true or not.
  14148. * src/TrackerUpdateCommand.cc:
  14149. (execute): Use btAnnounce->noMoreAnnounce()
  14150. to determin whether the function returns true or not.
  14151. * src/FtpConnection.cc
  14152. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  14153. This is the fix of the busy loop bug.
  14154. * src/DownloadCommand.cc
  14155. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  14156. cached PeerStat.
  14157. The value of "name" entry in torrent file is now set by
  14158. *DiskAdaptor::setTopDir(...) methods.
  14159. * src/MultiDiskAdaptor.h
  14160. (topDir): New variable.
  14161. (setTopDir): New function.
  14162. (getTopDir): New function.
  14163. * src/MultiDiskAdaptor.cc
  14164. (getFilePath): Concat storDir, "/" and topDir.
  14165. (mkdir): Use getFilePath() to get the directory path for output.
  14166. * src/DefaultPieceStorage.cc
  14167. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  14168. CopyDiskAdaptor.
  14169. * src/CopyDiskAdaptor.h
  14170. (topDir): New variable.
  14171. (setTopDir): New function.
  14172. (getTopDir): New function.
  14173. * src/CopyDiskAdaptor.cc
  14174. (fixFilename): Updated.
  14175. Misc
  14176. * src/UrlRequestInfo.h
  14177. (e): Removed.
  14178. (UrlRequestInfo): Removed e.
  14179. (getDownloadEngine): Removed.
  14180. * src/UrlRequestInfo.cc
  14181. (handler): Rewritten.
  14182. (printUrls): New function.
  14183. (execute): Call printUrls().
  14184. * src/HandshakeMessage.cc
  14185. (check): peerinteraction->getBtContext() -> btContext
  14186. * src/PeerInteraction.h
  14187. (getBtContext): Removed.
  14188. * src/TorrentRequestInfo.h
  14189. (execute): RequestInfo* -> RequestInfos
  14190. (getDownloadEngine): Removed.
  14191. * src/TorrentRequestInfo.cc
  14192. (haltRequested): Removed.
  14193. (btHaltRequested): New variable.
  14194. (torrentHandler): haltRequested -> btHaltRequested
  14195. (execute): RequestInfo* -> RequestInfos
  14196. * src/TorrentConsoleDownloadEngine.cc
  14197. (afterEachIteration): haltRequested -> btHaltRequested.
  14198. * src/ConsoleDownloadEngine.h
  14199. (initStatistics): Added virtual.
  14200. (calculateStatistics): Added virtual.
  14201. (onEndOfRun): Added virtual.
  14202. (afterEachIteration): Added virtual.
  14203. * src/ConsoleDownloadEngine.cc
  14204. (haltRequested): New variable.
  14205. (afterEachIteration): New function.
  14206. * src/main.cc
  14207. (requestInfo): Removed.
  14208. * src/SegmentMan.cc
  14209. (findSlowerSegmentEntry): Refactored.
  14210. * Release 0.9.0
  14211. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14212. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  14213. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  14214. * src/TorrentMan.h: Removed.
  14215. * src/TorrentMan.cc: Removed.
  14216. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  14217. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  14218. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  14219. * src/PeerAbstractCommand.cc: Use btRuntime.
  14220. * src/BtContextAwareCommand.h: New class.
  14221. * src/FileEntry.h: Added accessor methods for following variables.
  14222. (path): Made private.
  14223. (length): Made private.
  14224. (offset): Made private.
  14225. (extracted): Made private.
  14226. (requested): Made private.
  14227. (FileEntries): New definition.
  14228. (FileEntryHandle): New definition.
  14229. * src/FileEntry.cc: New file.
  14230. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  14231. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  14232. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  14233. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  14234. * src/PieceStorage.h: New file.
  14235. * src/PeerInteractionCommand.h: Use btContext.
  14236. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  14237. btRuntime.
  14238. * src/DefaultBtProgressInfoFile.h: New file.
  14239. * src/DefaultBtProgressInfoFile.cc: New file.
  14240. * src/File.cc
  14241. (Util.h): New include.
  14242. (mkdirs): New function.
  14243. * src/MultiDiskAdaptor.h
  14244. (mkdir): New function.
  14245. * src/PeerListProcessor.h
  14246. (Peers): Removed.
  14247. * src/PeerInteraction.h
  14248. (torrentMan): Removed.
  14249. (btContext): New variable.
  14250. (peerStorage): New variable.
  14251. (pieceStorage): New variable.
  14252. (btAnnounce): New variable.
  14253. (getTorrentMan): Removed.
  14254. (getBtContext): New function.
  14255. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  14256. btAnnounce.
  14257. * src/HandshakeMessage.h
  14258. (TorrentMan.h): Removed.
  14259. * src/HandshakeMessage.cc: Use btContext.
  14260. * src/DefaultBtAnnounce.cc: New file.
  14261. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  14262. * src/DefaultPieceStorage.cc: New file.
  14263. * src/DefaultBtContext.h: New file.
  14264. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  14265. Use the accessor methods of FileEntry.
  14266. * src/CookieBox.cc: Updated to use Util::slice().
  14267. * src/PieceMessage.cc: Use btContext, pieceStorage.
  14268. * src/common.h (SharedHandle.h): New include.
  14269. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  14270. pieceStorage.
  14271. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  14272. * src/DiskAdaptor.h
  14273. (topDir): Removed.
  14274. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  14275. (setTopDir): Removed.
  14276. (getTopDir): Removed.
  14277. * src/BtContext.h: New file.
  14278. * src/DefaultPeerStorage.h: New file.
  14279. * src/PieceMessage.h (TorrentMan.h): Removed.
  14280. * src/RequestMessage.h (TorrentMan.h): Removed.
  14281. * src/TorrentDownloadEngine.h
  14282. (uploadLength): New variable.
  14283. (btContext): New variable.
  14284. (btRuntime): New variable.
  14285. (pieceStorage): New variable.
  14286. (peerStorage): New variable.
  14287. (btAnnounce): New variable.
  14288. (btProgressInfoFile): New variable.
  14289. (torrentMan): Removed.
  14290. (setBtContext): New function.
  14291. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  14292. peerStorage, btAnnounce, btProgressInfoFile.
  14293. * src/Piece.h
  14294. (toString): New function.
  14295. (Pieces): New type definition.
  14296. * src/Peer.h
  14297. (active): New variable.
  14298. (Peer): Added active.
  14299. (activate): Set active to true.
  14300. (deactivate): Set active to false.
  14301. (isActive): New function.
  14302. (Peers): New type definition.
  14303. * src/DirectDiskAdaptor.cc
  14304. (getFilePath): Use the accessor methods of FileEntry.
  14305. * src/TorrentConsoleDownloadEngine.h
  14306. (afterEachIteration): New function.
  14307. * src/TorrentConsoleDownloadEngine.cc
  14308. (haltRequested): New variable.
  14309. (sendStatistics): Use pieceStorage, btRuntime.
  14310. (afterEachIteration): New function.
  14311. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  14312. * src/Directry.h
  14313. (Directory): New function.
  14314. (DirectoryHandle): New type definition.
  14315. * src/BtProgressInfoFile.h: New file.
  14316. * src/RequestMessage.cc: Use pieceStorage.
  14317. * src/BtRuntime.h: New file.
  14318. * src/DefaultBtContext.cc: New file.
  14319. * src/BitfieldMan.h
  14320. (getCompletedLength): New function(private).
  14321. (getCompletedLength): New function.
  14322. (getFilteredCompletedLength): New function.
  14323. * src/BitfieldMan.h
  14324. (getCompletedLength): New function(private).
  14325. (getCompletedLength): New function.
  14326. (getFilteredCompletedLength): New function.
  14327. * src/MultiDiskAdaptor.cc
  14328. (mkdir): New function.
  14329. (openFile): Call mkdir().
  14330. (initAndOpenFile): Call mkdir().
  14331. * src/CancelMessage.h
  14332. (TorrentMan.h): Removed.
  14333. * src/RejectMessage.h
  14334. (TorrentMan.h): Removed.
  14335. * src/DownloadEngineFactory.cc
  14336. (DefaultPieceStorage.h): New include.
  14337. (DefaultPeerStorage.h): New include.
  14338. (DefaultBtAnnounce.h): New include.
  14339. (DefaultBtProgressInfoFile.h): New include.
  14340. (newTorrentConsoleEngine): Rewritten.
  14341. * src/ShareRatioSeedCriteria.h
  14342. (torrentMan): Removed.
  14343. (btContext): New variable.
  14344. (peerStorage): New variable.
  14345. (btRuntime): New variable.
  14346. (evaluate): Use btContext, btRuntime, peerStorage.
  14347. * src/AnnounceTier.h: New file.
  14348. * src/BtAnnounce.h: New file.
  14349. * src/BtRegistry.h: New file.
  14350. * src/PeerInitiateConnectionCommand.h: Added btContext.
  14351. * src/PeerConnection.h (TorrentMan.h): Removed.
  14352. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  14353. * src/Util.h
  14354. (slice): Added an argument.
  14355. * src/Util.cc
  14356. (slice): Added an argument to control whether trim is made or not.
  14357. * src/PeerStorage.h: New file.
  14358. * src/BtRegistry.cc: New file.
  14359. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14360. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14361. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14362. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14363. * src/TorrentRequestInfo.h
  14364. (e): Removed.
  14365. (showFileEntry): Added an argument.
  14366. (getDownloadEngine): Return 0.
  14367. * src/DefaultBtAnnounce.h: New file.
  14368. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14369. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14370. * src/PeerMessageFactory.h
  14371. (btContext): New variable.
  14372. (pieceStorage): New variable.
  14373. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14374. btAnnounce.
  14375. * src/DiskAdaptor.cc
  14376. (DiskAdaptor): Removed topDir.
  14377. (~DiskAdaptor): Removed topDir.
  14378. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14379. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14380. * src/File.h (mkdirs): New function.
  14381. * src/DefaultPeerStorage): New file.
  14382. * src/DownloadEngineFactory.h
  14383. (newTorrentConsoleEngine): Use btContext.
  14384. * src/BtContextAwareCommand.cc: New file.
  14385. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14386. * src/PeerMessage.h
  14387. (btContext): New variable.
  14388. (peerStorage): New variable.
  14389. (pieceStorage): New variable.
  14390. (setBtContext): New function.
  14391. * src/Directry.cc
  14392. (Directory): New function.
  14393. (createDir): Do nothing if name.size() == 0.
  14394. * src/AnnounceList.h
  14395. (AnnounceTier): Removed.
  14396. (AnnounceTiers): Removed.
  14397. * src/DefaultPieceStorage.h: New file.
  14398. * src/Piece.cc (toString): New function.
  14399. To fix typo:
  14400. * src/main.cc (showVersion): Fixed typo.
  14401. To fix compile warning:
  14402. * src/DelegatingPeerListProcessor.cc
  14403. (canHandle): Added "return false".
  14404. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14405. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14406. make the process of announce request testable.
  14407. * src/TrackerWatcherCommand.h
  14408. (TimeA2.h): Removed.
  14409. (interval): Removed.
  14410. (checkPoint): Removed.
  14411. (createRequestCommand): Added an argument 'url'.
  14412. (TrackerWatherCommand): Removed interval.
  14413. (createCommand): New function.
  14414. * src/DownloadEngineFactory.cc
  14415. (newTorrentConsoleEngine): Updated according to the changes in
  14416. TrackerWatherCommand.
  14417. * src/TorrentMan.cc
  14418. (DelegatingPeerListProcessor.h): New includes.
  14419. (TorrentMan): Added the initialization of announceInterval.
  14420. (isStoppedAnnounceReady): New function.
  14421. (isCompletedAnnounceReady): New function.
  14422. (isDefaultAnnounceReady): New function.
  14423. (isAnnounceReady): New function.
  14424. (getAnnounceUrl): New function.
  14425. (announceStart): New function.
  14426. (announceFailure): New function.
  14427. (announceSuccess): New function.
  14428. (isAllAnnounceFailed): New function.
  14429. (resetAnnounce): New function.
  14430. (processAnnounceResponse): New function.
  14431. (needMorePeerConnection): New function.
  14432. (noMoreAnnounce): New function.
  14433. * src/TrackerUpdateCommand.h
  14434. (getTrackerResponse): int->size_t
  14435. * src/TorrentMan.h
  14436. (isStoppedAnnounceReady): New function.
  14437. (isCompletedAnnounceReady): New function.
  14438. (isDefaultAnnounceReady): New function.
  14439. (announceInterval): New variable.
  14440. (isAnnounceReady): New function.
  14441. (getAnnounceUrl): New function.
  14442. (announceStart): New function.
  14443. (announceFailure): New function.
  14444. (announceSuccess): New function.
  14445. (isAllAnnounceFailed): New function.
  14446. (resetAnnounce): New function.
  14447. (processAnnounceResponse): New function.
  14448. (needMorePeerConnection): New function.
  14449. (noMoreAnnounce): New function.
  14450. * src/TrackerWatcherCommand.cc
  14451. (TrackerWatherCommand): Removed interval and checkPoint.
  14452. (execute): Rewritten.
  14453. (createCommand): New function.
  14454. (createRequestCommand): Rewritten.
  14455. * src/TrackerUpdateCommand.cc
  14456. (MetaFileUtil.h): Removed.
  14457. (DelegatingPeerListProcessor.h): Removed.
  14458. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14459. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14460. Request -> RequestHandle:
  14461. * src/HttpResponseCommand.h: Request->RequestHandle
  14462. * src/AbstractCommand.cc: Request->RequestHandle
  14463. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14464. * src/HttpRequestCommand.cc: Request->RequestHandle
  14465. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14466. * src/AbstractCommand.h: Request->RequestHandle
  14467. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14468. * src/HttpResponseCommand.cc: Request->RequestHandle
  14469. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14470. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14471. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14472. * src/HttpConnection.h: Request->RequestHandle
  14473. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14474. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14475. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14476. * src/DownloadCommand.h: Request->RequestHandle
  14477. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14478. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14479. * src/HttpRequestCommand.h: Request->RequestHandle
  14480. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14481. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14482. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14483. * src/HttpDownloadCommand.h: Request->RequestHandle
  14484. * src/FtpConnection.cc: Request->RequestHandle
  14485. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14486. * src/UrlRequestInfo.cc: Request->RequestHandle
  14487. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14488. * src/HttpConnection.h: Request->RequestHandle
  14489. * src/DownloadCommand.cc: Request->RequestHandle
  14490. * src/FtpConnection.h: Request->RequestHandle
  14491. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14492. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14493. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14494. * src/Request.h
  14495. (SharedHandle.h): New include.
  14496. (RequestHandle): New type definition.
  14497. (Requests): Redefined.
  14498. To add MULTITRACKER support:
  14499. * src/TrackerWatcherCommand.h
  14500. (createRequestCommand): New function.
  14501. * src/DownloadEngineFactory.cc
  14502. (newTorrentConsoleEngine): Removed req.
  14503. * src/prefs.h
  14504. (PREF_TRACKER_MAX_TRIES): New definition.
  14505. * src/TorrentMan.cc
  14506. (TorrentMan): Removed req. Added trackerNumTry.
  14507. (~TorrentMan): Removed req.
  14508. (setupInternal1): Added announceList.
  14509. * src/TorrentRequestInfo.cc
  14510. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14511. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14512. * src/main.cc
  14513. (main): Added PREF_TRACKER_MAX_TRIES.
  14514. * src/TorrentMan.h
  14515. (Request.h): Removed.
  14516. (AnnounceList.h): New include.
  14517. (trackerNumTry): New variable.
  14518. (req): Removed.
  14519. (announceList): New variable.
  14520. * src/TrackerWatcherCommand.cc
  14521. (execute): Rewritten.
  14522. (createRequestCommand): New function.
  14523. * src/TrackerUpdateCommand.cc
  14524. (execute): Updated with the use of AnnounceList.
  14525. * src/AnnounceList.cc: New class.
  14526. * src/AnnounceList.h: New class.
  14527. To fix typo:
  14528. * src/prefs.h
  14529. (PREF_MAX_TRIES): max_try->max_tries
  14530. To not to decode "+" as space in URL decode:
  14531. * src/Util.cc
  14532. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14533. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14534. To add timeout to async name resolution:
  14535. * src/AbstractCommand.h
  14536. (nameResolveFinished): New function. This is not elegant way. It needs
  14537. to be more refined.
  14538. (nameResolverCheck): New variable.
  14539. * src/AbstractCommand.cc
  14540. (AbstractCommand): Added nameResolverCheck.
  14541. (execute): Added the check whether the name resolution has finished.
  14542. (setNameResolverCheck): Set nameResolverCheck to true.
  14543. (disableNameResolverCheck): Set nameResolverCheck to false.
  14544. (nameResolverFinished): New function.
  14545. * src/FtpInitiateConnectionCommand.h
  14546. (nameResolverFinished): New function.
  14547. * src/FtpInitiateConnectionCommand.cc
  14548. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14549. * src/HttpInitiateConnectionCommand.h
  14550. (nameResolverFinished): New function.
  14551. * src/HttpInitiateConnectionCommand.cc
  14552. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14553. * src/prefs.h
  14554. (PREF_DNS_TIMEOUT): New definition.
  14555. * src/main.cc
  14556. (main): Added PREF_DNS_TIMEOUT.
  14557. To add the support for a non-compact response from a tracker:
  14558. * src/PeerListProcessor.h: New class.
  14559. * src/DefaultPeerListProcessor.h: New class.
  14560. * src/DefaultPeerListProcessor.cc: New class.
  14561. * src/CompactPeerListProcessor.h: New class.
  14562. * src/CompactPeerListProcessor.cc: New class.
  14563. * src/DelegatingPeerListProcessor.h: New class.
  14564. * src/DelegatingPeerListProcessor.cc: New class.
  14565. * src/TorrentMan.cc
  14566. (addPeer): New function(overload).
  14567. (addPeer): Delete unused peers only when new peer is added.
  14568. * src/TorrentMan.h
  14569. (PeerListProcessor.h): Included.
  14570. (Peers): Removed.
  14571. (addPeer): New function(overload).
  14572. * src/TrackerUpdateCommand.cc
  14573. (netinet/in.h): Removed.
  14574. (DelegatingPeerListProcessor.h): Included.
  14575. (execute): Updated to use DelegatingPeerListProcessor.
  14576. To fix the memory leak in TorrentMan::peers:
  14577. * src/PeerAbstractCommand.cc
  14578. (onAbort): Added peer->resetStatus().
  14579. * src/Peer.h
  14580. (resetStatus): Made public.
  14581. To improve the precision of the speed calculation:
  14582. * src/SpeedCalc.h
  14583. (nextInterval): New variable.
  14584. * src/SpeedCalc.cc
  14585. (reset): Added nextInterval.
  14586. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14587. (changeSw): Set nextInterval to 15 seconds relative to the current
  14588. instant time.
  14589. * src/main.cc
  14590. (showVersion): Updated.
  14591. (showUsage): Updated.
  14592. * Release 0.8.1
  14593. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14594. * src/main.cc
  14595. (showUsage): Commented out --min-segment-size option.
  14596. (main): Commented out --min-segment-size option.
  14597. * Release 0.8.0
  14598. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14599. * src/*.{h,cc}:
  14600. Added an exception to the license which allows linking with OpenSSL.
  14601. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14602. * src/AbstractCommand.cc
  14603. (execute): Check whether the download has finished before checking
  14604. socket status.
  14605. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14606. Do not exit even if no segment is available.
  14607. * src/prefs.h
  14608. (PREF_STARTUP_IDLE_TIME): New definition.
  14609. * src/PeerInteractionCommand.cc
  14610. (executeInternal): Removed max speed limit. Because it performs bad.
  14611. (receiveMessages): Added max speed limit. This was better than above,
  14612. but still a little bit to be desired. Sometimes the download speed
  14613. became much faster than I specified.
  14614. * src/SpeedCalc.h
  14615. (start): New variable.
  14616. (accumulatedLength): New variable.
  14617. (getAvgSpeed): New function.
  14618. * src/SpeedCalc.cc
  14619. (reset): Added start, accumulatedLength.
  14620. (update): Added calculation of an average speed.
  14621. (getAvgSpeed): New function.
  14622. * src/DownloadCommand.h
  14623. (sw): Removed.
  14624. * src/main.cc
  14625. (main): Added PREF_STARTUP_IDLE_TIME.
  14626. * src/PeerStat.h
  14627. (STATUS): Added REQUEST_IDLE.
  14628. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14629. (getAvgDownloadSpeed): New function
  14630. (requestIdle): New function.
  14631. * src/SegmentMan.h
  14632. (SegmentEntryHandle): New type definition.
  14633. (SegmentEntries): Now holds SegmentEntryHandle.
  14634. (findSlowerSegmentEntry): New funtion.
  14635. * src/SegmentMan.cc
  14636. (save): Updated according to the changes in SegmentEntries.
  14637. (read): Updated according to the changes in SegmentEntries.
  14638. (FindSegmentEntryByIndex): Updated according to the changes in
  14639. SegmentEntries.
  14640. (FindSegmentEntryByCuid): Updated according to the changes in
  14641. SegmentEntries.
  14642. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14643. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14644. Renamed uitr as itr.
  14645. (findSlowerSegmentEntry): New function.
  14646. (getSegment): Updated according to the changes in SegmentEntries.
  14647. Added the feature that cancels the segment with slow server and fast
  14648. one takes it over.
  14649. (cancelSegment): Updated according to the changes in SegmentEntries.
  14650. (getDownloadLength): Updated according to the changes in
  14651. SegmentEntries.
  14652. (init): Assigned 0 to bitfield after deleting it.
  14653. * src/DownloadCommand.cc
  14654. (STARTUP_IDLE_TIME): Removed.
  14655. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14656. * src/PeerChokeCommand.cc
  14657. (optUnchokingPeer): Updated according to the changes in Peer.
  14658. (ResetDelta): Removed.
  14659. (UploadFaster): Updated according to the changes in Peer.
  14660. (DownloadFaster): Updated according to the changes in Peer.
  14661. (execute): I clarify the meaning of "upload" and "download" here.
  14662. "upload" means the transfer from localhost to remote host.
  14663. "download" means the transfer from remote host to localhost.
  14664. Based on this rule, I swapped orderByUploadRate and
  14665. orderByDownloadRate.
  14666. * src/PeerInteractionCommand.cc
  14667. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14668. (executeInternal): Removed the argument of
  14669. peerInteraction->sendMessages().
  14670. (receiveMessages): Rewritten download speed limit.
  14671. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14672. * src/HttpResponseCommand.cc
  14673. (handleDefaultEncoding): If file size is unknown in torrent request,
  14674. do not call segmentMan->initBitfield() here.
  14675. Disabled persistent connection feature in torrent request.
  14676. * src/UrlRequestInfo.h
  14677. (UrlRequestInfo): Removed const qualifier from option.
  14678. * src/TorrentMan.h
  14679. (TransferStat): New class.
  14680. (deltaDownloadLength): Removed.
  14681. (deltaUploadLength): Removed.
  14682. (addDeltaDownloadLength): Removed.
  14683. (getDeltaDownloadLength): Removed.
  14684. (resetDeltaDownloadLength): Removed.
  14685. (addDeltaUploadLength): Removed.
  14686. (getDeltaUploadLength): Removed.
  14687. (resetDeltaUploadLength): Removed.
  14688. (addActivePeer): Added peer->activate().
  14689. (deleteActivePeer): Added peer->deactivate().
  14690. (calculateStat): New function.
  14691. * src/TorrentMan.cc
  14692. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14693. (calculateStat): New function.
  14694. * src/PeerInteraction.h
  14695. (uploadLimit): Removed.
  14696. (option): New variable.
  14697. (setUploadLimit): Removed.
  14698. (getUploadSpeed): Removed.
  14699. (sendMessages): Removed the argument "currentUploadSpeed".
  14700. * src/PeerInteraction.cc
  14701. (prefs.h): Included.
  14702. (PeerInteraction): Removed uploadLimit. Added option.
  14703. (sendMessages): Rewritten upload speed limit.
  14704. (sendHandshake): Removed the argument from sendMessages().
  14705. (sendBitfield): Removed the argument from sendMessages().
  14706. * src/PeerAbstractCommand.cc
  14707. (execute): Commented out the portion of upload limit.
  14708. (onAbort): Removed peer->resetStatus().
  14709. * src/TorrentRequestInfo.cc
  14710. (timeoutSpecified): Declared extern.
  14711. (execute): Set timeout to 180 if timeout is not specified by.
  14712. command-line.
  14713. * src/PieceMessage.cc
  14714. (receivedAction): Added peer->updateDownloadLength().
  14715. Removed peer->addPeerUpload().
  14716. Removed torrentMan->addDeltaDownloadLength().
  14717. (send): Added peer->updateUploadLength().
  14718. Removed peer->addPeerDownload().
  14719. Removed torrentMan->addDeltaUploadLength().
  14720. * src/main.cc
  14721. (timeoutSpecified): New variable.
  14722. (main): Set timeoutSpecified to false.
  14723. If the command-line option "--upload-limit" is specified, then
  14724. timeoutSpecified is set to true. This option will remain in the next
  14725. release, but be deprecated in the future release.
  14726. * src/TorrentRequestInfo.h
  14727. (TorrentRequestInfo): Removed const qualifier from op.
  14728. * src/PeerStat.h
  14729. (uploadSpeed): New variable.
  14730. (PeerStat): Added default value to cuid.
  14731. (calculateUploadSpeed): New function.
  14732. (updateUploadLength): New function.
  14733. (getMaxUploadSpeed): New function.
  14734. (getAvgUploadSpeed): New function.
  14735. (reset): Added uploadSpeed. Set status to IDLE.
  14736. * src/TorrentDownloadEngine.h
  14737. (cp): Declared as Time.
  14738. (sessionDownloadLengthArray): Removed.
  14739. (sessionUploadLengthArray): Removed.
  14740. (currentCp): Removed.
  14741. (lastCalcStat): New variable
  14742. (lastElapsed): Removed.
  14743. (sessionDownloadLength): Removed.
  14744. (calculateStat): New function.
  14745. * src/TorrentDownloadEngine.cc
  14746. (initStatistics): Removed lastElapsed, cp[],
  14747. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14748. currentCp, sessionDownloadLength.
  14749. Added cp.reset() and lastCalcStat.reset().
  14750. (calculateSpeed): Changed the name of the argument.
  14751. (calculateStatistics): Rewritten.
  14752. (calculateStat): New function.
  14753. * src/Peer.h
  14754. (PeerStat.h): Included.
  14755. (peerUpload): Removed.
  14756. (peerDownload): Removed.
  14757. (peerStat): New variable.
  14758. (sessionUploadLength): New variable.
  14759. (sessionDownloadLength): New variable.
  14760. (deltaUpload): Removed.
  14761. (deltaDownload): Removed.
  14762. (resetStatus): Made private.
  14763. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14764. Removed peerUpload, peerDownload.
  14765. (updateUploadLength): New function.
  14766. (addDeltaUpload): Removed.
  14767. (updateDownloadLength): New function.
  14768. (resetDeltaUpload): Removed.
  14769. (getDeltaUpload): Removed.
  14770. (addDeltaDownload): Removed.
  14771. (calculateUploadSpeed): New function.
  14772. (resetDeltaDownload): Removed.
  14773. (getDeltaDownload): Removed.
  14774. (calculateDownloadSpeed): New function.
  14775. (getSessionUploadLength): New function.
  14776. (getSessionDownloadLength): New function.
  14777. (activate): New function.
  14778. (deactivate): New function.
  14779. (addPeerUpload): Removed.
  14780. (setPeerUpload): Removed.
  14781. (getPeerUpload): Removed.
  14782. (addPeerDownload): Removed.
  14783. (setPeerDownload): Removed.
  14784. (getPeerDownload): Removed.
  14785. * src/Peer.cc
  14786. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14787. * src/MetalinkRequestInfo.h
  14788. (MetalinkRequestInfo): Removed const qualifier from op.
  14789. * src/RequestInfo.h
  14790. (op): Removed const qualifier.
  14791. (RequestInfo): Removed const qualifier from op.
  14792. * src/prefs.h
  14793. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14794. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14795. * src/PeerInteractionCommand.cc
  14796. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14797. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14798. * src/PeerInteraction.cc
  14799. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14800. * src/main.cc
  14801. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14802. Added the description of "--max-download-limit" option.
  14803. Removed the description of "--upload-limit" option.
  14804. Added the description of "--max-upload-limit" option.
  14805. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14806. Added "--max-download-limit" option and "--max-upload-limit" option.
  14807. Added the warning message if "--upload-limit" option is used.
  14808. * src/DownloadCommand.cc
  14809. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14810. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14811. To rewrite segment download mechanism for HTTP/FTP download.
  14812. Use BitfieldMan to manage segment download.
  14813. * src/HttpResponseCommand.h
  14814. (executeInternal): Pass the reference of segment.
  14815. * src/AbstractCommand.cc
  14816. (prepareForRetry): Call segmentMan->cancelSegment here.
  14817. (onAbort): Call segmentMan->cancelSegment here.
  14818. * src/HttpDownloadCommand.cc
  14819. (prepareForNextSegment): New function.
  14820. * src/DownloadEngineFactory.cc
  14821. (newConsoleEngine): Removed splitter.
  14822. (newTorrentConsoleEngine): Removed splitter.
  14823. * src/Request.h
  14824. (segment): Renamed from seg.
  14825. * src/FtpInitiateConnectionCommand.h
  14826. (executeInternal): Pass the reference of segment.
  14827. * src/AbstractCommand.h
  14828. (executeInternal): Pass the reference of segment.
  14829. * src/pref.h
  14830. (PREF_SEGMENT_SIZE): New definition.
  14831. * src/HttpProxyRequestCommand.h
  14832. (executeInternal): Pass the reference of segment.
  14833. * src/HttpResponseCommand.cc
  14834. (checkResponse): Allowed status 206 when a request range starts 0.
  14835. (handleDefaultEncoding): Rewritten the code related to Segment.
  14836. (handleOtherEncoding): Rewritten the code related to Segment.
  14837. * src/SegmentMan.h
  14838. (SegmentEntry): New class.
  14839. (SegmentEntries): New type definition.
  14840. (bitfield): New variable.
  14841. (usedSegmentEntries): New variable.
  14842. (onNullBitfield): New function.
  14843. (checkoutSegment): New function.
  14844. (segments): Removed.
  14845. (splitter): Removed.
  14846. (unregisterId): Removed.
  14847. (getSegment): New function(overload)
  14848. (getDownloadedSize): Removed.
  14849. (cancelSegment): New function.
  14850. (completeSegment): New function.
  14851. (initBitfield): New function.
  14852. (hasSegment): New function.
  14853. (getDownloadLength): New function.
  14854. * src/BitfieldMan.h
  14855. (getStartIndex): New function.
  14856. (getEndIndex): New function.
  14857. (getMissingUnusedIndex): New function(overload).
  14858. (getSparseMissingUnusedIndex): New function.
  14859. * src/BitfieldMan.cc
  14860. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14861. (getMissingUnusedIndex): New function(overload).
  14862. (Range): New class.
  14863. (getStartIndex): New function.
  14864. (getEndIndex): New function.
  14865. (getSparseMissingUnusedIndex): New function.
  14866. (isBitSetInternal): Return false if the given index is less than 0.
  14867. * src/HttpInitiateConnectionCommand.h
  14868. (executeInternal): Pass the reference of segment.
  14869. * src/FtpNegotiateCommand.h
  14870. (executeInternal): Pass the reference of segment.
  14871. * src/FtpNegotiateCommand.cc
  14872. (recvSize): Initialize bitfield here.
  14873. * src/FtpTunnelResponseCommand.h
  14874. (executeInternal): Pass the reference of segment.
  14875. * src/HttpConnection.cc
  14876. (createRequest): Rewritten range header processing.
  14877. * src/DownloadCommand.h
  14878. (executeInternal): Pass the reference of segment.
  14879. (prepareForRetry): Removed.
  14880. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14881. function.
  14882. * src/main.cc
  14883. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14884. * src/SegmentMan.cc
  14885. (SegmentMan): Added bitfield. Removed splitter.
  14886. (~SegmentMan): Added bitfield. Removed splitter.
  14887. (unregisterId): Removed.
  14888. (getSegment): Rewritten.
  14889. (updateSegment): Rewritten.
  14890. (save): Rewritten.
  14891. (read): Rewritten.
  14892. (finished): Rewritten.
  14893. (getDownloadedSize): Removed.
  14894. (initBitfield): New function.
  14895. (FindSegmentEntryByIndex): New function object.
  14896. (FindSegmentEntryByCuid): New function object.
  14897. (checkoutSegment): New function.
  14898. (onNullBitfield): New function.
  14899. (getSegment): New function(overload).
  14900. (CancelSegment): New function object.
  14901. (cancelSegment): New function.
  14902. (completeSegment): New function.
  14903. (hasSegment): New function.
  14904. (getDownloadLength): New function.
  14905. * src/FtpInitiateConnectionCommand.cc
  14906. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14907. * src/Segment.h: Rewritten.
  14908. * src/Segment.cc (operator<<): New function.
  14909. * src/HttpDownloadCommand.h
  14910. (prepareForNextSegment): New function.
  14911. * src/Request.cc
  14912. (resetUrl): Made segment null.
  14913. * src/DownloadEngine.cc
  14914. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14915. * src/HttpProxyRequestCommand.h
  14916. (executeInternal): Pass the reference of segment.
  14917. * src/DownloadCommand.cc
  14918. (executeInternal): Rewritten the code related to Segment.
  14919. (prepareForRetry): Removed.
  14920. (prepareForNextSegment): Rewritten.
  14921. * src/FtpTunnelResponseCommand.h
  14922. (executeInternal): Pass the reference of segment.
  14923. To add HTTP 1.1 persistent connection support(experimental)
  14924. * src/HttpRequestCommand.cc
  14925. (executeInternal): Disable keep alive if it is disabled by
  14926. configuration.
  14927. * src/Request.h
  14928. (keepAlive): New variable.
  14929. (isKeepAlive): New function.
  14930. (setKeepAlive): New function.
  14931. * src/pref.h
  14932. (PREF_HTTP_KEEP_ALIVE): New definition.
  14933. * src/HttpResponseCommand.cc
  14934. (executeInternal): Check the remote server supports keep alive.
  14935. * src/HttpConnection.cc
  14936. (createRequest): Send "Connection: close" only if keep alive is
  14937. disabled.
  14938. * src/main.cc
  14939. (main):
  14940. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14941. To add max download speed limit:
  14942. * src/pref.h
  14943. (PREF_MAX_SPEED_LIMIT): New definition.
  14944. * src/PeerInteractionCommand.cc
  14945. (executeInternal): Added max download speed limit. Not tested yet.
  14946. * src/SegmentMan.h
  14947. (PeerStats): New type definition.
  14948. (peerStats): New variable.
  14949. (registerPeerStat): New function.
  14950. (FindPeerStat): New function object.
  14951. (getPeerStat): New function.
  14952. (calculateDownloadSpeed): New function.
  14953. * src/SpeedCalc.h: New class.
  14954. * src/SpeedCalc.cc: New class.
  14955. * src/main.cc
  14956. (main):
  14957. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14958. download speed is not restricted).
  14959. * src/PeerStat.h: New class.
  14960. * src/SegmentMan.cc
  14961. (registerPeerStat): New function.
  14962. (calculateDownloadSpeed): New function.
  14963. * src/DownloadCommand.cc
  14964. (STARTUP_IDLE_TIME): New definition.
  14965. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14966. downloadStart.
  14967. (~DownloadCommand): Call peerStat->downloadStop.
  14968. (executeInternal): Added download speed limitter. Rewritten lowest
  14969. speed limitter.
  14970. * src/HttpConnection.cc
  14971. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14972. * src/AbstractCommand.cc
  14973. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14974. Added hostname to the error message.
  14975. * src/ConsoleDownloadEngine.cc
  14976. (calculateStatistics): Initialize psize with dlSize.
  14977. * src/PieceMessage.cc
  14978. (receivedAction): Do not call peerInteraction->abortPiece here.
  14979. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14980. * src/BitfieldMan.h
  14981. (clearAllUseBit): New function.
  14982. (setAllUseBit): New function.
  14983. * src/BitfieldMan.cc
  14984. (clearAllBit): Do not clear useBitfield here.
  14985. (clearAllUseBit): New function.
  14986. (setAllUseBit): New function.
  14987. * src/Piece.cc
  14988. (clearAllBlock): Call bitfield->clearAllUseBit().
  14989. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14990. To make filename URL-decoded:
  14991. * src/HttpResponseCommand.h: Updated doc.
  14992. * src/HttpResponseCommand.cc
  14993. (determinFilename): Made filename URL-decoded.
  14994. * src/FtpInitiateConnectionCommand.cc
  14995. (executeInternal): Made filename URL-decoded.
  14996. * src/Util.h (urldecode): New function.
  14997. * src/Util.cc (urldecode): New function.
  14998. To fix a bug that caused assertion failure in ares_strerror:
  14999. * src/NameResolver.cc (callback): Fixed the bug.
  15000. * Release 0.7.3
  15001. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15002. To add --seed-time and --seed-ratio command-line option:
  15003. * src/Option.h (getAsDouble): New function.
  15004. * src/Option.cc (getAsDouble): New function.
  15005. * src/SeedCheckCommand.h: New class.
  15006. * src/SeedCheckCommand.cc: New class.
  15007. * src/DownloadEngineFactory.cc
  15008. (SeedCheckCommand.h): Included.
  15009. (UnionSeedCriteria.h): Included.
  15010. (TimeSeedCriteria.h): Included.
  15011. (ShareRatioSeedCriteria.h): Included.
  15012. (newTorrentConsoleEngine): Added the processing of seed option.
  15013. * src/SeedCriteria.h: New class.
  15014. * src/ShareRatioSeedCriteria.h: New class.
  15015. * src/TimeSeedCriteria.h: New class.
  15016. * src/UnionSeedCriteria.h: New class.
  15017. * src/prefs.h
  15018. (PREF_SEED_TIME): New definition.
  15019. (PREF_SEED_RATIO): New definition.
  15020. * src/main.cc
  15021. (showUsage): Added --seed-time and --seed-ratio option.
  15022. (main): Added --seed-time and --seed-ratio option.
  15023. Made default log file name "/dev/null".
  15024. * src/SharedHandle.h
  15025. (SharedHandle): Copy constructor. Made it assignable from the
  15026. SharedHandle of the subclasses.
  15027. (operator=): Made it assignable from the SharedHandle of the
  15028. subclasses.
  15029. (getRefCount): New function.
  15030. To add notice log level and the switch to write log to stdout. This
  15031. switch is configurable per log level.
  15032. * src/Logger.h
  15033. (notice): New function.
  15034. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  15035. constant.
  15036. * src/LogFactory.cc
  15037. (getInstance): The use of NullLogger was removed. A log message with
  15038. notice log level was made written to stdout along with log file.
  15039. * src/NullLogger.h
  15040. (notice): New function.
  15041. * src/SimpleLogger.h
  15042. (writeHeader): Added the 'file' argument.
  15043. (writeLog): Added the 'file' argument.
  15044. (writeFile): New function.
  15045. (stdoutField): New variable.
  15046. (SimpleLogger): Removed the default constructor.
  15047. (SimpleLogger): Made the default value of logfile 0.
  15048. (debug): Added 'virtual' keyword.
  15049. (info): Added 'virtual' keyword.
  15050. (warn): Added 'virtual' keyword.
  15051. (error): Added 'virtual' keyword.
  15052. (notice): New function.
  15053. (setStdout): New function.
  15054. * src/SimpleLogger.cc
  15055. (WRITE_LOG): Replaced writeLog with writeFile.
  15056. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  15057. (SimpleLogger): Removed the default constructor.
  15058. (setStdout): New function.
  15059. (writeLog): Added the handling of NOTICE log level.
  15060. (writeFile): New function.
  15061. (notice): New function.
  15062. * src/TorrentMan.h: Updated doc.
  15063. * src/BitfieldMan.h: Updated doc.
  15064. * src/TrackerWatcherCommand.cc
  15065. (execute): Return true if error occurred in the request to the tracker
  15066. and halt is requested.
  15067. * src/TrackerUpdateCommand.cc
  15068. (execute): Return true if error occurred in the request to the tracker
  15069. and halt is requested.
  15070. To call onDownloadComplete from TorrentMan::completePiece(), not from
  15071. DownloadEngine:
  15072. * src/TorrentConsoleDownloadEngine.h
  15073. (onSelectiveDownloadingCompletes): Removed.
  15074. * src/TorrentConsoleDownloadEngine.cc
  15075. (onSelectiveDownloadingCompletes): Removed.
  15076. * src/TorrentDownloadEngine.h
  15077. (onEndOfRun): Added 'virtual' keyword.
  15078. (afterEachIteration): Removed.
  15079. (onSelectiveDownloadingCompletes): Removed.
  15080. * src/TorrentDownloadEngine.cc
  15081. (onEndOfRun): Removed filenameFixed.
  15082. (afterEachIteration): Removed.
  15083. * src/TorrentMan.cc
  15084. (completePiece): Call onDownloadComplete here.
  15085. (onDownloadComplete): Added 2 log messages.
  15086. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15087. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  15088. * src/NameResolver.h: Added the prototype declaration of callback().
  15089. To support c-ares library:
  15090. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15091. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15092. * src/FtpInitiateConnectionCommand.h:
  15093. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15094. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15095. * src/HttpInitiateConnectionCommand.h:
  15096. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15097. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  15098. Added thes upport of c-ares's ares_strerror(the idea came from patch
  15099. #1542285 by tizianomueller)
  15100. * src/HttpInitiateConnectionCommand.cc:
  15101. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15102. * src/FtpInitiateConnectionCommand.cc:
  15103. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15104. * src/DownloadEngine.h:
  15105. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15106. * src/DownloadEngine.cc:
  15107. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  15108. To fix the bug that causes compilation failure with metalink-support
  15109. disabled(bug#1543587):
  15110. * src/main.cc: Fixed with the patch by tizianomueller.
  15111. * Release 0.7.2
  15112. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15113. * src/main.cc
  15114. (main): Added a message to inform users that aria2 is starting to
  15115. verify checksum.
  15116. * src/RequestInfo.cc
  15117. (printDownloadAbortMessage): Added a message to inform users that
  15118. transfer can be resumed.
  15119. * src/FeatureConfig.cc
  15120. (FEATURE_ASYNC_DNS): New definition.
  15121. (FeatureConfig): Added aysnc DNS entry.
  15122. To replace CommandUuid with Command* in SocketEntry and
  15123. NameResolverEntry:
  15124. * src/DownloadEngine.h
  15125. (CommandUuids): Removed.
  15126. (SocketEntry::commandUuid): Removed.
  15127. (SocketEntry::command): New variable.
  15128. (SocketEntry::SocketEntry): Updated.
  15129. (SocketEntry::operator==): Updated.
  15130. (NameResolverEntry::commandUuid): Removed.
  15131. (NameResolverEntry::command): New variable.
  15132. (NameResolverEntry::NameResolverEntry): Updated.
  15133. (NameResolverEntry::operator==): Updated.
  15134. (waitData): Changed the argument type.
  15135. (addSocketForReadCheck): Changed the argument type.
  15136. (deleteSocketForReadCheck): Changed the argument type.
  15137. (addSocketForWriteCheck): Changed the argument type.
  15138. (deleteSocketForWriteCheck): Changed the argument type.
  15139. (addNameResolverCheck): Changed the argument type.
  15140. (deleteNameResolverCheck): Changed the argument type.
  15141. * src/DownloadEngine.cc
  15142. (FindCommand): Removed.
  15143. (run): Removed activeUuid. Added activeCommands instead.
  15144. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  15145. (AccumulateActiveCommand): New function object.
  15146. (waitData): Use AccumulateActiveCommand.
  15147. (addSocketForReadCheck): Use Command instead of CommandUuid.
  15148. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  15149. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  15150. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  15151. (addNameResolverCheck): Use Command instead of CommandUuid.
  15152. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  15153. * src/AbstractCommand.cc
  15154. (disableReadCheckSocket): Updated according to the changes in
  15155. DownloadEngine.
  15156. (setReadCheckSocket): Updated according to the changes in
  15157. DownloadEngine.
  15158. (disableWriteCheckSocket): Updated according to the changes in
  15159. DownloadEngine.
  15160. (setWriteCheckSocket): Updated according to the changes in
  15161. DownloadEngine.
  15162. (setNameResolverCheck): Updated according to the changes in
  15163. DownloadEngine.
  15164. (disableNameResolverCheck): Updated according to the changes in
  15165. DownloadEngine.
  15166. * src/AbstractCommand.cc
  15167. (disableReadCheckSocket): Updated according to the changes in
  15168. DownloadEngine.
  15169. (setReadCheckSocket): Updated according to the changes in
  15170. DownloadEngine.
  15171. (disableWriteCheckSocket): Updated according to the changes in
  15172. DownloadEngine.
  15173. (setWriteCheckSocket): Updated according to the changes in
  15174. DownloadEngine.
  15175. * release 0.7.1
  15176. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15177. To handle the case where some BitTorrent tracker requires all letters
  15178. except for [A-Za-z0-9] is URL encoded.
  15179. * src/Util.h
  15180. (torrentUrlencode): New function.
  15181. * src/Util.cc
  15182. (ctype.h): Included.
  15183. (torrentUrlencode): New function.
  15184. * src/TrackerWatcherCommand.cc
  15185. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  15186. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15187. To add asynchronous DNS support(libares):
  15188. * src/AbstractCommand.h
  15189. (setNameResolverCheck): New function.
  15190. (disableNameResolverCheck): New function
  15191. (resolveHostname): New function.
  15192. * src/AbstractCommand.cc
  15193. (setNameResolverCheck): New function.
  15194. (disableNameResolverCheck): New function
  15195. (resolveHostname): New function.
  15196. * src/FtpInitiateConnectionCommand.h
  15197. (nameResolver): New function.
  15198. * src/FtpInitiateConnectionCommand.cc
  15199. (Util.h): Included.
  15200. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  15201. disableWriteCheckSocket.
  15202. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  15203. (executeInternal): Added async DNS support.
  15204. * src/HttpInitiateConnectionCommand.h
  15205. (nameResolver): New function.
  15206. * src/HttpInitiateConnectionCommand.cc
  15207. (DlRetryEx.h): Included.
  15208. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  15209. disableWriteCheckSocket.
  15210. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  15211. (executeInternal): Added async DNS support.
  15212. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  15213. by extern "C" declaration.
  15214. * src/NameResolver.cc: New class.
  15215. * src/Util.h:
  15216. (isNumberAndDotsNotation): New function
  15217. * src/Util.cc
  15218. (isNumberAndDotsNotation): New function.
  15219. * src/DownloadEngine.h
  15220. (NameResolver.h): Included.
  15221. (NameResolverEntry): New class.
  15222. (NameResolverEntries): New type definition.
  15223. (addNameResolverCheck): New function.
  15224. (deleteNameResolverCheck): New function.
  15225. * src/DownloadEngine.cc
  15226. (run): Initialize cp with 0.
  15227. (SetDescriptor::operator()): Added for NameResolverEntry.
  15228. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  15229. (waitData): Check nameResolver entries.
  15230. (updateFdSet): Update fds in nameResolver entries.
  15231. (addNameResolverCheck): New function.
  15232. (deleteNameResolverCheck): new function.
  15233. * src/PeerInteractionCommand.cc
  15234. (executeInternal): Fixed wrong socket handling.
  15235. * src/main.cc
  15236. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  15237. * src/Util.cc
  15238. (fileChecksum): Removed the call to ctx.digestReset().
  15239. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15240. * po/ru.po: Azamat sent me Russian translation.
  15241. * src/FtpNegotiateCommand.cc
  15242. (recvGreeting): Call disableWriteCheckSocket just after
  15243. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  15244. (recvRetr): Recognized status code 125 as a acceptable response code.
  15245. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  15246. case-insesitive filesystem(BUG#1531057).
  15247. * src/Time.h: Renamed as TimeA2.h.
  15248. * src/Time.cc: Renamed as TimeA2.cc.
  15249. * src/TimeA2.h: New class.
  15250. * src/TimeA2.cc: New class.
  15251. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  15252. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  15253. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  15254. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  15255. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  15256. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15257. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  15258. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  15259. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  15260. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  15261. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  15262. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  15263. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  15264. * release 0.7.0
  15265. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15266. * src/PeerChokeCommand.h
  15267. (PeerChokeCommand): Rearranged the arguments.
  15268. * src/PeerChokeCommand.cc
  15269. (PeerChokeCommand): Rearranged the arguments.
  15270. * src/MetalinkEntry.h
  15271. (Checksum.h): Included.
  15272. (md5): Removed.
  15273. (sha1): Removed.
  15274. (checksum): New variable.
  15275. (operator=): Updated.
  15276. (check): Removed.
  15277. * src/prefs.h
  15278. (PREF_LOWEST_SPEED_LIMIT): New definition.
  15279. (PREF_FOLLOW_TORRENT): New definition.
  15280. (PREF_SELECT_FILE): New definition.
  15281. (PREF_FOLLOW_METALINK): New definition.
  15282. * src/MetalinkResource.h
  15283. (TYPE_HTTPS): Added to enum TYPE.
  15284. * src/TorrentMan.cc
  15285. (~TorrentMan): Rewritten.
  15286. * src/MultiDiskWriter.cc
  15287. (MultiDiskAdaptor): Updated according to the changes in
  15288. MessageDigestContext.
  15289. (~MultiDiskAdaptor): Updated according to the changes in
  15290. MessageDigestContext.
  15291. (hashUpdate): Updated according to the changes in MessageDigestContext.
  15292. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15293. * src/Util.h
  15294. (fileChecksum): Updated according to the changes in
  15295. MessageDigestContext.
  15296. * src/Util.cc
  15297. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15298. (fileChecksum): Updated according to the changes in
  15299. MessageDigestContext.
  15300. * src/messageDigest.h: Rewritten.
  15301. * src/MetalinkEntry.cc
  15302. (check): Removed.
  15303. (Supported): Updated.
  15304. (dropUnsupportedResource): Fixed a memory leak.
  15305. * src/ShaVisitor.cc
  15306. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  15307. (~ShaVisitor): Updated according to the changes in
  15308. MessageDigestContext.
  15309. (visit): Updated according to the changes in MessageDigestContext.
  15310. * src/main.cc
  15311. (main): Rewritten the portion of download loop. --lowest-speed-limit
  15312. command-line option added.
  15313. * src/DownloadEngine.h
  15314. (SocketEntry): New class.
  15315. (SocketEntries): New definition.
  15316. (PairFind): Removed.
  15317. (SockCmdMap): Removed.
  15318. * src/DownloadEngine.cc
  15319. (DownloadEngine): Rewritten.
  15320. (~DownloadEngine): Rewritten.
  15321. (run): Renamed activeCommandUuids as activeUuids.
  15322. (SetDescriptor): Rewritten.
  15323. (AccumulateActiveCommandUuid): Removed.
  15324. (AccumulateActiveUuid): New function object.
  15325. (waitData): Rewritten.
  15326. (updateFdSet): Rewritten.
  15327. (addSocket): Rewritten.
  15328. (deleteSocket): Rewritten.
  15329. (addSocketForReadCheck): Rewritten.
  15330. (deleteSocketForReadCheck): Rewritten.
  15331. (addSocketForWriteCheck): Rewritten.
  15332. (deleteSocketForWriteCheck): Rewritten.
  15333. * src/Xml2MetalinkProcessor.cc
  15334. (getEntry): Rewritten the portion of MetalinkEntry creation.
  15335. * src/DownloadCommand.cc
  15336. (executeInternal): Added the check routine for lowest speed limit.
  15337. * src/AbstractDiskWriter.cc
  15338. (AbstractDiskWriter): Updated according to the changes in
  15339. MessageDigestContext.
  15340. (~AbstractDiskWriter): Updated according to the changes in
  15341. MessageDigestContext.
  15342. (sha1Sum): Updated according to the changes in MessageDigestContext.
  15343. * src/RequestInfo.h: New class.
  15344. * src/UrlRequestInfo.h: New class.
  15345. * src/UrlRequestInfo.cc: New class.
  15346. * src/TorrentRequestInfo.h: New class.
  15347. * src/TorrentRequestInfo.cc: New class.
  15348. * src/MetalinkRequestInfo.h: New class.
  15349. * src/MetalinkRequestInfo.cc: New class.
  15350. * src/Checksum.h: New class.
  15351. * src/DownloadEngineFactory.h: New class.
  15352. * src/DownloadEngineFactory.cc: New class.
  15353. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15354. * src/Option.h
  15355. (getAsBool): New function.
  15356. * src/Option.cc
  15357. (prefs.h): Included.
  15358. (defined): 0-length value is now recognized as undefined.
  15359. (getAsInt): Rewritten.
  15360. (getAsLLInt): Rewritten.
  15361. (getAsBool): New function.
  15362. * src/FeatureConfig.h: Rewritten.
  15363. * src/FeatureConfig.cc: Rewritten.
  15364. * src/prefs.h
  15365. (PREF_STDOUT_LOG): New definition.
  15366. (PREF_LOG): New definition.
  15367. (PREF_DIR): New definition.
  15368. (PREF_OUT): New definition.
  15369. (PREF_SPLIT): New definition.
  15370. (PREF_DAEMON): New definition.
  15371. (PREF_REFERER): New definition.
  15372. (PREF_TORRENT_FILE): New definition.
  15373. (PREF_LISTEN_PORT): New definition.
  15374. (PREF_METALINK_FILE): New definition.
  15375. (PREF_METALINK_VERSION): New definition.
  15376. (PREF_METALINK_LANGUAGE): New definition.
  15377. (PREF_METALINK_OS): New definition.
  15378. (PREF_METALINK_SERVERS): New definition.
  15379. * src/main.cc
  15380. (main): Following command-line parameters are now put into Option
  15381. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15382. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15383. metalinkLanguage, metalinkOs, metalinkServers
  15384. To fix the bug that aria2 can not handle http response header properly.
  15385. * src/HttpHeader.cc
  15386. (put): Made name lowercased.
  15387. (defined): Made name lowercased.
  15388. (getFirst): Made name lowercased.
  15389. (get): Made name lowercased.
  15390. (getFirstAsInt): Rewritten.
  15391. (getFirstAsLLInt): Rewritten.
  15392. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15393. * src/TorrentMan.h:
  15394. (advertisePiece): Updated doc.
  15395. (getAdvertisedPieceIndexes): Updated doc.
  15396. (removeAdvertisedPiece); New function.
  15397. * src/TorrentMan.cc
  15398. (FindElapsedHave): New function object.
  15399. (removeAdvertisedPiece): New function.
  15400. * src/HaveEraseCommand.h: New class.
  15401. * src/HaveEraseCommand.cc: New class.
  15402. * src/FeatureConfig.h: New class.
  15403. * src/FeatureConfig.cc: New class.
  15404. * src/Request.h
  15405. (defaultPorts): Removed.
  15406. * src/Request.cc
  15407. (FeatureConfig.h): Included.
  15408. (Request): Removed the statements related to defaultPorts.
  15409. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15410. A default port number is now retrieved from FeatureConfig.
  15411. * src/main.cc
  15412. (HaveEraseCommand.h): Included.
  15413. (showVersion): Added the output of feature list.
  15414. (main): Added HaveEraseCommand to command queue in BitTorrent
  15415. downloading.
  15416. * src/PeerInteractionCommand.h
  15417. (chokeCheckPoint): Commented out.
  15418. (periodicExecPoint): New variable.
  15419. * src/PeerInteractionCommand.cc
  15420. (executeInternal): Following methods are now called in at least every
  15421. 0.5 seconds to reduce CPU usage:
  15422. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15423. checkHave(), sendKeepAlive().
  15424. (checkLongTimePeerChoking): Commented out.
  15425. * src/BitfieldMan.h
  15426. (getNthBitIndex): Changed the method signature.
  15427. (getMissingIndexRandomly): Changed the method signature.
  15428. * src/BitfieldMan.cc
  15429. (getNthBitIndex): Rewritten
  15430. (getMissingIndexRandomly): Rewritten.
  15431. (hasMissingPiece): Rewritten.
  15432. (getMissingIndex): Refactored.
  15433. (getMissingUnusedIndex); Refactored.
  15434. (getMissingIndex): Refactored.
  15435. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15436. * src/PeerMessage.h
  15437. (Piece.h): Included.
  15438. (SharedHandle.h): Included.
  15439. (invalidate): New variable.
  15440. (uploading): New variable.
  15441. (isInvalidate): New function.
  15442. (isUploading): New function.
  15443. (onPush): New function.
  15444. (onChoked): New function.
  15445. (onCanceled): New function.
  15446. (onAbortPiece): New function.
  15447. (PeerMessageHandle): New type definition.
  15448. * src/PeerMessage.cc
  15449. (PeerMessage): Added the initialization for invalidate and uploading.
  15450. * src/CancelMessage.h
  15451. (CancelMessage): Rewritten.
  15452. * src/RejectMessage.h
  15453. (RejectMessage): Rewritten.
  15454. * src/Metalinker.h
  15455. (operator=): Defined.
  15456. * src/MetaEntry.h
  15457. (operator=): Defined.
  15458. * src/MetalinkResource.h
  15459. (operator=): Defined.
  15460. * src/AllowedFastMessage.h
  15461. (AllowedFastMessage): Rewritten.
  15462. * src/HandshakeMessage.h
  15463. (HandshakeMessage): New function(overload).
  15464. * src/HandshakeMessage.cc
  15465. (HandshakeMessage): Rewritten.
  15466. (init): New function.
  15467. * src/HaveMessage.h
  15468. (HaveMessage): Rewritten.
  15469. * src/Time.h
  15470. (operator=): Defined the function body here.
  15471. * src/Time.cc
  15472. (operator=): Removed.
  15473. * src/SocketCore.h
  15474. (operator==): Defined here.
  15475. (operator!=): Defined here.
  15476. (operator<): Defined here.
  15477. * src/SocketCore.cc
  15478. (operator==): Removed.
  15479. (operator<): Removed.
  15480. * src/BitfieldMan.h
  15481. (operator=): Defined the function body here.
  15482. * src/BitfieldMan.cc
  15483. (operator=): Removed.
  15484. * src/TorrentMan.h
  15485. (deleteErrorPeer): Removed.
  15486. (deleteUnusedPeer); New function.
  15487. * src/TorrentMan.cc
  15488. (addPeer): Call deleteUnusedPeer.
  15489. (deleteErrorPeer): Removed.
  15490. (deleteUnusedPeer): New function.
  15491. * src/PeerAbstractCommand.h
  15492. (setNoCheck): New function.
  15493. (noCheck): New variable.
  15494. * src/PeerAbstractCommand.cc
  15495. (PeerAbstractCommand): Added the initialization of noCheck.
  15496. (execute): Added a check for noCheck.
  15497. (setNoCheck): New function.
  15498. * src/Util.h
  15499. (stdio.h): Included.
  15500. * src/Util.cc
  15501. (unistd.h): Included.
  15502. * src/DefaultDiskWriter.cc
  15503. (unistd.h): Included.
  15504. * src/Peer.h
  15505. (operator==): Defined the function body here.
  15506. (operator!=): Defined the function body here.
  15507. * src/Peer.cc
  15508. (operator==): Removed.
  15509. (operator!=): Removed.
  15510. * src/Piece.h
  15511. (Piece): Defined the function body here(copy constructor).
  15512. (operator=): Defined the function body here.
  15513. (operator==): Defined the function body here.
  15514. * src/Piece.cc
  15515. (Piece): Removed(copy constructor).
  15516. (operator=): Removed.
  15517. (operator==): Removed.
  15518. * src/PeerMessageUtil.h
  15519. (ChokeMessage.h): Removed.
  15520. (UnchokeMessage.h): Removed.
  15521. (InterestedMessage.h): Removed.
  15522. (NotInterestedMessage.h): Removed.
  15523. (HaveMessage.h): Removed.
  15524. (BitfieldMessage.h): Removed.
  15525. (RequestMessage.h): Removed.
  15526. (CancelMessage.h): Removed.
  15527. (PieceMessage.h): Removed.
  15528. (HandshakeMessage.h): Removed.
  15529. (KeepAliveMessage.h): Removed.
  15530. (PortMessage.h): Removed.
  15531. (HaveAllMessage.h): Removed.
  15532. (HaveNoneMessage.h): Removed.
  15533. (PeerConnection.h): Removed.
  15534. (HandshakeMessage.h): Included.
  15535. * src/BitfieldMessage.h
  15536. (init): New function.
  15537. (BitfieldMessage): Rewritten.
  15538. (BitfieldMessage): New function(overload).
  15539. * src/RequestSlot.h
  15540. (operator=): Defined the function body here.
  15541. (operator==): Defined the function body here.
  15542. * src/RequestSlot.cc
  15543. (operator=): Removed.
  15544. (operator==): Removed.
  15545. To remove the dependency on the PeerMessage subclass from
  15546. PeerInteraction:
  15547. * src/PeerMessageFactory.h: New class.
  15548. * src/PeerMessageFactory.cc: New class.
  15549. * src/SimplePeerMessage.cc
  15550. (send): If invalidate is true then do nothing.
  15551. * src/PeerInteractionCommand.cc
  15552. (HandshakeMessage.h): Included.
  15553. (KeepAliveMessage.h): Included.
  15554. (ChokeMessage.h): Included.
  15555. (UnchokeMessage.h): Included.
  15556. (HaveMessage.h): Included.
  15557. (executeInternal): Call setNoCheck().
  15558. Removed setWriteCheckSocket(socket).
  15559. * src/PeerInteraction.h
  15560. (ChokeMessage.h): Removed.
  15561. (UnchokeMessage.h): Removed.
  15562. (InterestedMessage.h): Removed.
  15563. (NotInterestedMessage.h): Removed.
  15564. (HaveMessage.h): Removed.
  15565. (BitfieldMessage.h): Removed.
  15566. (RequestMessage.h): Removed.
  15567. (CancelMessage.h): Removed.
  15568. (PieceMessage.h): Removed.
  15569. (HandshakeMessage.h): Removed.
  15570. (KeepAliveMessage.h): Removed.
  15571. (PortMessage.h): Removed.
  15572. (HaveAllMessage.h): Removed.
  15573. (HaveNoneMessage.h): Removed.
  15574. (RejectMessage.h): Removed.
  15575. (AllowedFastMessage.h): Removed.
  15576. (SuggestPieceMessage.h): Removed.
  15577. (PeerMessageFactory.h): Included.
  15578. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15579. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15580. (PeerMessageFactory): New variable.
  15581. (createPeerMessage): Removed.
  15582. (createHandshakeMessage): Removed.
  15583. (setPeerMessageCommonProperty): Removed.
  15584. (addRequestSlot): New function.
  15585. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15586. (getPeerMessageFactory): New function.
  15587. (createRequestMessage): Removed.
  15588. (createCancelMessage): Removed.
  15589. (createPieceMessage): Removed.
  15590. (createHaveMessage): Removed.
  15591. (createChokeMessage): Removed.
  15592. (createUnchokeMessage): Removed.
  15593. (createInterestedMessage): Removed.
  15594. (createNotInterestedMessage): Removed.
  15595. (createBitfieldMessage): Removed.
  15596. (createKeepAliveMessage): Removed.
  15597. (createHaveAllMessage): Removed.
  15598. (createHaveNoneMessage): Removed.
  15599. (createRejectMessage): Removed.
  15600. (createAllowedFastMessage): Removed.
  15601. * src/PeerInteraction.cc
  15602. (PeerInteraction): Allocate PeerMessageFactory here.
  15603. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15604. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15605. PieceMessage::ID.
  15606. (addMessage): Simplified by using PeerMessage::onPush().
  15607. (addRequestSlot): New function.
  15608. (rejectAllPieceMessageInQueue): Simplified by using
  15609. PeerMessage::onChoked().
  15610. (rejectPieceMessageInQueue): Simplified by using
  15611. PeerMessage::onCanceled().
  15612. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15613. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15614. (createHandshakeMessage): Removed.
  15615. (createPeerMessage): Removed.
  15616. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15617. (setPeerMessageCommonProperty): Removed.
  15618. (createRequestMessage): Removed.
  15619. (createCancelMessage): Removed.
  15620. (createPieceMessage): Removed.
  15621. (createHaveMessage): Removed.
  15622. (createChokeMessage): Removed.
  15623. (createUnchokeMessage): Removed.
  15624. (createInterestedMessage): Removed.
  15625. (createNotInterestedMessage): Removed.
  15626. (createBitfieldMessage): Removed.
  15627. (createKeepAliveMessage): Removed.
  15628. (createHaveAllMessage): Removed.
  15629. (createHaveNoneMessage): Removed.
  15630. (createRejectMessage): Removed.
  15631. (createAllowedFastMessage): Removed.
  15632. * src/PieceMessage.h
  15633. (createRejectMessage): New function.
  15634. (PieceMessage): Rewritten.
  15635. (onChoked): New function.
  15636. (onCanceled): New function.
  15637. * src/PieceMessage.cc
  15638. (send): If invalidate is true then do nothing, just return.
  15639. (createRejectMessage): New function.
  15640. (onChoked): New function.
  15641. (onCanceled): New function.
  15642. * src/RequestMessage.h
  15643. (RequestMessage): Rewritten.
  15644. (onPush): New function.
  15645. (onAbortPiece): New function.
  15646. * src/RequestMessage.cc
  15647. (onPush): New function.
  15648. (onAbortPiece): New function.
  15649. Update fd_set when a socket is added or deleted in order to improve
  15650. performance:
  15651. * src/DownloadEngine.h
  15652. (rfdset): New variable.
  15653. (wfdset): New variable.
  15654. (updateFdSet): New function.
  15655. * src/DownloadEngine.cc
  15656. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15657. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15658. (waitData): Copy rfdset and wfdset.
  15659. (updateFdSet): New function.
  15660. (addSocket): Call updateFdSet.
  15661. (deleteSocket): Call updateFdSet.
  15662. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15663. To add the support for Metalink3.0 backward compatible links:
  15664. * src/Request.h
  15665. (SAFE_CHARS): Added '#'.
  15666. (METALINK_MARK): New definition.
  15667. * src/Request.cc
  15668. (parseUrl): Added the support for Metalink3.0 backward compatible
  15669. links.
  15670. etc
  15671. * src/PeerInteraction.cc
  15672. (MsgPushBack): Removed.
  15673. (sendMessages): Use STL copy and back_inserter.
  15674. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15675. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15676. * src/TorrentMan.h
  15677. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15678. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15679. * src/SharedHandle.h: New class.
  15680. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15681. * src/HttpResponseCommand.h
  15682. (HttpResponseCommand): Wrapped Socket.
  15683. * src/SocketCore.h
  15684. (operator==): New function.
  15685. (operator!=): New function.
  15686. (operator<): New function.
  15687. (getSockfd): New function.
  15688. (isOpen): New function.
  15689. (writeData): New function.
  15690. * src/SocketCore.cc
  15691. (operator==): New function.
  15692. (operator!=): New function.
  15693. (operator<): New function.
  15694. * src/AbstractCommand.h
  15695. (socket): Changed its type to SocketHandle.
  15696. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15697. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15698. (disableReadCheckSocket): New function.
  15699. (disableWriteCheckSocket): New function.
  15700. (readCheckTarget): Changed its type to SocketHandle.
  15701. (writeCheckTarget): Changed its type to SocketHandle.
  15702. (AbstractCommand): Replaced Socket with SocketHandle.
  15703. * src/AbstractCommand.cc
  15704. (AbstractCommand): Replaced Socket with SocketHandle.
  15705. (~AbstractCommand): Removed the deallocation for Socket object.
  15706. (disableReadCheckSocket): New function.
  15707. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15708. (disableWriteCheckSocket): New function.
  15709. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15710. * src/HttpDownloadCommand.cc
  15711. (DownloadCommand): Replaced Socket with SocketHandle.
  15712. * src/PeerAbstractCommand.h
  15713. (socket): Changed its type to SocketHandle.
  15714. (peer): Changed its type to PeerHandle.
  15715. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15716. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15717. (disableReadCheckSocket): New function.
  15718. (disableWriteCheckSocket): New function.
  15719. (readCheckTarget): Changed its type to SocketHandle.
  15720. (writeCheckTarget): Changed its type to SocketHandle.
  15721. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15722. Replaced Peer with PeerHandle.
  15723. * src/HttpRequestCommand.cc
  15724. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15725. Use disableReadCheckSocket.
  15726. * src/PeerInitiateConnectionCommand.h
  15727. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15728. * src/PeerChokeCommand.cc
  15729. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15730. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15731. (execute): Use PeerHandle.
  15732. * src/PeerConnection.h
  15733. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15734. (socket): Changed its type to SocketHandle.
  15735. (PeerConnection): Replaced Socket with SocketHandle.
  15736. * src/PeerConnection.cc
  15737. (PeerConnection): Replaced Socket with SocketHandle.
  15738. * src/PeerInteractionCommand.h
  15739. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15740. Replaced Peer with PeerHandle.
  15741. * src/PeerInteractionCommand.cc
  15742. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15743. Replaced Peer with PeerHandle.
  15744. (executeInternal): Use disableWriteCheckSocket.
  15745. Use HandshakeMessageHandle.
  15746. (receiveMessages): Use PeerMessageHandle.
  15747. (prepareForNextPeer): Use PeerHandle.
  15748. * src/HttpProxyRequestCommand.h
  15749. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15750. * src/HttpResponseCommand.cc
  15751. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15752. * src/TorrentMan.cc
  15753. (nullPeer): Added external reference.
  15754. (~TorrentMan): Removed the deallocation of the elements of peers.
  15755. (addPeer): Rewritten.
  15756. (isPeerAvailable): Use nullPeer.
  15757. (deleteOldpeers): Replaced with deleteErrorPeer.
  15758. (deleteErrorPeer): New function.
  15759. (getPeer): Use PeerHandle and nullPeer.
  15760. (hasMissingPiece): Replaced Peer with PeerHandle.
  15761. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15762. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15763. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15764. (getMissingPiece): Replaced Peer with PeerHandle.
  15765. * src/FtpNegotiateCommand.cc
  15766. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15767. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15768. (recvGreeting): Use disableWriteCheckSocket.
  15769. (recvPasv): Removed the allocation of Socket.
  15770. Use disableReadCheckSocket.
  15771. (sendRestPasv): Use disableWriteCheckSocket.
  15772. (recvRetr): Changed assertion.
  15773. * src/PeerInteraction.h
  15774. (SharedHandle.h): Included SharedHandle.h.
  15775. (PeerMessageHandle): New type definition.
  15776. (HandshakeMessageHandle): New type definition.
  15777. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15778. (peer): Changed its type to PeerHandle.
  15779. (createHandshakeMessage): Replaced HandshakeMessage with
  15780. HandshakeMessageHandle.
  15781. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15782. (PeerInteraction): Replaced Peer with PeerHandle.
  15783. Replaced Socket with SocketHandle.
  15784. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15785. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15786. (receiveHandshake): Replaced HandshakeMessage with
  15787. HandshakeMessageHandle.
  15788. * src/PeerInteraction.cc
  15789. (PeerInteraction): Replaced Peer with PeerHandle.
  15790. Replaced Socket with SocketHandle.
  15791. (~PeerInteraction): Removed the deallocation of the elements of
  15792. messageQueue.
  15793. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15794. (isSendingMessageInProgress): Replaced PeerMessage with
  15795. PeerMessageHandle.
  15796. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15797. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15798. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15799. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15800. (abortPiece): Use PeerMessageHandle.
  15801. (receiveHandshake): Replaced HandshakeMessage with
  15802. HandshakeMessageHandle. Removed try-catch block.
  15803. (createHandshakeMessage): Replaced HandshakeMessage with
  15804. HandshakeMessageHandle.
  15805. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15806. Removed try-catch block.
  15807. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15808. * src/HttpProxyResponseCommand.cc
  15809. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15810. * src/FtpTunnelResponseCommand.h
  15811. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15812. * src/HttpConnection.cc
  15813. (HttpConnection): Replaced Socket with SocketHandle.
  15814. * src/PeerAbstractCommand.cc
  15815. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15816. (~PeerAbstractCommand): Removed the deallocation of socket.
  15817. Use disableReadCheckSocket, disableWriteCheckSocket.
  15818. (disableReadCheckSocket): New function.
  15819. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15820. (disableWriteCheckSocket): New function.
  15821. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15822. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15823. * src/FtpTunnelRequestCommand.cc
  15824. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15825. (~FtpTunnelRequestCommand): Corrected indentation.
  15826. * src/DownloadCommand.h
  15827. (DownloadCommand): Replaced Socket with SocketHandle.
  15828. * src/PeerListenCommand.cc
  15829. (PeerListenCommand): Removed the initialization of socket.
  15830. (~PeerListenCommand): Removed the deallocation of socket.
  15831. (bindPort): Use SocketHandle.
  15832. (execute): Use SocketHandle and PeerHandle.
  15833. * src/FtpDowndloadCommand.cc
  15834. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15835. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15836. * src/main.cc
  15837. (main): Corrected indentation.
  15838. * src/HttpInitiateConnectionCommand.cc
  15839. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15840. (executeInternal): Removed the allocation of socket.
  15841. * src/HttpRequestCommand.h
  15842. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15843. * src/FtpNegotiationCommand.h
  15844. (dataSocket): Changed its type to SocketHandle.
  15845. (serverSocket): Changed its type to SocketHandle.
  15846. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15847. * src/TorrentMan.h
  15848. (MAX_PEER_UPDATE): Removed.
  15849. (MAX_PEERS): New definition.
  15850. (Peers): The element is now of type PeerHandle.
  15851. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15852. (getPeer): Replaced Peer with PeerHandle.
  15853. (deleteOldErrorPeers): Removed.
  15854. (deleteErrorPeer): New function.
  15855. (hasMissingPiece): Replaced Peer with PeerHandle.
  15856. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15857. (getMissingPiece): Replaced Peer with PeerHandle.
  15858. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15859. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15860. (addActivePeer): Replaced Peer with PeerHandle.
  15861. (deleteActivePeer): Replaced Peer with PeerHandle.
  15862. Added a check for the return value of find.
  15863. * src/FtpTunnelResponseCommand.cc
  15864. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15865. * src/FtpInitiateConnectionCommand.cc
  15866. (executeInternal): Removed the allocation of socket.
  15867. * src/DownloadEngine.h
  15868. (Sockets): An element is now of type SocketHandle.
  15869. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15870. (CommandUuids): New type definition.
  15871. (rsockets): Changed its type to SockCmdMap.
  15872. (wsockets): Changed its type to SockCmdMap.
  15873. (addSocket): Rewritten.
  15874. (deleteSocket): Rewritten.
  15875. (addSocketForReadCheck): Rewritten.
  15876. (deleteSocketForReadCheck): Rewritten.
  15877. (addSocketForWriteCheck): Rewritten.
  15878. (deleteSocketForWriteCheck): Rewritten.
  15879. (PairFind): New template class.
  15880. * src/HttpDownloadCommand.h
  15881. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15882. * src/FtpConnection.cc
  15883. (FtpConnection): Replaced Socket with SocketHandle.
  15884. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15885. block.
  15886. * src/InitiateConnectionCommandFactory.cc
  15887. (DlAbortEx.h): Included DlAbortEx.h.
  15888. (createInitiateConnectionCommand): Throw exception if the protocol of
  15889. requested URI is not supported.
  15890. * src/Peer.cc
  15891. (nullPeer): Changed its type to PeerHandle.
  15892. (operator==): New function.
  15893. (operator!=): New function.
  15894. * src/Peer.h
  15895. (SharedHandle.h): Included SharedHandle.h.
  15896. (operator==): New function.
  15897. (operator!=): New function.
  15898. (Peer): Added the default constructor.
  15899. Use resetStatus() to initialize member variables.
  15900. (nullPeer): Removed.
  15901. * src/TrackerUpdateCommand.cc
  15902. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15903. with MIN_PEERS.
  15904. * src/PeerListenCommand.h
  15905. (socket): Changed its type to SocketHandle.
  15906. * src/Command.h
  15907. (CommandUuid): New type definition.
  15908. (uuid): New variable.
  15909. (uuidGen): New variable.
  15910. (Command): Added the initialization of uuid.
  15911. (getUuid): New function.
  15912. * src/Socket.h
  15913. (Socket): Removed.
  15914. (SocketHandle): New type definition.
  15915. * src/DownloadEngine.h
  15916. (FindCommand): New function object.
  15917. (run): The portion of socket check was rewritten.
  15918. (SetDescriptor): New function object.
  15919. (AccumulateActiveCommandUuid): New function object.
  15920. (waitData): Rewritten.
  15921. (addSocket): Rewritten.
  15922. (deleteSocket): Rewritten.
  15923. (addSocketForReadCheck): Rewritten.
  15924. (addSocketForWriteCheck): Rewritten.
  15925. (deleteSocketForReadCheck): Rewritten.
  15926. (deleteSocketForWriteCheck): Rewritten.
  15927. * src/HttpProxyResponseCommand.h
  15928. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15929. * src/HttpConnection.h
  15930. (socket): Changed its type to SocketHandle.
  15931. (HttpConnection): Replaced Socket with SocketHandle.
  15932. * src/PeerInitiateConnectionCommand.cc
  15933. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15934. (executeInternal): Removed the allocation of socket.
  15935. (prepareForNextPeer): Use PeerHandle.
  15936. * src/PeerMessage.h
  15937. (peer): Changed its type to PeerHandle.
  15938. (getPeer): Replaced Peer with PeerHandle.
  15939. (setPeer): Replaced Peer with PeerHandle.
  15940. * src/DownloadCommand.cc
  15941. (DownloadCommand): Replaced Socket with SocketHandle.
  15942. * src/FtpConnection.h
  15943. (socket): Changed its type to SocketHandle.
  15944. (FtpConnection): Replaced Socket with SocketHandle.
  15945. (sendPort); Replaced Socket with SocketHandle.
  15946. * src/FtpDowndloadCommand.h
  15947. (ctrlSocket): Changed its type to SocketHandle.
  15948. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15949. * src/HttpProxyRequestCommand.cc
  15950. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15951. * src/FtpTunnelRequestCommand.h
  15952. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15953. etc
  15954. * src/PeerChokeCommand.h
  15955. (setAllPeerChoked): Removed.
  15956. (setAllPeerResetDelta): Removed.
  15957. * src/PeerChokeCommand.cc
  15958. (setAllPeerChoked): Removed.
  15959. (ChokePeer): New function object.
  15960. (setAllPeerResetDelta): Removed.
  15961. (ResetDelta): New function object.
  15962. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15963. (execute): Show download speed when the local node is a seeder.
  15964. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15965. using STL.
  15966. * src/TrackerWatcherCommand.h
  15967. (MIN_PEERS): Removed.
  15968. * src/TorrentMan.cc
  15969. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15970. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15971. To fix the bug that .aria2 file is not saved if downloading is stopped
  15972. by the errors:it results that aria2 can not resume downloading:
  15973. * src/main.cc
  15974. (normalDownload): Added the call to save().
  15975. (main): Added the deletion of the elements in 'reserved'.
  15976. To fix log:
  15977. * src/PeerInteraction.cc
  15978. (receiveHandshake): Fixed log.
  15979. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15980. To improve download performance in BitTorrent:
  15981. * src/TorrentMan.cc
  15982. (getPeer): Check the number of connections. Return nullPeer if
  15983. it is greater than MAX_PEER_UPDATE.
  15984. This code was originally here, but was removed in 0.5.1.
  15985. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15986. To improve the conditional compilation:
  15987. * src/MultiDiskWriter.h:
  15988. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15989. * src/MultiDiskWriter.cc:
  15990. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15991. * src/Util.h:
  15992. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15993. Added ENABLE_BITTORRENT around computeFastSet().
  15994. * src/Util.cc:
  15995. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15996. Added ENABLE_BITTORRENT around computeFastSet().
  15997. * src/messageDigest.h:
  15998. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15999. * src/ShaVisitor.h:
  16000. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16001. * src/ShaVisitor.cc:
  16002. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16003. * src/main.cc:
  16004. Added ENABLE_BITTORRENT around includes and blocks related to
  16005. BitTorrent.
  16006. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  16007. digest support is not available.
  16008. * src/AbstractDiskWriter.h:
  16009. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16010. * src/AbstractDiskWriter.cc:
  16011. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  16012. * src/MetalinkEntry.cc
  16013. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  16014. support is not available.
  16015. To add command-line options for Metalink:
  16016. * src/main.cc:
  16017. Added metalink-version, metalink-language, metalink-os,
  16018. follow-metalink.
  16019. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  16020. * src/main.cc: Use these definition.
  16021. * Release 0.6.0
  16022. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16023. To add Metalink support(http/ftp only):
  16024. * src/AbstractCommand.h
  16025. (tryReserved): New function.
  16026. * src/AbstractCommand.cc
  16027. (execute): Call tryReserved().
  16028. (tryReserved): New function.
  16029. * src/Request.h
  16030. (Requests): New type definition.
  16031. * src/SegmentMan.h
  16032. (reserved): New variable.
  16033. * src/Util.h
  16034. (fileChecksum): New function.
  16035. (toUpper): New function.
  16036. (toLower): New function.
  16037. * src/Util.cc
  16038. (messageDigest.h): Included.
  16039. (trim): Trim \r\n\t.
  16040. (fileChecksum): New function.
  16041. (toUpper): New function.
  16042. (toLower): New function.
  16043. * src/main.cc
  16044. (normalDownload): New function.
  16045. (main): Added 2 command-line options: metalink-file,
  16046. metalink-connection. Their usage has not been written yet.
  16047. * src/MetalinkProcessor.h: New class.
  16048. * src/Xml2MetalinkProcessor.h: New class.
  16049. * src/Xml2MetalinkProcessor.cc: New class.
  16050. * src/MetalinkEntry.h: New class.
  16051. * src/MetalinkEntry.cc: New class.
  16052. * src/MetalinkResource.h: New class.
  16053. * src/MetalinkResource.cc: New class.
  16054. To add md5 message digest checking:
  16055. * src/messageDigest.h: Rewritten.
  16056. * src/MultiDiskWriter.cc: Updated according to the changes in
  16057. messageDigest.h.
  16058. * src/ShaVisitor.cc: Updated according to the changes in
  16059. messageDigest.h.
  16060. * src/Util.cc: Updated according to the changes in messageDigest.h.
  16061. * src/AbstractDiskWriter.cc: Updated according to the changes in
  16062. messageDigest.h.
  16063. To fix a bug that causes segfault when the payload length in peer
  16064. message is less than 0:
  16065. * src/PeerConnection.cc:
  16066. (receiveMessage): Fixed the bug.
  16067. * src/PeerMessageUtil.cc
  16068. (checkLength): Throw an exception if length is less than or equals to
  16069. 0.
  16070. To add new interfaces to Base64 encoding/decoding:
  16071. * src/Base64.h
  16072. (part_encode): Changed the method signature.
  16073. (encode): New function(overload).
  16074. (decode): New function(overload).
  16075. * src/Base64.cc
  16076. (part_encode): Rewritten.
  16077. (encode): Rewritten.
  16078. (encode): New function(overload).
  16079. To prevent a peer to download same piece if there is an error in
  16080. checksum:
  16081. * src/PieceMessage.cc
  16082. (receivedAction): Call peerInteraction->abortPiece().
  16083. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16084. To fix the bug that causes same have message is sent many times to
  16085. a single peer.
  16086. * src/Time.cc
  16087. (isNewer): Use Util::difftv().
  16088. * src/Util.cc
  16089. (difftv): Added a cast to (long long int).
  16090. * src/TorrentMan.cc
  16091. (advertisePiece): Use push_front.
  16092. (getAdvertisedPieceIndexes): A performance improvement was made.
  16093. To fix the bug that sends tracker requests without a sleep interval
  16094. when the number of connections is less than 15.
  16095. * src/TrackerWatcherCommand.cc
  16096. (execute): Now the number of connections is not a factor to decide
  16097. whether or not a tracker request should be sent or not.
  16098. * src/Time.h
  16099. (setTimeInSec): New function.
  16100. * src/Time.cc
  16101. (setTimeInSec): New function.
  16102. etc.
  16103. * src/ChokeMessage.cc
  16104. (receivedAction): Removed peer->snubbing = false
  16105. * src/PeerConnection.h
  16106. (receiveHandshake): Updated doc.
  16107. * src/TorrentMan.h
  16108. (getAdvertisedPieceIndexes): Updated the method signature.
  16109. * src/TorrentMan.cc
  16110. (getAdvertisedPieceIndexes): Updated the method signature.
  16111. * src/Time.h
  16112. (getTimeInMicros): Added a cast to (long long int).
  16113. (getTimeInMillis): Added a cast to (long long int).
  16114. * Release 0.5.2
  16115. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16116. To make a listening socket non-block:
  16117. * src/SocketCore.h
  16118. (setNonBlockingMode): New function.
  16119. * src/SocketCore.cc
  16120. (setNonBlockingMode): New function.
  16121. (beginListen): Added a call to setNonBlockingMode().
  16122. (acceptConnection): Call setNonBlockingMode().
  16123. (setBlockingMode): Updated.
  16124. To handle tracker's NAT-checking:
  16125. * src/PeerConnection.cc
  16126. (receiveHandshake): 'msg' param is filled with received data and
  16127. its length is assigned to 'length' param, even if all handshake
  16128. message is not yet received.
  16129. * src/PeerInteractionCommand.cc
  16130. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  16131. a new peer connects to localhost.
  16132. A call to peerInteraction->sendHandshake() was removed because
  16133. it is called from peerInteraction->receiveHandshake(true).
  16134. * src/PeerInteraction.h
  16135. (quickReplied): New variable.
  16136. (receiveHandshake): Added an argument.
  16137. * src/PeerInteraction.cc
  16138. (PeerInteraction): Added the initialization of quickReplied.
  16139. (receiveHandshake): Send handshake message as soon as the info hash
  16140. in a handshake message from a peer is correct.
  16141. To change the random part of peer id and key parameter:
  16142. * src/TorrentMan.h
  16143. (key): New variable.
  16144. * src/TorrentMan.cc
  16145. (setupInternal1): Use Util::randomAlpha() to generate random part
  16146. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  16147. key is also generated by Util::randomAlpha() and it is now 8 character
  16148. long.
  16149. * src/Util.h
  16150. (randomAlpha): New function.
  16151. * src/Util.cc
  16152. (randomAlpha): New function.
  16153. * src/TrackerWatcherCommand.cc
  16154. (execute): In a tracker request: Use torrentMan->key as key parameter.
  16155. Added no_peer_id=1.
  16156. Set snubbing flag to false when a choke message is received from a
  16157. snubbed peer.
  16158. * src/ChokeMessage.cc
  16159. (receivedAction): Set snubbing flag to false.
  16160. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16161. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  16162. * src/SimpleLogger.h (writeHeader): New function.
  16163. * src/SimpleLogger.cc (writeHeader): New function.
  16164. (writeLog): Fixed the bug that causes segfaults if exception message
  16165. contains an unescaped "%" character.
  16166. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  16167. when a tracker request fails.
  16168. * src/Request.cc (parseUrl): Query string is now handled properly.
  16169. * Release 0.5.1
  16170. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16171. To add Time class which represents a specific instant in time and
  16172. its precision is microseconds. Time checking procedures were rewritten
  16173. using this object.
  16174. * src/Time.h: New class.
  16175. * src/Time.cc: New class.
  16176. * src/AbstractCommand.h
  16177. (updateCheckPoint): Removed.
  16178. (isTimeoutDetected): Removed.
  16179. (checkPoint): Changed the type to Time.
  16180. (timeout): New variable.
  16181. (setTimeout): New function.
  16182. * src/AbstractCommand.cc
  16183. (AbstractCommand): Removed the initialization of checkPoint.
  16184. Added the initialization of timeout.
  16185. (updateCheckPoint): Removed.
  16186. (isTimeoutDetected): Removed.
  16187. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16188. * src/PeerChokeCommand.h
  16189. (checkPoint): Changed the type to Time.
  16190. * src/PeerChokeCommand.cc
  16191. (PeerChokeCommand): Removed the initialization of checkPoint.
  16192. (execute): Rewritten using Time object.
  16193. * src/TrackerWatcherCommand.h
  16194. (checkPoint): Changed the type to Time.
  16195. * src/TrackerWatcherCommand.cc
  16196. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  16197. (execute): Rewritten.
  16198. * src/ConsoleDownloadEngine.h
  16199. (cp): Changed the type to Time.
  16200. (startup): Changed the type to Time.
  16201. * src/ConsoleDownloadEngine.cc
  16202. (initStatistics): Use cp.reset(), startup.reset().
  16203. (calculateStatistics): Rewritten using Time object.
  16204. * src/PeerAbstractCommand.h
  16205. (updateCheckPoint): Removed.
  16206. (isTimeoutDetected): Removed.
  16207. (checkPoint): Changed the type to Time.
  16208. * src/PeerAbstractCommand.cc
  16209. (PeerAbstractCommand): Removed the initialization of checkPoint.
  16210. (updateCheckPoint): Removed.
  16211. (isTimeoutDetected): Removed.
  16212. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  16213. * src/PeerInteractionCommand.cc
  16214. (PeerInteractionCommand): Removed the initializations of struct
  16215. timeval variables.
  16216. * src/PeerInteractionCommand.h
  16217. (keepAliveCheckPoint): Changed the type to Time.
  16218. (chokeCheckPoint): Changed the type to Time.
  16219. (freqCheckPoint): Changed the type to Time.
  16220. (haveCheckTime): Changed the type to Time.
  16221. * src/PeerInteractionCommand.cc
  16222. (executeInternal): Rewritten using Time object.
  16223. (detectMessageFlooding): Rewritten using Time object.
  16224. (checkLongTimePeerChoking): Rewritten using Time object.
  16225. (sendKeepAlive): Rewritten using Time object.
  16226. (checkHave): Rewritten using Time object.
  16227. * src/SleepCommand.h
  16228. (checkPoint): Changed the type to Time.
  16229. * src/SleepCommand.cc
  16230. (SleepCommand): Removed the initialization of checkPoint.
  16231. (execute): Rewritten using Time object.
  16232. * src/TorrentAutoSaveCommand.h
  16233. (checkPoint): Changed the type to Time.
  16234. * src/TorrentAutoSaveCommand.cc
  16235. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  16236. (execute): Rewritten.
  16237. * src/DownloadCommand.h
  16238. (sw): Changed the type to Time.
  16239. * src/DownloadCommand.cc
  16240. (DownloadCommand): Removed the initialization of sw.
  16241. (executeInternal): Rewritten.
  16242. * src/RequestSlot.h
  16243. (dispatchedTime): Changed the type to Time.
  16244. * src/RequestSlot.cc
  16245. (RequestSlot): Removed the call to setDispatchedTime().
  16246. (setDispatchedTime): Rewirtten.
  16247. (isTimeout): Rewritten.
  16248. (getLatencyInMillis): Rewritten.
  16249. * src/TorrentDownloadEngine.h
  16250. (cp): Changed the type to Time[2].
  16251. (startup): Changed the type to Time.
  16252. * src/TorrentDownloadEngine.cc
  16253. (initStatistics): Rewritten.
  16254. (calculateStatistics): Rewritten.
  16255. * src/DownloadEngine.cc
  16256. (run): Rewritten.
  16257. To detect all attempts to connect to the tracker are failed:
  16258. * src/AbstractCommand.cc
  16259. (execute): Increment e->segmentMan->errors if a command aborted.
  16260. * src/SegmentMan.h
  16261. (errors): New variable.
  16262. * src/SegmentMan.cc
  16263. (SegmentMan): Added the initialization of errors.
  16264. (init): Added the initialization of errors.
  16265. * src/TrackerWatcherCommand.cc
  16266. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  16267. request was failed.
  16268. To handle snubbed peers:
  16269. * src/PeerChokeCommand.cc
  16270. (optUnchokingPeer): Snubbed peers don't get unchoked.
  16271. (execute): Snubbed peers don't get unchoked.
  16272. * src/PeerInteraction.h
  16273. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  16274. * src/PeerInteraction.cc
  16275. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  16276. back the requested 16k block in 60 seconds.
  16277. * src/PieceMessage.cc
  16278. (receivedAction): A peer's snubbed state is cleard if it sends
  16279. the requested 16k block in 60 seconds.
  16280. * src/Peer.h
  16281. (snubbing): New variable.
  16282. * src/Peer.cc
  16283. (resetStatus): Added snubbed = false.
  16284. To fix the bug that causes have message is not sent:
  16285. * src/PeerInteractionCommand.cc
  16286. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  16287. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  16288. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  16289. * src/TorrentMan.h
  16290. (HaveEntry): New class.
  16291. (advertisePiece): Rewritten.
  16292. (getAdvertisedPieceIndexes): Rewritten.
  16293. (Haves): Changed the type.
  16294. (getAdvertisedPieceIndexes): Added an argument.
  16295. Others:
  16296. * src/TorrentMan.h
  16297. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  16298. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  16299. * src/TorrentMan.cc
  16300. (getPeer): Don't check the number of connections here.
  16301. (setupInternal1): Changed peerId.
  16302. * src/PeerInteractionCommand.h
  16303. (KEEP_ALIVE_INTERVAL): New definition.
  16304. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  16305. * src/main.cc
  16306. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  16307. * src/DownloadEngine.h: Removed unnecessary header includes.
  16308. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16309. To fix the bug that causes segfaults if a tracker returns a zero-length
  16310. list as "peers":
  16311. * src/TrackerUpdateCommand.cc
  16312. (execute): Added a check to see wether the type of peers is Data*.
  16313. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16314. * Release 0.5.0
  16315. To fix compile issue with gcc3:
  16316. * src/CancelMessage.h
  16317. (ID): Renamed as ID_t
  16318. (ID_t): New enum.
  16319. * src/RejectMessage.h
  16320. (ID): Renamed as ID_t
  16321. (ID_t): New enum.
  16322. * src/SuggestPieceMessage.h
  16323. (ID): Renamed as ID_t
  16324. (ID_t): New enum.
  16325. * src/AllowedFastMessage.h
  16326. (ID): Renamed as ID_t
  16327. (ID_t): New enum.
  16328. * src/PortMessage.h
  16329. (ID): Renamed as ID_t
  16330. (ID_t): New enum.
  16331. * src/HaveNoneMessage.h
  16332. (ID): Renamed as ID_t
  16333. (ID_t): New enum.
  16334. * src/KeepAliveMessage.h
  16335. (ID): Renamed as ID_t
  16336. (ID_t): New enum.
  16337. * src/HaveAllMessage.h
  16338. (ID): Renamed as ID_t
  16339. (ID_t): New enum.
  16340. * src/UnchokeMessage.h
  16341. (ID): Renamed as ID_t
  16342. (ID_t): New enum.
  16343. * src/BitfieldMessage.h
  16344. (ID): Renamed as ID_t
  16345. (ID_t): New enum.
  16346. * src/PieceMessage.h
  16347. (ID): Renamed as ID_t
  16348. (ID_t): New enum.
  16349. * src/RequestMessage.h
  16350. (ID): Renamed as ID_t
  16351. (ID_t): New enum.
  16352. * src/NotInterestedMessage.h
  16353. (ID): Renamed as ID_t
  16354. (ID_t): New enum.
  16355. * src/ChokeMessage.h
  16356. (ID): Renamed as ID_t
  16357. (ID_t): New enum.
  16358. * src/InterestedMessage.h
  16359. (ID): Renamed as ID_t
  16360. (ID_t): New enum.
  16361. * src/HaveMessage.h
  16362. (ID): Renamed as ID_t
  16363. (ID_t): New enum.
  16364. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16365. * src/PeerAbstractCommand.h
  16366. (beforeSocketCheck): Removed.
  16367. * src/PeerAbstractCommand.cc
  16368. Modified in order to call executeInternal() even if socket check
  16369. and upload limit check fail.
  16370. * src/PeerInteractionCommand.h
  16371. (keepAlive): Removed.
  16372. (sendKeepAlive): New function.
  16373. (checkHave): New function.
  16374. (beforeSocketCheck): Removed.
  16375. * src/PeerInteractionCommand.cc
  16376. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16377. calls to checkHave() and sendKeepAlive().
  16378. (keepAlive): Renamed to sendKeepAlive().
  16379. (sendKeepAlive): New function.
  16380. (beforeSocketCheck): Removed.
  16381. (checkHave): New function.
  16382. * src/BitfieldMan.cc
  16383. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16384. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16385. 0.
  16386. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16387. * src/TorrentMan.h
  16388. (UsedPieces): Removed.
  16389. (Pieces): New type definition.
  16390. * src/Piece.h: Updated doc.
  16391. * src/Peer.h
  16392. (totalLength): Removed.
  16393. * src/Peer.cc
  16394. (updateLatency): Fixed the latency calculation.
  16395. * src/TorrentMan.cc
  16396. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16397. than or equal to MAX_PEER_LIST_SIZE.
  16398. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16399. then return false.
  16400. (deleteOldErrorPeers): Rewritten.
  16401. (deleteUsedPiece): Fixed the miss use of STL remove.
  16402. * src/PeerInteraction.h
  16403. (Pieces): Removed.
  16404. (deleteTimeoutRequestSlot): Removed.
  16405. (deleteCompletedRequestSlot): Removed.
  16406. (checkRequestSlot): New function.
  16407. * src/PeerInteraction.cc
  16408. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16409. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16410. (checkRequestSlot): New function.
  16411. * src/DownloadEngine.cc
  16412. (run): Clear activeSockets before calling waitData().
  16413. (waitData): Removed a call to activeSockets.clear().
  16414. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16415. To attempt to handle EINTR:
  16416. * src/SocketCore.cc
  16417. (isReadable): Added EINTR handling.
  16418. (isWritable): Added EINTR handling.
  16419. To improve the performance:
  16420. * src/AbstractCommand.cc
  16421. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16422. * src/PeerInteractionCommand.h
  16423. (receiveMessage): Renamed as receiveMessages().
  16424. (receiveMessages): New function.
  16425. * src/PeerInteractionCommand.cc
  16426. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16427. () function. detectMessageFlooding() is moved here.
  16428. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16429. (). The flooding detection for have message is comment out.
  16430. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16431. Util::difftv().
  16432. (receiveMessage): Renamed as receiveMessages().
  16433. (receiveMessages): New function.
  16434. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16435. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16436. * src/SleepCommand.cc
  16437. (execute): Use Util::difftvsec() instead of Util::difftv().
  16438. * src/BitfieldMan.h
  16439. (getNthBitIndex): New function.
  16440. (hasMissingPiece): New function.
  16441. (getAllMissingIndexes): New function.
  16442. * src/BitfieldMan.cc
  16443. (countSetBit): Rewritten.
  16444. (getNthBitIndex): New function.
  16445. (getMissingIndexRandomly): Rewritten.
  16446. (hasMissingPiece): New function.
  16447. (getAllMissingIndexes): New function.
  16448. * src/TorrentMan.cc
  16449. (hasMissingPiece): New function.
  16450. (deleteUsedPiece): Rewritten using STL.
  16451. * src/PeerInteraction.cc
  16452. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16453. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16454. (addRequests): Updated the number of pending requests.
  16455. * src/PeerAbstractCommand.cc
  16456. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16457. (execute): Returns true if TorrentMan::isHalt() is true.
  16458. Corrected the condition of upload limit checking.
  16459. * src/Util.h
  16460. (countBit): New function.
  16461. * src/Util.cc
  16462. (nbits): New variable.
  16463. (countBit): New function.
  16464. * src/DownloadEngine.h
  16465. (SockCmdMap): New type definition.
  16466. (waitData): Added an argument.
  16467. (addSocket): Added an argument.
  16468. (addSocketForReadCheck): Added an argument.
  16469. (addSocketForWriteCheck): Added an argument.
  16470. * src/DownloadEngine.cc
  16471. (run): Executes only commands whose sockets are ready to read or write.
  16472. All commands are executed in every 1 second.
  16473. (waitData): Calls select() again if it returned
  16474. EINTR.
  16475. (addSocket): Saves socket and command object pair to the map.
  16476. (deleteSocket): Deletes socket and command object pair from the map.
  16477. (addSocketForReadCheck): Added an argument.
  16478. (addSocketForWriteCheck): Added an argument.
  16479. * src/DownloadCommand.cc
  16480. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16481. To send "event=stopped" to the tracker when the application finishes:
  16482. * src/PeerChokeCommand.h
  16483. (checkPoint): New variable.
  16484. * src/PeerChokeCommand.cc
  16485. (PeerChokeCommand): Added the initialization of checkPoint.
  16486. (execute): The interval check is now done by checkPoint, not
  16487. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16488. * src/TorrentMan.h
  16489. (halt): New function.
  16490. (hasMissingPiece): New function.
  16491. (isHalt): New function.
  16492. (setHalt): New function.
  16493. * src/TorrentMan.cc
  16494. (TorrentMan): Added the initialization of halt.
  16495. * src/TorrentAutoSaveCommand.h
  16496. (checkPoint): New variable.
  16497. * src/PeerListenCommand.cc
  16498. (execute): Returns true if TorrentMan::isHalt() is true.
  16499. * src/main.cc
  16500. (setSignalHander): Added flags argument.
  16501. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16502. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16503. Removed printDownloadAbortMessage() after torrent downloading loop.
  16504. * src/TorrentAutoSaveCommand.cc
  16505. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16506. (execute): Returns true if TorrentMan::isHalt() is true.
  16507. The interval check is now done by checkPoint, not SleepCommand.
  16508. * src/TrackerWatcherCommand.cc
  16509. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16510. event=stopped.
  16511. * src/TrackerUpdateCommand.cc
  16512. (prepareForRetry): Do not use SleepCommand here.
  16513. (execute): Returns true if TorrentMan::isHalt() is true.
  16514. Others:
  16515. * src/TorrentMan.cc
  16516. (getMissingPieceIndex): Updated log message.
  16517. * src/PeerInteraction.cc
  16518. (createPeerMessag): Updated log message.
  16519. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16520. To add the ability to download several pieces in mix in a command and
  16521. increase the number of request slots according to request-cancel
  16522. latency:
  16523. * src/PeerInteractionCommand.cc
  16524. (executeInternal): The number of messages to be received at a time
  16525. is increased from 10 to 50.
  16526. * src/LogFactory
  16527. (getInstance): Added NullLogger.
  16528. * src/NullLogger.h: New class.
  16529. * src/BitfieldMan.h
  16530. (getMissingIndex): New function.
  16531. * src/BitfieldMan.cc
  16532. (getMissingIndex): New function.
  16533. * src/TorrentMan.h
  16534. (checkOutPiece): New function.
  16535. (getMissingPieceIndex): New function.
  16536. (getMissingFastPieceIndex): New function.
  16537. (getMissingFastPiece): New function.
  16538. * src/TorrentMan.cc
  16539. (updatePiece): Rewritten using STL.
  16540. (syncPiece): Rewritten using STL.
  16541. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16542. checkOutPiece().
  16543. (getMissingPieceIndex): New function.
  16544. (getMissingFastPieceIndex): New function.
  16545. (getMissingFastPiece): New function.
  16546. (checkOutPiece): New function.
  16547. * src/PeerInteraction.h
  16548. (Pieces): New type definition.
  16549. (piece): Removed.
  16550. (pieces): New variable.
  16551. (getNewPieceAndSendInterest): Added the "piece" argument.
  16552. (abortPiece): Added the "piece" argument.
  16553. (abortAllPieces): New function.
  16554. (isInRequestSlot): New function.
  16555. (hasDownloadPiece): Added the "index" argument.
  16556. (setDownloadPiece): Removed.
  16557. (getDownloadPiece): Added the "index" argument.
  16558. (updatePiece): New function.
  16559. (createRequestMessage): Added the "index" argument.
  16560. * src/PeerInteraction.cc
  16561. (onChoked): Rewritten.
  16562. (abortPiece): Rewirtten.
  16563. (abortAllPieces): New function.
  16564. (deleteTimeoutRequestSlot): Rewritten.
  16565. Clarified code a little bit.
  16566. (deleteCompletedRequestSlot): Rewritten.
  16567. (isInRequestSlot): New function.
  16568. (syncPiece): Rewritten.
  16569. (updatePiece): New function.
  16570. (getNewPieceAndSendInterest): Rewritten.
  16571. (addRequests): Rewritten.
  16572. (getDownloadPiece): Rewritten.
  16573. (hasDownloadPiece): Rewritten.
  16574. (createRequestMessage): Added the "index" argument.
  16575. * src/common.h
  16576. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16577. (DIV_FLOOR): New definition.
  16578. * src/PieceMessage.cc
  16579. (receivedAction): Update request-piece latency here.
  16580. * src/RequestSlot.h
  16581. (getLatencyInMillis): New function.
  16582. * src/RequestSlot.cc
  16583. (isTimeout): Rewritten using getLatencyInMillis.
  16584. (getLatencyInMillis): New function.
  16585. * src/Piece.h
  16586. (operator==): New function.
  16587. (getMissingBlockIndex): New function.
  16588. * src/Piece.cc
  16589. (operator==): New function.
  16590. (getMissingBlockIndex): New function.
  16591. * src/Peer.h
  16592. (DEFAULT_LATENCY): New definition.
  16593. (latency): New variable.
  16594. (updateLatency): New function.
  16595. (getLatency): New function.
  16596. * src/Peer.cc
  16597. (resetStatus): Reset latecy.
  16598. (updateLatency): New function.
  16599. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16600. * src/SocketCore.cc
  16601. (isReadable): Added secure to the condition.
  16602. * src/HttpConnection.cc
  16603. (receiveResponse): Fixed a bug that causes no response header
  16604. exception.
  16605. * src/Peer.h
  16606. (getFastSet): Fixed the return value type.
  16607. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16608. To remove a wait from download loop:
  16609. * src/DownloadEngine.cc
  16610. (run): Comment out shortSleep.
  16611. To rewrite the message handling:
  16612. * src/SimplePeerMessage.h: New class.
  16613. * src/SimplePeerMessage.cc: New class.
  16614. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16615. (msg): New variable.
  16616. (create): New function.
  16617. (send): Removed.
  16618. (getMessage): New function.
  16619. (getMessageLength): New function.
  16620. * src/CancelMessage.cc
  16621. (create): New function.
  16622. (receivedAction): Replaced deleteRequestMessageInQueue with
  16623. rejectPieceMessageInQueue.
  16624. (send): Removed.
  16625. (getMessage): New function.
  16626. (getMessageLength): New function.
  16627. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16628. (msg): New variable.
  16629. (msgLength): New variable.
  16630. (~BitfieldMessage): Deleted msg.
  16631. (send): Removed.
  16632. (getMessage): New function.
  16633. (getMessageLength): New function.
  16634. * src/BitfieldMessage.cc
  16635. (create): New function.
  16636. (send): Removed.
  16637. (getMessage): New function.
  16638. (getMessageLength): New function.
  16639. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16640. (msg): New variable.
  16641. (sendPredicate): New function.
  16642. (onSendComplete): New function.
  16643. (send): Removed.
  16644. (getMessage): New function.
  16645. (getMessageLength): New function.
  16646. (create): New function.
  16647. * src/ChokeMessage.cc
  16648. (create): New function.
  16649. (send): Removed.
  16650. (sendPredicate): New function.
  16651. (getMessage): New function.
  16652. (getMessageLength): New function.
  16653. (onSendComplete): New function.
  16654. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16655. (msg): New variable.
  16656. (send): Removed.
  16657. (getMessage): New function.
  16658. (getMessageLength): New function.
  16659. * src/KeepAliveMessage.cc
  16660. (send): Removed.
  16661. (getMessage): New function.
  16662. (getMessageLength): New function.
  16663. * src/PortMessage.h
  16664. (create): New function.
  16665. (receivedAction): Updated log message.
  16666. * src/PortMessage.cc: New file.
  16667. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16668. (msg): New variable.
  16669. (sendPredicate): New function.
  16670. (onSendComplete): New function.
  16671. (create): New function.
  16672. (send): Removed.
  16673. (getMessage): New function.
  16674. (getMessageLength): New function.
  16675. * src/UnchokeMessage.cc
  16676. (create): New function.
  16677. (send): Removed.
  16678. (sendPredicate): New function.
  16679. (getMessage): New function.
  16680. (getMessageLength): New function.
  16681. (onSendComplete): New function.
  16682. * src/PieceMessage.h
  16683. (leftPieceDataLength): Removed.
  16684. (leftDataLength): New variable.
  16685. (headerSend): New variable.
  16686. (pendingCount): New variable.
  16687. (msgHeader): New variable.
  16688. (sendPieceData): New function.
  16689. (incrementPendingCount): New function.
  16690. (isPendingCountMax): New function.
  16691. (create): New function.
  16692. (getMessageHeader): New function.
  16693. (getMessageHeaderLength): New function.
  16694. * src/PieceMessage.cc
  16695. (create): New function.
  16696. (getMessageHeader): New function.
  16697. (getMessageHeaderLength): New function.
  16698. (send): Rewritten.
  16699. (sendPieceData): New function.
  16700. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16701. (msg): New variable.
  16702. (create): New function.
  16703. (getMessage): New function.
  16704. (getMessageLength): New function.
  16705. * src/HaveMessage.cc
  16706. (create): New function.
  16707. (send): Removed.
  16708. (sendPieceData): New function.
  16709. (getMessage): New function.
  16710. (getMessageLength): New function.
  16711. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16712. (msg): New variable.
  16713. (create): New function.
  16714. (send): Removed.
  16715. (getMessage): New function.
  16716. (getMessageLength): New function.
  16717. * src/RequestMessage.cc
  16718. (create): New function.
  16719. (receivedAction): Added the handling of fast extension.
  16720. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16721. (send): Removed.
  16722. (getMessage): New function.
  16723. (getMessageLength): New function.
  16724. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16725. (msg): New variable.
  16726. (sendPredicate): New function.
  16727. (onSendComplete): New function.
  16728. (create): New function.
  16729. (getMessage): New function.
  16730. (getMessageLength): New function.
  16731. * src/InterestedMessage.cc
  16732. (create): New function.
  16733. (send): Removed.
  16734. (sendPieceData): New function.
  16735. (getMessage): New function.
  16736. (getMessageLength): New function.
  16737. (onSendComplete): New function.
  16738. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16739. (msg): New variable.
  16740. (sendPieceData): New function.
  16741. (onSendComplete): New function.
  16742. (create): New function.
  16743. (send): Removed.
  16744. (getMessage): New function.
  16745. (getMessageLength): New function.
  16746. * src/NotInterestedMessage.cc
  16747. (create): New function.
  16748. (send): Removed.
  16749. (sendPredicate): New function.
  16750. (getMessage): New function.
  16751. (getMessageLength): New function.
  16752. (onSendComplete): New function.
  16753. * src/AllowedFastMessage.h: New class.
  16754. * src/AllowedFastMessage.cc: New class.
  16755. * src/RejectMessage.h: New class.
  16756. * src/RejectMessage.cc: New class.
  16757. * src/SuggestPieceMessage.h: New class.
  16758. * src/SuggestPieceMessage.cc: New class.
  16759. * src/HaveAllMessage.h: New class.
  16760. * src/HaveAllMessage.cc: New class.
  16761. * src/HaveNoneMessage.h: New class.
  16762. * src/HaveNoneMessage.cc: New class.
  16763. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16764. (msg): New variable.
  16765. (reserved): New variable.
  16766. (create): New function.
  16767. (getId): New function.
  16768. (receivedAction): New function.
  16769. (getMessage): New function.
  16770. (getMessageLength): New function.
  16771. (isFastExtensionSupported): New function.
  16772. * src/HandshakeMessage.cc
  16773. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16774. (create): New function.
  16775. (getMessage): New function.
  16776. (getMessageLength): New function.
  16777. (toString): Added the output of reserved field.
  16778. (check): Added const qualifier.
  16779. (isFastExtensionSupported): New function.
  16780. * src/PeerMessageUtil.h
  16781. (createChokeMessage): Removed.
  16782. (createUnchokeMessage): Removed.
  16783. (createInterestedMessage): Removed.
  16784. (createNotInterestedMessage): Removed.
  16785. (createHaveMessage): Removed.
  16786. (createBitfieldMessage): Removed.
  16787. (createRequestMessage): Removed.
  16788. (createCancelMessage): Removed.
  16789. (createPieceMessage): Removed.
  16790. (createPortMessage): Removed.
  16791. (createChokeMessage): Removed.
  16792. (createUnchokeMessage): Removed.
  16793. (createInterestedMessage): Removed.
  16794. (createNotInterestedMessage): Removed.
  16795. (createHaveMessage): Removed.
  16796. (createBitfieldMessage): Removed.
  16797. (createRequestMessage): Removed.
  16798. (createCancelMessage): Removed.
  16799. (createPieceMessage): Removed.
  16800. (createKeepAliveMessage): Removed.
  16801. (createHandshakeMessage): Removed.
  16802. (setIntParam): New function.
  16803. (createPeerMessageString): New function.
  16804. * src/PeerMessageUtil.cc
  16805. (createChokeMessage): Removed.
  16806. (createUnchokeMessage): Removed.
  16807. (createInterestedMessage): Removed.
  16808. (createNotInterestedMessage): Removed.
  16809. (createHaveMessage): Removed.
  16810. (createBitfieldMessage): Removed.
  16811. (createRequestMessage): Removed.
  16812. (createCancelMessage): Removed.
  16813. (createPieceMessage): Removed.
  16814. (createPortMessage): Removed.
  16815. (createRequestMessage): Removed.
  16816. (createCancelMessage): Removed.
  16817. (createPieceMessage): Removed.
  16818. (createHaveMessage): Removed.
  16819. (createChokeMessage): Removed.
  16820. (createUnchokeMessage): Removed.
  16821. (createInterestedMessage): Removed.
  16822. (createNotInterestedMessage): Removed.
  16823. (createBitfieldMessage): Removed.
  16824. (createKeepAliveMessage): Removed.
  16825. (createHandshakeMessage): Removed.
  16826. (setIntParam): New function.
  16827. (createPeerMessageString): New function.
  16828. * src/PeerConnection.h
  16829. (peer): Removed.
  16830. (torrentMan): Removed.
  16831. (createNLengthMessage): Removed.
  16832. (setIntParam): Removed.
  16833. (writeOutgoingMessageLog): Removed all overloaded functions.
  16834. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16835. (sendMessage): New function.
  16836. (sendHandshake): Removed.
  16837. (sendKeepAlive): Removed.
  16838. (sendChoke): Removed.
  16839. (sendUnchoke): Removed.
  16840. (sendInterested): Removed.
  16841. (sendNotInterested): Removed.
  16842. (sendHave): Removed.
  16843. (sendBitfield): Removed.
  16844. (sendRequest): Removed.
  16845. (sendPiece): Removed.
  16846. (sendPieceHeader): Removed.
  16847. (sendPieceData): Removed.
  16848. (sendCancel): Removed.
  16849. (getPeer): Removed.
  16850. * src/PeerConnection.cc
  16851. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16852. (sendHandshake): Removed.
  16853. (sendKeepAlive): Removed.
  16854. (createNLengthMessage): Removed.
  16855. (setIntParam): Removed.
  16856. (writeOutgoingMessageLog): Removed all overloaded functions.
  16857. (sendChoke): Removed.
  16858. (sendUnchoke): Removed.
  16859. (sendInterested): Removed.
  16860. (sendNotInterested): Removed.
  16861. (sendHave): Removed.
  16862. (sendBitfield): Removed.
  16863. (sendRequest): Removed.
  16864. (sendPiece): Removed.
  16865. (sendPieceHeader): Removed.
  16866. (sendPieceData): Removed.
  16867. (sendMessage): New function.
  16868. (sendCancel): Removed.
  16869. * src/PeerInteractionCommand.cc
  16870. (PeerInteractionCommand): Call setUploadLimit.
  16871. (executeInternal): Call setUploadLimit.
  16872. Added the handling of "inProgress" state of handshake message.
  16873. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16874. sendNow().
  16875. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16876. sendNow().
  16877. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16878. * src/TorrentMan.h
  16879. (PEER_ID_LENGTH): New definition.
  16880. (hasAllPieces): New function.
  16881. * src/TorrentMan.cc
  16882. (getMissingPiece): Added the handling of fast extension.
  16883. (cancelPiece): Call updatePiece().
  16884. (hasAllPieces): New function.
  16885. * src/PeerInteraction.h
  16886. (fastSet): New variable.
  16887. (getNewPieceAndSendInterest): Changed the return type to void.
  16888. (send): Renamed as sendMessages.
  16889. (deleteAllRequestSlot): Removed.
  16890. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16891. (cancelAllRequest): Removed all overloaded functions.
  16892. (deleteAllRequestSlot): Removed.
  16893. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16894. (rejectPieceMessageInQueue): New function.
  16895. (rejectAllPieceMessageInQueue): New function.
  16896. (onChoked): New function.
  16897. (isSendingMessageInProgress): New function.
  16898. (getCorrespondingRequestSlot): Changed its arguments.
  16899. (isInFastSet): New function.
  16900. (addFastSetIndex): New function.
  16901. (addRequests): New function.
  16902. (sendNow): Removed.
  16903. (trySendNow): Removed.
  16904. (sendBitfield): New function.
  16905. (sendAllowdFast): New function.
  16906. (createHaveAllMessage): New function.
  16907. (createHaveNoneMessage): New function.
  16908. (createRejectMessage): New function.
  16909. (createAllowedFastMessage): New function.
  16910. * src/PeerInteraction.cc
  16911. (send): Renamed as sendMessages.
  16912. (sendMessages): New function.
  16913. (MsgPushBack): New class.
  16914. (isSendingMessageInProgress): New function.
  16915. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16916. (rejectAllPieceMessageInQueue): New function.
  16917. Added the handling of fast extension.
  16918. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16919. (rejectPieceMessageInQueue): New function.
  16920. Added the handling of fast extension.
  16921. (deleteRequestSlot): Replaced for loop with std::find.
  16922. (onChoked): New function.
  16923. (deleteAllRequestSlot): Removed.
  16924. (abortPiece): Rewirtten.
  16925. (deleteTimeoutRequestSlot): Updated log messages.
  16926. (getCorrespondingRequestSlot): Changed its arguments.
  16927. (cancelAllRequest): Removed all overloaded functions.
  16928. (receiveHandshake): Added the check to see whether an incoming peer
  16929. supports fast extension.
  16930. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16931. PeerMessageUtil.
  16932. (createPeerMessage): Use create() of each message class instead of
  16933. PeerMessageUtil.
  16934. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16935. AllowedFastMessage were added.
  16936. (getNewPieceAndSendInterest): Changed its return value type to void.
  16937. Added the handling of fast extension.
  16938. (addRequests): New function.
  16939. (sendNow): Removed.
  16940. (sendHandshake): Rewritten.
  16941. (trySendNow): Removed.
  16942. (sendBitfield): New function.
  16943. (sendAllowdFast): New function.
  16944. (isInFastSet): New function.
  16945. (addFastSetIndex): New function.
  16946. (createRequestMessage): Use RequestMessage::create instead of
  16947. PeerMessageUtil.
  16948. (createCancelMessage): Use CancelMessage::create instead of
  16949. PeerMessageUtil.
  16950. (createPieceMessage): Use PieceMessage::create instead of
  16951. PeerMessageUtil.
  16952. (createHaveMessage): Use HaveMessage::create instead of
  16953. PeerMessageUtil.
  16954. (createChokeMessage): Use ChokeMessage::create instead of
  16955. PeerMessageUtil.
  16956. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16957. PeerMessageUtil.
  16958. (createInterestedMessage): Use InterestedMessage::create instead of
  16959. PeerMessageUtil.
  16960. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16961. of PeerMessageUtil.
  16962. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16963. PeerMessageUtil.
  16964. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16965. PeerMessageUtil.
  16966. (createHaveAllMessage): New function.
  16967. (createHaveNoneMessage): New function.
  16968. (createRejectMessage): New function.
  16969. (createAllowedFastMessage: New function.
  16970. * src/Util.h
  16971. (sha1Sum): New function.
  16972. (computeFastSet): New function.
  16973. * src/Util.cc
  16974. (sha1Sum): New function.
  16975. (computeFastSet): New function.
  16976. * src/Peer.h
  16977. (fastExtensionEnabled): New variable.
  16978. (fastSet): New variable.
  16979. (setAllBitfield): New function.
  16980. (setFastExtensionEnabled): New function.
  16981. (isFastExtensionEnabled): New function.
  16982. (addFastSetIndex): New function.
  16983. (getFastSet): New function.
  16984. (isInFastSet): New function.
  16985. (countFastSet): New function.
  16986. * src/Peer.cc
  16987. (isInFastSet): New function.
  16988. (addFastSetIndex): New function.
  16989. (setAllBitfield): New function.
  16990. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16991. sockets.
  16992. * src/PeerAbstractCommand.cc
  16993. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16994. and uploadLimit.
  16995. (execute): Changed the procedure of checking sockets. The upload speed
  16996. checking were added.
  16997. (setUploadLimit): New function.
  16998. (setUploadLimitCheck): New function.
  16999. * src/PeerAbstractCommand.h
  17000. (setUploadLimit): New function.
  17001. (setUploadLimitCheck): New function.
  17002. (uploadLimit): New variable.
  17003. (uploadLimitCheck): New variable.
  17004. To contact a tracker regularly:
  17005. * src/TrackerWatcherCommand.h (interval): New variable.
  17006. (checkPoint): New variable.
  17007. (TrackerWatcherCommand): Added interval argument.
  17008. * src/TrackerWatcherCommand.cc
  17009. (TrackerWatcherCommand): Initialized checkPoint.
  17010. (execute): Now a tracker is contacted in every specified period.
  17011. If peer list is not needed, send request with numwant=0.
  17012. * src/TrackerUpdateCommand.cc
  17013. (execute): Updated log messages.
  17014. * src/DownloadEngine.cc
  17015. (~DownloadEngine): Removed two asserts.
  17016. (waitData): Uncommented wfds. May be a bug fix.
  17017. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17018. * src/PeerInteractionCommand.h
  17019. (checkInactiveConnection): Removed.
  17020. * src/PeerInteractionCommand.cc
  17021. (executeInternal): Removed following function calls:
  17022. detectMessageFlooding(), checkLongTimePeerChoking and
  17023. checkInactiveConnection().
  17024. (checkInactiveConnection): Removed.
  17025. (detectMessageFlooding): Removed function call to
  17026. checkInactiveConnection().
  17027. * src/PeerMessageUtil.h
  17028. (createChokeMessage): New function. Overload.
  17029. (createUnchokeMessage): New function. Overload.
  17030. (createInterestedMessage): New function. Overload.
  17031. (createNotInterestedMessage): New function. Overload.
  17032. (createHaveMessage): New function. Overload.
  17033. (createBitfieldMessage): New function. Overload.
  17034. (createRequestMessage): New function. Overload.
  17035. (createCancelMessage): New function. Overload.
  17036. (createPieceMessage): New function. Overload.
  17037. (createKeepAliveMessage): New function. Overload.
  17038. * src/PeerMessageUtil.cc
  17039. (createChokeMessage): New function. Overload.
  17040. (createUnchokeMessage): New function. Overload.
  17041. (createInterestedMessage): New function. Overload.
  17042. (createNotInterestedMessage): New function. Overload.
  17043. (createHaveMessage): New function. Overload.
  17044. (createBitfieldMessage): New function. Overload.
  17045. (createRequestMessage): New function. Overload.
  17046. (createCancelMessage): New function. Overload.
  17047. (createPieceMessage): New function. Overload.
  17048. (createKeepAliveMessage): New function. Overload.
  17049. * src/SendMessageQueue.cc
  17050. (createRequestMessage): Use PeerMessageUtil.
  17051. (createCancelMessage): Use PeerMessageUtil.
  17052. (createPieceMessage): Use PeerMessageUtil.
  17053. (createHaveMessage): Use PeerMessageUtil.
  17054. (createChokeMessage): Use PeerMessageUtil.
  17055. (createUnchokeMessage): Use PeerMessageUtil.
  17056. (createInterestedMessage): Use PeerMessageUtil.
  17057. (createNotInterestedMessage): Use PeerMessageUtil.
  17058. (createBitfieldMessage): Use PeerMessageUtil.
  17059. (createKeepAliveMessage): Use PeerMessageUtil.
  17060. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  17061. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  17062. * src/PeerInteraction.h: New class.
  17063. * src/PeerInteraction.cc: New class.
  17064. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17065. Each peer message has its own class.
  17066. * src/PendingMessages.h: Removed.
  17067. * src/PendingMessages.cc: Removed. The sending process was moved to
  17068. each message class.
  17069. * src/RequestSlotMan.h: Removed.
  17070. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  17071. SendMessageQueue.
  17072. * src/RequestMessage.h: New class.
  17073. * src/RequestMessage.cc: New class.
  17074. * src/CancelMessage.h: New class.
  17075. * src/CancelMessage.cc: New class.
  17076. * src/BitfieldMessage.h: New class.
  17077. * src/BitfieldMessage.cc: New class.
  17078. * src/ChokeMessage.h: New class.
  17079. * src/ChokeMessage.cc: New class.
  17080. * src/KeepAliveMessage.h: New class.
  17081. * src/KeepAliveMessage.cc: New class.
  17082. * src/PortMessage.h: New class.
  17083. * src/UnchokeMessage.h: New class.
  17084. * src/UnchokeMessage.cc: New class.
  17085. * src/PieceMessage.h: New class.
  17086. * src/PieceMessage.cc: New class.
  17087. * src/HaveMessage.h: New class.
  17088. * src/HaveMessage.cc: New class.
  17089. * src/BitfieldMessage.h: New class.
  17090. * src/BitfieldMessage.cc: New class.
  17091. * src/NotInterestedMessage.h: New class.
  17092. * src/NotInterestedMessage.cc: New class.
  17093. * src/InterestedMessage.h: New class.
  17094. * src/InterestedMessage.cc: New class.
  17095. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  17096. (getSendMessageQueue): New function.
  17097. (setSendMessageQueue): New function.
  17098. * src/HandshakeMessage.cc: New class.
  17099. * src/PeerConnection.h (receiveMessage): Changed return value and
  17100. arguments.
  17101. (receiveHandshake): Changed return value and arguments.
  17102. * src/PeerConnection.cc (receiveMessage): Do not create message class
  17103. here.
  17104. (receiveHandshake): Do not create handshake class here.
  17105. * src/PeerInteractionCommand.h (peerConnection): Removed.
  17106. (piece): Removed.
  17107. (syncPiece): Removed.
  17108. (sendInterest): Removed.
  17109. (sendMessages): Removed.
  17110. (createRequestPendingMessage): Removed.
  17111. (checkPieceHash): Removed.
  17112. (erasePieceOnDisk): Removed.
  17113. (getNewPieceAndSendInterest): Removed.
  17114. (onGotNewPice): Removed.
  17115. (onGotWrongPiece): Removed.
  17116. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17117. Removed peerConnection, piece.
  17118. (~PeerInteractionCommand): Removed peerConnection.
  17119. (executeInternal): Use sendMessageQueue instead of peerConnection.
  17120. (syncPiece): Moved to SendMessageQueue.
  17121. (decideChoking): Removed PendingMessage.
  17122. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  17123. The action after receiving peer message was moved to each message
  17124. class.
  17125. (onGotNewPice): Moved to SendMessageQueue.
  17126. (onGotWrongPiece): Moved to SendMessageQueue.
  17127. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  17128. (sendInterest): Moved to SendMessageQueue.
  17129. (createRequestPendingMessage): Removed.
  17130. (sendMessages): Moved to SendMessageQueue.
  17131. (onAbort): Use SendMessageQueue::abortPiece()
  17132. (keepAlive): Use sendMessageQueue instead of peerConnection.
  17133. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  17134. (checkPieceHash): Moved to SendMessageQueue.
  17135. (erasePieceOnDisk): Moved to SendMessageQueue.
  17136. * src/PeerMessageUtil.h
  17137. (createBitfieldMessage): Removed.
  17138. (createHaveMessage): Changed return value and arguments.
  17139. (createBitfieldMessage): Changed return value and arguments.
  17140. (createRequestCancelMessage): Removed.
  17141. (createPieceMessage): Changed return value and arguments.
  17142. (getShortIntParam): New function.
  17143. (checkIndex): Changed arguments.
  17144. (checkBegin): Changed arguments.
  17145. (checkLength): Changed arguments.
  17146. (checkPieceOffset): Removed.
  17147. (checkRange): New function.
  17148. (checkBitfield): Changed arguments.
  17149. (createPeerMessage): Removed.
  17150. (checkIntegrity): Removed.
  17151. (createHandshakeMessage): Changed arguments.
  17152. (createChokeMessage): New function.
  17153. (createUnchokeMessage): New function.
  17154. (createInterestedMessage): New function.
  17155. (createNotInterestedMessage): New function.
  17156. (createRequestMessage): New function.
  17157. (createCancelMessage): New function.
  17158. (createPortMessage): New function.
  17159. * src/PeerMessageUtil.cc
  17160. (createBitfieldMessage): Removed.
  17161. (createHaveMessage): Changed return value and arguments.
  17162. (createBitfieldMessage): Changed return value and arguments.
  17163. (createRequestCancelMessage): Removed.
  17164. (createPieceMessage): Changed return value and arguments.
  17165. (getShortIntParam): New function.
  17166. (checkIndex): Changed arguments.
  17167. (checkBegin): Changed arguments.
  17168. (checkLength): Changed arguments.
  17169. (checkPieceOffset): Removed.
  17170. (checkRange): New function.
  17171. (checkBitfield): Changed arguments.
  17172. (createPeerMessage): Removed.
  17173. (checkIntegrity): Removed.
  17174. (createHandshakeMessage): Changed arguments.
  17175. (createChokeMessage): New function.
  17176. (createUnchokeMessage): New function.
  17177. (createInterestedMessage): New function.
  17178. (createNotInterestedMessage): New function.
  17179. (createRequestMessage): New function.
  17180. (createCancelMessage): New function.
  17181. (createPortMessage): New function.
  17182. * src/PeerMessage.h
  17183. (id): Removed.
  17184. (index): Removed.
  17185. (begin): Removed.
  17186. (length): Removed.
  17187. (bitfield): Removed.
  17188. (bitfieldLength): Removed.
  17189. (block): Removed.
  17190. (blockLength): Removed.
  17191. (inProgress): New variable.
  17192. (cuid): New variable.
  17193. (peer): New variable.
  17194. (sendMessageQueue): New variable.
  17195. (logger): New variable.
  17196. (setBitfield): Removed.
  17197. (getBitfield): Removed.
  17198. (setBlock): Removed.
  17199. (getBlock): Removed.
  17200. (getBitfieldLength): Removed.
  17201. (getBlockLength): Removed.
  17202. (isInProgress): New function.
  17203. (toString): Made pure virtual.
  17204. (check): New function.
  17205. (send): New function.
  17206. (receivedAction): New function.
  17207. (getId): Made pure virtual.
  17208. (setId): Removed.
  17209. (getIndex): Removed.
  17210. (setIndex): Removed.
  17211. (getBegin): Removed.
  17212. (setBegin): Removed.
  17213. (getLength): Removed.
  17214. (setLength): Removed.
  17215. (getCuid): New function.
  17216. (setCuid): New function.
  17217. (getPeer): New function.
  17218. (setPeer): New function.
  17219. (getSendMessageQueue): New function.
  17220. (setSendMessageQueue): New function.
  17221. (ID): Removed.
  17222. * src/PeerMessage.cc
  17223. (setBitfield): Removed.
  17224. (setBlock): Removed.
  17225. (toString): Removed.
  17226. * src/TorrentMan.h
  17227. (getPieceLength): New function.
  17228. (getPieceLength): New function.
  17229. * src/SendMessageQueue.h
  17230. (REQUEST_TIME_OUT): New definition.
  17231. (RequestSlots): New definition.
  17232. (MessageQueue): New definition.
  17233. (requestSlotMan): Removed.
  17234. (pendingMessages): Removed.
  17235. (requestSlots): New variable.
  17236. (messageQueue): New variable.
  17237. (torrentMan): New variable.
  17238. (peerConnection): New variable.
  17239. (peer): New variable.
  17240. (piece): New variable.
  17241. (getNewPieceAndSendInterest): New function.
  17242. (createPeerMessage): New function.
  17243. (createHandshakeMessage): New function.
  17244. (send): Made private.
  17245. (setPeerMessageCommonProperty): New function.
  17246. (deleteAllRequestSlot): New function.
  17247. (deleteRequestMessageInQueue): New function.
  17248. (cancelAllRequest): Made private.
  17249. (cancelAllRequest): Made private.
  17250. (countRequestSlot): Made private.
  17251. (addPendingMessage): Removed.
  17252. (deletePendingPieceMessage): Removed.
  17253. (deletePendingRequestMessage): Removed.
  17254. (addMessage): New function.
  17255. (deletePieceMessageInQueue): New function.
  17256. (deleteTimeoutRequestSlot): Changed argument.
  17257. (deleteCompletedRequestSlot): Changed argument.
  17258. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  17259. (getCorrespondingRequestSlot): New function.
  17260. (countPendingMessage): Removed.
  17261. (countMessageInQueue): New function.
  17262. (getTorrentMan): New function.
  17263. (getPeerConnection): New function.
  17264. (hasDownloadPiece): New function.
  17265. (getDownloadPiece): New function.
  17266. (setDownloadPiece): New function.
  17267. (syncPiece): New function.
  17268. (sendMessages): New function.
  17269. (sendNow): New function.
  17270. (trySendNow): New function.
  17271. (abortPiece): New function.
  17272. (sendHandshake): New function.
  17273. (receiveMessage): New function.
  17274. (receiveHandshake): New function.
  17275. (createRequestMessage): New function.
  17276. (createCancelMessage): New function.
  17277. (createPieceMessage): New function.
  17278. (createHaveMessage): New function.
  17279. (createChokeMessage): New function.
  17280. (createUnchokeMessage): New function.
  17281. (createInterestedMessage): New function.
  17282. (createNotInterestedMessage): New function.
  17283. (createBitfieldMessage): New function.
  17284. (createKeepAliveMessage): New function.
  17285. * src/SendMessageQueue.cc
  17286. (SendMessageQueue): Removed requestSlotMan.
  17287. Instantiated peerConnection here.
  17288. (~SendMessageQueue): Removed requestSlotMan.
  17289. Added deletion of peerConnection and the contents of messageQueue.
  17290. (send): Updated according to the change of messageQueue.
  17291. (addPendingMessage): Renamed to addMessage.
  17292. (addMessage): New function.
  17293. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  17294. (deletePieceMessageInQueue): New function.
  17295. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  17296. (deleteRequestMessageInQueue): New function.
  17297. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  17298. here.
  17299. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  17300. (...) was moved here.
  17301. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  17302. moved here.
  17303. (deleteCompletedRequestSlot):
  17304. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  17305. (getCorrespondingRequestSlot):
  17306. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  17307. And renamed to getCorrespondingRequestSlot, correcting a typo.
  17308. (countPendingMessage): Renamed to countMessageInQueue.
  17309. (countMessageInQueue): New function.
  17310. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  17311. (receiveHandshake): New function.
  17312. (createHandshakeMessage): New function.
  17313. (receiveMessage): New function.
  17314. (createPeerMessage): New function.
  17315. (syncPiece): New function.
  17316. (getNewPieceAndSendInterest): New function.
  17317. (sendMessages): New function.
  17318. (sendNow): New function.
  17319. (trySendNow): New function.
  17320. (sendHandshake): New function.
  17321. (abortPiece): New function.
  17322. (getDownloadPiece): New function.
  17323. (getPeerMessageCommonProperty): New function.
  17324. (createRequestMessage): New function.
  17325. (createCancelMessage): New function.
  17326. (createPieceMessage): New function.
  17327. (createHaveMessage): New function.
  17328. (createChokeMessage): New function.
  17329. (createUnchokeMessage): New function.
  17330. (createInterestedMessage): New function.
  17331. (createNotInterestedMessage): New function.
  17332. (createBitfieldMessage): New function.
  17333. (createKeepAliveMessage): New function.
  17334. To add simple Content-Disposition support:
  17335. * src/HttpResponseCommand.h (determinFilename): New function.
  17336. * src/HttpResponseCommand.cc (executeInternal):
  17337. Use determinFilename(headers) instead of req->getFile() when comparing
  17338. filename.
  17339. (determinFilename): New function.
  17340. (handleDefaultEncoding): Use determinFilename(headers) instead of
  17341. req->getFile().
  17342. (handleOtherEncoding): Use determinFilename(headers) instead of
  17343. req->getFile().
  17344. * src/Util.h (getContentDispositionFilename): New function.
  17345. * src/Util.cc (getContentDispositionFilename): New function.
  17346. * src/LogFactory.h (release): New function.
  17347. * src/LogFactory.cc (release): New function.
  17348. To fix a bug that causes out-of-bound exception when HTTP status
  17349. line is wrong:
  17350. * src/HttpConnection.cc (receiveResponse): Added a check for header
  17351. size.
  17352. * src/common.h (Deleter): New class.
  17353. * src/SegmentMan.cc
  17354. (~SegmentMan): Added deletion of splitter and diskWriter.
  17355. * src/DownloadEngine.h
  17356. (Commands): Use deque.
  17357. (clearQueue): New function.
  17358. * src/DownloadEngine.cc
  17359. (~DownloadEngine): Added deletion of segmentMan.
  17360. (cleanQueue): New function.
  17361. * src/TorrentDownloadEngine.h
  17362. (TorrentDownloadEngine): The implementation was moved to
  17363. TorrentDownloadEngine.cc.
  17364. (~TorrentDownloadEngine): The implementation was moved to
  17365. TorrentDownloadEngine.cc.
  17366. * src/TorrentDownloadEngine.cc
  17367. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17368. * src/main.cc
  17369. (clearRequest): Removed.
  17370. (handler): Added deletion of e.
  17371. (torrentHandler): Added deletion of te.
  17372. (main): Do not share splitter.
  17373. Use Deleter instead of clearRequest.
  17374. Deletion of classes were updated.
  17375. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17376. * src/main.cc (main): Fixed typo.
  17377. * src/message.h: Fixed typo.
  17378. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17379. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17380. To add --select-file command-line option:
  17381. * src/Util.cc
  17382. (unfoldRange): New function.
  17383. (getNum): New function.
  17384. (unfoldSubRange): New function
  17385. * src/main.cc
  17386. (showUsage): Added help message.
  17387. (main): Added --select-file command-line option. Updated the layout of
  17388. file listing.
  17389. * src/common.h
  17390. (Integers): New definition.
  17391. * src/SocketCore.cc
  17392. (writeData): Removed timeout argument.
  17393. (readData): Removed timeout argument.
  17394. (peekData): Removed timeout argument.
  17395. * src/Socket.cc
  17396. (writeData): Removed timeout argument.
  17397. (readData): Removed timeout argument.
  17398. (peekData): Removed timeout argument.
  17399. * Release 0.4.1
  17400. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17401. To deploy upload rate based choking algorithm:
  17402. * src/PeerInteractionCommand.cc
  17403. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17404. peer currently used.
  17405. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17406. download completes. Simplified.
  17407. (receiveMessage): Updated.
  17408. * src/TorrentMan.h
  17409. (activePeers): New variable.
  17410. (addActivePeer): New function.
  17411. (getActivePeers): New function.
  17412. (deleteActivePeer): New function.
  17413. * src/TorrentMan.cc
  17414. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17415. * src/PeerAbstractCommand.cc
  17416. (onAbort): Use peer->resetStatus().
  17417. * src/main.cc
  17418. (PeerChokeCommand.h): Included.
  17419. (main): Added the instance of ChokingCommand to the command queue.
  17420. * src/Peer.h
  17421. (amChoking): Renamed from amChocking
  17422. (chokingRequired): New variable.
  17423. (optUnchoking): New variable.
  17424. (deltaUpload): New variable.
  17425. (deltaDownload): New variable.
  17426. (addDeltaUpload): New function.
  17427. (resetDeltaUpload): New function.
  17428. (addDeltaDownload): New function.
  17429. (resetDeltaDownload): New function.
  17430. (addPeerUpload): Added a call to addDeltaUpload.
  17431. (addPeerDownload): Added a call to addDeltaDownload.
  17432. * src/Peer.cc
  17433. (shouldBeChoking): Renamed from shouldChoke.
  17434. (resetStatus): New function.
  17435. * src/PeerChokeCommand.h: New class.
  17436. * src/PeerChokeCommand.cc: New class.
  17437. To add lazy upload speed limiter:
  17438. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17439. statistics calculation to TorrentDownloadEngine.
  17440. * src/TorrentConsoleDownloadEngine.cc
  17441. (sendStatistics): Renamed from printStatistics.
  17442. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17443. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17444. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17445. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17446. calculation.
  17447. (sendStatistics): New function as pure virtual function.
  17448. (getUploadSpeed): New function.
  17449. * src/TorrentDownloadEngine.cc
  17450. (initStatistics): New function.
  17451. (calculateSpeed): New function.
  17452. (calculateStatistics): New function.
  17453. * src/SendMessageQueue.h
  17454. (uploadLength): New variable.
  17455. (send): Added an argument.
  17456. (setUploadLimit): New function.
  17457. (getUploadLimit): New function.
  17458. * src/SendMessageQueue.cc
  17459. (send): Added upload speed limiter.
  17460. * src/prefs.h
  17461. (PREF_UPLOAD_LIMIT): New definition.
  17462. * src/PeerInteractionCommand.cc
  17463. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17464. * src/main.cc
  17465. (main): Added --upload-limit option
  17466. For bug fixes:
  17467. * src/main.cc
  17468. (showUsage): Corrected --listen-port help
  17469. Other changes:
  17470. * src/TorrentMan.cc
  17471. (getPeer): Return nullPeer if connection is grather than
  17472. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17473. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17474. To add some useful information to the exception message:
  17475. * src/SocketCore.cc : Updated messages.
  17476. * src/SegmentMan.cc :
  17477. * src/TorrentMan.cc : Updated messages.
  17478. * src/MultiDiskWriter.cc : Updated messages.
  17479. * src/Util.cc : Updated messages.
  17480. * src/AbstractDiskWriter.cc : Updated messages.
  17481. * src/PreAllocationDiskWriter.cc : Updated messages.
  17482. * src/message.cc : Added new messages. Updated some messages.
  17483. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17484. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17485. Updated threshold from 30 to 15.
  17486. * src/AbstractDiskWriter.h (filename): New variable.
  17487. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17488. (createFile): Assigned filename.
  17489. * src/main.cc: Updated the help message for http-auth-scheme.
  17490. * Release 0.4.0
  17491. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17492. To add TrackerUpdateCommand with which replaces
  17493. CompactTrackerResponseProcessor:
  17494. * src/TrackerWatcherCommand.h (req): Removed.
  17495. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17496. if the number of peer connections are less than 30.
  17497. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17498. * src/SegmentMan.h (diskWriter): New function.
  17499. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17500. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17501. (main): Use TrackerUpdateCommand.
  17502. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17503. (req): New variable.
  17504. (setTrackerResponseProcessor): Removed.
  17505. (getTrackerResponseProcessor): Removed.
  17506. (processTrackerResponse): Removed.
  17507. * src/DownloadEngine.h (diskWriter): Removed.
  17508. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17509. to torrentMan->processTrackerResponse().
  17510. To add Util::expandBuffer:
  17511. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17512. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17513. * src/Util.h (expandBuffer): New function.
  17514. To fix the bug that causes segmentation fault when "-l ." is specified
  17515. in command-line option:
  17516. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17517. (openFile): New function.
  17518. (closeFile): New function.
  17519. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17520. (~SimpleLogger): Call closeFile();
  17521. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17522. * src/main.cc (main): Added a check to see logger is configured
  17523. properly.
  17524. To enable HTTP authentication without specifying "--http-auth-scheme"
  17525. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17526. * src/HttpConnection.cc (createRequest): Send Authorization header
  17527. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17528. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17529. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17530. * src/Peer.cc (shouldChoke): Updated algorithm.
  17531. * src/message.h (EX_AUTH_FAILED): New definition.
  17532. (EX_FILE_OPEN): New definition.
  17533. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17534. if status == 401.
  17535. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17536. if req->isTorrent == true.
  17537. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17538. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17539. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17540. (createFile): Updated message.
  17541. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17542. To add a readout of estimated remaining time to normal HTTP/FTP
  17543. downloads:
  17544. * src/ConsoleDownloadEngine.h (startup): New variable.
  17545. (startupLength): New variable.
  17546. (isStartupLengthSet): New variable.
  17547. (avgSpeed): New variable.
  17548. (eta): New variable.
  17549. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17550. estimated remaining time.
  17551. (initStatistics): Initialized newly added variables.
  17552. (calculateStatistics): Calculate average speed and estimated remaining
  17553. time.
  17554. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17555. * src/TrackerDownloadCommand.h: Removed.
  17556. * src/TrackerDownloadCommand.cc: Removed.
  17557. * src/TrackerInitCommand.h: Removed.
  17558. * src/TrackerInitCommand.cc: Removed.
  17559. * src/TrackerUpdateCommand.h: Removed.
  17560. * src/TrackerUpdateCommand.cc: Removed.
  17561. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17562. url written in TrackerInitCommand was moved here. Do not create
  17563. tracker request command if torrentMan->trackers != 0.
  17564. * src/CompactTrackerResponseProcessor.h: New class.
  17565. * src/CompactTrackerResponseProcessor.cc: New class.
  17566. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17567. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17568. Decoupled TorrentDownloadEngine from this.
  17569. * src/SegmentMan.h (init): New function.
  17570. * src/SegmentMan.cc (init): New function.
  17571. * src/TorrentMan.h (responseProcessor): New variable.
  17572. (trackers): New variable.
  17573. (setTrackerResponseProcessor): New function.
  17574. (getTrackerResponseProcessor): New function.
  17575. (processTrackerResponse): New function.
  17576. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17577. (processTrackerResponse): New function.
  17578. * src/main.cc (main): Use ByteArrayDiskWriter and
  17579. CompactTrackerResponseProcessor.
  17580. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17581. processTrackerResponse().
  17582. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17583. readout.
  17584. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17585. which indicates download has completed.
  17586. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17587. (closeFile): fd >= 0, not fd > 0
  17588. * src/main.cc (main): Added short cut for show-files.
  17589. Added short cut for torrent-file.
  17590. Added new command-line option listen-port.
  17591. Updated i18n messages.
  17592. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17593. To add LogFactory which creates singleton logger:
  17594. * src/LogFactory.h: New class.
  17595. * src/LogFactory.cc: New class.
  17596. * src/Command.h (logger): New variable.
  17597. (Constructor): Use LogFactory.
  17598. * src/AbstractCommand.cc: Use Command::logger
  17599. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17600. Use LogFactory.
  17601. * src/SegmentSplitter.h : Made logger protected.
  17602. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17603. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17604. * src/DownloadEngine.h : Made logger protected.
  17605. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17606. * src/PeerInteractionCommand.cc : Use Command::logger.
  17607. * src/HttpResponseCommand.cc : Use Command::logger.
  17608. * src/SegmentMan.h : Made logger private.
  17609. * src/TorrentMan.h : Made logger private.
  17610. * src/TorrentMan.cc : Use LogFactory.
  17611. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17612. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17613. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17614. Use LogFactory.
  17615. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17616. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17617. Use LogFactory.
  17618. * src/DownloadCommand.cc : Use Command::logger.
  17619. * src/PeerAbstractCommand.cc : Use Command::logger.
  17620. * src/PeerListenCommand.cc : Use Command::logger.
  17621. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17622. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17623. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17624. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17625. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17626. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17627. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17628. Use LogFactory.
  17629. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17630. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17631. Use LogFactory.
  17632. * src/main.cc (main): Use LogFactory.
  17633. * src/DiskAdaptor.h (logger): New variable.
  17634. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17635. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17636. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17637. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17638. parameter to a tracker request.
  17639. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17640. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17641. * src/main.cc (setSignalHander): New function.
  17642. (main): Added a handler for SIGTERM.
  17643. (handler): Updated message.
  17644. (torrentHandler): Updated message.
  17645. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17646. * src/TorrentConsoleDownloadEngine.cc
  17647. (onPartialDownloadingCompletes): Renamed as
  17648. onSelectiveDownloadingCompletes.
  17649. (onSelectiveDownloadingCompletes): Updated message.
  17650. To add DiskAdaptor which abstract DiskWriter family:
  17651. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17652. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17653. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17654. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17655. MultiDiskAdaptor.h.
  17656. (readFileEntry): Changed its arguments.
  17657. (setup): setupDiskWriter is merged into this function.
  17658. (setupDiskWriter): Removed.
  17659. (setFileFilter): New function.
  17660. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17661. made in readFileEntry.
  17662. (getFilePath): Removed.
  17663. (getTempFilePath): Removed.
  17664. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17665. (fixFilename): Removed.
  17666. (copySingleFile): Removed.
  17667. (splitMultiFile): Removed.
  17668. (deleteTempFile): Removed.
  17669. (setFileEntriesToDownload): Removed.
  17670. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17671. (isSelectiveDownloadingMode): New function.
  17672. (setAllMultiFileRequestedState): Removed.
  17673. (finishPartialDownloadingMode): Renamed as
  17674. finishSelectiveDownloadingMode.
  17675. (finishSelectiveDownloadingMode): New function.
  17676. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17677. (getSelectedTotalLength): New function.
  17678. (onDownloadComplete): Use diskAdaptor.
  17679. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17680. (Range): Removed.
  17681. (setMultiFileEntries): Renamed as setFileEntries.
  17682. (setFileEntries): New function.
  17683. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17684. (pieceLength): New variable.
  17685. * src/main.cc (printDownloadCompeleteMessage): New function.
  17686. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17687. (main): Renamed torrent-show-files to show-files.
  17688. Rewritten file contents listing.
  17689. * src/TorrentMan.h (FileEntry): Removed.
  17690. (multiFileTopDir): Removed.
  17691. (multiFileEntries): Removed.
  17692. (diskWriter): Removed.
  17693. (diskAdaptor): New variable.
  17694. * src/DefaultDiskWriter.h (totalLength): New variable.
  17695. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17696. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17697. diskWriter.
  17698. * src/TorrentConsoleDownloadEngine.h
  17699. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17700. (partialTotalLength): Renamed as selectedTotalLength.
  17701. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17702. openExistingFile, otherwise call initAndOpenFile.
  17703. (closeFile): fd > 0, not fd != 0.
  17704. * src/DirectDiskAdaptor.h: New class.
  17705. * src/DirectDiskAdaptor.cc: New class.
  17706. * src/MultiDiskAdaptor.h: New class.
  17707. * src/MultiDiskAdaptor.cc: New class.
  17708. * src/CopyDiskAdaptor.h: New class.
  17709. * src/CopyDiskAdaptor.cc: New class.
  17710. * src/DiskAdaptor.h: New class.
  17711. * src/DiskAdaptor.cc: New class.
  17712. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17713. (PREF_SHOW_FILES): New definition.
  17714. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17715. To add the ability to download multi torrent into respective files
  17716. directly:
  17717. * src/DiskWriter.h (openFile): New function.
  17718. (seek): Removed.
  17719. * src/MultiDiskWriter.h: New class.
  17720. * src/MultiDiskWriter.cc: New class.
  17721. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17722. protected.
  17723. (openFile): New function.
  17724. * src/AbstractDiskWriter.cc (openFile): New function.
  17725. * src/prefs.h (V_FALSE): New definition.
  17726. (PREF_DIRECT_FILE_MAPPING): New definition.
  17727. * src/TorrentMan.h (setupDiskWriter): New function.
  17728. (setAllMultiFileRequestedState): New function.
  17729. (onDownloadComplete): New function.
  17730. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17731. (setupDiskWriter): New function.
  17732. (getFilePath): Updated.
  17733. (getTempFilePath): Updated.
  17734. (getSegmentFilePath): Updated.
  17735. (fixFilename): Updated.
  17736. (deleteTempFile): Updated.
  17737. (setAllMultiFileRequestedState): New function.
  17738. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17739. (finishPartialDownloadingMode): Reset requested flags.
  17740. (onDownloadComplete): New function.
  17741. * src/main.cc: Added --direct-file-mapping option.
  17742. Use TorrentMan::setupDiskWriter().
  17743. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17744. onDownloadComplete().
  17745. To fix ETA bug:
  17746. * src/Util.h (difftvsec): New function.
  17747. * src/Util.cc (difftvsec): New function.
  17748. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17749. type of "elapsed" instead of long long int.
  17750. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17751. The updates of statistics takes place every 1 seconds.
  17752. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17753. (calculateSpeed): Changed its argument signature.
  17754. * src/PeerMessage.cc (toString): Fixed message.
  17755. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17756. To print ETA:
  17757. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17758. completion handling when dealing with
  17759. TorrentMan::isPartialDownloadingMode() == true.
  17760. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17761. New function.
  17762. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17763. (sessionDownloadLength): New variable.
  17764. (avgSpeed): New variable.
  17765. (eta): New variable.
  17766. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17767. new variables: eta, avgSpeed, startup.
  17768. (calculateSpeed): Calculate average speed and ETA.
  17769. (printStatistics): Added ETA.
  17770. * src/Util.h (secfmt): New function.
  17771. * src/Util.cc (secfmt): New function.
  17772. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17773. To detect "keep alive" flooding:
  17774. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17775. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17776. variable: keepAliveCount.
  17777. (detectMessageFlooding): Added "keep alive" flooding detection.
  17778. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17779. received.
  17780. To add the ability to download only specified files in multi-file
  17781. torrent:
  17782. * src/BitfieldMan.h (filterBitfield): New variable.
  17783. (filterEnabled): New variable.
  17784. (setFilterBit): New function.
  17785. (enableFilter): New function.
  17786. (disableFilter): New function.
  17787. (isFilterEnabled): New function.
  17788. (getFilteredTotalLength): New function.
  17789. (getCompletedLength): New function.
  17790. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17791. filterBitfield, filterEnabled.
  17792. (CopyConstructor): Added filterBitfield and filterEnabled.
  17793. (operator==): Added filterBitfield and filterEnabled.
  17794. (Destructor): Added filterBitfield.
  17795. (getMissingIndex): Use filterBitfield.
  17796. (getMissingUnusedIndex): Use filterBitfield.
  17797. (getFirstMissingUnusedIndex): Use filterBitfield.
  17798. (getFirstMissingUnusedIndex): Use filterBitfield.
  17799. (getAllMissingIndexes): Use filterBitfield.
  17800. (countMissingBlock): Use filterBitfield.
  17801. (countBlock): Use filterBitfield.
  17802. (setBitInternal): Added new argument on.
  17803. (setUseBit): Use setBitInternal.
  17804. (unsetUseBit): Use setBitInternal.
  17805. (setBit): Use setBitInternal.
  17806. (unsetBit): Use setBitInternal.
  17807. (isAllBitSet): Use filterBitfield.
  17808. (setFilterBit): New function.
  17809. (addFilter): New function.
  17810. (enableFilter): New function.
  17811. (disableFilter): New function.
  17812. (clearFilter): New function.
  17813. (isFilterEnabled): New function.
  17814. (getFilteredTotalLength): New function.
  17815. (getCompletedLength): New function.
  17816. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17817. Initalized newly added variables.
  17818. [FileEntry](offset): New variable.
  17819. [FileEntry](extracted): New variable.
  17820. [FileEntry](requested): New variable.
  17821. (readFileEntry): New function.
  17822. (option): New variable.
  17823. (splitMultiFile): Removed const qualifier.
  17824. (fixFilename): Removed const qualifier.
  17825. (readFileEntryFromMetaInfoFile): New function.
  17826. (finishPartialDownloadingMode): New function.
  17827. (isPartialDownloadingMode): New function.
  17828. (setFileEntriesToDownload): New function.
  17829. (getCompletedLength): New function.
  17830. (getPartialTotalLength): New function.
  17831. * src/TorrentMan.cc (readFileEntry): New function.
  17832. (setup): Use readFileEntry. If no-preallocation option is specified,
  17833. use DefaultDiskWriter.
  17834. (readFileEntryFromMetaInfoFile): New function.
  17835. (fixFilename): Removed const qualifier.
  17836. (splitMultiFile): Removed const qualifier.
  17837. (setFileEntriesToDownload): New function.
  17838. (isPartialDownloadingMode): New function.
  17839. (finishPartialDownloadingMode): New function.
  17840. (getCompletedLength): New function.
  17841. (getPartialTotalLength): New function.
  17842. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17843. New variable.
  17844. (partialTotalLength): New variable.
  17845. (downloadLength): New variable.
  17846. (totalLength): New variable.
  17847. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17848. Added log.
  17849. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17850. partialTotalLength, downloadLength, totalLength.
  17851. (calculate): Calculate downloadLength and totalLength.
  17852. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17853. * src/main.cc (addCommand): Changed argument signature.
  17854. (main): Added new variable: args. Added new option "torrent-show-files"
  17855. "no-preallocation". Usage is not updated yet.
  17856. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17857. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17858. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17859. Attempt to add the ability to listing file entries in a .torrent file.
  17860. This feature is not yet complete.
  17861. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17862. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17863. (getName): New function.
  17864. * src/TorrentMan.h (getMultiFileEntries): New function.
  17865. (getName): New function.
  17866. * src/main.cc (main): Use above 2 funtion.
  17867. * Release 0.3.2
  17868. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17869. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17870. (detectMessageFlooding): Updated threshold value.
  17871. (checkLongTimePeerChoking): Updated timeout value.
  17872. (getNewPieceAndSendInterest): Added debug log.
  17873. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17874. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17875. (getPeer): Updated.
  17876. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17877. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17878. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17879. is localhost.
  17880. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17881. * src/PendingMessage.cc (processMessage): Not to send piece message
  17882. if peer is not interested in the pieces localhost has.
  17883. * src/Peer.cc (shouldChoke): Updated.
  17884. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17885. * src/Util.cc (isPowerOf): New function.
  17886. * src/Util.h (isPowerOf): New function.
  17887. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17888. whether or not it is power of 2.
  17889. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17890. Added new class SendMessageQueue that includes PendingMessages and
  17891. RequestSlotMan.
  17892. * src/SendMessageQueue.h: New class.
  17893. * src/SendMessageQueue.cc: New class.
  17894. * src/PendingMessage.h: Added new member variable blockIndex and its
  17895. accessors.
  17896. (createRequestMessage): Updated.
  17897. * src/PendingMessage.cc (createRequestMessage): Updated.
  17898. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17899. SendMessageQueue.
  17900. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17901. (receiveMessage): Updated with SendMessageQueue.
  17902. (deletePendingPieceMessage): Removed.
  17903. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17904. (sendInterest): Updated with SendMessageQueue.
  17905. (createRequestPendingMessage): Updated with SendMessageQueue.
  17906. (sendMessages): Updated with SendMessageQueue.
  17907. (onAbort): Updated with SendMessageQueue.
  17908. (keepAlive): Updated with SendMessageQueue.
  17909. (beforeSocketCheck): Updated SendMessageQueue.
  17910. * src/PeerInteractionCommand (sendMessages): Shuffle
  17911. missingBLockIndexes before using it.
  17912. Added its own timeout for peer connection.
  17913. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17914. setter.
  17915. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17916. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17917. Added setTimeout() call.
  17918. (executeInternal): Added setTimeout() call.
  17919. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17920. Added timeout.
  17921. (isTimeoutDetected): Updated.
  17922. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17923. option.
  17924. Added *simple* message flooding checker.
  17925. * src/PeerInteractionCommand.cc (executeInternal):
  17926. Added detectMessageFlooding() call.
  17927. (detectMessageFlooding): New function.
  17928. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17929. (beforeSocketCheck): Added detectMessageFlooding() call.
  17930. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17931. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17932. Removed deletePendingPieceMessage(), getRequestSlot(),
  17933. deleteRequestSlot(), deleteAllRequestSlot().
  17934. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17935. Added checkLongTimePeerChoking() call.
  17936. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17937. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17938. if duplicate == false.
  17939. The parameter "uploaded" and "downloaded" in the tracker request are
  17940. the size since the client sent the "started" event to the tracker.
  17941. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17942. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17943. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17944. getSessionDownloadedSize(), getSessionUploadedSize().
  17945. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17946. getSessionUploadedSize() instead of getDownloadedSize(),
  17947. getUploadedSize().
  17948. * src/PendingMessage.cc (processMessage): Do not send request message
  17949. if the peer is choking the client.
  17950. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17951. less than interval.
  17952. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17953. * configure.in: Added gnutls support. Added several CPP macros.
  17954. * m4/openssl.m4: Added.
  17955. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17956. readData(), peekData(). Added gnutls support.
  17957. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17958. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17959. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17960. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17961. Instead, added a check for whether setup method has executed
  17962. successfully.
  17963. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17964. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17965. * src/Makefile.am: Updated.
  17966. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17967. using whether OpenSSL or gcrypt, depending on the result of configure
  17968. script.
  17969. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17970. messageDigest.h.
  17971. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17972. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17973. Fixed memory leak.
  17974. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17975. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17976. Removed instantiation of TrackerInitCommand. Instead,
  17977. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17978. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17979. ENABLE_SSL.
  17980. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17981. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17982. If a piece is already acquired by another command, delete the request
  17983. slots for the piece.
  17984. * src/TrackerUpdateCommand.cc (execute):
  17985. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17986. Added a check whether peer list is null.
  17987. Fixed the bug that causes sending completed event to the tracker
  17988. several times.
  17989. * src/TrackerInitCommand.cc (execute):
  17990. Fixed the bug that causes sending completed event to the tracker
  17991. several times.
  17992. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17993. by using messageDigest.h.
  17994. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17995. * PeerConnection.cc: Replaced log message "keep-alive" with
  17996. "keep alive".
  17997. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17998. localhost long time.
  17999. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  18000. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  18001. at most 100 failure entry from the list. If with duplicate = false,
  18002. MAX_PEER_LIST is not checked.
  18003. * PeerListenCommand.cc: Fixed the argument order of log message.
  18004. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18005. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  18006. Added warn().
  18007. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  18008. Implemented warn().
  18009. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  18010. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18011. * Request.h: Added AFTER_COMPLETED event.
  18012. * TorrentDownloadEngine.cc: Prints "Download complete" message
  18013. instead of downloaded size and progress(%) after download completes.
  18014. * PeerInteractionCommand.cc: After download completes, sends unchoke
  18015. message to the peer if it is interested in what localhost has
  18016. downloaded.
  18017. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  18018. destination instead of just renaming it.
  18019. * TorrentMan.cc: Added deleteTempFile().
  18020. * PeerAbstractCommand.cc: do not stop execution after download
  18021. completes. This makes localhost a seeder.
  18022. * Util.{h,cc}: Added fileCopy().
  18023. * PeerListenCommand.cc: do not stop execution after download completes.
  18024. This makes localhost a seeder.
  18025. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  18026. Added TorrentMan::deleteTempFile() to torrentHandler.
  18027. Initialized the variable dir as ".".
  18028. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  18029. Deleted renameSingleFile().
  18030. Added copySingleFile(), deleteTempFile().
  18031. * DownloadEngine.h: Added virtual function afterEachIteration().
  18032. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  18033. in onEndOfRun() to afterEachIteration().
  18034. In onEndOfRun(), changed if condition to check whether filenameFixed is
  18035. true.
  18036. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  18037. In rangedFileCopy(), added try-catch block to properly close file
  18038. descriptors.
  18039. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  18040. Added afterEachIteration(), isFilenameFixed().
  18041. * Peer.cc: Changed choking strategy.
  18042. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  18043. * TrackerInitCommand.cc: Send completed event only once.
  18044. * DownloadEngine.cc: Added a call to afterEachIteration().
  18045. * TrackerUpdateCommand.cc: Do not stop execution after download
  18046. completes.
  18047. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  18048. connect the peers at most MAX_PEER_UPDATE when a peer list is
  18049. received from a tracker.
  18050. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  18051. Decreased the number of failure peers to delete to 0(just comment out
  18052. the line).
  18053. * Release 0.3.1
  18054. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18055. * PeerInteractionCommand.cc: added a call to
  18056. TorrentMan::unadvertisePiece in Destructor.
  18057. * PeerInteractionCommand.cc: make have message sent immediately
  18058. if the size of pending message queue is zero.
  18059. * TorrentMan.cc: set the maximum size of peer list to 250.
  18060. * TorrentMan.h: changed the container type of Peers and UsedPieces
  18061. to deque.
  18062. * Util.cc: fixed rangedFileCopy.
  18063. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  18064. to Constructor. Also, moved digest cleanup to Destructor.
  18065. * MetaFileUtil.cc: fixed memory leak
  18066. * replaced std::vector with std::deque.
  18067. * AbstractCommand.cc: casted timeout value to long long int.
  18068. * ChunkedEncoding.cc: fixed memory leak.
  18069. * PeerInteractionCommand.cc: casted timeout value to long long int.
  18070. * SleepCommand.cc: casted timeout value to long long int.
  18071. * Data.cc: fixed memory leak.
  18072. * Data.cc: fixed toLLInt().
  18073. * BitfieldMan.cc: fixed memory leak.
  18074. * TorrentMan.cc: initialized storeDir to ".".
  18075. * TorrentMan.cc: fixed memory leak.
  18076. * TorrentMan.cc: corrected file paths of splitted files.
  18077. * PeerAbstractCommand.cc: casted timeout to long long int.
  18078. * main.cc: added delete(req) and delete(te->diskWriter).
  18079. * RequestSlot.cc: casted timeout value to long long int.
  18080. * Request.cc: fixed memory leak.
  18081. * PendingMessage.cc: make HAVE messages sent only when peer does not
  18082. have the piece.
  18083. * Peer.{h,cc}: added hasPiece(int index).
  18084. * main.cc: corrected addCommand.
  18085. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18086. * BitTorrent protocol support added.
  18087. * Release 0.3.0
  18088. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18089. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  18090. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18091. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  18092. decoding did not work properly.
  18093. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18094. * DownloadEngine.h: included sys/time.h
  18095. * DownloadEngine.cc: remove sys/time.h
  18096. * Makefile.am (SUBDIRS): Add intl.
  18097. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  18098. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18099. * main.cc: correct help message for --http-auth-scheme.
  18100. * main.cc: changed e-mail address for bug reports.
  18101. * ja.po: added japanese translation.
  18102. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18103. * SimpleLogger.cc: flush log file instead of stdout.
  18104. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18105. * main.cc: Fixed command-line option: max-tries
  18106. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  18107. does not equal to seg.sp.
  18108. * DownloadCommand.cc: If EOF is got from the server and the total size
  18109. of file is not zero, then throw DlRetryEx.
  18110. * main.cc: Set the minium value of min-segment-size to 1024.
  18111. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  18112. fails because of a regression since 0.2.0 release.
  18113. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18114. * HttpConnection.cc:
  18115. * common.h: defined the user agent name as macro
  18116. * DownloadEngine.{h, cc}:
  18117. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  18118. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  18119. * main.cc: Download complete/abort message is now generated by main.
  18120. * Makefile.am (SUBDIRS): Add m4.
  18121. (ACLOCAL_AMFLAGS): New variable.
  18122. (EXTRA_DIST): New variable.
  18123. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  18124. * gettext: added gettext functionality
  18125. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18126. * AbstractCommand.cc:
  18127. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  18128. unregister its cuid from SegmentMan.
  18129. * DownloadEngine.cc: .aria2 file was written when a downloading
  18130. failed with errors.
  18131. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  18132. Added "User-Agent" header to CONNECT proxy request.
  18133. Fixed "Proxy-Authorization" header. Now proxy authorization works
  18134. properly.
  18135. * Logger.h:
  18136. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  18137. * ChunkedEncoding.cc: Added #include directive for strings.h
  18138. * Release 0.2.1
  18139. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18140. * Util.{h,cc}: added startsWith().
  18141. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  18142. Util::endsWith().
  18143. * SocketCore.cc: struct addrinfo is now zero-initialized.
  18144. * common.h: added #include directive of limit.h.
  18145. * DownloadEngine.cc: added #include directive of sys/time.h and
  18146. algorithm.
  18147. * Exception.h: added #include directive of stdio.h.
  18148. * AbstractCommand.h: added #include directive of sys/time.h.
  18149. * DownloadCommand.h: added #include directive of sys/time.h.
  18150. * *.h: added #include directive of common.h to all base classes.
  18151. subclasses' one was removed.
  18152. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  18153. does not define these macros.
  18154. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18155. * Release 0.2.0
  18156. * main.cc:
  18157. * HttpInitiateConnectionCommand.{h,cc}:
  18158. * prefs.h:
  18159. * HttpConnection.{h,cc}: added --http-proxy-method option.
  18160. We can now use GET command in http proxy.
  18161. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18162. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  18163. that splits slowest segment of SegmentMan::commands vector.
  18164. This is the default split algorithm of aria2.
  18165. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  18166. that splits first segment of SegmentMan::commands vector.
  18167. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  18168. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  18169. * Segment.h:
  18170. * SegmentMan.cc: Added speed field to Segment.h
  18171. * main.cc: -s option now affects all URLs in command-line arguemtns.
  18172. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  18173. * message.h: Change file size related %d to %lld.
  18174. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18175. * FtpInitiateConnectionCommand.{h,cc}:
  18176. * FtpNegotiationCommand.{h,cc}:
  18177. * FtpDownloadCommand.{h,cc}:
  18178. * FtpConnection.{h,cc}: Added FTP support
  18179. * SimpleLogger.cc: Log message now includes time information.
  18180. * main.cc: The value of --http-auth-scheme option is chagned from
  18181. 'BASIC' to 'basic'
  18182. * main.cc: Added --timeout command-line option.
  18183. * main.cc: Added --min-segment-size command-line option.
  18184. * main.cc: Added --max-retries command-line option.
  18185. * prefs.h: option string constants are now defined in prefs.h
  18186. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18187. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  18188. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  18189. with version 0.1.0's one.
  18190. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18191. * configure.in: Added --enable-ssl option to configure script.
  18192. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  18193. cannot permit absoluteURI as Request-URI.
  18194. * HttpConnection.cc: Added Referer support.
  18195. * main.cc: Added referer command-line option.
  18196. * main.cc: Added rety-wait command-line option.
  18197. * Exception.h: Fixed formating bug in Exception::setMsg()
  18198. * SocketCore.{h,cc}:
  18199. * Socket.{h, cc}:
  18200. * Request.cc:
  18201. * InitiateConnectionCommandFactory.cc:
  18202. * HttpRequestCommand.cc: Added HTTPS support.
  18203. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  18204. for SocketCore.
  18205. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  18206. size is wrong
  18207. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  18208. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  18209. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  18210. * Release 0.1.0