ChangeLog 566 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003
  1. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Documented max-concurrent-downloads of changeGlobalOption method
  3. in man page.
  4. * doc/aria2c.1.txt
  5. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Added max-concurrent-downloads option to changeGlobalOption
  7. xml-rpc method. Rewritten loop conditional in
  8. RequestGroupMan::fillRequestGroupFromReserver().
  9. * src/RequestGroupMan.cc
  10. * src/RequestGroupMan.h
  11. * src/XmlRpcMethod.cc
  12. * src/XmlRpcMethodImpl.cc
  13. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  14. Documented position parameter in man page.
  15. * doc/aria2c.1.txt
  16. 2009-05-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  17. Added 'position' parameter to addUri, addTorrent and addMetalink
  18. xml-rpc method.
  19. * src/RequestGroupMan.cc
  20. * src/RequestGroupMan.h
  21. * src/XmlRpcMethodImpl.cc
  22. * test/XmlRpcMethodTest.cc
  23. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Removed Peer.cc from compile source list when --disable-bittorrent
  25. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  26. takes Peer.
  27. * src/DefaultPieceStorage.cc
  28. * src/DefaultPieceStorage.h
  29. * src/Makefile.am
  30. * src/PieceStorage.h
  31. * src/UnknownLengthPieceStorage.cc
  32. * src/UnknownLengthPieceStorage.h
  33. * test/MockPieceStorage.h
  34. 2009-05-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Implemented getter methods in header files to give them more
  36. chance of optimization.
  37. Return const reference for SharadHandle if possible.
  38. * src/AbstractAuthResolver.cc
  39. * src/AbstractAuthResolver.h
  40. * src/AbstractBtMessage.cc
  41. * src/AbstractBtMessage.h
  42. * src/AbstractSingleDiskAdaptor.cc
  43. * src/AbstractSingleDiskAdaptor.h
  44. * src/AsyncNameResolver.cc
  45. * src/AsyncNameResolver.h
  46. * src/BNode.cc
  47. * src/BNode.h
  48. * src/BitfieldMan.cc
  49. * src/BitfieldMan.h
  50. * src/BtAbortOutstandingRequestEvent.h
  51. * src/BtExtendedMessage.cc
  52. * src/BtExtendedMessage.h
  53. * src/BtSeederStateChoke.cc
  54. * src/BtSeederStateChoke.h
  55. * src/Cookie.cc
  56. * src/Cookie.h
  57. * src/DHTBucket.cc
  58. * src/DHTBucket.h
  59. * src/DHTConnectionImpl.cc
  60. * src/DHTConnectionImpl.h
  61. * src/DHTFindNodeReplyMessage.cc
  62. * src/DHTFindNodeReplyMessage.h
  63. * src/DHTGetPeersReplyMessage.cc
  64. * src/DHTGetPeersReplyMessage.h
  65. * src/DHTInteractionCommand.cc
  66. * src/DHTMessage.cc
  67. * src/DHTMessage.h
  68. * src/DHTMessageDispatcherImpl.cc
  69. * src/DHTMessageEntry.cc
  70. * src/DHTMessageReceiver.cc
  71. * src/DHTMessageReceiver.h
  72. * src/DHTMessageTrackerEntry.cc
  73. * src/DHTMessageTrackerEntry.h
  74. * src/DHTPeerAnnounceEntry.cc
  75. * src/DHTPeerAnnounceEntry.h
  76. * src/DHTPeerLookupTask.cc
  77. * src/DHTPeerLookupTask.h
  78. * src/DHTRoutingTableDeserializer.cc
  79. * src/DHTRoutingTableDeserializer.h
  80. * src/DefaultBtAnnounce.cc
  81. * src/DefaultBtAnnounce.h
  82. * src/DefaultBtMessageDispatcher.cc
  83. * src/DefaultBtMessageDispatcher.h
  84. * src/DefaultBtRequestFactory.cc
  85. * src/DefaultBtRequestFactory.h
  86. * src/DiskAdaptor.cc
  87. * src/DiskAdaptor.h
  88. * src/DownloadContext.cc
  89. * src/DownloadContext.h
  90. * src/DownloadEngine.cc
  91. * src/DownloadEngine.h
  92. * src/EpollEventPoll.cc
  93. * src/EpollEventPoll.h
  94. * src/FtpConnection.cc
  95. * src/FtpConnection.h
  96. * src/HttpConnection.cc
  97. * src/HttpConnection.h
  98. * src/HttpHeader.cc
  99. * src/HttpHeader.h
  100. * src/HttpRequest.cc
  101. * src/HttpRequest.h
  102. * src/HttpResponse.cc
  103. * src/HttpResponse.h
  104. * src/LibsslTLSContext.cc
  105. * src/LibsslTLSContext.h
  106. * src/MSEHandshake.cc
  107. * src/MSEHandshake.h
  108. * src/MetalinkEntry.cc
  109. * src/MetalinkEntry.h
  110. * src/MetalinkParserController.cc
  111. * src/MetalinkParserController.h
  112. * src/MetalinkParserStateMachine.cc
  113. * src/MetalinkParserStateMachine.h
  114. * src/MultiDiskAdaptor.cc
  115. * src/MultiDiskAdaptor.h
  116. * src/NetrcAuthResolver.cc
  117. * src/NetrcAuthResolver.h
  118. * src/Peer.cc
  119. * src/Peer.h
  120. * src/PeerSessionResource.cc
  121. * src/PeerSessionResource.h
  122. * src/Piece.cc
  123. * src/Piece.h
  124. * src/PieceStatMan.cc
  125. * src/PieceStatMan.h
  126. * src/Request.cc
  127. * src/Request.h
  128. * src/RequestGroup.cc
  129. * src/RequestGroup.h
  130. * src/RequestGroupMan.cc
  131. * src/RequestGroupMan.h
  132. * src/RequestSlot.cc
  133. * src/RequestSlot.h
  134. * src/SegmentMan.cc
  135. * src/SegmentMan.h
  136. * src/SelectEventPoll.cc
  137. * src/SelectEventPoll.h
  138. * src/ServerStat.cc
  139. * src/ServerStat.h
  140. * src/Signature.cc
  141. * src/Signature.h
  142. * src/URIResult.cc
  143. * src/URIResult.h
  144. * src/UTPexExtensionMessage.cc
  145. * src/UTPexExtensionMessage.h
  146. 2009-05-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Fixed compile error without BitTorrent and Metalink support.
  148. * src/XmlRpcMethod.cc
  149. * src/XmlRpcMethodFactory.cc
  150. * src/XmlRpcMethodImpl.cc
  151. * src/XmlRpcMethodImpl.h
  152. * test/XmlRpcMethodTest.cc
  153. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Rewritten the help message for --allow-overwrite option.
  155. * doc/aria2c.1.txt
  156. * src/usage_text.h
  157. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  158. Fixed typo
  159. * doc/aria2c.1.txt
  160. * src/usage_text.h
  161. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  162. Updated README for 1.4.0 release. Use new table syntax of
  163. asciidoc.
  164. * README
  165. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  166. Documented --xml-rpc-max-request-size option in man page.
  167. * doc/aria2c.1.txt
  168. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Moved C_* constants from BtContext to DefaultBtContext.
  170. * src/BtContext.cc: Removed.
  171. * src/BtContext.h
  172. * src/DefaultBtContext.cc
  173. * src/DefaultBtContext.h
  174. * src/Makefile.am
  175. 2009-05-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Use name.utf-8 and path.utf-8 key in higher priority than name and
  177. path key respectively when persing .torrent file.
  178. * src/BtContext.cc
  179. * src/BtContext.h
  180. * src/DefaultBtContext.cc
  181. * test/DefaultBtContextTest.cc
  182. * test/utf8.torrent
  183. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Added --xml-rpc-max-request-size option to limit the size of
  185. XML-RPC request.
  186. 2009-05-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  187. Documented XML-RPC API in man page.
  188. * doc/aria2c.1.txt
  189. 2009-05-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  190. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  191. will break strict-aliasing rules
  192. * src/PeerConnection.cc
  193. * test/DHTRoutingTableSerializerTest.cc
  194. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  195. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  196. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  197. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  198. PKG_CHECK_MODULES macro uses latter name.
  199. * m4/sqlite3.m4
  200. * src/Makefile.am
  201. * test/Makefile.am
  202. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  203. Fixed typo
  204. * configure.ac
  205. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  207. presence of libgnutls using pkg-config first. If it fails, fall
  208. back to old macro libgnutls.m4.
  209. * configure.ac
  210. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  211. Use s itself instead of !s.bad()
  212. * src/CookieStorage.cc
  213. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  214. Documented --on-download-* option and --save-cookies option in man
  215. page.
  216. * doc/aria2c.1.txt
  217. 2009-05-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  218. Set possible values for --load-cookie option to "/path/to/file".
  219. * src/OptionHandlerFactory.cc
  220. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Added --save-cookies option.
  222. * src/Cookie.cc
  223. * src/Cookie.h
  224. * src/CookieStorage.cc
  225. * src/CookieStorage.h
  226. * src/MultiUrlRequestInfo.cc
  227. * src/OptionHandlerFactory.cc
  228. * src/prefs.cc
  229. * src/prefs.h
  230. * src/usage_text.h
  231. * test/CookieStorageTest.cc
  232. * test/CookieTest.cc
  233. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Removed tellAll XML-RPC command because its reponse tends to be
  235. big if stopped/waiting downloads pile up.
  236. * src/XmlRpcMethodFactory.cc
  237. * src/XmlRpcMethodImpl.cc
  238. * src/XmlRpcMethodImpl.h
  239. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  240. Added the ability to execute command when download starts and
  241. stops. You can also specify command for particular cases such as
  242. complete/error download. Added --on-download-start,
  243. --on-download-stop, --on-download-complete and --on-download-error
  244. option.
  245. * src/OptionHandlerFactory.cc
  246. * src/RequestGroupMan.cc
  247. * src/prefs.cc
  248. * src/prefs.h
  249. * src/usage_text.h
  250. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  251. Fixed test error
  252. * test/BencodeTest.cc
  253. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Added unit tests.
  255. * test/XmlRpcMethodTest.cc
  256. 2009-05-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  257. Made exception message more verbose.
  258. * src/bencode.cc
  259. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  260. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  261. space in console readout. Also they are now shown in MiB/s if
  262. speed > 1024KiB/s.
  263. * src/ConsoleStatCalc.cc
  264. 2009-05-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Added SEED to console output, which represents the number of
  266. seeders currently the client is connecting to.
  267. * src/ConsoleStatCalc.cc
  268. * src/ConsoleStatCalc.h
  269. * src/DownloadEngine.cc
  270. * src/NullStatCalc.h
  271. * src/StatCalc.h
  272. 2009-05-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  273. Added source filename(__FILE__) and line number(__LINE__) to
  274. exception message.
  275. * src/AbstractCommand.cc
  276. * src/AbstractDiskWriter.cc
  277. * src/AbstractProxyResponseCommand.cc
  278. * src/BDE.h
  279. * src/BtAllowedFastMessage.cc
  280. * src/BtHandshakeMessageValidator.h
  281. * src/BtHaveAllMessage.cc
  282. * src/BtHaveNoneMessage.cc
  283. * src/BtPieceMessage.cc
  284. * src/BtRejectMessage.cc
  285. * src/ChunkedDecoder.cc
  286. * src/CookieStorage.cc
  287. * src/DHTAnnouncePeerMessage.cc
  288. * src/DHTEntryPointNameResolveCommand.cc
  289. * src/DHTMessageFactoryImpl.cc
  290. * src/DHTMessageTracker.cc
  291. * src/DHTRoutingTableDeserializer.cc
  292. * src/DHTRoutingTableSerializer.cc
  293. * src/DHTSetup.cc
  294. * src/DHTTokenTracker.cc
  295. * src/DefaultBtAnnounce.cc
  296. * src/DefaultBtContext.cc
  297. * src/DefaultBtInteractive.cc
  298. * src/DefaultBtMessageFactory.cc
  299. * src/DefaultBtProgressInfoFile.cc
  300. * src/DefaultExtensionMessageFactory.cc
  301. * src/DlAbortEx.h
  302. * src/DlRetryEx.h
  303. * src/DownloadCommand.cc
  304. * src/DownloadEngineFactory.cc
  305. * src/DownloadFailureException.h
  306. * src/Exception.cc
  307. * src/Exception.h
  308. * src/ExpatMetalinkProcessor.cc
  309. * src/ExpatXmlRpcRequestProcessor.cc
  310. * src/FallocFileAllocationIterator.cc
  311. * src/FatalException.h
  312. * src/FtpConnection.cc
  313. * src/FtpFinishDownloadCommand.cc
  314. * src/FtpInitiateConnectionCommand.cc
  315. * src/FtpNegotiationCommand.cc
  316. * src/GZipDecoder.cc
  317. * src/HandshakeExtensionMessage.cc
  318. * src/HttpConnection.cc
  319. * src/HttpHeaderProcessor.cc
  320. * src/HttpInitiateConnectionCommand.cc
  321. * src/HttpResponse.cc
  322. * src/HttpResponseCommand.cc
  323. * src/HttpServer.cc
  324. * src/HttpSkipResponseCommand.cc
  325. * src/InitiateConnectionCommandFactory.cc
  326. * src/IteratableChunkChecksumValidator.cc
  327. * src/LibgcryptARC4Context.h
  328. * src/LibgcryptARC4Decryptor.h
  329. * src/LibgcryptARC4Encryptor.h
  330. * src/LibgcryptDHKeyExchange.h
  331. * src/LibgnutlsTLSContext.cc
  332. * src/LibsslARC4Context.h
  333. * src/LibsslARC4Decryptor.h
  334. * src/LibsslARC4Encryptor.h
  335. * src/LibsslDHKeyExchange.h
  336. * src/LibsslTLSContext.cc
  337. * src/MSEHandshake.cc
  338. * src/MessageDigestHelper.cc
  339. * src/MetalinkHelper.cc
  340. * src/MultiDiskAdaptor.cc
  341. * src/NameMatchOptionHandler.h
  342. * src/NameResolver.cc
  343. * src/Netrc.cc
  344. * src/NsCookieParser.cc
  345. * src/OptionHandlerException.cc
  346. * src/OptionHandlerException.h
  347. * src/OptionHandlerImpl.h
  348. * src/OptionParser.cc
  349. * src/ParameterizedStringParser.cc
  350. * src/PeerAbstractCommand.cc
  351. * src/PeerConnection.cc
  352. * src/PeerMessageUtil.cc
  353. * src/PeerReceiveHandshakeCommand.cc
  354. * src/Platform.cc
  355. * src/ReceiverMSEHandshakeCommand.cc
  356. * src/RecoverableException.h
  357. * src/RequestGroup.cc
  358. * src/SimpleLogger.cc
  359. * src/SocketCore.cc
  360. * src/Sqlite3MozCookieParser.cc
  361. * src/UTPexExtensionMessage.cc
  362. * src/Util.cc
  363. * src/XML2SAXMetalinkProcessor.cc
  364. * src/Xml2XmlRpcRequestProcessor.cc
  365. * src/XmlRpcMethodImpl.cc
  366. * src/bencode.cc
  367. * src/download_helper.cc
  368. * src/messageDigest.h
  369. * test/ExceptionTest.cc
  370. * test/TestUtil.cc
  371. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Bump up version number to 1.4.0
  373. * configure.ac
  374. 2009-05-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Added 2files.metalink to EXTRA_DIST
  376. * test/Makefile.am
  377. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Added missing 2files.metalink
  379. * test/2files.metalink
  380. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Show "[MEMORY]" prefix before filename in download summary if it
  382. is downloaded into memory.
  383. * src/DownloadResult.h
  384. * src/RequestGroup.cc
  385. * src/RequestGroupMan.cc
  386. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  388. * src/ExpatXmlRpcRequestProcessor.cc
  389. * src/Xml2XmlRpcRequestProcessor.cc
  390. * src/message.h
  391. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  392. Defined const BDEs to avoid duplicate instantiation.
  393. Defined MSG_GID_NOT_PROVIDED.
  394. * src/XmlRpcMethodImpl.cc
  395. * src/message.h
  396. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  397. Code cleanup
  398. * src/Xml2XmlRpcRequestProcessor.cc
  399. * src/Xml2XmlRpcRequestProcessor.h
  400. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  401. Defined ENABLE_XML_RPC
  402. * configure.ac
  403. * configure
  404. * config.h.in
  405. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  406. Added ExpatXmlRpcRequestProcessor
  407. * src/ExpatXmlRpcRequestProcessor.cc
  408. * src/ExpatXmlRpcRequestProcessor.h
  409. * src/Makefile.am
  410. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Added tests for addTorrent and addMetalink command.
  412. * test/TestUtil.cc
  413. * test/TestUtil.h
  414. * test/XmlRpcMethodTest.cc
  415. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  416. Corrected the description of --file-allocation option.
  417. * doc/aria2c.1.txt
  418. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  419. Added tellAll command.
  420. * src/XmlRpcMethodFactory.cc
  421. * src/XmlRpcMethodImpl.cc
  422. * src/XmlRpcMethodImpl.h
  423. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  425. * src/XmlRpcMethodImpl.cc
  426. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  427. Added changeGlobalOption command. Currently,
  428. max-overall-download-limit and max-overall-upload-limit option are
  429. available.
  430. * src/RequestGroupMan.h
  431. * src/XmlRpcMethod.cc
  432. * src/XmlRpcMethod.h
  433. * src/XmlRpcMethodFactory.cc
  434. * src/XmlRpcMethodImpl.cc
  435. * src/XmlRpcMethodImpl.h
  436. * test/XmlRpcMethodTest.cc
  437. 2009-05-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Added changeOption command. Currently, max-download-limit,
  439. max-upload-limit option are available in this command.
  440. * src/RequestGroup.h
  441. * src/XmlRpcMethod.cc
  442. * src/XmlRpcMethod.h
  443. * src/XmlRpcMethodFactory.cc
  444. * src/XmlRpcMethodImpl.cc
  445. * src/XmlRpcMethodImpl.h
  446. * test/XmlRpcMethodTest.cc
  447. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  448. Added purgeDownloadResult command.
  449. * src/RequestGroupMan.cc
  450. * src/RequestGroupMan.h
  451. * src/XmlRpcMethodFactory.cc
  452. * src/XmlRpcMethodImpl.cc
  453. * src/XmlRpcMethodImpl.h
  454. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  455. Refactored.
  456. * src/XmlRpcMethod.cc
  457. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  458. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  459. XmlRpcResponse.
  460. * src/HttpServerBodyCommand.cc
  461. * src/Makefile.am
  462. * src/XmlRpcMethod.cc
  463. * src/XmlRpcMethod.h
  464. * src/XmlRpcMethodImpl.cc
  465. * src/XmlRpcResponse.cc
  466. * src/XmlRpcResponse.h
  467. * test/XmlRpcMethodTest.cc
  468. 2009-05-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. In XML-RPC option struct, header and index-out option can take
  470. array as value.
  471. * src/XmlRpcMethod.cc
  472. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  473. Removed unused option member from PeerConnection.
  474. * src/InitiatorMSEHandshakeCommand.cc
  475. * src/PeerConnection.cc
  476. * src/PeerConnection.h
  477. * src/PeerInteractionCommand.cc
  478. * src/PeerReceiveHandshakeCommand.cc
  479. * src/ReceiverMSEHandshakeCommand.cc
  480. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. Added "seeder" key to getPeers response.
  482. * src/XmlRpcMethodImpl.cc
  483. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  484. Added addMetalink XML-RPC command.
  485. * src/XmlRpcMethodFactory.cc
  486. * src/XmlRpcMethodImpl.cc
  487. * src/XmlRpcMethodImpl.h
  488. * src/download_helper.cc
  489. * src/download_helper.h
  490. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  491. Fixed the bug that POU peers are never choked in seeding.
  492. * src/BtSeederStateChoke.cc
  493. * src/BtSeederStateChoke.h
  494. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  495. Added web-seeding URI handling in addTorrent command.
  496. * src/XmlRpcMethodImpl.cc
  497. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  498. Added "length" key to getFiles response.
  499. * src/XmlRpcMethodImpl.cc
  500. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Moved --no-netrc option from ftp option section to http/ftp option
  502. section.
  503. * doc/aria2c.1.txt
  504. * src/OptionHandlerFactory.cc
  505. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Removed garbage "\" character before '
  507. * doc/aria2c.1.txt
  508. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Removed garbage "\" character before http.
  510. * doc/aria2c.1.txt
  511. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Documented additional options that can be specified in -i list.
  513. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  514. and --xml-rpc-passwd. Removed --enable-http-server and
  515. --http-server-listen-port.
  516. * doc/aria2c.1.txt
  517. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  518. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  519. * src/DefaultPeerStorage.cc
  520. * src/DefaultPeerStorage.h
  521. * src/PeerStorage.h
  522. * src/XmlRpcMethodImpl.cc
  523. * test/MockPeerStorage.h
  524. 2009-05-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  525. Put a call to Socket::isReadable() in try block.
  526. * src/HttpServerBodyCommand.cc
  527. * src/HttpServerCommand.cc
  528. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  530. exception , so it is now in try block.
  531. * src/HttpServerResponseCommand.cc
  532. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  533. Added "amChoking" and "peerChoking" key in getPeers response.
  534. * src/XmlRpcMethodImpl.cc
  535. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Added test case for zero-length filter.
  537. * test/BitfieldManTest.cc
  538. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  539. getFiles command now returns file data for finished/stopped
  540. downloads.
  541. * src/XmlRpcMethodImpl.cc
  542. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. DownloadResult now has the list of FileEntry. The download
  544. summary displays the path of first selected file and the number of
  545. remaining files for multi-file torrent.
  546. * src/DownloadResult.h
  547. * src/RequestGroup.cc
  548. * src/RequestGroupMan.cc
  549. * test/RequestGroupTest.cc
  550. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Fixed segmentation fault error when no file is selected in
  552. multi-file torrent.
  553. * src/BitfieldMan.cc
  554. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Escaped <,>,& character in XML-RPC response.
  556. * src/XmlRpcMethod.cc
  557. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Throw DlAbortEx instead of FatalException during parsing options
  559. because we don't want for aria2 to quit when bad option is passed
  560. via XML-RPC.
  561. * src/OptionHandlerException.cc
  562. * src/OptionHandlerException.h
  563. * src/OptionHandlerImpl.h
  564. * src/OptionParser.cc
  565. * src/OptionParser.h
  566. * src/PStringSegment.cc
  567. * src/ParameterizedStringParser.cc
  568. * src/download_helper.cc
  569. * test/ParameterizedStringParserTest.cc
  570. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Selecting files are now done in
  572. DefaultBtContext::setFileFileter().
  573. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  574. functions are removed because they are no longer used. Creating
  575. filter in BitfieldMan is done in new funtion
  576. PieceStorage::setupFileFilter()
  577. * src/BtContext.cc
  578. * src/BtContext.h
  579. * src/DefaultBtContext.cc
  580. * src/DefaultBtContext.h
  581. * src/DefaultPieceStorage.cc
  582. * src/DefaultPieceStorage.h
  583. * src/DiskAdaptor.cc
  584. * src/DiskAdaptor.h
  585. * src/PieceStorage.h
  586. * src/RequestGroup.cc
  587. * src/UnknownLengthPieceStorage.h
  588. * src/XmlRpcMethodImpl.cc
  589. * test/DefaultBtContextTest.cc
  590. * test/MockBtContext.h
  591. * test/MockPieceStorage.h
  592. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Fixed compile error on Mac OS X
  594. * src/HttpServer.cc
  595. * src/XmlRpcMethod.h
  596. * src/XmlRpcMethodImpl.cc
  597. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Use std::binary_search instead of std::find
  599. * src/DefaultPieceStorage.cc
  600. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  601. Removed unnecessary BDE() call; leave them to implicit conversion.
  602. * src/XmlRpcMethodImpl.cc
  603. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Return connections and gid in string
  605. * src/XmlRpcMethodImpl.cc
  606. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Renamed addURI as addUri
  608. * src/XmlRpcMethodFactory.cc
  609. * src/XmlRpcMethodImpl.cc
  610. * src/XmlRpcMethodImpl.h
  611. * test/XmlRpcMethodTest.cc
  612. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  613. Renamed addTorrentFile as addTorrent
  614. * src/XmlRpcMethodFactory.cc
  615. * src/XmlRpcMethodImpl.cc
  616. * src/XmlRpcMethodImpl.h
  617. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  618. The information for files, URIs, peers are removed from the
  619. reponse of TellaActive, TellStatus command because they tend to be
  620. large. Instead they can be retrieved by the dedicated commands:
  621. getFiles, getUris and getPeers respectively.
  622. * src/XmlRpcMethodFactory.cc
  623. * src/XmlRpcMethodImpl.cc
  624. * src/XmlRpcMethodImpl.h
  625. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  626. Removed --max-overall-upload-limit and
  627. --max-overall-download-limit option from listRequestOptions.
  628. * src/download_helper.cc
  629. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  630. Log incoming host in HttpListenCommand.
  631. * src/HttpListenCommand.cc
  632. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  633. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  634. --xml-rpc-passwd option.
  635. * src/HttpServer.cc
  636. * src/HttpServer.h
  637. * src/HttpServerCommand.cc
  638. * src/OptionHandlerFactory.cc
  639. * src/prefs.cc
  640. * src/prefs.h
  641. * src/usage_text.h
  642. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  643. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  644. processing 0 length request.
  645. * src/HttpServerBodyCommand.cc
  646. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  647. Removed --enable-http-server and --http-server-listen-port
  648. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  649. instead. The original feature for --enable-http-server that
  650. reports download progress in HTML was officially removed. Persist
  651. XML-RPC connection if client supports keep-alive.
  652. * src/DownloadEngineFactory.cc
  653. * src/HttpServerCommand.cc
  654. * src/HttpServerResponseCommand.cc
  655. * src/Makefile.am
  656. * src/Makefile.in
  657. * src/OptionHandlerFactory.cc
  658. * src/RequestGroupMan.cc
  659. * src/main.cc
  660. * src/option_processing.cc
  661. * src/prefs.cc
  662. * src/prefs.h
  663. * src/usage_text.h
  664. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Added "uris" key to the response of tellStatus command. Added
  666. "connections" key to the response of tellStatus and tellActive
  667. command.
  668. * src/XmlRpcMethodImpl.cc
  669. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  671. Added TellStatusXmlRpcMethod. Remove command can now remove
  672. waiting RequestGroup.
  673. * src/RequestGroupMan.cc
  674. * src/RequestGroupMan.h
  675. * src/XmlRpcMethodFactory.cc
  676. * src/XmlRpcMethodImpl.cc
  677. * src/XmlRpcMethodImpl.h
  678. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Initialized _peerId
  680. * src/Peer.cc
  681. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  682. Return fault structure for error. FailXmlRpcMethod is renamed as
  683. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  684. in non-torrent download. Return single param value.
  685. * src/XmlRpcMethod.cc
  686. * src/XmlRpcMethodFactory.cc
  687. * src/XmlRpcMethodImpl.cc
  688. * src/XmlRpcMethodImpl.h
  689. * test/XmlRpcMethodTest.cc
  690. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  692. command.
  693. * src/RequestGroup.cc
  694. * src/RequestGroup.h
  695. * src/RequestGroupMan.cc
  696. * src/XmlRpcMethodImpl.cc
  697. * test/RequestGroupTest.cc
  698. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Added more options that can be specified in -i list and xml-rpc
  700. add* command.
  701. * src/download_helper.h
  702. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. The available options in -i list should be listed in
  704. listRequestOptions().
  705. * src/download_helper.cc
  706. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  707. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  708. command.
  709. * src/XmlRpcMethodImpl.cc
  710. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. Now RequestGroup has its own copy of Option object. This will help
  712. to give custom option for each RequestGroup.
  713. addTorrentFile command now takes options.
  714. * src/AbstractCommand.cc
  715. * src/AbstractCommand.h
  716. * src/AbstractProxyRequestCommand.cc
  717. * src/ActivePeerConnectionCommand.cc
  718. * src/ActivePeerConnectionCommand.h
  719. * src/AdaptiveURISelector.cc
  720. * src/BtCheckIntegrityEntry.cc
  721. * src/BtDependency.cc
  722. * src/BtDependency.h
  723. * src/BtFileAllocationEntry.cc
  724. * src/BtPostDownloadHandler.cc
  725. * src/CheckIntegrityEntry.cc
  726. * src/DownloadCommand.cc
  727. * src/FtpDownloadCommand.cc
  728. * src/FtpFinishDownloadCommand.cc
  729. * src/FtpInitiateConnectionCommand.cc
  730. * src/FtpNegotiationCommand.cc
  731. * src/HttpInitiateConnectionCommand.cc
  732. * src/HttpRequestCommand.cc
  733. * src/HttpResponseCommand.cc
  734. * src/HttpSkipResponseCommand.cc
  735. * src/InitiateConnectionCommand.cc
  736. * src/InitiateConnectionCommandFactory.cc
  737. * src/InitiatorMSEHandshakeCommand.cc
  738. * src/InitiatorMSEHandshakeCommand.h
  739. * src/Metalink2RequestGroup.cc
  740. * src/Metalink2RequestGroup.h
  741. * src/MetalinkPostDownloadHandler.cc
  742. * src/MultiUrlRequestInfo.cc
  743. * src/MultiUrlRequestInfo.h
  744. * src/PeerAbstractCommand.cc
  745. * src/PeerInteractionCommand.cc
  746. * src/PeerInteractionCommand.h
  747. * src/PeerReceiveHandshakeCommand.cc
  748. * src/PeerReceiveHandshakeCommand.h
  749. * src/RequestGroup.cc
  750. * src/RequestGroup.h
  751. * src/TrackerWatcherCommand.cc
  752. * src/TrackerWatcherCommand.h
  753. * src/XmlRpcMethod.cc
  754. * src/XmlRpcMethod.h
  755. * src/XmlRpcMethodImpl.cc
  756. * src/download_helper.cc
  757. * src/download_helper.h
  758. * src/main.cc
  759. * test/BtDependencyTest.cc
  760. * test/BtPostDownloadHandlerTest.cc
  761. * test/DefaultBtMessageDispatcherTest.cc
  762. * test/DownloadHandlerFactoryTest.cc
  763. * test/DownloadHelperTest.cc
  764. * test/Metalink2RequestGroupTest.cc
  765. * test/MetalinkPostDownloadHandlerTest.cc
  766. * test/RequestGroupManTest.cc
  767. * test/RequestGroupTest.cc
  768. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Added tellActiveStatus xml-rpc command which reports download
  770. status of active downloads.
  771. * src/XmlRpcMethodFactory.cc
  772. * src/XmlRpcMethodImpl.cc
  773. * src/XmlRpcMethodImpl.h
  774. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  775. Added addTorrentFile xml-rpc command which receives uploaded
  776. torrent file and add download for it.
  777. * src/RequestGroupMan.cc
  778. * src/XmlRpcMethodFactory.cc
  779. * src/XmlRpcMethodImpl.cc
  780. * src/XmlRpcMethodImpl.h
  781. * src/download_helper.cc
  782. * src/download_helper.h
  783. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Added remove xml-rpc command which removes specified download.
  785. There is a known issue: the removed unfinished downloads are
  786. reported ERR when aria2 exits. They should be reported as INPR.
  787. * src/RequestGroupMan.cc
  788. * src/RequestGroupMan.h
  789. * src/XmlRpcMethodFactory.cc
  790. * src/XmlRpcMethodImpl.cc
  791. * src/XmlRpcMethodImpl.h
  792. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. If --enable-http-server is enabled, don't stop aria2 when all
  794. download finished and don't quit when no files to download at
  795. start up.
  796. * src/RequestGroupMan.cc
  797. * src/main.cc
  798. * src/option_processing.cc
  799. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Added missing AM_CONDITIONAL
  801. * configure.ac
  802. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  803. Added xml-rpc functionality. Currently only addURI commad is
  804. supported. To enable xml-rpc, run aria2 with
  805. --enable-http-server. This option name is temporal and will be
  806. changed. The feature that reports download progress in html format
  807. is temporarily disabled.
  808. * src/HttpServer.cc
  809. * src/HttpServer.h
  810. * src/HttpServerBodyCommand.cc
  811. * src/HttpServerBodyCommand.h
  812. * src/HttpServerCommand.cc
  813. * src/HttpServerResponseCommand.cc
  814. * src/Makefile.am
  815. * src/OptionParser.cc
  816. * src/OptionParser.h
  817. * src/RequestGroupMan.cc
  818. * src/RequestGroupMan.h
  819. * src/XmlRpcMethod.cc
  820. * src/XmlRpcMethod.h
  821. * src/XmlRpcMethodFactory.cc
  822. * src/XmlRpcMethodFactory.h
  823. * src/XmlRpcMethodImpl.cc
  824. * src/XmlRpcMethodImpl.h
  825. * src/download_helper.cc
  826. * src/download_helper.h
  827. * test/Makefile.am
  828. * test/XmlRpcMethodTest.cc
  829. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Added xml-rpc request parser. The supported value types are:
  831. i4/int, string, double, struct, array, base64. Currently only
  832. libxml2 version is provided.
  833. * src/Xml2XmlRpcRequestProcessor.cc
  834. * src/Xml2XmlRpcRequestProcessor.h
  835. * src/XmlRpcElements.cc
  836. * src/XmlRpcElements.h
  837. * src/XmlRpcRequest.h
  838. * src/XmlRpcRequestParserController.cc
  839. * src/XmlRpcRequestParserController.h
  840. * src/XmlRpcRequestParserState.h
  841. * src/XmlRpcRequestParserStateImpl.cc
  842. * src/XmlRpcRequestParserStateImpl.h
  843. * src/XmlRpcRequestParserStateMachine.cc
  844. * src/XmlRpcRequestParserStateMachine.h
  845. * src/XmlRpcRequestProcessor.h
  846. * test/XmlRpcRequestParserControllerTest.cc
  847. * test/XmlRpcRequestProcessorTest.cc
  848. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. * Release 1.3.3
  850. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  851. Fixed compile error since r1202.
  852. * src/ExpatMetalinkProcessor.cc
  853. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  854. Updated Ukrainian, Russian and Simplified Chinese
  855. translations. Thanks to all translators.
  856. * po/ru.po
  857. * po/uk.po
  858. * po/zh_CN.po
  859. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Pass reference of Option object instead of pointer.
  861. * src/download_helper.cc
  862. * src/download_helper.h
  863. * src/main.cc
  864. * test/DownloadHelperTest.cc
  865. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  867. from option directly. Instead, get them from RequestGroup.
  868. * src/ActivePeerConnectionCommand.cc
  869. * src/ActivePeerConnectionCommand.h
  870. * src/PeerReceiveHandshakeCommand.cc
  871. * src/RequestGroup.h
  872. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  873. Removed unused uploadLimitCheck and uploadLimit from
  874. PeerAbstractCommand. Removed unused maxDownloadLimit from
  875. PeerInteractionCommand.
  876. * src/PeerAbstractCommand.cc
  877. * src/PeerAbstractCommand.h
  878. * src/PeerInteractionCommand.cc
  879. * src/PeerInteractionCommand.h
  880. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  881. Fixed broken file renaming feature since r1202.
  882. * src/FtpNegotiationCommand.cc
  883. * src/FtpNegotiationCommand.h
  884. * src/HttpResponseCommand.cc
  885. * src/RequestGroup.cc
  886. * src/RequestGroup.h
  887. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  888. Removed unused debug log
  889. * src/SocketCore.cc
  890. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Generated configure and Makefile.in using autoconf 2.63 and
  892. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  893. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  894. * configure.ac
  895. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Moved piece statistics stuff to new PieceStatMan class.
  897. Refactored PieceSelector interface.
  898. * src/DefaultPieceStorage.cc
  899. * src/DefaultPieceStorage.h
  900. * src/LongestSequencePieceSelector.cc
  901. * src/LongestSequencePieceSelector.h
  902. * src/Makefile.am
  903. * src/PieceSelector.h
  904. * src/PieceStatMan.cc
  905. * src/PieceStatMan.h
  906. * src/RarestPieceSelector.cc
  907. * src/RarestPieceSelector.h
  908. * src/RequestGroup.cc
  909. * test/DefaultPieceStorageTest.cc
  910. * test/InOrderPieceSelector.h
  911. * test/Makefile.am
  912. * test/PieceStatManTest.cc
  913. * test/RarestPieceSelectorTest.cc
  914. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  915. Added static member _protocolFamily to SocketCore. By default,
  916. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  917. address. Sometime SocketCore::bind() and
  918. SocketCore::establishConnection() use difference protocl family
  919. and latter cannot connect to former. To avoid this situation, we
  920. limit protocol family to AF_INET for unit tests.
  921. * src/SocketCore.cc
  922. * src/SocketCore.h
  923. * test/AllTest.cc
  924. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  925. Avoid std::bad_alloc for negative bencode string length.
  926. * src/bencode.cc
  927. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Supported segmented downloading with chunked transfer encoding and
  929. content-length.
  930. * src/DownloadCommand.cc
  931. * src/HttpResponseCommand.cc
  932. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Bump up version number to 1.3.3
  934. * configure.ac
  935. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  937. from 4096 to 65536 (for insanely large ftp login banners)
  938. * src/FtpConnection.h
  939. * test/FtpConnectionTest.cc
  940. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  941. In DefaultBtContext::getActualBasePath(), return first
  942. FileEntry::getPath() for single file torrent.
  943. * src/DefaultBtContext.cc
  944. * test/DefaultBtContextTest.cc
  945. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  946. Removed directIOAllowed() from BinaryStream, DiskWriter,
  947. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  948. Removed _directIOAllowed member from DiskWriter.
  949. * src/AbstractDiskWriter.cc
  950. * src/AbstractDiskWriter.h
  951. * src/AbstractSingleDiskAdaptor.cc
  952. * src/AbstractSingleDiskAdaptor.h
  953. * src/BinaryStream.h
  954. * src/ByteArrayDiskWriter.h
  955. * src/DefaultPieceStorage.cc
  956. * src/DiskWriter.h
  957. * src/MultiDiskAdaptor.cc
  958. * src/MultiDiskAdaptor.h
  959. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  960. Now the constructor of AbstractDiskWriter takes filename as an
  961. argument and filename argument is removed from openFile(),
  962. initAndOpenFile(), openExistingFile() interface. storeDir member
  963. and its accessor functions are removed from DiskAdaptor because it
  964. is not used anymore. size() member function of DefaultDiskWriter,
  965. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  966. opening file.
  967. * src/AbstractDiskWriter.cc
  968. * src/AbstractDiskWriter.h
  969. * src/AbstractSingleDiskAdaptor.cc
  970. * src/AbstractSingleDiskAdaptor.h
  971. * src/ByteArrayDiskWriter.cc
  972. * src/ByteArrayDiskWriter.h
  973. * src/ByteArrayDiskWriterFactory.cc
  974. * src/ByteArrayDiskWriterFactory.h
  975. * src/DefaultDiskWriter.cc
  976. * src/DefaultDiskWriter.h
  977. * src/DefaultDiskWriterFactory.cc
  978. * src/DefaultDiskWriterFactory.h
  979. * src/DefaultPieceStorage.cc
  980. * src/DirectDiskAdaptor.cc
  981. * src/DirectDiskAdaptor.h
  982. * src/DiskAdaptor.h
  983. * src/DiskWriter.h
  984. * src/DiskWriterFactory.h
  985. * src/MessageDigestHelper.cc
  986. * src/MultiDiskAdaptor.cc
  987. * src/RequestGroup.cc
  988. * src/UnknownLengthPieceStorage.cc
  989. * src/Util.cc
  990. * test/DefaultDiskWriterTest.cc
  991. * test/DirectDiskAdaptorTest.cc
  992. * test/FallocFileAllocationIteratorTest.cc
  993. * test/MessageDigestHelperTest.cc
  994. * test/MetalinkProcessorTest.cc
  995. * test/MultiDiskAdaptorTest.cc
  996. * test/MultiFileAllocationIteratorTest.cc
  997. * test/SingleFileAllocationIteratorTest.cc
  998. * test/UtilTest.cc
  999. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1000. Fixed the bug that aria2 aborts when --select-file is used. This
  1001. bug was introduced in r1199.
  1002. * src/MultiDiskAdaptor.cc
  1003. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1004. Code cleanup
  1005. * test/MockPieceStorage.cc
  1006. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1007. Fixed the bug that read-only file with wrong file size will cause
  1008. error because it cannot be truncated to the correct size. Now if
  1009. file size is different than the expected one, re-open file in
  1010. writable mode.
  1011. * src/AbstractSingleDiskAdaptor.cc
  1012. * src/AbstractSingleDiskAdaptor.h
  1013. * src/BtCheckIntegrityEntry.cc
  1014. * src/DiskAdaptor.h
  1015. * src/MultiDiskAdaptor.h
  1016. * src/RequestGroup.cc
  1017. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1018. Fixed the bug that with --check-integrity option aria2 reports
  1019. downloaded file size is 0 even if some parts of file is correctly
  1020. downloaded. This bug is reproducible for the download that a file
  1021. includes last piece is missing. This bug doesn't reveal for
  1022. single-torrent with file allocation on.
  1023. * src/IteratableChecksumValidator.cc
  1024. * test/IteratableChecksumValidatorTest.cc
  1025. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1027. * src/RequestGroupMan.cc
  1028. * src/AdaptiveURISelector.cc
  1029. * src/AdaptiveURISelector.h
  1030. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1031. * Release 1.3.2
  1032. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Updated README
  1034. * README
  1035. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Updated Ukrainian translations. Thanks to Alexander10.
  1037. * po/uk.po
  1038. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1039. Code cleanup
  1040. * src/MetalinkParserStateMachine.cc
  1041. * src/MetalinkParserStateMachine.h
  1042. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1043. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1044. and expat simultaneously, MetalinkProcessor is now not base class
  1045. and it is directly implemented in XML2SAXMetalinkProcessor and
  1046. ExpatMetalinkProcessor.
  1047. * src/ExpatMetalinkProcessor.cc
  1048. * src/ExpatMetalinkProcessor.h
  1049. * src/Makefile.am
  1050. * src/MetalinkHelper.cc
  1051. * src/MetalinkProcessor.h
  1052. * src/MetalinkProcessorFactory.cc: Removed.
  1053. * src/MetalinkProcessorFactory.h: Removed
  1054. * src/XML2SAXMetalinkProcessor.cc
  1055. * src/XML2SAXMetalinkProcessor.h
  1056. * test/MetalinkProcessorTest.cc
  1057. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Bump up version number to 1.3.2
  1059. * configure.ac
  1060. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1061. Added missing file.
  1062. * test/Makefile.am
  1063. * test/url-list-singleFileEndsWithSlash.torrent
  1064. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1065. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1066. request.
  1067. * src/AnnounceList.cc
  1068. * src/AnnounceList.h
  1069. * src/BDE.cc: Added
  1070. * src/BDE.h: Added
  1071. * src/DHTAbstractMessage.cc
  1072. * src/DHTAbstractMessage.h
  1073. * src/DHTAnnouncePeerMessage.cc
  1074. * src/DHTAnnouncePeerMessage.h
  1075. * src/DHTAnnouncePeerReplyMessage.cc
  1076. * src/DHTAnnouncePeerReplyMessage.h
  1077. * src/DHTFindNodeMessage.cc
  1078. * src/DHTFindNodeMessage.h
  1079. * src/DHTFindNodeReplyMessage.cc
  1080. * src/DHTFindNodeReplyMessage.h
  1081. * src/DHTGetPeersMessage.cc
  1082. * src/DHTGetPeersMessage.h
  1083. * src/DHTGetPeersReplyMessage.cc
  1084. * src/DHTGetPeersReplyMessage.h
  1085. * src/DHTMessageFactory.h
  1086. * src/DHTMessageFactoryImpl.cc
  1087. * src/DHTMessageFactoryImpl.h
  1088. * src/DHTMessageReceiver.cc
  1089. * src/DHTMessageTracker.cc
  1090. * src/DHTMessageTracker.h
  1091. * src/DHTPingMessage.cc
  1092. * src/DHTPingMessage.h
  1093. * src/DHTPingReplyMessage.cc
  1094. * src/DHTPingReplyMessage.h
  1095. * src/DHTQueryMessage.cc
  1096. * src/DHTQueryMessage.h
  1097. * src/DHTResponseMessage.cc
  1098. * src/DHTResponseMessage.h
  1099. * src/DefaultBtAnnounce.cc
  1100. * src/DefaultBtContext.cc
  1101. * src/DefaultBtContext.h
  1102. * src/HandshakeExtensionMessage.cc
  1103. * src/Makefile.am
  1104. * src/PeerListProcessor.h
  1105. * src/UTPexExtensionMessage.cc
  1106. * src/bencode.cc
  1107. * src/bencode.h
  1108. * test/AnnounceListTest.cc
  1109. * test/BDETest.cc: Added
  1110. * test/BencodeTest.cc
  1111. * test/DHTAnnouncePeerMessageTest.cc
  1112. * test/DHTAnnouncePeerReplyMessageTest.cc
  1113. * test/DHTFindNodeMessageTest.cc
  1114. * test/DHTFindNodeReplyMessageTest.cc
  1115. * test/DHTGetPeersMessageTest.cc
  1116. * test/DHTGetPeersReplyMessageTest.cc
  1117. * test/DHTMessageFactoryImplTest.cc
  1118. * test/DHTMessageTrackerTest.cc
  1119. * test/DHTPingMessageTest.cc
  1120. * test/DHTPingReplyMessageTest.cc
  1121. * test/Makefile.am
  1122. * test/MockDHTMessageFactory.h
  1123. * test/PeerListProcessorTest.cc
  1124. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1125. Use url-list (web-seeding) only for single-file torrent. This is
  1126. basically the same behavior with Metalink file with torrent and
  1127. URIs.
  1128. * src/RequestGroup.cc
  1129. * src/DefaultBtContext.cc
  1130. * test/DefaultBtContextTest.cc
  1131. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Rewritten expr
  1133. * src/array_fun.h
  1134. * test/array_funTest.cc
  1135. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1136. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1137. * src/DefaultBtMessageDispatcher.cc
  1138. * src/a2algo.h
  1139. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1140. Removed ExtendedMessagingAware. Instead of using inheritance,
  1141. added ExtensionMessageRegistry and it is passed to
  1142. DefaultExtensionMessageFactory.
  1143. * src/DefaultBtInteractive.cc
  1144. * src/DefaultBtInteractive.h
  1145. * src/DefaultExtensionMessageFactory.cc
  1146. * src/DefaultExtensionMessageFactory.h
  1147. * src/ExtendedMessagingAware.h: Removed.
  1148. * src/ExtensionMessageFactory.h
  1149. * src/ExtensionMessageRegistry.h: Added.
  1150. * src/Makefile.am
  1151. * src/PeerInteractionCommand.cc
  1152. * test/DefaultExtensionMessageFactoryTest.cc
  1153. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1154. Fixed typo in log messages
  1155. * src/MSEHandshake.cc
  1156. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1157. Fixed the bug that prevents torrent download from finishing. The
  1158. bug doesn't reveal for all torrents. The torrents affected this
  1159. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1160. of pieces.
  1161. * src/bitfield.h
  1162. * test/bitfieldTest.cc
  1163. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1164. Code cleanup
  1165. * src/PeerListProcessor.h
  1166. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1167. Removed RequestGroupAware
  1168. * src/AbstractCommand.cc
  1169. * src/AbstractCommand.h
  1170. * src/ActivePeerConnectionCommand.cc
  1171. * src/ActivePeerConnectionCommand.h
  1172. * src/DHTGetPeersCommand.cc
  1173. * src/DHTGetPeersCommand.h
  1174. * src/InitiatorMSEHandshakeCommand.cc
  1175. * src/InitiatorMSEHandshakeCommand.h
  1176. * src/Makefile.am
  1177. * src/PeerInitiateConnectionCommand.cc
  1178. * src/PeerInitiateConnectionCommand.h
  1179. * src/PeerInteractionCommand.cc
  1180. * src/PeerInteractionCommand.h
  1181. * src/RealtimeCommand.cc
  1182. * src/RealtimeCommand.h
  1183. * src/RequestGroupAware.cc: Removed
  1184. * src/RequestGroupAware.h: Removed
  1185. * src/SeedCheckCommand.cc
  1186. * src/SeedCheckCommand.h
  1187. * src/SleepCommand.cc
  1188. * src/TrackerWatcherCommand.cc
  1189. * src/TrackerWatcherCommand.h
  1190. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1191. Rewritten PeerListProcessor
  1192. * src/PeerListProcessor.h
  1193. * src/CompactPeerListProcessor.h: Removed
  1194. * src/CompactPeerListProcessor.cc: Removed
  1195. * src/DelegatingPeerListProcessor.cc: Removed.
  1196. * src/DefaultBtAnnounce.cc
  1197. * src/Makefile.am
  1198. * src/UTPexExtensionMessage.cc
  1199. * src/DefaultPeerListProcessor.h: Removed.
  1200. * src/DefaultPeerListProcessor.cc: Removed.
  1201. * src/DelegatingPeerListProcessor.h: Removed.
  1202. * test/Makefile.am
  1203. * test/PeerListProcessorTest.cc
  1204. * test/DefaultPeerListProcessorTest.cc: Removed.
  1205. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Rewritten RequestGroupMan::calculateStat()
  1207. * src/RequestGroupMan.cc
  1208. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Removed unnecessary virtual destructor for Request class.
  1210. * src/Request.cc
  1211. * src/Request.h
  1212. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Avoid dynamic_pointer_cast.
  1214. * src/DHTGetPeersCommand.cc
  1215. * src/DHTGetPeersCommand.h
  1216. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1217. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  1218. BtEvent.
  1219. * src/AbstractBtEventListener.h: Removed.
  1220. * src/AbstractBtMessage.cc
  1221. * src/AbstractBtMessage.h
  1222. * src/BtAbortOutstandingRequestEvent.h
  1223. * src/BtCancelSendingPieceEvent.h
  1224. * src/BtChokedEvent.h: Removed.
  1225. * src/BtChokingEvent.h
  1226. * src/BtEvent.h: Removed
  1227. * src/BtEventListener.h: Removed.
  1228. * src/BtMessage.h
  1229. * src/BtPieceMessage.cc
  1230. * src/BtPieceMessage.h
  1231. * src/BtRequestMessage.cc
  1232. * src/BtRequestMessage.h
  1233. * src/DefaultBtMessageDispatcher.cc
  1234. * src/Makefile.am
  1235. * src/a2functional.h
  1236. * test/BtPieceMessageTest.cc
  1237. * test/BtRequestMessageTest.cc
  1238. * test/DefaultBtMessageDispatcherTest.cc
  1239. * test/MockBtMessage.h
  1240. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1241. Code cleanup
  1242. * src/RequestGroupMan.cc
  1243. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1244. Code cleanup
  1245. * src/DownloadCommand.cc
  1246. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1247. Fixed segmentation fault when GZipDecoder::decode() returns 0
  1248. byte.
  1249. * src/DownloadCommand.cc
  1250. * src/bitfield.h
  1251. * test/bitfieldTest.cc
  1252. Fixed the bug that causes infinite loop if broken web server
  1253. returns chunked response without last "0" chunk-size marker and
  1254. closes connection.
  1255. * src/DownloadCommand.cc
  1256. Instantiate properly configured HttpDownloadCommand for
  1257. non-resumable downlaods.
  1258. * src/HttpResponseCommand.cc
  1259. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Rewritten array operation functions.
  1261. * src/BitfieldMan.cc
  1262. * src/array_fun.h
  1263. * test/array_funTest.cc
  1264. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1265. Removed unused variable 'query'
  1266. * src/Request.cc
  1267. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1268. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  1269. accidentally set to false in r1162.
  1270. * configure.ac
  1271. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1272. Code cleanup
  1273. * src/BNode.cc
  1274. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1275. Increase prefixLength for the bucket which doesn't own local node
  1276. ID when splitting bucket.
  1277. * src/DHTBucket.cc
  1278. * test/DHTBucketTest.cc
  1279. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1280. * Release 1.3.1
  1281. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1282. Bump up version number to 1.3.1
  1283. * configure.ac
  1284. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1285. Removed unused variable checkPoint. Also removed include directive
  1286. for TimeA2.h.
  1287. * src/SeedCheckCommand.h
  1288. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1289. Fixed the bug that upload limit exceeds the value specified in
  1290. --seed-ratio option depending on the timing of the execution of
  1291. SeedCheckCommand.
  1292. * src/SeedCheckCommand.cc
  1293. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Fixed the bug that removed peer's session upload/download length
  1295. are counted twice in _cachedTransferStat before it is
  1296. re-calculated. This affected the calculation of shara ratio,
  1297. resulting aria2 wrongly determines that specified share ratio is
  1298. reached. Also fixed the typo in calculateStatFor function name.
  1299. * src/BtSetup.cc
  1300. * src/DefaultPeerStorage.cc
  1301. * src/ShareRatioSeedCriteria.h
  1302. * test/ShareRatioSeedCriteriaTest.cc
  1303. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1304. * Release 1.3.0
  1305. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  1307. Nynorsk translations. Thanks to all translators.
  1308. * po/es.po
  1309. * po/ja.po
  1310. * po/nn.po
  1311. * po/ru.po
  1312. * po/uk.po
  1313. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1314. Rewritten isInRange()
  1315. * src/DHTBucket.cc
  1316. * test/DHTBucketTest.cc
  1317. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1318. Fixed typo
  1319. * doc/aria2c.1.txt
  1320. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1321. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  1322. malloc/realloc is not used.
  1323. * src/configure.ac
  1324. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. BitfieldMan::getMissingIndexes family functions now takes unsigned
  1326. char* bitfield instead of stl container for efficiency.
  1327. PieceSelector::select now takes this
  1328. bitfield. RarestPieceSelector::select now also performs
  1329. efficiently for this change. bitfield namespace is introduced and
  1330. it has several helper functions to handle basic bitfield
  1331. operations such as test, count set bits, etc.
  1332. * src/BitfieldMan.cc
  1333. * src/BitfieldMan.h
  1334. * src/DefaultBtRequestFactory.cc
  1335. * src/DefaultPieceStorage.cc
  1336. * src/DefaultPieceStorage.h
  1337. * src/LongestSequencePieceSelector.cc
  1338. * src/LongestSequencePieceSelector.h
  1339. * src/Makefile.am
  1340. * src/Piece.cc
  1341. * src/Piece.h
  1342. * src/PieceSelector.h
  1343. * src/RarestPieceSelector.cc
  1344. * src/RarestPieceSelector.h
  1345. * src/Util.cc
  1346. * src/Util.h
  1347. * src/bitfield.h
  1348. * test/BitfieldManTest.cc
  1349. * test/LongestSequencePieceSelectorTest.cc
  1350. * test/Makefile.am
  1351. * test/RarestPieceSelectorTest.cc
  1352. * test/UtilTest.cc
  1353. * test/bitfieldTest.cc
  1354. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. Made accepted socket non-block.
  1356. * src/FtpNegotiationCommand.cc
  1357. * src/HttpListenCommand.cc
  1358. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. Guarded #ifdef HAVE_POSIX_FALLOCATE
  1360. * src/AbstractSingleDiskAdaptor.cc
  1361. * src/DefaultPieceStorage.cc
  1362. * src/DiskAdaptor.h
  1363. * src/DiskAdaptor.h
  1364. * src/MultiFileAllocationIterator.cc
  1365. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1366. Run
  1367. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  1368. in every 1 sec. The timeout of RequestSlot is 60s by default and
  1369. it doesn't need to be called every time when
  1370. DefaultBtInteractive::doInteractionProcessing() is called.
  1371. * src/DefaultBtInteractive.cc
  1372. * src/DefaultBtInteractive.h
  1373. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Documented 'falloc' in man page.
  1375. * doc/aria2c.1.txt
  1376. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1377. Updated doc
  1378. * src/usage_text.h
  1379. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1380. Added 'falloc' parameter for --file-allocation option. 'falloc'
  1381. allocation mode uses posix_fallocate() system call to allocate
  1382. file on disk. If you are using newer file systems such as ext4
  1383. (with extents support), btrfs or xfs, 'falloc' is your best
  1384. choice. It allocates large(few GiB) files almost instantly. Don't
  1385. use 'falloc' with legacy file systems such as ext3 because it
  1386. takes almost same time as 'prealloc' and it blocks aria2 entirely
  1387. until allocation finishes. 'falloc' may not be available if your
  1388. system doesn't have posix_fallocate() system call.
  1389. * configure.ac
  1390. * src/AbstractDiskWriter.cc
  1391. * src/AbstractDiskWriter.h
  1392. * src/AbstractSingleDiskAdaptor.cc
  1393. * src/BinaryStream.h
  1394. * src/BtCheckIntegrityEntry.cc
  1395. * src/ByteArrayDiskWriter.h
  1396. * src/CheckIntegrityEntry.cc
  1397. * src/CheckIntegrityEntry.h
  1398. * src/DefaultPieceStorage.cc
  1399. * src/DiskAdaptor.cc
  1400. * src/DiskAdaptor.h
  1401. * src/DiskWriter.h
  1402. * src/FallocFileAllocationIterator.cc
  1403. * src/FallocFileAllocationIterator.h
  1404. * src/FileAllocationEntry.cc
  1405. * src/FileAllocationEntry.h
  1406. * src/Makefile.am
  1407. * src/MultiFileAllocationIterator.cc
  1408. * src/MultiFileAllocationIterator.h
  1409. * src/OptionHandlerFactory.cc
  1410. * src/RequestGroup.cc
  1411. * src/StreamCheckIntegrityEntry.cc
  1412. * src/prefs.cc
  1413. * src/prefs.h
  1414. * src/usage_text.h
  1415. * test/FallocFileAllocationIteratorTest.cc
  1416. * test/Makefile.am
  1417. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1418. Removed duplicate enableDirectIO() call.
  1419. * src/MultiFileAllocationIterator.cc
  1420. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1421. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  1422. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  1423. cost of std::rotate().
  1424. * src/RarestPieceSelector.cc
  1425. * src/RarestPieceSelector.h
  1426. * test/RarestPieceSelectorTest.cc
  1427. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1428. Updated usage doc for --bt-tracker-interval option.
  1429. * src/usage_text.h
  1430. * doc/aria2c.1.txt
  1431. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1432. Documented --bt-tracker-interval option in man page.
  1433. * doc/aria2c.1.txt
  1434. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1435. Added an option to specify the interval between tracker requests.
  1436. If non-zero value is specified, aria2 uses it and ignores the
  1437. interval value in the response of tracker. If zero is specified,
  1438. aria2 determines the inteval value based on the tarcker response
  1439. and download progress.
  1440. * src/DefaultBtAnnounce.cc
  1441. * src/DefaultBtAnnounce.h
  1442. * src/OptionHandlerFactory.cc
  1443. * src/RequestGroup.cc
  1444. * src/prefs.cc
  1445. * src/prefs.h
  1446. * src/usage_text.h
  1447. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. Added operator+=, operator-=, operator-
  1449. * src/TransferStat.cc
  1450. * src/TransferStat.h
  1451. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1452. Refactored RarestPieceSelector to reduce CPU load, especially for
  1453. addPieceStats.
  1454. * src/RarestPieceSelector.cc
  1455. * src/RarestPieceSelector.h
  1456. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1457. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  1458. getAllMissingBlockIndexes to reduce a call to
  1459. array_function_base::operator[].
  1460. * src/BitfieldMan.cc
  1461. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1462. Cached TransferStat/download speed to avoid to sum them up in each
  1463. call.
  1464. * src/DefaultPeerStorage.cc
  1465. * src/DefaultPeerStorage.h
  1466. * src/SegmentMan.cc
  1467. * src/SegmentMan.h
  1468. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1469. Typedefed cuid_t as int32_t in Command.h
  1470. * src/CUIDCounter.h
  1471. * src/Command.cc
  1472. * src/Command.h
  1473. * src/DownloadEngine.cc
  1474. * src/DownloadEngine.h
  1475. * src/PeerStat.h
  1476. * src/SegmentMan.cc
  1477. * src/SegmentMan.h
  1478. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1479. Reduced the number of calls to PeerStorage::calculateStat() and
  1480. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  1481. transfer rate.
  1482. * src/DefaultBtInteractive.cc
  1483. * src/DefaultBtMessageDispatcher.cc
  1484. * src/DefaultPeerStorage.cc
  1485. * src/DefaultPeerStorage.h
  1486. * src/DownloadCommand.cc
  1487. * src/DownloadEngine.cc
  1488. * src/PeerStorage.h
  1489. * src/SegmentMan.cc
  1490. * src/SegmentMan.h
  1491. * test/MockPeerStorage.h
  1492. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1493. Prepended _dir+"/" after joining path elements in torrent file.
  1494. * src/DefaultBtContext.cc
  1495. * test/DefaultBtContextTest.cc
  1496. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1497. Added missing IndexBtMessageValidator.h
  1498. * src/Makefile.am
  1499. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1500. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1501. Chinese translations. Thank you for contributing our project.
  1502. * po/id.po
  1503. * po/it.po
  1504. * po/ru.po
  1505. * po/uk.po
  1506. * po/zh_CN.po
  1507. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Updated README
  1509. * README
  1510. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1511. Bump up version number to 1.3.0
  1512. * configure.ac
  1513. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1514. Updated doc
  1515. * src/DefaultBtContext.h
  1516. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Slice/joinPath for name of single torrent.
  1518. * src/DefaultBtContext.cc
  1519. * test/DefaultBtContextTest.cc
  1520. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1521. Updated man page: Documented --dry-run and --index-out
  1522. options. Changed the default value of --uri-selector and
  1523. --http-auth-challenge options. Removed --direct-file-mapping
  1524. option. Added example for --index-out
  1525. * doc/aria2c.1.txt
  1526. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1527. Updated TEXT_DRY_RUN
  1528. * src/usage_text.h
  1529. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Changed the default value of --uri-selector option from 'inorder'
  1531. to 'feedback'
  1532. * src/OptionHandlerFactory.cc
  1533. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1534. Included current URI in exception message.
  1535. * src/AbstractCommand.cc
  1536. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1537. Renamed ServerStatURISelector as FeedbackURISelector.
  1538. * src/FeedbackURISelector.cc
  1539. * src/FeedbackURISelector.h
  1540. * src/Makefile.am
  1541. * src/RequestGroupMan.cc
  1542. * src/ServerStatURISelector.cc
  1543. * src/ServerStatURISelector.h
  1544. * test/FeedbackURISelectorTest.cc
  1545. * test/Makefile.am
  1546. * test/ServerStatURISelectorTest.cc
  1547. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1549. all URIs are tested and their timeout is not reached.
  1550. * src/AdaptiveURISelector.cc
  1551. * src/AdaptiveURISelector.h
  1552. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1553. Changed the default value of --http-auth-challenge option to false.
  1554. * src/OptionHandlerFactory.cc
  1555. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Reuse URIs when all unused URIs run out.
  1557. * src/OptionHandlerFactory.cc
  1558. * src/RequestGroup.cc
  1559. * src/prefs.cc
  1560. * src/prefs.h
  1561. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1563. and BtRejectMessage are derived from RangeBtMessage class.
  1564. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1565. derived from IndexBtMessage class. BtChokeMessage,
  1566. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1567. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1568. ZeroBtMessage class.
  1569. * src/AbstractBtMessage.cc
  1570. * src/AbstractBtMessage.h
  1571. * src/BtAllowedFastMessage.cc
  1572. * src/BtAllowedFastMessage.h
  1573. * src/BtAllowedFastMessageValidator.h: Removed
  1574. * src/BtBitfieldMessage.cc
  1575. * src/BtBitfieldMessage.h
  1576. * src/BtCancelMessage.cc
  1577. * src/BtCancelMessage.h
  1578. * src/BtCancelMessageValidator.h: Removed
  1579. * src/BtChokeMessage.cc
  1580. * src/BtChokeMessage.h
  1581. * src/BtExtendedMessage.cc
  1582. * src/BtExtendedMessage.h
  1583. * src/BtHandshakeMessage.cc
  1584. * src/BtHandshakeMessage.h
  1585. * src/BtHaveAllMessage.cc
  1586. * src/BtHaveAllMessage.h
  1587. * src/BtHaveMessage.cc
  1588. * src/BtHaveMessage.h
  1589. * src/BtHaveMessageValidator.h: Removed
  1590. * src/BtHaveNoneMessage.cc
  1591. * src/BtHaveNoneMessage.h
  1592. * src/BtInterestedMessage.cc
  1593. * src/BtInterestedMessage.h
  1594. * src/BtKeepAliveMessage.cc
  1595. * src/BtKeepAliveMessage.h
  1596. * src/BtNotInterestedMessage.cc
  1597. * src/BtNotInterestedMessage.h
  1598. * src/BtPieceMessage.cc
  1599. * src/BtPieceMessage.h
  1600. * src/BtPortMessage.cc
  1601. * src/BtPortMessage.h
  1602. * src/BtRejectMessage.cc
  1603. * src/BtRejectMessage.h
  1604. * src/BtRejectMessageValidator.h: Removed
  1605. * src/BtRequestMessage.cc
  1606. * src/BtRequestMessage.h
  1607. * src/BtRequestMessageValidator.h: Removed
  1608. * src/BtSuggestPieceMessage.cc
  1609. * src/BtSuggestPieceMessage.h
  1610. * src/BtSuggestPieceMessageValidator.h: Removed
  1611. * src/BtUnchokeMessage.cc
  1612. * src/BtUnchokeMessage.h
  1613. * src/DefaultBtMessageFactory.cc
  1614. * src/IndexBtMessage.cc
  1615. * src/IndexBtMessage.h
  1616. * src/IndexBtMessageValidator.h
  1617. * src/Makefile.am
  1618. * src/PeerMessageUtil.cc
  1619. * src/PeerMessageUtil.h
  1620. * src/RangeBtMessage.cc
  1621. * src/RangeBtMessage.h
  1622. * src/RangeBtMessageValidator.h
  1623. * src/SimpleBtMessage.cc
  1624. * src/SimpleBtMessage.h
  1625. * src/ZeroBtMessage.cc
  1626. * src/ZeroBtMessage.h
  1627. * test/BtRequestMessageTest.cc
  1628. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1629. Reverted usage_text.h to r1093 to avoid to lose translated
  1630. messages.
  1631. * src/usage_text.h
  1632. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1633. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1634. declared as non-const previously is now const and defined in class
  1635. definition.
  1636. * src/AbstractBtMessage.cc
  1637. * src/AbstractBtMessage.h
  1638. * src/BtAllowedFastMessage.cc
  1639. * src/BtAllowedFastMessage.h
  1640. * src/BtBitfieldMessage.h
  1641. * src/BtCancelMessage.cc
  1642. * src/BtCancelMessage.h
  1643. * src/BtChokeMessage.cc
  1644. * src/BtChokeMessage.h
  1645. * src/BtExtendedMessage.cc
  1646. * src/BtExtendedMessage.h
  1647. * src/BtHandshakeMessage.cc
  1648. * src/BtHandshakeMessage.h
  1649. * src/BtHaveAllMessage.cc
  1650. * src/BtHaveAllMessage.h
  1651. * src/BtHaveMessage.cc
  1652. * src/BtHaveMessage.h
  1653. * src/BtHaveNoneMessage.cc
  1654. * src/BtHaveNoneMessage.h
  1655. * src/BtInterestedMessage.cc
  1656. * src/BtInterestedMessage.h
  1657. * src/BtKeepAliveMessage.cc
  1658. * src/BtKeepAliveMessage.h
  1659. * src/BtMessage.h
  1660. * src/BtNotInterestedMessage.cc
  1661. * src/BtNotInterestedMessage.h
  1662. * src/BtPieceMessage.h
  1663. * src/BtPortMessage.cc
  1664. * src/BtPortMessage.h
  1665. * src/BtRejectMessage.cc
  1666. * src/BtRejectMessage.h
  1667. * src/BtRequestMessage.cc
  1668. * src/BtRequestMessage.h
  1669. * src/BtSuggestPieceMessage.cc
  1670. * src/BtSuggestPieceMessage.h
  1671. * src/BtUnchokeMessage.cc
  1672. * src/BtUnchokeMessage.h
  1673. * src/SimpleBtMessage.cc
  1674. * src/SimpleBtMessage.h
  1675. * test/MockBtMessage.h
  1676. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. Use FileEntry::exists()
  1678. * src/MultiDiskAdaptor.cc
  1679. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1680. Added exists()
  1681. * src/FileEntry.cc
  1682. * src/FileEntry.h
  1683. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1684. Added missing prefix dir.
  1685. * src/download_helper.cc
  1686. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1688. * src/CopyDiskAdaptor.cc: Removed
  1689. * src/CopyDiskAdaptor.h: Removed
  1690. * src/DefaultPieceStorage.cc
  1691. * src/Makefile.am
  1692. * src/OptionHandlerFactory.cc
  1693. * src/prefs.cc
  1694. * src/prefs.h
  1695. * src/usage_text.h
  1696. * test/CopyDiskAdaptorTest.cc: Removed
  1697. * test/Makefile.am
  1698. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1699. Rewritten isSameFileBeingDownloaded()
  1700. * src/RequestGroupMan.cc
  1701. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1702. Removed getName() from DownloadContext. getName() is declared in
  1703. BtContext.
  1704. * src/BtContext.h
  1705. * src/DownloadContext.h
  1706. * src/SingleFileDownloadContext.cc
  1707. * src/SingleFileDownloadContext.h
  1708. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1709. in AbstractSingleDiskAdaptor.
  1710. * src/AbstractSingleDiskAdaptor.h
  1711. * src/DiskAdaptor.h
  1712. * src/MultiDiskAdaptor.h
  1713. * src/RequestGroup.cc
  1714. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1715. MultiDiskAdaptor.
  1716. * src/DefaultPieceStorage.cc
  1717. * src/MultiDiskAdaptor.cc
  1718. * src/MultiDiskAdaptor.h
  1719. * test/MultiDiskAdaptorTest.cc
  1720. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1721. FileEntry::getPath() contains store(top level) directory to
  1722. simplify path handling operation. In the previous implementation,
  1723. store directory is concatenated to FileEntry::getPath() in
  1724. DownloadContext.
  1725. * src/BtDependency.cc
  1726. * src/BtPostDownloadHandler.cc
  1727. * src/CopyDiskAdaptor.cc
  1728. * src/DefaultBtContext.cc
  1729. * src/DirectDiskAdaptor.cc
  1730. * src/FileEntry.cc
  1731. * src/FileEntry.h
  1732. * src/FtpNegotiationCommand.cc
  1733. * src/HttpResponse.cc
  1734. * src/HttpResponseCommand.cc
  1735. * src/Metalink2RequestGroup.cc
  1736. * src/MultiDiskAdaptor.cc
  1737. * src/MultiDiskAdaptor.h
  1738. * src/MultiFileAllocationIterator.cc
  1739. * src/RequestGroup.cc
  1740. * src/SingleFileDownloadContext.cc
  1741. * src/SingleFileDownloadContext.h
  1742. * src/download_helper.cc
  1743. * test/BtDependencyTest.cc
  1744. * test/CopyDiskAdaptorTest.cc
  1745. * test/DefaultBtContextTest.cc
  1746. * test/DefaultBtProgressInfoFileTest.cc
  1747. * test/DirectDiskAdaptorTest.cc
  1748. * test/DownloadHelperTest.cc
  1749. * test/FileEntryTest.cc
  1750. * test/MultiDiskAdaptorTest.cc
  1751. * test/MultiFileAllocationIteratorTest.cc
  1752. * test/RequestGroupTest.cc
  1753. * test/SingleFileDownloadContextTest.cc
  1754. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1755. Fixed compiler warning
  1756. * src/download_helper.cc
  1757. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1758. Throw exception if same infohash torrent is now downloading.
  1759. * src/RequestGroup.cc
  1760. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1761. Added --dry-run option. In this mode, aria2 just checks whether
  1762. the remote file is available and doesn't download data. This
  1763. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1764. are canceled in this mode.
  1765. * src/FtpNegotiationCommand.cc
  1766. * src/HttpResponseCommand.cc
  1767. * src/HttpResponseCommand.h
  1768. * src/OptionHandlerFactory.cc
  1769. * src/RequestGroup.cc
  1770. * src/RequestGroupMan.cc
  1771. * src/prefs.cc
  1772. * src/prefs.h
  1773. * src/usage_text.h
  1774. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1775. Fixed compiler waring
  1776. * test/UriListParserTest.cc
  1777. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1778. Parse options in -i list using OptionParser.
  1779. * src/UriListParser.cc
  1780. * src/UriListParser.h
  1781. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1782. Don't reset URI in retry to avoid additional round trips because
  1783. of redirects.
  1784. * src/AbstractCommand.cc
  1785. * src/OptionHandlerFactory.cc
  1786. * src/prefs.cc
  1787. * src/prefs.h
  1788. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Declared hide() in OptionHandler.
  1790. * src/NameMatchOptionHandler.h
  1791. * src/OptionHandler.h
  1792. * src/OptionHandlerImpl.h
  1793. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1794. Updated doc
  1795. * src/Peer.h
  1796. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1797. Added log message in setStatusInternal()
  1798. * src/ServerStat.cc
  1799. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1800. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1801. effectively exclude failed server.
  1802. * src/AbstractCommand.cc
  1803. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1804. Added --index-out option to specify each file path for torrent.
  1805. Here index shown in --show-files option is used to specify which
  1806. file path should be altered. For example, to change the file path
  1807. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1808. option multiple times: --index-out=1=aria2.tar.bz2
  1809. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1810. available. This option can be specified in -i list.
  1811. * src/DefaultBtContext.cc
  1812. * src/DefaultBtContext.h
  1813. * src/MultiDiskAdaptor.cc
  1814. * src/MultiDiskAdaptor.h
  1815. * src/MultiFileAllocationIterator.cc
  1816. * src/OptionHandlerFactory.cc
  1817. * src/OptionHandlerImpl.h
  1818. * src/Util.cc
  1819. * src/Util.h
  1820. * src/download_helper.cc
  1821. * src/prefs.cc
  1822. * src/prefs.h
  1823. * src/usage_text.h
  1824. * test/DefaultBtContextTest.cc
  1825. * test/MultiDiskAdaptorTest.cc
  1826. * test/MultiFileAllocationIteratorTest.cc
  1827. * test/UtilTest.cc
  1828. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1829. Use Util::pathJoin()
  1830. * src/MetalinkParserController.cc
  1831. * test/test.xml
  1832. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1833. Use Util::pathJoin()
  1834. * src/DefaultBtContext.cc
  1835. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Added Util::pathJoin()
  1837. * src/Util.h
  1838. * test/UtilTest.cc
  1839. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1840. Applied basename function to remove directory element in
  1841. content-disposition value.
  1842. Return empty string if content-disposition value is ".." or ".".
  1843. * src/Util.cc
  1844. * test/UtilTest.cc
  1845. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1846. Added --max-overall-download-limit in man page.
  1847. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1848. * doc/aria2c.1.txt
  1849. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Added --max-overall-download-limit option. Now --max-upload-limit
  1851. option is not ignored when --max-overall-upload-limit option has
  1852. non-zero value. aria2 checks download(upload) speed in the order:
  1853. first checks overall speed limit and if it is not exceeded, then
  1854. checks speed limit per download. Thus you can specify both
  1855. value. For example, set --max-overall-download-limit=1M and
  1856. --max-download-limit=500K to prevent from one download from eating
  1857. all overall speed limit.
  1858. * src/DefaultBtInteractive.cc
  1859. * src/DefaultBtInteractive.h
  1860. * src/DefaultBtMessageDispatcher.cc
  1861. * src/DefaultBtMessageDispatcher.h
  1862. * src/DownloadCommand.cc
  1863. * src/DownloadCommand.h
  1864. * src/FtpNegotiationCommand.cc
  1865. * src/HttpResponseCommand.cc
  1866. * src/OptionHandlerFactory.cc
  1867. * src/PeerInteractionCommand.cc
  1868. * src/RequestGroup.cc
  1869. * src/RequestGroup.h
  1870. * src/RequestGroupMan.cc
  1871. * src/RequestGroupMan.h
  1872. * src/prefs.cc
  1873. * src/prefs.h
  1874. * src/usage_text.h
  1875. * test/DefaultBtMessageDispatcherTest.cc
  1876. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1877. Documented select-file option in Input File section.
  1878. Documented --http-auth-challenge option.
  1879. * doc/aria2c.1.txt
  1880. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1881. Now select-file can be specified in the uri list(-i list).
  1882. * src/BtContext.cc
  1883. * src/BtContext.h
  1884. * src/RequestGroup.cc
  1885. * src/Sequence.h
  1886. * src/download_helper.cc
  1887. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Made the upper value of --max-concurrent-downloads options unlimited.
  1889. * src/OptionHandlerFactory.cc
  1890. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Fixed the bug that disk writer is not created even if it shares
  1892. same piece with the preceding file if the length of previous file
  1893. is 0.
  1894. * src/MultiDiskAdaptor.cc
  1895. * test/MultiDiskAdaptorTest.cc
  1896. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1897. In BitTorrent, Open files in read-only mode for hash check. After
  1898. that, re-open file in read/write mode only when the download is
  1899. not finished.
  1900. * src/AbstractDiskWriter.cc
  1901. * src/AbstractDiskWriter.h
  1902. * src/AbstractSingleDiskAdaptor.cc
  1903. * src/AbstractSingleDiskAdaptor.h
  1904. * src/BtCheckIntegrityEntry.cc
  1905. * src/DiskAdaptor.h
  1906. * src/DiskWriter.h
  1907. * src/MultiDiskAdaptor.cc
  1908. * src/MultiDiskAdaptor.h
  1909. * src/RequestGroup.cc
  1910. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1911. Added --http-auth-challenge option. If it is set to true(by
  1912. default), aria2 sends HTTP authorization header only when it is
  1913. requested by the server. If false is set, then authorization
  1914. header is always sent to the server. This is useful for servers
  1915. that don't respond 401 code when authentication is required.
  1916. There is an exception: if username and password are embedded in
  1917. URI, authorization header is always sent to the server regardless
  1918. of this option.
  1919. * src/AuthConfigFactory.cc
  1920. * src/HttpSkipResponseCommand.cc
  1921. * src/OptionHandlerFactory.cc
  1922. * src/prefs.cc
  1923. * src/prefs.h
  1924. * src/usage_text.h
  1925. * test/AuthConfigFactoryTest.cc
  1926. * test/HttpRequestTest.cc
  1927. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1928. * Release 1.2.0
  1929. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1931. Thanks to all translators.
  1932. * po/es.po
  1933. * po/ja.po
  1934. * po/ru.po
  1935. * po/uk.po
  1936. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1937. Call deleteSocketForReadCheck() before socket is closed.
  1938. * src/HttpListenCommand.cc
  1939. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1940. Defined virtual destructor for BObject.
  1941. * src/bencode.h
  1942. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1943. Rewritten BDE to make it efficient.
  1944. * src/bencode.cc
  1945. * src/bencode.h
  1946. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1947. Removed function throw list.
  1948. * src/bencode.cc
  1949. * src/bencode.h
  1950. * test/BencodeTest.cc
  1951. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1952. Enclosed all URLs in double quotes in command-line examples.
  1953. * doc/aria2c.1.txt
  1954. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1955. Updated reference/see also section.
  1956. * README
  1957. * doc/aria2c.1.txt
  1958. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1959. Reorganized man page based on man man-pages.
  1960. * doc/aria2c.1.txt
  1961. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1962. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1963. because same documents are available in man page. Added
  1964. References section.
  1965. * README
  1966. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1967. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1968. PERFORMANCE PROFILE section.
  1969. * doc/aria2c.1.txt
  1970. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1971. Rewritten the section for configuration file.
  1972. * README
  1973. * doc/aria2c.1.txt
  1974. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1975. Fixed the segmentation fault during execution of choking algorithm
  1976. in leecher state because of broken compare operator
  1977. implementation.
  1978. * src/BtLeecherStateChoke.cc
  1979. * src/BtLeecherStateChoke.h
  1980. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1981. Open file in binary mode.
  1982. * src/CookieStorage.cc
  1983. * src/DHTSetup.cc
  1984. * src/DHTUtil.cc
  1985. * src/Netrc.cc
  1986. * src/NsCookieParser.cc
  1987. * src/ProtocolDetector.cc
  1988. * src/RequestGroupMan.cc
  1989. * src/Signature.cc
  1990. * src/bencode.cc
  1991. * src/download_helper.cc
  1992. * src/option_processing.cc
  1993. * test/CookieParserTest.cc
  1994. * test/DefaultBtProgressInfoFileTest.cc
  1995. * test/FileTest.cc
  1996. * test/GZipDecoderTest.cc
  1997. * test/RequestGroupManTest.cc
  1998. * test/SignatureTest.cc
  1999. * test/SingleFileAllocationIteratorTest.cc
  2000. * test/UriListParserTest.cc
  2001. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2002. Removed operator[] because it is ambiguous with built-in []
  2003. operator.
  2004. * src/array_fun.h
  2005. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2006. Fixed compile error
  2007. * src/OptionParser.cc
  2008. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2009. Added missing call to arrayWrapperConst
  2010. * test/array_funTest.cc
  2011. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2012. Use array_wrapper instead of array_ptr.
  2013. * src/DHTRoutingTableDeserializer.cc
  2014. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2015. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2016. * src/array_fun.h
  2017. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2018. Added array_wrapper template.
  2019. * src/array_fun.h
  2020. * test/array_funTest.cc
  2021. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Use operator T* of array_ptr.
  2023. * src/OptionParser.cc
  2024. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. Use localhost instead of 127.0.0.1
  2026. * test/FtpConnectionTest.cc
  2027. * test/MSEHandshakeTest.cc
  2028. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2029. Added operator T*
  2030. * src/array_fun.h
  2031. * test/array_funTest.cc
  2032. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Use dynamically allocated char array to detect memory access
  2034. violation.
  2035. * src/DHTRoutingTableDeserializer.cc
  2036. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2037. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2038. defined.
  2039. * src/PeerMessageUtil.cc
  2040. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2041. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2042. * configure.ac
  2043. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2044. Added a check to see struct sockaddr_in has sin_len member.
  2045. * configure.ac
  2046. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2047. Fixed buffer overrun.
  2048. * src/DHTRoutingTableDeserializer.cc
  2049. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2050. Added LL for long long int constant.
  2051. * test/FtpConnectionTest.cc
  2052. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2053. Casted to unsigned int to suppress compiler warning on netbsd.
  2054. * src/BtRuntime.h
  2055. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2056. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2057. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2058. type time_t.
  2059. * src/SimpleLogger.cc
  2060. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2061. Added test for FtpConnection::receiveSizeResponse().
  2062. * test/FtpConnectionTest.cc
  2063. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. Fix epoll error on the old kernel 2.6.8 or ealier.
  2065. * src/EpollEventPoll.cc
  2066. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2067. Use Util::parseLLInt instead of sscanf for portability. The
  2068. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2069. * src/FtpConnection.cc
  2070. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2071. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2072. block. It should not filter anything.
  2073. * src/BitfieldMan.cc
  2074. * src/ConsoleStatCalc.cc
  2075. * test/BitfieldManTest.cc
  2076. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2077. Fixed the bug that the boolean options that don't take arguments
  2078. don't work.
  2079. * src/OptionHandlerImpl.h
  2080. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2081. Fixed broken selected file BitTorrent download.
  2082. * src/MultiDiskAdaptor.cc
  2083. * test/MultiDiskAdaptorTest.cc
  2084. * test/MultiFileAllocationIteratorTest.cc
  2085. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2086. Fixed #define guard for EpollEventPoll
  2087. * src/EpollEventPoll.h
  2088. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Wait 2 seconds. 1 second is sometimes not enough.
  2090. * test/TimeSeedCriteriaTest.cc
  2091. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2092. Use localhost instead of 127.0.0.1.
  2093. * test/DHTConnectionImplTest.cc
  2094. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2095. Suppressed compiler warning.
  2096. * src/AdaptiveURISelector.cc
  2097. * src/DefaultPieceStorage.cc
  2098. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2099. Defined virtual destructor.
  2100. * src/MetalinkParserState.h
  2101. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2102. Give NULL for second argument of getaddrinfo instead of "0".
  2103. * src/NameResolver.cc
  2104. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2105. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2106. included strptime doesn't parse data for this format.
  2107. * src/FtpConnection.cc
  2108. * test/FtpConnectionTest.cc
  2109. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2110. Removed tests giving -1 for unsigned argument.
  2111. * test/SingleFileDownloadContextTest.cc
  2112. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2113. Don't use sha256 in tests because it might not be supported by the
  2114. SSL library.
  2115. * test/MetalinkProcessorTest.cc
  2116. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2117. Removed tests giving -1 for unsigned argument.
  2118. * test/AlphaNumberDecoratorTest
  2119. * test/BitfieldManTest.cc
  2120. * test/DefaultBtContextTest.cc
  2121. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2122. Fixed compile error without libcares when epoll is available.
  2123. * src/EpollEventPoll.cc
  2124. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2125. Included fstream instead of iostream.
  2126. * test/SignatureTest.cc
  2127. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2128. Removed #include <algorithm>
  2129. * test/RequestGroupTest.cc
  2130. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2132. using RequestGroup::extractURIResult().
  2133. * src/AdaptiveURISelector.cc
  2134. * src/RequestGroup.cc
  2135. * src/RequestGroup.h
  2136. * test/RequestGroupTest.cc
  2137. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2138. Added tests for array_ptr.
  2139. * test/array_funTest.cc
  2140. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2141. Don't send ip parameter to a tracker if ip parameter is empty
  2142. string.
  2143. * src/DefaultBtAnnounce.cc
  2144. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2145. Adjusted line feed.
  2146. * src/version_usage.cc
  2147. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2148. Print tags, possible values when OptionHandlerException is caught.
  2149. * src/option_processing.cc
  2150. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2151. Changed the message for FatalException.
  2152. * src/OptionParser.cc
  2153. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2154. Documented --bt-external-ip option in man page. Updated man pages
  2155. for --proxy-method option.
  2156. * doc/aria2c.1.txt
  2157. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2158. Use GET method for FTP via HTTP proxy.
  2159. * src/FtpInitiateConnectionCommand.cc
  2160. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Changed the default value of --proxy-method option from 'tunnel'
  2162. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2163. option.
  2164. * src/AbstractCommand.cc
  2165. * src/AbstractCommand.h
  2166. * src/FtpInitiateConnectionCommand.cc
  2167. * src/HttpDownloadCommand.cc
  2168. * src/HttpInitiateConnectionCommand.cc
  2169. * src/HttpInitiateConnectionCommand.h
  2170. * src/OptionHandlerFactory.cc
  2171. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2172. Initialized _logger
  2173. * src/SelectEventPoll.cc
  2174. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2175. Defined a copy constructor for the same type.
  2176. * src/SharedHandle.h
  2177. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2178. Added OptionParser::parseArg() which internally uses getopt_long
  2179. to parse command-line options. All command-line options are now
  2180. configured by OptionHandler. No manual editing of struct option*
  2181. is required any more.
  2182. * src/NameMatchOptionHandler.h
  2183. * src/OptionHandler.h
  2184. * src/OptionHandlerFactory.cc
  2185. * src/OptionHandlerImpl.h
  2186. * src/OptionParser.cc
  2187. * src/OptionParser.h
  2188. * src/array_fun.h
  2189. * src/main.cc
  2190. * src/option_processing.cc
  2191. * test/OptionHandlerTest.cc
  2192. * test/OptionParserTest.cc
  2193. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2194. Fixed configure error with --disable-epoll
  2195. * configure.ac
  2196. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2197. Fixed compile error when HAVE_EPOLL is not defined.
  2198. Fixed linker error on bigendian systems.
  2199. * src/SocketCore.cc
  2200. * src/SocketCore.h
  2201. * test/DefaultBtProgressInfoFileTest.cc
  2202. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2203. Added --bt-external-ip option. You can specify the external IP
  2204. address to report to a BitTorrent tracker. Although this function
  2205. is named 'external', it can accept any kind of IP addresses.
  2206. * src/DefaultBtAnnounce.cc
  2207. * src/OptionHandlerFactory.cc
  2208. * src/option_processing.cc
  2209. * src/prefs.cc
  2210. * src/prefs.h
  2211. * src/usage_text.h
  2212. * test/DefaultBtAnnounceTest.cc
  2213. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2214. Extracted the algorithm to find the longest incremental sequence
  2215. as max_sequence template.
  2216. * src/LongestSequencePieceSelector.cc
  2217. * src/a2algo.h
  2218. * test/Makefile.am
  2219. * test/a2algoTest.cc
  2220. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2221. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  2222. * src/usage_text.h
  2223. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2224. Updated doc for --uri-selector, --http-server-listen-port and
  2225. --enable-http-server option. Documented --event-poll option.
  2226. * doc/aria2c.1.txt
  2227. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2228. Updated doc for --enable-http-server.
  2229. * src/usage_text.h
  2230. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Documented --http-server-listen-port and --enable-http-server in
  2232. man page.
  2233. * doc/aria2c.1.txt
  2234. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2235. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  2236. translations. Thanks to all translators.
  2237. * po/es.po
  2238. * po/id.po
  2239. * po/it.po
  2240. * po/ru.po
  2241. * po/uk.po
  2242. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Bump up version number to 1.2.0
  2244. * configure.ac
  2245. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2246. BtContext::getAnnounceTiers() now returns const reference.
  2247. * src/BtContext.h
  2248. * src/DefaultBtContext.cc
  2249. * src/DefaultBtContext.h
  2250. * test/MockBtContext.h
  2251. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2252. Change the number of retries for tracker request based on the
  2253. number of available tracker in a torrent file.
  2254. * src/TrackerWatcherCommand.cc
  2255. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2256. Added _maxTries property to RequestGroup and assign the option
  2257. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  2258. RequestGroup::getMaxTries() instead of
  2259. Option::getAsInt(PREF_MAX_TRIES).
  2260. * src/AbstractCommand.cc
  2261. * src/RequestGroup.cc
  2262. * src/RequestGroup.h
  2263. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2264. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  2265. Mandriva. I modified the patch: make RequestGroup have the
  2266. timeout value and AdaptiveURISelector directly modifies that
  2267. value.
  2268. * src/AbstractCommand.cc
  2269. * src/AdaptiveURISelector.cc
  2270. * src/AdaptiveURISelector.h
  2271. * src/FtpNegotiationCommand.cc
  2272. * src/RequestGroup.cc
  2273. * src/RequestGroup.h
  2274. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2275. Fixed compiler warning
  2276. * test/IteratableChecksumValidatorTest.cc
  2277. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2278. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  2279. integrated downloads. This PieceSelector subclass finds the
  2280. longest continuous sequence in the available missing pieces and
  2281. selects the last index of such sequence. This makes HTTP/FTP
  2282. connections less interrupted by the pieces obtained by BitTorrent
  2283. peers.
  2284. * src/DefaultPieceStorage.cc
  2285. * src/DefaultPieceStorage.h
  2286. * src/LongestSequencePieceSelector.cc
  2287. * src/LongestSequencePieceSelector.h
  2288. * src/Makefile.am
  2289. * src/PieceSelector.h
  2290. * src/RarestPieceSelector.h
  2291. * src/RequestGroup.cc
  2292. * test/BtDependencyTest.cc
  2293. * test/DefaultPieceStorageTest.cc
  2294. * test/IteratableChecksumValidatorTest.cc
  2295. * test/LongestSequencePieceSelectorTest.cc
  2296. * test/Makefile.am
  2297. * test/SegmentManTest.cc
  2298. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2299. Fixed the bug that the average speed is wrong in
  2300. http/ftp/BitTorrent integrated download. Only the download bytes
  2301. in BitTorrent were considered.
  2302. * src/RequestGroup.cc
  2303. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2304. Choose port for BitTorrent/DHT randomly from the specified range.
  2305. * src/DHTConnectionImpl.cc
  2306. * src/PeerListenCommand.cc
  2307. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2308. Send HTTP Authorization header only if it is requested by the
  2309. server(response 401). There are some exceptions. The authorization
  2310. header for proxy is always sent if it is available without request
  2311. by the server. If username/password is specified in the URI, it
  2312. is immediately sent to the server without request by the server.
  2313. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  2314. SharedHandle<AuthConfig>().
  2315. NetrcAuthResolver::resolveAuthConfig() returns
  2316. SharedHandle<AuthConfig>() if no AuthConfig is available.
  2317. * src/AbstractAuthResolver.cc
  2318. * src/AbstractProxyRequestCommand.cc
  2319. * src/AuthConfigFactory.cc
  2320. * src/AuthConfigFactory.h
  2321. * src/HttpConnection.cc
  2322. * src/HttpRequest.cc
  2323. * src/HttpRequest.h
  2324. * src/HttpResponse.cc
  2325. * src/HttpResponseCommand.cc
  2326. * src/HttpSkipResponseCommand.cc
  2327. * test/AuthConfigFactoryTest.cc
  2328. * test/HttpRequestTest.cc
  2329. * test/HttpResponseTest.cc
  2330. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2331. Remove leading "--" from help keyword and a substring after "="
  2332. from help keyword, so that one can query options by '-h--max-' or
  2333. '-hmax-peers=10'.
  2334. * src/option_processing.cc
  2335. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Rewritten PStringVisitor and its implementation.
  2337. * src/PStringBuildVisitor.cc
  2338. * src/PStringBuildVisitor.h
  2339. * src/PStringDatum.h
  2340. * src/PStringNumLoop.h
  2341. * src/PStringSegment.cc
  2342. * src/PStringSegment.h
  2343. * src/PStringSelect.h
  2344. * src/PStringVisitor.h
  2345. * src/download_helper.cc
  2346. * test/PStringBuildVisitorTest.cc
  2347. * test/ParameterizedStringParserTest.cc
  2348. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2349. Persist connection between the built-in HTTP server and a client
  2350. if a client supports keep-alive. Fixed the bug that aria2 exits
  2351. when the HTTP server receives EOF from a client.
  2352. * src/HttpServer.cc
  2353. * src/HttpServer.h
  2354. * src/HttpServerCommand.cc
  2355. * src/HttpServerCommand.h
  2356. * src/HttpServerResponseCommand.cc
  2357. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2358. Added experimental built-in HTTP server. Currently, when a client
  2359. accesses to the server, it responds with the current download
  2360. progress. By default, it is disabled. To enable the server, give
  2361. --enable-http-server option. To change the default port number
  2362. for the server to listen to, use --http-server-listen-port option.
  2363. The response HTML is very simple and refreshes it self each 1
  2364. second. Because of this refresh, you see flicker in normal web
  2365. browser such as Firefox. I recommend to use console-based browser
  2366. such as elinks, w3m. To connect to the server, run 'elinks
  2367. http://localhost:6800/' while running aria2. Please replace port
  2368. number '6800'(which is default) with your preference.
  2369. * src/DownloadEngineFactory.cc
  2370. * src/HttpHeader.cc
  2371. * src/HttpHeader.h
  2372. * src/HttpHeaderProcessor.cc
  2373. * src/HttpHeaderProcessor.h
  2374. * src/HttpListenCommand.cc
  2375. * src/HttpListenCommand.h
  2376. * src/HttpServer.cc
  2377. * src/HttpServer.h
  2378. * src/HttpServerCommand.cc
  2379. * src/HttpServerCommand.h
  2380. * src/HttpServerResponseCommand.cc
  2381. * src/HttpServerResponseCommand.h
  2382. * src/Makefile.am
  2383. * src/OptionHandlerFactory.cc
  2384. * src/Util.cc
  2385. * src/Util.h
  2386. * src/help_tags.h
  2387. * src/option_processing.cc
  2388. * src/prefs.cc
  2389. * src/prefs.h
  2390. * src/usage_text.h
  2391. * test/HttpHeaderProcessorTest.cc
  2392. * test/UtilTest.cc
  2393. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2394. Removed.
  2395. * src/CheckIntegrityMan.cc
  2396. * src/FileAllocationMan.cc
  2397. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Made (piece) hash check sequential for each RequestGroup because
  2399. simultaneous hash check is slower than sequential execution.
  2400. * src/CheckIntegrityCommand.cc
  2401. * src/CheckIntegrityDispatcherCommand.cc
  2402. * src/CheckIntegrityDispatcherCommand.h
  2403. * src/CheckIntegrityMan.h
  2404. * src/ConsoleStatCalc.cc
  2405. * src/DownloadCommand.cc
  2406. * src/DownloadEngine.cc
  2407. * src/DownloadEngine.h
  2408. * src/DownloadEngineFactory.cc
  2409. * src/Makefile.am
  2410. * src/Makefile.in
  2411. * src/RequestGroup.cc
  2412. * src/StatCalc.h
  2413. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2414. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  2415. SequentialDispatcherCommand.
  2416. * src/FileAllocationDispatcherCommand.cc
  2417. * src/SequentialDispatcherCommand.h
  2418. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2419. Rewritten FileAllocationDispatcherCommand using brand new
  2420. SequentialDispatcherCommand.
  2421. * src/DownloadEngineFactory.cc
  2422. * src/FileAllocationCommand.cc
  2423. * src/FileAllocationDispatcherCommand.cc
  2424. * src/FileAllocationDispatcherCommand.h
  2425. * src/Makefile.am
  2426. * src/SequentialDispatcherCommand.h
  2427. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2428. Replaced FileAllocationMan with
  2429. SequentialPicker<FileAllocationEntry>.
  2430. * src/BtCheckIntegrityEntry.cc
  2431. * src/ConsoleStatCalc.cc
  2432. * src/DownloadEngine.cc
  2433. * src/DownloadEngine.h
  2434. * src/DownloadEngineFactory.cc
  2435. * src/FileAllocationCommand.cc
  2436. * src/FileAllocationDispatcherCommand.cc
  2437. * src/FileAllocationMan.h
  2438. * src/Makefile.am
  2439. * src/SequentialPicker.h
  2440. * src/StatCalc.h
  2441. * src/StreamCheckIntegrityEntry.cc
  2442. * test/Makefile.am
  2443. * test/SequentialPickerTest.cc
  2444. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2445. Added doc for adaptive URI selector.
  2446. * doc/aria2c.1.txt
  2447. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2448. Added doc for adaptive URI selector.
  2449. * src/usage_text.h
  2450. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2451. Added doc for --bt-max-peers option.
  2452. * doc/aria2c.1.txt
  2453. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2454. Added doc for --bt-hash-check-seed option.
  2455. * doc/aria2c.1.txt
  2456. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2457. Documented exit codes.
  2458. * doc/aria2c.1.txt
  2459. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2460. Added --bt-max-peers option to specify the maximum number of peers
  2461. per torrent. 0 means unlimited number of peers.
  2462. * src/ActivePeerConnectionCommand.cc
  2463. * src/BtRuntime.h
  2464. * src/DefaultPeerStorage.cc
  2465. * src/DefaultPeerStorage.h
  2466. * src/OptionHandlerFactory.cc
  2467. * src/RequestGroup.cc
  2468. * src/option_processing.cc
  2469. * src/prefs.cc
  2470. * src/prefs.h
  2471. * src/usage_text.h
  2472. * test/DefaultPeerStorageTest.cc
  2473. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2474. Added --bt-hash-check-seed option. If true is given to this
  2475. option, after hash check using --check-integrity option and file
  2476. is complete, continue to seed file. If you want to check file and
  2477. download it only when it is damaged or incomplete, set this option
  2478. to false. This option has effect only on BitTorrent download.
  2479. The default value is true(This is the same behavior with the
  2480. previous release).
  2481. * src/BtCheckIntegrityEntry.cc
  2482. * src/OptionHandlerFactory.cc
  2483. * src/option_processing.cc
  2484. * src/prefs.cc
  2485. * src/prefs.h
  2486. * src/usage_text.h
  2487. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2488. Updated copyright year.
  2489. * src/version_usage.cc
  2490. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2491. Rewritten the usage text for --bt-request-peer-speed-limit option.
  2492. * doc/aria2c.1.txt
  2493. * src/usage_text.h
  2494. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2495. Made the max value of split option unlimited.
  2496. * doc/aria2c.1.txt
  2497. * src/OptionHandlerFactory.cc
  2498. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2499. Fixed compile warning/error.
  2500. * src/DownloadResult.h
  2501. * src/HttpDownloadCommand.cc
  2502. * src/ServerStat.cc
  2503. * test/RequestGroupTest.cc
  2504. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2505. Added --event-poll option to select the method for polling events.
  2506. The available methods are "select" and "epoll". "epoll" is
  2507. available on Linux only. The earlier release has the compile
  2508. option to choose from these methods.
  2509. * configure.ac
  2510. * src/RequestGroupMan.cc
  2511. * src/OptionHandlerFactory.cc
  2512. * src/EpollEventPoll.h
  2513. * src/StreamFileAllocationEntry.cc
  2514. * src/a2io.h
  2515. * src/SelectEventPoll.h
  2516. * src/option_processing.cc
  2517. * src/prefs.h
  2518. * src/EpollEventPoll.cc
  2519. * src/EventPoll.h
  2520. * src/SocketCore.h
  2521. * src/Makefile.am
  2522. * src/main.cc
  2523. * src/DownloadEngine.h
  2524. * src/SelectEventPoll.cc
  2525. * src/DownloadEngine.cc
  2526. * src/SocketCore.cc
  2527. * src/DownloadEngineFactory.cc
  2528. * src/Makefile.in
  2529. * src/prefs.cc
  2530. * src/usage_text.h
  2531. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2532. Included RecoverableException.h from main.cc
  2533. * src/main.cc
  2534. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2536. now returns last error encountered in the HTTP/FTP downloads as a
  2537. exit status value. If all downloads finished successfully, aria2
  2538. returns 0. The error code is defined in src/DownloadResult.h.
  2539. The error occurred in the download currently in progress is not
  2540. reported as a last error. If no error has encountered but there
  2541. are in progress or waiting downloads, aria2 returns 7.
  2542. * src/AbstractCommand.cc
  2543. * src/DlAbortEx.h
  2544. * src/DlRetryEx.h
  2545. * src/DownloadCommand.cc
  2546. * src/DownloadFailureException.h
  2547. * src/DownloadResult.h
  2548. * src/FtpNegotiationCommand.cc
  2549. * src/HttpSkipResponseCommand.cc
  2550. * src/Makefile.am
  2551. * src/MultiUrlRequestInfo.cc
  2552. * src/MultiUrlRequestInfo.h
  2553. * src/RecoverableException.h
  2554. * src/RequestGroup.cc
  2555. * src/RequestGroup.h
  2556. * src/RequestGroupMan.cc
  2557. * src/RequestGroupMan.h
  2558. * src/URIResult.cc
  2559. * src/URIResult.h
  2560. * src/main.cc
  2561. * src/option_processing.cc
  2562. * test/RequestGroupTest.cc
  2563. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2564. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2565. patch adds AdaptiveURISelector, which selects one of the bests
  2566. mirrors for first and reserved connections. For supplementary
  2567. ones, it returns mirrors which has not been tested yet, and if
  2568. each of them already tested, returns mirrors which has to be
  2569. tested again. Otherwise, it doesn't return anymore mirrors.
  2570. * src/AdaptiveURISelector.cc
  2571. * src/AdaptiveURISelector.h
  2572. * src/FtpNegotiationCommand.cc
  2573. * src/HttpResponseCommand.cc
  2574. * src/Makefile.am
  2575. * src/Makefile.in
  2576. * src/OptionHandlerFactory.cc
  2577. * src/RequestGroup.cc
  2578. * src/RequestGroup.h
  2579. * src/RequestGroupMan.cc
  2580. * src/ServerStat.cc
  2581. * src/ServerStat.h
  2582. * src/ServerStatMan.cc
  2583. * src/SpeedCalc.cc
  2584. * src/URISelector.h
  2585. * src/prefs.cc
  2586. * src/prefs.h
  2587. * test/RequestGroupManTest.cc
  2588. * test/ServerStatManTest.cc
  2589. * test/ServerStatTest.cc
  2590. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Fixed unit test error.
  2592. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2593. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2594. * Release 1.1.2
  2595. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2596. Updated Russian translation. Thanks to the translators.
  2597. * po/ru.po
  2598. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2599. Added the description of --use-head option to man page.
  2600. * doc/aria2c.1.txt
  2601. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2602. Bump up version number to 1.1.2
  2603. * configure.ac
  2604. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2605. Added --use-head option to toggle whether HEAD method should be
  2606. used in the first HTTP request. By default aria2 uses HEAD method
  2607. as the first request. When the server doesn't recognize HEAD, then
  2608. give aria2 --use-head=false to force aria2 to use GET method
  2609. instead.
  2610. * src/OptionHandlerFactory.cc
  2611. * src/RequestGroupMan.cc
  2612. * src/option_processing.cc
  2613. * src/prefs.cc
  2614. * src/prefs.h
  2615. * src/usage_text.h
  2616. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2617. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2618. message is received before CHOKE message. The old implementation
  2619. doen't clear the use-bit of the piece when recieved REJECT
  2620. message.
  2621. * src/DefaultBtMessageDispatcher.cc
  2622. * test/DefaultBtMessageDispatcherTest.cc
  2623. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2624. * Release 1.1.1
  2625. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2626. Bump up version number to 1.1.1.
  2627. * configure.ac
  2628. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2629. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2630. is printed repeatedly.
  2631. * src/ConsoleStatCalc.cc
  2632. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2633. * Release 1.1.0
  2634. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2635. Added ifdef clause for conditional compilation.
  2636. * src/main.cc
  2637. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2638. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2639. translations. Thanks to all translators.
  2640. * po/ja.po
  2641. * po/ru.po
  2642. * po/uk.po
  2643. * po/zh_CN.po
  2644. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2645. Added the preceding ">>> " before the message "Printing the
  2646. contents of file..." to make the output more readable.
  2647. * src/main.cc
  2648. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2649. Added try-catch block in the loop in showFiles() to continue the
  2650. operation even if the exception occurred in one file.
  2651. * src/main.cc (showFiles)
  2652. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2653. Made messages in showFiles() translatable.
  2654. * po/aria2.pot
  2655. * src/main.cc
  2656. * src/message.h
  2657. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2658. Print the contents of Torrent/Metalink files are printed without
  2659. -T/-M options.
  2660. * src/main.cc
  2661. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2662. Escaped '--' with '\--'
  2663. * README
  2664. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2665. Updated "How to build" section in README. Mentioned about
  2666. --with-ca-bundle compile option.
  2667. * README
  2668. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2669. Bump up version number to 1.1.0.
  2670. * configure.ac
  2671. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2672. Added a note for --dht-listen-port option.
  2673. * doc/aria2c.1.txt
  2674. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2675. Update doc for --realtime-chunk-checksum option.
  2676. * doc/aria2c.1.txt
  2677. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2678. Update doc for --realtime-chunk-checksum option.
  2679. * src/usage_text.h
  2680. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Updated French, Japanese, Russian and Ukrainian translations.
  2682. Thanks to all translators.
  2683. * po/fr.po
  2684. * po/ja.po
  2685. * po/ru.po
  2686. * po/uk.po
  2687. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2688. Renamed aria2c.pot to aria2.pot
  2689. * po/aria2.pot
  2690. * po/aria2c.pot: Removed.
  2691. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2692. Removed MetaEntry.h
  2693. * src/Makefile.am
  2694. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2695. Rename file by appending digits if a local file exists and its
  2696. file size is larger than that of remote file with --continue
  2697. option. The old implementation just throws exception in such case.
  2698. * src/RequestGroup.cc
  2699. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2700. Fixed the bug that download progress summary is not printed in the
  2701. interval specified by the option.
  2702. * src/ConsoleStatCalc.cc
  2703. * src/ConsoleStatCalc.h
  2704. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2705. Fixed compiler warning
  2706. * src/Cookie.cc
  2707. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2708. Fixed the cookie implementation based on RFC2965.
  2709. Now if a value in domain field is not started with dot, then
  2710. prepend dot. That means a cookie with domain=sf.net is sent to
  2711. wiki.sf.net.
  2712. * src/Cookie.cc
  2713. * test/CookieParserTest.cc
  2714. * test/CookieStorageTest.cc
  2715. * test/CookieTest.cc
  2716. * test/NsCookieParserTest.cc
  2717. * test/Sqlite3MozCookieParserTest.cc
  2718. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2719. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2720. is enabled and the server doesn't support keep-alive.
  2721. * src/AbstractCommand.cc
  2722. * src/DownloadCommand.cc
  2723. * src/HttpDownloadCommand.cc
  2724. * src/HttpDownloadCommand.h
  2725. * src/HttpResponseCommand.cc
  2726. * src/Request.cc
  2727. * src/Request.h
  2728. * test/RequestTest.cc
  2729. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2730. Removed Dictionary/List/Data and its related classes.
  2731. * src/BencodeVisitor.cc: Removed.
  2732. * src/BencodeVisitor.h: Removed.
  2733. * src/Data.cc: Removed.
  2734. * src/Data.h: Removed.
  2735. * src/Dictionary.cc: Removed.
  2736. * src/Dictionary.h: Removed.
  2737. * src/List.cc: Removed.
  2738. * src/List.h: Removed.
  2739. * src/Makefile.am
  2740. * src/MetaEntry.h: Removed.
  2741. * src/MetaEntryVisitor.h: Removed.
  2742. * src/MetaFileUtil.cc: Removed.
  2743. * src/MetaFileUtil.h: Removed.
  2744. * test/BencodeVisitorTest.cc: Removed.
  2745. * test/DataTest.cc: Removed.
  2746. * test/DictionaryTest.cc: Removed.
  2747. * test/ListTest.cc: Removed.
  2748. * test/Makefile.am
  2749. * test/MetaFileUtilTest.cc: Removed.
  2750. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2751. Removed include of MetaEntry.h
  2752. * test/DHTMessageTrackerEntryTest.cc
  2753. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2754. Use BDE instead of Dictionary/List/Data.
  2755. * src/AnnounceList.cc
  2756. * src/AnnounceList.h
  2757. * test/AnnounceListTest.cc
  2758. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2759. Use BDE instead of Dictionary/List/Data.
  2760. * src/DHTAbstractMessage.cc
  2761. * src/DHTAbstractMessage.h
  2762. * src/DHTAnnouncePeerMessage.cc
  2763. * src/DHTAnnouncePeerMessage.h
  2764. * src/DHTAnnouncePeerReplyMessage.cc
  2765. * src/DHTAnnouncePeerReplyMessage.h
  2766. * src/DHTFindNodeMessage.cc
  2767. * src/DHTFindNodeMessage.h
  2768. * src/DHTFindNodeReplyMessage.cc
  2769. * src/DHTFindNodeReplyMessage.h
  2770. * src/DHTGetPeersMessage.cc
  2771. * src/DHTGetPeersMessage.h
  2772. * src/DHTGetPeersReplyMessage.cc
  2773. * src/DHTGetPeersReplyMessage.h
  2774. * src/DHTMessageFactory.h
  2775. * src/DHTMessageFactoryImpl.cc
  2776. * src/DHTMessageFactoryImpl.h
  2777. * src/DHTMessageReceiver.cc
  2778. * src/DHTMessageTracker.cc
  2779. * src/DHTMessageTracker.h
  2780. * src/DHTPingMessage.cc
  2781. * src/DHTPingMessage.h
  2782. * src/DHTPingReplyMessage.cc
  2783. * src/DHTPingReplyMessage.h
  2784. * src/DHTQueryMessage.cc
  2785. * src/DHTQueryMessage.h
  2786. * src/DHTResponseMessage.cc
  2787. * src/DHTResponseMessage.h
  2788. * test/DHTAnnouncePeerMessageTest.cc
  2789. * test/DHTAnnouncePeerReplyMessageTest.cc
  2790. * test/DHTFindNodeMessageTest.cc
  2791. * test/DHTFindNodeReplyMessageTest.cc
  2792. * test/DHTGetPeersMessageTest.cc
  2793. * test/DHTGetPeersReplyMessageTest.cc
  2794. * test/DHTMessageFactoryImplTest.cc
  2795. * test/DHTMessageTrackerTest.cc
  2796. * test/DHTPingMessageTest.cc
  2797. * test/DHTPingReplyMessageTest.cc
  2798. * test/MockDHTMessageFactory.h
  2799. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2800. Added tests the case where length < 0 is specified.
  2801. * test/BencodeTest.cc
  2802. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2803. Fixed memory leak in decoderawstring()
  2804. * src/bencode.cc
  2805. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2806. Added missing #ifdef guard. Added uc() function for String and
  2807. removeKey() for Dict.
  2808. * src/bencode.cc
  2809. * src/bencode.h
  2810. * test/BencodeTest.cc
  2811. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2812. Use BDE instead of Dictionary/List/Data.
  2813. * src/HandshakeExtensionMessage.cc
  2814. * src/HandshakeExtensionMessage.h
  2815. * test/HandshakeExtensionMessageTest.cc
  2816. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2817. Added --max-overall-upload-limit option. This option limits the
  2818. overall upload speed. Stated in help message that the existing
  2819. --max-upload-limit option limits the upload speed per each
  2820. torrent. Man page is also updated.
  2821. * doc/aria2c.1.txt
  2822. * src/DefaultBtMessageDispatcher.cc
  2823. * src/DefaultBtMessageDispatcher.h
  2824. * src/OptionHandlerFactory.cc
  2825. * src/PeerInteractionCommand.cc
  2826. * src/option_processing.cc
  2827. * src/prefs.cc
  2828. * src/prefs.h
  2829. * src/usage_text.h
  2830. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2831. Use BDE instead of Dictionary/List/Data classes.
  2832. * src/CompactPeerListProcessor.cc
  2833. * src/CompactPeerListProcessor.h
  2834. * src/DefaultBtAnnounce.cc
  2835. * src/DefaultBtContext.cc
  2836. * src/DefaultBtContext.h
  2837. * src/DefaultPeerListProcessor.cc
  2838. * src/DefaultPeerListProcessor.h
  2839. * src/DelegatingPeerListProcessor.cc
  2840. * src/DelegatingPeerListProcessor.h
  2841. * src/PeerListProcessor.h
  2842. * src/UTPexExtensionMessage.cc
  2843. * src/Util.h
  2844. * src/message.h
  2845. * test/DefaultBtContextTest.cc
  2846. * test/DefaultPeerListProcessorTest.cc
  2847. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2848. Added bencode helper functions and BDE class.
  2849. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2850. * src/Makefile.am
  2851. * src/bencode.cc
  2852. * src/bencode.h
  2853. * test/BencodeTest.cc
  2854. * test/Makefile.am
  2855. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2856. Fixed the bug that bad URI is sent to the tracker when the announe
  2857. URI in torrent file includes query.
  2858. * src/DefaultBtAnnounce.cc
  2859. * test/DefaultBtAnnounceTest.cc
  2860. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2861. Added Option::blank().
  2862. Use !Option::blank(name) instead of Option::defined(name) for
  2863. the options that take filename.
  2864. * src/MultiUrlRequestInfo.cc
  2865. * src/Option.cc
  2866. * src/Option.h
  2867. * src/main.cc
  2868. * src/option_processing.cc
  2869. * test/OptionTest.cc
  2870. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2871. Documented the default value of --check-certificate option in man
  2872. page.
  2873. * doc/aria2c.1.txt
  2874. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2875. Enabled --check-certificate by default. Added compile
  2876. time(configure) option --with-ca-bundle to specify CA bundle.
  2877. Warn if --check-certificate=true and --ca-certificate is not
  2878. specified or loading CA certificate is failed.
  2879. * configure.ac
  2880. * src/MultiUrlRequestInfo.cc
  2881. * src/OptionHandlerFactory.cc
  2882. * src/message.h
  2883. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2884. Mentioned https tag in help option.
  2885. * doc/aria2c.1.txt
  2886. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2887. Added `https' tag to help option category. Added https tag to
  2888. --ca-certificate, --certificate, --check-certificate and
  2889. --private-key option.
  2890. * src/OptionHandlerFactory.cc
  2891. * src/help_tags.h
  2892. * src/option_processing.cc
  2893. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2894. Changed the package name from `aria2c' to `aria2' in order to fix
  2895. the packaging issue in Debian and Fedora. The name of the
  2896. executable is not changed.
  2897. * configure.ac
  2898. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2899. Fixed typos
  2900. * src/usage_text.h
  2901. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2902. Fixed typos and updated doc.
  2903. * README
  2904. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2905. Fixed typos
  2906. * doc/aria2c.1.txt
  2907. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2908. Fixed typos
  2909. * src/usage_text.h
  2910. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2911. Print a message when no files to download.
  2912. * src/download_helper.cc
  2913. * src/main.cc
  2914. * src/message.h
  2915. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2916. RFC3986 complied Percent-Encoding(urlencode).
  2917. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2918. ones.
  2919. * src/Request.cc
  2920. * src/Util.cc
  2921. * src/Util.h
  2922. * test/BtHandshakeMessageTest.cc
  2923. * test/DefaultBtAnnounceTest.cc
  2924. * test/DefaultBtContextTest.cc
  2925. * test/RequestTest.cc
  2926. * test/UtilTest.cc
  2927. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2928. Fixed the bug that prevents aria2 from downloading 0-length files
  2929. via HTTP/FTP.
  2930. * src/DefaultBtContext.cc
  2931. * src/DefaultBtContext.h
  2932. * src/DownloadContext.h
  2933. * src/FtpNegotiationCommand.cc
  2934. * src/HttpResponseCommand.cc
  2935. * src/HttpResponseCommand.h
  2936. * src/RequestGroup.cc
  2937. * src/SingleFileDownloadContext.cc
  2938. * src/SingleFileDownloadContext.h
  2939. * test/BtPostDownloadHandlerTest.cc
  2940. * test/MetalinkPostDownloadHandlerTest.cc
  2941. * test/MockBtContext.h
  2942. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2943. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2944. * src/option_processing.cc
  2945. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2946. Applied aria2-1.0.1-mingw.patch.
  2947. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2948. mingw.
  2949. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2950. * src/SocketCore.cc
  2951. * src/a2netcompat.h
  2952. * test/SocketCoreTest.cc
  2953. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2954. * Release 1.0.1
  2955. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2956. Updated Ukrainian and Norwegian Nynorsk translations.
  2957. Thanks to all translators.
  2958. * po/nn.po
  2959. * po/uk.po
  2960. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2961. Don't show download result when -S option is used.
  2962. * src/main.cc
  2963. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2964. Bump up version number to 1.0.1
  2965. * configure.ac
  2966. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2967. Closed files after the test cases in MultiDiskWriterTest::
  2968. testResetDiskWriterEntries(). This will fix the unit test error
  2969. in mingw32 build.
  2970. * test/MultiDiskWriterTest.cc
  2971. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2972. Use HEAD method to get file size from HTTP server for segmented
  2973. downloading.
  2974. The request to the BitTorrent Tracker always uses GET method because
  2975. the response of the tracker is small and it doesn't need segmented
  2976. download.
  2977. * src/FtpNegotiationCommand.cc
  2978. * src/HttpRequest.cc
  2979. * src/HttpResponseCommand.cc
  2980. * src/HttpSkipResponseCommand.cc
  2981. * src/RequestGroup.cc
  2982. * src/RequestGroup.h
  2983. * src/TrackerWatcherCommand.cc
  2984. * test/HttpRequestTest.cc
  2985. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2986. Fixed the bug that causes floating exception when -T option is used and
  2987. no URIs are given.
  2988. * src/download_helper.cc
  2989. * test/DownloadHelperTest.cc
  2990. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2991. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2992. errors in MinGW:
  2993. Closed file after saving server stats (RequestGroupMan.cc)
  2994. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2995. Ignored case & handled 2-digit years (strptime.c)
  2996. Added missing suseconds_t definition (a2time.h)
  2997. Fixed socket CLOSE() define (SocketCore.cc)
  2998. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2999. Changed utime() test values from x000 to x00000 as MinGW failed on
  3000. values less than timezone offset from Unix epoch
  3001. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3002. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3003. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3004. handle negative dates (CookieParserTest.cc)
  3005. * src/a2time.h
  3006. * src/FtpConnection.cc
  3007. * src/RequestGroupMan.cc
  3008. * src/SocketCore.cc
  3009. * src/strptime.c
  3010. * test/CookieParserTest.cc
  3011. * test/CopyDiskAdaptorTest.cc
  3012. * test/FileTest.cc
  3013. * test/FtpConnectionTest.cc
  3014. * test/MultiDiskAdaptorTest.cc
  3015. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3016. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3017. * doc/aria2c.1.txt
  3018. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3019. * Release 1.0.0
  3020. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3021. Added '~' to reserved characters.
  3022. * src/Util.cc
  3023. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3024. Do not urlencode Request::url in setUrl() because we want unmodified
  3025. URL using Request::getUrl()
  3026. * src/Request.cc
  3027. * src/Request.h
  3028. * test/RequestTest.cc
  3029. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3030. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3031. Thanks to all translators.
  3032. * po/bg.po
  3033. * po/fr.po
  3034. * po/ja.po
  3035. * po/ru.po
  3036. * po/uk.po
  3037. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3038. Bump up version number to 1.0.0
  3039. * configure.ac
  3040. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3041. Added nosqlite3 build to build_test.sh.
  3042. Renamed noxml as expat.
  3043. * build_test.sh
  3044. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3045. Updated INPUT FILE section.
  3046. * doc/aria2c.1.txt
  3047. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3048. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3049. on big endian systems because test .aria2 files are made for little
  3050. endian systems.
  3051. * test/DefaultBtProgressInfoFileTest.cc
  3052. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3053. Dropped ares support.
  3054. * README
  3055. * configure.ac
  3056. * m4/libares.m4: Removed.
  3057. * src/AsyncNameResolver.cc
  3058. * src/Makefile.am
  3059. * test/Makefile.am
  3060. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3061. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3062. Removed const qualifier from DiskWriter::size().
  3063. * src/AbstractDiskWriter.cc
  3064. * src/AbstractDiskWriter.h
  3065. * src/ByteArrayDiskWriter.cc
  3066. * src/ByteArrayDiskWriter.h
  3067. * src/DiskWriter.h
  3068. * test/ByteArrayDiskWriterTest.cc
  3069. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3070. Fixed the bug that causes segmentation fault/bus error during executing
  3071. choking algorithm while seeding. This is caused by improper
  3072. implementation of compare function which returns inconsistent results
  3073. depending on the timing of last unchoke.
  3074. * src/BtSeederStateChoke.cc
  3075. * src/BtSeederStateChoke.h
  3076. * src/DefaultPeerStorage.cc
  3077. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3078. Removed TODO
  3079. * TODO
  3080. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3081. Added a section that explains how to pass argument to options that
  3082. takes optional arguments with its short form.
  3083. * doc/aria2c.1.txt
  3084. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3085. Added -u for the short form of --max-upload-limit option.
  3086. * doc/aria2c.1.txt
  3087. * src/option_processing.cc
  3088. * src/usage_text.h
  3089. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3090. Added -V for the short form of --check-integrity option.
  3091. Now the argument of --check-integrity option is optional:
  3092. if it is omitted, it is evaluated as true.
  3093. * doc/aria2c.1.txt
  3094. * src/option_processing.cc
  3095. * src/usage_text.h
  3096. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3097. Made the default value of --ftp-pasv option set to true and it can take
  3098. true/false values.
  3099. * src/OptionHandlerFactory.cc
  3100. * src/option_processing.cc
  3101. * src/usage_text.h
  3102. * doc/aria2c.1.txt
  3103. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3104. Given custom random number generator to std::random_shuffle.
  3105. * src/AnnounceList.cc
  3106. * src/BtLeecherStateChoke.cc
  3107. * src/BtSeederStateChoke.cc
  3108. * src/DefaultBtRequestFactory.cc
  3109. * src/MetalinkEntry.cc
  3110. * src/RarestPieceSelector.cc
  3111. * src/SimpleRandomizer.cc
  3112. * src/SimpleRandomizer.h
  3113. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3114. Now the default value of --enable-direct-io is true.
  3115. * src/OptionHandlerFactory.cc
  3116. * doc/aria2c.1.txt
  3117. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3118. Erase peer before executing onReturningPeer and onErasingPeer
  3119. because choking algorithm called from onReturningPeer doesn't
  3120. like erasing peer in the active peer list.
  3121. * src/DefaultPeerStorage.cc
  3122. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3123. Instead of creating special filename in createDownloadResult() if
  3124. inMemoryDownload() is true, now it is done in getFilePath().
  3125. * src/RequestGroup.cc
  3126. * test/RequestGroupTest.cc
  3127. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3128. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3129. processed in memory. This is the fix for previous comment out.
  3130. * src/MemoryBufferPreDownloadHandler.cc
  3131. * src/RequestGroup.cc
  3132. * src/RequestGroup.h
  3133. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3134. Commented out the code which sets virtual directory path "[MEMORY]"
  3135. propagate directory to store to following RequestGroup.
  3136. * src/MemoryBufferPreDownloadHandler.cc
  3137. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3138. Bump up version number to 1.0.0b
  3139. * configure.ac
  3140. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3141. Added input_uris.txt to EXTRA_DIST
  3142. * test/Makefile.am
  3143. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3144. Removed PeerObject.h from Makefile.am
  3145. * src/Makefile.am
  3146. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3147. Avoid slow seeding
  3148. * src/PeerInteractionCommand.cc
  3149. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3150. Updated usage for -i option.
  3151. * src/usage_text.h (TEXT_INPUT_FILE)
  3152. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3153. Added INPUT FILE section to man page.
  3154. Escaped fake URLs.
  3155. * doc/aria2c.1.txt
  3156. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3157. Fixed wrong note position for -o option.
  3158. * doc/aria2c.1.txt
  3159. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3160. Fixed compile error without SSL/XML library.
  3161. * src/DefaultBtProgressInfoFile.cc
  3162. * src/DefaultBtProgressInfoFile.h
  3163. * src/FileMetalinkParserState.cc
  3164. * src/RequestGroup.h
  3165. * src/SocketCore.cc
  3166. * src/SocketCore.h
  3167. * src/VerificationMetalinkParserState.cc
  3168. * src/download_helper.h
  3169. * src/main.cc
  3170. * test/DefaultBtProgressInfoFileTest.cc
  3171. * test/DownloadHelperTest.cc
  3172. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3173. Rewritten URI handling functions. They are now provided as a testable
  3174. functions.
  3175. * src/Makefile.am
  3176. * src/RequestGroup.cc
  3177. * src/RequestGroup.h
  3178. * src/download_helper.cc
  3179. * src/download_helper.h
  3180. * src/main.cc
  3181. * test/DownloadHelperTest.cc
  3182. * test/Makefile.am
  3183. * test/input_uris.txt
  3184. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3185. Quickly terminate commands when ctrl-c is pressed.
  3186. * src/DownloadEngine.cc
  3187. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3188. Quickly terminate idle commands when download finished.
  3189. * src/AbstractCommand.cc
  3190. * src/DownloadCommand.cc
  3191. * src/DownloadEngine.cc
  3192. * src/DownloadEngine.h
  3193. * src/SleepCommand.cc
  3194. * src/SleepCommand.h
  3195. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3196. Added the ability to specify output filename and directory in input
  3197. file.
  3198. Additional parameters are added in the following line of URIs
  3199. with proceeding white space(s), 1 parameter in 1 line.
  3200. The parameter names are the same with the command-line option name
  3201. without proceeding "--". Not all the options are available here:
  3202. at the moment, 'dir' and 'out' options are avialable.
  3203. Please note that out option has no effect against Metalink or BitTorrent
  3204. downloads.
  3205. Example input file:
  3206. http://host/foo-1.1.tar.bz2
  3207. out=foo.tar.bz2
  3208. dir=/tmp/downloads
  3209. http://host/thundermonkey-2.0.tar.bz2
  3210. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  3211. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  3212. thundermonkey-2.0.tar.bz2 is saved as
  3213. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  3214. * src/BtPostDownloadHandler.cc
  3215. * src/Metalink2RequestGroup.cc
  3216. * src/Metalink2RequestGroup.h
  3217. * src/MetalinkPostDownloadHandler.cc
  3218. * src/UriListParser.cc
  3219. * src/UriListParser.h
  3220. * src/main.cc
  3221. * test/Metalink2RequestGroupTest.cc
  3222. * test/UriListParserTest.cc
  3223. * test/filelist1.txt
  3224. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3225. Fixed error when SSL library is not found.
  3226. * configure.ac
  3227. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3228. Cross referenced among -s, -C and -j options.
  3229. Updated usage of -C and -s options.
  3230. * src/usage_text.h
  3231. * doc/aria2c.1.txt
  3232. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3233. Fixed bad cast in 32bit platforms.
  3234. * test/DefaultPieceStorageTest.cc
  3235. (DefaultPieceStorageTest::testGetCompletedLength)
  3236. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3237. Fixed unit test fails on 32bit platforms.
  3238. * test/CookieParserTest.cc
  3239. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3240. Show an average download speed in Download results.
  3241. * src/BtFileAllocationEntry.cc
  3242. * src/DefaultPieceStorage.cc
  3243. * src/DownloadContext.cc
  3244. * src/DownloadContext.h
  3245. * src/DownloadResult.h
  3246. * src/RequestGroup.cc
  3247. * src/RequestGroupMan.cc
  3248. * src/StreamFileAllocationEntry.cc
  3249. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3250. Fixed the bug that metalink file is not processed if Content-Type
  3251. field has a paramter.
  3252. * src/HttpResponse.cc
  3253. * src/HttpResponse.h
  3254. * test/HttpResponseTest.cc
  3255. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3256. Removed unused code.
  3257. * src/DefaultBtAnnounce.cc
  3258. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3259. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  3260. the value larger than DefaultPieceStorage::getTotalLength() when
  3261. in flight pieces are involved.
  3262. * src/DefaultPieceStorage.cc
  3263. * test/DefaultPieceStorageTest.cc
  3264. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3265. Bump up version number to 1.0.0a.
  3266. * configure.ac
  3267. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3268. Updated configure.ac
  3269. * configure.ac
  3270. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3271. Added usege for proxy.
  3272. * doc/aria2c.1.txt
  3273. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3274. Added usage for --ca-certificate, --certificate, --private-key and
  3275. --check-certificate options.
  3276. * doc/aria2c.1.txt
  3277. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3278. Updated man page
  3279. * doc/aria2c.1.txt
  3280. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3281. Added --no-proxy option. It receives comman separated hostname or
  3282. domains to which proxy should not be used.
  3283. aria2 honors the environment variable no_proxy to override no-proxy
  3284. value in configuration file. The user can override the environment
  3285. variable no_proxy with --no-proxy command-line option.
  3286. * src/AbstractCommand.cc
  3287. * src/OptionHandlerFactory.cc
  3288. * src/option_processing.cc
  3289. * src/prefs.cc
  3290. * src/prefs.h
  3291. * src/usage_text.h
  3292. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3293. Added the ability to verify peer in SSL/TLS using given CA certificates.
  3294. The CA certificates are specified in --ca-certificate option.
  3295. By default, the verification is disabled. Use --check-certificate
  3296. option to enable it.
  3297. * src/HttpRequestCommand.cc
  3298. * src/LibgnutlsTLSContext.cc
  3299. * src/LibgnutlsTLSContext.h
  3300. * src/LibsslTLSContext.cc
  3301. * src/LibsslTLSContext.h
  3302. * src/MultiUrlRequestInfo.cc
  3303. * src/OptionHandlerFactory.cc
  3304. * src/SocketCore.cc
  3305. * src/SocketCore.h
  3306. * src/a2functional.h
  3307. * src/message.h
  3308. * src/option_processing.cc
  3309. * src/prefs.cc
  3310. * src/prefs.h
  3311. * src/usage_text.h
  3312. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3313. Added client certificate authentication for SSL/TLS.
  3314. Currently a private key must be decrypted for use with aria2.
  3315. If a user accidentally gives encrypted file to aria2 then following
  3316. thing happens:
  3317. If encrypted private key is given to aria2, it behaves differently
  3318. depending on the ssl library it uses. If aria2 built with openssl then
  3319. openssl prompts the user for password. If aria2 build with gnutls then
  3320. aria2 exists with error at start up.
  3321. * src/DownloadEngineFactory.cc
  3322. * src/MultiUrlRequestInfo.cc
  3323. * src/OptionHandlerFactory.cc
  3324. * src/option_processing.cc
  3325. * src/prefs.cc
  3326. * src/prefs.h
  3327. * src/usage_text.h
  3328. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3329. Introduced TLSContext that holds TLS related data that can be shared
  3330. with multiple SSL connections.
  3331. * src/DownloadEngineFactory.cc
  3332. * src/LibgnutlsTLSContext.cc
  3333. * src/LibgnutlsTLSContext.h
  3334. * src/LibsslTLSContext.cc
  3335. * src/LibsslTLSContext.h
  3336. * src/Makefile.am
  3337. * src/SocketCore.cc
  3338. * src/SocketCore.h
  3339. * src/TLSContext.h
  3340. * src/message.h
  3341. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  3342. Fixed the bug that the DiskWriter of the first FileEntry whose
  3343. `needsFileAllocation' property is false is not created
  3344. even if it shares a piece with next FileEntry which `requested' property
  3345. is true.
  3346. Fixed the bug that zero-length file is not created if pre file
  3347. allocation is not done.
  3348. * src/MultiDiskAdaptor.cc
  3349. * src/MultiDiskAdaptor.h
  3350. * test/MultiDiskAdaptorTest.cc
  3351. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Added the ability to pool proxy connection.
  3353. The conneciton in FTP with proxy-method=GET is not pooled.
  3354. Proxy-Connection header will not be sent when sending CONNECT method.
  3355. * src/DownloadEngine.cc
  3356. * src/DownloadEngine.h
  3357. * src/FtpFinishDownloadCommand.cc
  3358. * src/FtpInitiateConnectionCommand.cc
  3359. * src/FtpNegotiationCommand.cc
  3360. * src/HttpDownloadCommand.cc
  3361. * src/HttpInitiateConnectionCommand.cc
  3362. * src/HttpRequest.cc
  3363. * src/HttpRequest.h
  3364. * src/HttpResponse.cc
  3365. * src/HttpSkipResponseCommand.cc
  3366. * test/HttpRequestTest.cc
  3367. * test/HttpResponseTest.cc
  3368. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3369. Handle date before epoch.
  3370. To create *bad* Time object, call Time::null().
  3371. * src/CookieParser.cc
  3372. * src/FtpConnection.cc
  3373. * src/FtpConnection.h
  3374. * src/FtpNegotiationCommand.cc
  3375. * src/RequestGroup.cc
  3376. * src/TimeA2.cc
  3377. * src/TimeA2.h
  3378. * test/CookieParserTest.cc
  3379. * test/FtpConnectionTest.cc
  3380. * test/TimeTest.cc
  3381. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3382. Added support for following envrionment variables: http_proxy,
  3383. https_proxy, ftp_proxy and all_proxy.
  3384. Each variable is equivalent to the aria2 option whose name is the
  3385. variable name with '_' replaced with '-'.
  3386. They overrides options specified in aria2.conf file.
  3387. The envrionment variables can be overrode using command-line option.
  3388. * src/option_processing.cc
  3389. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Renamed --http-proxy-method as --proxy-method.
  3391. * src/AbstractCommand.cc
  3392. * src/FtpInitiateConnectionCommand.cc
  3393. * src/HttpInitiateConnectionCommand.cc
  3394. * src/OptionHandlerFactory.cc
  3395. * src/option_processing.cc
  3396. * src/prefs.cc
  3397. * src/prefs.h
  3398. * src/usage_text.h
  3399. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3400. Deprecated --http-proxy-user and --http-proxy-passwd options.
  3401. Added --https-proxy, --ftp-proxy and --all-proxy options.
  3402. Above 3 options and --http-proxy option can handle proxy in URL format
  3403. like: http://user:passwd@host:port.
  3404. If a proxy requires user/password, they must be specified in a URL.
  3405. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  3406. instead.
  3407. * src/AbstractCommand.cc
  3408. * src/AbstractCommand.h
  3409. * src/AbstractProxyRequestCommand.cc
  3410. * src/AbstractProxyRequestCommand.h
  3411. * src/AuthConfigFactory.cc
  3412. * src/AuthConfigFactory.h
  3413. * src/FtpFinishDownloadCommand.cc
  3414. * src/FtpInitiateConnectionCommand.cc
  3415. * src/FtpInitiateConnectionCommand.h
  3416. * src/FtpNegotiationCommand.cc
  3417. * src/FtpTunnelRequestCommand.cc
  3418. * src/FtpTunnelRequestCommand.h
  3419. * src/HttpDownloadCommand.cc
  3420. * src/HttpInitiateConnectionCommand.cc
  3421. * src/HttpInitiateConnectionCommand.h
  3422. * src/HttpProxyRequestCommand.cc
  3423. * src/HttpProxyRequestCommand.h
  3424. * src/HttpRequest.cc
  3425. * src/HttpRequest.h
  3426. * src/HttpRequestCommand.cc
  3427. * src/HttpRequestCommand.h
  3428. * src/HttpSkipResponseCommand.cc
  3429. * src/InitiateConnectionCommand.cc
  3430. * src/InitiateConnectionCommand.h
  3431. * src/OptionHandlerFactory.cc
  3432. * src/OptionHandlerImpl.h
  3433. * src/Request.cc
  3434. * src/option_processing.cc
  3435. * src/prefs.cc
  3436. * src/prefs.h
  3437. * src/usage_text.h
  3438. * test/AuthConfigFactoryTest.cc
  3439. * test/HttpRequestTest.cc
  3440. * test/OptionHandlerTest.cc
  3441. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3442. Execute choking algorithm when unchoked and interested peer is
  3443. disconected.
  3444. * src/DefaultPeerStorage.cc
  3445. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3446. Added testcase for BtNotInterestedMessage from unchoked peer.
  3447. * test/BtNotInterestedMessageTest.cc
  3448. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3449. Execute choking algorithm when BtInterestedMessage arrives from
  3450. unchoked peer.
  3451. * src/BtInterestedMessage.cc
  3452. * src/BtInterestedMessage.h
  3453. * src/DefaultBtMessageFactory.cc
  3454. * test/BtInterestedMessageTest.cc
  3455. * test/MockPeerStorage.h
  3456. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3457. AuthConfigFactory is now part of DownloadEngine.
  3458. * src/AbstractProxyRequestCommand.cc
  3459. * src/AuthConfigFactory.h
  3460. * src/DownloadEngine.cc
  3461. * src/DownloadEngine.h
  3462. * src/FtpConnection.cc
  3463. * src/FtpConnection.h
  3464. * src/FtpNegotiationCommand.cc
  3465. * src/HttpConnection.cc
  3466. * src/HttpRequest.cc
  3467. * src/HttpRequest.h
  3468. * src/HttpRequestCommand.cc
  3469. * src/HttpResponse.cc
  3470. * src/HttpResponseCommand.cc
  3471. * src/HttpSkipResponseCommand.cc
  3472. * src/MultiUrlRequestInfo.cc
  3473. * src/main.cc
  3474. * test/FtpConnectionTest.cc
  3475. * test/HttpRequestTest.cc
  3476. * test/HttpResponseTest.cc
  3477. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Corrected catched exception type.
  3479. * src/ServerStatMan.cc
  3480. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3481. DNSCache is now part of DownloadEngine.
  3482. * src/DNSCache.h
  3483. * src/DownloadEngine.cc
  3484. * src/DownloadEngine.h
  3485. * src/InitiateConnectionCommand.cc
  3486. * src/MultiUrlRequestInfo.cc
  3487. * test/Makefile.am
  3488. * test/Makefile.in
  3489. * test/SimpleDNSCacheTest.cc
  3490. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  3492. DownloadEngine.
  3493. * src/ActivePeerConnectionCommand.cc
  3494. * src/BtSetup.cc
  3495. * src/CUIDCounter.h
  3496. * src/DHTSetup.cc
  3497. * src/DownloadCommand.cc
  3498. * src/DownloadEngine.cc
  3499. * src/DownloadEngine.h
  3500. * src/DownloadEngineFactory.cc
  3501. * src/FileAllocationDispatcherCommand.cc
  3502. * src/InitiatorMSEHandshakeCommand.cc
  3503. * src/PeerInitiateConnectionCommand.cc
  3504. * src/PeerInteractionCommand.cc
  3505. * src/PeerListenCommand.cc
  3506. * src/RequestGroup.cc
  3507. * src/StreamFileAllocationEntry.cc
  3508. * src/TrackerWatcherCommand.cc
  3509. * src/main.cc
  3510. * test/RequestGroupManTest.cc
  3511. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. Implemented commented code in BtSeederStateChoke
  3513. * src/BtSeederStateChoke.cc
  3514. * src/Peer.cc
  3515. * src/Peer.h
  3516. * src/PeerInteractionCommand.cc
  3517. * src/PeerSessionResource.cc
  3518. * src/PeerSessionResource.h
  3519. * test/MockBtMessageDispatcher.h
  3520. * test/PeerSessionResourceTest.cc
  3521. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3522. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3523. its object.
  3524. * src/AbstractBtMessage.cc
  3525. * src/ActivePeerConnectionCommand.cc
  3526. * src/ActivePeerConnectionCommand.h
  3527. * src/BtContextAwareCommand.cc
  3528. * src/BtContextAwareCommand.h
  3529. * src/BtExtendedMessage.cc
  3530. * src/BtExtendedMessage.h
  3531. * src/BtInterestedMessage.cc
  3532. * src/BtInterestedMessage.h
  3533. * src/BtNotInterestedMessage.cc
  3534. * src/BtNotInterestedMessage.h
  3535. * src/BtRegistry.cc
  3536. * src/BtRegistry.h
  3537. * src/BtSeederStateChoke.cc
  3538. * src/BtSetup.cc
  3539. * src/DHTGetPeersCommand.cc
  3540. * src/DHTGetPeersCommand.h
  3541. * src/DHTPeerAnnounceEntry.cc
  3542. * src/DHTPeerAnnounceEntry.h
  3543. * src/DHTPeerAnnounceStorage.cc
  3544. * src/DHTPeerAnnounceStorage.h
  3545. * src/DHTPeerLookupTask.cc
  3546. * src/DHTPeerLookupTask.h
  3547. * src/DHTSetup.cc
  3548. * src/DHTSetup.h
  3549. * src/DHTTaskFactory.h
  3550. * src/DHTTaskFactoryImpl.cc
  3551. * src/DHTTaskFactoryImpl.h
  3552. * src/DefaultBtAnnounce.cc
  3553. * src/DefaultBtInteractive.cc
  3554. * src/DefaultBtInteractive.h
  3555. * src/DefaultBtMessageDispatcher.cc
  3556. * src/DefaultBtMessageDispatcher.h
  3557. * src/DefaultBtMessageFactory.cc
  3558. * src/DefaultBtMessageFactory.h
  3559. * src/DefaultBtMessageReceiver.cc
  3560. * src/DefaultBtProgressInfoFile.cc
  3561. * src/DefaultBtProgressInfoFile.h
  3562. * src/DefaultBtRequestFactory.cc
  3563. * src/DefaultBtRequestFactory.h
  3564. * src/DefaultExtensionMessageFactory.cc
  3565. * src/DefaultExtensionMessageFactory.h
  3566. * src/DefaultPeerStorage.cc
  3567. * src/DefaultPeerStorage.h
  3568. * src/DownloadEngine.cc
  3569. * src/DownloadEngine.h
  3570. * src/InitiatorMSEHandshakeCommand.cc
  3571. * src/InitiatorMSEHandshakeCommand.h
  3572. * src/MSEHandshake.cc
  3573. * src/MSEHandshake.h
  3574. * src/Makefile.am
  3575. * src/Makefile.in
  3576. * src/PeerChokeCommand.cc
  3577. * src/PeerChokeCommand.h
  3578. * src/PeerInitiateConnectionCommand.cc
  3579. * src/PeerInitiateConnectionCommand.h
  3580. * src/PeerInteractionCommand.cc
  3581. * src/PeerInteractionCommand.h
  3582. * src/PeerObject.h
  3583. * src/PeerReceiveHandshakeCommand.cc
  3584. * src/PeerReceiveHandshakeCommand.h
  3585. * src/ReceiverMSEHandshakeCommand.cc
  3586. * src/RequestGroup.cc
  3587. * src/RequestGroup.h
  3588. * src/RequestGroupMan.cc
  3589. * src/RequestGroupMan.h
  3590. * src/SeedCheckCommand.cc
  3591. * src/SeedCheckCommand.h
  3592. * src/ShareRatioSeedCriteria.h
  3593. * src/SimpleBtMessage.cc
  3594. * src/TrackerWatcherCommand.cc
  3595. * src/TrackerWatcherCommand.h
  3596. * src/UTPexExtensionMessage.cc
  3597. * src/UTPexExtensionMessage.h
  3598. * test/BtCancelMessageTest.cc
  3599. * test/BtChokeMessageTest.cc
  3600. * test/BtExtendedMessageTest.cc
  3601. * test/BtInterestedMessageTest.cc
  3602. * test/BtNotInterestedMessageTest.cc
  3603. * test/BtPieceMessageTest.cc
  3604. * test/BtPortMessageTest.cc
  3605. * test/BtRegistryTest.cc
  3606. * test/BtRejectMessageTest.cc
  3607. * test/BtRequestMessageTest.cc
  3608. * test/DHTPeerAnnounceEntryTest.cc
  3609. * test/DHTPeerAnnounceStorageTest.cc
  3610. * test/DefaultBtMessageDispatcherTest.cc
  3611. * test/DefaultBtMessageFactoryTest.cc
  3612. * test/DefaultBtProgressInfoFileTest.cc
  3613. * test/DefaultBtRequestFactoryTest.cc
  3614. * test/DefaultExtensionMessageFactoryTest.cc
  3615. * test/MSEHandshakeTest.cc
  3616. * test/MockDHTTaskFactory.h
  3617. * test/ShareRatioSeedCriteriaTest.cc
  3618. * test/UTPexExtensionMessageTest.cc
  3619. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3620. Fixed compiler warning.
  3621. * test/UtilTest.cc
  3622. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3623. Treat Cookie object as session cookie if expiry = 0 is given.
  3624. With this change, you can specify session scoped cookies in an external
  3625. file setting expiry value to 0.
  3626. * src/Cookie.cc
  3627. * src/Cookie.h
  3628. * test/CookieParserTest.cc
  3629. * test/CookieStorageTest.cc
  3630. * test/CookieTest.cc
  3631. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3632. Changed signature of DHTMessageFactory::createResponseMessage().
  3633. Removed unused validateIDMatch.
  3634. * src/DHTMessageFactory.h
  3635. * src/DHTMessageFactoryImpl.cc
  3636. * src/DHTMessageFactoryImpl.h
  3637. * src/DHTMessageTracker.cc
  3638. * test/DHTMessageFactoryImplTest.cc
  3639. * test/MockDHTMessageFactory.h
  3640. Dropped DHT message coming from same ID of localhost.
  3641. * src/DHTMessageReceiver.cc
  3642. Rejected adding node whose ID is the same as localhost's.
  3643. * src/DHTRoutingTable.cc
  3644. * test/BtPortMessageTest.cc
  3645. * test/DHTRoutingTableTest.cc
  3646. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3647. Pool connection when redirection occurs with Content-Length = 0.
  3648. * src/HttpSkipResponseCommand.cc
  3649. * src/HttpSkipResponseCommand.h
  3650. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3651. Fixed the bug that causes time out when redirection occurs with
  3652. content-length 0.
  3653. * src/HttpResponseCommand.cc
  3654. * src/HttpSkipResponseCommand.cc
  3655. * src/HttpSkipResponseCommand.h
  3656. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3657. Now each status legends is shown only when it appears in Download
  3658. Result. If Download Result has no item, then status legend will not
  3659. be printed.
  3660. * src/RequestGroupMan.cc
  3661. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3662. Removed duplicate creation of OptionHandlers.
  3663. * src/option_processing.cc
  3664. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3665. Fixed the bug that causes segmentation fault when accessing files which
  3666. don't exist or are not included in --select-file option while
  3667. validating chunk checksum.
  3668. * src/MultiDiskAdaptor.cc
  3669. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3670. Fixed compiler warning.
  3671. * test/UtilTest.cc
  3672. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3673. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3674. * src/IteratableChecksumValidator.cc
  3675. * src/IteratableChunkChecksumValidator.cc
  3676. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3677. * Release 0.16.2
  3678. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3679. Added Serbian translation. Updated Ukrainian translation.
  3680. Thanks to all translators.
  3681. * po/sr.po
  3682. * po/uk.po
  3683. * po/LINGUAS
  3684. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3685. Bump up version number to 0.16.2
  3686. * configure.ac
  3687. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. Added length equality test to operator== to drop a piece message
  3689. whose length does not match to the requested one.
  3690. * src/RequestSlot.cc
  3691. * test/DefaultBtMessageDispatcherTest.cc
  3692. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3693. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3694. recieved.
  3695. In this fix, if a request larger than 16KiB length is received, aria2
  3696. disconnects the peer.
  3697. * src/BtConstants.h
  3698. * src/PeerMessageUtil.cc
  3699. * src/PeerMessageUtil.h
  3700. * test/BtRequestMessageTest.cc
  3701. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3702. * Release 0.16.1
  3703. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3704. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3705. * doc/aria2c.1.txt
  3706. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3707. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3708. Updated French, Simplified Chinese and Japanese translations.
  3709. Thanks to all translators.
  3710. en@quot and en@boldquot are also added.
  3711. * po/LINGUAS
  3712. * po/fr.po
  3713. * po/ja.po
  3714. * po/uk.po
  3715. * po/vi.po
  3716. * po/zh_CN.po
  3717. * po/zh_TW.po
  3718. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3719. Bump up version number to 0.16.1.
  3720. * configure.ac
  3721. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Updated README.
  3723. * README
  3724. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3725. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3726. not to replace '--' with em dash character.
  3727. * doc/aria2c.1.txt
  3728. * doc/makeman
  3729. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3730. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3731. every SEC seconds.
  3732. * src/DownloadEngineFactory.cc
  3733. * src/OptionHandlerFactory.cc
  3734. * src/option_processing.cc
  3735. * src/usage_text.h
  3736. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3737. Fixed compile warning on linux-amd64
  3738. * src/FtpConnection.cc
  3739. * src/IteratableChunkChecksumValidator.cc
  3740. * src/MultiDiskAdaptor.cc
  3741. Fixed the bug that unit test fails on linux-amd64
  3742. * test/UtilTest.cc
  3743. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3744. Added --dht-file-path option to change the path to dht.dat, which is a
  3745. serialized DHT routing table.
  3746. * src/OptionHandlerFactory.cc
  3747. * src/option_processing.cc
  3748. * src/usage_text.h
  3749. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3750. Fixed possible underflow.
  3751. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3752. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3753. Fixed the bug that last character in URI is not encoded.
  3754. * src/Request.cc
  3755. * test/RequestTest.cc
  3756. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Fixed the bug that referer header field contains fragment.
  3758. Now Request class removes fragment part of URI and encodes it
  3759. in Request::setUri() and setReferer().
  3760. * src/Request.h
  3761. * src/Request.cc
  3762. * test/RequestTest.cc
  3763. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3764. Added missing m4 macros.
  3765. * m4/cppunit.m4
  3766. * m4/libgcrypt.m4
  3767. * m4/libgnutls-extra.m4
  3768. * m4/libgnutls.m4
  3769. * m4/libxml2.m4
  3770. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3771. Fixed compile error with gcc-4.4(snapshot)
  3772. * src/File.cc
  3773. * src/FtpConnection.cc
  3774. * src/OptionHandlerImpl.h
  3775. * src/Util.cc
  3776. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3777. Removed assert()
  3778. * src/SocketBuffer.cc (SocketBuffer::send)
  3779. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3780. Changed the type of _numNewConnection to unsigned int.
  3781. * src/ActivePeerConnectionCommand.cc
  3782. * src/ActivePeerConnectionCommand.h
  3783. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3784. * Release 0.16.0
  3785. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3786. Updated doc
  3787. * README
  3788. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3789. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3790. translations. Thanks to all translators.
  3791. * po/bg.po
  3792. * po/de.po
  3793. * po/fr.po
  3794. * po/ja.po
  3795. * po/zh_CN.po
  3796. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3797. Bump up version number to 0.16.0.
  3798. * configure.ac
  3799. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3800. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3801. int32_t.
  3802. Changed the type of count to int32_t.
  3803. * src/Metalink2RequestGroup.cc
  3804. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Added test for Time::elapsed(time_t).
  3806. * test/TimeTest.cc
  3807. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3808. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3809. Util::difftv() should be used instead.
  3810. * src/TimeA2.cc
  3811. * src/TimeA2.h
  3812. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3813. Made socket for dht connections non-blocking
  3814. * src/DHTAbstractMessage.cc
  3815. * src/DHTAbstractMessage.h
  3816. * src/DHTConnection.h
  3817. * src/DHTConnectionImpl.cc
  3818. * src/DHTConnectionImpl.h
  3819. * src/DHTMessage.h
  3820. * src/DHTMessageDispatcherImpl.cc
  3821. * src/DHTMessageDispatcherImpl.h
  3822. * src/DHTUnknownMessage.cc
  3823. * src/DHTUnknownMessage.h
  3824. * src/SocketCore.cc
  3825. * src/SocketCore.h
  3826. * test/MockDHTMessage.h
  3827. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3828. Changed the type of offset to int.
  3829. * src/ParameterizedStringParser.cc
  3830. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3831. Made getAsInt() return int32_t
  3832. * src/Option.h
  3833. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3834. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3835. build.
  3836. * configure.ac
  3837. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3838. Use sqlite3_open if sqlite3_open_v2 is not available.
  3839. * src/Sqlite3MozCookieParser.cc
  3840. * src/Sqlite3MozCookieParser.h
  3841. * m4/sqlite3.m4
  3842. * test/Sqlite3MozCookieParserTest.cc
  3843. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3844. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3845. * src/BtPieceMessage.cc
  3846. * src/DHTPeerAnnounceStorage.cc
  3847. * src/DefaultPieceStorage.cc
  3848. * src/DownloadCommand.cc
  3849. * src/DownloadEngine.cc
  3850. * src/FtpConnection.cc
  3851. * src/PeerConnection.cc
  3852. * src/PeerMessageUtil.cc
  3853. * src/RequestGroup.cc
  3854. * src/RequestGroupMan.cc
  3855. * src/SimpleBtMessage.cc
  3856. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3857. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3858. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3859. * src/AbstractDiskWriter.cc
  3860. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3861. Don't set Request::supportsPersistentConnection() in HttpConnection
  3862. since this code is also used in AbstractProxyResponseCommand.
  3863. Moved those code to HttpResponse.
  3864. * src/HttpResponse.cc
  3865. * src/HttpResponse.h
  3866. * src/HttpConnection.cc
  3867. * src/HttpConnection.h
  3868. * src/HttpResponseCommand.cc
  3869. * test/HttpResponseTest.cc
  3870. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3872. The configuration is minimum: no torrent, no metalink, so there may be
  3873. other compile error on their code.
  3874. * src/a2netcompat.h
  3875. * src/File.cc
  3876. * src/File.h
  3877. * src/SocketCore.cc
  3878. * src/SocketCore.h
  3879. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3880. Made a socket of incoming peer non-blocking.
  3881. * src/PeerListenCommand.cc
  3882. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3883. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3884. whole message data is not sent in one send() call.
  3885. * src/BtPieceMessage.cc
  3886. * src/BtPieceMessage.h
  3887. * src/PeerConnection.cc
  3888. * src/PeerConnection.h
  3889. * src/SimpleBtMessage.cc
  3890. * src/SimpleBtMessage.h
  3891. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3892. Fixed the bug that aria2 downloads faster than max-download-limit when
  3893. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3894. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3895. , instead of sum of them.
  3896. * src/ActivePeerConnectionCommand.cc
  3897. * src/DefaultBtInteractive.cc
  3898. * src/DownloadCommand.cc
  3899. * src/PeerInteractionCommand.cc
  3900. * src/PeerReceiveHandshakeCommand.cc
  3901. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3902. Fixed the bug that HTTPS download fails.
  3903. * src/AbstractCommand.cc
  3904. * src/AbstractCommand.h
  3905. * src/DownloadCommand.cc
  3906. * src/FtpConnection.cc
  3907. * src/HttpConnection.cc
  3908. * src/HttpRequestCommand.cc
  3909. * src/HttpResponseCommand.cc
  3910. * src/HttpSkipResponseCommand.cc
  3911. * src/MSEHandshake.cc
  3912. * src/PeerConnection.cc
  3913. * src/SocketCore.cc
  3914. * src/SocketCore.h
  3915. Fixed the bug that aria2 doesn't download whole content body and cannot
  3916. reuse connection if chunked transfer encoding and gzip content encoding
  3917. are set.
  3918. * src/DownloadCommand.cc
  3919. * src/HttpSkipResponseCommand.cc
  3920. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3921. Updated man page.
  3922. * doc/aria2c.1.txt
  3923. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3924. When error occurred while aria2 was parsing an .aria2.conf file, print
  3925. the usage of the option that caused error.
  3926. * src/option_processing.cc
  3927. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3928. Fixed compile error on OptionHandlerException
  3929. * src/Makefile.am
  3930. * src/OptionHandlerException.cc
  3931. * src/OptionHandlerException.h
  3932. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Moved message of the error to OptionHandlerException.h
  3934. * src/NameMatchOptionHandler.h
  3935. * src/OptionHandlerException.h
  3936. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3937. When error occurs while aria2 is parsing an command-line option, print
  3938. the usage of the option.
  3939. * src/Makefile.am
  3940. * src/NameMatchOptionHandler.h
  3941. * src/OptionHandlerException.h
  3942. * src/option_processing.cc
  3943. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3944. Reverted previous change.
  3945. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3946. username is not in URI.
  3947. * src/HttpRequest.cc
  3948. * src/Request.cc
  3949. * test/HttpRequestTest.cc
  3950. * test/RequestTest.cc
  3951. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3952. Now colon is required for username and password in FTP URL, like:
  3953. ftp://username:password@host.
  3954. If colon is not there, aria2 don't parse it as a username. For example,
  3955. aria2 don't retrieve username from ftp://username@host.
  3956. This fix was made in order to login FTP server via non-transparent ftp
  3957. proxy.
  3958. * src/Request.cc
  3959. * test/RequestTest.cc
  3960. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Use netrc for HTTP.
  3962. Now FTP user/password is sent in Authorization header when
  3963. --ftp-via-http-proxy=get is given.
  3964. * src/AuthConfigFactory.cc
  3965. * src/HttpRequest.cc
  3966. * src/HttpRequest.h
  3967. * src/NetrcAuthResolver.cc
  3968. * src/NetrcAuthResolver.h
  3969. * src/OptionHandlerFactory.cc
  3970. * src/option_processing.cc
  3971. * src/prefs.cc
  3972. * src/prefs.h
  3973. * test/AuthConfigFactoryTest.cc
  3974. * test/HttpRequestTest.cc
  3975. * test/NetrcAuthResolverTest.cc
  3976. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3977. Issue PWD command first and get working directory and use it as a prefix
  3978. for CWD command.
  3979. * src/DownloadEngine.cc
  3980. * src/DownloadEngine.h
  3981. * src/FtpConnection.cc
  3982. * src/FtpConnection.h
  3983. * src/FtpFinishDownloadCommand.cc
  3984. * src/FtpInitiateConnectionCommand.cc
  3985. * src/FtpNegotiationCommand.cc
  3986. * src/FtpNegotiationCommand.h
  3987. * test/FtpConnectionTest.cc
  3988. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3989. Removed default user/pass for FTP user/pass, since it should not have
  3990. precedence over netrc configuration by default.
  3991. * src/OptionHandlerFactory.cc
  3992. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3993. Added debug log for socket event.
  3994. * src/AbstractCommand.cc
  3995. * src/PeerAbstractCommand.cc
  3996. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3997. Log microseconds.
  3998. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3999. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4000. Replaced HelpItem.cc with OptionHandler.cc.
  4001. * po/POTFILES.in
  4002. Updated po files with 'make update-po'
  4003. * po/aria2c.pot
  4004. * po/*.po
  4005. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4006. Removed possible values from the text.
  4007. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4008. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4009. Removed unused preferences:
  4010. PREF_NO_PREALLOCATION
  4011. PREF_STDOUT_LOG
  4012. PREF_TRACKER_MAX_TRIES
  4013. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4014. PREF_MIN_SEGMENT_SIZE
  4015. * src/option_processing.cc
  4016. * src/prefs.cc
  4017. * src/prefs.h
  4018. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4019. Integrated HelpItem into OptionParser to ease the workload for adding
  4020. new options. Removed default value from usage text.
  4021. * src/HelpItem.cc: Removed.
  4022. * src/HelpItem.h: Removed.
  4023. * src/HelpItemFactory.cc: Removed.
  4024. * src/HelpItemFactory.h: Removed.
  4025. * src/Makefile.am
  4026. * src/Makefile.in
  4027. * src/NameMatchOptionHandler.h
  4028. * src/OptionHandler.cc
  4029. * src/OptionHandler.h
  4030. * src/OptionHandlerFactory.cc
  4031. * src/OptionHandlerImpl.h
  4032. * src/OptionParser.cc
  4033. * src/OptionParser.h
  4034. * src/TagContainer.cc: Removed.
  4035. * src/TagContainer.h: Removed.
  4036. * src/TaggedItem.cc: Removed.
  4037. * src/TaggedItem.h: Removed.
  4038. * src/main.cc
  4039. * src/option_processing.cc
  4040. * src/usage_text.h
  4041. * src/version_usage.cc
  4042. * test/HelpItemTest.cc: Removed.
  4043. * test/Makefile.am
  4044. * test/Makefile.in
  4045. * test/OptionHandlerTest.cc
  4046. * test/OptionParserTest.cc
  4047. * test/TagContainerTest.cc: Removed.
  4048. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4049. Moved `TransferStat stat = ...' to inside the `if' clause.
  4050. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4051. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4052. Fixed the bug that a block in a piece is requested when same block is
  4053. already requested to the same peer in end game mode.
  4054. * src/BtRequestFactory.h
  4055. * src/DefaultBtInteractive.cc
  4056. * src/DefaultBtRequestFactory.cc
  4057. * src/DefaultBtRequestFactory.h
  4058. * src/DefaultPieceStorage.cc
  4059. * src/DefaultPieceStorage.h
  4060. * src/PieceStorage.h
  4061. * src/UnknownLengthPieceStorage.cc
  4062. * src/UnknownLengthPieceStorage.h
  4063. * test/DefaultBtRequestFactoryTest.cc
  4064. * test/DefaultPieceStorageTest.cc
  4065. * test/MockBtRequestFactory.h
  4066. * test/MockPieceStorage.h
  4067. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4068. Removed _uploadLength and _downloadLength from PeerSessionResource
  4069. and use PeerStat::_sessionUploadLength and
  4070. PeerStat::_sessionDownloadLength.
  4071. * src/PeerSessionResource.cc
  4072. * src/PeerSessionResource.h
  4073. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4074. Fixed the bug that prefixLength of split bucket which doesn't include
  4075. local node ID is incremented.
  4076. * src/DHTBucket.cc
  4077. * src/DHTBucket.h
  4078. * test/DHTBucketTest.cc
  4079. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4080. Added cookies.sqlite to EXTRA_DIST
  4081. * test/Makefile.am
  4082. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Added Turkish translation. Updated French, German, Russian and
  4084. Simplified Chinese translations. Thanks to all translators.
  4085. * po/LINGUAS
  4086. * po/de.po
  4087. * po/fr.po
  4088. * po/ru.po
  4089. * po/tr.po
  4090. * po/zh_CN.po
  4091. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4092. Added deliminating text to the beginning of the log so that one can find
  4093. where the log starts easily.
  4094. * src/main.cc
  4095. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4096. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4097. to fix compile error when async DNS is not enabled by configuration.
  4098. * src/AbstractCommand.cc
  4099. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4100. If establishing conneciton to a server is failed, then mark error on
  4101. its ServerStat.
  4102. Added the cause of error to log when error event occurred.
  4103. Moved message string to message.h for translation.
  4104. * src/AbstractCommand.cc
  4105. * src/AbstractCommand.h
  4106. * src/FtpNegotiationCommand.cc
  4107. * src/HttpRequestCommand.cc
  4108. * src/PeerAbstractCommand.cc
  4109. * src/message.h
  4110. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. Added the function to get error message from socket.
  4112. * src/SocketCore.cc
  4113. * src/SocketCore.h
  4114. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4115. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4116. * src/RequestGroupMan.cc
  4117. * src/RequestGroupMan.h
  4118. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4119. If error event is received in epoll, then abort download immediately.
  4120. * src/AbstractCommand.cc
  4121. * src/Command.cc
  4122. * src/Command.h
  4123. * src/DownloadEngine.cc
  4124. * src/PeerAbstractCommand.cc
  4125. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4126. Added usage message for --uri-selector, --server-stat-of,
  4127. --server-stat-in, --server-stat-timeout options.
  4128. * src/HelpItemFactory.cc
  4129. * src/usage_text.h
  4130. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4131. Added upper limit of FTP response buffer. The current implementation
  4132. uses 4096bytes as a limit.
  4133. * src/FtpConnection.cc
  4134. * src/FtpConnection.h
  4135. * test/FtpConnectionTest.cc
  4136. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4137. Use non-blocking socket for TCP communication to avoid possible
  4138. blocking due to buffer full.
  4139. * src/AbstractProxyRequestCommand.cc
  4140. * src/FtpConnection.cc
  4141. * src/FtpConnection.h
  4142. * src/FtpNegotiationCommand.cc
  4143. * src/FtpNegotiationCommand.h
  4144. * src/HttpConnection.cc
  4145. * src/HttpConnection.h
  4146. * src/HttpRequestCommand.cc
  4147. * src/InitiatorMSEHandshakeCommand.cc
  4148. * src/InitiatorMSEHandshakeCommand.h
  4149. * src/MSEHandshake.cc
  4150. * src/MSEHandshake.h
  4151. * src/Makefile.am
  4152. * src/PeerConnection.cc
  4153. * src/PeerConnection.h
  4154. * src/PeerInteractionCommand.cc
  4155. * src/PeerListenCommand.cc
  4156. * src/ReceiverMSEHandshakeCommand.cc
  4157. * src/ReceiverMSEHandshakeCommand.h
  4158. * src/SocketBuffer.cc
  4159. * src/SocketBuffer.h
  4160. * src/SocketCore.cc
  4161. * src/SocketCore.h
  4162. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4163. Call setStatusRealtime() in constructor.
  4164. * src/RealtimeCommand.cc
  4165. * src/RealtimeCommand.h
  4166. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4167. Call Download::setNoWait(true) to execute newly created command without
  4168. a pause.
  4169. * src/AbstractCommand.cc
  4170. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4171. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4172. found' error from HTTP/FTP server NUM times without getting single
  4173. bytes of data, then force the download to fail.
  4174. Basically aria2 tris all URIs available. So if long list of URIs are
  4175. specified in Metalink, then aria2 will take a long time to fail
  4176. eventually if all URIs are outdated. This option eases this situation
  4177. to limit the number of servers to try.
  4178. * src/FtpNegotiationCommand.cc
  4179. * src/HelpItemFactory.cc
  4180. * src/HttpResponseCommand.cc
  4181. * src/OptionHandlerFactory.cc
  4182. * src/PeerStat.h
  4183. * src/RequestGroup.cc
  4184. * src/RequestGroup.h
  4185. * src/SegmentMan.cc
  4186. * src/SegmentMan.h
  4187. * src/option_processing.cc
  4188. * src/prefs.cc
  4189. * src/prefs.h
  4190. * src/usage_text.h
  4191. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4193. response even if more than one response is in it.
  4194. * src/FtpConnection.cc
  4195. * src/FtpConnection.h
  4196. * test/FtpConnectionTest.cc
  4197. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Merged from stable-0.15
  4199. * m4/libcares.m4
  4200. Use pkg-config
  4201. * m4/sqlite3.m4
  4202. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4203. Removed unnecessary if statement.
  4204. * src/DefaultPieceStorage.cc (initPieceStorage)
  4205. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4206. Added --connect-timeout option to specify connect timeout in seconds.
  4207. This option is in effect for HTTP/FTP/proxy server. The timeout for
  4208. connecting to BitTorrent peer is not controlled by this option.
  4209. * src/AbstractProxyRequestCommand.cc
  4210. * src/FtpNegotiationCommand.cc
  4211. * src/HelpItemFactory.cc
  4212. * src/HttpRequestCommand.cc
  4213. * src/OptionHandlerFactory.cc
  4214. * src/option_processing.cc
  4215. * src/prefs.cc
  4216. * src/prefs.h
  4217. * src/usage_text.h
  4218. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4219. Added help message for -R option.
  4220. * src/HelpItemFactory.cc
  4221. * src/usage_text.h
  4222. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4223. Added the message that the time is in local time zone.
  4224. * src/RequestGroup.cc
  4225. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Implemented the ability to get timestamp from remote FTP server using
  4227. MDTM command described in RFC3659.
  4228. * src/FtpConnection.cc
  4229. * src/FtpConnection.h
  4230. * src/FtpNegotiationCommand.cc
  4231. * src/FtpNegotiationCommand.h
  4232. * test/FtpConnectionTest.cc
  4233. * test/Makefile.am
  4234. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4235. Implemented the ability to get timestamp from remote HTTP server and
  4236. apply it to local file. To enable this feature, --remote-time option
  4237. is added. No usage text has been written yet.
  4238. If several servers returns difference timestamp, then aria2 uses latest
  4239. one.
  4240. * src/CopyDiskAdaptor.cc
  4241. * src/CopyDiskAdaptor.h
  4242. * src/DirectDiskAdaptor.cc
  4243. * src/DirectDiskAdaptor.h
  4244. * src/DiskAdaptor.h
  4245. * src/File.cc
  4246. * src/File.h
  4247. * src/HttpHeader.cc
  4248. * src/HttpHeader.h
  4249. * src/HttpResponse.cc
  4250. * src/HttpResponse.h
  4251. * src/HttpResponseCommand.cc
  4252. * src/HttpResponseCommand.h
  4253. * src/MultiDiskAdaptor.cc
  4254. * src/MultiDiskAdaptor.h
  4255. * src/OptionHandlerFactory.cc
  4256. * src/RequestGroup.cc
  4257. * src/RequestGroup.h
  4258. * src/RequestGroupMan.cc
  4259. * src/option_processing.cc
  4260. * src/prefs.cc
  4261. * src/prefs.h
  4262. * test/CopyDiskAdaptorTest.cc
  4263. * test/FileTest.cc
  4264. * test/Makefile.am
  4265. * test/Makefile.in
  4266. * test/MultiDiskAdaptorTest.cc
  4267. * test/TestUtil.cc
  4268. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4269. Fixed the bug that DiskWriterEntry is not created when its
  4270. FileEntry.isRequested() is false and it doesn't share a piece with
  4271. other FileEntries that are requested. This bug causes segmentation fault
  4272. in the end.
  4273. * src/MultiDiskAdaptor.cc
  4274. * src/MultiDiskAdaptor.h
  4275. * src/MultiFileAllocationIterator.cc
  4276. * test/MultiDiskAdaptorTest.cc
  4277. * test/MultiFileAllocationIteratorTest.cc
  4278. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4279. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  4280. called if the number of file entries are greater than max open files.
  4281. * src/AbstractSingleDiskAdaptor.cc
  4282. * src/AbstractSingleDiskAdaptor.h
  4283. * src/DiskAdaptor.h
  4284. * src/MultiDiskAdaptor.cc
  4285. * src/MultiDiskAdaptor.h
  4286. * test/MultiDiskAdaptorTest.cc
  4287. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4288. Added a constuctor that receives struct timeval.
  4289. Added operator<.
  4290. * src/TimeA2.cc
  4291. * src/TimeA2.h
  4292. * test/TimeTest.cc
  4293. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4294. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  4295. * src/CookieParser.cc
  4296. * test/CookieParserTest.cc
  4297. * test/HttpResponseTest.cc
  4298. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Implmented the functions to parse date.
  4300. * src/TimeA2.cc
  4301. * src/TimeA2.h
  4302. * test/TimeTest.cc
  4303. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Added "Firefox3 Cookie" feature to FeatureConfig
  4305. * src/FeatureConfig.cc
  4306. * src/FeatureConfig.h
  4307. * test/FeatureConfigTest.cc
  4308. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4309. Bump up version number to 0.16.0b
  4310. * configure.ac
  4311. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Use pkg-config if is is available.
  4313. * m4/openssl.m4
  4314. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4315. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  4316. * src/BtAnnounce.h
  4317. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4318. If an error occurred with a URI, remove identical URI from remaining
  4319. URI list because it is likely that same error occurred in the end and it
  4320. is waste of time.
  4321. * src/AbstractCommand.cc
  4322. * src/RequestGroup.cc
  4323. * src/RequestGroup.h
  4324. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. Removed wrong comment.
  4326. * src/DefaultPeerStorage.cc
  4327. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4328. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  4329. Added return value of getpid() to argument of srand() to achieve more
  4330. randomized value.
  4331. * src/SimpleRandomizer.cc
  4332. * src/SimpleRandomizer.h
  4333. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4334. Contact tracker frequently when the number of connections are 0 and
  4335. download is not finished yet.
  4336. * src/ActivePeerConnectionCommand.cc
  4337. * src/BtAnnounce.h
  4338. * src/DefaultBtAnnounce.cc
  4339. * src/DefaultBtAnnounce.h
  4340. * test/MockBtAnnounce.h
  4341. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4342. Moved threshold values to UTPexExtensionMessage.
  4343. * src/DefaultBtInteractive.cc
  4344. * src/Peer.cc
  4345. * src/Peer.h
  4346. * src/UTPexExtensionMessage.cc
  4347. * src/UTPexExtensionMessage.h
  4348. * test/UTPexExtensionMessageTest.cc
  4349. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Added _incoming member to Peer class and made it true if the peer
  4351. initiated connection. Don't add those peer to UTPex message.
  4352. If extended handshake is received, assign _incoming to false.
  4353. * src/DefaultBtInteractive.cc
  4354. * src/HandshakeExtensionMessage.cc
  4355. * src/Peer.cc
  4356. * src/Peer.h
  4357. * src/PeerListenCommand.cc
  4358. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4359. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  4360. Encoding Decoder. Removed size threshold for turning off on the fly
  4361. inflation because resulting file may or may not be inflated depending
  4362. on the file size and I think it is not expected by users.
  4363. This change fixes segmentation fault when Metalink file contains gzipped
  4364. file and its filesize is provided.
  4365. * src/HttpResponseCommand.cc
  4366. * src/HttpResponseCommand.h
  4367. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4368. Made Cookie immutable.
  4369. * src/Cookie.cc
  4370. * src/Cookie.h
  4371. * src/CookieParser.cc
  4372. * src/CookieParser.h
  4373. * src/CookieStorage.cc
  4374. * test/CookieParserTest.cc
  4375. * test/CookieStorageTest.cc
  4376. * test/NsCookieParserTest.cc
  4377. * test/Sqlite3MozCookieParserTest.cc
  4378. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4379. Removed CookieBox, CookieBoxFactory.
  4380. * src/CookieBox.cc
  4381. * src/CookieBox.h
  4382. * src/CookieBoxFactory.cc
  4383. * src/CookieBoxFactory.h
  4384. * src/Makefile.am
  4385. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4386. Use CookieStorage class instead of CookieBox class.
  4387. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  4388. * src/AbstractProxyRequestCommand.cc
  4389. * src/CookieStorage.cc
  4390. * src/DownloadEngine.cc
  4391. * src/DownloadEngine.h
  4392. * src/HttpConnection.cc
  4393. * src/HttpConnection.h
  4394. * src/HttpRequest.cc
  4395. * src/HttpRequest.h
  4396. * src/HttpRequestCommand.cc
  4397. * src/HttpResponse.cc
  4398. * src/HttpResponseCommand.cc
  4399. * src/HttpSkipResponseCommand.cc
  4400. * src/Makefile.am
  4401. * src/MultiUrlRequestInfo.cc
  4402. * src/Request.cc
  4403. * src/Request.h
  4404. * src/main.cc
  4405. * test/AllTest.cc
  4406. * test/CookieStorageTest.cc
  4407. * test/CookieTest.cc
  4408. * test/HttpRequestTest.cc
  4409. * test/HttpResponseTest.cc
  4410. * test/Makefile.am
  4411. * test/NsCookieParserTest.cc
  4412. * test/Sqlite3MozCookieParserTest.cc
  4413. * test/nscookietest.txt
  4414. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4415. Updated
  4416. * test/Cookies.sqlite
  4417. * test/nscookietest.txt
  4418. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4419. Added tests for CookieStorage::load()
  4420. * test/CookieStorageTest.cc
  4421. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Added CookieStorage class which is based on RFC2109 and manages cookies
  4423. more strictly than CookieBox and CookieBoxFactory class.
  4424. * src/CookieStorage.cc
  4425. * src/CookieStorage.h
  4426. * src/Cookie.cc
  4427. * src/Cookie.h
  4428. * test/CookieStorageTest.cc
  4429. * test/CookieTest.cc
  4430. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4431. Fixed the bug that commands are created more than the number of pieces.
  4432. * src/RequestGroup.cc
  4433. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4434. Fixed infinite loop bug in FTP when SIZE command failed.
  4435. * src/FtpNegotiationCommand.cc
  4436. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4437. Removed DirectDiskAdaptorTest.h
  4438. * test/Makefile.am
  4439. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Fixed chunk checksum validation cannot detect trailing garbage data.
  4441. BUG#2074141
  4442. * src/AbstractSingleDiskAdaptor.cc
  4443. * src/AbstractSingleDiskAdaptor.h
  4444. * src/CheckIntegrityEntry.cc
  4445. * src/CheckIntegrityEntry.h
  4446. * src/DiskAdaptor.h
  4447. * src/MultiDiskAdaptor.cc
  4448. * src/MultiDiskAdaptor.h
  4449. * src/RequestGroup.cc
  4450. * test/DirectDiskAdaptorTest.cc
  4451. * test/MultiDiskAdaptorTest.cc
  4452. * test/TestUtil.cc
  4453. * test/TestUtil.h
  4454. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Bump up version number of dht.dat file to 3. In version 3 format, time
  4456. is stored in 64bit, network byte order.
  4457. New build can load old format(version 2) but it saves the file in new
  4458. format. It means once you used new build, your dht.dat becomes
  4459. incompatible with older build.
  4460. * src/DHTRoutingTableDeserializer.cc
  4461. * src/DHTRoutingTableSerializer.cc
  4462. * test/DHTRoutingTableSerializerTest.cc
  4463. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4464. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  4465. * test/Makefile.am
  4466. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4467. Bump up version number of .aria2 control file to 0001.
  4468. New aria2 can still load version 0000 file but it saves the file in
  4469. version 0001 format. It means that new aria2 can resume download
  4470. started by old aria2 but the opposite is not true.
  4471. * src/DefaultBtProgressInfoFile.cc
  4472. * src/DefaultBtProgressInfoFile.h
  4473. * test/DefaultBtProgressInfoFileTest.cc
  4474. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. Added ntoh64 and hton64 as inline functions.
  4476. * src/Util.cc
  4477. * test/UtilTest.cc
  4478. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4479. Added sqlite3 depenency and Firefox3 cookie support.
  4480. * README
  4481. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4482. State that firefox3 cookie is supported explicitly in the usage.
  4483. * src/usage_text.h
  4484. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Externalized message.
  4486. * src/RequestGroupMan.cc
  4487. * src/message.h
  4488. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Save temporary file first and rename to the destination on success.
  4490. Added test cases.
  4491. * src/RequestGroupMan.cc
  4492. * test/RequestGroupManTest.cc
  4493. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Fixed the bug that the number of connected peer is exceeding the limit
  4495. (55 by default) in seeding mode.
  4496. Multiplied 0.8 to _maxUploadSpeedLimit.
  4497. * src/ActivePeerConnectionCommand.cc
  4498. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4499. Clear table item.
  4500. * src/Dictionary.cc
  4501. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4502. Fixed error handling of lseek.
  4503. * src/AbstractDiskWriter.cc
  4504. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4505. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4506. style cookie file.
  4507. * src/usage_text.h
  4508. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4509. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4510. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4511. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4512. * src/Util.cc
  4513. * src/Util.h
  4514. * src/CookieParser.cc
  4515. * test/UtilTest.cc
  4516. * test/CookieParserTest.cc
  4517. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4518. Separate the implementation to load old mozilla format of cookie to
  4519. NsCookieParser class.
  4520. * src/CookieBoxFactory.cc
  4521. * src/CookieBoxFactory.h
  4522. * src/NsCookieParser.cc
  4523. * src/NsCookieParser.h
  4524. * test/NsCookieParserTest.cc
  4525. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4526. Made parse() const
  4527. * src/Sqlite3MozCookieParser.cc
  4528. * src/Sqlite3MozCookieParser.h
  4529. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4530. Added firefox3 cookie support based on the patch submitted by
  4531. tizianomueller.
  4532. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4533. this functionality.
  4534. * configure.ac
  4535. * m4/sqlite3.m4
  4536. * src/CookieBoxFactory.cc
  4537. * src/CookieBoxFactory.h
  4538. * src/Makefile.am
  4539. * src/Makefile.in
  4540. * src/Sqlite3MozCookieParser.cc
  4541. * src/Sqlite3MozCookieParser.h
  4542. * src/main.cc
  4543. * test/CookieBoxFactoryTest.cc
  4544. * test/Makefile.am
  4545. * test/Makefile.in
  4546. * test/Sqlite3MozCookieParserTest.cc
  4547. * test/badcookies.sqlite
  4548. * test/cookies.sqlite
  4549. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. Added Danish and Greek translations.
  4551. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4552. Great thanks to all translators.
  4553. * po/LINGUAS
  4554. * po/el.po
  4555. * po/da.po
  4556. * po/es.po
  4557. * po/ca.po
  4558. * po/nn.po
  4559. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4560. Fixed man page: --follow-bittorrent should be --follow-torrent
  4561. * doc/aria2c.1.txt
  4562. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4563. Fixed: numCommand is less than the value specified in -C option.
  4564. * src/RequestGroup.cc
  4565. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4566. Fixed occasional assertion failure in PieceSegment.
  4567. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4568. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4569. creation of duplicate segments and one of the segment was finished then
  4570. assertion failure was caused.
  4571. * src/SegmentMan.cc
  4572. * test/SegmentManTest.cc
  4573. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4574. Added options to load/save the server's performance/status to a file
  4575. and the timeout to drop their data.
  4576. --server-stat-of=FILE specifies the file to which performance data
  4577. is saved.
  4578. --server-stat-if=FILE specifies the file to read previously saved
  4579. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4580. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4581. TIMEOUT is specified in seconds and the default value is 24hours.
  4582. * src/MultiUrlRequestInfo.cc
  4583. * src/OptionHandlerFactory.cc
  4584. * src/RequestGroupMan.cc
  4585. * src/RequestGroupMan.h
  4586. * src/ServerStatMan.cc
  4587. * src/ServerStatMan.h
  4588. * src/option_processing.cc
  4589. * src/prefs.cc
  4590. * src/prefs.h
  4591. * test/ServerStatManTest.cc
  4592. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4593. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4594. * src/ServerStatMan.cc
  4595. * src/ServerStatMan.h
  4596. * test/ServerStatManTest.cc
  4597. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4598. Implemented ServerStatMan::load(...) function and its test case.
  4599. * src/ServerStat.cc
  4600. * src/ServerStat.h
  4601. * src/ServerStatMan.cc
  4602. * test/ServerStatManTest.cc
  4603. * test/ServerStatTest.cc
  4604. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Use time_t instead of int32_t. Use int64_t where milli second is
  4606. expected.
  4607. * src/TimeA2.cc
  4608. * src/TimeA2.h
  4609. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. Implemented ServerStatMan::save(...) function and its test case.
  4611. * src/ServerStat.cc
  4612. * src/ServerStat.h
  4613. * src/ServerStatMan.cc
  4614. * src/ServerStatMan.h
  4615. * test/ServerStatManTest.cc
  4616. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4617. Now aria2 uses name attribute in Metalink as local filename in
  4618. BitTorrent downloads. BUG#2033999
  4619. * src/BtContext.h
  4620. * src/BtDependency.cc
  4621. * src/DefaultBtContext.cc
  4622. * src/DefaultBtContext.h
  4623. * src/SingleFileDownloadContext.cc
  4624. * src/SingleFileDownloadContext.h
  4625. * test/BtDependencyTest.cc
  4626. * test/DefaultBtContextTest.cc
  4627. * test/MockBtContext.h
  4628. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4629. Added AC_C_BIGENDIAN
  4630. * src/configure.ac
  4631. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4632. Limited numCommand less than or equal to the number of piece.
  4633. * src/RequestGroup.cc
  4634. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4636. directive.
  4637. * test/DefaultPieceStorageTest.cc
  4638. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4639. Fixed memory leak in test code
  4640. * test/AnnounceListTest.cc
  4641. * test/DefaultPeerListProcessorTest.cc
  4642. * test/DefaultPeerStorageTest.cc
  4643. * test/MetaFileUtilTest.cc
  4644. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4645. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4646. * src/DefaultPieceStorage.cc
  4647. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4648. Initialized _directIOAllowed
  4649. * src/MultiDiskAdaptor.cc
  4650. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4651. Fixed memory leak
  4652. * src/GZipDecoder.cc
  4653. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4654. Fixed memory leak
  4655. * src/MetalinkParserStateMachine.cc
  4656. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4657. Fixed memory leak
  4658. * src/Dictionary.cc
  4659. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4660. Fixed memory leak
  4661. * src/IteratableChunkChecksumValidator.h
  4662. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4663. Fixed unmatched malloc/free.
  4664. * src/IteratableChunkChecksumValidator.cc
  4665. * src/IteratableChecksumValidator.cc
  4666. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4667. Removed max chunk size check. This change fixes BUG#2040169
  4668. * src/ChunkedDecoder.cc
  4669. * src/ChunkedDecoder.h
  4670. * test/ChunkedDecoderTest.cc
  4671. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4672. Implemented download speed based URI selection algorithm.
  4673. Introduced new option --uri-selector.
  4674. If --uri-selector=feedback is given, aria2 uses download speed observed
  4675. in the previous downloads and chooses fastest server in the URI list.
  4676. Currently at most 10 URIs are considered to introduce randomeness for
  4677. finding better servers. The speed is average download speed in the
  4678. downloads.
  4679. On the other hand, if --uri-selector=inorder is given, which is default,
  4680. URI is tried in order in URI list.
  4681. The usage text for the new option has not been written yet.
  4682. * src/AbstractCommand.cc
  4683. * src/DownloadCommand.cc
  4684. * src/DownloadEngine.cc
  4685. * src/DownloadEngineFactory.cc
  4686. * src/InOrderURISelector.cc
  4687. * src/InOrderURISelector.h
  4688. * src/OptionHandlerFactory.cc
  4689. * src/PeerStat.h
  4690. * src/RequestGroup.cc
  4691. * src/RequestGroup.h
  4692. * src/RequestGroupMan.cc
  4693. * src/RequestGroupMan.h
  4694. * src/SegmentMan.cc
  4695. * src/SegmentMan.h
  4696. * src/ServerStat.cc
  4697. * src/ServerStat.h
  4698. * src/ServerStatMan.cc
  4699. * src/ServerStatMan.h
  4700. * src/ServerStatURISelector.cc
  4701. * src/ServerStatURISelector.h
  4702. * src/URISelector.h
  4703. * src/option_processing.cc
  4704. * src/prefs.cc
  4705. * src/prefs.h
  4706. * test/InOrderURISelectorTest.cc
  4707. * test/RequestGroupManTest.cc
  4708. * test/ServerStatManTest.cc
  4709. * test/ServerStatURISelectorTest.cc
  4710. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4711. * Release 0.15.1+2
  4712. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4713. Bump up version number to 0.15.1+2
  4714. * configure.ac
  4715. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4716. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4717. * m4/aria2_arg.m4
  4718. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4719. * Release 0.15.1+1
  4720. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Bump up version number to 0.15.1+1
  4722. * configure.ac
  4723. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4724. Fixed the bug that causes segmentaion fault when resuming download
  4725. using metalink without size tag. Reproducible only using HTTP URI.
  4726. * src/HttpResponseCommand.cc
  4727. * src/FtpNegotiationCommand.cc
  4728. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. * Release 0.15.1
  4730. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4731. Updated Bulgarian and French translations, thanks to all translators.
  4732. * po/bg.po
  4733. * po/fr.po
  4734. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Bump up version number to 0.15.1
  4736. * configure.ac
  4737. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4738. Avoid repeated call of gettimeofday() when calculating speed.
  4739. * src/SpeedCalc.cc
  4740. * src/SpeedCalc.h
  4741. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4742. Removed writable check when socket's send buffer is full in BitTorrent
  4743. downloads to lower CPU usage.
  4744. * src/PeerInteractionCommand.cc
  4745. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Fixed broken gzip inflation.
  4747. Turn off segmented downloading if gzip content is smaller than or equal
  4748. to 1MiB and inflate the data on the fly, because HTTP response header
  4749. doesn't contain the length of inflated file we can't determin where
  4750. the chunk of data should be written.
  4751. On the other hand, if gzip content is larger than 1MB, then turn off
  4752. on the fly inflation, because some servers returns "content-type: gzip"
  4753. for *.tgz, *.gz files.
  4754. * src/DownloadCommand.cc
  4755. * src/HttpResponseCommand.cc
  4756. * src/HttpResponseCommand.h
  4757. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4758. Applied tizianomueller's patch to fix compile error.
  4759. * test/BitfieldManTest.cc
  4760. * test/BtRequestMessageTest.cc
  4761. * test/DefaultBtContextTest.cc
  4762. * test/DefaultDiskWriterTest.cc
  4763. * test/DefaultPieceStorageTest.cc
  4764. * test/HttpHeaderProcessorTest.cc
  4765. * test/HttpResponseTest.cc
  4766. * test/Metalink2RequestGroupTest.cc
  4767. * test/MetalinkParserControllerTest.cc
  4768. * test/MetalinkProcessorTest.cc
  4769. * test/PeerSessionResourceTest.cc
  4770. * test/UtilTest.cc
  4771. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4772. * Release 0.15.0
  4773. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Reordered src files in POTFILES.in so that usage text appears first.
  4775. * po/POTFILES.in
  4776. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Bump up version number to 0.15.0
  4778. * configure.ac
  4779. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4780. Added Bulgarian translation.
  4781. Updated Catalan, Spanish, French and Japanese translations.
  4782. Thanks to all translators.
  4783. * po/LINGUAS
  4784. * po/bg.po
  4785. * po/ca.po
  4786. * po/es.po
  4787. * po/fr.po
  4788. * po/ja.po
  4789. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4790. Updated feature list. Added libz for dependency section.
  4791. Added a description about unit testing using CppUnit.
  4792. * README
  4793. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4794. Added a test for libz. Quoted where it is necessary.
  4795. * build_test.sh
  4796. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4797. Added GZip to `Enabled Features' list.
  4798. * src/FeatureConfig.cc
  4799. * src/FeatureConfig.h
  4800. * test/FeatureConfigTest.cc
  4801. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4803. the transfer has not yet started.
  4804. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4805. * src/SegmentMan.cc
  4806. * src/SegmentMan.h
  4807. * test/SegmentManTest.cc
  4808. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. Cache last calculated average download/upload speed.
  4810. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4811. cached value.
  4812. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4813. * src/PeerStat.h
  4814. * src/SpeedCalc.cc
  4815. * src/SpeedCalc.h
  4816. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4817. Call parseUrl directly.
  4818. * src/Request.cc (resetUrl)
  4819. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4820. Supported absolute/relative path in Location header field.
  4821. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4822. * src/HttpHeader.cc
  4823. * src/HttpHeader.h
  4824. * src/HttpResponse.cc
  4825. * src/HttpSkipResponseCommand.cc
  4826. * src/Request.cc
  4827. * test/HttpHeaderTest.cc
  4828. * test/HttpResponseTest.cc
  4829. * test/RequestTest.cc
  4830. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4831. Changed help text for --load-cookie option.
  4832. * doc/aria2c.1.txt
  4833. * src/usage_text.h
  4834. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4835. Regenerated test/Makefile.in to remove stale ChangeLog.
  4836. * test/Makefile.in
  4837. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Updated po files.
  4839. * po/aria2c.pot
  4840. * po/*.po
  4841. * po/*.gmo
  4842. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4843. Bump up version number to 0.15.0b
  4844. * configure.ac
  4845. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. Externalize messages.
  4847. * src/RequestGroupMan.cc
  4848. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4849. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4850. Use File::exists() instead of File::isFile() to allow non-regular file
  4851. such as block special files.
  4852. * src/AbstractDiskWriter.cc
  4853. * src/MultiDiskWriter.cc
  4854. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4856. * src/gai_strerror.h
  4857. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4858. Fixed compile error. Thanks gknauf for the patch.
  4859. * src/asctime_r.c
  4860. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4861. Included asctime_r.h from a2time.h.
  4862. * src/a2time.h
  4863. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Added a message "aria2 doesn't verify signature" to log message when
  4865. signature file is saved.
  4866. * src/RequestGroupMan.cc
  4867. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4868. Added the ability to save signature when download is completed if
  4869. signature is available. The filename of signature file is the path to
  4870. download file followed by ".sig". If it already exists, then signature
  4871. will not be saved.
  4872. * src/RequestGroupMan.cc
  4873. * src/Signature.cc
  4874. * test/SignatureTest.cc
  4875. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4876. Updated the descriptions for --bt-seed-unverified.
  4877. * doc/aria2c.1
  4878. * doc/aria2c.1.html
  4879. * doc/aria2c.1.txt
  4880. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4882. that this is not going to verify files using piece hashes.
  4883. * src/HelpItemFactory.cc
  4884. * src/OptionHandlerFactory.cc
  4885. * src/RequestGroup.cc
  4886. * src/option_processing.cc
  4887. * src/prefs.cc
  4888. * src/prefs.h
  4889. * src/usage_text.h
  4890. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4891. Added the ability to retrieve signature from Metalink file.
  4892. A retrieved signature is stored in Signature class and it is held by
  4893. DownloadContext class. Note that aria2 doesn't verify signature.
  4894. * src/DownloadContext.cc
  4895. * src/DownloadContext.h
  4896. * src/Makefile.am
  4897. * src/Makefile.in
  4898. * src/Metalink2RequestGroup.cc
  4899. * src/MetalinkEntry.cc
  4900. * src/MetalinkEntry.h
  4901. * src/MetalinkParserController.cc
  4902. * src/MetalinkParserController.h
  4903. * src/MetalinkParserStateMachine.cc
  4904. * src/MetalinkParserStateMachine.h
  4905. * src/Signature.cc
  4906. * src/Signature.h
  4907. * src/SignatureMetalinkParserState.cc
  4908. * src/SignatureMetalinkParserState.h
  4909. * src/VerificationMetalinkParserState.cc
  4910. * src/VerificationMetalinkParserState.h
  4911. * test/Metalink2RequestGroupTest.cc
  4912. * test/MetalinkParserControllerTest.cc
  4913. * test/MetalinkProcessorTest.cc
  4914. * test/test.xml
  4915. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4916. Close DiskAdaptor after renaming file.
  4917. * src/RequestGroup.cc
  4918. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Corrected indentation
  4920. * src/DefaultBtProgressInfoFile.cc
  4921. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4922. Moved the calls of std::ios::exceptions() inside of try-catch block
  4923. because if an error occurred in constructor of std::fstream, then
  4924. exception is thrown immediately when std::ios::exceptions() is called
  4925. which results unhandled exception and aria2c aborts.
  4926. * src/DefaultBtProgressInfoFile.cc
  4927. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4928. Added the test for the previous change in DefaultBtContext.cc
  4929. * test/DefaultBtContextTest.cc
  4930. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4931. Fixed the bug that causes infinite loop when the number of pieces are
  4932. fewer than allowed fast set size which is 10 by default.
  4933. * src/DefaultBtContext.cc
  4934. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Updated the descriptions for -j, -s. Added --bt-seed.
  4936. * doc/aria2c.1
  4937. * doc/aria2c.1.html
  4938. * doc/aria2c.1.txt
  4939. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4940. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4941. aria2 seeds previously downloaded files without validating piece hashs.
  4942. * src/HelpItemFactory.cc
  4943. * src/OptionHandlerFactory.cc
  4944. * src/RequestGroup.cc
  4945. * src/option_processing.cc
  4946. * src/prefs.cc
  4947. * src/prefs.h
  4948. * src/usage_text.h
  4949. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. Updated DESCRIPTION of man page.
  4951. * doc/aria2c.1
  4952. * doc/aria2c.1.html
  4953. * doc/aria2c.1.txt
  4954. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4955. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4956. Don't define `struct addrinfo' when __sun is defined.
  4957. * src/getaddrinfo.h
  4958. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4959. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4960. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4961. second argument is of type `struct _stati64'. Otherwise it is defined as
  4962. `struct stat'.
  4963. * src/AbstractDiskWriter.cc
  4964. * src/File.cc
  4965. * src/File.h
  4966. * src/a2io.h
  4967. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. Fixed the compile error in hurd-i386
  4969. See the original bug report:
  4970. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4971. * src/a2io.h
  4972. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. Code cleanup.
  4974. * src/PeerAbstractCommand.cc
  4975. * src/PeerAbstractCommand.h
  4976. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4977. Removed TransferEncoding.
  4978. * src/DownloadCommand.cc
  4979. * src/DownloadCommand.h
  4980. * src/HttpResponseCommand.cc
  4981. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. Updated po files.
  4983. * po/aria2c.pot
  4984. * po/*.po
  4985. * po/*.gmo
  4986. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4987. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4988. * src/A2STR.cc
  4989. * src/A2STR.h
  4990. * src/ChunkedDecoder.cc
  4991. * src/ChunkedDecoder.h
  4992. * src/ChunkedEncoding.cc: Removed
  4993. * src/ChunkedEncoding.h: Removed
  4994. * src/DownloadCommand.cc
  4995. * src/DownloadCommand.h
  4996. * src/HttpDownloadCommand.cc
  4997. * src/HttpResponse.cc
  4998. * src/HttpResponse.h
  4999. * src/HttpResponseCommand.cc
  5000. * src/HttpSkipResponseCommand.cc
  5001. * src/HttpSkipResponseCommand.h
  5002. * src/Makefile.am
  5003. * src/TransferEncoding.h: Removed
  5004. * test/ChunkedDecoderTest.cc
  5005. * test/ChunkedEncodingTest.cc: Removed
  5006. * test/HttpResponseTest.cc
  5007. * test/Makefile.am
  5008. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. Use append instead of insert.
  5010. * src/GZipDecoder.cc
  5011. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5012. Updated doc
  5013. * src/Decoder.h
  5014. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5015. Updated usage text for -s option.
  5016. * src/usage_text.h
  5017. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5019. * src/Request.cc
  5020. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Cleaned up configure.ac.
  5022. * configure.ac
  5023. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5025. AC_ARG_ENABLE.
  5026. * configure.ac
  5027. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5029. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5030. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5031. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5032. fly and writes decoded data to a local disk.
  5033. * README
  5034. * README.html
  5035. * configure.ac
  5036. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5037. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5038. * m4/libz.m4
  5039. * src/Decoder.h
  5040. * src/DownloadCommand.cc
  5041. * src/DownloadCommand.h
  5042. * src/Exception.h
  5043. * src/GZipDecoder.cc
  5044. * src/GZipDecoder.h
  5045. * src/HttpHeader.cc
  5046. * src/HttpHeader.h
  5047. * src/HttpRequest.cc
  5048. * src/HttpRequest.h
  5049. * src/HttpResponse.cc
  5050. * src/HttpResponse.h
  5051. * src/HttpResponseCommand.cc
  5052. * src/Makefile.am
  5053. * test/GZipDecoderTest.cc
  5054. * test/HttpRequestTest.cc
  5055. * test/HttpResponseTest.cc
  5056. * test/Makefile.am
  5057. * test/Makefile.in
  5058. * test/gzip_decode_test.gz
  5059. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Clarified usage of -j option.
  5061. * src/usage_text.h
  5062. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Disabled getting size from the response of RETR.
  5064. If SIZE command failed, then disable resuming and segmented downloading.
  5065. * src/FtpConnection.cc
  5066. * src/FtpConnection.h
  5067. * src/FtpNegotiationCommand.cc
  5068. * src/FtpNegotiationCommand.h
  5069. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5070. Use digits to find first byte of file size, which makes the intention
  5071. of the code clearer.
  5072. * src/FtpConnection.cc
  5073. Don't call validateTotalLength() when size is 0.
  5074. * src/FtpNegotiationCommand.cc
  5075. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5076. Updated po files.
  5077. * po/aria2c.pot
  5078. * po/*.gmo
  5079. * po/*.po
  5080. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Clarified usage text for --split option.
  5082. * src/usage_text.h
  5083. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5084. Bump up version number to 0.15.0dev. "dev" means "development"
  5085. version, which means I started the development of the next release!
  5086. * src/configure.ac
  5087. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. If FTP server returns negative response with REST raw command and
  5089. requested range is not 0, throw exception. If requested range is 0,
  5090. continue download a file from 0 byte.
  5091. * src/FtpNegotiationCommand.cc
  5092. * src/FtpNegotiationCommand.h
  5093. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5094. Supported FTP server which don't recognize SIZE raw command.
  5095. If SIZE raw command is failed, aria2 will try to get file size
  5096. from the response of RETR raw command. If both attempts are failed,
  5097. then resuming and segmented downloading are disabled.
  5098. * src/FtpConnection.cc
  5099. * src/FtpConnection.h
  5100. * src/FtpNegotiationCommand.cc
  5101. * src/FtpNegotiationCommand.h
  5102. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5103. * Release 0.14.0+1
  5104. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5105. Bump up version number to 0.14.0+1
  5106. * src/configure.ac
  5107. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Fixed the code that refers static member variable from non-static
  5109. context.
  5110. * src/DefaultPeerStorage.cc
  5111. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5112. * Release 0.14.0
  5113. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5114. Added build test script
  5115. * build_test.sh
  5116. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5117. Updated ja.po
  5118. * src/ja.po
  5119. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5120. Bump up version number to 0.14.0
  5121. * src/configure.ac
  5122. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5123. Updated ja.po and fr.po. Great thanks for french translators and
  5124. Sebastien WILLEMIJNS.
  5125. * po/fr.po
  5126. * po/ja.po
  5127. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5128. Added configure option to enable/disable epoll support.
  5129. * configure.ac
  5130. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5131. Updated man page.
  5132. * doc/aria2c.1.txt
  5133. * doc/aria2c.1
  5134. * doc/aria2c.1.html
  5135. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5136. Added missing default value '5' to the usage of --split option.
  5137. * src/HelpItemFactory.cc
  5138. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5139. Filled up pieces based on the number of missing blocks, rather than
  5140. simplay the number of piece * block length.
  5141. * src/BtRequestFactory.h
  5142. * src/DefaultBtInteractive.cc
  5143. * src/DefaultBtInteractive.h
  5144. * src/DefaultBtRequestFactory.cc
  5145. * src/DefaultBtRequestFactory.h
  5146. * src/Piece.cc
  5147. * src/Piece.h
  5148. * test/BitfieldManTest.cc
  5149. * test/DefaultBtRequestFactoryTest.cc
  5150. * test/MockBtRequestFactory.h
  5151. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5152. Made _epEvents a member variable.
  5153. * src/DownloadEngine.cc
  5154. * src/DownloadEngine.h
  5155. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5156. Cancel download if http redirect is bounded more than 20 times.
  5157. * src/AbstractCommand.cc
  5158. * src/HttpSkipResponseCommand.cc
  5159. * src/Request.cc
  5160. * src/Request.h
  5161. * test/RequestTest.cc
  5162. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5163. Fixed unhandled exception(removed keyword `new').
  5164. * src/SocketCore.cc (initEPOLL)
  5165. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Removed visit(const MetaEntry*)
  5167. * src/MetaEntryVisitor.h:
  5168. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5169. and made them virtual.
  5170. * src/BencodeVisitor.h
  5171. * src/BencodeVisitor.cc
  5172. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Updated po files.
  5174. * po/aria2c.pot
  5175. * po/*.po
  5176. * po/*.gmo
  5177. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5178. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5179. the number of socket to watch out.
  5180. * src/PeerInteractionCommand.cc
  5181. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5182. When there is not enough space in disk when writing a chunk of data,
  5183. aria2 now prints the message to the console to warn user and aborts
  5184. its download. Not all downloads are canceled because some downloads
  5185. may use another disk or partition. BUG#1640332
  5186. * src/AbstractDiskWriter.cc
  5187. * src/PeerAbstractCommand.cc
  5188. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5189. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5190. setHaltRequested(true) to cancel download.
  5191. * src/PeerInteractionCommand.h
  5192. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5193. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5194. socket from int to sock_t as sockets are unsigned in Windows.
  5195. For AsyncNameResolver, DownloadEngine, I did additional modification
  5196. for the portion of the code changed according to epoll support.
  5197. I defined sock_t in a2netcompat.h to use sock_t without including
  5198. SocketCore.h.
  5199. * src/AsyncNameResolver.cc
  5200. * src/AsyncNameResolver.h
  5201. * src/DownloadEngine.cc
  5202. * src/DownloadEngine.h
  5203. * src/SocketCore.cc
  5204. * src/SocketCore.h
  5205. * src/a2netcompat.h
  5206. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5207. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  5208. changes in the patch were applied.
  5209. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  5210. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  5211. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  5212. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  5214. a2io.h and common.h were modified.
  5215. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  5216. MinGW.
  5217. * src/common.h: Changed off_t to 64 bit in MinGW.
  5218. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5220. only a2netcompat.h is modified.
  5221. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  5222. directives.
  5223. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5224. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5225. only gai_strerror.h is modified.
  5226. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  5227. winsock errors in MinGW.
  5228. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5229. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  5230. follow sources are applied.
  5231. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  5232. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  5233. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  5234. I included locale.h from Platform.cc.
  5235. * src/main.cc: Moved common setup/teardown code to Platform class.
  5236. * test/AllTest.cc: Use Platform class.
  5237. Set locale to C in AllTest.cc to prevent the messages to be localized.
  5238. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5239. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  5240. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  5241. * test/HttpRequestTest.cc: Casted to off_t where it should.
  5242. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Applied Ross's aria2-0.13.2+1-mingw.patch and
  5244. aria2-0.13.2+1-mingw-2.patch.
  5245. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  5246. systems which don't have termious.h. I moved the directive inside of
  5247. if(isTTY) { ... clause so that line is wiped out without termious.h.
  5248. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  5249. anyway.
  5250. * src/asctime_r.h
  5251. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  5252. I added 2nd argument to the prototype declaration.
  5253. * src/StringFormat.cc: Get rid of vasprintf.
  5254. * src/getaddrinfo.h: Fixed constants.
  5255. * configure.ac: Added the check for asctime_r function.
  5256. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  5257. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5258. Added writable test for Socket when the sending message is in progress.
  5259. Usually the sending message is piece message. Without wriable check,
  5260. upload latency is dropped to more than 1sec.
  5261. * src/PeerInteractionCommand.cc
  5262. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5263. Create only requested files and files which shares a piece with
  5264. requested file in multi-torrent downloads. Directory structures are
  5265. also created in the same rule.
  5266. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  5267. DiskWriterEntry as in the previous implementation.
  5268. * src/MultiDiskWriter.cc
  5269. * src/MultiFileAllocationIterator.cc
  5270. * src/MultiFileAllocationIterator.h
  5271. * test/MultiFileAllocationIteratorTest.cc
  5272. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5273. Commented out -lprofiler
  5274. * src/Makefile.am
  5275. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5276. Bump up version number to 0.14.0b.
  5277. * src/configure.ac
  5278. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5279. Actively establish connection to peers in seeding, when peer cache
  5280. is not full and max upload speed limit is not reached.
  5281. * src/ActivePeerConnectionCommand.cc
  5282. * src/ActivePeerConnectionCommand.h
  5283. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  5285. to make room more fleshy, recently found peers.
  5286. Peer::_badConditionStartTime is not used anymore. Consider to remove
  5287. it.
  5288. * src/DefaultPeerStorage.cc
  5289. * test/DefaultPeerStorageTest.cc
  5290. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5291. Returns cached data only when the previous receiveHandshake() is called
  5292. with peek = true.
  5293. * src/PeerConnection.cc (receiveHandshake)
  5294. * src/PeerConnection.h (receiveHandshake)
  5295. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. Changed default value of -s option from 1 to 5.
  5297. Also max value of -s option is changed from 5 to 16.
  5298. * src/HelpItemFactory.cc
  5299. * src/OptionHandlerFactory.cc
  5300. * src/option_processing.cc
  5301. * src/usage_text.h
  5302. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5303. Changed -s options behavior. Now it means the number of connections
  5304. made simultaneously in each http/ftp download.
  5305. If 1 URL is specified, the behavior is the same with old implementation.
  5306. If -s N is given and more than N URLs are specified, first N URLs are
  5307. used and remaining URLs are used for backup. If less than N URLs are
  5308. specified, some of URLs are used more than once so that totally N
  5309. connections are made simultaneously.
  5310. * src/main.cc
  5311. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5312. Included missing iosfwd or ostream header.
  5313. * src/RequestGroupMan.cc
  5314. * src/TaggedItem.cc
  5315. * src/TaggedItem.h
  5316. * src/Util.cc
  5317. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  5319. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  5320. * src/HttpConnection.cc: Included missing sstream.
  5321. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Added --bt-max-open-files option.
  5323. * src/DefaultPieceStorage.cc
  5324. * src/HelpItemFactory.cc
  5325. * src/MultiDiskAdaptor.cc
  5326. * src/MultiDiskAdaptor.h
  5327. * src/OptionHandlerFactory.cc
  5328. * src/option_processing.cc
  5329. * src/prefs.cc
  5330. * src/prefs.h
  5331. * src/usage_text.h
  5332. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5333. Fixed the bug that aria2 aborts when a path to a directory is given
  5334. in command-line.
  5335. * src/ProtocolDetector.cc
  5336. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5337. Limited the number files opened in each BitTorrent download. The default
  5338. value is 100. The option to change this value will be added.
  5339. * src/MultiDiskAdaptor.cc
  5340. * src/MultiDiskAdaptor.h
  5341. * src/MultiFileAllocationIterator.cc
  5342. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5343. Fixed the bug that HTTP downloads don't start with old libraries.
  5344. * src/HttpHeaderProcessor.cc
  5345. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5346. Use empty() instead of size() > 0.
  5347. * src/HttpConnection.cc
  5348. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Drop connection if the incoming peer ID is the same with localhost's
  5350. one. The previous implementation drops connection when incoming peer's
  5351. IP address is the same with localhost's one.
  5352. * src/PeerListenCommand.cc
  5353. * src/DefaultBtInteractive.cc
  5354. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Returns cached data without checking whether socket is readable
  5356. if the cache is available.
  5357. * src/PeerConnection.cc (receiveHandshake)
  5358. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Included stdint.h
  5360. * src/common.h
  5361. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Removed duplicate HAVE_GETTIMEOFDAY
  5363. * src/Makefile.am
  5364. * src/Makefile.in
  5365. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. Use interval as a minInterval when minInterval is not supplied.
  5367. * src/DefaultBtAnnounce.cc
  5368. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5369. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  5370. attempt is failed, then 2nd attempt get kicked out more quickly.
  5371. And it is now static const member of DefaultBtAnnounce.
  5372. * src/DefaultBtAnnounce.h
  5373. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5374. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  5375. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  5376. * src/ActivePeerConnectionCommand.cc
  5377. * src/BtConstants.h
  5378. * src/BtRuntime.h
  5379. * src/DHTGetPeersCommand.cc
  5380. * src/DefaultBtAnnounce.cc
  5381. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  5382. BtRuntime::MAX_PEERS.
  5383. * src/DefaultPeerStorage.h
  5384. * src/InitiatorMSEHandshakeCommand.cc
  5385. * src/PeerInitiateConnectionCommand.cc
  5386. * src/PeerInteractionCommand.cc
  5387. * src/PeerReceiveHandshakeCommand.cc
  5388. * src/TrackerWatcherCommand.cc
  5389. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Always Connect to _numNewConnection
  5391. * src/ActivePeerConnectionCommand.cc
  5392. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5393. Made `begin' unsigned int.
  5394. * src/GrowSegment.h
  5395. * src/Piece.cc
  5396. * src/Piece.h
  5397. * src/PiecedSegment.cc
  5398. * src/PiecedSegment.h
  5399. * src/Segment.h
  5400. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5401. Calculate piece hash when data is arrived if the data is arrived in
  5402. order. This removes additional read operation for hash calculation.
  5403. If the data is arrived in out of order, the hash is calucated when the
  5404. piece is completed. This is the same behavior as the old implementation.
  5405. * src/BtPieceMessage.cc
  5406. * src/DefaultBtProgressInfoFile.cc
  5407. * src/DefaultPieceStorage.cc
  5408. * src/DownloadCommand.cc
  5409. * src/DownloadCommand.h
  5410. * src/DownloadEngine.cc
  5411. * src/GrowSegment.cc
  5412. * src/GrowSegment.h
  5413. * src/Piece.cc
  5414. * src/Piece.h
  5415. * src/PiecedSegment.cc
  5416. * src/PiecedSegment.h
  5417. * src/Segment.h
  5418. * test/PieceTest.cc
  5419. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Try to keep the ordering of outgoing piece message.
  5421. * src/DefaultBtMessageDispatcher.cc
  5422. (DefaultBtMessageDispatcher::sendMessages)
  5423. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5424. Fixed busy loop when error/hup epoll events occur.
  5425. * src/AbstractCommand.cc
  5426. * src/PeerAbstractCommand.cc
  5427. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5428. Added --bt-request-peer-speed-limit option, which was a constant
  5429. SLOW_SPEED_THRESHOLD.
  5430. * src/ActivePeerConnectionCommand.cc
  5431. * src/ActivePeerConnectionCommand.h
  5432. * src/BtConstants.h
  5433. * src/HelpItemFactory.cc
  5434. * src/OptionHandlerFactory.cc
  5435. * src/PeerReceiveHandshakeCommand.cc
  5436. * src/option_processing.cc
  5437. * src/prefs.cc
  5438. * src/prefs.h
  5439. * src/usage_text.h
  5440. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Removed repeated call of getTopDirPath(). Instead, call it once and
  5442. cache the result.
  5443. * src/MultiDiskAdaptor.cc
  5444. * src/MultiDiskAdaptor.h
  5445. (mkdir, openFile, initAndOpenFile, openExistingFile)
  5446. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5447. Fixed compile error on debian etch.
  5448. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  5449. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  5450. it is undefined.
  5451. * src/Util.cc (ULLONG_MAX)
  5452. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Added epoll support. Use epoll if it is available. If not, use select.
  5454. When async dns is enabled in compile time, epoll support is enabled
  5455. only when aria2 is built with c-ares. This condition statement is
  5456. defined in a2io.h.
  5457. Currently aria2 supports both c-ares and ares, but ares is maintained
  5458. for quite a while and debian already has c-ares package, ares support
  5459. will be dropped in the future version.
  5460. * configure.ac
  5461. * src/AbstractCommand.cc
  5462. * src/AsyncNameResolver.cc
  5463. * src/AsyncNameResolver.h
  5464. * src/Command.cc
  5465. * src/Command.h
  5466. * src/DownloadEngine.cc
  5467. * src/DownloadEngine.h
  5468. * src/PeerAbstractCommand.cc
  5469. * src/SocketCore.cc
  5470. * src/SocketCore.h
  5471. * src/a2io.h
  5472. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5473. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  5474. directive.
  5475. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5476. Do not do write operation to /dev/null file.
  5477. * src/LogFactory.cc
  5478. * src/SimpleLogger.cc
  5479. Replaced vasprintf with vsnprintf
  5480. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5481. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5482. * src/BtRequestMessage.cc
  5483. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  5484. for segmentation fault caused by previous commit.
  5485. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Reduced the usage of gettimeofday().
  5487. * src/DefaultBtMessageDispatcher.cc
  5488. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  5489. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5490. * src/RequestSlot.cc
  5491. * src/RequestSlot.h
  5492. (RequestSlot::isTimeout)
  5493. Made RequestSlot have a reference to Piece object to avoid find
  5494. Piece repeatedly.
  5495. * src/DefaultBtMessageDispatcher.cc
  5496. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5497. * src/RequestSlot.cc
  5498. * src/RequestSlot.h
  5499. (RequestSlot::getPiece)
  5500. * test/DefaultBtMessageDispatcherTest.cc
  5501. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5502. * src/TimeA2.cc
  5503. * src/TimeA2.h
  5504. (Time::difference): New function.
  5505. (Time::elapsed): Done optimization.
  5506. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5508. directive.
  5509. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5510. * src/option_processing.cc: Added missing `defined' keyword to #if
  5511. directive.
  5512. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Bump up version number to 0.13.2+1
  5514. * src/configure.ac
  5515. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5516. Refactored broken outstanding piece handling.
  5517. * src/DefaultPieceStorage.cc
  5518. * src/DefaultPieceStorage.h
  5519. * src/Piece.cc
  5520. * src/Piece.h
  5521. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5522. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5523. name collision of static variable and predefined macro.
  5524. * src/BtContext.cc
  5525. * src/BtContext.h
  5526. * src/CookieBoxFactory.cc
  5527. * src/CookieBoxFactory.h
  5528. * src/CookieParser.cc
  5529. * src/CookieParser.h
  5530. * src/DefaultBtContext.cc
  5531. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5532. * src/RequestGroup.cc
  5533. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5534. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. * Release 0.13.2
  5536. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5537. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5538. * po/fr.po
  5539. * po/ja.po
  5540. * po/aria2c.pot
  5541. * po/*.po
  5542. * po/*.gmo
  5543. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. Bump up version number to 0.13.2
  5545. * src/configure.ac
  5546. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Refactord.
  5548. * src/RequestGroupMan.cc
  5549. (removeStoppedGroup)
  5550. (fillRequestGroupFromReserver)
  5551. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5552. Fixed compile error on Ubuntu.
  5553. * src/BtPieceMessage.cc
  5554. * src/MessageDigestHelper.cc
  5555. * src/Util.cc
  5556. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5557. Fixed compile error when configured with --disable-bittorrent
  5558. * test/DownloadHandlerFactoryTest.cc
  5559. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5560. Done make update-po
  5561. * po/aria2c.pot
  5562. * po/*.po
  5563. * po/*.gmo
  5564. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5565. Bump up version number to 0.13.2rc.
  5566. * src/configure.ac
  5567. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5568. Made option name bold. Updated SYNOPSIS to make it more readable.
  5569. * doc/aria2c.1.txt
  5570. * doc/aria2c.1
  5571. * doc/aria2c.1.html
  5572. * src/version_usage.cc
  5573. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Refactored. Use std::string instead of size and char*.
  5575. * Data.cc
  5576. * Data.h
  5577. * test/Data.cc
  5578. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5579. Added trimSelf(). Rewritten trim() to use trimSelf().
  5580. * Util.cc
  5581. * Util.h
  5582. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5584. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5585. Fixed compile error when configured with --disable-metalink.
  5586. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5587. * test/FeatureConfigTest.cc
  5588. * test/DownloadHandlerFactoryTest.cc
  5589. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. Fixed compile error when configured with --without-gnutls
  5591. --without-openssl
  5592. * src/main.cc
  5593. * test/DefaultBtProgressInfoFileTest.cc
  5594. * test/SegmentManTest.cc
  5595. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5596. Fixed compile error with OpenSSL.
  5597. * src/IteratableChunkChecksumValidator.cc
  5598. * src/LibsslDHKeyExchange.h
  5599. * src/MessageDigestHelper.cc
  5600. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5601. Revert the default value of --max-concurrent-downloads to 5.
  5602. Revert the default value of --metalink-servers to 5.
  5603. Man pages was also updated.
  5604. * src/option_processing.cc
  5605. * doc/aria2c.1.txt
  5606. * doc/aria2c.1.html
  5607. * doc/aria2c.1
  5608. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Returns const reference:
  5610. DownloadContext::getPieceHash, DownloadContext::getName,
  5611. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5612. BtContext::getInfoHashAsString,
  5613. * src/BtContext.h
  5614. * src/DefaultBtContext.cc
  5615. * src/DefaultBtContext.h
  5616. * src/DownloadContext.h
  5617. * src/SingleFileDownloadContext.h
  5618. * test/MockBtContext.h
  5619. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. * src/RequestGroup.h (getDir): Removed.
  5621. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5622. Returns const reference. The internal urlencode function was optimized
  5623. a little bit.
  5624. * src/Request.cc
  5625. * src/Request.h
  5626. * src/HttpRequest.cc
  5627. * src/HttpRequest.h
  5628. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5629. Defined option name and possible values as std::string to reduce
  5630. temporary string object creation in runtime.
  5631. * src/HelpItemFactory.cc
  5632. * src/LogFactory.cc
  5633. * src/Option.cc
  5634. * src/OptionHandlerFactory.cc
  5635. * src/option_processing.cc
  5636. * src/prefs.cc
  5637. * src/prefs.h
  5638. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5639. Return const reference.
  5640. * src/DownloadHandlerConstants.cc
  5641. * src/DownloadHandlerConstants.h
  5642. (getMetalinkExtensions)
  5643. (getMetalinkContentTypes)
  5644. (getBtExtensions)
  5645. (getBtContentTypes)
  5646. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5647. * src/HttpHeader.cc (get): Rewritten.
  5648. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5649. Make HttpHeader::getFirst(...) return const reference.
  5650. * src/HttpHeader.cc
  5651. * src/HttpHeader.h
  5652. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5653. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5654. it with V_TRUE.
  5655. * src/DefaultPieceStorage.cc
  5656. * src/DownloadCommand.cc
  5657. * src/FtpNegotiationCommand.cc
  5658. * src/HttpRequest.cc
  5659. * src/InitiateConnectionCommand.cc
  5660. * src/RequestGroup.cc
  5661. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5662. Made Option::get(...) return const reference of std::string.
  5663. * src/Option.cc
  5664. * src/Option.h
  5665. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5666. Replaced std:copy with insert.
  5667. * src/DefaultBtMessageDispatcher.cc
  5668. * src/DefaultPieceStorage.cc
  5669. * src/DownloadEngineFactory.cc
  5670. * src/RequestGroup.cc
  5671. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5672. Included SocketCore.h to fix compiler warning.
  5673. * src/InitiateConnectionCommand.cc
  5674. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5675. Put piece selection strategy algorithm to RarestPieceSelector class,
  5676. Added a switch to choose whether randomized selection so that unit
  5677. tests emit same results in, possibly, win32.
  5678. * src/DefaultPieceStorage.cc
  5679. * src/DefaultPieceStorage.h
  5680. * src/RarestPieceSelector.cc
  5681. * src/RarestPieceSelector.h
  5682. * test/DefaultPieceStorageTest.cc
  5683. * test/RarestPieceSelectorTest.cc
  5684. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5685. Don't pool connection if HTTP proxy is enabled.
  5686. * src/FtpFinishDownloadCommand.cc
  5687. * src/FtpNegotiationCommand.cc
  5688. * src/HttpSkipResponseCommand.cc
  5689. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5691. * src/AbstractCommand.cc
  5692. * src/AbstractCommand.h
  5693. * src/ActivePeerConnectionCommand.cc
  5694. * src/FtpInitiateConnectionCommand.cc
  5695. * src/HttpInitiateConnectionCommand.cc
  5696. * src/InitiateConnectionCommandFactory.cc
  5697. * src/PeerAbstractCommand.cc
  5698. * src/PeerAbstractCommand.h
  5699. * src/PeerInitiateConnectionCommand.cc
  5700. * src/TrackerWatcherCommand.cc
  5701. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5702. Sort RequestSlot in ascending order and manipulate them using
  5703. lower_bound.
  5704. * src/DefaultBtMessageDispatcher.cc
  5705. * src/DefaultBtMessageDispatcher.h
  5706. (getMessageQueue): Added const qualifier.
  5707. (getRequestSlots): Added const qualifier.
  5708. (sendMessages): Use empty() instead of size().
  5709. (doCancelSendingPieceAction): Use HandleEvent object.
  5710. (doAbortOutstandingRequestAction): Rewritten.
  5711. (doChokedAction): Rewritten.
  5712. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5713. (isOutstandingRequest): Rewritten.
  5714. (getOutstandingRequest): Rewritten.
  5715. (removeOutstandingRequest): Rewritten.
  5716. (addOutstandingRequest): Rewritten.
  5717. * src/RequestSlot.cc
  5718. * src/RequestSlot.h
  5719. (operator=): Rewritten.
  5720. (operator!=): New function.
  5721. (operator<): New function.
  5722. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5723. * src/DefaultBtRequestFactory.cc
  5724. (doChokedAction): Rewritten.
  5725. (removeCompletedPiece): Rewritten.
  5726. (removeTargetPiece): Rewritten.
  5727. (createRequestMessages): Added the debug log.
  5728. (createRequestMessagesOnEndGame: Added the debug log.
  5729. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5730. Added the debug log message.
  5731. * src/BtPieceMessage.cc (doReceivedAction)
  5732. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5733. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5734. used lower_bound to process them rather than linear search.
  5735. * src/DHTPeerAnnounceStorage.cc
  5736. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5737. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5738. peer has at least one completed piece.
  5739. * src/Peer.cc
  5740. * src/Peer.h
  5741. * src/PeerInteractionCommand.cc
  5742. * src/PeerSessionResource.cc
  5743. * src/PeerSessionResource.h
  5744. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. Removed unnecessary sorting
  5746. * src/DefaultPieceStorage (DefaultPieceStorage)
  5747. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5748. Rewritten the portion of the code that mangaes allowed fast indexes.
  5749. * src/PeerSessionResource.cc
  5750. * src/PeerSessionResource.h
  5751. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5752. Removed the invalid string including '\r' from ru.po and
  5753. did make update-po.
  5754. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5755. Added --log-level and --summary-interval to man page.
  5756. * doc/aria2c.1.txt
  5757. * doc/aria2c.1.html
  5758. * doc/aria2c.1
  5759. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5760. Added --log-level option to specify log level. Log messages under
  5761. the specified level are not output. Default value is `debug'.
  5762. * src/HelpItemFactory.cc
  5763. * src/LogFactory.cc
  5764. * src/LogFactory.h
  5765. * src/Logger.h
  5766. * src/OptionHandlerFactory.cc
  5767. * src/SimpleLogger.cc
  5768. * src/SimpleLogger.h
  5769. * src/main.cc
  5770. * src/option_processing.cc
  5771. * src/prefs.h
  5772. * src/usage_text.h
  5773. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5774. Print download progress summary of all parallel downloads in specified
  5775. interval, default 60 secs. While aria2 could download several files
  5776. in parallel (see -j option), it displayed just first download progress,
  5777. and the other downloads are hidden from the users. This new feature
  5778. prints all downloads currently in-progress to the console so that you
  5779. can check the status of all downloads. The interval can be adjusted
  5780. by --summary-interval option.
  5781. The progress readout is now cut so that all fits in the one line of
  5782. console.
  5783. * src/ConsoleStatCalc.cc
  5784. * src/ConsoleStatCalc.h
  5785. * src/HelpItemFactory.cc
  5786. * src/OptionHandlerFactory.cc
  5787. * src/RequestGroupMan.cc
  5788. * src/RequestGroupMan.h
  5789. * src/main.cc
  5790. * src/option_processing.cc
  5791. * src/prefs.h
  5792. * src/usage_text.h
  5793. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5794. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5795. * src/DownloadEngine.cc (DownloadEngine)
  5796. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5798. defined.
  5799. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5800. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Use erase+lower_bound+insert instead of sort.
  5802. * src/DefaultPieceStorage.cc (addPieceStats)
  5803. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5804. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5805. * src/A2STR.cc
  5806. * src/A2STR.h
  5807. * src/OptionParser.cc (parse)
  5808. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5809. Defined fake filename `[tracker.announce]' as static const std::string.
  5810. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5811. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Defined default filename `index.html' as static const std::string
  5813. * src/SingleFileDownloadContext.cc
  5814. * src/SingleFileDownloadContext.h
  5815. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Defined "[MEMORY]" as static const std::string.
  5817. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5818. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5819. Defined control file's version number as static const std::string.
  5820. * src/DefaultBtProgressInfoFile.cc
  5821. * src/DefaultBtProgressInfoFile.h
  5822. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5823. Use Request::METHOD_GET
  5824. * src/RequestGroup.cc (createNextCommandWithAdj)
  5825. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5826. Defined "OK", "ERR", "INPR" as static const std::string
  5827. * src/RequestGroupMan.cc (showDownloadResults)
  5828. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5829. Defined default client used in extended handshake as static const
  5830. std::string
  5831. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5832. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5833. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5834. * src/HttpConnection.cc (eraseConfidentialInfo)
  5835. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5836. Defined default ftp user and password as static const std::string
  5837. * src/AuthConfigFactory.cc
  5838. * src/AuthConfigFactory.h
  5839. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5840. Defined strings used in netrc as static const std::string
  5841. * src/Netrc.cc
  5842. * src/Netrc.h
  5843. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5844. Defined HTTP status as static const std::string
  5845. * src/AbstractProxyResponseCommand.cc
  5846. * src/HttpHeader.cc
  5847. * src/HttpHeader.h
  5848. * src/HttpResponse.cc
  5849. * src/HttpResponseCommand.cc
  5850. * src/HttpSkipResponseCommand.cc
  5851. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Defined "\r\n", "A", "I" as static const std::string
  5853. * src/A2STR.cc
  5854. * src/A2STR.h
  5855. * src/FtpConnection.cc
  5856. * src/FtpConnection.h
  5857. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Added COLON_C(".") and used it in Request::parseUrl()
  5859. * src/A2STR.cc
  5860. * src/A2STR.h
  5861. * src/Request.cc (parseUrl)
  5862. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Changed the type of padName from `const std::string&' to `const char*'.
  5864. * src/MSEHandshake.cc (verifyPadLength)
  5865. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5866. Defined "sha1" as static const std::string.
  5867. * src/MetalinkParserController.cc
  5868. * src/MetalinkParserController.h
  5869. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Defined message digest algorithm name as static const std::string
  5871. * src/DHTTokenTracker.cc
  5872. * src/DHTUtil.cc
  5873. * src/DefaultBtContext.cc
  5874. * src/MSEHandshake.cc
  5875. * src/MessageDigestHelper.cc
  5876. * src/Peer.cc
  5877. * src/messageDigest.cc
  5878. * src/messageDigest.h
  5879. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Made string literals used in SAX parser static const std::string.
  5881. * src/FileMetalinkParserState.cc
  5882. * src/FileMetalinkParserState.h
  5883. * src/FilesMetalinkParserState.cc
  5884. * src/FilesMetalinkParserState.h
  5885. * src/InitialMetalinkParserState.cc
  5886. * src/InitialMetalinkParserState.h
  5887. * src/MetalinkMetalinkParserState.cc
  5888. * src/MetalinkMetalinkParserState.h
  5889. * src/PiecesMetalinkParserState.cc
  5890. * src/PiecesMetalinkParserState.h
  5891. * src/ResourcesMetalinkParserState.cc
  5892. * src/ResourcesMetalinkParserState.h
  5893. * src/VerificationMetalinkParserState.cc
  5894. * src/VerificationMetalinkParserState.h
  5895. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5896. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5897. * src/A2STR.cc
  5898. * src/A2STR.h
  5899. * src/File.cc
  5900. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5901. Defined static const std::string IP("ip"), PORT("port") and use them
  5902. instead of string literals.
  5903. * src/DefaultPeerListProcessor.cc
  5904. * src/DefaultPeerListProcessor.h
  5905. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. Made string literals for torrent file processing static const
  5907. std::string.
  5908. * src/BtContext.cc
  5909. * src/BtContext.h
  5910. * src/DefaultBtContext.cc
  5911. * src/DefaultBtContext.h
  5912. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5913. Made string literal for tracker response static const std::string
  5914. * src/BtAnnounce.cc
  5915. * src/BtAnnounce.h
  5916. * src/DefaultBtAnnounce.cc
  5917. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. Use DHTMessage::T instead of "t".
  5919. * src/DHTMessageTracker.cc (messageArrived)
  5920. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Made keyName static const. Made trimmed charset static const
  5922. std::string.
  5923. * src/Util.cc (getContentDispositionFilename)
  5924. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5925. Made USER_AGENT const. Made "/" static const std::string.
  5926. * src/A2STR.cc
  5927. * src/A2STR.h
  5928. * src/HttpRequest.cc
  5929. * src/HttpRequest.h
  5930. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5931. Made string listeral to static const std::string:
  5932. "Content-Range", "Content-Length"
  5933. * src/HttpHeader.cc
  5934. * src/HttpHeader.h
  5935. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5936. Made string listeral to static const std::string.
  5937. * src/HttpConnection.cc
  5938. * src/HttpHeader.cc
  5939. * src/HttpHeader.h
  5940. * src/HttpResponse.cc
  5941. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5942. Made string listeral to static const std::string.
  5943. * src/A2STR.cc
  5944. * src/A2STR.h
  5945. * src/SimpleLogger.cc
  5946. * src/SimpleLogger.h
  5947. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5948. Made string literal to static const std::string.
  5949. Rewritten CookieParser::setField.
  5950. * src/A2STR.cc
  5951. * src/A2STR.h
  5952. * src/CookieBoxFactory.cc
  5953. * src/CookieBoxFactory.h
  5954. * src/CookieParser.cc
  5955. * src/CookieParser.h
  5956. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5957. Made string literal to static const std::string
  5958. * src/DHTAbstractMessage.cc
  5959. * src/DHTAnnouncePeerMessage.cc
  5960. * src/DHTAnnouncePeerMessage.h
  5961. * src/DHTAnnouncePeerReplyMessage.cc
  5962. * src/DHTAnnouncePeerReplyMessage.h
  5963. * src/DHTFindNodeMessage.cc
  5964. * src/DHTFindNodeMessage.h
  5965. * src/DHTFindNodeReplyMessage.cc
  5966. * src/DHTFindNodeReplyMessage.h
  5967. * src/DHTGetPeersMessage.cc
  5968. * src/DHTGetPeersMessage.h
  5969. * src/DHTGetPeersReplyMessage.cc
  5970. * src/DHTGetPeersReplyMessage.h
  5971. * src/DHTMessage.cc
  5972. * src/DHTMessage.h
  5973. * src/DHTMessageFactoryImpl.cc
  5974. * src/DHTMessageReceiver.cc
  5975. * src/DHTPingMessage.cc
  5976. * src/DHTPingMessage.h
  5977. * src/DHTPingReplyMessage.cc
  5978. * src/DHTPingReplyMessage.h
  5979. * src/DHTQueryMessage.cc
  5980. * src/DHTQueryMessage.h
  5981. * src/DHTResponseMessage.cc
  5982. * src/DHTResponseMessage.h
  5983. * src/DHTUnknownMessage.cc
  5984. * src/DHTUnknownMessage.h
  5985. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5986. Made string literal to static const std::string
  5987. * src/BtChokeMessage.cc (toString)
  5988. * src/BtHaveAllMessage.cc (toString)
  5989. * src/BtHaveNoneMessage.cc (toString)
  5990. * src/BtInterestedMessage.cc (toString)
  5991. * src/BtNotInterestedMessage.cc (toString)
  5992. * src/BtUnchokeMessage.cc (toString)
  5993. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5994. Replaced "" with static const variable A2STR::NIL.
  5995. Replaced string comparison against "" with std::string::empty().
  5996. Added PROTO_* to Request class and use them as a protocol string
  5997. constant.
  5998. Made "started", "stopped", "completed" static const variable in
  5999. AnnounceList class.
  6000. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6001. Updated translations. Great thanks to translators.
  6002. * po/ca.po
  6003. * po/de.po
  6004. * po/fr.po
  6005. * po/it.po
  6006. * po/ja.po
  6007. * po/ru.po
  6008. * po/zh_CN.po
  6009. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6010. Updated man page; categorized options and fixed typo.
  6011. * doc/aria2c.1.txt
  6012. * doc/aria2c.1.html
  6013. * doc/aria2c.1
  6014. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6015. Removed const ref
  6016. * src/MetalinkEntry.cc (AddProtocolPreference)
  6017. * src/RequestGroup.cc (FindServerHostByHostname)
  6018. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6019. Rewritten Accept-Features handling.
  6020. * src/HttpRequestCommand.cc (createHttpRequest)
  6021. * src/a2functional.h
  6022. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Changed method signature:
  6024. DHTAbstractNodeLookupTask::toEntries
  6025. * src/DHTAbstractNodeLookupTask.cc
  6026. * src/DHTAbstractNodeLookupTask.h
  6027. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Changed method signature:
  6029. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6030. * src/BtContext.h
  6031. * src/DefaultBtContext.cc
  6032. * src/DefaultBtContext.h
  6033. * src/DefaultBtInteractive.cc
  6034. * test/DefaultBtContextTest.cc
  6035. * test/MockBtContext.h
  6036. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6037. Changed method signature:
  6038. MultiFileAllocationIterator::makeDiskWriterEntries
  6039. * src/MultiFileAllocationIterator.cc
  6040. * src/MultiFileAllocationIterator.h
  6041. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6042. Changed method sinature:
  6043. MetalinkEntry::toFileEntry,
  6044. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6045. Metalinker::queryEntry
  6046. * src/Metalink2RequestGroup.cc
  6047. * src/MetalinkEntry.cc
  6048. * src/MetalinkEntry.h
  6049. * src/MetalinkHelper.cc
  6050. * src/MetalinkHelper.h
  6051. * src/Metalinker.cc
  6052. * src/Metalinker.h
  6053. * src/main.cc
  6054. * test/MetalinkHelperTest.cc
  6055. * test/MetalinkerTest.cc
  6056. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Changed method sinature:
  6058. RequestGroup::getURIs
  6059. * src/RequestGroup.cc
  6060. * src/RequestGroup.h
  6061. * test/Metalink2RequestGroupTest.cc
  6062. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6063. Changed method signature:
  6064. PeerListProcessor::extractPeer
  6065. * src/CompactPeerListProcessor.cc
  6066. * src/CompactPeerListProcessor.h
  6067. * src/DefaultBtAnnounce.cc
  6068. * src/DefaultPeerListProcessor.cc
  6069. * src/DefaultPeerListProcessor.h
  6070. * src/DelegatingPeerListProcessor.cc
  6071. * src/DelegatingPeerListProcessor.h
  6072. * src/PeerListProcessor.h
  6073. * src/UTPexExtensionMessage.cc
  6074. * test/DefaultPeerListProcessorTest.cc
  6075. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6076. Changed method signature:
  6077. BtRequestFactory::createRequestMessages,
  6078. BtRequestFactory::createRequestMessagesOnEndGame
  6079. * src/BtRequestFactory.h
  6080. * src/DefaultBtInteractive.cc
  6081. * src/DefaultBtRequestFactory.cc
  6082. * src/DefaultBtRequestFactory.h
  6083. * test/DefaultBtRequestFactoryTest.cc
  6084. * test/MockBtRequestFactory.h
  6085. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6086. Changed method signature:
  6087. PieceStorage::getInFlightPieces
  6088. * src/DefaultBtProgressInfoFile.cc
  6089. * src/DefaultPieceStorage.cc
  6090. * src/DefaultPieceStorage.h
  6091. * src/PieceStorage.h
  6092. * src/UnknownLengthPieceStorage.cc
  6093. * src/UnknownLengthPieceStorage.h
  6094. * test/DefaultBtProgressInfoFileTest.cc
  6095. * test/MockPieceStorage.h
  6096. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6097. Changed method signature:
  6098. PostDownloadHandler::getNextRequestGroups
  6099. Metalink2RequestGroup::generate
  6100. RequestGroup::postDownloadProcessing
  6101. * src/BtPostDownloadHandler.cc
  6102. * src/BtPostDownloadHandler.h
  6103. * src/Metalink2RequestGroup.cc
  6104. * src/Metalink2RequestGroup.h
  6105. * src/MetalinkPostDownloadHandler.cc
  6106. * src/MetalinkPostDownloadHandler.h
  6107. * src/PostDownloadHandler.h
  6108. * src/RequestGroup.cc
  6109. * src/RequestGroup.h
  6110. * src/RequestGroupMan.cc
  6111. * src/main.cc
  6112. * test/BtPostDownloadHandlerTest.cc
  6113. * test/Metalink2RequestGroupTest.cc
  6114. * test/MetalinkPostDownloadHandlerTest.cc
  6115. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. Rewritten AccRequestGroup
  6117. * src/main.cc
  6118. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6119. Rewritten.
  6120. * src/TaggedItem.cc (toTagString)
  6121. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6122. Rewritten Accept-Features handling.
  6123. * src/HttpRequestCommand.cc (createHttpRequest)
  6124. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6125. Rewritten accept types handling.
  6126. * HttpRequest.cc (createRequest)
  6127. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. Rewritten
  6129. * src/FeatureConfig.cc (featureSummary)
  6130. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6131. Changed method signature:
  6132. PeerStorage::getActivePeers
  6133. * src/DHTPeerAnnounceEntry.cc
  6134. * src/DefaultPeerStorage.cc
  6135. * src/DefaultPeerStorage.h
  6136. * src/PeerStorage.h
  6137. * test/DefaultPeerStorageTest.cc
  6138. * test/MockPeerStorage.h
  6139. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6140. Changed method signature:
  6141. DHTPeerAnnounceStorage::getPeers,
  6142. DHTPeerAnnounceEntry::getPeers
  6143. * src/DHTGetPeersMessage.cc
  6144. * src/DHTPeerAnnounceEntry.cc
  6145. * src/DHTPeerAnnounceEntry.h
  6146. * src/DHTPeerAnnounceStorage.cc
  6147. * src/DHTPeerAnnounceStorage.h
  6148. * test/DHTAnnouncePeerMessageTest.cc
  6149. * test/DHTPeerAnnounceEntryTest.cc
  6150. * test/DHTPeerAnnounceStorageTest.cc
  6151. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6152. Changed method signature:
  6153. NameResolver::resolve
  6154. * src/DHTEntryPointNameResolveCommand.cc
  6155. * src/InitiateConnectionCommand.cc
  6156. * src/NameResolver.cc
  6157. * src/NameResolver.h
  6158. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Changed method signature:
  6160. PieceStorage::getAdvertisedPieceIndexes
  6161. * src/DefaultBtInteractive.cc
  6162. * src/DefaultPieceStorage.cc
  6163. * src/DefaultPieceStorage.h
  6164. * src/PieceStorage.h
  6165. * src/UnknownLengthPieceStorage.h
  6166. * test/MockPieceStorage.h
  6167. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6168. Changed method signature:
  6169. SegmentMan::getInFlightSegment
  6170. * src/AbstractCommand.cc
  6171. * src/SegmentMan.cc
  6172. * src/SegmentMan.h
  6173. * test/SegmentManTest.cc
  6174. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6175. Changed method signature:
  6176. DHTAbstractNodeLookupTask::getNodesFromMessage
  6177. * src/DHTAbstractNodeLookupTask.cc
  6178. * src/DHTAbstractNodeLookupTask.h
  6179. * src/DHTNodeLookupTask.cc
  6180. * src/DHTNodeLookupTask.h
  6181. * src/DHTPeerLookupTask.cc
  6182. * src/DHTPeerLookupTask.h
  6183. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6184. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6185. * src/AbstractCommand.cc
  6186. * src/BtCheckIntegrityEntry.cc
  6187. * src/BtCheckIntegrityEntry.h
  6188. * src/BtFileAllocationEntry.cc
  6189. * src/BtFileAllocationEntry.h
  6190. * src/BtSetup.cc
  6191. * src/BtSetup.h
  6192. * src/CheckIntegrityCommand.cc
  6193. * src/CheckIntegrityEntry.h
  6194. * src/ChecksumCheckIntegrityEntry.cc
  6195. * src/ChecksumCheckIntegrityEntry.h
  6196. * src/DHTSetup.cc
  6197. * src/DHTSetup.h
  6198. * src/DownloadEngine.cc
  6199. * src/FileAllocationCommand.cc
  6200. * src/FileAllocationEntry.h
  6201. * src/RequestGroup.cc
  6202. * src/RequestGroup.h
  6203. * src/RequestGroupMan.cc
  6204. * src/RequestGroupMan.h
  6205. * src/StreamCheckIntegrityEntry.cc
  6206. * src/StreamCheckIntegrityEntry.h
  6207. * src/StreamFileAllocationEntry.cc
  6208. * src/StreamFileAllocationEntry.h
  6209. * src/TrackerWatcherCommand.cc
  6210. * src/a2functional.h
  6211. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Changed method signature:
  6213. BNode::findClosestKNodes, BNode:: enumerateBucket,
  6214. DHTBucket::getGoodNodes,
  6215. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  6216. * src/BNode.cc
  6217. * src/BNode.h
  6218. * src/DHTAbstractNodeLookupTask.cc
  6219. * src/DHTAutoSaveCommand.cc
  6220. * src/DHTBucket.cc
  6221. * src/DHTBucket.h
  6222. * src/DHTBucketRefreshTask.cc
  6223. * src/DHTFindNodeMessage.cc
  6224. * src/DHTGetPeersMessage.cc
  6225. * src/DHTRoutingTable.cc
  6226. * src/DHTRoutingTable.h
  6227. * test/BNodeTest.cc
  6228. * test/DHTBucketTest.cc
  6229. * test/DHTRoutingTableTest.cc
  6230. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6231. In piece selection functions, Pass std::deque<...> by reference rather
  6232. than returning it.
  6233. * src/BitfieldMan.cc
  6234. * src/BitfieldMan.h
  6235. * src/DefaultBtRequestFactory.cc
  6236. * src/DefaultPieceStorage.cc
  6237. * src/Piece.cc
  6238. * src/Piece.h
  6239. * test/BitfieldManTest.cc
  6240. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. Implemented rarest piece first piece selection strategy.
  6242. * src/AbstractBtMessage.cc
  6243. * src/AbstractBtMessage.h
  6244. * src/BitfieldMan.cc
  6245. * src/BitfieldMan.h
  6246. * src/BtBitfieldMessage.cc
  6247. * src/BtHaveAllMessage.cc
  6248. * src/BtHaveMessage.cc
  6249. * src/DefaultPieceStorage.cc
  6250. * src/DefaultPieceStorage.h
  6251. * src/PeerInteractionCommand.cc
  6252. * src/PieceStorage.h
  6253. * src/UnknownLengthPieceStorage.h
  6254. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Rewritten readData and writeData.
  6256. * src/MultiDiskAdaptor.cc
  6257. * src/MultiDiskAdaptor.h
  6258. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6259. Move \n out of the message "Usage: ...".
  6260. * src/version_usage.cc
  6261. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6262. Bump up version number to 0.13.2b.
  6263. * configure.ac
  6264. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Added const qualifier to argument Exception& e.
  6266. * src/Logger.h
  6267. * src/SimpleLogger.cc
  6268. * src/SimpleLogger.h
  6269. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Pool connection when CWD, SIZE command fails.
  6271. * src/FtpNegotiationCommand.cc
  6272. * src/FtpNegotiationCommand.h
  6273. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6274. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  6275. * src/HttpResponseCommand.cc
  6276. * src/HttpSkipResponseCommand.cc
  6277. * src/HttpSkipResponseCommand.h
  6278. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6279. Pool connection when a server returns 4xx, 5xx responses.
  6280. * src/HttpNullDownloadCommand.cc
  6281. * src/HttpNullDownloadCommand.h
  6282. * src/HttpResponse.cc
  6283. * src/HttpResponse.h
  6284. * src/HttpResponseCommand.cc
  6285. * src/HttpResponseCommand.h
  6286. * test/HttpResponseTest.cc
  6287. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6288. Print usage when no URL is specifed or bad command-line option is
  6289. specified.
  6290. * src/HelpItemFactory.cc
  6291. * src/help_tags.h
  6292. * src/option_processing.cc
  6293. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6294. Removed duplicate log message.
  6295. * src/AbstractCommand.cc (asyncResolveHostname)
  6296. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Updated man page: --async-dns and --ftp-reuse-connection were added.
  6298. Changed -j option's default value from 5 to 1.
  6299. Added new examples using protocol auto detection feature.
  6300. Removed -T, -M usage where it can be omitted.
  6301. * doc/aria2c.1.txt
  6302. * doc/aria2c.1.html
  6303. * doc/aria2c.1.txt
  6304. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Updated command-line usage text, so that it tells users that they
  6306. can specify any number of torrent files and metalink files in
  6307. command-line.
  6308. * src/version_usage.cc
  6309. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6310. Changed the default value of -j option to 1.
  6311. * src/HelpItemFactory.cc
  6312. * src/option_processing.cc
  6313. * src/usage_text.h
  6314. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Added the ability to reuse connection in FTP and it is enabled by
  6316. default. It can be disabled by --ftp-reuse-connection=false option.
  6317. * src/Command.cc
  6318. * src/DownloadCommand.cc
  6319. * src/FtpDownloadCommand.cc
  6320. * src/FtpDownloadCommand.h
  6321. * src/FtpFinishDownloadCommand.cc
  6322. * src/FtpFinishDownloadCommand.h
  6323. * src/FtpInitiateConnectionCommand.cc
  6324. * src/FtpNegotiationCommand.cc
  6325. * src/FtpNegotiationCommand.h
  6326. * src/HelpItemFactory.cc
  6327. * src/Makefile.am
  6328. * src/Makefile.in
  6329. * src/OptionHandlerFactory.cc
  6330. * src/option_processing.cc
  6331. * src/prefs.h
  6332. * src/usage_text.h
  6333. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. Call Command::transitStatus() before calling Command::execute(),
  6335. so that the status change made in execute() is not cleared.
  6336. * src/DownloadEngine.cc
  6337. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6338. Removed forward declaration of SocketCore class.
  6339. * src/HttpDownloadCommand.h
  6340. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6341. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  6342. in InitiateConnectionCommandFactory. They should be set only when
  6343. the protocol is HTTP or HTTPS.
  6344. * src/InitiateConnectionCommandFactory.cc
  6345. * src/RequestGroup.cc
  6346. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. Fixed infinite loop in checksum checking.
  6348. * src/IteratableChecksumValidator.cc
  6349. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6350. Set _supportsPersistentConnection to true by default.
  6351. * src/Request.cc
  6352. * src/RequestGroup.cc
  6353. * test/HttpRequestTest.cc
  6354. * test/RequestTest.cc
  6355. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Added timeout to socket pool. The default timeout is 15 seconds,
  6357. which is the same value Apache uses.
  6358. * src/DownloadEngine.cc
  6359. * src/DownloadEngine.h
  6360. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6361. Fixed misuse of multimap::find()
  6362. * src/HttpHeader.cc
  6363. * test/HttpHeaderTest.cc
  6364. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  6366. option.
  6367. The asynchronous DNS is not capable of IPv6 yet.
  6368. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  6369. least for HTTP download.
  6370. * src/AbstractCommand.cc
  6371. * src/AbstractCommand.h
  6372. * src/AsyncNameResolver.cc
  6373. * src/AsyncNameResolver.h
  6374. * src/DHTEntryPointNameResolveCommand.cc
  6375. * src/DHTEntryPointNameResolveCommand.h
  6376. * src/DownloadEngine.cc
  6377. * src/DownloadEngine.h
  6378. * src/FtpInitiateConnectionCommand.cc
  6379. * src/FtpInitiateConnectionCommand.h
  6380. * src/HelpItemFactory.cc
  6381. * src/HttpInitiateConnectionCommand.cc
  6382. * src/HttpInitiateConnectionCommand.h
  6383. * src/InitiateConnectionCommand.cc
  6384. * src/InitiateConnectionCommand.h
  6385. * src/Makefile.am
  6386. * src/Makefile.in
  6387. * src/NameResolver.cc
  6388. * src/NameResolver.h
  6389. * src/OptionHandlerFactory.cc
  6390. * src/SocketCore.cc
  6391. * src/SocketCore.h
  6392. * src/Util.cc
  6393. * src/Util.h
  6394. * src/option_processing.cc
  6395. * src/prefs.h
  6396. * src/usage_text.h
  6397. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6398. Updated man page: --quiet, --header were added.
  6399. --metalink-servers and --enable-http-keep-alive option were updated.
  6400. * doc/aria2c.1
  6401. * doc/aria2c.1.html
  6402. * doc/aria2c.1.txt
  6403. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. Enable HTTP keep-alive by default.
  6405. * src/HelpItemFactory.cc
  6406. * src/option_processing.cc
  6407. * src/usage_text.h
  6408. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6409. Disable http keep-alive if the remote server is not HTTP/1.1.
  6410. * src/HttpConnection.cc
  6411. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. Receive content body of 302 response so that the connection can be
  6413. reused later when http keep-alive is enabled.
  6414. * src/HttpNullDownloadCommand.cc
  6415. * src/HttpNullDownloadCommand.h
  6416. * src/HttpResponseCommand.cc
  6417. * src/HttpResponseCommand.h
  6418. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6419. const SharedHandle<Request> -> const SharedHandle<Request>&
  6420. * src/FtpDowndloadCommand.cc
  6421. * src/FtpDowndloadCommand.h
  6422. * src/HttpDownloadCommand.cc
  6423. * src/HttpDownloadCommand.h
  6424. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6425. Fixed the bug that the control file(.aria2 file) is not renamed
  6426. according to tryAutoFileRenaming().
  6427. tryAutoFileRenaming() was rewritten so that if both renamed file and
  6428. its control file exist, use them and continue download.
  6429. The old implementation didn't take into account of control file's
  6430. existence, so basically you couldn't continue download of renamed file.
  6431. * src/BtProgressInfoFile.h
  6432. * src/DefaultBtProgressInfoFile.cc
  6433. * src/DefaultBtProgressInfoFile.h
  6434. * src/NullProgressInfoFile.h
  6435. * src/RequestGroup.cc
  6436. * test/DefaultBtProgressInfoFileTest.cc
  6437. * test/MockBtProgressInfoFile.h
  6438. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6439. Change the default value of --metalink-servers option from `5' to `1'.
  6440. * src/HelpItemFactory.cc
  6441. * src/option_processing.cc
  6442. * src/usage_text.h
  6443. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6444. Reimplemented transparent metalink using Accept request header.
  6445. * src/HttpRequest.cc
  6446. * src/HttpRequest.h
  6447. * src/HttpRequestCommand.cc
  6448. * src/Metalink2RequestGroup.cc
  6449. * src/RequestGroup.cc
  6450. * src/RequestGroup.h
  6451. * test/HttpRequestTest.cc
  6452. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6453. Bump up version number to 0.13.2a
  6454. * configure.ac
  6455. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. Updated configure.ac using the result of autoscan.
  6457. * configure.ac
  6458. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Fixed compilation error without gcrypt/openssl.
  6460. * src/DownloadCommand.cc
  6461. * src/DownloadCommand.h
  6462. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6463. Reorganized version information so that it can be displayed in a
  6464. standard terminal screen without scrolling.
  6465. Removed http, ftp from Configuration section, because they are always
  6466. enabled.
  6467. * src/FeatureConfig.cc
  6468. * src/FeatureConfig.h
  6469. * src/main.cc
  6470. * src/messageDigest.cc
  6471. * src/messageDigest.h
  6472. * src/version_usage.cc
  6473. * test/FeatureConfigTest.cc
  6474. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6475. Masked user ID in log.
  6476. * src/FtpConnection.cc (sendUser)
  6477. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. Removed query part from filename in HTTP download. The query part means
  6479. the substring after "?" in URL. Firefox seems do the same thing.
  6480. A query part is sometimes very long and not suitable to filename,
  6481. so I think it is better to remove it from filename.
  6482. * src/HttpRequest.cc
  6483. * src/HttpRequest.h
  6484. * src/Request.cc
  6485. * src/Request.h
  6486. * test/HttpRequestTest.cc
  6487. * test/RequestTest.cc
  6488. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. Rewritten Exception class. Throw exception object, not its pointer and
  6490. catch by reference, so that remove problematic delete operator for
  6491. catched exception.
  6492. * src/Exception.cc
  6493. * src/Exception.h
  6494. * test/ExceptionTest.cc
  6495. * src/*: All files throwing/catching exception.
  6496. * test/*: All files throwing/catching exception.
  6497. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Now auto protocol detection is enabled without -Z option.
  6499. But there is a important difference between with/without -Z optoin.
  6500. For example, if you type:
  6501. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6502. then, aria2 interprets there are 3 request groups:
  6503. (1) http://host/file, http://mirror/file <-- multi-source download
  6504. (2) file1.torrent
  6505. (3) file2.metalink
  6506. On the other hand, if you invoke above command with -Z option, it is
  6507. interpreted as 4 request groups:
  6508. (1) http://host/file
  6509. (2) file1.torrent
  6510. (3) file2.metalink
  6511. (4) http://mirror/file
  6512. I think usually user don't mix multi-source URLs and torrent files, so
  6513. there is no big problem here.
  6514. * src/main.cc
  6515. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Fixed the bug that causes segmentaion fault when reading XML containing
  6517. unescapsed character like '&'.
  6518. Also a modification was made which avoids adding unnecessary
  6519. characters stack and appending unused string.
  6520. * src/ExpatMetalinkProcessor.cc
  6521. * src/FileMetalinkParserState.h
  6522. * src/FilesMetalinkParserState.h
  6523. * src/FinMetalinkParserState.h
  6524. * src/HashMetalinkParserState.h
  6525. * src/InitialMetalinkParserState.h
  6526. * src/LanguageMetalinkParserState.h
  6527. * src/MetalinkMetalinkParserState.h
  6528. * src/MetalinkParserState.h
  6529. * src/MetalinkParserStateMachine.cc
  6530. * src/MetalinkParserStateMachine.h
  6531. * src/OSMetalinkParserState.h
  6532. * src/PieceHashMetalinkParserState.h
  6533. * src/PiecesMetalinkParserState.h
  6534. * src/ResourcesMetalinkParserState.h
  6535. * src/SizeMetalinkParserState.h
  6536. * src/SkipTagMetalinkParserState.h
  6537. * src/URLMetalinkParserState.h
  6538. * src/VerificationMetalinkParserState.h
  6539. * src/VersionMetalinkParserState.h
  6540. * src/XML2SAXMetalinkProcessor.cc
  6541. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6542. Added StringFormat class, which internally calls vasprintf.
  6543. operator<< is defined for this class, so it can be used with iostream
  6544. classes nicely. SimpleLogger and following functions are rewritten
  6545. using StringFormat class.
  6546. Besides, now Logger class's methods are non-const, many classes
  6547. that has a const Logger* as a member variable are modified to remove
  6548. const qualifier from the variable declaration.
  6549. * src/HelpItemFactory.cc
  6550. * src/Request.cc
  6551. * src/SimpleLogger.cc
  6552. * src/StringFormat.cc
  6553. * src/StringFormat.h
  6554. * src/Util.cc
  6555. * src/option_processing.cc
  6556. * src/version_usage.cc
  6557. * test/StringFormatTest.cc
  6558. * src/*.h: The classes that has const Logger* as a member variable.
  6559. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6560. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6561. failed. Also fixed memory link when exception is thrown there.
  6562. * src/main.cc (AccRequestGroup)
  6563. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Added build-in "Accept-Features" support. For now only "metalink" is
  6565. used in this header field.
  6566. This "metalink" value is removed from the list when connecting URLs
  6567. fed by metalink file to avoid loop in "transparent" metlaink.
  6568. * src/HttpRequest.cc
  6569. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6570. header is also held in this variable. Also renamed setUserHeaders as
  6571. addHeader and it was rewritten to add header not just to clear the old
  6572. value.
  6573. * src/HttpRequestCommand.cc
  6574. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6575. from "Accept-Features" list.
  6576. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6577. default.
  6578. * src/RequestGroup.h
  6579. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6580. * src/a2functional.h: Included <string> because Concat class depends on
  6581. it.
  6582. * test/HttpRequestTest.cc
  6583. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6584. Added comment
  6585. * src/RequestGroup.cc (createNextCommand)
  6586. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6587. Capitalized METHOD_GET and METHOD_HEAD
  6588. * src/Request.cc
  6589. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6590. Added getDownloadResults() method
  6591. * src/RequestGroupMan.cc
  6592. * src/RequestGroupMan.h
  6593. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6594. Fixed the bug that aria2 exits when commands is empty() but
  6595. _routineCommands are not.
  6596. * src/DownloadEngine.cc
  6597. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6598. Use the default value pulled from Option object in HelpItemFactory.
  6599. except options whose defualt value is embedded in a usage text.
  6600. * src/HelpItemFactory.cc
  6601. * src/HelpItemFactory.h
  6602. * src/option_processing.cc
  6603. * src/version_usage.cc
  6604. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6605. Added --quiet option to make aria2 quiet (no console output).
  6606. --quiet option is tagged with ADVANCED.
  6607. * src/HelpItemFactory.cc
  6608. * src/LogFactory.cc
  6609. * src/LogFactory.h
  6610. * src/MultiUrlRequestInfo.cc
  6611. * src/MultiUrlRequestInfo.h
  6612. * src/NullStatCalc.h: New class. This class prints nothing.
  6613. * src/OptionHandlerFactory.cc
  6614. * src/main.cc
  6615. * src/option_processing.cc
  6616. * src/prefs.h
  6617. * src/usage_text.h
  6618. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6620. * src/HelpItemFactory.cc (createHelpItems):
  6621. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6622. Fixed compilation error in ExpatMetalinkProcessor.cc
  6623. * src/ExpatMetalinkProcessor.cc
  6624. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. Reuse socket if the origin server supports HTTP keep-alive and
  6626. --enable-http-keep-alive or --enable-http-pipelining is given.
  6627. The current implementation doesn't reuse the connections established
  6628. against proxy server.
  6629. * src/AbstractCommand.cc
  6630. * src/DownloadEngine.cc
  6631. * src/DownloadEngine.h
  6632. * src/HttpDownloadCommand.cc
  6633. * src/HttpInitiateConnectionCommand.cc
  6634. * src/HttpResponseCommand.cc
  6635. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Rewritten HTTP keep-alive and pipelining routine.
  6637. * src/AbstractCommand.cc
  6638. * src/HttpConnection.cc
  6639. * src/HttpDownloadCommand.cc
  6640. * src/HttpRequest.cc
  6641. * src/HttpRequestCommand.cc
  6642. * src/HttpResponseCommand.cc
  6643. * src/Request.cc
  6644. * src/Request.h
  6645. * src/RequestGroup.cc
  6646. * test/HttpRequestTest.cc
  6647. * test/HttpResponseTest.cc
  6648. * test/RequestTest.cc
  6649. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6650. Added missing setUserHeaders call
  6651. * src/HttpRequestCommand.cc
  6652. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6653. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6654. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6655. waste of time because it is more likey false.
  6656. * src/FileAllocationDispatcherCommand.cc (execute)
  6657. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6658. Now HTTP status and version are a member variable of HttpHeader.
  6659. HTTP status is processed as a string, not integer.
  6660. * src/AbstractProxyResponseCommand.cc
  6661. * src/HttpConnection.cc
  6662. * src/HttpHeader.cc
  6663. * src/HttpHeader.h
  6664. * src/HttpHeaderProcessor.cc
  6665. * src/HttpHeaderProcessor.h
  6666. * src/HttpResponse.cc
  6667. * src/HttpResponse.h
  6668. * test/HttpHeaderProcessorTest.cc
  6669. * test/HttpResponseTest.cc
  6670. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Added --header option. You can specify any number of additional HTTP headers
  6672. like:
  6673. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6674. Unlike other commad-line option, you can use --header option multiple times.
  6675. * src/HelpItemFactory.cc
  6676. * src/HttpRequest.{cc, h}
  6677. * src/HttpRequestCommand.cc
  6678. * src/OptionHandlerFactory.cc
  6679. * src/OptionHandlerImpl.h
  6680. * src/option_processing.cc
  6681. * src/prefs.h
  6682. * src/usage_text.h
  6683. * test/HttpRequestTest.cc (testUserHeaders)
  6684. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Eliminates the time lag between sequential downloads and commands in
  6686. the same RequestGroup.
  6687. In old implementation, aria2 occasionally waits 1 seconds before
  6688. executing next command or RequestGroup.
  6689. This is really a waste of time, and new implementation eliminates
  6690. this unnecessary time lag.
  6691. * src/AbstractCommand.cc
  6692. * src/AutoSaveCommand.cc
  6693. * src/CheckIntegrityCommand.cc
  6694. * src/Command.{cc, h}
  6695. * src/DownloadEngine.{cc, h}
  6696. * src/DownloadEngineFactory.cc
  6697. * src/FileAllocationCommand.cc
  6698. * src/FileAllocationDispatcherCommand.cc
  6699. * src/FillRequestGroupCommand.cc
  6700. * src/FtpInitiateConnectionCommand.cc
  6701. * src/HaveEraseCommand.cc
  6702. * src/HttpInitiateConnectionCommand.cc
  6703. * src/HttpResponseCommand.cc
  6704. * src/RealtimeCommand.cc
  6705. * src/RequestGroup.cc
  6706. * src/RequestGroupMan.cc
  6707. * src/StreamFileAllocationEntry.cc
  6708. * src/TimeBasedCommand.{cc, h}
  6709. * src/TimedHaltCommand.cc
  6710. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6711. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6712. keyword explicit and SharedHandle's default constructor initializes
  6713. its internal obj to null, old implementation initializes it using
  6714. obj's default constructor.
  6715. To assign null, write SharedHandle<T> x(...); x.reset();
  6716. TODO: test/SharedHandleTest.cc needs more tests.
  6717. * src/SharedHandle.h
  6718. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Fixed type in man page.
  6720. * doc/aria2c.1.txt
  6721. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6722. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6723. * src/SimpleLogger.{cc, h}
  6724. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Implemented auto protocol detection.
  6726. Now you can do:
  6727. aria2c -Z http://host/file file1.torrent file2.metalink
  6728. (Note: -Z option is required for auto protcol detection.)
  6729. Then aria2c downloads 3 files simultaneously:
  6730. 1. http://host/file
  6731. 2. file1.torrent <-- read local torrent file
  6732. 3. file2.metalink <-- read local Metalink file.
  6733. Same thing goes with -i option. Assume your uris.txt contans:
  6734. http://host/file
  6735. file1.torrent
  6736. file2.metalink
  6737. Then you can do: aria2c -i uris.txt
  6738. (Note: -Z option is not needed if -i option is given.)
  6739. * src/main.cc
  6740. * src/ProtocolDetector.{cc, h}
  6741. * test/ProtocolDetectorTest.cc
  6742. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6744. installed
  6745. * src/ARC4Encryptor.h
  6746. * src/ARC4Decryptor.h
  6747. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Renamed argument from 'errno' to 'err', since errno is confused with
  6749. errno defined in errno.h.
  6750. * src/LibgcryptARC4Decryptor.h
  6751. * src/LibgcryptARC4Context.h
  6752. * src/LibgcryptDHKeyExchange.h
  6753. * src/LibgcryptARC4Encryptor.h
  6754. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6755. Rewritten choking algorithm.
  6756. * src/PeerChokeCommand.{cc, h}
  6757. * src/BtInterestedMessage.cc
  6758. * src/PeerSessionResource.{cc, h}
  6759. * src/DefaultPeerStorage.{cc, h}
  6760. * src/BtNotInterestedMessage.cc
  6761. * src/DefaultBtMessageDispatcher.{cc, h}
  6762. * src/BtMessageDispatcher.h
  6763. * src/Peer.{cc, h}
  6764. * src/BtLeecherStateChoke.{cc, h}
  6765. * src/BtSetup.cc
  6766. * src/BtSeederStateChoke.{cc, h}
  6767. * src/PeerStorage.h
  6768. * test/MockPeerStorage.h
  6769. * test/MockBtMessageDispatcher.h
  6770. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6771. Fixed compilation error on x84-64 platform.
  6772. * src/AuthConfig.cc: Included ostream.
  6773. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Rewritten getBasename() and getDirname(), without standard library
  6775. basename(), dirname().
  6776. * src/File.cc
  6777. * test/FileTest.cc
  6778. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6779. Added Simplified Chinese translation. Also updated the following
  6780. translations: Polish, Dutch, German. Great thanks to all translators.
  6781. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6782. Suppress content-range error when 'Content-Range' response header
  6783. doesn't contains bytes-unit specifier 'bytes'
  6784. * src/HttpHeader.cc (getRange)
  6785. * test/HttpHeaderTest.cc
  6786. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. Fixed compilation error with g++-4.3
  6788. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6789. Added missing include files for MinGW
  6790. * test/HttpHeaderProcessorTest.cc
  6791. * test/DHTRoutingTableSerializerTest.cc
  6792. * test/DHTRoutingTableDeserializerTest.cc
  6793. * test/UriListParserTest.cc
  6794. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6795. Now download line is printed nicely with no garbage at the end of
  6796. line. I use ioctl to get the columns of terminal.
  6797. If stdout is redirected to another device, instead of carriage return,
  6798. end of line '\n' character is used. This is feature request#1909659
  6799. * src/ConsoleStatCalc.cc (calculateStat)
  6800. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6801. Included a2time.h
  6802. * src/DHTMessageDispatcher.h
  6803. * src/DHTMessageEntry.h
  6804. * src/DHTReplaceNodeTask.h
  6805. * src/DHTMessageTracker.h
  6806. * src/Util.h
  6807. * src/CookieBox.h
  6808. * src/SocketCore.h
  6809. * src/DefaultBtMessageDispatcher.h
  6810. * src/SocketCore.cc
  6811. * src/Util.cc
  6812. * src/DHTPingTask.h
  6813. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Fixed high memory footprint when DHT is enabled.
  6815. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6816. queued than it is processed and the queue is getting longer. As a
  6817. consequence, momory usage is increased.
  6818. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6819. replacement cache in DHTBucket which is described in Kademlia paper.
  6820. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6821. DHTReplaceNodeTask.
  6822. * src/DHTBucket.{h, cc}
  6823. (cacheNode): New function.
  6824. (getCachedNodes): New function.
  6825. (dropNode): Push back cached node to _nodes.
  6826. * test/DHTBucketTest.cc
  6827. (testCacheNode): New test
  6828. (testDropNode): New test
  6829. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6830. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6831. the unused 4KB memory when ssl is not used.
  6832. * src/SocketCore.cc
  6833. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6834. Added summary log for peer announce storage.
  6835. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6836. Removed cast
  6837. * src/DefaultPeerStorage.cc (addPeer)
  6838. Log exception message
  6839. * src/DHTMessageTracker.cc (handleTimeout)
  6840. Fixed casting
  6841. * test/HttpRequestTest.cc
  6842. * test/MetalinkProcessorTest.cc
  6843. * test/PieceTest.cc
  6844. * test/MetalinkEntryTest.cc
  6845. * test/SequenceTest.cc
  6846. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6847. * src/ParameterizedStringParser.cc (createLoop):
  6848. Removed unused variable sstep.
  6849. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6850. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6851. * src/Util.{h, cc}
  6852. (parseUInt): New function.
  6853. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6854. The actual range is uint32_t.
  6855. * test/UtilTest.cc
  6856. * src/ParameterizedStringParser.cc:
  6857. Use Util::parseUInt() for loop variables.
  6858. * test/ParameterizedStringParserTest.cc
  6859. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6860. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6861. Rewritten the functions for binding port.
  6862. * src/DHTConnectionImpl.{h, cc}
  6863. * src/PeerListenCommand.{h, cc}
  6864. * src/DHTSetup.cc
  6865. * src/BtSetup.cc
  6866. * test/DHTConnectionImplTest.cc
  6867. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6868. type cleanup for allmost all remaining files.
  6869. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Type clarification
  6871. * src/PeerSessionResource.{h, cc}
  6872. * src/DefaultPieceStorage.{h, cc}
  6873. * src/Peer.{h, cc}
  6874. * test/PeerSessionResourceTest.cc
  6875. Use div function
  6876. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6877. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6878. Type clarification
  6879. * src/DefaultPeerStorage.{h, cc}
  6880. * test/DefaultPeerStorageTest.cc
  6881. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6882. Type clarification: size_t for length or size, uint64_t for file
  6883. length, off_t for file offset.
  6884. * src/DefaultBtProgressInfoFile.cc
  6885. * src/DefaultBtContext.{h, cc}
  6886. * src/DefaultBtInteractive.cc
  6887. * src/DownloadCommand.{h, cc}
  6888. * src/IteratableChunkChecksumValidator.{h, cc}
  6889. * src/SegmentMan.{h, cc}
  6890. * src/SingleFileDownloadContext.{h, cc}
  6891. * src/IteratableChecksumValidator.{h, cc}
  6892. * src/BtContext.h
  6893. * src/IteratableValidator.h
  6894. * src/DownloadContext.h
  6895. * test/SingleFileDownloadContextTest.cc
  6896. * test/DefaultBtContextTest.cc
  6897. * test/MockBtContext.h
  6898. * test/Metalink2RequestGroupTest.cc
  6899. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. Type clarification: size_t for length or size, uint64_t for file
  6901. length, off_t for file offset.
  6902. * src/PiecedSegment.cc
  6903. * src/GrowSegment.h
  6904. * src/DefaultBtRequestFactory.h
  6905. * src/DefaultBtProgressInfoFile.cc
  6906. * src/UnknownLengthPieceStorage.h
  6907. * src/DefaultPieceStorage.cc
  6908. * src/UnknownLengthPieceStorage.cc
  6909. * src/DefaultBtInteractive.cc
  6910. * src/GrowSegment.cc
  6911. * src/BitfieldMan.h
  6912. * src/DownloadCommand.cc
  6913. * src/BtRequestFactory.h
  6914. * src/PiecedSegment.h
  6915. * src/DefaultPieceStorage.h
  6916. * src/Piece.cc
  6917. * src/DefaultBtRequestFactory.cc
  6918. * src/PieceStorage.h
  6919. * src/Segment.h
  6920. * src/Piece.h
  6921. * src/BitfieldMan.cc
  6922. * src/Util.cc
  6923. * test/DefaultBtProgressInfoFileTest.cc
  6924. * test/DefaultPieceStorageTest.cc
  6925. * test/MockPieceStorage.h
  6926. * test/BtRequestMessageTest.cc
  6927. * test/DefaultBtMessageDispatcherTest.cc
  6928. * test/BitfieldManTest.cc
  6929. * test/GrowSegmentTest.cc
  6930. * test/PieceTest.cc
  6931. * test/SegmentTest.cc
  6932. * test/SegmentManTest.cc
  6933. * test/DefaultBtRequestFactoryTest.cc
  6934. * test/MockBtRequestFactory.h
  6935. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. Fixed compilation error with --disable-nls
  6937. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6938. in gettext.h causes the problem.
  6939. * src/common.h
  6940. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. Removed subPiece related functions.
  6942. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6943. * src/DefaultPieceStorage.{h, cc}
  6944. * test/PieceTest.cc
  6945. * test/DefaultPieceStorageTest.cc
  6946. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6947. Use unsigned char for data store.
  6948. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6949. Bump up version number to 0.13.0+1
  6950. * configure.ac
  6951. * Release 0.13.0+1
  6952. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6953. Changed inactive connection timeout to 120.
  6954. To accept more mulually interested peers, disconnect peer when there
  6955. is no interest between us after certain time passed.
  6956. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6957. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6958. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6959. when compiled with async DNS support.
  6960. * src/DownloadEngine.cc
  6961. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6962. value '10' will be a little bit short when some DNS servers are
  6963. offline and several DNS servers are tried. It should be configured
  6964. by command-line option.
  6965. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6966. Merged Ross's mingw patch.
  6967. * src/DHTRoutingTableDeserializer.cc
  6968. * src/DHTRoutingTableSerializer.cc
  6969. * src/Platform.{h, cc}
  6970. * src/timegm.h
  6971. * src/gettimeofday.h
  6972. * src/getaddrinfo.h
  6973. * src/SocketCore.h
  6974. * src/common.h
  6975. * src/inet_aton.h
  6976. * src/DownloadEngine.h
  6977. * src/gai_strerror.h
  6978. * src/a2netcompat.h
  6979. * configure.ac
  6980. * configure
  6981. * aclocal.m4
  6982. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Included missing iostream.
  6984. * test/AllTest.cc
  6985. * test/BtDependencyTest.cc
  6986. * test/BtExtendedMessageTest.cc
  6987. * test/DHTConnectionImplTest.cc
  6988. * test/DHTMessageFactoryImplTest.cc
  6989. * test/DHTMessageTrackerEntryTest.cc
  6990. * test/DHTNodeTest.cc
  6991. * test/DHTRoutingTableSerializerTest.cc
  6992. * test/DefaultBtAnnounceTest.cc
  6993. * test/DefaultBtContextTest.cc
  6994. * test/DefaultBtMessageFactoryTest.cc
  6995. * test/DefaultExtensionMessageFactoryTest.cc
  6996. * test/HandshakeExtensionMessageTest.cc
  6997. * test/HttpResponseTest.cc
  6998. * test/MetalinkProcessorTest.cc
  6999. * test/MultiFileAllocationIteratorTest.cc
  7000. * test/SocketCoreTest.cc
  7001. * test/UTPexExtensionMessageTest.cc
  7002. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7003. Reorganized includes.
  7004. * src/NameResolver.cc
  7005. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7006. Fixed compilation error without ares/c-ares
  7007. * src/NameResolver.h:
  7008. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Added a test for large file.
  7010. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7011. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7012. Fixed the bug that file size is ignored if size > INT32_MAX
  7013. * src/SizeMetalinkParserState.cc (endElement):
  7014. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7015. Bump up version number to 0.13.0
  7016. * configure.ac
  7017. * Release 0.13.0
  7018. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7019. Updated Makfefile.am to make 'make dist' work.
  7020. Now packaged filename is aria2c-VERSION.tar.bz2.
  7021. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7022. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7023. Large file support is now configured by configure script.
  7024. * configure.ac
  7025. Removed unsused source files
  7026. * src/
  7027. * test/
  7028. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7029. Peer.h and BtContext.h respectively.
  7030. * src/Peer.h
  7031. * src/BtContext.h
  7032. Updated translations.
  7033. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7034. translations. Great thanks to all translators!;)
  7035. * po/*.{po, gmo}
  7036. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7037. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7038. statically declared sha1 MessageDigestContext.
  7039. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7040. initialization of short-lived MessageDigestContext.
  7041. * src/MessageDigestHelper.{h, cc}
  7042. * src/main.cc
  7043. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7044. the initialization of MessageDigestContext every time in validating
  7045. chunk checksum.
  7046. * src/DownloadCommand.{h, cc}
  7047. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Add a file descriptor which connected to fast peer(latency<1500) to
  7049. select(). This change reduced CPU load.
  7050. * src/PeerInteractionCommand.cc
  7051. * src/DefaultBtInteractive.{h, cc}
  7052. * src/BtInteractive.h
  7053. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7054. Fixed the previous insufficient fix for possible busy loop.
  7055. * src/MSEHandshake.cc (identifyHandshakeType)
  7056. Removed unused functions.
  7057. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7058. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7059. Fixed possible busy loop if first 20 bytes are not received for a few
  7060. minutes.
  7061. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7062. * src/ReceiverMSEHandshakeCommand.cc
  7063. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Fixed compilation error
  7065. * src/ExpatMetalinkProcessor.cc
  7066. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7068. * src/DHTBucket.cc
  7069. Removed unnecessary cast.
  7070. * src/HandshakeExtensionMessage.cc
  7071. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7072. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7073. is missing.
  7074. * src/OptionHandlerFactory.cc
  7075. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7076. Fixed the bug that HAVE message is not sent for a piece they are
  7077. downloaded fom http/ftp server before any BitTorrent handshake is done
  7078. with peers.
  7079. * src/DefaultBtInteractive.cc
  7080. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7081. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7082. * src/Makefile.am
  7083. * src/Makefile.in
  7084. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7085. Updated README. Added html version of README and man page.
  7086. * README
  7087. * README.html
  7088. * readme2html: Shell script to generate README.html from README using
  7089. asciidoc.
  7090. * doc/aria2c.1.html
  7091. * doc/makeman: Added the line to generate aria2c.1.html
  7092. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7093. Fixed offset calculation.
  7094. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7095. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7096. Rewritten itos and uitos using template. llitos and ullitos are
  7097. replaced with itos and uitos respectively.
  7098. * src/Util.{h, cc}
  7099. * test/UtilTest.cc
  7100. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7102. of the number of bytes required for storing public key and shared
  7103. secret.
  7104. * src/LibgcryptDHKeyExchange.h
  7105. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7106. * src/MSEHandshake.cc
  7107. * test/DHKeyExchangeTest.cc
  7108. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7109. Removed since they are not used.
  7110. * src/Xml2MetalinkProcessor.{h, cc}
  7111. * src/Socket.cc
  7112. * src/SegmentSplitter.{h, cc}
  7113. * test/Xml2MetalinkProcessorTest.cc
  7114. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7115. Fixed the bug that prevents aria2 from stopping other than by pressing
  7116. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7117. option. aria2 doesn't stop even after --seed-time is satisfied and
  7118. continues to output blank lines in the console.
  7119. * src/ReceiverMSEHandshakeCommand.cc
  7120. * src/PeerReceiveHandshakeCommand.cc
  7121. * src/PeerListenCommand.cc
  7122. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7123. Bump up version number to 0.13.0rc
  7124. * configure.ac
  7125. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7126. Updated man page and some usage text.
  7127. * doc/aria2c.1.txt
  7128. * src/usage_text.h
  7129. * po/*.{po, gmo}
  7130. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7131. Updated translations. Added Finnish and Hebrew translations.
  7132. Great thanks to all translators!
  7133. * po/*.{po, gmo}
  7134. * po/LINGUAS
  7135. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7136. Log more detailed information about each message.
  7137. * src/DHTQueryMessage.{h, cc}
  7138. * src/DHTGetPeersMessage.{h, cc}
  7139. * src/DHTFindNodeReplyMessage.{h, cc}
  7140. * src/DHTGetPeersReplyMessage.{h, cc}
  7141. * src/DHTAnnouncePeerMessage.{h, cc}
  7142. * src/DHTResponseMessage.{h, cc}
  7143. * src/DHTFindNodeMessage.{h, cc}
  7144. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7145. Use constants defined in prefs.h
  7146. * src/option_processing.cc
  7147. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7149. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7150. Make room for future enchancements for IPv6 addresses.
  7151. Bump up version number of dht.dat file format to 2.
  7152. Not compatible with previous version.
  7153. * src/DHTRoutingTableSerializer.cc
  7154. * src/DHTRoutingTableDeserializer.cc
  7155. * test/DHTRoutingTableSerializerTest.cc
  7156. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Added handling for the return values from
  7158. PeerMessageUtil::createcompact().
  7159. * src/DefaultBtContext.cc (computeFastSet):
  7160. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7161. Fixed abort when peer's ip address is IPv4-mapped address.
  7162. * src/DefaultBtContext.cc (computeFastSet)
  7163. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7164. cannot handle IPv4-mapped addresses.
  7165. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7166. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Proper return value handling for OpenSSL functions.
  7168. * src/LibsslDHKeyExchange.h
  7169. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. Random bytes generation using libgcrypt and OpenSSL.
  7171. * src/DHTUtil.{h, cc}
  7172. * test/DHTUtilTest.cc
  7173. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7174. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7175. received.
  7176. * src/DHTMessageReceiver.cc (receiveMessage)
  7177. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7178. Fixed the bug that a return code is always 0. BUG#1897704
  7179. If error occurred during the download or there exist unfinished
  7180. downloads, aria2 returns with code 1.
  7181. * src/RequestGroupMan.{h, cc}
  7182. * src/MultiUrlRequestInfo.{h, cc}
  7183. * src/main.cc
  7184. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7185. IPv6 support for SocketCore class.
  7186. TODO: In SocketCore::establishConnection(), this is insufficient to
  7187. determin the failure of connect() here because the socket is
  7188. non-blocking state. The next addresses should be tried after select().
  7189. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7190. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7191. instead which address family independent.
  7192. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7193. information in a compact peer format which is for IPv4 only.
  7194. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7195. this is a spec of BitTorrent protocol.
  7196. * src/SocketCore.{h, cc}
  7197. * src/PeerMessageUtil.cc
  7198. * test/SocketCoreTest.cc
  7199. * test/PeerMessageUtilTest.cc
  7200. * test/DHTConnectionImplTest.cc
  7201. Handle IPv4-mapped addresses.
  7202. * src/DHTNode.cc: Now identity is determined by node id.
  7203. * src/DHTMessageTrackerEntry.cc
  7204. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7205. should handle it.
  7206. * src/DHTRoutingTableDeserializer.cc
  7207. * src/DHTMessageFactoryImpl.cc
  7208. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7209. Change the unit of --stop option from a minute to a second.
  7210. * src/usage_text.h
  7211. * src/DownloadEngineFactory.cc
  7212. * src/OptionHandlerFactory.cc
  7213. * src/message.h
  7214. * src/TimedHaltCommand.cc
  7215. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Make listening socket non-block mode.
  7217. * src/FtpConnection.cc
  7218. * src/FtpNegotiationCommand.{h, cc}
  7219. * src/PeerListenCommand.cc
  7220. Fixed the bug that cause slow ftp negotiation.
  7221. * src/FtpNegotiationCommand.{h, cc}
  7222. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7223. Added basic tag to --enable-dht, --dht-listen-port option.
  7224. * src/HelpItemFactory.cc (createHelpItems)
  7225. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Updated text.
  7227. * src/usage_text.h
  7228. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7229. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  7230. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7231. Determin _threadtholdSpeed in each constructor for
  7232. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  7233. * src/ActivePeerConnectionCommand.{h, cc}
  7234. * src/PeerReceiveHandshakeCommand.{h, cc}
  7235. * src/BtSetup.cc
  7236. * src/BtConstants.h
  7237. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7238. Added --bt-min-crypto-level and --bt-require-crypto options.
  7239. * src/OptionHandlerFactory.cc
  7240. * src/MSEHandshake.cc
  7241. * src/HelpItemFactory.cc
  7242. * src/option_processing.cc
  7243. * src/ReceiverMSEHandshakeCommand.cc
  7244. * src/prefs.h
  7245. * src/DefaultBtAnnounce.cc
  7246. * src/InitiatorMSEHandshakeCommand.cc
  7247. * src/usage_text.h
  7248. * test/MSEHandshakeTest.cc
  7249. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7250. Bump version number to 0.13.0b
  7251. * configure.ac
  7252. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7253. Updated doc.
  7254. * src/MessageDigestHelper.h:
  7255. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7256. Use raw message digest as a token instead of its hexadecimal
  7257. representation.
  7258. * src/DHTTokenTracker.cc (generateToken)
  7259. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7260. Added Message Stream Encryption(MSE) support.
  7261. Currently, aria2 accepts incoming connections with Obfuscation Header
  7262. and legacy BitTorrent Header and establishes connections with
  7263. Obfuscation Header first and if failed then retry with legacy
  7264. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  7265. choose ARC4. The new option to change the default behavior is planned.
  7266. For tracker extension, "supportcrypto=1" is added statically.
  7267. * src/PeerInitiateConnectionCommand.{h, cc}
  7268. * src/PeerConnection.{h, cc}
  7269. * src/HandleRegistry.h
  7270. * src/SocketCore.h
  7271. * src/PeerReceiveHandshakeCommand.{h, cc}
  7272. * src/BtRegistry.{h, cc}
  7273. * src/PeerListenCommand.cc
  7274. * src/InitiatorMSEHandshakeCommand.{h, cc}
  7275. * src/ReceiverMSEHandshakeCommand.{h, cc}
  7276. * src/MSEHandshake.{h, cc}
  7277. * src/ARC4Encryptor.h
  7278. * src/ARC4Decryptor.h
  7279. * src/LibgcryptARC4Encryptor.h
  7280. * src/LibgcryptARC4Decryptor.h
  7281. * src/LibgcryptARC4Context.h
  7282. * src/LibsslARC4Encryptor.h
  7283. * src/LibsslARC4Decryptor.h
  7284. * src/LibsslARC4Context.h
  7285. * src/DHKeyExchange.h
  7286. * src/LibgcryptDHKeyExchange.h
  7287. * src/LibsslDHKeyExchange.h
  7288. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  7289. * test/DefaultBtAnnounceTest.cc
  7290. * test/ARC4Test.cc
  7291. * test/DHKeyExchangeTest.cc
  7292. Removed prepareForRetry() because it is not used.
  7293. * src/PeerAbstractCommand.{h, cc}
  7294. * src/PeerInteractionCommand.{h, cc}
  7295. * src/PeerInitiateConnectionCommand.{h, cc}
  7296. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Added the ability to load nodes from torrent file. These nodes are
  7298. added to the routing table when downloading that torrent.
  7299. * src/BtContext.h
  7300. * src/DefaultBtContext.{h, cc}
  7301. * src/DHTSetup.cc
  7302. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  7303. hostname and port pair, and resolves all of them.
  7304. * src/NameResolver.{h, cc}: Added reset().
  7305. * src/RequestGroup.cc
  7306. * test/DefaultBtContextTest.cc
  7307. * test/MockBtContext.h
  7308. Removed assert() from DefaultBtContext and throw exception instead.
  7309. * src/DefaultBtContext.cc
  7310. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. Fixed segmentation fault bug when exiting if dht is disabled.
  7312. * src/RequestGroup.cc
  7313. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7314. Fixed typo in log message and define the message in message.h
  7315. * src/TimedHaltCommand.cc
  7316. * src/message.h
  7317. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7318. Included RecoverableException.h to fix compilation error.
  7319. * test/DHTMessageFactoryImplTest.cc
  7320. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  7322. * test/DHTPingMessageTest.cc
  7323. * test/DHTGetPeersMessageTest.cc
  7324. * test/DHTFindNodeMessageTest.cc
  7325. * test/DHTAnnouncePeerMessageTest.cc
  7326. * test/MockDHTMessage.h
  7327. * test/MockDHTMessageFactory.h
  7328. * test/MockDHTMessageDispatcher.h: New class.
  7329. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  7331. virtual.
  7332. * src/DHTMessageDispatcher.h
  7333. * src/DHTMessageDispatcherImpl.{h, cc}
  7334. * src/DHTSetup.cc
  7335. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7336. Adding handling of DHT error message. Just log error message and
  7337. throw exception.
  7338. * src/DHTMessageFactoryImpl.cc
  7339. * test/DHTMessageFactoryImplTest.cc
  7340. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7341. Added handling of dynamic cast failure.
  7342. * src/DHTNodeLookupTask.cc
  7343. * src/DHTPeerLookupTask.cc
  7344. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7345. Added the ability to stop aria2 itself when given time has passed
  7346. from start. Use --stop option to specify time in minutes.
  7347. When 0 is given, this feature is disabled.
  7348. * src/OptionHandlerFactory.cc
  7349. * src/TimeBasedCommand.h: Make _interval protected scope.
  7350. * src/HelpItemFactory.cc
  7351. * src/option_processing.cc
  7352. * src/prefs.h
  7353. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  7354. before calling RequestGroupMan::fillRequestGroupFromReserver().
  7355. Without this modification, the result list shows "ERR" when aria2 is
  7356. stopped by --stop option. It should be "INPR".
  7357. * src/DownloadEngine.{h, cc}
  7358. * src/DownloadEngineFactory.cc
  7359. * src/usage_text.h
  7360. * src/TimedHaltCommand.{h, cc}: New class.
  7361. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7362. Bootstrap through node added by port message.
  7363. Currently bootstrap is executed if the number of buckets in routing
  7364. table is 1.
  7365. * src/BtPortMessage.{h, cc}
  7366. * src/DefaultBtMessageFactory.{h, cc}
  7367. * src/PeerInteractionCommand.cc
  7368. * test/BtPortMessageTest.cc
  7369. * test/MockDHTTask.h
  7370. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7371. Extract the Peer class's member variables, which are only needed after
  7372. PeerInteractionCommand, into PeerSessionResource class.
  7373. This class is instantiated in PeerInteractionCommand class's ctor and
  7374. released in its dtor.
  7375. This will make Peer class lightweight and uses less memory for peers
  7376. which are not connected and wait in the queue.
  7377. * src/PeerChokeCommand.cc
  7378. * src/PeerSessionResource.{h, cc}
  7379. * src/PeerInteractionCommand.cc
  7380. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  7381. * src/DefaultBtInteractive.cc
  7382. * src/BtPieceMessage.cc
  7383. * src/BtInterestedMessage.cc
  7384. * src/BtUnchokeMessage.cc
  7385. * src/DefaultPeerStorage.{h, cc}
  7386. * src/PeerInitiateConnectionCommand.cc
  7387. * src/ActivePeerConnectionCommand.cc
  7388. * src/BtNotInterestedMessage.cc
  7389. * src/DefaultBtMessageDispatcher.cc
  7390. * src/BtChokeMessage.cc
  7391. * src/BtRequestMessage.cc
  7392. * src/Peer.{h, cc}
  7393. * src/BtRegistry.h
  7394. * src/TrackerWatcherCommand.cc
  7395. * src/PeerReceiveHandshakeCommand.cc
  7396. * test/BtExtendedMessageTest.cc
  7397. * test/BtAllowedFastMessageTest.cc
  7398. * test/BtCancelMessageTest.cc
  7399. * test/DefaultPieceStorageTest.cc
  7400. * test/BtBitfieldMessageTest.cc
  7401. * test/BtHaveMessageTest.cc
  7402. * test/BtNotInterestedMessageTest.cc
  7403. * test/BtRequestMessageTest.cc
  7404. * test/PeerSessionResourceTest.cc
  7405. * test/DefaultBtMessageDispatcherTest.cc
  7406. * test/PeerTest.cc
  7407. * test/BtInterestedMessageTest.cc
  7408. * test/BtRejectMessageTest.cc
  7409. * test/BtChokeMessageTest.cc
  7410. * test/DefaultPeerStorageTest.cc
  7411. * test/BtHaveNoneMessageTest.cc
  7412. * test/BtHaveAllMessageTest.cc
  7413. * test/DefaultExtensionMessageFactoryTest.cc
  7414. * test/BtUnchokeMessageTest.cc
  7415. * test/DefaultBtMessageFactoryTest.cc
  7416. * test/HandshakeExtensionMessageTest.cc
  7417. * test/UTPexExtensionMessageTest.cc
  7418. * test/DefaultBtRequestFactoryTest.cc
  7419. * test/BtPieceMessageTest.cc
  7420. Removed typedef PeerStats.
  7421. * src/PeerStat.h
  7422. * src/SegmentMan.cc
  7423. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Added std namespace to copy, remove_copy, back_inserter,
  7425. front_inserter.
  7426. * src/RequestGroupMan.cc
  7427. * src/DefaultPieceStorage.cc
  7428. * src/StreamFileAllocationEntry.cc
  7429. * src/BtFileAllocationEntry.cc
  7430. * src/RequestGroup.cc
  7431. * src/MetalinkEntry.cc
  7432. * src/DelegatingPeerListProcessor.cc
  7433. * src/DefaultBtRequestFactory.cc
  7434. * src/DefaultBtMessageDispatcher.cc
  7435. * src/version_usage.cc: Included <algorithm>
  7436. * src/main.cc
  7437. * src/MetalinkParserController.cc
  7438. * src/DefaultBtContext.cc
  7439. * src/DownloadEngineFactory.cc
  7440. * src/a2algo.h
  7441. Removed.
  7442. * test/StreamUriListParserTest.cc
  7443. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7444. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  7445. ActivePeerConnectionCommand when it is given and
  7446. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  7447. * src/ActivePeerConnectionCommand.{h, cc}
  7448. * src/BtSetup.cc
  7449. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7450. Only add socket to DownloadEngine's select routine when peer or
  7451. localhost is unchoked and interested. This lowers CPU usage a
  7452. little bit.
  7453. * src/PeerInteractionCommand.cc
  7454. * src/PeerAbstractCommand.{h, cc}
  7455. * src/BtInteractive.h
  7456. * src/DefaultBtInteractive.{h, cc}
  7457. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7458. Revert previous change because get_peers message is needed for
  7459. announce_peer anyway.
  7460. * src/DHTGetPeersCommand.cc
  7461. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7462. Request peers thought DHT only when download hasn't finished.
  7463. * src/DHTGetPeersCommand.cc
  7464. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7465. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  7466. * src/DHTBucketRefreshTask.{h, cc}
  7467. * src/DHTSetup.cc
  7468. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7469. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  7470. standard classes.
  7471. Included string.h where mem* function are used.
  7472. Added namespace aria2.
  7473. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7474. Create directory before saving DHT routing table.
  7475. Now ios::failure is now handled properly.
  7476. * src/DHTAutoSaveCommand.cc
  7477. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7478. Removed unnecessary cerr.
  7479. * src/DownloadEngine.cc
  7480. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. Catch exception inside DHTMessageReceiver::receiveMessage().
  7482. Log unknown message.
  7483. * src/DHTMessageReceiver.{h, cc}
  7484. * src/DHTMessageFactory.h
  7485. * src/DHTMessageFactoryImpl.{h, cc}
  7486. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  7487. * src/DHTInteractionCommand.cc
  7488. * src/DHTUnknownMessage.{h, cc}
  7489. * test/DHTUnknownMessageTest.cc
  7490. * test/MockDHTMessageFactory.h
  7491. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. Commented out ip address comparison because a host can have multiple
  7493. ip addresses and it is hard to predict the hostname is resolved into
  7494. which one.
  7495. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7496. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7497. * po/Makefile.in: Removed since this is generated by configure.
  7498. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7499. Fixed compiler warning about redefinition of SIZE_MAX.
  7500. Use common.h instead of config.h directly here.
  7501. * src/Platform.{h, cc}
  7502. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7503. here.
  7504. * common.h
  7505. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  7506. Updated gettext related files.
  7507. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7508. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7509. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Added DHT functionality, compatible with mainline.
  7511. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7512. You may need to specify entry point to DHT network using
  7513. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7514. Use --dht-listen-port to specify port number. Make sure that your
  7515. firewall configuration can pass through UDP traffic to the port.
  7516. The routing table is saved in $HOME/.aria2/dht.dat.
  7517. * src/DHT*
  7518. * src/BNode.{h, cc}
  7519. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7520. particular torrent.
  7521. * src/Data.cc: Rewritten ctor.
  7522. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7523. --dht-entry-point.
  7524. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7525. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7526. ends, remove BtContext from DHTPeerAnnounceStorage.
  7527. * src/BtPortMessage.{h, cc}: Rewritten.
  7528. * src/message.h
  7529. * src/OptionHandlerImpl.cc
  7530. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7531. --dht-entry-point.
  7532. * src/Dictionary.{h, cc} (remove): New function.
  7533. * src/prefs.h
  7534. * src/DefaultBtMessageFactory.h
  7535. * src/BtHandshakeMessage.cc
  7536. * src/ActivePeerConnectionCommand.cc
  7537. * src/SocketCore.{h, cc}: Added datagram socket support.
  7538. * src/DefaultBtMessageFactory.cc
  7539. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7540. Create DHT commands.
  7541. * src/BtMessageFactory.h
  7542. * src/PeerMessageUtil.{h, cc}
  7543. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Fixed the bug that log file is not written when configuration file doesn't exist.
  7545. This is caused by using Logger class before LogFactory is not configured.
  7546. BUG #1875079
  7547. * src/option_processing.cc
  7548. Warning message "configuration doesn't exist" is only printed when --conf is
  7549. given.
  7550. * src/option_processing.cc
  7551. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7552. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7553. ShaVisitor is now deprecated and slated to be removed.
  7554. * src/DefaultBtContext.cc
  7555. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7556. Externalize message to message.h
  7557. * src/Platform.cc
  7558. * src/message.h
  7559. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7560. Set default domain and default path to cookie.
  7561. * src/HttpResponse.cc
  7562. * src/CookieBox.{h, cc}
  7563. * src/CookieParser.{h, cc}
  7564. * test/CookieParserTest.cc
  7565. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7566. Added --no-conf and --conf-path command-line option.
  7567. --no-conf option disables loading aria2.conf file.
  7568. --conf-path option changes the configuration file path. The default
  7569. file path is $HOME/.aria2/aria2.conf
  7570. Added a warning message when the configuration file is not found.
  7571. * src/HelpItemFactory.cc
  7572. * src/option_processing.cc
  7573. * src/prefs.h
  7574. * src/usage_text.h
  7575. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7576. Added the message to inform users that other help categories are
  7577. available in -h option.
  7578. * src/version_usage.cc
  7579. * src/TagContainer.{h, cc}
  7580. * test/TagContainerTest.cc
  7581. * src/TaggedItem.{h, cc}
  7582. * test/TaggedItemTest.cc
  7583. * src/HelpItem.h
  7584. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7585. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7586. from PiecedSegment's ctor.
  7587. Previously Piece::getAllMissingBlockIndexes() is called from
  7588. PiecedSegment() but it is rather expensive since only first element is
  7589. used.
  7590. * src/PiecedSegment.cc
  7591. * src/Piece.{h, cc}
  7592. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7593. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7594. each time these functions are called.
  7595. * src/BitfieldMan.{h, cc}
  7596. * test/BitfieldManTest.cc
  7597. * src/array_fun.h
  7598. * test/array_funTest.cc
  7599. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7600. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7601. filtered. Removed unnecessary cast to int32_t.
  7602. * src/BitfieldMan.{h, cc}
  7603. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7605. payload length(4bytes) are received. This happens because lenbufLength
  7606. is not updated in this particular case and successive call of
  7607. receiveMessage() overwrites payload length with bytes recieved which
  7608. are payload body.
  7609. * src/PeerConnection.{h, cc}
  7610. * src/message.h
  7611. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7612. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7613. peer if there are peers that have same ipaddr and port.
  7614. I've experiened segmentation fault and "pure virtual function was
  7615. called" error.
  7616. * src/Peer.h
  7617. * test/PeerTest.cc
  7618. * src/DefaultPeerStorage.cc
  7619. * test/DefaultPeerStorageTest.cc
  7620. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Removed a call to isPowerOf() because it is no longer necessary here
  7622. and a request block is not always power of 2.
  7623. BUG#1866924
  7624. * src/PeerMessageUtil.cc (checkLength)
  7625. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7626. Fixed the bug that always first found Segment is removed from
  7627. usedSegmentEntries. Removed unused functions.
  7628. * src/SegmentMan.{h, cc}
  7629. * test/SegmentManTest.cc
  7630. Fixed the bug that ServerHost is not removed.
  7631. * src/RequestGroup.cc
  7632. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7633. Fixed the bug that SegmentMan::completeSegment() is not called
  7634. even if Segment is complete when --lowest-speed-limit is enabled.
  7635. BUG#1864525
  7636. * src/DownloadCommand.{h, cc}
  7637. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7638. Fixed: hash algorithm 'sha1' is always used.
  7639. * src/DownloadCommand.cc (validatePieceHash)
  7640. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7641. Added --enable-peer-exchange command-line option.
  7642. * src/OptionHandlerFactory.cc
  7643. * src/HelpItemFactory.cc
  7644. * src/option_processing.cc
  7645. * src/usage_text.h
  7646. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7647. Move extension from BtRuntime to ExtensionMessageFactory, because
  7648. extension can be specified per peer, not per torrent.
  7649. * src/DefaultBtInteractive.cc
  7650. * src/BtRuntime.h
  7651. * src/ExtendedMessagingAware.h
  7652. * src/ExtensionMessageFactory.h
  7653. * src/DefaultExtensionMessageFactory.cc
  7654. * test/DefaultExtensionMessageFactoryTest.cc
  7655. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. Added categorized option help. Specify category using --help option.
  7657. Also added the ability to search options in forward match.
  7658. * src/HelpItem.{h, cc}
  7659. * test/HelpItemTest.cc
  7660. * src/HelpItemFactory.{h, cc}
  7661. * src/TagContainer.{h, cc}
  7662. * test/TagContainerTest.cc
  7663. * src/option_processing.cc
  7664. * src/prefs.h
  7665. * src/TaggedItem.{h, cc}
  7666. * test/TaggedItemTest.cc
  7667. * src/version_usage.cc
  7668. * src/help_tags.h
  7669. * src/usage_text.h
  7670. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Fixed segmentation fault when bad torrent metainfo is parsed.
  7672. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7673. and then throw exception or skip it.
  7674. * src/DefaultBtContext.{h, cc}
  7675. * test/DefaultBtContextTest.cc
  7676. * src/AnnounceList.cc
  7677. * src/CompactPeerListProcessor.cc
  7678. * src/message.h
  7679. * src/DefaultBtAnnounce.{h, cc}
  7680. * test/DefaultBtAnnounceTest.cc
  7681. * src/BencodeVisitor.cc
  7682. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7683. Added missing "B"(=Byte). So now the message looks like this:
  7684. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7685. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7686. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7687. Show the seed ratio after torrent downloads.
  7688. For example, after torrent download completed and --seed-time and
  7689. --seed-ratio conditions are fulfilled, following message is printed
  7690. right after "Download complete: .....":
  7691. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7692. * src/RequestGroupMan.cc
  7693. * src/RequestGroup.{h, cc}
  7694. * src/message.h
  7695. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. Remove a defunct control file. A defunct control file means that while
  7697. it exists, but the corresponding download file is missing.
  7698. After its removal, a download restarts from the beginning.
  7699. * src/RequestGroup.cc
  7700. * src/message.h
  7701. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7702. Allocate bitfield in Peer when it is really used. More specifically,
  7703. bitfield in Peer is allocated after the connection is established and
  7704. deallocated when the connection is dropped.
  7705. Since 2 parameters(piece length and total length) was removed from the
  7706. constructor of Peer class, many test classes were modified accordingly.
  7707. See svn log for more detailed information.
  7708. * src/PeerInteractionCommand.cc
  7709. * src/CompactPeerListProcessor.cc
  7710. * src/Peer.cc
  7711. * src/DefaultPeerListProcessor.cc
  7712. * src/PeerListenCommand.cc
  7713. * src/PeerReceiveHandshakeCommand.cc
  7714. Fixed memory leak
  7715. * src/Piece.cc
  7716. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7717. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7718. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7719. command-line options.
  7720. * src/option_processing.cc
  7721. * src/ActivePeerConnectionCommand.cc
  7722. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. Send have message to peer if it already has the piece.
  7724. * src/BtHaveMessage.{h, cc}
  7725. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7727. port.
  7728. * src/DefaultPeerStorage.{h, cc}
  7729. * test/DefaultPeerStorageTest.cc
  7730. * src/HandshakeExtensionMessage.cc
  7731. * test/HandshakeExtensionMessageTest.cc
  7732. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7733. * src/PeerStorage.h
  7734. * test/MockPeerStorage.h
  7735. * src/PeerListenCommand.cc
  7736. * src/PeerReceiveHandshakeCommand.cc
  7737. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7738. Added --metalink-enable-unique-protocol option.
  7739. * src/Metalink2RequestGroup.cc
  7740. * src/option_processing.cc
  7741. * src/prefs.h
  7742. * src/version_usage.cc
  7743. * doc/aria2c.1.txt
  7744. * doc/aria2c.1
  7745. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7746. Allow a peer in incomingPeer to be added peers.
  7747. * src/DefaultPeerStorage.cc
  7748. * test/DefaultPeerStorageTest.cc
  7749. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7750. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7751. I could reproduce this bug in following procedure:
  7752. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7753. 2. Restart aria2.
  7754. 3. You see the download stopped around 99%.
  7755. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7756. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7757. If timeout is reached, then _nextCommand is unused and it may contains
  7758. segments and they won't be canceled. Actually, timeout is not needed
  7759. here because if the server dropped connection, then retry is made.
  7760. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. Added uTorrent compatible Peer Exchange.
  7762. * src/BencodeVisitor.{h, cc}
  7763. * test/BencodeVisitorTest.cc
  7764. * src/BtConstants.h
  7765. * src/BtContext.h: Added 'private' flag.
  7766. * src/BtExtendedMessage.{h, cc}
  7767. * test/BtExtendedMessageTest.cc
  7768. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7769. reserved field.
  7770. * test/BtHandshakeMessageTest.cc
  7771. * src/BtMessageFactory.h
  7772. * src/BtRegistry.h
  7773. * src/BtRuntime.h: This class holds default extension message IDs for
  7774. aria2. By default, aria2 uses ID 8 for ut_pex.
  7775. * src/DefaultBtContext.cc
  7776. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7777. When it is true, aria2 enables ut_pex. This value is set by
  7778. PeerInteractionCommand.
  7779. * src/DefaultBtMessageFactory.{h, cc}
  7780. * test/DefaultBtMessageFactoryTest.cc
  7781. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7782. handling to DefaultBtInteractive class.
  7783. * src/DefaultExtensionMessageFactory.{h, cc}
  7784. * test/DefaultExtensionMessageFactoryTest.cc
  7785. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7786. the container(peers and incomingPeers. The equality is determined by
  7787. Peer::id).
  7788. * test/DefaultPeerStorageTest.cc
  7789. * src/ExtensionMessage.h
  7790. * test/MockExtensionMessage.h
  7791. * src/ExtensionMessageFactory.h
  7792. * test/MockExtensionMessageFactory.h
  7793. * src/HandshakeExtensionMessage.{h, cc}
  7794. * test/HandshakeExtensionMessageTest.cc
  7795. * src/MetaEntry.h
  7796. * src/Peer.{h, cc}
  7797. * src/PeerInteractionCommand.cc
  7798. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7799. addIncomingPeer.
  7800. * src/PeerMessageUtil.{h, cc}
  7801. * src/PeerObject.h
  7802. * src/UTPexExtensionMessage.{h, cc}
  7803. * test/UTPexExtensionMessageTest.cc
  7804. * src/message.h
  7805. * src/prefs.h
  7806. Fixed the bug that returns incomplete data when it contains null
  7807. character. A convenient constructor was also added.
  7808. * src/Data.{h, cc}
  7809. Rewritten.
  7810. * src/CompactPeerListProcessor.cc
  7811. Fixed typos.
  7812. * src/message.h
  7813. * src/MetaFileUtil.cc
  7814. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Added "Status Legend" label to the explanation text of 'stat' in
  7816. download result and moved it to the last. BUG#1848214
  7817. * src/RequestGroupMan.cc
  7818. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7819. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7820. * src/Makefie.am
  7821. * test/Makefile.am
  7822. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7823. Fixed the bug that prevents aria2 from loading cookie file when expire
  7824. value is greater than 2^31-1. BUG#1851066
  7825. * src/CookieBoxFactory.cc
  7826. * test/CookieBoxFactoryTest.cc
  7827. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7828. Fixed possible memory leak when an exception is thrown.
  7829. * src/XML2SAXMetalinkProcessor.cc
  7830. Added Expat support. If both libxml2 and Expat are installed, then
  7831. libxml2 is used by default.
  7832. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7833. ExpatMetalinkProcessor according to the configuration.
  7834. * src/ExpatMetalinkProcessor.{h, cc}
  7835. * src/main.cc: Removed libxml2 specific header and init/free function.
  7836. * src/MetalinkProcessorFactory.{h, cc}
  7837. * src/MetalinkHelper.cc
  7838. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7839. * src/MetalinkProcessor.h
  7840. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7841. MetalinkProcessorTest is used instead.
  7842. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7843. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7844. MetalinkProcessorFactory::newInstance().
  7845. * m4/libexpat.m4
  7846. * configure.ac: Added configuration options for libexpat.
  7847. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7848. Disabled -s option in metalink download.
  7849. * src/Metalink2RequestGroup.cc
  7850. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7851. If several protocols are available for a mirror in metalink file,
  7852. aria2 now use one of them. --metalink-preferred-protocol option was
  7853. added to specify the preference of protocol.
  7854. * src/AbstractCommand.cc
  7855. * src/OptionHandlerFactory.cc
  7856. * src/ServerHost.{h, cc}
  7857. * src/Metalink2RequestGroup.cc
  7858. * src/RequestGroup.{h, cc}
  7859. * test/RequestGroupTest.cc
  7860. * src/option_processing.cc
  7861. * src/prefs.h
  7862. * src/HttpResponseCommand.cc
  7863. * src/MetalinkResource.{h, cc}
  7864. * src/FtpNegotiationCommand.cc
  7865. * src/MetalinkEntry.{h, cc}
  7866. * src/MetalinkEntryTest.cc
  7867. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7868. Code cleanup and added debug log.
  7869. * src/PeerConnection.cc
  7870. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7871. Compiler error fix: applied the patch by Tiziano Mueller
  7872. * src/RequestGroup.cc
  7873. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7874. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7875. in stopped and completed event.
  7876. * src/AnnounceList.{h, cc}
  7877. * test/AnnounceListTest.cc
  7878. * src/DefaultBtAnnounce.cc
  7879. * test/DefaultBtAnnounceTest.cc
  7880. Sorted URLs.
  7881. * test/Metalink2RequestGroupTest.cc
  7882. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7883. Removed unnecessary string copy. Updated doc and corrected indentation.
  7884. * src/Base64.cc
  7885. Fixed compilation warnings
  7886. * test/DataTest.cc
  7887. * test/HttpRequestTest.cc
  7888. * test/MetaFileUtilTest.cc
  7889. * test/RequestTest.cc
  7890. * Release 0.12.0
  7891. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Updated translations
  7893. * po/{de,fr,ja,nl,ru}.po
  7894. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7895. translations. Many thanks to translators.
  7896. * po/{ca,es,it,pt_BR,sv}.po
  7897. * po/LINGUAS
  7898. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7899. Added a notice about URL
  7900. * src/version_usage.cc
  7901. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7902. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7903. aria2 repeatedly sends stopped request when tracker returns error code.
  7904. * src/AnnounceList.cc
  7905. * test/AnnounceListTest.cc
  7906. * src/AnnounceTier.h
  7907. Added a message when ctrl-c is hit.
  7908. Now second ctrl-c is also handled in signal handler.
  7909. * src/RequestGroupMan.{h, cc}
  7910. * src/RequestGroup.{h, cc}
  7911. * src/MultiUrlRequestInfo.cc
  7912. * src/DownloadEngine.cc
  7913. * src/TrackerWatcherCommand.cc
  7914. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7915. Code cleanup
  7916. * src/Base64.cc (encode)
  7917. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7918. Changed Direct/IO enable/disable procesure in file allocation routine.
  7919. * src/SingleFileAllocationIterator.cc
  7920. (SingleFileAllocationIterator):
  7921. Disable directIO if offset is not multiple of 512.
  7922. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7923. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7924. Enable created SingleFileAllocationIterator's directIO.
  7925. * src/FileAllocationEntry.cc
  7926. (FileAllocationEntry): Enable directIO here.
  7927. (~FileAllocationEntry): Disable directIO here.
  7928. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7929. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7930. * src/Peer.{h, cc}
  7931. * src/DefaultPieceStorage.cc
  7932. * test/DefaultPieceStorageTest.cc
  7933. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. Rewritten direct I/O support routine
  7935. * src/SingleFileAllocationIterator.cc
  7936. * src/MultiDiskAdaptor.{h, cc}
  7937. * src/ByteArrayDiskWriter.h
  7938. * src/AbstractSingleDiskAdaptor.h
  7939. * src/AbstractDiskWriter.cc
  7940. * src/DefaultPieceStorage.cc
  7941. * src/DiskWriter.h
  7942. * src/BinaryStream.h
  7943. * src/IteratableChunkChecksumValidator.cc
  7944. * src/IteratableChecksumValidator.cc
  7945. * src/CheckIntegrityEntry.cc
  7946. * src/FileAllocationEntry.cc
  7947. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Fixed typo
  7949. * src/version_usage.cc
  7950. Updated doc
  7951. * doc/aria2c.1.txt
  7952. * doc/aria2c.1
  7953. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7954. Fixed compile error without message digest support.
  7955. * src/FileMetalinkParserState.cc
  7956. * src/MetalinkParserController.{h, cc}
  7957. * test/XML2SAXMetalinkProcessorTest.cc
  7958. * test/MetalinkParserControllerTest.cc
  7959. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7960. Enable direct I/O support in checksum checking.
  7961. * src/IteratableChunkChecksumValidator.{h, cc}
  7962. * test/IteratableChunkChecksumValidatorTest.cc
  7963. * src/CheckIntegrityEntry.cc
  7964. * src/PieceHashCheckIntegrityEntry.cc
  7965. * src/IteratableChecksumValidator.{h, cc}
  7966. * src/BtCheckIntegrityEntry.cc: Added doc.
  7967. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7968. Added --allow-piece-length-change option.
  7969. * src/DefaultBtProgressInfoFile.cc
  7970. * test/DefaultBtProgressInfoFileTest.cc
  7971. * src/OptionHandlerFactory.cc
  7972. * src/option_processing.cc
  7973. * src/prefs.h
  7974. * src/version_usage.cc
  7975. * doc/aria2c.1.txt
  7976. * doc/aria2c.1
  7977. Fixed: duplicated result entry appears when exception is thrown in
  7978. RequestGroup::createInitiateConnectionCommand().
  7979. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7980. Add RequestGroup to _requestGroup after RequetGroup::
  7981. createInitiateConnectionCommand() succeeds.
  7982. Externalized message
  7983. * src/XML2SAXMetalinkProcessor.cc
  7984. * src/message.h
  7985. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7986. Forced download abort when received negative response from http/ftp
  7987. server.
  7988. * src/HttpResponseCommand.cc
  7989. * src/FtpNegotiationCommand.cc
  7990. * src/HttpResponse.cc
  7991. * src/FtpConnection.cc
  7992. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7993. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7994. the predecessor, Xml2MetalinkParser class.
  7995. I tested them against 94KB metalink file with 1234 chunk checksums.
  7996. The new one parsed it in 22msec, while it took 6000msec with old one.
  7997. * src/XML2SAXMetalinkProcessor.{h, cc}
  7998. * test/XML2SAXMetalinkProcessorTest.cc
  7999. * src/MetalinkParserController.{h, cc}
  8000. * test/MetalinkParserControllerTest.cc
  8001. * src/MetalinkParserState.h: Also added 16 subclasses.
  8002. * src/main.cc
  8003. * src/Metalink2RequestGroup.cc
  8004. * src/MetalinkHelper.cc
  8005. * src/MetalinkEntry.cc
  8006. * src/ChunkChecksum.h
  8007. Rewritten Base64 class for better performance.
  8008. * src/Base64.{h, cc}
  8009. * test/Base64Test.cc
  8010. * src/HttpRequest.cc
  8011. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8012. Fixed the bug#1841757: aria2 will connect to server to only get
  8013. file size.
  8014. * src/StreamFileAllocationEntry.cc
  8015. * src/option_processing.cc
  8016. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8017. downloads.
  8018. * src/FtpNegotiationCommand.cc
  8019. Suppressed wrong message when finding PreDownloadHandler
  8020. * src/RequestGroup.cc
  8021. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8022. Updated usage
  8023. * src/version_usage.cc
  8024. Updated man page
  8025. * doc/aria2c.1.txt
  8026. * doc/aria2c.1
  8027. Updated po files
  8028. * po/aria2c.pot
  8029. * po/*.po
  8030. * po/*.gmo
  8031. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8032. Eliminated g++-4.2 warning
  8033. * src/DownloadHandlerConstants.{h, cc}
  8034. * src/Util.cc
  8035. * test/MetaFileUtilTest.cc
  8036. * test/PStringBuildVisitorTest.cc
  8037. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8038. * src/RequestGroup.cc
  8039. * src/BtCheckIntegrityEntry.cc
  8040. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8041. Fixed a2io.h
  8042. * src/a2io.h
  8043. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8044. Added direct I/O support. The current implementation uses O_DIRECT,
  8045. which is not posix standard and is tested on linux 2.6.21.
  8046. Currently only file allocation uses direct I/O.
  8047. * src/SingleFileAllocationIterator.{h, cc}
  8048. * test/SingleFileAllocationIteratorTest.cc
  8049. * src/MultiFileAllocationIterator.{h, cc}
  8050. * test/MultiFileAllocationIteratorTest.cc
  8051. * src/BinaryStream.h
  8052. * src/DiskWriter.h
  8053. * src/AbstractDiskWriter.{h, cc}
  8054. * src/ByteArrayDiskWriter.h
  8055. * src/DiskAdaptor.h
  8056. * src/AbstractSingleDiskAdaptor.{h, cc}
  8057. * src/MultiDiskAdaptor.{h, cc}
  8058. * src/FileAllocationEntry.cc
  8059. * src/Util.{h, cc}
  8060. * src/OptionHandlerFactory.cc
  8061. * src/prefs.h
  8062. * src/version_usage.cc
  8063. * src/option_processing.cc
  8064. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8065. handleException.
  8066. * src/MultiFileAllocationIterator.cc
  8067. Added EINTR handling
  8068. * src/SocketCore.cc
  8069. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8070. Updated usage
  8071. * src/version_usage.cc
  8072. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Applied Ross's patch for MinGW port.
  8074. * src/DownloadEngine.h
  8075. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. Set Content-Type to SingleFileDownloadContext when http response is
  8077. received.
  8078. * src/HttpResponseCommand.cc
  8079. * src/HttpResponse.{h, cc}
  8080. * test/HttpResponseTest.cc
  8081. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. Rewritten to add content-type support.
  8083. * src/DownloadHandler.{h, cc}
  8084. * src/BtPostDownloadHandler.{h, cc}
  8085. * test/BtPostDownloadHandlerTest.cc
  8086. * src/MetalinkPostDownloadHandler.{h, cc}
  8087. * test/MetalinkPostDownloadHandlerTest.cc
  8088. * src/PostDownloadHandler.{h, cc}
  8089. * src/DownloadHandlerConstants.{h, cc}
  8090. * src/RequestGroup.cc
  8091. * src/HttpResponseCommand.cc
  8092. * src/FtpNegotiationCommand.cc
  8093. * src/SingleFileDownloadContext.{h, cc}
  8094. * src/RequestGroup.h
  8095. * src/RequestGroupCriteria.h
  8096. * src/ContentTypeRequestGroupCriteria.h
  8097. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8098. If it is give, metalink/torrent file is not written to the disk, but
  8099. just is kept in memory. Parsing is occurred on memory.
  8100. * src/MetalinkHelper.{h, cc}
  8101. * src/MetalinkProcessor.h
  8102. * src/Xml2MetalinkProcessor.{h, cc}
  8103. * test/Xml2MetalinkProcessorTest.cc
  8104. * src/DownloadHandlerFactory.{h, cc}
  8105. * test/DownloadHandlerFactoryTest.cc
  8106. * src/PreDownloadHandler.{h, cc}
  8107. * src/OptionHandlerFactory.cc
  8108. * src/DefaultBtContext.{h, cc}
  8109. * test/DefaultBtContextTest.cc
  8110. * src/version_usage.cc
  8111. * src/Metalink2RequestGroup.{h, cc}
  8112. * src/RequestGroup.{h, cc}
  8113. * src/a2functional.h
  8114. * test/a2functionalTest.cc
  8115. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8116. * src/OptionHandlerImpl.h
  8117. * src/prefs.h
  8118. * src/Util.{h, cc}
  8119. * test/UtilTest.cc
  8120. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8121. memory usage.
  8122. * src/RequestGroupMan.{h, cc}
  8123. * src/DownloadEngine.cc
  8124. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8125. WeakHandle to SharedHandle because WeakHandle could be null.
  8126. * src/RequestGroup.{h, cc}
  8127. * src/DownloadEngineFactory.cc
  8128. * src/DownloadResult.h
  8129. Set totalLength after download finished
  8130. * src/UnknownLengthPieceStorage.{h, cc}
  8131. Keep torrent file specified in metalink in memory.
  8132. * src/Metalink2RequestGroup.cc
  8133. * src/BtDependency.cc
  8134. * src/TrueRequestGroupCriteria.h
  8135. Fixed the bug: seekg is used where seekp should be used.
  8136. * src/ByteArrayDiskWriter.cc
  8137. * test/ByteArraydiskWriterTest.cc
  8138. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8139. Fixed syntax error
  8140. * test/SequenceTest.cc
  8141. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8142. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8143. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8144. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8145. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8146. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8147. Added the check to see whether ares_host_callback accepts timeouts
  8148. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8149. * src/NameResolver.{h, cc}
  8150. * m4/libcares.m4
  8151. * configure.ac: Set C++ for language choice.
  8152. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Fixed: compilation fails without c-ares/ares
  8154. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8155. Generate http/ftp commands only when download is incomplete.
  8156. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8157. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8158. Corrected typo. Examples are removed since they are available in man
  8159. page.
  8160. * src/version_usage.cc
  8161. Updated man page.
  8162. * doc/aria2c.1
  8163. * doc/aria2c.1.txt
  8164. * doc/makeman: Commented out sed command.
  8165. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8166. Throw DlAbortEx when a remote file is not found.
  8167. * src/HttpResponse.cc
  8168. * src/FtpNegotiationCommand.cc
  8169. * src/message.h
  8170. Overwrite an existing file if --allow-overwrite=true is given.
  8171. * src/RequestGroup.cc
  8172. Removed unused functions
  8173. * src/AbstractCommand.h
  8174. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8175. Removed 'extern' from 'extern typedef ...' in src/*.h
  8176. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8177. Updated usage
  8178. * src/version_usage.cc
  8179. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8180. Trim announce URL
  8181. * src/DefaultBtContext.cc
  8182. * test/ShaVisitorTest.cc
  8183. Trim argument s. Give trimed s to exception constructor.
  8184. * src/Util.cc (parseInt)(parseLLInt)
  8185. * test/UtilTest.cc
  8186. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8187. Set precision back to 1.
  8188. * src/ConsoleStatCalc.cc (calculateStat)
  8189. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8190. Replaced strtol with Util::parseInt
  8191. * src/ChunkedEncoding.cc
  8192. * src/HttpConnection.cc
  8193. * src/CookieBoxFactory.cc
  8194. * src/ParameterizedStringParser.cc
  8195. * src/Util.cc
  8196. * test/UtilTest.cc
  8197. * test/OptionHandlerTest.cc
  8198. * src/Request.cc
  8199. Throw exception when empty string is given. The message for exception
  8200. changed.
  8201. * src/Util.cc (parseInt)(parseLLInt)
  8202. * src/message.h
  8203. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8205. set to 1.
  8206. * src/ConsoleStatCalc.cc (calculateStat)
  8207. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Preallocate non-requested file which is adjacent forward to requested
  8209. file('requested' files means the files given in --select-file option)
  8210. if they share a same piece.
  8211. This fixes long pause in the file system which doesn't support sparse
  8212. files like FAT32 while downloading.
  8213. * src/MultiFileAllocationIterator.{h, cc}
  8214. * test/MultiFileAllocationIteratorTest.cc
  8215. * src/FileEntry.{h, cc}
  8216. Removed unused _option.
  8217. * src/MultiDiskAdaptor.h
  8218. * test/MultiDiskAdaptorTest.cc
  8219. * src/DefaultPieceStorage.cc
  8220. Set the default value of --seed-ratio to 1.0.
  8221. If 0.0 is given, then seeding continues regardless of share ratio.
  8222. * src/version_usage.cc
  8223. * src/option_processing.cc
  8224. * src/BtSetup.cc
  8225. * doc/aria2c.1.txt
  8226. * doc/aria2c.1
  8227. Fixed: Selective download is not working in BitTorrent
  8228. * src/RequestGroup.cc
  8229. Introduced Sequence class. Use this instead of Util::unfoldRange()
  8230. * src/PieceStorage.h
  8231. * test/MockPieceStorage.h
  8232. * src/UnknownLengthPieceStorage.h
  8233. * src/DefaultPieceStorage.{h, cc}
  8234. * src/Metalink2RequestGroup.cc
  8235. * src/RequestGroup.cc
  8236. * src/Sequence.h
  8237. * test/SequenceTest.cc
  8238. * src/IntSequence.h
  8239. * src/message.h
  8240. * src/Util.{h, cc}
  8241. * test/UtilTest.cc
  8242. Added new function 'parse' to catch exception thrown by subclass's
  8243. parseArg
  8244. * src/OptionHandler.h
  8245. * src/OptionParser.cc
  8246. * src/NameMatchOptionHandler.h
  8247. * src/OptionHandlerImpl.h
  8248. * test/OptionHandlerTest.cc
  8249. Added IntegerRangeOptionHandler. Used for --listen-port and
  8250. --select-file. Now --listen-port accepts range of port.
  8251. * src/OptionHandlerFactory.cc
  8252. * src/version_usage.cc
  8253. * src/OptionHandlerImpl.h
  8254. * src/option_processing.cc
  8255. * src/BtSetup.cc
  8256. * src/PeerListenCommand.{h, cc}
  8257. * doc/aria2c.1.txt
  8258. * doc/aria2c.1
  8259. Implemented operator< for Exception class to provide easy way to print
  8260. exception stack trace.
  8261. * src/Exception.{h, cc}
  8262. * src/main.cc
  8263. * src/option_processing.cc
  8264. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8265. * src/version_usage.cc
  8266. (showVersion): Reworked.
  8267. (showUsage): Added examples.
  8268. Removed Hint for total length and file name.
  8269. * src/Metalink2RequestGroup.cc
  8270. * src/RequestGroup.{h, cc}
  8271. * src/HttpResponseCommand.cc
  8272. * src/FtpNegotiationCommand.cc
  8273. Now --follow-torrent and --follow-metalink option work properly.
  8274. * src/RequestGroup.cc
  8275. Updated man page
  8276. * doc/aria2c.1.txt
  8277. * doc/aria2c.1
  8278. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8279. Removed.
  8280. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  8281. Use Segment::operator==()
  8282. * src/HttpConnection.cc
  8283. * src/Segment.h
  8284. Updated usage
  8285. * src/version_usage.cc
  8286. Added EINTR treatment.
  8287. * src/SocketCore.cc
  8288. * src/AbstractDiskWriter.cc
  8289. Rewritten.
  8290. * src/Util.cc (rangedFileCopy)
  8291. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Fixed typo.
  8293. * src/version_usage.cc
  8294. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Implemented. Now -c option works fine.
  8296. * src/DefaultPieceStorage.cc (markPiecesDone)
  8297. * test/DefaultPieceStorageTest.cc
  8298. Removed.
  8299. * src/SegmentMan.{h, cc}
  8300. (markAllPiecesDone)
  8301. (markPieceDone)
  8302. Synchronized po files with
  8303. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  8304. * src/fr.po
  8305. * src/ru.po
  8306. * src/de.po
  8307. * src/ja.po
  8308. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8309. Added ifdef and some modifications to compile without BitTorrent,
  8310. Metalink, MessageDigest
  8311. support.
  8312. * src/PieceHashCheckIntegrityEntry.cc
  8313. * src/MetalinkEntry.h
  8314. * src/version_usage.cc
  8315. * src/main.cc
  8316. * src/DownloadEngine.{h, cc}
  8317. * src/Metalink2RequestGroup.cc
  8318. * src/Peer.cc
  8319. * src/RequestGroup.cc
  8320. * src/MetalinkHelper.cc
  8321. * test/DefaultPieceStorageTest.cc
  8322. * test/MetalinkPostDownloadHandlerTest.cc
  8323. * test/Metalink2RequestGroupTest.cc
  8324. Hide TOTAL SPD when all downloads complete.
  8325. * src/ConsoleStatCalc.cc
  8326. Log target system information.
  8327. * src/main.cc
  8328. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8329. Now --metalink-location accepts a comma-deliminated list of locations.
  8330. * src/MetalinkEntry.{h, cc}
  8331. * test/MetalinkEntryTest.cc
  8332. * src/version_usage.cc
  8333. * src/Metalink2RequestGroup.cc
  8334. * src/Xml2MetalinkProcessor.cc
  8335. * test/Xml2MetalinkProcessorTest.cc
  8336. * doc/aria2c.1.txt
  8337. * doc/aria2c.1
  8338. * src/Util.cc (toUpper)(toLower): Rewritten.
  8339. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8340. Added the ability to detect duplicate download entry which is about to
  8341. download the same file other RequestGroup is downloading.
  8342. * src/RequestGroup.cc
  8343. * src/HttpResponseCommand.cc
  8344. * src/FtpNegotiationCommand.cc
  8345. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8346. Recalculates download progress when loading a control file,
  8347. if the piece length of DownloadContext is different from the one saved
  8348. in the control file. Currently in-flight pieces are ignored.
  8349. * src/DefaultBtProgressInfoFile.cc
  8350. * test/DefaultBtProgressInfoFileTest.cc
  8351. * src/Util.{h, cc}
  8352. * test/UtilTest.cc
  8353. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8354. Do not rotate tiers in announce-list.
  8355. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  8356. AnnounceList::allTiersFailed() used instead to detect whether all
  8357. tiers are tried and failed.
  8358. * test/DefaultBtAnnounceTest.cc
  8359. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  8360. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  8361. * test/AnnounceListTest.cc
  8362. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  8363. clause. Catch RecoverableException instead of DlRetryEx instead.
  8364. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8365. Implemented checksum validation feature(1 checksum for each file)
  8366. The validation takes place after the download.
  8367. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  8368. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  8369. * src/CheckIntegrityCommand.cc: Changed log message.
  8370. * src/Metalink2RequestGroup.cc: Set checksum to
  8371. SingleFileDownloadContext.
  8372. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  8373. PieceHashCheckIntegrity class.
  8374. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  8375. PieceHashCheckIntegrity class.
  8376. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  8377. * src/IteratableValidator.h: New class.
  8378. * src/message.h
  8379. * src/CheckIntegrityEntry.{h, cc}
  8380. * src/IteratableChunkChecksumValidator.{h, cc}
  8381. * src/SingleFileDownloadContext.h
  8382. * src/DownloadCommand.cc
  8383. --allow-overwrite=true is no longer needed to check file integrity
  8384. before download in BitTorrent download.
  8385. * src/RequestGroup.cc (getInitialCommand)
  8386. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  8387. throws exception.
  8388. * src/RequestGroupMan.cc (getInitialCommands)
  8389. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8390. urlencode the given url inside Request::parseUrl(...)
  8391. * src/Request.{h, cc}
  8392. * src/Util.{h, cc}
  8393. * test/RequestTest.cc
  8394. Removed #!metalink3! notation support because it is deleted from
  8395. the metalink specification.
  8396. * src/Request.{h, cc}
  8397. * test/RequestTest.cc
  8398. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. Don't connect server before checking file integrity at startup, if
  8400. filesize and output file path are known.
  8401. * src/AbstractCommand.cc
  8402. * src/StreamFileAllocationEntry.cc
  8403. * src/Metalink2RequestGroup.cc
  8404. * src/RequestGroup.{h, cc}
  8405. * src/HttpResponseCommand.cc
  8406. * src/FtpNegotiationCommand.cc
  8407. Added DownloadFailureException. If it is thrown, RequestGroup should
  8408. halt.
  8409. * src/AbstractCommand.cc
  8410. * src/DownloadFailureException.h
  8411. * src/RequestGroup.cc
  8412. Catch RecoverableException, instead of DlAbortEx.
  8413. * src/RequestGroupMan.cc
  8414. * src/FillRequestGroupCommand.cc
  8415. * src/MetaFileUtil.cc
  8416. * src/IteratableChunkChecksumValidator.cc
  8417. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  8418. getGID())
  8419. * src/CheckIntegrityCommand.cc
  8420. * src/message.h
  8421. Print gid instead of idx.
  8422. * src/RequestGroupMan.cc
  8423. Removed exception throwers declaration.
  8424. * src/DirectDiskAdaptor.{h, cc}
  8425. * src/SocketCore.{h, cc}
  8426. * src/MultiDiskAdaptor.{h, cc}
  8427. * src/HttpConnection.{h, cc}
  8428. * src/HttpResponse.{h, cc}
  8429. * src/DiskAdaptor.{h, cc}
  8430. * src/CopyDiskAdaptor.{h, cc}
  8431. * src/MultiDiskAdaptor.{h, cc}
  8432. * src/HttpHeaderProcessor.{h, cc}
  8433. * src/AbstractSingleDiskAdaptor.{h, cc}
  8434. * src/Util.{h, cc}
  8435. * test/UtilTest.cc
  8436. * src/DefaultDiskWriter.{h, cc}
  8437. * src/FtpConnection.{h, cc}
  8438. * src/AbstractDiskWriter.{h, cc}
  8439. Removed duplicate code.
  8440. * src/StreamCheckIntegrityEntry.cc
  8441. Removed unnecessary include.
  8442. * src/DiskWriter.h
  8443. Included Exception.h
  8444. * src/option_processing.cc
  8445. Included 2 files and added doc
  8446. * src/TrackerWatcherCommand.cc
  8447. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  8448. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8449. Changed CheckIntegrityEntry interface so that it can define
  8450. the action when all the chunk checksums are valid.
  8451. * src/CheckIntegrityEntry.h
  8452. * src/StreamCheckIntegrityEntry.{h, cc}
  8453. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  8454. are valid, then aira2 goes to seeding mode. Sometimes it is better
  8455. to exit rather than doing seeding. So, it would be good to toggle this
  8456. behavior.
  8457. * src/CheckIntegrityCommand.cc
  8458. * src/AbstractCommand.cc
  8459. * src/RequestGroup.cc
  8460. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. Reflect the download length of in-flight pieces.
  8462. It makes the download length readout more precise.
  8463. * src/DefaultPieceStorage.{h, cc}
  8464. * test/DefaultPieceStorageTest.cc
  8465. * src/a2functional.h
  8466. * test/a2functionalTest.cc
  8467. Lower CPU load when --max-download-limit is used.
  8468. There is up and down in speed indicator when enabling
  8469. http-pipelining but a download goes well. I think the problem is that
  8470. because http-pipelining is enabled, DownloadCommand is created for
  8471. each segment and in its constructor, PeerStat::downloadStart() is
  8472. called. In PeerStat::downloadStart(), speed calculation object is
  8473. reseted, which makes download speed zero.
  8474. * src/DownloadCommand.cc
  8475. Rewritten using accumulate.
  8476. * src/RequestGroupMan.cc (calculateStat)
  8477. Code clearnup.
  8478. * src/FtpNegotiationCommand.cc
  8479. * src/HttpResponseCommand.cc
  8480. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8481. Fixed: Can not resume: aria2 reports download already finished.
  8482. * src/AbstractCommand.{h, cc}
  8483. * src/HttpResponseCommand.cc
  8484. * src/FtpNegotiateCommand.cc
  8485. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8486. Now a file is stored in the directory specified in .metalnk file
  8487. (file[@name]).
  8488. * src/Metalink2RequestGroup.cc
  8489. Create the directory structure when opening the file if it doesn't
  8490. exist.
  8491. * src/AbstractDiskWriter.cc
  8492. * src/Util.{h, cc}
  8493. * src/File.h
  8494. * test/UtilTest.cc
  8495. Removed file name comparison
  8496. * src/Metalink2RequestGroup.cc
  8497. * src/HttpResponseCommand.cc
  8498. Rewritten using Util::mkdirs()
  8499. * src/FileEntry.cc (setupDir)
  8500. * test/FileEntryTest.cc
  8501. Updated doc
  8502. * src/SingleFileDownloadContext.h
  8503. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8504. Now SleepCommand dispatches nextCommand when halt is requested.
  8505. It avoids a possible long wait after hitting CTRL-C.
  8506. * src/SleepCommand.{h, cc}
  8507. * src/RequestGroupAware.{h, cc}
  8508. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8509. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8510. to open listen port, then remove the port number from the tracker
  8511. request.
  8512. * src/DefaultBtAnnounce.cc
  8513. * test/DefaultBtAnnounceTest.cc
  8514. * test/MockPieceStorage.h
  8515. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8516. them more testable.
  8517. * src/DefaultBtAnnounce.{h, cc}
  8518. * src/DefaultBtContext.{h, cc}
  8519. * src/Util.{h, cc}
  8520. * test/DefaultBtAnnounceTest.cc
  8521. * test/DefaultBtContextTest.cc
  8522. * test/UtilTest.cc
  8523. Added 'B' to upload bytes readout.
  8524. * src/ConsoleStatCalc.cc
  8525. Now the listen port for BitTorrent download is opened when it is
  8526. needed.
  8527. * src/DownloadEngineFactory.cc
  8528. * src/BtSetup.{h, cc}
  8529. * src/PeerListenCommand.{h, cc}
  8530. Now an exception thrown while parsing tracker response is now logged.
  8531. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8532. called, which means no retry is made in this case, assuming a tracker
  8533. has a problem.
  8534. * src/TrackerWatcherCommand.cc
  8535. Fixed: downloading a file whose length is unkown fails.
  8536. * src/DownloadCommand.cc
  8537. Simplified prepareForNextSegment()
  8538. * src/DownloadCommand.cc
  8539. Updated
  8540. * po/POTFILES.in
  8541. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8542. Re-implemented a file listing for Metalink, which was dropped while
  8543. http/ftp/torrent integration was being implemented.
  8544. * src/MetalinkHelper.{h, cc}: New class.
  8545. * test/MetalinkHelperTest.cc
  8546. * src/main.cc
  8547. * src/Metalink2RequestGroup.cc
  8548. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Added the ability to display the detailed torrent file information.
  8550. Now -S option gives not only a file listing, but also total download
  8551. length, info hash, announce URI, piece length, the number of pieces,
  8552. and mode(single or multi-torrent).
  8553. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8554. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8555. KiB)
  8556. * test/UtilTest.cc
  8557. * src/main.cc
  8558. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8559. Added ftp://USER:PASSWD@Servername automatic parsing.
  8560. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8561. _password. Recognize username and password in URI.
  8562. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8563. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8564. * src/RequestFactory.{h, cc}: Removed.
  8565. * src/AuthConfigFactory.{h, cc}: New class.
  8566. * src/FtpConnection.cc: Use AuthConfigFactory.
  8567. * src/HttpRequest.cc: Use AuthConfigFactory.
  8568. * test/HttpRequestTest.cc: Updated.
  8569. * test/RequestTest.cc: Updated.
  8570. * test/AuthConfigFactoryTest.cc: New class.
  8571. * test/RequestFactoryTest.cc: Removed.
  8572. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8573. Use RequestGroup::allDownloadFinished() to decide whether the control
  8574. file should be removed or saved.
  8575. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8576. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8577. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8578. Use File::renameTo()
  8579. * src/DefaultBtProgressInfoFile.cc
  8580. Added --no-file-allocation-limit command-line option.
  8581. * src/version_usage.cc
  8582. * src/option_processing.cc
  8583. * src/OptionHandlerFactory.cc
  8584. * src/RequestGroup.{h, cc}
  8585. * src/BtCheckIntegrityEntry.cc
  8586. * src/StreamCheckIntegrityEntry.cc
  8587. * src/prefs.h
  8588. * doc/aria2c.1.txt
  8589. * doc/aria2c.1
  8590. Now prealloc is the default value for --file-allocation option.
  8591. * src/version_usage.cc
  8592. * src/option_processing.cc
  8593. * doc/aria2c.1.txt
  8594. * doc/aria2c.1
  8595. Don't URL-encode user-agent.
  8596. * src/HttpRequest.cc
  8597. Updated translations
  8598. * po/LINGUAS: Added nl for Dutch translation.
  8599. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8600. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8601. * po/POTFILES.in: Updated.
  8602. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8603. Added the ability to recognize url-list in a torrent file.
  8604. The retrieved URLs are attached to the corresponding FileEntry.
  8605. * src/DefaultBtContext.{h, cc}
  8606. * src/FileEntry.{h, cc}
  8607. * test/DefaultBtContextTest.cc
  8608. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8610. after the download finishes.
  8611. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8612. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8613. the data smaller than block length.
  8614. A block length can be specified by constructor's argument.
  8615. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8616. Get a missing piece in the range of given FileEntry. This function is
  8617. not used in the program yet.
  8618. * src/Util.h: Added some macros.
  8619. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8620. Added HTTP/1.1 keep alive and pipelining support.
  8621. See --enable-http-keep-alive and --enable-http-pipelining option.
  8622. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8623. Segment.
  8624. * src/HttpDownloadCommand.{h, cc}
  8625. * src/OptionHandlerFactory.cc
  8626. * src/HttpConnection.{h, cc}
  8627. * src/version_usage.cc
  8628. * src/HttpInitiateConnectionCommand.cc
  8629. * src/FtpInitiateConnectionCommand.cc
  8630. * src/Segment.h
  8631. * src/HttpRequestCommand.{h, cc}
  8632. * src/option_processing.cc
  8633. * src/prefs.h
  8634. * src/HttpResponseCommand.cc
  8635. * src/SegmentMan.{h, cc}
  8636. * src/FtpNegotiateCommand.cc
  8637. * src/HttpProxyResponseCommand.cc
  8638. * src/Request.cc
  8639. * src/HttpRequest.cc
  8640. * src/DownloadCommand.cc
  8641. * test/HttpRequestTest.cc
  8642. * test/RequestTest.cc
  8643. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8645. finished.
  8646. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8647. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8648. catching it inside the method.
  8649. When no file entry is found in a metalink without querying user
  8650. preferences, throw the exception with the error message that suggests
  8651. metalink file is probably broken.
  8652. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8653. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8654. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8655. processed.
  8656. * src/RequestGroupMan.cc (removeStoppedGroup)
  8657. Added debug message.
  8658. * src/BtPostDownloadHandler.cc
  8659. * src/MetalinkPostDownloadHandler.cc
  8660. * src/PostDownloadHandler.{h, cc}
  8661. * src/RequestGroup.cc
  8662. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8663. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8664. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8665. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8666. stops and there are any unfinished or in-progress downloads.
  8667. Added the legend of "stat".
  8668. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8669. Throw exception when chunck checksum verification fails.
  8670. * src/DownloadCommand.cc (validatePieceHash): New function.
  8671. * src/PiecedSegment.{h, cc} (clear): New function.
  8672. * src/GrowSegment.{h, cc} (clear): New function.
  8673. * src/Segment.h (clear): New function.
  8674. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8675. * test/SegmentTest.cc
  8676. * test/GrowSegmentTest.cc
  8677. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8678. Do not send referer when redirected.
  8679. * src/Request.cc (redirectUrl)
  8680. * test/RequestTest.cc
  8681. * test/HttpRequestTest.cc
  8682. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Implemented BitTorrent/http/ftp integrated download.
  8684. I've rewritten lots of files and now some headers have forward
  8685. class declarations to reduce compile time.
  8686. The implementation is extremely alpha stage, I recommend to use this
  8687. for testing purpose only.
  8688. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8689. Fixed the compilation error on 64bit platform.
  8690. * test/HttpHeaderProcessorTest.cc
  8691. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8692. Merged Ross's patch that fixes compilation problem in MinGW
  8693. * test/DefaultBtProgressInfoFileTest.cc
  8694. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Updated fr.po by sebone
  8696. * po/fr.po
  8697. Updated man page.
  8698. * doc/aria2c.1.txt
  8699. * Release 0.11.3
  8700. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8701. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8702. failure in Metalink.
  8703. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8704. Automatically save *.aria2 control file of http/ftp download in every
  8705. 60 seconds.
  8706. * src/AutoSaveCommand.{h, cc}: New class.
  8707. * src/TimeBasedCommand.{h, cc}: New class.
  8708. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8709. Disable parameterized URI support by default. Added -P option to
  8710. enable the feature.
  8711. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8712. * src/OptionHandlerFactory.cc
  8713. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8714. Updated Japanese translation.
  8715. * po/ja.po
  8716. Updated man page.
  8717. * doc/aria2c.1.txt
  8718. * Release 0.11.3-rc
  8719. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8720. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8721. it is successful, then renamed to *.aria2.
  8722. This prevents *.aria2 file from being truncated or corrupted when
  8723. file system becomes out of space.
  8724. * src/DefaultBtProgressInfoFile.cc (save)
  8725. * src/SegmentMan.cc (save)
  8726. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8727. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8728. Reduced the fragmentation of bitfield in http/ftp download.
  8729. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8730. * test/BitfieldManTest.cc
  8731. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8732. Added the ability to disable segmented download in .metalink.
  8733. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8734. 'url' tag.
  8735. * src/MetalinkEntry.{h, cc}
  8736. * src/RequestResource.{h, cc}
  8737. * src/MetalinkRequestInfo.cc
  8738. * src/Xml2MetalinkProcessor.cc
  8739. * test/Xml2MetalinkProcessorTest.cc
  8740. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8741. Added parameterized URI support.
  8742. * src/main.cc: -Z option added.
  8743. * src/OptionHandlerFactory.cc
  8744. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8745. * src/PStringDatum.h: New class.
  8746. * src/PStringSegment.{h,cc}: New class.
  8747. * src/PStringNumLoop.h: New class.
  8748. * src/PStringSelect.h: New class.
  8749. * src/NumberDecorator.h: New class.
  8750. * src/FixedWidthNumberDecorator.h: New class.
  8751. * src/AlphaNumberDecorator.h: New class.
  8752. * src/PStringVisitor.h: New class.
  8753. * src/PStringBuildVisitor.{h,cc}: New class.
  8754. * src/ParameterizedStringParser.{h,cc}: New class.
  8755. * src/Util.{h,cc}
  8756. (isNumber): New function.
  8757. (isLowercase): New function.
  8758. (isUppercase): New function.
  8759. (alphaToNum): New function.
  8760. * test/ParameterizedStringParserTest.cc: New class.
  8761. * test/AlphaNumberDecoratorTest.cc: New class.
  8762. * test/PStringBuildVisitorTest.cc: New class.
  8763. * test/UtilTest.cc
  8764. (testIsNumber): New function.
  8765. (testIsLowercase): New function.
  8766. (testIsUppercase): New function.
  8767. (testAlphaToNum): New function.
  8768. Added '\n' after the error message
  8769. * src/RequestInfo.h (printDownloadAbortMessage)
  8770. Added auto file renaming feature in http(s)/ftp download.
  8771. * src/main.cc: Added --auto-file-renaming command-line option.
  8772. * src/OptionHandlerFactory.cc
  8773. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8774. * src/RequestGroup.{h, cc}
  8775. (shouldCancelDownloadForSafety): Rewritten
  8776. (tryAutoFileRenaming): New function.
  8777. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8778. * src/HttpResponseCommand.cc
  8779. (executeInternal): Removed the call to RequestGroupMan::
  8780. isSameFileBeingDownloaded()
  8781. * src/FtpNegotiateCommand.cc
  8782. (recvSize): Removed the call to RequestGroupMan::
  8783. isSameFileBeingDownloaded()
  8784. * test/RequestGroupTest.cc: New class.
  8785. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8786. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8787. IO.
  8788. * src/DefaultBtProgressInfoFile.cc
  8789. * src/MetaFileUtil.cc
  8790. * src/SimpleLogger.cc
  8791. * src/SegmentMan.cc
  8792. * src/Util.cc
  8793. * src/Platform.cc
  8794. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8795. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8796. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8797. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8798. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8799. Fixed the bug that prevents file allocation is not done when
  8800. dowloading multi-torrent file.
  8801. * src/AbstractDiskWriter.cc (openFile)
  8802. Increase the maximum number of -j option from 15 to 45.
  8803. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8804. Added fr.po, thanks to Charles Landemaine.
  8805. * po/fr.po
  8806. * po/LINGUAS
  8807. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8808. gcc 3.4.4 support:
  8809. * src/DefaultBtContext.cc: int32_t -> int
  8810. * src/main.cc: int -> int32_t, int32_t -> int
  8811. * src/messageDigest.h: uint32_t -> unsigned int
  8812. * src/NameResolver.h: int32_t -> int
  8813. * src/PeerConnection.cc: int -> int32_t
  8814. * src/SpeedCalc.cc: int32_t -> int
  8815. * src/TrackerUpdateCommand.h: int -> int32_t
  8816. * src/Util.cc: int32_t -> int
  8817. * src/Util.h: int32_t -> int
  8818. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8819. * test/AnnounceListTest.cc: int -> int32_t
  8820. * test/ChunkedEncodingTest.cc: int -> int32_t
  8821. * test/DataTest.cc: int -> int32_t
  8822. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8823. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8824. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8825. * test/FeatureConfigTest.cc: int -> int32_t
  8826. * test/MetalinkEntryTest.cc: int -> int32_t
  8827. * test/MockBtRequestFactory.h: int -> int32_t
  8828. * test/MockPieceStorage.h: int -> int32_t
  8829. * test/OptionTest.cc: int -> int32_t
  8830. * test/RequestTest.cc: int -> int32_t
  8831. * test/SegmentManTest.cc: int -> int32_t
  8832. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8833. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8834. Move sleep functions to Util class:
  8835. * src/Util.cc
  8836. (sleep): New function.
  8837. (usleep): New function.
  8838. * src/DownloadCommand.cc: sleep -> Util::sleep
  8839. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8840. MinGW build enhancements. The following files are added:
  8841. * src/timegm.{c,h}
  8842. Changes to support the above new files:
  8843. * configure.ac
  8844. * src/Makefile.am
  8845. * src/a2time.h
  8846. * src/Util.cc:
  8847. * src/strptime.c: Added support for %Z option.
  8848. Fixed MinGW non-blocking bug.
  8849. * src/SocketCore.cc
  8850. * src/HttpRequestCommand.cc
  8851. Miscellenous build fixes/enhancements.
  8852. * configure.ac: Added summary report.
  8853. * src/Platform.h: Tweaked #include's.
  8854. * src/a2netcompat.h: Tweaked #include's.
  8855. * src/strptime.h: Tweaked #include's.
  8856. * src/gai_strerror.c: Tweaked #include's.
  8857. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8858. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8859. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8860. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8861. Increased the initial connection size in BitTorrent download to 40.
  8862. * src/BtRuntime.h
  8863. Added the usage message of --peer-id-prefix option.
  8864. * src/main.cc
  8865. * Release 0.11.2
  8866. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8867. MessageDigestHelper is introduced in order to simplify the use
  8868. of message digest. Removed repeated code.
  8869. The message digest algorithm is now specified by string, like "sha1",
  8870. "md5".
  8871. * src/messageDigest.{h, cc}
  8872. * src/MessageDigestHelper.{h, cc}: New class.
  8873. * src/DefaultPieceStorage.cc
  8874. * src/DefaultBtContext.{h, cc}
  8875. (computeFastSet): New function.
  8876. (setInfoHash): Added for unit testing.
  8877. (setNumPieces): Added for unit testing.
  8878. * src/DefaultBtInteractive.cc
  8879. * src/BtPieceMessage.cc
  8880. * src/Peer.cc
  8881. * src/Checksum.h
  8882. * src/message.h
  8883. * src/IteratableChecksumValidator.h
  8884. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8885. inside it.
  8886. * src/SegmentMan.{h, cc}
  8887. (checkIntegrity): Removed.
  8888. * src/IteratableChunkChecksumValidator.{h, cc}
  8889. * src/Util.h
  8890. (sha1Sum): Removed.
  8891. (simpleMessageDigest): Removed.
  8892. (fileChecksum): Removed.
  8893. (computeFastSet): Removed.
  8894. * src/ShaVisitor.cc
  8895. * src/ChunkChecksum.h
  8896. * src/DownloadCommand.cc
  8897. Removed messageDigest virtual functions.
  8898. * src/MultiDiskAdaptor.{h, cc}
  8899. * src/DiskAdaptor.h
  8900. * src/ByteArrayDiskWriter.h
  8901. * src/DiskWriter.h
  8902. * src/DiskAdaptorWriter.h
  8903. * src/AbstractSingleDiskAdaptor.{h, cc}
  8904. * src/AbstractDiskWriter.{h, cc}
  8905. Fixed comilation error when message digest is disabled.
  8906. * src/MetalinkEntry.{h, cc}
  8907. * src/MetalinkRequestInfo.cc
  8908. Removed srandom and random.
  8909. * src/SimpleRandomizer.h
  8910. Added size() virtual function to DiskAdaptor
  8911. * src/MultiDiskAdaptor.h
  8912. Fixed the bug that causes that files are not opened correctly in
  8913. multi-file torrent.
  8914. * src/TorrentRequestInfo.cc
  8915. * src/MultiDiskAdaptor.cc
  8916. Added SHA256 support
  8917. * src/messageDigest.cc
  8918. * src/Xml2MetalinkProcessor.cc
  8919. Show supported message digest algorithms
  8920. * src/main.cc
  8921. Updated contact info.
  8922. * src/main.cc
  8923. Applied Ross's patch
  8924. * src/a2netcompat.h
  8925. * src/main.cc
  8926. Fixed the bug that prevents a remote metalink from not being processed
  8927. even if '-o foo.metalink' is specified.
  8928. * src/MetalinkRequestInfo.cc
  8929. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8930. Merged Dan's patch:
  8931. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8932. Use va_copy to avoid core dump on amd64:
  8933. * src/SimpleLogger.cc
  8934. Updated contact info.
  8935. * src/main.cc
  8936. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8937. digest is not available.
  8938. * src/MetalinkEntry.h
  8939. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8940. Make a2netcompat.h include a2io.h to fix compilation error:
  8941. * src/a2netcompat.h
  8942. * src/SocketCore.cc: Removed include of a2io.h
  8943. * src/Util.cc: Removed include of a2io.h
  8944. Gather time related functions to a2time.h:
  8945. * src/a2time.h: New file.
  8946. * src/DefaultPeerStorage.cc
  8947. * src/SimpleLogger.cc
  8948. * src/Util.{h, cc}
  8949. * src/SimpleRandomizer.h
  8950. * src/TimeA2.{h,cc}
  8951. * src/DownloadCommand.cc
  8952. * src/main.cc
  8953. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8954. a2netcompat.h:
  8955. * src/NameResolver.cc
  8956. Fixed compilation error without openssl:
  8957. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8958. Added default block to suppress compiler warnings:
  8959. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8960. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8961. MinGW build enhancements. The following files are added:
  8962. * src/gai_strerror.{c,h}
  8963. * src/gettimeofday.{c,h}
  8964. Changes to support the above new files:
  8965. * configure.ac
  8966. * src/Makefile.am
  8967. * src/a2netcompat.h
  8968. * src/TimeA2.cc
  8969. * src/DefaultPeerStorage.cc
  8970. * src/NameResolver.cc: removed mingw_strerror() function.
  8971. * src/SocketCore.cc: removed mingw_strerror() function.
  8972. Miscellaneous MinGW build fixes.
  8973. * src/a2io.h: Use _lseeki64() instead of lseek()
  8974. * src/common.h
  8975. * src/DefaultFileAllocator.cc
  8976. * src/GlowFileAllocator.cc
  8977. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8978. * src/NameResolver.cc
  8979. (callback): Changed int32_t to int.
  8980. (resolve): Changed int32_t to int.
  8981. * src/Platform.cc
  8982. * src/Platform.h
  8983. * test/MultiDiskWriterTest.cc
  8984. * test/PeerMessageUtilTest.cc
  8985. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8986. Other enhancements and fixes.
  8987. * src/HttpRequestCommand.cc
  8988. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8989. * src/SocketCore.cc:
  8990. (error): New function to abstract errno/WSAGetLastError().
  8991. (errorMsg): New function to abstract errno/WSAGetLastError().
  8992. (initiateSecureConnection): Added more detailed error reporting.
  8993. * src/SocketCore.h: Added private variable blocking, to allow
  8994. proper handling of OpenSSL psuedo-errors.
  8995. * src/message.h
  8996. (EX_SSL_INIT_FAILURE)
  8997. (EX_SSL_IO_ERROR)
  8998. (EX_SSL_PROTOCOL_ERROR)
  8999. (EX_SSL_UNKNOWN_ERROR)
  9000. (EX_SSL_CONNECT_ERROR)
  9001. (EX_SOCKET_BLOCKING)
  9002. (EX_SOCKET_NONBLOCKING)
  9003. (EX_SOCKET_UNKNOWN_ERROR)
  9004. * src/Util.cc
  9005. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9006. reserved name.
  9007. (httpGMT): Fixed typo.
  9008. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9009. Merged Ross's win32 patch(manually)
  9010. In the course of merging, following files are added.
  9011. * src/strptime.{h,c}
  9012. * src/libgen.{h,c}
  9013. * src/inet_aton.{h,c}
  9014. * src/Platform.{h,cc}
  9015. * src/localtime_r.{h,c}
  9016. * src/getaddrinfo.{h,c}
  9017. I've gethered network related things, and put them to following file:
  9018. * src/a2netcompat.h
  9019. Also io related things are put to following file:
  9020. * src/a2io.h
  9021. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9022. * src/message.h
  9023. (MSG_ALLOCATION_COMPLETED)
  9024. (EX_TOO_LARGE_FILE)
  9025. (EX_SIZE_MISMATCH)
  9026. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9027. (EX_INVALID_CHUNK_CHECKSUM)
  9028. (EX_INVALID_RANGE_HEADER)
  9029. * src/FileAllocationCommand.cc
  9030. * src/HttpResponse.cc
  9031. * src/RequestGroup.cc
  9032. * src/MultiDiskAdaptor.cc
  9033. * src/OptionHandlerImpl.h
  9034. * src/HttpResponseCommand.cc
  9035. * src/FtpNegotiateCommand.cc
  9036. * src/IteratableChecksumValidator.cc
  9037. * src/SegmentMan.cc
  9038. * src/ChunkChecksumValidator.cc
  9039. Added Randomizer::getRandomNumber(long int)
  9040. * src/Randomizer.h (getRandomNumber)
  9041. * src/SimpleRandomizer.h (getRandomNumber)
  9042. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9043. * src/Util.cc (randomAlpha): Use this new function.
  9044. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9045. Converted int's to in32_t. long long int's are also converted to
  9046. int64_t
  9047. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9048. Fixed the bug that prevents cookies from being sent to the server
  9049. if the domain of cookie is FQDN and starts with ".".
  9050. * src/Cookie.cc (match)
  9051. To add the ability to change peer id.
  9052. * src/DefaultBtContext.h
  9053. (_peerIdPrefix): New variable
  9054. (setPeerIdPrefix): New function.
  9055. * src/torrentRequestInfo.cc
  9056. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9057. DefaultBtContext.
  9058. * src/main.cc (main): Added peer-id-prefix command-line option.
  9059. The usage message is not added yet.
  9060. * src/DefaultBtContext.cc
  9061. (generatePeerId): Use _peerIdPrefix.
  9062. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9063. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9064. Fixed the bug that prevents filename in content-disposition from
  9065. being retrieved when filename is not quoted.
  9066. * src/Util.cc (getContentDispositionFilename)
  9067. Fixed the bug that causes infinate loop and memory leak when file open
  9068. operation failed.
  9069. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9070. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9071. Fixed the bug that causes segfault when all URIs specified are
  9072. unsupported.
  9073. * src/RequestGroupMan.cc (getInitialCommands)
  9074. Check if RequestGroup::createNextCommand() returns empty list of
  9075. commands.
  9076. * src/RequestGroup.cc (createNextCommand)
  9077. Change log level from info to error so that users can notice that
  9078. an error occurred.
  9079. Fixed the bug that causes segfault when a zero-sized file is
  9080. downloaded.
  9081. * src/BitfieldMan.cc (isAllBitSet)
  9082. Return true if bitfieldLength is 0.
  9083. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9084. * src/main.cc
  9085. (showUsage): Added 3 usage examples for metalink download.
  9086. Replace MetalinkChunkChecksum with ChunkChecksum.
  9087. * src/MetalinkChunkChecksum.h: Removed.
  9088. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9089. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9090. * src/Xml2MetalinkProcessor.cc
  9091. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9092. * src/MetalinkRequestInfo.cc (execute)
  9093. * Release 0.11.1
  9094. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9095. Reads URIs from stdin when "-i -" is specified.
  9096. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9097. * src/UriListParser.h, src/UriListParser.cc: New class.
  9098. * src/StreamUriListParser.h: New class.
  9099. * src/FileUriListParser.h: New class.
  9100. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9101. instead of UriFileListParser.
  9102. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9103. Made console readout more readable.
  9104. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9105. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9106. Fix the bug that causes -s option not to work.
  9107. * src/main.cc (main)
  9108. * src/a2algo.h: New file.
  9109. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9110. Create directory structure specified in metalink file.
  9111. * src/RequestGroup.h, src/RequestGroup.cc
  9112. (initAndOpenFile): Create a directory to store files if it does not
  9113. exist.
  9114. (getDir): New function.
  9115. Added ETA and download speed for an individual file to readout.
  9116. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9117. * src/RequestGroup.h
  9118. (calculateDownloadSpeed): New function.
  9119. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9120. Made -S option work with metalink file and provided selective download
  9121. to metalink.
  9122. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9123. (filename): Removed.
  9124. (file): New variable.
  9125. (size): Removed.
  9126. (operator=): Updated.
  9127. (getPath): New function.
  9128. (getLength): New function.
  9129. (toFileEntry): New function.
  9130. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9131. (execute): Use toStream.
  9132. (showFileEntry): Removed.
  9133. * src/MetalinkRequestInfo.h
  9134. (targetFiles): New variable.
  9135. (setTargetFiles): New variable.
  9136. * src/MetalinkRequestInfo.cc
  9137. (execute): Added the ability to print file information included in
  9138. a metalink file.
  9139. Added selective download mode to metalink.
  9140. * src/main.cc
  9141. (showUsage): Updated to denote that -S and --select-file options are
  9142. applicable to metalink.
  9143. * src/FileEntry.h
  9144. (operator=): New function.
  9145. (getBasename): New function.
  9146. (getDirname): New function.
  9147. * src/Util.h, src/Util.cc
  9148. (toStream): New function.
  9149. * src/Xml2MetalinkProcessor.cc: Updated.
  9150. Made aria2 work with metalink with directory structure.
  9151. * src/File.h, src/File.cc
  9152. (getBasename): New function.
  9153. (getDirname): New function.
  9154. * src/RequestGroup.h, src/RequestGroup.cc
  9155. (_topDir): New variable.
  9156. (setTopDir): New function.
  9157. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9158. Rewrote HTTP header parsing with stringstream.
  9159. * src/HttpConnection.h, src/HttpConnection.cc
  9160. (HttpRequestEntry): New class.
  9161. (headerBuf): Removed.
  9162. (headerBufLength): Removed.
  9163. (outstandingHttpRequests): Now its element type is
  9164. HttpRequestEntryHandle.
  9165. (findEndOfHeader): Removed.
  9166. (receiveResponse): Rewritten.
  9167. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9168. Updated doc for -j option to notice that it should be used with -i
  9169. option.
  9170. * src/main.cc (showUsage)
  9171. Removed unused classes.
  9172. * src/RequestInfo.h
  9173. (FileInfo): Removed.
  9174. (checksum): Removed.
  9175. (fileInfo): Removed.
  9176. (setChecksum): Removed.
  9177. (getChecksum): Removed.
  9178. (getFileInfo): Removed.
  9179. Use ISO units.
  9180. * src/ConsoleDownloadEngine.cc
  9181. * src/TorrentConsoleDownloadEngine.cc
  9182. * src/Util.cc (abbrevSize)
  9183. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Added the default listening ports to the help message.
  9185. * src/main.cc (showUsage)
  9186. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9187. Reduce the number of calls to gettimeofday to lower CPU load.
  9188. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9189. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9190. * src/Peer.h (calculateUploadSpeed): New function.
  9191. (calculateDownloadSpeed): New function.
  9192. * src/DefaultPeerStorage.cc
  9193. (CalculateStat): Added _now variable.
  9194. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9195. and Peer::calculateUploadSpeed(const struct timeval&)
  9196. Drop connection if no request or piece message is exchanged in
  9197. a certain interval.
  9198. * src/DefaultBtInteractive.h
  9199. (btRuntime): New variable.
  9200. (inactiveCheckPoint): New variable.
  9201. (checkActiveInteraction): New function.
  9202. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9203. request or piece message is received.
  9204. (checkActiveInteraction): New function.
  9205. (doInteractionProcessing): Call checkActiveInteraction.
  9206. Fixed the bug that causes remote Metalink and Torrent files are not
  9207. processed.
  9208. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  9209. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9210. Changed format of log file.
  9211. * src/SimpleLogger.cc
  9212. * Release 0.11.0
  9213. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9214. * src/AbstractCommand.cc
  9215. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  9216. MSG_MAX_TRY from error to info.
  9217. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  9218. * src/message.h
  9219. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  9220. (MSG_DOWNLOAD_ABORTED): Added %s.
  9221. (MSG_RESTARTING_DOWNLOAD): Added %s.
  9222. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  9223. * src/PeerAbstractCommand.cc
  9224. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  9225. * src/Request.h
  9226. (cookieBox): Made ShardHandle.
  9227. * src/RequestGroup.h, src/RequestGroup.cc
  9228. (createNextCommandWithAdj): New function.
  9229. * src/FileAllocationCommand.cc
  9230. (executeInternal): Use createNextCommandWithAdj().
  9231. * src/CheckIntegrityCommand.cc
  9232. (executeInternal): Use createNextCommandWithAdj().
  9233. Added --load-cookies command-option.
  9234. * src/OptionHandlerFactory.cc
  9235. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  9236. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  9237. Now aria2 can handle cookie's expiration date.
  9238. * src/Cookie.h (expires): Changed its type to time_t.
  9239. * src/main.cc: Added --load-cookies command-line option.
  9240. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  9241. * src/Util.h, src/Util.cc (httpGMT): New function.
  9242. * src/Request.cc (Request): Initialize cookieBox using
  9243. CookieBoxFactory.
  9244. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  9245. * src/CookieParser.h, src/CookieParser.cc: New class.
  9246. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  9247. * src/HttpResponseCommand.cc
  9248. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  9249. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  9250. download.
  9251. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9252. Added -j command-line option.
  9253. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9254. * src/main.cc
  9255. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  9256. Rewritten using stringstream.
  9257. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  9258. Rewritten using stringstream.
  9259. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9260. Make download size shown in MB, KB.
  9261. * src/ConsoleDownloadEngine.h (sendStatistics)
  9262. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  9263. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9264. Accept incoming connections if download rate is low.
  9265. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  9266. (_lowestSpeedLimit): New variable.
  9267. (setLowestSpeedLimit): New function.
  9268. (execute): Accept incoming connections if download rate is low.
  9269. MAX_PEERS is ignored in this case.
  9270. Disable PREF_OUT in multiple concurrent download:
  9271. * src/RequestGroup.h, src/RequestGroup.cc
  9272. (setUserDefinedFilename): New function.
  9273. * src/DownloadEngineFactory.cc
  9274. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  9275. concurrent download.
  9276. * src/DefaultSegmentManFactory.cc
  9277. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  9278. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9279. RequestGroup::getNextCommand() was renamed to createNextCommand().
  9280. Added its overloaded method.
  9281. * src/RequestGroup.h
  9282. (_numConcurrentCommand): New variable.
  9283. (setNumConcurrentCommand): New function.
  9284. * src/RequestGroup.cc
  9285. Abort download if same file is being downloaded concurrently.
  9286. * src/RequestGroup.h, src/RequestGroupMan.cc
  9287. (isSameFileBeingDownloaded): New function.
  9288. * src/HttpResponseCommand.cc (executeInternal)
  9289. * src/FtpNegotiateCommand.cc (recvSize)
  9290. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  9291. * main.cc: Added help message for -i option.
  9292. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9293. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  9294. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  9295. * src/MetalinkEntry.h
  9296. (checksum): Changed to ChecksumHandle
  9297. * src/MetalinkRequestInfo.cc
  9298. (checksum): Changed to ChecksumHandle
  9299. * src/File.cc
  9300. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  9301. * src/common.h
  9302. (DIR_OPEN_MODE): New definition
  9303. * src/RequestGroup.cc
  9304. (prepareForNextAction): Added an argument.
  9305. * src/message.h
  9306. (MSG_GOOD_CHECKSUM): New definition
  9307. (MSG_BAD_CHECKSUM): New definition
  9308. * src/HttpResponseCommand.cc
  9309. (handleDefaultEncoding): Continue download sequence in new
  9310. non-segmented download.
  9311. * src/FileAllocationEntry.h
  9312. (_nextDownloadCommand): New variable.
  9313. * src/DownloadCommand.cc
  9314. (prepareForNextSegment): Create ChecksumCommand if checksum is
  9315. available.
  9316. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  9317. * src/IteratableChecksumValidator.h,
  9318. src/IteratableChecksumValidator.cc: New class.
  9319. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  9320. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9321. Change file mode to 666:
  9322. * src/common.h (OPEN_MODE): New definition.
  9323. * src/File.cc
  9324. * src/Util.cc
  9325. * src/Directry.cc
  9326. * src/AbstractDiskWriter.cc
  9327. Change the level of log message "download aborted" to debug:
  9328. * src/PeerAbstractCommand.cc (execute)
  9329. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  9330. * src/TrackerWatcherCommand.cc
  9331. (createCommand): Sleep some seconds after request failed.
  9332. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  9333. then abort tracker request.
  9334. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9335. * Added the simultaneous download feature.
  9336. * src/main.cc: Print "Exception caught: " when exception is caught.
  9337. Use CUIDCounter instead of BtRuntime::getNewCuid():
  9338. * src/ActivePeerConnectionCommand.cc
  9339. * src/PeerInteractionCommand.cc
  9340. * src/BtRuntime.h
  9341. (cuidCounter): Removed.
  9342. (getNewCuid): Removed.
  9343. * src/DownloadEngineFactory.cc
  9344. * src/PeerListenCommand.cc
  9345. * src/TrackerUpdateCommand.cc
  9346. * src/PeerInitiateConnectionCommand.cc
  9347. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9348. * src/PeerAbstractCommand.cc
  9349. (onAbort): Call PeerStorage::returnPeer()
  9350. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  9351. (incomingPeers): New variable.
  9352. (addIncomingPeer): New function.
  9353. (returnPeer): New function.
  9354. (onErasingPeer): New function.
  9355. (addPeer): push_back -> push_front
  9356. (getActivePeers): Rewritten.
  9357. (calculateStat): Rewritten.
  9358. * src/PeerStorage.h
  9359. (TransferStat::copy): New function.
  9360. (TransferStat::TransferStat): New function.
  9361. (TransferStat::operator=): New function.
  9362. (addIncomingPeer): New function.
  9363. (returnPeer): New function.
  9364. * src/PeerListenCommand.cc
  9365. (execute): Use PeerStorage::addIncomingPeer() instead of
  9366. Peer::addPeer().
  9367. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9368. Connect to a peer actively when download speed is lower than specified
  9369. speed in torrent download:
  9370. * src/ActivePeerConnectionCommand.h: New class.
  9371. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9372. * src/HttpRequest.cc (createRequest): url-encode user-agent
  9373. * src/main.cc: Fixed the bug that prevents download if .netrc
  9374. doesn't exist.
  9375. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9376. To cache resolved hostname:
  9377. * src/AbstractCommand.h, src/AbstractCommand.cc
  9378. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  9379. Added dns cache.
  9380. * src/FtpInitiateConnectionCommand.cc
  9381. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  9382. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  9383. NameResolver working without ares.
  9384. * src/TorrentRequestInfo.cc
  9385. (execute): Don't cache dns in torrent download.
  9386. * src/HttpInitiateConnectionCommand.cc
  9387. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  9388. * src/DNSCache.h: New class.
  9389. * src/UrlRequestInfo.cc
  9390. (execute): Use dns cache.
  9391. In http request, suppress port number in http request header if port
  9392. is 80 or 443:
  9393. * src/HttpRequest.cc (getHostText): Suppress port number in http
  9394. request header if port is 80 or 443.
  9395. (createProxyRequest): Allways send port number.
  9396. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9397. To add the command-line option which disables netrc support:
  9398. * src/OptionHandlerFactory.cc
  9399. (createOptionHandlers): Added PREF_NO_NETRC.
  9400. * src/main.cc: Added -n option.
  9401. * src/prefs.h (PREF_NO_NETRC): New definition.
  9402. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  9403. V_TRUE.
  9404. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  9405. is V_FALSE. This may get configurable in the future release.
  9406. To clear peer's error status by time basis:
  9407. * src/PeerAbstractCommand.cc
  9408. (onAbort): Call Peer::startBadCondition().
  9409. * src/Peer.h, src/Peer.cc
  9410. (error): Removed.
  9411. (_badConditionStartTime): New variable.
  9412. (_badConditionInterval): New variable. Initialized to 10 seconds.
  9413. (startBadCondition): New function.
  9414. (isGood): New function.
  9415. * src/DefaultPeerStorage.cc
  9416. (addPeer): Use Peer::isGood().
  9417. (FindFinePeer): Use Peer::isGood().
  9418. Always include port number in http request header:
  9419. * src/HttpRequest.cc (getHostText): Always include port number in
  9420. http request header.
  9421. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9422. To the ability to read options from a config file:
  9423. * src/main.cc: Command-line parameter validation is delegated to
  9424. OptionHandler class.
  9425. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  9426. * src/Option.h, src/Option.cc (clear): New function.
  9427. * src/OptionParser.h, src/OptionParser.cc: New class.
  9428. * src/OptionHandler.h: New class.
  9429. * src/NameMatchOptionHandler.h: New class.
  9430. * src/OptionHandlerImpl.h: New classes.
  9431. * src/prefs.h: '_' -> '-'
  9432. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  9433. (FTP_PASV): New definition.
  9434. * src/Util.h, src/Util.cc (getRealSize): New function.
  9435. To disable netrc support if .netrc file does not have correct
  9436. permissions:
  9437. * src/File.h, src/File.cc (mode): New function.
  9438. To prevent confidential information to be logged:
  9439. * src/HttpConnection.h, src/HttpConnection.cc
  9440. (eraseConfidentialInfo): New function.
  9441. (sendRequest): Call eraseConfidentialInfo().
  9442. (sendProxyRequest): Call eraseConfidentialInfo().
  9443. * src/main.cc: Validate permissions of .netrc file.
  9444. To add --user-agent command-line option:
  9445. * src/main.cc: Added new command line option: --user-agent
  9446. * src/prefs.h (PREF_USER_AGENT): New definition.
  9447. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  9448. parameter to HttpRequest object.
  9449. * src/AbstractProxyRequestCommand.cc
  9450. (executeInternal): Set user-agent option parameter to HttpRequest
  9451. object.
  9452. Marged the patches from Dan Fandrich.
  9453. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9454. Use filename and size from Metalink file instead of sending HEAD
  9455. request:
  9456. * src/UrlRequestInfo.h
  9457. (_filename): New variable.
  9458. (_totalLength): New variable.
  9459. (setTotalLength): New variable.
  9460. (setFilename): New variable.
  9461. * src/MetalinkRequestInfo.cc
  9462. (execute): Set filename and size to UrlRequestInfo
  9463. * src/UrlRequestInfo.cc
  9464. (execute): Use filename and size from Metalink instead of seding
  9465. HEAD request to servers.
  9466. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9467. To add the ability to resume downloading a partially downloaded file
  9468. which is downloaded from the beginning:
  9469. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  9470. takes this role.
  9471. * src/main.cc: Added -c option.
  9472. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  9473. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  9474. * src/prefs.h (PREF_CONTINUE): New definition.
  9475. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  9476. * src/DefaultDiskWriter.cc
  9477. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  9478. * src/AbstractDiskWriter.h
  9479. (glowFileAllocator): New variable.
  9480. * src/AbstractDiskWriter.cc
  9481. (openExistingFile): Now preallocate file space from the end of the
  9482. existing file if totalLength argument is specified and grater than 0.
  9483. * src/UrlRequestInfo.cc: If -c option is specified and the file
  9484. to download exists in local, continue the download of the file.
  9485. --allow-overwrite=true is assumed in this context.
  9486. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  9487. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  9488. Throw exception if --check-integrity=true is specified but chunk
  9489. checksums are not provided:
  9490. * src/UrlRequestInfo.cc
  9491. Do not print URLs to stdout:
  9492. * src/UrlRequestInfo.cc
  9493. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9494. * src/Request.h: Use AuthResolver to get authentication information.
  9495. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9496. set to RequestFactory object.
  9497. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9498. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9499. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9500. create Request object.
  9501. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9502. To integrate Netrc into exsiting classes:
  9503. * src/Request.h
  9504. (_userDefinedAuthConfig): New variable.
  9505. (findNetrcAuthenticator): New function.
  9506. (segment): Removed.
  9507. (setUserDefinedAuthConfig): New function.
  9508. (resolveHttpAuthConfigItem): New function.
  9509. (resolveFtpAuthConfigItem): New function.
  9510. (resolveHttpProxyAuthConfigItem): New function.
  9511. * src/HttpRequest.h
  9512. (authConfig): Removed.
  9513. (proxyAuthConfig): Removed.
  9514. (setAuthConfig): Removed.
  9515. (setProxyAuthConfig): Removed.
  9516. * src/UrlRequest.h
  9517. (getHeadResult): Added a parameter: authConfigHandle
  9518. * src/common.h
  9519. (SingletonHolder.h): New include.
  9520. * src/main.cc
  9521. (Netrc.h): New include.
  9522. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9523. Added initial value of PREF_NETRC_PATH.
  9524. Added the initialization of netrc.
  9525. * src/AuthConfig.h: New class.
  9526. * src/prefs.h
  9527. (PREF_NETRC_PATH): New definition.
  9528. * src/HttpAuthConfig.h: Removed.
  9529. * src/Netrc.cc
  9530. (getRequiredNextToken): New function.
  9531. (skipMacdef): New function.
  9532. (parse): Rewritten.
  9533. * src/Netrc.h
  9534. (getRequiredNextToken): New function.
  9535. (skipMacdef): New function.
  9536. * src/Util.h, src/Util.cc
  9537. (getHomeDir): New function.
  9538. * src/TrackerWatcherComand.cc
  9539. (createRequestCommand): Use AuthConfig.
  9540. * src/FtpConnection.cc
  9541. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9542. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9543. * src/Request.cc
  9544. (findNetrcAuthenticator): New function.
  9545. (resolveHttpAuthConfigItem): New function.
  9546. (resolveFtpAuthConfigItem): New function.
  9547. (resolveHttpProxyAuthConfigItem): New function.
  9548. * src/UrlRequestInfo.cc: Use AuthConfig.
  9549. * src/HttpRequest.cc
  9550. (createRequest): Use authConfig.
  9551. (getProxyAuthString): Use authConfig.
  9552. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9553. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9554. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9555. To reduce overhead to find commands whose socket is either
  9556. readable or writable in the download engine loop:
  9557. * src/Command.h, src/Command.cc
  9558. (STATUS): New enum.
  9559. (status): New variable.
  9560. (statusMatch): New function.
  9561. (setStatusActive): New function.
  9562. (setStatusInactive): New function.
  9563. * src/DownloadEngine.h, src/DownloadEngine.cc
  9564. (executeCommand): New function.
  9565. (run): Simplified.
  9566. (waitData): Call Command::setStatusActive() when command's socket is
  9567. readable or writable.
  9568. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9569. To handle Segment as SegmentHandle:
  9570. * src/AbstractCommand.cc (execute): Rewritten.
  9571. * src/SegmentMan.h: Segment -> SegmentHandle
  9572. Introducded HttpResponse class, HttpRequest class to improve code
  9573. extensiveness and make it clear:
  9574. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9575. HttpResponse class.
  9576. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9577. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9578. * src/HttpConnection.cc: Contruction of http request were moved to
  9579. HttpRequest class.
  9580. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9581. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9582. * src/HttpAuthConfig.h: New class.
  9583. * src/Range.h: New class.
  9584. To make FtpTunnel{Request, Response}Command and
  9585. HttpProxy{Request, Response}Command derived from
  9586. AbstractProxy{Request, Response}Command:
  9587. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9588. Derived from AbstractProxyRequestCommand class.
  9589. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9590. Derived from AbstractProxyResponseCommand class.
  9591. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9592. Derived from AbstractProxyRequestCommand class.
  9593. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9594. Derived from AbstractProxyResponseCommand class.
  9595. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9596. : New class.
  9597. * src/AbstractProxyResponseCommand.h,
  9598. src/AbstractProxyResponseCommand.cc: New class.
  9599. To add netrc support:
  9600. * src/Netrc.h, src/Netrc.cc: New class.
  9601. * src/Util.h, src/Util.cc (split): New function.
  9602. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9603. "Content-Range" header instead of "Range" header.
  9604. * src/HttpHeader.h
  9605. (getStatus): Removed.
  9606. (setStatus): Removed.
  9607. * src/Segment.h
  9608. (getPositionToWrite): New function.
  9609. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9610. * src/HttpHeader.h
  9611. (Range.h): New include.
  9612. (status): New variable.
  9613. (HttpHeader): Initialized status with 0.
  9614. (getStatus): New function.
  9615. (setStatus): New function.
  9616. (getRange): New function.
  9617. (HttpHeaderHandle): New function.
  9618. * src/HttpHeader.cc
  9619. (getRange): New function.
  9620. * src/Request.h
  9621. (RequestWeakHandle): New definition.
  9622. * src/HttpConnection.h
  9623. (HttpConnectionHandle): New type definition.
  9624. * src/HttpConnection.cc
  9625. (receiveResponse): Set HTTP status to headers.
  9626. * src/main.cc
  9627. (showUsage): Fixed typo.
  9628. * src/Segment.h
  9629. (SegmentHandle): New type definition.
  9630. * src/BitfieldMan.h
  9631. (getMissingUnusedLength): New function.
  9632. * src/BitfieldMan.cc
  9633. (getMissingUnusedLength): New function.
  9634. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. To fix static initialization order problem:
  9636. * src/BitfieldManFactory.h
  9637. (defaultRandomizer): Removed.
  9638. (factory): New variable.
  9639. (getNewFactory): Removed.
  9640. (getFactoryInstance): New function.
  9641. (setDefaultRandomizer): Rewritten.
  9642. (getDefaultRandomizer): Rewritten.
  9643. * src/BitfieldManFactory.cc
  9644. (defaultRandomizer): Removed.
  9645. (factory): Initialized to 0.
  9646. (BitfieldManFactory): Initialized randomizer to 0.
  9647. * src/DefaultPieceStorage.cc
  9648. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9649. * src/Peer.cc
  9650. (Peer): getNewFactory() -> getFactoryInstance()
  9651. * src/SegmentMan.cc
  9652. (initBitfield): getNewFactory() -> getFactoryInstance()
  9653. * src/Piece.cc
  9654. (Piece): getNewFactory() -> getFactoryInstance()
  9655. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9656. To fix the bug that causes crash on Max OS X:
  9657. * src/SimpleRandomizer.h
  9658. (getInstance): Create new instance if the static variable is null.
  9659. * src/SimpleRandomizer.cc
  9660. (randomizer): Initialized to 0.
  9661. * src/BitfieldManFactory.h
  9662. (getNewFactory): Removed the call to setRandomizer().
  9663. To fix the miscalculation of the range of checksum:
  9664. * src/BitfieldMan.h
  9665. (isBitSetOffsetRange): New function.
  9666. * src/BitfieldMan.cc
  9667. (isBitSetOffsetRange): New function.
  9668. * src/SegmentMan.cc
  9669. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9670. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9671. * Release 0.10.1
  9672. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9673. To lower CPU usage in BitTorrent download when --max-upload-limit
  9674. command-line option specified:
  9675. * src/DefaultBtMessageDispatcher.cc
  9676. (sendMessages): Calculate uploading speed only when current message
  9677. is uploading data and is not sent yet.
  9678. * src/DefaultPeerStorage.h
  9679. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9680. * src/HttpResponseCommand.cc
  9681. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9682. This fixes compile error in Soralis 10.
  9683. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9684. To fix segfault in Metalink download:
  9685. * src/UrlRequestInfo.h
  9686. (filename): Removed.
  9687. (totalLength): Removed.
  9688. (setTotalLength): Removed.
  9689. (setFilename): Removed.
  9690. * src/MetalinkRequestInfo.cc
  9691. (execute): Do not set filename and totalLength to reqInfo.
  9692. Set chunk checksum to reqInfo if it is not null.
  9693. * src/HttpResponseCommand.cc
  9694. (executeInternal): Fixed filename in log.
  9695. (handleDefaultEncoding): Removed the call to initBitfield() and
  9696. markAllPiecesDone().
  9697. (handleOtherEncoding): Added HEAD method handling.
  9698. * src/FtpNegotiateCommand.cc
  9699. (executeInternal): Added SEQ_HEAD_OK handling.
  9700. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9701. return false.
  9702. * src/FtpNegotiateCommand.h
  9703. (SEQ_HEAD_OK): New definition.
  9704. * src/SegmentMan.cc
  9705. (initBitfield): Delete bitfield.
  9706. (isChunkChecksumValidationReady): Fixed the condition.
  9707. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9708. works fine.
  9709. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9710. * src/Xml2MetalinkProcessor.h
  9711. (xpathExists): New function.
  9712. * src/Xml2MetalinkProcessor.cc
  9713. (xpathExists): New function.
  9714. Not to send HEAD request if filename and size are available in Metalink
  9715. file:
  9716. * src/UrlRequestInfo.h
  9717. (filename): New variable.
  9718. (totalLength): New variable.
  9719. (setTotalLength): New function.
  9720. (setFilename): New function.
  9721. * src/MetalinkRequestInfo.cc
  9722. (execute): Set filename and size to UrlRequestInfo.
  9723. * src/MetalinkEntry.cc
  9724. (MetalinkEntry): Initialize size with 0.
  9725. * src/UrlRequestInfo.cc
  9726. (execute): Set filename and size to SegmentMan.
  9727. Not to download rest of the files after selected files are downloaded
  9728. in BitTorrent:
  9729. * src/PieceStorage.h
  9730. (allDownloadFinished): New function.
  9731. * src/DefaultBtAnnounce.cc
  9732. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9733. downloadFinished.
  9734. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9735. * src/DefaultPieceStorage.cc
  9736. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9737. Commented out the call to finishSelectiveDownloadingMode().
  9738. (downloadFinished): Call isFilteredAllBitSet() instead of
  9739. isAllBitSet().
  9740. (allDownloadFinished): New function.
  9741. * src/DefaultBtInteractive.cc
  9742. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9743. downloadFinished().
  9744. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9745. * src/TorrentDownloadEngine.cc
  9746. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9747. * src/BitfieldMan.h
  9748. (isFilteredAllBitSet): New function.
  9749. * src/ShareRatioSeedCriteria.h
  9750. (PieceStorage.h): New include.
  9751. (pieceStorage): New variable.
  9752. (evaluate):
  9753. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9754. * src/BitfieldMan.cc
  9755. (isFilteredAllBitSet): New function.
  9756. (isAllBitSet): Filter is not took into account.
  9757. Rename --force-truncate as --allow-overwrite:
  9758. * src/TorrentRequestInfo.cc
  9759. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9760. * src/main.cc
  9761. (showUsage): --force-truncate -> --allow-overwrite
  9762. * src/message.h
  9763. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9764. * src/prefs.h
  9765. (PREF_FORCE_TRUNCATE): Removed.
  9766. (PREF_ALLOW_OVERWRITE): New definition.
  9767. * src/SegmentMan.cc
  9768. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9769. * src/MetalinkRequestInfo.cc
  9770. (execute): Queueing message are now logged in info level.
  9771. * src/common.h
  9772. (LONG_LONG_MAX): Removed.
  9773. (LONG_LONG_MIN): Removed.
  9774. * src/HttpResponseCommand.cc
  9775. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9776. * src/FtpNegotiateCommand.cc
  9777. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9778. * src/main.cc
  9779. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9780. command-line option.
  9781. (main): Added --check-integriy and --realtime-chunk-checksum
  9782. command-line option.
  9783. --force-truncate -> --allow-overwrite
  9784. Set initial value of --check-integrity option to false.
  9785. Don't show usage when error occurs while persing command-line options.
  9786. Removed deprecated --upload-limit option.
  9787. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9788. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9789. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9790. * src/BtAllowedFastMessage.cc:
  9791. * src/BtBitfieldMessage.cc
  9792. * src/BtCancelMessage.cc
  9793. * src/BtChokeMessage.cc
  9794. * src/BtHaveAllMessage.cc
  9795. * src/BtHaveMessage.cc
  9796. * src/BtHaveNoneMessage.cc
  9797. * src/BtInterestedMessage.cc
  9798. * src/BtNotInterestedMessage.cc
  9799. * src/BtPieceMessage.cc
  9800. * src/BtPortMessage.cc
  9801. * src/BtRejectMessage.cc
  9802. * src/BtRequestMessage.cc
  9803. * src/BtSuggestPieceMessage.cc
  9804. * src/BtUnchokeMessage.cc
  9805. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9806. files are affected.
  9807. * src/ChunkChecksumValidator.cc
  9808. * src/SegmentMan.cc
  9809. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9810. To add chunk checksum validation:
  9811. * src/MetalinkEntry.h
  9812. (MetalinkChunkChecksum.h): New include.
  9813. (chunkChecksum): New variable.
  9814. * src/Request.h
  9815. (method): New variable.
  9816. (setMethod): New function.
  9817. (getMethod): New function.
  9818. (METHOD_GET): New static constant.
  9819. (METHOD_HEAD): New static constant.
  9820. * src/Xml2MetalinkProcessor.h
  9821. (getPieceHash): New function.
  9822. * src/PieceStorage.h
  9823. (markAllPiecesDone): New function.
  9824. (checkIntegrity): New function.
  9825. * src/FileAllocator.h
  9826. (NullFileAllocationMonitor.h): New include.
  9827. (FileAllocator): Initialize fileAllocationMonitor with new
  9828. NullFileAllocationMonitor().
  9829. * src/MultiDiskAdaptor.h
  9830. (messageDigest.h): Remove include.
  9831. (ctx): Removed.
  9832. (hashUpdate): Added ctx.
  9833. (MultiDiskAdaptor): Removed ctx.
  9834. (sha1Sum): Renamed as messageDigest.
  9835. (messageDigest): New function.
  9836. * src/UrlRequestInfo.h
  9837. (HeadResult): New class.
  9838. (digestAlgo): New variable.
  9839. (chunkChecksumLength): New variable.
  9840. (chunkChecksums): New variable.
  9841. (getHeadResult): New function.
  9842. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9843. (setDigestAlgo): New function.
  9844. (setChunkChecksumLength): New function.
  9845. (setChunkChecksums): New function.
  9846. * src/DefaultPieceStorage.cc
  9847. (DiskAdaptorWriter.h): New include.
  9848. (ChunkChecksumValidator.h): New include.
  9849. (markAllPiecesDone): New function.
  9850. (checkIntegrity): New function.
  9851. * src/DefaultBtContext.h
  9852. (getPieceHashes): New function.
  9853. * src/TorrentRequestInfo.cc
  9854. (execute): Try to validate chunk checksum if file already exists and
  9855. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9856. * src/messageDigest.h
  9857. (~MessageDigestContext): Added digestFree().
  9858. * src/MetalinkRequestInfo.cc
  9859. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9860. * src/DiskAdaptor.h
  9861. (messageDigest.h): New include.
  9862. (sha1Sum): Renamed as messageDigest.
  9863. (messageDigest): New function.
  9864. * src/DownloadCommand.h
  9865. (PeerStat.h): New include.
  9866. (maxDownloadSpeedLimit): New variable.
  9867. (startupIdleTime): New variable.
  9868. (lowestDownloadSpeedLimit): New variable.
  9869. (peerStat): New variable.
  9870. (setMaxDownloadSpeedLimit): New function.
  9871. (setStartupIdleTime): New function.
  9872. (setLowestDownloadSPeedLimit): New function.
  9873. * src/BtContext.h
  9874. (getPieceHashes): New function.
  9875. * src/main.cc
  9876. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9877. option to true for testing purpose.
  9878. * src/BtPieceMessage.cc
  9879. (checkPieceHash): Use messageDigest
  9880. * src/DownloadEngine.cc
  9881. (SetDescriptor): Removed.
  9882. (AccumulateActiveCommand): Removed.
  9883. (waitData): Rewritten.
  9884. (updateFdSet): Rewritten.
  9885. * src/MultiDiskAdaptor.cc
  9886. (hashUpdate): Added ctx.
  9887. (sha1Sum): Renamed as messageDigest.
  9888. (messageDigest): New function.
  9889. * src/BitfieldMan.h
  9890. (isBitRangeSet): New function.
  9891. (unsetBitRange): New function.
  9892. * src/ByteArrayDiskWriter.h
  9893. (sha1Sum): Renamed as messageDigest.
  9894. (messageDigest): New function.
  9895. * src/ConsoleDownloadEngine.cc
  9896. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9897. * src/DiskWriter.h
  9898. (messageDigest.h): New include.
  9899. (sha1Sum): Renamed as messageDigest.
  9900. (messageDigest): New function.
  9901. * src/ChunkChecksumValidator.h: New class.
  9902. * src/DiskAdaptorWriter.h: New class.
  9903. * src/prefs.h
  9904. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9905. (PREF_CHECK_INTEGRITY): New definition.
  9906. * src/HttpResponseCommand.cc
  9907. (handleDefaultEncoding): Added method "HEAD" handling.
  9908. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9909. (handleOtherEncoding):
  9910. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9911. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9912. startupIdleTime, lowestDownloadSpeedLimit to command.
  9913. * src/SegmentMan.h
  9914. (getSegmentEntryByIndex): New function.
  9915. (getSegmentEntryByCuid): New function.
  9916. (getSegmentEntryIteratorByCuid): New function.
  9917. (diskWriter): DiskWriter -> DiskWriterHandle
  9918. (pieceHashes): New variable.
  9919. (chunkHashLength): New variable.
  9920. (digestAlgo): New variable.
  9921. (FindPeerStat): Removed.
  9922. (getPeerStat): Rewritten.
  9923. (markAllPiecesDone): New function.
  9924. (checkIntegrity): New function.
  9925. (tryChunkChecksumValidation): New function.
  9926. (isChunkChecksumValidationReady): New function.
  9927. * src/BitfieldMan.cc
  9928. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9929. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9930. blocks to 0.
  9931. (isBitRangeSet): New function.
  9932. (unsetBitRange): New function.
  9933. * src/FtpNegotiateCommand.cc
  9934. (executeInternal): Set maxDownloadSpeedLimit,
  9935. startupIdleTime, lowestDownloadSpeedLimit to command.
  9936. (recvSize): Added method "HEAD" handling.
  9937. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9938. * src/AbstractSingleDiskAdaptor.cc
  9939. (sha1Sum): Renamed as messageDigest.
  9940. (messageDigest): New function.
  9941. * src/AbstractSingleDiskAdaptor.h
  9942. (sha1Sum): Renamed as messageDigest.
  9943. (messageDigest): New function.
  9944. * src/Util.h
  9945. (indexRange): New function.
  9946. * src/MetalinkEntry.cc
  9947. (MetalinkEntry): Initialized chunkChecksum to 0.
  9948. * src/ShaVisitor.cc
  9949. (~ShaVisitor): Removed the call to ctx.digestFree().
  9950. * src/SegmentMan.cc
  9951. (ChunkChecksumValidator.h): New include.
  9952. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9953. to DIGEST_ALGO_SHA1.
  9954. (~SegmentMan): Removed diskWriter.
  9955. (FindSegmentEntryByIndex): Removed.
  9956. (FindSegmentEntryByCuid): Removed.
  9957. (checkoutSegment): Rewritten.
  9958. (findSlowerSegmentEntry): Rewritten.
  9959. (getSegment): Rewritten.
  9960. (updateSegment): Rewritten.
  9961. (completeSegment): Rewritten.
  9962. (markAllPiecesDone): New function.
  9963. (checkIntegrity): New function.
  9964. (isChunkChecksumValidationReady): New function.
  9965. (tryChunkChecksumValidation): New function.
  9966. * src/Xml2MetalinkProcessor.cc
  9967. (getEntry): Get size and set it to entry.
  9968. Get chunk checksum and set it to entry.
  9969. (getPieceHash): New function.
  9970. * src/Util.cc
  9971. (sha1Sum): Removed ctx.digestFree()
  9972. (fileChecksum): Removed ctx.digestFree()
  9973. (indexRange): New function.
  9974. * src/Request.cc
  9975. (METHOD_GET): New variable.
  9976. (METHOD_HEAD): New variable.
  9977. (Request): Added method.
  9978. * src/UrlRequestInfo.cc
  9979. (FatalException.h): New include.
  9980. (message.h): New include.
  9981. (operator<<): Added operator<< for class HeadResult.
  9982. (getHeadResult): New function.
  9983. (execute): Get filename and size in separate download engine.
  9984. * src/ChunkChecksumValidator.cc: New class.
  9985. * src/DownloadCommand.cc:
  9986. (DownloadCommand): Added peerStat.
  9987. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9988. the value from Option.
  9989. The buffer size is now 16KB.
  9990. Use peerStat member instead of getting it from SegmentMan.
  9991. Use startupIdleTime member instead of gettingit from Option.
  9992. Added chunk checksum validation.
  9993. * src/AbstractDiskWriter.cc
  9994. (AbstractDiskWriter): Removed ctx.
  9995. (~AbstractDiskWriter): Removed ctx.digestFree()
  9996. (writeDataInternal): Returns the return value of write.
  9997. (readDataInternal): Returns the return value of read.
  9998. (sha1Sum): Renamed as messageDigest
  9999. (messageDigest): New function.
  10000. * src/AbstractDiwkWriter.h
  10001. (messageDigest.h): Removed include.
  10002. (ctx): Removed.
  10003. (sha1Sum): Renamed as messageDigest
  10004. (messageDigest): New function.
  10005. * src/DefaultPieceStorage.h
  10006. (markAllPiecesDone): New function.
  10007. (checkIntegrity): New function.
  10008. * src/NullFileAllocationMonitor.h: New class.
  10009. * src/MetalinkChunkChecksum.h: New class.
  10010. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10011. To decrease CPU usage in bittorrent download, calculation results in
  10012. BitfieldMan were cached and realtime fetching PeerObject was removed
  10013. with WeakHandle introduced. Option values are set to the objects
  10014. by setter before download begins.
  10015. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10016. * src/DefaultBtRequestFactory.h
  10017. (dispatcher): BtMessageDispatcherHandle ->
  10018. BtMessageDispatcherWeakHandle.
  10019. (messageFactory): New variable.
  10020. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10021. BtMessageDispatcherWeakHandle.
  10022. (setBtMessageFactory): New function.
  10023. * src/DefaultBtMessageDispatcher.cc:
  10024. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10025. from Option.
  10026. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10027. feating the value from Option.
  10028. Use messageFactory member.
  10029. * src/PeerInteractionCommand.cc
  10030. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10031. Add reverse dependencies to factory object.
  10032. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10033. dispatcher.
  10034. Set messageFactory to receiver.
  10035. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10036. btInteractive.
  10037. Set receiver to peerObject.
  10038. Set maxDownloadSpeedLimit to this.
  10039. (executeInternal): Use maxDownloadSpeedLimit member.
  10040. * src/BtChokeMessage.cc
  10041. (doReceivedAction): Use dispatcher, requestFactory member.
  10042. (onSendComplete): Use dispatcher member.
  10043. * src/PeerInteractionCommand.h
  10044. (maxDownloadSpeedLimit): New variable.
  10045. * src/DefaultBtMessageReceiver.h
  10046. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10047. (dispatcher):
  10048. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10049. (messageFactory): New variable.
  10050. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10051. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10052. (setDispatcher):
  10053. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10054. (setBtMessageFactory): New function.
  10055. * src/DefaultBtInteractive.cc
  10056. (initiateHandshake): Use messageFactory member.
  10057. (addBitfieldMessageToQueue): Use messageFactory member.
  10058. (addAllowedFastMessageToQueue): Use messageFactory member.
  10059. (decideChoking): Use messageFactory member.
  10060. (checkHave): Use messageFactory member.
  10061. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10062. (receiveMessages): Use maxDownloadSpeedLimit member.
  10063. (decideInterest): Use messageFactory member.
  10064. * src/BtRequestMessage.cc
  10065. (doReceivedAction): Use messageFactory, dispatcher member.
  10066. (onQueued): Use dispatcher member.
  10067. * src/BtPieceMessage.cc
  10068. (doReceivedAction): Use dispatcher member.
  10069. (send): Use peerConnection member.
  10070. (onWrongPiece): Use requestFactory member.
  10071. (handleChokingEvent): Use messageFactory, dispatcher member.
  10072. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10073. * src/BtMessageDispatcher.h
  10074. (BtMessageDispatcherWeakHandle): New type definition.
  10075. * src/SimpleBtMessage.cc
  10076. (send): Use peerConnection member.
  10077. * src/BtRejectMessage.cc
  10078. (doReceivedAction): Use dispatcher member.
  10079. * src/DefaultBtMessageDispatcher.h
  10080. (Option.h): Removed include.
  10081. (messageFactory): New variable.
  10082. (option): Removed.
  10083. (maxUploadSpeedLimit): New variable.
  10084. (requestTimeout): New variable.
  10085. (DefaultBtMessageDispatcher): Removed option.
  10086. Added maxUploadSpeedLimit, requestTimeout.
  10087. (setOption): Removed.
  10088. (getOption): Removed.
  10089. (setMaxUploadSpeedLimit): New function.
  10090. (setRequestTimeout): New function.
  10091. (setBtMessageFactory): New function.
  10092. * src/DefaultBtInteractive.h
  10093. (btMessageReceiver):
  10094. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10095. (dispatcher):
  10096. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10097. (btRequestFactory):
  10098. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10099. (peerConnection):
  10100. PeerConnectionHandle -> PeerConnectionWeakHandle
  10101. (messageFactory): New variable.
  10102. (option): Removed.
  10103. (keepAliveInterval): New variable.
  10104. (maxDownloadSpeedLimit): New variable.
  10105. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10106. (setBtMessageReceiver):
  10107. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10108. (setDispatcher):
  10109. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10110. (setBtRequestFactory):
  10111. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10112. (setPeerConnection):
  10113. PeerConnectionHandle -> PeerConnectionWeakHandle
  10114. (setOption): Removed.
  10115. (setKeepAliveInterval): New function.
  10116. (setMaxDownloadSpeedLimit): New function.
  10117. (setBtMessageFactory): New function.
  10118. * src/BitfieldMan.h
  10119. (cachedNumMissingBlock): New variable.
  10120. (cachedNumFilteredBlock): New variable.
  10121. (cachedCompletedLength): New variable.
  10122. (cachedFilteredComletedLength): New variable.
  10123. (cachedFilteredTotalLength): New variable.
  10124. (countMissingBlockNow): New function.
  10125. (countFilteredBlockNow): New function.
  10126. (getFilteredTotalLengthNow): New function.
  10127. (getCompletedLengthNow): New function.
  10128. (getFilteredCompletedLengthNow): New function.
  10129. (updateCache): New function.
  10130. * src/AbstractBtMessage.h
  10131. (BtMessageDispatcher.h): New include.
  10132. (PeerConnection.h): New include.
  10133. (BtRequestFactory.h): New include
  10134. (BtMessageFactory.h): New include.
  10135. (dispatcher): New variable.
  10136. (messageFactory): New variable.
  10137. (peerConnection: New variable.
  10138. (setBtMessageDispatcher): New function.
  10139. (setPeerConnection): New function.
  10140. (setBtMessageFactory): New function.
  10141. (setBtRequestFactory): New function.
  10142. * src/DefaultBtMessageFactory.cc
  10143. (setCommonProperty): Set dispatcher, requestFactory, this,
  10144. peerConnection to msg.
  10145. * src/BtRegistry.h
  10146. (BT_MESSAGE_RECEIVER): New macro.
  10147. * src/PeerConnection.h
  10148. (PeerConnectionWeakHandle): New type definition.
  10149. * src/BtMessageFactory.h
  10150. (BtMessageFactoryWeakHandle): New type definition.
  10151. * src/BitfieldMan.cc
  10152. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10153. cachedCompletedLength, cachedFilteredComletedLength,
  10154. cachedFilteredTotalLength.
  10155. Call updateCache().
  10156. (countMissingBlock): Return cachedNumMissingBlock.
  10157. (countMissingBlockNow): New function.
  10158. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10159. (countFilteredBlockNow): New function.
  10160. (setBit): Call updateCache().
  10161. (unsetBit): Call updateCache().
  10162. (setBitfield): Call updateCache().
  10163. (clearAllBit): Call updateCache().
  10164. (setAllBit): Use setBitInternal instead of setBit.
  10165. Call updateCache().
  10166. (addFilter): Call updateCache().
  10167. (enableFilter): Call updateCache().
  10168. (disableFilter): Call updateCache().
  10169. (clearFilter): Call updateCache().
  10170. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10171. (getFilteredTotalLengthNow): New function.
  10172. (getCompletedLength): Return cachedCompletedLength.
  10173. (getCompletedLengthNow): New function.
  10174. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10175. (getFilteredCompletedLengthNow): New function.
  10176. (updateCache): New function.
  10177. * src/BtMessageReceiver.h
  10178. (BtMessageReceiverWeakHandle): New type definition.
  10179. * src/DefaultBtMessageReceiver.cc
  10180. (receiveHandshake): Use messageFactory member.
  10181. (sendHandshake): Use messageFactory member.
  10182. (receiveMessage): Use messageFactory member.
  10183. * src/DefaultBtMessageFactory.h
  10184. (dispatcher): New variable.
  10185. (requestFactory): New variable.
  10186. (peerConnection): New variablle.
  10187. (setBtMessageDispatcher): New function.
  10188. (setBtRequestFactory): New function.
  10189. (setPeerConnection): New function.
  10190. * src/SharedHandle.h
  10191. (RefCount): New class.
  10192. (WeakHandle): New class.
  10193. * src/PeerObject.h
  10194. (BtMessageReceiver.h): New include.
  10195. (PeerObject): Added btMessageReceiver.
  10196. (btMessageReceiver): New variable.
  10197. * src/Util.cc
  10198. (countBit): Simplified.
  10199. * src/BtCancelMessage.cc
  10200. (doReceivedAction): Use dispatcher member.
  10201. * src/BtRequestFactory.h
  10202. (BtRequestFactoryWeakHandle): New type definition.
  10203. * src/PeerStorage.h
  10204. (downloadSpeed): int -> uint32_t
  10205. (uploadSpeed): int -> uint32_t
  10206. (sessionDownloadLength): long long int -> uint64_t
  10207. (sessionUploadLength): long long int -> uint64_t
  10208. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10209. To add RecoverableException, FatalException:
  10210. * src/AbstractCommand.cc
  10211. (onAbort): Exception -> RecoverableException
  10212. * src/PeerAbstractCommand.h
  10213. (RecoverableException.h): New include.
  10214. (onAbort): Exception -> RecoverableException.
  10215. * src/PeerInteractionCommand.cc
  10216. (onAbort): Exception -> RecoverableException.
  10217. * src/PeerAbstractCommand.cc
  10218. (execute): Exception -> RecoverableException.
  10219. (onAbort): Exception -> RecoverableException.
  10220. * src/TorrentRequestInfo.cc
  10221. (execute): Exception -> RecoverableException.
  10222. * src/MetalinkRequestInfo.cc
  10223. (execute): Exception -> RecoverableException.
  10224. * src/MetaFileUtil.cc: RecoverableException.
  10225. * src/AbstractCommand.h
  10226. (onAbort): Exception -> RecoverableException.
  10227. * src/DlRetryEx.h: Exception -> RecoverableException.
  10228. * src/DlAbortEx.h: Exception -> RecoverableException.
  10229. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  10230. * src/Util.cc: Exception -> RecoverableException.
  10231. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  10232. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  10233. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  10234. To make ID static const int
  10235. * src/BtInterestedMessage.h
  10236. (ID_t): Removed.
  10237. (ID): New variable.
  10238. (getId): Made non-const.
  10239. * src/BtPieceMessage.h
  10240. (ID_t): Removed.
  10241. (ID): New variable.
  10242. (getId): Made non-const.
  10243. * src/BtChokeMessage.h
  10244. (ID_t): Removed.
  10245. (ID): New variable.
  10246. (getId): Made non-const.
  10247. * src/BtHaveAllMessage.h
  10248. (ID_t): Removed.
  10249. (ID): New variable.
  10250. (getId): Made non-const.
  10251. * src/BtKeepAliveMessage.h
  10252. (ID_t): Removed.
  10253. (ID): New variable.
  10254. (getId): Made non-const.
  10255. * src/BtHandshakeMessage.h
  10256. (ID): New variable.
  10257. (getId): Made non-const.
  10258. * src/BtSuggestPieceMessage.h
  10259. (ID_t): Removed.
  10260. (ID): New variable.
  10261. (getId): Made non-const.
  10262. * src/BtPortMessage.h
  10263. (ID_t): Removed.
  10264. (ID): New variable.
  10265. (getId): Made non-const.
  10266. * src/AbstractBtMessage.h
  10267. (id): Removed.
  10268. (AbstractBtMessage): Removed id.
  10269. (getId): Removed.
  10270. * src/BtHaveMessage.h
  10271. (ID_t): Removed.
  10272. (ID): New variable.
  10273. (getId): Made non-const.
  10274. * src/BtAllowedFastMessage.h
  10275. (ID_t): Removed.
  10276. (ID): New variable.
  10277. (getId): Made non-const.
  10278. * src/BtCancelMessage.h
  10279. (ID_t): Removed.
  10280. (ID): New variable.
  10281. (getId): Made non-const.
  10282. * src/BtNotInterestedMessage.h
  10283. (ID_t): Removed.
  10284. (ID): New variable.
  10285. (getId): Made non-const.
  10286. * src/BtChokeMessage.h
  10287. (ID_t): Removed.
  10288. (ID): New variable.
  10289. (getId): Made non-const.
  10290. * src/BtRejectMessage.h
  10291. (ID_t): Removed.
  10292. (ID): New variable.
  10293. (getId): Made non-const.
  10294. * src/BtBitfieldMessage.h
  10295. (ID_t): Removed.
  10296. (ID): New variable.
  10297. (getId): Made non-const.
  10298. * src/BtUnchokeMessage.h
  10299. (ID_t): Removed.
  10300. (ID): New variable.
  10301. (getId): Made non-const.
  10302. * src/BtRequestMessage.h
  10303. (ID_t): Removed.
  10304. (ID): New variable.
  10305. (getId): Made non-const.
  10306. * src/BtHaveMessage.h
  10307. (ID_t): Removed.
  10308. (ID): New variable.
  10309. (getId): Made non-const.
  10310. To add --force-truncate command-line option and a check whether
  10311. the file already exists:
  10312. * src/DirectDiskAdaptor.h
  10313. (getFilePath): Made virtual public.
  10314. * src/MultiDiskAdaptor.h
  10315. (File.h): New include.
  10316. (DiskWriterEntry::fileEntry): Made private.
  10317. (DiskWriterEntry::fileExists): New function.
  10318. (DiskWriterEntry::getFileEntry): New function.
  10319. (fileExists): New function.
  10320. (getFilePath): New function.
  10321. * src/TorrentRequestInfo.cc
  10322. (FatalException.h): New include.
  10323. (message.h): New include.
  10324. (RecoverableException.h): New include.
  10325. (execute): Added a check whether file is already exists or not.
  10326. * src/DiskAdaptor.h
  10327. (fileExists): New function.
  10328. (getFilePath): New function.
  10329. * src/main.cc
  10330. (showUsage): Added an explanation of --force-truncate command-line
  10331. option.
  10332. (main): Added --force-truncate command-line option.
  10333. * src/Exception.h
  10334. (setMsg): buf[256] -> buf[1024]
  10335. * src/CopyDiskWriter.h
  10336. (getFilePath): Made public virtual.
  10337. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  10338. (fileExists): New function.
  10339. * src/DownloadEngineFactory.cc
  10340. (newTorrentConsoleEngine): Don't open file here.
  10341. * src/message.h
  10342. (EX_FILE_ALREADY_EXISTS): New definition.
  10343. * src/prefs.h
  10344. (PREF_FOECE_TRUNCATE): New definition.
  10345. * src/HttpResponseCommand.cc
  10346. (handleDefaultEncoding): Added a check whether the file already exists.
  10347. * src/SegmentMan.h
  10348. (fileExists): New function.
  10349. (shouldCancelDownloadForSafety): New function.
  10350. * src/FtpNegotiateCommand.cc
  10351. (recvSize): Added a check whether the file already exists.
  10352. * src/AbstractSingleDiskAdaptor.cc
  10353. (File.h): New include.
  10354. (fileExists): New function.
  10355. * src/AbstractSingleDiskAdaptor.h
  10356. (getFilePath): Removed.
  10357. (fileExists): New function.
  10358. * src/SegmentMan.cc
  10359. (fileExists): New function.
  10360. (shouldCancelDownloadForSafety): New function.
  10361. To fix regression bug in torrent downloading:
  10362. * src/DefaultBtRequestFactory.cc
  10363. (doChokedAction): New function.
  10364. * src/DefaultBtRequestFactory.h
  10365. (doChokedAction): New function.
  10366. * src/DefaultBtMessageDispatcher.cc
  10367. (doChokedAction): Do not delete request if its target is in allowed
  10368. fast set.
  10369. * src/DefaultBtInteractive.cc
  10370. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  10371. (sendKeepAlive): Send keep alive message even if the outgoing message
  10372. queue is not empty.
  10373. (decideInterest): Simplified the code.
  10374. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  10375. it is already called when BtChokeMessage is received from a peer.
  10376. * src/BtRequestFactory.h
  10377. (doChokedAction): New function.
  10378. To clean up code:
  10379. * src/PeerInteractionCommand.h
  10380. (executeInternal): Added virtual keyword explicitly.
  10381. (prepareForRetry): Added virtual keyword explicitly.
  10382. (prepareForNextPeer): Added virtual keyword explicitly.
  10383. (onAbort): Added virtual keyword explicitly.
  10384. * src/RequestSlot.cc
  10385. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  10386. * src/BtPieceMessage.cc
  10387. (doReceivedAction): Added a debug log of piece's bitfield.
  10388. * src/Piece.h
  10389. (getBitfieldLength): New function.
  10390. * src/ByteArrayDiskWriter.cc
  10391. (clear): Added buf = 0 to avoid double free corruption.
  10392. * src/FileAllocator.cc
  10393. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  10394. Added cp.reset().
  10395. * src/BitfieldMan.h
  10396. (operator=): Rewritten.
  10397. * src/BitfieldMan.cc
  10398. (BitfieldMan): Initialized bitfield, useBitfield.
  10399. * src/PeerConnection.cc
  10400. (receiveMessage): Added a call to socket->readable() after getting
  10401. message length to avoid possible EOF.
  10402. * src/Util.cc
  10403. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  10404. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10405. To add an ability to pre-allocate file space:
  10406. * src/DirectDiskAdaptor.h: Rewritten.
  10407. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  10408. * src/MultiDiskAdaptor.h: Rewritten.
  10409. * src/DefaultPieceStorage.cc
  10410. (MultiDiskWriter.h): Removed include.
  10411. (PreAllocationDiskWriter.h): Removed include.
  10412. (FileAllocationMonitor.h): New include.
  10413. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  10414. (initStorage): Rewritten.
  10415. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10416. * src/FileAllocator.h: New class.
  10417. * src/FileAllocator.cc: New class.
  10418. * src/FileAllocationMonitor.h: New class.
  10419. * src/FileAllocationMonitor.cc: New class.
  10420. * src/ConsoleFileAllocationMonitor.h: New class.
  10421. * src/ConsoleFileAllocationMonitor.cc: New class.
  10422. * src/AbstractSingleDiskAdaptor.h: New class.
  10423. * src/AbstractSingleDiskAdaptor.cc: New class.
  10424. * src/DiskAdaptor.h
  10425. (Directory.h): Removed include.
  10426. (DiskWriter.h): Removed include.
  10427. (FileEntry.h): Removed include.
  10428. (diskWriter): Removed.
  10429. (DiskAdaptor): Removed diskWriter.
  10430. (openFile): Made pure virtual.
  10431. (closeFile): Made pure virtual.
  10432. (openExistingFile): Made pure virtual.
  10433. (initAndOpenFile): Made pure virtual.
  10434. (writeData): Made pure virtual.
  10435. (readData): Made pure virtual.
  10436. (sha1Sum): Made pure virtual.
  10437. (getStoreDir): Returns const reference of storeDir.
  10438. (DiskAdaptorHandle): New type definition.
  10439. * src/main.cc
  10440. (ConsoleFileAllocationMonitor.h): New include.
  10441. (showUsage): Added default value description of -s option.
  10442. Added the description of --file-allocation option.
  10443. (main): Set default value of --file-allocation option to 'none'.
  10444. Added --file-allocation command-line option.
  10445. Setup FileAllocationMonitorFactory.
  10446. * src/FtpInitiateConnectionCommand.cc
  10447. (executeInternal): Removed diskWriter related processing, which was
  10448. moved to FtpNegotiationCommand.cc.
  10449. * src/DirectDiskAdaptor.cc
  10450. (getFilePath): Made non-const.
  10451. * src/CopyDiskAdaptor.h
  10452. (DiskAdaptor.h): Removed include.
  10453. (DiskWriter.h): Removed include.
  10454. (AbstractSingleDiskAdaptor.h): New include.
  10455. (getFilePath): Made non-const. Added virtual keyword.
  10456. (CopyDiskAdaptor): Removed diskWriter.
  10457. (getTempFile): Returns const reference.
  10458. (CopyDiskAdaptorHandle): New type definition.
  10459. * src/ByteArrayDiskWriter.cc
  10460. (clear): Simplified.
  10461. (initAndOpenFile): Rewritten.
  10462. (openFile): Call initAndOpenFile()
  10463. * src/MultiDiskAdaptor.cc: Rewritten.
  10464. * src/DownloadEngineFactory.cc
  10465. (FileAllocator.h): New include.
  10466. (FileAllocationMonitor.h): New include.
  10467. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  10468. create DefaultDiskWriter with file allocator.
  10469. * src/DiskWriter.h
  10470. (initAndOpenFile): Added totalLength argument.
  10471. (openFile): Added totalLength argument.
  10472. * src/prefs.h
  10473. (PREF_FILE_ALLOCATION): New definition.
  10474. (V_PREALLOC): New definition.
  10475. (V_NONE): New definition.
  10476. * src/HttpResponseCommand.cc
  10477. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  10478. size.
  10479. * src/FtpNegotiateCommand.cc
  10480. (Util.h): New include.
  10481. (recvSize): Open file here.
  10482. * src/Util.h
  10483. (ullitos): New function.
  10484. * src/CopyDiskWriter.h
  10485. (getFilePath): Made non-const.
  10486. * src/DefaultDiskWriter.h
  10487. (Option.h): New include.
  10488. (totalLength): Removed.
  10489. (DefaultDiskWriter): Removed totalLength.
  10490. (initAndOpenFile): Added totalLength argument.
  10491. (DefaultDiskWriterHandle): New type definition.
  10492. (createNewDiskWriter): New function.
  10493. * src/Util.cc
  10494. (ullitos): New function.
  10495. * src/DefaultDiskWriter.cc
  10496. (message.h): New include.
  10497. (FileAllocator.h): New include.
  10498. (prefs.h): New include.
  10499. (Util.h): New include.
  10500. (DefaultDiskWriter): Removed totalLength.
  10501. (initAndOpenFile): Added file allocation.
  10502. (createNewDiskWriter): New function. Just for temporary solution.
  10503. It will be rewritten later.
  10504. * src/DiskAdaptor.cc
  10505. (DiskAdaptor): Removed diskWriter.
  10506. * src/AbstractDiskWriter.cc
  10507. (LogFactory.h): New include.
  10508. (AbstractDiskWriter): Added fileAllocator, logger.
  10509. (openFile): Added totalLength argument.
  10510. * src/AbstractDiskWriter.h
  10511. (FileAllocator.h): New include.
  10512. (Logger.h): New include.
  10513. (fileAllocator): New variable.
  10514. (logger): New variable.
  10515. (openFile): Added totalLength argument. Added virtual keyword
  10516. explicitly.
  10517. (openExistingFile): Added totalLength argument. Added virtual keyword
  10518. explicitly.
  10519. (closeFile): Added virtual keyword explicitly.
  10520. (sha1Sum): Added virtual keyword explicitly.
  10521. (writeData): Added virtual keyword explicitly.
  10522. (readData): Added virtual keyword explicitly.
  10523. (setFileAllocator): New function.
  10524. * src/DefaultPieceStorage.h
  10525. (FileAllocator.h): New include.
  10526. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10527. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10528. * src/FileProgressMonitor.h: New class.
  10529. To compile aria2 on PC-BSD:
  10530. * src/DefaultBtContext.cc
  10531. (libgen.h): New include.
  10532. To fix memory leak:
  10533. * src/Exception.h
  10534. (~Exception): Delete cause. Fixed memory leak.
  10535. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10536. Rewritten a portion of bittorrent implementation:
  10537. * src/BtMessageValidator.h: New class.
  10538. * src/BtBitfieldMessageValidator.h: New class.
  10539. * src/BtHandshakeMessageValidator.h: New class.
  10540. * src/BtRequestMessageValidator.h: New class.
  10541. * src/BtSuggestPieceMessageValidator.h: New class.
  10542. * src/BtAllowedFastMessageValidator.h: New class.
  10543. * src/BtRejectMessageValidator.h: New class.
  10544. * src/BtCancelMessageValidator.h: New class.
  10545. * src/BtPieceMessageValidator.h: New class.
  10546. * src/BtHaveMessageValidator.h: New class.
  10547. * src/BtEventListener.h: New class.
  10548. * src/AbstractBtEventListener.h: New class.
  10549. * src/BtEvent.h: New class.
  10550. * src/BtChokingEvent.h: New class.
  10551. * src/BtChokedEvent.h: New class.
  10552. * src/BtCancelSendingPieceEvent.h: New class.
  10553. * src/BtAbortOutstandingRequestEvent.h: New class.
  10554. * src/Randomizer.h: New class.
  10555. * src/SimpleRandomizer.h: New class.
  10556. * src/BtMessage.h: New class.
  10557. * src/AbstractBtMessage.h: New class.
  10558. * src/SimpleBtMessage.h: New class.
  10559. * src/BtHaveMessage.h: New class.
  10560. * src/BtInterestedMessage.h: New class.
  10561. * src/BtAllowedFastMessage.h: New class.
  10562. * src/BtUnchokeMessage.h: New class.
  10563. * src/BtCancelMessage.h: New class.
  10564. * src/BtNotInterestedMessage.h: New class.
  10565. * src/BtChokeMessage.h: New class.
  10566. * src/BtHaveNoneMessage.h: New class.
  10567. * src/BtHandshakeMessage.h: New class.
  10568. * src/BtSuggestPieceMessage.h: New class.
  10569. * src/BtHaveMessage.h: New class.
  10570. * src/BtPieceMessage.h: New class.
  10571. * src/BtHaveAllMessage.h: New class.
  10572. * src/BtKeepAliveMessage.h: New class.
  10573. * src/BtPortMessage.h: New class.
  10574. * src/BtRejectMessage.h: New class.
  10575. * src/BtBitfieldMessage.h: New class.
  10576. * src/BtRequestMessage.h: New class.
  10577. * src/DefaultBtRequestFactory.h: New class.
  10578. * src/DefaultBtMessageReceiver.h: New class.
  10579. * src/BtInteractive.h: New class.
  10580. * src/BtMessageDispatcher.h: New class.
  10581. * src/DefaultBtMessageDispatcher.h: New class.
  10582. * src/DefaultBtInteractive.h: New class.
  10583. * src/BitfieldManFactory.h: New class.
  10584. * src/HandleRegistry.h: New class.
  10585. * src/BtMessageFactory.h: New class.
  10586. * src/BtMessageReceiver.h: New class.
  10587. * src/DefaultBtMessageFactory.h: New class.
  10588. * src/PeerObject.h: New class.
  10589. * src/BtRequestFactory.h: New class.
  10590. * src/SuggestPieceMessage.h: Removed.
  10591. * src/PortMessage.h: Removed.
  10592. * src/SuggestPieceMessage.h: Removed.
  10593. * src/KeepAliveMessage.h: Removed.
  10594. * src/HandshakeMessage.h: Removed.
  10595. * src/PeerInteraction.h: Removed.
  10596. * src/UnchokeMessage.h: Removed.
  10597. * src/PieceMessage.h: Removed.
  10598. * src/RequestMessage.h: Removed.
  10599. * src/InterestedMessage.h: Removed.
  10600. * src/HaveMessage.h: Removed.
  10601. * src/CancelMessage.h: Removed.
  10602. * src/RejectMessage.h: Removed.
  10603. * src/AllowedFastMessage.h: Removed.
  10604. * src/HaveNoneMessage.h: Removed.
  10605. * src/SimplePeerMessage.h: Removed.
  10606. * src/HaveAllMessage.h: Removed.
  10607. * src/BitfieldMessage.h: Removed.
  10608. * src/PeerMessageFactory.h: Removed.
  10609. * src/NotInterestedMessage.h: Removed.
  10610. * src/ChokeMessage.h: Removed.
  10611. * src/PeerMessage.h: Removed.
  10612. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. To know root cause of exception:
  10614. * src/Exception.h
  10615. (cause): New variable.
  10616. (Exception): Added a parameter.
  10617. (getMsg): Return const reference to msg.
  10618. (getCause): New function.
  10619. * src/DlRetryEx.h
  10620. (DlRetryEx): Added a parameter 'cause'.
  10621. Added an overloaded constructor.
  10622. (DlAbortEx): Added a parameter 'cause'.
  10623. Added an overloaded constructor.
  10624. * src/SimpleLogger.cc
  10625. (writeLog): Log nested exception messages recursively.
  10626. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10627. * src/DefaultBtProgressInfoFile.cc
  10628. (load): Fixed memory leak when the infohash doesn't match.
  10629. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10630. * src/DefaultPeerStorage.cc
  10631. (calculateStat): Simplified the code by combining 2 loops into 1.
  10632. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10633. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10634. for BitTorrent download:
  10635. * src/PeerAbstractCommand.cc
  10636. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10637. * src/main.cc:
  10638. (timeoutSpecified): Removed.
  10639. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10640. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10641. * src/TorrentRequestInfo.cc
  10642. (timeoutSpecified): Removed.
  10643. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10644. timeout value.
  10645. * src/prefs.h
  10646. (PREF_BT_TIMEOUT): New definition.
  10647. Delete unused variables:
  10648. * src/TorrentRequestInfo.cc
  10649. (requestInfo): Removed.
  10650. Move setSignalHander to Util::setGlobalSignalHandler:
  10651. * src/TorrentRequestInfo.cc:
  10652. setSignalHander -> Util::setGlobalSignalHandler
  10653. * src/main.cc
  10654. (setSignalHander): Removed.
  10655. (main): setSignalHander -> Util::setGlobalSignalHandler
  10656. * src/Util.h
  10657. (setGlobalSignalHandler): New function.
  10658. * src/Util.cc
  10659. (setGlobalSignalHandler): New function.
  10660. * src/UrlRequestInfo.cc:
  10661. setSignalHander -> Util::setGlobalSignalHandler
  10662. Reset peer status in order to exit gracefully:
  10663. * src/PeerAbstractCommand.cc
  10664. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10665. To fix the bug that causes the number of bytes uploaded is not saved
  10666. to .aria2 file:
  10667. * src/DefaultPeerStorage.h
  10668. (removedPeerSessionDownloadLength): New variable.
  10669. (removedPeerSessionUploadLength): New variable.
  10670. * src/DefaultPeerStorage.cc
  10671. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10672. removedPeerSessionUploadLength(0).
  10673. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10674. through all peers, and then add removedPeerSessionDownloadLength(
  10675. removedPeerSessionUploadLength) to it.
  10676. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10677. (to) the peer to removedPeerSessionDownloadLength
  10678. (removedPeerSessionUploadLength).
  10679. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10680. To add Metalink location option:
  10681. * src/MetalinkRequestInfo.cc
  10682. (execute): Call MetalinkEntry::setLocationPreference()
  10683. * src/main.cc
  10684. (showUsage): Added the help message for --metalink-location option.
  10685. (main): Added --metalink-location option.
  10686. * src/prefs.h
  10687. (PREF_METALINK_LOCATION): New definition.
  10688. * src/MetalinkEntry.cc
  10689. (AddLocationPreference): New function object.
  10690. (setLocationPreference): New function.
  10691. * src/Xml2MetalinkProcessor.cc
  10692. (getResource): Set location attribute to MetalinkResource
  10693. To show URLs to download
  10694. * src/UrlRequestInfo.h
  10695. (printUrls): New function.
  10696. To add multiple <file> Metalink support:
  10697. * src/MetalinkEntry.h
  10698. (MetalinkResources): Removed.
  10699. (setLocationPreference): New function.
  10700. (MetalinkEntryHandle): New type definition.
  10701. (MetalinkEntries): New type definition.
  10702. * src/Xml2MetalinkProcessor.h
  10703. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10704. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10705. (parseFile): Metalinker* -> MetalinkerHandle
  10706. * src/UrlRequestInfo.h
  10707. (execute): RequestInfo* -> RequestInfos
  10708. * src/MetalinkRequestInfo.cc
  10709. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10710. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10711. (execute): RequestInfo* -> RequestInfos
  10712. Added multiple <file> support. Print filename when it is queued.
  10713. * src/MetalinkRequestInfo.h
  10714. (execute): RequestInfo* -> RequestInfos
  10715. (getDownloadEngine): Removed.
  10716. * src/RequestInfo.h
  10717. (RequestInfoHandle): New type definition.
  10718. (RequestInfos): New type definition.
  10719. (execute): RequestInfo* -> RequestInfos
  10720. (getDownloadEngine): Removed.
  10721. * src/MetalinkResource.h
  10722. (MetalinkResourceHandle): New type definition.
  10723. (MetalinkResources): New type definition.
  10724. * src/MetalinkEntry.cc
  10725. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10726. because the element is now of type MetalinkResourceHandle.
  10727. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10728. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10729. (dropUnsupportedResource): Removed the deletion of the elements of
  10730. resources because the element is now of type MetalinkResourceHandle.
  10731. * src/Xml2MetalinkProcessor.cc
  10732. (parseFile): Metalinker* -> MetalinkerHandle
  10733. MetalinkEntry* -> MetalinkEntryHandle
  10734. Removed try-catch block.
  10735. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10736. MetalinkResource* -> MetalinkResourceHandle
  10737. Removed try-catch block.
  10738. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10739. Free result by using xmlXPathFreeObject()
  10740. * src/Metalinker.cc
  10741. (~Metalinker): Removed the deletion of entries.
  10742. MetalinkEntry* -> MetalinkEntryHandle
  10743. (queryEntry): Add multiple <file> Metalink support.
  10744. * src/Metalinker.h
  10745. (MetalinkEntries): Removed.
  10746. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10747. * src/MetalinkProcessor.h
  10748. (parseFile): Metalinker* -> MetalinkerHandle
  10749. Bug fixes:
  10750. * src/PeerChokeCommand.cc
  10751. (execute): cat01->cat02
  10752. * src/DefaultPieceStorage.cc
  10753. (DefaultPieceStorage): Added diskAdaptor(0)
  10754. * src/TrackerWatcherComand.cc:
  10755. (execute): Use btAnnounce->noMoreAnnounce()
  10756. to determin whether the function returns true or not.
  10757. * src/TrackerUpdateCommand.cc:
  10758. (execute): Use btAnnounce->noMoreAnnounce()
  10759. to determin whether the function returns true or not.
  10760. * src/FtpConnection.cc
  10761. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10762. This is the fix of the busy loop bug.
  10763. * src/DownloadCommand.cc
  10764. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10765. cached PeerStat.
  10766. The value of "name" entry in torrent file is now set by
  10767. *DiskAdaptor::setTopDir(...) methods.
  10768. * src/MultiDiskAdaptor.h
  10769. (topDir): New variable.
  10770. (setTopDir): New function.
  10771. (getTopDir): New function.
  10772. * src/MultiDiskAdaptor.cc
  10773. (getFilePath): Concat storDir, "/" and topDir.
  10774. (mkdir): Use getFilePath() to get the directory path for output.
  10775. * src/DefaultPieceStorage.cc
  10776. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10777. CopyDiskAdaptor.
  10778. * src/CopyDiskAdaptor.h
  10779. (topDir): New variable.
  10780. (setTopDir): New function.
  10781. (getTopDir): New function.
  10782. * src/CopyDiskAdaptor.cc
  10783. (fixFilename): Updated.
  10784. Misc
  10785. * src/UrlRequestInfo.h
  10786. (e): Removed.
  10787. (UrlRequestInfo): Removed e.
  10788. (getDownloadEngine): Removed.
  10789. * src/UrlRequestInfo.cc
  10790. (handler): Rewritten.
  10791. (printUrls): New function.
  10792. (execute): Call printUrls().
  10793. * src/HandshakeMessage.cc
  10794. (check): peerinteraction->getBtContext() -> btContext
  10795. * src/PeerInteraction.h
  10796. (getBtContext): Removed.
  10797. * src/TorrentRequestInfo.h
  10798. (execute): RequestInfo* -> RequestInfos
  10799. (getDownloadEngine): Removed.
  10800. * src/TorrentRequestInfo.cc
  10801. (haltRequested): Removed.
  10802. (btHaltRequested): New variable.
  10803. (torrentHandler): haltRequested -> btHaltRequested
  10804. (execute): RequestInfo* -> RequestInfos
  10805. * src/TorrentConsoleDownloadEngine.cc
  10806. (afterEachIteration): haltRequested -> btHaltRequested.
  10807. * src/ConsoleDownloadEngine.h
  10808. (initStatistics): Added virtual.
  10809. (calculateStatistics): Added virtual.
  10810. (onEndOfRun): Added virtual.
  10811. (afterEachIteration): Added virtual.
  10812. * src/ConsoleDownloadEngine.cc
  10813. (haltRequested): New variable.
  10814. (afterEachIteration): New function.
  10815. * src/main.cc
  10816. (requestInfo): Removed.
  10817. * src/SegmentMan.cc
  10818. (findSlowerSegmentEntry): Refactored.
  10819. * Release 0.9.0
  10820. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10821. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10822. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10823. * src/TorrentMan.h: Removed.
  10824. * src/TorrentMan.cc: Removed.
  10825. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10826. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10827. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10828. * src/PeerAbstractCommand.cc: Use btRuntime.
  10829. * src/BtContextAwareCommand.h: New class.
  10830. * src/FileEntry.h: Added accessor methods for following variables.
  10831. (path): Made private.
  10832. (length): Made private.
  10833. (offset): Made private.
  10834. (extracted): Made private.
  10835. (requested): Made private.
  10836. (FileEntries): New definition.
  10837. (FileEntryHandle): New definition.
  10838. * src/FileEntry.cc: New file.
  10839. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10840. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10841. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10842. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10843. * src/PieceStorage.h: New file.
  10844. * src/PeerInteractionCommand.h: Use btContext.
  10845. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10846. btRuntime.
  10847. * src/DefaultBtProgressInfoFile.h: New file.
  10848. * src/DefaultBtProgressInfoFile.cc: New file.
  10849. * src/File.cc
  10850. (Util.h): New include.
  10851. (mkdirs): New function.
  10852. * src/MultiDiskAdaptor.h
  10853. (mkdir): New function.
  10854. * src/PeerListProcessor.h
  10855. (Peers): Removed.
  10856. * src/PeerInteraction.h
  10857. (torrentMan): Removed.
  10858. (btContext): New variable.
  10859. (peerStorage): New variable.
  10860. (pieceStorage): New variable.
  10861. (btAnnounce): New variable.
  10862. (getTorrentMan): Removed.
  10863. (getBtContext): New function.
  10864. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10865. btAnnounce.
  10866. * src/HandshakeMessage.h
  10867. (TorrentMan.h): Removed.
  10868. * src/HandshakeMessage.cc: Use btContext.
  10869. * src/DefaultBtAnnounce.cc: New file.
  10870. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10871. * src/DefaultPieceStorage.cc: New file.
  10872. * src/DefaultBtContext.h: New file.
  10873. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10874. Use the accessor methods of FileEntry.
  10875. * src/CookieBox.cc: Updated to use Util::slice().
  10876. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10877. * src/common.h (SharedHandle.h): New include.
  10878. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10879. pieceStorage.
  10880. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10881. * src/DiskAdaptor.h
  10882. (topDir): Removed.
  10883. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10884. (setTopDir): Removed.
  10885. (getTopDir): Removed.
  10886. * src/BtContext.h: New file.
  10887. * src/DefaultPeerStorage.h: New file.
  10888. * src/PieceMessage.h (TorrentMan.h): Removed.
  10889. * src/RequestMessage.h (TorrentMan.h): Removed.
  10890. * src/TorrentDownloadEngine.h
  10891. (uploadLength): New variable.
  10892. (btContext): New variable.
  10893. (btRuntime): New variable.
  10894. (pieceStorage): New variable.
  10895. (peerStorage): New variable.
  10896. (btAnnounce): New variable.
  10897. (btProgressInfoFile): New variable.
  10898. (torrentMan): Removed.
  10899. (setBtContext): New function.
  10900. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10901. peerStorage, btAnnounce, btProgressInfoFile.
  10902. * src/Piece.h
  10903. (toString): New function.
  10904. (Pieces): New type definition.
  10905. * src/Peer.h
  10906. (active): New variable.
  10907. (Peer): Added active.
  10908. (activate): Set active to true.
  10909. (deactivate): Set active to false.
  10910. (isActive): New function.
  10911. (Peers): New type definition.
  10912. * src/DirectDiskAdaptor.cc
  10913. (getFilePath): Use the accessor methods of FileEntry.
  10914. * src/TorrentConsoleDownloadEngine.h
  10915. (afterEachIteration): New function.
  10916. * src/TorrentConsoleDownloadEngine.cc
  10917. (haltRequested): New variable.
  10918. (sendStatistics): Use pieceStorage, btRuntime.
  10919. (afterEachIteration): New function.
  10920. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10921. * src/Directry.h
  10922. (Directory): New function.
  10923. (DirectoryHandle): New type definition.
  10924. * src/BtProgressInfoFile.h: New file.
  10925. * src/RequestMessage.cc: Use pieceStorage.
  10926. * src/BtRuntime.h: New file.
  10927. * src/DefaultBtContext.cc: New file.
  10928. * src/BitfieldMan.h
  10929. (getCompletedLength): New function(private).
  10930. (getCompletedLength): New function.
  10931. (getFilteredCompletedLength): New function.
  10932. * src/BitfieldMan.h
  10933. (getCompletedLength): New function(private).
  10934. (getCompletedLength): New function.
  10935. (getFilteredCompletedLength): New function.
  10936. * src/MultiDiskAdaptor.cc
  10937. (mkdir): New function.
  10938. (openFile): Call mkdir().
  10939. (initAndOpenFile): Call mkdir().
  10940. * src/CancelMessage.h
  10941. (TorrentMan.h): Removed.
  10942. * src/RejectMessage.h
  10943. (TorrentMan.h): Removed.
  10944. * src/DownloadEngineFactory.cc
  10945. (DefaultPieceStorage.h): New include.
  10946. (DefaultPeerStorage.h): New include.
  10947. (DefaultBtAnnounce.h): New include.
  10948. (DefaultBtProgressInfoFile.h): New include.
  10949. (newTorrentConsoleEngine): Rewritten.
  10950. * src/ShareRatioSeedCriteria.h
  10951. (torrentMan): Removed.
  10952. (btContext): New variable.
  10953. (peerStorage): New variable.
  10954. (btRuntime): New variable.
  10955. (evaluate): Use btContext, btRuntime, peerStorage.
  10956. * src/AnnounceTier.h: New file.
  10957. * src/BtAnnounce.h: New file.
  10958. * src/BtRegistry.h: New file.
  10959. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10960. * src/PeerConnection.h (TorrentMan.h): Removed.
  10961. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10962. * src/Util.h
  10963. (slice): Added an argument.
  10964. * src/Util.cc
  10965. (slice): Added an argument to control whether trim is made or not.
  10966. * src/PeerStorage.h: New file.
  10967. * src/BtRegistry.cc: New file.
  10968. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10969. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10970. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10971. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10972. * src/TorrentRequestInfo.h
  10973. (e): Removed.
  10974. (showFileEntry): Added an argument.
  10975. (getDownloadEngine): Return 0.
  10976. * src/DefaultBtAnnounce.h: New file.
  10977. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10978. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10979. * src/PeerMessageFactory.h
  10980. (btContext): New variable.
  10981. (pieceStorage): New variable.
  10982. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10983. btAnnounce.
  10984. * src/DiskAdaptor.cc
  10985. (DiskAdaptor): Removed topDir.
  10986. (~DiskAdaptor): Removed topDir.
  10987. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10988. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10989. * src/File.h (mkdirs): New function.
  10990. * src/DefaultPeerStorage): New file.
  10991. * src/DownloadEngineFactory.h
  10992. (newTorrentConsoleEngine): Use btContext.
  10993. * src/BtContextAwareCommand.cc: New file.
  10994. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10995. * src/PeerMessage.h
  10996. (btContext): New variable.
  10997. (peerStorage): New variable.
  10998. (pieceStorage): New variable.
  10999. (setBtContext): New function.
  11000. * src/Directry.cc
  11001. (Directory): New function.
  11002. (createDir): Do nothing if name.size() == 0.
  11003. * src/AnnounceList.h
  11004. (AnnounceTier): Removed.
  11005. (AnnounceTiers): Removed.
  11006. * src/DefaultPieceStorage.h: New file.
  11007. * src/Piece.cc (toString): New function.
  11008. To fix typo:
  11009. * src/main.cc (showVersion): Fixed typo.
  11010. To fix compile warning:
  11011. * src/DelegatingPeerListProcessor.cc
  11012. (canHandle): Added "return false".
  11013. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11014. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11015. make the process of announce request testable.
  11016. * src/TrackerWatcherCommand.h
  11017. (TimeA2.h): Removed.
  11018. (interval): Removed.
  11019. (checkPoint): Removed.
  11020. (createRequestCommand): Added an argument 'url'.
  11021. (TrackerWatherCommand): Removed interval.
  11022. (createCommand): New function.
  11023. * src/DownloadEngineFactory.cc
  11024. (newTorrentConsoleEngine): Updated according to the changes in
  11025. TrackerWatherCommand.
  11026. * src/TorrentMan.cc
  11027. (DelegatingPeerListProcessor.h): New includes.
  11028. (TorrentMan): Added the initialization of announceInterval.
  11029. (isStoppedAnnounceReady): New function.
  11030. (isCompletedAnnounceReady): New function.
  11031. (isDefaultAnnounceReady): New function.
  11032. (isAnnounceReady): New function.
  11033. (getAnnounceUrl): New function.
  11034. (announceStart): New function.
  11035. (announceFailure): New function.
  11036. (announceSuccess): New function.
  11037. (isAllAnnounceFailed): New function.
  11038. (resetAnnounce): New function.
  11039. (processAnnounceResponse): New function.
  11040. (needMorePeerConnection): New function.
  11041. (noMoreAnnounce): New function.
  11042. * src/TrackerUpdateCommand.h
  11043. (getTrackerResponse): int->size_t
  11044. * src/TorrentMan.h
  11045. (isStoppedAnnounceReady): New function.
  11046. (isCompletedAnnounceReady): New function.
  11047. (isDefaultAnnounceReady): New function.
  11048. (announceInterval): New variable.
  11049. (isAnnounceReady): New function.
  11050. (getAnnounceUrl): New function.
  11051. (announceStart): New function.
  11052. (announceFailure): New function.
  11053. (announceSuccess): New function.
  11054. (isAllAnnounceFailed): New function.
  11055. (resetAnnounce): New function.
  11056. (processAnnounceResponse): New function.
  11057. (needMorePeerConnection): New function.
  11058. (noMoreAnnounce): New function.
  11059. * src/TrackerWatcherCommand.cc
  11060. (TrackerWatherCommand): Removed interval and checkPoint.
  11061. (execute): Rewritten.
  11062. (createCommand): New function.
  11063. (createRequestCommand): Rewritten.
  11064. * src/TrackerUpdateCommand.cc
  11065. (MetaFileUtil.h): Removed.
  11066. (DelegatingPeerListProcessor.h): Removed.
  11067. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11068. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11069. Request -> RequestHandle:
  11070. * src/HttpResponseCommand.h: Request->RequestHandle
  11071. * src/AbstractCommand.cc: Request->RequestHandle
  11072. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11073. * src/HttpRequestCommand.cc: Request->RequestHandle
  11074. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11075. * src/AbstractCommand.h: Request->RequestHandle
  11076. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11077. * src/HttpResponseCommand.cc: Request->RequestHandle
  11078. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11079. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11080. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11081. * src/HttpConnection.h: Request->RequestHandle
  11082. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11083. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11084. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11085. * src/DownloadCommand.h: Request->RequestHandle
  11086. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11087. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11088. * src/HttpRequestCommand.h: Request->RequestHandle
  11089. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11090. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11091. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11092. * src/HttpDownloadCommand.h: Request->RequestHandle
  11093. * src/FtpConnection.cc: Request->RequestHandle
  11094. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11095. * src/UrlRequestInfo.cc: Request->RequestHandle
  11096. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11097. * src/HttpConnection.h: Request->RequestHandle
  11098. * src/DownloadCommand.cc: Request->RequestHandle
  11099. * src/FtpConnection.h: Request->RequestHandle
  11100. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11101. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11102. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11103. * src/Request.h
  11104. (SharedHandle.h): New include.
  11105. (RequestHandle): New type definition.
  11106. (Requests): Redefined.
  11107. To add MULTITRACKER support:
  11108. * src/TrackerWatcherCommand.h
  11109. (createRequestCommand): New function.
  11110. * src/DownloadEngineFactory.cc
  11111. (newTorrentConsoleEngine): Removed req.
  11112. * src/prefs.h
  11113. (PREF_TRACKER_MAX_TRIES): New definition.
  11114. * src/TorrentMan.cc
  11115. (TorrentMan): Removed req. Added trackerNumTry.
  11116. (~TorrentMan): Removed req.
  11117. (setupInternal1): Added announceList.
  11118. * src/TorrentRequestInfo.cc
  11119. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11120. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11121. * src/main.cc
  11122. (main): Added PREF_TRACKER_MAX_TRIES.
  11123. * src/TorrentMan.h
  11124. (Request.h): Removed.
  11125. (AnnounceList.h): New include.
  11126. (trackerNumTry): New variable.
  11127. (req): Removed.
  11128. (announceList): New variable.
  11129. * src/TrackerWatcherCommand.cc
  11130. (execute): Rewritten.
  11131. (createRequestCommand): New function.
  11132. * src/TrackerUpdateCommand.cc
  11133. (execute): Updated with the use of AnnounceList.
  11134. * src/AnnounceList.cc: New class.
  11135. * src/AnnounceList.h: New class.
  11136. To fix typo:
  11137. * src/prefs.h
  11138. (PREF_MAX_TRIES): max_try->max_tries
  11139. To not to decode "+" as space in URL decode:
  11140. * src/Util.cc
  11141. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11142. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11143. To add timeout to async name resolution:
  11144. * src/AbstractCommand.h
  11145. (nameResolveFinished): New function. This is not elegant way. It needs
  11146. to be more refined.
  11147. (nameResolverCheck): New variable.
  11148. * src/AbstractCommand.cc
  11149. (AbstractCommand): Added nameResolverCheck.
  11150. (execute): Added the check whether the name resolution has finished.
  11151. (setNameResolverCheck): Set nameResolverCheck to true.
  11152. (disableNameResolverCheck): Set nameResolverCheck to false.
  11153. (nameResolverFinished): New function.
  11154. * src/FtpInitiateConnectionCommand.h
  11155. (nameResolverFinished): New function.
  11156. * src/FtpInitiateConnectionCommand.cc
  11157. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11158. * src/HttpInitiateConnectionCommand.h
  11159. (nameResolverFinished): New function.
  11160. * src/HttpInitiateConnectionCommand.cc
  11161. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11162. * src/prefs.h
  11163. (PREF_DNS_TIMEOUT): New definition.
  11164. * src/main.cc
  11165. (main): Added PREF_DNS_TIMEOUT.
  11166. To add the support for a non-compact response from a tracker:
  11167. * src/PeerListProcessor.h: New class.
  11168. * src/DefaultPeerListProcessor.h: New class.
  11169. * src/DefaultPeerListProcessor.cc: New class.
  11170. * src/CompactPeerListProcessor.h: New class.
  11171. * src/CompactPeerListProcessor.cc: New class.
  11172. * src/DelegatingPeerListProcessor.h: New class.
  11173. * src/DelegatingPeerListProcessor.cc: New class.
  11174. * src/TorrentMan.cc
  11175. (addPeer): New function(overload).
  11176. (addPeer): Delete unused peers only when new peer is added.
  11177. * src/TorrentMan.h
  11178. (PeerListProcessor.h): Included.
  11179. (Peers): Removed.
  11180. (addPeer): New function(overload).
  11181. * src/TrackerUpdateCommand.cc
  11182. (netinet/in.h): Removed.
  11183. (DelegatingPeerListProcessor.h): Included.
  11184. (execute): Updated to use DelegatingPeerListProcessor.
  11185. To fix the memory leak in TorrentMan::peers:
  11186. * src/PeerAbstractCommand.cc
  11187. (onAbort): Added peer->resetStatus().
  11188. * src/Peer.h
  11189. (resetStatus): Made public.
  11190. To improve the precision of the speed calculation:
  11191. * src/SpeedCalc.h
  11192. (nextInterval): New variable.
  11193. * src/SpeedCalc.cc
  11194. (reset): Added nextInterval.
  11195. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11196. (changeSw): Set nextInterval to 15 seconds relative to the current
  11197. instant time.
  11198. * src/main.cc
  11199. (showVersion): Updated.
  11200. (showUsage): Updated.
  11201. * Release 0.8.1
  11202. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11203. * src/main.cc
  11204. (showUsage): Commented out --min-segment-size option.
  11205. (main): Commented out --min-segment-size option.
  11206. * Release 0.8.0
  11207. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11208. * src/*.{h,cc}:
  11209. Added an exception to the license which allows linking with OpenSSL.
  11210. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11211. * src/AbstractCommand.cc
  11212. (execute): Check whether the download has finished before checking
  11213. socket status.
  11214. Return true if peerStat->getStatus() == REQUEST_IDLE.
  11215. Do not exit even if no segment is available.
  11216. * src/prefs.h
  11217. (PREF_STARTUP_IDLE_TIME): New definition.
  11218. * src/PeerInteractionCommand.cc
  11219. (executeInternal): Removed max speed limit. Because it performs bad.
  11220. (receiveMessages): Added max speed limit. This was better than above,
  11221. but still a little bit to be desired. Sometimes the download speed
  11222. became much faster than I specified.
  11223. * src/SpeedCalc.h
  11224. (start): New variable.
  11225. (accumulatedLength): New variable.
  11226. (getAvgSpeed): New function.
  11227. * src/SpeedCalc.cc
  11228. (reset): Added start, accumulatedLength.
  11229. (update): Added calculation of an average speed.
  11230. (getAvgSpeed): New function.
  11231. * src/DownloadCommand.h
  11232. (sw): Removed.
  11233. * src/main.cc
  11234. (main): Added PREF_STARTUP_IDLE_TIME.
  11235. * src/PeerStat.h
  11236. (STATUS): Added REQUEST_IDLE.
  11237. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  11238. (getAvgDownloadSpeed): New function
  11239. (requestIdle): New function.
  11240. * src/SegmentMan.h
  11241. (SegmentEntryHandle): New type definition.
  11242. (SegmentEntries): Now holds SegmentEntryHandle.
  11243. (findSlowerSegmentEntry): New funtion.
  11244. * src/SegmentMan.cc
  11245. (save): Updated according to the changes in SegmentEntries.
  11246. (read): Updated according to the changes in SegmentEntries.
  11247. (FindSegmentEntryByIndex): Updated according to the changes in
  11248. SegmentEntries.
  11249. (FindSegmentEntryByCuid): Updated according to the changes in
  11250. SegmentEntries.
  11251. (checkoutSegment): Updated according to the changes in SegmentEntries.
  11252. (onNullBitfield): Updated according to the changes in SegmentEntries.
  11253. Renamed uitr as itr.
  11254. (findSlowerSegmentEntry): New function.
  11255. (getSegment): Updated according to the changes in SegmentEntries.
  11256. Added the feature that cancels the segment with slow server and fast
  11257. one takes it over.
  11258. (cancelSegment): Updated according to the changes in SegmentEntries.
  11259. (getDownloadLength): Updated according to the changes in
  11260. SegmentEntries.
  11261. (init): Assigned 0 to bitfield after deleting it.
  11262. * src/DownloadCommand.cc
  11263. (STARTUP_IDLE_TIME): Removed.
  11264. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  11265. * src/PeerChokeCommand.cc
  11266. (optUnchokingPeer): Updated according to the changes in Peer.
  11267. (ResetDelta): Removed.
  11268. (UploadFaster): Updated according to the changes in Peer.
  11269. (DownloadFaster): Updated according to the changes in Peer.
  11270. (execute): I clarify the meaning of "upload" and "download" here.
  11271. "upload" means the transfer from localhost to remote host.
  11272. "download" means the transfer from remote host to localhost.
  11273. Based on this rule, I swapped orderByUploadRate and
  11274. orderByDownloadRate.
  11275. * src/PeerInteractionCommand.cc
  11276. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  11277. (executeInternal): Removed the argument of
  11278. peerInteraction->sendMessages().
  11279. (receiveMessages): Rewritten download speed limit.
  11280. (sendKeepAlive): Removed peerInteraction->sendMessages().
  11281. * src/HttpResponseCommand.cc
  11282. (handleDefaultEncoding): If file size is unknown in torrent request,
  11283. do not call segmentMan->initBitfield() here.
  11284. Disabled persistent connection feature in torrent request.
  11285. * src/UrlRequestInfo.h
  11286. (UrlRequestInfo): Removed const qualifier from option.
  11287. * src/TorrentMan.h
  11288. (TransferStat): New class.
  11289. (deltaDownloadLength): Removed.
  11290. (deltaUploadLength): Removed.
  11291. (addDeltaDownloadLength): Removed.
  11292. (getDeltaDownloadLength): Removed.
  11293. (resetDeltaDownloadLength): Removed.
  11294. (addDeltaUploadLength): Removed.
  11295. (getDeltaUploadLength): Removed.
  11296. (resetDeltaUploadLength): Removed.
  11297. (addActivePeer): Added peer->activate().
  11298. (deleteActivePeer): Added peer->deactivate().
  11299. (calculateStat): New function.
  11300. * src/TorrentMan.cc
  11301. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  11302. (calculateStat): New function.
  11303. * src/PeerInteraction.h
  11304. (uploadLimit): Removed.
  11305. (option): New variable.
  11306. (setUploadLimit): Removed.
  11307. (getUploadSpeed): Removed.
  11308. (sendMessages): Removed the argument "currentUploadSpeed".
  11309. * src/PeerInteraction.cc
  11310. (prefs.h): Included.
  11311. (PeerInteraction): Removed uploadLimit. Added option.
  11312. (sendMessages): Rewritten upload speed limit.
  11313. (sendHandshake): Removed the argument from sendMessages().
  11314. (sendBitfield): Removed the argument from sendMessages().
  11315. * src/PeerAbstractCommand.cc
  11316. (execute): Commented out the portion of upload limit.
  11317. (onAbort): Removed peer->resetStatus().
  11318. * src/TorrentRequestInfo.cc
  11319. (timeoutSpecified): Declared extern.
  11320. (execute): Set timeout to 180 if timeout is not specified by.
  11321. command-line.
  11322. * src/PieceMessage.cc
  11323. (receivedAction): Added peer->updateDownloadLength().
  11324. Removed peer->addPeerUpload().
  11325. Removed torrentMan->addDeltaDownloadLength().
  11326. (send): Added peer->updateUploadLength().
  11327. Removed peer->addPeerDownload().
  11328. Removed torrentMan->addDeltaUploadLength().
  11329. * src/main.cc
  11330. (timeoutSpecified): New variable.
  11331. (main): Set timeoutSpecified to false.
  11332. If the command-line option "--upload-limit" is specified, then
  11333. timeoutSpecified is set to true. This option will remain in the next
  11334. release, but be deprecated in the future release.
  11335. * src/TorrentRequestInfo.h
  11336. (TorrentRequestInfo): Removed const qualifier from op.
  11337. * src/PeerStat.h
  11338. (uploadSpeed): New variable.
  11339. (PeerStat): Added default value to cuid.
  11340. (calculateUploadSpeed): New function.
  11341. (updateUploadLength): New function.
  11342. (getMaxUploadSpeed): New function.
  11343. (getAvgUploadSpeed): New function.
  11344. (reset): Added uploadSpeed. Set status to IDLE.
  11345. * src/TorrentDownloadEngine.h
  11346. (cp): Declared as Time.
  11347. (sessionDownloadLengthArray): Removed.
  11348. (sessionUploadLengthArray): Removed.
  11349. (currentCp): Removed.
  11350. (lastCalcStat): New variable
  11351. (lastElapsed): Removed.
  11352. (sessionDownloadLength): Removed.
  11353. (calculateStat): New function.
  11354. * src/TorrentDownloadEngine.cc
  11355. (initStatistics): Removed lastElapsed, cp[],
  11356. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  11357. currentCp, sessionDownloadLength.
  11358. Added cp.reset() and lastCalcStat.reset().
  11359. (calculateSpeed): Changed the name of the argument.
  11360. (calculateStatistics): Rewritten.
  11361. (calculateStat): New function.
  11362. * src/Peer.h
  11363. (PeerStat.h): Included.
  11364. (peerUpload): Removed.
  11365. (peerDownload): Removed.
  11366. (peerStat): New variable.
  11367. (sessionUploadLength): New variable.
  11368. (sessionDownloadLength): New variable.
  11369. (deltaUpload): Removed.
  11370. (deltaDownload): Removed.
  11371. (resetStatus): Made private.
  11372. (Peer): Added sessionUploadLength, sessionDownloadLength.
  11373. Removed peerUpload, peerDownload.
  11374. (updateUploadLength): New function.
  11375. (addDeltaUpload): Removed.
  11376. (updateDownloadLength): New function.
  11377. (resetDeltaUpload): Removed.
  11378. (getDeltaUpload): Removed.
  11379. (addDeltaDownload): Removed.
  11380. (calculateUploadSpeed): New function.
  11381. (resetDeltaDownload): Removed.
  11382. (getDeltaDownload): Removed.
  11383. (calculateDownloadSpeed): New function.
  11384. (getSessionUploadLength): New function.
  11385. (getSessionDownloadLength): New function.
  11386. (activate): New function.
  11387. (deactivate): New function.
  11388. (addPeerUpload): Removed.
  11389. (setPeerUpload): Removed.
  11390. (getPeerUpload): Removed.
  11391. (addPeerDownload): Removed.
  11392. (setPeerDownload): Removed.
  11393. (getPeerDownload): Removed.
  11394. * src/Peer.cc
  11395. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  11396. * src/MetalinkRequestInfo.h
  11397. (MetalinkRequestInfo): Removed const qualifier from op.
  11398. * src/RequestInfo.h
  11399. (op): Removed const qualifier.
  11400. (RequestInfo): Removed const qualifier from op.
  11401. * src/prefs.h
  11402. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  11403. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  11404. * src/PeerInteractionCommand.cc
  11405. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  11406. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  11407. * src/PeerInteraction.cc
  11408. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  11409. * src/main.cc
  11410. (showUsage): Updated the description of "--lowest-speed-limit" option.
  11411. Added the description of "--max-download-limit" option.
  11412. Removed the description of "--upload-limit" option.
  11413. Added the description of "--max-upload-limit" option.
  11414. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  11415. Added "--max-download-limit" option and "--max-upload-limit" option.
  11416. Added the warning message if "--upload-limit" option is used.
  11417. * src/DownloadCommand.cc
  11418. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  11419. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11420. To rewrite segment download mechanism for HTTP/FTP download.
  11421. Use BitfieldMan to manage segment download.
  11422. * src/HttpResponseCommand.h
  11423. (executeInternal): Pass the reference of segment.
  11424. * src/AbstractCommand.cc
  11425. (prepareForRetry): Call segmentMan->cancelSegment here.
  11426. (onAbort): Call segmentMan->cancelSegment here.
  11427. * src/HttpDownloadCommand.cc
  11428. (prepareForNextSegment): New function.
  11429. * src/DownloadEngineFactory.cc
  11430. (newConsoleEngine): Removed splitter.
  11431. (newTorrentConsoleEngine): Removed splitter.
  11432. * src/Request.h
  11433. (segment): Renamed from seg.
  11434. * src/FtpInitiateConnectionCommand.h
  11435. (executeInternal): Pass the reference of segment.
  11436. * src/AbstractCommand.h
  11437. (executeInternal): Pass the reference of segment.
  11438. * src/pref.h
  11439. (PREF_SEGMENT_SIZE): New definition.
  11440. * src/HttpProxyRequestCommand.h
  11441. (executeInternal): Pass the reference of segment.
  11442. * src/HttpResponseCommand.cc
  11443. (checkResponse): Allowed status 206 when a request range starts 0.
  11444. (handleDefaultEncoding): Rewritten the code related to Segment.
  11445. (handleOtherEncoding): Rewritten the code related to Segment.
  11446. * src/SegmentMan.h
  11447. (SegmentEntry): New class.
  11448. (SegmentEntries): New type definition.
  11449. (bitfield): New variable.
  11450. (usedSegmentEntries): New variable.
  11451. (onNullBitfield): New function.
  11452. (checkoutSegment): New function.
  11453. (segments): Removed.
  11454. (splitter): Removed.
  11455. (unregisterId): Removed.
  11456. (getSegment): New function(overload)
  11457. (getDownloadedSize): Removed.
  11458. (cancelSegment): New function.
  11459. (completeSegment): New function.
  11460. (initBitfield): New function.
  11461. (hasSegment): New function.
  11462. (getDownloadLength): New function.
  11463. * src/BitfieldMan.h
  11464. (getStartIndex): New function.
  11465. (getEndIndex): New function.
  11466. (getMissingUnusedIndex): New function(overload).
  11467. (getSparseMissingUnusedIndex): New function.
  11468. * src/BitfieldMan.cc
  11469. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  11470. (getMissingUnusedIndex): New function(overload).
  11471. (Range): New class.
  11472. (getStartIndex): New function.
  11473. (getEndIndex): New function.
  11474. (getSparseMissingUnusedIndex): New function.
  11475. (isBitSetInternal): Return false if the given index is less than 0.
  11476. * src/HttpInitiateConnectionCommand.h
  11477. (executeInternal): Pass the reference of segment.
  11478. * src/FtpNegotiateCommand.h
  11479. (executeInternal): Pass the reference of segment.
  11480. * src/FtpNegotiateCommand.cc
  11481. (recvSize): Initialize bitfield here.
  11482. * src/FtpTunnelResponseCommand.h
  11483. (executeInternal): Pass the reference of segment.
  11484. * src/HttpConnection.cc
  11485. (createRequest): Rewritten range header processing.
  11486. * src/DownloadCommand.h
  11487. (executeInternal): Pass the reference of segment.
  11488. (prepareForRetry): Removed.
  11489. (prepareForNextSegment): Added an argument segment. Made it a virtual
  11490. function.
  11491. * src/main.cc
  11492. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11493. * src/SegmentMan.cc
  11494. (SegmentMan): Added bitfield. Removed splitter.
  11495. (~SegmentMan): Added bitfield. Removed splitter.
  11496. (unregisterId): Removed.
  11497. (getSegment): Rewritten.
  11498. (updateSegment): Rewritten.
  11499. (save): Rewritten.
  11500. (read): Rewritten.
  11501. (finished): Rewritten.
  11502. (getDownloadedSize): Removed.
  11503. (initBitfield): New function.
  11504. (FindSegmentEntryByIndex): New function object.
  11505. (FindSegmentEntryByCuid): New function object.
  11506. (checkoutSegment): New function.
  11507. (onNullBitfield): New function.
  11508. (getSegment): New function(overload).
  11509. (CancelSegment): New function object.
  11510. (cancelSegment): New function.
  11511. (completeSegment): New function.
  11512. (hasSegment): New function.
  11513. (getDownloadLength): New function.
  11514. * src/FtpInitiateConnectionCommand.cc
  11515. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11516. * src/Segment.h: Rewritten.
  11517. * src/Segment.cc (operator<<): New function.
  11518. * src/HttpDownloadCommand.h
  11519. (prepareForNextSegment): New function.
  11520. * src/Request.cc
  11521. (resetUrl): Made segment null.
  11522. * src/DownloadEngine.cc
  11523. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11524. * src/HttpProxyRequestCommand.h
  11525. (executeInternal): Pass the reference of segment.
  11526. * src/DownloadCommand.cc
  11527. (executeInternal): Rewritten the code related to Segment.
  11528. (prepareForRetry): Removed.
  11529. (prepareForNextSegment): Rewritten.
  11530. * src/FtpTunnelResponseCommand.h
  11531. (executeInternal): Pass the reference of segment.
  11532. To add HTTP 1.1 persistent connection support(experimental)
  11533. * src/HttpRequestCommand.cc
  11534. (executeInternal): Disable keep alive if it is disabled by
  11535. configuration.
  11536. * src/Request.h
  11537. (keepAlive): New variable.
  11538. (isKeepAlive): New function.
  11539. (setKeepAlive): New function.
  11540. * src/pref.h
  11541. (PREF_HTTP_KEEP_ALIVE): New definition.
  11542. * src/HttpResponseCommand.cc
  11543. (executeInternal): Check the remote server supports keep alive.
  11544. * src/HttpConnection.cc
  11545. (createRequest): Send "Connection: close" only if keep alive is
  11546. disabled.
  11547. * src/main.cc
  11548. (main):
  11549. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11550. To add max download speed limit:
  11551. * src/pref.h
  11552. (PREF_MAX_SPEED_LIMIT): New definition.
  11553. * src/PeerInteractionCommand.cc
  11554. (executeInternal): Added max download speed limit. Not tested yet.
  11555. * src/SegmentMan.h
  11556. (PeerStats): New type definition.
  11557. (peerStats): New variable.
  11558. (registerPeerStat): New function.
  11559. (FindPeerStat): New function object.
  11560. (getPeerStat): New function.
  11561. (calculateDownloadSpeed): New function.
  11562. * src/SpeedCalc.h: New class.
  11563. * src/SpeedCalc.cc: New class.
  11564. * src/main.cc
  11565. (main):
  11566. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11567. download speed is not restricted).
  11568. * src/PeerStat.h: New class.
  11569. * src/SegmentMan.cc
  11570. (registerPeerStat): New function.
  11571. (calculateDownloadSpeed): New function.
  11572. * src/DownloadCommand.cc
  11573. (STARTUP_IDLE_TIME): New definition.
  11574. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11575. downloadStart.
  11576. (~DownloadCommand): Call peerStat->downloadStop.
  11577. (executeInternal): Added download speed limitter. Rewritten lowest
  11578. speed limitter.
  11579. * src/HttpConnection.cc
  11580. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11581. * src/AbstractCommand.cc
  11582. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11583. Added hostname to the error message.
  11584. * src/ConsoleDownloadEngine.cc
  11585. (calculateStatistics): Initialize psize with dlSize.
  11586. * src/PieceMessage.cc
  11587. (receivedAction): Do not call peerInteraction->abortPiece here.
  11588. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11589. * src/BitfieldMan.h
  11590. (clearAllUseBit): New function.
  11591. (setAllUseBit): New function.
  11592. * src/BitfieldMan.cc
  11593. (clearAllBit): Do not clear useBitfield here.
  11594. (clearAllUseBit): New function.
  11595. (setAllUseBit): New function.
  11596. * src/Piece.cc
  11597. (clearAllBlock): Call bitfield->clearAllUseBit().
  11598. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11599. To make filename URL-decoded:
  11600. * src/HttpResponseCommand.h: Updated doc.
  11601. * src/HttpResponseCommand.cc
  11602. (determinFilename): Made filename URL-decoded.
  11603. * src/FtpInitiateConnectionCommand.cc
  11604. (executeInternal): Made filename URL-decoded.
  11605. * src/Util.h (urldecode): New function.
  11606. * src/Util.cc (urldecode): New function.
  11607. To fix a bug that caused assertion failure in ares_strerror:
  11608. * src/NameResolver.cc (callback): Fixed the bug.
  11609. * Release 0.7.3
  11610. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11611. To add --seed-time and --seed-ratio command-line option:
  11612. * src/Option.h (getAsDouble): New function.
  11613. * src/Option.cc (getAsDouble): New function.
  11614. * src/SeedCheckCommand.h: New class.
  11615. * src/SeedCheckCommand.cc: New class.
  11616. * src/DownloadEngineFactory.cc
  11617. (SeedCheckCommand.h): Included.
  11618. (UnionSeedCriteria.h): Included.
  11619. (TimeSeedCriteria.h): Included.
  11620. (ShareRatioSeedCriteria.h): Included.
  11621. (newTorrentConsoleEngine): Added the processing of seed option.
  11622. * src/SeedCriteria.h: New class.
  11623. * src/ShareRatioSeedCriteria.h: New class.
  11624. * src/TimeSeedCriteria.h: New class.
  11625. * src/UnionSeedCriteria.h: New class.
  11626. * src/prefs.h
  11627. (PREF_SEED_TIME): New definition.
  11628. (PREF_SEED_RATIO): New definition.
  11629. * src/main.cc
  11630. (showUsage): Added --seed-time and --seed-ratio option.
  11631. (main): Added --seed-time and --seed-ratio option.
  11632. Made default log file name "/dev/null".
  11633. * src/SharedHandle.h
  11634. (SharedHandle): Copy constructor. Made it assignable from the
  11635. SharedHandle of the subclasses.
  11636. (operator=): Made it assignable from the SharedHandle of the
  11637. subclasses.
  11638. (getRefCount): New function.
  11639. To add notice log level and the switch to write log to stdout. This
  11640. switch is configurable per log level.
  11641. * src/Logger.h
  11642. (notice): New function.
  11643. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11644. constant.
  11645. * src/LogFactory.cc
  11646. (getInstance): The use of NullLogger was removed. A log message with
  11647. notice log level was made written to stdout along with log file.
  11648. * src/NullLogger.h
  11649. (notice): New function.
  11650. * src/SimpleLogger.h
  11651. (writeHeader): Added the 'file' argument.
  11652. (writeLog): Added the 'file' argument.
  11653. (writeFile): New function.
  11654. (stdoutField): New variable.
  11655. (SimpleLogger): Removed the default constructor.
  11656. (SimpleLogger): Made the default value of logfile 0.
  11657. (debug): Added 'virtual' keyword.
  11658. (info): Added 'virtual' keyword.
  11659. (warn): Added 'virtual' keyword.
  11660. (error): Added 'virtual' keyword.
  11661. (notice): New function.
  11662. (setStdout): New function.
  11663. * src/SimpleLogger.cc
  11664. (WRITE_LOG): Replaced writeLog with writeFile.
  11665. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11666. (SimpleLogger): Removed the default constructor.
  11667. (setStdout): New function.
  11668. (writeLog): Added the handling of NOTICE log level.
  11669. (writeFile): New function.
  11670. (notice): New function.
  11671. * src/TorrentMan.h: Updated doc.
  11672. * src/BitfieldMan.h: Updated doc.
  11673. * src/TrackerWatcherCommand.cc
  11674. (execute): Return true if error occurred in the request to the tracker
  11675. and halt is requested.
  11676. * src/TrackerUpdateCommand.cc
  11677. (execute): Return true if error occurred in the request to the tracker
  11678. and halt is requested.
  11679. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11680. DownloadEngine:
  11681. * src/TorrentConsoleDownloadEngine.h
  11682. (onSelectiveDownloadingCompletes): Removed.
  11683. * src/TorrentConsoleDownloadEngine.cc
  11684. (onSelectiveDownloadingCompletes): Removed.
  11685. * src/TorrentDownloadEngine.h
  11686. (onEndOfRun): Added 'virtual' keyword.
  11687. (afterEachIteration): Removed.
  11688. (onSelectiveDownloadingCompletes): Removed.
  11689. * src/TorrentDownloadEngine.cc
  11690. (onEndOfRun): Removed filenameFixed.
  11691. (afterEachIteration): Removed.
  11692. * src/TorrentMan.cc
  11693. (completePiece): Call onDownloadComplete here.
  11694. (onDownloadComplete): Added 2 log messages.
  11695. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11696. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11697. * src/NameResolver.h: Added the prototype declaration of callback().
  11698. To support c-ares library:
  11699. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11700. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11701. * src/FtpInitiateConnectionCommand.h:
  11702. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11703. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11704. * src/HttpInitiateConnectionCommand.h:
  11705. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11706. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11707. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11708. #1542285 by tizianomueller)
  11709. * src/HttpInitiateConnectionCommand.cc:
  11710. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11711. * src/FtpInitiateConnectionCommand.cc:
  11712. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11713. * src/DownloadEngine.h:
  11714. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11715. * src/DownloadEngine.cc:
  11716. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11717. To fix the bug that causes compilation failure with metalink-support
  11718. disabled(bug#1543587):
  11719. * src/main.cc: Fixed with the patch by tizianomueller.
  11720. * Release 0.7.2
  11721. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11722. * src/main.cc
  11723. (main): Added a message to inform users that aria2 is starting to
  11724. verify checksum.
  11725. * src/RequestInfo.cc
  11726. (printDownloadAbortMessage): Added a message to inform users that
  11727. transfer can be resumed.
  11728. * src/FeatureConfig.cc
  11729. (FEATURE_ASYNC_DNS): New definition.
  11730. (FeatureConfig): Added aysnc DNS entry.
  11731. To replace CommandUuid with Command* in SocketEntry and
  11732. NameResolverEntry:
  11733. * src/DownloadEngine.h
  11734. (CommandUuids): Removed.
  11735. (SocketEntry::commandUuid): Removed.
  11736. (SocketEntry::command): New variable.
  11737. (SocketEntry::SocketEntry): Updated.
  11738. (SocketEntry::operator==): Updated.
  11739. (NameResolverEntry::commandUuid): Removed.
  11740. (NameResolverEntry::command): New variable.
  11741. (NameResolverEntry::NameResolverEntry): Updated.
  11742. (NameResolverEntry::operator==): Updated.
  11743. (waitData): Changed the argument type.
  11744. (addSocketForReadCheck): Changed the argument type.
  11745. (deleteSocketForReadCheck): Changed the argument type.
  11746. (addSocketForWriteCheck): Changed the argument type.
  11747. (deleteSocketForWriteCheck): Changed the argument type.
  11748. (addNameResolverCheck): Changed the argument type.
  11749. (deleteNameResolverCheck): Changed the argument type.
  11750. * src/DownloadEngine.cc
  11751. (FindCommand): Removed.
  11752. (run): Removed activeUuid. Added activeCommands instead.
  11753. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11754. (AccumulateActiveCommand): New function object.
  11755. (waitData): Use AccumulateActiveCommand.
  11756. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11757. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11758. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11759. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11760. (addNameResolverCheck): Use Command instead of CommandUuid.
  11761. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11762. * src/AbstractCommand.cc
  11763. (disableReadCheckSocket): Updated according to the changes in
  11764. DownloadEngine.
  11765. (setReadCheckSocket): Updated according to the changes in
  11766. DownloadEngine.
  11767. (disableWriteCheckSocket): Updated according to the changes in
  11768. DownloadEngine.
  11769. (setWriteCheckSocket): Updated according to the changes in
  11770. DownloadEngine.
  11771. (setNameResolverCheck): Updated according to the changes in
  11772. DownloadEngine.
  11773. (disableNameResolverCheck): Updated according to the changes in
  11774. DownloadEngine.
  11775. * src/AbstractCommand.cc
  11776. (disableReadCheckSocket): Updated according to the changes in
  11777. DownloadEngine.
  11778. (setReadCheckSocket): Updated according to the changes in
  11779. DownloadEngine.
  11780. (disableWriteCheckSocket): Updated according to the changes in
  11781. DownloadEngine.
  11782. (setWriteCheckSocket): Updated according to the changes in
  11783. DownloadEngine.
  11784. * release 0.7.1
  11785. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11786. To handle the case where some BitTorrent tracker requires all letters
  11787. except for [A-Za-z0-9] is URL encoded.
  11788. * src/Util.h
  11789. (torrentUrlencode): New function.
  11790. * src/Util.cc
  11791. (ctype.h): Included.
  11792. (torrentUrlencode): New function.
  11793. * src/TrackerWatcherCommand.cc
  11794. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11795. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11796. To add asynchronous DNS support(libares):
  11797. * src/AbstractCommand.h
  11798. (setNameResolverCheck): New function.
  11799. (disableNameResolverCheck): New function
  11800. (resolveHostname): New function.
  11801. * src/AbstractCommand.cc
  11802. (setNameResolverCheck): New function.
  11803. (disableNameResolverCheck): New function
  11804. (resolveHostname): New function.
  11805. * src/FtpInitiateConnectionCommand.h
  11806. (nameResolver): New function.
  11807. * src/FtpInitiateConnectionCommand.cc
  11808. (Util.h): Included.
  11809. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11810. disableWriteCheckSocket.
  11811. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11812. (executeInternal): Added async DNS support.
  11813. * src/HttpInitiateConnectionCommand.h
  11814. (nameResolver): New function.
  11815. * src/HttpInitiateConnectionCommand.cc
  11816. (DlRetryEx.h): Included.
  11817. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11818. disableWriteCheckSocket.
  11819. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11820. (executeInternal): Added async DNS support.
  11821. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11822. by extern "C" declaration.
  11823. * src/NameResolver.cc: New class.
  11824. * src/Util.h:
  11825. (isNumberAndDotsNotation): New function
  11826. * src/Util.cc
  11827. (isNumberAndDotsNotation): New function.
  11828. * src/DownloadEngine.h
  11829. (NameResolver.h): Included.
  11830. (NameResolverEntry): New class.
  11831. (NameResolverEntries): New type definition.
  11832. (addNameResolverCheck): New function.
  11833. (deleteNameResolverCheck): New function.
  11834. * src/DownloadEngine.cc
  11835. (run): Initialize cp with 0.
  11836. (SetDescriptor::operator()): Added for NameResolverEntry.
  11837. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11838. (waitData): Check nameResolver entries.
  11839. (updateFdSet): Update fds in nameResolver entries.
  11840. (addNameResolverCheck): New function.
  11841. (deleteNameResolverCheck): new function.
  11842. * src/PeerInteractionCommand.cc
  11843. (executeInternal): Fixed wrong socket handling.
  11844. * src/main.cc
  11845. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11846. * src/Util.cc
  11847. (fileChecksum): Removed the call to ctx.digestReset().
  11848. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11849. * po/ru.po: Azamat sent me Russian translation.
  11850. * src/FtpNegotiateCommand.cc
  11851. (recvGreeting): Call disableWriteCheckSocket just after
  11852. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11853. (recvRetr): Recognized status code 125 as a acceptable response code.
  11854. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11855. case-insesitive filesystem(BUG#1531057).
  11856. * src/Time.h: Renamed as TimeA2.h.
  11857. * src/Time.cc: Renamed as TimeA2.cc.
  11858. * src/TimeA2.h: New class.
  11859. * src/TimeA2.cc: New class.
  11860. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11861. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11862. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11863. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11864. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11865. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11866. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11867. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11868. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11869. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11870. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11871. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11872. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11873. * release 0.7.0
  11874. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11875. * src/PeerChokeCommand.h
  11876. (PeerChokeCommand): Rearranged the arguments.
  11877. * src/PeerChokeCommand.cc
  11878. (PeerChokeCommand): Rearranged the arguments.
  11879. * src/MetalinkEntry.h
  11880. (Checksum.h): Included.
  11881. (md5): Removed.
  11882. (sha1): Removed.
  11883. (checksum): New variable.
  11884. (operator=): Updated.
  11885. (check): Removed.
  11886. * src/prefs.h
  11887. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11888. (PREF_FOLLOW_TORRENT): New definition.
  11889. (PREF_SELECT_FILE): New definition.
  11890. (PREF_FOLLOW_METALINK): New definition.
  11891. * src/MetalinkResource.h
  11892. (TYPE_HTTPS): Added to enum TYPE.
  11893. * src/TorrentMan.cc
  11894. (~TorrentMan): Rewritten.
  11895. * src/MultiDiskWriter.cc
  11896. (MultiDiskAdaptor): Updated according to the changes in
  11897. MessageDigestContext.
  11898. (~MultiDiskAdaptor): Updated according to the changes in
  11899. MessageDigestContext.
  11900. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11901. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11902. * src/Util.h
  11903. (fileChecksum): Updated according to the changes in
  11904. MessageDigestContext.
  11905. * src/Util.cc
  11906. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11907. (fileChecksum): Updated according to the changes in
  11908. MessageDigestContext.
  11909. * src/messageDigest.h: Rewritten.
  11910. * src/MetalinkEntry.cc
  11911. (check): Removed.
  11912. (Supported): Updated.
  11913. (dropUnsupportedResource): Fixed a memory leak.
  11914. * src/ShaVisitor.cc
  11915. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11916. (~ShaVisitor): Updated according to the changes in
  11917. MessageDigestContext.
  11918. (visit): Updated according to the changes in MessageDigestContext.
  11919. * src/main.cc
  11920. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11921. command-line option added.
  11922. * src/DownloadEngine.h
  11923. (SocketEntry): New class.
  11924. (SocketEntries): New definition.
  11925. (PairFind): Removed.
  11926. (SockCmdMap): Removed.
  11927. * src/DownloadEngine.cc
  11928. (DownloadEngine): Rewritten.
  11929. (~DownloadEngine): Rewritten.
  11930. (run): Renamed activeCommandUuids as activeUuids.
  11931. (SetDescriptor): Rewritten.
  11932. (AccumulateActiveCommandUuid): Removed.
  11933. (AccumulateActiveUuid): New function object.
  11934. (waitData): Rewritten.
  11935. (updateFdSet): Rewritten.
  11936. (addSocket): Rewritten.
  11937. (deleteSocket): Rewritten.
  11938. (addSocketForReadCheck): Rewritten.
  11939. (deleteSocketForReadCheck): Rewritten.
  11940. (addSocketForWriteCheck): Rewritten.
  11941. (deleteSocketForWriteCheck): Rewritten.
  11942. * src/Xml2MetalinkProcessor.cc
  11943. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11944. * src/DownloadCommand.cc
  11945. (executeInternal): Added the check routine for lowest speed limit.
  11946. * src/AbstractDiskWriter.cc
  11947. (AbstractDiskWriter): Updated according to the changes in
  11948. MessageDigestContext.
  11949. (~AbstractDiskWriter): Updated according to the changes in
  11950. MessageDigestContext.
  11951. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11952. * src/RequestInfo.h: New class.
  11953. * src/UrlRequestInfo.h: New class.
  11954. * src/UrlRequestInfo.cc: New class.
  11955. * src/TorrentRequestInfo.h: New class.
  11956. * src/TorrentRequestInfo.cc: New class.
  11957. * src/MetalinkRequestInfo.h: New class.
  11958. * src/MetalinkRequestInfo.cc: New class.
  11959. * src/Checksum.h: New class.
  11960. * src/DownloadEngineFactory.h: New class.
  11961. * src/DownloadEngineFactory.cc: New class.
  11962. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11963. * src/Option.h
  11964. (getAsBool): New function.
  11965. * src/Option.cc
  11966. (prefs.h): Included.
  11967. (defined): 0-length value is now recognized as undefined.
  11968. (getAsInt): Rewritten.
  11969. (getAsLLInt): Rewritten.
  11970. (getAsBool): New function.
  11971. * src/FeatureConfig.h: Rewritten.
  11972. * src/FeatureConfig.cc: Rewritten.
  11973. * src/prefs.h
  11974. (PREF_STDOUT_LOG): New definition.
  11975. (PREF_LOG): New definition.
  11976. (PREF_DIR): New definition.
  11977. (PREF_OUT): New definition.
  11978. (PREF_SPLIT): New definition.
  11979. (PREF_DAEMON): New definition.
  11980. (PREF_REFERER): New definition.
  11981. (PREF_TORRENT_FILE): New definition.
  11982. (PREF_LISTEN_PORT): New definition.
  11983. (PREF_METALINK_FILE): New definition.
  11984. (PREF_METALINK_VERSION): New definition.
  11985. (PREF_METALINK_LANGUAGE): New definition.
  11986. (PREF_METALINK_OS): New definition.
  11987. (PREF_METALINK_SERVERS): New definition.
  11988. * src/main.cc
  11989. (main): Following command-line parameters are now put into Option
  11990. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11991. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11992. metalinkLanguage, metalinkOs, metalinkServers
  11993. To fix the bug that aria2 can not handle http response header properly.
  11994. * src/HttpHeader.cc
  11995. (put): Made name lowercased.
  11996. (defined): Made name lowercased.
  11997. (getFirst): Made name lowercased.
  11998. (get): Made name lowercased.
  11999. (getFirstAsInt): Rewritten.
  12000. (getFirstAsLLInt): Rewritten.
  12001. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12002. * src/TorrentMan.h:
  12003. (advertisePiece): Updated doc.
  12004. (getAdvertisedPieceIndexes): Updated doc.
  12005. (removeAdvertisedPiece); New function.
  12006. * src/TorrentMan.cc
  12007. (FindElapsedHave): New function object.
  12008. (removeAdvertisedPiece): New function.
  12009. * src/HaveEraseCommand.h: New class.
  12010. * src/HaveEraseCommand.cc: New class.
  12011. * src/FeatureConfig.h: New class.
  12012. * src/FeatureConfig.cc: New class.
  12013. * src/Request.h
  12014. (defaultPorts): Removed.
  12015. * src/Request.cc
  12016. (FeatureConfig.h): Included.
  12017. (Request): Removed the statements related to defaultPorts.
  12018. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12019. A default port number is now retrieved from FeatureConfig.
  12020. * src/main.cc
  12021. (HaveEraseCommand.h): Included.
  12022. (showVersion): Added the output of feature list.
  12023. (main): Added HaveEraseCommand to command queue in BitTorrent
  12024. downloading.
  12025. * src/PeerInteractionCommand.h
  12026. (chokeCheckPoint): Commented out.
  12027. (periodicExecPoint): New variable.
  12028. * src/PeerInteractionCommand.cc
  12029. (executeInternal): Following methods are now called in at least every
  12030. 0.5 seconds to reduce CPU usage:
  12031. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12032. checkHave(), sendKeepAlive().
  12033. (checkLongTimePeerChoking): Commented out.
  12034. * src/BitfieldMan.h
  12035. (getNthBitIndex): Changed the method signature.
  12036. (getMissingIndexRandomly): Changed the method signature.
  12037. * src/BitfieldMan.cc
  12038. (getNthBitIndex): Rewritten
  12039. (getMissingIndexRandomly): Rewritten.
  12040. (hasMissingPiece): Rewritten.
  12041. (getMissingIndex): Refactored.
  12042. (getMissingUnusedIndex); Refactored.
  12043. (getMissingIndex): Refactored.
  12044. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12045. * src/PeerMessage.h
  12046. (Piece.h): Included.
  12047. (SharedHandle.h): Included.
  12048. (invalidate): New variable.
  12049. (uploading): New variable.
  12050. (isInvalidate): New function.
  12051. (isUploading): New function.
  12052. (onPush): New function.
  12053. (onChoked): New function.
  12054. (onCanceled): New function.
  12055. (onAbortPiece): New function.
  12056. (PeerMessageHandle): New type definition.
  12057. * src/PeerMessage.cc
  12058. (PeerMessage): Added the initialization for invalidate and uploading.
  12059. * src/CancelMessage.h
  12060. (CancelMessage): Rewritten.
  12061. * src/RejectMessage.h
  12062. (RejectMessage): Rewritten.
  12063. * src/Metalinker.h
  12064. (operator=): Defined.
  12065. * src/MetaEntry.h
  12066. (operator=): Defined.
  12067. * src/MetalinkResource.h
  12068. (operator=): Defined.
  12069. * src/AllowedFastMessage.h
  12070. (AllowedFastMessage): Rewritten.
  12071. * src/HandshakeMessage.h
  12072. (HandshakeMessage): New function(overload).
  12073. * src/HandshakeMessage.cc
  12074. (HandshakeMessage): Rewritten.
  12075. (init): New function.
  12076. * src/HaveMessage.h
  12077. (HaveMessage): Rewritten.
  12078. * src/Time.h
  12079. (operator=): Defined the function body here.
  12080. * src/Time.cc
  12081. (operator=): Removed.
  12082. * src/SocketCore.h
  12083. (operator==): Defined here.
  12084. (operator!=): Defined here.
  12085. (operator<): Defined here.
  12086. * src/SocketCore.cc
  12087. (operator==): Removed.
  12088. (operator<): Removed.
  12089. * src/BitfieldMan.h
  12090. (operator=): Defined the function body here.
  12091. * src/BitfieldMan.cc
  12092. (operator=): Removed.
  12093. * src/TorrentMan.h
  12094. (deleteErrorPeer): Removed.
  12095. (deleteUnusedPeer); New function.
  12096. * src/TorrentMan.cc
  12097. (addPeer): Call deleteUnusedPeer.
  12098. (deleteErrorPeer): Removed.
  12099. (deleteUnusedPeer): New function.
  12100. * src/PeerAbstractCommand.h
  12101. (setNoCheck): New function.
  12102. (noCheck): New variable.
  12103. * src/PeerAbstractCommand.cc
  12104. (PeerAbstractCommand): Added the initialization of noCheck.
  12105. (execute): Added a check for noCheck.
  12106. (setNoCheck): New function.
  12107. * src/Util.h
  12108. (stdio.h): Included.
  12109. * src/Util.cc
  12110. (unistd.h): Included.
  12111. * src/DefaultDiskWriter.cc
  12112. (unistd.h): Included.
  12113. * src/Peer.h
  12114. (operator==): Defined the function body here.
  12115. (operator!=): Defined the function body here.
  12116. * src/Peer.cc
  12117. (operator==): Removed.
  12118. (operator!=): Removed.
  12119. * src/Piece.h
  12120. (Piece): Defined the function body here(copy constructor).
  12121. (operator=): Defined the function body here.
  12122. (operator==): Defined the function body here.
  12123. * src/Piece.cc
  12124. (Piece): Removed(copy constructor).
  12125. (operator=): Removed.
  12126. (operator==): Removed.
  12127. * src/PeerMessageUtil.h
  12128. (ChokeMessage.h): Removed.
  12129. (UnchokeMessage.h): Removed.
  12130. (InterestedMessage.h): Removed.
  12131. (NotInterestedMessage.h): Removed.
  12132. (HaveMessage.h): Removed.
  12133. (BitfieldMessage.h): Removed.
  12134. (RequestMessage.h): Removed.
  12135. (CancelMessage.h): Removed.
  12136. (PieceMessage.h): Removed.
  12137. (HandshakeMessage.h): Removed.
  12138. (KeepAliveMessage.h): Removed.
  12139. (PortMessage.h): Removed.
  12140. (HaveAllMessage.h): Removed.
  12141. (HaveNoneMessage.h): Removed.
  12142. (PeerConnection.h): Removed.
  12143. (HandshakeMessage.h): Included.
  12144. * src/BitfieldMessage.h
  12145. (init): New function.
  12146. (BitfieldMessage): Rewritten.
  12147. (BitfieldMessage): New function(overload).
  12148. * src/RequestSlot.h
  12149. (operator=): Defined the function body here.
  12150. (operator==): Defined the function body here.
  12151. * src/RequestSlot.cc
  12152. (operator=): Removed.
  12153. (operator==): Removed.
  12154. To remove the dependency on the PeerMessage subclass from
  12155. PeerInteraction:
  12156. * src/PeerMessageFactory.h: New class.
  12157. * src/PeerMessageFactory.cc: New class.
  12158. * src/SimplePeerMessage.cc
  12159. (send): If invalidate is true then do nothing.
  12160. * src/PeerInteractionCommand.cc
  12161. (HandshakeMessage.h): Included.
  12162. (KeepAliveMessage.h): Included.
  12163. (ChokeMessage.h): Included.
  12164. (UnchokeMessage.h): Included.
  12165. (HaveMessage.h): Included.
  12166. (executeInternal): Call setNoCheck().
  12167. Removed setWriteCheckSocket(socket).
  12168. * src/PeerInteraction.h
  12169. (ChokeMessage.h): Removed.
  12170. (UnchokeMessage.h): Removed.
  12171. (InterestedMessage.h): Removed.
  12172. (NotInterestedMessage.h): Removed.
  12173. (HaveMessage.h): Removed.
  12174. (BitfieldMessage.h): Removed.
  12175. (RequestMessage.h): Removed.
  12176. (CancelMessage.h): Removed.
  12177. (PieceMessage.h): Removed.
  12178. (HandshakeMessage.h): Removed.
  12179. (KeepAliveMessage.h): Removed.
  12180. (PortMessage.h): Removed.
  12181. (HaveAllMessage.h): Removed.
  12182. (HaveNoneMessage.h): Removed.
  12183. (RejectMessage.h): Removed.
  12184. (AllowedFastMessage.h): Removed.
  12185. (SuggestPieceMessage.h): Removed.
  12186. (PeerMessageFactory.h): Included.
  12187. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12188. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12189. (PeerMessageFactory): New variable.
  12190. (createPeerMessage): Removed.
  12191. (createHandshakeMessage): Removed.
  12192. (setPeerMessageCommonProperty): Removed.
  12193. (addRequestSlot): New function.
  12194. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12195. (getPeerMessageFactory): New function.
  12196. (createRequestMessage): Removed.
  12197. (createCancelMessage): Removed.
  12198. (createPieceMessage): Removed.
  12199. (createHaveMessage): Removed.
  12200. (createChokeMessage): Removed.
  12201. (createUnchokeMessage): Removed.
  12202. (createInterestedMessage): Removed.
  12203. (createNotInterestedMessage): Removed.
  12204. (createBitfieldMessage): Removed.
  12205. (createKeepAliveMessage): Removed.
  12206. (createHaveAllMessage): Removed.
  12207. (createHaveNoneMessage): Removed.
  12208. (createRejectMessage): Removed.
  12209. (createAllowedFastMessage): Removed.
  12210. * src/PeerInteraction.cc
  12211. (PeerInteraction): Allocate PeerMessageFactory here.
  12212. (~PeerInteraction): Deallocate PeerMessageFactory here.
  12213. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  12214. PieceMessage::ID.
  12215. (addMessage): Simplified by using PeerMessage::onPush().
  12216. (addRequestSlot): New function.
  12217. (rejectAllPieceMessageInQueue): Simplified by using
  12218. PeerMessage::onChoked().
  12219. (rejectPieceMessageInQueue): Simplified by using
  12220. PeerMessage::onCanceled().
  12221. (abortPiece): Simplified by using PeerMessage::abortPiece().
  12222. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12223. (createHandshakeMessage): Removed.
  12224. (createPeerMessage): Removed.
  12225. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  12226. (setPeerMessageCommonProperty): Removed.
  12227. (createRequestMessage): Removed.
  12228. (createCancelMessage): Removed.
  12229. (createPieceMessage): Removed.
  12230. (createHaveMessage): Removed.
  12231. (createChokeMessage): Removed.
  12232. (createUnchokeMessage): Removed.
  12233. (createInterestedMessage): Removed.
  12234. (createNotInterestedMessage): Removed.
  12235. (createBitfieldMessage): Removed.
  12236. (createKeepAliveMessage): Removed.
  12237. (createHaveAllMessage): Removed.
  12238. (createHaveNoneMessage): Removed.
  12239. (createRejectMessage): Removed.
  12240. (createAllowedFastMessage): Removed.
  12241. * src/PieceMessage.h
  12242. (createRejectMessage): New function.
  12243. (PieceMessage): Rewritten.
  12244. (onChoked): New function.
  12245. (onCanceled): New function.
  12246. * src/PieceMessage.cc
  12247. (send): If invalidate is true then do nothing, just return.
  12248. (createRejectMessage): New function.
  12249. (onChoked): New function.
  12250. (onCanceled): New function.
  12251. * src/RequestMessage.h
  12252. (RequestMessage): Rewritten.
  12253. (onPush): New function.
  12254. (onAbortPiece): New function.
  12255. * src/RequestMessage.cc
  12256. (onPush): New function.
  12257. (onAbortPiece): New function.
  12258. Update fd_set when a socket is added or deleted in order to improve
  12259. performance:
  12260. * src/DownloadEngine.h
  12261. (rfdset): New variable.
  12262. (wfdset): New variable.
  12263. (updateFdSet): New function.
  12264. * src/DownloadEngine.cc
  12265. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  12266. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  12267. (waitData): Copy rfdset and wfdset.
  12268. (updateFdSet): New function.
  12269. (addSocket): Call updateFdSet.
  12270. (deleteSocket): Call updateFdSet.
  12271. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12272. To add the support for Metalink3.0 backward compatible links:
  12273. * src/Request.h
  12274. (SAFE_CHARS): Added '#'.
  12275. (METALINK_MARK): New definition.
  12276. * src/Request.cc
  12277. (parseUrl): Added the support for Metalink3.0 backward compatible
  12278. links.
  12279. etc
  12280. * src/PeerInteraction.cc
  12281. (MsgPushBack): Removed.
  12282. (sendMessages): Use STL copy and back_inserter.
  12283. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  12284. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  12285. * src/TorrentMan.h
  12286. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  12287. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12288. * src/SharedHandle.h: New class.
  12289. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  12290. * src/HttpResponseCommand.h
  12291. (HttpResponseCommand): Wrapped Socket.
  12292. * src/SocketCore.h
  12293. (operator==): New function.
  12294. (operator!=): New function.
  12295. (operator<): New function.
  12296. (getSockfd): New function.
  12297. (isOpen): New function.
  12298. (writeData): New function.
  12299. * src/SocketCore.cc
  12300. (operator==): New function.
  12301. (operator!=): New function.
  12302. (operator<): New function.
  12303. * src/AbstractCommand.h
  12304. (socket): Changed its type to SocketHandle.
  12305. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12306. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12307. (disableReadCheckSocket): New function.
  12308. (disableWriteCheckSocket): New function.
  12309. (readCheckTarget): Changed its type to SocketHandle.
  12310. (writeCheckTarget): Changed its type to SocketHandle.
  12311. (AbstractCommand): Replaced Socket with SocketHandle.
  12312. * src/AbstractCommand.cc
  12313. (AbstractCommand): Replaced Socket with SocketHandle.
  12314. (~AbstractCommand): Removed the deallocation for Socket object.
  12315. (disableReadCheckSocket): New function.
  12316. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12317. (disableWriteCheckSocket): New function.
  12318. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12319. * src/HttpDownloadCommand.cc
  12320. (DownloadCommand): Replaced Socket with SocketHandle.
  12321. * src/PeerAbstractCommand.h
  12322. (socket): Changed its type to SocketHandle.
  12323. (peer): Changed its type to PeerHandle.
  12324. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12325. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12326. (disableReadCheckSocket): New function.
  12327. (disableWriteCheckSocket): New function.
  12328. (readCheckTarget): Changed its type to SocketHandle.
  12329. (writeCheckTarget): Changed its type to SocketHandle.
  12330. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12331. Replaced Peer with PeerHandle.
  12332. * src/HttpRequestCommand.cc
  12333. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12334. Use disableReadCheckSocket.
  12335. * src/PeerInitiateConnectionCommand.h
  12336. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12337. * src/PeerChokeCommand.cc
  12338. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  12339. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  12340. (execute): Use PeerHandle.
  12341. * src/PeerConnection.h
  12342. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  12343. (socket): Changed its type to SocketHandle.
  12344. (PeerConnection): Replaced Socket with SocketHandle.
  12345. * src/PeerConnection.cc
  12346. (PeerConnection): Replaced Socket with SocketHandle.
  12347. * src/PeerInteractionCommand.h
  12348. (PeerInteractionCommand): Replaced socket with SocketHandle.
  12349. Replaced Peer with PeerHandle.
  12350. * src/PeerInteractionCommand.cc
  12351. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  12352. Replaced Peer with PeerHandle.
  12353. (executeInternal): Use disableWriteCheckSocket.
  12354. Use HandshakeMessageHandle.
  12355. (receiveMessages): Use PeerMessageHandle.
  12356. (prepareForNextPeer): Use PeerHandle.
  12357. * src/HttpProxyRequestCommand.h
  12358. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12359. * src/HttpResponseCommand.cc
  12360. (HttpResponseCommand): Replaced Socket with SocketHandle.
  12361. * src/TorrentMan.cc
  12362. (nullPeer): Added external reference.
  12363. (~TorrentMan): Removed the deallocation of the elements of peers.
  12364. (addPeer): Rewritten.
  12365. (isPeerAvailable): Use nullPeer.
  12366. (deleteOldpeers): Replaced with deleteErrorPeer.
  12367. (deleteErrorPeer): New function.
  12368. (getPeer): Use PeerHandle and nullPeer.
  12369. (hasMissingPiece): Replaced Peer with PeerHandle.
  12370. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12371. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12372. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12373. (getMissingPiece): Replaced Peer with PeerHandle.
  12374. * src/FtpNegotiateCommand.cc
  12375. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  12376. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  12377. (recvGreeting): Use disableWriteCheckSocket.
  12378. (recvPasv): Removed the allocation of Socket.
  12379. Use disableReadCheckSocket.
  12380. (sendRestPasv): Use disableWriteCheckSocket.
  12381. (recvRetr): Changed assertion.
  12382. * src/PeerInteraction.h
  12383. (SharedHandle.h): Included SharedHandle.h.
  12384. (PeerMessageHandle): New type definition.
  12385. (HandshakeMessageHandle): New type definition.
  12386. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  12387. (peer): Changed its type to PeerHandle.
  12388. (createHandshakeMessage): Replaced HandshakeMessage with
  12389. HandshakeMessageHandle.
  12390. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  12391. (PeerInteraction): Replaced Peer with PeerHandle.
  12392. Replaced Socket with SocketHandle.
  12393. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12394. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12395. (receiveHandshake): Replaced HandshakeMessage with
  12396. HandshakeMessageHandle.
  12397. * src/PeerInteraction.cc
  12398. (PeerInteraction): Replaced Peer with PeerHandle.
  12399. Replaced Socket with SocketHandle.
  12400. (~PeerInteraction): Removed the deallocation of the elements of
  12401. messageQueue.
  12402. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  12403. (isSendingMessageInProgress): Replaced PeerMessage with
  12404. PeerMessageHandle.
  12405. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  12406. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12407. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  12408. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  12409. (abortPiece): Use PeerMessageHandle.
  12410. (receiveHandshake): Replaced HandshakeMessage with
  12411. HandshakeMessageHandle. Removed try-catch block.
  12412. (createHandshakeMessage): Replaced HandshakeMessage with
  12413. HandshakeMessageHandle.
  12414. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12415. Removed try-catch block.
  12416. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  12417. * src/HttpProxyResponseCommand.cc
  12418. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12419. * src/FtpTunnelResponseCommand.h
  12420. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12421. * src/HttpConnection.cc
  12422. (HttpConnection): Replaced Socket with SocketHandle.
  12423. * src/PeerAbstractCommand.cc
  12424. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12425. (~PeerAbstractCommand): Removed the deallocation of socket.
  12426. Use disableReadCheckSocket, disableWriteCheckSocket.
  12427. (disableReadCheckSocket): New function.
  12428. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12429. (disableWriteCheckSocket): New function.
  12430. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12431. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  12432. * src/FtpTunnelRequestCommand.cc
  12433. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12434. (~FtpTunnelRequestCommand): Corrected indentation.
  12435. * src/DownloadCommand.h
  12436. (DownloadCommand): Replaced Socket with SocketHandle.
  12437. * src/PeerListenCommand.cc
  12438. (PeerListenCommand): Removed the initialization of socket.
  12439. (~PeerListenCommand): Removed the deallocation of socket.
  12440. (bindPort): Use SocketHandle.
  12441. (execute): Use SocketHandle and PeerHandle.
  12442. * src/FtpDowndloadCommand.cc
  12443. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12444. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  12445. * src/main.cc
  12446. (main): Corrected indentation.
  12447. * src/HttpInitiateConnectionCommand.cc
  12448. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  12449. (executeInternal): Removed the allocation of socket.
  12450. * src/HttpRequestCommand.h
  12451. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12452. * src/FtpNegotiationCommand.h
  12453. (dataSocket): Changed its type to SocketHandle.
  12454. (serverSocket): Changed its type to SocketHandle.
  12455. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  12456. * src/TorrentMan.h
  12457. (MAX_PEER_UPDATE): Removed.
  12458. (MAX_PEERS): New definition.
  12459. (Peers): The element is now of type PeerHandle.
  12460. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  12461. (getPeer): Replaced Peer with PeerHandle.
  12462. (deleteOldErrorPeers): Removed.
  12463. (deleteErrorPeer): New function.
  12464. (hasMissingPiece): Replaced Peer with PeerHandle.
  12465. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12466. (getMissingPiece): Replaced Peer with PeerHandle.
  12467. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12468. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12469. (addActivePeer): Replaced Peer with PeerHandle.
  12470. (deleteActivePeer): Replaced Peer with PeerHandle.
  12471. Added a check for the return value of find.
  12472. * src/FtpTunnelResponseCommand.cc
  12473. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12474. * src/FtpInitiateConnectionCommand.cc
  12475. (executeInternal): Removed the allocation of socket.
  12476. * src/DownloadEngine.h
  12477. (Sockets): An element is now of type SocketHandle.
  12478. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  12479. (CommandUuids): New type definition.
  12480. (rsockets): Changed its type to SockCmdMap.
  12481. (wsockets): Changed its type to SockCmdMap.
  12482. (addSocket): Rewritten.
  12483. (deleteSocket): Rewritten.
  12484. (addSocketForReadCheck): Rewritten.
  12485. (deleteSocketForReadCheck): Rewritten.
  12486. (addSocketForWriteCheck): Rewritten.
  12487. (deleteSocketForWriteCheck): Rewritten.
  12488. (PairFind): New template class.
  12489. * src/HttpDownloadCommand.h
  12490. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  12491. * src/FtpConnection.cc
  12492. (FtpConnection): Replaced Socket with SocketHandle.
  12493. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12494. block.
  12495. * src/InitiateConnectionCommandFactory.cc
  12496. (DlAbortEx.h): Included DlAbortEx.h.
  12497. (createInitiateConnectionCommand): Throw exception if the protocol of
  12498. requested URI is not supported.
  12499. * src/Peer.cc
  12500. (nullPeer): Changed its type to PeerHandle.
  12501. (operator==): New function.
  12502. (operator!=): New function.
  12503. * src/Peer.h
  12504. (SharedHandle.h): Included SharedHandle.h.
  12505. (operator==): New function.
  12506. (operator!=): New function.
  12507. (Peer): Added the default constructor.
  12508. Use resetStatus() to initialize member variables.
  12509. (nullPeer): Removed.
  12510. * src/TrackerUpdateCommand.cc
  12511. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12512. with MIN_PEERS.
  12513. * src/PeerListenCommand.h
  12514. (socket): Changed its type to SocketHandle.
  12515. * src/Command.h
  12516. (CommandUuid): New type definition.
  12517. (uuid): New variable.
  12518. (uuidGen): New variable.
  12519. (Command): Added the initialization of uuid.
  12520. (getUuid): New function.
  12521. * src/Socket.h
  12522. (Socket): Removed.
  12523. (SocketHandle): New type definition.
  12524. * src/DownloadEngine.h
  12525. (FindCommand): New function object.
  12526. (run): The portion of socket check was rewritten.
  12527. (SetDescriptor): New function object.
  12528. (AccumulateActiveCommandUuid): New function object.
  12529. (waitData): Rewritten.
  12530. (addSocket): Rewritten.
  12531. (deleteSocket): Rewritten.
  12532. (addSocketForReadCheck): Rewritten.
  12533. (addSocketForWriteCheck): Rewritten.
  12534. (deleteSocketForReadCheck): Rewritten.
  12535. (deleteSocketForWriteCheck): Rewritten.
  12536. * src/HttpProxyResponseCommand.h
  12537. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12538. * src/HttpConnection.h
  12539. (socket): Changed its type to SocketHandle.
  12540. (HttpConnection): Replaced Socket with SocketHandle.
  12541. * src/PeerInitiateConnectionCommand.cc
  12542. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12543. (executeInternal): Removed the allocation of socket.
  12544. (prepareForNextPeer): Use PeerHandle.
  12545. * src/PeerMessage.h
  12546. (peer): Changed its type to PeerHandle.
  12547. (getPeer): Replaced Peer with PeerHandle.
  12548. (setPeer): Replaced Peer with PeerHandle.
  12549. * src/DownloadCommand.cc
  12550. (DownloadCommand): Replaced Socket with SocketHandle.
  12551. * src/FtpConnection.h
  12552. (socket): Changed its type to SocketHandle.
  12553. (FtpConnection): Replaced Socket with SocketHandle.
  12554. (sendPort); Replaced Socket with SocketHandle.
  12555. * src/FtpDowndloadCommand.h
  12556. (ctrlSocket): Changed its type to SocketHandle.
  12557. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12558. * src/HttpProxyRequestCommand.cc
  12559. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12560. * src/FtpTunnelRequestCommand.h
  12561. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12562. etc
  12563. * src/PeerChokeCommand.h
  12564. (setAllPeerChoked): Removed.
  12565. (setAllPeerResetDelta): Removed.
  12566. * src/PeerChokeCommand.cc
  12567. (setAllPeerChoked): Removed.
  12568. (ChokePeer): New function object.
  12569. (setAllPeerResetDelta): Removed.
  12570. (ResetDelta): New function object.
  12571. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12572. (execute): Show download speed when the local node is a seeder.
  12573. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12574. using STL.
  12575. * src/TrackerWatcherCommand.h
  12576. (MIN_PEERS): Removed.
  12577. * src/TorrentMan.cc
  12578. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12579. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12580. To fix the bug that .aria2 file is not saved if downloading is stopped
  12581. by the errors:it results that aria2 can not resume downloading:
  12582. * src/main.cc
  12583. (normalDownload): Added the call to save().
  12584. (main): Added the deletion of the elements in 'reserved'.
  12585. To fix log:
  12586. * src/PeerInteraction.cc
  12587. (receiveHandshake): Fixed log.
  12588. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12589. To improve download performance in BitTorrent:
  12590. * src/TorrentMan.cc
  12591. (getPeer): Check the number of connections. Return nullPeer if
  12592. it is greater than MAX_PEER_UPDATE.
  12593. This code was originally here, but was removed in 0.5.1.
  12594. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12595. To improve the conditional compilation:
  12596. * src/MultiDiskWriter.h:
  12597. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12598. * src/MultiDiskWriter.cc:
  12599. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12600. * src/Util.h:
  12601. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12602. Added ENABLE_BITTORRENT around computeFastSet().
  12603. * src/Util.cc:
  12604. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12605. Added ENABLE_BITTORRENT around computeFastSet().
  12606. * src/messageDigest.h:
  12607. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12608. * src/ShaVisitor.h:
  12609. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12610. * src/ShaVisitor.cc:
  12611. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12612. * src/main.cc:
  12613. Added ENABLE_BITTORRENT around includes and blocks related to
  12614. BitTorrent.
  12615. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12616. digest support is not available.
  12617. * src/AbstractDiskWriter.h:
  12618. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12619. * src/AbstractDiskWriter.cc:
  12620. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12621. * src/MetalinkEntry.cc
  12622. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12623. support is not available.
  12624. To add command-line options for Metalink:
  12625. * src/main.cc:
  12626. Added metalink-version, metalink-language, metalink-os,
  12627. follow-metalink.
  12628. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12629. * src/main.cc: Use these definition.
  12630. * Release 0.6.0
  12631. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12632. To add Metalink support(http/ftp only):
  12633. * src/AbstractCommand.h
  12634. (tryReserved): New function.
  12635. * src/AbstractCommand.cc
  12636. (execute): Call tryReserved().
  12637. (tryReserved): New function.
  12638. * src/Request.h
  12639. (Requests): New type definition.
  12640. * src/SegmentMan.h
  12641. (reserved): New variable.
  12642. * src/Util.h
  12643. (fileChecksum): New function.
  12644. (toUpper): New function.
  12645. (toLower): New function.
  12646. * src/Util.cc
  12647. (messageDigest.h): Included.
  12648. (trim): Trim \r\n\t.
  12649. (fileChecksum): New function.
  12650. (toUpper): New function.
  12651. (toLower): New function.
  12652. * src/main.cc
  12653. (normalDownload): New function.
  12654. (main): Added 2 command-line options: metalink-file,
  12655. metalink-connection. Their usage has not been written yet.
  12656. * src/MetalinkProcessor.h: New class.
  12657. * src/Xml2MetalinkProcessor.h: New class.
  12658. * src/Xml2MetalinkProcessor.cc: New class.
  12659. * src/MetalinkEntry.h: New class.
  12660. * src/MetalinkEntry.cc: New class.
  12661. * src/MetalinkResource.h: New class.
  12662. * src/MetalinkResource.cc: New class.
  12663. To add md5 message digest checking:
  12664. * src/messageDigest.h: Rewritten.
  12665. * src/MultiDiskWriter.cc: Updated according to the changes in
  12666. messageDigest.h.
  12667. * src/ShaVisitor.cc: Updated according to the changes in
  12668. messageDigest.h.
  12669. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12670. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12671. messageDigest.h.
  12672. To fix a bug that causes segfault when the payload length in peer
  12673. message is less than 0:
  12674. * src/PeerConnection.cc:
  12675. (receiveMessage): Fixed the bug.
  12676. * src/PeerMessageUtil.cc
  12677. (checkLength): Throw an exception if length is less than or equals to
  12678. 0.
  12679. To add new interfaces to Base64 encoding/decoding:
  12680. * src/Base64.h
  12681. (part_encode): Changed the method signature.
  12682. (encode): New function(overload).
  12683. (decode): New function(overload).
  12684. * src/Base64.cc
  12685. (part_encode): Rewritten.
  12686. (encode): Rewritten.
  12687. (encode): New function(overload).
  12688. To prevent a peer to download same piece if there is an error in
  12689. checksum:
  12690. * src/PieceMessage.cc
  12691. (receivedAction): Call peerInteraction->abortPiece().
  12692. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12693. To fix the bug that causes same have message is sent many times to
  12694. a single peer.
  12695. * src/Time.cc
  12696. (isNewer): Use Util::difftv().
  12697. * src/Util.cc
  12698. (difftv): Added a cast to (long long int).
  12699. * src/TorrentMan.cc
  12700. (advertisePiece): Use push_front.
  12701. (getAdvertisedPieceIndexes): A performance improvement was made.
  12702. To fix the bug that sends tracker requests without a sleep interval
  12703. when the number of connections is less than 15.
  12704. * src/TrackerWatcherCommand.cc
  12705. (execute): Now the number of connections is not a factor to decide
  12706. whether or not a tracker request should be sent or not.
  12707. * src/Time.h
  12708. (setTimeInSec): New function.
  12709. * src/Time.cc
  12710. (setTimeInSec): New function.
  12711. etc.
  12712. * src/ChokeMessage.cc
  12713. (receivedAction): Removed peer->snubbing = false
  12714. * src/PeerConnection.h
  12715. (receiveHandshake): Updated doc.
  12716. * src/TorrentMan.h
  12717. (getAdvertisedPieceIndexes): Updated the method signature.
  12718. * src/TorrentMan.cc
  12719. (getAdvertisedPieceIndexes): Updated the method signature.
  12720. * src/Time.h
  12721. (getTimeInMicros): Added a cast to (long long int).
  12722. (getTimeInMillis): Added a cast to (long long int).
  12723. * Release 0.5.2
  12724. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12725. To make a listening socket non-block:
  12726. * src/SocketCore.h
  12727. (setNonBlockingMode): New function.
  12728. * src/SocketCore.cc
  12729. (setNonBlockingMode): New function.
  12730. (beginListen): Added a call to setNonBlockingMode().
  12731. (acceptConnection): Call setNonBlockingMode().
  12732. (setBlockingMode): Updated.
  12733. To handle tracker's NAT-checking:
  12734. * src/PeerConnection.cc
  12735. (receiveHandshake): 'msg' param is filled with received data and
  12736. its length is assigned to 'length' param, even if all handshake
  12737. message is not yet received.
  12738. * src/PeerInteractionCommand.cc
  12739. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12740. a new peer connects to localhost.
  12741. A call to peerInteraction->sendHandshake() was removed because
  12742. it is called from peerInteraction->receiveHandshake(true).
  12743. * src/PeerInteraction.h
  12744. (quickReplied): New variable.
  12745. (receiveHandshake): Added an argument.
  12746. * src/PeerInteraction.cc
  12747. (PeerInteraction): Added the initialization of quickReplied.
  12748. (receiveHandshake): Send handshake message as soon as the info hash
  12749. in a handshake message from a peer is correct.
  12750. To change the random part of peer id and key parameter:
  12751. * src/TorrentMan.h
  12752. (key): New variable.
  12753. * src/TorrentMan.cc
  12754. (setupInternal1): Use Util::randomAlpha() to generate random part
  12755. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12756. key is also generated by Util::randomAlpha() and it is now 8 character
  12757. long.
  12758. * src/Util.h
  12759. (randomAlpha): New function.
  12760. * src/Util.cc
  12761. (randomAlpha): New function.
  12762. * src/TrackerWatcherCommand.cc
  12763. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12764. Added no_peer_id=1.
  12765. Set snubbing flag to false when a choke message is received from a
  12766. snubbed peer.
  12767. * src/ChokeMessage.cc
  12768. (receivedAction): Set snubbing flag to false.
  12769. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12770. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12771. * src/SimpleLogger.h (writeHeader): New function.
  12772. * src/SimpleLogger.cc (writeHeader): New function.
  12773. (writeLog): Fixed the bug that causes segfaults if exception message
  12774. contains an unescaped "%" character.
  12775. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12776. when a tracker request fails.
  12777. * src/Request.cc (parseUrl): Query string is now handled properly.
  12778. * Release 0.5.1
  12779. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12780. To add Time class which represents a specific instant in time and
  12781. its precision is microseconds. Time checking procedures were rewritten
  12782. using this object.
  12783. * src/Time.h: New class.
  12784. * src/Time.cc: New class.
  12785. * src/AbstractCommand.h
  12786. (updateCheckPoint): Removed.
  12787. (isTimeoutDetected): Removed.
  12788. (checkPoint): Changed the type to Time.
  12789. (timeout): New variable.
  12790. (setTimeout): New function.
  12791. * src/AbstractCommand.cc
  12792. (AbstractCommand): Removed the initialization of checkPoint.
  12793. Added the initialization of timeout.
  12794. (updateCheckPoint): Removed.
  12795. (isTimeoutDetected): Removed.
  12796. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12797. * src/PeerChokeCommand.h
  12798. (checkPoint): Changed the type to Time.
  12799. * src/PeerChokeCommand.cc
  12800. (PeerChokeCommand): Removed the initialization of checkPoint.
  12801. (execute): Rewritten using Time object.
  12802. * src/TrackerWatcherCommand.h
  12803. (checkPoint): Changed the type to Time.
  12804. * src/TrackerWatcherCommand.cc
  12805. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12806. (execute): Rewritten.
  12807. * src/ConsoleDownloadEngine.h
  12808. (cp): Changed the type to Time.
  12809. (startup): Changed the type to Time.
  12810. * src/ConsoleDownloadEngine.cc
  12811. (initStatistics): Use cp.reset(), startup.reset().
  12812. (calculateStatistics): Rewritten using Time object.
  12813. * src/PeerAbstractCommand.h
  12814. (updateCheckPoint): Removed.
  12815. (isTimeoutDetected): Removed.
  12816. (checkPoint): Changed the type to Time.
  12817. * src/PeerAbstractCommand.cc
  12818. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12819. (updateCheckPoint): Removed.
  12820. (isTimeoutDetected): Removed.
  12821. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12822. * src/PeerInteractionCommand.cc
  12823. (PeerInteractionCommand): Removed the initializations of struct
  12824. timeval variables.
  12825. * src/PeerInteractionCommand.h
  12826. (keepAliveCheckPoint): Changed the type to Time.
  12827. (chokeCheckPoint): Changed the type to Time.
  12828. (freqCheckPoint): Changed the type to Time.
  12829. (haveCheckTime): Changed the type to Time.
  12830. * src/PeerInteractionCommand.cc
  12831. (executeInternal): Rewritten using Time object.
  12832. (detectMessageFlooding): Rewritten using Time object.
  12833. (checkLongTimePeerChoking): Rewritten using Time object.
  12834. (sendKeepAlive): Rewritten using Time object.
  12835. (checkHave): Rewritten using Time object.
  12836. * src/SleepCommand.h
  12837. (checkPoint): Changed the type to Time.
  12838. * src/SleepCommand.cc
  12839. (SleepCommand): Removed the initialization of checkPoint.
  12840. (execute): Rewritten using Time object.
  12841. * src/TorrentAutoSaveCommand.h
  12842. (checkPoint): Changed the type to Time.
  12843. * src/TorrentAutoSaveCommand.cc
  12844. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12845. (execute): Rewritten.
  12846. * src/DownloadCommand.h
  12847. (sw): Changed the type to Time.
  12848. * src/DownloadCommand.cc
  12849. (DownloadCommand): Removed the initialization of sw.
  12850. (executeInternal): Rewritten.
  12851. * src/RequestSlot.h
  12852. (dispatchedTime): Changed the type to Time.
  12853. * src/RequestSlot.cc
  12854. (RequestSlot): Removed the call to setDispatchedTime().
  12855. (setDispatchedTime): Rewirtten.
  12856. (isTimeout): Rewritten.
  12857. (getLatencyInMillis): Rewritten.
  12858. * src/TorrentDownloadEngine.h
  12859. (cp): Changed the type to Time[2].
  12860. (startup): Changed the type to Time.
  12861. * src/TorrentDownloadEngine.cc
  12862. (initStatistics): Rewritten.
  12863. (calculateStatistics): Rewritten.
  12864. * src/DownloadEngine.cc
  12865. (run): Rewritten.
  12866. To detect all attempts to connect to the tracker are failed:
  12867. * src/AbstractCommand.cc
  12868. (execute): Increment e->segmentMan->errors if a command aborted.
  12869. * src/SegmentMan.h
  12870. (errors): New variable.
  12871. * src/SegmentMan.cc
  12872. (SegmentMan): Added the initialization of errors.
  12873. (init): Added the initialization of errors.
  12874. * src/TrackerWatcherCommand.cc
  12875. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12876. request was failed.
  12877. To handle snubbed peers:
  12878. * src/PeerChokeCommand.cc
  12879. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12880. (execute): Snubbed peers don't get unchoked.
  12881. * src/PeerInteraction.h
  12882. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12883. * src/PeerInteraction.cc
  12884. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12885. back the requested 16k block in 60 seconds.
  12886. * src/PieceMessage.cc
  12887. (receivedAction): A peer's snubbed state is cleard if it sends
  12888. the requested 16k block in 60 seconds.
  12889. * src/Peer.h
  12890. (snubbing): New variable.
  12891. * src/Peer.cc
  12892. (resetStatus): Added snubbed = false.
  12893. To fix the bug that causes have message is not sent:
  12894. * src/PeerInteractionCommand.cc
  12895. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12896. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12897. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12898. * src/TorrentMan.h
  12899. (HaveEntry): New class.
  12900. (advertisePiece): Rewritten.
  12901. (getAdvertisedPieceIndexes): Rewritten.
  12902. (Haves): Changed the type.
  12903. (getAdvertisedPieceIndexes): Added an argument.
  12904. Others:
  12905. * src/TorrentMan.h
  12906. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12907. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12908. * src/TorrentMan.cc
  12909. (getPeer): Don't check the number of connections here.
  12910. (setupInternal1): Changed peerId.
  12911. * src/PeerInteractionCommand.h
  12912. (KEEP_ALIVE_INTERVAL): New definition.
  12913. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12914. * src/main.cc
  12915. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12916. * src/DownloadEngine.h: Removed unnecessary header includes.
  12917. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12918. To fix the bug that causes segfaults if a tracker returns a zero-length
  12919. list as "peers":
  12920. * src/TrackerUpdateCommand.cc
  12921. (execute): Added a check to see wether the type of peers is Data*.
  12922. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12923. * Release 0.5.0
  12924. To fix compile issue with gcc3:
  12925. * src/CancelMessage.h
  12926. (ID): Renamed as ID_t
  12927. (ID_t): New enum.
  12928. * src/RejectMessage.h
  12929. (ID): Renamed as ID_t
  12930. (ID_t): New enum.
  12931. * src/SuggestPieceMessage.h
  12932. (ID): Renamed as ID_t
  12933. (ID_t): New enum.
  12934. * src/AllowedFastMessage.h
  12935. (ID): Renamed as ID_t
  12936. (ID_t): New enum.
  12937. * src/PortMessage.h
  12938. (ID): Renamed as ID_t
  12939. (ID_t): New enum.
  12940. * src/HaveNoneMessage.h
  12941. (ID): Renamed as ID_t
  12942. (ID_t): New enum.
  12943. * src/KeepAliveMessage.h
  12944. (ID): Renamed as ID_t
  12945. (ID_t): New enum.
  12946. * src/HaveAllMessage.h
  12947. (ID): Renamed as ID_t
  12948. (ID_t): New enum.
  12949. * src/UnchokeMessage.h
  12950. (ID): Renamed as ID_t
  12951. (ID_t): New enum.
  12952. * src/BitfieldMessage.h
  12953. (ID): Renamed as ID_t
  12954. (ID_t): New enum.
  12955. * src/PieceMessage.h
  12956. (ID): Renamed as ID_t
  12957. (ID_t): New enum.
  12958. * src/RequestMessage.h
  12959. (ID): Renamed as ID_t
  12960. (ID_t): New enum.
  12961. * src/NotInterestedMessage.h
  12962. (ID): Renamed as ID_t
  12963. (ID_t): New enum.
  12964. * src/ChokeMessage.h
  12965. (ID): Renamed as ID_t
  12966. (ID_t): New enum.
  12967. * src/InterestedMessage.h
  12968. (ID): Renamed as ID_t
  12969. (ID_t): New enum.
  12970. * src/HaveMessage.h
  12971. (ID): Renamed as ID_t
  12972. (ID_t): New enum.
  12973. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12974. * src/PeerAbstractCommand.h
  12975. (beforeSocketCheck): Removed.
  12976. * src/PeerAbstractCommand.cc
  12977. Modified in order to call executeInternal() even if socket check
  12978. and upload limit check fail.
  12979. * src/PeerInteractionCommand.h
  12980. (keepAlive): Removed.
  12981. (sendKeepAlive): New function.
  12982. (checkHave): New function.
  12983. (beforeSocketCheck): Removed.
  12984. * src/PeerInteractionCommand.cc
  12985. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12986. calls to checkHave() and sendKeepAlive().
  12987. (keepAlive): Renamed to sendKeepAlive().
  12988. (sendKeepAlive): New function.
  12989. (beforeSocketCheck): Removed.
  12990. (checkHave): New function.
  12991. * src/BitfieldMan.cc
  12992. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12993. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12994. 0.
  12995. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12996. * src/TorrentMan.h
  12997. (UsedPieces): Removed.
  12998. (Pieces): New type definition.
  12999. * src/Piece.h: Updated doc.
  13000. * src/Peer.h
  13001. (totalLength): Removed.
  13002. * src/Peer.cc
  13003. (updateLatency): Fixed the latency calculation.
  13004. * src/TorrentMan.cc
  13005. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13006. than or equal to MAX_PEER_LIST_SIZE.
  13007. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13008. then return false.
  13009. (deleteOldErrorPeers): Rewritten.
  13010. (deleteUsedPiece): Fixed the miss use of STL remove.
  13011. * src/PeerInteraction.h
  13012. (Pieces): Removed.
  13013. (deleteTimeoutRequestSlot): Removed.
  13014. (deleteCompletedRequestSlot): Removed.
  13015. (checkRequestSlot): New function.
  13016. * src/PeerInteraction.cc
  13017. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13018. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13019. (checkRequestSlot): New function.
  13020. * src/DownloadEngine.cc
  13021. (run): Clear activeSockets before calling waitData().
  13022. (waitData): Removed a call to activeSockets.clear().
  13023. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. To attempt to handle EINTR:
  13025. * src/SocketCore.cc
  13026. (isReadable): Added EINTR handling.
  13027. (isWritable): Added EINTR handling.
  13028. To improve the performance:
  13029. * src/AbstractCommand.cc
  13030. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13031. * src/PeerInteractionCommand.h
  13032. (receiveMessage): Renamed as receiveMessages().
  13033. (receiveMessages): New function.
  13034. * src/PeerInteractionCommand.cc
  13035. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13036. () function. detectMessageFlooding() is moved here.
  13037. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13038. (). The flooding detection for have message is comment out.
  13039. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13040. Util::difftv().
  13041. (receiveMessage): Renamed as receiveMessages().
  13042. (receiveMessages): New function.
  13043. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13044. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13045. * src/SleepCommand.cc
  13046. (execute): Use Util::difftvsec() instead of Util::difftv().
  13047. * src/BitfieldMan.h
  13048. (getNthBitIndex): New function.
  13049. (hasMissingPiece): New function.
  13050. (getAllMissingIndexes): New function.
  13051. * src/BitfieldMan.cc
  13052. (countSetBit): Rewritten.
  13053. (getNthBitIndex): New function.
  13054. (getMissingIndexRandomly): Rewritten.
  13055. (hasMissingPiece): New function.
  13056. (getAllMissingIndexes): New function.
  13057. * src/TorrentMan.cc
  13058. (hasMissingPiece): New function.
  13059. (deleteUsedPiece): Rewritten using STL.
  13060. * src/PeerInteraction.cc
  13061. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13062. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13063. (addRequests): Updated the number of pending requests.
  13064. * src/PeerAbstractCommand.cc
  13065. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13066. (execute): Returns true if TorrentMan::isHalt() is true.
  13067. Corrected the condition of upload limit checking.
  13068. * src/Util.h
  13069. (countBit): New function.
  13070. * src/Util.cc
  13071. (nbits): New variable.
  13072. (countBit): New function.
  13073. * src/DownloadEngine.h
  13074. (SockCmdMap): New type definition.
  13075. (waitData): Added an argument.
  13076. (addSocket): Added an argument.
  13077. (addSocketForReadCheck): Added an argument.
  13078. (addSocketForWriteCheck): Added an argument.
  13079. * src/DownloadEngine.cc
  13080. (run): Executes only commands whose sockets are ready to read or write.
  13081. All commands are executed in every 1 second.
  13082. (waitData): Calls select() again if it returned
  13083. EINTR.
  13084. (addSocket): Saves socket and command object pair to the map.
  13085. (deleteSocket): Deletes socket and command object pair from the map.
  13086. (addSocketForReadCheck): Added an argument.
  13087. (addSocketForWriteCheck): Added an argument.
  13088. * src/DownloadCommand.cc
  13089. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13090. To send "event=stopped" to the tracker when the application finishes:
  13091. * src/PeerChokeCommand.h
  13092. (checkPoint): New variable.
  13093. * src/PeerChokeCommand.cc
  13094. (PeerChokeCommand): Added the initialization of checkPoint.
  13095. (execute): The interval check is now done by checkPoint, not
  13096. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13097. * src/TorrentMan.h
  13098. (halt): New function.
  13099. (hasMissingPiece): New function.
  13100. (isHalt): New function.
  13101. (setHalt): New function.
  13102. * src/TorrentMan.cc
  13103. (TorrentMan): Added the initialization of halt.
  13104. * src/TorrentAutoSaveCommand.h
  13105. (checkPoint): New variable.
  13106. * src/PeerListenCommand.cc
  13107. (execute): Returns true if TorrentMan::isHalt() is true.
  13108. * src/main.cc
  13109. (setSignalHander): Added flags argument.
  13110. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13111. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13112. Removed printDownloadAbortMessage() after torrent downloading loop.
  13113. * src/TorrentAutoSaveCommand.cc
  13114. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13115. (execute): Returns true if TorrentMan::isHalt() is true.
  13116. The interval check is now done by checkPoint, not SleepCommand.
  13117. * src/TrackerWatcherCommand.cc
  13118. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13119. event=stopped.
  13120. * src/TrackerUpdateCommand.cc
  13121. (prepareForRetry): Do not use SleepCommand here.
  13122. (execute): Returns true if TorrentMan::isHalt() is true.
  13123. Others:
  13124. * src/TorrentMan.cc
  13125. (getMissingPieceIndex): Updated log message.
  13126. * src/PeerInteraction.cc
  13127. (createPeerMessag): Updated log message.
  13128. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13129. To add the ability to download several pieces in mix in a command and
  13130. increase the number of request slots according to request-cancel
  13131. latency:
  13132. * src/PeerInteractionCommand.cc
  13133. (executeInternal): The number of messages to be received at a time
  13134. is increased from 10 to 50.
  13135. * src/LogFactory
  13136. (getInstance): Added NullLogger.
  13137. * src/NullLogger.h: New class.
  13138. * src/BitfieldMan.h
  13139. (getMissingIndex): New function.
  13140. * src/BitfieldMan.cc
  13141. (getMissingIndex): New function.
  13142. * src/TorrentMan.h
  13143. (checkOutPiece): New function.
  13144. (getMissingPieceIndex): New function.
  13145. (getMissingFastPieceIndex): New function.
  13146. (getMissingFastPiece): New function.
  13147. * src/TorrentMan.cc
  13148. (updatePiece): Rewritten using STL.
  13149. (syncPiece): Rewritten using STL.
  13150. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13151. checkOutPiece().
  13152. (getMissingPieceIndex): New function.
  13153. (getMissingFastPieceIndex): New function.
  13154. (getMissingFastPiece): New function.
  13155. (checkOutPiece): New function.
  13156. * src/PeerInteraction.h
  13157. (Pieces): New type definition.
  13158. (piece): Removed.
  13159. (pieces): New variable.
  13160. (getNewPieceAndSendInterest): Added the "piece" argument.
  13161. (abortPiece): Added the "piece" argument.
  13162. (abortAllPieces): New function.
  13163. (isInRequestSlot): New function.
  13164. (hasDownloadPiece): Added the "index" argument.
  13165. (setDownloadPiece): Removed.
  13166. (getDownloadPiece): Added the "index" argument.
  13167. (updatePiece): New function.
  13168. (createRequestMessage): Added the "index" argument.
  13169. * src/PeerInteraction.cc
  13170. (onChoked): Rewritten.
  13171. (abortPiece): Rewirtten.
  13172. (abortAllPieces): New function.
  13173. (deleteTimeoutRequestSlot): Rewritten.
  13174. Clarified code a little bit.
  13175. (deleteCompletedRequestSlot): Rewritten.
  13176. (isInRequestSlot): New function.
  13177. (syncPiece): Rewritten.
  13178. (updatePiece): New function.
  13179. (getNewPieceAndSendInterest): Rewritten.
  13180. (addRequests): Rewritten.
  13181. (getDownloadPiece): Rewritten.
  13182. (hasDownloadPiece): Rewritten.
  13183. (createRequestMessage): Added the "index" argument.
  13184. * src/common.h
  13185. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13186. (DIV_FLOOR): New definition.
  13187. * src/PieceMessage.cc
  13188. (receivedAction): Update request-piece latency here.
  13189. * src/RequestSlot.h
  13190. (getLatencyInMillis): New function.
  13191. * src/RequestSlot.cc
  13192. (isTimeout): Rewritten using getLatencyInMillis.
  13193. (getLatencyInMillis): New function.
  13194. * src/Piece.h
  13195. (operator==): New function.
  13196. (getMissingBlockIndex): New function.
  13197. * src/Piece.cc
  13198. (operator==): New function.
  13199. (getMissingBlockIndex): New function.
  13200. * src/Peer.h
  13201. (DEFAULT_LATENCY): New definition.
  13202. (latency): New variable.
  13203. (updateLatency): New function.
  13204. (getLatency): New function.
  13205. * src/Peer.cc
  13206. (resetStatus): Reset latecy.
  13207. (updateLatency): New function.
  13208. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13209. * src/SocketCore.cc
  13210. (isReadable): Added secure to the condition.
  13211. * src/HttpConnection.cc
  13212. (receiveResponse): Fixed a bug that causes no response header
  13213. exception.
  13214. * src/Peer.h
  13215. (getFastSet): Fixed the return value type.
  13216. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13217. To remove a wait from download loop:
  13218. * src/DownloadEngine.cc
  13219. (run): Comment out shortSleep.
  13220. To rewrite the message handling:
  13221. * src/SimplePeerMessage.h: New class.
  13222. * src/SimplePeerMessage.cc: New class.
  13223. * src/CancelMessage.h: Derived from SimplePeerMessage.
  13224. (msg): New variable.
  13225. (create): New function.
  13226. (send): Removed.
  13227. (getMessage): New function.
  13228. (getMessageLength): New function.
  13229. * src/CancelMessage.cc
  13230. (create): New function.
  13231. (receivedAction): Replaced deleteRequestMessageInQueue with
  13232. rejectPieceMessageInQueue.
  13233. (send): Removed.
  13234. (getMessage): New function.
  13235. (getMessageLength): New function.
  13236. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  13237. (msg): New variable.
  13238. (msgLength): New variable.
  13239. (~BitfieldMessage): Deleted msg.
  13240. (send): Removed.
  13241. (getMessage): New function.
  13242. (getMessageLength): New function.
  13243. * src/BitfieldMessage.cc
  13244. (create): New function.
  13245. (send): Removed.
  13246. (getMessage): New function.
  13247. (getMessageLength): New function.
  13248. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  13249. (msg): New variable.
  13250. (sendPredicate): New function.
  13251. (onSendComplete): New function.
  13252. (send): Removed.
  13253. (getMessage): New function.
  13254. (getMessageLength): New function.
  13255. (create): New function.
  13256. * src/ChokeMessage.cc
  13257. (create): New function.
  13258. (send): Removed.
  13259. (sendPredicate): New function.
  13260. (getMessage): New function.
  13261. (getMessageLength): New function.
  13262. (onSendComplete): New function.
  13263. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  13264. (msg): New variable.
  13265. (send): Removed.
  13266. (getMessage): New function.
  13267. (getMessageLength): New function.
  13268. * src/KeepAliveMessage.cc
  13269. (send): Removed.
  13270. (getMessage): New function.
  13271. (getMessageLength): New function.
  13272. * src/PortMessage.h
  13273. (create): New function.
  13274. (receivedAction): Updated log message.
  13275. * src/PortMessage.cc: New file.
  13276. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  13277. (msg): New variable.
  13278. (sendPredicate): New function.
  13279. (onSendComplete): New function.
  13280. (create): New function.
  13281. (send): Removed.
  13282. (getMessage): New function.
  13283. (getMessageLength): New function.
  13284. * src/UnchokeMessage.cc
  13285. (create): New function.
  13286. (send): Removed.
  13287. (sendPredicate): New function.
  13288. (getMessage): New function.
  13289. (getMessageLength): New function.
  13290. (onSendComplete): New function.
  13291. * src/PieceMessage.h
  13292. (leftPieceDataLength): Removed.
  13293. (leftDataLength): New variable.
  13294. (headerSend): New variable.
  13295. (pendingCount): New variable.
  13296. (msgHeader): New variable.
  13297. (sendPieceData): New function.
  13298. (incrementPendingCount): New function.
  13299. (isPendingCountMax): New function.
  13300. (create): New function.
  13301. (getMessageHeader): New function.
  13302. (getMessageHeaderLength): New function.
  13303. * src/PieceMessage.cc
  13304. (create): New function.
  13305. (getMessageHeader): New function.
  13306. (getMessageHeaderLength): New function.
  13307. (send): Rewritten.
  13308. (sendPieceData): New function.
  13309. * src/HaveMessage.h: Derived from SimplePeerMessage.
  13310. (msg): New variable.
  13311. (create): New function.
  13312. (getMessage): New function.
  13313. (getMessageLength): New function.
  13314. * src/HaveMessage.cc
  13315. (create): New function.
  13316. (send): Removed.
  13317. (sendPieceData): New function.
  13318. (getMessage): New function.
  13319. (getMessageLength): New function.
  13320. * src/RequestMessage.h: Derived from SimplePeerMessage.
  13321. (msg): New variable.
  13322. (create): New function.
  13323. (send): Removed.
  13324. (getMessage): New function.
  13325. (getMessageLength): New function.
  13326. * src/RequestMessage.cc
  13327. (create): New function.
  13328. (receivedAction): Added the handling of fast extension.
  13329. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  13330. (send): Removed.
  13331. (getMessage): New function.
  13332. (getMessageLength): New function.
  13333. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  13334. (msg): New variable.
  13335. (sendPredicate): New function.
  13336. (onSendComplete): New function.
  13337. (create): New function.
  13338. (getMessage): New function.
  13339. (getMessageLength): New function.
  13340. * src/InterestedMessage.cc
  13341. (create): New function.
  13342. (send): Removed.
  13343. (sendPieceData): New function.
  13344. (getMessage): New function.
  13345. (getMessageLength): New function.
  13346. (onSendComplete): New function.
  13347. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  13348. (msg): New variable.
  13349. (sendPieceData): New function.
  13350. (onSendComplete): New function.
  13351. (create): New function.
  13352. (send): Removed.
  13353. (getMessage): New function.
  13354. (getMessageLength): New function.
  13355. * src/NotInterestedMessage.cc
  13356. (create): New function.
  13357. (send): Removed.
  13358. (sendPredicate): New function.
  13359. (getMessage): New function.
  13360. (getMessageLength): New function.
  13361. (onSendComplete): New function.
  13362. * src/AllowedFastMessage.h: New class.
  13363. * src/AllowedFastMessage.cc: New class.
  13364. * src/RejectMessage.h: New class.
  13365. * src/RejectMessage.cc: New class.
  13366. * src/SuggestPieceMessage.h: New class.
  13367. * src/SuggestPieceMessage.cc: New class.
  13368. * src/HaveAllMessage.h: New class.
  13369. * src/HaveAllMessage.cc: New class.
  13370. * src/HaveNoneMessage.h: New class.
  13371. * src/HaveNoneMessage.cc: New class.
  13372. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  13373. (msg): New variable.
  13374. (reserved): New variable.
  13375. (create): New function.
  13376. (getId): New function.
  13377. (receivedAction): New function.
  13378. (getMessage): New function.
  13379. (getMessageLength): New function.
  13380. (isFastExtensionSupported): New function.
  13381. * src/HandshakeMessage.cc
  13382. (HandshakeMessage): Moved here from HandshakeMessage.h.
  13383. (create): New function.
  13384. (getMessage): New function.
  13385. (getMessageLength): New function.
  13386. (toString): Added the output of reserved field.
  13387. (check): Added const qualifier.
  13388. (isFastExtensionSupported): New function.
  13389. * src/PeerMessageUtil.h
  13390. (createChokeMessage): Removed.
  13391. (createUnchokeMessage): Removed.
  13392. (createInterestedMessage): Removed.
  13393. (createNotInterestedMessage): Removed.
  13394. (createHaveMessage): Removed.
  13395. (createBitfieldMessage): Removed.
  13396. (createRequestMessage): Removed.
  13397. (createCancelMessage): Removed.
  13398. (createPieceMessage): Removed.
  13399. (createPortMessage): Removed.
  13400. (createChokeMessage): Removed.
  13401. (createUnchokeMessage): Removed.
  13402. (createInterestedMessage): Removed.
  13403. (createNotInterestedMessage): Removed.
  13404. (createHaveMessage): Removed.
  13405. (createBitfieldMessage): Removed.
  13406. (createRequestMessage): Removed.
  13407. (createCancelMessage): Removed.
  13408. (createPieceMessage): Removed.
  13409. (createKeepAliveMessage): Removed.
  13410. (createHandshakeMessage): Removed.
  13411. (setIntParam): New function.
  13412. (createPeerMessageString): New function.
  13413. * src/PeerMessageUtil.cc
  13414. (createChokeMessage): Removed.
  13415. (createUnchokeMessage): Removed.
  13416. (createInterestedMessage): Removed.
  13417. (createNotInterestedMessage): Removed.
  13418. (createHaveMessage): Removed.
  13419. (createBitfieldMessage): Removed.
  13420. (createRequestMessage): Removed.
  13421. (createCancelMessage): Removed.
  13422. (createPieceMessage): Removed.
  13423. (createPortMessage): Removed.
  13424. (createRequestMessage): Removed.
  13425. (createCancelMessage): Removed.
  13426. (createPieceMessage): Removed.
  13427. (createHaveMessage): Removed.
  13428. (createChokeMessage): Removed.
  13429. (createUnchokeMessage): Removed.
  13430. (createInterestedMessage): Removed.
  13431. (createNotInterestedMessage): Removed.
  13432. (createBitfieldMessage): Removed.
  13433. (createKeepAliveMessage): Removed.
  13434. (createHandshakeMessage): Removed.
  13435. (setIntParam): New function.
  13436. (createPeerMessageString): New function.
  13437. * src/PeerConnection.h
  13438. (peer): Removed.
  13439. (torrentMan): Removed.
  13440. (createNLengthMessage): Removed.
  13441. (setIntParam): Removed.
  13442. (writeOutgoingMessageLog): Removed all overloaded functions.
  13443. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13444. (sendMessage): New function.
  13445. (sendHandshake): Removed.
  13446. (sendKeepAlive): Removed.
  13447. (sendChoke): Removed.
  13448. (sendUnchoke): Removed.
  13449. (sendInterested): Removed.
  13450. (sendNotInterested): Removed.
  13451. (sendHave): Removed.
  13452. (sendBitfield): Removed.
  13453. (sendRequest): Removed.
  13454. (sendPiece): Removed.
  13455. (sendPieceHeader): Removed.
  13456. (sendPieceData): Removed.
  13457. (sendCancel): Removed.
  13458. (getPeer): Removed.
  13459. * src/PeerConnection.cc
  13460. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13461. (sendHandshake): Removed.
  13462. (sendKeepAlive): Removed.
  13463. (createNLengthMessage): Removed.
  13464. (setIntParam): Removed.
  13465. (writeOutgoingMessageLog): Removed all overloaded functions.
  13466. (sendChoke): Removed.
  13467. (sendUnchoke): Removed.
  13468. (sendInterested): Removed.
  13469. (sendNotInterested): Removed.
  13470. (sendHave): Removed.
  13471. (sendBitfield): Removed.
  13472. (sendRequest): Removed.
  13473. (sendPiece): Removed.
  13474. (sendPieceHeader): Removed.
  13475. (sendPieceData): Removed.
  13476. (sendMessage): New function.
  13477. (sendCancel): Removed.
  13478. * src/PeerInteractionCommand.cc
  13479. (PeerInteractionCommand): Call setUploadLimit.
  13480. (executeInternal): Call setUploadLimit.
  13481. Added the handling of "inProgress" state of handshake message.
  13482. Call sendBitfield() or sendAllowdFast() instead of deprecated
  13483. sendNow().
  13484. (keepAlive): Call addMessage and sendMessage instead of deprecated
  13485. sendNow().
  13486. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  13487. * src/TorrentMan.h
  13488. (PEER_ID_LENGTH): New definition.
  13489. (hasAllPieces): New function.
  13490. * src/TorrentMan.cc
  13491. (getMissingPiece): Added the handling of fast extension.
  13492. (cancelPiece): Call updatePiece().
  13493. (hasAllPieces): New function.
  13494. * src/PeerInteraction.h
  13495. (fastSet): New variable.
  13496. (getNewPieceAndSendInterest): Changed the return type to void.
  13497. (send): Renamed as sendMessages.
  13498. (deleteAllRequestSlot): Removed.
  13499. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13500. (cancelAllRequest): Removed all overloaded functions.
  13501. (deleteAllRequestSlot): Removed.
  13502. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13503. (rejectPieceMessageInQueue): New function.
  13504. (rejectAllPieceMessageInQueue): New function.
  13505. (onChoked): New function.
  13506. (isSendingMessageInProgress): New function.
  13507. (getCorrespondingRequestSlot): Changed its arguments.
  13508. (isInFastSet): New function.
  13509. (addFastSetIndex): New function.
  13510. (addRequests): New function.
  13511. (sendNow): Removed.
  13512. (trySendNow): Removed.
  13513. (sendBitfield): New function.
  13514. (sendAllowdFast): New function.
  13515. (createHaveAllMessage): New function.
  13516. (createHaveNoneMessage): New function.
  13517. (createRejectMessage): New function.
  13518. (createAllowedFastMessage): New function.
  13519. * src/PeerInteraction.cc
  13520. (send): Renamed as sendMessages.
  13521. (sendMessages): New function.
  13522. (MsgPushBack): New class.
  13523. (isSendingMessageInProgress): New function.
  13524. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13525. (rejectAllPieceMessageInQueue): New function.
  13526. Added the handling of fast extension.
  13527. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13528. (rejectPieceMessageInQueue): New function.
  13529. Added the handling of fast extension.
  13530. (deleteRequestSlot): Replaced for loop with std::find.
  13531. (onChoked): New function.
  13532. (deleteAllRequestSlot): Removed.
  13533. (abortPiece): Rewirtten.
  13534. (deleteTimeoutRequestSlot): Updated log messages.
  13535. (getCorrespondingRequestSlot): Changed its arguments.
  13536. (cancelAllRequest): Removed all overloaded functions.
  13537. (receiveHandshake): Added the check to see whether an incoming peer
  13538. supports fast extension.
  13539. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13540. PeerMessageUtil.
  13541. (createPeerMessage): Use create() of each message class instead of
  13542. PeerMessageUtil.
  13543. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13544. AllowedFastMessage were added.
  13545. (getNewPieceAndSendInterest): Changed its return value type to void.
  13546. Added the handling of fast extension.
  13547. (addRequests): New function.
  13548. (sendNow): Removed.
  13549. (sendHandshake): Rewritten.
  13550. (trySendNow): Removed.
  13551. (sendBitfield): New function.
  13552. (sendAllowdFast): New function.
  13553. (isInFastSet): New function.
  13554. (addFastSetIndex): New function.
  13555. (createRequestMessage): Use RequestMessage::create instead of
  13556. PeerMessageUtil.
  13557. (createCancelMessage): Use CancelMessage::create instead of
  13558. PeerMessageUtil.
  13559. (createPieceMessage): Use PieceMessage::create instead of
  13560. PeerMessageUtil.
  13561. (createHaveMessage): Use HaveMessage::create instead of
  13562. PeerMessageUtil.
  13563. (createChokeMessage): Use ChokeMessage::create instead of
  13564. PeerMessageUtil.
  13565. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13566. PeerMessageUtil.
  13567. (createInterestedMessage): Use InterestedMessage::create instead of
  13568. PeerMessageUtil.
  13569. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13570. of PeerMessageUtil.
  13571. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13572. PeerMessageUtil.
  13573. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13574. PeerMessageUtil.
  13575. (createHaveAllMessage): New function.
  13576. (createHaveNoneMessage): New function.
  13577. (createRejectMessage): New function.
  13578. (createAllowedFastMessage: New function.
  13579. * src/Util.h
  13580. (sha1Sum): New function.
  13581. (computeFastSet): New function.
  13582. * src/Util.cc
  13583. (sha1Sum): New function.
  13584. (computeFastSet): New function.
  13585. * src/Peer.h
  13586. (fastExtensionEnabled): New variable.
  13587. (fastSet): New variable.
  13588. (setAllBitfield): New function.
  13589. (setFastExtensionEnabled): New function.
  13590. (isFastExtensionEnabled): New function.
  13591. (addFastSetIndex): New function.
  13592. (getFastSet): New function.
  13593. (isInFastSet): New function.
  13594. (countFastSet): New function.
  13595. * src/Peer.cc
  13596. (isInFastSet): New function.
  13597. (addFastSetIndex): New function.
  13598. (setAllBitfield): New function.
  13599. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13600. sockets.
  13601. * src/PeerAbstractCommand.cc
  13602. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13603. and uploadLimit.
  13604. (execute): Changed the procedure of checking sockets. The upload speed
  13605. checking were added.
  13606. (setUploadLimit): New function.
  13607. (setUploadLimitCheck): New function.
  13608. * src/PeerAbstractCommand.h
  13609. (setUploadLimit): New function.
  13610. (setUploadLimitCheck): New function.
  13611. (uploadLimit): New variable.
  13612. (uploadLimitCheck): New variable.
  13613. To contact a tracker regularly:
  13614. * src/TrackerWatcherCommand.h (interval): New variable.
  13615. (checkPoint): New variable.
  13616. (TrackerWatcherCommand): Added interval argument.
  13617. * src/TrackerWatcherCommand.cc
  13618. (TrackerWatcherCommand): Initialized checkPoint.
  13619. (execute): Now a tracker is contacted in every specified period.
  13620. If peer list is not needed, send request with numwant=0.
  13621. * src/TrackerUpdateCommand.cc
  13622. (execute): Updated log messages.
  13623. * src/DownloadEngine.cc
  13624. (~DownloadEngine): Removed two asserts.
  13625. (waitData): Uncommented wfds. May be a bug fix.
  13626. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13627. * src/PeerInteractionCommand.h
  13628. (checkInactiveConnection): Removed.
  13629. * src/PeerInteractionCommand.cc
  13630. (executeInternal): Removed following function calls:
  13631. detectMessageFlooding(), checkLongTimePeerChoking and
  13632. checkInactiveConnection().
  13633. (checkInactiveConnection): Removed.
  13634. (detectMessageFlooding): Removed function call to
  13635. checkInactiveConnection().
  13636. * src/PeerMessageUtil.h
  13637. (createChokeMessage): New function. Overload.
  13638. (createUnchokeMessage): New function. Overload.
  13639. (createInterestedMessage): New function. Overload.
  13640. (createNotInterestedMessage): New function. Overload.
  13641. (createHaveMessage): New function. Overload.
  13642. (createBitfieldMessage): New function. Overload.
  13643. (createRequestMessage): New function. Overload.
  13644. (createCancelMessage): New function. Overload.
  13645. (createPieceMessage): New function. Overload.
  13646. (createKeepAliveMessage): New function. Overload.
  13647. * src/PeerMessageUtil.cc
  13648. (createChokeMessage): New function. Overload.
  13649. (createUnchokeMessage): New function. Overload.
  13650. (createInterestedMessage): New function. Overload.
  13651. (createNotInterestedMessage): New function. Overload.
  13652. (createHaveMessage): New function. Overload.
  13653. (createBitfieldMessage): New function. Overload.
  13654. (createRequestMessage): New function. Overload.
  13655. (createCancelMessage): New function. Overload.
  13656. (createPieceMessage): New function. Overload.
  13657. (createKeepAliveMessage): New function. Overload.
  13658. * src/SendMessageQueue.cc
  13659. (createRequestMessage): Use PeerMessageUtil.
  13660. (createCancelMessage): Use PeerMessageUtil.
  13661. (createPieceMessage): Use PeerMessageUtil.
  13662. (createHaveMessage): Use PeerMessageUtil.
  13663. (createChokeMessage): Use PeerMessageUtil.
  13664. (createUnchokeMessage): Use PeerMessageUtil.
  13665. (createInterestedMessage): Use PeerMessageUtil.
  13666. (createNotInterestedMessage): Use PeerMessageUtil.
  13667. (createBitfieldMessage): Use PeerMessageUtil.
  13668. (createKeepAliveMessage): Use PeerMessageUtil.
  13669. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13670. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13671. * src/PeerInteraction.h: New class.
  13672. * src/PeerInteraction.cc: New class.
  13673. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13674. Each peer message has its own class.
  13675. * src/PendingMessages.h: Removed.
  13676. * src/PendingMessages.cc: Removed. The sending process was moved to
  13677. each message class.
  13678. * src/RequestSlotMan.h: Removed.
  13679. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13680. SendMessageQueue.
  13681. * src/RequestMessage.h: New class.
  13682. * src/RequestMessage.cc: New class.
  13683. * src/CancelMessage.h: New class.
  13684. * src/CancelMessage.cc: New class.
  13685. * src/BitfieldMessage.h: New class.
  13686. * src/BitfieldMessage.cc: New class.
  13687. * src/ChokeMessage.h: New class.
  13688. * src/ChokeMessage.cc: New class.
  13689. * src/KeepAliveMessage.h: New class.
  13690. * src/KeepAliveMessage.cc: New class.
  13691. * src/PortMessage.h: New class.
  13692. * src/UnchokeMessage.h: New class.
  13693. * src/UnchokeMessage.cc: New class.
  13694. * src/PieceMessage.h: New class.
  13695. * src/PieceMessage.cc: New class.
  13696. * src/HaveMessage.h: New class.
  13697. * src/HaveMessage.cc: New class.
  13698. * src/BitfieldMessage.h: New class.
  13699. * src/BitfieldMessage.cc: New class.
  13700. * src/NotInterestedMessage.h: New class.
  13701. * src/NotInterestedMessage.cc: New class.
  13702. * src/InterestedMessage.h: New class.
  13703. * src/InterestedMessage.cc: New class.
  13704. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13705. (getSendMessageQueue): New function.
  13706. (setSendMessageQueue): New function.
  13707. * src/HandshakeMessage.cc: New class.
  13708. * src/PeerConnection.h (receiveMessage): Changed return value and
  13709. arguments.
  13710. (receiveHandshake): Changed return value and arguments.
  13711. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13712. here.
  13713. (receiveHandshake): Do not create handshake class here.
  13714. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13715. (piece): Removed.
  13716. (syncPiece): Removed.
  13717. (sendInterest): Removed.
  13718. (sendMessages): Removed.
  13719. (createRequestPendingMessage): Removed.
  13720. (checkPieceHash): Removed.
  13721. (erasePieceOnDisk): Removed.
  13722. (getNewPieceAndSendInterest): Removed.
  13723. (onGotNewPice): Removed.
  13724. (onGotWrongPiece): Removed.
  13725. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13726. Removed peerConnection, piece.
  13727. (~PeerInteractionCommand): Removed peerConnection.
  13728. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13729. (syncPiece): Moved to SendMessageQueue.
  13730. (decideChoking): Removed PendingMessage.
  13731. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13732. The action after receiving peer message was moved to each message
  13733. class.
  13734. (onGotNewPice): Moved to SendMessageQueue.
  13735. (onGotWrongPiece): Moved to SendMessageQueue.
  13736. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13737. (sendInterest): Moved to SendMessageQueue.
  13738. (createRequestPendingMessage): Removed.
  13739. (sendMessages): Moved to SendMessageQueue.
  13740. (onAbort): Use SendMessageQueue::abortPiece()
  13741. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13742. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13743. (checkPieceHash): Moved to SendMessageQueue.
  13744. (erasePieceOnDisk): Moved to SendMessageQueue.
  13745. * src/PeerMessageUtil.h
  13746. (createBitfieldMessage): Removed.
  13747. (createHaveMessage): Changed return value and arguments.
  13748. (createBitfieldMessage): Changed return value and arguments.
  13749. (createRequestCancelMessage): Removed.
  13750. (createPieceMessage): Changed return value and arguments.
  13751. (getShortIntParam): New function.
  13752. (checkIndex): Changed arguments.
  13753. (checkBegin): Changed arguments.
  13754. (checkLength): Changed arguments.
  13755. (checkPieceOffset): Removed.
  13756. (checkRange): New function.
  13757. (checkBitfield): Changed arguments.
  13758. (createPeerMessage): Removed.
  13759. (checkIntegrity): Removed.
  13760. (createHandshakeMessage): Changed arguments.
  13761. (createChokeMessage): New function.
  13762. (createUnchokeMessage): New function.
  13763. (createInterestedMessage): New function.
  13764. (createNotInterestedMessage): New function.
  13765. (createRequestMessage): New function.
  13766. (createCancelMessage): New function.
  13767. (createPortMessage): New function.
  13768. * src/PeerMessageUtil.cc
  13769. (createBitfieldMessage): Removed.
  13770. (createHaveMessage): Changed return value and arguments.
  13771. (createBitfieldMessage): Changed return value and arguments.
  13772. (createRequestCancelMessage): Removed.
  13773. (createPieceMessage): Changed return value and arguments.
  13774. (getShortIntParam): New function.
  13775. (checkIndex): Changed arguments.
  13776. (checkBegin): Changed arguments.
  13777. (checkLength): Changed arguments.
  13778. (checkPieceOffset): Removed.
  13779. (checkRange): New function.
  13780. (checkBitfield): Changed arguments.
  13781. (createPeerMessage): Removed.
  13782. (checkIntegrity): Removed.
  13783. (createHandshakeMessage): Changed arguments.
  13784. (createChokeMessage): New function.
  13785. (createUnchokeMessage): New function.
  13786. (createInterestedMessage): New function.
  13787. (createNotInterestedMessage): New function.
  13788. (createRequestMessage): New function.
  13789. (createCancelMessage): New function.
  13790. (createPortMessage): New function.
  13791. * src/PeerMessage.h
  13792. (id): Removed.
  13793. (index): Removed.
  13794. (begin): Removed.
  13795. (length): Removed.
  13796. (bitfield): Removed.
  13797. (bitfieldLength): Removed.
  13798. (block): Removed.
  13799. (blockLength): Removed.
  13800. (inProgress): New variable.
  13801. (cuid): New variable.
  13802. (peer): New variable.
  13803. (sendMessageQueue): New variable.
  13804. (logger): New variable.
  13805. (setBitfield): Removed.
  13806. (getBitfield): Removed.
  13807. (setBlock): Removed.
  13808. (getBlock): Removed.
  13809. (getBitfieldLength): Removed.
  13810. (getBlockLength): Removed.
  13811. (isInProgress): New function.
  13812. (toString): Made pure virtual.
  13813. (check): New function.
  13814. (send): New function.
  13815. (receivedAction): New function.
  13816. (getId): Made pure virtual.
  13817. (setId): Removed.
  13818. (getIndex): Removed.
  13819. (setIndex): Removed.
  13820. (getBegin): Removed.
  13821. (setBegin): Removed.
  13822. (getLength): Removed.
  13823. (setLength): Removed.
  13824. (getCuid): New function.
  13825. (setCuid): New function.
  13826. (getPeer): New function.
  13827. (setPeer): New function.
  13828. (getSendMessageQueue): New function.
  13829. (setSendMessageQueue): New function.
  13830. (ID): Removed.
  13831. * src/PeerMessage.cc
  13832. (setBitfield): Removed.
  13833. (setBlock): Removed.
  13834. (toString): Removed.
  13835. * src/TorrentMan.h
  13836. (getPieceLength): New function.
  13837. (getPieceLength): New function.
  13838. * src/SendMessageQueue.h
  13839. (REQUEST_TIME_OUT): New definition.
  13840. (RequestSlots): New definition.
  13841. (MessageQueue): New definition.
  13842. (requestSlotMan): Removed.
  13843. (pendingMessages): Removed.
  13844. (requestSlots): New variable.
  13845. (messageQueue): New variable.
  13846. (torrentMan): New variable.
  13847. (peerConnection): New variable.
  13848. (peer): New variable.
  13849. (piece): New variable.
  13850. (getNewPieceAndSendInterest): New function.
  13851. (createPeerMessage): New function.
  13852. (createHandshakeMessage): New function.
  13853. (send): Made private.
  13854. (setPeerMessageCommonProperty): New function.
  13855. (deleteAllRequestSlot): New function.
  13856. (deleteRequestMessageInQueue): New function.
  13857. (cancelAllRequest): Made private.
  13858. (cancelAllRequest): Made private.
  13859. (countRequestSlot): Made private.
  13860. (addPendingMessage): Removed.
  13861. (deletePendingPieceMessage): Removed.
  13862. (deletePendingRequestMessage): Removed.
  13863. (addMessage): New function.
  13864. (deletePieceMessageInQueue): New function.
  13865. (deleteTimeoutRequestSlot): Changed argument.
  13866. (deleteCompletedRequestSlot): Changed argument.
  13867. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13868. (getCorrespondingRequestSlot): New function.
  13869. (countPendingMessage): Removed.
  13870. (countMessageInQueue): New function.
  13871. (getTorrentMan): New function.
  13872. (getPeerConnection): New function.
  13873. (hasDownloadPiece): New function.
  13874. (getDownloadPiece): New function.
  13875. (setDownloadPiece): New function.
  13876. (syncPiece): New function.
  13877. (sendMessages): New function.
  13878. (sendNow): New function.
  13879. (trySendNow): New function.
  13880. (abortPiece): New function.
  13881. (sendHandshake): New function.
  13882. (receiveMessage): New function.
  13883. (receiveHandshake): New function.
  13884. (createRequestMessage): New function.
  13885. (createCancelMessage): New function.
  13886. (createPieceMessage): New function.
  13887. (createHaveMessage): New function.
  13888. (createChokeMessage): New function.
  13889. (createUnchokeMessage): New function.
  13890. (createInterestedMessage): New function.
  13891. (createNotInterestedMessage): New function.
  13892. (createBitfieldMessage): New function.
  13893. (createKeepAliveMessage): New function.
  13894. * src/SendMessageQueue.cc
  13895. (SendMessageQueue): Removed requestSlotMan.
  13896. Instantiated peerConnection here.
  13897. (~SendMessageQueue): Removed requestSlotMan.
  13898. Added deletion of peerConnection and the contents of messageQueue.
  13899. (send): Updated according to the change of messageQueue.
  13900. (addPendingMessage): Renamed to addMessage.
  13901. (addMessage): New function.
  13902. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13903. (deletePieceMessageInQueue): New function.
  13904. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13905. (deleteRequestMessageInQueue): New function.
  13906. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13907. here.
  13908. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13909. (...) was moved here.
  13910. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13911. moved here.
  13912. (deleteCompletedRequestSlot):
  13913. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13914. (getCorrespondingRequestSlot):
  13915. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13916. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13917. (countPendingMessage): Renamed to countMessageInQueue.
  13918. (countMessageInQueue): New function.
  13919. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13920. (receiveHandshake): New function.
  13921. (createHandshakeMessage): New function.
  13922. (receiveMessage): New function.
  13923. (createPeerMessage): New function.
  13924. (syncPiece): New function.
  13925. (getNewPieceAndSendInterest): New function.
  13926. (sendMessages): New function.
  13927. (sendNow): New function.
  13928. (trySendNow): New function.
  13929. (sendHandshake): New function.
  13930. (abortPiece): New function.
  13931. (getDownloadPiece): New function.
  13932. (getPeerMessageCommonProperty): New function.
  13933. (createRequestMessage): New function.
  13934. (createCancelMessage): New function.
  13935. (createPieceMessage): New function.
  13936. (createHaveMessage): New function.
  13937. (createChokeMessage): New function.
  13938. (createUnchokeMessage): New function.
  13939. (createInterestedMessage): New function.
  13940. (createNotInterestedMessage): New function.
  13941. (createBitfieldMessage): New function.
  13942. (createKeepAliveMessage): New function.
  13943. To add simple Content-Disposition support:
  13944. * src/HttpResponseCommand.h (determinFilename): New function.
  13945. * src/HttpResponseCommand.cc (executeInternal):
  13946. Use determinFilename(headers) instead of req->getFile() when comparing
  13947. filename.
  13948. (determinFilename): New function.
  13949. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13950. req->getFile().
  13951. (handleOtherEncoding): Use determinFilename(headers) instead of
  13952. req->getFile().
  13953. * src/Util.h (getContentDispositionFilename): New function.
  13954. * src/Util.cc (getContentDispositionFilename): New function.
  13955. * src/LogFactory.h (release): New function.
  13956. * src/LogFactory.cc (release): New function.
  13957. To fix a bug that causes out-of-bound exception when HTTP status
  13958. line is wrong:
  13959. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13960. size.
  13961. * src/common.h (Deleter): New class.
  13962. * src/SegmentMan.cc
  13963. (~SegmentMan): Added deletion of splitter and diskWriter.
  13964. * src/DownloadEngine.h
  13965. (Commands): Use deque.
  13966. (clearQueue): New function.
  13967. * src/DownloadEngine.cc
  13968. (~DownloadEngine): Added deletion of segmentMan.
  13969. (cleanQueue): New function.
  13970. * src/TorrentDownloadEngine.h
  13971. (TorrentDownloadEngine): The implementation was moved to
  13972. TorrentDownloadEngine.cc.
  13973. (~TorrentDownloadEngine): The implementation was moved to
  13974. TorrentDownloadEngine.cc.
  13975. * src/TorrentDownloadEngine.cc
  13976. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13977. * src/main.cc
  13978. (clearRequest): Removed.
  13979. (handler): Added deletion of e.
  13980. (torrentHandler): Added deletion of te.
  13981. (main): Do not share splitter.
  13982. Use Deleter instead of clearRequest.
  13983. Deletion of classes were updated.
  13984. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13985. * src/main.cc (main): Fixed typo.
  13986. * src/message.h: Fixed typo.
  13987. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13988. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13989. To add --select-file command-line option:
  13990. * src/Util.cc
  13991. (unfoldRange): New function.
  13992. (getNum): New function.
  13993. (unfoldSubRange): New function
  13994. * src/main.cc
  13995. (showUsage): Added help message.
  13996. (main): Added --select-file command-line option. Updated the layout of
  13997. file listing.
  13998. * src/common.h
  13999. (Integers): New definition.
  14000. * src/SocketCore.cc
  14001. (writeData): Removed timeout argument.
  14002. (readData): Removed timeout argument.
  14003. (peekData): Removed timeout argument.
  14004. * src/Socket.cc
  14005. (writeData): Removed timeout argument.
  14006. (readData): Removed timeout argument.
  14007. (peekData): Removed timeout argument.
  14008. * Release 0.4.1
  14009. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14010. To deploy upload rate based choking algorithm:
  14011. * src/PeerInteractionCommand.cc
  14012. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14013. peer currently used.
  14014. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14015. download completes. Simplified.
  14016. (receiveMessage): Updated.
  14017. * src/TorrentMan.h
  14018. (activePeers): New variable.
  14019. (addActivePeer): New function.
  14020. (getActivePeers): New function.
  14021. (deleteActivePeer): New function.
  14022. * src/TorrentMan.cc
  14023. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14024. * src/PeerAbstractCommand.cc
  14025. (onAbort): Use peer->resetStatus().
  14026. * src/main.cc
  14027. (PeerChokeCommand.h): Included.
  14028. (main): Added the instance of ChokingCommand to the command queue.
  14029. * src/Peer.h
  14030. (amChoking): Renamed from amChocking
  14031. (chokingRequired): New variable.
  14032. (optUnchoking): New variable.
  14033. (deltaUpload): New variable.
  14034. (deltaDownload): New variable.
  14035. (addDeltaUpload): New function.
  14036. (resetDeltaUpload): New function.
  14037. (addDeltaDownload): New function.
  14038. (resetDeltaDownload): New function.
  14039. (addPeerUpload): Added a call to addDeltaUpload.
  14040. (addPeerDownload): Added a call to addDeltaDownload.
  14041. * src/Peer.cc
  14042. (shouldBeChoking): Renamed from shouldChoke.
  14043. (resetStatus): New function.
  14044. * src/PeerChokeCommand.h: New class.
  14045. * src/PeerChokeCommand.cc: New class.
  14046. To add lazy upload speed limiter:
  14047. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14048. statistics calculation to TorrentDownloadEngine.
  14049. * src/TorrentConsoleDownloadEngine.cc
  14050. (sendStatistics): Renamed from printStatistics.
  14051. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14052. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14053. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14054. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14055. calculation.
  14056. (sendStatistics): New function as pure virtual function.
  14057. (getUploadSpeed): New function.
  14058. * src/TorrentDownloadEngine.cc
  14059. (initStatistics): New function.
  14060. (calculateSpeed): New function.
  14061. (calculateStatistics): New function.
  14062. * src/SendMessageQueue.h
  14063. (uploadLength): New variable.
  14064. (send): Added an argument.
  14065. (setUploadLimit): New function.
  14066. (getUploadLimit): New function.
  14067. * src/SendMessageQueue.cc
  14068. (send): Added upload speed limiter.
  14069. * src/prefs.h
  14070. (PREF_UPLOAD_LIMIT): New definition.
  14071. * src/PeerInteractionCommand.cc
  14072. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14073. * src/main.cc
  14074. (main): Added --upload-limit option
  14075. For bug fixes:
  14076. * src/main.cc
  14077. (showUsage): Corrected --listen-port help
  14078. Other changes:
  14079. * src/TorrentMan.cc
  14080. (getPeer): Return nullPeer if connection is grather than
  14081. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14082. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14083. To add some useful information to the exception message:
  14084. * src/SocketCore.cc : Updated messages.
  14085. * src/SegmentMan.cc :
  14086. * src/TorrentMan.cc : Updated messages.
  14087. * src/MultiDiskWriter.cc : Updated messages.
  14088. * src/Util.cc : Updated messages.
  14089. * src/AbstractDiskWriter.cc : Updated messages.
  14090. * src/PreAllocationDiskWriter.cc : Updated messages.
  14091. * src/message.cc : Added new messages. Updated some messages.
  14092. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14093. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14094. Updated threshold from 30 to 15.
  14095. * src/AbstractDiskWriter.h (filename): New variable.
  14096. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14097. (createFile): Assigned filename.
  14098. * src/main.cc: Updated the help message for http-auth-scheme.
  14099. * Release 0.4.0
  14100. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14101. To add TrackerUpdateCommand with which replaces
  14102. CompactTrackerResponseProcessor:
  14103. * src/TrackerWatcherCommand.h (req): Removed.
  14104. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14105. if the number of peer connections are less than 30.
  14106. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14107. * src/SegmentMan.h (diskWriter): New function.
  14108. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14109. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14110. (main): Use TrackerUpdateCommand.
  14111. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14112. (req): New variable.
  14113. (setTrackerResponseProcessor): Removed.
  14114. (getTrackerResponseProcessor): Removed.
  14115. (processTrackerResponse): Removed.
  14116. * src/DownloadEngine.h (diskWriter): Removed.
  14117. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14118. to torrentMan->processTrackerResponse().
  14119. To add Util::expandBuffer:
  14120. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14121. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14122. * src/Util.h (expandBuffer): New function.
  14123. To fix the bug that causes segmentation fault when "-l ." is specified
  14124. in command-line option:
  14125. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14126. (openFile): New function.
  14127. (closeFile): New function.
  14128. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14129. (~SimpleLogger): Call closeFile();
  14130. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14131. * src/main.cc (main): Added a check to see logger is configured
  14132. properly.
  14133. To enable HTTP authentication without specifying "--http-auth-scheme"
  14134. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14135. * src/HttpConnection.cc (createRequest): Send Authorization header
  14136. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14137. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14138. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14139. * src/Peer.cc (shouldChoke): Updated algorithm.
  14140. * src/message.h (EX_AUTH_FAILED): New definition.
  14141. (EX_FILE_OPEN): New definition.
  14142. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14143. if status == 401.
  14144. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14145. if req->isTorrent == true.
  14146. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14147. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14148. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14149. (createFile): Updated message.
  14150. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14151. To add a readout of estimated remaining time to normal HTTP/FTP
  14152. downloads:
  14153. * src/ConsoleDownloadEngine.h (startup): New variable.
  14154. (startupLength): New variable.
  14155. (isStartupLengthSet): New variable.
  14156. (avgSpeed): New variable.
  14157. (eta): New variable.
  14158. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14159. estimated remaining time.
  14160. (initStatistics): Initialized newly added variables.
  14161. (calculateStatistics): Calculate average speed and estimated remaining
  14162. time.
  14163. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14164. * src/TrackerDownloadCommand.h: Removed.
  14165. * src/TrackerDownloadCommand.cc: Removed.
  14166. * src/TrackerInitCommand.h: Removed.
  14167. * src/TrackerInitCommand.cc: Removed.
  14168. * src/TrackerUpdateCommand.h: Removed.
  14169. * src/TrackerUpdateCommand.cc: Removed.
  14170. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14171. url written in TrackerInitCommand was moved here. Do not create
  14172. tracker request command if torrentMan->trackers != 0.
  14173. * src/CompactTrackerResponseProcessor.h: New class.
  14174. * src/CompactTrackerResponseProcessor.cc: New class.
  14175. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14176. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14177. Decoupled TorrentDownloadEngine from this.
  14178. * src/SegmentMan.h (init): New function.
  14179. * src/SegmentMan.cc (init): New function.
  14180. * src/TorrentMan.h (responseProcessor): New variable.
  14181. (trackers): New variable.
  14182. (setTrackerResponseProcessor): New function.
  14183. (getTrackerResponseProcessor): New function.
  14184. (processTrackerResponse): New function.
  14185. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14186. (processTrackerResponse): New function.
  14187. * src/main.cc (main): Use ByteArrayDiskWriter and
  14188. CompactTrackerResponseProcessor.
  14189. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14190. processTrackerResponse().
  14191. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14192. readout.
  14193. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14194. which indicates download has completed.
  14195. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14196. (closeFile): fd >= 0, not fd > 0
  14197. * src/main.cc (main): Added short cut for show-files.
  14198. Added short cut for torrent-file.
  14199. Added new command-line option listen-port.
  14200. Updated i18n messages.
  14201. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14202. To add LogFactory which creates singleton logger:
  14203. * src/LogFactory.h: New class.
  14204. * src/LogFactory.cc: New class.
  14205. * src/Command.h (logger): New variable.
  14206. (Constructor): Use LogFactory.
  14207. * src/AbstractCommand.cc: Use Command::logger
  14208. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  14209. Use LogFactory.
  14210. * src/SegmentSplitter.h : Made logger protected.
  14211. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  14212. * src/SegmentMan.cc (Constructor): Use LogFactory.
  14213. * src/DownloadEngine.h : Made logger protected.
  14214. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  14215. * src/PeerInteractionCommand.cc : Use Command::logger.
  14216. * src/HttpResponseCommand.cc : Use Command::logger.
  14217. * src/SegmentMan.h : Made logger private.
  14218. * src/TorrentMan.h : Made logger private.
  14219. * src/TorrentMan.cc : Use LogFactory.
  14220. * src/FtpNegotiateCommand.cc : Use Command::logger.
  14221. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  14222. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  14223. Use LogFactory.
  14224. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  14225. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  14226. Use LogFactory.
  14227. * src/DownloadCommand.cc : Use Command::logger.
  14228. * src/PeerAbstractCommand.cc : Use Command::logger.
  14229. * src/PeerListenCommand.cc : Use Command::logger.
  14230. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  14231. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  14232. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  14233. * src/TrackerWatcherCommand.cc : Use Command::logger.
  14234. * src/TrackerUpdateCommand.cc : Use Command::logger.
  14235. * src/TrackerDownloadCommand.cc : Use Command::logger.
  14236. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  14237. Use LogFactory.
  14238. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  14239. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  14240. Use LogFactory.
  14241. * src/main.cc (main): Use LogFactory.
  14242. * src/DiskAdaptor.h (logger): New variable.
  14243. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  14244. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  14245. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14246. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  14247. parameter to a tracker request.
  14248. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  14249. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  14250. * src/main.cc (setSignalHander): New function.
  14251. (main): Added a handler for SIGTERM.
  14252. (handler): Updated message.
  14253. (torrentHandler): Updated message.
  14254. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14255. * src/TorrentConsoleDownloadEngine.cc
  14256. (onPartialDownloadingCompletes): Renamed as
  14257. onSelectiveDownloadingCompletes.
  14258. (onSelectiveDownloadingCompletes): Updated message.
  14259. To add DiskAdaptor which abstract DiskWriter family:
  14260. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  14261. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  14262. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  14263. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  14264. MultiDiskAdaptor.h.
  14265. (readFileEntry): Changed its arguments.
  14266. (setup): setupDiskWriter is merged into this function.
  14267. (setupDiskWriter): Removed.
  14268. (setFileFilter): New function.
  14269. (readFileEntryFromMetaInfoFile): Updated according to the changes
  14270. made in readFileEntry.
  14271. (getFilePath): Removed.
  14272. (getTempFilePath): Removed.
  14273. (getSegmentFilePath): Updated due to the removal of getFilePath.
  14274. (fixFilename): Removed.
  14275. (copySingleFile): Removed.
  14276. (splitMultiFile): Removed.
  14277. (deleteTempFile): Removed.
  14278. (setFileEntriesToDownload): Removed.
  14279. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  14280. (isSelectiveDownloadingMode): New function.
  14281. (setAllMultiFileRequestedState): Removed.
  14282. (finishPartialDownloadingMode): Renamed as
  14283. finishSelectiveDownloadingMode.
  14284. (finishSelectiveDownloadingMode): New function.
  14285. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  14286. (getSelectedTotalLength): New function.
  14287. (onDownloadComplete): Use diskAdaptor.
  14288. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  14289. (Range): Removed.
  14290. (setMultiFileEntries): Renamed as setFileEntries.
  14291. (setFileEntries): New function.
  14292. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  14293. (pieceLength): New variable.
  14294. * src/main.cc (printDownloadCompeleteMessage): New function.
  14295. (torrentHandler): Use diskAdaptor instead of diskWriter.
  14296. (main): Renamed torrent-show-files to show-files.
  14297. Rewritten file contents listing.
  14298. * src/TorrentMan.h (FileEntry): Removed.
  14299. (multiFileTopDir): Removed.
  14300. (multiFileEntries): Removed.
  14301. (diskWriter): Removed.
  14302. (diskAdaptor): New variable.
  14303. * src/DefaultDiskWriter.h (totalLength): New variable.
  14304. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  14305. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  14306. diskWriter.
  14307. * src/TorrentConsoleDownloadEngine.h
  14308. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  14309. (partialTotalLength): Renamed as selectedTotalLength.
  14310. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  14311. openExistingFile, otherwise call initAndOpenFile.
  14312. (closeFile): fd > 0, not fd != 0.
  14313. * src/DirectDiskAdaptor.h: New class.
  14314. * src/DirectDiskAdaptor.cc: New class.
  14315. * src/MultiDiskAdaptor.h: New class.
  14316. * src/MultiDiskAdaptor.cc: New class.
  14317. * src/CopyDiskAdaptor.h: New class.
  14318. * src/CopyDiskAdaptor.cc: New class.
  14319. * src/DiskAdaptor.h: New class.
  14320. * src/DiskAdaptor.cc: New class.
  14321. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  14322. (PREF_SHOW_FILES): New definition.
  14323. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14324. To add the ability to download multi torrent into respective files
  14325. directly:
  14326. * src/DiskWriter.h (openFile): New function.
  14327. (seek): Removed.
  14328. * src/MultiDiskWriter.h: New class.
  14329. * src/MultiDiskWriter.cc: New class.
  14330. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  14331. protected.
  14332. (openFile): New function.
  14333. * src/AbstractDiskWriter.cc (openFile): New function.
  14334. * src/prefs.h (V_FALSE): New definition.
  14335. (PREF_DIRECT_FILE_MAPPING): New definition.
  14336. * src/TorrentMan.h (setupDiskWriter): New function.
  14337. (setAllMultiFileRequestedState): New function.
  14338. (onDownloadComplete): New function.
  14339. * src/TorrentMan.cc : Included MultiDiskWriter.h
  14340. (setupDiskWriter): New function.
  14341. (getFilePath): Updated.
  14342. (getTempFilePath): Updated.
  14343. (getSegmentFilePath): Updated.
  14344. (fixFilename): Updated.
  14345. (deleteTempFile): Updated.
  14346. (setAllMultiFileRequestedState): New function.
  14347. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  14348. (finishPartialDownloadingMode): Reset requested flags.
  14349. (onDownloadComplete): New function.
  14350. * src/main.cc: Added --direct-file-mapping option.
  14351. Use TorrentMan::setupDiskWriter().
  14352. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  14353. onDownloadComplete().
  14354. To fix ETA bug:
  14355. * src/Util.h (difftvsec): New function.
  14356. * src/Util.cc (difftvsec): New function.
  14357. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  14358. type of "elapsed" instead of long long int.
  14359. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  14360. The updates of statistics takes place every 1 seconds.
  14361. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  14362. (calculateSpeed): Changed its argument signature.
  14363. * src/PeerMessage.cc (toString): Fixed message.
  14364. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14365. To print ETA:
  14366. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  14367. completion handling when dealing with
  14368. TorrentMan::isPartialDownloadingMode() == true.
  14369. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  14370. New function.
  14371. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  14372. (sessionDownloadLength): New variable.
  14373. (avgSpeed): New variable.
  14374. (eta): New variable.
  14375. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  14376. new variables: eta, avgSpeed, startup.
  14377. (calculateSpeed): Calculate average speed and ETA.
  14378. (printStatistics): Added ETA.
  14379. * src/Util.h (secfmt): New function.
  14380. * src/Util.cc (secfmt): New function.
  14381. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14382. To detect "keep alive" flooding:
  14383. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  14384. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  14385. variable: keepAliveCount.
  14386. (detectMessageFlooding): Added "keep alive" flooding detection.
  14387. (receiveMessage): Increase keepAliveCount when "keep alive" message
  14388. received.
  14389. To add the ability to download only specified files in multi-file
  14390. torrent:
  14391. * src/BitfieldMan.h (filterBitfield): New variable.
  14392. (filterEnabled): New variable.
  14393. (setFilterBit): New function.
  14394. (enableFilter): New function.
  14395. (disableFilter): New function.
  14396. (isFilterEnabled): New function.
  14397. (getFilteredTotalLength): New function.
  14398. (getCompletedLength): New function.
  14399. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  14400. filterBitfield, filterEnabled.
  14401. (CopyConstructor): Added filterBitfield and filterEnabled.
  14402. (operator==): Added filterBitfield and filterEnabled.
  14403. (Destructor): Added filterBitfield.
  14404. (getMissingIndex): Use filterBitfield.
  14405. (getMissingUnusedIndex): Use filterBitfield.
  14406. (getFirstMissingUnusedIndex): Use filterBitfield.
  14407. (getFirstMissingUnusedIndex): Use filterBitfield.
  14408. (getAllMissingIndexes): Use filterBitfield.
  14409. (countMissingBlock): Use filterBitfield.
  14410. (countBlock): Use filterBitfield.
  14411. (setBitInternal): Added new argument on.
  14412. (setUseBit): Use setBitInternal.
  14413. (unsetUseBit): Use setBitInternal.
  14414. (setBit): Use setBitInternal.
  14415. (unsetBit): Use setBitInternal.
  14416. (isAllBitSet): Use filterBitfield.
  14417. (setFilterBit): New function.
  14418. (addFilter): New function.
  14419. (enableFilter): New function.
  14420. (disableFilter): New function.
  14421. (clearFilter): New function.
  14422. (isFilterEnabled): New function.
  14423. (getFilteredTotalLength): New function.
  14424. (getCompletedLength): New function.
  14425. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  14426. Initalized newly added variables.
  14427. [FileEntry](offset): New variable.
  14428. [FileEntry](extracted): New variable.
  14429. [FileEntry](requested): New variable.
  14430. (readFileEntry): New function.
  14431. (option): New variable.
  14432. (splitMultiFile): Removed const qualifier.
  14433. (fixFilename): Removed const qualifier.
  14434. (readFileEntryFromMetaInfoFile): New function.
  14435. (finishPartialDownloadingMode): New function.
  14436. (isPartialDownloadingMode): New function.
  14437. (setFileEntriesToDownload): New function.
  14438. (getCompletedLength): New function.
  14439. (getPartialTotalLength): New function.
  14440. * src/TorrentMan.cc (readFileEntry): New function.
  14441. (setup): Use readFileEntry. If no-preallocation option is specified,
  14442. use DefaultDiskWriter.
  14443. (readFileEntryFromMetaInfoFile): New function.
  14444. (fixFilename): Removed const qualifier.
  14445. (splitMultiFile): Removed const qualifier.
  14446. (setFileEntriesToDownload): New function.
  14447. (isPartialDownloadingMode): New function.
  14448. (finishPartialDownloadingMode): New function.
  14449. (getCompletedLength): New function.
  14450. (getPartialTotalLength): New function.
  14451. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  14452. New variable.
  14453. (partialTotalLength): New variable.
  14454. (downloadLength): New variable.
  14455. (totalLength): New variable.
  14456. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  14457. Added log.
  14458. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  14459. partialTotalLength, downloadLength, totalLength.
  14460. (calculate): Calculate downloadLength and totalLength.
  14461. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  14462. * src/main.cc (addCommand): Changed argument signature.
  14463. (main): Added new variable: args. Added new option "torrent-show-files"
  14464. "no-preallocation". Usage is not updated yet.
  14465. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14466. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  14467. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14468. Attempt to add the ability to listing file entries in a .torrent file.
  14469. This feature is not yet complete.
  14470. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  14471. * src/TorrentMan.cc (getMultiFileEntries): New function.
  14472. (getName): New function.
  14473. * src/TorrentMan.h (getMultiFileEntries): New function.
  14474. (getName): New function.
  14475. * src/main.cc (main): Use above 2 funtion.
  14476. * Release 0.3.2
  14477. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14478. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  14479. (detectMessageFlooding): Updated threshold value.
  14480. (checkLongTimePeerChoking): Updated timeout value.
  14481. (getNewPieceAndSendInterest): Added debug log.
  14482. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  14483. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  14484. (getPeer): Updated.
  14485. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  14486. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  14487. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  14488. is localhost.
  14489. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  14490. * src/PendingMessage.cc (processMessage): Not to send piece message
  14491. if peer is not interested in the pieces localhost has.
  14492. * src/Peer.cc (shouldChoke): Updated.
  14493. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14494. * src/Util.cc (isPowerOf): New function.
  14495. * src/Util.h (isPowerOf): New function.
  14496. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14497. whether or not it is power of 2.
  14498. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14499. Added new class SendMessageQueue that includes PendingMessages and
  14500. RequestSlotMan.
  14501. * src/SendMessageQueue.h: New class.
  14502. * src/SendMessageQueue.cc: New class.
  14503. * src/PendingMessage.h: Added new member variable blockIndex and its
  14504. accessors.
  14505. (createRequestMessage): Updated.
  14506. * src/PendingMessage.cc (createRequestMessage): Updated.
  14507. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14508. SendMessageQueue.
  14509. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14510. (receiveMessage): Updated with SendMessageQueue.
  14511. (deletePendingPieceMessage): Removed.
  14512. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14513. (sendInterest): Updated with SendMessageQueue.
  14514. (createRequestPendingMessage): Updated with SendMessageQueue.
  14515. (sendMessages): Updated with SendMessageQueue.
  14516. (onAbort): Updated with SendMessageQueue.
  14517. (keepAlive): Updated with SendMessageQueue.
  14518. (beforeSocketCheck): Updated SendMessageQueue.
  14519. * src/PeerInteractionCommand (sendMessages): Shuffle
  14520. missingBLockIndexes before using it.
  14521. Added its own timeout for peer connection.
  14522. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14523. setter.
  14524. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14525. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14526. Added setTimeout() call.
  14527. (executeInternal): Added setTimeout() call.
  14528. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14529. Added timeout.
  14530. (isTimeoutDetected): Updated.
  14531. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14532. option.
  14533. Added *simple* message flooding checker.
  14534. * src/PeerInteractionCommand.cc (executeInternal):
  14535. Added detectMessageFlooding() call.
  14536. (detectMessageFlooding): New function.
  14537. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14538. (beforeSocketCheck): Added detectMessageFlooding() call.
  14539. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14540. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14541. Removed deletePendingPieceMessage(), getRequestSlot(),
  14542. deleteRequestSlot(), deleteAllRequestSlot().
  14543. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14544. Added checkLongTimePeerChoking() call.
  14545. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14546. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14547. if duplicate == false.
  14548. The parameter "uploaded" and "downloaded" in the tracker request are
  14549. the size since the client sent the "started" event to the tracker.
  14550. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14551. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14552. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14553. getSessionDownloadedSize(), getSessionUploadedSize().
  14554. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14555. getSessionUploadedSize() instead of getDownloadedSize(),
  14556. getUploadedSize().
  14557. * src/PendingMessage.cc (processMessage): Do not send request message
  14558. if the peer is choking the client.
  14559. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14560. less than interval.
  14561. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14562. * configure.in: Added gnutls support. Added several CPP macros.
  14563. * m4/openssl.m4: Added.
  14564. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14565. readData(), peekData(). Added gnutls support.
  14566. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14567. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14568. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14569. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14570. Instead, added a check for whether setup method has executed
  14571. successfully.
  14572. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14573. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14574. * src/Makefile.am: Updated.
  14575. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14576. using whether OpenSSL or gcrypt, depending on the result of configure
  14577. script.
  14578. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14579. messageDigest.h.
  14580. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14581. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14582. Fixed memory leak.
  14583. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14584. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14585. Removed instantiation of TrackerInitCommand. Instead,
  14586. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14587. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14588. ENABLE_SSL.
  14589. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14590. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14591. If a piece is already acquired by another command, delete the request
  14592. slots for the piece.
  14593. * src/TrackerUpdateCommand.cc (execute):
  14594. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14595. Added a check whether peer list is null.
  14596. Fixed the bug that causes sending completed event to the tracker
  14597. several times.
  14598. * src/TrackerInitCommand.cc (execute):
  14599. Fixed the bug that causes sending completed event to the tracker
  14600. several times.
  14601. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14602. by using messageDigest.h.
  14603. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14604. * PeerConnection.cc: Replaced log message "keep-alive" with
  14605. "keep alive".
  14606. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14607. localhost long time.
  14608. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14609. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14610. at most 100 failure entry from the list. If with duplicate = false,
  14611. MAX_PEER_LIST is not checked.
  14612. * PeerListenCommand.cc: Fixed the argument order of log message.
  14613. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14614. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14615. Added warn().
  14616. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14617. Implemented warn().
  14618. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14619. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14620. * Request.h: Added AFTER_COMPLETED event.
  14621. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14622. instead of downloaded size and progress(%) after download completes.
  14623. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14624. message to the peer if it is interested in what localhost has
  14625. downloaded.
  14626. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14627. destination instead of just renaming it.
  14628. * TorrentMan.cc: Added deleteTempFile().
  14629. * PeerAbstractCommand.cc: do not stop execution after download
  14630. completes. This makes localhost a seeder.
  14631. * Util.{h,cc}: Added fileCopy().
  14632. * PeerListenCommand.cc: do not stop execution after download completes.
  14633. This makes localhost a seeder.
  14634. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14635. Added TorrentMan::deleteTempFile() to torrentHandler.
  14636. Initialized the variable dir as ".".
  14637. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14638. Deleted renameSingleFile().
  14639. Added copySingleFile(), deleteTempFile().
  14640. * DownloadEngine.h: Added virtual function afterEachIteration().
  14641. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14642. in onEndOfRun() to afterEachIteration().
  14643. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14644. true.
  14645. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14646. In rangedFileCopy(), added try-catch block to properly close file
  14647. descriptors.
  14648. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14649. Added afterEachIteration(), isFilenameFixed().
  14650. * Peer.cc: Changed choking strategy.
  14651. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14652. * TrackerInitCommand.cc: Send completed event only once.
  14653. * DownloadEngine.cc: Added a call to afterEachIteration().
  14654. * TrackerUpdateCommand.cc: Do not stop execution after download
  14655. completes.
  14656. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14657. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14658. received from a tracker.
  14659. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14660. Decreased the number of failure peers to delete to 0(just comment out
  14661. the line).
  14662. * Release 0.3.1
  14663. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14664. * PeerInteractionCommand.cc: added a call to
  14665. TorrentMan::unadvertisePiece in Destructor.
  14666. * PeerInteractionCommand.cc: make have message sent immediately
  14667. if the size of pending message queue is zero.
  14668. * TorrentMan.cc: set the maximum size of peer list to 250.
  14669. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14670. to deque.
  14671. * Util.cc: fixed rangedFileCopy.
  14672. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14673. to Constructor. Also, moved digest cleanup to Destructor.
  14674. * MetaFileUtil.cc: fixed memory leak
  14675. * replaced std::vector with std::deque.
  14676. * AbstractCommand.cc: casted timeout value to long long int.
  14677. * ChunkedEncoding.cc: fixed memory leak.
  14678. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14679. * SleepCommand.cc: casted timeout value to long long int.
  14680. * Data.cc: fixed memory leak.
  14681. * Data.cc: fixed toLLInt().
  14682. * BitfieldMan.cc: fixed memory leak.
  14683. * TorrentMan.cc: initialized storeDir to ".".
  14684. * TorrentMan.cc: fixed memory leak.
  14685. * TorrentMan.cc: corrected file paths of splitted files.
  14686. * PeerAbstractCommand.cc: casted timeout to long long int.
  14687. * main.cc: added delete(req) and delete(te->diskWriter).
  14688. * RequestSlot.cc: casted timeout value to long long int.
  14689. * Request.cc: fixed memory leak.
  14690. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14691. have the piece.
  14692. * Peer.{h,cc}: added hasPiece(int index).
  14693. * main.cc: corrected addCommand.
  14694. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14695. * BitTorrent protocol support added.
  14696. * Release 0.3.0
  14697. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14698. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14699. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14700. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14701. decoding did not work properly.
  14702. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14703. * DownloadEngine.h: included sys/time.h
  14704. * DownloadEngine.cc: remove sys/time.h
  14705. * Makefile.am (SUBDIRS): Add intl.
  14706. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14707. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14708. * main.cc: correct help message for --http-auth-scheme.
  14709. * main.cc: changed e-mail address for bug reports.
  14710. * ja.po: added japanese translation.
  14711. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14712. * SimpleLogger.cc: flush log file instead of stdout.
  14713. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14714. * main.cc: Fixed command-line option: max-tries
  14715. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14716. does not equal to seg.sp.
  14717. * DownloadCommand.cc: If EOF is got from the server and the total size
  14718. of file is not zero, then throw DlRetryEx.
  14719. * main.cc: Set the minium value of min-segment-size to 1024.
  14720. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14721. fails because of a regression since 0.2.0 release.
  14722. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14723. * HttpConnection.cc:
  14724. * common.h: defined the user agent name as macro
  14725. * DownloadEngine.{h, cc}:
  14726. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14727. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14728. * main.cc: Download complete/abort message is now generated by main.
  14729. * Makefile.am (SUBDIRS): Add m4.
  14730. (ACLOCAL_AMFLAGS): New variable.
  14731. (EXTRA_DIST): New variable.
  14732. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14733. * gettext: added gettext functionality
  14734. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14735. * AbstractCommand.cc:
  14736. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14737. unregister its cuid from SegmentMan.
  14738. * DownloadEngine.cc: .aria2 file was written when a downloading
  14739. failed with errors.
  14740. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14741. Added "User-Agent" header to CONNECT proxy request.
  14742. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14743. properly.
  14744. * Logger.h:
  14745. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14746. * ChunkedEncoding.cc: Added #include directive for strings.h
  14747. * Release 0.2.1
  14748. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14749. * Util.{h,cc}: added startsWith().
  14750. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14751. Util::endsWith().
  14752. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14753. * common.h: added #include directive of limit.h.
  14754. * DownloadEngine.cc: added #include directive of sys/time.h and
  14755. algorithm.
  14756. * Exception.h: added #include directive of stdio.h.
  14757. * AbstractCommand.h: added #include directive of sys/time.h.
  14758. * DownloadCommand.h: added #include directive of sys/time.h.
  14759. * *.h: added #include directive of common.h to all base classes.
  14760. subclasses' one was removed.
  14761. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14762. does not define these macros.
  14763. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14764. * Release 0.2.0
  14765. * main.cc:
  14766. * HttpInitiateConnectionCommand.{h,cc}:
  14767. * prefs.h:
  14768. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14769. We can now use GET command in http proxy.
  14770. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14771. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14772. that splits slowest segment of SegmentMan::commands vector.
  14773. This is the default split algorithm of aria2.
  14774. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14775. that splits first segment of SegmentMan::commands vector.
  14776. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14777. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14778. * Segment.h:
  14779. * SegmentMan.cc: Added speed field to Segment.h
  14780. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14781. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14782. * message.h: Change file size related %d to %lld.
  14783. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14784. * FtpInitiateConnectionCommand.{h,cc}:
  14785. * FtpNegotiationCommand.{h,cc}:
  14786. * FtpDownloadCommand.{h,cc}:
  14787. * FtpConnection.{h,cc}: Added FTP support
  14788. * SimpleLogger.cc: Log message now includes time information.
  14789. * main.cc: The value of --http-auth-scheme option is chagned from
  14790. 'BASIC' to 'basic'
  14791. * main.cc: Added --timeout command-line option.
  14792. * main.cc: Added --min-segment-size command-line option.
  14793. * main.cc: Added --max-retries command-line option.
  14794. * prefs.h: option string constants are now defined in prefs.h
  14795. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14796. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14797. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14798. with version 0.1.0's one.
  14799. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14800. * configure.in: Added --enable-ssl option to configure script.
  14801. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14802. cannot permit absoluteURI as Request-URI.
  14803. * HttpConnection.cc: Added Referer support.
  14804. * main.cc: Added referer command-line option.
  14805. * main.cc: Added rety-wait command-line option.
  14806. * Exception.h: Fixed formating bug in Exception::setMsg()
  14807. * SocketCore.{h,cc}:
  14808. * Socket.{h, cc}:
  14809. * Request.cc:
  14810. * InitiateConnectionCommandFactory.cc:
  14811. * HttpRequestCommand.cc: Added HTTPS support.
  14812. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14813. for SocketCore.
  14814. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14815. size is wrong
  14816. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14817. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14818. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14819. * Release 0.1.0