ChangeLog 682 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981
  1. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Removed RequestGroup::initSegmentMan(). Guaranteed that either
  3. both _pieceStorage and _segmentMan are initialized or they are
  4. not.
  5. * src/RequestGroup.cc
  6. * src/RequestGroup.h
  7. * test/BtDependencyTest.cc
  8. 2010-01-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Bump up version number to 1.8.2
  10. * configure.ac
  11. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. Replaced "." with A2STR::DOT_C
  13. * src/AbstractCommand.cc
  14. * src/Cookie.cc
  15. * src/DownloadContext.cc
  16. * src/FtpConnection.cc
  17. * src/RequestGroup.cc
  18. * src/util.cc
  19. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Replaced isNumberAndDotsNotation() with isNumericHost().
  21. isNumericHost() can handle IPv6 address.
  22. * src/Cookie.cc
  23. * src/CookieStorage.cc
  24. * src/util.cc
  25. * src/util.h
  26. * test/CookieTest.cc
  27. * test/UtilTest.cc
  28. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Included A2STR.h
  30. * src/CookieStorage.cc
  31. 2010-01-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Rewritten Cookie storage.
  33. * src/Cookie.cc
  34. * src/Cookie.h
  35. * src/CookieParser.cc
  36. * src/CookieStorage.cc
  37. * src/CookieStorage.h
  38. * src/a2functional.h
  39. * test/CookieParserTest.cc
  40. * test/CookieStorageTest.cc
  41. * test/CookieTest.cc
  42. * test/HttpResponseTest.cc
  43. * test/TestUtil.h
  44. * test/a2functionalTest.cc
  45. 2010-01-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  46. Handle redirected URI which is not properly percent encoded.
  47. * src/Request.cc
  48. * test/RequestTest.cc
  49. 2010-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Fixed the bug that causes segmentaiton fault when aria2 sees '404
  51. not found' in the N times(N is where --max-file-not-found=N, N>0)
  52. in a row without single '200 OK' response.
  53. * src/RequestGroup.cc.
  54. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  55. Fixed compile error with i586-mingw32msvc-g++. Always Cut console
  56. readout by 80 characters in mingw32 build. Catch exception in
  57. DHTMessageReceiver::receiveMessage().
  58. * src/AbstractDiskWriter.cc
  59. * src/ConsoleStatCalc.cc
  60. * src/DHTMessageReceiver.cc
  61. * src/File.cc
  62. * src/RequestGroupMan.cc
  63. * src/a2io.h
  64. * test/FileTest.cc
  65. 2010-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  66. Fixed compile error with intel compiler
  67. * src/XmlRpcMethodImpl.cc
  68. * src/XmlRpcMethodImpl.h
  69. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  70. Release 1.8.1
  71. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Updated Swedish, Russian and Italian translations. Thanks to all
  73. translators.
  74. * po/it.po
  75. * po/ru.po
  76. * po/sv.po
  77. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Fixed broken OptionParser::findByName().
  79. * src/OptionParser.cc
  80. * test/OptionParserTest.cc
  81. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  82. Fixed test error without BitTorrent support.
  83. * test/XmlRpcMethodTest.cc
  84. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. Fixed compile error without GNUTLS/OpenSSL.
  86. * src/util.cc
  87. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  88. Changed compression level to Z_DEFAULT_COMPRESSION.
  89. * src/GZipEncoder.cc
  90. 2010-01-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Added missing command line options: --http-no-cache,
  92. --bt-save-metadata and --bt-metadata-only.
  93. * doc/xmlrpc/aria2rpc
  94. 2010-01-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. aria2 now returns gzip compressed XML-RPC response if XML-RPC
  96. client accepts gzip content encoding.
  97. * src/A2STR.cc
  98. * src/A2STR.h
  99. * src/GZipEncoder.cc
  100. * src/GZipEncoder.h
  101. * src/HttpHeader.cc
  102. * src/HttpHeader.h
  103. * src/HttpServer.cc
  104. * src/HttpServer.h
  105. * src/HttpServerBodyCommand.cc
  106. * src/HttpServerCommand.cc
  107. * src/Makefile.am
  108. * src/XmlRpcResponse.cc
  109. * src/XmlRpcResponse.h
  110. * test/GZipEncoderTest.cc
  111. * test/Makefile.am
  112. 2010-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Added XML-RPC client sample code in Python.
  114. * doc/aria2c.1.txt
  115. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  116. Updated po templates.
  117. * po/aria2.pot
  118. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  119. Bump up version number to 1.8.1
  120. * configure.ac
  121. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Added version number to man page. Updated copyright year in man
  123. page.
  124. * doc/aria2c.1.txt
  125. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Rewritten toTagString
  127. * src/NameMatchOptionHandler.cc
  128. * test/OptionHandlerTest.cc
  129. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Added dir and files key to the response struct of aria2.tellStatus
  131. XML-RPC method. The value associated with files key is the list
  132. of files. Its element is the same struct used in aria2.getFiles
  133. XML-RPC method. Added uris key to the response struct of
  134. aria2.getFiles XML-RPC method. The value associated with uris key
  135. is the list of URIs. Its element is the same struct used in
  136. aria2.getUris XML-RPC method.
  137. * doc/aria2c.1.txt
  138. * src/XmlRpcMethodImpl.cc
  139. * test/XmlRpcMethodTest.cc
  140. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  141. Added aria2.getSessionInfo XML-RPC method. This method returns a
  142. struct containing Session ID, which is generated each time when
  143. aria2 is invoked.
  144. * doc/aria2c.1.txt
  145. * doc/xmlrpc/aria2rpc
  146. * src/DownloadEngine.cc
  147. * src/DownloadEngine.h
  148. * src/XmlRpcMethodFactory.cc
  149. * src/XmlRpcMethodImpl.cc
  150. * src/XmlRpcMethodImpl.h
  151. * test/XmlRpcMethodTest.cc
  152. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  153. Moved generateRandomKey() from bittorrent_helper to util.
  154. * src/DHTBucket.cc
  155. * src/DHTNode.cc
  156. * src/bittorrent_helper.cc
  157. * src/bittorrent_helper.h
  158. * src/util.cc
  159. * src/util.h
  160. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Updated doc about GID.
  162. * doc/aria2c.1.txt
  163. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  164. Now offset argument in aria2.tellWaiting and aria2.tellStopped
  165. accepts a negative integer. 'offset' == -1 points last download
  166. in the waiting queue and 'offset' == -2 points the download before
  167. the last download, and so on. The downloads in the response are in
  168. reversed order.
  169. * doc/aria2c.1.txt
  170. * src/XmlRpcMethodImpl.cc
  171. * src/XmlRpcMethodImpl.h
  172. * test/XmlRpcMethodTest.cc
  173. 2010-01-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Added --human-readable option. This option, when true is given,
  175. prints sizes and speed in human readable format(e.g., 1.2Ki,
  176. 3.4Mi) in the console readout. The default value is true and it
  177. looks exactly the same as aria2-1.8.0. So the 'new feature'
  178. appears when false is given. In this case, sizes and speed are
  179. printed without in bytes. No Ki, Mi units conversion is used.
  180. This may be useful for a program to parse the output of aria2.
  181. * doc/aria2c.1.txt
  182. * src/ConsoleStatCalc.cc
  183. * src/ConsoleStatCalc.h
  184. * src/OptionHandlerFactory.cc
  185. * src/main.cc
  186. * src/prefs.cc
  187. * src/prefs.h
  188. * src/usage_text.h
  189. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Now --all-proxy, --http-proxy, --https-proxy and --ftp-proxy
  191. option accepts empty string "". When "" is given, it erases
  192. previously defined proxy.
  193. * doc/aria2c.1.txt
  194. * src/OptionHandlerImpl.h
  195. * src/usage_text.h
  196. * test/OptionHandlerTest.cc
  197. 2010-01-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Code cleanup for proxy URI handling.
  199. * src/AbstractCommand.cc
  200. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Added --bt-metadata-only option. If true is given to this option,
  202. aria2 downloads metadata only. The file(s) described in metadata
  203. will not be downloaded. This option has effect only when
  204. BitTorrent Magnet URI is used. See also --bt-save-metadata option.
  205. * doc/aria2c.1.txt
  206. * src/OptionHandlerFactory.cc
  207. * src/UTMetadataPostDownloadHandler.cc
  208. * src/download_helper.cc
  209. * src/prefs.cc
  210. * src/prefs.h
  211. * src/usage_text.h
  212. 2010-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  213. Fixed memory leak. Commands stored in std::deque<Command*> are not
  214. deleted when exception is thrown. Make sure that when passing
  215. std::deque<Command*> to function to store Commands, handle
  216. exception and delete these Commands.
  217. * src/AbstractCommand.cc
  218. * src/CheckIntegrityCommand.cc
  219. * src/FileAllocationCommand.cc
  220. * src/RequestGroup.cc
  221. * src/TrackerWatcherCommand.cc
  222. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  223. Replaced '/' and '_' with '_' in HTTP/FTP filename.
  224. * src/A2STR.cc
  225. * src/A2STR.h
  226. * src/FtpNegotiationCommand.cc
  227. * src/HttpResponseCommand.cc
  228. * src/util.cc
  229. * src/util.h
  230. * test/UtilTest.cc
  231. 2010-01-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  232. Treat --dir="" as --dir="."
  233. * src/FtpNegotiationCommand.cc
  234. * src/HttpResponseCommand.cc
  235. * src/Metalink2RequestGroup.cc
  236. * src/UTMetadataPostDownloadHandler.cc
  237. * src/bittorrent_helper.cc
  238. * src/download_helper.cc
  239. * src/util.cc
  240. * src/util.h
  241. * test/UtilTest.cc
  242. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  243. Code clean up.
  244. * src/main.cc
  245. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Reset GID to 1 when they reach maximum value. Rewritten
  247. CUIDCounter::newID()
  248. * src/CUIDCounter.h
  249. * src/RequestGroup.cc
  250. * src/RequestGroup.h
  251. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Documented --http-no-cache option in man page.
  253. * doc/aria2c.1.txt
  254. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Added --http-no-cache option. When true is given, aria2 sends
  256. Cache-Control: no-cache and Pragma: no-cache header to avoid
  257. cached content. If false is given , these headers are not sent
  258. and you can add Cache-Control header with a directive you like
  259. using --header option.
  260. * src/HttpRequest.cc
  261. * src/HttpRequest.h
  262. * src/HttpRequestCommand.cc
  263. * src/OptionHandlerFactory.cc
  264. * src/download_helper.cc
  265. * src/prefs.cc
  266. * src/prefs.h
  267. * src/usage_text.h
  268. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Removed Logger from OptionParser. When OptionParser is used to
  270. parse options at bootstrap, LogFactory is not configured yet
  271. properly. When LogFactory is used in OptionParser, it initializes
  272. itself to return a logger which has no ability to write log to the
  273. disk.
  274. * src/OptionParser.cc
  275. * src/OptionParser.h
  276. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  277. Added following sentance to the help message of --out option:
  278. --out option is ignored when -Z is used.
  279. * doc/aria2c.1.txt
  280. * src/usage_text.h
  281. 2010-01-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Added --bt-save-metadata option to -i list options.
  283. * doc/aria2c.1.txt
  284. * src/download_helper.cc
  285. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  286. Fixed compile error with i586-mingw32msvc-gcc 4.4.2, without any
  287. additional libraries.
  288. * src/MultiUrlRequestInfo.cc
  289. * src/NameResolver.cc
  290. * src/SelectEventPoll.cc
  291. * src/SelectEventPoll.h
  292. * src/SocketCore.cc
  293. * src/SocketCore.h
  294. * src/a2netcompat.h
  295. * src/daemon.cc
  296. * src/main.cc
  297. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Fixed typo.
  299. * src/DHTMessageReceiver.cc
  300. 2010-01-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  301. Fixed the bug that causes segmentation fault if unknown option is
  302. put in aria2.conf file. BUG#2928303
  303. * src/OptionParser.cc
  304. * src/OptionParser.h
  305. * src/option_processing.cc
  306. * test/OptionParserTest.cc
  307. 2010-01-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  308. Ignore port message with port=0.
  309. * src/BtPortMessage.cc
  310. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  311. Run autoupdate
  312. * configure.ac
  313. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  314. Updated autoconf/automake auxiliary files.
  315. * INSTALL
  316. * config.guess
  317. * config.sub
  318. * depcomp
  319. * install-sh
  320. * m4/intldir.m4
  321. * missing
  322. * mkinstalldirs
  323. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  324. Removed unused function.
  325. * src/SharedHandle.h
  326. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Find pooled socket using all cached addresses.
  328. * src/DNSCache.h
  329. * src/DownloadEngine.cc
  330. * src/DownloadEngine.h
  331. * src/InitiateConnectionCommand.cc
  332. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  333. Updated copyright year.
  334. * src/version_usage.cc
  335. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Pool connection if _contentEncodingDecoder is used and server
  337. supports persistent connection.
  338. * src/HttpDownloadCommand.cc
  339. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Updated doc.
  341. * src/DownloadCommand.cc
  342. 2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Untabify. Fixed one line in copyright which is longer than 80
  344. columns.
  345. * src
  346. * test
  347. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Release 1.8.0
  349. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  350. Updated po templates.
  351. * po/aria2.pot
  352. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Documented --bt-save-metadata option in man page.
  354. * doc/aria2c.1.txt
  355. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Fixed usage of --bt-save-metadata option.
  357. * src/usage_text.h
  358. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Updated po templates.
  360. * po/aria2.pot
  361. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  362. Get rid of AI_ADDRCONFIG when --disable-ipv6 opiton is given. It
  363. causes name resolution error when none of network interface has
  364. IPv4 address.
  365. * src/main.cc
  366. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Bump up version number to 1.8.0.
  368. * configure.ac
  369. 2009-12-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  370. Use info hash as a filename when saving BitTorrent metadata.
  371. * src/UTMetadataPostDownloadHandler.cc
  372. * test/UTMetadataPostDownloadHandlerTest.cc
  373. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  374. Documented system.multicall XML-RPC method in man page.
  375. * doc/aria2c.1.txt
  376. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Added signal handler for SIGHUP to save .aria2 file when terminal
  378. is closed. The handler is the same one for SIGINT and SIGTERM.
  379. * src/MultiUrlRequestInfo.cc
  380. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Defined method name in XmlRpcMethod subclasses.
  382. * src/XmlRpcMethodFactory.cc
  383. * src/XmlRpcMethodImpl.cc
  384. * src/XmlRpcMethodImpl.h
  385. * test/XmlRpcMethodTest.cc
  386. 2009-12-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Added system.multicall XML-RPC method.
  388. * src/XmlRpcMethod.cc
  389. * src/XmlRpcMethod.h
  390. * src/XmlRpcMethodFactory.cc
  391. * src/XmlRpcMethodImpl.cc
  392. * src/XmlRpcMethodImpl.h
  393. * test/XmlRpcMethodTest.cc
  394. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Check structure depth when decoding.
  396. * src/bencode.cc
  397. * src/bencode.h
  398. * test/BencodeTest.cc
  399. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  400. Documented tellStopped XML-RPC method in man page.
  401. * doc/aria2c.1.txt
  402. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Added tellStopped XML-RPC method to aria2rpc.
  404. * doc/xmlrpc/aria2rpc
  405. 2009-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Added tellStopped XML-RPC method. This method returns stopped
  407. download in the specified range. It takes same parameters with
  408. tellWaiting XML-RPC method. offset = 0 means the oldest download.
  409. * src/XmlRpcMethodFactory.cc
  410. * src/XmlRpcMethodImpl.cc
  411. * src/XmlRpcMethodImpl.h
  412. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  413. Use AI_ADDRCONFIG flag if it is available. Refactored so that
  414. getaddrinfo calls are not scattered around. Unset AI_ADDRCONFIG
  415. when conducting unit tests because they fail if networking
  416. interface is not configured with IPv4 address.
  417. * src/NameResolver.cc
  418. * src/SocketCore.cc
  419. * src/SocketCore.h
  420. * src/a2netcompat.h
  421. * test/AllTest.cc
  422. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  423. Fixed unit test error
  424. * test/UTMetadataPostDownloadHandlerTest.cc
  425. 2009-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  426. Defined static string constants for efficiency.
  427. * src/XmlRpcMethodImpl.cc
  428. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  429. Added --bt-save-metadata option. When true is given, it saves
  430. metadata as .torrent file. This option has effect only when
  431. BitTorrent Magnet URI is used. The filename is name in metadata
  432. with suffix .torrent. The directory to be saved is the same
  433. directory where download file is saved. If the same file already
  434. exists, metdata is not saved.
  435. * src/OptionHandlerFactory.cc
  436. * src/UTMetadataPostDownloadHandler.cc
  437. * src/UTMetadataPostDownloadHandler.h
  438. * src/message.h
  439. * src/prefs.cc
  440. * src/prefs.h
  441. * src/usage_text.h
  442. * test/UTMetadataDataExtensionMessageTest.cc
  443. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Added util::saveAs() function. Use it in Signature::save().
  445. * src/Signature.cc
  446. * src/util.cc
  447. * src/util.h
  448. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Upcase info hash in Magnet URI.
  450. * doc/aria2c.1.txt
  451. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  452. Refactored RequestGroupMan::changeReservedGroupPosition()
  453. * src/RequestGroupMan.cc
  454. 2009-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Updated the description for aria2.addTorrent XML-RPC method.
  456. * doc/aria2c.1.txt
  457. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  458. Added changePosition to aria2rpc.
  459. * doc/xmlrpc/aria2rpc
  460. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Documented changePosition XML-RPC method in man page.
  462. * doc/aria2c.1.txt
  463. 2009-12-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Added changePosition XML-RPC method. It takes 3 parameters: gid,
  465. pos and how. This method changes the position of download denoted
  466. by gid. If how is POS_SET, it moves the download to a position
  467. relative to the beginning of the queue. If how is POS_CUR, it
  468. moves the download to a position relative to the current
  469. position. If how is POS_END, it moves the download to a position
  470. relative to the end of the queue. If the destination position is
  471. less than 0 or beyond the end of the queue, it moves the download
  472. to the beginning or the end of the queue respectively. Returns
  473. the destination position.
  474. * src/RequestGroupMan.cc
  475. * src/RequestGroupMan.h
  476. * src/XmlRpcMethodFactory.cc
  477. * src/XmlRpcMethodImpl.cc
  478. * src/XmlRpcMethodImpl.h
  479. * test/RequestGroupManTest.cc
  480. * test/XmlRpcMethodTest.cc
  481. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  482. Added getOption and getGlobalOption to aria2rpc.
  483. * doc/xmlrpc/aria2rpc
  484. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  485. Documented getOption and getGlobalOption XML-RPC method in man
  486. page
  487. * doc/aria2c.1.txt
  488. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Added getOption and getGlobalOption XML-RPC method. getOption
  490. takes GID as a parameter and returns its options as struct.
  491. getGlobalOption takes no parameter and returns global
  492. options. Because global option is used as a template for the
  493. option of newly added downloads, it includes options returned by
  494. getOption.
  495. * src/Option.h
  496. * src/XmlRpcMethodFactory.cc
  497. * src/XmlRpcMethodImpl.cc
  498. * src/XmlRpcMethodImpl.h
  499. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Sort _optionHandlers in OptionParser by name in ascending order.
  501. Use vector instead of deque for efficiency.
  502. * src/OptionHandler.h
  503. * src/OptionHandlerFactory.h
  504. * src/OptionParser.cc
  505. * src/OptionParser.h
  506. * src/version_usage.cc
  507. * test/OptionParserTest.cc
  508. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Code cleanup
  510. * src/XmlRpcMethod.cc
  511. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Documented about followedBy and belongsTo in man page.
  513. * doc/aria2c.1.txt
  514. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  515. Added following 2 keys, followedBy and belongsTo, to the response
  516. of tellStatus.
  517. followedBy: List of GIDs which are generated by the consequence of
  518. this download. For example, when aria2 downloaded Metalink file,
  519. it generates downloads described in it(see *--follow-metalink*
  520. option). This value is useful to track these auto generated
  521. downloads. If there is no such downloads, this key will not be
  522. included in the response.
  523. belongsTo: GID of a parent download. Some downloads are a part of
  524. another download. For example, if a file in Metalink has
  525. BitTorrent resource, the download of .torrent is a part of that
  526. file. If this download has no parent, this key will not be
  527. included in the response.
  528. * src/BtPostDownloadHandler.cc
  529. * src/DownloadResult.h
  530. * src/Metalink2RequestGroup.cc
  531. * src/MetalinkPostDownloadHandler.cc
  532. * src/RequestGroup.cc
  533. * src/RequestGroup.h
  534. * src/UTMetadataPostDownloadHandler.cc
  535. * src/XmlRpcMethodImpl.cc
  536. * src/XmlRpcMethodImpl.h
  537. 2009-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Assigned BObject in BDE() to avoid segmentation fault when calling
  539. methods of BDE::none().
  540. * src/BDE.cc
  541. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  542. Show info hash in Magnet URI in upper case letters in -S output.
  543. * src/bittorrent_helper.cc
  544. * test/BittorrentHelperTest.cc
  545. 2009-12-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  546. Removed old useless comment
  547. * src/MultiUrlRequestInfo.cc
  548. 2009-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  549. Fixed the bug that if --without-sqlite3 is given, pkg-config is
  550. not properly used in configure script and failed to detect gnutls.
  551. This is because explicit call of PKG_PROG_PKG_CONFIG is missing
  552. and the initialization of pkg-config is done in first occurrence
  553. of PKG_CHECK_MODULES which is not executed because it is inside of
  554. sqlite3.m4. Added explicit PKG_PROG_PKG_CONFIG call.
  555. * configure.ac
  556. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  557. Release 1.7.2
  558. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Fixed the bug that RequestGroupMan::downloadFinished() returns
  560. true even if all downloads haven't finished, especially when
  561. PostDownloadHandler is involved. Changed the condition so that it
  562. only returns true if both _requestGroups and _reservedGroups are
  563. empty.
  564. * src/RequestGroupMan.cc
  565. 2009-12-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  566. Log listening port for BitTorrent/DHT in notice level.
  567. * src/DHTConnectionImpl.cc
  568. * src/PeerListenCommand.cc
  569. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  570. Updated po templates.
  571. * po/aria2.pot
  572. 2009-12-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  573. Bump up version number to 1.7.2
  574. * configure.ac
  575. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  576. Changed default value of --enable-dht from 'false' to 'true'.
  577. * doc/aria2c.1.txt
  578. 2009-12-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  579. Enabled DHT by default because of Magnet URI support. To disable
  580. DHT, use --enable-dht=false
  581. * src/OptionHandlerFactory.cc
  582. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Print Magnet URI in -S output.
  584. * src/AnnounceList.cc
  585. * src/bittorrent_helper.cc
  586. * src/bittorrent_helper.h
  587. * test/BittorrentHelperTest.cc
  588. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Added --bt-prioritize-piece option to aria2rpc.
  590. * doc/xmlrpc/aria2rpc
  591. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  592. Refer Magnet URI in --help. Made some cosmetic changes.
  593. * src/version_usage.cc
  594. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Updated -T and -M option.
  596. * doc/aria2c.1.txt
  597. 2009-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Fixed typo
  599. * doc/aria2c.1.txt
  600. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Fixed the bug that line separator is missing in horizontal bar.
  602. * doc/xmlrpc/aria2mon
  603. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Updated usage text for --metalink-file option.
  605. * src/usage_text.h
  606. 2009-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. If '-' is given as an argument to --metalink-file option, aria2
  608. reads Metalink file from stdin.
  609. * src/OptionHandlerFactory.cc
  610. * src/OptionHandlerImpl.h
  611. * src/a2io.h
  612. 2009-12-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Fixed the bug that aria2 listens wrong port if --interface option
  614. is used.
  615. * src/SocketCore.cc
  616. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  617. Fixed the bug that query parameter in magnet URI is not decoded.
  618. * src/magnet.cc
  619. * test/MagnetTest.cc
  620. 2009-12-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  621. Specified defaultSize as an argument for easy testing.
  622. * src/util.cc
  623. * src/util.h
  624. * test/UtilTest.cc
  625. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Release 1.7.1
  627. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  628. Bump up version number to 1.7.1
  629. * configure.ac
  630. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Fixed the bug --bt-prioritize-piece=tail is not working.
  632. * src/util.cc
  633. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  634. Release 1.7.0
  635. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  636. Updated po templates.
  637. * po/aria2.pot
  638. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Updated help message for --bt-prioritize-piece. Some cosmetic
  640. changes.
  641. * doc/aria2c.1.txt
  642. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Set default value for SIZE in --bt-prioritize-piece to 1MiB.
  644. * src/usage_text.h
  645. * src/util.cc
  646. * test/UtilTest.cc
  647. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Updated Russian, Ukrainian, German and French translations.
  649. Thanks to all translators involved.
  650. * po/de.po
  651. * po/fr.po
  652. * po/ru.po
  653. * po/uk.po
  654. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Mentioned about pkg-config
  656. * README
  657. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  658. Fixed typo. Referred --index-out option in BitTorrent notes.
  659. * README
  660. 2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  661. Store all addresses found by getifaddrs() and getaddrinfo(). In
  662. bind, try all addresses until success
  663. * src/SocketCore.cc
  664. * src/SocketCore.h
  665. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Updated po templates.
  667. * po/aria2.pot
  668. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Bump up version number to 1.7.0
  670. * configure.ac
  671. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Fixed compile error if ENABLE_BITTORRENT is undefined.
  673. * src/DefaultPieceStorage.cc
  674. * src/DefaultPieceStorage.h
  675. * src/PieceStorage.h
  676. * src/UnknownLengthPieceStorage.cc
  677. * src/UnknownLengthPieceStorage.h
  678. * test/MockPieceStorage.h
  679. * test/ProtocolDetectorTest.cc
  680. * test/XmlRpcMethodTest.cc
  681. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Documented in man page that if getifaddrs() is missing,
  683. --interface option doesn't accept interface name.
  684. * doc/aria2c.1.txt
  685. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  686. Use last 8 bytes of peer ID as 'key' parameter for tracker request.
  687. * src/DefaultBtAnnounce.cc
  688. * src/DefaultBtAnnounce.h
  689. * test/DefaultBtAnnounceTest.cc
  690. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Fixed the bug that connection is always dropped if handshake
  692. message in extension protocol don't have metadata_size.
  693. src/HandshakeExtensionMessage.cc
  694. * src/HandshakeExtensionMessage.cc
  695. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Updated "URI, MAGNET, TORRENT_FILE, METALINK_FILE" section. Added
  697. text saying DHT is recommended when Magnet URI is provided.
  698. * doc/aria2c.1.txt
  699. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  700. Fixed the bug that DHT is always enabled when BitTorrent Magnet
  701. URI is supplied. Notify user that they should consider enabling
  702. DHT if they use Magnet URI.
  703. * src/RequestGroup.cc
  704. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  705. Added --disable-ipv6 option to disable IPv6.
  706. * doc/aria2c.1.txt
  707. * src/InitiateConnectionCommand.cc
  708. * src/NameResolver.cc
  709. * src/NameResolver.h
  710. * src/OptionHandlerFactory.cc
  711. * src/main.cc
  712. * src/prefs.cc
  713. * src/prefs.h
  714. * src/usage_text.h
  715. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Updated usage text for --bt-prioritize-piece option.
  717. * doc/aria2c.1.txt
  718. * src/usage_text.h
  719. 2009-12-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. In configure script, if --with-PACKAGE and --enable-FEATURE are
  721. given and PACKAGE is missing in the system or FEATURE cannot be
  722. enabled, print error message and stop the script.
  723. * configure.ac
  724. * m4/aria2_arg.m4
  725. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  726. Halt metadata download immediately when metadata download is done.
  727. Don't wait unresponsive tracker.
  728. * src/ByteArrayDiskWriter.h
  729. * src/DefaultBtInteractive.cc
  730. * src/DefaultExtensionMessageFactory.cc
  731. * src/DefaultExtensionMessageFactory.h
  732. * src/PeerInteractionCommand.cc
  733. * src/UTMetadataDataExtensionMessage.cc
  734. * src/UTMetadataDataExtensionMessage.h
  735. * src/UTMetadataRequestExtensionMessage.cc
  736. * test/UTMetadataDataExtensionMessageTest.cc
  737. * test/UTMetadataRequestExtensionMessageTest.cc
  738. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  739. Documented --interface option in man page.
  740. * doc/aria2c.1.txt
  741. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Try resolved address in the order received from the resolver.
  743. * src/DNSCache.h
  744. 2009-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Added debug logs.
  746. * src/SocketCore.cc
  747. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Fixed type of tail to uint64_t
  749. * src/util.cc
  750. 2009-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Added --interface option. This feature binds sockets to given
  752. interface. You can specify interface name, IP address and
  753. hostname.
  754. * configure.ac
  755. * src/OptionHandlerFactory.cc
  756. * src/SocketCore.cc
  757. * src/SocketCore.h
  758. * src/main.cc
  759. * src/message.h
  760. * src/prefs.cc
  761. * src/prefs.h
  762. * src/usage_text.h
  763. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Updated man page for bt-prioritize-piece option in -i list.
  765. * doc/aria2c.1.txt
  766. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  767. Added bt-prioritize-piece option to -i list.
  768. * src/download_helper.cc
  769. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  770. Removed --http-auth-scheme option from man page.
  771. * doc/aria2c.1.txt
  772. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Removed --http-auth-scheme option since it doesn't do nothing.
  774. * src/OptionHandlerFactory.cc
  775. * src/prefs.cc
  776. * src/prefs.h
  777. * src/usage_text.h
  778. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  779. Adjusted the number of peer info which get_peers reply message can
  780. carry.
  781. * src/DHTGetPeersReplyMessage.cc
  782. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  783. Added extension_message_test_helper.h to aria2c_SOURCES.
  784. * test/Makefile.am
  785. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Documented --bt-prioritize-piece option in man page.
  787. * doc/aria2c.1.txt
  788. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  789. Added option --bt-prioritize-piece. This option instruct aria2 to
  790. try to download first and last pieces of each file first. The
  791. argument can contain 2 keywords:head and tail. To include both
  792. keywords, they must be separated by comma. These keywords can take
  793. one parameter, SIZE. For example , if head=SIZE is specified,
  794. pieces in the range of first SIZE bytes of each file get higher
  795. priority. tail=SIZE means the range of last SIZE bytes of each
  796. file. SIZE can include K or M(1K = 1024, 1M = 1024K).
  797. * src/DefaultPieceStorage.h
  798. * src/Makefile.am
  799. * src/OptionHandlerFactory.cc
  800. * src/OptionHandlerImpl.h
  801. * src/PriorityPieceSelector.cc
  802. * src/PriorityPieceSelector.h
  803. * src/RequestGroup.cc
  804. * src/prefs.cc
  805. * src/prefs.h
  806. * src/usage_text.h
  807. * src/util.cc
  808. * src/util.h
  809. * test/Makefile.am
  810. * test/MockPieceSelector.h
  811. * test/PriorityPieceSelectorTest.cc
  812. * test/UtilTest.cc
  813. 2009-11-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  814. Fixed typo
  815. * src/HttpRequest.h
  816. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. In Magnet URI with tr parameter, put each announce URI in separate
  818. tier.
  819. * src/bittorrent_helper.cc
  820. * test/BittorrentHelperTest.cc
  821. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  822. Renamed ExtensionMessage::getBencodedData() as
  823. ExtensionMessage::getPayload()
  824. * src/BtExtendedMessage.cc
  825. * src/ExtensionMessage.h
  826. * src/HandshakeExtensionMessage.cc
  827. * src/HandshakeExtensionMessage.h
  828. * src/UTMetadataDataExtensionMessage.cc
  829. * src/UTMetadataDataExtensionMessage.h
  830. * src/UTMetadataRejectExtensionMessage.cc
  831. * src/UTMetadataRejectExtensionMessage.h
  832. * src/UTMetadataRequestExtensionMessage.cc
  833. * src/UTMetadataRequestExtensionMessage.h
  834. * src/UTPexExtensionMessage.cc
  835. * src/UTPexExtensionMessage.h
  836. * test/HandshakeExtensionMessageTest.cc
  837. * test/MockExtensionMessage.h
  838. * test/UTMetadataDataExtensionMessageTest.cc
  839. * test/UTMetadataRejectExtensionMessageTest.cc
  840. * test/UTMetadataRequestExtensionMessageTest.cc
  841. * test/UTPexExtensionMessageTest.cc
  842. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Updated man page for BitTorrent Magnet URI.
  844. * doc/aria2c.1.txt
  845. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  846. Call DownloadContext::setOwnerRequestGroup() in
  847. RequestGroup::setDownloadContext().
  848. * src/BtDependency.cc
  849. * src/RequestGroup.cc
  850. * src/RequestGroup.h
  851. * src/download_helper.cc
  852. * test/DefaultBtMessageDispatcherTest.cc
  853. * test/DefaultExtensionMessageFactoryTest.cc
  854. * test/HandshakeExtensionMessageTest.cc
  855. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Accept BitTorrent Magnet URI in Metalink resource type bittorrent.
  857. Rewritten UTMetadataPostDownloadHandler. To create torrent data
  858. from metadata, use new metadata2Torrent() function.
  859. * src/BtDependency.cc
  860. * src/UTMetadataPostDownloadHandler.cc
  861. * src/bittorrent_helper.cc
  862. * src/bittorrent_helper.h
  863. * test/BittorrentHelperTest.cc
  864. * test/BtDependencyTest.cc
  865. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Use createRequestGroupForUri to create the download for torrent
  867. file.
  868. * src/Metalink2RequestGroup.cc
  869. * test/Metalink2RequestGroupTest.cc
  870. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  871. Fixed typo
  872. * src/DownloadContext.h
  873. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  874. Use createRequestGroupForBitTorrent()
  875. * src/BtPostDownloadHandler.cc
  876. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  877. Added remove().
  878. * src/Option.cc
  879. * src/Option.h
  880. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Removed options which is only valid for URIs specified in
  882. command-line. If they are left, because op is used as a template
  883. for new RequestGroup(such as created in XML-RPC command,
  884. BtPostDownloadHandler etc), they causes unintentional effect.
  885. * src/main.cc
  886. 2009-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  887. Refer to option value of PREF_OUT only in download_helper.
  888. * src/FtpNegotiationCommand.cc
  889. * src/HttpResponseCommand.cc
  890. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Now addUri XML-RPC method accepts BitTorrent Magnet URI.
  892. * src/download_helper.cc
  893. * src/download_helper.h
  894. * src/XmlRpcMethodImpl.cc
  895. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Updated man page for changeOption XML-RPC method.
  897. * doc/aria2c.1.txt
  898. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Added --bt-max-peers option to changeOption XML-RPC method.
  900. * src/XmlRpcMethod.cc
  901. * src/XmlRpcMethodImpl.cc
  902. * test/XmlRpcMethodTest.cc
  903. 2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  904. Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
  905. * test/XmlRpcMethodTest.cc
  906. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  907. Removed redundant DownloadContext::hasAttribute(...) calls.
  908. * src/ConsoleStatCalc.cc
  909. * src/RequestGroup.cc
  910. * src/XmlRpcMethodImpl.cc
  911. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  912. Changed the number of tracker request attempt from 5 to 2.
  913. * src/TrackerWatcherCommand.cc
  914. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  915. Use host and protocol in original URI, because URI selector
  916. selects URI based on original URI, not redirected one.
  917. * src/Request.cc
  918. 2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  919. Fixed the bug which causes segmentation fault with tellWaiting
  920. XML-RPC method when BitTorrent download is waiting. The key of
  921. BtRegistry is changed from info hash to GID, because it is
  922. registered per RequestGroup, not info hash.
  923. * src/BtRegistry.cc
  924. * src/BtRegistry.h
  925. * src/BtSetup.cc
  926. * src/ConsoleStatCalc.cc
  927. * src/InitiatorMSEHandshakeCommand.cc
  928. * src/PeerInitiateConnectionCommand.cc
  929. * src/PeerInteractionCommand.cc
  930. * src/PeerInteractionCommand.h
  931. * src/PeerReceiveHandshakeCommand.cc
  932. * src/RequestGroup.cc
  933. * src/XmlRpcMethodImpl.cc
  934. * test/BtRegistryTest.cc
  935. * test/XmlRpcMethodTest.cc
  936. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  937. Updated man page for changeOption XML-RPC method.
  938. * doc/aria2c.1.txt
  939. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Added --bt-request-peer-speed-limit option to changeOption XML-RPC
  941. method.
  942. * src/XmlRpcMethod.cc
  943. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  944. Documented about BitTorrent Magnet URI in man page.
  945. * doc/aria2c.1.txt
  946. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  947. Fixed the bug that trackers in BitTorrent Magnet URI are not
  948. inherited to generated RequestGroup.
  949. * src/UTMetadataPostDownloadHandler.cc
  950. * test/UTMetadataPostDownloadHandlerTest.cc
  951. 2009-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Prepended "[METADATA]" before dn.
  953. * src/bittorrent_helper.cc
  954. * test/BittorrentHelperTest.cc
  955. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  956. Rewritten Magnet URI parser.
  957. * src/Makefile.am
  958. * src/ProtocolDetector.cc
  959. * src/bittorrent_helper.cc
  960. * src/bittorrent_helper.h
  961. * src/download_helper.cc
  962. * src/magnet.cc
  963. * src/magnet.h
  964. * test/BittorrentHelperTest.cc
  965. * test/MagnetTest.cc
  966. * test/Makefile.am
  967. * test/ProtocolDetectorTest.cc
  968. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  969. Use hton64
  970. * src/base32.cc
  971. 2009-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  972. Added Base32 encoded BitTorrent Magnet Link support.
  973. * src/Makefile.am
  974. * src/base32.cc
  975. * src/base32.h
  976. * src/bittorrent_helper.cc
  977. * test/Base32Test.cc
  978. * test/BittorrentHelperTest.cc
  979. * test/Makefile.am
  980. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Added BitTorrent Magnet Link support. Base32 encoded link is not
  982. supported yet. Fixed typo in method name in RequestGroup. In
  983. metadataGetMode, don't show "Your share ratio was ..." message.
  984. * src/DefaultBtInteractive.cc
  985. * src/DefaultBtInteractive.h
  986. * src/DownloadHandlerFactory.cc
  987. * src/DownloadHandlerFactory.h
  988. * src/HandshakeExtensionMessage.cc
  989. * src/Makefile.am
  990. * src/Metalink2RequestGroup.cc
  991. * src/PeerInteractionCommand.cc
  992. * src/RequestGroup.cc
  993. * src/RequestGroup.h
  994. * src/UTMetadataPostDownloadHandler.cc
  995. * src/UTMetadataPostDownloadHandler.h
  996. * src/download_helper.cc
  997. * test/HandshakeExtensionMessageTest.cc
  998. * test/Makefile.am
  999. * test/UTMetadataPostDownloadHandlerTest.cc
  1000. * test/UTMetadataRejectExtensionMessageTest.cc
  1001. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1002. In metadataGetMode, don't show SEEDING.
  1003. * src/ConsoleStatCalc.cc
  1004. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Fixed ut_metadata data handling. Implemented
  1006. UTMetadataDataExtensionMessage::doReceivedAction(). Initialize
  1007. PeerStorage in HandshakeExtensionMessage::doReceivedAction() when
  1008. metadata_size is received.
  1009. * src/DefaultExtensionMessageFactory.cc
  1010. * src/DefaultExtensionMessageFactory.h
  1011. * src/HandshakeExtensionMessage.cc
  1012. * src/HandshakeExtensionMessage.h
  1013. * src/UTMetadataDataExtensionMessage.cc
  1014. * src/UTMetadataDataExtensionMessage.h
  1015. * src/UTMetadataRequestExtensionMessage.cc
  1016. * src/UTMetadataRequestFactory.cc
  1017. * src/UTMetadataRequestFactory.h
  1018. * src/UTMetadataRequestTracker.cc
  1019. * src/UTMetadataRequestTracker.h
  1020. * test/DefaultExtensionMessageFactoryTest.cc
  1021. * test/HandshakeExtensionMessageTest.cc
  1022. * test/MockBtMessage.h
  1023. * test/UTMetadataDataExtensionMessageTest.cc
  1024. * test/UTMetadataRequestExtensionMessageTest.cc
  1025. * test/UTMetadataRequestFactoryTest.cc
  1026. * test/UTMetadataRequestTrackerTest.cc
  1027. * test/extension_message_test_helper.h
  1028. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Drop connection if ut_metadata reject message is received.
  1030. * src/UTMetadataRejectExtensionMessage.cc
  1031. 2009-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Set thresholdSpeed to 0 in metadataGetMode because speed doesn't
  1033. get high enough in that mode.
  1034. * src/ActivePeerConnectionCommand.cc
  1035. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Added BitTorrent magnet link support to ProtocolDetector.
  1037. * src/ProtocolDetector.cc
  1038. * src/ProtocolDetector.h
  1039. * test/ProtocolDetectorTest.cc
  1040. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1041. Don't inject validator into BtMessage in metadataGetMode because
  1042. most of the checks depends on the total length of download but it
  1043. is unknown. Delegate metadataGetMode to BtMessage.
  1044. * src/DefaultBtMessageFactory.cc
  1045. * src/DefaultBtMessageFactory.h
  1046. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1047. Added setEndGamePieceNum() pure virtual function to PieceStorage.
  1048. * src/DefaultPieceStorage.h
  1049. * src/PieceStorage.h
  1050. * src/UnknownLengthPieceStorage.h
  1051. * test/MockPieceStorage.h
  1052. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1053. Added markTotalLengthIsKnown().
  1054. * src/DownloadContext.h
  1055. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1056. Don't add PeerChokeCommand and SeedCheckCommand if metadata is
  1057. missing. If metadata is missing, always use DHT when it is ready.
  1058. * src/BtSetup.cc
  1059. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Added parseMagnetLink(). Hex encoded info hash is supported.
  1061. Base32 encoded info hash is not supported yet.
  1062. * src/bittorrent_helper.cc
  1063. * src/bittorrent_helper.h
  1064. * test/BittorrentHelperTest.cc
  1065. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1066. Added FromHex()
  1067. * src/util.cc
  1068. * src/util.h
  1069. * test/UtilTest.cc
  1070. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1071. Added _metadataGetMode member variable. It toggles the action when
  1072. messages are received: usually they almost do nothing if
  1073. _metadataGetMode is true.
  1074. * src/AbstractBtMessage.cc
  1075. * src/AbstractBtMessage.h
  1076. * src/BtAllowedFastMessage.cc
  1077. * src/BtBitfieldMessage.cc
  1078. * src/BtCancelMessage.cc
  1079. * src/BtChokeMessage.cc
  1080. * src/BtHaveAllMessage.cc
  1081. * src/BtHaveMessage.cc
  1082. * src/BtInterestedMessage.cc
  1083. * src/BtNotInterestedMessage.cc
  1084. * src/BtPieceMessage.cc
  1085. * src/BtRejectMessage.cc
  1086. * src/BtRequestMessage.cc
  1087. * src/BtUnchokeMessage.cc
  1088. 2009-11-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1089. Added bencode::decode overload functions. They have extra argument
  1090. 'end', passed by reference. 'end' points to the beyond the last
  1091. position of data used in decoding process.
  1092. * src/bencode.cc
  1093. * src/bencode.h
  1094. * test/BencodeTest.cc
  1095. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Initial support of Extension for Peers to Send Metadata
  1097. Files(BEP9). Currently aria2 only serves metadata and cannot get
  1098. metadata from swarm.
  1099. * src/BtConstants.h
  1100. * src/DefaultBtInteractive.cc
  1101. * src/DefaultExtensionMessageFactory.cc
  1102. * src/DefaultExtensionMessageFactory.h
  1103. * src/ExtensionMessage.h
  1104. * src/ExtensionMessageRegistry.h
  1105. * src/HandshakeExtensionMessage.cc
  1106. * src/HandshakeExtensionMessage.h
  1107. * src/Makefile.am
  1108. * src/PeerConnection.h
  1109. * src/PeerInteractionCommand.cc
  1110. * src/UTMetadataDataExtensionMessage.cc
  1111. * src/UTMetadataDataExtensionMessage.h
  1112. * src/UTMetadataExtensionMessage.cc
  1113. * src/UTMetadataExtensionMessage.h
  1114. * src/UTMetadataRejectExtensionMessage.cc
  1115. * src/UTMetadataRejectExtensionMessage.h
  1116. * src/UTMetadataRequestExtensionMessage.cc
  1117. * src/UTMetadataRequestExtensionMessage.h
  1118. * src/bittorrent_helper.cc
  1119. * src/bittorrent_helper.h
  1120. * test/BittorrentHelperTest.cc
  1121. * test/DefaultExtensionMessageFactoryTest.cc
  1122. * test/HandshakeExtensionMessageTest.cc
  1123. * test/Makefile.am
  1124. * test/UTMetadataDataExtensionMessageTest.cc
  1125. * test/UTMetadataRejectExtensionMessageTest.cc
  1126. * test/UTMetadataRequestExtensionMessageTest.cc
  1127. 2009-11-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1128. Cancel segment in prepareForRetry() because there is a chance that
  1129. the command has segments.
  1130. * src/CreateRequestCommand.cc
  1131. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Fixed the bug that slow server is not knocked down in favor of
  1133. faster one.
  1134. * src/AbstractCommand.cc
  1135. * src/DefaultPieceStorage.cc
  1136. * src/DefaultPieceStorage.h
  1137. * src/PieceStorage.h
  1138. * src/UnknownLengthPieceStorage.cc
  1139. * src/UnknownLengthPieceStorage.h
  1140. * test/MockPieceStorage.h
  1141. 2009-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1142. Fixed the bug that Request object is not added to
  1143. _inFlightRequests in findFasterRequest().
  1144. * src/FileEntry.cc
  1145. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1146. Changed the strategry of how to increase the number of outstanding
  1147. requests. Now the number is doubled if there are no outstanding
  1148. requests after receiving messages.
  1149. * src/BtConstants.h
  1150. * src/DefaultBtInteractive.cc
  1151. * src/DefaultBtInteractive.h
  1152. 2009-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1153. Check socket for reading if there are outstanding requests.
  1154. * src/PeerInteractionCommand.cc
  1155. 2009-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Moved frequently called methods to header file so they get
  1157. inlined.
  1158. * src/RequestSlot.cc
  1159. * src/RequestSlot.h
  1160. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Copied in_addr instead of just casting from char* which might
  1162. violate strict aliasing rules.
  1163. * src/AsyncNameResolver.cc
  1164. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1165. Use dynamic_pointer_cast
  1166. * test/BtPieceMessageTest.cc
  1167. * test/BtRequestMessageTest.cc
  1168. * test/DefaultBtRequestFactoryTest.cc
  1169. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1170. Added testSetUrl20()
  1171. * test/RequestTest.cc
  1172. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1173. Code cleanup
  1174. * src/bittorrent_helper.cc
  1175. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1176. Use C++ style cast
  1177. * src/AsyncNameResolver.cc
  1178. * src/Base64.h
  1179. * src/BtBitfieldMessage.cc
  1180. * src/BtHandshakeMessage.cc
  1181. * src/DefaultBtMessageFactory.cc
  1182. * src/DefaultBtProgressInfoFile.cc
  1183. * src/EpollEventPoll.cc
  1184. * src/ExpatMetalinkProcessor.cc
  1185. * src/IteratableChecksumValidator.cc
  1186. * src/IteratableChunkChecksumValidator.cc
  1187. * src/MessageDigestHelper.cc
  1188. * src/Platform.cc
  1189. * src/RequestGroupMan.cc
  1190. * src/SingleFileAllocationIterator.cc
  1191. * src/Sqlite3MozCookieParser.cc
  1192. * src/XML2SAXMetalinkProcessor.cc
  1193. * src/Xml2XmlRpcRequestProcessor.cc
  1194. * src/util.cc
  1195. * src/util.h
  1196. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1197. Fixed integer potential alignment problem.
  1198. * src/bitfield.h
  1199. 2009-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1200. Applied a patch from tizianomueller to fix sigbus errors on Linux
  1201. sparc. I modified the patch to eliminate a cast to uint32_t* and
  1202. include file ordering.
  1203. * src/PeerListProcessor.h
  1204. * src/bittorrent_helper.cc
  1205. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Added util::parseUIntNoThrow(). Use it in Request::parseUrl().
  1207. * src/Request.cc
  1208. * src/util.cc
  1209. * src/util.h
  1210. * test/RequestTest.cc
  1211. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1212. Rewritten util::uitos()
  1213. * src/util.h
  1214. 2009-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1215. Code cleanup
  1216. * src/Request.cc
  1217. * src/Request.h
  1218. 2009-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1219. Rewritten Request::parseUrl()
  1220. * src/Request.cc
  1221. * test/RequestTest.cc
  1222. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1223. Removed unused macro SAFE_CHARS
  1224. * src/Request.cc
  1225. 2009-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1226. Updated doc
  1227. * src/DHTRoutingTableDeserializer.cc
  1228. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1229. Release 1.6.3
  1230. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Removed unused function.
  1232. * test/DHTPeerAnnounceStorageTest.cc
  1233. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1234. Only decrement cols if cols > 0
  1235. * src/ConsoleStatCalc.cc
  1236. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1237. Updated Polish, Catalan, French, Italian, Russian and Japanese
  1238. translations. Thanks to all translators.
  1239. * po/ca.po
  1240. * po/fr.po
  1241. * po/it.po
  1242. * po/ja.po
  1243. * po/pl.po
  1244. * po/ru.po
  1245. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1246. Updated translation template
  1247. * po
  1248. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1249. Fixed compile error without ssl library.
  1250. * src/util.cc
  1251. 2009-11-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1252. Logged received nodes in get_peers reply message.
  1253. * src/DHTAbstractNodeLookupTask.cc
  1254. * src/DHTAbstractNodeLookupTask.h
  1255. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1256. Fixed the bug that DHTAbstractNodeLookupTask never finishes if
  1257. error occurred in DHTMessageDispatcherImpl::sendMessage().
  1258. * src/DHTMessageDispatcherImpl.cc
  1259. 2009-11-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Don't reuse URI if Request pool is not empty.
  1261. * src/CreateRequestCommand.cc
  1262. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1263. Removed peerStorage from DHTPeerAnnounceEntry. It is unlikely to
  1264. receive get_peers request for torrent which the client is now
  1265. downloading.
  1266. * src/BtSetup.cc
  1267. * src/DHTPeerAnnounceEntry.cc
  1268. * src/DHTPeerAnnounceEntry.h
  1269. * src/DHTPeerAnnounceStorage.cc
  1270. * src/DHTPeerAnnounceStorage.h
  1271. * src/RequestGroup.cc
  1272. * test/DHTPeerAnnounceEntryTest.cc
  1273. * test/DHTPeerAnnounceStorageTest.cc
  1274. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Fixed the bug that in Windows environment new blank line is
  1276. inserted when console readout is updated.
  1277. * src/ConsoleStatCalc.cc
  1278. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1279. Throw exception if binding listening port is failed. Removed
  1280. RequestGroupMan::getInitialCommand(). Use
  1281. fillRequestGroupFromReserver() instead. Delete commands for
  1282. RequestGroup which has errors when it is being added.
  1283. * src/BtSetup.cc
  1284. * src/DownloadEngine.cc
  1285. * src/DownloadEngine.h
  1286. * src/DownloadEngineFactory.cc
  1287. * src/MultiUrlRequestInfo.cc
  1288. * src/RequestGroupMan.cc
  1289. * src/RequestGroupMan.h
  1290. * test/RequestGroupManTest.cc
  1291. 2009-10-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1292. Fixed the bug that when downloading more than one torrent,
  1293. listening port is not reported properly to tracker for 2nd or
  1294. later torrents.
  1295. * src/BtSetup.cc
  1296. * src/PeerListenCommand.cc
  1297. * src/PeerListenCommand.h
  1298. * src/RequestGroup.cc
  1299. 2009-10-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Bump up version number to 1.6.3
  1301. * configure.ac
  1302. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1303. Removed Util.cc from POTFILES.in
  1304. * po/POTFILES.in
  1305. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Updated man page for previous change.
  1307. * doc/aria2c.1.txt
  1308. 2009-10-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1309. If user name is embedded but password is missing in URI, first
  1310. resolve password using .netrc. If password is found in .netrc,
  1311. then use it as password. If not, use the password specified in
  1312. --ftp-passwd.
  1313. * src/AuthConfigFactory.cc
  1314. * src/Request.cc
  1315. * src/Request.h
  1316. * test/AuthConfigFactoryTest.cc
  1317. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Fixed typo
  1319. * doc/aria2c.1.txt
  1320. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Fixed typo
  1322. * src/usage_text.h
  1323. 2009-10-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1324. Added missing bitfield.cc
  1325. * src/bitfield.cc
  1326. 2009-10-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1327. Renamed Util.{cc,h} as util.{cc,h}
  1328. * src/Util.cc
  1329. * src/Util.h
  1330. * src/util.cc
  1331. * src/util.h
  1332. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1333. Moved static functions in Util class to namespace util.
  1334. * src
  1335. * test
  1336. 2009-10-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1337. Moved generateRandomData to Util.cc Moved flipBit to bitfield.cc.
  1338. Moved generateRandomKey to bittorrent_helper.cc.
  1339. * src/DHTBucket.cc
  1340. * src/DHTGetPeersMessage.cc
  1341. * src/DHTGetPeersReplyMessage.cc
  1342. * src/DHTMessage.cc
  1343. * src/DHTNode.cc
  1344. * src/DHTTokenTracker.cc
  1345. * src/DHTUtil.cc: Removed.
  1346. * src/DHTUtil.h: Removed.
  1347. * src/Makefile.am
  1348. * src/Util.cc
  1349. * src/Util.h
  1350. * src/bitfield.h
  1351. * src/bittorrent_helper.cc
  1352. * src/bittorrent_helper.h
  1353. * test/ARC4Test.cc
  1354. * test/BNodeTest.cc
  1355. * test/DHTAnnouncePeerMessageTest.cc
  1356. * test/DHTAnnouncePeerReplyMessageTest.cc
  1357. * test/DHTFindNodeMessageTest.cc
  1358. * test/DHTFindNodeReplyMessageTest.cc
  1359. * test/DHTGetPeersMessageTest.cc
  1360. * test/DHTGetPeersReplyMessageTest.cc
  1361. * test/DHTPingMessageTest.cc
  1362. * test/DHTPingReplyMessageTest.cc
  1363. * test/DHTTokenTrackerTest.cc
  1364. * test/DHTUtilTest.cc: Removed.
  1365. * test/Makefile.am
  1366. * test/UtilTest.cc
  1367. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Removed the call to trim() because trim() is called for each
  1369. element in split().
  1370. * src/CookieParser.cc
  1371. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1372. Replaced Util::slice() with split()
  1373. * src/AbstractCommand.cc
  1374. * src/CookieParser.cc
  1375. * src/File.cc
  1376. * src/HttpHeaderProcessor.cc
  1377. * src/HttpRequest.cc
  1378. * src/Metalink2RequestGroup.cc
  1379. * src/MetalinkParserController.cc
  1380. * src/Netrc.cc
  1381. * src/NsCookieParser.cc
  1382. * src/ParameterizedStringParser.cc
  1383. * src/ServerStatMan.cc
  1384. * src/UriListParser.cc
  1385. * src/Util.cc
  1386. * src/Util.h
  1387. * src/bittorrent_helper.cc
  1388. * test/UtilTest.cc
  1389. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Use request->getDir() instead of "/" for embedded user/pass in
  1391. URI.
  1392. * src/AuthConfigFactory.cc
  1393. 2009-10-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1394. Fixed wrong insertion point for BasicCred.
  1395. * src/AuthConfigFactory.cc
  1396. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1397. Allowed non-regular file in LocalFilePathOptionHandler
  1398. * src/OptionHandlerImpl.h
  1399. * src/message.h
  1400. 2009-10-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1401. Fixed the bug that Netrc::parse() cannot recognize comment line.
  1402. * src/Netrc.cc
  1403. * src/Util.h
  1404. * test/NetrcTest.cc
  1405. * test/sample.netrc
  1406. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1407. Fixed typo
  1408. * src/BtDependency.cc
  1409. * src/BtRejectMessage.cc
  1410. * src/FtpConnection.cc
  1411. * src/HttpHeaderProcessor.h
  1412. 2009-10-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1413. Fixed lintian report in man page
  1414. * doc/aria2c.1.txt
  1415. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1416. Release 1.6.2
  1417. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Updated Ukrainian translation. Thanks to all translators.
  1419. * po/uk.po
  1420. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Updated translation template
  1422. * po
  1423. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1424. Bump up version number to 1.6.2
  1425. * configure.ac
  1426. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1427. Updated licence message in -v output.
  1428. * src/version_usage.cc
  1429. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1430. Replaced aria2 with aria2c in help message.
  1431. * src/version_usage.cc
  1432. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Use PACKAGE_BUGREPORT and PACKAGE_URL.
  1434. * src/version_usage.cc
  1435. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1436. Quoted localedir
  1437. * src/Makefile.am
  1438. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1439. Added AC_FUNC_STRTOD and AC_TYPE_PID_T. Check function for pow,
  1440. utime. Check header for utime.h.
  1441. * configure.ac
  1442. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Use AC_FUNC_FORK. Replaced HAVE_FORK with HAVE_WORKING_FORK.
  1444. * configure.ac
  1445. * src/daemon.cc
  1446. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1447. Don't set localedir manually. Leave it to autoconf.
  1448. * configure.ac
  1449. * src/Makefile.am
  1450. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1451. Added --install to ACLOCAL_AMFLAGS.
  1452. Removed m4 from SUBDIRS.
  1453. Updated automake 1.11 and autoconf 2.64.
  1454. Replaced some obsolute macros with new one.
  1455. * Makefile.am
  1456. * configure.ac
  1457. * m4/aria2_arg.m4
  1458. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1459. Removed Makefile.am in m4 directory.
  1460. * configure.ac
  1461. * m4/ChangeLog
  1462. * m4/Makefile.am
  1463. * m4/Makefile.in
  1464. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1465. Removed unused m4 macros.
  1466. * m4/intldir.m4
  1467. * m4/inttypes.m4
  1468. * m4/isc-posix.m4
  1469. * m4/libgnutls-extra.m4
  1470. * m4/ulonglong.m4
  1471. 2009-10-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Fixed the bug that causes segmentation fault if
  1473. req->getCurrentUrl() contains printf formatting characters such as
  1474. %d. The statement that causes this bug is useless and removed.
  1475. * src/AbstractCommand.cc
  1476. 2009-10-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1477. * Release 1.6.1
  1478. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Updated Simplified Chinese translation. Thanks to translators.
  1480. * po/zh_CN.po
  1481. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1482. Updated translation template
  1483. * po
  1484. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1485. Bump up version number to 1.6.1
  1486. * configure.ac
  1487. 2009-10-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1488. Changed interval from 120 to 60 for dropping inactive peer.
  1489. * src/DefaultBtInteractive.cc
  1490. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1491. Updated man page for --user-agent and --peer-id-prefix option.
  1492. * doc/aria2c.1.txt
  1493. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1494. Code clean up
  1495. * src/BtPostDownloadHandler.cc
  1496. * src/ContentTypeRequestGroupCriteria.cc
  1497. * src/ContentTypeRequestGroupCriteria.h
  1498. * src/DownloadHandlerConstants.cc
  1499. * src/DownloadHandlerConstants.h
  1500. * src/DownloadHandlerFactory.cc
  1501. * src/MetalinkPostDownloadHandler.cc
  1502. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1503. Don't save control file when aria2 exists while checking piece
  1504. hash(behavior of -V option). If control file doesn't exist when
  1505. aria2 launched, the completed length in saved control file will be
  1506. 0 byte and this confuses user. disableSaveControlFile() is called
  1507. in RequestGroup::processCheckIntegrityEntry().
  1508. enableSaveControlFile() will be called after hash checking is
  1509. done. See CheckIntegrityCommand.
  1510. * src/CheckIntegrityCommand.cc
  1511. * src/RequestGroup.cc
  1512. * src/RequestGroup.h
  1513. * src/RequestGroupMan.cc
  1514. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Included version number in Peer ID and client version. Peer ID
  1516. now starts with "aria2/VERSION-", where VERSION is
  1517. MAJOR.MINOR.MICRO. Client version is aria2/VERSION.
  1518. * src/DefaultBtInteractive.cc
  1519. * src/OptionHandlerFactory.cc
  1520. * src/bittorrent_helper.cc
  1521. * src/bittorrent_helper.h
  1522. * src/main.cc
  1523. * src/usage_text.h
  1524. * test/BittorrentHelperTest.cc
  1525. 2009-10-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Fixed memory leak.
  1527. * src/DownloadCommand.cc
  1528. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1529. Removed server, port, user and passwd key from options before
  1530. XMLRPC::Client.call since they are not options of aria2.
  1531. * doc/xmlrpc/aria2mon
  1532. * doc/xmlrpc/aria2rpc
  1533. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Included version number in user-agent string.
  1535. * src/OptionHandlerFactory.cc
  1536. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Fixed the bug that the option values changed by XML-RPC
  1538. method(changeOption and changeGlobalOption) are overwritten to the
  1539. previous value by the next these request which doesn't contain
  1540. that option value. Supporse max-download-limit is initially 0. You
  1541. changed this value to 100K by changeOption. Then you issue
  1542. changeOption request to change max-upload-limit to 50K. This
  1543. second request doesn't contain xml-download-limit, so it is back
  1544. to initial value, 0. Another improvement is that exception is
  1545. thrown when changeOption and changeGlobalOption request contains
  1546. option name which doesn't allowed in each request.
  1547. * src/DownloadEngine.h
  1548. * src/XmlRpcMethod.cc
  1549. * src/XmlRpcMethod.h
  1550. * src/XmlRpcMethodImpl.cc
  1551. * src/download_helper.cc
  1552. * src/download_helper.h
  1553. * test/XmlRpcMethodTest.cc
  1554. 2009-10-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1555. Added missing MetalinkParserStateImpl.{cc,h}
  1556. * src/MetalinkParserStateImpl.cc
  1557. * src/MetalinkParserStateImpl.h
  1558. 2009-10-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Put all MetalinkParserState subclasses into
  1560. MetalinkParserStateImpl.cc. Use stack to track element structure.
  1561. * src/FileMetalinkParserState.cc: Removed
  1562. * src/FileMetalinkParserState.h: Removed
  1563. * src/FilesMetalinkParserState.cc: Removed
  1564. * src/FilesMetalinkParserState.h: Removed
  1565. * src/FinMetalinkParserState.cc: Removed
  1566. * src/FinMetalinkParserState.h: Removed
  1567. * src/HashMetalinkParserState.cc: Removed
  1568. * src/HashMetalinkParserState.h: Removed
  1569. * src/InitialMetalinkParserState.cc: Removed
  1570. * src/InitialMetalinkParserState.h: Removed
  1571. * src/LanguageMetalinkParserState.cc: Removed
  1572. * src/LanguageMetalinkParserState.h: Removed
  1573. * src/Makefile.am
  1574. * src/MetalinkMetalinkParserState.cc: Removed
  1575. * src/MetalinkMetalinkParserState.h: Removed
  1576. * src/MetalinkParserState.h
  1577. * src/MetalinkParserStateMachine.cc
  1578. * src/MetalinkParserStateMachine.h
  1579. * src/OSMetalinkParserState.cc: Removed
  1580. * src/OSMetalinkParserState.h: Removed
  1581. * src/PieceHashMetalinkParserState.cc: Removed
  1582. * src/PieceHashMetalinkParserState.h: Removed
  1583. * src/PiecesMetalinkParserState.cc: Removed
  1584. * src/PiecesMetalinkParserState.h: Removed
  1585. * src/ResourcesMetalinkParserState.cc: Removed
  1586. * src/ResourcesMetalinkParserState.h: Removed
  1587. * src/SignatureMetalinkParserState.cc: Removed
  1588. * src/SignatureMetalinkParserState.h: Removed
  1589. * src/SizeMetalinkParserState.cc: Removed
  1590. * src/SizeMetalinkParserState.h: Removed
  1591. * src/SkipTagMetalinkParserState.cc: Removed
  1592. * src/SkipTagMetalinkParserState.h: Removed
  1593. * src/URLMetalinkParserState.cc: Removed
  1594. * src/URLMetalinkParserState.h: Removed
  1595. * src/VerificationMetalinkParserState.cc: Removed
  1596. * src/VerificationMetalinkParserState.h: Removed
  1597. * src/VersionMetalinkParserState.cc: Removed
  1598. * src/VersionMetalinkParserState.h: Removed
  1599. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1600. Move all functions in PeerMessageUtil to bittorrent_helper.
  1601. * src/BtBitfieldMessage.cc
  1602. * src/BtBitfieldMessageValidator.h
  1603. * src/BtExtendedMessage.cc
  1604. * src/BtHandshakeMessage.cc
  1605. * src/BtHandshakeMessageValidator.h
  1606. * src/BtPieceMessage.cc
  1607. * src/BtPieceMessageValidator.h
  1608. * src/BtPortMessage.cc
  1609. * src/DHTFindNodeReplyMessage.cc
  1610. * src/DHTGetPeersReplyMessage.cc
  1611. * src/DHTMessageFactoryImpl.cc
  1612. * src/DHTRoutingTableDeserializer.cc
  1613. * src/DHTRoutingTableSerializer.cc
  1614. * src/DHTTokenTracker.cc
  1615. * src/DefaultBtMessageFactory.cc
  1616. * src/IndexBtMessage.cc
  1617. * src/IndexBtMessage.h
  1618. * src/IndexBtMessageValidator.h
  1619. * src/Makefile.am
  1620. * src/PeerMessageUtil.cc: Removed.
  1621. * src/PeerMessageUtil.h: Removed.
  1622. * src/RangeBtMessage.cc
  1623. * src/RangeBtMessage.h
  1624. * src/RangeBtMessageValidator.h
  1625. * src/UTPexExtensionMessage.cc
  1626. * src/ZeroBtMessage.cc
  1627. * src/ZeroBtMessage.h
  1628. * src/bittorrent_helper.cc
  1629. * src/bittorrent_helper.h
  1630. * test/BittorrentHelperTest.cc
  1631. * test/BtAllowedFastMessageTest.cc
  1632. * test/BtBitfieldMessageTest.cc
  1633. * test/BtCancelMessageTest.cc
  1634. * test/BtChokeMessageTest.cc
  1635. * test/BtExtendedMessageTest.cc
  1636. * test/BtHandshakeMessageTest.cc
  1637. * test/BtHaveAllMessageTest.cc
  1638. * test/BtHaveMessageTest.cc
  1639. * test/BtHaveNoneMessageTest.cc
  1640. * test/BtInterestedMessageTest.cc
  1641. * test/BtNotInterestedMessageTest.cc
  1642. * test/BtPieceMessageTest.cc
  1643. * test/BtPortMessageTest.cc
  1644. * test/BtRejectMessageTest.cc
  1645. * test/BtRequestMessageTest.cc
  1646. * test/BtSuggestPieceMessageTest.cc
  1647. * test/BtUnchokeMessageTest.cc
  1648. * test/DHTFindNodeReplyMessageTest.cc
  1649. * test/DHTGetPeersReplyMessageTest.cc
  1650. * test/DHTMessageFactoryImplTest.cc
  1651. * test/DHTRoutingTableDeserializerTest.cc
  1652. * test/DHTRoutingTableSerializerTest.cc
  1653. * test/DefaultBtMessageFactoryTest.cc
  1654. * test/DefaultExtensionMessageFactoryTest.cc
  1655. * test/Makefile.am
  1656. * test/PeerListProcessorTest.cc
  1657. * test/PeerMessageUtilTest.cc: Removed.
  1658. * test/UTPexExtensionMessageTest.cc
  1659. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1660. Limit the size of values list when sending get_peers reply.
  1661. * src/DHTGetPeersReplyMessage.cc
  1662. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1663. Updated banner
  1664. * doc/xmlrpc/aria2rpc
  1665. 2009-09-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1666. Added missing help message for remove command.
  1667. * doc/xmlrpc/aria2rpc
  1668. 2009-09-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1669. Generated configure and config.h.in
  1670. 2009-09-23 Ross Smith II <aria2spam at smithii dot com>
  1671. Add check for fork(), which is missing on MinGW
  1672. * src/daemon.cc
  1673. * configure.ac
  1674. 2009-09-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1675. Removed unused methods Util::fileCopy(), Util::rangedFileCopy(),
  1676. Util::expandBuffer(), Util::unfoldRange(), Util::indexRange() and
  1677. Util::httpGMT().
  1678. * src/Util.cc
  1679. * src/Util.h
  1680. * test/UtilTest.cc
  1681. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. * Release 1.6.0
  1683. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Fixed a path to xmlrpc/README.txt
  1685. * doc/Makefile.am
  1686. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Added XML-RPC in -v Configuration output.
  1688. * src/FeatureConfig.cc
  1689. * src/FeatureConfig.h
  1690. * test/FeatureConfigTest.cc
  1691. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1692. Updated Bulgarian, Russian, Slovak and Japanese
  1693. translations. Thanks to all translators.
  1694. * po/bg.po
  1695. * po/ja.po
  1696. * po/ru.po
  1697. * po/sk.po
  1698. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Removed --retry-wait option from aria2rpc
  1700. * doc/xmlrpc/aria2rpc
  1701. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Removed --retry-wait option from man page.
  1703. * doc/aria2c.1.txt
  1704. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1705. Removed --retry-wait option since the current architecture doesn't
  1706. allow sleep for particular URI.
  1707. * src/AbstractCommand.cc
  1708. * src/OptionHandlerFactory.cc
  1709. * src/download_helper.cc
  1710. * src/prefs.cc
  1711. * src/prefs.h
  1712. 2009-09-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1713. Removed Retry-After header support. Since the current architecture
  1714. doesn't allow sleep for particular URI.
  1715. * src/HttpSkipResponseCommand.cc
  1716. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1717. Updated the help message for --daemon option.
  1718. * doc/aria2c.1.txt
  1719. * src/usage_text.h
  1720. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. Added our own daemon() function for systems which desn't have
  1722. daemon(3).
  1723. * configure.ac
  1724. * src/Makefile.am
  1725. * src/daemon.cc
  1726. * src/daemon.h
  1727. * src/option_processing.cc
  1728. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1729. Simplified File::getCurrentDir()
  1730. * src/File.cc
  1731. 2009-09-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1732. Use exit() instead of _exit
  1733. * src/RequestGroupMan.cc
  1734. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Replaced "CATEGORY" with "TAGS".
  1736. * src/usage_text.h
  1737. * doc/aria2c.1.txt
  1738. 2009-09-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1739. Updated the help message for --help option.
  1740. * src/usage_text.h
  1741. * doc/aria2c.1.txt
  1742. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1743. Updated man page for added help tags.
  1744. * doc/aria2c.1.txt
  1745. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1746. Added help category #file. Added #file tag to the options related
  1747. to downloaded file.
  1748. * src/OptionHandlerFactory.cc
  1749. * src/help_tags.h
  1750. 2009-09-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1751. Added help categories: #cookie and #hook. Added #https tag to
  1752. --https-proxy and --https-proxy, --all-proxy and --no-proxy.
  1753. * src/OptionHandlerFactory.cc
  1754. * src/help_tags.h
  1755. 2009-09-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1756. Made MSG_NOT_FILE translatable.
  1757. * src/message.h
  1758. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Updated man page for --help option.
  1760. * doc/aria2c.1.txt
  1761. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Updated doc.
  1763. * src/XmlRpcMethod.h
  1764. 2009-09-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Help category now starts with "#" to distinguish a category from
  1766. keyword search. For example, "http" categroy is now "#http". You
  1767. can type "--help=#http" to get explanation of options related to
  1768. http. If '#' is omitted, then the argument is treated as a keyword
  1769. and aria2 searches options whose name includes the keyword and
  1770. print matched ones. For example, "--help=http" will show options
  1771. whose name includes "http".
  1772. * src/OptionHandlerFactory.cc
  1773. * src/help_tags.h
  1774. * src/usage_text.h
  1775. * src/version_usage.cc
  1776. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1777. Documented missing experimental tag and newly added xml-rpc tag in
  1778. man page.
  1779. * doc/aria2c.1.txt
  1780. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1781. Added xml-rpc help tag. Tagged xml-rpc related options with
  1782. xml-rpc tag.
  1783. * src/OptionHandlerFactory.cc
  1784. * src/help_tags.h
  1785. 2009-09-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1786. Updated message when a path is not a file. Updated common message
  1787. for wrong option.
  1788. * src/OptionHandlerException.cc
  1789. * src/message.h
  1790. 2009-09-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1791. Use File::isFile() instead of File::exists(). Updated message when
  1792. a path is not a file.
  1793. * src/OptionHandlerImpl.cc
  1794. * src/message.h
  1795. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1796. Fixed the bug that server performence profile is not updated when
  1797. aria2c was terminated by emergency shutdown.
  1798. * src/TrackerWatcherCommand.cc
  1799. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Use LocalFilePathOptionHandler for -T and -M option.
  1801. Updated message of MSG_FILE_NOT_EXIST.
  1802. * src/OptionHandlerFactory.cc
  1803. * src/message.h
  1804. 2009-09-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1805. Added LocalFilePathOptionHandler which check whether the specified
  1806. file path does exist or not.
  1807. * src/OptionHandlerImpl.cc
  1808. * src/message.h
  1809. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1810. Updated wiki page URI.
  1811. * README
  1812. * doc/aria2c.1.txt
  1813. 2009-09-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1814. Added README.txt for xmlrpc directory.
  1815. * doc/Makefile.am
  1816. * doc/xmlrpc/README.txt
  1817. 2009-09-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1818. Bump up version number to 1.6.0.
  1819. * configure.ac
  1820. 2009-09-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1821. Added XML-RPC client scripts written in ruby.
  1822. * doc/Makefile.am
  1823. * doc/xmlrpc/aria2mon
  1824. * doc/xmlrpc/aria2rpc
  1825. 2009-08-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1826. Added support for IPv6 literal address in URI. Now aria2 can
  1827. handle URI such as http://[::1]/
  1828. * src/HttpRequest.cc
  1829. * src/HttpRequest.h
  1830. * src/Request.cc
  1831. * src/Request.h
  1832. * test/HttpRequestTest.cc
  1833. * test/OptionHandlerTest.cc
  1834. * test/RequestTest.cc
  1835. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Fixed the bug that HTTP request header for XML-RPC request is not
  1837. parsed properly.
  1838. * src/HttpHeader.cc
  1839. * src/HttpHeaderProcessor.cc
  1840. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1841. Fixed the bug that XML-RPC authorization might be done before HTTP
  1842. request header is fully received.
  1843. * src/HttpServerCommand.cc
  1844. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Documented --xml-rpc-listen-all option in man page.
  1846. * doc/aria2c.1.txt
  1847. 2009-08-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1848. Added --xml-rpc-listen-all option. If true is given to this
  1849. option, aria2 listens incoming XML-RPC requests on all network
  1850. interfaces. If false is given, listens only on local loopback
  1851. interface. The default value is false.
  1852. * src/HttpListenCommand.cc
  1853. * src/OptionHandlerFactory.cc
  1854. * src/SocketCore.cc
  1855. * src/SocketCore.h
  1856. * src/prefs.cc
  1857. * src/prefs.h
  1858. * src/usage_text.h
  1859. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1860. * Release 1.5.2
  1861. 2009-08-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1862. Updated Ukrainian and Russian translations. Thanks to all
  1863. translators.
  1864. * po/ru.po
  1865. * po/uk.po
  1866. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1867. Bump up version number to 1.5.2
  1868. * configure.ac
  1869. 2009-08-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1870. Get comment, comment.utf-8, created by and creation date from
  1871. .torrent file and print them in -S output.
  1872. * src/bittorrent_helper.cc
  1873. * src/bittorrent_helper.h
  1874. * test/BittorrentHelperTest.cc
  1875. * test/test.torrent
  1876. * test/utf8.torrent
  1877. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1878. Show exact file size along in -S option output.
  1879. * src/Util.h
  1880. * src/bittorrent_helper.cc
  1881. * test/UtilTest.cc
  1882. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1883. Avoided unnecessary memory allocation in
  1884. BitfieldMan::getCompletedLength().
  1885. * src/BitfieldMan.cc
  1886. 2009-08-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1887. Fixed the bug that download fails if
  1888. SocketCore::establishConnection() throws exception and aria2
  1889. doesn't try another address.
  1890. * src/AbstractCommand.cc
  1891. * src/InitiateConnectionCommand.cc
  1892. * src/message.h
  1893. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1894. Fixed sqlite3.m4 macro so that sqlite3_open_v2 function is
  1895. detected properly.
  1896. * m4/sqlite3.m4
  1897. 2009-08-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1898. Renamed xmlrpc::elements::PARAMS to xmlrpc::elements::A2_PARAMS
  1899. because it causes compile error if PARAMS macro is defined.
  1900. * src/XmlRpcElements.cc
  1901. * src/XmlRpcElements.h
  1902. * src/XmlRpcRequestParserStateImpl.cc
  1903. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1904. * Release 1.5.1
  1905. 2009-07-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1906. Bump up version number to 1.5.1
  1907. * configure.ac
  1908. 2009-07-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1909. Fixed compile error without BitTorrent support
  1910. * src/DefaultBtProgressInfoFile.cc
  1911. * src/DownloadEngine.cc
  1912. * src/DownloadEngine.h
  1913. 2009-07-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1914. Added missing '=' in Download Results
  1915. * src/RequestGroupMan.cc
  1916. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1917. Fixed compiler warning
  1918. * src/DefaultBtProgressInfoFile.cc
  1919. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1920. Fixed compiler warning on 32bit systems.
  1921. * src/DownloadCommand.cc
  1922. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1923. Call flush from ServerStatMan::save()
  1924. * src/ServerStatMan.cc
  1925. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Check stream status after file is opened.
  1927. * src/CookieStorage.cc
  1928. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1929. Rewritten Signature::save()
  1930. * src/Signature.cc
  1931. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1932. Rewritten RequestGroupMan::saveServerStat()
  1933. * src/RequestGroupMan.cc
  1934. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1935. Rewritten stream error handling
  1936. * src/DHTAutoSaveCommand.cc
  1937. * src/DHTRoutingTableDeserializer.cc
  1938. * src/DHTRoutingTableSerializer.cc
  1939. * src/DHTSetup.cc
  1940. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1941. Check stream status after file is opened.
  1942. * src/DefaultBtProgressInfoFile.cc
  1943. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1944. Rewritten stream error handling
  1945. * src/DefaultBtProgressInfoFile.cc
  1946. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Make sure that stream is closed before renaming file. Unit test
  1948. fails on mingw32 in the previous implementation.
  1949. * src/CookieStorage.cc
  1950. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1951. Fixed the unit test error without sqlite3
  1952. * test/CookieStorageTest.cc
  1953. 2009-07-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1954. Fixed the undefined reference error
  1955. * test/HttpResponseTest.cc
  1956. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1957. * Release 1.5.0
  1958. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Updated Russian, Italian, Danish, Bulgarian, Japanese and
  1960. Ukrainian translations. Thanks to all translators.
  1961. * po/ru.po
  1962. * po/it.po
  1963. * po/da.po
  1964. * po/bg.po
  1965. * po/ja.po
  1966. * po/uk.po
  1967. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1968. Added missing src/Logger.cc
  1969. * src/Logger.cc
  1970. 2009-07-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1971. Rewritten Logger to avoiding constly virtual call.
  1972. * src/LogFactory.cc
  1973. * src/LogFactory.h
  1974. * src/Logger.h
  1975. * src/Makefile.am
  1976. * src/Makefile.in
  1977. * src/NullLogger.h: Removed.
  1978. * src/SimpleLogger.cc
  1979. * src/SimpleLogger.h
  1980. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Updated doc
  1982. * src/main.cc
  1983. 2009-07-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1984. Updated debug log message
  1985. * src/AbstractCommand.cc
  1986. * src/message.h
  1987. 2009-07-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1988. Avoid to create zombie process when commands specified in
  1989. --on-download-* options are executed. Tested on Linux 2.6, Mac OS
  1990. X and NetBSD.
  1991. * src/main.cc
  1992. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1993. Fixed typo
  1994. * src/usage_text.h
  1995. * doc/aria2c.1.txt
  1996. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1997. Documented 'errorCode' of tellStatus in man page.
  1998. * doc/aria2c.1.txt
  1999. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2000. Added 'errorCode' to the reponse of tellStatus xml-rpc method.
  2001. This key is only available for stopped/completed downloads and its
  2002. value is the error code defined in EXIT STATUS in man page.
  2003. * src/XmlRpcMethodImpl.cc
  2004. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2005. Fixed the bug that session download length is not updated when
  2006. PeerStat is not fastest one.
  2007. * src/SegmentMan.cc
  2008. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Updated doc.
  2010. * doc/aria2c.1.txt
  2011. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2012. Updated doc.
  2013. * src/AbstractCommand.cc
  2014. 2009-07-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2015. Handle the case when DownloadContext has no FileEntry.
  2016. * src/XmlRpcMethodImpl.cc
  2017. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2018. Handle the situation where struct option.name is char *.
  2019. * configure.ac
  2020. * src/OptionParser.cc
  2021. 2009-07-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Code cleanup
  2023. * src/AbstractCommand.cc
  2024. * src/DownloadCommand.cc
  2025. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2026. Use option of each download to create AuthConfig instead of global
  2027. option.
  2028. * src/AuthConfigFactory.cc
  2029. * src/AuthConfigFactory.h
  2030. * src/FtpNegotiationCommand.cc
  2031. * src/HttpRequest.cc
  2032. * src/HttpRequest.h
  2033. * src/HttpRequestCommand.cc
  2034. * src/HttpSkipResponseCommand.cc
  2035. * src/MultiUrlRequestInfo.cc
  2036. * test/AuthConfigFactoryTest.cc
  2037. * test/FtpConnectionTest.cc
  2038. * test/HttpRequestTest.cc
  2039. 2009-07-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2040. Don't call prepareForRetry(1) if all segments are ignored in
  2041. SegmentMan.
  2042. * src/AbstractCommand.cc
  2043. * src/BitfieldMan.cc
  2044. * src/BitfieldMan.h
  2045. * src/SegmentMan.cc
  2046. * src/SegmentMan.h
  2047. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Removed FileEntry::getAssociatedUris()
  2049. * src/FileEntry.h
  2050. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2051. Updated doc: TODO1.5 -> TODO
  2052. * src/FileEntry.cc
  2053. * src/HttpResponseCommand.cc
  2054. 2009-07-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. Added assertion fileEntries.size() == 1 if BitTorrent is not
  2056. involved.
  2057. * src/RequestGroup.cc
  2058. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2059. Eliminated duplicated filterBitfield initialization code.
  2060. * src/BitfieldMan.cc
  2061. * src/BitfieldMan.h
  2062. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2063. Added assert(!req.isNull()) when DlRetryEx is caught(this is
  2064. relatively naive approach, though). For DownloadFailureException,
  2065. we handle the case when req is null properly.
  2066. * src/AbstractCommand.cc
  2067. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2068. Added function returning suffix of control file to
  2069. DefaultBtProgressInfoFile.
  2070. * src/DefaultBtProgressInfoFile.cc
  2071. * src/DefaultBtProgressInfoFile.h
  2072. * src/RequestGroup.cc
  2073. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2074. Documented getVersion in man page.
  2075. * doc/aria2c.1.txt
  2076. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Documented type of offset and num for tellWaiting xml-rpc method.
  2078. * doc/aria2c.1.txt
  2079. 2009-07-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Implemented getVersion xml-rpc method. This method returns struct
  2081. which has 2 key-value pairs: "version" key is associated to the
  2082. version of aria2, such as "1.5.0". "enabledFeatures" key is
  2083. associated to the list of enabled features, such as "Async DNS",
  2084. "BitTorrent".
  2085. * src/FeatureConfig.h
  2086. * src/XmlRpcMethodFactory.cc
  2087. * src/XmlRpcMethodImpl.cc
  2088. * src/XmlRpcMethodImpl.h
  2089. * test/XmlRpcMethodTest.cc
  2090. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2091. Removed TLS1.1 protocol support when aria2 is built with gnutls
  2092. for compatibility issue.
  2093. * src/SocketCore.cc
  2094. 2009-07-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Fixed compile error with openSSL
  2096. * src/bittorrent_helper.cc
  2097. * src/messageDigest.h
  2098. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Removed bad code: setting certificate type priority to key
  2100. exchange priority.
  2101. * src/SocketCore.cc
  2102. 2009-07-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Disconnect seeder if client is also in seed state.
  2104. * src/BtBitfieldMessage.cc
  2105. * src/BtHaveAllMessage.cc
  2106. * src/BtHaveMessage.cc
  2107. * src/message.h
  2108. * test/BtBitfieldMessageTest.cc
  2109. * test/BtHaveAllMessageTest.cc
  2110. * test/BtHaveMessageTest.cc
  2111. * test/MockPieceStorage.h
  2112. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Keep CreateRequestCommand in queue when no segment is available so
  2114. that they can pick up pieces which slow BitTorrent peers are
  2115. downloading.
  2116. * src/AbstractCommand.cc
  2117. * src/CreateRequestCommand.cc
  2118. * src/CreateRequestCommand.h
  2119. 2009-07-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2120. --bt-stop-timeout now only checks download speed.
  2121. * src/BtStopDownloadCommand.cc
  2122. * src/BtStopDownloadCommand.h
  2123. * src/BtSetup.cc
  2124. * src/usage_text.h
  2125. * doc/aria2c.1.txt
  2126. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2127. Fixed compile error regarding BUFSIZE.
  2128. * src/DownloadCommand.cc
  2129. * src/DownloadCommand.h
  2130. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Documented tellWaiting xml-rpc method in man page.
  2132. * doc/aria2c.1.txt
  2133. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2134. Bump up version number to 1.5.0
  2135. * configure.ac
  2136. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2137. Removed resolved TODO1.5
  2138. * src/AbstractCommand.cc
  2139. * src/DownloadCommand.cc
  2140. * src/RequestGroup.cc
  2141. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2142. Release pooled and in-flight Request objectsand URIResult objects
  2143. in FileEntry after download completed.
  2144. * src/DownloadContext.cc
  2145. * src/DownloadContext.h
  2146. * src/FileEntry.cc
  2147. * src/FileEntry.h
  2148. * src/RequestGroup.cc
  2149. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Set manual and source attribute in aria2c.1.txt
  2151. * doc/aria2c.1.txt
  2152. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2153. Documented that the default value of --use-head is 'false' in man
  2154. page.
  2155. * doc/aria2c.1.txt
  2156. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2157. Added bt-stop-timeout option to -i list.
  2158. * doc/aria2c.1.txt
  2159. * src/download_helper.cc
  2160. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Fixed typo
  2162. * doc/aria2c.1.txt
  2163. * src/usage_text.h
  2164. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2165. Removed peer-id-prefix option from -i list.
  2166. * doc/aria2c.1.txt
  2167. * src/download_helper.cc
  2168. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2169. Fixed typo
  2170. * doc/aria2c.1.txt
  2171. * src/usage_text.h
  2172. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2173. Documented --bt-stop-timeout option in man page.
  2174. * doc/aria2c.1.txt
  2175. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2176. Updated README regarding multi-file torrent web-seeding.
  2177. * doc/README.txt
  2178. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2179. Updated man page regarding multi-file torrent web-seeding.
  2180. * doc/aria2c.1.txt
  2181. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Updated doc
  2183. * src/version_usage.cc
  2184. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Winsock select() doesn't work if no socket is in FD_SET. To
  2186. overcome this problem, a dummy socket is added to FD_SET and it is
  2187. given to select().
  2188. * src/SelectEventPoll.cc
  2189. * src/SelectEventPoll.h
  2190. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2191. Disabled --use-head option by default because --use-head=true
  2192. causes problems on some web sites.
  2193. * src/OptionHandlerFactory.cc
  2194. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2195. Print URL List in -S option for torrent.
  2196. * src/bittorrent_helper.cc
  2197. * src/bittorrent_helper.h
  2198. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2199. Allocate buffer in ctor of DownloadCommand.
  2200. * src/DownloadCommand.cc
  2201. * src/DownloadCommand.h
  2202. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Removed DiskAdaptor::onDownloadComplete()
  2204. * src/DirectDiskAdaptor.cc
  2205. * src/DirectDiskAdaptor.h
  2206. * src/DiskAdaptor.h
  2207. * src/MultiDiskAdaptor.cc
  2208. * src/MultiDiskAdaptor.h
  2209. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2210. Committed missing BtStopDownloadCommand.{cc,h}
  2211. * src/BtStopDownloadCommand.cc
  2212. * src/BtStopDownloadCommand.h
  2213. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. Added --bt-stop-timeout=SEC option. This function stops BitTorrent
  2215. download if the download speed is 0 and the number of seeder is 0
  2216. in consecutive SEC seconds. By default, this function is disabled.
  2217. * src/BtSetup.cc
  2218. * src/Makefile.am
  2219. * src/OptionHandlerFactory.cc
  2220. * src/prefs.cc
  2221. * src/prefs.h
  2222. * src/usage_text.h
  2223. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Removed the call to DiskAdaptor::onDownloadComplete() from
  2225. BtCheckIntegrityEntry and DefaultPieceStorage.
  2226. * src/BtCheckIntegrityEntry.cc
  2227. * src/DefaultPieceStorage.cc
  2228. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2229. Commented out throw statements when number of piece is 0 to
  2230. download 0 length torrent.
  2231. * src/bittorrent_helper.cc
  2232. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2233. Call RequestGroup::createNextCommandWithAdj() from
  2234. BtFileAllocationEntry if at least one FileEntry has URI. The
  2235. static function hasAssociatedUri in RequestGroup.cc is renamed as
  2236. isUriSuppliedForRequsetFileEntry() and placed in FileEntry.h.
  2237. * src/BtFileAllocationEntry.cc
  2238. * src/FileEntry.h
  2239. * src/RequestGroup.cc
  2240. 2009-07-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2241. Generate peer ID after SimpleRandomizer is initialized.
  2242. * src/main.cc
  2243. * src/option_processing.cc
  2244. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2245. Removed unused method argument.
  2246. * src/CreateRequestCommand.cc
  2247. * src/RequestGroup.cc
  2248. * src/RequestGroup.h
  2249. * src/RequestGroupMan.cc
  2250. * src/TrackerWatcherCommand.cc
  2251. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Made URI reusing function work.
  2253. * src/CreateRequestCommand.cc
  2254. * src/FileEntry.cc
  2255. * src/FileEntry.h
  2256. * test/FileEntryTest.cc
  2257. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2258. Add formerly fastest PeerStat's sessionDownloadLength to new
  2259. fastest PeerStat and use _fastestPeerStats to calcuate downloaded
  2260. bytes in a session.
  2261. * src/PeerStat.cc
  2262. * src/SegmentMan.cc
  2263. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. If pipelining is enabled, we can always pool socket.
  2265. * src/HttpDownloadCommand.cc
  2266. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2267. In a single file download, file size becomes known just after
  2268. downloading, set total length to FileEntry object when download
  2269. completed.
  2270. * src/DownloadCommand.cc
  2271. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2272. Use std::vector::reserve() for fileEntries and pieceHashes in
  2273. bittorrent_helper
  2274. * src/bittorrent_helper.cc
  2275. 2009-07-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2276. Removed calls to Request::resetUrl() in AbstractCommand.cc.
  2277. Removed hidden option PREF_RESET_URI.
  2278. * src/AbstractCommand.cc
  2279. * src/OptionHandlerFactory.cc
  2280. * src/prefs.cc
  2281. * src/prefs.h
  2282. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2283. Removed unused variable/function.
  2284. * src/PeerStat.h
  2285. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2286. Show first URL in Download Results if file path is not available.
  2287. * src/FileEntry.h
  2288. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2289. Throw exception if file path doesn't exist in FTP URL.
  2290. * src/InitiateConnectionCommandFactory.cc
  2291. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Refactored BitfieldMan::getSparseMissingUnusedIndex()
  2293. * src/BitfieldMan.cc
  2294. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2295. Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list
  2296. of PeerStat in SegmentMan. peerStats is used for calculating
  2297. download speed. Therefore all active PeerStats should be in
  2298. there. Another one is _fastestPeerStats and it only contains
  2299. fastest PeerStat for each hostname/protocol pair. They are used
  2300. for updating ServerStat.
  2301. * src/DownloadCommand.cc
  2302. * src/Request.h
  2303. * src/RequestGroupMan.cc
  2304. * src/SegmentMan.cc
  2305. * src/SegmentMan.h
  2306. * test/SegmentManTest.cc
  2307. 2009-07-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Try all available addresses returned by DNS until it gets
  2309. connected in HTTP(S)/FTP download
  2310. * src/AbstractCommand.cc
  2311. * src/AbstractCommand.h
  2312. * src/AbstractProxyRequestCommand.cc
  2313. * src/AbstractProxyRequestCommand.h
  2314. * src/DNSCache.h
  2315. * src/DownloadEngine.cc
  2316. * src/DownloadEngine.h
  2317. * src/FtpInitiateConnectionCommand.cc
  2318. * src/FtpInitiateConnectionCommand.h
  2319. * src/FtpNegotiationCommand.cc
  2320. * src/FtpNegotiationCommand.h
  2321. * src/HttpInitiateConnectionCommand.cc
  2322. * src/HttpInitiateConnectionCommand.h
  2323. * src/HttpRequestCommand.cc
  2324. * src/HttpRequestCommand.h
  2325. * src/InitiateConnectionCommand.cc
  2326. * src/InitiateConnectionCommand.h
  2327. * test/DNSCacheTest.cc
  2328. * test/Makefile.am
  2329. * test/SimpleDNSCacheTest.cc
  2330. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2331. Updated doc
  2332. * src/download_helper.cc
  2333. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2334. Refactored fieldMan ctor.
  2335. * src/BitfieldMan.cc
  2336. * src/BitfieldMan.h
  2337. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2338. Don't print "No files to download." message if -S is given.
  2339. * src/main.cc
  2340. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2341. Set referer and method to newly created Request object.
  2342. * src/CreateRequestCommand.cc
  2343. * src/FileEntry.cc
  2344. * src/FileEntry.h
  2345. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2346. Removed ctor of AbstractCommand which doesn't take FileEntry.
  2347. * src/AbstractCommand.cc
  2348. * src/AbstractCommand.h
  2349. * src/CreateRequestCommand.cc
  2350. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2351. Get proxy download working
  2352. * src/AbstractProxyRequestCommand.cc
  2353. * src/AbstractProxyRequestCommand.h
  2354. * src/AbstractProxyResponseCommand.cc
  2355. * src/AbstractProxyResponseCommand.h
  2356. * src/FtpInitiateConnectionCommand.cc
  2357. * src/FtpTunnelRequestCommand.cc
  2358. * src/FtpTunnelRequestCommand.h
  2359. * src/FtpTunnelResponseCommand.cc
  2360. * src/FtpTunnelResponseCommand.h
  2361. * src/HttpInitiateConnectionCommand.cc
  2362. * src/HttpProxyRequestCommand.cc
  2363. * src/HttpProxyRequestCommand.h
  2364. * src/HttpProxyResponseCommand.cc
  2365. * src/HttpProxyResponseCommand.h
  2366. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2367. Use SegmentMan::getSegment(cuid) for single file download.
  2368. * src/AbstractCommand.cc
  2369. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2370. Fixed bufSize calculation
  2371. * src/DownloadCommand.cc
  2372. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2373. Don't append "/" if base URI ends with "/".
  2374. * src/bittorrent_helper.cc
  2375. * test/url-list-multiFile.torrent
  2376. 2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2377. HTTP pipelining is now working. Fixed Segmention fault in
  2378. BitfieldMan's copy ctor.
  2379. * src/AbstractCommand.cc
  2380. * src/BitfieldMan.cc
  2381. * src/BitfieldMan.h
  2382. * src/DownloadCommand.cc
  2383. * src/HttpDownloadCommand.cc
  2384. * src/HttpRequest.cc
  2385. * src/SegmentMan.cc
  2386. * src/SegmentMan.h
  2387. * test/BitfieldManTest.cc
  2388. * test/SegmentManTest.cc
  2389. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2390. Removed ServerHost. Same functionality is implemented using
  2391. FileEntry's in-flight Request objects.
  2392. * src/AbstractCommand.cc
  2393. * src/BtDependency.cc
  2394. * src/CreateRequestCommand.cc
  2395. * src/FileEntry.cc
  2396. * src/FileEntry.h
  2397. * src/FtpNegotiationCommand.cc
  2398. * src/HttpResponseCommand.cc
  2399. * src/Makefile.am
  2400. * src/Metalink2RequestGroup.cc
  2401. * src/RequestGroup.cc
  2402. * src/RequestGroup.h
  2403. * src/ServerHost.cc: Removed
  2404. * src/ServerHost.h: Removed
  2405. * test/BtDependencyTest.cc
  2406. * test/FileEntryTest.cc
  2407. * test/RequestGroupTest.cc
  2408. 2009-06-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2409. Rewritten PeerStat handling. In the previous implementation,
  2410. faster command tries to find slower command. In this new
  2411. implementation, slower command tries to find faster command.
  2412. PeerStat is now created in each HTTP/FTP request to get download
  2413. rate correctly. If the download range is small, the download rate
  2414. tends to small and this will occur at the later stage of download.
  2415. * src/AbstractCommand.cc
  2416. * src/DownloadCommand.cc
  2417. * src/FileEntry.cc
  2418. * src/FileEntry.h
  2419. * src/Request.cc
  2420. * src/Request.h
  2421. * src/RequestGroup.h
  2422. * src/RequestGroupMan.cc
  2423. * src/SegmentMan.cc
  2424. * src/SegmentMan.h
  2425. * test/SegmentManTest.cc
  2426. 2009-06-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2427. Removed _uris from RequestGroup. All functions that refer to _uris
  2428. were moved to FileEntry. Exit status code are now defined in
  2429. DownloadResultCode.h.
  2430. * src/AbstractCommand.cc
  2431. * src/AdaptiveURISelector.cc
  2432. * src/AdaptiveURISelector.h
  2433. * src/AutoSaveCommand.cc
  2434. * src/BtPostDownloadHandler.cc
  2435. * src/CheckIntegrityDispatcherCommand.cc
  2436. * src/CookieStorage.cc
  2437. * src/DHTAutoSaveCommand.cc
  2438. * src/DHTBucketRefreshCommand.cc
  2439. * src/DHTEntryPointNameResolveCommand.cc
  2440. * src/DHTInteractionCommand.cc
  2441. * src/DHTPeerAnnounceCommand.cc
  2442. * src/DHTTokenUpdateCommand.cc
  2443. * src/DlAbortEx.h
  2444. * src/DlRetryEx.h
  2445. * src/DownloadCommand.cc
  2446. * src/DownloadContext.h
  2447. * src/DownloadFailureException.h
  2448. * src/DownloadResult.h
  2449. * src/DownloadResultCode.h
  2450. * src/FeedbackURISelector.cc
  2451. * src/FeedbackURISelector.h
  2452. * src/FileEntry.cc
  2453. * src/FileEntry.h
  2454. * src/FtpNegotiationCommand.cc
  2455. * src/HttpListenCommand.cc
  2456. * src/HttpResponseCommand.cc
  2457. * src/HttpServerResponseCommand.cc
  2458. * src/HttpSkipResponseCommand.cc
  2459. * src/InOrderURISelector.cc
  2460. * src/InOrderURISelector.h
  2461. * src/Makefile.am
  2462. * src/Makefile.in
  2463. * src/Metalink2RequestGroup.cc
  2464. * src/MultiUrlRequestInfo.cc
  2465. * src/MultiUrlRequestInfo.h
  2466. * src/OptionHandlerFactory.cc
  2467. * src/PeerListenCommand.cc
  2468. * src/RecoverableException.h
  2469. * src/RequestGroup.cc
  2470. * src/RequestGroup.h
  2471. * src/RequestGroupMan.cc
  2472. * src/RequestGroupMan.h
  2473. * src/TimedHaltCommand.cc
  2474. * src/TrackerWatcherCommand.cc
  2475. * src/URIResult.cc
  2476. * src/URIResult.h
  2477. * src/URISelector.h
  2478. * src/XmlRpcMethodImpl.cc
  2479. * src/bittorrent_helper.cc
  2480. * src/bittorrent_helper.h
  2481. * src/download_helper.cc
  2482. * src/main.cc
  2483. * src/option_processing.cc
  2484. * test/BtDependencyTest.cc
  2485. * test/BtPostDownloadHandlerTest.cc
  2486. * test/CookieStorageTest.cc
  2487. * test/DefaultBtMessageDispatcherTest.cc
  2488. * test/DownloadHandlerFactoryTest.cc
  2489. * test/DownloadHelperTest.cc
  2490. * test/FeedbackURISelectorTest.cc
  2491. * test/FileEntryTest.cc
  2492. * test/InOrderURISelectorTest.cc
  2493. * test/Metalink2RequestGroupTest.cc
  2494. * test/MetalinkPostDownloadHandlerTest.cc
  2495. * test/RequestGroupManTest.cc
  2496. * test/RequestGroupTest.cc
  2497. * test/XmlRpcMethodTest.cc
  2498. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. Removed MockBtContext.h
  2500. * test/Makefile.am
  2501. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2502. Removed _currentRequest from StreamCheckIntegrityEntry and
  2503. StreamFileAllocationEntry.
  2504. * src/AbstractCommand.cc
  2505. * src/HttpResponseCommand.cc
  2506. * src/RequestGroup.cc
  2507. * src/StreamCheckIntegrityEntry.cc
  2508. * src/StreamCheckIntegrityEntry.h
  2509. * src/StreamFileAllocationEntry.cc
  2510. * src/StreamFileAllocationEntry.h
  2511. 2009-06-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Rewritten DownloadContext and removed SingleFileDownloadContext
  2513. and BtContext and its derived classes. BitTorrent specific
  2514. attributes are now set by DownloadContext::setAttribute() with key
  2515. bittorrent::BITTORRENT.
  2516. * src/AbstractBtMessage.cc
  2517. * src/AbstractBtMessage.h
  2518. * src/AbstractCommand.cc
  2519. * src/AbstractCommand.h
  2520. * src/AbstractProxyRequestCommand.cc
  2521. * src/AbstractProxyResponseCommand.cc
  2522. * src/ActivePeerConnectionCommand.cc
  2523. * src/ActivePeerConnectionCommand.h
  2524. * src/AnnounceList.cc
  2525. * src/BtCheckIntegrityEntry.cc
  2526. * src/BtConstants.h
  2527. * src/BtContext.h: Removed
  2528. * src/BtDependency.cc
  2529. * src/BtExtendedMessage.cc
  2530. * src/BtPieceMessage.cc
  2531. * src/BtPieceMessage.h
  2532. * src/BtPostDownloadHandler.cc
  2533. * src/BtRegistry.cc
  2534. * src/BtRegistry.h
  2535. * src/BtSetup.cc
  2536. * src/CheckIntegrityCommand.cc
  2537. * src/CheckIntegrityEntry.cc
  2538. * src/ChecksumCheckIntegrityEntry.cc
  2539. * src/ConsoleStatCalc.cc
  2540. * src/ContentTypeRequestGroupCriteria.cc
  2541. * src/DHTGetPeersCommand.cc
  2542. * src/DHTGetPeersCommand.h
  2543. * src/DHTPeerLookupTask.cc
  2544. * src/DHTPeerLookupTask.h
  2545. * src/DHTTaskFactory.h
  2546. * src/DHTTaskFactoryImpl.cc
  2547. * src/DHTTaskFactoryImpl.h
  2548. * src/DefaultBtAnnounce.cc
  2549. * src/DefaultBtAnnounce.h
  2550. * src/DefaultBtContext.cc: Removed
  2551. * src/DefaultBtContext.h: Removed
  2552. * src/DefaultBtInteractive.cc
  2553. * src/DefaultBtInteractive.h
  2554. * src/DefaultBtMessageDispatcher.cc
  2555. * src/DefaultBtMessageDispatcher.h
  2556. * src/DefaultBtMessageFactory.cc
  2557. * src/DefaultBtMessageFactory.h
  2558. * src/DefaultBtMessageReceiver.cc
  2559. * src/DefaultBtMessageReceiver.h
  2560. * src/DefaultBtProgressInfoFile.cc
  2561. * src/DefaultBtRequestFactory.cc
  2562. * src/DefaultBtRequestFactory.h
  2563. * src/DefaultExtensionMessageFactory.cc
  2564. * src/DefaultExtensionMessageFactory.h
  2565. * src/DefaultPeerStorage.cc
  2566. * src/DefaultPeerStorage.h
  2567. * src/DefaultPieceStorage.cc
  2568. * src/DefaultSegmentManFactory.cc
  2569. * src/DiskAdaptor.cc
  2570. * src/DiskAdaptor.h
  2571. * src/DownloadContext.cc
  2572. * src/DownloadContext.h
  2573. * src/DownloadEngine.cc
  2574. * src/DownloadEngineFactory.cc
  2575. * src/DownloadHandler.cc
  2576. * src/DownloadResult.h
  2577. * src/FileAllocationCommand.cc
  2578. * src/FileAllocationDispatcherCommand.cc
  2579. * src/FileAllocationEntry.cc
  2580. * src/FileEntry.h
  2581. * src/FillRequestGroupCommand.cc
  2582. * src/FtpDownloadCommand.cc
  2583. * src/FtpFinishDownloadCommand.cc
  2584. * src/FtpInitiateConnectionCommand.cc
  2585. * src/FtpNegotiationCommand.cc
  2586. * src/FtpTunnelRequestCommand.cc
  2587. * src/FtpTunnelResponseCommand.cc
  2588. * src/HandshakeExtensionMessage.cc
  2589. * src/HandshakeExtensionMessage.h
  2590. * src/HaveEraseCommand.cc
  2591. * src/HttpDownloadCommand.cc
  2592. * src/HttpInitiateConnectionCommand.cc
  2593. * src/HttpProxyRequestCommand.cc
  2594. * src/HttpProxyResponseCommand.cc
  2595. * src/HttpRequest.cc
  2596. * src/HttpRequest.h
  2597. * src/HttpRequestCommand.cc
  2598. * src/HttpResponseCommand.cc
  2599. * src/HttpServerBodyCommand.cc
  2600. * src/HttpServerCommand.cc
  2601. * src/HttpSkipResponseCommand.cc
  2602. * src/InitiateConnectionCommandFactory.cc
  2603. * src/InitiatorMSEHandshakeCommand.cc
  2604. * src/InitiatorMSEHandshakeCommand.h
  2605. * src/IteratableChecksumValidator.cc
  2606. * src/IteratableChecksumValidator.h
  2607. * src/IteratableChunkChecksumValidator.cc
  2608. * src/MSEHandshake.cc
  2609. * src/MSEHandshake.h
  2610. * src/Makefile.am
  2611. * src/Makefile.in
  2612. * src/Metalink2RequestGroup.cc
  2613. * src/MetalinkPostDownloadHandler.cc
  2614. * src/MultiDiskAdaptor.cc
  2615. * src/MultiDiskAdaptor.h
  2616. * src/MultiFileAllocationIterator.cc
  2617. * src/MultiUrlRequestInfo.cc
  2618. * src/PeerChokeCommand.cc
  2619. * src/PeerChokeCommand.h
  2620. * src/PeerInitiateConnectionCommand.cc
  2621. * src/PeerInitiateConnectionCommand.h
  2622. * src/PeerInteractionCommand.cc
  2623. * src/PeerInteractionCommand.h
  2624. * src/PeerReceiveHandshakeCommand.cc
  2625. * src/PieceHashCheckIntegrityEntry.cc
  2626. * src/RealtimeCommand.cc
  2627. * src/ReceiverMSEHandshakeCommand.cc
  2628. * src/RequestGroup.cc
  2629. * src/RequestGroup.h
  2630. * src/RequestGroupEntry.cc
  2631. * src/RequestGroupMan.cc
  2632. * src/SeedCheckCommand.cc
  2633. * src/SeedCheckCommand.h
  2634. * src/SegmentMan.cc
  2635. * src/ShareRatioSeedCriteria.h
  2636. * src/SingleFileDownloadContext.cc: Removed
  2637. * src/SingleFileDownloadContext.h: Removed
  2638. * src/SleepCommand.cc
  2639. * src/StreamCheckIntegrityEntry.cc
  2640. * src/TrackerWatcherCommand.cc
  2641. * src/TrackerWatcherCommand.h
  2642. * src/UnknownLengthPieceStorage.cc
  2643. * src/Util.cc
  2644. * src/Util.h
  2645. * src/XmlRpcMethodImpl.cc
  2646. * src/bittorrent_helper.cc
  2647. * src/bittorrent_helper.h
  2648. * src/download_helper.cc
  2649. * src/main.cc
  2650. * src/option_processing.cc
  2651. * test/BitfieldManTest.cc
  2652. * test/BittorrentHelperTest.cc
  2653. * test/BtCancelMessageTest.cc
  2654. * test/BtChokeMessageTest.cc
  2655. * test/BtDependencyTest.cc
  2656. * test/BtPieceMessageTest.cc
  2657. * test/BtPostDownloadHandlerTest.cc
  2658. * test/BtRegistryTest.cc
  2659. * test/BtRejectMessageTest.cc
  2660. * test/BtRequestMessageTest.cc
  2661. * test/DHTPeerAnnounceStorageTest.cc
  2662. * test/DefaultBtAnnounceTest.cc
  2663. * test/DefaultBtContextTest.cc: Removed
  2664. * test/DefaultBtMessageDispatcherTest.cc
  2665. * test/DefaultBtMessageFactoryTest.cc
  2666. * test/DefaultBtProgressInfoFileTest.cc
  2667. * test/DefaultBtRequestFactoryTest.cc
  2668. * test/DefaultExtensionMessageFactoryTest.cc
  2669. * test/DefaultPeerStorageTest.cc
  2670. * test/DefaultPieceStorageTest.cc
  2671. * test/DirectDiskAdaptorTest.cc
  2672. * test/DownloadContextTest.cc
  2673. * test/DownloadHandlerFactoryTest.cc
  2674. * test/DownloadHelperTest.cc
  2675. * test/HandshakeExtensionMessageTest.cc
  2676. * test/HttpRequestTest.cc
  2677. * test/HttpResponseTest.cc
  2678. * test/IteratableChecksumValidatorTest.cc
  2679. * test/IteratableChunkChecksumValidatorTest.cc
  2680. * test/MSEHandshakeTest.cc
  2681. * test/Makefile.am
  2682. * test/Makefile.in
  2683. * test/Metalink2RequestGroupTest.cc
  2684. * test/MetalinkPostDownloadHandlerTest.cc
  2685. * test/MockBtContext.h: Removed
  2686. * test/MockDHTTaskFactory.h
  2687. * test/MockDownloadContext.h: Removed
  2688. * test/MockPieceStorage.h
  2689. * test/MultiDiskAdaptorTest.cc
  2690. * test/MultiFileAllocationIteratorTest.cc
  2691. * test/RequestGroupManTest.cc
  2692. * test/RequestGroupTest.cc
  2693. * test/SegmentManTest.cc
  2694. * test/ShareRatioSeedCriteriaTest.cc
  2695. * test/SingleFileDownloadContextTest.cc: Removed
  2696. * test/UtilTest.cc
  2697. * test/XmlRpcMethodTest.cc
  2698. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Added experimental support of WEB-Seeding for multi-file torrent.
  2700. Due to fundamental changes in file handling in HTTP/FTP code, many
  2701. functions are not working: PeerStat, ServerHost, proxy..etc
  2702. * src/AbstractCommand.cc
  2703. * src/AbstractCommand.h
  2704. * src/BitfieldMan.cc
  2705. * src/BitfieldMan.h
  2706. * src/CreateRequestCommand.cc
  2707. * src/CreateRequestCommand.h
  2708. * src/DefaultPieceStorage.cc
  2709. * src/DefaultPieceStorage.h
  2710. * src/DownloadCommand.cc
  2711. * src/DownloadCommand.h
  2712. * src/DownloadContext.cc
  2713. * src/DownloadContext.h
  2714. * src/FileEntry.cc
  2715. * src/FileEntry.h
  2716. * src/FtpDownloadCommand.cc
  2717. * src/FtpDownloadCommand.h
  2718. * src/FtpFinishDownloadCommand.cc
  2719. * src/FtpFinishDownloadCommand.h
  2720. * src/FtpInitiateConnectionCommand.cc
  2721. * src/FtpInitiateConnectionCommand.h
  2722. * src/FtpNegotiationCommand.cc
  2723. * src/FtpNegotiationCommand.h
  2724. * src/FtpTunnelResponseCommand.cc
  2725. * src/HttpDownloadCommand.cc
  2726. * src/HttpDownloadCommand.h
  2727. * src/HttpInitiateConnectionCommand.cc
  2728. * src/HttpInitiateConnectionCommand.h
  2729. * src/HttpProxyResponseCommand.cc
  2730. * src/HttpRequest.cc
  2731. * src/HttpRequest.h
  2732. * src/HttpRequestCommand.cc
  2733. * src/HttpRequestCommand.h
  2734. * src/HttpResponseCommand.cc
  2735. * src/HttpResponseCommand.h
  2736. * src/HttpSkipResponseCommand.cc
  2737. * src/HttpSkipResponseCommand.h
  2738. * src/InitiateConnectionCommand.cc
  2739. * src/InitiateConnectionCommand.h
  2740. * src/InitiateConnectionCommandFactory.cc
  2741. * src/InitiateConnectionCommandFactory.h
  2742. * src/Makefile.am
  2743. * src/PieceStorage.h
  2744. * src/RequestGroup.cc
  2745. * src/RequestGroup.h
  2746. * src/RequestGroupMan.cc
  2747. * src/SegmentMan.cc
  2748. * src/SegmentMan.h
  2749. * src/SingleFileDownloadContext.h
  2750. * src/StreamFileAllocationEntry.cc
  2751. * src/TrackerWatcherCommand.cc
  2752. * src/UnknownLengthPieceStorage.cc
  2753. * src/UnknownLengthPieceStorage.h
  2754. * src/array_fun.h
  2755. * src/bitfield.h
  2756. * src/download_helper.cc
  2757. * test/DownloadContextTest.cc
  2758. * test/Makefile.am
  2759. * test/MockDownloadContext.h
  2760. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2761. Added tellWaiting XML-RPC method.
  2762. * src/SingleFileDownloadContext.cc
  2763. * src/XmlRpcMethodFactory.cc
  2764. * src/XmlRpcMethodImpl.cc
  2765. * src/XmlRpcMethodImpl.h
  2766. * test/XmlRpcMethodTest.cc
  2767. 2009-06-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2768. Updated CookieStorageTest
  2769. * test/CookieStorageTest.cc
  2770. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2771. In TLSContext::addClientKeyFile() and addTrustedCACertFile(),
  2772. handle excepion inside these functions.
  2773. * src/LibgnutlsTLSContext.cc
  2774. * src/LibgnutlsTLSContext.h
  2775. * src/LibsslTLSContext.cc
  2776. * src/LibsslTLSContext.h
  2777. * src/MultiUrlRequestInfo.cc
  2778. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2779. Added comment
  2780. * src/RequestGroup.cc
  2781. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2782. In CookieStorage::load() and saveNsFormat(), handle exception
  2783. inside the functions. When saving Cookies, first write temporary
  2784. file and after successful writes, then renames it to final
  2785. destination.
  2786. * src/CookieStorage.cc
  2787. * src/CookieStorage.h
  2788. * src/MultiUrlRequestInfo.cc
  2789. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2790. The default value of --dir option is the absolute path to the
  2791. current directory. If getcwd() is failed, then it is ".", which is
  2792. the same value with old implementation. This change is necessary
  2793. because after daemon() call, the current working directory is
  2794. changed to /.
  2795. * src/File.cc
  2796. * src/File.h
  2797. * src/OptionHandlerFactory.cc
  2798. * src/option_processing.cc
  2799. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Call daemon() with arguments(0,0), which means daemon() changes
  2801. current working directory to / and redirects stdin, stdout and
  2802. stderr to /dev/null.
  2803. * src/option_processing.cc
  2804. 2009-06-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2805. Small performance optimizations.
  2806. * src/RequestGroupMan.cc
  2807. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2808. Added _xmlRpc member variable to RequestGroupMan to reduce the
  2809. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  2810. * src/RequestGroupMan.cc
  2811. * src/RequestGroupMan.h
  2812. 2009-06-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2813. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  2814. setNoWiat(true) if newly created command calls
  2815. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  2816. * src/HttpListenCommand.cc
  2817. * src/HttpServerBodyCommand.cc
  2818. * src/HttpServerCommand.cc
  2819. * src/HttpServerResponseCommand.cc
  2820. * src/InitiateConnectionCommand.cc
  2821. * src/RequestGroup.cc
  2822. * src/StreamFileAllocationEntry.cc
  2823. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2824. Removed include vector
  2825. * src/BtRegistry.h
  2826. 2009-06-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2827. Rewritten BtRegistry
  2828. * src/BtRegistry.cc
  2829. * src/BtRegistry.h
  2830. * src/BtSetup.cc
  2831. * src/ConsoleStatCalc.cc
  2832. * src/PeerInteractionCommand.cc
  2833. * src/PeerReceiveHandshakeCommand.cc
  2834. * src/ReceiverMSEHandshakeCommand.cc
  2835. * src/RequestGroup.cc
  2836. * src/XmlRpcMethodImpl.cc
  2837. * test/BtRegistryTest.cc
  2838. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2839. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  2840. * src/DefaultBtProgressInfoFile.cc
  2841. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2842. Throw an exception if position is less than 0.
  2843. * src/XmlRpcMethodImpl.cc
  2844. * test/XmlRpcMethodTest.cc
  2845. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2846. Use writeFilePath() in ConsoleStatCalc.cc
  2847. * src/ConsoleStatCalc.cc
  2848. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2849. Receive the return value as const reference from
  2850. DownloadContext::getFileEntries().
  2851. * src/DefaultPieceStorage.cc
  2852. * src/RequestGroupMan.cc
  2853. * src/XmlRpcMethodImpl.cc
  2854. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2855. DownloadContext now has _fileEntries so that
  2856. DownloadContext::getFileEntries() can returns its const reference.
  2857. * src/DefaultBtContext.cc
  2858. * src/DefaultBtContext.h
  2859. * src/DownloadContext.cc
  2860. * src/DownloadContext.h
  2861. * src/SingleFileDownloadContext.cc
  2862. * src/SingleFileDownloadContext.h
  2863. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2864. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  2865. writeFilePath() function template from RequestGroupMan.cc to
  2866. FileEntry.h
  2867. * src/FileEntry.h
  2868. * src/RequestGroupMan.cc
  2869. 2009-06-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2870. Documented 'position' parameter is starting from 0 in man page.
  2871. * doc/aria2c.1.txt
  2872. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2873. Updated doc.
  2874. * src/MSEHandshake.cc
  2875. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2876. Removed _acceptFeatures and its accessor functions from
  2877. RequestGroup since they are not used practically.
  2878. * src/HttpRequestCommand.cc
  2879. * src/RequestGroup.cc
  2880. * src/RequestGroup.h
  2881. 2009-06-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2882. Removed member _maxTries from RequestGroup class to avoid
  2883. duplicate option value. Those classes who refer this variable
  2884. should use option value of PREF_MAX_TRIES directly.
  2885. * src/AbstractCommand.cc
  2886. * src/RequestGroup.cc
  2887. * src/RequestGroup.h
  2888. * src/TrackerWatcherCommand.cc
  2889. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2890. * Release 1.4.1
  2891. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2892. Fixed compiler warnings on netbsd
  2893. * src/DHTConnectionImpl.cc
  2894. * src/PeerListenCommand.cc
  2895. * src/PeerSessionResource.cc
  2896. * src/SegmentMan.cc
  2897. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2898. Updated Ukrainian translation. Thanks to all translators.
  2899. * po/uk.po
  2900. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2901. Bump up version number to 1.4.1.
  2902. * configure.ac
  2903. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2904. Added unit tests for strjoin, strconcat and strappend.
  2905. * test/a2functionalTest.cc
  2906. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2907. Rewritten strconcat and strappend using operator+ instead of
  2908. append().
  2909. * src/a2functional.h
  2910. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  2912. is enabled.
  2913. * src/Makefile.am
  2914. * test/Makefile.am
  2915. 2009-06-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2916. Added countSeeder() function which counts seeder in the given
  2917. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  2918. * src/ConsoleStatCalc.cc
  2919. * src/Peer.h
  2920. * src/XmlRpcMethodImpl.cc
  2921. * test/PeerTest.cc
  2922. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2923. Documented missing seeder in getPeers xml-rpc method.
  2924. Documented uploadLength and numSeeders.
  2925. * doc/aria2c.1.txt
  2926. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2927. Added uploadLength and numSeeders to the response of tellStatus
  2928. xml-rpc method. Assert that PeerStorage instance is not null
  2929. instead of checking if statement. It should be non-null in this
  2930. context.
  2931. * src/XmlRpcMethodImpl.cc
  2932. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2933. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  2934. * src/XmlRpcResponse.cc
  2935. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2936. Avoid intermediate object during string concatenation.
  2937. * src/HttpRequest.cc
  2938. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2939. Added strjoin function template. Use it in pathJoin()
  2940. * src/Util.h
  2941. * src/a2functional.h
  2942. 2009-06-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Avoid intermediate object during string concatenation. Replaced
  2944. post-increment unary operator with pre-increment one in for loop.
  2945. * src/AdaptiveURISelector.cc
  2946. * src/AnnounceList.cc
  2947. * src/AuthConfig.h
  2948. * src/BtBitfieldMessage.cc
  2949. * src/BtExtendedMessage.cc
  2950. * src/BtHandshakeMessage.cc
  2951. * src/BtPieceMessage.cc
  2952. * src/BtPortMessage.cc
  2953. * src/Cookie.cc
  2954. * src/DHTAnnouncePeerMessage.cc
  2955. * src/DHTAutoSaveCommand.cc
  2956. * src/DHTGetPeersReplyMessage.cc
  2957. * src/DHTNode.cc
  2958. * src/DHTQueryMessage.cc
  2959. * src/DHTResponseMessage.cc
  2960. * src/DHTUnknownMessage.cc
  2961. * src/DefaultBtAnnounce.cc
  2962. * src/DefaultBtContext.cc
  2963. * src/DefaultBtInteractive.cc
  2964. * src/DefaultBtProgressInfoFile.cc
  2965. * src/DefaultPeerStorage.cc
  2966. * src/DownloadEngine.cc
  2967. * src/FeatureConfig.cc
  2968. * src/File.cc
  2969. * src/FtpConnection.cc
  2970. * src/FtpNegotiationCommand.cc
  2971. * src/HandshakeExtensionMessage.cc
  2972. * src/HttpConnection.cc
  2973. * src/HttpRequest.cc
  2974. * src/HttpResponseCommand.cc
  2975. * src/HttpServer.cc
  2976. * src/IndexBtMessage.cc
  2977. * src/Metalink2RequestGroup.cc
  2978. * src/OptionHandlerImpl.h
  2979. * src/PStringBuildVisitor.cc
  2980. * src/Peer.cc
  2981. * src/PeerListenCommand.cc
  2982. * src/Piece.cc
  2983. * src/RangeBtMessage.cc
  2984. * src/Request.cc
  2985. * src/Request.h
  2986. * src/RequestGroup.cc
  2987. * src/RequestGroupMan.cc
  2988. * src/ServerStat.cc
  2989. * src/ServerStatMan.cc
  2990. * src/UTPexExtensionMessage.cc
  2991. * src/Util.cc
  2992. * src/a2functional.h
  2993. * src/download_helper.cc
  2994. * src/messageDigest.cc
  2995. 2009-06-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2996. Unchoke a peer randomly at first and second choke round in seed
  2997. state.
  2998. * src/BtSeederStateChoke.cc
  2999. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  3000. Added (sock_t) to quiet compiler warnings in MinGW
  3001. * src/SocketCore.cc
  3002. * src/SocketCore.h
  3003. 2009-06-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3004. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  3005. * src/EpollEventPoll.h
  3006. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  3007. Added fork() emulation using CreateProcess() in MinGW
  3008. * src/RequestGroupMan.cc
  3009. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3010. * Release 1.4.0
  3011. 2009-06-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3012. Added utf8.torrent to EXTRA_DIST
  3013. * test/Makefile.am
  3014. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3015. Fixed docs of aria2.addMetalink xml-rpc method.
  3016. * doc/aria2c.1.txt
  3017. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3018. Added Slovak translation. Updated Ukrainian and Brazilian
  3019. Portuguese translation. Thanks to all translators.
  3020. * po/sk.po
  3021. * po/uk.po
  3022. * po/pt_BR.po
  3023. * po/LINGUAS
  3024. 2009-05-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3025. Added test case for XmlRpcProcessor to fail to parse malformed
  3026. document.
  3027. * test/XmlRpcRequestProcessorTest.cc
  3028. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3029. Removed *.gmo files in po because they are generated on 'make
  3030. dist'
  3031. * po/*.gmo
  3032. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3033. Documented max-concurrent-downloads of changeGlobalOption method
  3034. in man page.
  3035. * doc/aria2c.1.txt
  3036. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3037. Added max-concurrent-downloads option to changeGlobalOption
  3038. xml-rpc method. Rewritten loop conditional in
  3039. RequestGroupMan::fillRequestGroupFromReserver().
  3040. * src/RequestGroupMan.cc
  3041. * src/RequestGroupMan.h
  3042. * src/XmlRpcMethod.cc
  3043. * src/XmlRpcMethodImpl.cc
  3044. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3045. Documented position parameter in man page.
  3046. * doc/aria2c.1.txt
  3047. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Added 'position' parameter to addUri, addTorrent and addMetalink
  3049. xml-rpc method.
  3050. * src/RequestGroupMan.cc
  3051. * src/RequestGroupMan.h
  3052. * src/XmlRpcMethodImpl.cc
  3053. * test/XmlRpcMethodTest.cc
  3054. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3055. Removed Peer.cc from compile source list when --disable-bittorrent
  3056. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  3057. takes Peer.
  3058. * src/DefaultPieceStorage.cc
  3059. * src/DefaultPieceStorage.h
  3060. * src/Makefile.am
  3061. * src/PieceStorage.h
  3062. * src/UnknownLengthPieceStorage.cc
  3063. * src/UnknownLengthPieceStorage.h
  3064. * test/MockPieceStorage.h
  3065. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3066. Implemented getter methods in header files to give them more
  3067. chance of optimization.
  3068. Return const reference for SharadHandle if possible.
  3069. * src/AbstractAuthResolver.cc
  3070. * src/AbstractAuthResolver.h
  3071. * src/AbstractBtMessage.cc
  3072. * src/AbstractBtMessage.h
  3073. * src/AbstractSingleDiskAdaptor.cc
  3074. * src/AbstractSingleDiskAdaptor.h
  3075. * src/AsyncNameResolver.cc
  3076. * src/AsyncNameResolver.h
  3077. * src/BNode.cc
  3078. * src/BNode.h
  3079. * src/BitfieldMan.cc
  3080. * src/BitfieldMan.h
  3081. * src/BtAbortOutstandingRequestEvent.h
  3082. * src/BtExtendedMessage.cc
  3083. * src/BtExtendedMessage.h
  3084. * src/BtSeederStateChoke.cc
  3085. * src/BtSeederStateChoke.h
  3086. * src/Cookie.cc
  3087. * src/Cookie.h
  3088. * src/DHTBucket.cc
  3089. * src/DHTBucket.h
  3090. * src/DHTConnectionImpl.cc
  3091. * src/DHTConnectionImpl.h
  3092. * src/DHTFindNodeReplyMessage.cc
  3093. * src/DHTFindNodeReplyMessage.h
  3094. * src/DHTGetPeersReplyMessage.cc
  3095. * src/DHTGetPeersReplyMessage.h
  3096. * src/DHTInteractionCommand.cc
  3097. * src/DHTMessage.cc
  3098. * src/DHTMessage.h
  3099. * src/DHTMessageDispatcherImpl.cc
  3100. * src/DHTMessageEntry.cc
  3101. * src/DHTMessageReceiver.cc
  3102. * src/DHTMessageReceiver.h
  3103. * src/DHTMessageTrackerEntry.cc
  3104. * src/DHTMessageTrackerEntry.h
  3105. * src/DHTPeerAnnounceEntry.cc
  3106. * src/DHTPeerAnnounceEntry.h
  3107. * src/DHTPeerLookupTask.cc
  3108. * src/DHTPeerLookupTask.h
  3109. * src/DHTRoutingTableDeserializer.cc
  3110. * src/DHTRoutingTableDeserializer.h
  3111. * src/DefaultBtAnnounce.cc
  3112. * src/DefaultBtAnnounce.h
  3113. * src/DefaultBtMessageDispatcher.cc
  3114. * src/DefaultBtMessageDispatcher.h
  3115. * src/DefaultBtRequestFactory.cc
  3116. * src/DefaultBtRequestFactory.h
  3117. * src/DiskAdaptor.cc
  3118. * src/DiskAdaptor.h
  3119. * src/DownloadContext.cc
  3120. * src/DownloadContext.h
  3121. * src/DownloadEngine.cc
  3122. * src/DownloadEngine.h
  3123. * src/EpollEventPoll.cc
  3124. * src/EpollEventPoll.h
  3125. * src/FtpConnection.cc
  3126. * src/FtpConnection.h
  3127. * src/HttpConnection.cc
  3128. * src/HttpConnection.h
  3129. * src/HttpHeader.cc
  3130. * src/HttpHeader.h
  3131. * src/HttpRequest.cc
  3132. * src/HttpRequest.h
  3133. * src/HttpResponse.cc
  3134. * src/HttpResponse.h
  3135. * src/LibsslTLSContext.cc
  3136. * src/LibsslTLSContext.h
  3137. * src/MSEHandshake.cc
  3138. * src/MSEHandshake.h
  3139. * src/MetalinkEntry.cc
  3140. * src/MetalinkEntry.h
  3141. * src/MetalinkParserController.cc
  3142. * src/MetalinkParserController.h
  3143. * src/MetalinkParserStateMachine.cc
  3144. * src/MetalinkParserStateMachine.h
  3145. * src/MultiDiskAdaptor.cc
  3146. * src/MultiDiskAdaptor.h
  3147. * src/NetrcAuthResolver.cc
  3148. * src/NetrcAuthResolver.h
  3149. * src/Peer.cc
  3150. * src/Peer.h
  3151. * src/PeerSessionResource.cc
  3152. * src/PeerSessionResource.h
  3153. * src/Piece.cc
  3154. * src/Piece.h
  3155. * src/PieceStatMan.cc
  3156. * src/PieceStatMan.h
  3157. * src/Request.cc
  3158. * src/Request.h
  3159. * src/RequestGroup.cc
  3160. * src/RequestGroup.h
  3161. * src/RequestGroupMan.cc
  3162. * src/RequestGroupMan.h
  3163. * src/RequestSlot.cc
  3164. * src/RequestSlot.h
  3165. * src/SegmentMan.cc
  3166. * src/SegmentMan.h
  3167. * src/SelectEventPoll.cc
  3168. * src/SelectEventPoll.h
  3169. * src/ServerStat.cc
  3170. * src/ServerStat.h
  3171. * src/Signature.cc
  3172. * src/Signature.h
  3173. * src/URIResult.cc
  3174. * src/URIResult.h
  3175. * src/UTPexExtensionMessage.cc
  3176. * src/UTPexExtensionMessage.h
  3177. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3178. Fixed compile error without BitTorrent and Metalink support.
  3179. * src/XmlRpcMethod.cc
  3180. * src/XmlRpcMethodFactory.cc
  3181. * src/XmlRpcMethodImpl.cc
  3182. * src/XmlRpcMethodImpl.h
  3183. * test/XmlRpcMethodTest.cc
  3184. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3185. Rewritten the help message for --allow-overwrite option.
  3186. * doc/aria2c.1.txt
  3187. * src/usage_text.h
  3188. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3189. Fixed typo
  3190. * doc/aria2c.1.txt
  3191. * src/usage_text.h
  3192. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3193. Updated README for 1.4.0 release. Use new table syntax of
  3194. asciidoc.
  3195. * README
  3196. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3197. Documented --xml-rpc-max-request-size option in man page.
  3198. * doc/aria2c.1.txt
  3199. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3200. Moved C_* constants from BtContext to DefaultBtContext.
  3201. * src/BtContext.cc: Removed.
  3202. * src/BtContext.h
  3203. * src/DefaultBtContext.cc
  3204. * src/DefaultBtContext.h
  3205. * src/Makefile.am
  3206. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3207. Use name.utf-8 and path.utf-8 key in higher priority than name and
  3208. path key respectively when persing .torrent file.
  3209. * src/BtContext.cc
  3210. * src/BtContext.h
  3211. * src/DefaultBtContext.cc
  3212. * test/DefaultBtContextTest.cc
  3213. * test/utf8.torrent
  3214. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3215. Added --xml-rpc-max-request-size option to limit the size of
  3216. XML-RPC request.
  3217. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3218. Documented XML-RPC API in man page.
  3219. * doc/aria2c.1.txt
  3220. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3221. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  3222. will break strict-aliasing rules
  3223. * src/PeerConnection.cc
  3224. * test/DHTRoutingTableSerializerTest.cc
  3225. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3226. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  3227. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  3228. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  3229. PKG_CHECK_MODULES macro uses latter name.
  3230. * m4/sqlite3.m4
  3231. * src/Makefile.am
  3232. * test/Makefile.am
  3233. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3234. Fixed typo
  3235. * configure.ac
  3236. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  3238. presence of libgnutls using pkg-config first. If it fails, fall
  3239. back to old macro libgnutls.m4.
  3240. * configure.ac
  3241. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3242. Use s itself instead of !s.bad()
  3243. * src/CookieStorage.cc
  3244. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3245. Documented --on-download-* option and --save-cookies option in man
  3246. page.
  3247. * doc/aria2c.1.txt
  3248. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3249. Set possible values for --load-cookie option to "/path/to/file".
  3250. * src/OptionHandlerFactory.cc
  3251. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3252. Added --save-cookies option.
  3253. * src/Cookie.cc
  3254. * src/Cookie.h
  3255. * src/CookieStorage.cc
  3256. * src/CookieStorage.h
  3257. * src/MultiUrlRequestInfo.cc
  3258. * src/OptionHandlerFactory.cc
  3259. * src/prefs.cc
  3260. * src/prefs.h
  3261. * src/usage_text.h
  3262. * test/CookieStorageTest.cc
  3263. * test/CookieTest.cc
  3264. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3265. Removed tellAll XML-RPC command because its reponse tends to be
  3266. big if stopped/waiting downloads pile up.
  3267. * src/XmlRpcMethodFactory.cc
  3268. * src/XmlRpcMethodImpl.cc
  3269. * src/XmlRpcMethodImpl.h
  3270. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Added the ability to execute command when download starts and
  3272. stops. You can also specify command for particular cases such as
  3273. complete/error download. Added --on-download-start,
  3274. --on-download-stop, --on-download-complete and --on-download-error
  3275. option.
  3276. * src/OptionHandlerFactory.cc
  3277. * src/RequestGroupMan.cc
  3278. * src/prefs.cc
  3279. * src/prefs.h
  3280. * src/usage_text.h
  3281. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3282. Fixed test error
  3283. * test/BencodeTest.cc
  3284. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3285. Added unit tests.
  3286. * test/XmlRpcMethodTest.cc
  3287. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3288. Made exception message more verbose.
  3289. * src/bencode.cc
  3290. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3291. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  3292. space in console readout. Also they are now shown in MiB/s if
  3293. speed > 1024KiB/s.
  3294. * src/ConsoleStatCalc.cc
  3295. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3296. Added SEED to console output, which represents the number of
  3297. seeders currently the client is connecting to.
  3298. * src/ConsoleStatCalc.cc
  3299. * src/ConsoleStatCalc.h
  3300. * src/DownloadEngine.cc
  3301. * src/NullStatCalc.h
  3302. * src/StatCalc.h
  3303. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3304. Added source filename(__FILE__) and line number(__LINE__) to
  3305. exception message.
  3306. * src/AbstractCommand.cc
  3307. * src/AbstractDiskWriter.cc
  3308. * src/AbstractProxyResponseCommand.cc
  3309. * src/BDE.h
  3310. * src/BtAllowedFastMessage.cc
  3311. * src/BtHandshakeMessageValidator.h
  3312. * src/BtHaveAllMessage.cc
  3313. * src/BtHaveNoneMessage.cc
  3314. * src/BtPieceMessage.cc
  3315. * src/BtRejectMessage.cc
  3316. * src/ChunkedDecoder.cc
  3317. * src/CookieStorage.cc
  3318. * src/DHTAnnouncePeerMessage.cc
  3319. * src/DHTEntryPointNameResolveCommand.cc
  3320. * src/DHTMessageFactoryImpl.cc
  3321. * src/DHTMessageTracker.cc
  3322. * src/DHTRoutingTableDeserializer.cc
  3323. * src/DHTRoutingTableSerializer.cc
  3324. * src/DHTSetup.cc
  3325. * src/DHTTokenTracker.cc
  3326. * src/DefaultBtAnnounce.cc
  3327. * src/DefaultBtContext.cc
  3328. * src/DefaultBtInteractive.cc
  3329. * src/DefaultBtMessageFactory.cc
  3330. * src/DefaultBtProgressInfoFile.cc
  3331. * src/DefaultExtensionMessageFactory.cc
  3332. * src/DlAbortEx.h
  3333. * src/DlRetryEx.h
  3334. * src/DownloadCommand.cc
  3335. * src/DownloadEngineFactory.cc
  3336. * src/DownloadFailureException.h
  3337. * src/Exception.cc
  3338. * src/Exception.h
  3339. * src/ExpatMetalinkProcessor.cc
  3340. * src/ExpatXmlRpcRequestProcessor.cc
  3341. * src/FallocFileAllocationIterator.cc
  3342. * src/FatalException.h
  3343. * src/FtpConnection.cc
  3344. * src/FtpFinishDownloadCommand.cc
  3345. * src/FtpInitiateConnectionCommand.cc
  3346. * src/FtpNegotiationCommand.cc
  3347. * src/GZipDecoder.cc
  3348. * src/HandshakeExtensionMessage.cc
  3349. * src/HttpConnection.cc
  3350. * src/HttpHeaderProcessor.cc
  3351. * src/HttpInitiateConnectionCommand.cc
  3352. * src/HttpResponse.cc
  3353. * src/HttpResponseCommand.cc
  3354. * src/HttpServer.cc
  3355. * src/HttpSkipResponseCommand.cc
  3356. * src/InitiateConnectionCommandFactory.cc
  3357. * src/IteratableChunkChecksumValidator.cc
  3358. * src/LibgcryptARC4Context.h
  3359. * src/LibgcryptARC4Decryptor.h
  3360. * src/LibgcryptARC4Encryptor.h
  3361. * src/LibgcryptDHKeyExchange.h
  3362. * src/LibgnutlsTLSContext.cc
  3363. * src/LibsslARC4Context.h
  3364. * src/LibsslARC4Decryptor.h
  3365. * src/LibsslARC4Encryptor.h
  3366. * src/LibsslDHKeyExchange.h
  3367. * src/LibsslTLSContext.cc
  3368. * src/MSEHandshake.cc
  3369. * src/MessageDigestHelper.cc
  3370. * src/MetalinkHelper.cc
  3371. * src/MultiDiskAdaptor.cc
  3372. * src/NameMatchOptionHandler.h
  3373. * src/NameResolver.cc
  3374. * src/Netrc.cc
  3375. * src/NsCookieParser.cc
  3376. * src/OptionHandlerException.cc
  3377. * src/OptionHandlerException.h
  3378. * src/OptionHandlerImpl.h
  3379. * src/OptionParser.cc
  3380. * src/ParameterizedStringParser.cc
  3381. * src/PeerAbstractCommand.cc
  3382. * src/PeerConnection.cc
  3383. * src/PeerMessageUtil.cc
  3384. * src/PeerReceiveHandshakeCommand.cc
  3385. * src/Platform.cc
  3386. * src/ReceiverMSEHandshakeCommand.cc
  3387. * src/RecoverableException.h
  3388. * src/RequestGroup.cc
  3389. * src/SimpleLogger.cc
  3390. * src/SocketCore.cc
  3391. * src/Sqlite3MozCookieParser.cc
  3392. * src/UTPexExtensionMessage.cc
  3393. * src/Util.cc
  3394. * src/XML2SAXMetalinkProcessor.cc
  3395. * src/Xml2XmlRpcRequestProcessor.cc
  3396. * src/XmlRpcMethodImpl.cc
  3397. * src/bencode.cc
  3398. * src/download_helper.cc
  3399. * src/messageDigest.h
  3400. * test/ExceptionTest.cc
  3401. * test/TestUtil.cc
  3402. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3403. Bump up version number to 1.4.0
  3404. * configure.ac
  3405. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3406. Added 2files.metalink to EXTRA_DIST
  3407. * test/Makefile.am
  3408. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3409. Added missing 2files.metalink
  3410. * test/2files.metalink
  3411. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3412. Show "[MEMORY]" prefix before filename in download summary if it
  3413. is downloaded into memory.
  3414. * src/DownloadResult.h
  3415. * src/RequestGroup.cc
  3416. * src/RequestGroupMan.cc
  3417. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3418. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  3419. * src/ExpatXmlRpcRequestProcessor.cc
  3420. * src/Xml2XmlRpcRequestProcessor.cc
  3421. * src/message.h
  3422. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3423. Defined const BDEs to avoid duplicate instantiation.
  3424. Defined MSG_GID_NOT_PROVIDED.
  3425. * src/XmlRpcMethodImpl.cc
  3426. * src/message.h
  3427. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3428. Code cleanup
  3429. * src/Xml2XmlRpcRequestProcessor.cc
  3430. * src/Xml2XmlRpcRequestProcessor.h
  3431. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3432. Defined ENABLE_XML_RPC
  3433. * configure.ac
  3434. * configure
  3435. * config.h.in
  3436. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3437. Added ExpatXmlRpcRequestProcessor
  3438. * src/ExpatXmlRpcRequestProcessor.cc
  3439. * src/ExpatXmlRpcRequestProcessor.h
  3440. * src/Makefile.am
  3441. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3442. Added tests for addTorrent and addMetalink command.
  3443. * test/TestUtil.cc
  3444. * test/TestUtil.h
  3445. * test/XmlRpcMethodTest.cc
  3446. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3447. Corrected the description of --file-allocation option.
  3448. * doc/aria2c.1.txt
  3449. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3450. Added tellAll command.
  3451. * src/XmlRpcMethodFactory.cc
  3452. * src/XmlRpcMethodImpl.cc
  3453. * src/XmlRpcMethodImpl.h
  3454. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3455. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  3456. * src/XmlRpcMethodImpl.cc
  3457. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3458. Added changeGlobalOption command. Currently,
  3459. max-overall-download-limit and max-overall-upload-limit option are
  3460. available.
  3461. * src/RequestGroupMan.h
  3462. * src/XmlRpcMethod.cc
  3463. * src/XmlRpcMethod.h
  3464. * src/XmlRpcMethodFactory.cc
  3465. * src/XmlRpcMethodImpl.cc
  3466. * src/XmlRpcMethodImpl.h
  3467. * test/XmlRpcMethodTest.cc
  3468. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3469. Added changeOption command. Currently, max-download-limit,
  3470. max-upload-limit option are available in this command.
  3471. * src/RequestGroup.h
  3472. * src/XmlRpcMethod.cc
  3473. * src/XmlRpcMethod.h
  3474. * src/XmlRpcMethodFactory.cc
  3475. * src/XmlRpcMethodImpl.cc
  3476. * src/XmlRpcMethodImpl.h
  3477. * test/XmlRpcMethodTest.cc
  3478. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3479. Added purgeDownloadResult command.
  3480. * src/RequestGroupMan.cc
  3481. * src/RequestGroupMan.h
  3482. * src/XmlRpcMethodFactory.cc
  3483. * src/XmlRpcMethodImpl.cc
  3484. * src/XmlRpcMethodImpl.h
  3485. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3486. Refactored.
  3487. * src/XmlRpcMethod.cc
  3488. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3489. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  3490. XmlRpcResponse.
  3491. * src/HttpServerBodyCommand.cc
  3492. * src/Makefile.am
  3493. * src/XmlRpcMethod.cc
  3494. * src/XmlRpcMethod.h
  3495. * src/XmlRpcMethodImpl.cc
  3496. * src/XmlRpcResponse.cc
  3497. * src/XmlRpcResponse.h
  3498. * test/XmlRpcMethodTest.cc
  3499. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3500. In XML-RPC option struct, header and index-out option can take
  3501. array as value.
  3502. * src/XmlRpcMethod.cc
  3503. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3504. Removed unused option member from PeerConnection.
  3505. * src/InitiatorMSEHandshakeCommand.cc
  3506. * src/PeerConnection.cc
  3507. * src/PeerConnection.h
  3508. * src/PeerInteractionCommand.cc
  3509. * src/PeerReceiveHandshakeCommand.cc
  3510. * src/ReceiverMSEHandshakeCommand.cc
  3511. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3512. Added "seeder" key to getPeers response.
  3513. * src/XmlRpcMethodImpl.cc
  3514. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3515. Added addMetalink XML-RPC command.
  3516. * src/XmlRpcMethodFactory.cc
  3517. * src/XmlRpcMethodImpl.cc
  3518. * src/XmlRpcMethodImpl.h
  3519. * src/download_helper.cc
  3520. * src/download_helper.h
  3521. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3522. Fixed the bug that POU peers are never choked in seeding.
  3523. * src/BtSeederStateChoke.cc
  3524. * src/BtSeederStateChoke.h
  3525. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3526. Added web-seeding URI handling in addTorrent command.
  3527. * src/XmlRpcMethodImpl.cc
  3528. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3529. Added "length" key to getFiles response.
  3530. * src/XmlRpcMethodImpl.cc
  3531. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3532. Moved --no-netrc option from ftp option section to http/ftp option
  3533. section.
  3534. * doc/aria2c.1.txt
  3535. * src/OptionHandlerFactory.cc
  3536. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3537. Removed garbage "\" character before '
  3538. * doc/aria2c.1.txt
  3539. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3540. Removed garbage "\" character before http.
  3541. * doc/aria2c.1.txt
  3542. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3543. Documented additional options that can be specified in -i list.
  3544. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  3545. and --xml-rpc-passwd. Removed --enable-http-server and
  3546. --http-server-listen-port.
  3547. * doc/aria2c.1.txt
  3548. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3549. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  3550. * src/DefaultPeerStorage.cc
  3551. * src/DefaultPeerStorage.h
  3552. * src/PeerStorage.h
  3553. * src/XmlRpcMethodImpl.cc
  3554. * test/MockPeerStorage.h
  3555. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3556. Put a call to Socket::isReadable() in try block.
  3557. * src/HttpServerBodyCommand.cc
  3558. * src/HttpServerCommand.cc
  3559. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3560. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  3561. exception , so it is now in try block.
  3562. * src/HttpServerResponseCommand.cc
  3563. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3564. Added "amChoking" and "peerChoking" key in getPeers response.
  3565. * src/XmlRpcMethodImpl.cc
  3566. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3567. Added test case for zero-length filter.
  3568. * test/BitfieldManTest.cc
  3569. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3570. getFiles command now returns file data for finished/stopped
  3571. downloads.
  3572. * src/XmlRpcMethodImpl.cc
  3573. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3574. DownloadResult now has the list of FileEntry. The download
  3575. summary displays the path of first selected file and the number of
  3576. remaining files for multi-file torrent.
  3577. * src/DownloadResult.h
  3578. * src/RequestGroup.cc
  3579. * src/RequestGroupMan.cc
  3580. * test/RequestGroupTest.cc
  3581. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3582. Fixed segmentation fault error when no file is selected in
  3583. multi-file torrent.
  3584. * src/BitfieldMan.cc
  3585. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3586. Escaped <,>,& character in XML-RPC response.
  3587. * src/XmlRpcMethod.cc
  3588. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3589. Throw DlAbortEx instead of FatalException during parsing options
  3590. because we don't want for aria2 to quit when bad option is passed
  3591. via XML-RPC.
  3592. * src/OptionHandlerException.cc
  3593. * src/OptionHandlerException.h
  3594. * src/OptionHandlerImpl.h
  3595. * src/OptionParser.cc
  3596. * src/OptionParser.h
  3597. * src/PStringSegment.cc
  3598. * src/ParameterizedStringParser.cc
  3599. * src/download_helper.cc
  3600. * test/ParameterizedStringParserTest.cc
  3601. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3602. Selecting files are now done in
  3603. DefaultBtContext::setFileFileter().
  3604. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  3605. functions are removed because they are no longer used. Creating
  3606. filter in BitfieldMan is done in new funtion
  3607. PieceStorage::setupFileFilter()
  3608. * src/BtContext.cc
  3609. * src/BtContext.h
  3610. * src/DefaultBtContext.cc
  3611. * src/DefaultBtContext.h
  3612. * src/DefaultPieceStorage.cc
  3613. * src/DefaultPieceStorage.h
  3614. * src/DiskAdaptor.cc
  3615. * src/DiskAdaptor.h
  3616. * src/PieceStorage.h
  3617. * src/RequestGroup.cc
  3618. * src/UnknownLengthPieceStorage.h
  3619. * src/XmlRpcMethodImpl.cc
  3620. * test/DefaultBtContextTest.cc
  3621. * test/MockBtContext.h
  3622. * test/MockPieceStorage.h
  3623. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3624. Fixed compile error on Mac OS X
  3625. * src/HttpServer.cc
  3626. * src/XmlRpcMethod.h
  3627. * src/XmlRpcMethodImpl.cc
  3628. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3629. Use std::binary_search instead of std::find
  3630. * src/DefaultPieceStorage.cc
  3631. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3632. Removed unnecessary BDE() call; leave them to implicit conversion.
  3633. * src/XmlRpcMethodImpl.cc
  3634. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3635. Return connections and gid in string
  3636. * src/XmlRpcMethodImpl.cc
  3637. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3638. Renamed addURI as addUri
  3639. * src/XmlRpcMethodFactory.cc
  3640. * src/XmlRpcMethodImpl.cc
  3641. * src/XmlRpcMethodImpl.h
  3642. * test/XmlRpcMethodTest.cc
  3643. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3644. Renamed addTorrentFile as addTorrent
  3645. * src/XmlRpcMethodFactory.cc
  3646. * src/XmlRpcMethodImpl.cc
  3647. * src/XmlRpcMethodImpl.h
  3648. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3649. The information for files, URIs, peers are removed from the
  3650. reponse of TellaActive, TellStatus command because they tend to be
  3651. large. Instead they can be retrieved by the dedicated commands:
  3652. getFiles, getUris and getPeers respectively.
  3653. * src/XmlRpcMethodFactory.cc
  3654. * src/XmlRpcMethodImpl.cc
  3655. * src/XmlRpcMethodImpl.h
  3656. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3657. Removed --max-overall-upload-limit and
  3658. --max-overall-download-limit option from listRequestOptions.
  3659. * src/download_helper.cc
  3660. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3661. Log incoming host in HttpListenCommand.
  3662. * src/HttpListenCommand.cc
  3663. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3664. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  3665. --xml-rpc-passwd option.
  3666. * src/HttpServer.cc
  3667. * src/HttpServer.h
  3668. * src/HttpServerCommand.cc
  3669. * src/OptionHandlerFactory.cc
  3670. * src/prefs.cc
  3671. * src/prefs.h
  3672. * src/usage_text.h
  3673. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3674. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  3675. processing 0 length request.
  3676. * src/HttpServerBodyCommand.cc
  3677. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3678. Removed --enable-http-server and --http-server-listen-port
  3679. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  3680. instead. The original feature for --enable-http-server that
  3681. reports download progress in HTML was officially removed. Persist
  3682. XML-RPC connection if client supports keep-alive.
  3683. * src/DownloadEngineFactory.cc
  3684. * src/HttpServerCommand.cc
  3685. * src/HttpServerResponseCommand.cc
  3686. * src/Makefile.am
  3687. * src/Makefile.in
  3688. * src/OptionHandlerFactory.cc
  3689. * src/RequestGroupMan.cc
  3690. * src/main.cc
  3691. * src/option_processing.cc
  3692. * src/prefs.cc
  3693. * src/prefs.h
  3694. * src/usage_text.h
  3695. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3696. Added "uris" key to the response of tellStatus command. Added
  3697. "connections" key to the response of tellStatus and tellActive
  3698. command.
  3699. * src/XmlRpcMethodImpl.cc
  3700. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3701. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  3702. Added TellStatusXmlRpcMethod. Remove command can now remove
  3703. waiting RequestGroup.
  3704. * src/RequestGroupMan.cc
  3705. * src/RequestGroupMan.h
  3706. * src/XmlRpcMethodFactory.cc
  3707. * src/XmlRpcMethodImpl.cc
  3708. * src/XmlRpcMethodImpl.h
  3709. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3710. Initialized _peerId
  3711. * src/Peer.cc
  3712. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3713. Return fault structure for error. FailXmlRpcMethod is renamed as
  3714. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  3715. in non-torrent download. Return single param value.
  3716. * src/XmlRpcMethod.cc
  3717. * src/XmlRpcMethodFactory.cc
  3718. * src/XmlRpcMethodImpl.cc
  3719. * src/XmlRpcMethodImpl.h
  3720. * test/XmlRpcMethodTest.cc
  3721. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3722. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  3723. command.
  3724. * src/RequestGroup.cc
  3725. * src/RequestGroup.h
  3726. * src/RequestGroupMan.cc
  3727. * src/XmlRpcMethodImpl.cc
  3728. * test/RequestGroupTest.cc
  3729. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3730. Added more options that can be specified in -i list and xml-rpc
  3731. add* command.
  3732. * src/download_helper.h
  3733. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3734. The available options in -i list should be listed in
  3735. listRequestOptions().
  3736. * src/download_helper.cc
  3737. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3738. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  3739. command.
  3740. * src/XmlRpcMethodImpl.cc
  3741. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3742. Now RequestGroup has its own copy of Option object. This will help
  3743. to give custom option for each RequestGroup.
  3744. addTorrentFile command now takes options.
  3745. * src/AbstractCommand.cc
  3746. * src/AbstractCommand.h
  3747. * src/AbstractProxyRequestCommand.cc
  3748. * src/ActivePeerConnectionCommand.cc
  3749. * src/ActivePeerConnectionCommand.h
  3750. * src/AdaptiveURISelector.cc
  3751. * src/BtCheckIntegrityEntry.cc
  3752. * src/BtDependency.cc
  3753. * src/BtDependency.h
  3754. * src/BtFileAllocationEntry.cc
  3755. * src/BtPostDownloadHandler.cc
  3756. * src/CheckIntegrityEntry.cc
  3757. * src/DownloadCommand.cc
  3758. * src/FtpDownloadCommand.cc
  3759. * src/FtpFinishDownloadCommand.cc
  3760. * src/FtpInitiateConnectionCommand.cc
  3761. * src/FtpNegotiationCommand.cc
  3762. * src/HttpInitiateConnectionCommand.cc
  3763. * src/HttpRequestCommand.cc
  3764. * src/HttpResponseCommand.cc
  3765. * src/HttpSkipResponseCommand.cc
  3766. * src/InitiateConnectionCommand.cc
  3767. * src/InitiateConnectionCommandFactory.cc
  3768. * src/InitiatorMSEHandshakeCommand.cc
  3769. * src/InitiatorMSEHandshakeCommand.h
  3770. * src/Metalink2RequestGroup.cc
  3771. * src/Metalink2RequestGroup.h
  3772. * src/MetalinkPostDownloadHandler.cc
  3773. * src/MultiUrlRequestInfo.cc
  3774. * src/MultiUrlRequestInfo.h
  3775. * src/PeerAbstractCommand.cc
  3776. * src/PeerInteractionCommand.cc
  3777. * src/PeerInteractionCommand.h
  3778. * src/PeerReceiveHandshakeCommand.cc
  3779. * src/PeerReceiveHandshakeCommand.h
  3780. * src/RequestGroup.cc
  3781. * src/RequestGroup.h
  3782. * src/TrackerWatcherCommand.cc
  3783. * src/TrackerWatcherCommand.h
  3784. * src/XmlRpcMethod.cc
  3785. * src/XmlRpcMethod.h
  3786. * src/XmlRpcMethodImpl.cc
  3787. * src/download_helper.cc
  3788. * src/download_helper.h
  3789. * src/main.cc
  3790. * test/BtDependencyTest.cc
  3791. * test/BtPostDownloadHandlerTest.cc
  3792. * test/DefaultBtMessageDispatcherTest.cc
  3793. * test/DownloadHandlerFactoryTest.cc
  3794. * test/DownloadHelperTest.cc
  3795. * test/Metalink2RequestGroupTest.cc
  3796. * test/MetalinkPostDownloadHandlerTest.cc
  3797. * test/RequestGroupManTest.cc
  3798. * test/RequestGroupTest.cc
  3799. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3800. Added tellActiveStatus xml-rpc command which reports download
  3801. status of active downloads.
  3802. * src/XmlRpcMethodFactory.cc
  3803. * src/XmlRpcMethodImpl.cc
  3804. * src/XmlRpcMethodImpl.h
  3805. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3806. Added addTorrentFile xml-rpc command which receives uploaded
  3807. torrent file and add download for it.
  3808. * src/RequestGroupMan.cc
  3809. * src/XmlRpcMethodFactory.cc
  3810. * src/XmlRpcMethodImpl.cc
  3811. * src/XmlRpcMethodImpl.h
  3812. * src/download_helper.cc
  3813. * src/download_helper.h
  3814. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3815. Added remove xml-rpc command which removes specified download.
  3816. There is a known issue: the removed unfinished downloads are
  3817. reported ERR when aria2 exits. They should be reported as INPR.
  3818. * src/RequestGroupMan.cc
  3819. * src/RequestGroupMan.h
  3820. * src/XmlRpcMethodFactory.cc
  3821. * src/XmlRpcMethodImpl.cc
  3822. * src/XmlRpcMethodImpl.h
  3823. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3824. If --enable-http-server is enabled, don't stop aria2 when all
  3825. download finished and don't quit when no files to download at
  3826. start up.
  3827. * src/RequestGroupMan.cc
  3828. * src/main.cc
  3829. * src/option_processing.cc
  3830. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3831. Added missing AM_CONDITIONAL
  3832. * configure.ac
  3833. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3834. Added xml-rpc functionality. Currently only addURI commad is
  3835. supported. To enable xml-rpc, run aria2 with
  3836. --enable-http-server. This option name is temporal and will be
  3837. changed. The feature that reports download progress in html format
  3838. is temporarily disabled.
  3839. * src/HttpServer.cc
  3840. * src/HttpServer.h
  3841. * src/HttpServerBodyCommand.cc
  3842. * src/HttpServerBodyCommand.h
  3843. * src/HttpServerCommand.cc
  3844. * src/HttpServerResponseCommand.cc
  3845. * src/Makefile.am
  3846. * src/OptionParser.cc
  3847. * src/OptionParser.h
  3848. * src/RequestGroupMan.cc
  3849. * src/RequestGroupMan.h
  3850. * src/XmlRpcMethod.cc
  3851. * src/XmlRpcMethod.h
  3852. * src/XmlRpcMethodFactory.cc
  3853. * src/XmlRpcMethodFactory.h
  3854. * src/XmlRpcMethodImpl.cc
  3855. * src/XmlRpcMethodImpl.h
  3856. * src/download_helper.cc
  3857. * src/download_helper.h
  3858. * test/Makefile.am
  3859. * test/XmlRpcMethodTest.cc
  3860. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3861. Added xml-rpc request parser. The supported value types are:
  3862. i4/int, string, double, struct, array, base64. Currently only
  3863. libxml2 version is provided.
  3864. * src/Xml2XmlRpcRequestProcessor.cc
  3865. * src/Xml2XmlRpcRequestProcessor.h
  3866. * src/XmlRpcElements.cc
  3867. * src/XmlRpcElements.h
  3868. * src/XmlRpcRequest.h
  3869. * src/XmlRpcRequestParserController.cc
  3870. * src/XmlRpcRequestParserController.h
  3871. * src/XmlRpcRequestParserState.h
  3872. * src/XmlRpcRequestParserStateImpl.cc
  3873. * src/XmlRpcRequestParserStateImpl.h
  3874. * src/XmlRpcRequestParserStateMachine.cc
  3875. * src/XmlRpcRequestParserStateMachine.h
  3876. * src/XmlRpcRequestProcessor.h
  3877. * test/XmlRpcRequestParserControllerTest.cc
  3878. * test/XmlRpcRequestProcessorTest.cc
  3879. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3880. * Release 1.3.3
  3881. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3882. Fixed compile error since r1202.
  3883. * src/ExpatMetalinkProcessor.cc
  3884. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3885. Updated Ukrainian, Russian and Simplified Chinese
  3886. translations. Thanks to all translators.
  3887. * po/ru.po
  3888. * po/uk.po
  3889. * po/zh_CN.po
  3890. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3891. Pass reference of Option object instead of pointer.
  3892. * src/download_helper.cc
  3893. * src/download_helper.h
  3894. * src/main.cc
  3895. * test/DownloadHelperTest.cc
  3896. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3897. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  3898. from option directly. Instead, get them from RequestGroup.
  3899. * src/ActivePeerConnectionCommand.cc
  3900. * src/ActivePeerConnectionCommand.h
  3901. * src/PeerReceiveHandshakeCommand.cc
  3902. * src/RequestGroup.h
  3903. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3904. Removed unused uploadLimitCheck and uploadLimit from
  3905. PeerAbstractCommand. Removed unused maxDownloadLimit from
  3906. PeerInteractionCommand.
  3907. * src/PeerAbstractCommand.cc
  3908. * src/PeerAbstractCommand.h
  3909. * src/PeerInteractionCommand.cc
  3910. * src/PeerInteractionCommand.h
  3911. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3912. Fixed broken file renaming feature since r1202.
  3913. * src/FtpNegotiationCommand.cc
  3914. * src/FtpNegotiationCommand.h
  3915. * src/HttpResponseCommand.cc
  3916. * src/RequestGroup.cc
  3917. * src/RequestGroup.h
  3918. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3919. Removed unused debug log
  3920. * src/SocketCore.cc
  3921. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3922. Generated configure and Makefile.in using autoconf 2.63 and
  3923. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  3924. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  3925. * configure.ac
  3926. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3927. Moved piece statistics stuff to new PieceStatMan class.
  3928. Refactored PieceSelector interface.
  3929. * src/DefaultPieceStorage.cc
  3930. * src/DefaultPieceStorage.h
  3931. * src/LongestSequencePieceSelector.cc
  3932. * src/LongestSequencePieceSelector.h
  3933. * src/Makefile.am
  3934. * src/PieceSelector.h
  3935. * src/PieceStatMan.cc
  3936. * src/PieceStatMan.h
  3937. * src/RarestPieceSelector.cc
  3938. * src/RarestPieceSelector.h
  3939. * src/RequestGroup.cc
  3940. * test/DefaultPieceStorageTest.cc
  3941. * test/InOrderPieceSelector.h
  3942. * test/Makefile.am
  3943. * test/PieceStatManTest.cc
  3944. * test/RarestPieceSelectorTest.cc
  3945. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3946. Added static member _protocolFamily to SocketCore. By default,
  3947. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  3948. address. Sometime SocketCore::bind() and
  3949. SocketCore::establishConnection() use difference protocl family
  3950. and latter cannot connect to former. To avoid this situation, we
  3951. limit protocol family to AF_INET for unit tests.
  3952. * src/SocketCore.cc
  3953. * src/SocketCore.h
  3954. * test/AllTest.cc
  3955. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3956. Avoid std::bad_alloc for negative bencode string length.
  3957. * src/bencode.cc
  3958. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3959. Supported segmented downloading with chunked transfer encoding and
  3960. content-length.
  3961. * src/DownloadCommand.cc
  3962. * src/HttpResponseCommand.cc
  3963. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3964. Bump up version number to 1.3.3
  3965. * configure.ac
  3966. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3967. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  3968. from 4096 to 65536 (for insanely large ftp login banners)
  3969. * src/FtpConnection.h
  3970. * test/FtpConnectionTest.cc
  3971. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3972. In DefaultBtContext::getActualBasePath(), return first
  3973. FileEntry::getPath() for single file torrent.
  3974. * src/DefaultBtContext.cc
  3975. * test/DefaultBtContextTest.cc
  3976. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3977. Removed directIOAllowed() from BinaryStream, DiskWriter,
  3978. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  3979. Removed _directIOAllowed member from DiskWriter.
  3980. * src/AbstractDiskWriter.cc
  3981. * src/AbstractDiskWriter.h
  3982. * src/AbstractSingleDiskAdaptor.cc
  3983. * src/AbstractSingleDiskAdaptor.h
  3984. * src/BinaryStream.h
  3985. * src/ByteArrayDiskWriter.h
  3986. * src/DefaultPieceStorage.cc
  3987. * src/DiskWriter.h
  3988. * src/MultiDiskAdaptor.cc
  3989. * src/MultiDiskAdaptor.h
  3990. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3991. Now the constructor of AbstractDiskWriter takes filename as an
  3992. argument and filename argument is removed from openFile(),
  3993. initAndOpenFile(), openExistingFile() interface. storeDir member
  3994. and its accessor functions are removed from DiskAdaptor because it
  3995. is not used anymore. size() member function of DefaultDiskWriter,
  3996. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  3997. opening file.
  3998. * src/AbstractDiskWriter.cc
  3999. * src/AbstractDiskWriter.h
  4000. * src/AbstractSingleDiskAdaptor.cc
  4001. * src/AbstractSingleDiskAdaptor.h
  4002. * src/ByteArrayDiskWriter.cc
  4003. * src/ByteArrayDiskWriter.h
  4004. * src/ByteArrayDiskWriterFactory.cc
  4005. * src/ByteArrayDiskWriterFactory.h
  4006. * src/DefaultDiskWriter.cc
  4007. * src/DefaultDiskWriter.h
  4008. * src/DefaultDiskWriterFactory.cc
  4009. * src/DefaultDiskWriterFactory.h
  4010. * src/DefaultPieceStorage.cc
  4011. * src/DirectDiskAdaptor.cc
  4012. * src/DirectDiskAdaptor.h
  4013. * src/DiskAdaptor.h
  4014. * src/DiskWriter.h
  4015. * src/DiskWriterFactory.h
  4016. * src/MessageDigestHelper.cc
  4017. * src/MultiDiskAdaptor.cc
  4018. * src/RequestGroup.cc
  4019. * src/UnknownLengthPieceStorage.cc
  4020. * src/Util.cc
  4021. * test/DefaultDiskWriterTest.cc
  4022. * test/DirectDiskAdaptorTest.cc
  4023. * test/FallocFileAllocationIteratorTest.cc
  4024. * test/MessageDigestHelperTest.cc
  4025. * test/MetalinkProcessorTest.cc
  4026. * test/MultiDiskAdaptorTest.cc
  4027. * test/MultiFileAllocationIteratorTest.cc
  4028. * test/SingleFileAllocationIteratorTest.cc
  4029. * test/UtilTest.cc
  4030. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4031. Fixed the bug that aria2 aborts when --select-file is used. This
  4032. bug was introduced in r1199.
  4033. * src/MultiDiskAdaptor.cc
  4034. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4035. Code cleanup
  4036. * test/MockPieceStorage.cc
  4037. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4038. Fixed the bug that read-only file with wrong file size will cause
  4039. error because it cannot be truncated to the correct size. Now if
  4040. file size is different than the expected one, re-open file in
  4041. writable mode.
  4042. * src/AbstractSingleDiskAdaptor.cc
  4043. * src/AbstractSingleDiskAdaptor.h
  4044. * src/BtCheckIntegrityEntry.cc
  4045. * src/DiskAdaptor.h
  4046. * src/MultiDiskAdaptor.h
  4047. * src/RequestGroup.cc
  4048. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4049. Fixed the bug that with --check-integrity option aria2 reports
  4050. downloaded file size is 0 even if some parts of file is correctly
  4051. downloaded. This bug is reproducible for the download that a file
  4052. includes last piece is missing. This bug doesn't reveal for
  4053. single-torrent with file allocation on.
  4054. * src/IteratableChecksumValidator.cc
  4055. * test/IteratableChecksumValidatorTest.cc
  4056. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4057. Avoid circular reference between RequestGroup and AdaptiveURISelector
  4058. * src/RequestGroupMan.cc
  4059. * src/AdaptiveURISelector.cc
  4060. * src/AdaptiveURISelector.h
  4061. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4062. * Release 1.3.2
  4063. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4064. Updated README
  4065. * README
  4066. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4067. Updated Ukrainian translations. Thanks to Alexander10.
  4068. * po/uk.po
  4069. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4070. Code cleanup
  4071. * src/MetalinkParserStateMachine.cc
  4072. * src/MetalinkParserStateMachine.h
  4073. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4074. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  4075. and expat simultaneously, MetalinkProcessor is now not base class
  4076. and it is directly implemented in XML2SAXMetalinkProcessor and
  4077. ExpatMetalinkProcessor.
  4078. * src/ExpatMetalinkProcessor.cc
  4079. * src/ExpatMetalinkProcessor.h
  4080. * src/Makefile.am
  4081. * src/MetalinkHelper.cc
  4082. * src/MetalinkProcessor.h
  4083. * src/MetalinkProcessorFactory.cc: Removed.
  4084. * src/MetalinkProcessorFactory.h: Removed
  4085. * src/XML2SAXMetalinkProcessor.cc
  4086. * src/XML2SAXMetalinkProcessor.h
  4087. * test/MetalinkProcessorTest.cc
  4088. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4089. Bump up version number to 1.3.2
  4090. * configure.ac
  4091. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4092. Added missing file.
  4093. * test/Makefile.am
  4094. * test/url-list-singleFileEndsWithSlash.torrent
  4095. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4096. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  4097. request.
  4098. * src/AnnounceList.cc
  4099. * src/AnnounceList.h
  4100. * src/BDE.cc: Added
  4101. * src/BDE.h: Added
  4102. * src/DHTAbstractMessage.cc
  4103. * src/DHTAbstractMessage.h
  4104. * src/DHTAnnouncePeerMessage.cc
  4105. * src/DHTAnnouncePeerMessage.h
  4106. * src/DHTAnnouncePeerReplyMessage.cc
  4107. * src/DHTAnnouncePeerReplyMessage.h
  4108. * src/DHTFindNodeMessage.cc
  4109. * src/DHTFindNodeMessage.h
  4110. * src/DHTFindNodeReplyMessage.cc
  4111. * src/DHTFindNodeReplyMessage.h
  4112. * src/DHTGetPeersMessage.cc
  4113. * src/DHTGetPeersMessage.h
  4114. * src/DHTGetPeersReplyMessage.cc
  4115. * src/DHTGetPeersReplyMessage.h
  4116. * src/DHTMessageFactory.h
  4117. * src/DHTMessageFactoryImpl.cc
  4118. * src/DHTMessageFactoryImpl.h
  4119. * src/DHTMessageReceiver.cc
  4120. * src/DHTMessageTracker.cc
  4121. * src/DHTMessageTracker.h
  4122. * src/DHTPingMessage.cc
  4123. * src/DHTPingMessage.h
  4124. * src/DHTPingReplyMessage.cc
  4125. * src/DHTPingReplyMessage.h
  4126. * src/DHTQueryMessage.cc
  4127. * src/DHTQueryMessage.h
  4128. * src/DHTResponseMessage.cc
  4129. * src/DHTResponseMessage.h
  4130. * src/DefaultBtAnnounce.cc
  4131. * src/DefaultBtContext.cc
  4132. * src/DefaultBtContext.h
  4133. * src/HandshakeExtensionMessage.cc
  4134. * src/Makefile.am
  4135. * src/PeerListProcessor.h
  4136. * src/UTPexExtensionMessage.cc
  4137. * src/bencode.cc
  4138. * src/bencode.h
  4139. * test/AnnounceListTest.cc
  4140. * test/BDETest.cc: Added
  4141. * test/BencodeTest.cc
  4142. * test/DHTAnnouncePeerMessageTest.cc
  4143. * test/DHTAnnouncePeerReplyMessageTest.cc
  4144. * test/DHTFindNodeMessageTest.cc
  4145. * test/DHTFindNodeReplyMessageTest.cc
  4146. * test/DHTGetPeersMessageTest.cc
  4147. * test/DHTGetPeersReplyMessageTest.cc
  4148. * test/DHTMessageFactoryImplTest.cc
  4149. * test/DHTMessageTrackerTest.cc
  4150. * test/DHTPingMessageTest.cc
  4151. * test/DHTPingReplyMessageTest.cc
  4152. * test/Makefile.am
  4153. * test/MockDHTMessageFactory.h
  4154. * test/PeerListProcessorTest.cc
  4155. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4156. Use url-list (web-seeding) only for single-file torrent. This is
  4157. basically the same behavior with Metalink file with torrent and
  4158. URIs.
  4159. * src/RequestGroup.cc
  4160. * src/DefaultBtContext.cc
  4161. * test/DefaultBtContextTest.cc
  4162. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4163. Rewritten expr
  4164. * src/array_fun.h
  4165. * test/array_funTest.cc
  4166. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4167. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  4168. * src/DefaultBtMessageDispatcher.cc
  4169. * src/a2algo.h
  4170. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4171. Removed ExtendedMessagingAware. Instead of using inheritance,
  4172. added ExtensionMessageRegistry and it is passed to
  4173. DefaultExtensionMessageFactory.
  4174. * src/DefaultBtInteractive.cc
  4175. * src/DefaultBtInteractive.h
  4176. * src/DefaultExtensionMessageFactory.cc
  4177. * src/DefaultExtensionMessageFactory.h
  4178. * src/ExtendedMessagingAware.h: Removed.
  4179. * src/ExtensionMessageFactory.h
  4180. * src/ExtensionMessageRegistry.h: Added.
  4181. * src/Makefile.am
  4182. * src/PeerInteractionCommand.cc
  4183. * test/DefaultExtensionMessageFactoryTest.cc
  4184. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4185. Fixed typo in log messages
  4186. * src/MSEHandshake.cc
  4187. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4188. Fixed the bug that prevents torrent download from finishing. The
  4189. bug doesn't reveal for all torrents. The torrents affected this
  4190. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  4191. of pieces.
  4192. * src/bitfield.h
  4193. * test/bitfieldTest.cc
  4194. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4195. Code cleanup
  4196. * src/PeerListProcessor.h
  4197. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4198. Removed RequestGroupAware
  4199. * src/AbstractCommand.cc
  4200. * src/AbstractCommand.h
  4201. * src/ActivePeerConnectionCommand.cc
  4202. * src/ActivePeerConnectionCommand.h
  4203. * src/DHTGetPeersCommand.cc
  4204. * src/DHTGetPeersCommand.h
  4205. * src/InitiatorMSEHandshakeCommand.cc
  4206. * src/InitiatorMSEHandshakeCommand.h
  4207. * src/Makefile.am
  4208. * src/PeerInitiateConnectionCommand.cc
  4209. * src/PeerInitiateConnectionCommand.h
  4210. * src/PeerInteractionCommand.cc
  4211. * src/PeerInteractionCommand.h
  4212. * src/RealtimeCommand.cc
  4213. * src/RealtimeCommand.h
  4214. * src/RequestGroupAware.cc: Removed
  4215. * src/RequestGroupAware.h: Removed
  4216. * src/SeedCheckCommand.cc
  4217. * src/SeedCheckCommand.h
  4218. * src/SleepCommand.cc
  4219. * src/TrackerWatcherCommand.cc
  4220. * src/TrackerWatcherCommand.h
  4221. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4222. Rewritten PeerListProcessor
  4223. * src/PeerListProcessor.h
  4224. * src/CompactPeerListProcessor.h: Removed
  4225. * src/CompactPeerListProcessor.cc: Removed
  4226. * src/DelegatingPeerListProcessor.cc: Removed.
  4227. * src/DefaultBtAnnounce.cc
  4228. * src/Makefile.am
  4229. * src/UTPexExtensionMessage.cc
  4230. * src/DefaultPeerListProcessor.h: Removed.
  4231. * src/DefaultPeerListProcessor.cc: Removed.
  4232. * src/DelegatingPeerListProcessor.h: Removed.
  4233. * test/Makefile.am
  4234. * test/PeerListProcessorTest.cc
  4235. * test/DefaultPeerListProcessorTest.cc: Removed.
  4236. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4237. Rewritten RequestGroupMan::calculateStat()
  4238. * src/RequestGroupMan.cc
  4239. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4240. Removed unnecessary virtual destructor for Request class.
  4241. * src/Request.cc
  4242. * src/Request.h
  4243. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4244. Avoid dynamic_pointer_cast.
  4245. * src/DHTGetPeersCommand.cc
  4246. * src/DHTGetPeersCommand.h
  4247. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4248. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  4249. BtEvent.
  4250. * src/AbstractBtEventListener.h: Removed.
  4251. * src/AbstractBtMessage.cc
  4252. * src/AbstractBtMessage.h
  4253. * src/BtAbortOutstandingRequestEvent.h
  4254. * src/BtCancelSendingPieceEvent.h
  4255. * src/BtChokedEvent.h: Removed.
  4256. * src/BtChokingEvent.h
  4257. * src/BtEvent.h: Removed
  4258. * src/BtEventListener.h: Removed.
  4259. * src/BtMessage.h
  4260. * src/BtPieceMessage.cc
  4261. * src/BtPieceMessage.h
  4262. * src/BtRequestMessage.cc
  4263. * src/BtRequestMessage.h
  4264. * src/DefaultBtMessageDispatcher.cc
  4265. * src/Makefile.am
  4266. * src/a2functional.h
  4267. * test/BtPieceMessageTest.cc
  4268. * test/BtRequestMessageTest.cc
  4269. * test/DefaultBtMessageDispatcherTest.cc
  4270. * test/MockBtMessage.h
  4271. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4272. Code cleanup
  4273. * src/RequestGroupMan.cc
  4274. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4275. Code cleanup
  4276. * src/DownloadCommand.cc
  4277. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4278. Fixed segmentation fault when GZipDecoder::decode() returns 0
  4279. byte.
  4280. * src/DownloadCommand.cc
  4281. * src/bitfield.h
  4282. * test/bitfieldTest.cc
  4283. Fixed the bug that causes infinite loop if broken web server
  4284. returns chunked response without last "0" chunk-size marker and
  4285. closes connection.
  4286. * src/DownloadCommand.cc
  4287. Instantiate properly configured HttpDownloadCommand for
  4288. non-resumable downlaods.
  4289. * src/HttpResponseCommand.cc
  4290. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4291. Rewritten array operation functions.
  4292. * src/BitfieldMan.cc
  4293. * src/array_fun.h
  4294. * test/array_funTest.cc
  4295. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4296. Removed unused variable 'query'
  4297. * src/Request.cc
  4298. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4299. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  4300. accidentally set to false in r1162.
  4301. * configure.ac
  4302. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4303. Code cleanup
  4304. * src/BNode.cc
  4305. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4306. Increase prefixLength for the bucket which doesn't own local node
  4307. ID when splitting bucket.
  4308. * src/DHTBucket.cc
  4309. * test/DHTBucketTest.cc
  4310. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4311. * Release 1.3.1
  4312. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4313. Bump up version number to 1.3.1
  4314. * configure.ac
  4315. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4316. Removed unused variable checkPoint. Also removed include directive
  4317. for TimeA2.h.
  4318. * src/SeedCheckCommand.h
  4319. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4320. Fixed the bug that upload limit exceeds the value specified in
  4321. --seed-ratio option depending on the timing of the execution of
  4322. SeedCheckCommand.
  4323. * src/SeedCheckCommand.cc
  4324. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4325. Fixed the bug that removed peer's session upload/download length
  4326. are counted twice in _cachedTransferStat before it is
  4327. re-calculated. This affected the calculation of shara ratio,
  4328. resulting aria2 wrongly determines that specified share ratio is
  4329. reached. Also fixed the typo in calculateStatFor function name.
  4330. * src/BtSetup.cc
  4331. * src/DefaultPeerStorage.cc
  4332. * src/ShareRatioSeedCriteria.h
  4333. * test/ShareRatioSeedCriteriaTest.cc
  4334. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4335. * Release 1.3.0
  4336. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4337. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  4338. Nynorsk translations. Thanks to all translators.
  4339. * po/es.po
  4340. * po/ja.po
  4341. * po/nn.po
  4342. * po/ru.po
  4343. * po/uk.po
  4344. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4345. Rewritten isInRange()
  4346. * src/DHTBucket.cc
  4347. * test/DHTBucketTest.cc
  4348. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4349. Fixed typo
  4350. * doc/aria2c.1.txt
  4351. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4352. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  4353. malloc/realloc is not used.
  4354. * src/configure.ac
  4355. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4356. BitfieldMan::getMissingIndexes family functions now takes unsigned
  4357. char* bitfield instead of stl container for efficiency.
  4358. PieceSelector::select now takes this
  4359. bitfield. RarestPieceSelector::select now also performs
  4360. efficiently for this change. bitfield namespace is introduced and
  4361. it has several helper functions to handle basic bitfield
  4362. operations such as test, count set bits, etc.
  4363. * src/BitfieldMan.cc
  4364. * src/BitfieldMan.h
  4365. * src/DefaultBtRequestFactory.cc
  4366. * src/DefaultPieceStorage.cc
  4367. * src/DefaultPieceStorage.h
  4368. * src/LongestSequencePieceSelector.cc
  4369. * src/LongestSequencePieceSelector.h
  4370. * src/Makefile.am
  4371. * src/Piece.cc
  4372. * src/Piece.h
  4373. * src/PieceSelector.h
  4374. * src/RarestPieceSelector.cc
  4375. * src/RarestPieceSelector.h
  4376. * src/Util.cc
  4377. * src/Util.h
  4378. * src/bitfield.h
  4379. * test/BitfieldManTest.cc
  4380. * test/LongestSequencePieceSelectorTest.cc
  4381. * test/Makefile.am
  4382. * test/RarestPieceSelectorTest.cc
  4383. * test/UtilTest.cc
  4384. * test/bitfieldTest.cc
  4385. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4386. Made accepted socket non-block.
  4387. * src/FtpNegotiationCommand.cc
  4388. * src/HttpListenCommand.cc
  4389. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4390. Guarded #ifdef HAVE_POSIX_FALLOCATE
  4391. * src/AbstractSingleDiskAdaptor.cc
  4392. * src/DefaultPieceStorage.cc
  4393. * src/DiskAdaptor.h
  4394. * src/DiskAdaptor.h
  4395. * src/MultiFileAllocationIterator.cc
  4396. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4397. Run
  4398. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  4399. in every 1 sec. The timeout of RequestSlot is 60s by default and
  4400. it doesn't need to be called every time when
  4401. DefaultBtInteractive::doInteractionProcessing() is called.
  4402. * src/DefaultBtInteractive.cc
  4403. * src/DefaultBtInteractive.h
  4404. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4405. Documented 'falloc' in man page.
  4406. * doc/aria2c.1.txt
  4407. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4408. Updated doc
  4409. * src/usage_text.h
  4410. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4411. Added 'falloc' parameter for --file-allocation option. 'falloc'
  4412. allocation mode uses posix_fallocate() system call to allocate
  4413. file on disk. If you are using newer file systems such as ext4
  4414. (with extents support), btrfs or xfs, 'falloc' is your best
  4415. choice. It allocates large(few GiB) files almost instantly. Don't
  4416. use 'falloc' with legacy file systems such as ext3 because it
  4417. takes almost same time as 'prealloc' and it blocks aria2 entirely
  4418. until allocation finishes. 'falloc' may not be available if your
  4419. system doesn't have posix_fallocate() system call.
  4420. * configure.ac
  4421. * src/AbstractDiskWriter.cc
  4422. * src/AbstractDiskWriter.h
  4423. * src/AbstractSingleDiskAdaptor.cc
  4424. * src/BinaryStream.h
  4425. * src/BtCheckIntegrityEntry.cc
  4426. * src/ByteArrayDiskWriter.h
  4427. * src/CheckIntegrityEntry.cc
  4428. * src/CheckIntegrityEntry.h
  4429. * src/DefaultPieceStorage.cc
  4430. * src/DiskAdaptor.cc
  4431. * src/DiskAdaptor.h
  4432. * src/DiskWriter.h
  4433. * src/FallocFileAllocationIterator.cc
  4434. * src/FallocFileAllocationIterator.h
  4435. * src/FileAllocationEntry.cc
  4436. * src/FileAllocationEntry.h
  4437. * src/Makefile.am
  4438. * src/MultiFileAllocationIterator.cc
  4439. * src/MultiFileAllocationIterator.h
  4440. * src/OptionHandlerFactory.cc
  4441. * src/RequestGroup.cc
  4442. * src/StreamCheckIntegrityEntry.cc
  4443. * src/prefs.cc
  4444. * src/prefs.h
  4445. * src/usage_text.h
  4446. * test/FallocFileAllocationIteratorTest.cc
  4447. * test/Makefile.am
  4448. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4449. Removed duplicate enableDirectIO() call.
  4450. * src/MultiFileAllocationIterator.cc
  4451. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4452. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  4453. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  4454. cost of std::rotate().
  4455. * src/RarestPieceSelector.cc
  4456. * src/RarestPieceSelector.h
  4457. * test/RarestPieceSelectorTest.cc
  4458. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4459. Updated usage doc for --bt-tracker-interval option.
  4460. * src/usage_text.h
  4461. * doc/aria2c.1.txt
  4462. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4463. Documented --bt-tracker-interval option in man page.
  4464. * doc/aria2c.1.txt
  4465. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4466. Added an option to specify the interval between tracker requests.
  4467. If non-zero value is specified, aria2 uses it and ignores the
  4468. interval value in the response of tracker. If zero is specified,
  4469. aria2 determines the inteval value based on the tarcker response
  4470. and download progress.
  4471. * src/DefaultBtAnnounce.cc
  4472. * src/DefaultBtAnnounce.h
  4473. * src/OptionHandlerFactory.cc
  4474. * src/RequestGroup.cc
  4475. * src/prefs.cc
  4476. * src/prefs.h
  4477. * src/usage_text.h
  4478. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4479. Added operator+=, operator-=, operator-
  4480. * src/TransferStat.cc
  4481. * src/TransferStat.h
  4482. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4483. Refactored RarestPieceSelector to reduce CPU load, especially for
  4484. addPieceStats.
  4485. * src/RarestPieceSelector.cc
  4486. * src/RarestPieceSelector.h
  4487. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4488. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  4489. getAllMissingBlockIndexes to reduce a call to
  4490. array_function_base::operator[].
  4491. * src/BitfieldMan.cc
  4492. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4493. Cached TransferStat/download speed to avoid to sum them up in each
  4494. call.
  4495. * src/DefaultPeerStorage.cc
  4496. * src/DefaultPeerStorage.h
  4497. * src/SegmentMan.cc
  4498. * src/SegmentMan.h
  4499. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4500. Typedefed cuid_t as int32_t in Command.h
  4501. * src/CUIDCounter.h
  4502. * src/Command.cc
  4503. * src/Command.h
  4504. * src/DownloadEngine.cc
  4505. * src/DownloadEngine.h
  4506. * src/PeerStat.h
  4507. * src/SegmentMan.cc
  4508. * src/SegmentMan.h
  4509. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4510. Reduced the number of calls to PeerStorage::calculateStat() and
  4511. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  4512. transfer rate.
  4513. * src/DefaultBtInteractive.cc
  4514. * src/DefaultBtMessageDispatcher.cc
  4515. * src/DefaultPeerStorage.cc
  4516. * src/DefaultPeerStorage.h
  4517. * src/DownloadCommand.cc
  4518. * src/DownloadEngine.cc
  4519. * src/PeerStorage.h
  4520. * src/SegmentMan.cc
  4521. * src/SegmentMan.h
  4522. * test/MockPeerStorage.h
  4523. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4524. Prepended _dir+"/" after joining path elements in torrent file.
  4525. * src/DefaultBtContext.cc
  4526. * test/DefaultBtContextTest.cc
  4527. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4528. Added missing IndexBtMessageValidator.h
  4529. * src/Makefile.am
  4530. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4531. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  4532. Chinese translations. Thank you for contributing our project.
  4533. * po/id.po
  4534. * po/it.po
  4535. * po/ru.po
  4536. * po/uk.po
  4537. * po/zh_CN.po
  4538. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4539. Updated README
  4540. * README
  4541. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4542. Bump up version number to 1.3.0
  4543. * configure.ac
  4544. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4545. Updated doc
  4546. * src/DefaultBtContext.h
  4547. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4548. Slice/joinPath for name of single torrent.
  4549. * src/DefaultBtContext.cc
  4550. * test/DefaultBtContextTest.cc
  4551. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4552. Updated man page: Documented --dry-run and --index-out
  4553. options. Changed the default value of --uri-selector and
  4554. --http-auth-challenge options. Removed --direct-file-mapping
  4555. option. Added example for --index-out
  4556. * doc/aria2c.1.txt
  4557. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4558. Updated TEXT_DRY_RUN
  4559. * src/usage_text.h
  4560. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4561. Changed the default value of --uri-selector option from 'inorder'
  4562. to 'feedback'
  4563. * src/OptionHandlerFactory.cc
  4564. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4565. Included current URI in exception message.
  4566. * src/AbstractCommand.cc
  4567. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4568. Renamed ServerStatURISelector as FeedbackURISelector.
  4569. * src/FeedbackURISelector.cc
  4570. * src/FeedbackURISelector.h
  4571. * src/Makefile.am
  4572. * src/RequestGroupMan.cc
  4573. * src/ServerStatURISelector.cc
  4574. * src/ServerStatURISelector.h
  4575. * test/FeedbackURISelectorTest.cc
  4576. * test/Makefile.am
  4577. * test/ServerStatURISelectorTest.cc
  4578. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4579. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  4580. all URIs are tested and their timeout is not reached.
  4581. * src/AdaptiveURISelector.cc
  4582. * src/AdaptiveURISelector.h
  4583. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4584. Changed the default value of --http-auth-challenge option to false.
  4585. * src/OptionHandlerFactory.cc
  4586. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4587. Reuse URIs when all unused URIs run out.
  4588. * src/OptionHandlerFactory.cc
  4589. * src/RequestGroup.cc
  4590. * src/prefs.cc
  4591. * src/prefs.h
  4592. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4593. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  4594. and BtRejectMessage are derived from RangeBtMessage class.
  4595. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  4596. derived from IndexBtMessage class. BtChokeMessage,
  4597. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  4598. BtNotInterestedMessage and BtUnchokeMessage are derived from
  4599. ZeroBtMessage class.
  4600. * src/AbstractBtMessage.cc
  4601. * src/AbstractBtMessage.h
  4602. * src/BtAllowedFastMessage.cc
  4603. * src/BtAllowedFastMessage.h
  4604. * src/BtAllowedFastMessageValidator.h: Removed
  4605. * src/BtBitfieldMessage.cc
  4606. * src/BtBitfieldMessage.h
  4607. * src/BtCancelMessage.cc
  4608. * src/BtCancelMessage.h
  4609. * src/BtCancelMessageValidator.h: Removed
  4610. * src/BtChokeMessage.cc
  4611. * src/BtChokeMessage.h
  4612. * src/BtExtendedMessage.cc
  4613. * src/BtExtendedMessage.h
  4614. * src/BtHandshakeMessage.cc
  4615. * src/BtHandshakeMessage.h
  4616. * src/BtHaveAllMessage.cc
  4617. * src/BtHaveAllMessage.h
  4618. * src/BtHaveMessage.cc
  4619. * src/BtHaveMessage.h
  4620. * src/BtHaveMessageValidator.h: Removed
  4621. * src/BtHaveNoneMessage.cc
  4622. * src/BtHaveNoneMessage.h
  4623. * src/BtInterestedMessage.cc
  4624. * src/BtInterestedMessage.h
  4625. * src/BtKeepAliveMessage.cc
  4626. * src/BtKeepAliveMessage.h
  4627. * src/BtNotInterestedMessage.cc
  4628. * src/BtNotInterestedMessage.h
  4629. * src/BtPieceMessage.cc
  4630. * src/BtPieceMessage.h
  4631. * src/BtPortMessage.cc
  4632. * src/BtPortMessage.h
  4633. * src/BtRejectMessage.cc
  4634. * src/BtRejectMessage.h
  4635. * src/BtRejectMessageValidator.h: Removed
  4636. * src/BtRequestMessage.cc
  4637. * src/BtRequestMessage.h
  4638. * src/BtRequestMessageValidator.h: Removed
  4639. * src/BtSuggestPieceMessage.cc
  4640. * src/BtSuggestPieceMessage.h
  4641. * src/BtSuggestPieceMessageValidator.h: Removed
  4642. * src/BtUnchokeMessage.cc
  4643. * src/BtUnchokeMessage.h
  4644. * src/DefaultBtMessageFactory.cc
  4645. * src/IndexBtMessage.cc
  4646. * src/IndexBtMessage.h
  4647. * src/IndexBtMessageValidator.h
  4648. * src/Makefile.am
  4649. * src/PeerMessageUtil.cc
  4650. * src/PeerMessageUtil.h
  4651. * src/RangeBtMessage.cc
  4652. * src/RangeBtMessage.h
  4653. * src/RangeBtMessageValidator.h
  4654. * src/SimpleBtMessage.cc
  4655. * src/SimpleBtMessage.h
  4656. * src/ZeroBtMessage.cc
  4657. * src/ZeroBtMessage.h
  4658. * test/BtRequestMessageTest.cc
  4659. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4660. Reverted usage_text.h to r1093 to avoid to lose translated
  4661. messages.
  4662. * src/usage_text.h
  4663. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4664. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  4665. declared as non-const previously is now const and defined in class
  4666. definition.
  4667. * src/AbstractBtMessage.cc
  4668. * src/AbstractBtMessage.h
  4669. * src/BtAllowedFastMessage.cc
  4670. * src/BtAllowedFastMessage.h
  4671. * src/BtBitfieldMessage.h
  4672. * src/BtCancelMessage.cc
  4673. * src/BtCancelMessage.h
  4674. * src/BtChokeMessage.cc
  4675. * src/BtChokeMessage.h
  4676. * src/BtExtendedMessage.cc
  4677. * src/BtExtendedMessage.h
  4678. * src/BtHandshakeMessage.cc
  4679. * src/BtHandshakeMessage.h
  4680. * src/BtHaveAllMessage.cc
  4681. * src/BtHaveAllMessage.h
  4682. * src/BtHaveMessage.cc
  4683. * src/BtHaveMessage.h
  4684. * src/BtHaveNoneMessage.cc
  4685. * src/BtHaveNoneMessage.h
  4686. * src/BtInterestedMessage.cc
  4687. * src/BtInterestedMessage.h
  4688. * src/BtKeepAliveMessage.cc
  4689. * src/BtKeepAliveMessage.h
  4690. * src/BtMessage.h
  4691. * src/BtNotInterestedMessage.cc
  4692. * src/BtNotInterestedMessage.h
  4693. * src/BtPieceMessage.h
  4694. * src/BtPortMessage.cc
  4695. * src/BtPortMessage.h
  4696. * src/BtRejectMessage.cc
  4697. * src/BtRejectMessage.h
  4698. * src/BtRequestMessage.cc
  4699. * src/BtRequestMessage.h
  4700. * src/BtSuggestPieceMessage.cc
  4701. * src/BtSuggestPieceMessage.h
  4702. * src/BtUnchokeMessage.cc
  4703. * src/BtUnchokeMessage.h
  4704. * src/SimpleBtMessage.cc
  4705. * src/SimpleBtMessage.h
  4706. * test/MockBtMessage.h
  4707. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4708. Use FileEntry::exists()
  4709. * src/MultiDiskAdaptor.cc
  4710. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4711. Added exists()
  4712. * src/FileEntry.cc
  4713. * src/FileEntry.h
  4714. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4715. Added missing prefix dir.
  4716. * src/download_helper.cc
  4717. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4718. Removed --direct-file-mapping option and CopyDiskAdaptor.
  4719. * src/CopyDiskAdaptor.cc: Removed
  4720. * src/CopyDiskAdaptor.h: Removed
  4721. * src/DefaultPieceStorage.cc
  4722. * src/Makefile.am
  4723. * src/OptionHandlerFactory.cc
  4724. * src/prefs.cc
  4725. * src/prefs.h
  4726. * src/usage_text.h
  4727. * test/CopyDiskAdaptorTest.cc: Removed
  4728. * test/Makefile.am
  4729. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4730. Rewritten isSameFileBeingDownloaded()
  4731. * src/RequestGroupMan.cc
  4732. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4733. Removed getName() from DownloadContext. getName() is declared in
  4734. BtContext.
  4735. * src/BtContext.h
  4736. * src/DownloadContext.h
  4737. * src/SingleFileDownloadContext.cc
  4738. * src/SingleFileDownloadContext.h
  4739. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  4740. in AbstractSingleDiskAdaptor.
  4741. * src/AbstractSingleDiskAdaptor.h
  4742. * src/DiskAdaptor.h
  4743. * src/MultiDiskAdaptor.h
  4744. * src/RequestGroup.cc
  4745. Removed setTopDir() and getTopDir() and getTopDirPath() from
  4746. MultiDiskAdaptor.
  4747. * src/DefaultPieceStorage.cc
  4748. * src/MultiDiskAdaptor.cc
  4749. * src/MultiDiskAdaptor.h
  4750. * test/MultiDiskAdaptorTest.cc
  4751. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4752. FileEntry::getPath() contains store(top level) directory to
  4753. simplify path handling operation. In the previous implementation,
  4754. store directory is concatenated to FileEntry::getPath() in
  4755. DownloadContext.
  4756. * src/BtDependency.cc
  4757. * src/BtPostDownloadHandler.cc
  4758. * src/CopyDiskAdaptor.cc
  4759. * src/DefaultBtContext.cc
  4760. * src/DirectDiskAdaptor.cc
  4761. * src/FileEntry.cc
  4762. * src/FileEntry.h
  4763. * src/FtpNegotiationCommand.cc
  4764. * src/HttpResponse.cc
  4765. * src/HttpResponseCommand.cc
  4766. * src/Metalink2RequestGroup.cc
  4767. * src/MultiDiskAdaptor.cc
  4768. * src/MultiDiskAdaptor.h
  4769. * src/MultiFileAllocationIterator.cc
  4770. * src/RequestGroup.cc
  4771. * src/SingleFileDownloadContext.cc
  4772. * src/SingleFileDownloadContext.h
  4773. * src/download_helper.cc
  4774. * test/BtDependencyTest.cc
  4775. * test/CopyDiskAdaptorTest.cc
  4776. * test/DefaultBtContextTest.cc
  4777. * test/DefaultBtProgressInfoFileTest.cc
  4778. * test/DirectDiskAdaptorTest.cc
  4779. * test/DownloadHelperTest.cc
  4780. * test/FileEntryTest.cc
  4781. * test/MultiDiskAdaptorTest.cc
  4782. * test/MultiFileAllocationIteratorTest.cc
  4783. * test/RequestGroupTest.cc
  4784. * test/SingleFileDownloadContextTest.cc
  4785. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4786. Fixed compiler warning
  4787. * src/download_helper.cc
  4788. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4789. Throw exception if same infohash torrent is now downloading.
  4790. * src/RequestGroup.cc
  4791. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4792. Added --dry-run option. In this mode, aria2 just checks whether
  4793. the remote file is available and doesn't download data. This
  4794. option has effect on HTTP/FTP downloads and BitTorrent downloads
  4795. are canceled in this mode.
  4796. * src/FtpNegotiationCommand.cc
  4797. * src/HttpResponseCommand.cc
  4798. * src/HttpResponseCommand.h
  4799. * src/OptionHandlerFactory.cc
  4800. * src/RequestGroup.cc
  4801. * src/RequestGroupMan.cc
  4802. * src/prefs.cc
  4803. * src/prefs.h
  4804. * src/usage_text.h
  4805. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4806. Fixed compiler waring
  4807. * test/UriListParserTest.cc
  4808. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4809. Parse options in -i list using OptionParser.
  4810. * src/UriListParser.cc
  4811. * src/UriListParser.h
  4812. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4813. Don't reset URI in retry to avoid additional round trips because
  4814. of redirects.
  4815. * src/AbstractCommand.cc
  4816. * src/OptionHandlerFactory.cc
  4817. * src/prefs.cc
  4818. * src/prefs.h
  4819. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4820. Declared hide() in OptionHandler.
  4821. * src/NameMatchOptionHandler.h
  4822. * src/OptionHandler.h
  4823. * src/OptionHandlerImpl.h
  4824. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4825. Updated doc
  4826. * src/Peer.h
  4827. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4828. Added log message in setStatusInternal()
  4829. * src/ServerStat.cc
  4830. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4831. Call ServerStat::setError() in AbstractCommand::onAbort() to
  4832. effectively exclude failed server.
  4833. * src/AbstractCommand.cc
  4834. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4835. Added --index-out option to specify each file path for torrent.
  4836. Here index shown in --show-files option is used to specify which
  4837. file path should be altered. For example, to change the file path
  4838. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  4839. option multiple times: --index-out=1=aria2.tar.bz2
  4840. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  4841. available. This option can be specified in -i list.
  4842. * src/DefaultBtContext.cc
  4843. * src/DefaultBtContext.h
  4844. * src/MultiDiskAdaptor.cc
  4845. * src/MultiDiskAdaptor.h
  4846. * src/MultiFileAllocationIterator.cc
  4847. * src/OptionHandlerFactory.cc
  4848. * src/OptionHandlerImpl.h
  4849. * src/Util.cc
  4850. * src/Util.h
  4851. * src/download_helper.cc
  4852. * src/prefs.cc
  4853. * src/prefs.h
  4854. * src/usage_text.h
  4855. * test/DefaultBtContextTest.cc
  4856. * test/MultiDiskAdaptorTest.cc
  4857. * test/MultiFileAllocationIteratorTest.cc
  4858. * test/UtilTest.cc
  4859. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4860. Use Util::pathJoin()
  4861. * src/MetalinkParserController.cc
  4862. * test/test.xml
  4863. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4864. Use Util::pathJoin()
  4865. * src/DefaultBtContext.cc
  4866. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4867. Added Util::pathJoin()
  4868. * src/Util.h
  4869. * test/UtilTest.cc
  4870. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4871. Applied basename function to remove directory element in
  4872. content-disposition value.
  4873. Return empty string if content-disposition value is ".." or ".".
  4874. * src/Util.cc
  4875. * test/UtilTest.cc
  4876. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4877. Added --max-overall-download-limit in man page.
  4878. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  4879. * doc/aria2c.1.txt
  4880. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4881. Added --max-overall-download-limit option. Now --max-upload-limit
  4882. option is not ignored when --max-overall-upload-limit option has
  4883. non-zero value. aria2 checks download(upload) speed in the order:
  4884. first checks overall speed limit and if it is not exceeded, then
  4885. checks speed limit per download. Thus you can specify both
  4886. value. For example, set --max-overall-download-limit=1M and
  4887. --max-download-limit=500K to prevent from one download from eating
  4888. all overall speed limit.
  4889. * src/DefaultBtInteractive.cc
  4890. * src/DefaultBtInteractive.h
  4891. * src/DefaultBtMessageDispatcher.cc
  4892. * src/DefaultBtMessageDispatcher.h
  4893. * src/DownloadCommand.cc
  4894. * src/DownloadCommand.h
  4895. * src/FtpNegotiationCommand.cc
  4896. * src/HttpResponseCommand.cc
  4897. * src/OptionHandlerFactory.cc
  4898. * src/PeerInteractionCommand.cc
  4899. * src/RequestGroup.cc
  4900. * src/RequestGroup.h
  4901. * src/RequestGroupMan.cc
  4902. * src/RequestGroupMan.h
  4903. * src/prefs.cc
  4904. * src/prefs.h
  4905. * src/usage_text.h
  4906. * test/DefaultBtMessageDispatcherTest.cc
  4907. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4908. Documented select-file option in Input File section.
  4909. Documented --http-auth-challenge option.
  4910. * doc/aria2c.1.txt
  4911. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4912. Now select-file can be specified in the uri list(-i list).
  4913. * src/BtContext.cc
  4914. * src/BtContext.h
  4915. * src/RequestGroup.cc
  4916. * src/Sequence.h
  4917. * src/download_helper.cc
  4918. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4919. Made the upper value of --max-concurrent-downloads options unlimited.
  4920. * src/OptionHandlerFactory.cc
  4921. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4922. Fixed the bug that disk writer is not created even if it shares
  4923. same piece with the preceding file if the length of previous file
  4924. is 0.
  4925. * src/MultiDiskAdaptor.cc
  4926. * test/MultiDiskAdaptorTest.cc
  4927. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4928. In BitTorrent, Open files in read-only mode for hash check. After
  4929. that, re-open file in read/write mode only when the download is
  4930. not finished.
  4931. * src/AbstractDiskWriter.cc
  4932. * src/AbstractDiskWriter.h
  4933. * src/AbstractSingleDiskAdaptor.cc
  4934. * src/AbstractSingleDiskAdaptor.h
  4935. * src/BtCheckIntegrityEntry.cc
  4936. * src/DiskAdaptor.h
  4937. * src/DiskWriter.h
  4938. * src/MultiDiskAdaptor.cc
  4939. * src/MultiDiskAdaptor.h
  4940. * src/RequestGroup.cc
  4941. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4942. Added --http-auth-challenge option. If it is set to true(by
  4943. default), aria2 sends HTTP authorization header only when it is
  4944. requested by the server. If false is set, then authorization
  4945. header is always sent to the server. This is useful for servers
  4946. that don't respond 401 code when authentication is required.
  4947. There is an exception: if username and password are embedded in
  4948. URI, authorization header is always sent to the server regardless
  4949. of this option.
  4950. * src/AuthConfigFactory.cc
  4951. * src/HttpSkipResponseCommand.cc
  4952. * src/OptionHandlerFactory.cc
  4953. * src/prefs.cc
  4954. * src/prefs.h
  4955. * src/usage_text.h
  4956. * test/AuthConfigFactoryTest.cc
  4957. * test/HttpRequestTest.cc
  4958. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4959. * Release 1.2.0
  4960. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4961. Updated Spanish, Ukrainian, Russian and Japanese translations.
  4962. Thanks to all translators.
  4963. * po/es.po
  4964. * po/ja.po
  4965. * po/ru.po
  4966. * po/uk.po
  4967. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4968. Call deleteSocketForReadCheck() before socket is closed.
  4969. * src/HttpListenCommand.cc
  4970. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4971. Defined virtual destructor for BObject.
  4972. * src/bencode.h
  4973. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4974. Rewritten BDE to make it efficient.
  4975. * src/bencode.cc
  4976. * src/bencode.h
  4977. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4978. Removed function throw list.
  4979. * src/bencode.cc
  4980. * src/bencode.h
  4981. * test/BencodeTest.cc
  4982. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4983. Enclosed all URLs in double quotes in command-line examples.
  4984. * doc/aria2c.1.txt
  4985. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4986. Updated reference/see also section.
  4987. * README
  4988. * doc/aria2c.1.txt
  4989. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4990. Reorganized man page based on man man-pages.
  4991. * doc/aria2c.1.txt
  4992. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4993. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  4994. because same documents are available in man page. Added
  4995. References section.
  4996. * README
  4997. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  4998. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  4999. PERFORMANCE PROFILE section.
  5000. * doc/aria2c.1.txt
  5001. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5002. Rewritten the section for configuration file.
  5003. * README
  5004. * doc/aria2c.1.txt
  5005. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5006. Fixed the segmentation fault during execution of choking algorithm
  5007. in leecher state because of broken compare operator
  5008. implementation.
  5009. * src/BtLeecherStateChoke.cc
  5010. * src/BtLeecherStateChoke.h
  5011. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5012. Open file in binary mode.
  5013. * src/CookieStorage.cc
  5014. * src/DHTSetup.cc
  5015. * src/DHTUtil.cc
  5016. * src/Netrc.cc
  5017. * src/NsCookieParser.cc
  5018. * src/ProtocolDetector.cc
  5019. * src/RequestGroupMan.cc
  5020. * src/Signature.cc
  5021. * src/bencode.cc
  5022. * src/download_helper.cc
  5023. * src/option_processing.cc
  5024. * test/CookieParserTest.cc
  5025. * test/DefaultBtProgressInfoFileTest.cc
  5026. * test/FileTest.cc
  5027. * test/GZipDecoderTest.cc
  5028. * test/RequestGroupManTest.cc
  5029. * test/SignatureTest.cc
  5030. * test/SingleFileAllocationIteratorTest.cc
  5031. * test/UriListParserTest.cc
  5032. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5033. Removed operator[] because it is ambiguous with built-in []
  5034. operator.
  5035. * src/array_fun.h
  5036. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5037. Fixed compile error
  5038. * src/OptionParser.cc
  5039. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5040. Added missing call to arrayWrapperConst
  5041. * test/array_funTest.cc
  5042. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5043. Use array_wrapper instead of array_ptr.
  5044. * src/DHTRoutingTableDeserializer.cc
  5045. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5046. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  5047. * src/array_fun.h
  5048. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5049. Added array_wrapper template.
  5050. * src/array_fun.h
  5051. * test/array_funTest.cc
  5052. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5053. Use operator T* of array_ptr.
  5054. * src/OptionParser.cc
  5055. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5056. Use localhost instead of 127.0.0.1
  5057. * test/FtpConnectionTest.cc
  5058. * test/MSEHandshakeTest.cc
  5059. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5060. Added operator T*
  5061. * src/array_fun.h
  5062. * test/array_funTest.cc
  5063. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5064. Use dynamically allocated char array to detect memory access
  5065. violation.
  5066. * src/DHTRoutingTableDeserializer.cc
  5067. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5068. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  5069. defined.
  5070. * src/PeerMessageUtil.cc
  5071. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5072. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  5073. * configure.ac
  5074. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5075. Added a check to see struct sockaddr_in has sin_len member.
  5076. * configure.ac
  5077. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5078. Fixed buffer overrun.
  5079. * src/DHTRoutingTableDeserializer.cc
  5080. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5081. Added LL for long long int constant.
  5082. * test/FtpConnectionTest.cc
  5083. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5084. Casted to unsigned int to suppress compiler warning on netbsd.
  5085. * src/BtRuntime.h
  5086. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5087. Assign the value of tv.tv_sec to time_t timesec instead of giving
  5088. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  5089. type time_t.
  5090. * src/SimpleLogger.cc
  5091. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5092. Added test for FtpConnection::receiveSizeResponse().
  5093. * test/FtpConnectionTest.cc
  5094. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5095. Fix epoll error on the old kernel 2.6.8 or ealier.
  5096. * src/EpollEventPoll.cc
  5097. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5098. Use Util::parseLLInt instead of sscanf for portability. The
  5099. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  5100. * src/FtpConnection.cc
  5101. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5102. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  5103. block. It should not filter anything.
  5104. * src/BitfieldMan.cc
  5105. * src/ConsoleStatCalc.cc
  5106. * test/BitfieldManTest.cc
  5107. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5108. Fixed the bug that the boolean options that don't take arguments
  5109. don't work.
  5110. * src/OptionHandlerImpl.h
  5111. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5112. Fixed broken selected file BitTorrent download.
  5113. * src/MultiDiskAdaptor.cc
  5114. * test/MultiDiskAdaptorTest.cc
  5115. * test/MultiFileAllocationIteratorTest.cc
  5116. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5117. Fixed #define guard for EpollEventPoll
  5118. * src/EpollEventPoll.h
  5119. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5120. Wait 2 seconds. 1 second is sometimes not enough.
  5121. * test/TimeSeedCriteriaTest.cc
  5122. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5123. Use localhost instead of 127.0.0.1.
  5124. * test/DHTConnectionImplTest.cc
  5125. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5126. Suppressed compiler warning.
  5127. * src/AdaptiveURISelector.cc
  5128. * src/DefaultPieceStorage.cc
  5129. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5130. Defined virtual destructor.
  5131. * src/MetalinkParserState.h
  5132. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5133. Give NULL for second argument of getaddrinfo instead of "0".
  5134. * src/NameResolver.cc
  5135. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5136. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  5137. included strptime doesn't parse data for this format.
  5138. * src/FtpConnection.cc
  5139. * test/FtpConnectionTest.cc
  5140. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5141. Removed tests giving -1 for unsigned argument.
  5142. * test/SingleFileDownloadContextTest.cc
  5143. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5144. Don't use sha256 in tests because it might not be supported by the
  5145. SSL library.
  5146. * test/MetalinkProcessorTest.cc
  5147. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5148. Removed tests giving -1 for unsigned argument.
  5149. * test/AlphaNumberDecoratorTest
  5150. * test/BitfieldManTest.cc
  5151. * test/DefaultBtContextTest.cc
  5152. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5153. Fixed compile error without libcares when epoll is available.
  5154. * src/EpollEventPoll.cc
  5155. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5156. Included fstream instead of iostream.
  5157. * test/SignatureTest.cc
  5158. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5159. Removed #include <algorithm>
  5160. * test/RequestGroupTest.cc
  5161. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5162. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  5163. using RequestGroup::extractURIResult().
  5164. * src/AdaptiveURISelector.cc
  5165. * src/RequestGroup.cc
  5166. * src/RequestGroup.h
  5167. * test/RequestGroupTest.cc
  5168. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5169. Added tests for array_ptr.
  5170. * test/array_funTest.cc
  5171. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5172. Don't send ip parameter to a tracker if ip parameter is empty
  5173. string.
  5174. * src/DefaultBtAnnounce.cc
  5175. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5176. Adjusted line feed.
  5177. * src/version_usage.cc
  5178. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5179. Print tags, possible values when OptionHandlerException is caught.
  5180. * src/option_processing.cc
  5181. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5182. Changed the message for FatalException.
  5183. * src/OptionParser.cc
  5184. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5185. Documented --bt-external-ip option in man page. Updated man pages
  5186. for --proxy-method option.
  5187. * doc/aria2c.1.txt
  5188. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5189. Use GET method for FTP via HTTP proxy.
  5190. * src/FtpInitiateConnectionCommand.cc
  5191. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5192. Changed the default value of --proxy-method option from 'tunnel'
  5193. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  5194. option.
  5195. * src/AbstractCommand.cc
  5196. * src/AbstractCommand.h
  5197. * src/FtpInitiateConnectionCommand.cc
  5198. * src/HttpDownloadCommand.cc
  5199. * src/HttpInitiateConnectionCommand.cc
  5200. * src/HttpInitiateConnectionCommand.h
  5201. * src/OptionHandlerFactory.cc
  5202. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5203. Initialized _logger
  5204. * src/SelectEventPoll.cc
  5205. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5206. Defined a copy constructor for the same type.
  5207. * src/SharedHandle.h
  5208. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5209. Added OptionParser::parseArg() which internally uses getopt_long
  5210. to parse command-line options. All command-line options are now
  5211. configured by OptionHandler. No manual editing of struct option*
  5212. is required any more.
  5213. * src/NameMatchOptionHandler.h
  5214. * src/OptionHandler.h
  5215. * src/OptionHandlerFactory.cc
  5216. * src/OptionHandlerImpl.h
  5217. * src/OptionParser.cc
  5218. * src/OptionParser.h
  5219. * src/array_fun.h
  5220. * src/main.cc
  5221. * src/option_processing.cc
  5222. * test/OptionHandlerTest.cc
  5223. * test/OptionParserTest.cc
  5224. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5225. Fixed configure error with --disable-epoll
  5226. * configure.ac
  5227. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5228. Fixed compile error when HAVE_EPOLL is not defined.
  5229. Fixed linker error on bigendian systems.
  5230. * src/SocketCore.cc
  5231. * src/SocketCore.h
  5232. * test/DefaultBtProgressInfoFileTest.cc
  5233. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5234. Added --bt-external-ip option. You can specify the external IP
  5235. address to report to a BitTorrent tracker. Although this function
  5236. is named 'external', it can accept any kind of IP addresses.
  5237. * src/DefaultBtAnnounce.cc
  5238. * src/OptionHandlerFactory.cc
  5239. * src/option_processing.cc
  5240. * src/prefs.cc
  5241. * src/prefs.h
  5242. * src/usage_text.h
  5243. * test/DefaultBtAnnounceTest.cc
  5244. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5245. Extracted the algorithm to find the longest incremental sequence
  5246. as max_sequence template.
  5247. * src/LongestSequencePieceSelector.cc
  5248. * src/a2algo.h
  5249. * test/Makefile.am
  5250. * test/a2algoTest.cc
  5251. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5252. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  5253. * src/usage_text.h
  5254. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5255. Updated doc for --uri-selector, --http-server-listen-port and
  5256. --enable-http-server option. Documented --event-poll option.
  5257. * doc/aria2c.1.txt
  5258. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5259. Updated doc for --enable-http-server.
  5260. * src/usage_text.h
  5261. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5262. Documented --http-server-listen-port and --enable-http-server in
  5263. man page.
  5264. * doc/aria2c.1.txt
  5265. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5266. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  5267. translations. Thanks to all translators.
  5268. * po/es.po
  5269. * po/id.po
  5270. * po/it.po
  5271. * po/ru.po
  5272. * po/uk.po
  5273. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5274. Bump up version number to 1.2.0
  5275. * configure.ac
  5276. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5277. BtContext::getAnnounceTiers() now returns const reference.
  5278. * src/BtContext.h
  5279. * src/DefaultBtContext.cc
  5280. * src/DefaultBtContext.h
  5281. * test/MockBtContext.h
  5282. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5283. Change the number of retries for tracker request based on the
  5284. number of available tracker in a torrent file.
  5285. * src/TrackerWatcherCommand.cc
  5286. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5287. Added _maxTries property to RequestGroup and assign the option
  5288. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  5289. RequestGroup::getMaxTries() instead of
  5290. Option::getAsInt(PREF_MAX_TRIES).
  5291. * src/AbstractCommand.cc
  5292. * src/RequestGroup.cc
  5293. * src/RequestGroup.h
  5294. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5295. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  5296. Mandriva. I modified the patch: make RequestGroup have the
  5297. timeout value and AdaptiveURISelector directly modifies that
  5298. value.
  5299. * src/AbstractCommand.cc
  5300. * src/AdaptiveURISelector.cc
  5301. * src/AdaptiveURISelector.h
  5302. * src/FtpNegotiationCommand.cc
  5303. * src/RequestGroup.cc
  5304. * src/RequestGroup.h
  5305. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5306. Fixed compiler warning
  5307. * test/IteratableChecksumValidatorTest.cc
  5308. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5309. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  5310. integrated downloads. This PieceSelector subclass finds the
  5311. longest continuous sequence in the available missing pieces and
  5312. selects the last index of such sequence. This makes HTTP/FTP
  5313. connections less interrupted by the pieces obtained by BitTorrent
  5314. peers.
  5315. * src/DefaultPieceStorage.cc
  5316. * src/DefaultPieceStorage.h
  5317. * src/LongestSequencePieceSelector.cc
  5318. * src/LongestSequencePieceSelector.h
  5319. * src/Makefile.am
  5320. * src/PieceSelector.h
  5321. * src/RarestPieceSelector.h
  5322. * src/RequestGroup.cc
  5323. * test/BtDependencyTest.cc
  5324. * test/DefaultPieceStorageTest.cc
  5325. * test/IteratableChecksumValidatorTest.cc
  5326. * test/LongestSequencePieceSelectorTest.cc
  5327. * test/Makefile.am
  5328. * test/SegmentManTest.cc
  5329. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5330. Fixed the bug that the average speed is wrong in
  5331. http/ftp/BitTorrent integrated download. Only the download bytes
  5332. in BitTorrent were considered.
  5333. * src/RequestGroup.cc
  5334. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5335. Choose port for BitTorrent/DHT randomly from the specified range.
  5336. * src/DHTConnectionImpl.cc
  5337. * src/PeerListenCommand.cc
  5338. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5339. Send HTTP Authorization header only if it is requested by the
  5340. server(response 401). There are some exceptions. The authorization
  5341. header for proxy is always sent if it is available without request
  5342. by the server. If username/password is specified in the URI, it
  5343. is immediately sent to the server without request by the server.
  5344. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  5345. SharedHandle<AuthConfig>().
  5346. NetrcAuthResolver::resolveAuthConfig() returns
  5347. SharedHandle<AuthConfig>() if no AuthConfig is available.
  5348. * src/AbstractAuthResolver.cc
  5349. * src/AbstractProxyRequestCommand.cc
  5350. * src/AuthConfigFactory.cc
  5351. * src/AuthConfigFactory.h
  5352. * src/HttpConnection.cc
  5353. * src/HttpRequest.cc
  5354. * src/HttpRequest.h
  5355. * src/HttpResponse.cc
  5356. * src/HttpResponseCommand.cc
  5357. * src/HttpSkipResponseCommand.cc
  5358. * test/AuthConfigFactoryTest.cc
  5359. * test/HttpRequestTest.cc
  5360. * test/HttpResponseTest.cc
  5361. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5362. Remove leading "--" from help keyword and a substring after "="
  5363. from help keyword, so that one can query options by '-h--max-' or
  5364. '-hmax-peers=10'.
  5365. * src/option_processing.cc
  5366. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5367. Rewritten PStringVisitor and its implementation.
  5368. * src/PStringBuildVisitor.cc
  5369. * src/PStringBuildVisitor.h
  5370. * src/PStringDatum.h
  5371. * src/PStringNumLoop.h
  5372. * src/PStringSegment.cc
  5373. * src/PStringSegment.h
  5374. * src/PStringSelect.h
  5375. * src/PStringVisitor.h
  5376. * src/download_helper.cc
  5377. * test/PStringBuildVisitorTest.cc
  5378. * test/ParameterizedStringParserTest.cc
  5379. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5380. Persist connection between the built-in HTTP server and a client
  5381. if a client supports keep-alive. Fixed the bug that aria2 exits
  5382. when the HTTP server receives EOF from a client.
  5383. * src/HttpServer.cc
  5384. * src/HttpServer.h
  5385. * src/HttpServerCommand.cc
  5386. * src/HttpServerCommand.h
  5387. * src/HttpServerResponseCommand.cc
  5388. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5389. Added experimental built-in HTTP server. Currently, when a client
  5390. accesses to the server, it responds with the current download
  5391. progress. By default, it is disabled. To enable the server, give
  5392. --enable-http-server option. To change the default port number
  5393. for the server to listen to, use --http-server-listen-port option.
  5394. The response HTML is very simple and refreshes it self each 1
  5395. second. Because of this refresh, you see flicker in normal web
  5396. browser such as Firefox. I recommend to use console-based browser
  5397. such as elinks, w3m. To connect to the server, run 'elinks
  5398. http://localhost:6800/' while running aria2. Please replace port
  5399. number '6800'(which is default) with your preference.
  5400. * src/DownloadEngineFactory.cc
  5401. * src/HttpHeader.cc
  5402. * src/HttpHeader.h
  5403. * src/HttpHeaderProcessor.cc
  5404. * src/HttpHeaderProcessor.h
  5405. * src/HttpListenCommand.cc
  5406. * src/HttpListenCommand.h
  5407. * src/HttpServer.cc
  5408. * src/HttpServer.h
  5409. * src/HttpServerCommand.cc
  5410. * src/HttpServerCommand.h
  5411. * src/HttpServerResponseCommand.cc
  5412. * src/HttpServerResponseCommand.h
  5413. * src/Makefile.am
  5414. * src/OptionHandlerFactory.cc
  5415. * src/Util.cc
  5416. * src/Util.h
  5417. * src/help_tags.h
  5418. * src/option_processing.cc
  5419. * src/prefs.cc
  5420. * src/prefs.h
  5421. * src/usage_text.h
  5422. * test/HttpHeaderProcessorTest.cc
  5423. * test/UtilTest.cc
  5424. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5425. Removed.
  5426. * src/CheckIntegrityMan.cc
  5427. * src/FileAllocationMan.cc
  5428. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5429. Made (piece) hash check sequential for each RequestGroup because
  5430. simultaneous hash check is slower than sequential execution.
  5431. * src/CheckIntegrityCommand.cc
  5432. * src/CheckIntegrityDispatcherCommand.cc
  5433. * src/CheckIntegrityDispatcherCommand.h
  5434. * src/CheckIntegrityMan.h
  5435. * src/ConsoleStatCalc.cc
  5436. * src/DownloadCommand.cc
  5437. * src/DownloadEngine.cc
  5438. * src/DownloadEngine.h
  5439. * src/DownloadEngineFactory.cc
  5440. * src/Makefile.am
  5441. * src/Makefile.in
  5442. * src/RequestGroup.cc
  5443. * src/StatCalc.h
  5444. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5445. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  5446. SequentialDispatcherCommand.
  5447. * src/FileAllocationDispatcherCommand.cc
  5448. * src/SequentialDispatcherCommand.h
  5449. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5450. Rewritten FileAllocationDispatcherCommand using brand new
  5451. SequentialDispatcherCommand.
  5452. * src/DownloadEngineFactory.cc
  5453. * src/FileAllocationCommand.cc
  5454. * src/FileAllocationDispatcherCommand.cc
  5455. * src/FileAllocationDispatcherCommand.h
  5456. * src/Makefile.am
  5457. * src/SequentialDispatcherCommand.h
  5458. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5459. Replaced FileAllocationMan with
  5460. SequentialPicker<FileAllocationEntry>.
  5461. * src/BtCheckIntegrityEntry.cc
  5462. * src/ConsoleStatCalc.cc
  5463. * src/DownloadEngine.cc
  5464. * src/DownloadEngine.h
  5465. * src/DownloadEngineFactory.cc
  5466. * src/FileAllocationCommand.cc
  5467. * src/FileAllocationDispatcherCommand.cc
  5468. * src/FileAllocationMan.h
  5469. * src/Makefile.am
  5470. * src/SequentialPicker.h
  5471. * src/StatCalc.h
  5472. * src/StreamCheckIntegrityEntry.cc
  5473. * test/Makefile.am
  5474. * test/SequentialPickerTest.cc
  5475. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5476. Added doc for adaptive URI selector.
  5477. * doc/aria2c.1.txt
  5478. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5479. Added doc for adaptive URI selector.
  5480. * src/usage_text.h
  5481. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5482. Added doc for --bt-max-peers option.
  5483. * doc/aria2c.1.txt
  5484. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5485. Added doc for --bt-hash-check-seed option.
  5486. * doc/aria2c.1.txt
  5487. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5488. Documented exit codes.
  5489. * doc/aria2c.1.txt
  5490. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5491. Added --bt-max-peers option to specify the maximum number of peers
  5492. per torrent. 0 means unlimited number of peers.
  5493. * src/ActivePeerConnectionCommand.cc
  5494. * src/BtRuntime.h
  5495. * src/DefaultPeerStorage.cc
  5496. * src/DefaultPeerStorage.h
  5497. * src/OptionHandlerFactory.cc
  5498. * src/RequestGroup.cc
  5499. * src/option_processing.cc
  5500. * src/prefs.cc
  5501. * src/prefs.h
  5502. * src/usage_text.h
  5503. * test/DefaultPeerStorageTest.cc
  5504. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5505. Added --bt-hash-check-seed option. If true is given to this
  5506. option, after hash check using --check-integrity option and file
  5507. is complete, continue to seed file. If you want to check file and
  5508. download it only when it is damaged or incomplete, set this option
  5509. to false. This option has effect only on BitTorrent download.
  5510. The default value is true(This is the same behavior with the
  5511. previous release).
  5512. * src/BtCheckIntegrityEntry.cc
  5513. * src/OptionHandlerFactory.cc
  5514. * src/option_processing.cc
  5515. * src/prefs.cc
  5516. * src/prefs.h
  5517. * src/usage_text.h
  5518. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5519. Updated copyright year.
  5520. * src/version_usage.cc
  5521. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5522. Rewritten the usage text for --bt-request-peer-speed-limit option.
  5523. * doc/aria2c.1.txt
  5524. * src/usage_text.h
  5525. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5526. Made the max value of split option unlimited.
  5527. * doc/aria2c.1.txt
  5528. * src/OptionHandlerFactory.cc
  5529. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5530. Fixed compile warning/error.
  5531. * src/DownloadResult.h
  5532. * src/HttpDownloadCommand.cc
  5533. * src/ServerStat.cc
  5534. * test/RequestGroupTest.cc
  5535. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5536. Added --event-poll option to select the method for polling events.
  5537. The available methods are "select" and "epoll". "epoll" is
  5538. available on Linux only. The earlier release has the compile
  5539. option to choose from these methods.
  5540. * configure.ac
  5541. * src/RequestGroupMan.cc
  5542. * src/OptionHandlerFactory.cc
  5543. * src/EpollEventPoll.h
  5544. * src/StreamFileAllocationEntry.cc
  5545. * src/a2io.h
  5546. * src/SelectEventPoll.h
  5547. * src/option_processing.cc
  5548. * src/prefs.h
  5549. * src/EpollEventPoll.cc
  5550. * src/EventPoll.h
  5551. * src/SocketCore.h
  5552. * src/Makefile.am
  5553. * src/main.cc
  5554. * src/DownloadEngine.h
  5555. * src/SelectEventPoll.cc
  5556. * src/DownloadEngine.cc
  5557. * src/SocketCore.cc
  5558. * src/DownloadEngineFactory.cc
  5559. * src/Makefile.in
  5560. * src/prefs.cc
  5561. * src/usage_text.h
  5562. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5563. Included RecoverableException.h from main.cc
  5564. * src/main.cc
  5565. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5566. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  5567. now returns last error encountered in the HTTP/FTP downloads as a
  5568. exit status value. If all downloads finished successfully, aria2
  5569. returns 0. The error code is defined in src/DownloadResult.h.
  5570. The error occurred in the download currently in progress is not
  5571. reported as a last error. If no error has encountered but there
  5572. are in progress or waiting downloads, aria2 returns 7.
  5573. * src/AbstractCommand.cc
  5574. * src/DlAbortEx.h
  5575. * src/DlRetryEx.h
  5576. * src/DownloadCommand.cc
  5577. * src/DownloadFailureException.h
  5578. * src/DownloadResult.h
  5579. * src/FtpNegotiationCommand.cc
  5580. * src/HttpSkipResponseCommand.cc
  5581. * src/Makefile.am
  5582. * src/MultiUrlRequestInfo.cc
  5583. * src/MultiUrlRequestInfo.h
  5584. * src/RecoverableException.h
  5585. * src/RequestGroup.cc
  5586. * src/RequestGroup.h
  5587. * src/RequestGroupMan.cc
  5588. * src/RequestGroupMan.h
  5589. * src/URIResult.cc
  5590. * src/URIResult.h
  5591. * src/main.cc
  5592. * src/option_processing.cc
  5593. * test/RequestGroupTest.cc
  5594. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5595. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  5596. patch adds AdaptiveURISelector, which selects one of the bests
  5597. mirrors for first and reserved connections. For supplementary
  5598. ones, it returns mirrors which has not been tested yet, and if
  5599. each of them already tested, returns mirrors which has to be
  5600. tested again. Otherwise, it doesn't return anymore mirrors.
  5601. * src/AdaptiveURISelector.cc
  5602. * src/AdaptiveURISelector.h
  5603. * src/FtpNegotiationCommand.cc
  5604. * src/HttpResponseCommand.cc
  5605. * src/Makefile.am
  5606. * src/Makefile.in
  5607. * src/OptionHandlerFactory.cc
  5608. * src/RequestGroup.cc
  5609. * src/RequestGroup.h
  5610. * src/RequestGroupMan.cc
  5611. * src/ServerStat.cc
  5612. * src/ServerStat.h
  5613. * src/ServerStatMan.cc
  5614. * src/SpeedCalc.cc
  5615. * src/URISelector.h
  5616. * src/prefs.cc
  5617. * src/prefs.h
  5618. * test/RequestGroupManTest.cc
  5619. * test/ServerStatManTest.cc
  5620. * test/ServerStatTest.cc
  5621. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5622. Fixed unit test error.
  5623. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  5624. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5625. * Release 1.1.2
  5626. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5627. Updated Russian translation. Thanks to the translators.
  5628. * po/ru.po
  5629. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5630. Added the description of --use-head option to man page.
  5631. * doc/aria2c.1.txt
  5632. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5633. Bump up version number to 1.1.2
  5634. * configure.ac
  5635. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5636. Added --use-head option to toggle whether HEAD method should be
  5637. used in the first HTTP request. By default aria2 uses HEAD method
  5638. as the first request. When the server doesn't recognize HEAD, then
  5639. give aria2 --use-head=false to force aria2 to use GET method
  5640. instead.
  5641. * src/OptionHandlerFactory.cc
  5642. * src/RequestGroupMan.cc
  5643. * src/option_processing.cc
  5644. * src/prefs.cc
  5645. * src/prefs.h
  5646. * src/usage_text.h
  5647. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5648. Fixed the bug that BitTorrent download doesn't finish when REJECT
  5649. message is received before CHOKE message. The old implementation
  5650. doen't clear the use-bit of the piece when recieved REJECT
  5651. message.
  5652. * src/DefaultBtMessageDispatcher.cc
  5653. * test/DefaultBtMessageDispatcherTest.cc
  5654. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5655. * Release 1.1.1
  5656. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5657. Bump up version number to 1.1.1.
  5658. * configure.ac
  5659. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5660. Fixed the bug that --summary-interval=0 doesn't work. The summary
  5661. is printed repeatedly.
  5662. * src/ConsoleStatCalc.cc
  5663. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5664. * Release 1.1.0
  5665. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5666. Added ifdef clause for conditional compilation.
  5667. * src/main.cc
  5668. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5669. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  5670. translations. Thanks to all translators.
  5671. * po/ja.po
  5672. * po/ru.po
  5673. * po/uk.po
  5674. * po/zh_CN.po
  5675. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5676. Added the preceding ">>> " before the message "Printing the
  5677. contents of file..." to make the output more readable.
  5678. * src/main.cc
  5679. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5680. Added try-catch block in the loop in showFiles() to continue the
  5681. operation even if the exception occurred in one file.
  5682. * src/main.cc (showFiles)
  5683. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5684. Made messages in showFiles() translatable.
  5685. * po/aria2.pot
  5686. * src/main.cc
  5687. * src/message.h
  5688. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5689. Print the contents of Torrent/Metalink files are printed without
  5690. -T/-M options.
  5691. * src/main.cc
  5692. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5693. Escaped '--' with '\--'
  5694. * README
  5695. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5696. Updated "How to build" section in README. Mentioned about
  5697. --with-ca-bundle compile option.
  5698. * README
  5699. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5700. Bump up version number to 1.1.0.
  5701. * configure.ac
  5702. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5703. Added a note for --dht-listen-port option.
  5704. * doc/aria2c.1.txt
  5705. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5706. Update doc for --realtime-chunk-checksum option.
  5707. * doc/aria2c.1.txt
  5708. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5709. Update doc for --realtime-chunk-checksum option.
  5710. * src/usage_text.h
  5711. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5712. Updated French, Japanese, Russian and Ukrainian translations.
  5713. Thanks to all translators.
  5714. * po/fr.po
  5715. * po/ja.po
  5716. * po/ru.po
  5717. * po/uk.po
  5718. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5719. Renamed aria2c.pot to aria2.pot
  5720. * po/aria2.pot
  5721. * po/aria2c.pot: Removed.
  5722. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5723. Removed MetaEntry.h
  5724. * src/Makefile.am
  5725. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5726. Rename file by appending digits if a local file exists and its
  5727. file size is larger than that of remote file with --continue
  5728. option. The old implementation just throws exception in such case.
  5729. * src/RequestGroup.cc
  5730. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5731. Fixed the bug that download progress summary is not printed in the
  5732. interval specified by the option.
  5733. * src/ConsoleStatCalc.cc
  5734. * src/ConsoleStatCalc.h
  5735. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5736. Fixed compiler warning
  5737. * src/Cookie.cc
  5738. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5739. Fixed the cookie implementation based on RFC2965.
  5740. Now if a value in domain field is not started with dot, then
  5741. prepend dot. That means a cookie with domain=sf.net is sent to
  5742. wiki.sf.net.
  5743. * src/Cookie.cc
  5744. * test/CookieParserTest.cc
  5745. * test/CookieStorageTest.cc
  5746. * test/CookieTest.cc
  5747. * test/NsCookieParserTest.cc
  5748. * test/Sqlite3MozCookieParserTest.cc
  5749. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5750. Fixed the bug that causes corrupted downloads if HTTP pipelining
  5751. is enabled and the server doesn't support keep-alive.
  5752. * src/AbstractCommand.cc
  5753. * src/DownloadCommand.cc
  5754. * src/HttpDownloadCommand.cc
  5755. * src/HttpDownloadCommand.h
  5756. * src/HttpResponseCommand.cc
  5757. * src/Request.cc
  5758. * src/Request.h
  5759. * test/RequestTest.cc
  5760. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5761. Removed Dictionary/List/Data and its related classes.
  5762. * src/BencodeVisitor.cc: Removed.
  5763. * src/BencodeVisitor.h: Removed.
  5764. * src/Data.cc: Removed.
  5765. * src/Data.h: Removed.
  5766. * src/Dictionary.cc: Removed.
  5767. * src/Dictionary.h: Removed.
  5768. * src/List.cc: Removed.
  5769. * src/List.h: Removed.
  5770. * src/Makefile.am
  5771. * src/MetaEntry.h: Removed.
  5772. * src/MetaEntryVisitor.h: Removed.
  5773. * src/MetaFileUtil.cc: Removed.
  5774. * src/MetaFileUtil.h: Removed.
  5775. * test/BencodeVisitorTest.cc: Removed.
  5776. * test/DataTest.cc: Removed.
  5777. * test/DictionaryTest.cc: Removed.
  5778. * test/ListTest.cc: Removed.
  5779. * test/Makefile.am
  5780. * test/MetaFileUtilTest.cc: Removed.
  5781. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5782. Removed include of MetaEntry.h
  5783. * test/DHTMessageTrackerEntryTest.cc
  5784. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5785. Use BDE instead of Dictionary/List/Data.
  5786. * src/AnnounceList.cc
  5787. * src/AnnounceList.h
  5788. * test/AnnounceListTest.cc
  5789. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5790. Use BDE instead of Dictionary/List/Data.
  5791. * src/DHTAbstractMessage.cc
  5792. * src/DHTAbstractMessage.h
  5793. * src/DHTAnnouncePeerMessage.cc
  5794. * src/DHTAnnouncePeerMessage.h
  5795. * src/DHTAnnouncePeerReplyMessage.cc
  5796. * src/DHTAnnouncePeerReplyMessage.h
  5797. * src/DHTFindNodeMessage.cc
  5798. * src/DHTFindNodeMessage.h
  5799. * src/DHTFindNodeReplyMessage.cc
  5800. * src/DHTFindNodeReplyMessage.h
  5801. * src/DHTGetPeersMessage.cc
  5802. * src/DHTGetPeersMessage.h
  5803. * src/DHTGetPeersReplyMessage.cc
  5804. * src/DHTGetPeersReplyMessage.h
  5805. * src/DHTMessageFactory.h
  5806. * src/DHTMessageFactoryImpl.cc
  5807. * src/DHTMessageFactoryImpl.h
  5808. * src/DHTMessageReceiver.cc
  5809. * src/DHTMessageTracker.cc
  5810. * src/DHTMessageTracker.h
  5811. * src/DHTPingMessage.cc
  5812. * src/DHTPingMessage.h
  5813. * src/DHTPingReplyMessage.cc
  5814. * src/DHTPingReplyMessage.h
  5815. * src/DHTQueryMessage.cc
  5816. * src/DHTQueryMessage.h
  5817. * src/DHTResponseMessage.cc
  5818. * src/DHTResponseMessage.h
  5819. * test/DHTAnnouncePeerMessageTest.cc
  5820. * test/DHTAnnouncePeerReplyMessageTest.cc
  5821. * test/DHTFindNodeMessageTest.cc
  5822. * test/DHTFindNodeReplyMessageTest.cc
  5823. * test/DHTGetPeersMessageTest.cc
  5824. * test/DHTGetPeersReplyMessageTest.cc
  5825. * test/DHTMessageFactoryImplTest.cc
  5826. * test/DHTMessageTrackerTest.cc
  5827. * test/DHTPingMessageTest.cc
  5828. * test/DHTPingReplyMessageTest.cc
  5829. * test/MockDHTMessageFactory.h
  5830. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5831. Added tests the case where length < 0 is specified.
  5832. * test/BencodeTest.cc
  5833. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5834. Fixed memory leak in decoderawstring()
  5835. * src/bencode.cc
  5836. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5837. Added missing #ifdef guard. Added uc() function for String and
  5838. removeKey() for Dict.
  5839. * src/bencode.cc
  5840. * src/bencode.h
  5841. * test/BencodeTest.cc
  5842. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5843. Use BDE instead of Dictionary/List/Data.
  5844. * src/HandshakeExtensionMessage.cc
  5845. * src/HandshakeExtensionMessage.h
  5846. * test/HandshakeExtensionMessageTest.cc
  5847. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5848. Added --max-overall-upload-limit option. This option limits the
  5849. overall upload speed. Stated in help message that the existing
  5850. --max-upload-limit option limits the upload speed per each
  5851. torrent. Man page is also updated.
  5852. * doc/aria2c.1.txt
  5853. * src/DefaultBtMessageDispatcher.cc
  5854. * src/DefaultBtMessageDispatcher.h
  5855. * src/OptionHandlerFactory.cc
  5856. * src/PeerInteractionCommand.cc
  5857. * src/option_processing.cc
  5858. * src/prefs.cc
  5859. * src/prefs.h
  5860. * src/usage_text.h
  5861. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5862. Use BDE instead of Dictionary/List/Data classes.
  5863. * src/CompactPeerListProcessor.cc
  5864. * src/CompactPeerListProcessor.h
  5865. * src/DefaultBtAnnounce.cc
  5866. * src/DefaultBtContext.cc
  5867. * src/DefaultBtContext.h
  5868. * src/DefaultPeerListProcessor.cc
  5869. * src/DefaultPeerListProcessor.h
  5870. * src/DelegatingPeerListProcessor.cc
  5871. * src/DelegatingPeerListProcessor.h
  5872. * src/PeerListProcessor.h
  5873. * src/UTPexExtensionMessage.cc
  5874. * src/Util.h
  5875. * src/message.h
  5876. * test/DefaultBtContextTest.cc
  5877. * test/DefaultPeerListProcessorTest.cc
  5878. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5879. Added bencode helper functions and BDE class.
  5880. They will replace MetaFileUtil and Dictionary/List/Data classes.
  5881. * src/Makefile.am
  5882. * src/bencode.cc
  5883. * src/bencode.h
  5884. * test/BencodeTest.cc
  5885. * test/Makefile.am
  5886. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5887. Fixed the bug that bad URI is sent to the tracker when the announe
  5888. URI in torrent file includes query.
  5889. * src/DefaultBtAnnounce.cc
  5890. * test/DefaultBtAnnounceTest.cc
  5891. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5892. Added Option::blank().
  5893. Use !Option::blank(name) instead of Option::defined(name) for
  5894. the options that take filename.
  5895. * src/MultiUrlRequestInfo.cc
  5896. * src/Option.cc
  5897. * src/Option.h
  5898. * src/main.cc
  5899. * src/option_processing.cc
  5900. * test/OptionTest.cc
  5901. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5902. Documented the default value of --check-certificate option in man
  5903. page.
  5904. * doc/aria2c.1.txt
  5905. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5906. Enabled --check-certificate by default. Added compile
  5907. time(configure) option --with-ca-bundle to specify CA bundle.
  5908. Warn if --check-certificate=true and --ca-certificate is not
  5909. specified or loading CA certificate is failed.
  5910. * configure.ac
  5911. * src/MultiUrlRequestInfo.cc
  5912. * src/OptionHandlerFactory.cc
  5913. * src/message.h
  5914. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5915. Mentioned https tag in help option.
  5916. * doc/aria2c.1.txt
  5917. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5918. Added `https' tag to help option category. Added https tag to
  5919. --ca-certificate, --certificate, --check-certificate and
  5920. --private-key option.
  5921. * src/OptionHandlerFactory.cc
  5922. * src/help_tags.h
  5923. * src/option_processing.cc
  5924. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5925. Changed the package name from `aria2c' to `aria2' in order to fix
  5926. the packaging issue in Debian and Fedora. The name of the
  5927. executable is not changed.
  5928. * configure.ac
  5929. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5930. Fixed typos
  5931. * src/usage_text.h
  5932. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5933. Fixed typos and updated doc.
  5934. * README
  5935. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5936. Fixed typos
  5937. * doc/aria2c.1.txt
  5938. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5939. Fixed typos
  5940. * src/usage_text.h
  5941. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5942. Print a message when no files to download.
  5943. * src/download_helper.cc
  5944. * src/main.cc
  5945. * src/message.h
  5946. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5947. RFC3986 complied Percent-Encoding(urlencode).
  5948. Use uppercase hexadecimal digits for encoded text instead of lowercase
  5949. ones.
  5950. * src/Request.cc
  5951. * src/Util.cc
  5952. * src/Util.h
  5953. * test/BtHandshakeMessageTest.cc
  5954. * test/DefaultBtAnnounceTest.cc
  5955. * test/DefaultBtContextTest.cc
  5956. * test/RequestTest.cc
  5957. * test/UtilTest.cc
  5958. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5959. Fixed the bug that prevents aria2 from downloading 0-length files
  5960. via HTTP/FTP.
  5961. * src/DefaultBtContext.cc
  5962. * src/DefaultBtContext.h
  5963. * src/DownloadContext.h
  5964. * src/FtpNegotiationCommand.cc
  5965. * src/HttpResponseCommand.cc
  5966. * src/HttpResponseCommand.h
  5967. * src/RequestGroup.cc
  5968. * src/SingleFileDownloadContext.cc
  5969. * src/SingleFileDownloadContext.h
  5970. * test/BtPostDownloadHandlerTest.cc
  5971. * test/MetalinkPostDownloadHandlerTest.cc
  5972. * test/MockBtContext.h
  5973. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5974. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  5975. * src/option_processing.cc
  5976. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5977. Applied aria2-1.0.1-mingw.patch.
  5978. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  5979. mingw.
  5980. Collected 4th and 5th argument types for getsockopt and setsockopt.
  5981. * src/SocketCore.cc
  5982. * src/a2netcompat.h
  5983. * test/SocketCoreTest.cc
  5984. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5985. * Release 1.0.1
  5986. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5987. Updated Ukrainian and Norwegian Nynorsk translations.
  5988. Thanks to all translators.
  5989. * po/nn.po
  5990. * po/uk.po
  5991. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5992. Don't show download result when -S option is used.
  5993. * src/main.cc
  5994. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5995. Bump up version number to 1.0.1
  5996. * configure.ac
  5997. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5998. Closed files after the test cases in MultiDiskWriterTest::
  5999. testResetDiskWriterEntries(). This will fix the unit test error
  6000. in mingw32 build.
  6001. * test/MultiDiskWriterTest.cc
  6002. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6003. Use HEAD method to get file size from HTTP server for segmented
  6004. downloading.
  6005. The request to the BitTorrent Tracker always uses GET method because
  6006. the response of the tracker is small and it doesn't need segmented
  6007. download.
  6008. * src/FtpNegotiationCommand.cc
  6009. * src/HttpRequest.cc
  6010. * src/HttpResponseCommand.cc
  6011. * src/HttpSkipResponseCommand.cc
  6012. * src/RequestGroup.cc
  6013. * src/RequestGroup.h
  6014. * src/TrackerWatcherCommand.cc
  6015. * test/HttpRequestTest.cc
  6016. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6017. Fixed the bug that causes floating exception when -T option is used and
  6018. no URIs are given.
  6019. * src/download_helper.cc
  6020. * test/DownloadHelperTest.cc
  6021. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  6022. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  6023. errors in MinGW:
  6024. Closed file after saving server stats (RequestGroupMan.cc)
  6025. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  6026. Ignored case & handled 2-digit years (strptime.c)
  6027. Added missing suseconds_t definition (a2time.h)
  6028. Fixed socket CLOSE() define (SocketCore.cc)
  6029. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  6030. Changed utime() test values from x000 to x00000 as MinGW failed on
  6031. values less than timezone offset from Unix epoch
  6032. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  6033. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  6034. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  6035. handle negative dates (CookieParserTest.cc)
  6036. * src/a2time.h
  6037. * src/FtpConnection.cc
  6038. * src/RequestGroupMan.cc
  6039. * src/SocketCore.cc
  6040. * src/strptime.c
  6041. * test/CookieParserTest.cc
  6042. * test/CopyDiskAdaptorTest.cc
  6043. * test/FileTest.cc
  6044. * test/FtpConnectionTest.cc
  6045. * test/MultiDiskAdaptorTest.cc
  6046. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6047. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  6048. * doc/aria2c.1.txt
  6049. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6050. * Release 1.0.0
  6051. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6052. Added '~' to reserved characters.
  6053. * src/Util.cc
  6054. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6055. Do not urlencode Request::url in setUrl() because we want unmodified
  6056. URL using Request::getUrl()
  6057. * src/Request.cc
  6058. * src/Request.h
  6059. * test/RequestTest.cc
  6060. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6061. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  6062. Thanks to all translators.
  6063. * po/bg.po
  6064. * po/fr.po
  6065. * po/ja.po
  6066. * po/ru.po
  6067. * po/uk.po
  6068. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6069. Bump up version number to 1.0.0
  6070. * configure.ac
  6071. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6072. Added nosqlite3 build to build_test.sh.
  6073. Renamed noxml as expat.
  6074. * build_test.sh
  6075. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6076. Updated INPUT FILE section.
  6077. * doc/aria2c.1.txt
  6078. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6079. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  6080. on big endian systems because test .aria2 files are made for little
  6081. endian systems.
  6082. * test/DefaultBtProgressInfoFileTest.cc
  6083. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6084. Dropped ares support.
  6085. * README
  6086. * configure.ac
  6087. * m4/libares.m4: Removed.
  6088. * src/AsyncNameResolver.cc
  6089. * src/Makefile.am
  6090. * test/Makefile.am
  6091. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6092. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  6093. Removed const qualifier from DiskWriter::size().
  6094. * src/AbstractDiskWriter.cc
  6095. * src/AbstractDiskWriter.h
  6096. * src/ByteArrayDiskWriter.cc
  6097. * src/ByteArrayDiskWriter.h
  6098. * src/DiskWriter.h
  6099. * test/ByteArrayDiskWriterTest.cc
  6100. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6101. Fixed the bug that causes segmentation fault/bus error during executing
  6102. choking algorithm while seeding. This is caused by improper
  6103. implementation of compare function which returns inconsistent results
  6104. depending on the timing of last unchoke.
  6105. * src/BtSeederStateChoke.cc
  6106. * src/BtSeederStateChoke.h
  6107. * src/DefaultPeerStorage.cc
  6108. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6109. Removed TODO
  6110. * TODO
  6111. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6112. Added a section that explains how to pass argument to options that
  6113. takes optional arguments with its short form.
  6114. * doc/aria2c.1.txt
  6115. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6116. Added -u for the short form of --max-upload-limit option.
  6117. * doc/aria2c.1.txt
  6118. * src/option_processing.cc
  6119. * src/usage_text.h
  6120. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6121. Added -V for the short form of --check-integrity option.
  6122. Now the argument of --check-integrity option is optional:
  6123. if it is omitted, it is evaluated as true.
  6124. * doc/aria2c.1.txt
  6125. * src/option_processing.cc
  6126. * src/usage_text.h
  6127. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6128. Made the default value of --ftp-pasv option set to true and it can take
  6129. true/false values.
  6130. * src/OptionHandlerFactory.cc
  6131. * src/option_processing.cc
  6132. * src/usage_text.h
  6133. * doc/aria2c.1.txt
  6134. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6135. Given custom random number generator to std::random_shuffle.
  6136. * src/AnnounceList.cc
  6137. * src/BtLeecherStateChoke.cc
  6138. * src/BtSeederStateChoke.cc
  6139. * src/DefaultBtRequestFactory.cc
  6140. * src/MetalinkEntry.cc
  6141. * src/RarestPieceSelector.cc
  6142. * src/SimpleRandomizer.cc
  6143. * src/SimpleRandomizer.h
  6144. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6145. Now the default value of --enable-direct-io is true.
  6146. * src/OptionHandlerFactory.cc
  6147. * doc/aria2c.1.txt
  6148. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6149. Erase peer before executing onReturningPeer and onErasingPeer
  6150. because choking algorithm called from onReturningPeer doesn't
  6151. like erasing peer in the active peer list.
  6152. * src/DefaultPeerStorage.cc
  6153. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6154. Instead of creating special filename in createDownloadResult() if
  6155. inMemoryDownload() is true, now it is done in getFilePath().
  6156. * src/RequestGroup.cc
  6157. * test/RequestGroupTest.cc
  6158. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6159. Print "[MEMORY]" and filename if a file is not saved in disk and just
  6160. processed in memory. This is the fix for previous comment out.
  6161. * src/MemoryBufferPreDownloadHandler.cc
  6162. * src/RequestGroup.cc
  6163. * src/RequestGroup.h
  6164. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6165. Commented out the code which sets virtual directory path "[MEMORY]"
  6166. propagate directory to store to following RequestGroup.
  6167. * src/MemoryBufferPreDownloadHandler.cc
  6168. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6169. Bump up version number to 1.0.0b
  6170. * configure.ac
  6171. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6172. Added input_uris.txt to EXTRA_DIST
  6173. * test/Makefile.am
  6174. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6175. Removed PeerObject.h from Makefile.am
  6176. * src/Makefile.am
  6177. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6178. Avoid slow seeding
  6179. * src/PeerInteractionCommand.cc
  6180. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6181. Updated usage for -i option.
  6182. * src/usage_text.h (TEXT_INPUT_FILE)
  6183. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6184. Added INPUT FILE section to man page.
  6185. Escaped fake URLs.
  6186. * doc/aria2c.1.txt
  6187. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6188. Fixed wrong note position for -o option.
  6189. * doc/aria2c.1.txt
  6190. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6191. Fixed compile error without SSL/XML library.
  6192. * src/DefaultBtProgressInfoFile.cc
  6193. * src/DefaultBtProgressInfoFile.h
  6194. * src/FileMetalinkParserState.cc
  6195. * src/RequestGroup.h
  6196. * src/SocketCore.cc
  6197. * src/SocketCore.h
  6198. * src/VerificationMetalinkParserState.cc
  6199. * src/download_helper.h
  6200. * src/main.cc
  6201. * test/DefaultBtProgressInfoFileTest.cc
  6202. * test/DownloadHelperTest.cc
  6203. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6204. Rewritten URI handling functions. They are now provided as a testable
  6205. functions.
  6206. * src/Makefile.am
  6207. * src/RequestGroup.cc
  6208. * src/RequestGroup.h
  6209. * src/download_helper.cc
  6210. * src/download_helper.h
  6211. * src/main.cc
  6212. * test/DownloadHelperTest.cc
  6213. * test/Makefile.am
  6214. * test/input_uris.txt
  6215. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6216. Quickly terminate commands when ctrl-c is pressed.
  6217. * src/DownloadEngine.cc
  6218. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6219. Quickly terminate idle commands when download finished.
  6220. * src/AbstractCommand.cc
  6221. * src/DownloadCommand.cc
  6222. * src/DownloadEngine.cc
  6223. * src/DownloadEngine.h
  6224. * src/SleepCommand.cc
  6225. * src/SleepCommand.h
  6226. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6227. Added the ability to specify output filename and directory in input
  6228. file.
  6229. Additional parameters are added in the following line of URIs
  6230. with proceeding white space(s), 1 parameter in 1 line.
  6231. The parameter names are the same with the command-line option name
  6232. without proceeding "--". Not all the options are available here:
  6233. at the moment, 'dir' and 'out' options are avialable.
  6234. Please note that out option has no effect against Metalink or BitTorrent
  6235. downloads.
  6236. Example input file:
  6237. http://host/foo-1.1.tar.bz2
  6238. out=foo.tar.bz2
  6239. dir=/tmp/downloads
  6240. http://host/thundermonkey-2.0.tar.bz2
  6241. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  6242. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  6243. thundermonkey-2.0.tar.bz2 is saved as
  6244. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  6245. * src/BtPostDownloadHandler.cc
  6246. * src/Metalink2RequestGroup.cc
  6247. * src/Metalink2RequestGroup.h
  6248. * src/MetalinkPostDownloadHandler.cc
  6249. * src/UriListParser.cc
  6250. * src/UriListParser.h
  6251. * src/main.cc
  6252. * test/Metalink2RequestGroupTest.cc
  6253. * test/UriListParserTest.cc
  6254. * test/filelist1.txt
  6255. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6256. Fixed error when SSL library is not found.
  6257. * configure.ac
  6258. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6259. Cross referenced among -s, -C and -j options.
  6260. Updated usage of -C and -s options.
  6261. * src/usage_text.h
  6262. * doc/aria2c.1.txt
  6263. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6264. Fixed bad cast in 32bit platforms.
  6265. * test/DefaultPieceStorageTest.cc
  6266. (DefaultPieceStorageTest::testGetCompletedLength)
  6267. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6268. Fixed unit test fails on 32bit platforms.
  6269. * test/CookieParserTest.cc
  6270. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6271. Show an average download speed in Download results.
  6272. * src/BtFileAllocationEntry.cc
  6273. * src/DefaultPieceStorage.cc
  6274. * src/DownloadContext.cc
  6275. * src/DownloadContext.h
  6276. * src/DownloadResult.h
  6277. * src/RequestGroup.cc
  6278. * src/RequestGroupMan.cc
  6279. * src/StreamFileAllocationEntry.cc
  6280. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6281. Fixed the bug that metalink file is not processed if Content-Type
  6282. field has a paramter.
  6283. * src/HttpResponse.cc
  6284. * src/HttpResponse.h
  6285. * test/HttpResponseTest.cc
  6286. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6287. Removed unused code.
  6288. * src/DefaultBtAnnounce.cc
  6289. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6290. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  6291. the value larger than DefaultPieceStorage::getTotalLength() when
  6292. in flight pieces are involved.
  6293. * src/DefaultPieceStorage.cc
  6294. * test/DefaultPieceStorageTest.cc
  6295. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6296. Bump up version number to 1.0.0a.
  6297. * configure.ac
  6298. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6299. Updated configure.ac
  6300. * configure.ac
  6301. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6302. Added usege for proxy.
  6303. * doc/aria2c.1.txt
  6304. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6305. Added usage for --ca-certificate, --certificate, --private-key and
  6306. --check-certificate options.
  6307. * doc/aria2c.1.txt
  6308. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6309. Updated man page
  6310. * doc/aria2c.1.txt
  6311. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6312. Added --no-proxy option. It receives comman separated hostname or
  6313. domains to which proxy should not be used.
  6314. aria2 honors the environment variable no_proxy to override no-proxy
  6315. value in configuration file. The user can override the environment
  6316. variable no_proxy with --no-proxy command-line option.
  6317. * src/AbstractCommand.cc
  6318. * src/OptionHandlerFactory.cc
  6319. * src/option_processing.cc
  6320. * src/prefs.cc
  6321. * src/prefs.h
  6322. * src/usage_text.h
  6323. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6324. Added the ability to verify peer in SSL/TLS using given CA certificates.
  6325. The CA certificates are specified in --ca-certificate option.
  6326. By default, the verification is disabled. Use --check-certificate
  6327. option to enable it.
  6328. * src/HttpRequestCommand.cc
  6329. * src/LibgnutlsTLSContext.cc
  6330. * src/LibgnutlsTLSContext.h
  6331. * src/LibsslTLSContext.cc
  6332. * src/LibsslTLSContext.h
  6333. * src/MultiUrlRequestInfo.cc
  6334. * src/OptionHandlerFactory.cc
  6335. * src/SocketCore.cc
  6336. * src/SocketCore.h
  6337. * src/a2functional.h
  6338. * src/message.h
  6339. * src/option_processing.cc
  6340. * src/prefs.cc
  6341. * src/prefs.h
  6342. * src/usage_text.h
  6343. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6344. Added client certificate authentication for SSL/TLS.
  6345. Currently a private key must be decrypted for use with aria2.
  6346. If a user accidentally gives encrypted file to aria2 then following
  6347. thing happens:
  6348. If encrypted private key is given to aria2, it behaves differently
  6349. depending on the ssl library it uses. If aria2 built with openssl then
  6350. openssl prompts the user for password. If aria2 build with gnutls then
  6351. aria2 exists with error at start up.
  6352. * src/DownloadEngineFactory.cc
  6353. * src/MultiUrlRequestInfo.cc
  6354. * src/OptionHandlerFactory.cc
  6355. * src/option_processing.cc
  6356. * src/prefs.cc
  6357. * src/prefs.h
  6358. * src/usage_text.h
  6359. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6360. Introduced TLSContext that holds TLS related data that can be shared
  6361. with multiple SSL connections.
  6362. * src/DownloadEngineFactory.cc
  6363. * src/LibgnutlsTLSContext.cc
  6364. * src/LibgnutlsTLSContext.h
  6365. * src/LibsslTLSContext.cc
  6366. * src/LibsslTLSContext.h
  6367. * src/Makefile.am
  6368. * src/SocketCore.cc
  6369. * src/SocketCore.h
  6370. * src/TLSContext.h
  6371. * src/message.h
  6372. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6373. Fixed the bug that the DiskWriter of the first FileEntry whose
  6374. `needsFileAllocation' property is false is not created
  6375. even if it shares a piece with next FileEntry which `requested' property
  6376. is true.
  6377. Fixed the bug that zero-length file is not created if pre file
  6378. allocation is not done.
  6379. * src/MultiDiskAdaptor.cc
  6380. * src/MultiDiskAdaptor.h
  6381. * test/MultiDiskAdaptorTest.cc
  6382. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6383. Added the ability to pool proxy connection.
  6384. The conneciton in FTP with proxy-method=GET is not pooled.
  6385. Proxy-Connection header will not be sent when sending CONNECT method.
  6386. * src/DownloadEngine.cc
  6387. * src/DownloadEngine.h
  6388. * src/FtpFinishDownloadCommand.cc
  6389. * src/FtpInitiateConnectionCommand.cc
  6390. * src/FtpNegotiationCommand.cc
  6391. * src/HttpDownloadCommand.cc
  6392. * src/HttpInitiateConnectionCommand.cc
  6393. * src/HttpRequest.cc
  6394. * src/HttpRequest.h
  6395. * src/HttpResponse.cc
  6396. * src/HttpSkipResponseCommand.cc
  6397. * test/HttpRequestTest.cc
  6398. * test/HttpResponseTest.cc
  6399. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Handle date before epoch.
  6401. To create *bad* Time object, call Time::null().
  6402. * src/CookieParser.cc
  6403. * src/FtpConnection.cc
  6404. * src/FtpConnection.h
  6405. * src/FtpNegotiationCommand.cc
  6406. * src/RequestGroup.cc
  6407. * src/TimeA2.cc
  6408. * src/TimeA2.h
  6409. * test/CookieParserTest.cc
  6410. * test/FtpConnectionTest.cc
  6411. * test/TimeTest.cc
  6412. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Added support for following envrionment variables: http_proxy,
  6414. https_proxy, ftp_proxy and all_proxy.
  6415. Each variable is equivalent to the aria2 option whose name is the
  6416. variable name with '_' replaced with '-'.
  6417. They overrides options specified in aria2.conf file.
  6418. The envrionment variables can be overrode using command-line option.
  6419. * src/option_processing.cc
  6420. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. Renamed --http-proxy-method as --proxy-method.
  6422. * src/AbstractCommand.cc
  6423. * src/FtpInitiateConnectionCommand.cc
  6424. * src/HttpInitiateConnectionCommand.cc
  6425. * src/OptionHandlerFactory.cc
  6426. * src/option_processing.cc
  6427. * src/prefs.cc
  6428. * src/prefs.h
  6429. * src/usage_text.h
  6430. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Deprecated --http-proxy-user and --http-proxy-passwd options.
  6432. Added --https-proxy, --ftp-proxy and --all-proxy options.
  6433. Above 3 options and --http-proxy option can handle proxy in URL format
  6434. like: http://user:passwd@host:port.
  6435. If a proxy requires user/password, they must be specified in a URL.
  6436. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  6437. instead.
  6438. * src/AbstractCommand.cc
  6439. * src/AbstractCommand.h
  6440. * src/AbstractProxyRequestCommand.cc
  6441. * src/AbstractProxyRequestCommand.h
  6442. * src/AuthConfigFactory.cc
  6443. * src/AuthConfigFactory.h
  6444. * src/FtpFinishDownloadCommand.cc
  6445. * src/FtpInitiateConnectionCommand.cc
  6446. * src/FtpInitiateConnectionCommand.h
  6447. * src/FtpNegotiationCommand.cc
  6448. * src/FtpTunnelRequestCommand.cc
  6449. * src/FtpTunnelRequestCommand.h
  6450. * src/HttpDownloadCommand.cc
  6451. * src/HttpInitiateConnectionCommand.cc
  6452. * src/HttpInitiateConnectionCommand.h
  6453. * src/HttpProxyRequestCommand.cc
  6454. * src/HttpProxyRequestCommand.h
  6455. * src/HttpRequest.cc
  6456. * src/HttpRequest.h
  6457. * src/HttpRequestCommand.cc
  6458. * src/HttpRequestCommand.h
  6459. * src/HttpSkipResponseCommand.cc
  6460. * src/InitiateConnectionCommand.cc
  6461. * src/InitiateConnectionCommand.h
  6462. * src/OptionHandlerFactory.cc
  6463. * src/OptionHandlerImpl.h
  6464. * src/Request.cc
  6465. * src/option_processing.cc
  6466. * src/prefs.cc
  6467. * src/prefs.h
  6468. * src/usage_text.h
  6469. * test/AuthConfigFactoryTest.cc
  6470. * test/HttpRequestTest.cc
  6471. * test/OptionHandlerTest.cc
  6472. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6473. Execute choking algorithm when unchoked and interested peer is
  6474. disconected.
  6475. * src/DefaultPeerStorage.cc
  6476. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6477. Added testcase for BtNotInterestedMessage from unchoked peer.
  6478. * test/BtNotInterestedMessageTest.cc
  6479. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6480. Execute choking algorithm when BtInterestedMessage arrives from
  6481. unchoked peer.
  6482. * src/BtInterestedMessage.cc
  6483. * src/BtInterestedMessage.h
  6484. * src/DefaultBtMessageFactory.cc
  6485. * test/BtInterestedMessageTest.cc
  6486. * test/MockPeerStorage.h
  6487. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6488. AuthConfigFactory is now part of DownloadEngine.
  6489. * src/AbstractProxyRequestCommand.cc
  6490. * src/AuthConfigFactory.h
  6491. * src/DownloadEngine.cc
  6492. * src/DownloadEngine.h
  6493. * src/FtpConnection.cc
  6494. * src/FtpConnection.h
  6495. * src/FtpNegotiationCommand.cc
  6496. * src/HttpConnection.cc
  6497. * src/HttpRequest.cc
  6498. * src/HttpRequest.h
  6499. * src/HttpRequestCommand.cc
  6500. * src/HttpResponse.cc
  6501. * src/HttpResponseCommand.cc
  6502. * src/HttpSkipResponseCommand.cc
  6503. * src/MultiUrlRequestInfo.cc
  6504. * src/main.cc
  6505. * test/FtpConnectionTest.cc
  6506. * test/HttpRequestTest.cc
  6507. * test/HttpResponseTest.cc
  6508. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6509. Corrected catched exception type.
  6510. * src/ServerStatMan.cc
  6511. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6512. DNSCache is now part of DownloadEngine.
  6513. * src/DNSCache.h
  6514. * src/DownloadEngine.cc
  6515. * src/DownloadEngine.h
  6516. * src/InitiateConnectionCommand.cc
  6517. * src/MultiUrlRequestInfo.cc
  6518. * test/Makefile.am
  6519. * test/Makefile.in
  6520. * test/SimpleDNSCacheTest.cc
  6521. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6522. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  6523. DownloadEngine.
  6524. * src/ActivePeerConnectionCommand.cc
  6525. * src/BtSetup.cc
  6526. * src/CUIDCounter.h
  6527. * src/DHTSetup.cc
  6528. * src/DownloadCommand.cc
  6529. * src/DownloadEngine.cc
  6530. * src/DownloadEngine.h
  6531. * src/DownloadEngineFactory.cc
  6532. * src/FileAllocationDispatcherCommand.cc
  6533. * src/InitiatorMSEHandshakeCommand.cc
  6534. * src/PeerInitiateConnectionCommand.cc
  6535. * src/PeerInteractionCommand.cc
  6536. * src/PeerListenCommand.cc
  6537. * src/RequestGroup.cc
  6538. * src/StreamFileAllocationEntry.cc
  6539. * src/TrackerWatcherCommand.cc
  6540. * src/main.cc
  6541. * test/RequestGroupManTest.cc
  6542. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6543. Implemented commented code in BtSeederStateChoke
  6544. * src/BtSeederStateChoke.cc
  6545. * src/Peer.cc
  6546. * src/Peer.h
  6547. * src/PeerInteractionCommand.cc
  6548. * src/PeerSessionResource.cc
  6549. * src/PeerSessionResource.h
  6550. * test/MockBtMessageDispatcher.h
  6551. * test/PeerSessionResourceTest.cc
  6552. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  6554. its object.
  6555. * src/AbstractBtMessage.cc
  6556. * src/ActivePeerConnectionCommand.cc
  6557. * src/ActivePeerConnectionCommand.h
  6558. * src/BtContextAwareCommand.cc
  6559. * src/BtContextAwareCommand.h
  6560. * src/BtExtendedMessage.cc
  6561. * src/BtExtendedMessage.h
  6562. * src/BtInterestedMessage.cc
  6563. * src/BtInterestedMessage.h
  6564. * src/BtNotInterestedMessage.cc
  6565. * src/BtNotInterestedMessage.h
  6566. * src/BtRegistry.cc
  6567. * src/BtRegistry.h
  6568. * src/BtSeederStateChoke.cc
  6569. * src/BtSetup.cc
  6570. * src/DHTGetPeersCommand.cc
  6571. * src/DHTGetPeersCommand.h
  6572. * src/DHTPeerAnnounceEntry.cc
  6573. * src/DHTPeerAnnounceEntry.h
  6574. * src/DHTPeerAnnounceStorage.cc
  6575. * src/DHTPeerAnnounceStorage.h
  6576. * src/DHTPeerLookupTask.cc
  6577. * src/DHTPeerLookupTask.h
  6578. * src/DHTSetup.cc
  6579. * src/DHTSetup.h
  6580. * src/DHTTaskFactory.h
  6581. * src/DHTTaskFactoryImpl.cc
  6582. * src/DHTTaskFactoryImpl.h
  6583. * src/DefaultBtAnnounce.cc
  6584. * src/DefaultBtInteractive.cc
  6585. * src/DefaultBtInteractive.h
  6586. * src/DefaultBtMessageDispatcher.cc
  6587. * src/DefaultBtMessageDispatcher.h
  6588. * src/DefaultBtMessageFactory.cc
  6589. * src/DefaultBtMessageFactory.h
  6590. * src/DefaultBtMessageReceiver.cc
  6591. * src/DefaultBtProgressInfoFile.cc
  6592. * src/DefaultBtProgressInfoFile.h
  6593. * src/DefaultBtRequestFactory.cc
  6594. * src/DefaultBtRequestFactory.h
  6595. * src/DefaultExtensionMessageFactory.cc
  6596. * src/DefaultExtensionMessageFactory.h
  6597. * src/DefaultPeerStorage.cc
  6598. * src/DefaultPeerStorage.h
  6599. * src/DownloadEngine.cc
  6600. * src/DownloadEngine.h
  6601. * src/InitiatorMSEHandshakeCommand.cc
  6602. * src/InitiatorMSEHandshakeCommand.h
  6603. * src/MSEHandshake.cc
  6604. * src/MSEHandshake.h
  6605. * src/Makefile.am
  6606. * src/Makefile.in
  6607. * src/PeerChokeCommand.cc
  6608. * src/PeerChokeCommand.h
  6609. * src/PeerInitiateConnectionCommand.cc
  6610. * src/PeerInitiateConnectionCommand.h
  6611. * src/PeerInteractionCommand.cc
  6612. * src/PeerInteractionCommand.h
  6613. * src/PeerObject.h
  6614. * src/PeerReceiveHandshakeCommand.cc
  6615. * src/PeerReceiveHandshakeCommand.h
  6616. * src/ReceiverMSEHandshakeCommand.cc
  6617. * src/RequestGroup.cc
  6618. * src/RequestGroup.h
  6619. * src/RequestGroupMan.cc
  6620. * src/RequestGroupMan.h
  6621. * src/SeedCheckCommand.cc
  6622. * src/SeedCheckCommand.h
  6623. * src/ShareRatioSeedCriteria.h
  6624. * src/SimpleBtMessage.cc
  6625. * src/TrackerWatcherCommand.cc
  6626. * src/TrackerWatcherCommand.h
  6627. * src/UTPexExtensionMessage.cc
  6628. * src/UTPexExtensionMessage.h
  6629. * test/BtCancelMessageTest.cc
  6630. * test/BtChokeMessageTest.cc
  6631. * test/BtExtendedMessageTest.cc
  6632. * test/BtInterestedMessageTest.cc
  6633. * test/BtNotInterestedMessageTest.cc
  6634. * test/BtPieceMessageTest.cc
  6635. * test/BtPortMessageTest.cc
  6636. * test/BtRegistryTest.cc
  6637. * test/BtRejectMessageTest.cc
  6638. * test/BtRequestMessageTest.cc
  6639. * test/DHTPeerAnnounceEntryTest.cc
  6640. * test/DHTPeerAnnounceStorageTest.cc
  6641. * test/DefaultBtMessageDispatcherTest.cc
  6642. * test/DefaultBtMessageFactoryTest.cc
  6643. * test/DefaultBtProgressInfoFileTest.cc
  6644. * test/DefaultBtRequestFactoryTest.cc
  6645. * test/DefaultExtensionMessageFactoryTest.cc
  6646. * test/MSEHandshakeTest.cc
  6647. * test/MockDHTTaskFactory.h
  6648. * test/ShareRatioSeedCriteriaTest.cc
  6649. * test/UTPexExtensionMessageTest.cc
  6650. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6651. Fixed compiler warning.
  6652. * test/UtilTest.cc
  6653. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Treat Cookie object as session cookie if expiry = 0 is given.
  6655. With this change, you can specify session scoped cookies in an external
  6656. file setting expiry value to 0.
  6657. * src/Cookie.cc
  6658. * src/Cookie.h
  6659. * test/CookieParserTest.cc
  6660. * test/CookieStorageTest.cc
  6661. * test/CookieTest.cc
  6662. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Changed signature of DHTMessageFactory::createResponseMessage().
  6664. Removed unused validateIDMatch.
  6665. * src/DHTMessageFactory.h
  6666. * src/DHTMessageFactoryImpl.cc
  6667. * src/DHTMessageFactoryImpl.h
  6668. * src/DHTMessageTracker.cc
  6669. * test/DHTMessageFactoryImplTest.cc
  6670. * test/MockDHTMessageFactory.h
  6671. Dropped DHT message coming from same ID of localhost.
  6672. * src/DHTMessageReceiver.cc
  6673. Rejected adding node whose ID is the same as localhost's.
  6674. * src/DHTRoutingTable.cc
  6675. * test/BtPortMessageTest.cc
  6676. * test/DHTRoutingTableTest.cc
  6677. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. Pool connection when redirection occurs with Content-Length = 0.
  6679. * src/HttpSkipResponseCommand.cc
  6680. * src/HttpSkipResponseCommand.h
  6681. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6682. Fixed the bug that causes time out when redirection occurs with
  6683. content-length 0.
  6684. * src/HttpResponseCommand.cc
  6685. * src/HttpSkipResponseCommand.cc
  6686. * src/HttpSkipResponseCommand.h
  6687. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6688. Now each status legends is shown only when it appears in Download
  6689. Result. If Download Result has no item, then status legend will not
  6690. be printed.
  6691. * src/RequestGroupMan.cc
  6692. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6693. Removed duplicate creation of OptionHandlers.
  6694. * src/option_processing.cc
  6695. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6696. Fixed the bug that causes segmentation fault when accessing files which
  6697. don't exist or are not included in --select-file option while
  6698. validating chunk checksum.
  6699. * src/MultiDiskAdaptor.cc
  6700. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6701. Fixed compiler warning.
  6702. * test/UtilTest.cc
  6703. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6704. Included cstdlib. This fixed the compile error with g++-4.3.2.
  6705. * src/IteratableChecksumValidator.cc
  6706. * src/IteratableChunkChecksumValidator.cc
  6707. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6708. * Release 0.16.2
  6709. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Added Serbian translation. Updated Ukrainian translation.
  6711. Thanks to all translators.
  6712. * po/sr.po
  6713. * po/uk.po
  6714. * po/LINGUAS
  6715. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6716. Bump up version number to 0.16.2
  6717. * configure.ac
  6718. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Added length equality test to operator== to drop a piece message
  6720. whose length does not match to the requested one.
  6721. * src/RequestSlot.cc
  6722. * test/DefaultBtMessageDispatcherTest.cc
  6723. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6724. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  6725. recieved.
  6726. In this fix, if a request larger than 16KiB length is received, aria2
  6727. disconnects the peer.
  6728. * src/BtConstants.h
  6729. * src/PeerMessageUtil.cc
  6730. * src/PeerMessageUtil.h
  6731. * test/BtRequestMessageTest.cc
  6732. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6733. * Release 0.16.1
  6734. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6735. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  6736. * doc/aria2c.1.txt
  6737. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  6739. Updated French, Simplified Chinese and Japanese translations.
  6740. Thanks to all translators.
  6741. en@quot and en@boldquot are also added.
  6742. * po/LINGUAS
  6743. * po/fr.po
  6744. * po/ja.po
  6745. * po/uk.po
  6746. * po/vi.po
  6747. * po/zh_CN.po
  6748. * po/zh_TW.po
  6749. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6750. Bump up version number to 0.16.1.
  6751. * configure.ac
  6752. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6753. Updated README.
  6754. * README
  6755. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6756. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  6757. not to replace '--' with em dash character.
  6758. * doc/aria2c.1.txt
  6759. * doc/makeman
  6760. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6761. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  6762. every SEC seconds.
  6763. * src/DownloadEngineFactory.cc
  6764. * src/OptionHandlerFactory.cc
  6765. * src/option_processing.cc
  6766. * src/usage_text.h
  6767. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6768. Fixed compile warning on linux-amd64
  6769. * src/FtpConnection.cc
  6770. * src/IteratableChunkChecksumValidator.cc
  6771. * src/MultiDiskAdaptor.cc
  6772. Fixed the bug that unit test fails on linux-amd64
  6773. * test/UtilTest.cc
  6774. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6775. Added --dht-file-path option to change the path to dht.dat, which is a
  6776. serialized DHT routing table.
  6777. * src/OptionHandlerFactory.cc
  6778. * src/option_processing.cc
  6779. * src/usage_text.h
  6780. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6781. Fixed possible underflow.
  6782. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  6783. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6784. Fixed the bug that last character in URI is not encoded.
  6785. * src/Request.cc
  6786. * test/RequestTest.cc
  6787. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Fixed the bug that referer header field contains fragment.
  6789. Now Request class removes fragment part of URI and encodes it
  6790. in Request::setUri() and setReferer().
  6791. * src/Request.h
  6792. * src/Request.cc
  6793. * test/RequestTest.cc
  6794. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6795. Added missing m4 macros.
  6796. * m4/cppunit.m4
  6797. * m4/libgcrypt.m4
  6798. * m4/libgnutls-extra.m4
  6799. * m4/libgnutls.m4
  6800. * m4/libxml2.m4
  6801. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Fixed compile error with gcc-4.4(snapshot)
  6803. * src/File.cc
  6804. * src/FtpConnection.cc
  6805. * src/OptionHandlerImpl.h
  6806. * src/Util.cc
  6807. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6808. Removed assert()
  6809. * src/SocketBuffer.cc (SocketBuffer::send)
  6810. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6811. Changed the type of _numNewConnection to unsigned int.
  6812. * src/ActivePeerConnectionCommand.cc
  6813. * src/ActivePeerConnectionCommand.h
  6814. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6815. * Release 0.16.0
  6816. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Updated doc
  6818. * README
  6819. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6820. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  6821. translations. Thanks to all translators.
  6822. * po/bg.po
  6823. * po/de.po
  6824. * po/fr.po
  6825. * po/ja.po
  6826. * po/zh_CN.po
  6827. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6828. Bump up version number to 0.16.0.
  6829. * configure.ac
  6830. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6831. Casted entry->maxConnections to int32_t for std::min<T> with T =
  6832. int32_t.
  6833. Changed the type of count to int32_t.
  6834. * src/Metalink2RequestGroup.cc
  6835. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6836. Added test for Time::elapsed(time_t).
  6837. * test/TimeTest.cc
  6838. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6839. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  6840. Util::difftv() should be used instead.
  6841. * src/TimeA2.cc
  6842. * src/TimeA2.h
  6843. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Made socket for dht connections non-blocking
  6845. * src/DHTAbstractMessage.cc
  6846. * src/DHTAbstractMessage.h
  6847. * src/DHTConnection.h
  6848. * src/DHTConnectionImpl.cc
  6849. * src/DHTConnectionImpl.h
  6850. * src/DHTMessage.h
  6851. * src/DHTMessageDispatcherImpl.cc
  6852. * src/DHTMessageDispatcherImpl.h
  6853. * src/DHTUnknownMessage.cc
  6854. * src/DHTUnknownMessage.h
  6855. * src/SocketCore.cc
  6856. * src/SocketCore.h
  6857. * test/MockDHTMessage.h
  6858. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6859. Changed the type of offset to int.
  6860. * src/ParameterizedStringParser.cc
  6861. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6862. Made getAsInt() return int32_t
  6863. * src/Option.h
  6864. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6865. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  6866. build.
  6867. * configure.ac
  6868. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6869. Use sqlite3_open if sqlite3_open_v2 is not available.
  6870. * src/Sqlite3MozCookieParser.cc
  6871. * src/Sqlite3MozCookieParser.h
  6872. * m4/sqlite3.m4
  6873. * test/Sqlite3MozCookieParserTest.cc
  6874. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6875. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  6876. * src/BtPieceMessage.cc
  6877. * src/DHTPeerAnnounceStorage.cc
  6878. * src/DefaultPieceStorage.cc
  6879. * src/DownloadCommand.cc
  6880. * src/DownloadEngine.cc
  6881. * src/FtpConnection.cc
  6882. * src/PeerConnection.cc
  6883. * src/PeerMessageUtil.cc
  6884. * src/RequestGroup.cc
  6885. * src/RequestGroupMan.cc
  6886. * src/SimpleBtMessage.cc
  6887. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6888. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  6889. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  6890. * src/AbstractDiskWriter.cc
  6891. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6892. Don't set Request::supportsPersistentConnection() in HttpConnection
  6893. since this code is also used in AbstractProxyResponseCommand.
  6894. Moved those code to HttpResponse.
  6895. * src/HttpResponse.cc
  6896. * src/HttpResponse.h
  6897. * src/HttpConnection.cc
  6898. * src/HttpConnection.h
  6899. * src/HttpResponseCommand.cc
  6900. * test/HttpResponseTest.cc
  6901. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6902. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  6903. The configuration is minimum: no torrent, no metalink, so there may be
  6904. other compile error on their code.
  6905. * src/a2netcompat.h
  6906. * src/File.cc
  6907. * src/File.h
  6908. * src/SocketCore.cc
  6909. * src/SocketCore.h
  6910. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6911. Made a socket of incoming peer non-blocking.
  6912. * src/PeerListenCommand.cc
  6913. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6914. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  6915. whole message data is not sent in one send() call.
  6916. * src/BtPieceMessage.cc
  6917. * src/BtPieceMessage.h
  6918. * src/PeerConnection.cc
  6919. * src/PeerConnection.h
  6920. * src/SimpleBtMessage.cc
  6921. * src/SimpleBtMessage.h
  6922. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6923. Fixed the bug that aria2 downloads faster than max-download-limit when
  6924. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  6925. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  6926. , instead of sum of them.
  6927. * src/ActivePeerConnectionCommand.cc
  6928. * src/DefaultBtInteractive.cc
  6929. * src/DownloadCommand.cc
  6930. * src/PeerInteractionCommand.cc
  6931. * src/PeerReceiveHandshakeCommand.cc
  6932. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6933. Fixed the bug that HTTPS download fails.
  6934. * src/AbstractCommand.cc
  6935. * src/AbstractCommand.h
  6936. * src/DownloadCommand.cc
  6937. * src/FtpConnection.cc
  6938. * src/HttpConnection.cc
  6939. * src/HttpRequestCommand.cc
  6940. * src/HttpResponseCommand.cc
  6941. * src/HttpSkipResponseCommand.cc
  6942. * src/MSEHandshake.cc
  6943. * src/PeerConnection.cc
  6944. * src/SocketCore.cc
  6945. * src/SocketCore.h
  6946. Fixed the bug that aria2 doesn't download whole content body and cannot
  6947. reuse connection if chunked transfer encoding and gzip content encoding
  6948. are set.
  6949. * src/DownloadCommand.cc
  6950. * src/HttpSkipResponseCommand.cc
  6951. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6952. Updated man page.
  6953. * doc/aria2c.1.txt
  6954. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. When error occurred while aria2 was parsing an .aria2.conf file, print
  6956. the usage of the option that caused error.
  6957. * src/option_processing.cc
  6958. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Fixed compile error on OptionHandlerException
  6960. * src/Makefile.am
  6961. * src/OptionHandlerException.cc
  6962. * src/OptionHandlerException.h
  6963. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6964. Moved message of the error to OptionHandlerException.h
  6965. * src/NameMatchOptionHandler.h
  6966. * src/OptionHandlerException.h
  6967. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6968. When error occurs while aria2 is parsing an command-line option, print
  6969. the usage of the option.
  6970. * src/Makefile.am
  6971. * src/NameMatchOptionHandler.h
  6972. * src/OptionHandlerException.h
  6973. * src/option_processing.cc
  6974. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Reverted previous change.
  6976. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  6977. username is not in URI.
  6978. * src/HttpRequest.cc
  6979. * src/Request.cc
  6980. * test/HttpRequestTest.cc
  6981. * test/RequestTest.cc
  6982. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Now colon is required for username and password in FTP URL, like:
  6984. ftp://username:password@host.
  6985. If colon is not there, aria2 don't parse it as a username. For example,
  6986. aria2 don't retrieve username from ftp://username@host.
  6987. This fix was made in order to login FTP server via non-transparent ftp
  6988. proxy.
  6989. * src/Request.cc
  6990. * test/RequestTest.cc
  6991. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6992. Use netrc for HTTP.
  6993. Now FTP user/password is sent in Authorization header when
  6994. --ftp-via-http-proxy=get is given.
  6995. * src/AuthConfigFactory.cc
  6996. * src/HttpRequest.cc
  6997. * src/HttpRequest.h
  6998. * src/NetrcAuthResolver.cc
  6999. * src/NetrcAuthResolver.h
  7000. * src/OptionHandlerFactory.cc
  7001. * src/option_processing.cc
  7002. * src/prefs.cc
  7003. * src/prefs.h
  7004. * test/AuthConfigFactoryTest.cc
  7005. * test/HttpRequestTest.cc
  7006. * test/NetrcAuthResolverTest.cc
  7007. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7008. Issue PWD command first and get working directory and use it as a prefix
  7009. for CWD command.
  7010. * src/DownloadEngine.cc
  7011. * src/DownloadEngine.h
  7012. * src/FtpConnection.cc
  7013. * src/FtpConnection.h
  7014. * src/FtpFinishDownloadCommand.cc
  7015. * src/FtpInitiateConnectionCommand.cc
  7016. * src/FtpNegotiationCommand.cc
  7017. * src/FtpNegotiationCommand.h
  7018. * test/FtpConnectionTest.cc
  7019. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7020. Removed default user/pass for FTP user/pass, since it should not have
  7021. precedence over netrc configuration by default.
  7022. * src/OptionHandlerFactory.cc
  7023. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Added debug log for socket event.
  7025. * src/AbstractCommand.cc
  7026. * src/PeerAbstractCommand.cc
  7027. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. Log microseconds.
  7029. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  7030. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7031. Replaced HelpItem.cc with OptionHandler.cc.
  7032. * po/POTFILES.in
  7033. Updated po files with 'make update-po'
  7034. * po/aria2c.pot
  7035. * po/*.po
  7036. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Removed possible values from the text.
  7038. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  7039. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7040. Removed unused preferences:
  7041. PREF_NO_PREALLOCATION
  7042. PREF_STDOUT_LOG
  7043. PREF_TRACKER_MAX_TRIES
  7044. PREF_DIRECT_DOWNLOAD_TIMEOUT
  7045. PREF_MIN_SEGMENT_SIZE
  7046. * src/option_processing.cc
  7047. * src/prefs.cc
  7048. * src/prefs.h
  7049. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7050. Integrated HelpItem into OptionParser to ease the workload for adding
  7051. new options. Removed default value from usage text.
  7052. * src/HelpItem.cc: Removed.
  7053. * src/HelpItem.h: Removed.
  7054. * src/HelpItemFactory.cc: Removed.
  7055. * src/HelpItemFactory.h: Removed.
  7056. * src/Makefile.am
  7057. * src/Makefile.in
  7058. * src/NameMatchOptionHandler.h
  7059. * src/OptionHandler.cc
  7060. * src/OptionHandler.h
  7061. * src/OptionHandlerFactory.cc
  7062. * src/OptionHandlerImpl.h
  7063. * src/OptionParser.cc
  7064. * src/OptionParser.h
  7065. * src/TagContainer.cc: Removed.
  7066. * src/TagContainer.h: Removed.
  7067. * src/TaggedItem.cc: Removed.
  7068. * src/TaggedItem.h: Removed.
  7069. * src/main.cc
  7070. * src/option_processing.cc
  7071. * src/usage_text.h
  7072. * src/version_usage.cc
  7073. * test/HelpItemTest.cc: Removed.
  7074. * test/Makefile.am
  7075. * test/Makefile.in
  7076. * test/OptionHandlerTest.cc
  7077. * test/OptionParserTest.cc
  7078. * test/TagContainerTest.cc: Removed.
  7079. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7080. Moved `TransferStat stat = ...' to inside the `if' clause.
  7081. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  7082. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7083. Fixed the bug that a block in a piece is requested when same block is
  7084. already requested to the same peer in end game mode.
  7085. * src/BtRequestFactory.h
  7086. * src/DefaultBtInteractive.cc
  7087. * src/DefaultBtRequestFactory.cc
  7088. * src/DefaultBtRequestFactory.h
  7089. * src/DefaultPieceStorage.cc
  7090. * src/DefaultPieceStorage.h
  7091. * src/PieceStorage.h
  7092. * src/UnknownLengthPieceStorage.cc
  7093. * src/UnknownLengthPieceStorage.h
  7094. * test/DefaultBtRequestFactoryTest.cc
  7095. * test/DefaultPieceStorageTest.cc
  7096. * test/MockBtRequestFactory.h
  7097. * test/MockPieceStorage.h
  7098. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7099. Removed _uploadLength and _downloadLength from PeerSessionResource
  7100. and use PeerStat::_sessionUploadLength and
  7101. PeerStat::_sessionDownloadLength.
  7102. * src/PeerSessionResource.cc
  7103. * src/PeerSessionResource.h
  7104. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. Fixed the bug that prefixLength of split bucket which doesn't include
  7106. local node ID is incremented.
  7107. * src/DHTBucket.cc
  7108. * src/DHTBucket.h
  7109. * test/DHTBucketTest.cc
  7110. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7111. Added cookies.sqlite to EXTRA_DIST
  7112. * test/Makefile.am
  7113. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Added Turkish translation. Updated French, German, Russian and
  7115. Simplified Chinese translations. Thanks to all translators.
  7116. * po/LINGUAS
  7117. * po/de.po
  7118. * po/fr.po
  7119. * po/ru.po
  7120. * po/tr.po
  7121. * po/zh_CN.po
  7122. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7123. Added deliminating text to the beginning of the log so that one can find
  7124. where the log starts easily.
  7125. * src/main.cc
  7126. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  7128. to fix compile error when async DNS is not enabled by configuration.
  7129. * src/AbstractCommand.cc
  7130. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. If establishing conneciton to a server is failed, then mark error on
  7132. its ServerStat.
  7133. Added the cause of error to log when error event occurred.
  7134. Moved message string to message.h for translation.
  7135. * src/AbstractCommand.cc
  7136. * src/AbstractCommand.h
  7137. * src/FtpNegotiationCommand.cc
  7138. * src/HttpRequestCommand.cc
  7139. * src/PeerAbstractCommand.cc
  7140. * src/message.h
  7141. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. Added the function to get error message from socket.
  7143. * src/SocketCore.cc
  7144. * src/SocketCore.h
  7145. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7146. Added convenient method RequestGroupMan::getOrCreateServerStat()
  7147. * src/RequestGroupMan.cc
  7148. * src/RequestGroupMan.h
  7149. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. If error event is received in epoll, then abort download immediately.
  7151. * src/AbstractCommand.cc
  7152. * src/Command.cc
  7153. * src/Command.h
  7154. * src/DownloadEngine.cc
  7155. * src/PeerAbstractCommand.cc
  7156. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Added usage message for --uri-selector, --server-stat-of,
  7158. --server-stat-in, --server-stat-timeout options.
  7159. * src/HelpItemFactory.cc
  7160. * src/usage_text.h
  7161. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Added upper limit of FTP response buffer. The current implementation
  7163. uses 4096bytes as a limit.
  7164. * src/FtpConnection.cc
  7165. * src/FtpConnection.h
  7166. * test/FtpConnectionTest.cc
  7167. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Use non-blocking socket for TCP communication to avoid possible
  7169. blocking due to buffer full.
  7170. * src/AbstractProxyRequestCommand.cc
  7171. * src/FtpConnection.cc
  7172. * src/FtpConnection.h
  7173. * src/FtpNegotiationCommand.cc
  7174. * src/FtpNegotiationCommand.h
  7175. * src/HttpConnection.cc
  7176. * src/HttpConnection.h
  7177. * src/HttpRequestCommand.cc
  7178. * src/InitiatorMSEHandshakeCommand.cc
  7179. * src/InitiatorMSEHandshakeCommand.h
  7180. * src/MSEHandshake.cc
  7181. * src/MSEHandshake.h
  7182. * src/Makefile.am
  7183. * src/PeerConnection.cc
  7184. * src/PeerConnection.h
  7185. * src/PeerInteractionCommand.cc
  7186. * src/PeerListenCommand.cc
  7187. * src/ReceiverMSEHandshakeCommand.cc
  7188. * src/ReceiverMSEHandshakeCommand.h
  7189. * src/SocketBuffer.cc
  7190. * src/SocketBuffer.h
  7191. * src/SocketCore.cc
  7192. * src/SocketCore.h
  7193. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7194. Call setStatusRealtime() in constructor.
  7195. * src/RealtimeCommand.cc
  7196. * src/RealtimeCommand.h
  7197. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Call Download::setNoWait(true) to execute newly created command without
  7199. a pause.
  7200. * src/AbstractCommand.cc
  7201. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7202. Added --max-file-not-found=NUM option. If aria2 receives `file not
  7203. found' error from HTTP/FTP server NUM times without getting single
  7204. bytes of data, then force the download to fail.
  7205. Basically aria2 tris all URIs available. So if long list of URIs are
  7206. specified in Metalink, then aria2 will take a long time to fail
  7207. eventually if all URIs are outdated. This option eases this situation
  7208. to limit the number of servers to try.
  7209. * src/FtpNegotiationCommand.cc
  7210. * src/HelpItemFactory.cc
  7211. * src/HttpResponseCommand.cc
  7212. * src/OptionHandlerFactory.cc
  7213. * src/PeerStat.h
  7214. * src/RequestGroup.cc
  7215. * src/RequestGroup.h
  7216. * src/SegmentMan.cc
  7217. * src/SegmentMan.h
  7218. * src/option_processing.cc
  7219. * src/prefs.cc
  7220. * src/prefs.h
  7221. * src/usage_text.h
  7222. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Fixed the bug that bulkReceiveResponse() reads all received data as a
  7224. response even if more than one response is in it.
  7225. * src/FtpConnection.cc
  7226. * src/FtpConnection.h
  7227. * test/FtpConnectionTest.cc
  7228. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. Merged from stable-0.15
  7230. * m4/libcares.m4
  7231. Use pkg-config
  7232. * m4/sqlite3.m4
  7233. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7234. Removed unnecessary if statement.
  7235. * src/DefaultPieceStorage.cc (initPieceStorage)
  7236. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. Added --connect-timeout option to specify connect timeout in seconds.
  7238. This option is in effect for HTTP/FTP/proxy server. The timeout for
  7239. connecting to BitTorrent peer is not controlled by this option.
  7240. * src/AbstractProxyRequestCommand.cc
  7241. * src/FtpNegotiationCommand.cc
  7242. * src/HelpItemFactory.cc
  7243. * src/HttpRequestCommand.cc
  7244. * src/OptionHandlerFactory.cc
  7245. * src/option_processing.cc
  7246. * src/prefs.cc
  7247. * src/prefs.h
  7248. * src/usage_text.h
  7249. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7250. Added help message for -R option.
  7251. * src/HelpItemFactory.cc
  7252. * src/usage_text.h
  7253. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7254. Added the message that the time is in local time zone.
  7255. * src/RequestGroup.cc
  7256. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Implemented the ability to get timestamp from remote FTP server using
  7258. MDTM command described in RFC3659.
  7259. * src/FtpConnection.cc
  7260. * src/FtpConnection.h
  7261. * src/FtpNegotiationCommand.cc
  7262. * src/FtpNegotiationCommand.h
  7263. * test/FtpConnectionTest.cc
  7264. * test/Makefile.am
  7265. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Implemented the ability to get timestamp from remote HTTP server and
  7267. apply it to local file. To enable this feature, --remote-time option
  7268. is added. No usage text has been written yet.
  7269. If several servers returns difference timestamp, then aria2 uses latest
  7270. one.
  7271. * src/CopyDiskAdaptor.cc
  7272. * src/CopyDiskAdaptor.h
  7273. * src/DirectDiskAdaptor.cc
  7274. * src/DirectDiskAdaptor.h
  7275. * src/DiskAdaptor.h
  7276. * src/File.cc
  7277. * src/File.h
  7278. * src/HttpHeader.cc
  7279. * src/HttpHeader.h
  7280. * src/HttpResponse.cc
  7281. * src/HttpResponse.h
  7282. * src/HttpResponseCommand.cc
  7283. * src/HttpResponseCommand.h
  7284. * src/MultiDiskAdaptor.cc
  7285. * src/MultiDiskAdaptor.h
  7286. * src/OptionHandlerFactory.cc
  7287. * src/RequestGroup.cc
  7288. * src/RequestGroup.h
  7289. * src/RequestGroupMan.cc
  7290. * src/option_processing.cc
  7291. * src/prefs.cc
  7292. * src/prefs.h
  7293. * test/CopyDiskAdaptorTest.cc
  7294. * test/FileTest.cc
  7295. * test/Makefile.am
  7296. * test/Makefile.in
  7297. * test/MultiDiskAdaptorTest.cc
  7298. * test/TestUtil.cc
  7299. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7300. Fixed the bug that DiskWriterEntry is not created when its
  7301. FileEntry.isRequested() is false and it doesn't share a piece with
  7302. other FileEntries that are requested. This bug causes segmentation fault
  7303. in the end.
  7304. * src/MultiDiskAdaptor.cc
  7305. * src/MultiDiskAdaptor.h
  7306. * src/MultiFileAllocationIterator.cc
  7307. * test/MultiDiskAdaptorTest.cc
  7308. * test/MultiFileAllocationIteratorTest.cc
  7309. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7310. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  7311. called if the number of file entries are greater than max open files.
  7312. * src/AbstractSingleDiskAdaptor.cc
  7313. * src/AbstractSingleDiskAdaptor.h
  7314. * src/DiskAdaptor.h
  7315. * src/MultiDiskAdaptor.cc
  7316. * src/MultiDiskAdaptor.h
  7317. * test/MultiDiskAdaptorTest.cc
  7318. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7319. Added a constuctor that receives struct timeval.
  7320. Added operator<.
  7321. * src/TimeA2.cc
  7322. * src/TimeA2.h
  7323. * test/TimeTest.cc
  7324. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7325. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  7326. * src/CookieParser.cc
  7327. * test/CookieParserTest.cc
  7328. * test/HttpResponseTest.cc
  7329. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Implmented the functions to parse date.
  7331. * src/TimeA2.cc
  7332. * src/TimeA2.h
  7333. * test/TimeTest.cc
  7334. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Added "Firefox3 Cookie" feature to FeatureConfig
  7336. * src/FeatureConfig.cc
  7337. * src/FeatureConfig.h
  7338. * test/FeatureConfigTest.cc
  7339. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. Bump up version number to 0.16.0b
  7341. * configure.ac
  7342. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7343. Use pkg-config if is is available.
  7344. * m4/openssl.m4
  7345. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  7347. * src/BtAnnounce.h
  7348. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. If an error occurred with a URI, remove identical URI from remaining
  7350. URI list because it is likely that same error occurred in the end and it
  7351. is waste of time.
  7352. * src/AbstractCommand.cc
  7353. * src/RequestGroup.cc
  7354. * src/RequestGroup.h
  7355. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7356. Removed wrong comment.
  7357. * src/DefaultPeerStorage.cc
  7358. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7359. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  7360. Added return value of getpid() to argument of srand() to achieve more
  7361. randomized value.
  7362. * src/SimpleRandomizer.cc
  7363. * src/SimpleRandomizer.h
  7364. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Contact tracker frequently when the number of connections are 0 and
  7366. download is not finished yet.
  7367. * src/ActivePeerConnectionCommand.cc
  7368. * src/BtAnnounce.h
  7369. * src/DefaultBtAnnounce.cc
  7370. * src/DefaultBtAnnounce.h
  7371. * test/MockBtAnnounce.h
  7372. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7373. Moved threshold values to UTPexExtensionMessage.
  7374. * src/DefaultBtInteractive.cc
  7375. * src/Peer.cc
  7376. * src/Peer.h
  7377. * src/UTPexExtensionMessage.cc
  7378. * src/UTPexExtensionMessage.h
  7379. * test/UTPexExtensionMessageTest.cc
  7380. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7381. Added _incoming member to Peer class and made it true if the peer
  7382. initiated connection. Don't add those peer to UTPex message.
  7383. If extended handshake is received, assign _incoming to false.
  7384. * src/DefaultBtInteractive.cc
  7385. * src/HandshakeExtensionMessage.cc
  7386. * src/Peer.cc
  7387. * src/Peer.h
  7388. * src/PeerListenCommand.cc
  7389. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  7391. Encoding Decoder. Removed size threshold for turning off on the fly
  7392. inflation because resulting file may or may not be inflated depending
  7393. on the file size and I think it is not expected by users.
  7394. This change fixes segmentation fault when Metalink file contains gzipped
  7395. file and its filesize is provided.
  7396. * src/HttpResponseCommand.cc
  7397. * src/HttpResponseCommand.h
  7398. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Made Cookie immutable.
  7400. * src/Cookie.cc
  7401. * src/Cookie.h
  7402. * src/CookieParser.cc
  7403. * src/CookieParser.h
  7404. * src/CookieStorage.cc
  7405. * test/CookieParserTest.cc
  7406. * test/CookieStorageTest.cc
  7407. * test/NsCookieParserTest.cc
  7408. * test/Sqlite3MozCookieParserTest.cc
  7409. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7410. Removed CookieBox, CookieBoxFactory.
  7411. * src/CookieBox.cc
  7412. * src/CookieBox.h
  7413. * src/CookieBoxFactory.cc
  7414. * src/CookieBoxFactory.h
  7415. * src/Makefile.am
  7416. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Use CookieStorage class instead of CookieBox class.
  7418. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  7419. * src/AbstractProxyRequestCommand.cc
  7420. * src/CookieStorage.cc
  7421. * src/DownloadEngine.cc
  7422. * src/DownloadEngine.h
  7423. * src/HttpConnection.cc
  7424. * src/HttpConnection.h
  7425. * src/HttpRequest.cc
  7426. * src/HttpRequest.h
  7427. * src/HttpRequestCommand.cc
  7428. * src/HttpResponse.cc
  7429. * src/HttpResponseCommand.cc
  7430. * src/HttpSkipResponseCommand.cc
  7431. * src/Makefile.am
  7432. * src/MultiUrlRequestInfo.cc
  7433. * src/Request.cc
  7434. * src/Request.h
  7435. * src/main.cc
  7436. * test/AllTest.cc
  7437. * test/CookieStorageTest.cc
  7438. * test/CookieTest.cc
  7439. * test/HttpRequestTest.cc
  7440. * test/HttpResponseTest.cc
  7441. * test/Makefile.am
  7442. * test/NsCookieParserTest.cc
  7443. * test/Sqlite3MozCookieParserTest.cc
  7444. * test/nscookietest.txt
  7445. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7446. Updated
  7447. * test/Cookies.sqlite
  7448. * test/nscookietest.txt
  7449. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Added tests for CookieStorage::load()
  7451. * test/CookieStorageTest.cc
  7452. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. Added CookieStorage class which is based on RFC2109 and manages cookies
  7454. more strictly than CookieBox and CookieBoxFactory class.
  7455. * src/CookieStorage.cc
  7456. * src/CookieStorage.h
  7457. * src/Cookie.cc
  7458. * src/Cookie.h
  7459. * test/CookieStorageTest.cc
  7460. * test/CookieTest.cc
  7461. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Fixed the bug that commands are created more than the number of pieces.
  7463. * src/RequestGroup.cc
  7464. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7465. Fixed infinite loop bug in FTP when SIZE command failed.
  7466. * src/FtpNegotiationCommand.cc
  7467. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7468. Removed DirectDiskAdaptorTest.h
  7469. * test/Makefile.am
  7470. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7471. Fixed chunk checksum validation cannot detect trailing garbage data.
  7472. BUG#2074141
  7473. * src/AbstractSingleDiskAdaptor.cc
  7474. * src/AbstractSingleDiskAdaptor.h
  7475. * src/CheckIntegrityEntry.cc
  7476. * src/CheckIntegrityEntry.h
  7477. * src/DiskAdaptor.h
  7478. * src/MultiDiskAdaptor.cc
  7479. * src/MultiDiskAdaptor.h
  7480. * src/RequestGroup.cc
  7481. * test/DirectDiskAdaptorTest.cc
  7482. * test/MultiDiskAdaptorTest.cc
  7483. * test/TestUtil.cc
  7484. * test/TestUtil.h
  7485. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7486. Bump up version number of dht.dat file to 3. In version 3 format, time
  7487. is stored in 64bit, network byte order.
  7488. New build can load old format(version 2) but it saves the file in new
  7489. format. It means once you used new build, your dht.dat becomes
  7490. incompatible with older build.
  7491. * src/DHTRoutingTableDeserializer.cc
  7492. * src/DHTRoutingTableSerializer.cc
  7493. * test/DHTRoutingTableSerializerTest.cc
  7494. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  7496. * test/Makefile.am
  7497. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. Bump up version number of .aria2 control file to 0001.
  7499. New aria2 can still load version 0000 file but it saves the file in
  7500. version 0001 format. It means that new aria2 can resume download
  7501. started by old aria2 but the opposite is not true.
  7502. * src/DefaultBtProgressInfoFile.cc
  7503. * src/DefaultBtProgressInfoFile.h
  7504. * test/DefaultBtProgressInfoFileTest.cc
  7505. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Added ntoh64 and hton64 as inline functions.
  7507. * src/Util.cc
  7508. * test/UtilTest.cc
  7509. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Added sqlite3 depenency and Firefox3 cookie support.
  7511. * README
  7512. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. State that firefox3 cookie is supported explicitly in the usage.
  7514. * src/usage_text.h
  7515. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7516. Externalized message.
  7517. * src/RequestGroupMan.cc
  7518. * src/message.h
  7519. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7520. Save temporary file first and rename to the destination on success.
  7521. Added test cases.
  7522. * src/RequestGroupMan.cc
  7523. * test/RequestGroupManTest.cc
  7524. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7525. Fixed the bug that the number of connected peer is exceeding the limit
  7526. (55 by default) in seeding mode.
  7527. Multiplied 0.8 to _maxUploadSpeedLimit.
  7528. * src/ActivePeerConnectionCommand.cc
  7529. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7530. Clear table item.
  7531. * src/Dictionary.cc
  7532. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7533. Fixed error handling of lseek.
  7534. * src/AbstractDiskWriter.cc
  7535. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7536. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  7537. style cookie file.
  7538. * src/usage_text.h
  7539. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7540. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  7541. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  7542. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  7543. * src/Util.cc
  7544. * src/Util.h
  7545. * src/CookieParser.cc
  7546. * test/UtilTest.cc
  7547. * test/CookieParserTest.cc
  7548. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7549. Separate the implementation to load old mozilla format of cookie to
  7550. NsCookieParser class.
  7551. * src/CookieBoxFactory.cc
  7552. * src/CookieBoxFactory.h
  7553. * src/NsCookieParser.cc
  7554. * src/NsCookieParser.h
  7555. * test/NsCookieParserTest.cc
  7556. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7557. Made parse() const
  7558. * src/Sqlite3MozCookieParser.cc
  7559. * src/Sqlite3MozCookieParser.h
  7560. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7561. Added firefox3 cookie support based on the patch submitted by
  7562. tizianomueller.
  7563. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  7564. this functionality.
  7565. * configure.ac
  7566. * m4/sqlite3.m4
  7567. * src/CookieBoxFactory.cc
  7568. * src/CookieBoxFactory.h
  7569. * src/Makefile.am
  7570. * src/Makefile.in
  7571. * src/Sqlite3MozCookieParser.cc
  7572. * src/Sqlite3MozCookieParser.h
  7573. * src/main.cc
  7574. * test/CookieBoxFactoryTest.cc
  7575. * test/Makefile.am
  7576. * test/Makefile.in
  7577. * test/Sqlite3MozCookieParserTest.cc
  7578. * test/badcookies.sqlite
  7579. * test/cookies.sqlite
  7580. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7581. Added Danish and Greek translations.
  7582. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  7583. Great thanks to all translators.
  7584. * po/LINGUAS
  7585. * po/el.po
  7586. * po/da.po
  7587. * po/es.po
  7588. * po/ca.po
  7589. * po/nn.po
  7590. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7591. Fixed man page: --follow-bittorrent should be --follow-torrent
  7592. * doc/aria2c.1.txt
  7593. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7594. Fixed: numCommand is less than the value specified in -C option.
  7595. * src/RequestGroup.cc
  7596. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Fixed occasional assertion failure in PieceSegment.
  7598. Calling PieceStorage::getMissingPiece(size_t) was missing after
  7599. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  7600. creation of duplicate segments and one of the segment was finished then
  7601. assertion failure was caused.
  7602. * src/SegmentMan.cc
  7603. * test/SegmentManTest.cc
  7604. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Added options to load/save the server's performance/status to a file
  7606. and the timeout to drop their data.
  7607. --server-stat-of=FILE specifies the file to which performance data
  7608. is saved.
  7609. --server-stat-if=FILE specifies the file to read previously saved
  7610. by --server-stat-of option. Might be used with --uri-selector=feedback.
  7611. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  7612. TIMEOUT is specified in seconds and the default value is 24hours.
  7613. * src/MultiUrlRequestInfo.cc
  7614. * src/OptionHandlerFactory.cc
  7615. * src/RequestGroupMan.cc
  7616. * src/RequestGroupMan.h
  7617. * src/ServerStatMan.cc
  7618. * src/ServerStatMan.h
  7619. * src/option_processing.cc
  7620. * src/prefs.cc
  7621. * src/prefs.h
  7622. * test/ServerStatManTest.cc
  7623. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7624. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  7625. * src/ServerStatMan.cc
  7626. * src/ServerStatMan.h
  7627. * test/ServerStatManTest.cc
  7628. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7629. Implemented ServerStatMan::load(...) function and its test case.
  7630. * src/ServerStat.cc
  7631. * src/ServerStat.h
  7632. * src/ServerStatMan.cc
  7633. * test/ServerStatManTest.cc
  7634. * test/ServerStatTest.cc
  7635. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. Use time_t instead of int32_t. Use int64_t where milli second is
  7637. expected.
  7638. * src/TimeA2.cc
  7639. * src/TimeA2.h
  7640. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7641. Implemented ServerStatMan::save(...) function and its test case.
  7642. * src/ServerStat.cc
  7643. * src/ServerStat.h
  7644. * src/ServerStatMan.cc
  7645. * src/ServerStatMan.h
  7646. * test/ServerStatManTest.cc
  7647. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7648. Now aria2 uses name attribute in Metalink as local filename in
  7649. BitTorrent downloads. BUG#2033999
  7650. * src/BtContext.h
  7651. * src/BtDependency.cc
  7652. * src/DefaultBtContext.cc
  7653. * src/DefaultBtContext.h
  7654. * src/SingleFileDownloadContext.cc
  7655. * src/SingleFileDownloadContext.h
  7656. * test/BtDependencyTest.cc
  7657. * test/DefaultBtContextTest.cc
  7658. * test/MockBtContext.h
  7659. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7660. Added AC_C_BIGENDIAN
  7661. * src/configure.ac
  7662. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7663. Limited numCommand less than or equal to the number of piece.
  7664. * src/RequestGroup.cc
  7665. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7666. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  7667. directive.
  7668. * test/DefaultPieceStorageTest.cc
  7669. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7670. Fixed memory leak in test code
  7671. * test/AnnounceListTest.cc
  7672. * test/DefaultPeerListProcessorTest.cc
  7673. * test/DefaultPeerStorageTest.cc
  7674. * test/MetaFileUtilTest.cc
  7675. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7676. Fixed wrong argument passing to BitfieldMan::isBitSet()
  7677. * src/DefaultPieceStorage.cc
  7678. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7679. Initialized _directIOAllowed
  7680. * src/MultiDiskAdaptor.cc
  7681. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Fixed memory leak
  7683. * src/GZipDecoder.cc
  7684. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7685. Fixed memory leak
  7686. * src/MetalinkParserStateMachine.cc
  7687. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7688. Fixed memory leak
  7689. * src/Dictionary.cc
  7690. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. Fixed memory leak
  7692. * src/IteratableChunkChecksumValidator.h
  7693. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Fixed unmatched malloc/free.
  7695. * src/IteratableChunkChecksumValidator.cc
  7696. * src/IteratableChecksumValidator.cc
  7697. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Removed max chunk size check. This change fixes BUG#2040169
  7699. * src/ChunkedDecoder.cc
  7700. * src/ChunkedDecoder.h
  7701. * test/ChunkedDecoderTest.cc
  7702. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. Implemented download speed based URI selection algorithm.
  7704. Introduced new option --uri-selector.
  7705. If --uri-selector=feedback is given, aria2 uses download speed observed
  7706. in the previous downloads and chooses fastest server in the URI list.
  7707. Currently at most 10 URIs are considered to introduce randomeness for
  7708. finding better servers. The speed is average download speed in the
  7709. downloads.
  7710. On the other hand, if --uri-selector=inorder is given, which is default,
  7711. URI is tried in order in URI list.
  7712. The usage text for the new option has not been written yet.
  7713. * src/AbstractCommand.cc
  7714. * src/DownloadCommand.cc
  7715. * src/DownloadEngine.cc
  7716. * src/DownloadEngineFactory.cc
  7717. * src/InOrderURISelector.cc
  7718. * src/InOrderURISelector.h
  7719. * src/OptionHandlerFactory.cc
  7720. * src/PeerStat.h
  7721. * src/RequestGroup.cc
  7722. * src/RequestGroup.h
  7723. * src/RequestGroupMan.cc
  7724. * src/RequestGroupMan.h
  7725. * src/SegmentMan.cc
  7726. * src/SegmentMan.h
  7727. * src/ServerStat.cc
  7728. * src/ServerStat.h
  7729. * src/ServerStatMan.cc
  7730. * src/ServerStatMan.h
  7731. * src/ServerStatURISelector.cc
  7732. * src/ServerStatURISelector.h
  7733. * src/URISelector.h
  7734. * src/option_processing.cc
  7735. * src/prefs.cc
  7736. * src/prefs.h
  7737. * test/InOrderURISelectorTest.cc
  7738. * test/RequestGroupManTest.cc
  7739. * test/ServerStatManTest.cc
  7740. * test/ServerStatURISelectorTest.cc
  7741. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. * Release 0.15.1+2
  7743. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. Bump up version number to 0.15.1+2
  7745. * configure.ac
  7746. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7747. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  7748. * m4/aria2_arg.m4
  7749. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. * Release 0.15.1+1
  7751. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7752. Bump up version number to 0.15.1+1
  7753. * configure.ac
  7754. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7755. Fixed the bug that causes segmentaion fault when resuming download
  7756. using metalink without size tag. Reproducible only using HTTP URI.
  7757. * src/HttpResponseCommand.cc
  7758. * src/FtpNegotiationCommand.cc
  7759. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. * Release 0.15.1
  7761. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7762. Updated Bulgarian and French translations, thanks to all translators.
  7763. * po/bg.po
  7764. * po/fr.po
  7765. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7766. Bump up version number to 0.15.1
  7767. * configure.ac
  7768. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7769. Avoid repeated call of gettimeofday() when calculating speed.
  7770. * src/SpeedCalc.cc
  7771. * src/SpeedCalc.h
  7772. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. Removed writable check when socket's send buffer is full in BitTorrent
  7774. downloads to lower CPU usage.
  7775. * src/PeerInteractionCommand.cc
  7776. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. Fixed broken gzip inflation.
  7778. Turn off segmented downloading if gzip content is smaller than or equal
  7779. to 1MiB and inflate the data on the fly, because HTTP response header
  7780. doesn't contain the length of inflated file we can't determin where
  7781. the chunk of data should be written.
  7782. On the other hand, if gzip content is larger than 1MB, then turn off
  7783. on the fly inflation, because some servers returns "content-type: gzip"
  7784. for *.tgz, *.gz files.
  7785. * src/DownloadCommand.cc
  7786. * src/HttpResponseCommand.cc
  7787. * src/HttpResponseCommand.h
  7788. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7789. Applied tizianomueller's patch to fix compile error.
  7790. * test/BitfieldManTest.cc
  7791. * test/BtRequestMessageTest.cc
  7792. * test/DefaultBtContextTest.cc
  7793. * test/DefaultDiskWriterTest.cc
  7794. * test/DefaultPieceStorageTest.cc
  7795. * test/HttpHeaderProcessorTest.cc
  7796. * test/HttpResponseTest.cc
  7797. * test/Metalink2RequestGroupTest.cc
  7798. * test/MetalinkParserControllerTest.cc
  7799. * test/MetalinkProcessorTest.cc
  7800. * test/PeerSessionResourceTest.cc
  7801. * test/UtilTest.cc
  7802. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7803. * Release 0.15.0
  7804. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7805. Reordered src files in POTFILES.in so that usage text appears first.
  7806. * po/POTFILES.in
  7807. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7808. Bump up version number to 0.15.0
  7809. * configure.ac
  7810. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. Added Bulgarian translation.
  7812. Updated Catalan, Spanish, French and Japanese translations.
  7813. Thanks to all translators.
  7814. * po/LINGUAS
  7815. * po/bg.po
  7816. * po/ca.po
  7817. * po/es.po
  7818. * po/fr.po
  7819. * po/ja.po
  7820. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. Updated feature list. Added libz for dependency section.
  7822. Added a description about unit testing using CppUnit.
  7823. * README
  7824. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7825. Added a test for libz. Quoted where it is necessary.
  7826. * build_test.sh
  7827. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Added GZip to `Enabled Features' list.
  7829. * src/FeatureConfig.cc
  7830. * src/FeatureConfig.h
  7831. * test/FeatureConfigTest.cc
  7832. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7833. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  7834. the transfer has not yet started.
  7835. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  7836. * src/SegmentMan.cc
  7837. * src/SegmentMan.h
  7838. * test/SegmentManTest.cc
  7839. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7840. Cache last calculated average download/upload speed.
  7841. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  7842. cached value.
  7843. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  7844. * src/PeerStat.h
  7845. * src/SpeedCalc.cc
  7846. * src/SpeedCalc.h
  7847. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Call parseUrl directly.
  7849. * src/Request.cc (resetUrl)
  7850. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. Supported absolute/relative path in Location header field.
  7852. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  7853. * src/HttpHeader.cc
  7854. * src/HttpHeader.h
  7855. * src/HttpResponse.cc
  7856. * src/HttpSkipResponseCommand.cc
  7857. * src/Request.cc
  7858. * test/HttpHeaderTest.cc
  7859. * test/HttpResponseTest.cc
  7860. * test/RequestTest.cc
  7861. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. Changed help text for --load-cookie option.
  7863. * doc/aria2c.1.txt
  7864. * src/usage_text.h
  7865. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Regenerated test/Makefile.in to remove stale ChangeLog.
  7867. * test/Makefile.in
  7868. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. Updated po files.
  7870. * po/aria2c.pot
  7871. * po/*.po
  7872. * po/*.gmo
  7873. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7874. Bump up version number to 0.15.0b
  7875. * configure.ac
  7876. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. Externalize messages.
  7878. * src/RequestGroupMan.cc
  7879. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  7880. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7881. Use File::exists() instead of File::isFile() to allow non-regular file
  7882. such as block special files.
  7883. * src/AbstractDiskWriter.cc
  7884. * src/MultiDiskWriter.cc
  7885. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7886. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  7887. * src/gai_strerror.h
  7888. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7889. Fixed compile error. Thanks gknauf for the patch.
  7890. * src/asctime_r.c
  7891. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Included asctime_r.h from a2time.h.
  7893. * src/a2time.h
  7894. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. Added a message "aria2 doesn't verify signature" to log message when
  7896. signature file is saved.
  7897. * src/RequestGroupMan.cc
  7898. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. Added the ability to save signature when download is completed if
  7900. signature is available. The filename of signature file is the path to
  7901. download file followed by ".sig". If it already exists, then signature
  7902. will not be saved.
  7903. * src/RequestGroupMan.cc
  7904. * src/Signature.cc
  7905. * test/SignatureTest.cc
  7906. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7907. Updated the descriptions for --bt-seed-unverified.
  7908. * doc/aria2c.1
  7909. * doc/aria2c.1.html
  7910. * doc/aria2c.1.txt
  7911. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  7913. that this is not going to verify files using piece hashes.
  7914. * src/HelpItemFactory.cc
  7915. * src/OptionHandlerFactory.cc
  7916. * src/RequestGroup.cc
  7917. * src/option_processing.cc
  7918. * src/prefs.cc
  7919. * src/prefs.h
  7920. * src/usage_text.h
  7921. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Added the ability to retrieve signature from Metalink file.
  7923. A retrieved signature is stored in Signature class and it is held by
  7924. DownloadContext class. Note that aria2 doesn't verify signature.
  7925. * src/DownloadContext.cc
  7926. * src/DownloadContext.h
  7927. * src/Makefile.am
  7928. * src/Makefile.in
  7929. * src/Metalink2RequestGroup.cc
  7930. * src/MetalinkEntry.cc
  7931. * src/MetalinkEntry.h
  7932. * src/MetalinkParserController.cc
  7933. * src/MetalinkParserController.h
  7934. * src/MetalinkParserStateMachine.cc
  7935. * src/MetalinkParserStateMachine.h
  7936. * src/Signature.cc
  7937. * src/Signature.h
  7938. * src/SignatureMetalinkParserState.cc
  7939. * src/SignatureMetalinkParserState.h
  7940. * src/VerificationMetalinkParserState.cc
  7941. * src/VerificationMetalinkParserState.h
  7942. * test/Metalink2RequestGroupTest.cc
  7943. * test/MetalinkParserControllerTest.cc
  7944. * test/MetalinkProcessorTest.cc
  7945. * test/test.xml
  7946. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7947. Close DiskAdaptor after renaming file.
  7948. * src/RequestGroup.cc
  7949. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Corrected indentation
  7951. * src/DefaultBtProgressInfoFile.cc
  7952. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Moved the calls of std::ios::exceptions() inside of try-catch block
  7954. because if an error occurred in constructor of std::fstream, then
  7955. exception is thrown immediately when std::ios::exceptions() is called
  7956. which results unhandled exception and aria2c aborts.
  7957. * src/DefaultBtProgressInfoFile.cc
  7958. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7959. Added the test for the previous change in DefaultBtContext.cc
  7960. * test/DefaultBtContextTest.cc
  7961. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7962. Fixed the bug that causes infinite loop when the number of pieces are
  7963. fewer than allowed fast set size which is 10 by default.
  7964. * src/DefaultBtContext.cc
  7965. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. Updated the descriptions for -j, -s. Added --bt-seed.
  7967. * doc/aria2c.1
  7968. * doc/aria2c.1.html
  7969. * doc/aria2c.1.txt
  7970. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7971. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  7972. aria2 seeds previously downloaded files without validating piece hashs.
  7973. * src/HelpItemFactory.cc
  7974. * src/OptionHandlerFactory.cc
  7975. * src/RequestGroup.cc
  7976. * src/option_processing.cc
  7977. * src/prefs.cc
  7978. * src/prefs.h
  7979. * src/usage_text.h
  7980. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7981. Updated DESCRIPTION of man page.
  7982. * doc/aria2c.1
  7983. * doc/aria2c.1.html
  7984. * doc/aria2c.1.txt
  7985. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  7987. Don't define `struct addrinfo' when __sun is defined.
  7988. * src/getaddrinfo.h
  7989. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  7991. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  7992. second argument is of type `struct _stati64'. Otherwise it is defined as
  7993. `struct stat'.
  7994. * src/AbstractDiskWriter.cc
  7995. * src/File.cc
  7996. * src/File.h
  7997. * src/a2io.h
  7998. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7999. Fixed the compile error in hurd-i386
  8000. See the original bug report:
  8001. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  8002. * src/a2io.h
  8003. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Code cleanup.
  8005. * src/PeerAbstractCommand.cc
  8006. * src/PeerAbstractCommand.h
  8007. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8008. Removed TransferEncoding.
  8009. * src/DownloadCommand.cc
  8010. * src/DownloadCommand.h
  8011. * src/HttpResponseCommand.cc
  8012. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8013. Updated po files.
  8014. * po/aria2c.pot
  8015. * po/*.po
  8016. * po/*.gmo
  8017. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8018. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  8019. * src/A2STR.cc
  8020. * src/A2STR.h
  8021. * src/ChunkedDecoder.cc
  8022. * src/ChunkedDecoder.h
  8023. * src/ChunkedEncoding.cc: Removed
  8024. * src/ChunkedEncoding.h: Removed
  8025. * src/DownloadCommand.cc
  8026. * src/DownloadCommand.h
  8027. * src/HttpDownloadCommand.cc
  8028. * src/HttpResponse.cc
  8029. * src/HttpResponse.h
  8030. * src/HttpResponseCommand.cc
  8031. * src/HttpSkipResponseCommand.cc
  8032. * src/HttpSkipResponseCommand.h
  8033. * src/Makefile.am
  8034. * src/TransferEncoding.h: Removed
  8035. * test/ChunkedDecoderTest.cc
  8036. * test/ChunkedEncodingTest.cc: Removed
  8037. * test/HttpResponseTest.cc
  8038. * test/Makefile.am
  8039. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. Use append instead of insert.
  8041. * src/GZipDecoder.cc
  8042. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. Updated doc
  8044. * src/Decoder.h
  8045. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8046. Updated usage text for -s option.
  8047. * src/usage_text.h
  8048. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8049. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  8050. * src/Request.cc
  8051. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8052. Cleaned up configure.ac.
  8053. * configure.ac
  8054. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8055. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  8056. AC_ARG_ENABLE.
  8057. * configure.ac
  8058. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8059. Added gzip, deflate decoding support in HTTP using libz. If compiled
  8060. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  8061. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  8062. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  8063. fly and writes decoded data to a local disk.
  8064. * README
  8065. * README.html
  8066. * configure.ac
  8067. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  8068. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  8069. * m4/libz.m4
  8070. * src/Decoder.h
  8071. * src/DownloadCommand.cc
  8072. * src/DownloadCommand.h
  8073. * src/Exception.h
  8074. * src/GZipDecoder.cc
  8075. * src/GZipDecoder.h
  8076. * src/HttpHeader.cc
  8077. * src/HttpHeader.h
  8078. * src/HttpRequest.cc
  8079. * src/HttpRequest.h
  8080. * src/HttpResponse.cc
  8081. * src/HttpResponse.h
  8082. * src/HttpResponseCommand.cc
  8083. * src/Makefile.am
  8084. * test/GZipDecoderTest.cc
  8085. * test/HttpRequestTest.cc
  8086. * test/HttpResponseTest.cc
  8087. * test/Makefile.am
  8088. * test/Makefile.in
  8089. * test/gzip_decode_test.gz
  8090. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8091. Clarified usage of -j option.
  8092. * src/usage_text.h
  8093. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Disabled getting size from the response of RETR.
  8095. If SIZE command failed, then disable resuming and segmented downloading.
  8096. * src/FtpConnection.cc
  8097. * src/FtpConnection.h
  8098. * src/FtpNegotiationCommand.cc
  8099. * src/FtpNegotiationCommand.h
  8100. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8101. Use digits to find first byte of file size, which makes the intention
  8102. of the code clearer.
  8103. * src/FtpConnection.cc
  8104. Don't call validateTotalLength() when size is 0.
  8105. * src/FtpNegotiationCommand.cc
  8106. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8107. Updated po files.
  8108. * po/aria2c.pot
  8109. * po/*.gmo
  8110. * po/*.po
  8111. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Clarified usage text for --split option.
  8113. * src/usage_text.h
  8114. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8115. Bump up version number to 0.15.0dev. "dev" means "development"
  8116. version, which means I started the development of the next release!
  8117. * src/configure.ac
  8118. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8119. If FTP server returns negative response with REST raw command and
  8120. requested range is not 0, throw exception. If requested range is 0,
  8121. continue download a file from 0 byte.
  8122. * src/FtpNegotiationCommand.cc
  8123. * src/FtpNegotiationCommand.h
  8124. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Supported FTP server which don't recognize SIZE raw command.
  8126. If SIZE raw command is failed, aria2 will try to get file size
  8127. from the response of RETR raw command. If both attempts are failed,
  8128. then resuming and segmented downloading are disabled.
  8129. * src/FtpConnection.cc
  8130. * src/FtpConnection.h
  8131. * src/FtpNegotiationCommand.cc
  8132. * src/FtpNegotiationCommand.h
  8133. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8134. * Release 0.14.0+1
  8135. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8136. Bump up version number to 0.14.0+1
  8137. * src/configure.ac
  8138. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Fixed the code that refers static member variable from non-static
  8140. context.
  8141. * src/DefaultPeerStorage.cc
  8142. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8143. * Release 0.14.0
  8144. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. Added build test script
  8146. * build_test.sh
  8147. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8148. Updated ja.po
  8149. * src/ja.po
  8150. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8151. Bump up version number to 0.14.0
  8152. * src/configure.ac
  8153. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8154. Updated ja.po and fr.po. Great thanks for french translators and
  8155. Sebastien WILLEMIJNS.
  8156. * po/fr.po
  8157. * po/ja.po
  8158. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Added configure option to enable/disable epoll support.
  8160. * configure.ac
  8161. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8162. Updated man page.
  8163. * doc/aria2c.1.txt
  8164. * doc/aria2c.1
  8165. * doc/aria2c.1.html
  8166. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. Added missing default value '5' to the usage of --split option.
  8168. * src/HelpItemFactory.cc
  8169. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8170. Filled up pieces based on the number of missing blocks, rather than
  8171. simplay the number of piece * block length.
  8172. * src/BtRequestFactory.h
  8173. * src/DefaultBtInteractive.cc
  8174. * src/DefaultBtInteractive.h
  8175. * src/DefaultBtRequestFactory.cc
  8176. * src/DefaultBtRequestFactory.h
  8177. * src/Piece.cc
  8178. * src/Piece.h
  8179. * test/BitfieldManTest.cc
  8180. * test/DefaultBtRequestFactoryTest.cc
  8181. * test/MockBtRequestFactory.h
  8182. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Made _epEvents a member variable.
  8184. * src/DownloadEngine.cc
  8185. * src/DownloadEngine.h
  8186. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Cancel download if http redirect is bounded more than 20 times.
  8188. * src/AbstractCommand.cc
  8189. * src/HttpSkipResponseCommand.cc
  8190. * src/Request.cc
  8191. * src/Request.h
  8192. * test/RequestTest.cc
  8193. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8194. Fixed unhandled exception(removed keyword `new').
  8195. * src/SocketCore.cc (initEPOLL)
  8196. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8197. Removed visit(const MetaEntry*)
  8198. * src/MetaEntryVisitor.h:
  8199. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  8200. and made them virtual.
  8201. * src/BencodeVisitor.h
  8202. * src/BencodeVisitor.cc
  8203. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Updated po files.
  8205. * po/aria2c.pot
  8206. * po/*.po
  8207. * po/*.gmo
  8208. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8209. Moved the call setWriteCheckSocket inside the previous clause to reduce
  8210. the number of socket to watch out.
  8211. * src/PeerInteractionCommand.cc
  8212. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8213. When there is not enough space in disk when writing a chunk of data,
  8214. aria2 now prints the message to the console to warn user and aborts
  8215. its download. Not all downloads are canceled because some downloads
  8216. may use another disk or partition. BUG#1640332
  8217. * src/AbstractDiskWriter.cc
  8218. * src/PeerAbstractCommand.cc
  8219. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  8220. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  8221. setHaltRequested(true) to cancel download.
  8222. * src/PeerInteractionCommand.h
  8223. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8224. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  8225. socket from int to sock_t as sockets are unsigned in Windows.
  8226. For AsyncNameResolver, DownloadEngine, I did additional modification
  8227. for the portion of the code changed according to epoll support.
  8228. I defined sock_t in a2netcompat.h to use sock_t without including
  8229. SocketCore.h.
  8230. * src/AsyncNameResolver.cc
  8231. * src/AsyncNameResolver.h
  8232. * src/DownloadEngine.cc
  8233. * src/DownloadEngine.h
  8234. * src/SocketCore.cc
  8235. * src/SocketCore.h
  8236. * src/a2netcompat.h
  8237. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8238. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  8239. changes in the patch were applied.
  8240. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  8241. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  8242. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  8243. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8244. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  8245. a2io.h and common.h were modified.
  8246. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  8247. MinGW.
  8248. * src/common.h: Changed off_t to 64 bit in MinGW.
  8249. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8250. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8251. only a2netcompat.h is modified.
  8252. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  8253. directives.
  8254. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8255. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  8256. only gai_strerror.h is modified.
  8257. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  8258. winsock errors in MinGW.
  8259. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8260. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  8261. follow sources are applied.
  8262. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  8263. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  8264. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  8265. I included locale.h from Platform.cc.
  8266. * src/main.cc: Moved common setup/teardown code to Platform class.
  8267. * test/AllTest.cc: Use Platform class.
  8268. Set locale to C in AllTest.cc to prevent the messages to be localized.
  8269. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8270. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  8271. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  8272. * test/HttpRequestTest.cc: Casted to off_t where it should.
  8273. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. Applied Ross's aria2-0.13.2+1-mingw.patch and
  8275. aria2-0.13.2+1-mingw-2.patch.
  8276. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  8277. systems which don't have termious.h. I moved the directive inside of
  8278. if(isTTY) { ... clause so that line is wiped out without termious.h.
  8279. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  8280. anyway.
  8281. * src/asctime_r.h
  8282. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  8283. I added 2nd argument to the prototype declaration.
  8284. * src/StringFormat.cc: Get rid of vasprintf.
  8285. * src/getaddrinfo.h: Fixed constants.
  8286. * configure.ac: Added the check for asctime_r function.
  8287. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  8288. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8289. Added writable test for Socket when the sending message is in progress.
  8290. Usually the sending message is piece message. Without wriable check,
  8291. upload latency is dropped to more than 1sec.
  8292. * src/PeerInteractionCommand.cc
  8293. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8294. Create only requested files and files which shares a piece with
  8295. requested file in multi-torrent downloads. Directory structures are
  8296. also created in the same rule.
  8297. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  8298. DiskWriterEntry as in the previous implementation.
  8299. * src/MultiDiskWriter.cc
  8300. * src/MultiFileAllocationIterator.cc
  8301. * src/MultiFileAllocationIterator.h
  8302. * test/MultiFileAllocationIteratorTest.cc
  8303. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Commented out -lprofiler
  8305. * src/Makefile.am
  8306. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8307. Bump up version number to 0.14.0b.
  8308. * src/configure.ac
  8309. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8310. Actively establish connection to peers in seeding, when peer cache
  8311. is not full and max upload speed limit is not reached.
  8312. * src/ActivePeerConnectionCommand.cc
  8313. * src/ActivePeerConnectionCommand.h
  8314. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8315. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  8316. to make room more fleshy, recently found peers.
  8317. Peer::_badConditionStartTime is not used anymore. Consider to remove
  8318. it.
  8319. * src/DefaultPeerStorage.cc
  8320. * test/DefaultPeerStorageTest.cc
  8321. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8322. Returns cached data only when the previous receiveHandshake() is called
  8323. with peek = true.
  8324. * src/PeerConnection.cc (receiveHandshake)
  8325. * src/PeerConnection.h (receiveHandshake)
  8326. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Changed default value of -s option from 1 to 5.
  8328. Also max value of -s option is changed from 5 to 16.
  8329. * src/HelpItemFactory.cc
  8330. * src/OptionHandlerFactory.cc
  8331. * src/option_processing.cc
  8332. * src/usage_text.h
  8333. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. Changed -s options behavior. Now it means the number of connections
  8335. made simultaneously in each http/ftp download.
  8336. If 1 URL is specified, the behavior is the same with old implementation.
  8337. If -s N is given and more than N URLs are specified, first N URLs are
  8338. used and remaining URLs are used for backup. If less than N URLs are
  8339. specified, some of URLs are used more than once so that totally N
  8340. connections are made simultaneously.
  8341. * src/main.cc
  8342. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8343. Included missing iosfwd or ostream header.
  8344. * src/RequestGroupMan.cc
  8345. * src/TaggedItem.cc
  8346. * src/TaggedItem.h
  8347. * src/Util.cc
  8348. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8349. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  8350. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  8351. * src/HttpConnection.cc: Included missing sstream.
  8352. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Added --bt-max-open-files option.
  8354. * src/DefaultPieceStorage.cc
  8355. * src/HelpItemFactory.cc
  8356. * src/MultiDiskAdaptor.cc
  8357. * src/MultiDiskAdaptor.h
  8358. * src/OptionHandlerFactory.cc
  8359. * src/option_processing.cc
  8360. * src/prefs.cc
  8361. * src/prefs.h
  8362. * src/usage_text.h
  8363. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8364. Fixed the bug that aria2 aborts when a path to a directory is given
  8365. in command-line.
  8366. * src/ProtocolDetector.cc
  8367. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8368. Limited the number files opened in each BitTorrent download. The default
  8369. value is 100. The option to change this value will be added.
  8370. * src/MultiDiskAdaptor.cc
  8371. * src/MultiDiskAdaptor.h
  8372. * src/MultiFileAllocationIterator.cc
  8373. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. Fixed the bug that HTTP downloads don't start with old libraries.
  8375. * src/HttpHeaderProcessor.cc
  8376. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8377. Use empty() instead of size() > 0.
  8378. * src/HttpConnection.cc
  8379. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8380. Drop connection if the incoming peer ID is the same with localhost's
  8381. one. The previous implementation drops connection when incoming peer's
  8382. IP address is the same with localhost's one.
  8383. * src/PeerListenCommand.cc
  8384. * src/DefaultBtInteractive.cc
  8385. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8386. Returns cached data without checking whether socket is readable
  8387. if the cache is available.
  8388. * src/PeerConnection.cc (receiveHandshake)
  8389. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8390. Included stdint.h
  8391. * src/common.h
  8392. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Removed duplicate HAVE_GETTIMEOFDAY
  8394. * src/Makefile.am
  8395. * src/Makefile.in
  8396. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8397. Use interval as a minInterval when minInterval is not supplied.
  8398. * src/DefaultBtAnnounce.cc
  8399. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8400. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  8401. attempt is failed, then 2nd attempt get kicked out more quickly.
  8402. And it is now static const member of DefaultBtAnnounce.
  8403. * src/DefaultBtAnnounce.h
  8404. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8405. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  8406. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  8407. * src/ActivePeerConnectionCommand.cc
  8408. * src/BtConstants.h
  8409. * src/BtRuntime.h
  8410. * src/DHTGetPeersCommand.cc
  8411. * src/DefaultBtAnnounce.cc
  8412. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  8413. BtRuntime::MAX_PEERS.
  8414. * src/DefaultPeerStorage.h
  8415. * src/InitiatorMSEHandshakeCommand.cc
  8416. * src/PeerInitiateConnectionCommand.cc
  8417. * src/PeerInteractionCommand.cc
  8418. * src/PeerReceiveHandshakeCommand.cc
  8419. * src/TrackerWatcherCommand.cc
  8420. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8421. Always Connect to _numNewConnection
  8422. * src/ActivePeerConnectionCommand.cc
  8423. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. Made `begin' unsigned int.
  8425. * src/GrowSegment.h
  8426. * src/Piece.cc
  8427. * src/Piece.h
  8428. * src/PiecedSegment.cc
  8429. * src/PiecedSegment.h
  8430. * src/Segment.h
  8431. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8432. Calculate piece hash when data is arrived if the data is arrived in
  8433. order. This removes additional read operation for hash calculation.
  8434. If the data is arrived in out of order, the hash is calucated when the
  8435. piece is completed. This is the same behavior as the old implementation.
  8436. * src/BtPieceMessage.cc
  8437. * src/DefaultBtProgressInfoFile.cc
  8438. * src/DefaultPieceStorage.cc
  8439. * src/DownloadCommand.cc
  8440. * src/DownloadCommand.h
  8441. * src/DownloadEngine.cc
  8442. * src/GrowSegment.cc
  8443. * src/GrowSegment.h
  8444. * src/Piece.cc
  8445. * src/Piece.h
  8446. * src/PiecedSegment.cc
  8447. * src/PiecedSegment.h
  8448. * src/Segment.h
  8449. * test/PieceTest.cc
  8450. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8451. Try to keep the ordering of outgoing piece message.
  8452. * src/DefaultBtMessageDispatcher.cc
  8453. (DefaultBtMessageDispatcher::sendMessages)
  8454. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8455. Fixed busy loop when error/hup epoll events occur.
  8456. * src/AbstractCommand.cc
  8457. * src/PeerAbstractCommand.cc
  8458. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8459. Added --bt-request-peer-speed-limit option, which was a constant
  8460. SLOW_SPEED_THRESHOLD.
  8461. * src/ActivePeerConnectionCommand.cc
  8462. * src/ActivePeerConnectionCommand.h
  8463. * src/BtConstants.h
  8464. * src/HelpItemFactory.cc
  8465. * src/OptionHandlerFactory.cc
  8466. * src/PeerReceiveHandshakeCommand.cc
  8467. * src/option_processing.cc
  8468. * src/prefs.cc
  8469. * src/prefs.h
  8470. * src/usage_text.h
  8471. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8472. Removed repeated call of getTopDirPath(). Instead, call it once and
  8473. cache the result.
  8474. * src/MultiDiskAdaptor.cc
  8475. * src/MultiDiskAdaptor.h
  8476. (mkdir, openFile, initAndOpenFile, openExistingFile)
  8477. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. Fixed compile error on debian etch.
  8479. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  8480. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  8481. it is undefined.
  8482. * src/Util.cc (ULLONG_MAX)
  8483. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8484. Added epoll support. Use epoll if it is available. If not, use select.
  8485. When async dns is enabled in compile time, epoll support is enabled
  8486. only when aria2 is built with c-ares. This condition statement is
  8487. defined in a2io.h.
  8488. Currently aria2 supports both c-ares and ares, but ares is maintained
  8489. for quite a while and debian already has c-ares package, ares support
  8490. will be dropped in the future version.
  8491. * configure.ac
  8492. * src/AbstractCommand.cc
  8493. * src/AsyncNameResolver.cc
  8494. * src/AsyncNameResolver.h
  8495. * src/Command.cc
  8496. * src/Command.h
  8497. * src/DownloadEngine.cc
  8498. * src/DownloadEngine.h
  8499. * src/PeerAbstractCommand.cc
  8500. * src/SocketCore.cc
  8501. * src/SocketCore.h
  8502. * src/a2io.h
  8503. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  8505. directive.
  8506. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8507. Do not do write operation to /dev/null file.
  8508. * src/LogFactory.cc
  8509. * src/SimpleLogger.cc
  8510. Replaced vasprintf with vsnprintf
  8511. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  8512. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8513. * src/BtRequestMessage.cc
  8514. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  8515. for segmentation fault caused by previous commit.
  8516. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8517. Reduced the usage of gettimeofday().
  8518. * src/DefaultBtMessageDispatcher.cc
  8519. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  8520. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8521. * src/RequestSlot.cc
  8522. * src/RequestSlot.h
  8523. (RequestSlot::isTimeout)
  8524. Made RequestSlot have a reference to Piece object to avoid find
  8525. Piece repeatedly.
  8526. * src/DefaultBtMessageDispatcher.cc
  8527. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  8528. * src/RequestSlot.cc
  8529. * src/RequestSlot.h
  8530. (RequestSlot::getPiece)
  8531. * test/DefaultBtMessageDispatcherTest.cc
  8532. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. * src/TimeA2.cc
  8534. * src/TimeA2.h
  8535. (Time::difference): New function.
  8536. (Time::elapsed): Done optimization.
  8537. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8538. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  8539. directive.
  8540. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. * src/option_processing.cc: Added missing `defined' keyword to #if
  8542. directive.
  8543. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8544. Bump up version number to 0.13.2+1
  8545. * src/configure.ac
  8546. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8547. Refactored broken outstanding piece handling.
  8548. * src/DefaultPieceStorage.cc
  8549. * src/DefaultPieceStorage.h
  8550. * src/Piece.cc
  8551. * src/Piece.h
  8552. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8553. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  8554. name collision of static variable and predefined macro.
  8555. * src/BtContext.cc
  8556. * src/BtContext.h
  8557. * src/CookieBoxFactory.cc
  8558. * src/CookieBoxFactory.h
  8559. * src/CookieParser.cc
  8560. * src/CookieParser.h
  8561. * src/DefaultBtContext.cc
  8562. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. * src/RequestGroup.cc
  8564. (RequestGroup::createInitialCommand): Use empty() instead of size().
  8565. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8566. * Release 0.13.2
  8567. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  8569. * po/fr.po
  8570. * po/ja.po
  8571. * po/aria2c.pot
  8572. * po/*.po
  8573. * po/*.gmo
  8574. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8575. Bump up version number to 0.13.2
  8576. * src/configure.ac
  8577. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Refactord.
  8579. * src/RequestGroupMan.cc
  8580. (removeStoppedGroup)
  8581. (fillRequestGroupFromReserver)
  8582. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. Fixed compile error on Ubuntu.
  8584. * src/BtPieceMessage.cc
  8585. * src/MessageDigestHelper.cc
  8586. * src/Util.cc
  8587. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8588. Fixed compile error when configured with --disable-bittorrent
  8589. * test/DownloadHandlerFactoryTest.cc
  8590. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8591. Done make update-po
  8592. * po/aria2c.pot
  8593. * po/*.po
  8594. * po/*.gmo
  8595. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8596. Bump up version number to 0.13.2rc.
  8597. * src/configure.ac
  8598. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8599. Made option name bold. Updated SYNOPSIS to make it more readable.
  8600. * doc/aria2c.1.txt
  8601. * doc/aria2c.1
  8602. * doc/aria2c.1.html
  8603. * src/version_usage.cc
  8604. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. Refactored. Use std::string instead of size and char*.
  8606. * Data.cc
  8607. * Data.h
  8608. * test/Data.cc
  8609. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8610. Added trimSelf(). Rewritten trim() to use trimSelf().
  8611. * Util.cc
  8612. * Util.h
  8613. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8614. * src/ChunkChecksum.h (getChecksum): Return const reference.
  8615. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Fixed compile error when configured with --disable-metalink.
  8617. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  8618. * test/FeatureConfigTest.cc
  8619. * test/DownloadHandlerFactoryTest.cc
  8620. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8621. Fixed compile error when configured with --without-gnutls
  8622. --without-openssl
  8623. * src/main.cc
  8624. * test/DefaultBtProgressInfoFileTest.cc
  8625. * test/SegmentManTest.cc
  8626. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8627. Fixed compile error with OpenSSL.
  8628. * src/IteratableChunkChecksumValidator.cc
  8629. * src/LibsslDHKeyExchange.h
  8630. * src/MessageDigestHelper.cc
  8631. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8632. Revert the default value of --max-concurrent-downloads to 5.
  8633. Revert the default value of --metalink-servers to 5.
  8634. Man pages was also updated.
  8635. * src/option_processing.cc
  8636. * doc/aria2c.1.txt
  8637. * doc/aria2c.1.html
  8638. * doc/aria2c.1
  8639. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8640. Returns const reference:
  8641. DownloadContext::getPieceHash, DownloadContext::getName,
  8642. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  8643. BtContext::getInfoHashAsString,
  8644. * src/BtContext.h
  8645. * src/DefaultBtContext.cc
  8646. * src/DefaultBtContext.h
  8647. * src/DownloadContext.h
  8648. * src/SingleFileDownloadContext.h
  8649. * test/MockBtContext.h
  8650. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8651. * src/RequestGroup.h (getDir): Removed.
  8652. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. Returns const reference. The internal urlencode function was optimized
  8654. a little bit.
  8655. * src/Request.cc
  8656. * src/Request.h
  8657. * src/HttpRequest.cc
  8658. * src/HttpRequest.h
  8659. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8660. Defined option name and possible values as std::string to reduce
  8661. temporary string object creation in runtime.
  8662. * src/HelpItemFactory.cc
  8663. * src/LogFactory.cc
  8664. * src/Option.cc
  8665. * src/OptionHandlerFactory.cc
  8666. * src/option_processing.cc
  8667. * src/prefs.cc
  8668. * src/prefs.h
  8669. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8670. Return const reference.
  8671. * src/DownloadHandlerConstants.cc
  8672. * src/DownloadHandlerConstants.h
  8673. (getMetalinkExtensions)
  8674. (getMetalinkContentTypes)
  8675. (getBtExtensions)
  8676. (getBtContentTypes)
  8677. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. * src/HttpHeader.cc (get): Rewritten.
  8679. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8680. Make HttpHeader::getFirst(...) return const reference.
  8681. * src/HttpHeader.cc
  8682. * src/HttpHeader.h
  8683. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8684. Use Option::getAsBool(...) instead of Option::get(...) and compare
  8685. it with V_TRUE.
  8686. * src/DefaultPieceStorage.cc
  8687. * src/DownloadCommand.cc
  8688. * src/FtpNegotiationCommand.cc
  8689. * src/HttpRequest.cc
  8690. * src/InitiateConnectionCommand.cc
  8691. * src/RequestGroup.cc
  8692. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8693. Made Option::get(...) return const reference of std::string.
  8694. * src/Option.cc
  8695. * src/Option.h
  8696. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8697. Replaced std:copy with insert.
  8698. * src/DefaultBtMessageDispatcher.cc
  8699. * src/DefaultPieceStorage.cc
  8700. * src/DownloadEngineFactory.cc
  8701. * src/RequestGroup.cc
  8702. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. Included SocketCore.h to fix compiler warning.
  8704. * src/InitiateConnectionCommand.cc
  8705. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8706. Put piece selection strategy algorithm to RarestPieceSelector class,
  8707. Added a switch to choose whether randomized selection so that unit
  8708. tests emit same results in, possibly, win32.
  8709. * src/DefaultPieceStorage.cc
  8710. * src/DefaultPieceStorage.h
  8711. * src/RarestPieceSelector.cc
  8712. * src/RarestPieceSelector.h
  8713. * test/DefaultPieceStorageTest.cc
  8714. * test/RarestPieceSelectorTest.cc
  8715. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8716. Don't pool connection if HTTP proxy is enabled.
  8717. * src/FtpFinishDownloadCommand.cc
  8718. * src/FtpNegotiationCommand.cc
  8719. * src/HttpSkipResponseCommand.cc
  8720. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8721. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  8722. * src/AbstractCommand.cc
  8723. * src/AbstractCommand.h
  8724. * src/ActivePeerConnectionCommand.cc
  8725. * src/FtpInitiateConnectionCommand.cc
  8726. * src/HttpInitiateConnectionCommand.cc
  8727. * src/InitiateConnectionCommandFactory.cc
  8728. * src/PeerAbstractCommand.cc
  8729. * src/PeerAbstractCommand.h
  8730. * src/PeerInitiateConnectionCommand.cc
  8731. * src/TrackerWatcherCommand.cc
  8732. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8733. Sort RequestSlot in ascending order and manipulate them using
  8734. lower_bound.
  8735. * src/DefaultBtMessageDispatcher.cc
  8736. * src/DefaultBtMessageDispatcher.h
  8737. (getMessageQueue): Added const qualifier.
  8738. (getRequestSlots): Added const qualifier.
  8739. (sendMessages): Use empty() instead of size().
  8740. (doCancelSendingPieceAction): Use HandleEvent object.
  8741. (doAbortOutstandingRequestAction): Rewritten.
  8742. (doChokedAction): Rewritten.
  8743. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  8744. (isOutstandingRequest): Rewritten.
  8745. (getOutstandingRequest): Rewritten.
  8746. (removeOutstandingRequest): Rewritten.
  8747. (addOutstandingRequest): Rewritten.
  8748. * src/RequestSlot.cc
  8749. * src/RequestSlot.h
  8750. (operator=): Rewritten.
  8751. (operator!=): New function.
  8752. (operator<): New function.
  8753. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8754. * src/DefaultBtRequestFactory.cc
  8755. (doChokedAction): Rewritten.
  8756. (removeCompletedPiece): Rewritten.
  8757. (removeTargetPiece): Rewritten.
  8758. (createRequestMessages): Added the debug log.
  8759. (createRequestMessagesOnEndGame: Added the debug log.
  8760. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8761. Added the debug log message.
  8762. * src/BtPieceMessage.cc (doReceivedAction)
  8763. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8764. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  8765. used lower_bound to process them rather than linear search.
  8766. * src/DHTPeerAnnounceStorage.cc
  8767. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8768. Call subtractPieceStats from ~PeerInteractionCommand only when the
  8769. peer has at least one completed piece.
  8770. * src/Peer.cc
  8771. * src/Peer.h
  8772. * src/PeerInteractionCommand.cc
  8773. * src/PeerSessionResource.cc
  8774. * src/PeerSessionResource.h
  8775. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8776. Removed unnecessary sorting
  8777. * src/DefaultPieceStorage (DefaultPieceStorage)
  8778. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. Rewritten the portion of the code that mangaes allowed fast indexes.
  8780. * src/PeerSessionResource.cc
  8781. * src/PeerSessionResource.h
  8782. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8783. Removed the invalid string including '\r' from ru.po and
  8784. did make update-po.
  8785. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. Added --log-level and --summary-interval to man page.
  8787. * doc/aria2c.1.txt
  8788. * doc/aria2c.1.html
  8789. * doc/aria2c.1
  8790. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8791. Added --log-level option to specify log level. Log messages under
  8792. the specified level are not output. Default value is `debug'.
  8793. * src/HelpItemFactory.cc
  8794. * src/LogFactory.cc
  8795. * src/LogFactory.h
  8796. * src/Logger.h
  8797. * src/OptionHandlerFactory.cc
  8798. * src/SimpleLogger.cc
  8799. * src/SimpleLogger.h
  8800. * src/main.cc
  8801. * src/option_processing.cc
  8802. * src/prefs.h
  8803. * src/usage_text.h
  8804. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8805. Print download progress summary of all parallel downloads in specified
  8806. interval, default 60 secs. While aria2 could download several files
  8807. in parallel (see -j option), it displayed just first download progress,
  8808. and the other downloads are hidden from the users. This new feature
  8809. prints all downloads currently in-progress to the console so that you
  8810. can check the status of all downloads. The interval can be adjusted
  8811. by --summary-interval option.
  8812. The progress readout is now cut so that all fits in the one line of
  8813. console.
  8814. * src/ConsoleStatCalc.cc
  8815. * src/ConsoleStatCalc.h
  8816. * src/HelpItemFactory.cc
  8817. * src/OptionHandlerFactory.cc
  8818. * src/RequestGroupMan.cc
  8819. * src/RequestGroupMan.h
  8820. * src/main.cc
  8821. * src/option_processing.cc
  8822. * src/prefs.h
  8823. * src/usage_text.h
  8824. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8825. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  8826. * src/DownloadEngine.cc (DownloadEngine)
  8827. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  8829. defined.
  8830. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  8831. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Use erase+lower_bound+insert instead of sort.
  8833. * src/DefaultPieceStorage.cc (addPieceStats)
  8834. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8835. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  8836. * src/A2STR.cc
  8837. * src/A2STR.h
  8838. * src/OptionParser.cc (parse)
  8839. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8840. Defined fake filename `[tracker.announce]' as static const std::string.
  8841. * src/TrackerWatcherCommand.cc (createRequestGroup)
  8842. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. Defined default filename `index.html' as static const std::string
  8844. * src/SingleFileDownloadContext.cc
  8845. * src/SingleFileDownloadContext.h
  8846. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8847. Defined "[MEMORY]" as static const std::string.
  8848. * src/MemoryBufferPreDownloadHandler.cc (execute)
  8849. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8850. Defined control file's version number as static const std::string.
  8851. * src/DefaultBtProgressInfoFile.cc
  8852. * src/DefaultBtProgressInfoFile.h
  8853. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8854. Use Request::METHOD_GET
  8855. * src/RequestGroup.cc (createNextCommandWithAdj)
  8856. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Defined "OK", "ERR", "INPR" as static const std::string
  8858. * src/RequestGroupMan.cc (showDownloadResults)
  8859. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8860. Defined default client used in extended handshake as static const
  8861. std::string
  8862. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  8863. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8864. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  8865. * src/HttpConnection.cc (eraseConfidentialInfo)
  8866. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. Defined default ftp user and password as static const std::string
  8868. * src/AuthConfigFactory.cc
  8869. * src/AuthConfigFactory.h
  8870. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8871. Defined strings used in netrc as static const std::string
  8872. * src/Netrc.cc
  8873. * src/Netrc.h
  8874. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8875. Defined HTTP status as static const std::string
  8876. * src/AbstractProxyResponseCommand.cc
  8877. * src/HttpHeader.cc
  8878. * src/HttpHeader.h
  8879. * src/HttpResponse.cc
  8880. * src/HttpResponseCommand.cc
  8881. * src/HttpSkipResponseCommand.cc
  8882. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8883. Defined "\r\n", "A", "I" as static const std::string
  8884. * src/A2STR.cc
  8885. * src/A2STR.h
  8886. * src/FtpConnection.cc
  8887. * src/FtpConnection.h
  8888. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. Added COLON_C(".") and used it in Request::parseUrl()
  8890. * src/A2STR.cc
  8891. * src/A2STR.h
  8892. * src/Request.cc (parseUrl)
  8893. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8894. Changed the type of padName from `const std::string&' to `const char*'.
  8895. * src/MSEHandshake.cc (verifyPadLength)
  8896. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8897. Defined "sha1" as static const std::string.
  8898. * src/MetalinkParserController.cc
  8899. * src/MetalinkParserController.h
  8900. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. Defined message digest algorithm name as static const std::string
  8902. * src/DHTTokenTracker.cc
  8903. * src/DHTUtil.cc
  8904. * src/DefaultBtContext.cc
  8905. * src/MSEHandshake.cc
  8906. * src/MessageDigestHelper.cc
  8907. * src/Peer.cc
  8908. * src/messageDigest.cc
  8909. * src/messageDigest.h
  8910. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8911. Made string literals used in SAX parser static const std::string.
  8912. * src/FileMetalinkParserState.cc
  8913. * src/FileMetalinkParserState.h
  8914. * src/FilesMetalinkParserState.cc
  8915. * src/FilesMetalinkParserState.h
  8916. * src/InitialMetalinkParserState.cc
  8917. * src/InitialMetalinkParserState.h
  8918. * src/MetalinkMetalinkParserState.cc
  8919. * src/MetalinkMetalinkParserState.h
  8920. * src/PiecesMetalinkParserState.cc
  8921. * src/PiecesMetalinkParserState.h
  8922. * src/ResourcesMetalinkParserState.cc
  8923. * src/ResourcesMetalinkParserState.h
  8924. * src/VerificationMetalinkParserState.cc
  8925. * src/VerificationMetalinkParserState.h
  8926. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  8928. * src/A2STR.cc
  8929. * src/A2STR.h
  8930. * src/File.cc
  8931. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8932. Defined static const std::string IP("ip"), PORT("port") and use them
  8933. instead of string literals.
  8934. * src/DefaultPeerListProcessor.cc
  8935. * src/DefaultPeerListProcessor.h
  8936. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8937. Made string literals for torrent file processing static const
  8938. std::string.
  8939. * src/BtContext.cc
  8940. * src/BtContext.h
  8941. * src/DefaultBtContext.cc
  8942. * src/DefaultBtContext.h
  8943. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8944. Made string literal for tracker response static const std::string
  8945. * src/BtAnnounce.cc
  8946. * src/BtAnnounce.h
  8947. * src/DefaultBtAnnounce.cc
  8948. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Use DHTMessage::T instead of "t".
  8950. * src/DHTMessageTracker.cc (messageArrived)
  8951. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8952. Made keyName static const. Made trimmed charset static const
  8953. std::string.
  8954. * src/Util.cc (getContentDispositionFilename)
  8955. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8956. Made USER_AGENT const. Made "/" static const std::string.
  8957. * src/A2STR.cc
  8958. * src/A2STR.h
  8959. * src/HttpRequest.cc
  8960. * src/HttpRequest.h
  8961. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8962. Made string listeral to static const std::string:
  8963. "Content-Range", "Content-Length"
  8964. * src/HttpHeader.cc
  8965. * src/HttpHeader.h
  8966. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8967. Made string listeral to static const std::string.
  8968. * src/HttpConnection.cc
  8969. * src/HttpHeader.cc
  8970. * src/HttpHeader.h
  8971. * src/HttpResponse.cc
  8972. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8973. Made string listeral to static const std::string.
  8974. * src/A2STR.cc
  8975. * src/A2STR.h
  8976. * src/SimpleLogger.cc
  8977. * src/SimpleLogger.h
  8978. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8979. Made string literal to static const std::string.
  8980. Rewritten CookieParser::setField.
  8981. * src/A2STR.cc
  8982. * src/A2STR.h
  8983. * src/CookieBoxFactory.cc
  8984. * src/CookieBoxFactory.h
  8985. * src/CookieParser.cc
  8986. * src/CookieParser.h
  8987. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8988. Made string literal to static const std::string
  8989. * src/DHTAbstractMessage.cc
  8990. * src/DHTAnnouncePeerMessage.cc
  8991. * src/DHTAnnouncePeerMessage.h
  8992. * src/DHTAnnouncePeerReplyMessage.cc
  8993. * src/DHTAnnouncePeerReplyMessage.h
  8994. * src/DHTFindNodeMessage.cc
  8995. * src/DHTFindNodeMessage.h
  8996. * src/DHTFindNodeReplyMessage.cc
  8997. * src/DHTFindNodeReplyMessage.h
  8998. * src/DHTGetPeersMessage.cc
  8999. * src/DHTGetPeersMessage.h
  9000. * src/DHTGetPeersReplyMessage.cc
  9001. * src/DHTGetPeersReplyMessage.h
  9002. * src/DHTMessage.cc
  9003. * src/DHTMessage.h
  9004. * src/DHTMessageFactoryImpl.cc
  9005. * src/DHTMessageReceiver.cc
  9006. * src/DHTPingMessage.cc
  9007. * src/DHTPingMessage.h
  9008. * src/DHTPingReplyMessage.cc
  9009. * src/DHTPingReplyMessage.h
  9010. * src/DHTQueryMessage.cc
  9011. * src/DHTQueryMessage.h
  9012. * src/DHTResponseMessage.cc
  9013. * src/DHTResponseMessage.h
  9014. * src/DHTUnknownMessage.cc
  9015. * src/DHTUnknownMessage.h
  9016. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9017. Made string literal to static const std::string
  9018. * src/BtChokeMessage.cc (toString)
  9019. * src/BtHaveAllMessage.cc (toString)
  9020. * src/BtHaveNoneMessage.cc (toString)
  9021. * src/BtInterestedMessage.cc (toString)
  9022. * src/BtNotInterestedMessage.cc (toString)
  9023. * src/BtUnchokeMessage.cc (toString)
  9024. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. Replaced "" with static const variable A2STR::NIL.
  9026. Replaced string comparison against "" with std::string::empty().
  9027. Added PROTO_* to Request class and use them as a protocol string
  9028. constant.
  9029. Made "started", "stopped", "completed" static const variable in
  9030. AnnounceList class.
  9031. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9032. Updated translations. Great thanks to translators.
  9033. * po/ca.po
  9034. * po/de.po
  9035. * po/fr.po
  9036. * po/it.po
  9037. * po/ja.po
  9038. * po/ru.po
  9039. * po/zh_CN.po
  9040. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. Updated man page; categorized options and fixed typo.
  9042. * doc/aria2c.1.txt
  9043. * doc/aria2c.1.html
  9044. * doc/aria2c.1
  9045. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9046. Removed const ref
  9047. * src/MetalinkEntry.cc (AddProtocolPreference)
  9048. * src/RequestGroup.cc (FindServerHostByHostname)
  9049. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9050. Rewritten Accept-Features handling.
  9051. * src/HttpRequestCommand.cc (createHttpRequest)
  9052. * src/a2functional.h
  9053. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9054. Changed method signature:
  9055. DHTAbstractNodeLookupTask::toEntries
  9056. * src/DHTAbstractNodeLookupTask.cc
  9057. * src/DHTAbstractNodeLookupTask.h
  9058. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9059. Changed method signature:
  9060. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  9061. * src/BtContext.h
  9062. * src/DefaultBtContext.cc
  9063. * src/DefaultBtContext.h
  9064. * src/DefaultBtInteractive.cc
  9065. * test/DefaultBtContextTest.cc
  9066. * test/MockBtContext.h
  9067. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9068. Changed method signature:
  9069. MultiFileAllocationIterator::makeDiskWriterEntries
  9070. * src/MultiFileAllocationIterator.cc
  9071. * src/MultiFileAllocationIterator.h
  9072. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9073. Changed method sinature:
  9074. MetalinkEntry::toFileEntry,
  9075. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  9076. Metalinker::queryEntry
  9077. * src/Metalink2RequestGroup.cc
  9078. * src/MetalinkEntry.cc
  9079. * src/MetalinkEntry.h
  9080. * src/MetalinkHelper.cc
  9081. * src/MetalinkHelper.h
  9082. * src/Metalinker.cc
  9083. * src/Metalinker.h
  9084. * src/main.cc
  9085. * test/MetalinkHelperTest.cc
  9086. * test/MetalinkerTest.cc
  9087. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9088. Changed method sinature:
  9089. RequestGroup::getURIs
  9090. * src/RequestGroup.cc
  9091. * src/RequestGroup.h
  9092. * test/Metalink2RequestGroupTest.cc
  9093. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. Changed method signature:
  9095. PeerListProcessor::extractPeer
  9096. * src/CompactPeerListProcessor.cc
  9097. * src/CompactPeerListProcessor.h
  9098. * src/DefaultBtAnnounce.cc
  9099. * src/DefaultPeerListProcessor.cc
  9100. * src/DefaultPeerListProcessor.h
  9101. * src/DelegatingPeerListProcessor.cc
  9102. * src/DelegatingPeerListProcessor.h
  9103. * src/PeerListProcessor.h
  9104. * src/UTPexExtensionMessage.cc
  9105. * test/DefaultPeerListProcessorTest.cc
  9106. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. Changed method signature:
  9108. BtRequestFactory::createRequestMessages,
  9109. BtRequestFactory::createRequestMessagesOnEndGame
  9110. * src/BtRequestFactory.h
  9111. * src/DefaultBtInteractive.cc
  9112. * src/DefaultBtRequestFactory.cc
  9113. * src/DefaultBtRequestFactory.h
  9114. * test/DefaultBtRequestFactoryTest.cc
  9115. * test/MockBtRequestFactory.h
  9116. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9117. Changed method signature:
  9118. PieceStorage::getInFlightPieces
  9119. * src/DefaultBtProgressInfoFile.cc
  9120. * src/DefaultPieceStorage.cc
  9121. * src/DefaultPieceStorage.h
  9122. * src/PieceStorage.h
  9123. * src/UnknownLengthPieceStorage.cc
  9124. * src/UnknownLengthPieceStorage.h
  9125. * test/DefaultBtProgressInfoFileTest.cc
  9126. * test/MockPieceStorage.h
  9127. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9128. Changed method signature:
  9129. PostDownloadHandler::getNextRequestGroups
  9130. Metalink2RequestGroup::generate
  9131. RequestGroup::postDownloadProcessing
  9132. * src/BtPostDownloadHandler.cc
  9133. * src/BtPostDownloadHandler.h
  9134. * src/Metalink2RequestGroup.cc
  9135. * src/Metalink2RequestGroup.h
  9136. * src/MetalinkPostDownloadHandler.cc
  9137. * src/MetalinkPostDownloadHandler.h
  9138. * src/PostDownloadHandler.h
  9139. * src/RequestGroup.cc
  9140. * src/RequestGroup.h
  9141. * src/RequestGroupMan.cc
  9142. * src/main.cc
  9143. * test/BtPostDownloadHandlerTest.cc
  9144. * test/Metalink2RequestGroupTest.cc
  9145. * test/MetalinkPostDownloadHandlerTest.cc
  9146. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9147. Rewritten AccRequestGroup
  9148. * src/main.cc
  9149. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9150. Rewritten.
  9151. * src/TaggedItem.cc (toTagString)
  9152. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9153. Rewritten Accept-Features handling.
  9154. * src/HttpRequestCommand.cc (createHttpRequest)
  9155. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. Rewritten accept types handling.
  9157. * HttpRequest.cc (createRequest)
  9158. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9159. Rewritten
  9160. * src/FeatureConfig.cc (featureSummary)
  9161. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9162. Changed method signature:
  9163. PeerStorage::getActivePeers
  9164. * src/DHTPeerAnnounceEntry.cc
  9165. * src/DefaultPeerStorage.cc
  9166. * src/DefaultPeerStorage.h
  9167. * src/PeerStorage.h
  9168. * test/DefaultPeerStorageTest.cc
  9169. * test/MockPeerStorage.h
  9170. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9171. Changed method signature:
  9172. DHTPeerAnnounceStorage::getPeers,
  9173. DHTPeerAnnounceEntry::getPeers
  9174. * src/DHTGetPeersMessage.cc
  9175. * src/DHTPeerAnnounceEntry.cc
  9176. * src/DHTPeerAnnounceEntry.h
  9177. * src/DHTPeerAnnounceStorage.cc
  9178. * src/DHTPeerAnnounceStorage.h
  9179. * test/DHTAnnouncePeerMessageTest.cc
  9180. * test/DHTPeerAnnounceEntryTest.cc
  9181. * test/DHTPeerAnnounceStorageTest.cc
  9182. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9183. Changed method signature:
  9184. NameResolver::resolve
  9185. * src/DHTEntryPointNameResolveCommand.cc
  9186. * src/InitiateConnectionCommand.cc
  9187. * src/NameResolver.cc
  9188. * src/NameResolver.h
  9189. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9190. Changed method signature:
  9191. PieceStorage::getAdvertisedPieceIndexes
  9192. * src/DefaultBtInteractive.cc
  9193. * src/DefaultPieceStorage.cc
  9194. * src/DefaultPieceStorage.h
  9195. * src/PieceStorage.h
  9196. * src/UnknownLengthPieceStorage.h
  9197. * test/MockPieceStorage.h
  9198. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9199. Changed method signature:
  9200. SegmentMan::getInFlightSegment
  9201. * src/AbstractCommand.cc
  9202. * src/SegmentMan.cc
  9203. * src/SegmentMan.h
  9204. * test/SegmentManTest.cc
  9205. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9206. Changed method signature:
  9207. DHTAbstractNodeLookupTask::getNodesFromMessage
  9208. * src/DHTAbstractNodeLookupTask.cc
  9209. * src/DHTAbstractNodeLookupTask.h
  9210. * src/DHTNodeLookupTask.cc
  9211. * src/DHTNodeLookupTask.h
  9212. * src/DHTPeerLookupTask.cc
  9213. * src/DHTPeerLookupTask.h
  9214. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9215. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  9216. * src/AbstractCommand.cc
  9217. * src/BtCheckIntegrityEntry.cc
  9218. * src/BtCheckIntegrityEntry.h
  9219. * src/BtFileAllocationEntry.cc
  9220. * src/BtFileAllocationEntry.h
  9221. * src/BtSetup.cc
  9222. * src/BtSetup.h
  9223. * src/CheckIntegrityCommand.cc
  9224. * src/CheckIntegrityEntry.h
  9225. * src/ChecksumCheckIntegrityEntry.cc
  9226. * src/ChecksumCheckIntegrityEntry.h
  9227. * src/DHTSetup.cc
  9228. * src/DHTSetup.h
  9229. * src/DownloadEngine.cc
  9230. * src/FileAllocationCommand.cc
  9231. * src/FileAllocationEntry.h
  9232. * src/RequestGroup.cc
  9233. * src/RequestGroup.h
  9234. * src/RequestGroupMan.cc
  9235. * src/RequestGroupMan.h
  9236. * src/StreamCheckIntegrityEntry.cc
  9237. * src/StreamCheckIntegrityEntry.h
  9238. * src/StreamFileAllocationEntry.cc
  9239. * src/StreamFileAllocationEntry.h
  9240. * src/TrackerWatcherCommand.cc
  9241. * src/a2functional.h
  9242. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9243. Changed method signature:
  9244. BNode::findClosestKNodes, BNode:: enumerateBucket,
  9245. DHTBucket::getGoodNodes,
  9246. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  9247. * src/BNode.cc
  9248. * src/BNode.h
  9249. * src/DHTAbstractNodeLookupTask.cc
  9250. * src/DHTAutoSaveCommand.cc
  9251. * src/DHTBucket.cc
  9252. * src/DHTBucket.h
  9253. * src/DHTBucketRefreshTask.cc
  9254. * src/DHTFindNodeMessage.cc
  9255. * src/DHTGetPeersMessage.cc
  9256. * src/DHTRoutingTable.cc
  9257. * src/DHTRoutingTable.h
  9258. * test/BNodeTest.cc
  9259. * test/DHTBucketTest.cc
  9260. * test/DHTRoutingTableTest.cc
  9261. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9262. In piece selection functions, Pass std::deque<...> by reference rather
  9263. than returning it.
  9264. * src/BitfieldMan.cc
  9265. * src/BitfieldMan.h
  9266. * src/DefaultBtRequestFactory.cc
  9267. * src/DefaultPieceStorage.cc
  9268. * src/Piece.cc
  9269. * src/Piece.h
  9270. * test/BitfieldManTest.cc
  9271. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9272. Implemented rarest piece first piece selection strategy.
  9273. * src/AbstractBtMessage.cc
  9274. * src/AbstractBtMessage.h
  9275. * src/BitfieldMan.cc
  9276. * src/BitfieldMan.h
  9277. * src/BtBitfieldMessage.cc
  9278. * src/BtHaveAllMessage.cc
  9279. * src/BtHaveMessage.cc
  9280. * src/DefaultPieceStorage.cc
  9281. * src/DefaultPieceStorage.h
  9282. * src/PeerInteractionCommand.cc
  9283. * src/PieceStorage.h
  9284. * src/UnknownLengthPieceStorage.h
  9285. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9286. Rewritten readData and writeData.
  9287. * src/MultiDiskAdaptor.cc
  9288. * src/MultiDiskAdaptor.h
  9289. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9290. Move \n out of the message "Usage: ...".
  9291. * src/version_usage.cc
  9292. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. Bump up version number to 0.13.2b.
  9294. * configure.ac
  9295. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9296. Added const qualifier to argument Exception& e.
  9297. * src/Logger.h
  9298. * src/SimpleLogger.cc
  9299. * src/SimpleLogger.h
  9300. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9301. Pool connection when CWD, SIZE command fails.
  9302. * src/FtpNegotiationCommand.cc
  9303. * src/FtpNegotiationCommand.h
  9304. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9305. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  9306. * src/HttpResponseCommand.cc
  9307. * src/HttpSkipResponseCommand.cc
  9308. * src/HttpSkipResponseCommand.h
  9309. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9310. Pool connection when a server returns 4xx, 5xx responses.
  9311. * src/HttpNullDownloadCommand.cc
  9312. * src/HttpNullDownloadCommand.h
  9313. * src/HttpResponse.cc
  9314. * src/HttpResponse.h
  9315. * src/HttpResponseCommand.cc
  9316. * src/HttpResponseCommand.h
  9317. * test/HttpResponseTest.cc
  9318. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9319. Print usage when no URL is specifed or bad command-line option is
  9320. specified.
  9321. * src/HelpItemFactory.cc
  9322. * src/help_tags.h
  9323. * src/option_processing.cc
  9324. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Removed duplicate log message.
  9326. * src/AbstractCommand.cc (asyncResolveHostname)
  9327. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9328. Updated man page: --async-dns and --ftp-reuse-connection were added.
  9329. Changed -j option's default value from 5 to 1.
  9330. Added new examples using protocol auto detection feature.
  9331. Removed -T, -M usage where it can be omitted.
  9332. * doc/aria2c.1.txt
  9333. * doc/aria2c.1.html
  9334. * doc/aria2c.1.txt
  9335. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9336. Updated command-line usage text, so that it tells users that they
  9337. can specify any number of torrent files and metalink files in
  9338. command-line.
  9339. * src/version_usage.cc
  9340. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9341. Changed the default value of -j option to 1.
  9342. * src/HelpItemFactory.cc
  9343. * src/option_processing.cc
  9344. * src/usage_text.h
  9345. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9346. Added the ability to reuse connection in FTP and it is enabled by
  9347. default. It can be disabled by --ftp-reuse-connection=false option.
  9348. * src/Command.cc
  9349. * src/DownloadCommand.cc
  9350. * src/FtpDownloadCommand.cc
  9351. * src/FtpDownloadCommand.h
  9352. * src/FtpFinishDownloadCommand.cc
  9353. * src/FtpFinishDownloadCommand.h
  9354. * src/FtpInitiateConnectionCommand.cc
  9355. * src/FtpNegotiationCommand.cc
  9356. * src/FtpNegotiationCommand.h
  9357. * src/HelpItemFactory.cc
  9358. * src/Makefile.am
  9359. * src/Makefile.in
  9360. * src/OptionHandlerFactory.cc
  9361. * src/option_processing.cc
  9362. * src/prefs.h
  9363. * src/usage_text.h
  9364. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9365. Call Command::transitStatus() before calling Command::execute(),
  9366. so that the status change made in execute() is not cleared.
  9367. * src/DownloadEngine.cc
  9368. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9369. Removed forward declaration of SocketCore class.
  9370. * src/HttpDownloadCommand.h
  9371. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  9373. in InitiateConnectionCommandFactory. They should be set only when
  9374. the protocol is HTTP or HTTPS.
  9375. * src/InitiateConnectionCommandFactory.cc
  9376. * src/RequestGroup.cc
  9377. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9378. Fixed infinite loop in checksum checking.
  9379. * src/IteratableChecksumValidator.cc
  9380. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9381. Set _supportsPersistentConnection to true by default.
  9382. * src/Request.cc
  9383. * src/RequestGroup.cc
  9384. * test/HttpRequestTest.cc
  9385. * test/RequestTest.cc
  9386. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9387. Added timeout to socket pool. The default timeout is 15 seconds,
  9388. which is the same value Apache uses.
  9389. * src/DownloadEngine.cc
  9390. * src/DownloadEngine.h
  9391. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9392. Fixed misuse of multimap::find()
  9393. * src/HttpHeader.cc
  9394. * test/HttpHeaderTest.cc
  9395. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9396. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  9397. option.
  9398. The asynchronous DNS is not capable of IPv6 yet.
  9399. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  9400. least for HTTP download.
  9401. * src/AbstractCommand.cc
  9402. * src/AbstractCommand.h
  9403. * src/AsyncNameResolver.cc
  9404. * src/AsyncNameResolver.h
  9405. * src/DHTEntryPointNameResolveCommand.cc
  9406. * src/DHTEntryPointNameResolveCommand.h
  9407. * src/DownloadEngine.cc
  9408. * src/DownloadEngine.h
  9409. * src/FtpInitiateConnectionCommand.cc
  9410. * src/FtpInitiateConnectionCommand.h
  9411. * src/HelpItemFactory.cc
  9412. * src/HttpInitiateConnectionCommand.cc
  9413. * src/HttpInitiateConnectionCommand.h
  9414. * src/InitiateConnectionCommand.cc
  9415. * src/InitiateConnectionCommand.h
  9416. * src/Makefile.am
  9417. * src/Makefile.in
  9418. * src/NameResolver.cc
  9419. * src/NameResolver.h
  9420. * src/OptionHandlerFactory.cc
  9421. * src/SocketCore.cc
  9422. * src/SocketCore.h
  9423. * src/Util.cc
  9424. * src/Util.h
  9425. * src/option_processing.cc
  9426. * src/prefs.h
  9427. * src/usage_text.h
  9428. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9429. Updated man page: --quiet, --header were added.
  9430. --metalink-servers and --enable-http-keep-alive option were updated.
  9431. * doc/aria2c.1
  9432. * doc/aria2c.1.html
  9433. * doc/aria2c.1.txt
  9434. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9435. Enable HTTP keep-alive by default.
  9436. * src/HelpItemFactory.cc
  9437. * src/option_processing.cc
  9438. * src/usage_text.h
  9439. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9440. Disable http keep-alive if the remote server is not HTTP/1.1.
  9441. * src/HttpConnection.cc
  9442. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9443. Receive content body of 302 response so that the connection can be
  9444. reused later when http keep-alive is enabled.
  9445. * src/HttpNullDownloadCommand.cc
  9446. * src/HttpNullDownloadCommand.h
  9447. * src/HttpResponseCommand.cc
  9448. * src/HttpResponseCommand.h
  9449. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9450. const SharedHandle<Request> -> const SharedHandle<Request>&
  9451. * src/FtpDowndloadCommand.cc
  9452. * src/FtpDowndloadCommand.h
  9453. * src/HttpDownloadCommand.cc
  9454. * src/HttpDownloadCommand.h
  9455. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9456. Fixed the bug that the control file(.aria2 file) is not renamed
  9457. according to tryAutoFileRenaming().
  9458. tryAutoFileRenaming() was rewritten so that if both renamed file and
  9459. its control file exist, use them and continue download.
  9460. The old implementation didn't take into account of control file's
  9461. existence, so basically you couldn't continue download of renamed file.
  9462. * src/BtProgressInfoFile.h
  9463. * src/DefaultBtProgressInfoFile.cc
  9464. * src/DefaultBtProgressInfoFile.h
  9465. * src/NullProgressInfoFile.h
  9466. * src/RequestGroup.cc
  9467. * test/DefaultBtProgressInfoFileTest.cc
  9468. * test/MockBtProgressInfoFile.h
  9469. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9470. Change the default value of --metalink-servers option from `5' to `1'.
  9471. * src/HelpItemFactory.cc
  9472. * src/option_processing.cc
  9473. * src/usage_text.h
  9474. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9475. Reimplemented transparent metalink using Accept request header.
  9476. * src/HttpRequest.cc
  9477. * src/HttpRequest.h
  9478. * src/HttpRequestCommand.cc
  9479. * src/Metalink2RequestGroup.cc
  9480. * src/RequestGroup.cc
  9481. * src/RequestGroup.h
  9482. * test/HttpRequestTest.cc
  9483. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9484. Bump up version number to 0.13.2a
  9485. * configure.ac
  9486. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9487. Updated configure.ac using the result of autoscan.
  9488. * configure.ac
  9489. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9490. Fixed compilation error without gcrypt/openssl.
  9491. * src/DownloadCommand.cc
  9492. * src/DownloadCommand.h
  9493. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. Reorganized version information so that it can be displayed in a
  9495. standard terminal screen without scrolling.
  9496. Removed http, ftp from Configuration section, because they are always
  9497. enabled.
  9498. * src/FeatureConfig.cc
  9499. * src/FeatureConfig.h
  9500. * src/main.cc
  9501. * src/messageDigest.cc
  9502. * src/messageDigest.h
  9503. * src/version_usage.cc
  9504. * test/FeatureConfigTest.cc
  9505. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9506. Masked user ID in log.
  9507. * src/FtpConnection.cc (sendUser)
  9508. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9509. Removed query part from filename in HTTP download. The query part means
  9510. the substring after "?" in URL. Firefox seems do the same thing.
  9511. A query part is sometimes very long and not suitable to filename,
  9512. so I think it is better to remove it from filename.
  9513. * src/HttpRequest.cc
  9514. * src/HttpRequest.h
  9515. * src/Request.cc
  9516. * src/Request.h
  9517. * test/HttpRequestTest.cc
  9518. * test/RequestTest.cc
  9519. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9520. Rewritten Exception class. Throw exception object, not its pointer and
  9521. catch by reference, so that remove problematic delete operator for
  9522. catched exception.
  9523. * src/Exception.cc
  9524. * src/Exception.h
  9525. * test/ExceptionTest.cc
  9526. * src/*: All files throwing/catching exception.
  9527. * test/*: All files throwing/catching exception.
  9528. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9529. Now auto protocol detection is enabled without -Z option.
  9530. But there is a important difference between with/without -Z optoin.
  9531. For example, if you type:
  9532. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  9533. then, aria2 interprets there are 3 request groups:
  9534. (1) http://host/file, http://mirror/file <-- multi-source download
  9535. (2) file1.torrent
  9536. (3) file2.metalink
  9537. On the other hand, if you invoke above command with -Z option, it is
  9538. interpreted as 4 request groups:
  9539. (1) http://host/file
  9540. (2) file1.torrent
  9541. (3) file2.metalink
  9542. (4) http://mirror/file
  9543. I think usually user don't mix multi-source URLs and torrent files, so
  9544. there is no big problem here.
  9545. * src/main.cc
  9546. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9547. Fixed the bug that causes segmentaion fault when reading XML containing
  9548. unescapsed character like '&'.
  9549. Also a modification was made which avoids adding unnecessary
  9550. characters stack and appending unused string.
  9551. * src/ExpatMetalinkProcessor.cc
  9552. * src/FileMetalinkParserState.h
  9553. * src/FilesMetalinkParserState.h
  9554. * src/FinMetalinkParserState.h
  9555. * src/HashMetalinkParserState.h
  9556. * src/InitialMetalinkParserState.h
  9557. * src/LanguageMetalinkParserState.h
  9558. * src/MetalinkMetalinkParserState.h
  9559. * src/MetalinkParserState.h
  9560. * src/MetalinkParserStateMachine.cc
  9561. * src/MetalinkParserStateMachine.h
  9562. * src/OSMetalinkParserState.h
  9563. * src/PieceHashMetalinkParserState.h
  9564. * src/PiecesMetalinkParserState.h
  9565. * src/ResourcesMetalinkParserState.h
  9566. * src/SizeMetalinkParserState.h
  9567. * src/SkipTagMetalinkParserState.h
  9568. * src/URLMetalinkParserState.h
  9569. * src/VerificationMetalinkParserState.h
  9570. * src/VersionMetalinkParserState.h
  9571. * src/XML2SAXMetalinkProcessor.cc
  9572. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9573. Added StringFormat class, which internally calls vasprintf.
  9574. operator<< is defined for this class, so it can be used with iostream
  9575. classes nicely. SimpleLogger and following functions are rewritten
  9576. using StringFormat class.
  9577. Besides, now Logger class's methods are non-const, many classes
  9578. that has a const Logger* as a member variable are modified to remove
  9579. const qualifier from the variable declaration.
  9580. * src/HelpItemFactory.cc
  9581. * src/Request.cc
  9582. * src/SimpleLogger.cc
  9583. * src/StringFormat.cc
  9584. * src/StringFormat.h
  9585. * src/Util.cc
  9586. * src/option_processing.cc
  9587. * src/version_usage.cc
  9588. * test/StringFormatTest.cc
  9589. * src/*.h: The classes that has const Logger* as a member variable.
  9590. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9591. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  9592. failed. Also fixed memory link when exception is thrown there.
  9593. * src/main.cc (AccRequestGroup)
  9594. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9595. Added build-in "Accept-Features" support. For now only "metalink" is
  9596. used in this header field.
  9597. This "metalink" value is removed from the list when connecting URLs
  9598. fed by metalink file to avoid loop in "transparent" metlaink.
  9599. * src/HttpRequest.cc
  9600. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  9601. header is also held in this variable. Also renamed setUserHeaders as
  9602. addHeader and it was rewritten to add header not just to clear the old
  9603. value.
  9604. * src/HttpRequestCommand.cc
  9605. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  9606. from "Accept-Features" list.
  9607. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  9608. default.
  9609. * src/RequestGroup.h
  9610. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  9611. * src/a2functional.h: Included <string> because Concat class depends on
  9612. it.
  9613. * test/HttpRequestTest.cc
  9614. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. Added comment
  9616. * src/RequestGroup.cc (createNextCommand)
  9617. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9618. Capitalized METHOD_GET and METHOD_HEAD
  9619. * src/Request.cc
  9620. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9621. Added getDownloadResults() method
  9622. * src/RequestGroupMan.cc
  9623. * src/RequestGroupMan.h
  9624. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9625. Fixed the bug that aria2 exits when commands is empty() but
  9626. _routineCommands are not.
  9627. * src/DownloadEngine.cc
  9628. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9629. Use the default value pulled from Option object in HelpItemFactory.
  9630. except options whose defualt value is embedded in a usage text.
  9631. * src/HelpItemFactory.cc
  9632. * src/HelpItemFactory.h
  9633. * src/option_processing.cc
  9634. * src/version_usage.cc
  9635. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9636. Added --quiet option to make aria2 quiet (no console output).
  9637. --quiet option is tagged with ADVANCED.
  9638. * src/HelpItemFactory.cc
  9639. * src/LogFactory.cc
  9640. * src/LogFactory.h
  9641. * src/MultiUrlRequestInfo.cc
  9642. * src/MultiUrlRequestInfo.h
  9643. * src/NullStatCalc.h: New class. This class prints nothing.
  9644. * src/OptionHandlerFactory.cc
  9645. * src/main.cc
  9646. * src/option_processing.cc
  9647. * src/prefs.h
  9648. * src/usage_text.h
  9649. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9650. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  9651. * src/HelpItemFactory.cc (createHelpItems):
  9652. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9653. Fixed compilation error in ExpatMetalinkProcessor.cc
  9654. * src/ExpatMetalinkProcessor.cc
  9655. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9656. Reuse socket if the origin server supports HTTP keep-alive and
  9657. --enable-http-keep-alive or --enable-http-pipelining is given.
  9658. The current implementation doesn't reuse the connections established
  9659. against proxy server.
  9660. * src/AbstractCommand.cc
  9661. * src/DownloadEngine.cc
  9662. * src/DownloadEngine.h
  9663. * src/HttpDownloadCommand.cc
  9664. * src/HttpInitiateConnectionCommand.cc
  9665. * src/HttpResponseCommand.cc
  9666. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9667. Rewritten HTTP keep-alive and pipelining routine.
  9668. * src/AbstractCommand.cc
  9669. * src/HttpConnection.cc
  9670. * src/HttpDownloadCommand.cc
  9671. * src/HttpRequest.cc
  9672. * src/HttpRequestCommand.cc
  9673. * src/HttpResponseCommand.cc
  9674. * src/Request.cc
  9675. * src/Request.h
  9676. * src/RequestGroup.cc
  9677. * test/HttpRequestTest.cc
  9678. * test/HttpResponseTest.cc
  9679. * test/RequestTest.cc
  9680. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9681. Added missing setUserHeaders call
  9682. * src/HttpRequestCommand.cc
  9683. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  9685. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  9686. waste of time because it is more likey false.
  9687. * src/FileAllocationDispatcherCommand.cc (execute)
  9688. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9689. Now HTTP status and version are a member variable of HttpHeader.
  9690. HTTP status is processed as a string, not integer.
  9691. * src/AbstractProxyResponseCommand.cc
  9692. * src/HttpConnection.cc
  9693. * src/HttpHeader.cc
  9694. * src/HttpHeader.h
  9695. * src/HttpHeaderProcessor.cc
  9696. * src/HttpHeaderProcessor.h
  9697. * src/HttpResponse.cc
  9698. * src/HttpResponse.h
  9699. * test/HttpHeaderProcessorTest.cc
  9700. * test/HttpResponseTest.cc
  9701. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9702. Added --header option. You can specify any number of additional HTTP headers
  9703. like:
  9704. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  9705. Unlike other commad-line option, you can use --header option multiple times.
  9706. * src/HelpItemFactory.cc
  9707. * src/HttpRequest.{cc, h}
  9708. * src/HttpRequestCommand.cc
  9709. * src/OptionHandlerFactory.cc
  9710. * src/OptionHandlerImpl.h
  9711. * src/option_processing.cc
  9712. * src/prefs.h
  9713. * src/usage_text.h
  9714. * test/HttpRequestTest.cc (testUserHeaders)
  9715. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9716. Eliminates the time lag between sequential downloads and commands in
  9717. the same RequestGroup.
  9718. In old implementation, aria2 occasionally waits 1 seconds before
  9719. executing next command or RequestGroup.
  9720. This is really a waste of time, and new implementation eliminates
  9721. this unnecessary time lag.
  9722. * src/AbstractCommand.cc
  9723. * src/AutoSaveCommand.cc
  9724. * src/CheckIntegrityCommand.cc
  9725. * src/Command.{cc, h}
  9726. * src/DownloadEngine.{cc, h}
  9727. * src/DownloadEngineFactory.cc
  9728. * src/FileAllocationCommand.cc
  9729. * src/FileAllocationDispatcherCommand.cc
  9730. * src/FillRequestGroupCommand.cc
  9731. * src/FtpInitiateConnectionCommand.cc
  9732. * src/HaveEraseCommand.cc
  9733. * src/HttpInitiateConnectionCommand.cc
  9734. * src/HttpResponseCommand.cc
  9735. * src/RealtimeCommand.cc
  9736. * src/RequestGroup.cc
  9737. * src/RequestGroupMan.cc
  9738. * src/StreamFileAllocationEntry.cc
  9739. * src/TimeBasedCommand.{cc, h}
  9740. * src/TimedHaltCommand.cc
  9741. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9742. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  9743. keyword explicit and SharedHandle's default constructor initializes
  9744. its internal obj to null, old implementation initializes it using
  9745. obj's default constructor.
  9746. To assign null, write SharedHandle<T> x(...); x.reset();
  9747. TODO: test/SharedHandleTest.cc needs more tests.
  9748. * src/SharedHandle.h
  9749. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9750. Fixed type in man page.
  9751. * doc/aria2c.1.txt
  9752. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9753. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  9754. * src/SimpleLogger.{cc, h}
  9755. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9756. Implemented auto protocol detection.
  9757. Now you can do:
  9758. aria2c -Z http://host/file file1.torrent file2.metalink
  9759. (Note: -Z option is required for auto protcol detection.)
  9760. Then aria2c downloads 3 files simultaneously:
  9761. 1. http://host/file
  9762. 2. file1.torrent <-- read local torrent file
  9763. 3. file2.metalink <-- read local Metalink file.
  9764. Same thing goes with -i option. Assume your uris.txt contans:
  9765. http://host/file
  9766. file1.torrent
  9767. file2.metalink
  9768. Then you can do: aria2c -i uris.txt
  9769. (Note: -Z option is not needed if -i option is given.)
  9770. * src/main.cc
  9771. * src/ProtocolDetector.{cc, h}
  9772. * test/ProtocolDetectorTest.cc
  9773. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9774. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  9775. installed
  9776. * src/ARC4Encryptor.h
  9777. * src/ARC4Decryptor.h
  9778. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9779. Renamed argument from 'errno' to 'err', since errno is confused with
  9780. errno defined in errno.h.
  9781. * src/LibgcryptARC4Decryptor.h
  9782. * src/LibgcryptARC4Context.h
  9783. * src/LibgcryptDHKeyExchange.h
  9784. * src/LibgcryptARC4Encryptor.h
  9785. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9786. Rewritten choking algorithm.
  9787. * src/PeerChokeCommand.{cc, h}
  9788. * src/BtInterestedMessage.cc
  9789. * src/PeerSessionResource.{cc, h}
  9790. * src/DefaultPeerStorage.{cc, h}
  9791. * src/BtNotInterestedMessage.cc
  9792. * src/DefaultBtMessageDispatcher.{cc, h}
  9793. * src/BtMessageDispatcher.h
  9794. * src/Peer.{cc, h}
  9795. * src/BtLeecherStateChoke.{cc, h}
  9796. * src/BtSetup.cc
  9797. * src/BtSeederStateChoke.{cc, h}
  9798. * src/PeerStorage.h
  9799. * test/MockPeerStorage.h
  9800. * test/MockBtMessageDispatcher.h
  9801. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9802. Fixed compilation error on x84-64 platform.
  9803. * src/AuthConfig.cc: Included ostream.
  9804. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9805. Rewritten getBasename() and getDirname(), without standard library
  9806. basename(), dirname().
  9807. * src/File.cc
  9808. * test/FileTest.cc
  9809. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. Added Simplified Chinese translation. Also updated the following
  9811. translations: Polish, Dutch, German. Great thanks to all translators.
  9812. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9813. Suppress content-range error when 'Content-Range' response header
  9814. doesn't contains bytes-unit specifier 'bytes'
  9815. * src/HttpHeader.cc (getRange)
  9816. * test/HttpHeaderTest.cc
  9817. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9818. Fixed compilation error with g++-4.3
  9819. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9820. Added missing include files for MinGW
  9821. * test/HttpHeaderProcessorTest.cc
  9822. * test/DHTRoutingTableSerializerTest.cc
  9823. * test/DHTRoutingTableDeserializerTest.cc
  9824. * test/UriListParserTest.cc
  9825. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9826. Now download line is printed nicely with no garbage at the end of
  9827. line. I use ioctl to get the columns of terminal.
  9828. If stdout is redirected to another device, instead of carriage return,
  9829. end of line '\n' character is used. This is feature request#1909659
  9830. * src/ConsoleStatCalc.cc (calculateStat)
  9831. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9832. Included a2time.h
  9833. * src/DHTMessageDispatcher.h
  9834. * src/DHTMessageEntry.h
  9835. * src/DHTReplaceNodeTask.h
  9836. * src/DHTMessageTracker.h
  9837. * src/Util.h
  9838. * src/CookieBox.h
  9839. * src/SocketCore.h
  9840. * src/DefaultBtMessageDispatcher.h
  9841. * src/SocketCore.cc
  9842. * src/Util.cc
  9843. * src/DHTPingTask.h
  9844. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9845. Fixed high memory footprint when DHT is enabled.
  9846. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  9847. queued than it is processed and the queue is getting longer. As a
  9848. consequence, momory usage is increased.
  9849. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  9850. replacement cache in DHTBucket which is described in Kademlia paper.
  9851. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  9852. DHTReplaceNodeTask.
  9853. * src/DHTBucket.{h, cc}
  9854. (cacheNode): New function.
  9855. (getCachedNodes): New function.
  9856. (dropNode): Push back cached node to _nodes.
  9857. * test/DHTBucketTest.cc
  9858. (testCacheNode): New test
  9859. (testDropNode): New test
  9860. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9861. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  9862. the unused 4KB memory when ssl is not used.
  9863. * src/SocketCore.cc
  9864. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9865. Added summary log for peer announce storage.
  9866. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  9867. Removed cast
  9868. * src/DefaultPeerStorage.cc (addPeer)
  9869. Log exception message
  9870. * src/DHTMessageTracker.cc (handleTimeout)
  9871. Fixed casting
  9872. * test/HttpRequestTest.cc
  9873. * test/MetalinkProcessorTest.cc
  9874. * test/PieceTest.cc
  9875. * test/MetalinkEntryTest.cc
  9876. * test/SequenceTest.cc
  9877. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9878. * src/ParameterizedStringParser.cc (createLoop):
  9879. Removed unused variable sstep.
  9880. * src/AlphaNumberDecorator.h (decode): Rewritten.
  9881. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9882. * src/Util.{h, cc}
  9883. (parseUInt): New function.
  9884. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  9885. The actual range is uint32_t.
  9886. * test/UtilTest.cc
  9887. * src/ParameterizedStringParser.cc:
  9888. Use Util::parseUInt() for loop variables.
  9889. * test/ParameterizedStringParserTest.cc
  9890. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  9891. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. Rewritten the functions for binding port.
  9893. * src/DHTConnectionImpl.{h, cc}
  9894. * src/PeerListenCommand.{h, cc}
  9895. * src/DHTSetup.cc
  9896. * src/BtSetup.cc
  9897. * test/DHTConnectionImplTest.cc
  9898. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9899. type cleanup for allmost all remaining files.
  9900. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. Type clarification
  9902. * src/PeerSessionResource.{h, cc}
  9903. * src/DefaultPieceStorage.{h, cc}
  9904. * src/Peer.{h, cc}
  9905. * test/PeerSessionResourceTest.cc
  9906. Use div function
  9907. * src/BtPieceMessage.cc (erasePieceOnDisk)
  9908. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9909. Type clarification
  9910. * src/DefaultPeerStorage.{h, cc}
  9911. * test/DefaultPeerStorageTest.cc
  9912. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9913. Type clarification: size_t for length or size, uint64_t for file
  9914. length, off_t for file offset.
  9915. * src/DefaultBtProgressInfoFile.cc
  9916. * src/DefaultBtContext.{h, cc}
  9917. * src/DefaultBtInteractive.cc
  9918. * src/DownloadCommand.{h, cc}
  9919. * src/IteratableChunkChecksumValidator.{h, cc}
  9920. * src/SegmentMan.{h, cc}
  9921. * src/SingleFileDownloadContext.{h, cc}
  9922. * src/IteratableChecksumValidator.{h, cc}
  9923. * src/BtContext.h
  9924. * src/IteratableValidator.h
  9925. * src/DownloadContext.h
  9926. * test/SingleFileDownloadContextTest.cc
  9927. * test/DefaultBtContextTest.cc
  9928. * test/MockBtContext.h
  9929. * test/Metalink2RequestGroupTest.cc
  9930. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9931. Type clarification: size_t for length or size, uint64_t for file
  9932. length, off_t for file offset.
  9933. * src/PiecedSegment.cc
  9934. * src/GrowSegment.h
  9935. * src/DefaultBtRequestFactory.h
  9936. * src/DefaultBtProgressInfoFile.cc
  9937. * src/UnknownLengthPieceStorage.h
  9938. * src/DefaultPieceStorage.cc
  9939. * src/UnknownLengthPieceStorage.cc
  9940. * src/DefaultBtInteractive.cc
  9941. * src/GrowSegment.cc
  9942. * src/BitfieldMan.h
  9943. * src/DownloadCommand.cc
  9944. * src/BtRequestFactory.h
  9945. * src/PiecedSegment.h
  9946. * src/DefaultPieceStorage.h
  9947. * src/Piece.cc
  9948. * src/DefaultBtRequestFactory.cc
  9949. * src/PieceStorage.h
  9950. * src/Segment.h
  9951. * src/Piece.h
  9952. * src/BitfieldMan.cc
  9953. * src/Util.cc
  9954. * test/DefaultBtProgressInfoFileTest.cc
  9955. * test/DefaultPieceStorageTest.cc
  9956. * test/MockPieceStorage.h
  9957. * test/BtRequestMessageTest.cc
  9958. * test/DefaultBtMessageDispatcherTest.cc
  9959. * test/BitfieldManTest.cc
  9960. * test/GrowSegmentTest.cc
  9961. * test/PieceTest.cc
  9962. * test/SegmentTest.cc
  9963. * test/SegmentManTest.cc
  9964. * test/DefaultBtRequestFactoryTest.cc
  9965. * test/MockBtRequestFactory.h
  9966. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9967. Fixed compilation error with --disable-nls
  9968. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  9969. in gettext.h causes the problem.
  9970. * src/common.h
  9971. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9972. Removed subPiece related functions.
  9973. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  9974. * src/DefaultPieceStorage.{h, cc}
  9975. * test/PieceTest.cc
  9976. * test/DefaultPieceStorageTest.cc
  9977. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9978. Use unsigned char for data store.
  9979. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9980. Bump up version number to 0.13.0+1
  9981. * configure.ac
  9982. * Release 0.13.0+1
  9983. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9984. Changed inactive connection timeout to 120.
  9985. To accept more mulually interested peers, disconnect peer when there
  9986. is no interest between us after certain time passed.
  9987. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  9988. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9989. Fixed the bug that aria2 only uses first dns server in resolv.conf
  9990. when compiled with async DNS support.
  9991. * src/DownloadEngine.cc
  9992. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  9993. value '10' will be a little bit short when some DNS servers are
  9994. offline and several DNS servers are tried. It should be configured
  9995. by command-line option.
  9996. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. Merged Ross's mingw patch.
  9998. * src/DHTRoutingTableDeserializer.cc
  9999. * src/DHTRoutingTableSerializer.cc
  10000. * src/Platform.{h, cc}
  10001. * src/timegm.h
  10002. * src/gettimeofday.h
  10003. * src/getaddrinfo.h
  10004. * src/SocketCore.h
  10005. * src/common.h
  10006. * src/inet_aton.h
  10007. * src/DownloadEngine.h
  10008. * src/gai_strerror.h
  10009. * src/a2netcompat.h
  10010. * configure.ac
  10011. * configure
  10012. * aclocal.m4
  10013. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10014. Included missing iostream.
  10015. * test/AllTest.cc
  10016. * test/BtDependencyTest.cc
  10017. * test/BtExtendedMessageTest.cc
  10018. * test/DHTConnectionImplTest.cc
  10019. * test/DHTMessageFactoryImplTest.cc
  10020. * test/DHTMessageTrackerEntryTest.cc
  10021. * test/DHTNodeTest.cc
  10022. * test/DHTRoutingTableSerializerTest.cc
  10023. * test/DefaultBtAnnounceTest.cc
  10024. * test/DefaultBtContextTest.cc
  10025. * test/DefaultBtMessageFactoryTest.cc
  10026. * test/DefaultExtensionMessageFactoryTest.cc
  10027. * test/HandshakeExtensionMessageTest.cc
  10028. * test/HttpResponseTest.cc
  10029. * test/MetalinkProcessorTest.cc
  10030. * test/MultiFileAllocationIteratorTest.cc
  10031. * test/SocketCoreTest.cc
  10032. * test/UTPexExtensionMessageTest.cc
  10033. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10034. Reorganized includes.
  10035. * src/NameResolver.cc
  10036. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10037. Fixed compilation error without ares/c-ares
  10038. * src/NameResolver.h:
  10039. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10040. Added a test for large file.
  10041. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  10042. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10043. Fixed the bug that file size is ignored if size > INT32_MAX
  10044. * src/SizeMetalinkParserState.cc (endElement):
  10045. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10046. Bump up version number to 0.13.0
  10047. * configure.ac
  10048. * Release 0.13.0
  10049. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10050. Updated Makfefile.am to make 'make dist' work.
  10051. Now packaged filename is aria2c-VERSION.tar.bz2.
  10052. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  10053. Added LICENSE.OpenSSL to dist_noinst_DATA.
  10054. Large file support is now configured by configure script.
  10055. * configure.ac
  10056. Removed unsused source files
  10057. * src/
  10058. * test/
  10059. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  10060. Peer.h and BtContext.h respectively.
  10061. * src/Peer.h
  10062. * src/BtContext.h
  10063. Updated translations.
  10064. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  10065. translations. Great thanks to all translators!;)
  10066. * po/*.{po, gmo}
  10067. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10068. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  10069. statically declared sha1 MessageDigestContext.
  10070. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  10071. initialization of short-lived MessageDigestContext.
  10072. * src/MessageDigestHelper.{h, cc}
  10073. * src/main.cc
  10074. Now DownloadCommand has a reference to MessageDigestContext to avoid
  10075. the initialization of MessageDigestContext every time in validating
  10076. chunk checksum.
  10077. * src/DownloadCommand.{h, cc}
  10078. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10079. Add a file descriptor which connected to fast peer(latency<1500) to
  10080. select(). This change reduced CPU load.
  10081. * src/PeerInteractionCommand.cc
  10082. * src/DefaultBtInteractive.{h, cc}
  10083. * src/BtInteractive.h
  10084. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. Fixed the previous insufficient fix for possible busy loop.
  10086. * src/MSEHandshake.cc (identifyHandshakeType)
  10087. Removed unused functions.
  10088. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  10089. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10090. Fixed possible busy loop if first 20 bytes are not received for a few
  10091. minutes.
  10092. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  10093. * src/ReceiverMSEHandshakeCommand.cc
  10094. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10095. Fixed compilation error
  10096. * src/ExpatMetalinkProcessor.cc
  10097. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10098. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  10099. * src/DHTBucket.cc
  10100. Removed unnecessary cast.
  10101. * src/HandshakeExtensionMessage.cc
  10102. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10103. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  10104. is missing.
  10105. * src/OptionHandlerFactory.cc
  10106. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10107. Fixed the bug that HAVE message is not sent for a piece they are
  10108. downloaded fom http/ftp server before any BitTorrent handshake is done
  10109. with peers.
  10110. * src/DefaultBtInteractive.cc
  10111. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10112. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  10113. * src/Makefile.am
  10114. * src/Makefile.in
  10115. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10116. Updated README. Added html version of README and man page.
  10117. * README
  10118. * README.html
  10119. * readme2html: Shell script to generate README.html from README using
  10120. asciidoc.
  10121. * doc/aria2c.1.html
  10122. * doc/makeman: Added the line to generate aria2c.1.html
  10123. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10124. Fixed offset calculation.
  10125. * src/LibgcryptDHKeyExchange.h (computeSecret)
  10126. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10127. Rewritten itos and uitos using template. llitos and ullitos are
  10128. replaced with itos and uitos respectively.
  10129. * src/Util.{h, cc}
  10130. * test/UtilTest.cc
  10131. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10132. Fixed the bug that DH key exchange sometimes fails due to bad handling
  10133. of the number of bytes required for storing public key and shared
  10134. secret.
  10135. * src/LibgcryptDHKeyExchange.h
  10136. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  10137. * src/MSEHandshake.cc
  10138. * test/DHKeyExchangeTest.cc
  10139. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10140. Removed since they are not used.
  10141. * src/Xml2MetalinkProcessor.{h, cc}
  10142. * src/Socket.cc
  10143. * src/SegmentSplitter.{h, cc}
  10144. * test/Xml2MetalinkProcessorTest.cc
  10145. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10146. Fixed the bug that prevents aria2 from stopping other than by pressing
  10147. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  10148. option. aria2 doesn't stop even after --seed-time is satisfied and
  10149. continues to output blank lines in the console.
  10150. * src/ReceiverMSEHandshakeCommand.cc
  10151. * src/PeerReceiveHandshakeCommand.cc
  10152. * src/PeerListenCommand.cc
  10153. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10154. Bump up version number to 0.13.0rc
  10155. * configure.ac
  10156. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10157. Updated man page and some usage text.
  10158. * doc/aria2c.1.txt
  10159. * src/usage_text.h
  10160. * po/*.{po, gmo}
  10161. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10162. Updated translations. Added Finnish and Hebrew translations.
  10163. Great thanks to all translators!
  10164. * po/*.{po, gmo}
  10165. * po/LINGUAS
  10166. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10167. Log more detailed information about each message.
  10168. * src/DHTQueryMessage.{h, cc}
  10169. * src/DHTGetPeersMessage.{h, cc}
  10170. * src/DHTFindNodeReplyMessage.{h, cc}
  10171. * src/DHTGetPeersReplyMessage.{h, cc}
  10172. * src/DHTAnnouncePeerMessage.{h, cc}
  10173. * src/DHTResponseMessage.{h, cc}
  10174. * src/DHTFindNodeMessage.{h, cc}
  10175. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10176. Use constants defined in prefs.h
  10177. * src/option_processing.cc
  10178. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10179. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  10180. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10181. Make room for future enchancements for IPv6 addresses.
  10182. Bump up version number of dht.dat file format to 2.
  10183. Not compatible with previous version.
  10184. * src/DHTRoutingTableSerializer.cc
  10185. * src/DHTRoutingTableDeserializer.cc
  10186. * test/DHTRoutingTableSerializerTest.cc
  10187. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10188. Added handling for the return values from
  10189. PeerMessageUtil::createcompact().
  10190. * src/DefaultBtContext.cc (computeFastSet):
  10191. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10192. Fixed abort when peer's ip address is IPv4-mapped address.
  10193. * src/DefaultBtContext.cc (computeFastSet)
  10194. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  10195. cannot handle IPv4-mapped addresses.
  10196. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  10197. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10198. Proper return value handling for OpenSSL functions.
  10199. * src/LibsslDHKeyExchange.h
  10200. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10201. Random bytes generation using libgcrypt and OpenSSL.
  10202. * src/DHTUtil.{h, cc}
  10203. * test/DHTUtilTest.cc
  10204. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10205. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  10206. received.
  10207. * src/DHTMessageReceiver.cc (receiveMessage)
  10208. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. Fixed the bug that a return code is always 0. BUG#1897704
  10210. If error occurred during the download or there exist unfinished
  10211. downloads, aria2 returns with code 1.
  10212. * src/RequestGroupMan.{h, cc}
  10213. * src/MultiUrlRequestInfo.{h, cc}
  10214. * src/main.cc
  10215. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. IPv6 support for SocketCore class.
  10217. TODO: In SocketCore::establishConnection(), this is insufficient to
  10218. determin the failure of connect() here because the socket is
  10219. non-blocking state. The next addresses should be tried after select().
  10220. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  10221. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  10222. instead which address family independent.
  10223. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  10224. information in a compact peer format which is for IPv4 only.
  10225. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  10226. this is a spec of BitTorrent protocol.
  10227. * src/SocketCore.{h, cc}
  10228. * src/PeerMessageUtil.cc
  10229. * test/SocketCoreTest.cc
  10230. * test/PeerMessageUtilTest.cc
  10231. * test/DHTConnectionImplTest.cc
  10232. Handle IPv4-mapped addresses.
  10233. * src/DHTNode.cc: Now identity is determined by node id.
  10234. * src/DHTMessageTrackerEntry.cc
  10235. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  10236. should handle it.
  10237. * src/DHTRoutingTableDeserializer.cc
  10238. * src/DHTMessageFactoryImpl.cc
  10239. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10240. Change the unit of --stop option from a minute to a second.
  10241. * src/usage_text.h
  10242. * src/DownloadEngineFactory.cc
  10243. * src/OptionHandlerFactory.cc
  10244. * src/message.h
  10245. * src/TimedHaltCommand.cc
  10246. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10247. Make listening socket non-block mode.
  10248. * src/FtpConnection.cc
  10249. * src/FtpNegotiationCommand.{h, cc}
  10250. * src/PeerListenCommand.cc
  10251. Fixed the bug that cause slow ftp negotiation.
  10252. * src/FtpNegotiationCommand.{h, cc}
  10253. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10254. Added basic tag to --enable-dht, --dht-listen-port option.
  10255. * src/HelpItemFactory.cc (createHelpItems)
  10256. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10257. Updated text.
  10258. * src/usage_text.h
  10259. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  10261. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10262. Determin _threadtholdSpeed in each constructor for
  10263. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  10264. * src/ActivePeerConnectionCommand.{h, cc}
  10265. * src/PeerReceiveHandshakeCommand.{h, cc}
  10266. * src/BtSetup.cc
  10267. * src/BtConstants.h
  10268. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10269. Added --bt-min-crypto-level and --bt-require-crypto options.
  10270. * src/OptionHandlerFactory.cc
  10271. * src/MSEHandshake.cc
  10272. * src/HelpItemFactory.cc
  10273. * src/option_processing.cc
  10274. * src/ReceiverMSEHandshakeCommand.cc
  10275. * src/prefs.h
  10276. * src/DefaultBtAnnounce.cc
  10277. * src/InitiatorMSEHandshakeCommand.cc
  10278. * src/usage_text.h
  10279. * test/MSEHandshakeTest.cc
  10280. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10281. Bump version number to 0.13.0b
  10282. * configure.ac
  10283. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10284. Updated doc.
  10285. * src/MessageDigestHelper.h:
  10286. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10287. Use raw message digest as a token instead of its hexadecimal
  10288. representation.
  10289. * src/DHTTokenTracker.cc (generateToken)
  10290. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10291. Added Message Stream Encryption(MSE) support.
  10292. Currently, aria2 accepts incoming connections with Obfuscation Header
  10293. and legacy BitTorrent Header and establishes connections with
  10294. Obfuscation Header first and if failed then retry with legacy
  10295. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  10296. choose ARC4. The new option to change the default behavior is planned.
  10297. For tracker extension, "supportcrypto=1" is added statically.
  10298. * src/PeerInitiateConnectionCommand.{h, cc}
  10299. * src/PeerConnection.{h, cc}
  10300. * src/HandleRegistry.h
  10301. * src/SocketCore.h
  10302. * src/PeerReceiveHandshakeCommand.{h, cc}
  10303. * src/BtRegistry.{h, cc}
  10304. * src/PeerListenCommand.cc
  10305. * src/InitiatorMSEHandshakeCommand.{h, cc}
  10306. * src/ReceiverMSEHandshakeCommand.{h, cc}
  10307. * src/MSEHandshake.{h, cc}
  10308. * src/ARC4Encryptor.h
  10309. * src/ARC4Decryptor.h
  10310. * src/LibgcryptARC4Encryptor.h
  10311. * src/LibgcryptARC4Decryptor.h
  10312. * src/LibgcryptARC4Context.h
  10313. * src/LibsslARC4Encryptor.h
  10314. * src/LibsslARC4Decryptor.h
  10315. * src/LibsslARC4Context.h
  10316. * src/DHKeyExchange.h
  10317. * src/LibgcryptDHKeyExchange.h
  10318. * src/LibsslDHKeyExchange.h
  10319. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  10320. * test/DefaultBtAnnounceTest.cc
  10321. * test/ARC4Test.cc
  10322. * test/DHKeyExchangeTest.cc
  10323. Removed prepareForRetry() because it is not used.
  10324. * src/PeerAbstractCommand.{h, cc}
  10325. * src/PeerInteractionCommand.{h, cc}
  10326. * src/PeerInitiateConnectionCommand.{h, cc}
  10327. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10328. Added the ability to load nodes from torrent file. These nodes are
  10329. added to the routing table when downloading that torrent.
  10330. * src/BtContext.h
  10331. * src/DefaultBtContext.{h, cc}
  10332. * src/DHTSetup.cc
  10333. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  10334. hostname and port pair, and resolves all of them.
  10335. * src/NameResolver.{h, cc}: Added reset().
  10336. * src/RequestGroup.cc
  10337. * test/DefaultBtContextTest.cc
  10338. * test/MockBtContext.h
  10339. Removed assert() from DefaultBtContext and throw exception instead.
  10340. * src/DefaultBtContext.cc
  10341. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10342. Fixed segmentation fault bug when exiting if dht is disabled.
  10343. * src/RequestGroup.cc
  10344. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10345. Fixed typo in log message and define the message in message.h
  10346. * src/TimedHaltCommand.cc
  10347. * src/message.h
  10348. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10349. Included RecoverableException.h to fix compilation error.
  10350. * test/DHTMessageFactoryImplTest.cc
  10351. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10352. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  10353. * test/DHTPingMessageTest.cc
  10354. * test/DHTGetPeersMessageTest.cc
  10355. * test/DHTFindNodeMessageTest.cc
  10356. * test/DHTAnnouncePeerMessageTest.cc
  10357. * test/MockDHTMessage.h
  10358. * test/MockDHTMessageFactory.h
  10359. * test/MockDHTMessageDispatcher.h: New class.
  10360. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10361. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  10362. virtual.
  10363. * src/DHTMessageDispatcher.h
  10364. * src/DHTMessageDispatcherImpl.{h, cc}
  10365. * src/DHTSetup.cc
  10366. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10367. Adding handling of DHT error message. Just log error message and
  10368. throw exception.
  10369. * src/DHTMessageFactoryImpl.cc
  10370. * test/DHTMessageFactoryImplTest.cc
  10371. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10372. Added handling of dynamic cast failure.
  10373. * src/DHTNodeLookupTask.cc
  10374. * src/DHTPeerLookupTask.cc
  10375. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. Added the ability to stop aria2 itself when given time has passed
  10377. from start. Use --stop option to specify time in minutes.
  10378. When 0 is given, this feature is disabled.
  10379. * src/OptionHandlerFactory.cc
  10380. * src/TimeBasedCommand.h: Make _interval protected scope.
  10381. * src/HelpItemFactory.cc
  10382. * src/option_processing.cc
  10383. * src/prefs.h
  10384. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  10385. before calling RequestGroupMan::fillRequestGroupFromReserver().
  10386. Without this modification, the result list shows "ERR" when aria2 is
  10387. stopped by --stop option. It should be "INPR".
  10388. * src/DownloadEngine.{h, cc}
  10389. * src/DownloadEngineFactory.cc
  10390. * src/usage_text.h
  10391. * src/TimedHaltCommand.{h, cc}: New class.
  10392. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10393. Bootstrap through node added by port message.
  10394. Currently bootstrap is executed if the number of buckets in routing
  10395. table is 1.
  10396. * src/BtPortMessage.{h, cc}
  10397. * src/DefaultBtMessageFactory.{h, cc}
  10398. * src/PeerInteractionCommand.cc
  10399. * test/BtPortMessageTest.cc
  10400. * test/MockDHTTask.h
  10401. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10402. Extract the Peer class's member variables, which are only needed after
  10403. PeerInteractionCommand, into PeerSessionResource class.
  10404. This class is instantiated in PeerInteractionCommand class's ctor and
  10405. released in its dtor.
  10406. This will make Peer class lightweight and uses less memory for peers
  10407. which are not connected and wait in the queue.
  10408. * src/PeerChokeCommand.cc
  10409. * src/PeerSessionResource.{h, cc}
  10410. * src/PeerInteractionCommand.cc
  10411. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  10412. * src/DefaultBtInteractive.cc
  10413. * src/BtPieceMessage.cc
  10414. * src/BtInterestedMessage.cc
  10415. * src/BtUnchokeMessage.cc
  10416. * src/DefaultPeerStorage.{h, cc}
  10417. * src/PeerInitiateConnectionCommand.cc
  10418. * src/ActivePeerConnectionCommand.cc
  10419. * src/BtNotInterestedMessage.cc
  10420. * src/DefaultBtMessageDispatcher.cc
  10421. * src/BtChokeMessage.cc
  10422. * src/BtRequestMessage.cc
  10423. * src/Peer.{h, cc}
  10424. * src/BtRegistry.h
  10425. * src/TrackerWatcherCommand.cc
  10426. * src/PeerReceiveHandshakeCommand.cc
  10427. * test/BtExtendedMessageTest.cc
  10428. * test/BtAllowedFastMessageTest.cc
  10429. * test/BtCancelMessageTest.cc
  10430. * test/DefaultPieceStorageTest.cc
  10431. * test/BtBitfieldMessageTest.cc
  10432. * test/BtHaveMessageTest.cc
  10433. * test/BtNotInterestedMessageTest.cc
  10434. * test/BtRequestMessageTest.cc
  10435. * test/PeerSessionResourceTest.cc
  10436. * test/DefaultBtMessageDispatcherTest.cc
  10437. * test/PeerTest.cc
  10438. * test/BtInterestedMessageTest.cc
  10439. * test/BtRejectMessageTest.cc
  10440. * test/BtChokeMessageTest.cc
  10441. * test/DefaultPeerStorageTest.cc
  10442. * test/BtHaveNoneMessageTest.cc
  10443. * test/BtHaveAllMessageTest.cc
  10444. * test/DefaultExtensionMessageFactoryTest.cc
  10445. * test/BtUnchokeMessageTest.cc
  10446. * test/DefaultBtMessageFactoryTest.cc
  10447. * test/HandshakeExtensionMessageTest.cc
  10448. * test/UTPexExtensionMessageTest.cc
  10449. * test/DefaultBtRequestFactoryTest.cc
  10450. * test/BtPieceMessageTest.cc
  10451. Removed typedef PeerStats.
  10452. * src/PeerStat.h
  10453. * src/SegmentMan.cc
  10454. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10455. Added std namespace to copy, remove_copy, back_inserter,
  10456. front_inserter.
  10457. * src/RequestGroupMan.cc
  10458. * src/DefaultPieceStorage.cc
  10459. * src/StreamFileAllocationEntry.cc
  10460. * src/BtFileAllocationEntry.cc
  10461. * src/RequestGroup.cc
  10462. * src/MetalinkEntry.cc
  10463. * src/DelegatingPeerListProcessor.cc
  10464. * src/DefaultBtRequestFactory.cc
  10465. * src/DefaultBtMessageDispatcher.cc
  10466. * src/version_usage.cc: Included <algorithm>
  10467. * src/main.cc
  10468. * src/MetalinkParserController.cc
  10469. * src/DefaultBtContext.cc
  10470. * src/DownloadEngineFactory.cc
  10471. * src/a2algo.h
  10472. Removed.
  10473. * test/StreamUriListParserTest.cc
  10474. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10475. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  10476. ActivePeerConnectionCommand when it is given and
  10477. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  10478. * src/ActivePeerConnectionCommand.{h, cc}
  10479. * src/BtSetup.cc
  10480. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10481. Only add socket to DownloadEngine's select routine when peer or
  10482. localhost is unchoked and interested. This lowers CPU usage a
  10483. little bit.
  10484. * src/PeerInteractionCommand.cc
  10485. * src/PeerAbstractCommand.{h, cc}
  10486. * src/BtInteractive.h
  10487. * src/DefaultBtInteractive.{h, cc}
  10488. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10489. Revert previous change because get_peers message is needed for
  10490. announce_peer anyway.
  10491. * src/DHTGetPeersCommand.cc
  10492. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10493. Request peers thought DHT only when download hasn't finished.
  10494. * src/DHTGetPeersCommand.cc
  10495. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  10497. * src/DHTBucketRefreshTask.{h, cc}
  10498. * src/DHTSetup.cc
  10499. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10500. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  10501. standard classes.
  10502. Included string.h where mem* function are used.
  10503. Added namespace aria2.
  10504. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10505. Create directory before saving DHT routing table.
  10506. Now ios::failure is now handled properly.
  10507. * src/DHTAutoSaveCommand.cc
  10508. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10509. Removed unnecessary cerr.
  10510. * src/DownloadEngine.cc
  10511. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10512. Catch exception inside DHTMessageReceiver::receiveMessage().
  10513. Log unknown message.
  10514. * src/DHTMessageReceiver.{h, cc}
  10515. * src/DHTMessageFactory.h
  10516. * src/DHTMessageFactoryImpl.{h, cc}
  10517. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  10518. * src/DHTInteractionCommand.cc
  10519. * src/DHTUnknownMessage.{h, cc}
  10520. * test/DHTUnknownMessageTest.cc
  10521. * test/MockDHTMessageFactory.h
  10522. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10523. Commented out ip address comparison because a host can have multiple
  10524. ip addresses and it is hard to predict the hostname is resolved into
  10525. which one.
  10526. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  10527. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10528. * po/Makefile.in: Removed since this is generated by configure.
  10529. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10530. Fixed compiler warning about redefinition of SIZE_MAX.
  10531. Use common.h instead of config.h directly here.
  10532. * src/Platform.{h, cc}
  10533. The check of ENABLE_NLS is made in gettext.h, so it is not required
  10534. here.
  10535. * common.h
  10536. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  10537. Updated gettext related files.
  10538. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  10539. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  10540. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. Added DHT functionality, compatible with mainline.
  10542. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  10543. You may need to specify entry point to DHT network using
  10544. --dht-entry-point. DHT uses UDP port to listen incoming message.
  10545. Use --dht-listen-port to specify port number. Make sure that your
  10546. firewall configuration can pass through UDP traffic to the port.
  10547. The routing table is saved in $HOME/.aria2/dht.dat.
  10548. * src/DHT*
  10549. * src/BNode.{h, cc}
  10550. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  10551. particular torrent.
  10552. * src/Data.cc: Rewritten ctor.
  10553. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  10554. --dht-entry-point.
  10555. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  10556. * src/RequestGroup.cc: Initialize DHT functionality. When download
  10557. ends, remove BtContext from DHTPeerAnnounceStorage.
  10558. * src/BtPortMessage.{h, cc}: Rewritten.
  10559. * src/message.h
  10560. * src/OptionHandlerImpl.cc
  10561. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  10562. --dht-entry-point.
  10563. * src/Dictionary.{h, cc} (remove): New function.
  10564. * src/prefs.h
  10565. * src/DefaultBtMessageFactory.h
  10566. * src/BtHandshakeMessage.cc
  10567. * src/ActivePeerConnectionCommand.cc
  10568. * src/SocketCore.{h, cc}: Added datagram socket support.
  10569. * src/DefaultBtMessageFactory.cc
  10570. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  10571. Create DHT commands.
  10572. * src/BtMessageFactory.h
  10573. * src/PeerMessageUtil.{h, cc}
  10574. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10575. Fixed the bug that log file is not written when configuration file doesn't exist.
  10576. This is caused by using Logger class before LogFactory is not configured.
  10577. BUG #1875079
  10578. * src/option_processing.cc
  10579. Warning message "configuration doesn't exist" is only printed when --conf is
  10580. given.
  10581. * src/option_processing.cc
  10582. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10583. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  10584. ShaVisitor is now deprecated and slated to be removed.
  10585. * src/DefaultBtContext.cc
  10586. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10587. Externalize message to message.h
  10588. * src/Platform.cc
  10589. * src/message.h
  10590. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10591. Set default domain and default path to cookie.
  10592. * src/HttpResponse.cc
  10593. * src/CookieBox.{h, cc}
  10594. * src/CookieParser.{h, cc}
  10595. * test/CookieParserTest.cc
  10596. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10597. Added --no-conf and --conf-path command-line option.
  10598. --no-conf option disables loading aria2.conf file.
  10599. --conf-path option changes the configuration file path. The default
  10600. file path is $HOME/.aria2/aria2.conf
  10601. Added a warning message when the configuration file is not found.
  10602. * src/HelpItemFactory.cc
  10603. * src/option_processing.cc
  10604. * src/prefs.h
  10605. * src/usage_text.h
  10606. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10607. Added the message to inform users that other help categories are
  10608. available in -h option.
  10609. * src/version_usage.cc
  10610. * src/TagContainer.{h, cc}
  10611. * test/TagContainerTest.cc
  10612. * src/TaggedItem.{h, cc}
  10613. * test/TaggedItemTest.cc
  10614. * src/HelpItem.h
  10615. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10616. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  10617. from PiecedSegment's ctor.
  10618. Previously Piece::getAllMissingBlockIndexes() is called from
  10619. PiecedSegment() but it is rather expensive since only first element is
  10620. used.
  10621. * src/PiecedSegment.cc
  10622. * src/Piece.{h, cc}
  10623. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10624. Rewritten get*Missing*Index functions. Now no need to allocate memory
  10625. each time these functions are called.
  10626. * src/BitfieldMan.{h, cc}
  10627. * test/BitfieldManTest.cc
  10628. * src/array_fun.h
  10629. * test/array_funTest.cc
  10630. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  10631. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  10632. filtered. Removed unnecessary cast to int32_t.
  10633. * src/BitfieldMan.{h, cc}
  10634. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10635. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  10636. payload length(4bytes) are received. This happens because lenbufLength
  10637. is not updated in this particular case and successive call of
  10638. receiveMessage() overwrites payload length with bytes recieved which
  10639. are payload body.
  10640. * src/PeerConnection.{h, cc}
  10641. * src/message.h
  10642. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10643. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  10644. peer if there are peers that have same ipaddr and port.
  10645. I've experiened segmentation fault and "pure virtual function was
  10646. called" error.
  10647. * src/Peer.h
  10648. * test/PeerTest.cc
  10649. * src/DefaultPeerStorage.cc
  10650. * test/DefaultPeerStorageTest.cc
  10651. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10652. Removed a call to isPowerOf() because it is no longer necessary here
  10653. and a request block is not always power of 2.
  10654. BUG#1866924
  10655. * src/PeerMessageUtil.cc (checkLength)
  10656. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10657. Fixed the bug that always first found Segment is removed from
  10658. usedSegmentEntries. Removed unused functions.
  10659. * src/SegmentMan.{h, cc}
  10660. * test/SegmentManTest.cc
  10661. Fixed the bug that ServerHost is not removed.
  10662. * src/RequestGroup.cc
  10663. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10664. Fixed the bug that SegmentMan::completeSegment() is not called
  10665. even if Segment is complete when --lowest-speed-limit is enabled.
  10666. BUG#1864525
  10667. * src/DownloadCommand.{h, cc}
  10668. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10669. Fixed: hash algorithm 'sha1' is always used.
  10670. * src/DownloadCommand.cc (validatePieceHash)
  10671. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10672. Added --enable-peer-exchange command-line option.
  10673. * src/OptionHandlerFactory.cc
  10674. * src/HelpItemFactory.cc
  10675. * src/option_processing.cc
  10676. * src/usage_text.h
  10677. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10678. Move extension from BtRuntime to ExtensionMessageFactory, because
  10679. extension can be specified per peer, not per torrent.
  10680. * src/DefaultBtInteractive.cc
  10681. * src/BtRuntime.h
  10682. * src/ExtendedMessagingAware.h
  10683. * src/ExtensionMessageFactory.h
  10684. * src/DefaultExtensionMessageFactory.cc
  10685. * test/DefaultExtensionMessageFactoryTest.cc
  10686. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10687. Added categorized option help. Specify category using --help option.
  10688. Also added the ability to search options in forward match.
  10689. * src/HelpItem.{h, cc}
  10690. * test/HelpItemTest.cc
  10691. * src/HelpItemFactory.{h, cc}
  10692. * src/TagContainer.{h, cc}
  10693. * test/TagContainerTest.cc
  10694. * src/option_processing.cc
  10695. * src/prefs.h
  10696. * src/TaggedItem.{h, cc}
  10697. * test/TaggedItemTest.cc
  10698. * src/version_usage.cc
  10699. * src/help_tags.h
  10700. * src/usage_text.h
  10701. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10702. Fixed segmentation fault when bad torrent metainfo is parsed.
  10703. Added dynamic_cast properly to detect the misconfiguration of metainfo
  10704. and then throw exception or skip it.
  10705. * src/DefaultBtContext.{h, cc}
  10706. * test/DefaultBtContextTest.cc
  10707. * src/AnnounceList.cc
  10708. * src/CompactPeerListProcessor.cc
  10709. * src/message.h
  10710. * src/DefaultBtAnnounce.{h, cc}
  10711. * test/DefaultBtAnnounceTest.cc
  10712. * src/BencodeVisitor.cc
  10713. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10714. Added missing "B"(=Byte). So now the message looks like this:
  10715. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  10716. * src/message.h (MSG_SHARE_RATIO_REPORT)
  10717. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10718. Show the seed ratio after torrent downloads.
  10719. For example, after torrent download completed and --seed-time and
  10720. --seed-ratio conditions are fulfilled, following message is printed
  10721. right after "Download complete: .....":
  10722. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  10723. * src/RequestGroupMan.cc
  10724. * src/RequestGroup.{h, cc}
  10725. * src/message.h
  10726. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10727. Remove a defunct control file. A defunct control file means that while
  10728. it exists, but the corresponding download file is missing.
  10729. After its removal, a download restarts from the beginning.
  10730. * src/RequestGroup.cc
  10731. * src/message.h
  10732. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10733. Allocate bitfield in Peer when it is really used. More specifically,
  10734. bitfield in Peer is allocated after the connection is established and
  10735. deallocated when the connection is dropped.
  10736. Since 2 parameters(piece length and total length) was removed from the
  10737. constructor of Peer class, many test classes were modified accordingly.
  10738. See svn log for more detailed information.
  10739. * src/PeerInteractionCommand.cc
  10740. * src/CompactPeerListProcessor.cc
  10741. * src/Peer.cc
  10742. * src/DefaultPeerListProcessor.cc
  10743. * src/PeerListenCommand.cc
  10744. * src/PeerReceiveHandshakeCommand.cc
  10745. Fixed memory leak
  10746. * src/Piece.cc
  10747. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10748. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  10749. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  10750. command-line options.
  10751. * src/option_processing.cc
  10752. * src/ActivePeerConnectionCommand.cc
  10753. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10754. Send have message to peer if it already has the piece.
  10755. * src/BtHaveMessage.{h, cc}
  10756. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10757. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  10758. port.
  10759. * src/DefaultPeerStorage.{h, cc}
  10760. * test/DefaultPeerStorageTest.cc
  10761. * src/HandshakeExtensionMessage.cc
  10762. * test/HandshakeExtensionMessageTest.cc
  10763. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  10764. * src/PeerStorage.h
  10765. * test/MockPeerStorage.h
  10766. * src/PeerListenCommand.cc
  10767. * src/PeerReceiveHandshakeCommand.cc
  10768. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10769. Added --metalink-enable-unique-protocol option.
  10770. * src/Metalink2RequestGroup.cc
  10771. * src/option_processing.cc
  10772. * src/prefs.h
  10773. * src/version_usage.cc
  10774. * doc/aria2c.1.txt
  10775. * doc/aria2c.1
  10776. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10777. Allow a peer in incomingPeer to be added peers.
  10778. * src/DefaultPeerStorage.cc
  10779. * test/DefaultPeerStorageTest.cc
  10780. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10781. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  10782. I could reproduce this bug in following procedure:
  10783. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  10784. 2. Restart aria2.
  10785. 3. You see the download stopped around 99%.
  10786. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  10787. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  10788. If timeout is reached, then _nextCommand is unused and it may contains
  10789. segments and they won't be canceled. Actually, timeout is not needed
  10790. here because if the server dropped connection, then retry is made.
  10791. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10792. Added uTorrent compatible Peer Exchange.
  10793. * src/BencodeVisitor.{h, cc}
  10794. * test/BencodeVisitorTest.cc
  10795. * src/BtConstants.h
  10796. * src/BtContext.h: Added 'private' flag.
  10797. * src/BtExtendedMessage.{h, cc}
  10798. * test/BtExtendedMessageTest.cc
  10799. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  10800. reserved field.
  10801. * test/BtHandshakeMessageTest.cc
  10802. * src/BtMessageFactory.h
  10803. * src/BtRegistry.h
  10804. * src/BtRuntime.h: This class holds default extension message IDs for
  10805. aria2. By default, aria2 uses ID 8 for ut_pex.
  10806. * src/DefaultBtContext.cc
  10807. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  10808. When it is true, aria2 enables ut_pex. This value is set by
  10809. PeerInteractionCommand.
  10810. * src/DefaultBtMessageFactory.{h, cc}
  10811. * test/DefaultBtMessageFactoryTest.cc
  10812. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  10813. handling to DefaultBtInteractive class.
  10814. * src/DefaultExtensionMessageFactory.{h, cc}
  10815. * test/DefaultExtensionMessageFactoryTest.cc
  10816. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  10817. the container(peers and incomingPeers. The equality is determined by
  10818. Peer::id).
  10819. * test/DefaultPeerStorageTest.cc
  10820. * src/ExtensionMessage.h
  10821. * test/MockExtensionMessage.h
  10822. * src/ExtensionMessageFactory.h
  10823. * test/MockExtensionMessageFactory.h
  10824. * src/HandshakeExtensionMessage.{h, cc}
  10825. * test/HandshakeExtensionMessageTest.cc
  10826. * src/MetaEntry.h
  10827. * src/Peer.{h, cc}
  10828. * src/PeerInteractionCommand.cc
  10829. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  10830. addIncomingPeer.
  10831. * src/PeerMessageUtil.{h, cc}
  10832. * src/PeerObject.h
  10833. * src/UTPexExtensionMessage.{h, cc}
  10834. * test/UTPexExtensionMessageTest.cc
  10835. * src/message.h
  10836. * src/prefs.h
  10837. Fixed the bug that returns incomplete data when it contains null
  10838. character. A convenient constructor was also added.
  10839. * src/Data.{h, cc}
  10840. Rewritten.
  10841. * src/CompactPeerListProcessor.cc
  10842. Fixed typos.
  10843. * src/message.h
  10844. * src/MetaFileUtil.cc
  10845. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10846. Added "Status Legend" label to the explanation text of 'stat' in
  10847. download result and moved it to the last. BUG#1848214
  10848. * src/RequestGroupMan.cc
  10849. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10850. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  10851. * src/Makefie.am
  10852. * test/Makefile.am
  10853. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10854. Fixed the bug that prevents aria2 from loading cookie file when expire
  10855. value is greater than 2^31-1. BUG#1851066
  10856. * src/CookieBoxFactory.cc
  10857. * test/CookieBoxFactoryTest.cc
  10858. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10859. Fixed possible memory leak when an exception is thrown.
  10860. * src/XML2SAXMetalinkProcessor.cc
  10861. Added Expat support. If both libxml2 and Expat are installed, then
  10862. libxml2 is used by default.
  10863. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  10864. ExpatMetalinkProcessor according to the configuration.
  10865. * src/ExpatMetalinkProcessor.{h, cc}
  10866. * src/main.cc: Removed libxml2 specific header and init/free function.
  10867. * src/MetalinkProcessorFactory.{h, cc}
  10868. * src/MetalinkHelper.cc
  10869. * src/Metalinker.h: Removed unnecessary libxml2 header.
  10870. * src/MetalinkProcessor.h
  10871. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  10872. MetalinkProcessorTest is used instead.
  10873. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  10874. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  10875. MetalinkProcessorFactory::newInstance().
  10876. * m4/libexpat.m4
  10877. * configure.ac: Added configuration options for libexpat.
  10878. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10879. Disabled -s option in metalink download.
  10880. * src/Metalink2RequestGroup.cc
  10881. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10882. If several protocols are available for a mirror in metalink file,
  10883. aria2 now use one of them. --metalink-preferred-protocol option was
  10884. added to specify the preference of protocol.
  10885. * src/AbstractCommand.cc
  10886. * src/OptionHandlerFactory.cc
  10887. * src/ServerHost.{h, cc}
  10888. * src/Metalink2RequestGroup.cc
  10889. * src/RequestGroup.{h, cc}
  10890. * test/RequestGroupTest.cc
  10891. * src/option_processing.cc
  10892. * src/prefs.h
  10893. * src/HttpResponseCommand.cc
  10894. * src/MetalinkResource.{h, cc}
  10895. * src/FtpNegotiationCommand.cc
  10896. * src/MetalinkEntry.{h, cc}
  10897. * src/MetalinkEntryTest.cc
  10898. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10899. Code cleanup and added debug log.
  10900. * src/PeerConnection.cc
  10901. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10902. Compiler error fix: applied the patch by Tiziano Mueller
  10903. * src/RequestGroup.cc
  10904. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10905. Fixed the bug: only first announce URL is tried in AnnounceTier,
  10906. in stopped and completed event.
  10907. * src/AnnounceList.{h, cc}
  10908. * test/AnnounceListTest.cc
  10909. * src/DefaultBtAnnounce.cc
  10910. * test/DefaultBtAnnounceTest.cc
  10911. Sorted URLs.
  10912. * test/Metalink2RequestGroupTest.cc
  10913. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10914. Removed unnecessary string copy. Updated doc and corrected indentation.
  10915. * src/Base64.cc
  10916. Fixed compilation warnings
  10917. * test/DataTest.cc
  10918. * test/HttpRequestTest.cc
  10919. * test/MetaFileUtilTest.cc
  10920. * test/RequestTest.cc
  10921. * Release 0.12.0
  10922. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10923. Updated translations
  10924. * po/{de,fr,ja,nl,ru}.po
  10925. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  10926. translations. Many thanks to translators.
  10927. * po/{ca,es,it,pt_BR,sv}.po
  10928. * po/LINGUAS
  10929. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10930. Added a notice about URL
  10931. * src/version_usage.cc
  10932. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  10933. Fixed the bug#1845750; CTRL+C does not stop torrent.
  10934. aria2 repeatedly sends stopped request when tracker returns error code.
  10935. * src/AnnounceList.cc
  10936. * test/AnnounceListTest.cc
  10937. * src/AnnounceTier.h
  10938. Added a message when ctrl-c is hit.
  10939. Now second ctrl-c is also handled in signal handler.
  10940. * src/RequestGroupMan.{h, cc}
  10941. * src/RequestGroup.{h, cc}
  10942. * src/MultiUrlRequestInfo.cc
  10943. * src/DownloadEngine.cc
  10944. * src/TrackerWatcherCommand.cc
  10945. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10946. Code cleanup
  10947. * src/Base64.cc (encode)
  10948. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10949. Changed Direct/IO enable/disable procesure in file allocation routine.
  10950. * src/SingleFileAllocationIterator.cc
  10951. (SingleFileAllocationIterator):
  10952. Disable directIO if offset is not multiple of 512.
  10953. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  10954. * src/MultiFileAllocationIterator.cc (allocateChunk):
  10955. Enable created SingleFileAllocationIterator's directIO.
  10956. * src/FileAllocationEntry.cc
  10957. (FileAllocationEntry): Enable directIO here.
  10958. (~FileAllocationEntry): Disable directIO here.
  10959. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10960. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  10961. * src/Peer.{h, cc}
  10962. * src/DefaultPieceStorage.cc
  10963. * test/DefaultPieceStorageTest.cc
  10964. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. Rewritten direct I/O support routine
  10966. * src/SingleFileAllocationIterator.cc
  10967. * src/MultiDiskAdaptor.{h, cc}
  10968. * src/ByteArrayDiskWriter.h
  10969. * src/AbstractSingleDiskAdaptor.h
  10970. * src/AbstractDiskWriter.cc
  10971. * src/DefaultPieceStorage.cc
  10972. * src/DiskWriter.h
  10973. * src/BinaryStream.h
  10974. * src/IteratableChunkChecksumValidator.cc
  10975. * src/IteratableChecksumValidator.cc
  10976. * src/CheckIntegrityEntry.cc
  10977. * src/FileAllocationEntry.cc
  10978. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10979. Fixed typo
  10980. * src/version_usage.cc
  10981. Updated doc
  10982. * doc/aria2c.1.txt
  10983. * doc/aria2c.1
  10984. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10985. Fixed compile error without message digest support.
  10986. * src/FileMetalinkParserState.cc
  10987. * src/MetalinkParserController.{h, cc}
  10988. * test/XML2SAXMetalinkProcessorTest.cc
  10989. * test/MetalinkParserControllerTest.cc
  10990. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10991. Enable direct I/O support in checksum checking.
  10992. * src/IteratableChunkChecksumValidator.{h, cc}
  10993. * test/IteratableChunkChecksumValidatorTest.cc
  10994. * src/CheckIntegrityEntry.cc
  10995. * src/PieceHashCheckIntegrityEntry.cc
  10996. * src/IteratableChecksumValidator.{h, cc}
  10997. * src/BtCheckIntegrityEntry.cc: Added doc.
  10998. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10999. Added --allow-piece-length-change option.
  11000. * src/DefaultBtProgressInfoFile.cc
  11001. * test/DefaultBtProgressInfoFileTest.cc
  11002. * src/OptionHandlerFactory.cc
  11003. * src/option_processing.cc
  11004. * src/prefs.h
  11005. * src/version_usage.cc
  11006. * doc/aria2c.1.txt
  11007. * doc/aria2c.1
  11008. Fixed: duplicated result entry appears when exception is thrown in
  11009. RequestGroup::createInitiateConnectionCommand().
  11010. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  11011. Add RequestGroup to _requestGroup after RequetGroup::
  11012. createInitiateConnectionCommand() succeeds.
  11013. Externalized message
  11014. * src/XML2SAXMetalinkProcessor.cc
  11015. * src/message.h
  11016. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11017. Forced download abort when received negative response from http/ftp
  11018. server.
  11019. * src/HttpResponseCommand.cc
  11020. * src/FtpNegotiationCommand.cc
  11021. * src/HttpResponse.cc
  11022. * src/FtpConnection.cc
  11023. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11024. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  11025. the predecessor, Xml2MetalinkParser class.
  11026. I tested them against 94KB metalink file with 1234 chunk checksums.
  11027. The new one parsed it in 22msec, while it took 6000msec with old one.
  11028. * src/XML2SAXMetalinkProcessor.{h, cc}
  11029. * test/XML2SAXMetalinkProcessorTest.cc
  11030. * src/MetalinkParserController.{h, cc}
  11031. * test/MetalinkParserControllerTest.cc
  11032. * src/MetalinkParserState.h: Also added 16 subclasses.
  11033. * src/main.cc
  11034. * src/Metalink2RequestGroup.cc
  11035. * src/MetalinkHelper.cc
  11036. * src/MetalinkEntry.cc
  11037. * src/ChunkChecksum.h
  11038. Rewritten Base64 class for better performance.
  11039. * src/Base64.{h, cc}
  11040. * test/Base64Test.cc
  11041. * src/HttpRequest.cc
  11042. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11043. Fixed the bug#1841757: aria2 will connect to server to only get
  11044. file size.
  11045. * src/StreamFileAllocationEntry.cc
  11046. * src/option_processing.cc
  11047. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  11048. downloads.
  11049. * src/FtpNegotiationCommand.cc
  11050. Suppressed wrong message when finding PreDownloadHandler
  11051. * src/RequestGroup.cc
  11052. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11053. Updated usage
  11054. * src/version_usage.cc
  11055. Updated man page
  11056. * doc/aria2c.1.txt
  11057. * doc/aria2c.1
  11058. Updated po files
  11059. * po/aria2c.pot
  11060. * po/*.po
  11061. * po/*.gmo
  11062. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11063. Eliminated g++-4.2 warning
  11064. * src/DownloadHandlerConstants.{h, cc}
  11065. * src/Util.cc
  11066. * test/MetaFileUtilTest.cc
  11067. * test/PStringBuildVisitorTest.cc
  11068. Fixed bug: --check-integrity doesn't work for multi file torrent.
  11069. * src/RequestGroup.cc
  11070. * src/BtCheckIntegrityEntry.cc
  11071. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11072. Fixed a2io.h
  11073. * src/a2io.h
  11074. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11075. Added direct I/O support. The current implementation uses O_DIRECT,
  11076. which is not posix standard and is tested on linux 2.6.21.
  11077. Currently only file allocation uses direct I/O.
  11078. * src/SingleFileAllocationIterator.{h, cc}
  11079. * test/SingleFileAllocationIteratorTest.cc
  11080. * src/MultiFileAllocationIterator.{h, cc}
  11081. * test/MultiFileAllocationIteratorTest.cc
  11082. * src/BinaryStream.h
  11083. * src/DiskWriter.h
  11084. * src/AbstractDiskWriter.{h, cc}
  11085. * src/ByteArrayDiskWriter.h
  11086. * src/DiskAdaptor.h
  11087. * src/AbstractSingleDiskAdaptor.{h, cc}
  11088. * src/MultiDiskAdaptor.{h, cc}
  11089. * src/FileAllocationEntry.cc
  11090. * src/Util.{h, cc}
  11091. * src/OptionHandlerFactory.cc
  11092. * src/prefs.h
  11093. * src/version_usage.cc
  11094. * src/option_processing.cc
  11095. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  11096. handleException.
  11097. * src/MultiFileAllocationIterator.cc
  11098. Added EINTR handling
  11099. * src/SocketCore.cc
  11100. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11101. Updated usage
  11102. * src/version_usage.cc
  11103. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11104. Applied Ross's patch for MinGW port.
  11105. * src/DownloadEngine.h
  11106. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11107. Set Content-Type to SingleFileDownloadContext when http response is
  11108. received.
  11109. * src/HttpResponseCommand.cc
  11110. * src/HttpResponse.{h, cc}
  11111. * test/HttpResponseTest.cc
  11112. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11113. Rewritten to add content-type support.
  11114. * src/DownloadHandler.{h, cc}
  11115. * src/BtPostDownloadHandler.{h, cc}
  11116. * test/BtPostDownloadHandlerTest.cc
  11117. * src/MetalinkPostDownloadHandler.{h, cc}
  11118. * test/MetalinkPostDownloadHandlerTest.cc
  11119. * src/PostDownloadHandler.{h, cc}
  11120. * src/DownloadHandlerConstants.{h, cc}
  11121. * src/RequestGroup.cc
  11122. * src/HttpResponseCommand.cc
  11123. * src/FtpNegotiationCommand.cc
  11124. * src/SingleFileDownloadContext.{h, cc}
  11125. * src/RequestGroup.h
  11126. * src/RequestGroupCriteria.h
  11127. * src/ContentTypeRequestGroupCriteria.h
  11128. Added 'mem' option value for --follow-metalink, --follow-torrent.
  11129. If it is give, metalink/torrent file is not written to the disk, but
  11130. just is kept in memory. Parsing is occurred on memory.
  11131. * src/MetalinkHelper.{h, cc}
  11132. * src/MetalinkProcessor.h
  11133. * src/Xml2MetalinkProcessor.{h, cc}
  11134. * test/Xml2MetalinkProcessorTest.cc
  11135. * src/DownloadHandlerFactory.{h, cc}
  11136. * test/DownloadHandlerFactoryTest.cc
  11137. * src/PreDownloadHandler.{h, cc}
  11138. * src/OptionHandlerFactory.cc
  11139. * src/DefaultBtContext.{h, cc}
  11140. * test/DefaultBtContextTest.cc
  11141. * src/version_usage.cc
  11142. * src/Metalink2RequestGroup.{h, cc}
  11143. * src/RequestGroup.{h, cc}
  11144. * src/a2functional.h
  11145. * test/a2functionalTest.cc
  11146. * src/MemoryBufferPreDownloadHandler.{h, cc}
  11147. * src/OptionHandlerImpl.h
  11148. * src/prefs.h
  11149. * src/Util.{h, cc}
  11150. * test/UtilTest.cc
  11151. Keep DownloadResult rather than RequestGroup after downloads to reduce
  11152. memory usage.
  11153. * src/RequestGroupMan.{h, cc}
  11154. * src/DownloadEngine.cc
  11155. * src/BtDependency.{h, cc}: Changed the type of dependee from
  11156. WeakHandle to SharedHandle because WeakHandle could be null.
  11157. * src/RequestGroup.{h, cc}
  11158. * src/DownloadEngineFactory.cc
  11159. * src/DownloadResult.h
  11160. Set totalLength after download finished
  11161. * src/UnknownLengthPieceStorage.{h, cc}
  11162. Keep torrent file specified in metalink in memory.
  11163. * src/Metalink2RequestGroup.cc
  11164. * src/BtDependency.cc
  11165. * src/TrueRequestGroupCriteria.h
  11166. Fixed the bug: seekg is used where seekp should be used.
  11167. * src/ByteArrayDiskWriter.cc
  11168. * test/ByteArraydiskWriterTest.cc
  11169. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11170. Fixed syntax error
  11171. * test/SequenceTest.cc
  11172. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11173. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11174. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  11175. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  11176. * src/RequestGroup.cc (downloadFinishedByFileLength)
  11177. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11178. Added the check to see whether ares_host_callback accepts timeouts
  11179. with c-ares; only c-ares 1.5.0 or newer accepts it.
  11180. * src/NameResolver.{h, cc}
  11181. * m4/libcares.m4
  11182. * configure.ac: Set C++ for language choice.
  11183. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11184. Fixed: compilation fails without c-ares/ares
  11185. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  11186. Generate http/ftp commands only when download is incomplete.
  11187. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  11188. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11189. Corrected typo. Examples are removed since they are available in man
  11190. page.
  11191. * src/version_usage.cc
  11192. Updated man page.
  11193. * doc/aria2c.1
  11194. * doc/aria2c.1.txt
  11195. * doc/makeman: Commented out sed command.
  11196. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11197. Throw DlAbortEx when a remote file is not found.
  11198. * src/HttpResponse.cc
  11199. * src/FtpNegotiationCommand.cc
  11200. * src/message.h
  11201. Overwrite an existing file if --allow-overwrite=true is given.
  11202. * src/RequestGroup.cc
  11203. Removed unused functions
  11204. * src/AbstractCommand.h
  11205. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11206. Removed 'extern' from 'extern typedef ...' in src/*.h
  11207. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11208. Updated usage
  11209. * src/version_usage.cc
  11210. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11211. Trim announce URL
  11212. * src/DefaultBtContext.cc
  11213. * test/ShaVisitorTest.cc
  11214. Trim argument s. Give trimed s to exception constructor.
  11215. * src/Util.cc (parseInt)(parseLLInt)
  11216. * test/UtilTest.cc
  11217. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11218. Set precision back to 1.
  11219. * src/ConsoleStatCalc.cc (calculateStat)
  11220. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11221. Replaced strtol with Util::parseInt
  11222. * src/ChunkedEncoding.cc
  11223. * src/HttpConnection.cc
  11224. * src/CookieBoxFactory.cc
  11225. * src/ParameterizedStringParser.cc
  11226. * src/Util.cc
  11227. * test/UtilTest.cc
  11228. * test/OptionHandlerTest.cc
  11229. * src/Request.cc
  11230. Throw exception when empty string is given. The message for exception
  11231. changed.
  11232. * src/Util.cc (parseInt)(parseLLInt)
  11233. * src/message.h
  11234. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11235. Set precision to 2 because share ratio is rounded into 1.0 if precision
  11236. set to 1.
  11237. * src/ConsoleStatCalc.cc (calculateStat)
  11238. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11239. Preallocate non-requested file which is adjacent forward to requested
  11240. file('requested' files means the files given in --select-file option)
  11241. if they share a same piece.
  11242. This fixes long pause in the file system which doesn't support sparse
  11243. files like FAT32 while downloading.
  11244. * src/MultiFileAllocationIterator.{h, cc}
  11245. * test/MultiFileAllocationIteratorTest.cc
  11246. * src/FileEntry.{h, cc}
  11247. Removed unused _option.
  11248. * src/MultiDiskAdaptor.h
  11249. * test/MultiDiskAdaptorTest.cc
  11250. * src/DefaultPieceStorage.cc
  11251. Set the default value of --seed-ratio to 1.0.
  11252. If 0.0 is given, then seeding continues regardless of share ratio.
  11253. * src/version_usage.cc
  11254. * src/option_processing.cc
  11255. * src/BtSetup.cc
  11256. * doc/aria2c.1.txt
  11257. * doc/aria2c.1
  11258. Fixed: Selective download is not working in BitTorrent
  11259. * src/RequestGroup.cc
  11260. Introduced Sequence class. Use this instead of Util::unfoldRange()
  11261. * src/PieceStorage.h
  11262. * test/MockPieceStorage.h
  11263. * src/UnknownLengthPieceStorage.h
  11264. * src/DefaultPieceStorage.{h, cc}
  11265. * src/Metalink2RequestGroup.cc
  11266. * src/RequestGroup.cc
  11267. * src/Sequence.h
  11268. * test/SequenceTest.cc
  11269. * src/IntSequence.h
  11270. * src/message.h
  11271. * src/Util.{h, cc}
  11272. * test/UtilTest.cc
  11273. Added new function 'parse' to catch exception thrown by subclass's
  11274. parseArg
  11275. * src/OptionHandler.h
  11276. * src/OptionParser.cc
  11277. * src/NameMatchOptionHandler.h
  11278. * src/OptionHandlerImpl.h
  11279. * test/OptionHandlerTest.cc
  11280. Added IntegerRangeOptionHandler. Used for --listen-port and
  11281. --select-file. Now --listen-port accepts range of port.
  11282. * src/OptionHandlerFactory.cc
  11283. * src/version_usage.cc
  11284. * src/OptionHandlerImpl.h
  11285. * src/option_processing.cc
  11286. * src/BtSetup.cc
  11287. * src/PeerListenCommand.{h, cc}
  11288. * doc/aria2c.1.txt
  11289. * doc/aria2c.1
  11290. Implemented operator< for Exception class to provide easy way to print
  11291. exception stack trace.
  11292. * src/Exception.{h, cc}
  11293. * src/main.cc
  11294. * src/option_processing.cc
  11295. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11296. * src/version_usage.cc
  11297. (showVersion): Reworked.
  11298. (showUsage): Added examples.
  11299. Removed Hint for total length and file name.
  11300. * src/Metalink2RequestGroup.cc
  11301. * src/RequestGroup.{h, cc}
  11302. * src/HttpResponseCommand.cc
  11303. * src/FtpNegotiationCommand.cc
  11304. Now --follow-torrent and --follow-metalink option work properly.
  11305. * src/RequestGroup.cc
  11306. Updated man page
  11307. * doc/aria2c.1.txt
  11308. * doc/aria2c.1
  11309. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11310. Removed.
  11311. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  11312. Use Segment::operator==()
  11313. * src/HttpConnection.cc
  11314. * src/Segment.h
  11315. Updated usage
  11316. * src/version_usage.cc
  11317. Added EINTR treatment.
  11318. * src/SocketCore.cc
  11319. * src/AbstractDiskWriter.cc
  11320. Rewritten.
  11321. * src/Util.cc (rangedFileCopy)
  11322. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11323. Fixed typo.
  11324. * src/version_usage.cc
  11325. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11326. Implemented. Now -c option works fine.
  11327. * src/DefaultPieceStorage.cc (markPiecesDone)
  11328. * test/DefaultPieceStorageTest.cc
  11329. Removed.
  11330. * src/SegmentMan.{h, cc}
  11331. (markAllPiecesDone)
  11332. (markPieceDone)
  11333. Synchronized po files with
  11334. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  11335. * src/fr.po
  11336. * src/ru.po
  11337. * src/de.po
  11338. * src/ja.po
  11339. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11340. Added ifdef and some modifications to compile without BitTorrent,
  11341. Metalink, MessageDigest
  11342. support.
  11343. * src/PieceHashCheckIntegrityEntry.cc
  11344. * src/MetalinkEntry.h
  11345. * src/version_usage.cc
  11346. * src/main.cc
  11347. * src/DownloadEngine.{h, cc}
  11348. * src/Metalink2RequestGroup.cc
  11349. * src/Peer.cc
  11350. * src/RequestGroup.cc
  11351. * src/MetalinkHelper.cc
  11352. * test/DefaultPieceStorageTest.cc
  11353. * test/MetalinkPostDownloadHandlerTest.cc
  11354. * test/Metalink2RequestGroupTest.cc
  11355. Hide TOTAL SPD when all downloads complete.
  11356. * src/ConsoleStatCalc.cc
  11357. Log target system information.
  11358. * src/main.cc
  11359. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11360. Now --metalink-location accepts a comma-deliminated list of locations.
  11361. * src/MetalinkEntry.{h, cc}
  11362. * test/MetalinkEntryTest.cc
  11363. * src/version_usage.cc
  11364. * src/Metalink2RequestGroup.cc
  11365. * src/Xml2MetalinkProcessor.cc
  11366. * test/Xml2MetalinkProcessorTest.cc
  11367. * doc/aria2c.1.txt
  11368. * doc/aria2c.1
  11369. * src/Util.cc (toUpper)(toLower): Rewritten.
  11370. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11371. Added the ability to detect duplicate download entry which is about to
  11372. download the same file other RequestGroup is downloading.
  11373. * src/RequestGroup.cc
  11374. * src/HttpResponseCommand.cc
  11375. * src/FtpNegotiationCommand.cc
  11376. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11377. Recalculates download progress when loading a control file,
  11378. if the piece length of DownloadContext is different from the one saved
  11379. in the control file. Currently in-flight pieces are ignored.
  11380. * src/DefaultBtProgressInfoFile.cc
  11381. * test/DefaultBtProgressInfoFileTest.cc
  11382. * src/Util.{h, cc}
  11383. * test/UtilTest.cc
  11384. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11385. Do not rotate tiers in announce-list.
  11386. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  11387. AnnounceList::allTiersFailed() used instead to detect whether all
  11388. tiers are tried and failed.
  11389. * test/DefaultBtAnnounceTest.cc
  11390. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  11391. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  11392. * test/AnnounceListTest.cc
  11393. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  11394. clause. Catch RecoverableException instead of DlRetryEx instead.
  11395. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11396. Implemented checksum validation feature(1 checksum for each file)
  11397. The validation takes place after the download.
  11398. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  11399. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  11400. * src/CheckIntegrityCommand.cc: Changed log message.
  11401. * src/Metalink2RequestGroup.cc: Set checksum to
  11402. SingleFileDownloadContext.
  11403. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  11404. PieceHashCheckIntegrity class.
  11405. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  11406. PieceHashCheckIntegrity class.
  11407. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  11408. * src/IteratableValidator.h: New class.
  11409. * src/message.h
  11410. * src/CheckIntegrityEntry.{h, cc}
  11411. * src/IteratableChunkChecksumValidator.{h, cc}
  11412. * src/SingleFileDownloadContext.h
  11413. * src/DownloadCommand.cc
  11414. --allow-overwrite=true is no longer needed to check file integrity
  11415. before download in BitTorrent download.
  11416. * src/RequestGroup.cc (getInitialCommand)
  11417. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  11418. throws exception.
  11419. * src/RequestGroupMan.cc (getInitialCommands)
  11420. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11421. urlencode the given url inside Request::parseUrl(...)
  11422. * src/Request.{h, cc}
  11423. * src/Util.{h, cc}
  11424. * test/RequestTest.cc
  11425. Removed #!metalink3! notation support because it is deleted from
  11426. the metalink specification.
  11427. * src/Request.{h, cc}
  11428. * test/RequestTest.cc
  11429. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11430. Don't connect server before checking file integrity at startup, if
  11431. filesize and output file path are known.
  11432. * src/AbstractCommand.cc
  11433. * src/StreamFileAllocationEntry.cc
  11434. * src/Metalink2RequestGroup.cc
  11435. * src/RequestGroup.{h, cc}
  11436. * src/HttpResponseCommand.cc
  11437. * src/FtpNegotiationCommand.cc
  11438. Added DownloadFailureException. If it is thrown, RequestGroup should
  11439. halt.
  11440. * src/AbstractCommand.cc
  11441. * src/DownloadFailureException.h
  11442. * src/RequestGroup.cc
  11443. Catch RecoverableException, instead of DlAbortEx.
  11444. * src/RequestGroupMan.cc
  11445. * src/FillRequestGroupCommand.cc
  11446. * src/MetaFileUtil.cc
  11447. * src/IteratableChunkChecksumValidator.cc
  11448. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  11449. getGID())
  11450. * src/CheckIntegrityCommand.cc
  11451. * src/message.h
  11452. Print gid instead of idx.
  11453. * src/RequestGroupMan.cc
  11454. Removed exception throwers declaration.
  11455. * src/DirectDiskAdaptor.{h, cc}
  11456. * src/SocketCore.{h, cc}
  11457. * src/MultiDiskAdaptor.{h, cc}
  11458. * src/HttpConnection.{h, cc}
  11459. * src/HttpResponse.{h, cc}
  11460. * src/DiskAdaptor.{h, cc}
  11461. * src/CopyDiskAdaptor.{h, cc}
  11462. * src/MultiDiskAdaptor.{h, cc}
  11463. * src/HttpHeaderProcessor.{h, cc}
  11464. * src/AbstractSingleDiskAdaptor.{h, cc}
  11465. * src/Util.{h, cc}
  11466. * test/UtilTest.cc
  11467. * src/DefaultDiskWriter.{h, cc}
  11468. * src/FtpConnection.{h, cc}
  11469. * src/AbstractDiskWriter.{h, cc}
  11470. Removed duplicate code.
  11471. * src/StreamCheckIntegrityEntry.cc
  11472. Removed unnecessary include.
  11473. * src/DiskWriter.h
  11474. Included Exception.h
  11475. * src/option_processing.cc
  11476. Included 2 files and added doc
  11477. * src/TrackerWatcherCommand.cc
  11478. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  11479. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11480. Changed CheckIntegrityEntry interface so that it can define
  11481. the action when all the chunk checksums are valid.
  11482. * src/CheckIntegrityEntry.h
  11483. * src/StreamCheckIntegrityEntry.{h, cc}
  11484. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  11485. are valid, then aira2 goes to seeding mode. Sometimes it is better
  11486. to exit rather than doing seeding. So, it would be good to toggle this
  11487. behavior.
  11488. * src/CheckIntegrityCommand.cc
  11489. * src/AbstractCommand.cc
  11490. * src/RequestGroup.cc
  11491. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11492. Reflect the download length of in-flight pieces.
  11493. It makes the download length readout more precise.
  11494. * src/DefaultPieceStorage.{h, cc}
  11495. * test/DefaultPieceStorageTest.cc
  11496. * src/a2functional.h
  11497. * test/a2functionalTest.cc
  11498. Lower CPU load when --max-download-limit is used.
  11499. There is up and down in speed indicator when enabling
  11500. http-pipelining but a download goes well. I think the problem is that
  11501. because http-pipelining is enabled, DownloadCommand is created for
  11502. each segment and in its constructor, PeerStat::downloadStart() is
  11503. called. In PeerStat::downloadStart(), speed calculation object is
  11504. reseted, which makes download speed zero.
  11505. * src/DownloadCommand.cc
  11506. Rewritten using accumulate.
  11507. * src/RequestGroupMan.cc (calculateStat)
  11508. Code clearnup.
  11509. * src/FtpNegotiationCommand.cc
  11510. * src/HttpResponseCommand.cc
  11511. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11512. Fixed: Can not resume: aria2 reports download already finished.
  11513. * src/AbstractCommand.{h, cc}
  11514. * src/HttpResponseCommand.cc
  11515. * src/FtpNegotiateCommand.cc
  11516. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11517. Now a file is stored in the directory specified in .metalnk file
  11518. (file[@name]).
  11519. * src/Metalink2RequestGroup.cc
  11520. Create the directory structure when opening the file if it doesn't
  11521. exist.
  11522. * src/AbstractDiskWriter.cc
  11523. * src/Util.{h, cc}
  11524. * src/File.h
  11525. * test/UtilTest.cc
  11526. Removed file name comparison
  11527. * src/Metalink2RequestGroup.cc
  11528. * src/HttpResponseCommand.cc
  11529. Rewritten using Util::mkdirs()
  11530. * src/FileEntry.cc (setupDir)
  11531. * test/FileEntryTest.cc
  11532. Updated doc
  11533. * src/SingleFileDownloadContext.h
  11534. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11535. Now SleepCommand dispatches nextCommand when halt is requested.
  11536. It avoids a possible long wait after hitting CTRL-C.
  11537. * src/SleepCommand.{h, cc}
  11538. * src/RequestGroupAware.{h, cc}
  11539. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11540. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  11541. to open listen port, then remove the port number from the tracker
  11542. request.
  11543. * src/DefaultBtAnnounce.cc
  11544. * test/DefaultBtAnnounceTest.cc
  11545. * test/MockPieceStorage.h
  11546. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  11547. them more testable.
  11548. * src/DefaultBtAnnounce.{h, cc}
  11549. * src/DefaultBtContext.{h, cc}
  11550. * src/Util.{h, cc}
  11551. * test/DefaultBtAnnounceTest.cc
  11552. * test/DefaultBtContextTest.cc
  11553. * test/UtilTest.cc
  11554. Added 'B' to upload bytes readout.
  11555. * src/ConsoleStatCalc.cc
  11556. Now the listen port for BitTorrent download is opened when it is
  11557. needed.
  11558. * src/DownloadEngineFactory.cc
  11559. * src/BtSetup.{h, cc}
  11560. * src/PeerListenCommand.{h, cc}
  11561. Now an exception thrown while parsing tracker response is now logged.
  11562. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  11563. called, which means no retry is made in this case, assuming a tracker
  11564. has a problem.
  11565. * src/TrackerWatcherCommand.cc
  11566. Fixed: downloading a file whose length is unkown fails.
  11567. * src/DownloadCommand.cc
  11568. Simplified prepareForNextSegment()
  11569. * src/DownloadCommand.cc
  11570. Updated
  11571. * po/POTFILES.in
  11572. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11573. Re-implemented a file listing for Metalink, which was dropped while
  11574. http/ftp/torrent integration was being implemented.
  11575. * src/MetalinkHelper.{h, cc}: New class.
  11576. * test/MetalinkHelperTest.cc
  11577. * src/main.cc
  11578. * src/Metalink2RequestGroup.cc
  11579. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11580. Added the ability to display the detailed torrent file information.
  11581. Now -S option gives not only a file listing, but also total download
  11582. length, info hash, announce URI, piece length, the number of pieces,
  11583. and mode(single or multi-torrent).
  11584. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  11585. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  11586. KiB)
  11587. * test/UtilTest.cc
  11588. * src/main.cc
  11589. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11590. Added ftp://USER:PASSWD@Servername automatic parsing.
  11591. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  11592. _password. Recognize username and password in URI.
  11593. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  11594. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  11595. * src/RequestFactory.{h, cc}: Removed.
  11596. * src/AuthConfigFactory.{h, cc}: New class.
  11597. * src/FtpConnection.cc: Use AuthConfigFactory.
  11598. * src/HttpRequest.cc: Use AuthConfigFactory.
  11599. * test/HttpRequestTest.cc: Updated.
  11600. * test/RequestTest.cc: Updated.
  11601. * test/AuthConfigFactoryTest.cc: New class.
  11602. * test/RequestFactoryTest.cc: Removed.
  11603. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11604. Use RequestGroup::allDownloadFinished() to decide whether the control
  11605. file should be removed or saved.
  11606. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  11607. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  11608. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11609. Use File::renameTo()
  11610. * src/DefaultBtProgressInfoFile.cc
  11611. Added --no-file-allocation-limit command-line option.
  11612. * src/version_usage.cc
  11613. * src/option_processing.cc
  11614. * src/OptionHandlerFactory.cc
  11615. * src/RequestGroup.{h, cc}
  11616. * src/BtCheckIntegrityEntry.cc
  11617. * src/StreamCheckIntegrityEntry.cc
  11618. * src/prefs.h
  11619. * doc/aria2c.1.txt
  11620. * doc/aria2c.1
  11621. Now prealloc is the default value for --file-allocation option.
  11622. * src/version_usage.cc
  11623. * src/option_processing.cc
  11624. * doc/aria2c.1.txt
  11625. * doc/aria2c.1
  11626. Don't URL-encode user-agent.
  11627. * src/HttpRequest.cc
  11628. Updated translations
  11629. * po/LINGUAS: Added nl for Dutch translation.
  11630. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  11631. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  11632. * po/POTFILES.in: Updated.
  11633. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11634. Added the ability to recognize url-list in a torrent file.
  11635. The retrieved URLs are attached to the corresponding FileEntry.
  11636. * src/DefaultBtContext.{h, cc}
  11637. * src/FileEntry.{h, cc}
  11638. * test/DefaultBtContextTest.cc
  11639. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11640. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  11641. after the download finishes.
  11642. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11643. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  11644. the data smaller than block length.
  11645. A block length can be specified by constructor's argument.
  11646. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  11647. Get a missing piece in the range of given FileEntry. This function is
  11648. not used in the program yet.
  11649. * src/Util.h: Added some macros.
  11650. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11651. Added HTTP/1.1 keep alive and pipelining support.
  11652. See --enable-http-keep-alive and --enable-http-pipelining option.
  11653. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  11654. Segment.
  11655. * src/HttpDownloadCommand.{h, cc}
  11656. * src/OptionHandlerFactory.cc
  11657. * src/HttpConnection.{h, cc}
  11658. * src/version_usage.cc
  11659. * src/HttpInitiateConnectionCommand.cc
  11660. * src/FtpInitiateConnectionCommand.cc
  11661. * src/Segment.h
  11662. * src/HttpRequestCommand.{h, cc}
  11663. * src/option_processing.cc
  11664. * src/prefs.h
  11665. * src/HttpResponseCommand.cc
  11666. * src/SegmentMan.{h, cc}
  11667. * src/FtpNegotiateCommand.cc
  11668. * src/HttpProxyResponseCommand.cc
  11669. * src/Request.cc
  11670. * src/HttpRequest.cc
  11671. * src/DownloadCommand.cc
  11672. * test/HttpRequestTest.cc
  11673. * test/RequestTest.cc
  11674. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11675. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  11676. finished.
  11677. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11678. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  11679. catching it inside the method.
  11680. When no file entry is found in a metalink without querying user
  11681. preferences, throw the exception with the error message that suggests
  11682. metalink file is probably broken.
  11683. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  11684. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11685. Fixed the bug that prevents remote Metalink/Torrent file from begin
  11686. processed.
  11687. * src/RequestGroupMan.cc (removeStoppedGroup)
  11688. Added debug message.
  11689. * src/BtPostDownloadHandler.cc
  11690. * src/MetalinkPostDownloadHandler.cc
  11691. * src/PostDownloadHandler.{h, cc}
  11692. * src/RequestGroup.cc
  11693. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11694. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  11695. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11696. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  11697. stops and there are any unfinished or in-progress downloads.
  11698. Added the legend of "stat".
  11699. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11700. Throw exception when chunck checksum verification fails.
  11701. * src/DownloadCommand.cc (validatePieceHash): New function.
  11702. * src/PiecedSegment.{h, cc} (clear): New function.
  11703. * src/GrowSegment.{h, cc} (clear): New function.
  11704. * src/Segment.h (clear): New function.
  11705. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  11706. * test/SegmentTest.cc
  11707. * test/GrowSegmentTest.cc
  11708. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11709. Do not send referer when redirected.
  11710. * src/Request.cc (redirectUrl)
  11711. * test/RequestTest.cc
  11712. * test/HttpRequestTest.cc
  11713. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11714. Implemented BitTorrent/http/ftp integrated download.
  11715. I've rewritten lots of files and now some headers have forward
  11716. class declarations to reduce compile time.
  11717. The implementation is extremely alpha stage, I recommend to use this
  11718. for testing purpose only.
  11719. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11720. Fixed the compilation error on 64bit platform.
  11721. * test/HttpHeaderProcessorTest.cc
  11722. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11723. Merged Ross's patch that fixes compilation problem in MinGW
  11724. * test/DefaultBtProgressInfoFileTest.cc
  11725. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11726. Updated fr.po by sebone
  11727. * po/fr.po
  11728. Updated man page.
  11729. * doc/aria2c.1.txt
  11730. * Release 0.11.3
  11731. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11732. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  11733. failure in Metalink.
  11734. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11735. Automatically save *.aria2 control file of http/ftp download in every
  11736. 60 seconds.
  11737. * src/AutoSaveCommand.{h, cc}: New class.
  11738. * src/TimeBasedCommand.{h, cc}: New class.
  11739. * src/DownloadEngineFactory.cc (newConsoleEngine)
  11740. Disable parameterized URI support by default. Added -P option to
  11741. enable the feature.
  11742. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  11743. * src/OptionHandlerFactory.cc
  11744. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  11745. Updated Japanese translation.
  11746. * po/ja.po
  11747. Updated man page.
  11748. * doc/aria2c.1.txt
  11749. * Release 0.11.3-rc
  11750. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11751. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  11752. it is successful, then renamed to *.aria2.
  11753. This prevents *.aria2 file from being truncated or corrupted when
  11754. file system becomes out of space.
  11755. * src/DefaultBtProgressInfoFile.cc (save)
  11756. * src/SegmentMan.cc (save)
  11757. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  11758. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11759. Reduced the fragmentation of bitfield in http/ftp download.
  11760. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  11761. * test/BitfieldManTest.cc
  11762. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11763. Added the ability to disable segmented download in .metalink.
  11764. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  11765. 'url' tag.
  11766. * src/MetalinkEntry.{h, cc}
  11767. * src/RequestResource.{h, cc}
  11768. * src/MetalinkRequestInfo.cc
  11769. * src/Xml2MetalinkProcessor.cc
  11770. * test/Xml2MetalinkProcessorTest.cc
  11771. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11772. Added parameterized URI support.
  11773. * src/main.cc: -Z option added.
  11774. * src/OptionHandlerFactory.cc
  11775. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  11776. * src/PStringDatum.h: New class.
  11777. * src/PStringSegment.{h,cc}: New class.
  11778. * src/PStringNumLoop.h: New class.
  11779. * src/PStringSelect.h: New class.
  11780. * src/NumberDecorator.h: New class.
  11781. * src/FixedWidthNumberDecorator.h: New class.
  11782. * src/AlphaNumberDecorator.h: New class.
  11783. * src/PStringVisitor.h: New class.
  11784. * src/PStringBuildVisitor.{h,cc}: New class.
  11785. * src/ParameterizedStringParser.{h,cc}: New class.
  11786. * src/Util.{h,cc}
  11787. (isNumber): New function.
  11788. (isLowercase): New function.
  11789. (isUppercase): New function.
  11790. (alphaToNum): New function.
  11791. * test/ParameterizedStringParserTest.cc: New class.
  11792. * test/AlphaNumberDecoratorTest.cc: New class.
  11793. * test/PStringBuildVisitorTest.cc: New class.
  11794. * test/UtilTest.cc
  11795. (testIsNumber): New function.
  11796. (testIsLowercase): New function.
  11797. (testIsUppercase): New function.
  11798. (testAlphaToNum): New function.
  11799. Added '\n' after the error message
  11800. * src/RequestInfo.h (printDownloadAbortMessage)
  11801. Added auto file renaming feature in http(s)/ftp download.
  11802. * src/main.cc: Added --auto-file-renaming command-line option.
  11803. * src/OptionHandlerFactory.cc
  11804. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  11805. * src/RequestGroup.{h, cc}
  11806. (shouldCancelDownloadForSafety): Rewritten
  11807. (tryAutoFileRenaming): New function.
  11808. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  11809. * src/HttpResponseCommand.cc
  11810. (executeInternal): Removed the call to RequestGroupMan::
  11811. isSameFileBeingDownloaded()
  11812. * src/FtpNegotiateCommand.cc
  11813. (recvSize): Removed the call to RequestGroupMan::
  11814. isSameFileBeingDownloaded()
  11815. * test/RequestGroupTest.cc: New class.
  11816. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11817. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  11818. IO.
  11819. * src/DefaultBtProgressInfoFile.cc
  11820. * src/MetaFileUtil.cc
  11821. * src/SimpleLogger.cc
  11822. * src/SegmentMan.cc
  11823. * src/Util.cc
  11824. * src/Platform.cc
  11825. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11826. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  11827. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11828. Avoid sparse files if possible, because VFAT32 doesn't support it.
  11829. * src/DefaultDiskWriter.cc (initAndOpenFile)
  11830. Fixed the bug that prevents file allocation is not done when
  11831. dowloading multi-torrent file.
  11832. * src/AbstractDiskWriter.cc (openFile)
  11833. Increase the maximum number of -j option from 15 to 45.
  11834. * src/OptionHandlerFactory.cc (createOptionHandlers)
  11835. Added fr.po, thanks to Charles Landemaine.
  11836. * po/fr.po
  11837. * po/LINGUAS
  11838. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11839. gcc 3.4.4 support:
  11840. * src/DefaultBtContext.cc: int32_t -> int
  11841. * src/main.cc: int -> int32_t, int32_t -> int
  11842. * src/messageDigest.h: uint32_t -> unsigned int
  11843. * src/NameResolver.h: int32_t -> int
  11844. * src/PeerConnection.cc: int -> int32_t
  11845. * src/SpeedCalc.cc: int32_t -> int
  11846. * src/TrackerUpdateCommand.h: int -> int32_t
  11847. * src/Util.cc: int32_t -> int
  11848. * src/Util.h: int32_t -> int
  11849. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  11850. * test/AnnounceListTest.cc: int -> int32_t
  11851. * test/ChunkedEncodingTest.cc: int -> int32_t
  11852. * test/DataTest.cc: int -> int32_t
  11853. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  11854. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  11855. * test/DefaultPieceStorageTest.cc: int -> int32_t
  11856. * test/FeatureConfigTest.cc: int -> int32_t
  11857. * test/MetalinkEntryTest.cc: int -> int32_t
  11858. * test/MockBtRequestFactory.h: int -> int32_t
  11859. * test/MockPieceStorage.h: int -> int32_t
  11860. * test/OptionTest.cc: int -> int32_t
  11861. * test/RequestTest.cc: int -> int32_t
  11862. * test/SegmentManTest.cc: int -> int32_t
  11863. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  11864. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  11865. Move sleep functions to Util class:
  11866. * src/Util.cc
  11867. (sleep): New function.
  11868. (usleep): New function.
  11869. * src/DownloadCommand.cc: sleep -> Util::sleep
  11870. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  11871. MinGW build enhancements. The following files are added:
  11872. * src/timegm.{c,h}
  11873. Changes to support the above new files:
  11874. * configure.ac
  11875. * src/Makefile.am
  11876. * src/a2time.h
  11877. * src/Util.cc:
  11878. * src/strptime.c: Added support for %Z option.
  11879. Fixed MinGW non-blocking bug.
  11880. * src/SocketCore.cc
  11881. * src/HttpRequestCommand.cc
  11882. Miscellenous build fixes/enhancements.
  11883. * configure.ac: Added summary report.
  11884. * src/Platform.h: Tweaked #include's.
  11885. * src/a2netcompat.h: Tweaked #include's.
  11886. * src/strptime.h: Tweaked #include's.
  11887. * src/gai_strerror.c: Tweaked #include's.
  11888. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  11889. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  11890. * src/gettimeofday.h: Added HAVE_CONFIG_H
  11891. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11892. Increased the initial connection size in BitTorrent download to 40.
  11893. * src/BtRuntime.h
  11894. Added the usage message of --peer-id-prefix option.
  11895. * src/main.cc
  11896. * Release 0.11.2
  11897. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11898. MessageDigestHelper is introduced in order to simplify the use
  11899. of message digest. Removed repeated code.
  11900. The message digest algorithm is now specified by string, like "sha1",
  11901. "md5".
  11902. * src/messageDigest.{h, cc}
  11903. * src/MessageDigestHelper.{h, cc}: New class.
  11904. * src/DefaultPieceStorage.cc
  11905. * src/DefaultBtContext.{h, cc}
  11906. (computeFastSet): New function.
  11907. (setInfoHash): Added for unit testing.
  11908. (setNumPieces): Added for unit testing.
  11909. * src/DefaultBtInteractive.cc
  11910. * src/BtPieceMessage.cc
  11911. * src/Peer.cc
  11912. * src/Checksum.h
  11913. * src/message.h
  11914. * src/IteratableChecksumValidator.h
  11915. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  11916. inside it.
  11917. * src/SegmentMan.{h, cc}
  11918. (checkIntegrity): Removed.
  11919. * src/IteratableChunkChecksumValidator.{h, cc}
  11920. * src/Util.h
  11921. (sha1Sum): Removed.
  11922. (simpleMessageDigest): Removed.
  11923. (fileChecksum): Removed.
  11924. (computeFastSet): Removed.
  11925. * src/ShaVisitor.cc
  11926. * src/ChunkChecksum.h
  11927. * src/DownloadCommand.cc
  11928. Removed messageDigest virtual functions.
  11929. * src/MultiDiskAdaptor.{h, cc}
  11930. * src/DiskAdaptor.h
  11931. * src/ByteArrayDiskWriter.h
  11932. * src/DiskWriter.h
  11933. * src/DiskAdaptorWriter.h
  11934. * src/AbstractSingleDiskAdaptor.{h, cc}
  11935. * src/AbstractDiskWriter.{h, cc}
  11936. Fixed comilation error when message digest is disabled.
  11937. * src/MetalinkEntry.{h, cc}
  11938. * src/MetalinkRequestInfo.cc
  11939. Removed srandom and random.
  11940. * src/SimpleRandomizer.h
  11941. Added size() virtual function to DiskAdaptor
  11942. * src/MultiDiskAdaptor.h
  11943. Fixed the bug that causes that files are not opened correctly in
  11944. multi-file torrent.
  11945. * src/TorrentRequestInfo.cc
  11946. * src/MultiDiskAdaptor.cc
  11947. Added SHA256 support
  11948. * src/messageDigest.cc
  11949. * src/Xml2MetalinkProcessor.cc
  11950. Show supported message digest algorithms
  11951. * src/main.cc
  11952. Updated contact info.
  11953. * src/main.cc
  11954. Applied Ross's patch
  11955. * src/a2netcompat.h
  11956. * src/main.cc
  11957. Fixed the bug that prevents a remote metalink from not being processed
  11958. even if '-o foo.metalink' is specified.
  11959. * src/MetalinkRequestInfo.cc
  11960. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11961. Merged Dan's patch:
  11962. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  11963. Use va_copy to avoid core dump on amd64:
  11964. * src/SimpleLogger.cc
  11965. Updated contact info.
  11966. * src/main.cc
  11967. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  11968. digest is not available.
  11969. * src/MetalinkEntry.h
  11970. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11971. Make a2netcompat.h include a2io.h to fix compilation error:
  11972. * src/a2netcompat.h
  11973. * src/SocketCore.cc: Removed include of a2io.h
  11974. * src/Util.cc: Removed include of a2io.h
  11975. Gather time related functions to a2time.h:
  11976. * src/a2time.h: New file.
  11977. * src/DefaultPeerStorage.cc
  11978. * src/SimpleLogger.cc
  11979. * src/Util.{h, cc}
  11980. * src/SimpleRandomizer.h
  11981. * src/TimeA2.{h,cc}
  11982. * src/DownloadCommand.cc
  11983. * src/main.cc
  11984. Removed #ifdef __MINGW32__ since gai_strerror is included in
  11985. a2netcompat.h:
  11986. * src/NameResolver.cc
  11987. Fixed compilation error without openssl:
  11988. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  11989. Added default block to suppress compiler warnings:
  11990. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  11991. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  11992. MinGW build enhancements. The following files are added:
  11993. * src/gai_strerror.{c,h}
  11994. * src/gettimeofday.{c,h}
  11995. Changes to support the above new files:
  11996. * configure.ac
  11997. * src/Makefile.am
  11998. * src/a2netcompat.h
  11999. * src/TimeA2.cc
  12000. * src/DefaultPeerStorage.cc
  12001. * src/NameResolver.cc: removed mingw_strerror() function.
  12002. * src/SocketCore.cc: removed mingw_strerror() function.
  12003. Miscellaneous MinGW build fixes.
  12004. * src/a2io.h: Use _lseeki64() instead of lseek()
  12005. * src/common.h
  12006. * src/DefaultFileAllocator.cc
  12007. * src/GlowFileAllocator.cc
  12008. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  12009. * src/NameResolver.cc
  12010. (callback): Changed int32_t to int.
  12011. (resolve): Changed int32_t to int.
  12012. * src/Platform.cc
  12013. * src/Platform.h
  12014. * test/MultiDiskWriterTest.cc
  12015. * test/PeerMessageUtilTest.cc
  12016. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  12017. Other enhancements and fixes.
  12018. * src/HttpRequestCommand.cc
  12019. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  12020. * src/SocketCore.cc:
  12021. (error): New function to abstract errno/WSAGetLastError().
  12022. (errorMsg): New function to abstract errno/WSAGetLastError().
  12023. (initiateSecureConnection): Added more detailed error reporting.
  12024. * src/SocketCore.h: Added private variable blocking, to allow
  12025. proper handling of OpenSSL psuedo-errors.
  12026. * src/message.h
  12027. (EX_SSL_INIT_FAILURE)
  12028. (EX_SSL_IO_ERROR)
  12029. (EX_SSL_PROTOCOL_ERROR)
  12030. (EX_SSL_UNKNOWN_ERROR)
  12031. (EX_SSL_CONNECT_ERROR)
  12032. (EX_SOCKET_BLOCKING)
  12033. (EX_SOCKET_NONBLOCKING)
  12034. (EX_SOCKET_UNKNOWN_ERROR)
  12035. * src/Util.cc
  12036. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  12037. reserved name.
  12038. (httpGMT): Fixed typo.
  12039. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12040. Merged Ross's win32 patch(manually)
  12041. In the course of merging, following files are added.
  12042. * src/strptime.{h,c}
  12043. * src/libgen.{h,c}
  12044. * src/inet_aton.{h,c}
  12045. * src/Platform.{h,cc}
  12046. * src/localtime_r.{h,c}
  12047. * src/getaddrinfo.{h,c}
  12048. I've gethered network related things, and put them to following file:
  12049. * src/a2netcompat.h
  12050. Also io related things are put to following file:
  12051. * src/a2io.h
  12052. Changed %lld to %s because mingw32 doesn't recognize %lld.
  12053. * src/message.h
  12054. (MSG_ALLOCATION_COMPLETED)
  12055. (EX_TOO_LARGE_FILE)
  12056. (EX_SIZE_MISMATCH)
  12057. (EX_FILE_OFFSET_OUT_OF_RANGE)
  12058. (EX_INVALID_CHUNK_CHECKSUM)
  12059. (EX_INVALID_RANGE_HEADER)
  12060. * src/FileAllocationCommand.cc
  12061. * src/HttpResponse.cc
  12062. * src/RequestGroup.cc
  12063. * src/MultiDiskAdaptor.cc
  12064. * src/OptionHandlerImpl.h
  12065. * src/HttpResponseCommand.cc
  12066. * src/FtpNegotiateCommand.cc
  12067. * src/IteratableChecksumValidator.cc
  12068. * src/SegmentMan.cc
  12069. * src/ChunkChecksumValidator.cc
  12070. Added Randomizer::getRandomNumber(long int)
  12071. * src/Randomizer.h (getRandomNumber)
  12072. * src/SimpleRandomizer.h (getRandomNumber)
  12073. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  12074. * src/Util.cc (randomAlpha): Use this new function.
  12075. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12076. Converted int's to in32_t. long long int's are also converted to
  12077. int64_t
  12078. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12079. Fixed the bug that prevents cookies from being sent to the server
  12080. if the domain of cookie is FQDN and starts with ".".
  12081. * src/Cookie.cc (match)
  12082. To add the ability to change peer id.
  12083. * src/DefaultBtContext.h
  12084. (_peerIdPrefix): New variable
  12085. (setPeerIdPrefix): New function.
  12086. * src/torrentRequestInfo.cc
  12087. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  12088. DefaultBtContext.
  12089. * src/main.cc (main): Added peer-id-prefix command-line option.
  12090. The usage message is not added yet.
  12091. * src/DefaultBtContext.cc
  12092. (generatePeerId): Use _peerIdPrefix.
  12093. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  12094. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12095. Fixed the bug that prevents filename in content-disposition from
  12096. being retrieved when filename is not quoted.
  12097. * src/Util.cc (getContentDispositionFilename)
  12098. Fixed the bug that causes infinate loop and memory leak when file open
  12099. operation failed.
  12100. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  12101. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12102. Fixed the bug that causes segfault when all URIs specified are
  12103. unsupported.
  12104. * src/RequestGroupMan.cc (getInitialCommands)
  12105. Check if RequestGroup::createNextCommand() returns empty list of
  12106. commands.
  12107. * src/RequestGroup.cc (createNextCommand)
  12108. Change log level from info to error so that users can notice that
  12109. an error occurred.
  12110. Fixed the bug that causes segfault when a zero-sized file is
  12111. downloaded.
  12112. * src/BitfieldMan.cc (isAllBitSet)
  12113. Return true if bitfieldLength is 0.
  12114. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12115. * src/main.cc
  12116. (showUsage): Added 3 usage examples for metalink download.
  12117. Replace MetalinkChunkChecksum with ChunkChecksum.
  12118. * src/MetalinkChunkChecksum.h: Removed.
  12119. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  12120. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  12121. * src/Xml2MetalinkProcessor.cc
  12122. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  12123. * src/MetalinkRequestInfo.cc (execute)
  12124. * Release 0.11.1
  12125. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12126. Reads URIs from stdin when "-i -" is specified.
  12127. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  12128. * src/UriListParser.h, src/UriListParser.cc: New class.
  12129. * src/StreamUriListParser.h: New class.
  12130. * src/FileUriListParser.h: New class.
  12131. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  12132. instead of UriFileListParser.
  12133. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12134. Made console readout more readable.
  12135. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12136. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12137. Fix the bug that causes -s option not to work.
  12138. * src/main.cc (main)
  12139. * src/a2algo.h: New file.
  12140. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12141. Create directory structure specified in metalink file.
  12142. * src/RequestGroup.h, src/RequestGroup.cc
  12143. (initAndOpenFile): Create a directory to store files if it does not
  12144. exist.
  12145. (getDir): New function.
  12146. Added ETA and download speed for an individual file to readout.
  12147. * src/ConsoleDownloadEngine.cc (sendStatistics)
  12148. * src/RequestGroup.h
  12149. (calculateDownloadSpeed): New function.
  12150. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12151. Made -S option work with metalink file and provided selective download
  12152. to metalink.
  12153. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  12154. (filename): Removed.
  12155. (file): New variable.
  12156. (size): Removed.
  12157. (operator=): Updated.
  12158. (getPath): New function.
  12159. (getLength): New function.
  12160. (toFileEntry): New function.
  12161. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  12162. (execute): Use toStream.
  12163. (showFileEntry): Removed.
  12164. * src/MetalinkRequestInfo.h
  12165. (targetFiles): New variable.
  12166. (setTargetFiles): New variable.
  12167. * src/MetalinkRequestInfo.cc
  12168. (execute): Added the ability to print file information included in
  12169. a metalink file.
  12170. Added selective download mode to metalink.
  12171. * src/main.cc
  12172. (showUsage): Updated to denote that -S and --select-file options are
  12173. applicable to metalink.
  12174. * src/FileEntry.h
  12175. (operator=): New function.
  12176. (getBasename): New function.
  12177. (getDirname): New function.
  12178. * src/Util.h, src/Util.cc
  12179. (toStream): New function.
  12180. * src/Xml2MetalinkProcessor.cc: Updated.
  12181. Made aria2 work with metalink with directory structure.
  12182. * src/File.h, src/File.cc
  12183. (getBasename): New function.
  12184. (getDirname): New function.
  12185. * src/RequestGroup.h, src/RequestGroup.cc
  12186. (_topDir): New variable.
  12187. (setTopDir): New function.
  12188. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  12189. Rewrote HTTP header parsing with stringstream.
  12190. * src/HttpConnection.h, src/HttpConnection.cc
  12191. (HttpRequestEntry): New class.
  12192. (headerBuf): Removed.
  12193. (headerBufLength): Removed.
  12194. (outstandingHttpRequests): Now its element type is
  12195. HttpRequestEntryHandle.
  12196. (findEndOfHeader): Removed.
  12197. (receiveResponse): Rewritten.
  12198. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  12199. Updated doc for -j option to notice that it should be used with -i
  12200. option.
  12201. * src/main.cc (showUsage)
  12202. Removed unused classes.
  12203. * src/RequestInfo.h
  12204. (FileInfo): Removed.
  12205. (checksum): Removed.
  12206. (fileInfo): Removed.
  12207. (setChecksum): Removed.
  12208. (getChecksum): Removed.
  12209. (getFileInfo): Removed.
  12210. Use ISO units.
  12211. * src/ConsoleDownloadEngine.cc
  12212. * src/TorrentConsoleDownloadEngine.cc
  12213. * src/Util.cc (abbrevSize)
  12214. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12215. Added the default listening ports to the help message.
  12216. * src/main.cc (showUsage)
  12217. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12218. Reduce the number of calls to gettimeofday to lower CPU load.
  12219. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  12220. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  12221. * src/Peer.h (calculateUploadSpeed): New function.
  12222. (calculateDownloadSpeed): New function.
  12223. * src/DefaultPeerStorage.cc
  12224. (CalculateStat): Added _now variable.
  12225. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  12226. and Peer::calculateUploadSpeed(const struct timeval&)
  12227. Drop connection if no request or piece message is exchanged in
  12228. a certain interval.
  12229. * src/DefaultBtInteractive.h
  12230. (btRuntime): New variable.
  12231. (inactiveCheckPoint): New variable.
  12232. (checkActiveInteraction): New function.
  12233. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  12234. request or piece message is received.
  12235. (checkActiveInteraction): New function.
  12236. (doInteractionProcessing): Call checkActiveInteraction.
  12237. Fixed the bug that causes remote Metalink and Torrent files are not
  12238. processed.
  12239. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  12240. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12241. Changed format of log file.
  12242. * src/SimpleLogger.cc
  12243. * Release 0.11.0
  12244. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12245. * src/AbstractCommand.cc
  12246. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  12247. MSG_MAX_TRY from error to info.
  12248. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  12249. * src/message.h
  12250. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  12251. (MSG_DOWNLOAD_ABORTED): Added %s.
  12252. (MSG_RESTARTING_DOWNLOAD): Added %s.
  12253. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  12254. * src/PeerAbstractCommand.cc
  12255. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  12256. * src/Request.h
  12257. (cookieBox): Made ShardHandle.
  12258. * src/RequestGroup.h, src/RequestGroup.cc
  12259. (createNextCommandWithAdj): New function.
  12260. * src/FileAllocationCommand.cc
  12261. (executeInternal): Use createNextCommandWithAdj().
  12262. * src/CheckIntegrityCommand.cc
  12263. (executeInternal): Use createNextCommandWithAdj().
  12264. Added --load-cookies command-option.
  12265. * src/OptionHandlerFactory.cc
  12266. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  12267. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  12268. Now aria2 can handle cookie's expiration date.
  12269. * src/Cookie.h (expires): Changed its type to time_t.
  12270. * src/main.cc: Added --load-cookies command-line option.
  12271. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  12272. * src/Util.h, src/Util.cc (httpGMT): New function.
  12273. * src/Request.cc (Request): Initialize cookieBox using
  12274. CookieBoxFactory.
  12275. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  12276. * src/CookieParser.h, src/CookieParser.cc: New class.
  12277. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  12278. * src/HttpResponseCommand.cc
  12279. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  12280. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  12281. download.
  12282. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12283. Added -j command-line option.
  12284. * src/OptionHandlerFactory.cc (createOptionHandlers)
  12285. * src/main.cc
  12286. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  12287. Rewritten using stringstream.
  12288. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  12289. Rewritten using stringstream.
  12290. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12291. Make download size shown in MB, KB.
  12292. * src/ConsoleDownloadEngine.h (sendStatistics)
  12293. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  12294. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12295. Accept incoming connections if download rate is low.
  12296. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  12297. (_lowestSpeedLimit): New variable.
  12298. (setLowestSpeedLimit): New function.
  12299. (execute): Accept incoming connections if download rate is low.
  12300. MAX_PEERS is ignored in this case.
  12301. Disable PREF_OUT in multiple concurrent download:
  12302. * src/RequestGroup.h, src/RequestGroup.cc
  12303. (setUserDefinedFilename): New function.
  12304. * src/DownloadEngineFactory.cc
  12305. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  12306. concurrent download.
  12307. * src/DefaultSegmentManFactory.cc
  12308. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  12309. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12310. RequestGroup::getNextCommand() was renamed to createNextCommand().
  12311. Added its overloaded method.
  12312. * src/RequestGroup.h
  12313. (_numConcurrentCommand): New variable.
  12314. (setNumConcurrentCommand): New function.
  12315. * src/RequestGroup.cc
  12316. Abort download if same file is being downloaded concurrently.
  12317. * src/RequestGroup.h, src/RequestGroupMan.cc
  12318. (isSameFileBeingDownloaded): New function.
  12319. * src/HttpResponseCommand.cc (executeInternal)
  12320. * src/FtpNegotiateCommand.cc (recvSize)
  12321. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  12322. * main.cc: Added help message for -i option.
  12323. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12324. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  12325. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  12326. * src/MetalinkEntry.h
  12327. (checksum): Changed to ChecksumHandle
  12328. * src/MetalinkRequestInfo.cc
  12329. (checksum): Changed to ChecksumHandle
  12330. * src/File.cc
  12331. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  12332. * src/common.h
  12333. (DIR_OPEN_MODE): New definition
  12334. * src/RequestGroup.cc
  12335. (prepareForNextAction): Added an argument.
  12336. * src/message.h
  12337. (MSG_GOOD_CHECKSUM): New definition
  12338. (MSG_BAD_CHECKSUM): New definition
  12339. * src/HttpResponseCommand.cc
  12340. (handleDefaultEncoding): Continue download sequence in new
  12341. non-segmented download.
  12342. * src/FileAllocationEntry.h
  12343. (_nextDownloadCommand): New variable.
  12344. * src/DownloadCommand.cc
  12345. (prepareForNextSegment): Create ChecksumCommand if checksum is
  12346. available.
  12347. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  12348. * src/IteratableChecksumValidator.h,
  12349. src/IteratableChecksumValidator.cc: New class.
  12350. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  12351. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12352. Change file mode to 666:
  12353. * src/common.h (OPEN_MODE): New definition.
  12354. * src/File.cc
  12355. * src/Util.cc
  12356. * src/Directry.cc
  12357. * src/AbstractDiskWriter.cc
  12358. Change the level of log message "download aborted" to debug:
  12359. * src/PeerAbstractCommand.cc (execute)
  12360. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  12361. * src/TrackerWatcherCommand.cc
  12362. (createCommand): Sleep some seconds after request failed.
  12363. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  12364. then abort tracker request.
  12365. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12366. * Added the simultaneous download feature.
  12367. * src/main.cc: Print "Exception caught: " when exception is caught.
  12368. Use CUIDCounter instead of BtRuntime::getNewCuid():
  12369. * src/ActivePeerConnectionCommand.cc
  12370. * src/PeerInteractionCommand.cc
  12371. * src/BtRuntime.h
  12372. (cuidCounter): Removed.
  12373. (getNewCuid): Removed.
  12374. * src/DownloadEngineFactory.cc
  12375. * src/PeerListenCommand.cc
  12376. * src/TrackerUpdateCommand.cc
  12377. * src/PeerInitiateConnectionCommand.cc
  12378. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12379. * src/PeerAbstractCommand.cc
  12380. (onAbort): Call PeerStorage::returnPeer()
  12381. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  12382. (incomingPeers): New variable.
  12383. (addIncomingPeer): New function.
  12384. (returnPeer): New function.
  12385. (onErasingPeer): New function.
  12386. (addPeer): push_back -> push_front
  12387. (getActivePeers): Rewritten.
  12388. (calculateStat): Rewritten.
  12389. * src/PeerStorage.h
  12390. (TransferStat::copy): New function.
  12391. (TransferStat::TransferStat): New function.
  12392. (TransferStat::operator=): New function.
  12393. (addIncomingPeer): New function.
  12394. (returnPeer): New function.
  12395. * src/PeerListenCommand.cc
  12396. (execute): Use PeerStorage::addIncomingPeer() instead of
  12397. Peer::addPeer().
  12398. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12399. Connect to a peer actively when download speed is lower than specified
  12400. speed in torrent download:
  12401. * src/ActivePeerConnectionCommand.h: New class.
  12402. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12403. * src/HttpRequest.cc (createRequest): url-encode user-agent
  12404. * src/main.cc: Fixed the bug that prevents download if .netrc
  12405. doesn't exist.
  12406. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12407. To cache resolved hostname:
  12408. * src/AbstractCommand.h, src/AbstractCommand.cc
  12409. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  12410. Added dns cache.
  12411. * src/FtpInitiateConnectionCommand.cc
  12412. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  12413. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  12414. NameResolver working without ares.
  12415. * src/TorrentRequestInfo.cc
  12416. (execute): Don't cache dns in torrent download.
  12417. * src/HttpInitiateConnectionCommand.cc
  12418. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  12419. * src/DNSCache.h: New class.
  12420. * src/UrlRequestInfo.cc
  12421. (execute): Use dns cache.
  12422. In http request, suppress port number in http request header if port
  12423. is 80 or 443:
  12424. * src/HttpRequest.cc (getHostText): Suppress port number in http
  12425. request header if port is 80 or 443.
  12426. (createProxyRequest): Allways send port number.
  12427. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12428. To add the command-line option which disables netrc support:
  12429. * src/OptionHandlerFactory.cc
  12430. (createOptionHandlers): Added PREF_NO_NETRC.
  12431. * src/main.cc: Added -n option.
  12432. * src/prefs.h (PREF_NO_NETRC): New definition.
  12433. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  12434. V_TRUE.
  12435. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  12436. is V_FALSE. This may get configurable in the future release.
  12437. To clear peer's error status by time basis:
  12438. * src/PeerAbstractCommand.cc
  12439. (onAbort): Call Peer::startBadCondition().
  12440. * src/Peer.h, src/Peer.cc
  12441. (error): Removed.
  12442. (_badConditionStartTime): New variable.
  12443. (_badConditionInterval): New variable. Initialized to 10 seconds.
  12444. (startBadCondition): New function.
  12445. (isGood): New function.
  12446. * src/DefaultPeerStorage.cc
  12447. (addPeer): Use Peer::isGood().
  12448. (FindFinePeer): Use Peer::isGood().
  12449. Always include port number in http request header:
  12450. * src/HttpRequest.cc (getHostText): Always include port number in
  12451. http request header.
  12452. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12453. To the ability to read options from a config file:
  12454. * src/main.cc: Command-line parameter validation is delegated to
  12455. OptionHandler class.
  12456. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  12457. * src/Option.h, src/Option.cc (clear): New function.
  12458. * src/OptionParser.h, src/OptionParser.cc: New class.
  12459. * src/OptionHandler.h: New class.
  12460. * src/NameMatchOptionHandler.h: New class.
  12461. * src/OptionHandlerImpl.h: New classes.
  12462. * src/prefs.h: '_' -> '-'
  12463. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  12464. (FTP_PASV): New definition.
  12465. * src/Util.h, src/Util.cc (getRealSize): New function.
  12466. To disable netrc support if .netrc file does not have correct
  12467. permissions:
  12468. * src/File.h, src/File.cc (mode): New function.
  12469. To prevent confidential information to be logged:
  12470. * src/HttpConnection.h, src/HttpConnection.cc
  12471. (eraseConfidentialInfo): New function.
  12472. (sendRequest): Call eraseConfidentialInfo().
  12473. (sendProxyRequest): Call eraseConfidentialInfo().
  12474. * src/main.cc: Validate permissions of .netrc file.
  12475. To add --user-agent command-line option:
  12476. * src/main.cc: Added new command line option: --user-agent
  12477. * src/prefs.h (PREF_USER_AGENT): New definition.
  12478. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  12479. parameter to HttpRequest object.
  12480. * src/AbstractProxyRequestCommand.cc
  12481. (executeInternal): Set user-agent option parameter to HttpRequest
  12482. object.
  12483. Marged the patches from Dan Fandrich.
  12484. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12485. Use filename and size from Metalink file instead of sending HEAD
  12486. request:
  12487. * src/UrlRequestInfo.h
  12488. (_filename): New variable.
  12489. (_totalLength): New variable.
  12490. (setTotalLength): New variable.
  12491. (setFilename): New variable.
  12492. * src/MetalinkRequestInfo.cc
  12493. (execute): Set filename and size to UrlRequestInfo
  12494. * src/UrlRequestInfo.cc
  12495. (execute): Use filename and size from Metalink instead of seding
  12496. HEAD request to servers.
  12497. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12498. To add the ability to resume downloading a partially downloaded file
  12499. which is downloaded from the beginning:
  12500. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  12501. takes this role.
  12502. * src/main.cc: Added -c option.
  12503. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  12504. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  12505. * src/prefs.h (PREF_CONTINUE): New definition.
  12506. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  12507. * src/DefaultDiskWriter.cc
  12508. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  12509. * src/AbstractDiskWriter.h
  12510. (glowFileAllocator): New variable.
  12511. * src/AbstractDiskWriter.cc
  12512. (openExistingFile): Now preallocate file space from the end of the
  12513. existing file if totalLength argument is specified and grater than 0.
  12514. * src/UrlRequestInfo.cc: If -c option is specified and the file
  12515. to download exists in local, continue the download of the file.
  12516. --allow-overwrite=true is assumed in this context.
  12517. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  12518. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  12519. Throw exception if --check-integrity=true is specified but chunk
  12520. checksums are not provided:
  12521. * src/UrlRequestInfo.cc
  12522. Do not print URLs to stdout:
  12523. * src/UrlRequestInfo.cc
  12524. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12525. * src/Request.h: Use AuthResolver to get authentication information.
  12526. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  12527. set to RequestFactory object.
  12528. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  12529. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  12530. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  12531. create Request object.
  12532. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  12533. To integrate Netrc into exsiting classes:
  12534. * src/Request.h
  12535. (_userDefinedAuthConfig): New variable.
  12536. (findNetrcAuthenticator): New function.
  12537. (segment): Removed.
  12538. (setUserDefinedAuthConfig): New function.
  12539. (resolveHttpAuthConfigItem): New function.
  12540. (resolveFtpAuthConfigItem): New function.
  12541. (resolveHttpProxyAuthConfigItem): New function.
  12542. * src/HttpRequest.h
  12543. (authConfig): Removed.
  12544. (proxyAuthConfig): Removed.
  12545. (setAuthConfig): Removed.
  12546. (setProxyAuthConfig): Removed.
  12547. * src/UrlRequest.h
  12548. (getHeadResult): Added a parameter: authConfigHandle
  12549. * src/common.h
  12550. (SingletonHolder.h): New include.
  12551. * src/main.cc
  12552. (Netrc.h): New include.
  12553. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  12554. Added initial value of PREF_NETRC_PATH.
  12555. Added the initialization of netrc.
  12556. * src/AuthConfig.h: New class.
  12557. * src/prefs.h
  12558. (PREF_NETRC_PATH): New definition.
  12559. * src/HttpAuthConfig.h: Removed.
  12560. * src/Netrc.cc
  12561. (getRequiredNextToken): New function.
  12562. (skipMacdef): New function.
  12563. (parse): Rewritten.
  12564. * src/Netrc.h
  12565. (getRequiredNextToken): New function.
  12566. (skipMacdef): New function.
  12567. * src/Util.h, src/Util.cc
  12568. (getHomeDir): New function.
  12569. * src/TrackerWatcherComand.cc
  12570. (createRequestCommand): Use AuthConfig.
  12571. * src/FtpConnection.cc
  12572. (sendUser): Use Request::resolveFtpAuthConfigItem().
  12573. (sendPass): Use Request::resolveFtpAuthConfigItem().
  12574. * src/Request.cc
  12575. (findNetrcAuthenticator): New function.
  12576. (resolveHttpAuthConfigItem): New function.
  12577. (resolveFtpAuthConfigItem): New function.
  12578. (resolveHttpProxyAuthConfigItem): New function.
  12579. * src/UrlRequestInfo.cc: Use AuthConfig.
  12580. * src/HttpRequest.cc
  12581. (createRequest): Use authConfig.
  12582. (getProxyAuthString): Use authConfig.
  12583. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  12584. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  12585. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12586. To reduce overhead to find commands whose socket is either
  12587. readable or writable in the download engine loop:
  12588. * src/Command.h, src/Command.cc
  12589. (STATUS): New enum.
  12590. (status): New variable.
  12591. (statusMatch): New function.
  12592. (setStatusActive): New function.
  12593. (setStatusInactive): New function.
  12594. * src/DownloadEngine.h, src/DownloadEngine.cc
  12595. (executeCommand): New function.
  12596. (run): Simplified.
  12597. (waitData): Call Command::setStatusActive() when command's socket is
  12598. readable or writable.
  12599. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12600. To handle Segment as SegmentHandle:
  12601. * src/AbstractCommand.cc (execute): Rewritten.
  12602. * src/SegmentMan.h: Segment -> SegmentHandle
  12603. Introducded HttpResponse class, HttpRequest class to improve code
  12604. extensiveness and make it clear:
  12605. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  12606. HttpResponse class.
  12607. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  12608. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  12609. * src/HttpConnection.cc: Contruction of http request were moved to
  12610. HttpRequest class.
  12611. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  12612. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  12613. * src/HttpAuthConfig.h: New class.
  12614. * src/Range.h: New class.
  12615. To make FtpTunnel{Request, Response}Command and
  12616. HttpProxy{Request, Response}Command derived from
  12617. AbstractProxy{Request, Response}Command:
  12618. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  12619. Derived from AbstractProxyRequestCommand class.
  12620. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  12621. Derived from AbstractProxyResponseCommand class.
  12622. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  12623. Derived from AbstractProxyRequestCommand class.
  12624. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  12625. Derived from AbstractProxyResponseCommand class.
  12626. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  12627. : New class.
  12628. * src/AbstractProxyResponseCommand.h,
  12629. src/AbstractProxyResponseCommand.cc: New class.
  12630. To add netrc support:
  12631. * src/Netrc.h, src/Netrc.cc: New class.
  12632. * src/Util.h, src/Util.cc (split): New function.
  12633. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  12634. "Content-Range" header instead of "Range" header.
  12635. * src/HttpHeader.h
  12636. (getStatus): Removed.
  12637. (setStatus): Removed.
  12638. * src/Segment.h
  12639. (getPositionToWrite): New function.
  12640. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12641. * src/HttpHeader.h
  12642. (Range.h): New include.
  12643. (status): New variable.
  12644. (HttpHeader): Initialized status with 0.
  12645. (getStatus): New function.
  12646. (setStatus): New function.
  12647. (getRange): New function.
  12648. (HttpHeaderHandle): New function.
  12649. * src/HttpHeader.cc
  12650. (getRange): New function.
  12651. * src/Request.h
  12652. (RequestWeakHandle): New definition.
  12653. * src/HttpConnection.h
  12654. (HttpConnectionHandle): New type definition.
  12655. * src/HttpConnection.cc
  12656. (receiveResponse): Set HTTP status to headers.
  12657. * src/main.cc
  12658. (showUsage): Fixed typo.
  12659. * src/Segment.h
  12660. (SegmentHandle): New type definition.
  12661. * src/BitfieldMan.h
  12662. (getMissingUnusedLength): New function.
  12663. * src/BitfieldMan.cc
  12664. (getMissingUnusedLength): New function.
  12665. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12666. To fix static initialization order problem:
  12667. * src/BitfieldManFactory.h
  12668. (defaultRandomizer): Removed.
  12669. (factory): New variable.
  12670. (getNewFactory): Removed.
  12671. (getFactoryInstance): New function.
  12672. (setDefaultRandomizer): Rewritten.
  12673. (getDefaultRandomizer): Rewritten.
  12674. * src/BitfieldManFactory.cc
  12675. (defaultRandomizer): Removed.
  12676. (factory): Initialized to 0.
  12677. (BitfieldManFactory): Initialized randomizer to 0.
  12678. * src/DefaultPieceStorage.cc
  12679. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  12680. * src/Peer.cc
  12681. (Peer): getNewFactory() -> getFactoryInstance()
  12682. * src/SegmentMan.cc
  12683. (initBitfield): getNewFactory() -> getFactoryInstance()
  12684. * src/Piece.cc
  12685. (Piece): getNewFactory() -> getFactoryInstance()
  12686. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12687. To fix the bug that causes crash on Max OS X:
  12688. * src/SimpleRandomizer.h
  12689. (getInstance): Create new instance if the static variable is null.
  12690. * src/SimpleRandomizer.cc
  12691. (randomizer): Initialized to 0.
  12692. * src/BitfieldManFactory.h
  12693. (getNewFactory): Removed the call to setRandomizer().
  12694. To fix the miscalculation of the range of checksum:
  12695. * src/BitfieldMan.h
  12696. (isBitSetOffsetRange): New function.
  12697. * src/BitfieldMan.cc
  12698. (isBitSetOffsetRange): New function.
  12699. * src/SegmentMan.cc
  12700. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  12701. Use bitfield->getBlockLength() instead of segment.segmentLength.
  12702. * Release 0.10.1
  12703. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12704. To lower CPU usage in BitTorrent download when --max-upload-limit
  12705. command-line option specified:
  12706. * src/DefaultBtMessageDispatcher.cc
  12707. (sendMessages): Calculate uploading speed only when current message
  12708. is uploading data and is not sent yet.
  12709. * src/DefaultPeerStorage.h
  12710. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  12711. * src/HttpResponseCommand.cc
  12712. (handleDefaultEncoding): Added the cast to int32_t to itos.
  12713. This fixes compile error in Soralis 10.
  12714. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12715. To fix segfault in Metalink download:
  12716. * src/UrlRequestInfo.h
  12717. (filename): Removed.
  12718. (totalLength): Removed.
  12719. (setTotalLength): Removed.
  12720. (setFilename): Removed.
  12721. * src/MetalinkRequestInfo.cc
  12722. (execute): Do not set filename and totalLength to reqInfo.
  12723. Set chunk checksum to reqInfo if it is not null.
  12724. * src/HttpResponseCommand.cc
  12725. (executeInternal): Fixed filename in log.
  12726. (handleDefaultEncoding): Removed the call to initBitfield() and
  12727. markAllPiecesDone().
  12728. (handleOtherEncoding): Added HEAD method handling.
  12729. * src/FtpNegotiateCommand.cc
  12730. (executeInternal): Added SEQ_HEAD_OK handling.
  12731. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  12732. return false.
  12733. * src/FtpNegotiateCommand.h
  12734. (SEQ_HEAD_OK): New definition.
  12735. * src/SegmentMan.cc
  12736. (initBitfield): Delete bitfield.
  12737. (isChunkChecksumValidationReady): Fixed the condition.
  12738. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  12739. works fine.
  12740. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12741. * src/Xml2MetalinkProcessor.h
  12742. (xpathExists): New function.
  12743. * src/Xml2MetalinkProcessor.cc
  12744. (xpathExists): New function.
  12745. Not to send HEAD request if filename and size are available in Metalink
  12746. file:
  12747. * src/UrlRequestInfo.h
  12748. (filename): New variable.
  12749. (totalLength): New variable.
  12750. (setTotalLength): New function.
  12751. (setFilename): New function.
  12752. * src/MetalinkRequestInfo.cc
  12753. (execute): Set filename and size to UrlRequestInfo.
  12754. * src/MetalinkEntry.cc
  12755. (MetalinkEntry): Initialize size with 0.
  12756. * src/UrlRequestInfo.cc
  12757. (execute): Set filename and size to SegmentMan.
  12758. Not to download rest of the files after selected files are downloaded
  12759. in BitTorrent:
  12760. * src/PieceStorage.h
  12761. (allDownloadFinished): New function.
  12762. * src/DefaultBtAnnounce.cc
  12763. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  12764. downloadFinished.
  12765. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  12766. * src/DefaultPieceStorage.cc
  12767. (completePiece): Use allDownloadFinished instead of downloadFinished.
  12768. Commented out the call to finishSelectiveDownloadingMode().
  12769. (downloadFinished): Call isFilteredAllBitSet() instead of
  12770. isAllBitSet().
  12771. (allDownloadFinished): New function.
  12772. * src/DefaultBtInteractive.cc
  12773. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  12774. downloadFinished().
  12775. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  12776. * src/TorrentDownloadEngine.cc
  12777. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  12778. * src/BitfieldMan.h
  12779. (isFilteredAllBitSet): New function.
  12780. * src/ShareRatioSeedCriteria.h
  12781. (PieceStorage.h): New include.
  12782. (pieceStorage): New variable.
  12783. (evaluate):
  12784. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  12785. * src/BitfieldMan.cc
  12786. (isFilteredAllBitSet): New function.
  12787. (isAllBitSet): Filter is not took into account.
  12788. Rename --force-truncate as --allow-overwrite:
  12789. * src/TorrentRequestInfo.cc
  12790. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  12791. * src/main.cc
  12792. (showUsage): --force-truncate -> --allow-overwrite
  12793. * src/message.h
  12794. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  12795. * src/prefs.h
  12796. (PREF_FORCE_TRUNCATE): Removed.
  12797. (PREF_ALLOW_OVERWRITE): New definition.
  12798. * src/SegmentMan.cc
  12799. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  12800. * src/MetalinkRequestInfo.cc
  12801. (execute): Queueing message are now logged in info level.
  12802. * src/common.h
  12803. (LONG_LONG_MAX): Removed.
  12804. (LONG_LONG_MIN): Removed.
  12805. * src/HttpResponseCommand.cc
  12806. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  12807. * src/FtpNegotiateCommand.cc
  12808. (recvSize): LONG_LONG_MAX -> INT64_MAX
  12809. * src/main.cc
  12810. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  12811. command-line option.
  12812. (main): Added --check-integriy and --realtime-chunk-checksum
  12813. command-line option.
  12814. --force-truncate -> --allow-overwrite
  12815. Set initial value of --check-integrity option to false.
  12816. Don't show usage when error occurs while persing command-line options.
  12817. Removed deprecated --upload-limit option.
  12818. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12819. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  12820. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  12821. * src/BtAllowedFastMessage.cc:
  12822. * src/BtBitfieldMessage.cc
  12823. * src/BtCancelMessage.cc
  12824. * src/BtChokeMessage.cc
  12825. * src/BtHaveAllMessage.cc
  12826. * src/BtHaveMessage.cc
  12827. * src/BtHaveNoneMessage.cc
  12828. * src/BtInterestedMessage.cc
  12829. * src/BtNotInterestedMessage.cc
  12830. * src/BtPieceMessage.cc
  12831. * src/BtPortMessage.cc
  12832. * src/BtRejectMessage.cc
  12833. * src/BtRequestMessage.cc
  12834. * src/BtSuggestPieceMessage.cc
  12835. * src/BtUnchokeMessage.cc
  12836. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  12837. files are affected.
  12838. * src/ChunkChecksumValidator.cc
  12839. * src/SegmentMan.cc
  12840. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12841. To add chunk checksum validation:
  12842. * src/MetalinkEntry.h
  12843. (MetalinkChunkChecksum.h): New include.
  12844. (chunkChecksum): New variable.
  12845. * src/Request.h
  12846. (method): New variable.
  12847. (setMethod): New function.
  12848. (getMethod): New function.
  12849. (METHOD_GET): New static constant.
  12850. (METHOD_HEAD): New static constant.
  12851. * src/Xml2MetalinkProcessor.h
  12852. (getPieceHash): New function.
  12853. * src/PieceStorage.h
  12854. (markAllPiecesDone): New function.
  12855. (checkIntegrity): New function.
  12856. * src/FileAllocator.h
  12857. (NullFileAllocationMonitor.h): New include.
  12858. (FileAllocator): Initialize fileAllocationMonitor with new
  12859. NullFileAllocationMonitor().
  12860. * src/MultiDiskAdaptor.h
  12861. (messageDigest.h): Remove include.
  12862. (ctx): Removed.
  12863. (hashUpdate): Added ctx.
  12864. (MultiDiskAdaptor): Removed ctx.
  12865. (sha1Sum): Renamed as messageDigest.
  12866. (messageDigest): New function.
  12867. * src/UrlRequestInfo.h
  12868. (HeadResult): New class.
  12869. (digestAlgo): New variable.
  12870. (chunkChecksumLength): New variable.
  12871. (chunkChecksums): New variable.
  12872. (getHeadResult): New function.
  12873. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  12874. (setDigestAlgo): New function.
  12875. (setChunkChecksumLength): New function.
  12876. (setChunkChecksums): New function.
  12877. * src/DefaultPieceStorage.cc
  12878. (DiskAdaptorWriter.h): New include.
  12879. (ChunkChecksumValidator.h): New include.
  12880. (markAllPiecesDone): New function.
  12881. (checkIntegrity): New function.
  12882. * src/DefaultBtContext.h
  12883. (getPieceHashes): New function.
  12884. * src/TorrentRequestInfo.cc
  12885. (execute): Try to validate chunk checksum if file already exists and
  12886. .aria2 file doesn't there and user allows aria2 to overwrite it.
  12887. * src/messageDigest.h
  12888. (~MessageDigestContext): Added digestFree().
  12889. * src/MetalinkRequestInfo.cc
  12890. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  12891. * src/DiskAdaptor.h
  12892. (messageDigest.h): New include.
  12893. (sha1Sum): Renamed as messageDigest.
  12894. (messageDigest): New function.
  12895. * src/DownloadCommand.h
  12896. (PeerStat.h): New include.
  12897. (maxDownloadSpeedLimit): New variable.
  12898. (startupIdleTime): New variable.
  12899. (lowestDownloadSpeedLimit): New variable.
  12900. (peerStat): New variable.
  12901. (setMaxDownloadSpeedLimit): New function.
  12902. (setStartupIdleTime): New function.
  12903. (setLowestDownloadSPeedLimit): New function.
  12904. * src/BtContext.h
  12905. (getPieceHashes): New function.
  12906. * src/main.cc
  12907. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  12908. option to true for testing purpose.
  12909. * src/BtPieceMessage.cc
  12910. (checkPieceHash): Use messageDigest
  12911. * src/DownloadEngine.cc
  12912. (SetDescriptor): Removed.
  12913. (AccumulateActiveCommand): Removed.
  12914. (waitData): Rewritten.
  12915. (updateFdSet): Rewritten.
  12916. * src/MultiDiskAdaptor.cc
  12917. (hashUpdate): Added ctx.
  12918. (sha1Sum): Renamed as messageDigest.
  12919. (messageDigest): New function.
  12920. * src/BitfieldMan.h
  12921. (isBitRangeSet): New function.
  12922. (unsetBitRange): New function.
  12923. * src/ByteArrayDiskWriter.h
  12924. (sha1Sum): Renamed as messageDigest.
  12925. (messageDigest): New function.
  12926. * src/ConsoleDownloadEngine.cc
  12927. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  12928. * src/DiskWriter.h
  12929. (messageDigest.h): New include.
  12930. (sha1Sum): Renamed as messageDigest.
  12931. (messageDigest): New function.
  12932. * src/ChunkChecksumValidator.h: New class.
  12933. * src/DiskAdaptorWriter.h: New class.
  12934. * src/prefs.h
  12935. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  12936. (PREF_CHECK_INTEGRITY): New definition.
  12937. * src/HttpResponseCommand.cc
  12938. (handleDefaultEncoding): Added method "HEAD" handling.
  12939. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12940. (handleOtherEncoding):
  12941. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  12942. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  12943. startupIdleTime, lowestDownloadSpeedLimit to command.
  12944. * src/SegmentMan.h
  12945. (getSegmentEntryByIndex): New function.
  12946. (getSegmentEntryByCuid): New function.
  12947. (getSegmentEntryIteratorByCuid): New function.
  12948. (diskWriter): DiskWriter -> DiskWriterHandle
  12949. (pieceHashes): New variable.
  12950. (chunkHashLength): New variable.
  12951. (digestAlgo): New variable.
  12952. (FindPeerStat): Removed.
  12953. (getPeerStat): Rewritten.
  12954. (markAllPiecesDone): New function.
  12955. (checkIntegrity): New function.
  12956. (tryChunkChecksumValidation): New function.
  12957. (isChunkChecksumValidationReady): New function.
  12958. * src/BitfieldMan.cc
  12959. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  12960. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  12961. blocks to 0.
  12962. (isBitRangeSet): New function.
  12963. (unsetBitRange): New function.
  12964. * src/FtpNegotiateCommand.cc
  12965. (executeInternal): Set maxDownloadSpeedLimit,
  12966. startupIdleTime, lowestDownloadSpeedLimit to command.
  12967. (recvSize): Added method "HEAD" handling.
  12968. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  12969. * src/AbstractSingleDiskAdaptor.cc
  12970. (sha1Sum): Renamed as messageDigest.
  12971. (messageDigest): New function.
  12972. * src/AbstractSingleDiskAdaptor.h
  12973. (sha1Sum): Renamed as messageDigest.
  12974. (messageDigest): New function.
  12975. * src/Util.h
  12976. (indexRange): New function.
  12977. * src/MetalinkEntry.cc
  12978. (MetalinkEntry): Initialized chunkChecksum to 0.
  12979. * src/ShaVisitor.cc
  12980. (~ShaVisitor): Removed the call to ctx.digestFree().
  12981. * src/SegmentMan.cc
  12982. (ChunkChecksumValidator.h): New include.
  12983. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  12984. to DIGEST_ALGO_SHA1.
  12985. (~SegmentMan): Removed diskWriter.
  12986. (FindSegmentEntryByIndex): Removed.
  12987. (FindSegmentEntryByCuid): Removed.
  12988. (checkoutSegment): Rewritten.
  12989. (findSlowerSegmentEntry): Rewritten.
  12990. (getSegment): Rewritten.
  12991. (updateSegment): Rewritten.
  12992. (completeSegment): Rewritten.
  12993. (markAllPiecesDone): New function.
  12994. (checkIntegrity): New function.
  12995. (isChunkChecksumValidationReady): New function.
  12996. (tryChunkChecksumValidation): New function.
  12997. * src/Xml2MetalinkProcessor.cc
  12998. (getEntry): Get size and set it to entry.
  12999. Get chunk checksum and set it to entry.
  13000. (getPieceHash): New function.
  13001. * src/Util.cc
  13002. (sha1Sum): Removed ctx.digestFree()
  13003. (fileChecksum): Removed ctx.digestFree()
  13004. (indexRange): New function.
  13005. * src/Request.cc
  13006. (METHOD_GET): New variable.
  13007. (METHOD_HEAD): New variable.
  13008. (Request): Added method.
  13009. * src/UrlRequestInfo.cc
  13010. (FatalException.h): New include.
  13011. (message.h): New include.
  13012. (operator<<): Added operator<< for class HeadResult.
  13013. (getHeadResult): New function.
  13014. (execute): Get filename and size in separate download engine.
  13015. * src/ChunkChecksumValidator.cc: New class.
  13016. * src/DownloadCommand.cc:
  13017. (DownloadCommand): Added peerStat.
  13018. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  13019. the value from Option.
  13020. The buffer size is now 16KB.
  13021. Use peerStat member instead of getting it from SegmentMan.
  13022. Use startupIdleTime member instead of gettingit from Option.
  13023. Added chunk checksum validation.
  13024. * src/AbstractDiskWriter.cc
  13025. (AbstractDiskWriter): Removed ctx.
  13026. (~AbstractDiskWriter): Removed ctx.digestFree()
  13027. (writeDataInternal): Returns the return value of write.
  13028. (readDataInternal): Returns the return value of read.
  13029. (sha1Sum): Renamed as messageDigest
  13030. (messageDigest): New function.
  13031. * src/AbstractDiwkWriter.h
  13032. (messageDigest.h): Removed include.
  13033. (ctx): Removed.
  13034. (sha1Sum): Renamed as messageDigest
  13035. (messageDigest): New function.
  13036. * src/DefaultPieceStorage.h
  13037. (markAllPiecesDone): New function.
  13038. (checkIntegrity): New function.
  13039. * src/NullFileAllocationMonitor.h: New class.
  13040. * src/MetalinkChunkChecksum.h: New class.
  13041. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13042. To decrease CPU usage in bittorrent download, calculation results in
  13043. BitfieldMan were cached and realtime fetching PeerObject was removed
  13044. with WeakHandle introduced. Option values are set to the objects
  13045. by setter before download begins.
  13046. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  13047. * src/DefaultBtRequestFactory.h
  13048. (dispatcher): BtMessageDispatcherHandle ->
  13049. BtMessageDispatcherWeakHandle.
  13050. (messageFactory): New variable.
  13051. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  13052. BtMessageDispatcherWeakHandle.
  13053. (setBtMessageFactory): New function.
  13054. * src/DefaultBtMessageDispatcher.cc:
  13055. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  13056. from Option.
  13057. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  13058. feating the value from Option.
  13059. Use messageFactory member.
  13060. * src/PeerInteractionCommand.cc
  13061. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  13062. Add reverse dependencies to factory object.
  13063. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  13064. dispatcher.
  13065. Set messageFactory to receiver.
  13066. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  13067. btInteractive.
  13068. Set receiver to peerObject.
  13069. Set maxDownloadSpeedLimit to this.
  13070. (executeInternal): Use maxDownloadSpeedLimit member.
  13071. * src/BtChokeMessage.cc
  13072. (doReceivedAction): Use dispatcher, requestFactory member.
  13073. (onSendComplete): Use dispatcher member.
  13074. * src/PeerInteractionCommand.h
  13075. (maxDownloadSpeedLimit): New variable.
  13076. * src/DefaultBtMessageReceiver.h
  13077. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13078. (dispatcher):
  13079. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13080. (messageFactory): New variable.
  13081. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13082. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  13083. (setDispatcher):
  13084. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  13085. (setBtMessageFactory): New function.
  13086. * src/DefaultBtInteractive.cc
  13087. (initiateHandshake): Use messageFactory member.
  13088. (addBitfieldMessageToQueue): Use messageFactory member.
  13089. (addAllowedFastMessageToQueue): Use messageFactory member.
  13090. (decideChoking): Use messageFactory member.
  13091. (checkHave): Use messageFactory member.
  13092. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  13093. (receiveMessages): Use maxDownloadSpeedLimit member.
  13094. (decideInterest): Use messageFactory member.
  13095. * src/BtRequestMessage.cc
  13096. (doReceivedAction): Use messageFactory, dispatcher member.
  13097. (onQueued): Use dispatcher member.
  13098. * src/BtPieceMessage.cc
  13099. (doReceivedAction): Use dispatcher member.
  13100. (send): Use peerConnection member.
  13101. (onWrongPiece): Use requestFactory member.
  13102. (handleChokingEvent): Use messageFactory, dispatcher member.
  13103. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  13104. * src/BtMessageDispatcher.h
  13105. (BtMessageDispatcherWeakHandle): New type definition.
  13106. * src/SimpleBtMessage.cc
  13107. (send): Use peerConnection member.
  13108. * src/BtRejectMessage.cc
  13109. (doReceivedAction): Use dispatcher member.
  13110. * src/DefaultBtMessageDispatcher.h
  13111. (Option.h): Removed include.
  13112. (messageFactory): New variable.
  13113. (option): Removed.
  13114. (maxUploadSpeedLimit): New variable.
  13115. (requestTimeout): New variable.
  13116. (DefaultBtMessageDispatcher): Removed option.
  13117. Added maxUploadSpeedLimit, requestTimeout.
  13118. (setOption): Removed.
  13119. (getOption): Removed.
  13120. (setMaxUploadSpeedLimit): New function.
  13121. (setRequestTimeout): New function.
  13122. (setBtMessageFactory): New function.
  13123. * src/DefaultBtInteractive.h
  13124. (btMessageReceiver):
  13125. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13126. (dispatcher):
  13127. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13128. (btRequestFactory):
  13129. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13130. (peerConnection):
  13131. PeerConnectionHandle -> PeerConnectionWeakHandle
  13132. (messageFactory): New variable.
  13133. (option): Removed.
  13134. (keepAliveInterval): New variable.
  13135. (maxDownloadSpeedLimit): New variable.
  13136. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  13137. (setBtMessageReceiver):
  13138. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  13139. (setDispatcher):
  13140. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  13141. (setBtRequestFactory):
  13142. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  13143. (setPeerConnection):
  13144. PeerConnectionHandle -> PeerConnectionWeakHandle
  13145. (setOption): Removed.
  13146. (setKeepAliveInterval): New function.
  13147. (setMaxDownloadSpeedLimit): New function.
  13148. (setBtMessageFactory): New function.
  13149. * src/BitfieldMan.h
  13150. (cachedNumMissingBlock): New variable.
  13151. (cachedNumFilteredBlock): New variable.
  13152. (cachedCompletedLength): New variable.
  13153. (cachedFilteredComletedLength): New variable.
  13154. (cachedFilteredTotalLength): New variable.
  13155. (countMissingBlockNow): New function.
  13156. (countFilteredBlockNow): New function.
  13157. (getFilteredTotalLengthNow): New function.
  13158. (getCompletedLengthNow): New function.
  13159. (getFilteredCompletedLengthNow): New function.
  13160. (updateCache): New function.
  13161. * src/AbstractBtMessage.h
  13162. (BtMessageDispatcher.h): New include.
  13163. (PeerConnection.h): New include.
  13164. (BtRequestFactory.h): New include
  13165. (BtMessageFactory.h): New include.
  13166. (dispatcher): New variable.
  13167. (messageFactory): New variable.
  13168. (peerConnection: New variable.
  13169. (setBtMessageDispatcher): New function.
  13170. (setPeerConnection): New function.
  13171. (setBtMessageFactory): New function.
  13172. (setBtRequestFactory): New function.
  13173. * src/DefaultBtMessageFactory.cc
  13174. (setCommonProperty): Set dispatcher, requestFactory, this,
  13175. peerConnection to msg.
  13176. * src/BtRegistry.h
  13177. (BT_MESSAGE_RECEIVER): New macro.
  13178. * src/PeerConnection.h
  13179. (PeerConnectionWeakHandle): New type definition.
  13180. * src/BtMessageFactory.h
  13181. (BtMessageFactoryWeakHandle): New type definition.
  13182. * src/BitfieldMan.cc
  13183. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  13184. cachedCompletedLength, cachedFilteredComletedLength,
  13185. cachedFilteredTotalLength.
  13186. Call updateCache().
  13187. (countMissingBlock): Return cachedNumMissingBlock.
  13188. (countMissingBlockNow): New function.
  13189. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  13190. (countFilteredBlockNow): New function.
  13191. (setBit): Call updateCache().
  13192. (unsetBit): Call updateCache().
  13193. (setBitfield): Call updateCache().
  13194. (clearAllBit): Call updateCache().
  13195. (setAllBit): Use setBitInternal instead of setBit.
  13196. Call updateCache().
  13197. (addFilter): Call updateCache().
  13198. (enableFilter): Call updateCache().
  13199. (disableFilter): Call updateCache().
  13200. (clearFilter): Call updateCache().
  13201. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  13202. (getFilteredTotalLengthNow): New function.
  13203. (getCompletedLength): Return cachedCompletedLength.
  13204. (getCompletedLengthNow): New function.
  13205. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  13206. (getFilteredCompletedLengthNow): New function.
  13207. (updateCache): New function.
  13208. * src/BtMessageReceiver.h
  13209. (BtMessageReceiverWeakHandle): New type definition.
  13210. * src/DefaultBtMessageReceiver.cc
  13211. (receiveHandshake): Use messageFactory member.
  13212. (sendHandshake): Use messageFactory member.
  13213. (receiveMessage): Use messageFactory member.
  13214. * src/DefaultBtMessageFactory.h
  13215. (dispatcher): New variable.
  13216. (requestFactory): New variable.
  13217. (peerConnection): New variablle.
  13218. (setBtMessageDispatcher): New function.
  13219. (setBtRequestFactory): New function.
  13220. (setPeerConnection): New function.
  13221. * src/SharedHandle.h
  13222. (RefCount): New class.
  13223. (WeakHandle): New class.
  13224. * src/PeerObject.h
  13225. (BtMessageReceiver.h): New include.
  13226. (PeerObject): Added btMessageReceiver.
  13227. (btMessageReceiver): New variable.
  13228. * src/Util.cc
  13229. (countBit): Simplified.
  13230. * src/BtCancelMessage.cc
  13231. (doReceivedAction): Use dispatcher member.
  13232. * src/BtRequestFactory.h
  13233. (BtRequestFactoryWeakHandle): New type definition.
  13234. * src/PeerStorage.h
  13235. (downloadSpeed): int -> uint32_t
  13236. (uploadSpeed): int -> uint32_t
  13237. (sessionDownloadLength): long long int -> uint64_t
  13238. (sessionUploadLength): long long int -> uint64_t
  13239. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13240. To add RecoverableException, FatalException:
  13241. * src/AbstractCommand.cc
  13242. (onAbort): Exception -> RecoverableException
  13243. * src/PeerAbstractCommand.h
  13244. (RecoverableException.h): New include.
  13245. (onAbort): Exception -> RecoverableException.
  13246. * src/PeerInteractionCommand.cc
  13247. (onAbort): Exception -> RecoverableException.
  13248. * src/PeerAbstractCommand.cc
  13249. (execute): Exception -> RecoverableException.
  13250. (onAbort): Exception -> RecoverableException.
  13251. * src/TorrentRequestInfo.cc
  13252. (execute): Exception -> RecoverableException.
  13253. * src/MetalinkRequestInfo.cc
  13254. (execute): Exception -> RecoverableException.
  13255. * src/MetaFileUtil.cc: RecoverableException.
  13256. * src/AbstractCommand.h
  13257. (onAbort): Exception -> RecoverableException.
  13258. * src/DlRetryEx.h: Exception -> RecoverableException.
  13259. * src/DlAbortEx.h: Exception -> RecoverableException.
  13260. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  13261. * src/Util.cc: Exception -> RecoverableException.
  13262. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  13263. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  13264. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  13265. To make ID static const int
  13266. * src/BtInterestedMessage.h
  13267. (ID_t): Removed.
  13268. (ID): New variable.
  13269. (getId): Made non-const.
  13270. * src/BtPieceMessage.h
  13271. (ID_t): Removed.
  13272. (ID): New variable.
  13273. (getId): Made non-const.
  13274. * src/BtChokeMessage.h
  13275. (ID_t): Removed.
  13276. (ID): New variable.
  13277. (getId): Made non-const.
  13278. * src/BtHaveAllMessage.h
  13279. (ID_t): Removed.
  13280. (ID): New variable.
  13281. (getId): Made non-const.
  13282. * src/BtKeepAliveMessage.h
  13283. (ID_t): Removed.
  13284. (ID): New variable.
  13285. (getId): Made non-const.
  13286. * src/BtHandshakeMessage.h
  13287. (ID): New variable.
  13288. (getId): Made non-const.
  13289. * src/BtSuggestPieceMessage.h
  13290. (ID_t): Removed.
  13291. (ID): New variable.
  13292. (getId): Made non-const.
  13293. * src/BtPortMessage.h
  13294. (ID_t): Removed.
  13295. (ID): New variable.
  13296. (getId): Made non-const.
  13297. * src/AbstractBtMessage.h
  13298. (id): Removed.
  13299. (AbstractBtMessage): Removed id.
  13300. (getId): Removed.
  13301. * src/BtHaveMessage.h
  13302. (ID_t): Removed.
  13303. (ID): New variable.
  13304. (getId): Made non-const.
  13305. * src/BtAllowedFastMessage.h
  13306. (ID_t): Removed.
  13307. (ID): New variable.
  13308. (getId): Made non-const.
  13309. * src/BtCancelMessage.h
  13310. (ID_t): Removed.
  13311. (ID): New variable.
  13312. (getId): Made non-const.
  13313. * src/BtNotInterestedMessage.h
  13314. (ID_t): Removed.
  13315. (ID): New variable.
  13316. (getId): Made non-const.
  13317. * src/BtChokeMessage.h
  13318. (ID_t): Removed.
  13319. (ID): New variable.
  13320. (getId): Made non-const.
  13321. * src/BtRejectMessage.h
  13322. (ID_t): Removed.
  13323. (ID): New variable.
  13324. (getId): Made non-const.
  13325. * src/BtBitfieldMessage.h
  13326. (ID_t): Removed.
  13327. (ID): New variable.
  13328. (getId): Made non-const.
  13329. * src/BtUnchokeMessage.h
  13330. (ID_t): Removed.
  13331. (ID): New variable.
  13332. (getId): Made non-const.
  13333. * src/BtRequestMessage.h
  13334. (ID_t): Removed.
  13335. (ID): New variable.
  13336. (getId): Made non-const.
  13337. * src/BtHaveMessage.h
  13338. (ID_t): Removed.
  13339. (ID): New variable.
  13340. (getId): Made non-const.
  13341. To add --force-truncate command-line option and a check whether
  13342. the file already exists:
  13343. * src/DirectDiskAdaptor.h
  13344. (getFilePath): Made virtual public.
  13345. * src/MultiDiskAdaptor.h
  13346. (File.h): New include.
  13347. (DiskWriterEntry::fileEntry): Made private.
  13348. (DiskWriterEntry::fileExists): New function.
  13349. (DiskWriterEntry::getFileEntry): New function.
  13350. (fileExists): New function.
  13351. (getFilePath): New function.
  13352. * src/TorrentRequestInfo.cc
  13353. (FatalException.h): New include.
  13354. (message.h): New include.
  13355. (RecoverableException.h): New include.
  13356. (execute): Added a check whether file is already exists or not.
  13357. * src/DiskAdaptor.h
  13358. (fileExists): New function.
  13359. (getFilePath): New function.
  13360. * src/main.cc
  13361. (showUsage): Added an explanation of --force-truncate command-line
  13362. option.
  13363. (main): Added --force-truncate command-line option.
  13364. * src/Exception.h
  13365. (setMsg): buf[256] -> buf[1024]
  13366. * src/CopyDiskWriter.h
  13367. (getFilePath): Made public virtual.
  13368. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  13369. (fileExists): New function.
  13370. * src/DownloadEngineFactory.cc
  13371. (newTorrentConsoleEngine): Don't open file here.
  13372. * src/message.h
  13373. (EX_FILE_ALREADY_EXISTS): New definition.
  13374. * src/prefs.h
  13375. (PREF_FOECE_TRUNCATE): New definition.
  13376. * src/HttpResponseCommand.cc
  13377. (handleDefaultEncoding): Added a check whether the file already exists.
  13378. * src/SegmentMan.h
  13379. (fileExists): New function.
  13380. (shouldCancelDownloadForSafety): New function.
  13381. * src/FtpNegotiateCommand.cc
  13382. (recvSize): Added a check whether the file already exists.
  13383. * src/AbstractSingleDiskAdaptor.cc
  13384. (File.h): New include.
  13385. (fileExists): New function.
  13386. * src/AbstractSingleDiskAdaptor.h
  13387. (getFilePath): Removed.
  13388. (fileExists): New function.
  13389. * src/SegmentMan.cc
  13390. (fileExists): New function.
  13391. (shouldCancelDownloadForSafety): New function.
  13392. To fix regression bug in torrent downloading:
  13393. * src/DefaultBtRequestFactory.cc
  13394. (doChokedAction): New function.
  13395. * src/DefaultBtRequestFactory.h
  13396. (doChokedAction): New function.
  13397. * src/DefaultBtMessageDispatcher.cc
  13398. (doChokedAction): Do not delete request if its target is in allowed
  13399. fast set.
  13400. * src/DefaultBtInteractive.cc
  13401. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  13402. (sendKeepAlive): Send keep alive message even if the outgoing message
  13403. queue is not empty.
  13404. (decideInterest): Simplified the code.
  13405. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  13406. it is already called when BtChokeMessage is received from a peer.
  13407. * src/BtRequestFactory.h
  13408. (doChokedAction): New function.
  13409. To clean up code:
  13410. * src/PeerInteractionCommand.h
  13411. (executeInternal): Added virtual keyword explicitly.
  13412. (prepareForRetry): Added virtual keyword explicitly.
  13413. (prepareForNextPeer): Added virtual keyword explicitly.
  13414. (onAbort): Added virtual keyword explicitly.
  13415. * src/RequestSlot.cc
  13416. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  13417. * src/BtPieceMessage.cc
  13418. (doReceivedAction): Added a debug log of piece's bitfield.
  13419. * src/Piece.h
  13420. (getBitfieldLength): New function.
  13421. * src/ByteArrayDiskWriter.cc
  13422. (clear): Added buf = 0 to avoid double free corruption.
  13423. * src/FileAllocator.cc
  13424. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  13425. Added cp.reset().
  13426. * src/BitfieldMan.h
  13427. (operator=): Rewritten.
  13428. * src/BitfieldMan.cc
  13429. (BitfieldMan): Initialized bitfield, useBitfield.
  13430. * src/PeerConnection.cc
  13431. (receiveMessage): Added a call to socket->readable() after getting
  13432. message length to avoid possible EOF.
  13433. * src/Util.cc
  13434. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  13435. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13436. To add an ability to pre-allocate file space:
  13437. * src/DirectDiskAdaptor.h: Rewritten.
  13438. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  13439. * src/MultiDiskAdaptor.h: Rewritten.
  13440. * src/DefaultPieceStorage.cc
  13441. (MultiDiskWriter.h): Removed include.
  13442. (PreAllocationDiskWriter.h): Removed include.
  13443. (FileAllocationMonitor.h): New include.
  13444. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  13445. (initStorage): Rewritten.
  13446. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13447. * src/FileAllocator.h: New class.
  13448. * src/FileAllocator.cc: New class.
  13449. * src/FileAllocationMonitor.h: New class.
  13450. * src/FileAllocationMonitor.cc: New class.
  13451. * src/ConsoleFileAllocationMonitor.h: New class.
  13452. * src/ConsoleFileAllocationMonitor.cc: New class.
  13453. * src/AbstractSingleDiskAdaptor.h: New class.
  13454. * src/AbstractSingleDiskAdaptor.cc: New class.
  13455. * src/DiskAdaptor.h
  13456. (Directory.h): Removed include.
  13457. (DiskWriter.h): Removed include.
  13458. (FileEntry.h): Removed include.
  13459. (diskWriter): Removed.
  13460. (DiskAdaptor): Removed diskWriter.
  13461. (openFile): Made pure virtual.
  13462. (closeFile): Made pure virtual.
  13463. (openExistingFile): Made pure virtual.
  13464. (initAndOpenFile): Made pure virtual.
  13465. (writeData): Made pure virtual.
  13466. (readData): Made pure virtual.
  13467. (sha1Sum): Made pure virtual.
  13468. (getStoreDir): Returns const reference of storeDir.
  13469. (DiskAdaptorHandle): New type definition.
  13470. * src/main.cc
  13471. (ConsoleFileAllocationMonitor.h): New include.
  13472. (showUsage): Added default value description of -s option.
  13473. Added the description of --file-allocation option.
  13474. (main): Set default value of --file-allocation option to 'none'.
  13475. Added --file-allocation command-line option.
  13476. Setup FileAllocationMonitorFactory.
  13477. * src/FtpInitiateConnectionCommand.cc
  13478. (executeInternal): Removed diskWriter related processing, which was
  13479. moved to FtpNegotiationCommand.cc.
  13480. * src/DirectDiskAdaptor.cc
  13481. (getFilePath): Made non-const.
  13482. * src/CopyDiskAdaptor.h
  13483. (DiskAdaptor.h): Removed include.
  13484. (DiskWriter.h): Removed include.
  13485. (AbstractSingleDiskAdaptor.h): New include.
  13486. (getFilePath): Made non-const. Added virtual keyword.
  13487. (CopyDiskAdaptor): Removed diskWriter.
  13488. (getTempFile): Returns const reference.
  13489. (CopyDiskAdaptorHandle): New type definition.
  13490. * src/ByteArrayDiskWriter.cc
  13491. (clear): Simplified.
  13492. (initAndOpenFile): Rewritten.
  13493. (openFile): Call initAndOpenFile()
  13494. * src/MultiDiskAdaptor.cc: Rewritten.
  13495. * src/DownloadEngineFactory.cc
  13496. (FileAllocator.h): New include.
  13497. (FileAllocationMonitor.h): New include.
  13498. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  13499. create DefaultDiskWriter with file allocator.
  13500. * src/DiskWriter.h
  13501. (initAndOpenFile): Added totalLength argument.
  13502. (openFile): Added totalLength argument.
  13503. * src/prefs.h
  13504. (PREF_FILE_ALLOCATION): New definition.
  13505. (V_PREALLOC): New definition.
  13506. (V_NONE): New definition.
  13507. * src/HttpResponseCommand.cc
  13508. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  13509. size.
  13510. * src/FtpNegotiateCommand.cc
  13511. (Util.h): New include.
  13512. (recvSize): Open file here.
  13513. * src/Util.h
  13514. (ullitos): New function.
  13515. * src/CopyDiskWriter.h
  13516. (getFilePath): Made non-const.
  13517. * src/DefaultDiskWriter.h
  13518. (Option.h): New include.
  13519. (totalLength): Removed.
  13520. (DefaultDiskWriter): Removed totalLength.
  13521. (initAndOpenFile): Added totalLength argument.
  13522. (DefaultDiskWriterHandle): New type definition.
  13523. (createNewDiskWriter): New function.
  13524. * src/Util.cc
  13525. (ullitos): New function.
  13526. * src/DefaultDiskWriter.cc
  13527. (message.h): New include.
  13528. (FileAllocator.h): New include.
  13529. (prefs.h): New include.
  13530. (Util.h): New include.
  13531. (DefaultDiskWriter): Removed totalLength.
  13532. (initAndOpenFile): Added file allocation.
  13533. (createNewDiskWriter): New function. Just for temporary solution.
  13534. It will be rewritten later.
  13535. * src/DiskAdaptor.cc
  13536. (DiskAdaptor): Removed diskWriter.
  13537. * src/AbstractDiskWriter.cc
  13538. (LogFactory.h): New include.
  13539. (AbstractDiskWriter): Added fileAllocator, logger.
  13540. (openFile): Added totalLength argument.
  13541. * src/AbstractDiskWriter.h
  13542. (FileAllocator.h): New include.
  13543. (Logger.h): New include.
  13544. (fileAllocator): New variable.
  13545. (logger): New variable.
  13546. (openFile): Added totalLength argument. Added virtual keyword
  13547. explicitly.
  13548. (openExistingFile): Added totalLength argument. Added virtual keyword
  13549. explicitly.
  13550. (closeFile): Added virtual keyword explicitly.
  13551. (sha1Sum): Added virtual keyword explicitly.
  13552. (writeData): Added virtual keyword explicitly.
  13553. (readData): Added virtual keyword explicitly.
  13554. (setFileAllocator): New function.
  13555. * src/DefaultPieceStorage.h
  13556. (FileAllocator.h): New include.
  13557. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13558. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  13559. * src/FileProgressMonitor.h: New class.
  13560. To compile aria2 on PC-BSD:
  13561. * src/DefaultBtContext.cc
  13562. (libgen.h): New include.
  13563. To fix memory leak:
  13564. * src/Exception.h
  13565. (~Exception): Delete cause. Fixed memory leak.
  13566. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13567. Rewritten a portion of bittorrent implementation:
  13568. * src/BtMessageValidator.h: New class.
  13569. * src/BtBitfieldMessageValidator.h: New class.
  13570. * src/BtHandshakeMessageValidator.h: New class.
  13571. * src/BtRequestMessageValidator.h: New class.
  13572. * src/BtSuggestPieceMessageValidator.h: New class.
  13573. * src/BtAllowedFastMessageValidator.h: New class.
  13574. * src/BtRejectMessageValidator.h: New class.
  13575. * src/BtCancelMessageValidator.h: New class.
  13576. * src/BtPieceMessageValidator.h: New class.
  13577. * src/BtHaveMessageValidator.h: New class.
  13578. * src/BtEventListener.h: New class.
  13579. * src/AbstractBtEventListener.h: New class.
  13580. * src/BtEvent.h: New class.
  13581. * src/BtChokingEvent.h: New class.
  13582. * src/BtChokedEvent.h: New class.
  13583. * src/BtCancelSendingPieceEvent.h: New class.
  13584. * src/BtAbortOutstandingRequestEvent.h: New class.
  13585. * src/Randomizer.h: New class.
  13586. * src/SimpleRandomizer.h: New class.
  13587. * src/BtMessage.h: New class.
  13588. * src/AbstractBtMessage.h: New class.
  13589. * src/SimpleBtMessage.h: New class.
  13590. * src/BtHaveMessage.h: New class.
  13591. * src/BtInterestedMessage.h: New class.
  13592. * src/BtAllowedFastMessage.h: New class.
  13593. * src/BtUnchokeMessage.h: New class.
  13594. * src/BtCancelMessage.h: New class.
  13595. * src/BtNotInterestedMessage.h: New class.
  13596. * src/BtChokeMessage.h: New class.
  13597. * src/BtHaveNoneMessage.h: New class.
  13598. * src/BtHandshakeMessage.h: New class.
  13599. * src/BtSuggestPieceMessage.h: New class.
  13600. * src/BtHaveMessage.h: New class.
  13601. * src/BtPieceMessage.h: New class.
  13602. * src/BtHaveAllMessage.h: New class.
  13603. * src/BtKeepAliveMessage.h: New class.
  13604. * src/BtPortMessage.h: New class.
  13605. * src/BtRejectMessage.h: New class.
  13606. * src/BtBitfieldMessage.h: New class.
  13607. * src/BtRequestMessage.h: New class.
  13608. * src/DefaultBtRequestFactory.h: New class.
  13609. * src/DefaultBtMessageReceiver.h: New class.
  13610. * src/BtInteractive.h: New class.
  13611. * src/BtMessageDispatcher.h: New class.
  13612. * src/DefaultBtMessageDispatcher.h: New class.
  13613. * src/DefaultBtInteractive.h: New class.
  13614. * src/BitfieldManFactory.h: New class.
  13615. * src/HandleRegistry.h: New class.
  13616. * src/BtMessageFactory.h: New class.
  13617. * src/BtMessageReceiver.h: New class.
  13618. * src/DefaultBtMessageFactory.h: New class.
  13619. * src/PeerObject.h: New class.
  13620. * src/BtRequestFactory.h: New class.
  13621. * src/SuggestPieceMessage.h: Removed.
  13622. * src/PortMessage.h: Removed.
  13623. * src/SuggestPieceMessage.h: Removed.
  13624. * src/KeepAliveMessage.h: Removed.
  13625. * src/HandshakeMessage.h: Removed.
  13626. * src/PeerInteraction.h: Removed.
  13627. * src/UnchokeMessage.h: Removed.
  13628. * src/PieceMessage.h: Removed.
  13629. * src/RequestMessage.h: Removed.
  13630. * src/InterestedMessage.h: Removed.
  13631. * src/HaveMessage.h: Removed.
  13632. * src/CancelMessage.h: Removed.
  13633. * src/RejectMessage.h: Removed.
  13634. * src/AllowedFastMessage.h: Removed.
  13635. * src/HaveNoneMessage.h: Removed.
  13636. * src/SimplePeerMessage.h: Removed.
  13637. * src/HaveAllMessage.h: Removed.
  13638. * src/BitfieldMessage.h: Removed.
  13639. * src/PeerMessageFactory.h: Removed.
  13640. * src/NotInterestedMessage.h: Removed.
  13641. * src/ChokeMessage.h: Removed.
  13642. * src/PeerMessage.h: Removed.
  13643. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13644. To know root cause of exception:
  13645. * src/Exception.h
  13646. (cause): New variable.
  13647. (Exception): Added a parameter.
  13648. (getMsg): Return const reference to msg.
  13649. (getCause): New function.
  13650. * src/DlRetryEx.h
  13651. (DlRetryEx): Added a parameter 'cause'.
  13652. Added an overloaded constructor.
  13653. (DlAbortEx): Added a parameter 'cause'.
  13654. Added an overloaded constructor.
  13655. * src/SimpleLogger.cc
  13656. (writeLog): Log nested exception messages recursively.
  13657. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13658. * src/DefaultBtProgressInfoFile.cc
  13659. (load): Fixed memory leak when the infohash doesn't match.
  13660. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13661. * src/DefaultPeerStorage.cc
  13662. (calculateStat): Simplified the code by combining 2 loops into 1.
  13663. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13664. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  13665. for BitTorrent download:
  13666. * src/PeerAbstractCommand.cc
  13667. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  13668. * src/main.cc:
  13669. (timeoutSpecified): Removed.
  13670. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  13671. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  13672. * src/TorrentRequestInfo.cc
  13673. (timeoutSpecified): Removed.
  13674. (torrentHandler): Removed timeoutSpecified and the adjustment of
  13675. timeout value.
  13676. * src/prefs.h
  13677. (PREF_BT_TIMEOUT): New definition.
  13678. Delete unused variables:
  13679. * src/TorrentRequestInfo.cc
  13680. (requestInfo): Removed.
  13681. Move setSignalHander to Util::setGlobalSignalHandler:
  13682. * src/TorrentRequestInfo.cc:
  13683. setSignalHander -> Util::setGlobalSignalHandler
  13684. * src/main.cc
  13685. (setSignalHander): Removed.
  13686. (main): setSignalHander -> Util::setGlobalSignalHandler
  13687. * src/Util.h
  13688. (setGlobalSignalHandler): New function.
  13689. * src/Util.cc
  13690. (setGlobalSignalHandler): New function.
  13691. * src/UrlRequestInfo.cc:
  13692. setSignalHander -> Util::setGlobalSignalHandler
  13693. Reset peer status in order to exit gracefully:
  13694. * src/PeerAbstractCommand.cc
  13695. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  13696. To fix the bug that causes the number of bytes uploaded is not saved
  13697. to .aria2 file:
  13698. * src/DefaultPeerStorage.h
  13699. (removedPeerSessionDownloadLength): New variable.
  13700. (removedPeerSessionUploadLength): New variable.
  13701. * src/DefaultPeerStorage.cc
  13702. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  13703. removedPeerSessionUploadLength(0).
  13704. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  13705. through all peers, and then add removedPeerSessionDownloadLength(
  13706. removedPeerSessionUploadLength) to it.
  13707. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  13708. (to) the peer to removedPeerSessionDownloadLength
  13709. (removedPeerSessionUploadLength).
  13710. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13711. To add Metalink location option:
  13712. * src/MetalinkRequestInfo.cc
  13713. (execute): Call MetalinkEntry::setLocationPreference()
  13714. * src/main.cc
  13715. (showUsage): Added the help message for --metalink-location option.
  13716. (main): Added --metalink-location option.
  13717. * src/prefs.h
  13718. (PREF_METALINK_LOCATION): New definition.
  13719. * src/MetalinkEntry.cc
  13720. (AddLocationPreference): New function object.
  13721. (setLocationPreference): New function.
  13722. * src/Xml2MetalinkProcessor.cc
  13723. (getResource): Set location attribute to MetalinkResource
  13724. To show URLs to download
  13725. * src/UrlRequestInfo.h
  13726. (printUrls): New function.
  13727. To add multiple <file> Metalink support:
  13728. * src/MetalinkEntry.h
  13729. (MetalinkResources): Removed.
  13730. (setLocationPreference): New function.
  13731. (MetalinkEntryHandle): New type definition.
  13732. (MetalinkEntries): New type definition.
  13733. * src/Xml2MetalinkProcessor.h
  13734. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13735. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13736. (parseFile): Metalinker* -> MetalinkerHandle
  13737. * src/UrlRequestInfo.h
  13738. (execute): RequestInfo* -> RequestInfos
  13739. * src/MetalinkRequestInfo.cc
  13740. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  13741. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  13742. (execute): RequestInfo* -> RequestInfos
  13743. Added multiple <file> support. Print filename when it is queued.
  13744. * src/MetalinkRequestInfo.h
  13745. (execute): RequestInfo* -> RequestInfos
  13746. (getDownloadEngine): Removed.
  13747. * src/RequestInfo.h
  13748. (RequestInfoHandle): New type definition.
  13749. (RequestInfos): New type definition.
  13750. (execute): RequestInfo* -> RequestInfos
  13751. (getDownloadEngine): Removed.
  13752. * src/MetalinkResource.h
  13753. (MetalinkResourceHandle): New type definition.
  13754. (MetalinkResources): New type definition.
  13755. * src/MetalinkEntry.cc
  13756. (~MetalinkEntry): Removed the deletion of the elements of resources,
  13757. because the element is now of type MetalinkResourceHandle.
  13758. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  13759. (Supported): MetalinkResource* -> MetalinkResourceHandle
  13760. (dropUnsupportedResource): Removed the deletion of the elements of
  13761. resources because the element is now of type MetalinkResourceHandle.
  13762. * src/Xml2MetalinkProcessor.cc
  13763. (parseFile): Metalinker* -> MetalinkerHandle
  13764. MetalinkEntry* -> MetalinkEntryHandle
  13765. Removed try-catch block.
  13766. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  13767. MetalinkResource* -> MetalinkResourceHandle
  13768. Removed try-catch block.
  13769. (getResource): MetalinkResource* -> MetalinkResourceHandle
  13770. Free result by using xmlXPathFreeObject()
  13771. * src/Metalinker.cc
  13772. (~Metalinker): Removed the deletion of entries.
  13773. MetalinkEntry* -> MetalinkEntryHandle
  13774. (queryEntry): Add multiple <file> Metalink support.
  13775. * src/Metalinker.h
  13776. (MetalinkEntries): Removed.
  13777. (queryEntry): MetalinkEntry* -> MetalinkEntries
  13778. * src/MetalinkProcessor.h
  13779. (parseFile): Metalinker* -> MetalinkerHandle
  13780. Bug fixes:
  13781. * src/PeerChokeCommand.cc
  13782. (execute): cat01->cat02
  13783. * src/DefaultPieceStorage.cc
  13784. (DefaultPieceStorage): Added diskAdaptor(0)
  13785. * src/TrackerWatcherComand.cc:
  13786. (execute): Use btAnnounce->noMoreAnnounce()
  13787. to determin whether the function returns true or not.
  13788. * src/TrackerUpdateCommand.cc:
  13789. (execute): Use btAnnounce->noMoreAnnounce()
  13790. to determin whether the function returns true or not.
  13791. * src/FtpConnection.cc
  13792. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  13793. This is the fix of the busy loop bug.
  13794. * src/DownloadCommand.cc
  13795. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  13796. cached PeerStat.
  13797. The value of "name" entry in torrent file is now set by
  13798. *DiskAdaptor::setTopDir(...) methods.
  13799. * src/MultiDiskAdaptor.h
  13800. (topDir): New variable.
  13801. (setTopDir): New function.
  13802. (getTopDir): New function.
  13803. * src/MultiDiskAdaptor.cc
  13804. (getFilePath): Concat storDir, "/" and topDir.
  13805. (mkdir): Use getFilePath() to get the directory path for output.
  13806. * src/DefaultPieceStorage.cc
  13807. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  13808. CopyDiskAdaptor.
  13809. * src/CopyDiskAdaptor.h
  13810. (topDir): New variable.
  13811. (setTopDir): New function.
  13812. (getTopDir): New function.
  13813. * src/CopyDiskAdaptor.cc
  13814. (fixFilename): Updated.
  13815. Misc
  13816. * src/UrlRequestInfo.h
  13817. (e): Removed.
  13818. (UrlRequestInfo): Removed e.
  13819. (getDownloadEngine): Removed.
  13820. * src/UrlRequestInfo.cc
  13821. (handler): Rewritten.
  13822. (printUrls): New function.
  13823. (execute): Call printUrls().
  13824. * src/HandshakeMessage.cc
  13825. (check): peerinteraction->getBtContext() -> btContext
  13826. * src/PeerInteraction.h
  13827. (getBtContext): Removed.
  13828. * src/TorrentRequestInfo.h
  13829. (execute): RequestInfo* -> RequestInfos
  13830. (getDownloadEngine): Removed.
  13831. * src/TorrentRequestInfo.cc
  13832. (haltRequested): Removed.
  13833. (btHaltRequested): New variable.
  13834. (torrentHandler): haltRequested -> btHaltRequested
  13835. (execute): RequestInfo* -> RequestInfos
  13836. * src/TorrentConsoleDownloadEngine.cc
  13837. (afterEachIteration): haltRequested -> btHaltRequested.
  13838. * src/ConsoleDownloadEngine.h
  13839. (initStatistics): Added virtual.
  13840. (calculateStatistics): Added virtual.
  13841. (onEndOfRun): Added virtual.
  13842. (afterEachIteration): Added virtual.
  13843. * src/ConsoleDownloadEngine.cc
  13844. (haltRequested): New variable.
  13845. (afterEachIteration): New function.
  13846. * src/main.cc
  13847. (requestInfo): Removed.
  13848. * src/SegmentMan.cc
  13849. (findSlowerSegmentEntry): Refactored.
  13850. * Release 0.9.0
  13851. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13852. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  13853. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  13854. * src/TorrentMan.h: Removed.
  13855. * src/TorrentMan.cc: Removed.
  13856. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  13857. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  13858. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  13859. * src/PeerAbstractCommand.cc: Use btRuntime.
  13860. * src/BtContextAwareCommand.h: New class.
  13861. * src/FileEntry.h: Added accessor methods for following variables.
  13862. (path): Made private.
  13863. (length): Made private.
  13864. (offset): Made private.
  13865. (extracted): Made private.
  13866. (requested): Made private.
  13867. (FileEntries): New definition.
  13868. (FileEntryHandle): New definition.
  13869. * src/FileEntry.cc: New file.
  13870. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  13871. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  13872. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  13873. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  13874. * src/PieceStorage.h: New file.
  13875. * src/PeerInteractionCommand.h: Use btContext.
  13876. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  13877. btRuntime.
  13878. * src/DefaultBtProgressInfoFile.h: New file.
  13879. * src/DefaultBtProgressInfoFile.cc: New file.
  13880. * src/File.cc
  13881. (Util.h): New include.
  13882. (mkdirs): New function.
  13883. * src/MultiDiskAdaptor.h
  13884. (mkdir): New function.
  13885. * src/PeerListProcessor.h
  13886. (Peers): Removed.
  13887. * src/PeerInteraction.h
  13888. (torrentMan): Removed.
  13889. (btContext): New variable.
  13890. (peerStorage): New variable.
  13891. (pieceStorage): New variable.
  13892. (btAnnounce): New variable.
  13893. (getTorrentMan): Removed.
  13894. (getBtContext): New function.
  13895. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  13896. btAnnounce.
  13897. * src/HandshakeMessage.h
  13898. (TorrentMan.h): Removed.
  13899. * src/HandshakeMessage.cc: Use btContext.
  13900. * src/DefaultBtAnnounce.cc: New file.
  13901. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  13902. * src/DefaultPieceStorage.cc: New file.
  13903. * src/DefaultBtContext.h: New file.
  13904. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  13905. Use the accessor methods of FileEntry.
  13906. * src/CookieBox.cc: Updated to use Util::slice().
  13907. * src/PieceMessage.cc: Use btContext, pieceStorage.
  13908. * src/common.h (SharedHandle.h): New include.
  13909. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  13910. pieceStorage.
  13911. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  13912. * src/DiskAdaptor.h
  13913. (topDir): Removed.
  13914. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  13915. (setTopDir): Removed.
  13916. (getTopDir): Removed.
  13917. * src/BtContext.h: New file.
  13918. * src/DefaultPeerStorage.h: New file.
  13919. * src/PieceMessage.h (TorrentMan.h): Removed.
  13920. * src/RequestMessage.h (TorrentMan.h): Removed.
  13921. * src/TorrentDownloadEngine.h
  13922. (uploadLength): New variable.
  13923. (btContext): New variable.
  13924. (btRuntime): New variable.
  13925. (pieceStorage): New variable.
  13926. (peerStorage): New variable.
  13927. (btAnnounce): New variable.
  13928. (btProgressInfoFile): New variable.
  13929. (torrentMan): Removed.
  13930. (setBtContext): New function.
  13931. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  13932. peerStorage, btAnnounce, btProgressInfoFile.
  13933. * src/Piece.h
  13934. (toString): New function.
  13935. (Pieces): New type definition.
  13936. * src/Peer.h
  13937. (active): New variable.
  13938. (Peer): Added active.
  13939. (activate): Set active to true.
  13940. (deactivate): Set active to false.
  13941. (isActive): New function.
  13942. (Peers): New type definition.
  13943. * src/DirectDiskAdaptor.cc
  13944. (getFilePath): Use the accessor methods of FileEntry.
  13945. * src/TorrentConsoleDownloadEngine.h
  13946. (afterEachIteration): New function.
  13947. * src/TorrentConsoleDownloadEngine.cc
  13948. (haltRequested): New variable.
  13949. (sendStatistics): Use pieceStorage, btRuntime.
  13950. (afterEachIteration): New function.
  13951. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  13952. * src/Directry.h
  13953. (Directory): New function.
  13954. (DirectoryHandle): New type definition.
  13955. * src/BtProgressInfoFile.h: New file.
  13956. * src/RequestMessage.cc: Use pieceStorage.
  13957. * src/BtRuntime.h: New file.
  13958. * src/DefaultBtContext.cc: New file.
  13959. * src/BitfieldMan.h
  13960. (getCompletedLength): New function(private).
  13961. (getCompletedLength): New function.
  13962. (getFilteredCompletedLength): New function.
  13963. * src/BitfieldMan.h
  13964. (getCompletedLength): New function(private).
  13965. (getCompletedLength): New function.
  13966. (getFilteredCompletedLength): New function.
  13967. * src/MultiDiskAdaptor.cc
  13968. (mkdir): New function.
  13969. (openFile): Call mkdir().
  13970. (initAndOpenFile): Call mkdir().
  13971. * src/CancelMessage.h
  13972. (TorrentMan.h): Removed.
  13973. * src/RejectMessage.h
  13974. (TorrentMan.h): Removed.
  13975. * src/DownloadEngineFactory.cc
  13976. (DefaultPieceStorage.h): New include.
  13977. (DefaultPeerStorage.h): New include.
  13978. (DefaultBtAnnounce.h): New include.
  13979. (DefaultBtProgressInfoFile.h): New include.
  13980. (newTorrentConsoleEngine): Rewritten.
  13981. * src/ShareRatioSeedCriteria.h
  13982. (torrentMan): Removed.
  13983. (btContext): New variable.
  13984. (peerStorage): New variable.
  13985. (btRuntime): New variable.
  13986. (evaluate): Use btContext, btRuntime, peerStorage.
  13987. * src/AnnounceTier.h: New file.
  13988. * src/BtAnnounce.h: New file.
  13989. * src/BtRegistry.h: New file.
  13990. * src/PeerInitiateConnectionCommand.h: Added btContext.
  13991. * src/PeerConnection.h (TorrentMan.h): Removed.
  13992. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  13993. * src/Util.h
  13994. (slice): Added an argument.
  13995. * src/Util.cc
  13996. (slice): Added an argument to control whether trim is made or not.
  13997. * src/PeerStorage.h: New file.
  13998. * src/BtRegistry.cc: New file.
  13999. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  14000. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  14001. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  14002. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  14003. * src/TorrentRequestInfo.h
  14004. (e): Removed.
  14005. (showFileEntry): Added an argument.
  14006. (getDownloadEngine): Return 0.
  14007. * src/DefaultBtAnnounce.h: New file.
  14008. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  14009. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  14010. * src/PeerMessageFactory.h
  14011. (btContext): New variable.
  14012. (pieceStorage): New variable.
  14013. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  14014. btAnnounce.
  14015. * src/DiskAdaptor.cc
  14016. (DiskAdaptor): Removed topDir.
  14017. (~DiskAdaptor): Removed topDir.
  14018. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  14019. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  14020. * src/File.h (mkdirs): New function.
  14021. * src/DefaultPeerStorage): New file.
  14022. * src/DownloadEngineFactory.h
  14023. (newTorrentConsoleEngine): Use btContext.
  14024. * src/BtContextAwareCommand.cc: New file.
  14025. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  14026. * src/PeerMessage.h
  14027. (btContext): New variable.
  14028. (peerStorage): New variable.
  14029. (pieceStorage): New variable.
  14030. (setBtContext): New function.
  14031. * src/Directry.cc
  14032. (Directory): New function.
  14033. (createDir): Do nothing if name.size() == 0.
  14034. * src/AnnounceList.h
  14035. (AnnounceTier): Removed.
  14036. (AnnounceTiers): Removed.
  14037. * src/DefaultPieceStorage.h: New file.
  14038. * src/Piece.cc (toString): New function.
  14039. To fix typo:
  14040. * src/main.cc (showVersion): Fixed typo.
  14041. To fix compile warning:
  14042. * src/DelegatingPeerListProcessor.cc
  14043. (canHandle): Added "return false".
  14044. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14045. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  14046. make the process of announce request testable.
  14047. * src/TrackerWatcherCommand.h
  14048. (TimeA2.h): Removed.
  14049. (interval): Removed.
  14050. (checkPoint): Removed.
  14051. (createRequestCommand): Added an argument 'url'.
  14052. (TrackerWatherCommand): Removed interval.
  14053. (createCommand): New function.
  14054. * src/DownloadEngineFactory.cc
  14055. (newTorrentConsoleEngine): Updated according to the changes in
  14056. TrackerWatherCommand.
  14057. * src/TorrentMan.cc
  14058. (DelegatingPeerListProcessor.h): New includes.
  14059. (TorrentMan): Added the initialization of announceInterval.
  14060. (isStoppedAnnounceReady): New function.
  14061. (isCompletedAnnounceReady): New function.
  14062. (isDefaultAnnounceReady): New function.
  14063. (isAnnounceReady): New function.
  14064. (getAnnounceUrl): New function.
  14065. (announceStart): New function.
  14066. (announceFailure): New function.
  14067. (announceSuccess): New function.
  14068. (isAllAnnounceFailed): New function.
  14069. (resetAnnounce): New function.
  14070. (processAnnounceResponse): New function.
  14071. (needMorePeerConnection): New function.
  14072. (noMoreAnnounce): New function.
  14073. * src/TrackerUpdateCommand.h
  14074. (getTrackerResponse): int->size_t
  14075. * src/TorrentMan.h
  14076. (isStoppedAnnounceReady): New function.
  14077. (isCompletedAnnounceReady): New function.
  14078. (isDefaultAnnounceReady): New function.
  14079. (announceInterval): New variable.
  14080. (isAnnounceReady): New function.
  14081. (getAnnounceUrl): New function.
  14082. (announceStart): New function.
  14083. (announceFailure): New function.
  14084. (announceSuccess): New function.
  14085. (isAllAnnounceFailed): New function.
  14086. (resetAnnounce): New function.
  14087. (processAnnounceResponse): New function.
  14088. (needMorePeerConnection): New function.
  14089. (noMoreAnnounce): New function.
  14090. * src/TrackerWatcherCommand.cc
  14091. (TrackerWatherCommand): Removed interval and checkPoint.
  14092. (execute): Rewritten.
  14093. (createCommand): New function.
  14094. (createRequestCommand): Rewritten.
  14095. * src/TrackerUpdateCommand.cc
  14096. (MetaFileUtil.h): Removed.
  14097. (DelegatingPeerListProcessor.h): Removed.
  14098. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  14099. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14100. Request -> RequestHandle:
  14101. * src/HttpResponseCommand.h: Request->RequestHandle
  14102. * src/AbstractCommand.cc: Request->RequestHandle
  14103. * src/HttpDownloadCommand.cc: Request->RequestHandle
  14104. * src/HttpRequestCommand.cc: Request->RequestHandle
  14105. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  14106. * src/AbstractCommand.h: Request->RequestHandle
  14107. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  14108. * src/HttpResponseCommand.cc: Request->RequestHandle
  14109. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  14110. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  14111. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  14112. * src/HttpConnection.h: Request->RequestHandle
  14113. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  14114. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  14115. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14116. * src/DownloadCommand.h: Request->RequestHandle
  14117. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  14118. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  14119. * src/HttpRequestCommand.h: Request->RequestHandle
  14120. * src/FtpNegotiateCommand.h: Request->RequestHandle
  14121. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  14122. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  14123. * src/HttpDownloadCommand.h: Request->RequestHandle
  14124. * src/FtpConnection.cc: Request->RequestHandle
  14125. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  14126. * src/UrlRequestInfo.cc: Request->RequestHandle
  14127. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  14128. * src/HttpConnection.h: Request->RequestHandle
  14129. * src/DownloadCommand.cc: Request->RequestHandle
  14130. * src/FtpConnection.h: Request->RequestHandle
  14131. * src/FtpDowndloadCommand.h: Request->RequestHandle
  14132. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  14133. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  14134. * src/Request.h
  14135. (SharedHandle.h): New include.
  14136. (RequestHandle): New type definition.
  14137. (Requests): Redefined.
  14138. To add MULTITRACKER support:
  14139. * src/TrackerWatcherCommand.h
  14140. (createRequestCommand): New function.
  14141. * src/DownloadEngineFactory.cc
  14142. (newTorrentConsoleEngine): Removed req.
  14143. * src/prefs.h
  14144. (PREF_TRACKER_MAX_TRIES): New definition.
  14145. * src/TorrentMan.cc
  14146. (TorrentMan): Removed req. Added trackerNumTry.
  14147. (~TorrentMan): Removed req.
  14148. (setupInternal1): Added announceList.
  14149. * src/TorrentRequestInfo.cc
  14150. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  14151. announces is now specified by PREF_TRACKER_MAX_TRIES.
  14152. * src/main.cc
  14153. (main): Added PREF_TRACKER_MAX_TRIES.
  14154. * src/TorrentMan.h
  14155. (Request.h): Removed.
  14156. (AnnounceList.h): New include.
  14157. (trackerNumTry): New variable.
  14158. (req): Removed.
  14159. (announceList): New variable.
  14160. * src/TrackerWatcherCommand.cc
  14161. (execute): Rewritten.
  14162. (createRequestCommand): New function.
  14163. * src/TrackerUpdateCommand.cc
  14164. (execute): Updated with the use of AnnounceList.
  14165. * src/AnnounceList.cc: New class.
  14166. * src/AnnounceList.h: New class.
  14167. To fix typo:
  14168. * src/prefs.h
  14169. (PREF_MAX_TRIES): max_try->max_tries
  14170. To not to decode "+" as space in URL decode:
  14171. * src/Util.cc
  14172. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  14173. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14174. To add timeout to async name resolution:
  14175. * src/AbstractCommand.h
  14176. (nameResolveFinished): New function. This is not elegant way. It needs
  14177. to be more refined.
  14178. (nameResolverCheck): New variable.
  14179. * src/AbstractCommand.cc
  14180. (AbstractCommand): Added nameResolverCheck.
  14181. (execute): Added the check whether the name resolution has finished.
  14182. (setNameResolverCheck): Set nameResolverCheck to true.
  14183. (disableNameResolverCheck): Set nameResolverCheck to false.
  14184. (nameResolverFinished): New function.
  14185. * src/FtpInitiateConnectionCommand.h
  14186. (nameResolverFinished): New function.
  14187. * src/FtpInitiateConnectionCommand.cc
  14188. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14189. * src/HttpInitiateConnectionCommand.h
  14190. (nameResolverFinished): New function.
  14191. * src/HttpInitiateConnectionCommand.cc
  14192. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  14193. * src/prefs.h
  14194. (PREF_DNS_TIMEOUT): New definition.
  14195. * src/main.cc
  14196. (main): Added PREF_DNS_TIMEOUT.
  14197. To add the support for a non-compact response from a tracker:
  14198. * src/PeerListProcessor.h: New class.
  14199. * src/DefaultPeerListProcessor.h: New class.
  14200. * src/DefaultPeerListProcessor.cc: New class.
  14201. * src/CompactPeerListProcessor.h: New class.
  14202. * src/CompactPeerListProcessor.cc: New class.
  14203. * src/DelegatingPeerListProcessor.h: New class.
  14204. * src/DelegatingPeerListProcessor.cc: New class.
  14205. * src/TorrentMan.cc
  14206. (addPeer): New function(overload).
  14207. (addPeer): Delete unused peers only when new peer is added.
  14208. * src/TorrentMan.h
  14209. (PeerListProcessor.h): Included.
  14210. (Peers): Removed.
  14211. (addPeer): New function(overload).
  14212. * src/TrackerUpdateCommand.cc
  14213. (netinet/in.h): Removed.
  14214. (DelegatingPeerListProcessor.h): Included.
  14215. (execute): Updated to use DelegatingPeerListProcessor.
  14216. To fix the memory leak in TorrentMan::peers:
  14217. * src/PeerAbstractCommand.cc
  14218. (onAbort): Added peer->resetStatus().
  14219. * src/Peer.h
  14220. (resetStatus): Made public.
  14221. To improve the precision of the speed calculation:
  14222. * src/SpeedCalc.h
  14223. (nextInterval): New variable.
  14224. * src/SpeedCalc.cc
  14225. (reset): Added nextInterval.
  14226. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  14227. (changeSw): Set nextInterval to 15 seconds relative to the current
  14228. instant time.
  14229. * src/main.cc
  14230. (showVersion): Updated.
  14231. (showUsage): Updated.
  14232. * Release 0.8.1
  14233. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14234. * src/main.cc
  14235. (showUsage): Commented out --min-segment-size option.
  14236. (main): Commented out --min-segment-size option.
  14237. * Release 0.8.0
  14238. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14239. * src/*.{h,cc}:
  14240. Added an exception to the license which allows linking with OpenSSL.
  14241. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14242. * src/AbstractCommand.cc
  14243. (execute): Check whether the download has finished before checking
  14244. socket status.
  14245. Return true if peerStat->getStatus() == REQUEST_IDLE.
  14246. Do not exit even if no segment is available.
  14247. * src/prefs.h
  14248. (PREF_STARTUP_IDLE_TIME): New definition.
  14249. * src/PeerInteractionCommand.cc
  14250. (executeInternal): Removed max speed limit. Because it performs bad.
  14251. (receiveMessages): Added max speed limit. This was better than above,
  14252. but still a little bit to be desired. Sometimes the download speed
  14253. became much faster than I specified.
  14254. * src/SpeedCalc.h
  14255. (start): New variable.
  14256. (accumulatedLength): New variable.
  14257. (getAvgSpeed): New function.
  14258. * src/SpeedCalc.cc
  14259. (reset): Added start, accumulatedLength.
  14260. (update): Added calculation of an average speed.
  14261. (getAvgSpeed): New function.
  14262. * src/DownloadCommand.h
  14263. (sw): Removed.
  14264. * src/main.cc
  14265. (main): Added PREF_STARTUP_IDLE_TIME.
  14266. * src/PeerStat.h
  14267. (STATUS): Added REQUEST_IDLE.
  14268. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  14269. (getAvgDownloadSpeed): New function
  14270. (requestIdle): New function.
  14271. * src/SegmentMan.h
  14272. (SegmentEntryHandle): New type definition.
  14273. (SegmentEntries): Now holds SegmentEntryHandle.
  14274. (findSlowerSegmentEntry): New funtion.
  14275. * src/SegmentMan.cc
  14276. (save): Updated according to the changes in SegmentEntries.
  14277. (read): Updated according to the changes in SegmentEntries.
  14278. (FindSegmentEntryByIndex): Updated according to the changes in
  14279. SegmentEntries.
  14280. (FindSegmentEntryByCuid): Updated according to the changes in
  14281. SegmentEntries.
  14282. (checkoutSegment): Updated according to the changes in SegmentEntries.
  14283. (onNullBitfield): Updated according to the changes in SegmentEntries.
  14284. Renamed uitr as itr.
  14285. (findSlowerSegmentEntry): New function.
  14286. (getSegment): Updated according to the changes in SegmentEntries.
  14287. Added the feature that cancels the segment with slow server and fast
  14288. one takes it over.
  14289. (cancelSegment): Updated according to the changes in SegmentEntries.
  14290. (getDownloadLength): Updated according to the changes in
  14291. SegmentEntries.
  14292. (init): Assigned 0 to bitfield after deleting it.
  14293. * src/DownloadCommand.cc
  14294. (STARTUP_IDLE_TIME): Removed.
  14295. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  14296. * src/PeerChokeCommand.cc
  14297. (optUnchokingPeer): Updated according to the changes in Peer.
  14298. (ResetDelta): Removed.
  14299. (UploadFaster): Updated according to the changes in Peer.
  14300. (DownloadFaster): Updated according to the changes in Peer.
  14301. (execute): I clarify the meaning of "upload" and "download" here.
  14302. "upload" means the transfer from localhost to remote host.
  14303. "download" means the transfer from remote host to localhost.
  14304. Based on this rule, I swapped orderByUploadRate and
  14305. orderByDownloadRate.
  14306. * src/PeerInteractionCommand.cc
  14307. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  14308. (executeInternal): Removed the argument of
  14309. peerInteraction->sendMessages().
  14310. (receiveMessages): Rewritten download speed limit.
  14311. (sendKeepAlive): Removed peerInteraction->sendMessages().
  14312. * src/HttpResponseCommand.cc
  14313. (handleDefaultEncoding): If file size is unknown in torrent request,
  14314. do not call segmentMan->initBitfield() here.
  14315. Disabled persistent connection feature in torrent request.
  14316. * src/UrlRequestInfo.h
  14317. (UrlRequestInfo): Removed const qualifier from option.
  14318. * src/TorrentMan.h
  14319. (TransferStat): New class.
  14320. (deltaDownloadLength): Removed.
  14321. (deltaUploadLength): Removed.
  14322. (addDeltaDownloadLength): Removed.
  14323. (getDeltaDownloadLength): Removed.
  14324. (resetDeltaDownloadLength): Removed.
  14325. (addDeltaUploadLength): Removed.
  14326. (getDeltaUploadLength): Removed.
  14327. (resetDeltaUploadLength): Removed.
  14328. (addActivePeer): Added peer->activate().
  14329. (deleteActivePeer): Added peer->deactivate().
  14330. (calculateStat): New function.
  14331. * src/TorrentMan.cc
  14332. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  14333. (calculateStat): New function.
  14334. * src/PeerInteraction.h
  14335. (uploadLimit): Removed.
  14336. (option): New variable.
  14337. (setUploadLimit): Removed.
  14338. (getUploadSpeed): Removed.
  14339. (sendMessages): Removed the argument "currentUploadSpeed".
  14340. * src/PeerInteraction.cc
  14341. (prefs.h): Included.
  14342. (PeerInteraction): Removed uploadLimit. Added option.
  14343. (sendMessages): Rewritten upload speed limit.
  14344. (sendHandshake): Removed the argument from sendMessages().
  14345. (sendBitfield): Removed the argument from sendMessages().
  14346. * src/PeerAbstractCommand.cc
  14347. (execute): Commented out the portion of upload limit.
  14348. (onAbort): Removed peer->resetStatus().
  14349. * src/TorrentRequestInfo.cc
  14350. (timeoutSpecified): Declared extern.
  14351. (execute): Set timeout to 180 if timeout is not specified by.
  14352. command-line.
  14353. * src/PieceMessage.cc
  14354. (receivedAction): Added peer->updateDownloadLength().
  14355. Removed peer->addPeerUpload().
  14356. Removed torrentMan->addDeltaDownloadLength().
  14357. (send): Added peer->updateUploadLength().
  14358. Removed peer->addPeerDownload().
  14359. Removed torrentMan->addDeltaUploadLength().
  14360. * src/main.cc
  14361. (timeoutSpecified): New variable.
  14362. (main): Set timeoutSpecified to false.
  14363. If the command-line option "--upload-limit" is specified, then
  14364. timeoutSpecified is set to true. This option will remain in the next
  14365. release, but be deprecated in the future release.
  14366. * src/TorrentRequestInfo.h
  14367. (TorrentRequestInfo): Removed const qualifier from op.
  14368. * src/PeerStat.h
  14369. (uploadSpeed): New variable.
  14370. (PeerStat): Added default value to cuid.
  14371. (calculateUploadSpeed): New function.
  14372. (updateUploadLength): New function.
  14373. (getMaxUploadSpeed): New function.
  14374. (getAvgUploadSpeed): New function.
  14375. (reset): Added uploadSpeed. Set status to IDLE.
  14376. * src/TorrentDownloadEngine.h
  14377. (cp): Declared as Time.
  14378. (sessionDownloadLengthArray): Removed.
  14379. (sessionUploadLengthArray): Removed.
  14380. (currentCp): Removed.
  14381. (lastCalcStat): New variable
  14382. (lastElapsed): Removed.
  14383. (sessionDownloadLength): Removed.
  14384. (calculateStat): New function.
  14385. * src/TorrentDownloadEngine.cc
  14386. (initStatistics): Removed lastElapsed, cp[],
  14387. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  14388. currentCp, sessionDownloadLength.
  14389. Added cp.reset() and lastCalcStat.reset().
  14390. (calculateSpeed): Changed the name of the argument.
  14391. (calculateStatistics): Rewritten.
  14392. (calculateStat): New function.
  14393. * src/Peer.h
  14394. (PeerStat.h): Included.
  14395. (peerUpload): Removed.
  14396. (peerDownload): Removed.
  14397. (peerStat): New variable.
  14398. (sessionUploadLength): New variable.
  14399. (sessionDownloadLength): New variable.
  14400. (deltaUpload): Removed.
  14401. (deltaDownload): Removed.
  14402. (resetStatus): Made private.
  14403. (Peer): Added sessionUploadLength, sessionDownloadLength.
  14404. Removed peerUpload, peerDownload.
  14405. (updateUploadLength): New function.
  14406. (addDeltaUpload): Removed.
  14407. (updateDownloadLength): New function.
  14408. (resetDeltaUpload): Removed.
  14409. (getDeltaUpload): Removed.
  14410. (addDeltaDownload): Removed.
  14411. (calculateUploadSpeed): New function.
  14412. (resetDeltaDownload): Removed.
  14413. (getDeltaDownload): Removed.
  14414. (calculateDownloadSpeed): New function.
  14415. (getSessionUploadLength): New function.
  14416. (getSessionDownloadLength): New function.
  14417. (activate): New function.
  14418. (deactivate): New function.
  14419. (addPeerUpload): Removed.
  14420. (setPeerUpload): Removed.
  14421. (getPeerUpload): Removed.
  14422. (addPeerDownload): Removed.
  14423. (setPeerDownload): Removed.
  14424. (getPeerDownload): Removed.
  14425. * src/Peer.cc
  14426. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  14427. * src/MetalinkRequestInfo.h
  14428. (MetalinkRequestInfo): Removed const qualifier from op.
  14429. * src/RequestInfo.h
  14430. (op): Removed const qualifier.
  14431. (RequestInfo): Removed const qualifier from op.
  14432. * src/prefs.h
  14433. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  14434. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  14435. * src/PeerInteractionCommand.cc
  14436. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  14437. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  14438. * src/PeerInteraction.cc
  14439. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  14440. * src/main.cc
  14441. (showUsage): Updated the description of "--lowest-speed-limit" option.
  14442. Added the description of "--max-download-limit" option.
  14443. Removed the description of "--upload-limit" option.
  14444. Added the description of "--max-upload-limit" option.
  14445. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  14446. Added "--max-download-limit" option and "--max-upload-limit" option.
  14447. Added the warning message if "--upload-limit" option is used.
  14448. * src/DownloadCommand.cc
  14449. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  14450. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14451. To rewrite segment download mechanism for HTTP/FTP download.
  14452. Use BitfieldMan to manage segment download.
  14453. * src/HttpResponseCommand.h
  14454. (executeInternal): Pass the reference of segment.
  14455. * src/AbstractCommand.cc
  14456. (prepareForRetry): Call segmentMan->cancelSegment here.
  14457. (onAbort): Call segmentMan->cancelSegment here.
  14458. * src/HttpDownloadCommand.cc
  14459. (prepareForNextSegment): New function.
  14460. * src/DownloadEngineFactory.cc
  14461. (newConsoleEngine): Removed splitter.
  14462. (newTorrentConsoleEngine): Removed splitter.
  14463. * src/Request.h
  14464. (segment): Renamed from seg.
  14465. * src/FtpInitiateConnectionCommand.h
  14466. (executeInternal): Pass the reference of segment.
  14467. * src/AbstractCommand.h
  14468. (executeInternal): Pass the reference of segment.
  14469. * src/pref.h
  14470. (PREF_SEGMENT_SIZE): New definition.
  14471. * src/HttpProxyRequestCommand.h
  14472. (executeInternal): Pass the reference of segment.
  14473. * src/HttpResponseCommand.cc
  14474. (checkResponse): Allowed status 206 when a request range starts 0.
  14475. (handleDefaultEncoding): Rewritten the code related to Segment.
  14476. (handleOtherEncoding): Rewritten the code related to Segment.
  14477. * src/SegmentMan.h
  14478. (SegmentEntry): New class.
  14479. (SegmentEntries): New type definition.
  14480. (bitfield): New variable.
  14481. (usedSegmentEntries): New variable.
  14482. (onNullBitfield): New function.
  14483. (checkoutSegment): New function.
  14484. (segments): Removed.
  14485. (splitter): Removed.
  14486. (unregisterId): Removed.
  14487. (getSegment): New function(overload)
  14488. (getDownloadedSize): Removed.
  14489. (cancelSegment): New function.
  14490. (completeSegment): New function.
  14491. (initBitfield): New function.
  14492. (hasSegment): New function.
  14493. (getDownloadLength): New function.
  14494. * src/BitfieldMan.h
  14495. (getStartIndex): New function.
  14496. (getEndIndex): New function.
  14497. (getMissingUnusedIndex): New function(overload).
  14498. (getSparseMissingUnusedIndex): New function.
  14499. * src/BitfieldMan.cc
  14500. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  14501. (getMissingUnusedIndex): New function(overload).
  14502. (Range): New class.
  14503. (getStartIndex): New function.
  14504. (getEndIndex): New function.
  14505. (getSparseMissingUnusedIndex): New function.
  14506. (isBitSetInternal): Return false if the given index is less than 0.
  14507. * src/HttpInitiateConnectionCommand.h
  14508. (executeInternal): Pass the reference of segment.
  14509. * src/FtpNegotiateCommand.h
  14510. (executeInternal): Pass the reference of segment.
  14511. * src/FtpNegotiateCommand.cc
  14512. (recvSize): Initialize bitfield here.
  14513. * src/FtpTunnelResponseCommand.h
  14514. (executeInternal): Pass the reference of segment.
  14515. * src/HttpConnection.cc
  14516. (createRequest): Rewritten range header processing.
  14517. * src/DownloadCommand.h
  14518. (executeInternal): Pass the reference of segment.
  14519. (prepareForRetry): Removed.
  14520. (prepareForNextSegment): Added an argument segment. Made it a virtual
  14521. function.
  14522. * src/main.cc
  14523. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  14524. * src/SegmentMan.cc
  14525. (SegmentMan): Added bitfield. Removed splitter.
  14526. (~SegmentMan): Added bitfield. Removed splitter.
  14527. (unregisterId): Removed.
  14528. (getSegment): Rewritten.
  14529. (updateSegment): Rewritten.
  14530. (save): Rewritten.
  14531. (read): Rewritten.
  14532. (finished): Rewritten.
  14533. (getDownloadedSize): Removed.
  14534. (initBitfield): New function.
  14535. (FindSegmentEntryByIndex): New function object.
  14536. (FindSegmentEntryByCuid): New function object.
  14537. (checkoutSegment): New function.
  14538. (onNullBitfield): New function.
  14539. (getSegment): New function(overload).
  14540. (CancelSegment): New function object.
  14541. (cancelSegment): New function.
  14542. (completeSegment): New function.
  14543. (hasSegment): New function.
  14544. (getDownloadLength): New function.
  14545. * src/FtpInitiateConnectionCommand.cc
  14546. (executeInternal): Load .aria2 file after hostname resolution finishes.
  14547. * src/Segment.h: Rewritten.
  14548. * src/Segment.cc (operator<<): New function.
  14549. * src/HttpDownloadCommand.h
  14550. (prepareForNextSegment): New function.
  14551. * src/Request.cc
  14552. (resetUrl): Made segment null.
  14553. * src/DownloadEngine.cc
  14554. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  14555. * src/HttpProxyRequestCommand.h
  14556. (executeInternal): Pass the reference of segment.
  14557. * src/DownloadCommand.cc
  14558. (executeInternal): Rewritten the code related to Segment.
  14559. (prepareForRetry): Removed.
  14560. (prepareForNextSegment): Rewritten.
  14561. * src/FtpTunnelResponseCommand.h
  14562. (executeInternal): Pass the reference of segment.
  14563. To add HTTP 1.1 persistent connection support(experimental)
  14564. * src/HttpRequestCommand.cc
  14565. (executeInternal): Disable keep alive if it is disabled by
  14566. configuration.
  14567. * src/Request.h
  14568. (keepAlive): New variable.
  14569. (isKeepAlive): New function.
  14570. (setKeepAlive): New function.
  14571. * src/pref.h
  14572. (PREF_HTTP_KEEP_ALIVE): New definition.
  14573. * src/HttpResponseCommand.cc
  14574. (executeInternal): Check the remote server supports keep alive.
  14575. * src/HttpConnection.cc
  14576. (createRequest): Send "Connection: close" only if keep alive is
  14577. disabled.
  14578. * src/main.cc
  14579. (main):
  14580. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  14581. To add max download speed limit:
  14582. * src/pref.h
  14583. (PREF_MAX_SPEED_LIMIT): New definition.
  14584. * src/PeerInteractionCommand.cc
  14585. (executeInternal): Added max download speed limit. Not tested yet.
  14586. * src/SegmentMan.h
  14587. (PeerStats): New type definition.
  14588. (peerStats): New variable.
  14589. (registerPeerStat): New function.
  14590. (FindPeerStat): New function object.
  14591. (getPeerStat): New function.
  14592. (calculateDownloadSpeed): New function.
  14593. * src/SpeedCalc.h: New class.
  14594. * src/SpeedCalc.cc: New class.
  14595. * src/main.cc
  14596. (main):
  14597. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  14598. download speed is not restricted).
  14599. * src/PeerStat.h: New class.
  14600. * src/SegmentMan.cc
  14601. (registerPeerStat): New function.
  14602. (calculateDownloadSpeed): New function.
  14603. * src/DownloadCommand.cc
  14604. (STARTUP_IDLE_TIME): New definition.
  14605. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  14606. downloadStart.
  14607. (~DownloadCommand): Call peerStat->downloadStop.
  14608. (executeInternal): Added download speed limitter. Rewritten lowest
  14609. speed limitter.
  14610. * src/HttpConnection.cc
  14611. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  14612. * src/AbstractCommand.cc
  14613. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  14614. Added hostname to the error message.
  14615. * src/ConsoleDownloadEngine.cc
  14616. (calculateStatistics): Initialize psize with dlSize.
  14617. * src/PieceMessage.cc
  14618. (receivedAction): Do not call peerInteraction->abortPiece here.
  14619. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  14620. * src/BitfieldMan.h
  14621. (clearAllUseBit): New function.
  14622. (setAllUseBit): New function.
  14623. * src/BitfieldMan.cc
  14624. (clearAllBit): Do not clear useBitfield here.
  14625. (clearAllUseBit): New function.
  14626. (setAllUseBit): New function.
  14627. * src/Piece.cc
  14628. (clearAllBlock): Call bitfield->clearAllUseBit().
  14629. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14630. To make filename URL-decoded:
  14631. * src/HttpResponseCommand.h: Updated doc.
  14632. * src/HttpResponseCommand.cc
  14633. (determinFilename): Made filename URL-decoded.
  14634. * src/FtpInitiateConnectionCommand.cc
  14635. (executeInternal): Made filename URL-decoded.
  14636. * src/Util.h (urldecode): New function.
  14637. * src/Util.cc (urldecode): New function.
  14638. To fix a bug that caused assertion failure in ares_strerror:
  14639. * src/NameResolver.cc (callback): Fixed the bug.
  14640. * Release 0.7.3
  14641. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14642. To add --seed-time and --seed-ratio command-line option:
  14643. * src/Option.h (getAsDouble): New function.
  14644. * src/Option.cc (getAsDouble): New function.
  14645. * src/SeedCheckCommand.h: New class.
  14646. * src/SeedCheckCommand.cc: New class.
  14647. * src/DownloadEngineFactory.cc
  14648. (SeedCheckCommand.h): Included.
  14649. (UnionSeedCriteria.h): Included.
  14650. (TimeSeedCriteria.h): Included.
  14651. (ShareRatioSeedCriteria.h): Included.
  14652. (newTorrentConsoleEngine): Added the processing of seed option.
  14653. * src/SeedCriteria.h: New class.
  14654. * src/ShareRatioSeedCriteria.h: New class.
  14655. * src/TimeSeedCriteria.h: New class.
  14656. * src/UnionSeedCriteria.h: New class.
  14657. * src/prefs.h
  14658. (PREF_SEED_TIME): New definition.
  14659. (PREF_SEED_RATIO): New definition.
  14660. * src/main.cc
  14661. (showUsage): Added --seed-time and --seed-ratio option.
  14662. (main): Added --seed-time and --seed-ratio option.
  14663. Made default log file name "/dev/null".
  14664. * src/SharedHandle.h
  14665. (SharedHandle): Copy constructor. Made it assignable from the
  14666. SharedHandle of the subclasses.
  14667. (operator=): Made it assignable from the SharedHandle of the
  14668. subclasses.
  14669. (getRefCount): New function.
  14670. To add notice log level and the switch to write log to stdout. This
  14671. switch is configurable per log level.
  14672. * src/Logger.h
  14673. (notice): New function.
  14674. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  14675. constant.
  14676. * src/LogFactory.cc
  14677. (getInstance): The use of NullLogger was removed. A log message with
  14678. notice log level was made written to stdout along with log file.
  14679. * src/NullLogger.h
  14680. (notice): New function.
  14681. * src/SimpleLogger.h
  14682. (writeHeader): Added the 'file' argument.
  14683. (writeLog): Added the 'file' argument.
  14684. (writeFile): New function.
  14685. (stdoutField): New variable.
  14686. (SimpleLogger): Removed the default constructor.
  14687. (SimpleLogger): Made the default value of logfile 0.
  14688. (debug): Added 'virtual' keyword.
  14689. (info): Added 'virtual' keyword.
  14690. (warn): Added 'virtual' keyword.
  14691. (error): Added 'virtual' keyword.
  14692. (notice): New function.
  14693. (setStdout): New function.
  14694. * src/SimpleLogger.cc
  14695. (WRITE_LOG): Replaced writeLog with writeFile.
  14696. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  14697. (SimpleLogger): Removed the default constructor.
  14698. (setStdout): New function.
  14699. (writeLog): Added the handling of NOTICE log level.
  14700. (writeFile): New function.
  14701. (notice): New function.
  14702. * src/TorrentMan.h: Updated doc.
  14703. * src/BitfieldMan.h: Updated doc.
  14704. * src/TrackerWatcherCommand.cc
  14705. (execute): Return true if error occurred in the request to the tracker
  14706. and halt is requested.
  14707. * src/TrackerUpdateCommand.cc
  14708. (execute): Return true if error occurred in the request to the tracker
  14709. and halt is requested.
  14710. To call onDownloadComplete from TorrentMan::completePiece(), not from
  14711. DownloadEngine:
  14712. * src/TorrentConsoleDownloadEngine.h
  14713. (onSelectiveDownloadingCompletes): Removed.
  14714. * src/TorrentConsoleDownloadEngine.cc
  14715. (onSelectiveDownloadingCompletes): Removed.
  14716. * src/TorrentDownloadEngine.h
  14717. (onEndOfRun): Added 'virtual' keyword.
  14718. (afterEachIteration): Removed.
  14719. (onSelectiveDownloadingCompletes): Removed.
  14720. * src/TorrentDownloadEngine.cc
  14721. (onEndOfRun): Removed filenameFixed.
  14722. (afterEachIteration): Removed.
  14723. * src/TorrentMan.cc
  14724. (completePiece): Call onDownloadComplete here.
  14725. (onDownloadComplete): Added 2 log messages.
  14726. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14727. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  14728. * src/NameResolver.h: Added the prototype declaration of callback().
  14729. To support c-ares library:
  14730. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14731. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14732. * src/FtpInitiateConnectionCommand.h:
  14733. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14734. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14735. * src/HttpInitiateConnectionCommand.h:
  14736. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14737. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  14738. Added thes upport of c-ares's ares_strerror(the idea came from patch
  14739. #1542285 by tizianomueller)
  14740. * src/HttpInitiateConnectionCommand.cc:
  14741. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14742. * src/FtpInitiateConnectionCommand.cc:
  14743. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14744. * src/DownloadEngine.h:
  14745. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14746. * src/DownloadEngine.cc:
  14747. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  14748. To fix the bug that causes compilation failure with metalink-support
  14749. disabled(bug#1543587):
  14750. * src/main.cc: Fixed with the patch by tizianomueller.
  14751. * Release 0.7.2
  14752. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14753. * src/main.cc
  14754. (main): Added a message to inform users that aria2 is starting to
  14755. verify checksum.
  14756. * src/RequestInfo.cc
  14757. (printDownloadAbortMessage): Added a message to inform users that
  14758. transfer can be resumed.
  14759. * src/FeatureConfig.cc
  14760. (FEATURE_ASYNC_DNS): New definition.
  14761. (FeatureConfig): Added aysnc DNS entry.
  14762. To replace CommandUuid with Command* in SocketEntry and
  14763. NameResolverEntry:
  14764. * src/DownloadEngine.h
  14765. (CommandUuids): Removed.
  14766. (SocketEntry::commandUuid): Removed.
  14767. (SocketEntry::command): New variable.
  14768. (SocketEntry::SocketEntry): Updated.
  14769. (SocketEntry::operator==): Updated.
  14770. (NameResolverEntry::commandUuid): Removed.
  14771. (NameResolverEntry::command): New variable.
  14772. (NameResolverEntry::NameResolverEntry): Updated.
  14773. (NameResolverEntry::operator==): Updated.
  14774. (waitData): Changed the argument type.
  14775. (addSocketForReadCheck): Changed the argument type.
  14776. (deleteSocketForReadCheck): Changed the argument type.
  14777. (addSocketForWriteCheck): Changed the argument type.
  14778. (deleteSocketForWriteCheck): Changed the argument type.
  14779. (addNameResolverCheck): Changed the argument type.
  14780. (deleteNameResolverCheck): Changed the argument type.
  14781. * src/DownloadEngine.cc
  14782. (FindCommand): Removed.
  14783. (run): Removed activeUuid. Added activeCommands instead.
  14784. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  14785. (AccumulateActiveCommand): New function object.
  14786. (waitData): Use AccumulateActiveCommand.
  14787. (addSocketForReadCheck): Use Command instead of CommandUuid.
  14788. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  14789. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  14790. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  14791. (addNameResolverCheck): Use Command instead of CommandUuid.
  14792. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  14793. * src/AbstractCommand.cc
  14794. (disableReadCheckSocket): Updated according to the changes in
  14795. DownloadEngine.
  14796. (setReadCheckSocket): Updated according to the changes in
  14797. DownloadEngine.
  14798. (disableWriteCheckSocket): Updated according to the changes in
  14799. DownloadEngine.
  14800. (setWriteCheckSocket): Updated according to the changes in
  14801. DownloadEngine.
  14802. (setNameResolverCheck): Updated according to the changes in
  14803. DownloadEngine.
  14804. (disableNameResolverCheck): Updated according to the changes in
  14805. DownloadEngine.
  14806. * src/AbstractCommand.cc
  14807. (disableReadCheckSocket): Updated according to the changes in
  14808. DownloadEngine.
  14809. (setReadCheckSocket): Updated according to the changes in
  14810. DownloadEngine.
  14811. (disableWriteCheckSocket): Updated according to the changes in
  14812. DownloadEngine.
  14813. (setWriteCheckSocket): Updated according to the changes in
  14814. DownloadEngine.
  14815. * release 0.7.1
  14816. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14817. To handle the case where some BitTorrent tracker requires all letters
  14818. except for [A-Za-z0-9] is URL encoded.
  14819. * src/Util.h
  14820. (torrentUrlencode): New function.
  14821. * src/Util.cc
  14822. (ctype.h): Included.
  14823. (torrentUrlencode): New function.
  14824. * src/TrackerWatcherCommand.cc
  14825. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  14826. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14827. To add asynchronous DNS support(libares):
  14828. * src/AbstractCommand.h
  14829. (setNameResolverCheck): New function.
  14830. (disableNameResolverCheck): New function
  14831. (resolveHostname): New function.
  14832. * src/AbstractCommand.cc
  14833. (setNameResolverCheck): New function.
  14834. (disableNameResolverCheck): New function
  14835. (resolveHostname): New function.
  14836. * src/FtpInitiateConnectionCommand.h
  14837. (nameResolver): New function.
  14838. * src/FtpInitiateConnectionCommand.cc
  14839. (Util.h): Included.
  14840. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  14841. disableWriteCheckSocket.
  14842. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  14843. (executeInternal): Added async DNS support.
  14844. * src/HttpInitiateConnectionCommand.h
  14845. (nameResolver): New function.
  14846. * src/HttpInitiateConnectionCommand.cc
  14847. (DlRetryEx.h): Included.
  14848. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  14849. disableWriteCheckSocket.
  14850. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  14851. (executeInternal): Added async DNS support.
  14852. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  14853. by extern "C" declaration.
  14854. * src/NameResolver.cc: New class.
  14855. * src/Util.h:
  14856. (isNumberAndDotsNotation): New function
  14857. * src/Util.cc
  14858. (isNumberAndDotsNotation): New function.
  14859. * src/DownloadEngine.h
  14860. (NameResolver.h): Included.
  14861. (NameResolverEntry): New class.
  14862. (NameResolverEntries): New type definition.
  14863. (addNameResolverCheck): New function.
  14864. (deleteNameResolverCheck): New function.
  14865. * src/DownloadEngine.cc
  14866. (run): Initialize cp with 0.
  14867. (SetDescriptor::operator()): Added for NameResolverEntry.
  14868. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  14869. (waitData): Check nameResolver entries.
  14870. (updateFdSet): Update fds in nameResolver entries.
  14871. (addNameResolverCheck): New function.
  14872. (deleteNameResolverCheck): new function.
  14873. * src/PeerInteractionCommand.cc
  14874. (executeInternal): Fixed wrong socket handling.
  14875. * src/main.cc
  14876. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  14877. * src/Util.cc
  14878. (fileChecksum): Removed the call to ctx.digestReset().
  14879. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14880. * po/ru.po: Azamat sent me Russian translation.
  14881. * src/FtpNegotiateCommand.cc
  14882. (recvGreeting): Call disableWriteCheckSocket just after
  14883. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  14884. (recvRetr): Recognized status code 125 as a acceptable response code.
  14885. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  14886. case-insesitive filesystem(BUG#1531057).
  14887. * src/Time.h: Renamed as TimeA2.h.
  14888. * src/Time.cc: Renamed as TimeA2.cc.
  14889. * src/TimeA2.h: New class.
  14890. * src/TimeA2.cc: New class.
  14891. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  14892. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  14893. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  14894. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  14895. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  14896. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14897. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  14898. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  14899. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  14900. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  14901. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  14902. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  14903. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  14904. * release 0.7.0
  14905. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14906. * src/PeerChokeCommand.h
  14907. (PeerChokeCommand): Rearranged the arguments.
  14908. * src/PeerChokeCommand.cc
  14909. (PeerChokeCommand): Rearranged the arguments.
  14910. * src/MetalinkEntry.h
  14911. (Checksum.h): Included.
  14912. (md5): Removed.
  14913. (sha1): Removed.
  14914. (checksum): New variable.
  14915. (operator=): Updated.
  14916. (check): Removed.
  14917. * src/prefs.h
  14918. (PREF_LOWEST_SPEED_LIMIT): New definition.
  14919. (PREF_FOLLOW_TORRENT): New definition.
  14920. (PREF_SELECT_FILE): New definition.
  14921. (PREF_FOLLOW_METALINK): New definition.
  14922. * src/MetalinkResource.h
  14923. (TYPE_HTTPS): Added to enum TYPE.
  14924. * src/TorrentMan.cc
  14925. (~TorrentMan): Rewritten.
  14926. * src/MultiDiskWriter.cc
  14927. (MultiDiskAdaptor): Updated according to the changes in
  14928. MessageDigestContext.
  14929. (~MultiDiskAdaptor): Updated according to the changes in
  14930. MessageDigestContext.
  14931. (hashUpdate): Updated according to the changes in MessageDigestContext.
  14932. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14933. * src/Util.h
  14934. (fileChecksum): Updated according to the changes in
  14935. MessageDigestContext.
  14936. * src/Util.cc
  14937. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14938. (fileChecksum): Updated according to the changes in
  14939. MessageDigestContext.
  14940. * src/messageDigest.h: Rewritten.
  14941. * src/MetalinkEntry.cc
  14942. (check): Removed.
  14943. (Supported): Updated.
  14944. (dropUnsupportedResource): Fixed a memory leak.
  14945. * src/ShaVisitor.cc
  14946. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  14947. (~ShaVisitor): Updated according to the changes in
  14948. MessageDigestContext.
  14949. (visit): Updated according to the changes in MessageDigestContext.
  14950. * src/main.cc
  14951. (main): Rewritten the portion of download loop. --lowest-speed-limit
  14952. command-line option added.
  14953. * src/DownloadEngine.h
  14954. (SocketEntry): New class.
  14955. (SocketEntries): New definition.
  14956. (PairFind): Removed.
  14957. (SockCmdMap): Removed.
  14958. * src/DownloadEngine.cc
  14959. (DownloadEngine): Rewritten.
  14960. (~DownloadEngine): Rewritten.
  14961. (run): Renamed activeCommandUuids as activeUuids.
  14962. (SetDescriptor): Rewritten.
  14963. (AccumulateActiveCommandUuid): Removed.
  14964. (AccumulateActiveUuid): New function object.
  14965. (waitData): Rewritten.
  14966. (updateFdSet): Rewritten.
  14967. (addSocket): Rewritten.
  14968. (deleteSocket): Rewritten.
  14969. (addSocketForReadCheck): Rewritten.
  14970. (deleteSocketForReadCheck): Rewritten.
  14971. (addSocketForWriteCheck): Rewritten.
  14972. (deleteSocketForWriteCheck): Rewritten.
  14973. * src/Xml2MetalinkProcessor.cc
  14974. (getEntry): Rewritten the portion of MetalinkEntry creation.
  14975. * src/DownloadCommand.cc
  14976. (executeInternal): Added the check routine for lowest speed limit.
  14977. * src/AbstractDiskWriter.cc
  14978. (AbstractDiskWriter): Updated according to the changes in
  14979. MessageDigestContext.
  14980. (~AbstractDiskWriter): Updated according to the changes in
  14981. MessageDigestContext.
  14982. (sha1Sum): Updated according to the changes in MessageDigestContext.
  14983. * src/RequestInfo.h: New class.
  14984. * src/UrlRequestInfo.h: New class.
  14985. * src/UrlRequestInfo.cc: New class.
  14986. * src/TorrentRequestInfo.h: New class.
  14987. * src/TorrentRequestInfo.cc: New class.
  14988. * src/MetalinkRequestInfo.h: New class.
  14989. * src/MetalinkRequestInfo.cc: New class.
  14990. * src/Checksum.h: New class.
  14991. * src/DownloadEngineFactory.h: New class.
  14992. * src/DownloadEngineFactory.cc: New class.
  14993. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14994. * src/Option.h
  14995. (getAsBool): New function.
  14996. * src/Option.cc
  14997. (prefs.h): Included.
  14998. (defined): 0-length value is now recognized as undefined.
  14999. (getAsInt): Rewritten.
  15000. (getAsLLInt): Rewritten.
  15001. (getAsBool): New function.
  15002. * src/FeatureConfig.h: Rewritten.
  15003. * src/FeatureConfig.cc: Rewritten.
  15004. * src/prefs.h
  15005. (PREF_STDOUT_LOG): New definition.
  15006. (PREF_LOG): New definition.
  15007. (PREF_DIR): New definition.
  15008. (PREF_OUT): New definition.
  15009. (PREF_SPLIT): New definition.
  15010. (PREF_DAEMON): New definition.
  15011. (PREF_REFERER): New definition.
  15012. (PREF_TORRENT_FILE): New definition.
  15013. (PREF_LISTEN_PORT): New definition.
  15014. (PREF_METALINK_FILE): New definition.
  15015. (PREF_METALINK_VERSION): New definition.
  15016. (PREF_METALINK_LANGUAGE): New definition.
  15017. (PREF_METALINK_OS): New definition.
  15018. (PREF_METALINK_SERVERS): New definition.
  15019. * src/main.cc
  15020. (main): Following command-line parameters are now put into Option
  15021. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  15022. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  15023. metalinkLanguage, metalinkOs, metalinkServers
  15024. To fix the bug that aria2 can not handle http response header properly.
  15025. * src/HttpHeader.cc
  15026. (put): Made name lowercased.
  15027. (defined): Made name lowercased.
  15028. (getFirst): Made name lowercased.
  15029. (get): Made name lowercased.
  15030. (getFirstAsInt): Rewritten.
  15031. (getFirstAsLLInt): Rewritten.
  15032. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15033. * src/TorrentMan.h:
  15034. (advertisePiece): Updated doc.
  15035. (getAdvertisedPieceIndexes): Updated doc.
  15036. (removeAdvertisedPiece); New function.
  15037. * src/TorrentMan.cc
  15038. (FindElapsedHave): New function object.
  15039. (removeAdvertisedPiece): New function.
  15040. * src/HaveEraseCommand.h: New class.
  15041. * src/HaveEraseCommand.cc: New class.
  15042. * src/FeatureConfig.h: New class.
  15043. * src/FeatureConfig.cc: New class.
  15044. * src/Request.h
  15045. (defaultPorts): Removed.
  15046. * src/Request.cc
  15047. (FeatureConfig.h): Included.
  15048. (Request): Removed the statements related to defaultPorts.
  15049. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  15050. A default port number is now retrieved from FeatureConfig.
  15051. * src/main.cc
  15052. (HaveEraseCommand.h): Included.
  15053. (showVersion): Added the output of feature list.
  15054. (main): Added HaveEraseCommand to command queue in BitTorrent
  15055. downloading.
  15056. * src/PeerInteractionCommand.h
  15057. (chokeCheckPoint): Commented out.
  15058. (periodicExecPoint): New variable.
  15059. * src/PeerInteractionCommand.cc
  15060. (executeInternal): Following methods are now called in at least every
  15061. 0.5 seconds to reduce CPU usage:
  15062. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  15063. checkHave(), sendKeepAlive().
  15064. (checkLongTimePeerChoking): Commented out.
  15065. * src/BitfieldMan.h
  15066. (getNthBitIndex): Changed the method signature.
  15067. (getMissingIndexRandomly): Changed the method signature.
  15068. * src/BitfieldMan.cc
  15069. (getNthBitIndex): Rewritten
  15070. (getMissingIndexRandomly): Rewritten.
  15071. (hasMissingPiece): Rewritten.
  15072. (getMissingIndex): Refactored.
  15073. (getMissingUnusedIndex); Refactored.
  15074. (getMissingIndex): Refactored.
  15075. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15076. * src/PeerMessage.h
  15077. (Piece.h): Included.
  15078. (SharedHandle.h): Included.
  15079. (invalidate): New variable.
  15080. (uploading): New variable.
  15081. (isInvalidate): New function.
  15082. (isUploading): New function.
  15083. (onPush): New function.
  15084. (onChoked): New function.
  15085. (onCanceled): New function.
  15086. (onAbortPiece): New function.
  15087. (PeerMessageHandle): New type definition.
  15088. * src/PeerMessage.cc
  15089. (PeerMessage): Added the initialization for invalidate and uploading.
  15090. * src/CancelMessage.h
  15091. (CancelMessage): Rewritten.
  15092. * src/RejectMessage.h
  15093. (RejectMessage): Rewritten.
  15094. * src/Metalinker.h
  15095. (operator=): Defined.
  15096. * src/MetaEntry.h
  15097. (operator=): Defined.
  15098. * src/MetalinkResource.h
  15099. (operator=): Defined.
  15100. * src/AllowedFastMessage.h
  15101. (AllowedFastMessage): Rewritten.
  15102. * src/HandshakeMessage.h
  15103. (HandshakeMessage): New function(overload).
  15104. * src/HandshakeMessage.cc
  15105. (HandshakeMessage): Rewritten.
  15106. (init): New function.
  15107. * src/HaveMessage.h
  15108. (HaveMessage): Rewritten.
  15109. * src/Time.h
  15110. (operator=): Defined the function body here.
  15111. * src/Time.cc
  15112. (operator=): Removed.
  15113. * src/SocketCore.h
  15114. (operator==): Defined here.
  15115. (operator!=): Defined here.
  15116. (operator<): Defined here.
  15117. * src/SocketCore.cc
  15118. (operator==): Removed.
  15119. (operator<): Removed.
  15120. * src/BitfieldMan.h
  15121. (operator=): Defined the function body here.
  15122. * src/BitfieldMan.cc
  15123. (operator=): Removed.
  15124. * src/TorrentMan.h
  15125. (deleteErrorPeer): Removed.
  15126. (deleteUnusedPeer); New function.
  15127. * src/TorrentMan.cc
  15128. (addPeer): Call deleteUnusedPeer.
  15129. (deleteErrorPeer): Removed.
  15130. (deleteUnusedPeer): New function.
  15131. * src/PeerAbstractCommand.h
  15132. (setNoCheck): New function.
  15133. (noCheck): New variable.
  15134. * src/PeerAbstractCommand.cc
  15135. (PeerAbstractCommand): Added the initialization of noCheck.
  15136. (execute): Added a check for noCheck.
  15137. (setNoCheck): New function.
  15138. * src/Util.h
  15139. (stdio.h): Included.
  15140. * src/Util.cc
  15141. (unistd.h): Included.
  15142. * src/DefaultDiskWriter.cc
  15143. (unistd.h): Included.
  15144. * src/Peer.h
  15145. (operator==): Defined the function body here.
  15146. (operator!=): Defined the function body here.
  15147. * src/Peer.cc
  15148. (operator==): Removed.
  15149. (operator!=): Removed.
  15150. * src/Piece.h
  15151. (Piece): Defined the function body here(copy constructor).
  15152. (operator=): Defined the function body here.
  15153. (operator==): Defined the function body here.
  15154. * src/Piece.cc
  15155. (Piece): Removed(copy constructor).
  15156. (operator=): Removed.
  15157. (operator==): Removed.
  15158. * src/PeerMessageUtil.h
  15159. (ChokeMessage.h): Removed.
  15160. (UnchokeMessage.h): Removed.
  15161. (InterestedMessage.h): Removed.
  15162. (NotInterestedMessage.h): Removed.
  15163. (HaveMessage.h): Removed.
  15164. (BitfieldMessage.h): Removed.
  15165. (RequestMessage.h): Removed.
  15166. (CancelMessage.h): Removed.
  15167. (PieceMessage.h): Removed.
  15168. (HandshakeMessage.h): Removed.
  15169. (KeepAliveMessage.h): Removed.
  15170. (PortMessage.h): Removed.
  15171. (HaveAllMessage.h): Removed.
  15172. (HaveNoneMessage.h): Removed.
  15173. (PeerConnection.h): Removed.
  15174. (HandshakeMessage.h): Included.
  15175. * src/BitfieldMessage.h
  15176. (init): New function.
  15177. (BitfieldMessage): Rewritten.
  15178. (BitfieldMessage): New function(overload).
  15179. * src/RequestSlot.h
  15180. (operator=): Defined the function body here.
  15181. (operator==): Defined the function body here.
  15182. * src/RequestSlot.cc
  15183. (operator=): Removed.
  15184. (operator==): Removed.
  15185. To remove the dependency on the PeerMessage subclass from
  15186. PeerInteraction:
  15187. * src/PeerMessageFactory.h: New class.
  15188. * src/PeerMessageFactory.cc: New class.
  15189. * src/SimplePeerMessage.cc
  15190. (send): If invalidate is true then do nothing.
  15191. * src/PeerInteractionCommand.cc
  15192. (HandshakeMessage.h): Included.
  15193. (KeepAliveMessage.h): Included.
  15194. (ChokeMessage.h): Included.
  15195. (UnchokeMessage.h): Included.
  15196. (HaveMessage.h): Included.
  15197. (executeInternal): Call setNoCheck().
  15198. Removed setWriteCheckSocket(socket).
  15199. * src/PeerInteraction.h
  15200. (ChokeMessage.h): Removed.
  15201. (UnchokeMessage.h): Removed.
  15202. (InterestedMessage.h): Removed.
  15203. (NotInterestedMessage.h): Removed.
  15204. (HaveMessage.h): Removed.
  15205. (BitfieldMessage.h): Removed.
  15206. (RequestMessage.h): Removed.
  15207. (CancelMessage.h): Removed.
  15208. (PieceMessage.h): Removed.
  15209. (HandshakeMessage.h): Removed.
  15210. (KeepAliveMessage.h): Removed.
  15211. (PortMessage.h): Removed.
  15212. (HaveAllMessage.h): Removed.
  15213. (HaveNoneMessage.h): Removed.
  15214. (RejectMessage.h): Removed.
  15215. (AllowedFastMessage.h): Removed.
  15216. (SuggestPieceMessage.h): Removed.
  15217. (PeerMessageFactory.h): Included.
  15218. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  15219. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  15220. (PeerMessageFactory): New variable.
  15221. (createPeerMessage): Removed.
  15222. (createHandshakeMessage): Removed.
  15223. (setPeerMessageCommonProperty): Removed.
  15224. (addRequestSlot): New function.
  15225. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15226. (getPeerMessageFactory): New function.
  15227. (createRequestMessage): Removed.
  15228. (createCancelMessage): Removed.
  15229. (createPieceMessage): Removed.
  15230. (createHaveMessage): Removed.
  15231. (createChokeMessage): Removed.
  15232. (createUnchokeMessage): Removed.
  15233. (createInterestedMessage): Removed.
  15234. (createNotInterestedMessage): Removed.
  15235. (createBitfieldMessage): Removed.
  15236. (createKeepAliveMessage): Removed.
  15237. (createHaveAllMessage): Removed.
  15238. (createHaveNoneMessage): Removed.
  15239. (createRejectMessage): Removed.
  15240. (createAllowedFastMessage): Removed.
  15241. * src/PeerInteraction.cc
  15242. (PeerInteraction): Allocate PeerMessageFactory here.
  15243. (~PeerInteraction): Deallocate PeerMessageFactory here.
  15244. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  15245. PieceMessage::ID.
  15246. (addMessage): Simplified by using PeerMessage::onPush().
  15247. (addRequestSlot): New function.
  15248. (rejectAllPieceMessageInQueue): Simplified by using
  15249. PeerMessage::onChoked().
  15250. (rejectPieceMessageInQueue): Simplified by using
  15251. PeerMessage::onCanceled().
  15252. (abortPiece): Simplified by using PeerMessage::abortPiece().
  15253. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  15254. (createHandshakeMessage): Removed.
  15255. (createPeerMessage): Removed.
  15256. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  15257. (setPeerMessageCommonProperty): Removed.
  15258. (createRequestMessage): Removed.
  15259. (createCancelMessage): Removed.
  15260. (createPieceMessage): Removed.
  15261. (createHaveMessage): Removed.
  15262. (createChokeMessage): Removed.
  15263. (createUnchokeMessage): Removed.
  15264. (createInterestedMessage): Removed.
  15265. (createNotInterestedMessage): Removed.
  15266. (createBitfieldMessage): Removed.
  15267. (createKeepAliveMessage): Removed.
  15268. (createHaveAllMessage): Removed.
  15269. (createHaveNoneMessage): Removed.
  15270. (createRejectMessage): Removed.
  15271. (createAllowedFastMessage): Removed.
  15272. * src/PieceMessage.h
  15273. (createRejectMessage): New function.
  15274. (PieceMessage): Rewritten.
  15275. (onChoked): New function.
  15276. (onCanceled): New function.
  15277. * src/PieceMessage.cc
  15278. (send): If invalidate is true then do nothing, just return.
  15279. (createRejectMessage): New function.
  15280. (onChoked): New function.
  15281. (onCanceled): New function.
  15282. * src/RequestMessage.h
  15283. (RequestMessage): Rewritten.
  15284. (onPush): New function.
  15285. (onAbortPiece): New function.
  15286. * src/RequestMessage.cc
  15287. (onPush): New function.
  15288. (onAbortPiece): New function.
  15289. Update fd_set when a socket is added or deleted in order to improve
  15290. performance:
  15291. * src/DownloadEngine.h
  15292. (rfdset): New variable.
  15293. (wfdset): New variable.
  15294. (updateFdSet): New function.
  15295. * src/DownloadEngine.cc
  15296. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  15297. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  15298. (waitData): Copy rfdset and wfdset.
  15299. (updateFdSet): New function.
  15300. (addSocket): Call updateFdSet.
  15301. (deleteSocket): Call updateFdSet.
  15302. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15303. To add the support for Metalink3.0 backward compatible links:
  15304. * src/Request.h
  15305. (SAFE_CHARS): Added '#'.
  15306. (METALINK_MARK): New definition.
  15307. * src/Request.cc
  15308. (parseUrl): Added the support for Metalink3.0 backward compatible
  15309. links.
  15310. etc
  15311. * src/PeerInteraction.cc
  15312. (MsgPushBack): Removed.
  15313. (sendMessages): Use STL copy and back_inserter.
  15314. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  15315. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  15316. * src/TorrentMan.h
  15317. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  15318. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15319. * src/SharedHandle.h: New class.
  15320. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  15321. * src/HttpResponseCommand.h
  15322. (HttpResponseCommand): Wrapped Socket.
  15323. * src/SocketCore.h
  15324. (operator==): New function.
  15325. (operator!=): New function.
  15326. (operator<): New function.
  15327. (getSockfd): New function.
  15328. (isOpen): New function.
  15329. (writeData): New function.
  15330. * src/SocketCore.cc
  15331. (operator==): New function.
  15332. (operator!=): New function.
  15333. (operator<): New function.
  15334. * src/AbstractCommand.h
  15335. (socket): Changed its type to SocketHandle.
  15336. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15337. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15338. (disableReadCheckSocket): New function.
  15339. (disableWriteCheckSocket): New function.
  15340. (readCheckTarget): Changed its type to SocketHandle.
  15341. (writeCheckTarget): Changed its type to SocketHandle.
  15342. (AbstractCommand): Replaced Socket with SocketHandle.
  15343. * src/AbstractCommand.cc
  15344. (AbstractCommand): Replaced Socket with SocketHandle.
  15345. (~AbstractCommand): Removed the deallocation for Socket object.
  15346. (disableReadCheckSocket): New function.
  15347. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15348. (disableWriteCheckSocket): New function.
  15349. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15350. * src/HttpDownloadCommand.cc
  15351. (DownloadCommand): Replaced Socket with SocketHandle.
  15352. * src/PeerAbstractCommand.h
  15353. (socket): Changed its type to SocketHandle.
  15354. (peer): Changed its type to PeerHandle.
  15355. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15356. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15357. (disableReadCheckSocket): New function.
  15358. (disableWriteCheckSocket): New function.
  15359. (readCheckTarget): Changed its type to SocketHandle.
  15360. (writeCheckTarget): Changed its type to SocketHandle.
  15361. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15362. Replaced Peer with PeerHandle.
  15363. * src/HttpRequestCommand.cc
  15364. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15365. Use disableReadCheckSocket.
  15366. * src/PeerInitiateConnectionCommand.h
  15367. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15368. * src/PeerChokeCommand.cc
  15369. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  15370. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  15371. (execute): Use PeerHandle.
  15372. * src/PeerConnection.h
  15373. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  15374. (socket): Changed its type to SocketHandle.
  15375. (PeerConnection): Replaced Socket with SocketHandle.
  15376. * src/PeerConnection.cc
  15377. (PeerConnection): Replaced Socket with SocketHandle.
  15378. * src/PeerInteractionCommand.h
  15379. (PeerInteractionCommand): Replaced socket with SocketHandle.
  15380. Replaced Peer with PeerHandle.
  15381. * src/PeerInteractionCommand.cc
  15382. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  15383. Replaced Peer with PeerHandle.
  15384. (executeInternal): Use disableWriteCheckSocket.
  15385. Use HandshakeMessageHandle.
  15386. (receiveMessages): Use PeerMessageHandle.
  15387. (prepareForNextPeer): Use PeerHandle.
  15388. * src/HttpProxyRequestCommand.h
  15389. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15390. * src/HttpResponseCommand.cc
  15391. (HttpResponseCommand): Replaced Socket with SocketHandle.
  15392. * src/TorrentMan.cc
  15393. (nullPeer): Added external reference.
  15394. (~TorrentMan): Removed the deallocation of the elements of peers.
  15395. (addPeer): Rewritten.
  15396. (isPeerAvailable): Use nullPeer.
  15397. (deleteOldpeers): Replaced with deleteErrorPeer.
  15398. (deleteErrorPeer): New function.
  15399. (getPeer): Use PeerHandle and nullPeer.
  15400. (hasMissingPiece): Replaced Peer with PeerHandle.
  15401. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15402. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15403. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15404. (getMissingPiece): Replaced Peer with PeerHandle.
  15405. * src/FtpNegotiateCommand.cc
  15406. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  15407. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  15408. (recvGreeting): Use disableWriteCheckSocket.
  15409. (recvPasv): Removed the allocation of Socket.
  15410. Use disableReadCheckSocket.
  15411. (sendRestPasv): Use disableWriteCheckSocket.
  15412. (recvRetr): Changed assertion.
  15413. * src/PeerInteraction.h
  15414. (SharedHandle.h): Included SharedHandle.h.
  15415. (PeerMessageHandle): New type definition.
  15416. (HandshakeMessageHandle): New type definition.
  15417. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  15418. (peer): Changed its type to PeerHandle.
  15419. (createHandshakeMessage): Replaced HandshakeMessage with
  15420. HandshakeMessageHandle.
  15421. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  15422. (PeerInteraction): Replaced Peer with PeerHandle.
  15423. Replaced Socket with SocketHandle.
  15424. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15425. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15426. (receiveHandshake): Replaced HandshakeMessage with
  15427. HandshakeMessageHandle.
  15428. * src/PeerInteraction.cc
  15429. (PeerInteraction): Replaced Peer with PeerHandle.
  15430. Replaced Socket with SocketHandle.
  15431. (~PeerInteraction): Removed the deallocation of the elements of
  15432. messageQueue.
  15433. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  15434. (isSendingMessageInProgress): Replaced PeerMessage with
  15435. PeerMessageHandle.
  15436. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  15437. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  15438. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  15439. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  15440. (abortPiece): Use PeerMessageHandle.
  15441. (receiveHandshake): Replaced HandshakeMessage with
  15442. HandshakeMessageHandle. Removed try-catch block.
  15443. (createHandshakeMessage): Replaced HandshakeMessage with
  15444. HandshakeMessageHandle.
  15445. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  15446. Removed try-catch block.
  15447. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  15448. * src/HttpProxyResponseCommand.cc
  15449. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15450. * src/FtpTunnelResponseCommand.h
  15451. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15452. * src/HttpConnection.cc
  15453. (HttpConnection): Replaced Socket with SocketHandle.
  15454. * src/PeerAbstractCommand.cc
  15455. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  15456. (~PeerAbstractCommand): Removed the deallocation of socket.
  15457. Use disableReadCheckSocket, disableWriteCheckSocket.
  15458. (disableReadCheckSocket): New function.
  15459. (setReadCheckSocket): Replaced Socket with SocketHandle.
  15460. (disableWriteCheckSocket): New function.
  15461. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  15462. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  15463. * src/FtpTunnelRequestCommand.cc
  15464. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15465. (~FtpTunnelRequestCommand): Corrected indentation.
  15466. * src/DownloadCommand.h
  15467. (DownloadCommand): Replaced Socket with SocketHandle.
  15468. * src/PeerListenCommand.cc
  15469. (PeerListenCommand): Removed the initialization of socket.
  15470. (~PeerListenCommand): Removed the deallocation of socket.
  15471. (bindPort): Use SocketHandle.
  15472. (execute): Use SocketHandle and PeerHandle.
  15473. * src/FtpDowndloadCommand.cc
  15474. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15475. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  15476. * src/main.cc
  15477. (main): Corrected indentation.
  15478. * src/HttpInitiateConnectionCommand.cc
  15479. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  15480. (executeInternal): Removed the allocation of socket.
  15481. * src/HttpRequestCommand.h
  15482. (HttpRequestCommand): Replaced Socket with SocketHandle.
  15483. * src/FtpNegotiationCommand.h
  15484. (dataSocket): Changed its type to SocketHandle.
  15485. (serverSocket): Changed its type to SocketHandle.
  15486. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  15487. * src/TorrentMan.h
  15488. (MAX_PEER_UPDATE): Removed.
  15489. (MAX_PEERS): New definition.
  15490. (Peers): The element is now of type PeerHandle.
  15491. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  15492. (getPeer): Replaced Peer with PeerHandle.
  15493. (deleteOldErrorPeers): Removed.
  15494. (deleteErrorPeer): New function.
  15495. (hasMissingPiece): Replaced Peer with PeerHandle.
  15496. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  15497. (getMissingPiece): Replaced Peer with PeerHandle.
  15498. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  15499. (getMissingFastPiece): Replaced Peer with PeerHandle.
  15500. (addActivePeer): Replaced Peer with PeerHandle.
  15501. (deleteActivePeer): Replaced Peer with PeerHandle.
  15502. Added a check for the return value of find.
  15503. * src/FtpTunnelResponseCommand.cc
  15504. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  15505. * src/FtpInitiateConnectionCommand.cc
  15506. (executeInternal): Removed the allocation of socket.
  15507. * src/DownloadEngine.h
  15508. (Sockets): An element is now of type SocketHandle.
  15509. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  15510. (CommandUuids): New type definition.
  15511. (rsockets): Changed its type to SockCmdMap.
  15512. (wsockets): Changed its type to SockCmdMap.
  15513. (addSocket): Rewritten.
  15514. (deleteSocket): Rewritten.
  15515. (addSocketForReadCheck): Rewritten.
  15516. (deleteSocketForReadCheck): Rewritten.
  15517. (addSocketForWriteCheck): Rewritten.
  15518. (deleteSocketForWriteCheck): Rewritten.
  15519. (PairFind): New template class.
  15520. * src/HttpDownloadCommand.h
  15521. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  15522. * src/FtpConnection.cc
  15523. (FtpConnection): Replaced Socket with SocketHandle.
  15524. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  15525. block.
  15526. * src/InitiateConnectionCommandFactory.cc
  15527. (DlAbortEx.h): Included DlAbortEx.h.
  15528. (createInitiateConnectionCommand): Throw exception if the protocol of
  15529. requested URI is not supported.
  15530. * src/Peer.cc
  15531. (nullPeer): Changed its type to PeerHandle.
  15532. (operator==): New function.
  15533. (operator!=): New function.
  15534. * src/Peer.h
  15535. (SharedHandle.h): Included SharedHandle.h.
  15536. (operator==): New function.
  15537. (operator!=): New function.
  15538. (Peer): Added the default constructor.
  15539. Use resetStatus() to initialize member variables.
  15540. (nullPeer): Removed.
  15541. * src/TrackerUpdateCommand.cc
  15542. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  15543. with MIN_PEERS.
  15544. * src/PeerListenCommand.h
  15545. (socket): Changed its type to SocketHandle.
  15546. * src/Command.h
  15547. (CommandUuid): New type definition.
  15548. (uuid): New variable.
  15549. (uuidGen): New variable.
  15550. (Command): Added the initialization of uuid.
  15551. (getUuid): New function.
  15552. * src/Socket.h
  15553. (Socket): Removed.
  15554. (SocketHandle): New type definition.
  15555. * src/DownloadEngine.h
  15556. (FindCommand): New function object.
  15557. (run): The portion of socket check was rewritten.
  15558. (SetDescriptor): New function object.
  15559. (AccumulateActiveCommandUuid): New function object.
  15560. (waitData): Rewritten.
  15561. (addSocket): Rewritten.
  15562. (deleteSocket): Rewritten.
  15563. (addSocketForReadCheck): Rewritten.
  15564. (addSocketForWriteCheck): Rewritten.
  15565. (deleteSocketForReadCheck): Rewritten.
  15566. (deleteSocketForWriteCheck): Rewritten.
  15567. * src/HttpProxyResponseCommand.h
  15568. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  15569. * src/HttpConnection.h
  15570. (socket): Changed its type to SocketHandle.
  15571. (HttpConnection): Replaced Socket with SocketHandle.
  15572. * src/PeerInitiateConnectionCommand.cc
  15573. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  15574. (executeInternal): Removed the allocation of socket.
  15575. (prepareForNextPeer): Use PeerHandle.
  15576. * src/PeerMessage.h
  15577. (peer): Changed its type to PeerHandle.
  15578. (getPeer): Replaced Peer with PeerHandle.
  15579. (setPeer): Replaced Peer with PeerHandle.
  15580. * src/DownloadCommand.cc
  15581. (DownloadCommand): Replaced Socket with SocketHandle.
  15582. * src/FtpConnection.h
  15583. (socket): Changed its type to SocketHandle.
  15584. (FtpConnection): Replaced Socket with SocketHandle.
  15585. (sendPort); Replaced Socket with SocketHandle.
  15586. * src/FtpDowndloadCommand.h
  15587. (ctrlSocket): Changed its type to SocketHandle.
  15588. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  15589. * src/HttpProxyRequestCommand.cc
  15590. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  15591. * src/FtpTunnelRequestCommand.h
  15592. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  15593. etc
  15594. * src/PeerChokeCommand.h
  15595. (setAllPeerChoked): Removed.
  15596. (setAllPeerResetDelta): Removed.
  15597. * src/PeerChokeCommand.cc
  15598. (setAllPeerChoked): Removed.
  15599. (ChokePeer): New function object.
  15600. (setAllPeerResetDelta): Removed.
  15601. (ResetDelta): New function object.
  15602. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  15603. (execute): Show download speed when the local node is a seeder.
  15604. setAllPeerChoked and setAllPeerResetDelta were rewritten
  15605. using STL.
  15606. * src/TrackerWatcherCommand.h
  15607. (MIN_PEERS): Removed.
  15608. * src/TorrentMan.cc
  15609. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  15610. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15611. To fix the bug that .aria2 file is not saved if downloading is stopped
  15612. by the errors:it results that aria2 can not resume downloading:
  15613. * src/main.cc
  15614. (normalDownload): Added the call to save().
  15615. (main): Added the deletion of the elements in 'reserved'.
  15616. To fix log:
  15617. * src/PeerInteraction.cc
  15618. (receiveHandshake): Fixed log.
  15619. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15620. To improve download performance in BitTorrent:
  15621. * src/TorrentMan.cc
  15622. (getPeer): Check the number of connections. Return nullPeer if
  15623. it is greater than MAX_PEER_UPDATE.
  15624. This code was originally here, but was removed in 0.5.1.
  15625. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15626. To improve the conditional compilation:
  15627. * src/MultiDiskWriter.h:
  15628. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15629. * src/MultiDiskWriter.cc:
  15630. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15631. * src/Util.h:
  15632. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15633. Added ENABLE_BITTORRENT around computeFastSet().
  15634. * src/Util.cc:
  15635. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15636. Added ENABLE_BITTORRENT around computeFastSet().
  15637. * src/messageDigest.h:
  15638. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  15639. * src/ShaVisitor.h:
  15640. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15641. * src/ShaVisitor.cc:
  15642. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15643. * src/main.cc:
  15644. Added ENABLE_BITTORRENT around includes and blocks related to
  15645. BitTorrent.
  15646. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  15647. digest support is not available.
  15648. * src/AbstractDiskWriter.h:
  15649. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15650. * src/AbstractDiskWriter.cc:
  15651. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  15652. * src/MetalinkEntry.cc
  15653. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  15654. support is not available.
  15655. To add command-line options for Metalink:
  15656. * src/main.cc:
  15657. Added metalink-version, metalink-language, metalink-os,
  15658. follow-metalink.
  15659. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  15660. * src/main.cc: Use these definition.
  15661. * Release 0.6.0
  15662. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15663. To add Metalink support(http/ftp only):
  15664. * src/AbstractCommand.h
  15665. (tryReserved): New function.
  15666. * src/AbstractCommand.cc
  15667. (execute): Call tryReserved().
  15668. (tryReserved): New function.
  15669. * src/Request.h
  15670. (Requests): New type definition.
  15671. * src/SegmentMan.h
  15672. (reserved): New variable.
  15673. * src/Util.h
  15674. (fileChecksum): New function.
  15675. (toUpper): New function.
  15676. (toLower): New function.
  15677. * src/Util.cc
  15678. (messageDigest.h): Included.
  15679. (trim): Trim \r\n\t.
  15680. (fileChecksum): New function.
  15681. (toUpper): New function.
  15682. (toLower): New function.
  15683. * src/main.cc
  15684. (normalDownload): New function.
  15685. (main): Added 2 command-line options: metalink-file,
  15686. metalink-connection. Their usage has not been written yet.
  15687. * src/MetalinkProcessor.h: New class.
  15688. * src/Xml2MetalinkProcessor.h: New class.
  15689. * src/Xml2MetalinkProcessor.cc: New class.
  15690. * src/MetalinkEntry.h: New class.
  15691. * src/MetalinkEntry.cc: New class.
  15692. * src/MetalinkResource.h: New class.
  15693. * src/MetalinkResource.cc: New class.
  15694. To add md5 message digest checking:
  15695. * src/messageDigest.h: Rewritten.
  15696. * src/MultiDiskWriter.cc: Updated according to the changes in
  15697. messageDigest.h.
  15698. * src/ShaVisitor.cc: Updated according to the changes in
  15699. messageDigest.h.
  15700. * src/Util.cc: Updated according to the changes in messageDigest.h.
  15701. * src/AbstractDiskWriter.cc: Updated according to the changes in
  15702. messageDigest.h.
  15703. To fix a bug that causes segfault when the payload length in peer
  15704. message is less than 0:
  15705. * src/PeerConnection.cc:
  15706. (receiveMessage): Fixed the bug.
  15707. * src/PeerMessageUtil.cc
  15708. (checkLength): Throw an exception if length is less than or equals to
  15709. 0.
  15710. To add new interfaces to Base64 encoding/decoding:
  15711. * src/Base64.h
  15712. (part_encode): Changed the method signature.
  15713. (encode): New function(overload).
  15714. (decode): New function(overload).
  15715. * src/Base64.cc
  15716. (part_encode): Rewritten.
  15717. (encode): Rewritten.
  15718. (encode): New function(overload).
  15719. To prevent a peer to download same piece if there is an error in
  15720. checksum:
  15721. * src/PieceMessage.cc
  15722. (receivedAction): Call peerInteraction->abortPiece().
  15723. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15724. To fix the bug that causes same have message is sent many times to
  15725. a single peer.
  15726. * src/Time.cc
  15727. (isNewer): Use Util::difftv().
  15728. * src/Util.cc
  15729. (difftv): Added a cast to (long long int).
  15730. * src/TorrentMan.cc
  15731. (advertisePiece): Use push_front.
  15732. (getAdvertisedPieceIndexes): A performance improvement was made.
  15733. To fix the bug that sends tracker requests without a sleep interval
  15734. when the number of connections is less than 15.
  15735. * src/TrackerWatcherCommand.cc
  15736. (execute): Now the number of connections is not a factor to decide
  15737. whether or not a tracker request should be sent or not.
  15738. * src/Time.h
  15739. (setTimeInSec): New function.
  15740. * src/Time.cc
  15741. (setTimeInSec): New function.
  15742. etc.
  15743. * src/ChokeMessage.cc
  15744. (receivedAction): Removed peer->snubbing = false
  15745. * src/PeerConnection.h
  15746. (receiveHandshake): Updated doc.
  15747. * src/TorrentMan.h
  15748. (getAdvertisedPieceIndexes): Updated the method signature.
  15749. * src/TorrentMan.cc
  15750. (getAdvertisedPieceIndexes): Updated the method signature.
  15751. * src/Time.h
  15752. (getTimeInMicros): Added a cast to (long long int).
  15753. (getTimeInMillis): Added a cast to (long long int).
  15754. * Release 0.5.2
  15755. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15756. To make a listening socket non-block:
  15757. * src/SocketCore.h
  15758. (setNonBlockingMode): New function.
  15759. * src/SocketCore.cc
  15760. (setNonBlockingMode): New function.
  15761. (beginListen): Added a call to setNonBlockingMode().
  15762. (acceptConnection): Call setNonBlockingMode().
  15763. (setBlockingMode): Updated.
  15764. To handle tracker's NAT-checking:
  15765. * src/PeerConnection.cc
  15766. (receiveHandshake): 'msg' param is filled with received data and
  15767. its length is assigned to 'length' param, even if all handshake
  15768. message is not yet received.
  15769. * src/PeerInteractionCommand.cc
  15770. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  15771. a new peer connects to localhost.
  15772. A call to peerInteraction->sendHandshake() was removed because
  15773. it is called from peerInteraction->receiveHandshake(true).
  15774. * src/PeerInteraction.h
  15775. (quickReplied): New variable.
  15776. (receiveHandshake): Added an argument.
  15777. * src/PeerInteraction.cc
  15778. (PeerInteraction): Added the initialization of quickReplied.
  15779. (receiveHandshake): Send handshake message as soon as the info hash
  15780. in a handshake message from a peer is correct.
  15781. To change the random part of peer id and key parameter:
  15782. * src/TorrentMan.h
  15783. (key): New variable.
  15784. * src/TorrentMan.cc
  15785. (setupInternal1): Use Util::randomAlpha() to generate random part
  15786. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  15787. key is also generated by Util::randomAlpha() and it is now 8 character
  15788. long.
  15789. * src/Util.h
  15790. (randomAlpha): New function.
  15791. * src/Util.cc
  15792. (randomAlpha): New function.
  15793. * src/TrackerWatcherCommand.cc
  15794. (execute): In a tracker request: Use torrentMan->key as key parameter.
  15795. Added no_peer_id=1.
  15796. Set snubbing flag to false when a choke message is received from a
  15797. snubbed peer.
  15798. * src/ChokeMessage.cc
  15799. (receivedAction): Set snubbing flag to false.
  15800. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15801. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  15802. * src/SimpleLogger.h (writeHeader): New function.
  15803. * src/SimpleLogger.cc (writeHeader): New function.
  15804. (writeLog): Fixed the bug that causes segfaults if exception message
  15805. contains an unescaped "%" character.
  15806. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  15807. when a tracker request fails.
  15808. * src/Request.cc (parseUrl): Query string is now handled properly.
  15809. * Release 0.5.1
  15810. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15811. To add Time class which represents a specific instant in time and
  15812. its precision is microseconds. Time checking procedures were rewritten
  15813. using this object.
  15814. * src/Time.h: New class.
  15815. * src/Time.cc: New class.
  15816. * src/AbstractCommand.h
  15817. (updateCheckPoint): Removed.
  15818. (isTimeoutDetected): Removed.
  15819. (checkPoint): Changed the type to Time.
  15820. (timeout): New variable.
  15821. (setTimeout): New function.
  15822. * src/AbstractCommand.cc
  15823. (AbstractCommand): Removed the initialization of checkPoint.
  15824. Added the initialization of timeout.
  15825. (updateCheckPoint): Removed.
  15826. (isTimeoutDetected): Removed.
  15827. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15828. * src/PeerChokeCommand.h
  15829. (checkPoint): Changed the type to Time.
  15830. * src/PeerChokeCommand.cc
  15831. (PeerChokeCommand): Removed the initialization of checkPoint.
  15832. (execute): Rewritten using Time object.
  15833. * src/TrackerWatcherCommand.h
  15834. (checkPoint): Changed the type to Time.
  15835. * src/TrackerWatcherCommand.cc
  15836. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  15837. (execute): Rewritten.
  15838. * src/ConsoleDownloadEngine.h
  15839. (cp): Changed the type to Time.
  15840. (startup): Changed the type to Time.
  15841. * src/ConsoleDownloadEngine.cc
  15842. (initStatistics): Use cp.reset(), startup.reset().
  15843. (calculateStatistics): Rewritten using Time object.
  15844. * src/PeerAbstractCommand.h
  15845. (updateCheckPoint): Removed.
  15846. (isTimeoutDetected): Removed.
  15847. (checkPoint): Changed the type to Time.
  15848. * src/PeerAbstractCommand.cc
  15849. (PeerAbstractCommand): Removed the initialization of checkPoint.
  15850. (updateCheckPoint): Removed.
  15851. (isTimeoutDetected): Removed.
  15852. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  15853. * src/PeerInteractionCommand.cc
  15854. (PeerInteractionCommand): Removed the initializations of struct
  15855. timeval variables.
  15856. * src/PeerInteractionCommand.h
  15857. (keepAliveCheckPoint): Changed the type to Time.
  15858. (chokeCheckPoint): Changed the type to Time.
  15859. (freqCheckPoint): Changed the type to Time.
  15860. (haveCheckTime): Changed the type to Time.
  15861. * src/PeerInteractionCommand.cc
  15862. (executeInternal): Rewritten using Time object.
  15863. (detectMessageFlooding): Rewritten using Time object.
  15864. (checkLongTimePeerChoking): Rewritten using Time object.
  15865. (sendKeepAlive): Rewritten using Time object.
  15866. (checkHave): Rewritten using Time object.
  15867. * src/SleepCommand.h
  15868. (checkPoint): Changed the type to Time.
  15869. * src/SleepCommand.cc
  15870. (SleepCommand): Removed the initialization of checkPoint.
  15871. (execute): Rewritten using Time object.
  15872. * src/TorrentAutoSaveCommand.h
  15873. (checkPoint): Changed the type to Time.
  15874. * src/TorrentAutoSaveCommand.cc
  15875. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  15876. (execute): Rewritten.
  15877. * src/DownloadCommand.h
  15878. (sw): Changed the type to Time.
  15879. * src/DownloadCommand.cc
  15880. (DownloadCommand): Removed the initialization of sw.
  15881. (executeInternal): Rewritten.
  15882. * src/RequestSlot.h
  15883. (dispatchedTime): Changed the type to Time.
  15884. * src/RequestSlot.cc
  15885. (RequestSlot): Removed the call to setDispatchedTime().
  15886. (setDispatchedTime): Rewirtten.
  15887. (isTimeout): Rewritten.
  15888. (getLatencyInMillis): Rewritten.
  15889. * src/TorrentDownloadEngine.h
  15890. (cp): Changed the type to Time[2].
  15891. (startup): Changed the type to Time.
  15892. * src/TorrentDownloadEngine.cc
  15893. (initStatistics): Rewritten.
  15894. (calculateStatistics): Rewritten.
  15895. * src/DownloadEngine.cc
  15896. (run): Rewritten.
  15897. To detect all attempts to connect to the tracker are failed:
  15898. * src/AbstractCommand.cc
  15899. (execute): Increment e->segmentMan->errors if a command aborted.
  15900. * src/SegmentMan.h
  15901. (errors): New variable.
  15902. * src/SegmentMan.cc
  15903. (SegmentMan): Added the initialization of errors.
  15904. (init): Added the initialization of errors.
  15905. * src/TrackerWatcherCommand.cc
  15906. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  15907. request was failed.
  15908. To handle snubbed peers:
  15909. * src/PeerChokeCommand.cc
  15910. (optUnchokingPeer): Snubbed peers don't get unchoked.
  15911. (execute): Snubbed peers don't get unchoked.
  15912. * src/PeerInteraction.h
  15913. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  15914. * src/PeerInteraction.cc
  15915. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  15916. back the requested 16k block in 60 seconds.
  15917. * src/PieceMessage.cc
  15918. (receivedAction): A peer's snubbed state is cleard if it sends
  15919. the requested 16k block in 60 seconds.
  15920. * src/Peer.h
  15921. (snubbing): New variable.
  15922. * src/Peer.cc
  15923. (resetStatus): Added snubbed = false.
  15924. To fix the bug that causes have message is not sent:
  15925. * src/PeerInteractionCommand.cc
  15926. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  15927. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  15928. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  15929. * src/TorrentMan.h
  15930. (HaveEntry): New class.
  15931. (advertisePiece): Rewritten.
  15932. (getAdvertisedPieceIndexes): Rewritten.
  15933. (Haves): Changed the type.
  15934. (getAdvertisedPieceIndexes): Added an argument.
  15935. Others:
  15936. * src/TorrentMan.h
  15937. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  15938. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  15939. * src/TorrentMan.cc
  15940. (getPeer): Don't check the number of connections here.
  15941. (setupInternal1): Changed peerId.
  15942. * src/PeerInteractionCommand.h
  15943. (KEEP_ALIVE_INTERVAL): New definition.
  15944. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  15945. * src/main.cc
  15946. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  15947. * src/DownloadEngine.h: Removed unnecessary header includes.
  15948. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15949. To fix the bug that causes segfaults if a tracker returns a zero-length
  15950. list as "peers":
  15951. * src/TrackerUpdateCommand.cc
  15952. (execute): Added a check to see wether the type of peers is Data*.
  15953. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15954. * Release 0.5.0
  15955. To fix compile issue with gcc3:
  15956. * src/CancelMessage.h
  15957. (ID): Renamed as ID_t
  15958. (ID_t): New enum.
  15959. * src/RejectMessage.h
  15960. (ID): Renamed as ID_t
  15961. (ID_t): New enum.
  15962. * src/SuggestPieceMessage.h
  15963. (ID): Renamed as ID_t
  15964. (ID_t): New enum.
  15965. * src/AllowedFastMessage.h
  15966. (ID): Renamed as ID_t
  15967. (ID_t): New enum.
  15968. * src/PortMessage.h
  15969. (ID): Renamed as ID_t
  15970. (ID_t): New enum.
  15971. * src/HaveNoneMessage.h
  15972. (ID): Renamed as ID_t
  15973. (ID_t): New enum.
  15974. * src/KeepAliveMessage.h
  15975. (ID): Renamed as ID_t
  15976. (ID_t): New enum.
  15977. * src/HaveAllMessage.h
  15978. (ID): Renamed as ID_t
  15979. (ID_t): New enum.
  15980. * src/UnchokeMessage.h
  15981. (ID): Renamed as ID_t
  15982. (ID_t): New enum.
  15983. * src/BitfieldMessage.h
  15984. (ID): Renamed as ID_t
  15985. (ID_t): New enum.
  15986. * src/PieceMessage.h
  15987. (ID): Renamed as ID_t
  15988. (ID_t): New enum.
  15989. * src/RequestMessage.h
  15990. (ID): Renamed as ID_t
  15991. (ID_t): New enum.
  15992. * src/NotInterestedMessage.h
  15993. (ID): Renamed as ID_t
  15994. (ID_t): New enum.
  15995. * src/ChokeMessage.h
  15996. (ID): Renamed as ID_t
  15997. (ID_t): New enum.
  15998. * src/InterestedMessage.h
  15999. (ID): Renamed as ID_t
  16000. (ID_t): New enum.
  16001. * src/HaveMessage.h
  16002. (ID): Renamed as ID_t
  16003. (ID_t): New enum.
  16004. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16005. * src/PeerAbstractCommand.h
  16006. (beforeSocketCheck): Removed.
  16007. * src/PeerAbstractCommand.cc
  16008. Modified in order to call executeInternal() even if socket check
  16009. and upload limit check fail.
  16010. * src/PeerInteractionCommand.h
  16011. (keepAlive): Removed.
  16012. (sendKeepAlive): New function.
  16013. (checkHave): New function.
  16014. (beforeSocketCheck): Removed.
  16015. * src/PeerInteractionCommand.cc
  16016. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  16017. calls to checkHave() and sendKeepAlive().
  16018. (keepAlive): Renamed to sendKeepAlive().
  16019. (sendKeepAlive): New function.
  16020. (beforeSocketCheck): Removed.
  16021. (checkHave): New function.
  16022. * src/BitfieldMan.cc
  16023. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  16024. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  16025. 0.
  16026. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  16027. * src/TorrentMan.h
  16028. (UsedPieces): Removed.
  16029. (Pieces): New type definition.
  16030. * src/Piece.h: Updated doc.
  16031. * src/Peer.h
  16032. (totalLength): Removed.
  16033. * src/Peer.cc
  16034. (updateLatency): Fixed the latency calculation.
  16035. * src/TorrentMan.cc
  16036. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  16037. than or equal to MAX_PEER_LIST_SIZE.
  16038. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  16039. then return false.
  16040. (deleteOldErrorPeers): Rewritten.
  16041. (deleteUsedPiece): Fixed the miss use of STL remove.
  16042. * src/PeerInteraction.h
  16043. (Pieces): Removed.
  16044. (deleteTimeoutRequestSlot): Removed.
  16045. (deleteCompletedRequestSlot): Removed.
  16046. (checkRequestSlot): New function.
  16047. * src/PeerInteraction.cc
  16048. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  16049. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  16050. (checkRequestSlot): New function.
  16051. * src/DownloadEngine.cc
  16052. (run): Clear activeSockets before calling waitData().
  16053. (waitData): Removed a call to activeSockets.clear().
  16054. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16055. To attempt to handle EINTR:
  16056. * src/SocketCore.cc
  16057. (isReadable): Added EINTR handling.
  16058. (isWritable): Added EINTR handling.
  16059. To improve the performance:
  16060. * src/AbstractCommand.cc
  16061. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16062. * src/PeerInteractionCommand.h
  16063. (receiveMessage): Renamed as receiveMessages().
  16064. (receiveMessages): New function.
  16065. * src/PeerInteractionCommand.cc
  16066. (executeInternal): receiveMessage loop is moved to new receiveMessages
  16067. () function. detectMessageFlooding() is moved here.
  16068. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  16069. (). The flooding detection for have message is comment out.
  16070. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  16071. Util::difftv().
  16072. (receiveMessage): Renamed as receiveMessages().
  16073. (receiveMessages): New function.
  16074. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  16075. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  16076. * src/SleepCommand.cc
  16077. (execute): Use Util::difftvsec() instead of Util::difftv().
  16078. * src/BitfieldMan.h
  16079. (getNthBitIndex): New function.
  16080. (hasMissingPiece): New function.
  16081. (getAllMissingIndexes): New function.
  16082. * src/BitfieldMan.cc
  16083. (countSetBit): Rewritten.
  16084. (getNthBitIndex): New function.
  16085. (getMissingIndexRandomly): Rewritten.
  16086. (hasMissingPiece): New function.
  16087. (getAllMissingIndexes): New function.
  16088. * src/TorrentMan.cc
  16089. (hasMissingPiece): New function.
  16090. (deleteUsedPiece): Rewritten using STL.
  16091. * src/PeerInteraction.cc
  16092. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  16093. is a little bit faster then TorrentMan::getMissingPieceIndex().
  16094. (addRequests): Updated the number of pending requests.
  16095. * src/PeerAbstractCommand.cc
  16096. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  16097. (execute): Returns true if TorrentMan::isHalt() is true.
  16098. Corrected the condition of upload limit checking.
  16099. * src/Util.h
  16100. (countBit): New function.
  16101. * src/Util.cc
  16102. (nbits): New variable.
  16103. (countBit): New function.
  16104. * src/DownloadEngine.h
  16105. (SockCmdMap): New type definition.
  16106. (waitData): Added an argument.
  16107. (addSocket): Added an argument.
  16108. (addSocketForReadCheck): Added an argument.
  16109. (addSocketForWriteCheck): Added an argument.
  16110. * src/DownloadEngine.cc
  16111. (run): Executes only commands whose sockets are ready to read or write.
  16112. All commands are executed in every 1 second.
  16113. (waitData): Calls select() again if it returned
  16114. EINTR.
  16115. (addSocket): Saves socket and command object pair to the map.
  16116. (deleteSocket): Deletes socket and command object pair from the map.
  16117. (addSocketForReadCheck): Added an argument.
  16118. (addSocketForWriteCheck): Added an argument.
  16119. * src/DownloadCommand.cc
  16120. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  16121. To send "event=stopped" to the tracker when the application finishes:
  16122. * src/PeerChokeCommand.h
  16123. (checkPoint): New variable.
  16124. * src/PeerChokeCommand.cc
  16125. (PeerChokeCommand): Added the initialization of checkPoint.
  16126. (execute): The interval check is now done by checkPoint, not
  16127. SleepCommand. Return true if TorrentMan::isHalt() is true.
  16128. * src/TorrentMan.h
  16129. (halt): New function.
  16130. (hasMissingPiece): New function.
  16131. (isHalt): New function.
  16132. (setHalt): New function.
  16133. * src/TorrentMan.cc
  16134. (TorrentMan): Added the initialization of halt.
  16135. * src/TorrentAutoSaveCommand.h
  16136. (checkPoint): New variable.
  16137. * src/PeerListenCommand.cc
  16138. (execute): Returns true if TorrentMan::isHalt() is true.
  16139. * src/main.cc
  16140. (setSignalHander): Added flags argument.
  16141. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  16142. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  16143. Removed printDownloadAbortMessage() after torrent downloading loop.
  16144. * src/TorrentAutoSaveCommand.cc
  16145. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  16146. (execute): Returns true if TorrentMan::isHalt() is true.
  16147. The interval check is now done by checkPoint, not SleepCommand.
  16148. * src/TrackerWatcherCommand.cc
  16149. (execute): If TorrentMan::isHalt(), then create a tracker request with
  16150. event=stopped.
  16151. * src/TrackerUpdateCommand.cc
  16152. (prepareForRetry): Do not use SleepCommand here.
  16153. (execute): Returns true if TorrentMan::isHalt() is true.
  16154. Others:
  16155. * src/TorrentMan.cc
  16156. (getMissingPieceIndex): Updated log message.
  16157. * src/PeerInteraction.cc
  16158. (createPeerMessag): Updated log message.
  16159. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16160. To add the ability to download several pieces in mix in a command and
  16161. increase the number of request slots according to request-cancel
  16162. latency:
  16163. * src/PeerInteractionCommand.cc
  16164. (executeInternal): The number of messages to be received at a time
  16165. is increased from 10 to 50.
  16166. * src/LogFactory
  16167. (getInstance): Added NullLogger.
  16168. * src/NullLogger.h: New class.
  16169. * src/BitfieldMan.h
  16170. (getMissingIndex): New function.
  16171. * src/BitfieldMan.cc
  16172. (getMissingIndex): New function.
  16173. * src/TorrentMan.h
  16174. (checkOutPiece): New function.
  16175. (getMissingPieceIndex): New function.
  16176. (getMissingFastPieceIndex): New function.
  16177. (getMissingFastPiece): New function.
  16178. * src/TorrentMan.cc
  16179. (updatePiece): Rewritten using STL.
  16180. (syncPiece): Rewritten using STL.
  16181. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  16182. checkOutPiece().
  16183. (getMissingPieceIndex): New function.
  16184. (getMissingFastPieceIndex): New function.
  16185. (getMissingFastPiece): New function.
  16186. (checkOutPiece): New function.
  16187. * src/PeerInteraction.h
  16188. (Pieces): New type definition.
  16189. (piece): Removed.
  16190. (pieces): New variable.
  16191. (getNewPieceAndSendInterest): Added the "piece" argument.
  16192. (abortPiece): Added the "piece" argument.
  16193. (abortAllPieces): New function.
  16194. (isInRequestSlot): New function.
  16195. (hasDownloadPiece): Added the "index" argument.
  16196. (setDownloadPiece): Removed.
  16197. (getDownloadPiece): Added the "index" argument.
  16198. (updatePiece): New function.
  16199. (createRequestMessage): Added the "index" argument.
  16200. * src/PeerInteraction.cc
  16201. (onChoked): Rewritten.
  16202. (abortPiece): Rewirtten.
  16203. (abortAllPieces): New function.
  16204. (deleteTimeoutRequestSlot): Rewritten.
  16205. Clarified code a little bit.
  16206. (deleteCompletedRequestSlot): Rewritten.
  16207. (isInRequestSlot): New function.
  16208. (syncPiece): Rewritten.
  16209. (updatePiece): New function.
  16210. (getNewPieceAndSendInterest): Rewritten.
  16211. (addRequests): Rewritten.
  16212. (getDownloadPiece): Rewritten.
  16213. (hasDownloadPiece): Rewritten.
  16214. (createRequestMessage): Added the "index" argument.
  16215. * src/common.h
  16216. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  16217. (DIV_FLOOR): New definition.
  16218. * src/PieceMessage.cc
  16219. (receivedAction): Update request-piece latency here.
  16220. * src/RequestSlot.h
  16221. (getLatencyInMillis): New function.
  16222. * src/RequestSlot.cc
  16223. (isTimeout): Rewritten using getLatencyInMillis.
  16224. (getLatencyInMillis): New function.
  16225. * src/Piece.h
  16226. (operator==): New function.
  16227. (getMissingBlockIndex): New function.
  16228. * src/Piece.cc
  16229. (operator==): New function.
  16230. (getMissingBlockIndex): New function.
  16231. * src/Peer.h
  16232. (DEFAULT_LATENCY): New definition.
  16233. (latency): New variable.
  16234. (updateLatency): New function.
  16235. (getLatency): New function.
  16236. * src/Peer.cc
  16237. (resetStatus): Reset latecy.
  16238. (updateLatency): New function.
  16239. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16240. * src/SocketCore.cc
  16241. (isReadable): Added secure to the condition.
  16242. * src/HttpConnection.cc
  16243. (receiveResponse): Fixed a bug that causes no response header
  16244. exception.
  16245. * src/Peer.h
  16246. (getFastSet): Fixed the return value type.
  16247. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16248. To remove a wait from download loop:
  16249. * src/DownloadEngine.cc
  16250. (run): Comment out shortSleep.
  16251. To rewrite the message handling:
  16252. * src/SimplePeerMessage.h: New class.
  16253. * src/SimplePeerMessage.cc: New class.
  16254. * src/CancelMessage.h: Derived from SimplePeerMessage.
  16255. (msg): New variable.
  16256. (create): New function.
  16257. (send): Removed.
  16258. (getMessage): New function.
  16259. (getMessageLength): New function.
  16260. * src/CancelMessage.cc
  16261. (create): New function.
  16262. (receivedAction): Replaced deleteRequestMessageInQueue with
  16263. rejectPieceMessageInQueue.
  16264. (send): Removed.
  16265. (getMessage): New function.
  16266. (getMessageLength): New function.
  16267. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  16268. (msg): New variable.
  16269. (msgLength): New variable.
  16270. (~BitfieldMessage): Deleted msg.
  16271. (send): Removed.
  16272. (getMessage): New function.
  16273. (getMessageLength): New function.
  16274. * src/BitfieldMessage.cc
  16275. (create): New function.
  16276. (send): Removed.
  16277. (getMessage): New function.
  16278. (getMessageLength): New function.
  16279. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  16280. (msg): New variable.
  16281. (sendPredicate): New function.
  16282. (onSendComplete): New function.
  16283. (send): Removed.
  16284. (getMessage): New function.
  16285. (getMessageLength): New function.
  16286. (create): New function.
  16287. * src/ChokeMessage.cc
  16288. (create): New function.
  16289. (send): Removed.
  16290. (sendPredicate): New function.
  16291. (getMessage): New function.
  16292. (getMessageLength): New function.
  16293. (onSendComplete): New function.
  16294. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  16295. (msg): New variable.
  16296. (send): Removed.
  16297. (getMessage): New function.
  16298. (getMessageLength): New function.
  16299. * src/KeepAliveMessage.cc
  16300. (send): Removed.
  16301. (getMessage): New function.
  16302. (getMessageLength): New function.
  16303. * src/PortMessage.h
  16304. (create): New function.
  16305. (receivedAction): Updated log message.
  16306. * src/PortMessage.cc: New file.
  16307. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  16308. (msg): New variable.
  16309. (sendPredicate): New function.
  16310. (onSendComplete): New function.
  16311. (create): New function.
  16312. (send): Removed.
  16313. (getMessage): New function.
  16314. (getMessageLength): New function.
  16315. * src/UnchokeMessage.cc
  16316. (create): New function.
  16317. (send): Removed.
  16318. (sendPredicate): New function.
  16319. (getMessage): New function.
  16320. (getMessageLength): New function.
  16321. (onSendComplete): New function.
  16322. * src/PieceMessage.h
  16323. (leftPieceDataLength): Removed.
  16324. (leftDataLength): New variable.
  16325. (headerSend): New variable.
  16326. (pendingCount): New variable.
  16327. (msgHeader): New variable.
  16328. (sendPieceData): New function.
  16329. (incrementPendingCount): New function.
  16330. (isPendingCountMax): New function.
  16331. (create): New function.
  16332. (getMessageHeader): New function.
  16333. (getMessageHeaderLength): New function.
  16334. * src/PieceMessage.cc
  16335. (create): New function.
  16336. (getMessageHeader): New function.
  16337. (getMessageHeaderLength): New function.
  16338. (send): Rewritten.
  16339. (sendPieceData): New function.
  16340. * src/HaveMessage.h: Derived from SimplePeerMessage.
  16341. (msg): New variable.
  16342. (create): New function.
  16343. (getMessage): New function.
  16344. (getMessageLength): New function.
  16345. * src/HaveMessage.cc
  16346. (create): New function.
  16347. (send): Removed.
  16348. (sendPieceData): New function.
  16349. (getMessage): New function.
  16350. (getMessageLength): New function.
  16351. * src/RequestMessage.h: Derived from SimplePeerMessage.
  16352. (msg): New variable.
  16353. (create): New function.
  16354. (send): Removed.
  16355. (getMessage): New function.
  16356. (getMessageLength): New function.
  16357. * src/RequestMessage.cc
  16358. (create): New function.
  16359. (receivedAction): Added the handling of fast extension.
  16360. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  16361. (send): Removed.
  16362. (getMessage): New function.
  16363. (getMessageLength): New function.
  16364. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  16365. (msg): New variable.
  16366. (sendPredicate): New function.
  16367. (onSendComplete): New function.
  16368. (create): New function.
  16369. (getMessage): New function.
  16370. (getMessageLength): New function.
  16371. * src/InterestedMessage.cc
  16372. (create): New function.
  16373. (send): Removed.
  16374. (sendPieceData): New function.
  16375. (getMessage): New function.
  16376. (getMessageLength): New function.
  16377. (onSendComplete): New function.
  16378. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  16379. (msg): New variable.
  16380. (sendPieceData): New function.
  16381. (onSendComplete): New function.
  16382. (create): New function.
  16383. (send): Removed.
  16384. (getMessage): New function.
  16385. (getMessageLength): New function.
  16386. * src/NotInterestedMessage.cc
  16387. (create): New function.
  16388. (send): Removed.
  16389. (sendPredicate): New function.
  16390. (getMessage): New function.
  16391. (getMessageLength): New function.
  16392. (onSendComplete): New function.
  16393. * src/AllowedFastMessage.h: New class.
  16394. * src/AllowedFastMessage.cc: New class.
  16395. * src/RejectMessage.h: New class.
  16396. * src/RejectMessage.cc: New class.
  16397. * src/SuggestPieceMessage.h: New class.
  16398. * src/SuggestPieceMessage.cc: New class.
  16399. * src/HaveAllMessage.h: New class.
  16400. * src/HaveAllMessage.cc: New class.
  16401. * src/HaveNoneMessage.h: New class.
  16402. * src/HaveNoneMessage.cc: New class.
  16403. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  16404. (msg): New variable.
  16405. (reserved): New variable.
  16406. (create): New function.
  16407. (getId): New function.
  16408. (receivedAction): New function.
  16409. (getMessage): New function.
  16410. (getMessageLength): New function.
  16411. (isFastExtensionSupported): New function.
  16412. * src/HandshakeMessage.cc
  16413. (HandshakeMessage): Moved here from HandshakeMessage.h.
  16414. (create): New function.
  16415. (getMessage): New function.
  16416. (getMessageLength): New function.
  16417. (toString): Added the output of reserved field.
  16418. (check): Added const qualifier.
  16419. (isFastExtensionSupported): New function.
  16420. * src/PeerMessageUtil.h
  16421. (createChokeMessage): Removed.
  16422. (createUnchokeMessage): Removed.
  16423. (createInterestedMessage): Removed.
  16424. (createNotInterestedMessage): Removed.
  16425. (createHaveMessage): Removed.
  16426. (createBitfieldMessage): Removed.
  16427. (createRequestMessage): Removed.
  16428. (createCancelMessage): Removed.
  16429. (createPieceMessage): Removed.
  16430. (createPortMessage): Removed.
  16431. (createChokeMessage): Removed.
  16432. (createUnchokeMessage): Removed.
  16433. (createInterestedMessage): Removed.
  16434. (createNotInterestedMessage): Removed.
  16435. (createHaveMessage): Removed.
  16436. (createBitfieldMessage): Removed.
  16437. (createRequestMessage): Removed.
  16438. (createCancelMessage): Removed.
  16439. (createPieceMessage): Removed.
  16440. (createKeepAliveMessage): Removed.
  16441. (createHandshakeMessage): Removed.
  16442. (setIntParam): New function.
  16443. (createPeerMessageString): New function.
  16444. * src/PeerMessageUtil.cc
  16445. (createChokeMessage): Removed.
  16446. (createUnchokeMessage): Removed.
  16447. (createInterestedMessage): Removed.
  16448. (createNotInterestedMessage): Removed.
  16449. (createHaveMessage): Removed.
  16450. (createBitfieldMessage): Removed.
  16451. (createRequestMessage): Removed.
  16452. (createCancelMessage): Removed.
  16453. (createPieceMessage): Removed.
  16454. (createPortMessage): Removed.
  16455. (createRequestMessage): Removed.
  16456. (createCancelMessage): Removed.
  16457. (createPieceMessage): Removed.
  16458. (createHaveMessage): Removed.
  16459. (createChokeMessage): Removed.
  16460. (createUnchokeMessage): Removed.
  16461. (createInterestedMessage): Removed.
  16462. (createNotInterestedMessage): Removed.
  16463. (createBitfieldMessage): Removed.
  16464. (createKeepAliveMessage): Removed.
  16465. (createHandshakeMessage): Removed.
  16466. (setIntParam): New function.
  16467. (createPeerMessageString): New function.
  16468. * src/PeerConnection.h
  16469. (peer): Removed.
  16470. (torrentMan): Removed.
  16471. (createNLengthMessage): Removed.
  16472. (setIntParam): Removed.
  16473. (writeOutgoingMessageLog): Removed all overloaded functions.
  16474. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16475. (sendMessage): New function.
  16476. (sendHandshake): Removed.
  16477. (sendKeepAlive): Removed.
  16478. (sendChoke): Removed.
  16479. (sendUnchoke): Removed.
  16480. (sendInterested): Removed.
  16481. (sendNotInterested): Removed.
  16482. (sendHave): Removed.
  16483. (sendBitfield): Removed.
  16484. (sendRequest): Removed.
  16485. (sendPiece): Removed.
  16486. (sendPieceHeader): Removed.
  16487. (sendPieceData): Removed.
  16488. (sendCancel): Removed.
  16489. (getPeer): Removed.
  16490. * src/PeerConnection.cc
  16491. (PeerConnection): Deleted peer and torrentMan from its arguments.
  16492. (sendHandshake): Removed.
  16493. (sendKeepAlive): Removed.
  16494. (createNLengthMessage): Removed.
  16495. (setIntParam): Removed.
  16496. (writeOutgoingMessageLog): Removed all overloaded functions.
  16497. (sendChoke): Removed.
  16498. (sendUnchoke): Removed.
  16499. (sendInterested): Removed.
  16500. (sendNotInterested): Removed.
  16501. (sendHave): Removed.
  16502. (sendBitfield): Removed.
  16503. (sendRequest): Removed.
  16504. (sendPiece): Removed.
  16505. (sendPieceHeader): Removed.
  16506. (sendPieceData): Removed.
  16507. (sendMessage): New function.
  16508. (sendCancel): Removed.
  16509. * src/PeerInteractionCommand.cc
  16510. (PeerInteractionCommand): Call setUploadLimit.
  16511. (executeInternal): Call setUploadLimit.
  16512. Added the handling of "inProgress" state of handshake message.
  16513. Call sendBitfield() or sendAllowdFast() instead of deprecated
  16514. sendNow().
  16515. (keepAlive): Call addMessage and sendMessage instead of deprecated
  16516. sendNow().
  16517. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  16518. * src/TorrentMan.h
  16519. (PEER_ID_LENGTH): New definition.
  16520. (hasAllPieces): New function.
  16521. * src/TorrentMan.cc
  16522. (getMissingPiece): Added the handling of fast extension.
  16523. (cancelPiece): Call updatePiece().
  16524. (hasAllPieces): New function.
  16525. * src/PeerInteraction.h
  16526. (fastSet): New variable.
  16527. (getNewPieceAndSendInterest): Changed the return type to void.
  16528. (send): Renamed as sendMessages.
  16529. (deleteAllRequestSlot): Removed.
  16530. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16531. (cancelAllRequest): Removed all overloaded functions.
  16532. (deleteAllRequestSlot): Removed.
  16533. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16534. (rejectPieceMessageInQueue): New function.
  16535. (rejectAllPieceMessageInQueue): New function.
  16536. (onChoked): New function.
  16537. (isSendingMessageInProgress): New function.
  16538. (getCorrespondingRequestSlot): Changed its arguments.
  16539. (isInFastSet): New function.
  16540. (addFastSetIndex): New function.
  16541. (addRequests): New function.
  16542. (sendNow): Removed.
  16543. (trySendNow): Removed.
  16544. (sendBitfield): New function.
  16545. (sendAllowdFast): New function.
  16546. (createHaveAllMessage): New function.
  16547. (createHaveNoneMessage): New function.
  16548. (createRejectMessage): New function.
  16549. (createAllowedFastMessage): New function.
  16550. * src/PeerInteraction.cc
  16551. (send): Renamed as sendMessages.
  16552. (sendMessages): New function.
  16553. (MsgPushBack): New class.
  16554. (isSendingMessageInProgress): New function.
  16555. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  16556. (rejectAllPieceMessageInQueue): New function.
  16557. Added the handling of fast extension.
  16558. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  16559. (rejectPieceMessageInQueue): New function.
  16560. Added the handling of fast extension.
  16561. (deleteRequestSlot): Replaced for loop with std::find.
  16562. (onChoked): New function.
  16563. (deleteAllRequestSlot): Removed.
  16564. (abortPiece): Rewirtten.
  16565. (deleteTimeoutRequestSlot): Updated log messages.
  16566. (getCorrespondingRequestSlot): Changed its arguments.
  16567. (cancelAllRequest): Removed all overloaded functions.
  16568. (receiveHandshake): Added the check to see whether an incoming peer
  16569. supports fast extension.
  16570. (createHandshakeMessage): Use HandshakeMessage::create instead of
  16571. PeerMessageUtil.
  16572. (createPeerMessage): Use create() of each message class instead of
  16573. PeerMessageUtil.
  16574. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  16575. AllowedFastMessage were added.
  16576. (getNewPieceAndSendInterest): Changed its return value type to void.
  16577. Added the handling of fast extension.
  16578. (addRequests): New function.
  16579. (sendNow): Removed.
  16580. (sendHandshake): Rewritten.
  16581. (trySendNow): Removed.
  16582. (sendBitfield): New function.
  16583. (sendAllowdFast): New function.
  16584. (isInFastSet): New function.
  16585. (addFastSetIndex): New function.
  16586. (createRequestMessage): Use RequestMessage::create instead of
  16587. PeerMessageUtil.
  16588. (createCancelMessage): Use CancelMessage::create instead of
  16589. PeerMessageUtil.
  16590. (createPieceMessage): Use PieceMessage::create instead of
  16591. PeerMessageUtil.
  16592. (createHaveMessage): Use HaveMessage::create instead of
  16593. PeerMessageUtil.
  16594. (createChokeMessage): Use ChokeMessage::create instead of
  16595. PeerMessageUtil.
  16596. (createUnchokeMessage): Use UnchokeMessage::create instead of
  16597. PeerMessageUtil.
  16598. (createInterestedMessage): Use InterestedMessage::create instead of
  16599. PeerMessageUtil.
  16600. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  16601. of PeerMessageUtil.
  16602. (createBitfieldMessage): Use BitfieldMessage::create instead of
  16603. PeerMessageUtil.
  16604. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  16605. PeerMessageUtil.
  16606. (createHaveAllMessage): New function.
  16607. (createHaveNoneMessage): New function.
  16608. (createRejectMessage): New function.
  16609. (createAllowedFastMessage: New function.
  16610. * src/Util.h
  16611. (sha1Sum): New function.
  16612. (computeFastSet): New function.
  16613. * src/Util.cc
  16614. (sha1Sum): New function.
  16615. (computeFastSet): New function.
  16616. * src/Peer.h
  16617. (fastExtensionEnabled): New variable.
  16618. (fastSet): New variable.
  16619. (setAllBitfield): New function.
  16620. (setFastExtensionEnabled): New function.
  16621. (isFastExtensionEnabled): New function.
  16622. (addFastSetIndex): New function.
  16623. (getFastSet): New function.
  16624. (isInFastSet): New function.
  16625. (countFastSet): New function.
  16626. * src/Peer.cc
  16627. (isInFastSet): New function.
  16628. (addFastSetIndex): New function.
  16629. (setAllBitfield): New function.
  16630. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  16631. sockets.
  16632. * src/PeerAbstractCommand.cc
  16633. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  16634. and uploadLimit.
  16635. (execute): Changed the procedure of checking sockets. The upload speed
  16636. checking were added.
  16637. (setUploadLimit): New function.
  16638. (setUploadLimitCheck): New function.
  16639. * src/PeerAbstractCommand.h
  16640. (setUploadLimit): New function.
  16641. (setUploadLimitCheck): New function.
  16642. (uploadLimit): New variable.
  16643. (uploadLimitCheck): New variable.
  16644. To contact a tracker regularly:
  16645. * src/TrackerWatcherCommand.h (interval): New variable.
  16646. (checkPoint): New variable.
  16647. (TrackerWatcherCommand): Added interval argument.
  16648. * src/TrackerWatcherCommand.cc
  16649. (TrackerWatcherCommand): Initialized checkPoint.
  16650. (execute): Now a tracker is contacted in every specified period.
  16651. If peer list is not needed, send request with numwant=0.
  16652. * src/TrackerUpdateCommand.cc
  16653. (execute): Updated log messages.
  16654. * src/DownloadEngine.cc
  16655. (~DownloadEngine): Removed two asserts.
  16656. (waitData): Uncommented wfds. May be a bug fix.
  16657. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16658. * src/PeerInteractionCommand.h
  16659. (checkInactiveConnection): Removed.
  16660. * src/PeerInteractionCommand.cc
  16661. (executeInternal): Removed following function calls:
  16662. detectMessageFlooding(), checkLongTimePeerChoking and
  16663. checkInactiveConnection().
  16664. (checkInactiveConnection): Removed.
  16665. (detectMessageFlooding): Removed function call to
  16666. checkInactiveConnection().
  16667. * src/PeerMessageUtil.h
  16668. (createChokeMessage): New function. Overload.
  16669. (createUnchokeMessage): New function. Overload.
  16670. (createInterestedMessage): New function. Overload.
  16671. (createNotInterestedMessage): New function. Overload.
  16672. (createHaveMessage): New function. Overload.
  16673. (createBitfieldMessage): New function. Overload.
  16674. (createRequestMessage): New function. Overload.
  16675. (createCancelMessage): New function. Overload.
  16676. (createPieceMessage): New function. Overload.
  16677. (createKeepAliveMessage): New function. Overload.
  16678. * src/PeerMessageUtil.cc
  16679. (createChokeMessage): New function. Overload.
  16680. (createUnchokeMessage): New function. Overload.
  16681. (createInterestedMessage): New function. Overload.
  16682. (createNotInterestedMessage): New function. Overload.
  16683. (createHaveMessage): New function. Overload.
  16684. (createBitfieldMessage): New function. Overload.
  16685. (createRequestMessage): New function. Overload.
  16686. (createCancelMessage): New function. Overload.
  16687. (createPieceMessage): New function. Overload.
  16688. (createKeepAliveMessage): New function. Overload.
  16689. * src/SendMessageQueue.cc
  16690. (createRequestMessage): Use PeerMessageUtil.
  16691. (createCancelMessage): Use PeerMessageUtil.
  16692. (createPieceMessage): Use PeerMessageUtil.
  16693. (createHaveMessage): Use PeerMessageUtil.
  16694. (createChokeMessage): Use PeerMessageUtil.
  16695. (createUnchokeMessage): Use PeerMessageUtil.
  16696. (createInterestedMessage): Use PeerMessageUtil.
  16697. (createNotInterestedMessage): Use PeerMessageUtil.
  16698. (createBitfieldMessage): Use PeerMessageUtil.
  16699. (createKeepAliveMessage): Use PeerMessageUtil.
  16700. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  16701. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  16702. * src/PeerInteraction.h: New class.
  16703. * src/PeerInteraction.cc: New class.
  16704. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  16705. Each peer message has its own class.
  16706. * src/PendingMessages.h: Removed.
  16707. * src/PendingMessages.cc: Removed. The sending process was moved to
  16708. each message class.
  16709. * src/RequestSlotMan.h: Removed.
  16710. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  16711. SendMessageQueue.
  16712. * src/RequestMessage.h: New class.
  16713. * src/RequestMessage.cc: New class.
  16714. * src/CancelMessage.h: New class.
  16715. * src/CancelMessage.cc: New class.
  16716. * src/BitfieldMessage.h: New class.
  16717. * src/BitfieldMessage.cc: New class.
  16718. * src/ChokeMessage.h: New class.
  16719. * src/ChokeMessage.cc: New class.
  16720. * src/KeepAliveMessage.h: New class.
  16721. * src/KeepAliveMessage.cc: New class.
  16722. * src/PortMessage.h: New class.
  16723. * src/UnchokeMessage.h: New class.
  16724. * src/UnchokeMessage.cc: New class.
  16725. * src/PieceMessage.h: New class.
  16726. * src/PieceMessage.cc: New class.
  16727. * src/HaveMessage.h: New class.
  16728. * src/HaveMessage.cc: New class.
  16729. * src/BitfieldMessage.h: New class.
  16730. * src/BitfieldMessage.cc: New class.
  16731. * src/NotInterestedMessage.h: New class.
  16732. * src/NotInterestedMessage.cc: New class.
  16733. * src/InterestedMessage.h: New class.
  16734. * src/InterestedMessage.cc: New class.
  16735. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  16736. (getSendMessageQueue): New function.
  16737. (setSendMessageQueue): New function.
  16738. * src/HandshakeMessage.cc: New class.
  16739. * src/PeerConnection.h (receiveMessage): Changed return value and
  16740. arguments.
  16741. (receiveHandshake): Changed return value and arguments.
  16742. * src/PeerConnection.cc (receiveMessage): Do not create message class
  16743. here.
  16744. (receiveHandshake): Do not create handshake class here.
  16745. * src/PeerInteractionCommand.h (peerConnection): Removed.
  16746. (piece): Removed.
  16747. (syncPiece): Removed.
  16748. (sendInterest): Removed.
  16749. (sendMessages): Removed.
  16750. (createRequestPendingMessage): Removed.
  16751. (checkPieceHash): Removed.
  16752. (erasePieceOnDisk): Removed.
  16753. (getNewPieceAndSendInterest): Removed.
  16754. (onGotNewPice): Removed.
  16755. (onGotWrongPiece): Removed.
  16756. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  16757. Removed peerConnection, piece.
  16758. (~PeerInteractionCommand): Removed peerConnection.
  16759. (executeInternal): Use sendMessageQueue instead of peerConnection.
  16760. (syncPiece): Moved to SendMessageQueue.
  16761. (decideChoking): Removed PendingMessage.
  16762. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  16763. The action after receiving peer message was moved to each message
  16764. class.
  16765. (onGotNewPice): Moved to SendMessageQueue.
  16766. (onGotWrongPiece): Moved to SendMessageQueue.
  16767. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  16768. (sendInterest): Moved to SendMessageQueue.
  16769. (createRequestPendingMessage): Removed.
  16770. (sendMessages): Moved to SendMessageQueue.
  16771. (onAbort): Use SendMessageQueue::abortPiece()
  16772. (keepAlive): Use sendMessageQueue instead of peerConnection.
  16773. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  16774. (checkPieceHash): Moved to SendMessageQueue.
  16775. (erasePieceOnDisk): Moved to SendMessageQueue.
  16776. * src/PeerMessageUtil.h
  16777. (createBitfieldMessage): Removed.
  16778. (createHaveMessage): Changed return value and arguments.
  16779. (createBitfieldMessage): Changed return value and arguments.
  16780. (createRequestCancelMessage): Removed.
  16781. (createPieceMessage): Changed return value and arguments.
  16782. (getShortIntParam): New function.
  16783. (checkIndex): Changed arguments.
  16784. (checkBegin): Changed arguments.
  16785. (checkLength): Changed arguments.
  16786. (checkPieceOffset): Removed.
  16787. (checkRange): New function.
  16788. (checkBitfield): Changed arguments.
  16789. (createPeerMessage): Removed.
  16790. (checkIntegrity): Removed.
  16791. (createHandshakeMessage): Changed arguments.
  16792. (createChokeMessage): New function.
  16793. (createUnchokeMessage): New function.
  16794. (createInterestedMessage): New function.
  16795. (createNotInterestedMessage): New function.
  16796. (createRequestMessage): New function.
  16797. (createCancelMessage): New function.
  16798. (createPortMessage): New function.
  16799. * src/PeerMessageUtil.cc
  16800. (createBitfieldMessage): Removed.
  16801. (createHaveMessage): Changed return value and arguments.
  16802. (createBitfieldMessage): Changed return value and arguments.
  16803. (createRequestCancelMessage): Removed.
  16804. (createPieceMessage): Changed return value and arguments.
  16805. (getShortIntParam): New function.
  16806. (checkIndex): Changed arguments.
  16807. (checkBegin): Changed arguments.
  16808. (checkLength): Changed arguments.
  16809. (checkPieceOffset): Removed.
  16810. (checkRange): New function.
  16811. (checkBitfield): Changed arguments.
  16812. (createPeerMessage): Removed.
  16813. (checkIntegrity): Removed.
  16814. (createHandshakeMessage): Changed arguments.
  16815. (createChokeMessage): New function.
  16816. (createUnchokeMessage): New function.
  16817. (createInterestedMessage): New function.
  16818. (createNotInterestedMessage): New function.
  16819. (createRequestMessage): New function.
  16820. (createCancelMessage): New function.
  16821. (createPortMessage): New function.
  16822. * src/PeerMessage.h
  16823. (id): Removed.
  16824. (index): Removed.
  16825. (begin): Removed.
  16826. (length): Removed.
  16827. (bitfield): Removed.
  16828. (bitfieldLength): Removed.
  16829. (block): Removed.
  16830. (blockLength): Removed.
  16831. (inProgress): New variable.
  16832. (cuid): New variable.
  16833. (peer): New variable.
  16834. (sendMessageQueue): New variable.
  16835. (logger): New variable.
  16836. (setBitfield): Removed.
  16837. (getBitfield): Removed.
  16838. (setBlock): Removed.
  16839. (getBlock): Removed.
  16840. (getBitfieldLength): Removed.
  16841. (getBlockLength): Removed.
  16842. (isInProgress): New function.
  16843. (toString): Made pure virtual.
  16844. (check): New function.
  16845. (send): New function.
  16846. (receivedAction): New function.
  16847. (getId): Made pure virtual.
  16848. (setId): Removed.
  16849. (getIndex): Removed.
  16850. (setIndex): Removed.
  16851. (getBegin): Removed.
  16852. (setBegin): Removed.
  16853. (getLength): Removed.
  16854. (setLength): Removed.
  16855. (getCuid): New function.
  16856. (setCuid): New function.
  16857. (getPeer): New function.
  16858. (setPeer): New function.
  16859. (getSendMessageQueue): New function.
  16860. (setSendMessageQueue): New function.
  16861. (ID): Removed.
  16862. * src/PeerMessage.cc
  16863. (setBitfield): Removed.
  16864. (setBlock): Removed.
  16865. (toString): Removed.
  16866. * src/TorrentMan.h
  16867. (getPieceLength): New function.
  16868. (getPieceLength): New function.
  16869. * src/SendMessageQueue.h
  16870. (REQUEST_TIME_OUT): New definition.
  16871. (RequestSlots): New definition.
  16872. (MessageQueue): New definition.
  16873. (requestSlotMan): Removed.
  16874. (pendingMessages): Removed.
  16875. (requestSlots): New variable.
  16876. (messageQueue): New variable.
  16877. (torrentMan): New variable.
  16878. (peerConnection): New variable.
  16879. (peer): New variable.
  16880. (piece): New variable.
  16881. (getNewPieceAndSendInterest): New function.
  16882. (createPeerMessage): New function.
  16883. (createHandshakeMessage): New function.
  16884. (send): Made private.
  16885. (setPeerMessageCommonProperty): New function.
  16886. (deleteAllRequestSlot): New function.
  16887. (deleteRequestMessageInQueue): New function.
  16888. (cancelAllRequest): Made private.
  16889. (cancelAllRequest): Made private.
  16890. (countRequestSlot): Made private.
  16891. (addPendingMessage): Removed.
  16892. (deletePendingPieceMessage): Removed.
  16893. (deletePendingRequestMessage): Removed.
  16894. (addMessage): New function.
  16895. (deletePieceMessageInQueue): New function.
  16896. (deleteTimeoutRequestSlot): Changed argument.
  16897. (deleteCompletedRequestSlot): Changed argument.
  16898. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  16899. (getCorrespondingRequestSlot): New function.
  16900. (countPendingMessage): Removed.
  16901. (countMessageInQueue): New function.
  16902. (getTorrentMan): New function.
  16903. (getPeerConnection): New function.
  16904. (hasDownloadPiece): New function.
  16905. (getDownloadPiece): New function.
  16906. (setDownloadPiece): New function.
  16907. (syncPiece): New function.
  16908. (sendMessages): New function.
  16909. (sendNow): New function.
  16910. (trySendNow): New function.
  16911. (abortPiece): New function.
  16912. (sendHandshake): New function.
  16913. (receiveMessage): New function.
  16914. (receiveHandshake): New function.
  16915. (createRequestMessage): New function.
  16916. (createCancelMessage): New function.
  16917. (createPieceMessage): New function.
  16918. (createHaveMessage): New function.
  16919. (createChokeMessage): New function.
  16920. (createUnchokeMessage): New function.
  16921. (createInterestedMessage): New function.
  16922. (createNotInterestedMessage): New function.
  16923. (createBitfieldMessage): New function.
  16924. (createKeepAliveMessage): New function.
  16925. * src/SendMessageQueue.cc
  16926. (SendMessageQueue): Removed requestSlotMan.
  16927. Instantiated peerConnection here.
  16928. (~SendMessageQueue): Removed requestSlotMan.
  16929. Added deletion of peerConnection and the contents of messageQueue.
  16930. (send): Updated according to the change of messageQueue.
  16931. (addPendingMessage): Renamed to addMessage.
  16932. (addMessage): New function.
  16933. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  16934. (deletePieceMessageInQueue): New function.
  16935. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  16936. (deleteRequestMessageInQueue): New function.
  16937. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  16938. here.
  16939. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  16940. (...) was moved here.
  16941. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  16942. moved here.
  16943. (deleteCompletedRequestSlot):
  16944. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  16945. (getCorrespondingRequestSlot):
  16946. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  16947. And renamed to getCorrespondingRequestSlot, correcting a typo.
  16948. (countPendingMessage): Renamed to countMessageInQueue.
  16949. (countMessageInQueue): New function.
  16950. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  16951. (receiveHandshake): New function.
  16952. (createHandshakeMessage): New function.
  16953. (receiveMessage): New function.
  16954. (createPeerMessage): New function.
  16955. (syncPiece): New function.
  16956. (getNewPieceAndSendInterest): New function.
  16957. (sendMessages): New function.
  16958. (sendNow): New function.
  16959. (trySendNow): New function.
  16960. (sendHandshake): New function.
  16961. (abortPiece): New function.
  16962. (getDownloadPiece): New function.
  16963. (getPeerMessageCommonProperty): New function.
  16964. (createRequestMessage): New function.
  16965. (createCancelMessage): New function.
  16966. (createPieceMessage): New function.
  16967. (createHaveMessage): New function.
  16968. (createChokeMessage): New function.
  16969. (createUnchokeMessage): New function.
  16970. (createInterestedMessage): New function.
  16971. (createNotInterestedMessage): New function.
  16972. (createBitfieldMessage): New function.
  16973. (createKeepAliveMessage): New function.
  16974. To add simple Content-Disposition support:
  16975. * src/HttpResponseCommand.h (determinFilename): New function.
  16976. * src/HttpResponseCommand.cc (executeInternal):
  16977. Use determinFilename(headers) instead of req->getFile() when comparing
  16978. filename.
  16979. (determinFilename): New function.
  16980. (handleDefaultEncoding): Use determinFilename(headers) instead of
  16981. req->getFile().
  16982. (handleOtherEncoding): Use determinFilename(headers) instead of
  16983. req->getFile().
  16984. * src/Util.h (getContentDispositionFilename): New function.
  16985. * src/Util.cc (getContentDispositionFilename): New function.
  16986. * src/LogFactory.h (release): New function.
  16987. * src/LogFactory.cc (release): New function.
  16988. To fix a bug that causes out-of-bound exception when HTTP status
  16989. line is wrong:
  16990. * src/HttpConnection.cc (receiveResponse): Added a check for header
  16991. size.
  16992. * src/common.h (Deleter): New class.
  16993. * src/SegmentMan.cc
  16994. (~SegmentMan): Added deletion of splitter and diskWriter.
  16995. * src/DownloadEngine.h
  16996. (Commands): Use deque.
  16997. (clearQueue): New function.
  16998. * src/DownloadEngine.cc
  16999. (~DownloadEngine): Added deletion of segmentMan.
  17000. (cleanQueue): New function.
  17001. * src/TorrentDownloadEngine.h
  17002. (TorrentDownloadEngine): The implementation was moved to
  17003. TorrentDownloadEngine.cc.
  17004. (~TorrentDownloadEngine): The implementation was moved to
  17005. TorrentDownloadEngine.cc.
  17006. * src/TorrentDownloadEngine.cc
  17007. (~TorrentDownloadEngine): Added deletion of torrentMan.
  17008. * src/main.cc
  17009. (clearRequest): Removed.
  17010. (handler): Added deletion of e.
  17011. (torrentHandler): Added deletion of te.
  17012. (main): Do not share splitter.
  17013. Use Deleter instead of clearRequest.
  17014. Deletion of classes were updated.
  17015. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17016. * src/main.cc (main): Fixed typo.
  17017. * src/message.h: Fixed typo.
  17018. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  17019. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17020. To add --select-file command-line option:
  17021. * src/Util.cc
  17022. (unfoldRange): New function.
  17023. (getNum): New function.
  17024. (unfoldSubRange): New function
  17025. * src/main.cc
  17026. (showUsage): Added help message.
  17027. (main): Added --select-file command-line option. Updated the layout of
  17028. file listing.
  17029. * src/common.h
  17030. (Integers): New definition.
  17031. * src/SocketCore.cc
  17032. (writeData): Removed timeout argument.
  17033. (readData): Removed timeout argument.
  17034. (peekData): Removed timeout argument.
  17035. * src/Socket.cc
  17036. (writeData): Removed timeout argument.
  17037. (readData): Removed timeout argument.
  17038. (peekData): Removed timeout argument.
  17039. * Release 0.4.1
  17040. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17041. To deploy upload rate based choking algorithm:
  17042. * src/PeerInteractionCommand.cc
  17043. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  17044. peer currently used.
  17045. (decideChoking): Deleted the choke/unchoke decision algorithm when
  17046. download completes. Simplified.
  17047. (receiveMessage): Updated.
  17048. * src/TorrentMan.h
  17049. (activePeers): New variable.
  17050. (addActivePeer): New function.
  17051. (getActivePeers): New function.
  17052. (deleteActivePeer): New function.
  17053. * src/TorrentMan.cc
  17054. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  17055. * src/PeerAbstractCommand.cc
  17056. (onAbort): Use peer->resetStatus().
  17057. * src/main.cc
  17058. (PeerChokeCommand.h): Included.
  17059. (main): Added the instance of ChokingCommand to the command queue.
  17060. * src/Peer.h
  17061. (amChoking): Renamed from amChocking
  17062. (chokingRequired): New variable.
  17063. (optUnchoking): New variable.
  17064. (deltaUpload): New variable.
  17065. (deltaDownload): New variable.
  17066. (addDeltaUpload): New function.
  17067. (resetDeltaUpload): New function.
  17068. (addDeltaDownload): New function.
  17069. (resetDeltaDownload): New function.
  17070. (addPeerUpload): Added a call to addDeltaUpload.
  17071. (addPeerDownload): Added a call to addDeltaDownload.
  17072. * src/Peer.cc
  17073. (shouldBeChoking): Renamed from shouldChoke.
  17074. (resetStatus): New function.
  17075. * src/PeerChokeCommand.h: New class.
  17076. * src/PeerChokeCommand.cc: New class.
  17077. To add lazy upload speed limiter:
  17078. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  17079. statistics calculation to TorrentDownloadEngine.
  17080. * src/TorrentConsoleDownloadEngine.cc
  17081. (sendStatistics): Renamed from printStatistics.
  17082. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  17083. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  17084. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  17085. * src/TorrentDownloadEngine.h: Added the variables for statistics
  17086. calculation.
  17087. (sendStatistics): New function as pure virtual function.
  17088. (getUploadSpeed): New function.
  17089. * src/TorrentDownloadEngine.cc
  17090. (initStatistics): New function.
  17091. (calculateSpeed): New function.
  17092. (calculateStatistics): New function.
  17093. * src/SendMessageQueue.h
  17094. (uploadLength): New variable.
  17095. (send): Added an argument.
  17096. (setUploadLimit): New function.
  17097. (getUploadLimit): New function.
  17098. * src/SendMessageQueue.cc
  17099. (send): Added upload speed limiter.
  17100. * src/prefs.h
  17101. (PREF_UPLOAD_LIMIT): New definition.
  17102. * src/PeerInteractionCommand.cc
  17103. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  17104. * src/main.cc
  17105. (main): Added --upload-limit option
  17106. For bug fixes:
  17107. * src/main.cc
  17108. (showUsage): Corrected --listen-port help
  17109. Other changes:
  17110. * src/TorrentMan.cc
  17111. (getPeer): Return nullPeer if connection is grather than
  17112. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  17113. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17114. To add some useful information to the exception message:
  17115. * src/SocketCore.cc : Updated messages.
  17116. * src/SegmentMan.cc :
  17117. * src/TorrentMan.cc : Updated messages.
  17118. * src/MultiDiskWriter.cc : Updated messages.
  17119. * src/Util.cc : Updated messages.
  17120. * src/AbstractDiskWriter.cc : Updated messages.
  17121. * src/PreAllocationDiskWriter.cc : Updated messages.
  17122. * src/message.cc : Added new messages. Updated some messages.
  17123. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  17124. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  17125. Updated threshold from 30 to 15.
  17126. * src/AbstractDiskWriter.h (filename): New variable.
  17127. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  17128. (createFile): Assigned filename.
  17129. * src/main.cc: Updated the help message for http-auth-scheme.
  17130. * Release 0.4.0
  17131. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17132. To add TrackerUpdateCommand with which replaces
  17133. CompactTrackerResponseProcessor:
  17134. * src/TrackerWatcherCommand.h (req): Removed.
  17135. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  17136. if the number of peer connections are less than 30.
  17137. * src/ByteArrayDiskWriter.h (readData): Implemented.
  17138. * src/SegmentMan.h (diskWriter): New function.
  17139. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  17140. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  17141. (main): Use TrackerUpdateCommand.
  17142. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  17143. (req): New variable.
  17144. (setTrackerResponseProcessor): Removed.
  17145. (getTrackerResponseProcessor): Removed.
  17146. (processTrackerResponse): Removed.
  17147. * src/DownloadEngine.h (diskWriter): Removed.
  17148. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  17149. to torrentMan->processTrackerResponse().
  17150. To add Util::expandBuffer:
  17151. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  17152. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  17153. * src/Util.h (expandBuffer): New function.
  17154. To fix the bug that causes segmentation fault when "-l ." is specified
  17155. in command-line option:
  17156. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  17157. (openFile): New function.
  17158. (closeFile): New function.
  17159. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  17160. (~SimpleLogger): Call closeFile();
  17161. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  17162. * src/main.cc (main): Added a check to see logger is configured
  17163. properly.
  17164. To enable HTTP authentication without specifying "--http-auth-scheme"
  17165. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  17166. * src/HttpConnection.cc (createRequest): Send Authorization header
  17167. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  17168. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  17169. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  17170. * src/Peer.cc (shouldChoke): Updated algorithm.
  17171. * src/message.h (EX_AUTH_FAILED): New definition.
  17172. (EX_FILE_OPEN): New definition.
  17173. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  17174. if status == 401.
  17175. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  17176. if req->isTorrent == true.
  17177. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  17178. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  17179. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  17180. (createFile): Updated message.
  17181. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17182. To add a readout of estimated remaining time to normal HTTP/FTP
  17183. downloads:
  17184. * src/ConsoleDownloadEngine.h (startup): New variable.
  17185. (startupLength): New variable.
  17186. (isStartupLengthSet): New variable.
  17187. (avgSpeed): New variable.
  17188. (eta): New variable.
  17189. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  17190. estimated remaining time.
  17191. (initStatistics): Initialized newly added variables.
  17192. (calculateStatistics): Calculate average speed and estimated remaining
  17193. time.
  17194. To decouple TorrentDownloadEngine from HttpResponseCommand:
  17195. * src/TrackerDownloadCommand.h: Removed.
  17196. * src/TrackerDownloadCommand.cc: Removed.
  17197. * src/TrackerInitCommand.h: Removed.
  17198. * src/TrackerInitCommand.cc: Removed.
  17199. * src/TrackerUpdateCommand.h: Removed.
  17200. * src/TrackerUpdateCommand.cc: Removed.
  17201. * src/TrackerWatcherCommand.cc (execute): The construction of request
  17202. url written in TrackerInitCommand was moved here. Do not create
  17203. tracker request command if torrentMan->trackers != 0.
  17204. * src/CompactTrackerResponseProcessor.h: New class.
  17205. * src/CompactTrackerResponseProcessor.cc: New class.
  17206. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  17207. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  17208. Decoupled TorrentDownloadEngine from this.
  17209. * src/SegmentMan.h (init): New function.
  17210. * src/SegmentMan.cc (init): New function.
  17211. * src/TorrentMan.h (responseProcessor): New variable.
  17212. (trackers): New variable.
  17213. (setTrackerResponseProcessor): New function.
  17214. (getTrackerResponseProcessor): New function.
  17215. (processTrackerResponse): New function.
  17216. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  17217. (processTrackerResponse): New function.
  17218. * src/main.cc (main): Use ByteArrayDiskWriter and
  17219. CompactTrackerResponseProcessor.
  17220. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  17221. processTrackerResponse().
  17222. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  17223. readout.
  17224. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  17225. which indicates download has completed.
  17226. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  17227. (closeFile): fd >= 0, not fd > 0
  17228. * src/main.cc (main): Added short cut for show-files.
  17229. Added short cut for torrent-file.
  17230. Added new command-line option listen-port.
  17231. Updated i18n messages.
  17232. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17233. To add LogFactory which creates singleton logger:
  17234. * src/LogFactory.h: New class.
  17235. * src/LogFactory.cc: New class.
  17236. * src/Command.h (logger): New variable.
  17237. (Constructor): Use LogFactory.
  17238. * src/AbstractCommand.cc: Use Command::logger
  17239. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  17240. Use LogFactory.
  17241. * src/SegmentSplitter.h : Made logger protected.
  17242. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  17243. * src/SegmentMan.cc (Constructor): Use LogFactory.
  17244. * src/DownloadEngine.h : Made logger protected.
  17245. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  17246. * src/PeerInteractionCommand.cc : Use Command::logger.
  17247. * src/HttpResponseCommand.cc : Use Command::logger.
  17248. * src/SegmentMan.h : Made logger private.
  17249. * src/TorrentMan.h : Made logger private.
  17250. * src/TorrentMan.cc : Use LogFactory.
  17251. * src/FtpNegotiateCommand.cc : Use Command::logger.
  17252. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  17253. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  17254. Use LogFactory.
  17255. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  17256. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  17257. Use LogFactory.
  17258. * src/DownloadCommand.cc : Use Command::logger.
  17259. * src/PeerAbstractCommand.cc : Use Command::logger.
  17260. * src/PeerListenCommand.cc : Use Command::logger.
  17261. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  17262. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  17263. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  17264. * src/TrackerWatcherCommand.cc : Use Command::logger.
  17265. * src/TrackerUpdateCommand.cc : Use Command::logger.
  17266. * src/TrackerDownloadCommand.cc : Use Command::logger.
  17267. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  17268. Use LogFactory.
  17269. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  17270. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  17271. Use LogFactory.
  17272. * src/main.cc (main): Use LogFactory.
  17273. * src/DiskAdaptor.h (logger): New variable.
  17274. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  17275. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  17276. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17277. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  17278. parameter to a tracker request.
  17279. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  17280. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  17281. * src/main.cc (setSignalHander): New function.
  17282. (main): Added a handler for SIGTERM.
  17283. (handler): Updated message.
  17284. (torrentHandler): Updated message.
  17285. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17286. * src/TorrentConsoleDownloadEngine.cc
  17287. (onPartialDownloadingCompletes): Renamed as
  17288. onSelectiveDownloadingCompletes.
  17289. (onSelectiveDownloadingCompletes): Updated message.
  17290. To add DiskAdaptor which abstract DiskWriter family:
  17291. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  17292. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  17293. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  17294. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  17295. MultiDiskAdaptor.h.
  17296. (readFileEntry): Changed its arguments.
  17297. (setup): setupDiskWriter is merged into this function.
  17298. (setupDiskWriter): Removed.
  17299. (setFileFilter): New function.
  17300. (readFileEntryFromMetaInfoFile): Updated according to the changes
  17301. made in readFileEntry.
  17302. (getFilePath): Removed.
  17303. (getTempFilePath): Removed.
  17304. (getSegmentFilePath): Updated due to the removal of getFilePath.
  17305. (fixFilename): Removed.
  17306. (copySingleFile): Removed.
  17307. (splitMultiFile): Removed.
  17308. (deleteTempFile): Removed.
  17309. (setFileEntriesToDownload): Removed.
  17310. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  17311. (isSelectiveDownloadingMode): New function.
  17312. (setAllMultiFileRequestedState): Removed.
  17313. (finishPartialDownloadingMode): Renamed as
  17314. finishSelectiveDownloadingMode.
  17315. (finishSelectiveDownloadingMode): New function.
  17316. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  17317. (getSelectedTotalLength): New function.
  17318. (onDownloadComplete): Use diskAdaptor.
  17319. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  17320. (Range): Removed.
  17321. (setMultiFileEntries): Renamed as setFileEntries.
  17322. (setFileEntries): New function.
  17323. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  17324. (pieceLength): New variable.
  17325. * src/main.cc (printDownloadCompeleteMessage): New function.
  17326. (torrentHandler): Use diskAdaptor instead of diskWriter.
  17327. (main): Renamed torrent-show-files to show-files.
  17328. Rewritten file contents listing.
  17329. * src/TorrentMan.h (FileEntry): Removed.
  17330. (multiFileTopDir): Removed.
  17331. (multiFileEntries): Removed.
  17332. (diskWriter): Removed.
  17333. (diskAdaptor): New variable.
  17334. * src/DefaultDiskWriter.h (totalLength): New variable.
  17335. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  17336. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  17337. diskWriter.
  17338. * src/TorrentConsoleDownloadEngine.h
  17339. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  17340. (partialTotalLength): Renamed as selectedTotalLength.
  17341. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  17342. openExistingFile, otherwise call initAndOpenFile.
  17343. (closeFile): fd > 0, not fd != 0.
  17344. * src/DirectDiskAdaptor.h: New class.
  17345. * src/DirectDiskAdaptor.cc: New class.
  17346. * src/MultiDiskAdaptor.h: New class.
  17347. * src/MultiDiskAdaptor.cc: New class.
  17348. * src/CopyDiskAdaptor.h: New class.
  17349. * src/CopyDiskAdaptor.cc: New class.
  17350. * src/DiskAdaptor.h: New class.
  17351. * src/DiskAdaptor.cc: New class.
  17352. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  17353. (PREF_SHOW_FILES): New definition.
  17354. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17355. To add the ability to download multi torrent into respective files
  17356. directly:
  17357. * src/DiskWriter.h (openFile): New function.
  17358. (seek): Removed.
  17359. * src/MultiDiskWriter.h: New class.
  17360. * src/MultiDiskWriter.cc: New class.
  17361. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  17362. protected.
  17363. (openFile): New function.
  17364. * src/AbstractDiskWriter.cc (openFile): New function.
  17365. * src/prefs.h (V_FALSE): New definition.
  17366. (PREF_DIRECT_FILE_MAPPING): New definition.
  17367. * src/TorrentMan.h (setupDiskWriter): New function.
  17368. (setAllMultiFileRequestedState): New function.
  17369. (onDownloadComplete): New function.
  17370. * src/TorrentMan.cc : Included MultiDiskWriter.h
  17371. (setupDiskWriter): New function.
  17372. (getFilePath): Updated.
  17373. (getTempFilePath): Updated.
  17374. (getSegmentFilePath): Updated.
  17375. (fixFilename): Updated.
  17376. (deleteTempFile): Updated.
  17377. (setAllMultiFileRequestedState): New function.
  17378. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  17379. (finishPartialDownloadingMode): Reset requested flags.
  17380. (onDownloadComplete): New function.
  17381. * src/main.cc: Added --direct-file-mapping option.
  17382. Use TorrentMan::setupDiskWriter().
  17383. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  17384. onDownloadComplete().
  17385. To fix ETA bug:
  17386. * src/Util.h (difftvsec): New function.
  17387. * src/Util.cc (difftvsec): New function.
  17388. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  17389. type of "elapsed" instead of long long int.
  17390. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  17391. The updates of statistics takes place every 1 seconds.
  17392. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  17393. (calculateSpeed): Changed its argument signature.
  17394. * src/PeerMessage.cc (toString): Fixed message.
  17395. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17396. To print ETA:
  17397. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  17398. completion handling when dealing with
  17399. TorrentMan::isPartialDownloadingMode() == true.
  17400. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  17401. New function.
  17402. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  17403. (sessionDownloadLength): New variable.
  17404. (avgSpeed): New variable.
  17405. (eta): New variable.
  17406. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  17407. new variables: eta, avgSpeed, startup.
  17408. (calculateSpeed): Calculate average speed and ETA.
  17409. (printStatistics): Added ETA.
  17410. * src/Util.h (secfmt): New function.
  17411. * src/Util.cc (secfmt): New function.
  17412. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17413. To detect "keep alive" flooding:
  17414. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  17415. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  17416. variable: keepAliveCount.
  17417. (detectMessageFlooding): Added "keep alive" flooding detection.
  17418. (receiveMessage): Increase keepAliveCount when "keep alive" message
  17419. received.
  17420. To add the ability to download only specified files in multi-file
  17421. torrent:
  17422. * src/BitfieldMan.h (filterBitfield): New variable.
  17423. (filterEnabled): New variable.
  17424. (setFilterBit): New function.
  17425. (enableFilter): New function.
  17426. (disableFilter): New function.
  17427. (isFilterEnabled): New function.
  17428. (getFilteredTotalLength): New function.
  17429. (getCompletedLength): New function.
  17430. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  17431. filterBitfield, filterEnabled.
  17432. (CopyConstructor): Added filterBitfield and filterEnabled.
  17433. (operator==): Added filterBitfield and filterEnabled.
  17434. (Destructor): Added filterBitfield.
  17435. (getMissingIndex): Use filterBitfield.
  17436. (getMissingUnusedIndex): Use filterBitfield.
  17437. (getFirstMissingUnusedIndex): Use filterBitfield.
  17438. (getFirstMissingUnusedIndex): Use filterBitfield.
  17439. (getAllMissingIndexes): Use filterBitfield.
  17440. (countMissingBlock): Use filterBitfield.
  17441. (countBlock): Use filterBitfield.
  17442. (setBitInternal): Added new argument on.
  17443. (setUseBit): Use setBitInternal.
  17444. (unsetUseBit): Use setBitInternal.
  17445. (setBit): Use setBitInternal.
  17446. (unsetBit): Use setBitInternal.
  17447. (isAllBitSet): Use filterBitfield.
  17448. (setFilterBit): New function.
  17449. (addFilter): New function.
  17450. (enableFilter): New function.
  17451. (disableFilter): New function.
  17452. (clearFilter): New function.
  17453. (isFilterEnabled): New function.
  17454. (getFilteredTotalLength): New function.
  17455. (getCompletedLength): New function.
  17456. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  17457. Initalized newly added variables.
  17458. [FileEntry](offset): New variable.
  17459. [FileEntry](extracted): New variable.
  17460. [FileEntry](requested): New variable.
  17461. (readFileEntry): New function.
  17462. (option): New variable.
  17463. (splitMultiFile): Removed const qualifier.
  17464. (fixFilename): Removed const qualifier.
  17465. (readFileEntryFromMetaInfoFile): New function.
  17466. (finishPartialDownloadingMode): New function.
  17467. (isPartialDownloadingMode): New function.
  17468. (setFileEntriesToDownload): New function.
  17469. (getCompletedLength): New function.
  17470. (getPartialTotalLength): New function.
  17471. * src/TorrentMan.cc (readFileEntry): New function.
  17472. (setup): Use readFileEntry. If no-preallocation option is specified,
  17473. use DefaultDiskWriter.
  17474. (readFileEntryFromMetaInfoFile): New function.
  17475. (fixFilename): Removed const qualifier.
  17476. (splitMultiFile): Removed const qualifier.
  17477. (setFileEntriesToDownload): New function.
  17478. (isPartialDownloadingMode): New function.
  17479. (finishPartialDownloadingMode): New function.
  17480. (getCompletedLength): New function.
  17481. (getPartialTotalLength): New function.
  17482. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  17483. New variable.
  17484. (partialTotalLength): New variable.
  17485. (downloadLength): New variable.
  17486. (totalLength): New variable.
  17487. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  17488. Added log.
  17489. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  17490. partialTotalLength, downloadLength, totalLength.
  17491. (calculate): Calculate downloadLength and totalLength.
  17492. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  17493. * src/main.cc (addCommand): Changed argument signature.
  17494. (main): Added new variable: args. Added new option "torrent-show-files"
  17495. "no-preallocation". Usage is not updated yet.
  17496. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17497. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  17498. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17499. Attempt to add the ability to listing file entries in a .torrent file.
  17500. This feature is not yet complete.
  17501. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  17502. * src/TorrentMan.cc (getMultiFileEntries): New function.
  17503. (getName): New function.
  17504. * src/TorrentMan.h (getMultiFileEntries): New function.
  17505. (getName): New function.
  17506. * src/main.cc (main): Use above 2 funtion.
  17507. * Release 0.3.2
  17508. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17509. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  17510. (detectMessageFlooding): Updated threshold value.
  17511. (checkLongTimePeerChoking): Updated timeout value.
  17512. (getNewPieceAndSendInterest): Added debug log.
  17513. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  17514. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  17515. (getPeer): Updated.
  17516. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  17517. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  17518. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  17519. is localhost.
  17520. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  17521. * src/PendingMessage.cc (processMessage): Not to send piece message
  17522. if peer is not interested in the pieces localhost has.
  17523. * src/Peer.cc (shouldChoke): Updated.
  17524. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  17525. * src/Util.cc (isPowerOf): New function.
  17526. * src/Util.h (isPowerOf): New function.
  17527. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  17528. whether or not it is power of 2.
  17529. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17530. Added new class SendMessageQueue that includes PendingMessages and
  17531. RequestSlotMan.
  17532. * src/SendMessageQueue.h: New class.
  17533. * src/SendMessageQueue.cc: New class.
  17534. * src/PendingMessage.h: Added new member variable blockIndex and its
  17535. accessors.
  17536. (createRequestMessage): Updated.
  17537. * src/PendingMessage.cc (createRequestMessage): Updated.
  17538. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  17539. SendMessageQueue.
  17540. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  17541. (receiveMessage): Updated with SendMessageQueue.
  17542. (deletePendingPieceMessage): Removed.
  17543. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  17544. (sendInterest): Updated with SendMessageQueue.
  17545. (createRequestPendingMessage): Updated with SendMessageQueue.
  17546. (sendMessages): Updated with SendMessageQueue.
  17547. (onAbort): Updated with SendMessageQueue.
  17548. (keepAlive): Updated with SendMessageQueue.
  17549. (beforeSocketCheck): Updated SendMessageQueue.
  17550. * src/PeerInteractionCommand (sendMessages): Shuffle
  17551. missingBLockIndexes before using it.
  17552. Added its own timeout for peer connection.
  17553. * src/PeerAbstractCommand.h: Added member variable timeout and its
  17554. setter.
  17555. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  17556. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  17557. Added setTimeout() call.
  17558. (executeInternal): Added setTimeout() call.
  17559. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  17560. Added timeout.
  17561. (isTimeoutDetected): Updated.
  17562. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  17563. option.
  17564. Added *simple* message flooding checker.
  17565. * src/PeerInteractionCommand.cc (executeInternal):
  17566. Added detectMessageFlooding() call.
  17567. (detectMessageFlooding): New function.
  17568. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  17569. (beforeSocketCheck): Added detectMessageFlooding() call.
  17570. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  17571. chokeUnchokeCount, haveCount, detectMessageFlooding().
  17572. Removed deletePendingPieceMessage(), getRequestSlot(),
  17573. deleteRequestSlot(), deleteAllRequestSlot().
  17574. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  17575. Added checkLongTimePeerChoking() call.
  17576. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  17577. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  17578. if duplicate == false.
  17579. The parameter "uploaded" and "downloaded" in the tracker request are
  17580. the size since the client sent the "started" event to the tracker.
  17581. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  17582. uploaded size to preDownloadedSize, preUploadedSize respectively.
  17583. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  17584. getSessionDownloadedSize(), getSessionUploadedSize().
  17585. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  17586. getSessionUploadedSize() instead of getDownloadedSize(),
  17587. getUploadedSize().
  17588. * src/PendingMessage.cc (processMessage): Do not send request message
  17589. if the peer is choking the client.
  17590. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  17591. less than interval.
  17592. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17593. * configure.in: Added gnutls support. Added several CPP macros.
  17594. * m4/openssl.m4: Added.
  17595. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  17596. readData(), peekData(). Added gnutls support.
  17597. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  17598. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  17599. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  17600. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  17601. Instead, added a check for whether setup method has executed
  17602. successfully.
  17603. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  17604. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  17605. * src/Makefile.am: Updated.
  17606. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  17607. using whether OpenSSL or gcrypt, depending on the result of configure
  17608. script.
  17609. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  17610. messageDigest.h.
  17611. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  17612. * src/PeerListenCommand.cc: Added log about port binded successfully.
  17613. Fixed memory leak.
  17614. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  17615. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  17616. Removed instantiation of TrackerInitCommand. Instead,
  17617. TrackerWatcherCommand is instantiated and pushed to the command queue.
  17618. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  17619. ENABLE_SSL.
  17620. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  17621. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  17622. If a piece is already acquired by another command, delete the request
  17623. slots for the piece.
  17624. * src/TrackerUpdateCommand.cc (execute):
  17625. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  17626. Added a check whether peer list is null.
  17627. Fixed the bug that causes sending completed event to the tracker
  17628. several times.
  17629. * src/TrackerInitCommand.cc (execute):
  17630. Fixed the bug that causes sending completed event to the tracker
  17631. several times.
  17632. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  17633. by using messageDigest.h.
  17634. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17635. * PeerConnection.cc: Replaced log message "keep-alive" with
  17636. "keep alive".
  17637. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  17638. localhost long time.
  17639. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  17640. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  17641. at most 100 failure entry from the list. If with duplicate = false,
  17642. MAX_PEER_LIST is not checked.
  17643. * PeerListenCommand.cc: Fixed the argument order of log message.
  17644. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17645. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  17646. Added warn().
  17647. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  17648. Implemented warn().
  17649. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  17650. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17651. * Request.h: Added AFTER_COMPLETED event.
  17652. * TorrentDownloadEngine.cc: Prints "Download complete" message
  17653. instead of downloaded size and progress(%) after download completes.
  17654. * PeerInteractionCommand.cc: After download completes, sends unchoke
  17655. message to the peer if it is interested in what localhost has
  17656. downloaded.
  17657. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  17658. destination instead of just renaming it.
  17659. * TorrentMan.cc: Added deleteTempFile().
  17660. * PeerAbstractCommand.cc: do not stop execution after download
  17661. completes. This makes localhost a seeder.
  17662. * Util.{h,cc}: Added fileCopy().
  17663. * PeerListenCommand.cc: do not stop execution after download completes.
  17664. This makes localhost a seeder.
  17665. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  17666. Added TorrentMan::deleteTempFile() to torrentHandler.
  17667. Initialized the variable dir as ".".
  17668. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  17669. Deleted renameSingleFile().
  17670. Added copySingleFile(), deleteTempFile().
  17671. * DownloadEngine.h: Added virtual function afterEachIteration().
  17672. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  17673. in onEndOfRun() to afterEachIteration().
  17674. In onEndOfRun(), changed if condition to check whether filenameFixed is
  17675. true.
  17676. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  17677. In rangedFileCopy(), added try-catch block to properly close file
  17678. descriptors.
  17679. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  17680. Added afterEachIteration(), isFilenameFixed().
  17681. * Peer.cc: Changed choking strategy.
  17682. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  17683. * TrackerInitCommand.cc: Send completed event only once.
  17684. * DownloadEngine.cc: Added a call to afterEachIteration().
  17685. * TrackerUpdateCommand.cc: Do not stop execution after download
  17686. completes.
  17687. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  17688. connect the peers at most MAX_PEER_UPDATE when a peer list is
  17689. received from a tracker.
  17690. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  17691. Decreased the number of failure peers to delete to 0(just comment out
  17692. the line).
  17693. * Release 0.3.1
  17694. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17695. * PeerInteractionCommand.cc: added a call to
  17696. TorrentMan::unadvertisePiece in Destructor.
  17697. * PeerInteractionCommand.cc: make have message sent immediately
  17698. if the size of pending message queue is zero.
  17699. * TorrentMan.cc: set the maximum size of peer list to 250.
  17700. * TorrentMan.h: changed the container type of Peers and UsedPieces
  17701. to deque.
  17702. * Util.cc: fixed rangedFileCopy.
  17703. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  17704. to Constructor. Also, moved digest cleanup to Destructor.
  17705. * MetaFileUtil.cc: fixed memory leak
  17706. * replaced std::vector with std::deque.
  17707. * AbstractCommand.cc: casted timeout value to long long int.
  17708. * ChunkedEncoding.cc: fixed memory leak.
  17709. * PeerInteractionCommand.cc: casted timeout value to long long int.
  17710. * SleepCommand.cc: casted timeout value to long long int.
  17711. * Data.cc: fixed memory leak.
  17712. * Data.cc: fixed toLLInt().
  17713. * BitfieldMan.cc: fixed memory leak.
  17714. * TorrentMan.cc: initialized storeDir to ".".
  17715. * TorrentMan.cc: fixed memory leak.
  17716. * TorrentMan.cc: corrected file paths of splitted files.
  17717. * PeerAbstractCommand.cc: casted timeout to long long int.
  17718. * main.cc: added delete(req) and delete(te->diskWriter).
  17719. * RequestSlot.cc: casted timeout value to long long int.
  17720. * Request.cc: fixed memory leak.
  17721. * PendingMessage.cc: make HAVE messages sent only when peer does not
  17722. have the piece.
  17723. * Peer.{h,cc}: added hasPiece(int index).
  17724. * main.cc: corrected addCommand.
  17725. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17726. * BitTorrent protocol support added.
  17727. * Release 0.3.0
  17728. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17729. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  17730. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17731. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  17732. decoding did not work properly.
  17733. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17734. * DownloadEngine.h: included sys/time.h
  17735. * DownloadEngine.cc: remove sys/time.h
  17736. * Makefile.am (SUBDIRS): Add intl.
  17737. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  17738. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17739. * main.cc: correct help message for --http-auth-scheme.
  17740. * main.cc: changed e-mail address for bug reports.
  17741. * ja.po: added japanese translation.
  17742. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17743. * SimpleLogger.cc: flush log file instead of stdout.
  17744. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17745. * main.cc: Fixed command-line option: max-tries
  17746. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  17747. does not equal to seg.sp.
  17748. * DownloadCommand.cc: If EOF is got from the server and the total size
  17749. of file is not zero, then throw DlRetryEx.
  17750. * main.cc: Set the minium value of min-segment-size to 1024.
  17751. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  17752. fails because of a regression since 0.2.0 release.
  17753. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17754. * HttpConnection.cc:
  17755. * common.h: defined the user agent name as macro
  17756. * DownloadEngine.{h, cc}:
  17757. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  17758. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  17759. * main.cc: Download complete/abort message is now generated by main.
  17760. * Makefile.am (SUBDIRS): Add m4.
  17761. (ACLOCAL_AMFLAGS): New variable.
  17762. (EXTRA_DIST): New variable.
  17763. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  17764. * gettext: added gettext functionality
  17765. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17766. * AbstractCommand.cc:
  17767. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  17768. unregister its cuid from SegmentMan.
  17769. * DownloadEngine.cc: .aria2 file was written when a downloading
  17770. failed with errors.
  17771. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  17772. Added "User-Agent" header to CONNECT proxy request.
  17773. Fixed "Proxy-Authorization" header. Now proxy authorization works
  17774. properly.
  17775. * Logger.h:
  17776. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  17777. * ChunkedEncoding.cc: Added #include directive for strings.h
  17778. * Release 0.2.1
  17779. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17780. * Util.{h,cc}: added startsWith().
  17781. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  17782. Util::endsWith().
  17783. * SocketCore.cc: struct addrinfo is now zero-initialized.
  17784. * common.h: added #include directive of limit.h.
  17785. * DownloadEngine.cc: added #include directive of sys/time.h and
  17786. algorithm.
  17787. * Exception.h: added #include directive of stdio.h.
  17788. * AbstractCommand.h: added #include directive of sys/time.h.
  17789. * DownloadCommand.h: added #include directive of sys/time.h.
  17790. * *.h: added #include directive of common.h to all base classes.
  17791. subclasses' one was removed.
  17792. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  17793. does not define these macros.
  17794. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17795. * Release 0.2.0
  17796. * main.cc:
  17797. * HttpInitiateConnectionCommand.{h,cc}:
  17798. * prefs.h:
  17799. * HttpConnection.{h,cc}: added --http-proxy-method option.
  17800. We can now use GET command in http proxy.
  17801. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17802. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  17803. that splits slowest segment of SegmentMan::commands vector.
  17804. This is the default split algorithm of aria2.
  17805. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  17806. that splits first segment of SegmentMan::commands vector.
  17807. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  17808. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  17809. * Segment.h:
  17810. * SegmentMan.cc: Added speed field to Segment.h
  17811. * main.cc: -s option now affects all URLs in command-line arguemtns.
  17812. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  17813. * message.h: Change file size related %d to %lld.
  17814. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17815. * FtpInitiateConnectionCommand.{h,cc}:
  17816. * FtpNegotiationCommand.{h,cc}:
  17817. * FtpDownloadCommand.{h,cc}:
  17818. * FtpConnection.{h,cc}: Added FTP support
  17819. * SimpleLogger.cc: Log message now includes time information.
  17820. * main.cc: The value of --http-auth-scheme option is chagned from
  17821. 'BASIC' to 'basic'
  17822. * main.cc: Added --timeout command-line option.
  17823. * main.cc: Added --min-segment-size command-line option.
  17824. * main.cc: Added --max-retries command-line option.
  17825. * prefs.h: option string constants are now defined in prefs.h
  17826. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17827. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  17828. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  17829. with version 0.1.0's one.
  17830. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  17831. * configure.in: Added --enable-ssl option to configure script.
  17832. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  17833. cannot permit absoluteURI as Request-URI.
  17834. * HttpConnection.cc: Added Referer support.
  17835. * main.cc: Added referer command-line option.
  17836. * main.cc: Added rety-wait command-line option.
  17837. * Exception.h: Fixed formating bug in Exception::setMsg()
  17838. * SocketCore.{h,cc}:
  17839. * Socket.{h, cc}:
  17840. * Request.cc:
  17841. * InitiateConnectionCommandFactory.cc:
  17842. * HttpRequestCommand.cc: Added HTTPS support.
  17843. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  17844. for SocketCore.
  17845. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  17846. size is wrong
  17847. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  17848. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  17849. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  17850. * Release 0.1.0