ChangeLog 576 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343
  1. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  2. Added comment
  3. * src/RequestGroup.cc
  4. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  5. In CookieStorage::load() and saveNsFormat(), handle exception
  6. inside the functions. When saving Cookies, first write temporary
  7. file and after successful writes, then renames it to final
  8. destination.
  9. * src/CookieStorage.cc
  10. * src/CookieStorage.h
  11. * src/MultiUrlRequestInfo.cc
  12. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  13. The default value of --dir option is the absolute path to the
  14. current directory. If getcwd() is failed, then it is ".", which is
  15. the same value with old implementation. This change is necessary
  16. because after daemon() call, the current working directory is
  17. changed to /.
  18. * src/File.cc
  19. * src/File.h
  20. * src/OptionHandlerFactory.cc
  21. * src/option_processing.cc
  22. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  23. Call daemon() with arguments(0,0), which means daemon() changes
  24. current working directory to / and redirects stdin, stdout and
  25. stderr to /dev/null.
  26. * src/option_processing.cc
  27. 2009-06-21 Tatsuhiro Tsujikawa <[email protected]>
  28. Small performance optimizations.
  29. * src/RequestGroupMan.cc
  30. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  31. Added _xmlRpc member variable to RequestGroupMan to reduce the
  32. number of call Option::getAsBool(PREF_ENABLE_XML_RPC)
  33. * src/RequestGroupMan.cc
  34. * src/RequestGroupMan.h
  35. 2009-06-20 Tatsuhiro Tsujikawa <[email protected]>
  36. Call setStatus(STATUS_ONESHOT_REALTIME) from constructor. Call
  37. setNoWiat(true) if newly created command calls
  38. setStatus(STATUS_ONESHOT_REALTIME) from its constructor.
  39. * src/HttpListenCommand.cc
  40. * src/HttpServerBodyCommand.cc
  41. * src/HttpServerCommand.cc
  42. * src/HttpServerResponseCommand.cc
  43. * src/InitiateConnectionCommand.cc
  44. * src/RequestGroup.cc
  45. * src/StreamFileAllocationEntry.cc
  46. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  47. Removed include vector
  48. * src/BtRegistry.h
  49. 2009-06-17 Tatsuhiro Tsujikawa <[email protected]>
  50. Rewritten BtRegistry
  51. * src/BtRegistry.cc
  52. * src/BtRegistry.h
  53. * src/BtSetup.cc
  54. * src/ConsoleStatCalc.cc
  55. * src/PeerInteractionCommand.cc
  56. * src/PeerReceiveHandshakeCommand.cc
  57. * src/ReceiverMSEHandshakeCommand.cc
  58. * src/RequestGroup.cc
  59. * src/XmlRpcMethodImpl.cc
  60. * test/BtRegistryTest.cc
  61. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  62. Used array_ptr for savedInfoHash, savedBitfield and pieceBitfield.
  63. * src/DefaultBtProgressInfoFile.cc
  64. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  65. Throw an exception if position is less than 0.
  66. * src/XmlRpcMethodImpl.cc
  67. * test/XmlRpcMethodTest.cc
  68. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  69. Use writeFilePath() in ConsoleStatCalc.cc
  70. * src/ConsoleStatCalc.cc
  71. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  72. Receive the return value as const reference from
  73. DownloadContext::getFileEntries().
  74. * src/DefaultPieceStorage.cc
  75. * src/RequestGroupMan.cc
  76. * src/XmlRpcMethodImpl.cc
  77. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  78. DownloadContext now has _fileEntries so that
  79. DownloadContext::getFileEntries() can returns its const reference.
  80. * src/DefaultBtContext.cc
  81. * src/DefaultBtContext.h
  82. * src/DownloadContext.cc
  83. * src/DownloadContext.h
  84. * src/SingleFileDownloadContext.cc
  85. * src/SingleFileDownloadContext.h
  86. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  87. Moved getFirstRequestedFileEntry(), countRequestedFileEntry() and
  88. writeFilePath() function template from RequestGroupMan.cc to
  89. FileEntry.h
  90. * src/FileEntry.h
  91. * src/RequestGroupMan.cc
  92. 2009-06-14 Tatsuhiro Tsujikawa <[email protected]>
  93. Documented 'position' parameter is starting from 0 in man page.
  94. * doc/aria2c.1.txt
  95. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  96. Updated doc.
  97. * src/MSEHandshake.cc
  98. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  99. Removed _acceptFeatures and its accessor functions from
  100. RequestGroup since they are not used practically.
  101. * src/HttpRequestCommand.cc
  102. * src/RequestGroup.cc
  103. * src/RequestGroup.h
  104. 2009-06-12 Tatsuhiro Tsujikawa <[email protected]>
  105. Removed member _maxTries from RequestGroup class to avoid
  106. duplicate option value. Those classes who refer this variable
  107. should use option value of PREF_MAX_TRIES directly.
  108. * src/AbstractCommand.cc
  109. * src/RequestGroup.cc
  110. * src/RequestGroup.h
  111. * src/TrackerWatcherCommand.cc
  112. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  113. * Release 1.4.1
  114. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  115. Fixed compiler warnings on netbsd
  116. * src/DHTConnectionImpl.cc
  117. * src/PeerListenCommand.cc
  118. * src/PeerSessionResource.cc
  119. * src/SegmentMan.cc
  120. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  121. Updated Ukrainian translation. Thanks to all translators.
  122. * po/uk.po
  123. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  124. Bump up version number to 1.4.1.
  125. * configure.ac
  126. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  127. Added unit tests for strjoin, strconcat and strappend.
  128. * test/a2functionalTest.cc
  129. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  130. Rewritten strconcat and strappend using operator+ instead of
  131. append().
  132. * src/a2functional.h
  133. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  134. Compile bencode.cc and BencodeTest.cc only if BitTorrent support
  135. is enabled.
  136. * src/Makefile.am
  137. * test/Makefile.am
  138. 2009-06-07 Tatsuhiro Tsujikawa <[email protected]>
  139. Added countSeeder() function which counts seeder in the given
  140. iterator range. Use it in ConsoleStatCalc and XmlRpcMethodImpl.
  141. * src/ConsoleStatCalc.cc
  142. * src/Peer.h
  143. * src/XmlRpcMethodImpl.cc
  144. * test/PeerTest.cc
  145. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  146. Documented missing seeder in getPeers xml-rpc method.
  147. Documented uploadLength and numSeeders.
  148. * doc/aria2c.1.txt
  149. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  150. Added uploadLength and numSeeders to the response of tellStatus
  151. xml-rpc method. Assert that PeerStorage instance is not null
  152. instead of checking if statement. It should be non-null in this
  153. context.
  154. * src/XmlRpcMethodImpl.cc
  155. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  156. Use htmlEscape instead of xmlEscape. Removed static function xmlEscape.
  157. * src/XmlRpcResponse.cc
  158. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  159. Avoid intermediate object during string concatenation.
  160. * src/HttpRequest.cc
  161. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  162. Added strjoin function template. Use it in pathJoin()
  163. * src/Util.h
  164. * src/a2functional.h
  165. 2009-06-06 Tatsuhiro Tsujikawa <[email protected]>
  166. Avoid intermediate object during string concatenation. Replaced
  167. post-increment unary operator with pre-increment one in for loop.
  168. * src/AdaptiveURISelector.cc
  169. * src/AnnounceList.cc
  170. * src/AuthConfig.h
  171. * src/BtBitfieldMessage.cc
  172. * src/BtExtendedMessage.cc
  173. * src/BtHandshakeMessage.cc
  174. * src/BtPieceMessage.cc
  175. * src/BtPortMessage.cc
  176. * src/Cookie.cc
  177. * src/DHTAnnouncePeerMessage.cc
  178. * src/DHTAutoSaveCommand.cc
  179. * src/DHTGetPeersReplyMessage.cc
  180. * src/DHTNode.cc
  181. * src/DHTQueryMessage.cc
  182. * src/DHTResponseMessage.cc
  183. * src/DHTUnknownMessage.cc
  184. * src/DefaultBtAnnounce.cc
  185. * src/DefaultBtContext.cc
  186. * src/DefaultBtInteractive.cc
  187. * src/DefaultBtProgressInfoFile.cc
  188. * src/DefaultPeerStorage.cc
  189. * src/DownloadEngine.cc
  190. * src/FeatureConfig.cc
  191. * src/File.cc
  192. * src/FtpConnection.cc
  193. * src/FtpNegotiationCommand.cc
  194. * src/HandshakeExtensionMessage.cc
  195. * src/HttpConnection.cc
  196. * src/HttpRequest.cc
  197. * src/HttpResponseCommand.cc
  198. * src/HttpServer.cc
  199. * src/IndexBtMessage.cc
  200. * src/Metalink2RequestGroup.cc
  201. * src/OptionHandlerImpl.h
  202. * src/PStringBuildVisitor.cc
  203. * src/Peer.cc
  204. * src/PeerListenCommand.cc
  205. * src/Piece.cc
  206. * src/RangeBtMessage.cc
  207. * src/Request.cc
  208. * src/Request.h
  209. * src/RequestGroup.cc
  210. * src/RequestGroupMan.cc
  211. * src/ServerStat.cc
  212. * src/ServerStatMan.cc
  213. * src/UTPexExtensionMessage.cc
  214. * src/Util.cc
  215. * src/a2functional.h
  216. * src/download_helper.cc
  217. * src/messageDigest.cc
  218. 2009-06-04 Tatsuhiro Tsujikawa <[email protected]>
  219. Unchoke a peer randomly at first and second choke round in seed
  220. state.
  221. * src/BtSeederStateChoke.cc
  222. 2009-06-02 Ross Smith II <aria2spam at smithii dot com>
  223. Added (sock_t) to quiet compiler warnings in MinGW
  224. * src/SocketCore.cc
  225. * src/SocketCore.h
  226. 2009-06-02 Tatsuhiro Tsujikawa <[email protected]>
  227. Added missing #ifdef ENABLE_ASYNC_DNS guard.
  228. * src/EpollEventPoll.h
  229. 2009-06-01 Ross Smith II <aria2spam at smithii dot com>
  230. Added fork() emulation using CreateProcess() in MinGW
  231. * src/RequestGroupMan.cc
  232. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  233. * Release 1.4.0
  234. 2009-06-01 Tatsuhiro Tsujikawa <[email protected]>
  235. Added utf8.torrent to EXTRA_DIST
  236. * test/Makefile.am
  237. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  238. Fixed docs of aria2.addMetalink xml-rpc method.
  239. * doc/aria2c.1.txt
  240. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  241. Added Slovak translation. Updated Ukrainian and Brazilian
  242. Portuguese translation. Thanks to all translators.
  243. * po/sk.po
  244. * po/uk.po
  245. * po/pt_BR.po
  246. * po/LINGUAS
  247. 2009-05-31 Tatsuhiro Tsujikawa <[email protected]>
  248. Added test case for XmlRpcProcessor to fail to parse malformed
  249. document.
  250. * test/XmlRpcRequestProcessorTest.cc
  251. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  252. Removed *.gmo files in po because they are generated on 'make
  253. dist'
  254. * po/*.gmo
  255. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  256. Documented max-concurrent-downloads of changeGlobalOption method
  257. in man page.
  258. * doc/aria2c.1.txt
  259. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  260. Added max-concurrent-downloads option to changeGlobalOption
  261. xml-rpc method. Rewritten loop conditional in
  262. RequestGroupMan::fillRequestGroupFromReserver().
  263. * src/RequestGroupMan.cc
  264. * src/RequestGroupMan.h
  265. * src/XmlRpcMethod.cc
  266. * src/XmlRpcMethodImpl.cc
  267. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  268. Documented position parameter in man page.
  269. * doc/aria2c.1.txt
  270. 2009-05-30 Tatsuhiro Tsujikawa <[email protected]>
  271. Added 'position' parameter to addUri, addTorrent and addMetalink
  272. xml-rpc method.
  273. * src/RequestGroupMan.cc
  274. * src/RequestGroupMan.h
  275. * src/XmlRpcMethodImpl.cc
  276. * test/XmlRpcMethodTest.cc
  277. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  278. Removed Peer.cc from compile source list when --disable-bittorrent
  279. is specified. Added #ifdef ENABLE_BITTORRENT guard to methods that
  280. takes Peer.
  281. * src/DefaultPieceStorage.cc
  282. * src/DefaultPieceStorage.h
  283. * src/Makefile.am
  284. * src/PieceStorage.h
  285. * src/UnknownLengthPieceStorage.cc
  286. * src/UnknownLengthPieceStorage.h
  287. * test/MockPieceStorage.h
  288. 2009-05-29 Tatsuhiro Tsujikawa <[email protected]>
  289. Implemented getter methods in header files to give them more
  290. chance of optimization.
  291. Return const reference for SharadHandle if possible.
  292. * src/AbstractAuthResolver.cc
  293. * src/AbstractAuthResolver.h
  294. * src/AbstractBtMessage.cc
  295. * src/AbstractBtMessage.h
  296. * src/AbstractSingleDiskAdaptor.cc
  297. * src/AbstractSingleDiskAdaptor.h
  298. * src/AsyncNameResolver.cc
  299. * src/AsyncNameResolver.h
  300. * src/BNode.cc
  301. * src/BNode.h
  302. * src/BitfieldMan.cc
  303. * src/BitfieldMan.h
  304. * src/BtAbortOutstandingRequestEvent.h
  305. * src/BtExtendedMessage.cc
  306. * src/BtExtendedMessage.h
  307. * src/BtSeederStateChoke.cc
  308. * src/BtSeederStateChoke.h
  309. * src/Cookie.cc
  310. * src/Cookie.h
  311. * src/DHTBucket.cc
  312. * src/DHTBucket.h
  313. * src/DHTConnectionImpl.cc
  314. * src/DHTConnectionImpl.h
  315. * src/DHTFindNodeReplyMessage.cc
  316. * src/DHTFindNodeReplyMessage.h
  317. * src/DHTGetPeersReplyMessage.cc
  318. * src/DHTGetPeersReplyMessage.h
  319. * src/DHTInteractionCommand.cc
  320. * src/DHTMessage.cc
  321. * src/DHTMessage.h
  322. * src/DHTMessageDispatcherImpl.cc
  323. * src/DHTMessageEntry.cc
  324. * src/DHTMessageReceiver.cc
  325. * src/DHTMessageReceiver.h
  326. * src/DHTMessageTrackerEntry.cc
  327. * src/DHTMessageTrackerEntry.h
  328. * src/DHTPeerAnnounceEntry.cc
  329. * src/DHTPeerAnnounceEntry.h
  330. * src/DHTPeerLookupTask.cc
  331. * src/DHTPeerLookupTask.h
  332. * src/DHTRoutingTableDeserializer.cc
  333. * src/DHTRoutingTableDeserializer.h
  334. * src/DefaultBtAnnounce.cc
  335. * src/DefaultBtAnnounce.h
  336. * src/DefaultBtMessageDispatcher.cc
  337. * src/DefaultBtMessageDispatcher.h
  338. * src/DefaultBtRequestFactory.cc
  339. * src/DefaultBtRequestFactory.h
  340. * src/DiskAdaptor.cc
  341. * src/DiskAdaptor.h
  342. * src/DownloadContext.cc
  343. * src/DownloadContext.h
  344. * src/DownloadEngine.cc
  345. * src/DownloadEngine.h
  346. * src/EpollEventPoll.cc
  347. * src/EpollEventPoll.h
  348. * src/FtpConnection.cc
  349. * src/FtpConnection.h
  350. * src/HttpConnection.cc
  351. * src/HttpConnection.h
  352. * src/HttpHeader.cc
  353. * src/HttpHeader.h
  354. * src/HttpRequest.cc
  355. * src/HttpRequest.h
  356. * src/HttpResponse.cc
  357. * src/HttpResponse.h
  358. * src/LibsslTLSContext.cc
  359. * src/LibsslTLSContext.h
  360. * src/MSEHandshake.cc
  361. * src/MSEHandshake.h
  362. * src/MetalinkEntry.cc
  363. * src/MetalinkEntry.h
  364. * src/MetalinkParserController.cc
  365. * src/MetalinkParserController.h
  366. * src/MetalinkParserStateMachine.cc
  367. * src/MetalinkParserStateMachine.h
  368. * src/MultiDiskAdaptor.cc
  369. * src/MultiDiskAdaptor.h
  370. * src/NetrcAuthResolver.cc
  371. * src/NetrcAuthResolver.h
  372. * src/Peer.cc
  373. * src/Peer.h
  374. * src/PeerSessionResource.cc
  375. * src/PeerSessionResource.h
  376. * src/Piece.cc
  377. * src/Piece.h
  378. * src/PieceStatMan.cc
  379. * src/PieceStatMan.h
  380. * src/Request.cc
  381. * src/Request.h
  382. * src/RequestGroup.cc
  383. * src/RequestGroup.h
  384. * src/RequestGroupMan.cc
  385. * src/RequestGroupMan.h
  386. * src/RequestSlot.cc
  387. * src/RequestSlot.h
  388. * src/SegmentMan.cc
  389. * src/SegmentMan.h
  390. * src/SelectEventPoll.cc
  391. * src/SelectEventPoll.h
  392. * src/ServerStat.cc
  393. * src/ServerStat.h
  394. * src/Signature.cc
  395. * src/Signature.h
  396. * src/URIResult.cc
  397. * src/URIResult.h
  398. * src/UTPexExtensionMessage.cc
  399. * src/UTPexExtensionMessage.h
  400. 2009-05-28 Tatsuhiro Tsujikawa <[email protected]>
  401. Fixed compile error without BitTorrent and Metalink support.
  402. * src/XmlRpcMethod.cc
  403. * src/XmlRpcMethodFactory.cc
  404. * src/XmlRpcMethodImpl.cc
  405. * src/XmlRpcMethodImpl.h
  406. * test/XmlRpcMethodTest.cc
  407. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  408. Rewritten the help message for --allow-overwrite option.
  409. * doc/aria2c.1.txt
  410. * src/usage_text.h
  411. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  412. Fixed typo
  413. * doc/aria2c.1.txt
  414. * src/usage_text.h
  415. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  416. Updated README for 1.4.0 release. Use new table syntax of
  417. asciidoc.
  418. * README
  419. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  420. Documented --xml-rpc-max-request-size option in man page.
  421. * doc/aria2c.1.txt
  422. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  423. Moved C_* constants from BtContext to DefaultBtContext.
  424. * src/BtContext.cc: Removed.
  425. * src/BtContext.h
  426. * src/DefaultBtContext.cc
  427. * src/DefaultBtContext.h
  428. * src/Makefile.am
  429. 2009-05-27 Tatsuhiro Tsujikawa <[email protected]>
  430. Use name.utf-8 and path.utf-8 key in higher priority than name and
  431. path key respectively when persing .torrent file.
  432. * src/BtContext.cc
  433. * src/BtContext.h
  434. * src/DefaultBtContext.cc
  435. * test/DefaultBtContextTest.cc
  436. * test/utf8.torrent
  437. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  438. Added --xml-rpc-max-request-size option to limit the size of
  439. XML-RPC request.
  440. 2009-05-26 Tatsuhiro Tsujikawa <[email protected]>
  441. Documented XML-RPC API in man page.
  442. * doc/aria2c.1.txt
  443. 2009-05-24 Tatsuhiro Tsujikawa <[email protected]>
  444. Fixed g++-4.4 compiler warning: dereferencing type-punned pointer
  445. will break strict-aliasing rules
  446. * src/PeerConnection.cc
  447. * test/DHTRoutingTableSerializerTest.cc
  448. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  449. Removed PKG_CONFIG variable in sqlite3.m4, which conflicts the
  450. variable in pkg.m4. Use PKG_CHECK_MODULES instead of hand-crafted
  451. scripts. Renamed SQLITE3_CPPFLAGS as SQLITE3_CFLAGS since
  452. PKG_CHECK_MODULES macro uses latter name.
  453. * m4/sqlite3.m4
  454. * src/Makefile.am
  455. * test/Makefile.am
  456. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  457. Fixed typo
  458. * configure.ac
  459. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  460. Since upcoming libgnutls 2.8 doesn't have libgnutls-config, Check
  461. presence of libgnutls using pkg-config first. If it fails, fall
  462. back to old macro libgnutls.m4.
  463. * configure.ac
  464. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  465. Use s itself instead of !s.bad()
  466. * src/CookieStorage.cc
  467. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  468. Documented --on-download-* option and --save-cookies option in man
  469. page.
  470. * doc/aria2c.1.txt
  471. 2009-05-23 Tatsuhiro Tsujikawa <[email protected]>
  472. Set possible values for --load-cookie option to "/path/to/file".
  473. * src/OptionHandlerFactory.cc
  474. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  475. Added --save-cookies option.
  476. * src/Cookie.cc
  477. * src/Cookie.h
  478. * src/CookieStorage.cc
  479. * src/CookieStorage.h
  480. * src/MultiUrlRequestInfo.cc
  481. * src/OptionHandlerFactory.cc
  482. * src/prefs.cc
  483. * src/prefs.h
  484. * src/usage_text.h
  485. * test/CookieStorageTest.cc
  486. * test/CookieTest.cc
  487. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  488. Removed tellAll XML-RPC command because its reponse tends to be
  489. big if stopped/waiting downloads pile up.
  490. * src/XmlRpcMethodFactory.cc
  491. * src/XmlRpcMethodImpl.cc
  492. * src/XmlRpcMethodImpl.h
  493. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  494. Added the ability to execute command when download starts and
  495. stops. You can also specify command for particular cases such as
  496. complete/error download. Added --on-download-start,
  497. --on-download-stop, --on-download-complete and --on-download-error
  498. option.
  499. * src/OptionHandlerFactory.cc
  500. * src/RequestGroupMan.cc
  501. * src/prefs.cc
  502. * src/prefs.h
  503. * src/usage_text.h
  504. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  505. Fixed test error
  506. * test/BencodeTest.cc
  507. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  508. Added unit tests.
  509. * test/XmlRpcMethodTest.cc
  510. 2009-05-22 Tatsuhiro Tsujikawa <[email protected]>
  511. Made exception message more verbose.
  512. * src/bencode.cc
  513. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  514. Abbreviated KiB/s to KiBs and its precision decreased to 1 to save
  515. space in console readout. Also they are now shown in MiB/s if
  516. speed > 1024KiB/s.
  517. * src/ConsoleStatCalc.cc
  518. 2009-05-19 Tatsuhiro Tsujikawa <[email protected]>
  519. Added SEED to console output, which represents the number of
  520. seeders currently the client is connecting to.
  521. * src/ConsoleStatCalc.cc
  522. * src/ConsoleStatCalc.h
  523. * src/DownloadEngine.cc
  524. * src/NullStatCalc.h
  525. * src/StatCalc.h
  526. 2009-05-18 Tatsuhiro Tsujikawa <[email protected]>
  527. Added source filename(__FILE__) and line number(__LINE__) to
  528. exception message.
  529. * src/AbstractCommand.cc
  530. * src/AbstractDiskWriter.cc
  531. * src/AbstractProxyResponseCommand.cc
  532. * src/BDE.h
  533. * src/BtAllowedFastMessage.cc
  534. * src/BtHandshakeMessageValidator.h
  535. * src/BtHaveAllMessage.cc
  536. * src/BtHaveNoneMessage.cc
  537. * src/BtPieceMessage.cc
  538. * src/BtRejectMessage.cc
  539. * src/ChunkedDecoder.cc
  540. * src/CookieStorage.cc
  541. * src/DHTAnnouncePeerMessage.cc
  542. * src/DHTEntryPointNameResolveCommand.cc
  543. * src/DHTMessageFactoryImpl.cc
  544. * src/DHTMessageTracker.cc
  545. * src/DHTRoutingTableDeserializer.cc
  546. * src/DHTRoutingTableSerializer.cc
  547. * src/DHTSetup.cc
  548. * src/DHTTokenTracker.cc
  549. * src/DefaultBtAnnounce.cc
  550. * src/DefaultBtContext.cc
  551. * src/DefaultBtInteractive.cc
  552. * src/DefaultBtMessageFactory.cc
  553. * src/DefaultBtProgressInfoFile.cc
  554. * src/DefaultExtensionMessageFactory.cc
  555. * src/DlAbortEx.h
  556. * src/DlRetryEx.h
  557. * src/DownloadCommand.cc
  558. * src/DownloadEngineFactory.cc
  559. * src/DownloadFailureException.h
  560. * src/Exception.cc
  561. * src/Exception.h
  562. * src/ExpatMetalinkProcessor.cc
  563. * src/ExpatXmlRpcRequestProcessor.cc
  564. * src/FallocFileAllocationIterator.cc
  565. * src/FatalException.h
  566. * src/FtpConnection.cc
  567. * src/FtpFinishDownloadCommand.cc
  568. * src/FtpInitiateConnectionCommand.cc
  569. * src/FtpNegotiationCommand.cc
  570. * src/GZipDecoder.cc
  571. * src/HandshakeExtensionMessage.cc
  572. * src/HttpConnection.cc
  573. * src/HttpHeaderProcessor.cc
  574. * src/HttpInitiateConnectionCommand.cc
  575. * src/HttpResponse.cc
  576. * src/HttpResponseCommand.cc
  577. * src/HttpServer.cc
  578. * src/HttpSkipResponseCommand.cc
  579. * src/InitiateConnectionCommandFactory.cc
  580. * src/IteratableChunkChecksumValidator.cc
  581. * src/LibgcryptARC4Context.h
  582. * src/LibgcryptARC4Decryptor.h
  583. * src/LibgcryptARC4Encryptor.h
  584. * src/LibgcryptDHKeyExchange.h
  585. * src/LibgnutlsTLSContext.cc
  586. * src/LibsslARC4Context.h
  587. * src/LibsslARC4Decryptor.h
  588. * src/LibsslARC4Encryptor.h
  589. * src/LibsslDHKeyExchange.h
  590. * src/LibsslTLSContext.cc
  591. * src/MSEHandshake.cc
  592. * src/MessageDigestHelper.cc
  593. * src/MetalinkHelper.cc
  594. * src/MultiDiskAdaptor.cc
  595. * src/NameMatchOptionHandler.h
  596. * src/NameResolver.cc
  597. * src/Netrc.cc
  598. * src/NsCookieParser.cc
  599. * src/OptionHandlerException.cc
  600. * src/OptionHandlerException.h
  601. * src/OptionHandlerImpl.h
  602. * src/OptionParser.cc
  603. * src/ParameterizedStringParser.cc
  604. * src/PeerAbstractCommand.cc
  605. * src/PeerConnection.cc
  606. * src/PeerMessageUtil.cc
  607. * src/PeerReceiveHandshakeCommand.cc
  608. * src/Platform.cc
  609. * src/ReceiverMSEHandshakeCommand.cc
  610. * src/RecoverableException.h
  611. * src/RequestGroup.cc
  612. * src/SimpleLogger.cc
  613. * src/SocketCore.cc
  614. * src/Sqlite3MozCookieParser.cc
  615. * src/UTPexExtensionMessage.cc
  616. * src/Util.cc
  617. * src/XML2SAXMetalinkProcessor.cc
  618. * src/Xml2XmlRpcRequestProcessor.cc
  619. * src/XmlRpcMethodImpl.cc
  620. * src/bencode.cc
  621. * src/download_helper.cc
  622. * src/messageDigest.h
  623. * test/ExceptionTest.cc
  624. * test/TestUtil.cc
  625. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  626. Bump up version number to 1.4.0
  627. * configure.ac
  628. 2009-05-16 Tatsuhiro Tsujikawa <[email protected]>
  629. Added 2files.metalink to EXTRA_DIST
  630. * test/Makefile.am
  631. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  632. Added missing 2files.metalink
  633. * test/2files.metalink
  634. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  635. Show "[MEMORY]" prefix before filename in download summary if it
  636. is downloaded into memory.
  637. * src/DownloadResult.h
  638. * src/RequestGroup.cc
  639. * src/RequestGroupMan.cc
  640. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  641. Defined MSG_CANNOT_PARSE_XML_RPC_REQUEST
  642. * src/ExpatXmlRpcRequestProcessor.cc
  643. * src/Xml2XmlRpcRequestProcessor.cc
  644. * src/message.h
  645. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  646. Defined const BDEs to avoid duplicate instantiation.
  647. Defined MSG_GID_NOT_PROVIDED.
  648. * src/XmlRpcMethodImpl.cc
  649. * src/message.h
  650. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  651. Code cleanup
  652. * src/Xml2XmlRpcRequestProcessor.cc
  653. * src/Xml2XmlRpcRequestProcessor.h
  654. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  655. Defined ENABLE_XML_RPC
  656. * configure.ac
  657. * configure
  658. * config.h.in
  659. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  660. Added ExpatXmlRpcRequestProcessor
  661. * src/ExpatXmlRpcRequestProcessor.cc
  662. * src/ExpatXmlRpcRequestProcessor.h
  663. * src/Makefile.am
  664. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  665. Added tests for addTorrent and addMetalink command.
  666. * test/TestUtil.cc
  667. * test/TestUtil.h
  668. * test/XmlRpcMethodTest.cc
  669. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  670. Corrected the description of --file-allocation option.
  671. * doc/aria2c.1.txt
  672. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  673. Added tellAll command.
  674. * src/XmlRpcMethodFactory.cc
  675. * src/XmlRpcMethodImpl.cc
  676. * src/XmlRpcMethodImpl.h
  677. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  678. Use gatherProgress() in TellActiveXmlRpcMethod::process().
  679. * src/XmlRpcMethodImpl.cc
  680. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  681. Added changeGlobalOption command. Currently,
  682. max-overall-download-limit and max-overall-upload-limit option are
  683. available.
  684. * src/RequestGroupMan.h
  685. * src/XmlRpcMethod.cc
  686. * src/XmlRpcMethod.h
  687. * src/XmlRpcMethodFactory.cc
  688. * src/XmlRpcMethodImpl.cc
  689. * src/XmlRpcMethodImpl.h
  690. * test/XmlRpcMethodTest.cc
  691. 2009-05-15 Tatsuhiro Tsujikawa <[email protected]>
  692. Added changeOption command. Currently, max-download-limit,
  693. max-upload-limit option are available in this command.
  694. * src/RequestGroup.h
  695. * src/XmlRpcMethod.cc
  696. * src/XmlRpcMethod.h
  697. * src/XmlRpcMethodFactory.cc
  698. * src/XmlRpcMethodImpl.cc
  699. * src/XmlRpcMethodImpl.h
  700. * test/XmlRpcMethodTest.cc
  701. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  702. Added purgeDownloadResult command.
  703. * src/RequestGroupMan.cc
  704. * src/RequestGroupMan.h
  705. * src/XmlRpcMethodFactory.cc
  706. * src/XmlRpcMethodImpl.cc
  707. * src/XmlRpcMethodImpl.h
  708. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  709. Refactored.
  710. * src/XmlRpcMethod.cc
  711. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  712. Added XmlRpcResponse class. XmlRpcMethod::execute() now returns
  713. XmlRpcResponse.
  714. * src/HttpServerBodyCommand.cc
  715. * src/Makefile.am
  716. * src/XmlRpcMethod.cc
  717. * src/XmlRpcMethod.h
  718. * src/XmlRpcMethodImpl.cc
  719. * src/XmlRpcResponse.cc
  720. * src/XmlRpcResponse.h
  721. * test/XmlRpcMethodTest.cc
  722. 2009-05-14 Tatsuhiro Tsujikawa <[email protected]>
  723. In XML-RPC option struct, header and index-out option can take
  724. array as value.
  725. * src/XmlRpcMethod.cc
  726. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  727. Removed unused option member from PeerConnection.
  728. * src/InitiatorMSEHandshakeCommand.cc
  729. * src/PeerConnection.cc
  730. * src/PeerConnection.h
  731. * src/PeerInteractionCommand.cc
  732. * src/PeerReceiveHandshakeCommand.cc
  733. * src/ReceiverMSEHandshakeCommand.cc
  734. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  735. Added "seeder" key to getPeers response.
  736. * src/XmlRpcMethodImpl.cc
  737. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  738. Added addMetalink XML-RPC command.
  739. * src/XmlRpcMethodFactory.cc
  740. * src/XmlRpcMethodImpl.cc
  741. * src/XmlRpcMethodImpl.h
  742. * src/download_helper.cc
  743. * src/download_helper.h
  744. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  745. Fixed the bug that POU peers are never choked in seeding.
  746. * src/BtSeederStateChoke.cc
  747. * src/BtSeederStateChoke.h
  748. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  749. Added web-seeding URI handling in addTorrent command.
  750. * src/XmlRpcMethodImpl.cc
  751. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  752. Added "length" key to getFiles response.
  753. * src/XmlRpcMethodImpl.cc
  754. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  755. Moved --no-netrc option from ftp option section to http/ftp option
  756. section.
  757. * doc/aria2c.1.txt
  758. * src/OptionHandlerFactory.cc
  759. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  760. Removed garbage "\" character before '
  761. * doc/aria2c.1.txt
  762. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  763. Removed garbage "\" character before http.
  764. * doc/aria2c.1.txt
  765. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  766. Documented additional options that can be specified in -i list.
  767. Documented --enable-xml-rpc, --xml-rpc-listen-port, --xml-rpc-user
  768. and --xml-rpc-passwd. Removed --enable-http-server and
  769. --http-server-listen-port.
  770. * doc/aria2c.1.txt
  771. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  772. Added "downloadSpeed" and uploadSpeed" key in getPeers response.
  773. * src/DefaultPeerStorage.cc
  774. * src/DefaultPeerStorage.h
  775. * src/PeerStorage.h
  776. * src/XmlRpcMethodImpl.cc
  777. * test/MockPeerStorage.h
  778. 2009-05-13 Tatsuhiro Tsujikawa <[email protected]>
  779. Put a call to Socket::isReadable() in try block.
  780. * src/HttpServerBodyCommand.cc
  781. * src/HttpServerCommand.cc
  782. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  783. Fixed segmentation fault error. SocketBuffer::sendResponse() may throw
  784. exception , so it is now in try block.
  785. * src/HttpServerResponseCommand.cc
  786. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  787. Added "amChoking" and "peerChoking" key in getPeers response.
  788. * src/XmlRpcMethodImpl.cc
  789. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  790. Added test case for zero-length filter.
  791. * test/BitfieldManTest.cc
  792. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  793. getFiles command now returns file data for finished/stopped
  794. downloads.
  795. * src/XmlRpcMethodImpl.cc
  796. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  797. DownloadResult now has the list of FileEntry. The download
  798. summary displays the path of first selected file and the number of
  799. remaining files for multi-file torrent.
  800. * src/DownloadResult.h
  801. * src/RequestGroup.cc
  802. * src/RequestGroupMan.cc
  803. * test/RequestGroupTest.cc
  804. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  805. Fixed segmentation fault error when no file is selected in
  806. multi-file torrent.
  807. * src/BitfieldMan.cc
  808. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  809. Escaped <,>,& character in XML-RPC response.
  810. * src/XmlRpcMethod.cc
  811. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  812. Throw DlAbortEx instead of FatalException during parsing options
  813. because we don't want for aria2 to quit when bad option is passed
  814. via XML-RPC.
  815. * src/OptionHandlerException.cc
  816. * src/OptionHandlerException.h
  817. * src/OptionHandlerImpl.h
  818. * src/OptionParser.cc
  819. * src/OptionParser.h
  820. * src/PStringSegment.cc
  821. * src/ParameterizedStringParser.cc
  822. * src/download_helper.cc
  823. * test/ParameterizedStringParserTest.cc
  824. 2009-05-12 Tatsuhiro Tsujikawa <[email protected]>
  825. Selecting files are now done in
  826. DefaultBtContext::setFileFileter().
  827. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  828. functions are removed because they are no longer used. Creating
  829. filter in BitfieldMan is done in new funtion
  830. PieceStorage::setupFileFilter()
  831. * src/BtContext.cc
  832. * src/BtContext.h
  833. * src/DefaultBtContext.cc
  834. * src/DefaultBtContext.h
  835. * src/DefaultPieceStorage.cc
  836. * src/DefaultPieceStorage.h
  837. * src/DiskAdaptor.cc
  838. * src/DiskAdaptor.h
  839. * src/PieceStorage.h
  840. * src/RequestGroup.cc
  841. * src/UnknownLengthPieceStorage.h
  842. * src/XmlRpcMethodImpl.cc
  843. * test/DefaultBtContextTest.cc
  844. * test/MockBtContext.h
  845. * test/MockPieceStorage.h
  846. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  847. Fixed compile error on Mac OS X
  848. * src/HttpServer.cc
  849. * src/XmlRpcMethod.h
  850. * src/XmlRpcMethodImpl.cc
  851. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  852. Use std::binary_search instead of std::find
  853. * src/DefaultPieceStorage.cc
  854. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  855. Removed unnecessary BDE() call; leave them to implicit conversion.
  856. * src/XmlRpcMethodImpl.cc
  857. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  858. Return connections and gid in string
  859. * src/XmlRpcMethodImpl.cc
  860. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  861. Renamed addURI as addUri
  862. * src/XmlRpcMethodFactory.cc
  863. * src/XmlRpcMethodImpl.cc
  864. * src/XmlRpcMethodImpl.h
  865. * test/XmlRpcMethodTest.cc
  866. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  867. Renamed addTorrentFile as addTorrent
  868. * src/XmlRpcMethodFactory.cc
  869. * src/XmlRpcMethodImpl.cc
  870. * src/XmlRpcMethodImpl.h
  871. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  872. The information for files, URIs, peers are removed from the
  873. reponse of TellaActive, TellStatus command because they tend to be
  874. large. Instead they can be retrieved by the dedicated commands:
  875. getFiles, getUris and getPeers respectively.
  876. * src/XmlRpcMethodFactory.cc
  877. * src/XmlRpcMethodImpl.cc
  878. * src/XmlRpcMethodImpl.h
  879. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  880. Removed --max-overall-upload-limit and
  881. --max-overall-download-limit option from listRequestOptions.
  882. * src/download_helper.cc
  883. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  884. Log incoming host in HttpListenCommand.
  885. * src/HttpListenCommand.cc
  886. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  887. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  888. --xml-rpc-passwd option.
  889. * src/HttpServer.cc
  890. * src/HttpServer.h
  891. * src/HttpServerCommand.cc
  892. * src/OptionHandlerFactory.cc
  893. * src/prefs.cc
  894. * src/prefs.h
  895. * src/usage_text.h
  896. 2009-05-10 Tatsuhiro Tsujikawa <[email protected]>
  897. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  898. processing 0 length request.
  899. * src/HttpServerBodyCommand.cc
  900. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  901. Removed --enable-http-server and --http-server-listen-port
  902. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  903. instead. The original feature for --enable-http-server that
  904. reports download progress in HTML was officially removed. Persist
  905. XML-RPC connection if client supports keep-alive.
  906. * src/DownloadEngineFactory.cc
  907. * src/HttpServerCommand.cc
  908. * src/HttpServerResponseCommand.cc
  909. * src/Makefile.am
  910. * src/Makefile.in
  911. * src/OptionHandlerFactory.cc
  912. * src/RequestGroupMan.cc
  913. * src/main.cc
  914. * src/option_processing.cc
  915. * src/prefs.cc
  916. * src/prefs.h
  917. * src/usage_text.h
  918. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  919. Added "uris" key to the response of tellStatus command. Added
  920. "connections" key to the response of tellStatus and tellActive
  921. command.
  922. * src/XmlRpcMethodImpl.cc
  923. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  924. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  925. Added TellStatusXmlRpcMethod. Remove command can now remove
  926. waiting RequestGroup.
  927. * src/RequestGroupMan.cc
  928. * src/RequestGroupMan.h
  929. * src/XmlRpcMethodFactory.cc
  930. * src/XmlRpcMethodImpl.cc
  931. * src/XmlRpcMethodImpl.h
  932. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  933. Initialized _peerId
  934. * src/Peer.cc
  935. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  936. Return fault structure for error. FailXmlRpcMethod is renamed as
  937. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  938. in non-torrent download. Return single param value.
  939. * src/XmlRpcMethod.cc
  940. * src/XmlRpcMethodFactory.cc
  941. * src/XmlRpcMethodImpl.cc
  942. * src/XmlRpcMethodImpl.h
  943. * test/XmlRpcMethodTest.cc
  944. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  945. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  946. command.
  947. * src/RequestGroup.cc
  948. * src/RequestGroup.h
  949. * src/RequestGroupMan.cc
  950. * src/XmlRpcMethodImpl.cc
  951. * test/RequestGroupTest.cc
  952. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  953. Added more options that can be specified in -i list and xml-rpc
  954. add* command.
  955. * src/download_helper.h
  956. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  957. The available options in -i list should be listed in
  958. listRequestOptions().
  959. * src/download_helper.cc
  960. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  961. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  962. command.
  963. * src/XmlRpcMethodImpl.cc
  964. 2009-05-09 Tatsuhiro Tsujikawa <[email protected]>
  965. Now RequestGroup has its own copy of Option object. This will help
  966. to give custom option for each RequestGroup.
  967. addTorrentFile command now takes options.
  968. * src/AbstractCommand.cc
  969. * src/AbstractCommand.h
  970. * src/AbstractProxyRequestCommand.cc
  971. * src/ActivePeerConnectionCommand.cc
  972. * src/ActivePeerConnectionCommand.h
  973. * src/AdaptiveURISelector.cc
  974. * src/BtCheckIntegrityEntry.cc
  975. * src/BtDependency.cc
  976. * src/BtDependency.h
  977. * src/BtFileAllocationEntry.cc
  978. * src/BtPostDownloadHandler.cc
  979. * src/CheckIntegrityEntry.cc
  980. * src/DownloadCommand.cc
  981. * src/FtpDownloadCommand.cc
  982. * src/FtpFinishDownloadCommand.cc
  983. * src/FtpInitiateConnectionCommand.cc
  984. * src/FtpNegotiationCommand.cc
  985. * src/HttpInitiateConnectionCommand.cc
  986. * src/HttpRequestCommand.cc
  987. * src/HttpResponseCommand.cc
  988. * src/HttpSkipResponseCommand.cc
  989. * src/InitiateConnectionCommand.cc
  990. * src/InitiateConnectionCommandFactory.cc
  991. * src/InitiatorMSEHandshakeCommand.cc
  992. * src/InitiatorMSEHandshakeCommand.h
  993. * src/Metalink2RequestGroup.cc
  994. * src/Metalink2RequestGroup.h
  995. * src/MetalinkPostDownloadHandler.cc
  996. * src/MultiUrlRequestInfo.cc
  997. * src/MultiUrlRequestInfo.h
  998. * src/PeerAbstractCommand.cc
  999. * src/PeerInteractionCommand.cc
  1000. * src/PeerInteractionCommand.h
  1001. * src/PeerReceiveHandshakeCommand.cc
  1002. * src/PeerReceiveHandshakeCommand.h
  1003. * src/RequestGroup.cc
  1004. * src/RequestGroup.h
  1005. * src/TrackerWatcherCommand.cc
  1006. * src/TrackerWatcherCommand.h
  1007. * src/XmlRpcMethod.cc
  1008. * src/XmlRpcMethod.h
  1009. * src/XmlRpcMethodImpl.cc
  1010. * src/download_helper.cc
  1011. * src/download_helper.h
  1012. * src/main.cc
  1013. * test/BtDependencyTest.cc
  1014. * test/BtPostDownloadHandlerTest.cc
  1015. * test/DefaultBtMessageDispatcherTest.cc
  1016. * test/DownloadHandlerFactoryTest.cc
  1017. * test/DownloadHelperTest.cc
  1018. * test/Metalink2RequestGroupTest.cc
  1019. * test/MetalinkPostDownloadHandlerTest.cc
  1020. * test/RequestGroupManTest.cc
  1021. * test/RequestGroupTest.cc
  1022. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1023. Added tellActiveStatus xml-rpc command which reports download
  1024. status of active downloads.
  1025. * src/XmlRpcMethodFactory.cc
  1026. * src/XmlRpcMethodImpl.cc
  1027. * src/XmlRpcMethodImpl.h
  1028. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1029. Added addTorrentFile xml-rpc command which receives uploaded
  1030. torrent file and add download for it.
  1031. * src/RequestGroupMan.cc
  1032. * src/XmlRpcMethodFactory.cc
  1033. * src/XmlRpcMethodImpl.cc
  1034. * src/XmlRpcMethodImpl.h
  1035. * src/download_helper.cc
  1036. * src/download_helper.h
  1037. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1038. Added remove xml-rpc command which removes specified download.
  1039. There is a known issue: the removed unfinished downloads are
  1040. reported ERR when aria2 exits. They should be reported as INPR.
  1041. * src/RequestGroupMan.cc
  1042. * src/RequestGroupMan.h
  1043. * src/XmlRpcMethodFactory.cc
  1044. * src/XmlRpcMethodImpl.cc
  1045. * src/XmlRpcMethodImpl.h
  1046. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1047. If --enable-http-server is enabled, don't stop aria2 when all
  1048. download finished and don't quit when no files to download at
  1049. start up.
  1050. * src/RequestGroupMan.cc
  1051. * src/main.cc
  1052. * src/option_processing.cc
  1053. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1054. Added missing AM_CONDITIONAL
  1055. * configure.ac
  1056. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1057. Added xml-rpc functionality. Currently only addURI commad is
  1058. supported. To enable xml-rpc, run aria2 with
  1059. --enable-http-server. This option name is temporal and will be
  1060. changed. The feature that reports download progress in html format
  1061. is temporarily disabled.
  1062. * src/HttpServer.cc
  1063. * src/HttpServer.h
  1064. * src/HttpServerBodyCommand.cc
  1065. * src/HttpServerBodyCommand.h
  1066. * src/HttpServerCommand.cc
  1067. * src/HttpServerResponseCommand.cc
  1068. * src/Makefile.am
  1069. * src/OptionParser.cc
  1070. * src/OptionParser.h
  1071. * src/RequestGroupMan.cc
  1072. * src/RequestGroupMan.h
  1073. * src/XmlRpcMethod.cc
  1074. * src/XmlRpcMethod.h
  1075. * src/XmlRpcMethodFactory.cc
  1076. * src/XmlRpcMethodFactory.h
  1077. * src/XmlRpcMethodImpl.cc
  1078. * src/XmlRpcMethodImpl.h
  1079. * src/download_helper.cc
  1080. * src/download_helper.h
  1081. * test/Makefile.am
  1082. * test/XmlRpcMethodTest.cc
  1083. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1084. Added xml-rpc request parser. The supported value types are:
  1085. i4/int, string, double, struct, array, base64. Currently only
  1086. libxml2 version is provided.
  1087. * src/Xml2XmlRpcRequestProcessor.cc
  1088. * src/Xml2XmlRpcRequestProcessor.h
  1089. * src/XmlRpcElements.cc
  1090. * src/XmlRpcElements.h
  1091. * src/XmlRpcRequest.h
  1092. * src/XmlRpcRequestParserController.cc
  1093. * src/XmlRpcRequestParserController.h
  1094. * src/XmlRpcRequestParserState.h
  1095. * src/XmlRpcRequestParserStateImpl.cc
  1096. * src/XmlRpcRequestParserStateImpl.h
  1097. * src/XmlRpcRequestParserStateMachine.cc
  1098. * src/XmlRpcRequestParserStateMachine.h
  1099. * src/XmlRpcRequestProcessor.h
  1100. * test/XmlRpcRequestParserControllerTest.cc
  1101. * test/XmlRpcRequestProcessorTest.cc
  1102. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1103. * Release 1.3.3
  1104. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1105. Fixed compile error since r1202.
  1106. * src/ExpatMetalinkProcessor.cc
  1107. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  1108. Updated Ukrainian, Russian and Simplified Chinese
  1109. translations. Thanks to all translators.
  1110. * po/ru.po
  1111. * po/uk.po
  1112. * po/zh_CN.po
  1113. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  1114. Pass reference of Option object instead of pointer.
  1115. * src/download_helper.cc
  1116. * src/download_helper.h
  1117. * src/main.cc
  1118. * test/DownloadHelperTest.cc
  1119. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  1120. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  1121. from option directly. Instead, get them from RequestGroup.
  1122. * src/ActivePeerConnectionCommand.cc
  1123. * src/ActivePeerConnectionCommand.h
  1124. * src/PeerReceiveHandshakeCommand.cc
  1125. * src/RequestGroup.h
  1126. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  1127. Removed unused uploadLimitCheck and uploadLimit from
  1128. PeerAbstractCommand. Removed unused maxDownloadLimit from
  1129. PeerInteractionCommand.
  1130. * src/PeerAbstractCommand.cc
  1131. * src/PeerAbstractCommand.h
  1132. * src/PeerInteractionCommand.cc
  1133. * src/PeerInteractionCommand.h
  1134. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  1135. Fixed broken file renaming feature since r1202.
  1136. * src/FtpNegotiationCommand.cc
  1137. * src/FtpNegotiationCommand.h
  1138. * src/HttpResponseCommand.cc
  1139. * src/RequestGroup.cc
  1140. * src/RequestGroup.h
  1141. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1142. Removed unused debug log
  1143. * src/SocketCore.cc
  1144. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1145. Generated configure and Makefile.in using autoconf 2.63 and
  1146. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  1147. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  1148. * configure.ac
  1149. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1150. Moved piece statistics stuff to new PieceStatMan class.
  1151. Refactored PieceSelector interface.
  1152. * src/DefaultPieceStorage.cc
  1153. * src/DefaultPieceStorage.h
  1154. * src/LongestSequencePieceSelector.cc
  1155. * src/LongestSequencePieceSelector.h
  1156. * src/Makefile.am
  1157. * src/PieceSelector.h
  1158. * src/PieceStatMan.cc
  1159. * src/PieceStatMan.h
  1160. * src/RarestPieceSelector.cc
  1161. * src/RarestPieceSelector.h
  1162. * src/RequestGroup.cc
  1163. * test/DefaultPieceStorageTest.cc
  1164. * test/InOrderPieceSelector.h
  1165. * test/Makefile.am
  1166. * test/PieceStatManTest.cc
  1167. * test/RarestPieceSelectorTest.cc
  1168. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1169. Added static member _protocolFamily to SocketCore. By default,
  1170. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  1171. address. Sometime SocketCore::bind() and
  1172. SocketCore::establishConnection() use difference protocl family
  1173. and latter cannot connect to former. To avoid this situation, we
  1174. limit protocol family to AF_INET for unit tests.
  1175. * src/SocketCore.cc
  1176. * src/SocketCore.h
  1177. * test/AllTest.cc
  1178. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1179. Avoid std::bad_alloc for negative bencode string length.
  1180. * src/bencode.cc
  1181. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  1182. Supported segmented downloading with chunked transfer encoding and
  1183. content-length.
  1184. * src/DownloadCommand.cc
  1185. * src/HttpResponseCommand.cc
  1186. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  1187. Bump up version number to 1.3.3
  1188. * configure.ac
  1189. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  1190. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  1191. from 4096 to 65536 (for insanely large ftp login banners)
  1192. * src/FtpConnection.h
  1193. * test/FtpConnectionTest.cc
  1194. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  1195. In DefaultBtContext::getActualBasePath(), return first
  1196. FileEntry::getPath() for single file torrent.
  1197. * src/DefaultBtContext.cc
  1198. * test/DefaultBtContextTest.cc
  1199. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  1200. Removed directIOAllowed() from BinaryStream, DiskWriter,
  1201. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  1202. Removed _directIOAllowed member from DiskWriter.
  1203. * src/AbstractDiskWriter.cc
  1204. * src/AbstractDiskWriter.h
  1205. * src/AbstractSingleDiskAdaptor.cc
  1206. * src/AbstractSingleDiskAdaptor.h
  1207. * src/BinaryStream.h
  1208. * src/ByteArrayDiskWriter.h
  1209. * src/DefaultPieceStorage.cc
  1210. * src/DiskWriter.h
  1211. * src/MultiDiskAdaptor.cc
  1212. * src/MultiDiskAdaptor.h
  1213. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  1214. Now the constructor of AbstractDiskWriter takes filename as an
  1215. argument and filename argument is removed from openFile(),
  1216. initAndOpenFile(), openExistingFile() interface. storeDir member
  1217. and its accessor functions are removed from DiskAdaptor because it
  1218. is not used anymore. size() member function of DefaultDiskWriter,
  1219. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  1220. opening file.
  1221. * src/AbstractDiskWriter.cc
  1222. * src/AbstractDiskWriter.h
  1223. * src/AbstractSingleDiskAdaptor.cc
  1224. * src/AbstractSingleDiskAdaptor.h
  1225. * src/ByteArrayDiskWriter.cc
  1226. * src/ByteArrayDiskWriter.h
  1227. * src/ByteArrayDiskWriterFactory.cc
  1228. * src/ByteArrayDiskWriterFactory.h
  1229. * src/DefaultDiskWriter.cc
  1230. * src/DefaultDiskWriter.h
  1231. * src/DefaultDiskWriterFactory.cc
  1232. * src/DefaultDiskWriterFactory.h
  1233. * src/DefaultPieceStorage.cc
  1234. * src/DirectDiskAdaptor.cc
  1235. * src/DirectDiskAdaptor.h
  1236. * src/DiskAdaptor.h
  1237. * src/DiskWriter.h
  1238. * src/DiskWriterFactory.h
  1239. * src/MessageDigestHelper.cc
  1240. * src/MultiDiskAdaptor.cc
  1241. * src/RequestGroup.cc
  1242. * src/UnknownLengthPieceStorage.cc
  1243. * src/Util.cc
  1244. * test/DefaultDiskWriterTest.cc
  1245. * test/DirectDiskAdaptorTest.cc
  1246. * test/FallocFileAllocationIteratorTest.cc
  1247. * test/MessageDigestHelperTest.cc
  1248. * test/MetalinkProcessorTest.cc
  1249. * test/MultiDiskAdaptorTest.cc
  1250. * test/MultiFileAllocationIteratorTest.cc
  1251. * test/SingleFileAllocationIteratorTest.cc
  1252. * test/UtilTest.cc
  1253. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  1254. Fixed the bug that aria2 aborts when --select-file is used. This
  1255. bug was introduced in r1199.
  1256. * src/MultiDiskAdaptor.cc
  1257. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  1258. Code cleanup
  1259. * test/MockPieceStorage.cc
  1260. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  1261. Fixed the bug that read-only file with wrong file size will cause
  1262. error because it cannot be truncated to the correct size. Now if
  1263. file size is different than the expected one, re-open file in
  1264. writable mode.
  1265. * src/AbstractSingleDiskAdaptor.cc
  1266. * src/AbstractSingleDiskAdaptor.h
  1267. * src/BtCheckIntegrityEntry.cc
  1268. * src/DiskAdaptor.h
  1269. * src/MultiDiskAdaptor.h
  1270. * src/RequestGroup.cc
  1271. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  1272. Fixed the bug that with --check-integrity option aria2 reports
  1273. downloaded file size is 0 even if some parts of file is correctly
  1274. downloaded. This bug is reproducible for the download that a file
  1275. includes last piece is missing. This bug doesn't reveal for
  1276. single-torrent with file allocation on.
  1277. * src/IteratableChecksumValidator.cc
  1278. * test/IteratableChecksumValidatorTest.cc
  1279. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  1280. Avoid circular reference between RequestGroup and AdaptiveURISelector
  1281. * src/RequestGroupMan.cc
  1282. * src/AdaptiveURISelector.cc
  1283. * src/AdaptiveURISelector.h
  1284. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  1285. * Release 1.3.2
  1286. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  1287. Updated README
  1288. * README
  1289. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  1290. Updated Ukrainian translations. Thanks to Alexander10.
  1291. * po/uk.po
  1292. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  1293. Code cleanup
  1294. * src/MetalinkParserStateMachine.cc
  1295. * src/MetalinkParserStateMachine.h
  1296. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  1297. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  1298. and expat simultaneously, MetalinkProcessor is now not base class
  1299. and it is directly implemented in XML2SAXMetalinkProcessor and
  1300. ExpatMetalinkProcessor.
  1301. * src/ExpatMetalinkProcessor.cc
  1302. * src/ExpatMetalinkProcessor.h
  1303. * src/Makefile.am
  1304. * src/MetalinkHelper.cc
  1305. * src/MetalinkProcessor.h
  1306. * src/MetalinkProcessorFactory.cc: Removed.
  1307. * src/MetalinkProcessorFactory.h: Removed
  1308. * src/XML2SAXMetalinkProcessor.cc
  1309. * src/XML2SAXMetalinkProcessor.h
  1310. * test/MetalinkProcessorTest.cc
  1311. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  1312. Bump up version number to 1.3.2
  1313. * configure.ac
  1314. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  1315. Added missing file.
  1316. * test/Makefile.am
  1317. * test/url-list-singleFileEndsWithSlash.torrent
  1318. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  1319. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  1320. request.
  1321. * src/AnnounceList.cc
  1322. * src/AnnounceList.h
  1323. * src/BDE.cc: Added
  1324. * src/BDE.h: Added
  1325. * src/DHTAbstractMessage.cc
  1326. * src/DHTAbstractMessage.h
  1327. * src/DHTAnnouncePeerMessage.cc
  1328. * src/DHTAnnouncePeerMessage.h
  1329. * src/DHTAnnouncePeerReplyMessage.cc
  1330. * src/DHTAnnouncePeerReplyMessage.h
  1331. * src/DHTFindNodeMessage.cc
  1332. * src/DHTFindNodeMessage.h
  1333. * src/DHTFindNodeReplyMessage.cc
  1334. * src/DHTFindNodeReplyMessage.h
  1335. * src/DHTGetPeersMessage.cc
  1336. * src/DHTGetPeersMessage.h
  1337. * src/DHTGetPeersReplyMessage.cc
  1338. * src/DHTGetPeersReplyMessage.h
  1339. * src/DHTMessageFactory.h
  1340. * src/DHTMessageFactoryImpl.cc
  1341. * src/DHTMessageFactoryImpl.h
  1342. * src/DHTMessageReceiver.cc
  1343. * src/DHTMessageTracker.cc
  1344. * src/DHTMessageTracker.h
  1345. * src/DHTPingMessage.cc
  1346. * src/DHTPingMessage.h
  1347. * src/DHTPingReplyMessage.cc
  1348. * src/DHTPingReplyMessage.h
  1349. * src/DHTQueryMessage.cc
  1350. * src/DHTQueryMessage.h
  1351. * src/DHTResponseMessage.cc
  1352. * src/DHTResponseMessage.h
  1353. * src/DefaultBtAnnounce.cc
  1354. * src/DefaultBtContext.cc
  1355. * src/DefaultBtContext.h
  1356. * src/HandshakeExtensionMessage.cc
  1357. * src/Makefile.am
  1358. * src/PeerListProcessor.h
  1359. * src/UTPexExtensionMessage.cc
  1360. * src/bencode.cc
  1361. * src/bencode.h
  1362. * test/AnnounceListTest.cc
  1363. * test/BDETest.cc: Added
  1364. * test/BencodeTest.cc
  1365. * test/DHTAnnouncePeerMessageTest.cc
  1366. * test/DHTAnnouncePeerReplyMessageTest.cc
  1367. * test/DHTFindNodeMessageTest.cc
  1368. * test/DHTFindNodeReplyMessageTest.cc
  1369. * test/DHTGetPeersMessageTest.cc
  1370. * test/DHTGetPeersReplyMessageTest.cc
  1371. * test/DHTMessageFactoryImplTest.cc
  1372. * test/DHTMessageTrackerTest.cc
  1373. * test/DHTPingMessageTest.cc
  1374. * test/DHTPingReplyMessageTest.cc
  1375. * test/Makefile.am
  1376. * test/MockDHTMessageFactory.h
  1377. * test/PeerListProcessorTest.cc
  1378. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  1379. Use url-list (web-seeding) only for single-file torrent. This is
  1380. basically the same behavior with Metalink file with torrent and
  1381. URIs.
  1382. * src/RequestGroup.cc
  1383. * src/DefaultBtContext.cc
  1384. * test/DefaultBtContextTest.cc
  1385. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  1386. Rewritten expr
  1387. * src/array_fun.h
  1388. * test/array_funTest.cc
  1389. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  1390. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  1391. * src/DefaultBtMessageDispatcher.cc
  1392. * src/a2algo.h
  1393. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  1394. Removed ExtendedMessagingAware. Instead of using inheritance,
  1395. added ExtensionMessageRegistry and it is passed to
  1396. DefaultExtensionMessageFactory.
  1397. * src/DefaultBtInteractive.cc
  1398. * src/DefaultBtInteractive.h
  1399. * src/DefaultExtensionMessageFactory.cc
  1400. * src/DefaultExtensionMessageFactory.h
  1401. * src/ExtendedMessagingAware.h: Removed.
  1402. * src/ExtensionMessageFactory.h
  1403. * src/ExtensionMessageRegistry.h: Added.
  1404. * src/Makefile.am
  1405. * src/PeerInteractionCommand.cc
  1406. * test/DefaultExtensionMessageFactoryTest.cc
  1407. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  1408. Fixed typo in log messages
  1409. * src/MSEHandshake.cc
  1410. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  1411. Fixed the bug that prevents torrent download from finishing. The
  1412. bug doesn't reveal for all torrents. The torrents affected this
  1413. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  1414. of pieces.
  1415. * src/bitfield.h
  1416. * test/bitfieldTest.cc
  1417. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  1418. Code cleanup
  1419. * src/PeerListProcessor.h
  1420. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  1421. Removed RequestGroupAware
  1422. * src/AbstractCommand.cc
  1423. * src/AbstractCommand.h
  1424. * src/ActivePeerConnectionCommand.cc
  1425. * src/ActivePeerConnectionCommand.h
  1426. * src/DHTGetPeersCommand.cc
  1427. * src/DHTGetPeersCommand.h
  1428. * src/InitiatorMSEHandshakeCommand.cc
  1429. * src/InitiatorMSEHandshakeCommand.h
  1430. * src/Makefile.am
  1431. * src/PeerInitiateConnectionCommand.cc
  1432. * src/PeerInitiateConnectionCommand.h
  1433. * src/PeerInteractionCommand.cc
  1434. * src/PeerInteractionCommand.h
  1435. * src/RealtimeCommand.cc
  1436. * src/RealtimeCommand.h
  1437. * src/RequestGroupAware.cc: Removed
  1438. * src/RequestGroupAware.h: Removed
  1439. * src/SeedCheckCommand.cc
  1440. * src/SeedCheckCommand.h
  1441. * src/SleepCommand.cc
  1442. * src/TrackerWatcherCommand.cc
  1443. * src/TrackerWatcherCommand.h
  1444. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  1445. Rewritten PeerListProcessor
  1446. * src/PeerListProcessor.h
  1447. * src/CompactPeerListProcessor.h: Removed
  1448. * src/CompactPeerListProcessor.cc: Removed
  1449. * src/DelegatingPeerListProcessor.cc: Removed.
  1450. * src/DefaultBtAnnounce.cc
  1451. * src/Makefile.am
  1452. * src/UTPexExtensionMessage.cc
  1453. * src/DefaultPeerListProcessor.h: Removed.
  1454. * src/DefaultPeerListProcessor.cc: Removed.
  1455. * src/DelegatingPeerListProcessor.h: Removed.
  1456. * test/Makefile.am
  1457. * test/PeerListProcessorTest.cc
  1458. * test/DefaultPeerListProcessorTest.cc: Removed.
  1459. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  1460. Rewritten RequestGroupMan::calculateStat()
  1461. * src/RequestGroupMan.cc
  1462. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  1463. Removed unnecessary virtual destructor for Request class.
  1464. * src/Request.cc
  1465. * src/Request.h
  1466. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  1467. Avoid dynamic_pointer_cast.
  1468. * src/DHTGetPeersCommand.cc
  1469. * src/DHTGetPeersCommand.h
  1470. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  1471. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  1472. BtEvent.
  1473. * src/AbstractBtEventListener.h: Removed.
  1474. * src/AbstractBtMessage.cc
  1475. * src/AbstractBtMessage.h
  1476. * src/BtAbortOutstandingRequestEvent.h
  1477. * src/BtCancelSendingPieceEvent.h
  1478. * src/BtChokedEvent.h: Removed.
  1479. * src/BtChokingEvent.h
  1480. * src/BtEvent.h: Removed
  1481. * src/BtEventListener.h: Removed.
  1482. * src/BtMessage.h
  1483. * src/BtPieceMessage.cc
  1484. * src/BtPieceMessage.h
  1485. * src/BtRequestMessage.cc
  1486. * src/BtRequestMessage.h
  1487. * src/DefaultBtMessageDispatcher.cc
  1488. * src/Makefile.am
  1489. * src/a2functional.h
  1490. * test/BtPieceMessageTest.cc
  1491. * test/BtRequestMessageTest.cc
  1492. * test/DefaultBtMessageDispatcherTest.cc
  1493. * test/MockBtMessage.h
  1494. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  1495. Code cleanup
  1496. * src/RequestGroupMan.cc
  1497. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  1498. Code cleanup
  1499. * src/DownloadCommand.cc
  1500. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  1501. Fixed segmentation fault when GZipDecoder::decode() returns 0
  1502. byte.
  1503. * src/DownloadCommand.cc
  1504. * src/bitfield.h
  1505. * test/bitfieldTest.cc
  1506. Fixed the bug that causes infinite loop if broken web server
  1507. returns chunked response without last "0" chunk-size marker and
  1508. closes connection.
  1509. * src/DownloadCommand.cc
  1510. Instantiate properly configured HttpDownloadCommand for
  1511. non-resumable downlaods.
  1512. * src/HttpResponseCommand.cc
  1513. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  1514. Rewritten array operation functions.
  1515. * src/BitfieldMan.cc
  1516. * src/array_fun.h
  1517. * test/array_funTest.cc
  1518. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  1519. Removed unused variable 'query'
  1520. * src/Request.cc
  1521. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  1522. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  1523. accidentally set to false in r1162.
  1524. * configure.ac
  1525. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  1526. Code cleanup
  1527. * src/BNode.cc
  1528. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  1529. Increase prefixLength for the bucket which doesn't own local node
  1530. ID when splitting bucket.
  1531. * src/DHTBucket.cc
  1532. * test/DHTBucketTest.cc
  1533. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  1534. * Release 1.3.1
  1535. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  1536. Bump up version number to 1.3.1
  1537. * configure.ac
  1538. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  1539. Removed unused variable checkPoint. Also removed include directive
  1540. for TimeA2.h.
  1541. * src/SeedCheckCommand.h
  1542. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  1543. Fixed the bug that upload limit exceeds the value specified in
  1544. --seed-ratio option depending on the timing of the execution of
  1545. SeedCheckCommand.
  1546. * src/SeedCheckCommand.cc
  1547. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  1548. Fixed the bug that removed peer's session upload/download length
  1549. are counted twice in _cachedTransferStat before it is
  1550. re-calculated. This affected the calculation of shara ratio,
  1551. resulting aria2 wrongly determines that specified share ratio is
  1552. reached. Also fixed the typo in calculateStatFor function name.
  1553. * src/BtSetup.cc
  1554. * src/DefaultPeerStorage.cc
  1555. * src/ShareRatioSeedCriteria.h
  1556. * test/ShareRatioSeedCriteriaTest.cc
  1557. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  1558. * Release 1.3.0
  1559. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  1560. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  1561. Nynorsk translations. Thanks to all translators.
  1562. * po/es.po
  1563. * po/ja.po
  1564. * po/nn.po
  1565. * po/ru.po
  1566. * po/uk.po
  1567. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  1568. Rewritten isInRange()
  1569. * src/DHTBucket.cc
  1570. * test/DHTBucketTest.cc
  1571. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  1572. Fixed typo
  1573. * doc/aria2c.1.txt
  1574. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  1575. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  1576. malloc/realloc is not used.
  1577. * src/configure.ac
  1578. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  1579. BitfieldMan::getMissingIndexes family functions now takes unsigned
  1580. char* bitfield instead of stl container for efficiency.
  1581. PieceSelector::select now takes this
  1582. bitfield. RarestPieceSelector::select now also performs
  1583. efficiently for this change. bitfield namespace is introduced and
  1584. it has several helper functions to handle basic bitfield
  1585. operations such as test, count set bits, etc.
  1586. * src/BitfieldMan.cc
  1587. * src/BitfieldMan.h
  1588. * src/DefaultBtRequestFactory.cc
  1589. * src/DefaultPieceStorage.cc
  1590. * src/DefaultPieceStorage.h
  1591. * src/LongestSequencePieceSelector.cc
  1592. * src/LongestSequencePieceSelector.h
  1593. * src/Makefile.am
  1594. * src/Piece.cc
  1595. * src/Piece.h
  1596. * src/PieceSelector.h
  1597. * src/RarestPieceSelector.cc
  1598. * src/RarestPieceSelector.h
  1599. * src/Util.cc
  1600. * src/Util.h
  1601. * src/bitfield.h
  1602. * test/BitfieldManTest.cc
  1603. * test/LongestSequencePieceSelectorTest.cc
  1604. * test/Makefile.am
  1605. * test/RarestPieceSelectorTest.cc
  1606. * test/UtilTest.cc
  1607. * test/bitfieldTest.cc
  1608. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  1609. Made accepted socket non-block.
  1610. * src/FtpNegotiationCommand.cc
  1611. * src/HttpListenCommand.cc
  1612. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  1613. Guarded #ifdef HAVE_POSIX_FALLOCATE
  1614. * src/AbstractSingleDiskAdaptor.cc
  1615. * src/DefaultPieceStorage.cc
  1616. * src/DiskAdaptor.h
  1617. * src/DiskAdaptor.h
  1618. * src/MultiFileAllocationIterator.cc
  1619. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  1620. Run
  1621. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  1622. in every 1 sec. The timeout of RequestSlot is 60s by default and
  1623. it doesn't need to be called every time when
  1624. DefaultBtInteractive::doInteractionProcessing() is called.
  1625. * src/DefaultBtInteractive.cc
  1626. * src/DefaultBtInteractive.h
  1627. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  1628. Documented 'falloc' in man page.
  1629. * doc/aria2c.1.txt
  1630. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  1631. Updated doc
  1632. * src/usage_text.h
  1633. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  1634. Added 'falloc' parameter for --file-allocation option. 'falloc'
  1635. allocation mode uses posix_fallocate() system call to allocate
  1636. file on disk. If you are using newer file systems such as ext4
  1637. (with extents support), btrfs or xfs, 'falloc' is your best
  1638. choice. It allocates large(few GiB) files almost instantly. Don't
  1639. use 'falloc' with legacy file systems such as ext3 because it
  1640. takes almost same time as 'prealloc' and it blocks aria2 entirely
  1641. until allocation finishes. 'falloc' may not be available if your
  1642. system doesn't have posix_fallocate() system call.
  1643. * configure.ac
  1644. * src/AbstractDiskWriter.cc
  1645. * src/AbstractDiskWriter.h
  1646. * src/AbstractSingleDiskAdaptor.cc
  1647. * src/BinaryStream.h
  1648. * src/BtCheckIntegrityEntry.cc
  1649. * src/ByteArrayDiskWriter.h
  1650. * src/CheckIntegrityEntry.cc
  1651. * src/CheckIntegrityEntry.h
  1652. * src/DefaultPieceStorage.cc
  1653. * src/DiskAdaptor.cc
  1654. * src/DiskAdaptor.h
  1655. * src/DiskWriter.h
  1656. * src/FallocFileAllocationIterator.cc
  1657. * src/FallocFileAllocationIterator.h
  1658. * src/FileAllocationEntry.cc
  1659. * src/FileAllocationEntry.h
  1660. * src/Makefile.am
  1661. * src/MultiFileAllocationIterator.cc
  1662. * src/MultiFileAllocationIterator.h
  1663. * src/OptionHandlerFactory.cc
  1664. * src/RequestGroup.cc
  1665. * src/StreamCheckIntegrityEntry.cc
  1666. * src/prefs.cc
  1667. * src/prefs.h
  1668. * src/usage_text.h
  1669. * test/FallocFileAllocationIteratorTest.cc
  1670. * test/Makefile.am
  1671. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  1672. Removed duplicate enableDirectIO() call.
  1673. * src/MultiFileAllocationIterator.cc
  1674. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  1675. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  1676. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  1677. cost of std::rotate().
  1678. * src/RarestPieceSelector.cc
  1679. * src/RarestPieceSelector.h
  1680. * test/RarestPieceSelectorTest.cc
  1681. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  1682. Updated usage doc for --bt-tracker-interval option.
  1683. * src/usage_text.h
  1684. * doc/aria2c.1.txt
  1685. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  1686. Documented --bt-tracker-interval option in man page.
  1687. * doc/aria2c.1.txt
  1688. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1689. Added an option to specify the interval between tracker requests.
  1690. If non-zero value is specified, aria2 uses it and ignores the
  1691. interval value in the response of tracker. If zero is specified,
  1692. aria2 determines the inteval value based on the tarcker response
  1693. and download progress.
  1694. * src/DefaultBtAnnounce.cc
  1695. * src/DefaultBtAnnounce.h
  1696. * src/OptionHandlerFactory.cc
  1697. * src/RequestGroup.cc
  1698. * src/prefs.cc
  1699. * src/prefs.h
  1700. * src/usage_text.h
  1701. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1702. Added operator+=, operator-=, operator-
  1703. * src/TransferStat.cc
  1704. * src/TransferStat.h
  1705. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1706. Refactored RarestPieceSelector to reduce CPU load, especially for
  1707. addPieceStats.
  1708. * src/RarestPieceSelector.cc
  1709. * src/RarestPieceSelector.h
  1710. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1711. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  1712. getAllMissingBlockIndexes to reduce a call to
  1713. array_function_base::operator[].
  1714. * src/BitfieldMan.cc
  1715. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  1716. Cached TransferStat/download speed to avoid to sum them up in each
  1717. call.
  1718. * src/DefaultPeerStorage.cc
  1719. * src/DefaultPeerStorage.h
  1720. * src/SegmentMan.cc
  1721. * src/SegmentMan.h
  1722. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  1723. Typedefed cuid_t as int32_t in Command.h
  1724. * src/CUIDCounter.h
  1725. * src/Command.cc
  1726. * src/Command.h
  1727. * src/DownloadEngine.cc
  1728. * src/DownloadEngine.h
  1729. * src/PeerStat.h
  1730. * src/SegmentMan.cc
  1731. * src/SegmentMan.h
  1732. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  1733. Reduced the number of calls to PeerStorage::calculateStat() and
  1734. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  1735. transfer rate.
  1736. * src/DefaultBtInteractive.cc
  1737. * src/DefaultBtMessageDispatcher.cc
  1738. * src/DefaultPeerStorage.cc
  1739. * src/DefaultPeerStorage.h
  1740. * src/DownloadCommand.cc
  1741. * src/DownloadEngine.cc
  1742. * src/PeerStorage.h
  1743. * src/SegmentMan.cc
  1744. * src/SegmentMan.h
  1745. * test/MockPeerStorage.h
  1746. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1747. Prepended _dir+"/" after joining path elements in torrent file.
  1748. * src/DefaultBtContext.cc
  1749. * test/DefaultBtContextTest.cc
  1750. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1751. Added missing IndexBtMessageValidator.h
  1752. * src/Makefile.am
  1753. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1754. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  1755. Chinese translations. Thank you for contributing our project.
  1756. * po/id.po
  1757. * po/it.po
  1758. * po/ru.po
  1759. * po/uk.po
  1760. * po/zh_CN.po
  1761. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1762. Updated README
  1763. * README
  1764. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1765. Bump up version number to 1.3.0
  1766. * configure.ac
  1767. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1768. Updated doc
  1769. * src/DefaultBtContext.h
  1770. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1771. Slice/joinPath for name of single torrent.
  1772. * src/DefaultBtContext.cc
  1773. * test/DefaultBtContextTest.cc
  1774. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1775. Updated man page: Documented --dry-run and --index-out
  1776. options. Changed the default value of --uri-selector and
  1777. --http-auth-challenge options. Removed --direct-file-mapping
  1778. option. Added example for --index-out
  1779. * doc/aria2c.1.txt
  1780. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1781. Updated TEXT_DRY_RUN
  1782. * src/usage_text.h
  1783. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1784. Changed the default value of --uri-selector option from 'inorder'
  1785. to 'feedback'
  1786. * src/OptionHandlerFactory.cc
  1787. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1788. Included current URI in exception message.
  1789. * src/AbstractCommand.cc
  1790. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1791. Renamed ServerStatURISelector as FeedbackURISelector.
  1792. * src/FeedbackURISelector.cc
  1793. * src/FeedbackURISelector.h
  1794. * src/Makefile.am
  1795. * src/RequestGroupMan.cc
  1796. * src/ServerStatURISelector.cc
  1797. * src/ServerStatURISelector.h
  1798. * test/FeedbackURISelectorTest.cc
  1799. * test/Makefile.am
  1800. * test/ServerStatURISelectorTest.cc
  1801. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1802. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  1803. all URIs are tested and their timeout is not reached.
  1804. * src/AdaptiveURISelector.cc
  1805. * src/AdaptiveURISelector.h
  1806. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1807. Changed the default value of --http-auth-challenge option to false.
  1808. * src/OptionHandlerFactory.cc
  1809. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1810. Reuse URIs when all unused URIs run out.
  1811. * src/OptionHandlerFactory.cc
  1812. * src/RequestGroup.cc
  1813. * src/prefs.cc
  1814. * src/prefs.h
  1815. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  1816. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  1817. and BtRejectMessage are derived from RangeBtMessage class.
  1818. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  1819. derived from IndexBtMessage class. BtChokeMessage,
  1820. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  1821. BtNotInterestedMessage and BtUnchokeMessage are derived from
  1822. ZeroBtMessage class.
  1823. * src/AbstractBtMessage.cc
  1824. * src/AbstractBtMessage.h
  1825. * src/BtAllowedFastMessage.cc
  1826. * src/BtAllowedFastMessage.h
  1827. * src/BtAllowedFastMessageValidator.h: Removed
  1828. * src/BtBitfieldMessage.cc
  1829. * src/BtBitfieldMessage.h
  1830. * src/BtCancelMessage.cc
  1831. * src/BtCancelMessage.h
  1832. * src/BtCancelMessageValidator.h: Removed
  1833. * src/BtChokeMessage.cc
  1834. * src/BtChokeMessage.h
  1835. * src/BtExtendedMessage.cc
  1836. * src/BtExtendedMessage.h
  1837. * src/BtHandshakeMessage.cc
  1838. * src/BtHandshakeMessage.h
  1839. * src/BtHaveAllMessage.cc
  1840. * src/BtHaveAllMessage.h
  1841. * src/BtHaveMessage.cc
  1842. * src/BtHaveMessage.h
  1843. * src/BtHaveMessageValidator.h: Removed
  1844. * src/BtHaveNoneMessage.cc
  1845. * src/BtHaveNoneMessage.h
  1846. * src/BtInterestedMessage.cc
  1847. * src/BtInterestedMessage.h
  1848. * src/BtKeepAliveMessage.cc
  1849. * src/BtKeepAliveMessage.h
  1850. * src/BtNotInterestedMessage.cc
  1851. * src/BtNotInterestedMessage.h
  1852. * src/BtPieceMessage.cc
  1853. * src/BtPieceMessage.h
  1854. * src/BtPortMessage.cc
  1855. * src/BtPortMessage.h
  1856. * src/BtRejectMessage.cc
  1857. * src/BtRejectMessage.h
  1858. * src/BtRejectMessageValidator.h: Removed
  1859. * src/BtRequestMessage.cc
  1860. * src/BtRequestMessage.h
  1861. * src/BtRequestMessageValidator.h: Removed
  1862. * src/BtSuggestPieceMessage.cc
  1863. * src/BtSuggestPieceMessage.h
  1864. * src/BtSuggestPieceMessageValidator.h: Removed
  1865. * src/BtUnchokeMessage.cc
  1866. * src/BtUnchokeMessage.h
  1867. * src/DefaultBtMessageFactory.cc
  1868. * src/IndexBtMessage.cc
  1869. * src/IndexBtMessage.h
  1870. * src/IndexBtMessageValidator.h
  1871. * src/Makefile.am
  1872. * src/PeerMessageUtil.cc
  1873. * src/PeerMessageUtil.h
  1874. * src/RangeBtMessage.cc
  1875. * src/RangeBtMessage.h
  1876. * src/RangeBtMessageValidator.h
  1877. * src/SimpleBtMessage.cc
  1878. * src/SimpleBtMessage.h
  1879. * src/ZeroBtMessage.cc
  1880. * src/ZeroBtMessage.h
  1881. * test/BtRequestMessageTest.cc
  1882. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1883. Reverted usage_text.h to r1093 to avoid to lose translated
  1884. messages.
  1885. * src/usage_text.h
  1886. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1887. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1888. declared as non-const previously is now const and defined in class
  1889. definition.
  1890. * src/AbstractBtMessage.cc
  1891. * src/AbstractBtMessage.h
  1892. * src/BtAllowedFastMessage.cc
  1893. * src/BtAllowedFastMessage.h
  1894. * src/BtBitfieldMessage.h
  1895. * src/BtCancelMessage.cc
  1896. * src/BtCancelMessage.h
  1897. * src/BtChokeMessage.cc
  1898. * src/BtChokeMessage.h
  1899. * src/BtExtendedMessage.cc
  1900. * src/BtExtendedMessage.h
  1901. * src/BtHandshakeMessage.cc
  1902. * src/BtHandshakeMessage.h
  1903. * src/BtHaveAllMessage.cc
  1904. * src/BtHaveAllMessage.h
  1905. * src/BtHaveMessage.cc
  1906. * src/BtHaveMessage.h
  1907. * src/BtHaveNoneMessage.cc
  1908. * src/BtHaveNoneMessage.h
  1909. * src/BtInterestedMessage.cc
  1910. * src/BtInterestedMessage.h
  1911. * src/BtKeepAliveMessage.cc
  1912. * src/BtKeepAliveMessage.h
  1913. * src/BtMessage.h
  1914. * src/BtNotInterestedMessage.cc
  1915. * src/BtNotInterestedMessage.h
  1916. * src/BtPieceMessage.h
  1917. * src/BtPortMessage.cc
  1918. * src/BtPortMessage.h
  1919. * src/BtRejectMessage.cc
  1920. * src/BtRejectMessage.h
  1921. * src/BtRequestMessage.cc
  1922. * src/BtRequestMessage.h
  1923. * src/BtSuggestPieceMessage.cc
  1924. * src/BtSuggestPieceMessage.h
  1925. * src/BtUnchokeMessage.cc
  1926. * src/BtUnchokeMessage.h
  1927. * src/SimpleBtMessage.cc
  1928. * src/SimpleBtMessage.h
  1929. * test/MockBtMessage.h
  1930. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1931. Use FileEntry::exists()
  1932. * src/MultiDiskAdaptor.cc
  1933. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  1934. Added exists()
  1935. * src/FileEntry.cc
  1936. * src/FileEntry.h
  1937. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  1938. Added missing prefix dir.
  1939. * src/download_helper.cc
  1940. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  1941. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1942. * src/CopyDiskAdaptor.cc: Removed
  1943. * src/CopyDiskAdaptor.h: Removed
  1944. * src/DefaultPieceStorage.cc
  1945. * src/Makefile.am
  1946. * src/OptionHandlerFactory.cc
  1947. * src/prefs.cc
  1948. * src/prefs.h
  1949. * src/usage_text.h
  1950. * test/CopyDiskAdaptorTest.cc: Removed
  1951. * test/Makefile.am
  1952. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  1953. Rewritten isSameFileBeingDownloaded()
  1954. * src/RequestGroupMan.cc
  1955. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  1956. Removed getName() from DownloadContext. getName() is declared in
  1957. BtContext.
  1958. * src/BtContext.h
  1959. * src/DownloadContext.h
  1960. * src/SingleFileDownloadContext.cc
  1961. * src/SingleFileDownloadContext.h
  1962. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1963. in AbstractSingleDiskAdaptor.
  1964. * src/AbstractSingleDiskAdaptor.h
  1965. * src/DiskAdaptor.h
  1966. * src/MultiDiskAdaptor.h
  1967. * src/RequestGroup.cc
  1968. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1969. MultiDiskAdaptor.
  1970. * src/DefaultPieceStorage.cc
  1971. * src/MultiDiskAdaptor.cc
  1972. * src/MultiDiskAdaptor.h
  1973. * test/MultiDiskAdaptorTest.cc
  1974. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  1975. FileEntry::getPath() contains store(top level) directory to
  1976. simplify path handling operation. In the previous implementation,
  1977. store directory is concatenated to FileEntry::getPath() in
  1978. DownloadContext.
  1979. * src/BtDependency.cc
  1980. * src/BtPostDownloadHandler.cc
  1981. * src/CopyDiskAdaptor.cc
  1982. * src/DefaultBtContext.cc
  1983. * src/DirectDiskAdaptor.cc
  1984. * src/FileEntry.cc
  1985. * src/FileEntry.h
  1986. * src/FtpNegotiationCommand.cc
  1987. * src/HttpResponse.cc
  1988. * src/HttpResponseCommand.cc
  1989. * src/Metalink2RequestGroup.cc
  1990. * src/MultiDiskAdaptor.cc
  1991. * src/MultiDiskAdaptor.h
  1992. * src/MultiFileAllocationIterator.cc
  1993. * src/RequestGroup.cc
  1994. * src/SingleFileDownloadContext.cc
  1995. * src/SingleFileDownloadContext.h
  1996. * src/download_helper.cc
  1997. * test/BtDependencyTest.cc
  1998. * test/CopyDiskAdaptorTest.cc
  1999. * test/DefaultBtContextTest.cc
  2000. * test/DefaultBtProgressInfoFileTest.cc
  2001. * test/DirectDiskAdaptorTest.cc
  2002. * test/DownloadHelperTest.cc
  2003. * test/FileEntryTest.cc
  2004. * test/MultiDiskAdaptorTest.cc
  2005. * test/MultiFileAllocationIteratorTest.cc
  2006. * test/RequestGroupTest.cc
  2007. * test/SingleFileDownloadContextTest.cc
  2008. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  2009. Fixed compiler warning
  2010. * src/download_helper.cc
  2011. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2012. Throw exception if same infohash torrent is now downloading.
  2013. * src/RequestGroup.cc
  2014. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2015. Added --dry-run option. In this mode, aria2 just checks whether
  2016. the remote file is available and doesn't download data. This
  2017. option has effect on HTTP/FTP downloads and BitTorrent downloads
  2018. are canceled in this mode.
  2019. * src/FtpNegotiationCommand.cc
  2020. * src/HttpResponseCommand.cc
  2021. * src/HttpResponseCommand.h
  2022. * src/OptionHandlerFactory.cc
  2023. * src/RequestGroup.cc
  2024. * src/RequestGroupMan.cc
  2025. * src/prefs.cc
  2026. * src/prefs.h
  2027. * src/usage_text.h
  2028. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2029. Fixed compiler waring
  2030. * test/UriListParserTest.cc
  2031. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2032. Parse options in -i list using OptionParser.
  2033. * src/UriListParser.cc
  2034. * src/UriListParser.h
  2035. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2036. Don't reset URI in retry to avoid additional round trips because
  2037. of redirects.
  2038. * src/AbstractCommand.cc
  2039. * src/OptionHandlerFactory.cc
  2040. * src/prefs.cc
  2041. * src/prefs.h
  2042. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2043. Declared hide() in OptionHandler.
  2044. * src/NameMatchOptionHandler.h
  2045. * src/OptionHandler.h
  2046. * src/OptionHandlerImpl.h
  2047. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  2048. Updated doc
  2049. * src/Peer.h
  2050. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  2051. Added log message in setStatusInternal()
  2052. * src/ServerStat.cc
  2053. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  2054. Call ServerStat::setError() in AbstractCommand::onAbort() to
  2055. effectively exclude failed server.
  2056. * src/AbstractCommand.cc
  2057. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  2058. Added --index-out option to specify each file path for torrent.
  2059. Here index shown in --show-files option is used to specify which
  2060. file path should be altered. For example, to change the file path
  2061. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  2062. option multiple times: --index-out=1=aria2.tar.bz2
  2063. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  2064. available. This option can be specified in -i list.
  2065. * src/DefaultBtContext.cc
  2066. * src/DefaultBtContext.h
  2067. * src/MultiDiskAdaptor.cc
  2068. * src/MultiDiskAdaptor.h
  2069. * src/MultiFileAllocationIterator.cc
  2070. * src/OptionHandlerFactory.cc
  2071. * src/OptionHandlerImpl.h
  2072. * src/Util.cc
  2073. * src/Util.h
  2074. * src/download_helper.cc
  2075. * src/prefs.cc
  2076. * src/prefs.h
  2077. * src/usage_text.h
  2078. * test/DefaultBtContextTest.cc
  2079. * test/MultiDiskAdaptorTest.cc
  2080. * test/MultiFileAllocationIteratorTest.cc
  2081. * test/UtilTest.cc
  2082. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  2083. Use Util::pathJoin()
  2084. * src/MetalinkParserController.cc
  2085. * test/test.xml
  2086. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  2087. Use Util::pathJoin()
  2088. * src/DefaultBtContext.cc
  2089. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  2090. Added Util::pathJoin()
  2091. * src/Util.h
  2092. * test/UtilTest.cc
  2093. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  2094. Applied basename function to remove directory element in
  2095. content-disposition value.
  2096. Return empty string if content-disposition value is ".." or ".".
  2097. * src/Util.cc
  2098. * test/UtilTest.cc
  2099. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2100. Added --max-overall-download-limit in man page.
  2101. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  2102. * doc/aria2c.1.txt
  2103. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2104. Added --max-overall-download-limit option. Now --max-upload-limit
  2105. option is not ignored when --max-overall-upload-limit option has
  2106. non-zero value. aria2 checks download(upload) speed in the order:
  2107. first checks overall speed limit and if it is not exceeded, then
  2108. checks speed limit per download. Thus you can specify both
  2109. value. For example, set --max-overall-download-limit=1M and
  2110. --max-download-limit=500K to prevent from one download from eating
  2111. all overall speed limit.
  2112. * src/DefaultBtInteractive.cc
  2113. * src/DefaultBtInteractive.h
  2114. * src/DefaultBtMessageDispatcher.cc
  2115. * src/DefaultBtMessageDispatcher.h
  2116. * src/DownloadCommand.cc
  2117. * src/DownloadCommand.h
  2118. * src/FtpNegotiationCommand.cc
  2119. * src/HttpResponseCommand.cc
  2120. * src/OptionHandlerFactory.cc
  2121. * src/PeerInteractionCommand.cc
  2122. * src/RequestGroup.cc
  2123. * src/RequestGroup.h
  2124. * src/RequestGroupMan.cc
  2125. * src/RequestGroupMan.h
  2126. * src/prefs.cc
  2127. * src/prefs.h
  2128. * src/usage_text.h
  2129. * test/DefaultBtMessageDispatcherTest.cc
  2130. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2131. Documented select-file option in Input File section.
  2132. Documented --http-auth-challenge option.
  2133. * doc/aria2c.1.txt
  2134. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2135. Now select-file can be specified in the uri list(-i list).
  2136. * src/BtContext.cc
  2137. * src/BtContext.h
  2138. * src/RequestGroup.cc
  2139. * src/Sequence.h
  2140. * src/download_helper.cc
  2141. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2142. Made the upper value of --max-concurrent-downloads options unlimited.
  2143. * src/OptionHandlerFactory.cc
  2144. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  2145. Fixed the bug that disk writer is not created even if it shares
  2146. same piece with the preceding file if the length of previous file
  2147. is 0.
  2148. * src/MultiDiskAdaptor.cc
  2149. * test/MultiDiskAdaptorTest.cc
  2150. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  2151. In BitTorrent, Open files in read-only mode for hash check. After
  2152. that, re-open file in read/write mode only when the download is
  2153. not finished.
  2154. * src/AbstractDiskWriter.cc
  2155. * src/AbstractDiskWriter.h
  2156. * src/AbstractSingleDiskAdaptor.cc
  2157. * src/AbstractSingleDiskAdaptor.h
  2158. * src/BtCheckIntegrityEntry.cc
  2159. * src/DiskAdaptor.h
  2160. * src/DiskWriter.h
  2161. * src/MultiDiskAdaptor.cc
  2162. * src/MultiDiskAdaptor.h
  2163. * src/RequestGroup.cc
  2164. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  2165. Added --http-auth-challenge option. If it is set to true(by
  2166. default), aria2 sends HTTP authorization header only when it is
  2167. requested by the server. If false is set, then authorization
  2168. header is always sent to the server. This is useful for servers
  2169. that don't respond 401 code when authentication is required.
  2170. There is an exception: if username and password are embedded in
  2171. URI, authorization header is always sent to the server regardless
  2172. of this option.
  2173. * src/AuthConfigFactory.cc
  2174. * src/HttpSkipResponseCommand.cc
  2175. * src/OptionHandlerFactory.cc
  2176. * src/prefs.cc
  2177. * src/prefs.h
  2178. * src/usage_text.h
  2179. * test/AuthConfigFactoryTest.cc
  2180. * test/HttpRequestTest.cc
  2181. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2182. * Release 1.2.0
  2183. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2184. Updated Spanish, Ukrainian, Russian and Japanese translations.
  2185. Thanks to all translators.
  2186. * po/es.po
  2187. * po/ja.po
  2188. * po/ru.po
  2189. * po/uk.po
  2190. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2191. Call deleteSocketForReadCheck() before socket is closed.
  2192. * src/HttpListenCommand.cc
  2193. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2194. Defined virtual destructor for BObject.
  2195. * src/bencode.h
  2196. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2197. Rewritten BDE to make it efficient.
  2198. * src/bencode.cc
  2199. * src/bencode.h
  2200. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2201. Removed function throw list.
  2202. * src/bencode.cc
  2203. * src/bencode.h
  2204. * test/BencodeTest.cc
  2205. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2206. Enclosed all URLs in double quotes in command-line examples.
  2207. * doc/aria2c.1.txt
  2208. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  2209. Updated reference/see also section.
  2210. * README
  2211. * doc/aria2c.1.txt
  2212. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  2213. Reorganized man page based on man man-pages.
  2214. * doc/aria2c.1.txt
  2215. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  2216. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  2217. because same documents are available in man page. Added
  2218. References section.
  2219. * README
  2220. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  2221. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  2222. PERFORMANCE PROFILE section.
  2223. * doc/aria2c.1.txt
  2224. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  2225. Rewritten the section for configuration file.
  2226. * README
  2227. * doc/aria2c.1.txt
  2228. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  2229. Fixed the segmentation fault during execution of choking algorithm
  2230. in leecher state because of broken compare operator
  2231. implementation.
  2232. * src/BtLeecherStateChoke.cc
  2233. * src/BtLeecherStateChoke.h
  2234. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  2235. Open file in binary mode.
  2236. * src/CookieStorage.cc
  2237. * src/DHTSetup.cc
  2238. * src/DHTUtil.cc
  2239. * src/Netrc.cc
  2240. * src/NsCookieParser.cc
  2241. * src/ProtocolDetector.cc
  2242. * src/RequestGroupMan.cc
  2243. * src/Signature.cc
  2244. * src/bencode.cc
  2245. * src/download_helper.cc
  2246. * src/option_processing.cc
  2247. * test/CookieParserTest.cc
  2248. * test/DefaultBtProgressInfoFileTest.cc
  2249. * test/FileTest.cc
  2250. * test/GZipDecoderTest.cc
  2251. * test/RequestGroupManTest.cc
  2252. * test/SignatureTest.cc
  2253. * test/SingleFileAllocationIteratorTest.cc
  2254. * test/UriListParserTest.cc
  2255. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  2256. Removed operator[] because it is ambiguous with built-in []
  2257. operator.
  2258. * src/array_fun.h
  2259. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  2260. Fixed compile error
  2261. * src/OptionParser.cc
  2262. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  2263. Added missing call to arrayWrapperConst
  2264. * test/array_funTest.cc
  2265. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2266. Use array_wrapper instead of array_ptr.
  2267. * src/DHTRoutingTableDeserializer.cc
  2268. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2269. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  2270. * src/array_fun.h
  2271. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2272. Added array_wrapper template.
  2273. * src/array_fun.h
  2274. * test/array_funTest.cc
  2275. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2276. Use operator T* of array_ptr.
  2277. * src/OptionParser.cc
  2278. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2279. Use localhost instead of 127.0.0.1
  2280. * test/FtpConnectionTest.cc
  2281. * test/MSEHandshakeTest.cc
  2282. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2283. Added operator T*
  2284. * src/array_fun.h
  2285. * test/array_funTest.cc
  2286. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2287. Use dynamically allocated char array to detect memory access
  2288. violation.
  2289. * src/DHTRoutingTableDeserializer.cc
  2290. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2291. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  2292. defined.
  2293. * src/PeerMessageUtil.cc
  2294. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2295. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  2296. * configure.ac
  2297. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2298. Added a check to see struct sockaddr_in has sin_len member.
  2299. * configure.ac
  2300. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2301. Fixed buffer overrun.
  2302. * src/DHTRoutingTableDeserializer.cc
  2303. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2304. Added LL for long long int constant.
  2305. * test/FtpConnectionTest.cc
  2306. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2307. Casted to unsigned int to suppress compiler warning on netbsd.
  2308. * src/BtRuntime.h
  2309. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  2310. Assign the value of tv.tv_sec to time_t timesec instead of giving
  2311. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  2312. type time_t.
  2313. * src/SimpleLogger.cc
  2314. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2315. Added test for FtpConnection::receiveSizeResponse().
  2316. * test/FtpConnectionTest.cc
  2317. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2318. Fix epoll error on the old kernel 2.6.8 or ealier.
  2319. * src/EpollEventPoll.cc
  2320. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2321. Use Util::parseLLInt instead of sscanf for portability. The
  2322. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  2323. * src/FtpConnection.cc
  2324. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2325. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  2326. block. It should not filter anything.
  2327. * src/BitfieldMan.cc
  2328. * src/ConsoleStatCalc.cc
  2329. * test/BitfieldManTest.cc
  2330. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2331. Fixed the bug that the boolean options that don't take arguments
  2332. don't work.
  2333. * src/OptionHandlerImpl.h
  2334. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2335. Fixed broken selected file BitTorrent download.
  2336. * src/MultiDiskAdaptor.cc
  2337. * test/MultiDiskAdaptorTest.cc
  2338. * test/MultiFileAllocationIteratorTest.cc
  2339. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  2340. Fixed #define guard for EpollEventPoll
  2341. * src/EpollEventPoll.h
  2342. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2343. Wait 2 seconds. 1 second is sometimes not enough.
  2344. * test/TimeSeedCriteriaTest.cc
  2345. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2346. Use localhost instead of 127.0.0.1.
  2347. * test/DHTConnectionImplTest.cc
  2348. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2349. Suppressed compiler warning.
  2350. * src/AdaptiveURISelector.cc
  2351. * src/DefaultPieceStorage.cc
  2352. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2353. Defined virtual destructor.
  2354. * src/MetalinkParserState.h
  2355. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2356. Give NULL for second argument of getaddrinfo instead of "0".
  2357. * src/NameResolver.cc
  2358. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2359. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  2360. included strptime doesn't parse data for this format.
  2361. * src/FtpConnection.cc
  2362. * test/FtpConnectionTest.cc
  2363. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2364. Removed tests giving -1 for unsigned argument.
  2365. * test/SingleFileDownloadContextTest.cc
  2366. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2367. Don't use sha256 in tests because it might not be supported by the
  2368. SSL library.
  2369. * test/MetalinkProcessorTest.cc
  2370. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2371. Removed tests giving -1 for unsigned argument.
  2372. * test/AlphaNumberDecoratorTest
  2373. * test/BitfieldManTest.cc
  2374. * test/DefaultBtContextTest.cc
  2375. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  2376. Fixed compile error without libcares when epoll is available.
  2377. * src/EpollEventPoll.cc
  2378. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  2379. Included fstream instead of iostream.
  2380. * test/SignatureTest.cc
  2381. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  2382. Removed #include <algorithm>
  2383. * test/RequestGroupTest.cc
  2384. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  2385. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  2386. using RequestGroup::extractURIResult().
  2387. * src/AdaptiveURISelector.cc
  2388. * src/RequestGroup.cc
  2389. * src/RequestGroup.h
  2390. * test/RequestGroupTest.cc
  2391. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  2392. Added tests for array_ptr.
  2393. * test/array_funTest.cc
  2394. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  2395. Don't send ip parameter to a tracker if ip parameter is empty
  2396. string.
  2397. * src/DefaultBtAnnounce.cc
  2398. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2399. Adjusted line feed.
  2400. * src/version_usage.cc
  2401. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2402. Print tags, possible values when OptionHandlerException is caught.
  2403. * src/option_processing.cc
  2404. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2405. Changed the message for FatalException.
  2406. * src/OptionParser.cc
  2407. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2408. Documented --bt-external-ip option in man page. Updated man pages
  2409. for --proxy-method option.
  2410. * doc/aria2c.1.txt
  2411. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2412. Use GET method for FTP via HTTP proxy.
  2413. * src/FtpInitiateConnectionCommand.cc
  2414. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2415. Changed the default value of --proxy-method option from 'tunnel'
  2416. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  2417. option.
  2418. * src/AbstractCommand.cc
  2419. * src/AbstractCommand.h
  2420. * src/FtpInitiateConnectionCommand.cc
  2421. * src/HttpDownloadCommand.cc
  2422. * src/HttpInitiateConnectionCommand.cc
  2423. * src/HttpInitiateConnectionCommand.h
  2424. * src/OptionHandlerFactory.cc
  2425. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2426. Initialized _logger
  2427. * src/SelectEventPoll.cc
  2428. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2429. Defined a copy constructor for the same type.
  2430. * src/SharedHandle.h
  2431. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2432. Added OptionParser::parseArg() which internally uses getopt_long
  2433. to parse command-line options. All command-line options are now
  2434. configured by OptionHandler. No manual editing of struct option*
  2435. is required any more.
  2436. * src/NameMatchOptionHandler.h
  2437. * src/OptionHandler.h
  2438. * src/OptionHandlerFactory.cc
  2439. * src/OptionHandlerImpl.h
  2440. * src/OptionParser.cc
  2441. * src/OptionParser.h
  2442. * src/array_fun.h
  2443. * src/main.cc
  2444. * src/option_processing.cc
  2445. * test/OptionHandlerTest.cc
  2446. * test/OptionParserTest.cc
  2447. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2448. Fixed configure error with --disable-epoll
  2449. * configure.ac
  2450. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  2451. Fixed compile error when HAVE_EPOLL is not defined.
  2452. Fixed linker error on bigendian systems.
  2453. * src/SocketCore.cc
  2454. * src/SocketCore.h
  2455. * test/DefaultBtProgressInfoFileTest.cc
  2456. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  2457. Added --bt-external-ip option. You can specify the external IP
  2458. address to report to a BitTorrent tracker. Although this function
  2459. is named 'external', it can accept any kind of IP addresses.
  2460. * src/DefaultBtAnnounce.cc
  2461. * src/OptionHandlerFactory.cc
  2462. * src/option_processing.cc
  2463. * src/prefs.cc
  2464. * src/prefs.h
  2465. * src/usage_text.h
  2466. * test/DefaultBtAnnounceTest.cc
  2467. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  2468. Extracted the algorithm to find the longest incremental sequence
  2469. as max_sequence template.
  2470. * src/LongestSequencePieceSelector.cc
  2471. * src/a2algo.h
  2472. * test/Makefile.am
  2473. * test/a2algoTest.cc
  2474. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  2475. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  2476. * src/usage_text.h
  2477. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  2478. Updated doc for --uri-selector, --http-server-listen-port and
  2479. --enable-http-server option. Documented --event-poll option.
  2480. * doc/aria2c.1.txt
  2481. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  2482. Updated doc for --enable-http-server.
  2483. * src/usage_text.h
  2484. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  2485. Documented --http-server-listen-port and --enable-http-server in
  2486. man page.
  2487. * doc/aria2c.1.txt
  2488. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  2489. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  2490. translations. Thanks to all translators.
  2491. * po/es.po
  2492. * po/id.po
  2493. * po/it.po
  2494. * po/ru.po
  2495. * po/uk.po
  2496. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  2497. Bump up version number to 1.2.0
  2498. * configure.ac
  2499. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  2500. BtContext::getAnnounceTiers() now returns const reference.
  2501. * src/BtContext.h
  2502. * src/DefaultBtContext.cc
  2503. * src/DefaultBtContext.h
  2504. * test/MockBtContext.h
  2505. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  2506. Change the number of retries for tracker request based on the
  2507. number of available tracker in a torrent file.
  2508. * src/TrackerWatcherCommand.cc
  2509. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  2510. Added _maxTries property to RequestGroup and assign the option
  2511. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  2512. RequestGroup::getMaxTries() instead of
  2513. Option::getAsInt(PREF_MAX_TRIES).
  2514. * src/AbstractCommand.cc
  2515. * src/RequestGroup.cc
  2516. * src/RequestGroup.h
  2517. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  2518. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  2519. Mandriva. I modified the patch: make RequestGroup have the
  2520. timeout value and AdaptiveURISelector directly modifies that
  2521. value.
  2522. * src/AbstractCommand.cc
  2523. * src/AdaptiveURISelector.cc
  2524. * src/AdaptiveURISelector.h
  2525. * src/FtpNegotiationCommand.cc
  2526. * src/RequestGroup.cc
  2527. * src/RequestGroup.h
  2528. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  2529. Fixed compiler warning
  2530. * test/IteratableChecksumValidatorTest.cc
  2531. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2532. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  2533. integrated downloads. This PieceSelector subclass finds the
  2534. longest continuous sequence in the available missing pieces and
  2535. selects the last index of such sequence. This makes HTTP/FTP
  2536. connections less interrupted by the pieces obtained by BitTorrent
  2537. peers.
  2538. * src/DefaultPieceStorage.cc
  2539. * src/DefaultPieceStorage.h
  2540. * src/LongestSequencePieceSelector.cc
  2541. * src/LongestSequencePieceSelector.h
  2542. * src/Makefile.am
  2543. * src/PieceSelector.h
  2544. * src/RarestPieceSelector.h
  2545. * src/RequestGroup.cc
  2546. * test/BtDependencyTest.cc
  2547. * test/DefaultPieceStorageTest.cc
  2548. * test/IteratableChecksumValidatorTest.cc
  2549. * test/LongestSequencePieceSelectorTest.cc
  2550. * test/Makefile.am
  2551. * test/SegmentManTest.cc
  2552. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2553. Fixed the bug that the average speed is wrong in
  2554. http/ftp/BitTorrent integrated download. Only the download bytes
  2555. in BitTorrent were considered.
  2556. * src/RequestGroup.cc
  2557. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2558. Choose port for BitTorrent/DHT randomly from the specified range.
  2559. * src/DHTConnectionImpl.cc
  2560. * src/PeerListenCommand.cc
  2561. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  2562. Send HTTP Authorization header only if it is requested by the
  2563. server(response 401). There are some exceptions. The authorization
  2564. header for proxy is always sent if it is available without request
  2565. by the server. If username/password is specified in the URI, it
  2566. is immediately sent to the server without request by the server.
  2567. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  2568. SharedHandle<AuthConfig>().
  2569. NetrcAuthResolver::resolveAuthConfig() returns
  2570. SharedHandle<AuthConfig>() if no AuthConfig is available.
  2571. * src/AbstractAuthResolver.cc
  2572. * src/AbstractProxyRequestCommand.cc
  2573. * src/AuthConfigFactory.cc
  2574. * src/AuthConfigFactory.h
  2575. * src/HttpConnection.cc
  2576. * src/HttpRequest.cc
  2577. * src/HttpRequest.h
  2578. * src/HttpResponse.cc
  2579. * src/HttpResponseCommand.cc
  2580. * src/HttpSkipResponseCommand.cc
  2581. * test/AuthConfigFactoryTest.cc
  2582. * test/HttpRequestTest.cc
  2583. * test/HttpResponseTest.cc
  2584. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  2585. Remove leading "--" from help keyword and a substring after "="
  2586. from help keyword, so that one can query options by '-h--max-' or
  2587. '-hmax-peers=10'.
  2588. * src/option_processing.cc
  2589. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  2590. Rewritten PStringVisitor and its implementation.
  2591. * src/PStringBuildVisitor.cc
  2592. * src/PStringBuildVisitor.h
  2593. * src/PStringDatum.h
  2594. * src/PStringNumLoop.h
  2595. * src/PStringSegment.cc
  2596. * src/PStringSegment.h
  2597. * src/PStringSelect.h
  2598. * src/PStringVisitor.h
  2599. * src/download_helper.cc
  2600. * test/PStringBuildVisitorTest.cc
  2601. * test/ParameterizedStringParserTest.cc
  2602. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  2603. Persist connection between the built-in HTTP server and a client
  2604. if a client supports keep-alive. Fixed the bug that aria2 exits
  2605. when the HTTP server receives EOF from a client.
  2606. * src/HttpServer.cc
  2607. * src/HttpServer.h
  2608. * src/HttpServerCommand.cc
  2609. * src/HttpServerCommand.h
  2610. * src/HttpServerResponseCommand.cc
  2611. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  2612. Added experimental built-in HTTP server. Currently, when a client
  2613. accesses to the server, it responds with the current download
  2614. progress. By default, it is disabled. To enable the server, give
  2615. --enable-http-server option. To change the default port number
  2616. for the server to listen to, use --http-server-listen-port option.
  2617. The response HTML is very simple and refreshes it self each 1
  2618. second. Because of this refresh, you see flicker in normal web
  2619. browser such as Firefox. I recommend to use console-based browser
  2620. such as elinks, w3m. To connect to the server, run 'elinks
  2621. http://localhost:6800/' while running aria2. Please replace port
  2622. number '6800'(which is default) with your preference.
  2623. * src/DownloadEngineFactory.cc
  2624. * src/HttpHeader.cc
  2625. * src/HttpHeader.h
  2626. * src/HttpHeaderProcessor.cc
  2627. * src/HttpHeaderProcessor.h
  2628. * src/HttpListenCommand.cc
  2629. * src/HttpListenCommand.h
  2630. * src/HttpServer.cc
  2631. * src/HttpServer.h
  2632. * src/HttpServerCommand.cc
  2633. * src/HttpServerCommand.h
  2634. * src/HttpServerResponseCommand.cc
  2635. * src/HttpServerResponseCommand.h
  2636. * src/Makefile.am
  2637. * src/OptionHandlerFactory.cc
  2638. * src/Util.cc
  2639. * src/Util.h
  2640. * src/help_tags.h
  2641. * src/option_processing.cc
  2642. * src/prefs.cc
  2643. * src/prefs.h
  2644. * src/usage_text.h
  2645. * test/HttpHeaderProcessorTest.cc
  2646. * test/UtilTest.cc
  2647. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  2648. Removed.
  2649. * src/CheckIntegrityMan.cc
  2650. * src/FileAllocationMan.cc
  2651. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  2652. Made (piece) hash check sequential for each RequestGroup because
  2653. simultaneous hash check is slower than sequential execution.
  2654. * src/CheckIntegrityCommand.cc
  2655. * src/CheckIntegrityDispatcherCommand.cc
  2656. * src/CheckIntegrityDispatcherCommand.h
  2657. * src/CheckIntegrityMan.h
  2658. * src/ConsoleStatCalc.cc
  2659. * src/DownloadCommand.cc
  2660. * src/DownloadEngine.cc
  2661. * src/DownloadEngine.h
  2662. * src/DownloadEngineFactory.cc
  2663. * src/Makefile.am
  2664. * src/Makefile.in
  2665. * src/RequestGroup.cc
  2666. * src/StatCalc.h
  2667. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  2668. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  2669. SequentialDispatcherCommand.
  2670. * src/FileAllocationDispatcherCommand.cc
  2671. * src/SequentialDispatcherCommand.h
  2672. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  2673. Rewritten FileAllocationDispatcherCommand using brand new
  2674. SequentialDispatcherCommand.
  2675. * src/DownloadEngineFactory.cc
  2676. * src/FileAllocationCommand.cc
  2677. * src/FileAllocationDispatcherCommand.cc
  2678. * src/FileAllocationDispatcherCommand.h
  2679. * src/Makefile.am
  2680. * src/SequentialDispatcherCommand.h
  2681. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  2682. Replaced FileAllocationMan with
  2683. SequentialPicker<FileAllocationEntry>.
  2684. * src/BtCheckIntegrityEntry.cc
  2685. * src/ConsoleStatCalc.cc
  2686. * src/DownloadEngine.cc
  2687. * src/DownloadEngine.h
  2688. * src/DownloadEngineFactory.cc
  2689. * src/FileAllocationCommand.cc
  2690. * src/FileAllocationDispatcherCommand.cc
  2691. * src/FileAllocationMan.h
  2692. * src/Makefile.am
  2693. * src/SequentialPicker.h
  2694. * src/StatCalc.h
  2695. * src/StreamCheckIntegrityEntry.cc
  2696. * test/Makefile.am
  2697. * test/SequentialPickerTest.cc
  2698. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  2699. Added doc for adaptive URI selector.
  2700. * doc/aria2c.1.txt
  2701. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  2702. Added doc for adaptive URI selector.
  2703. * src/usage_text.h
  2704. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  2705. Added doc for --bt-max-peers option.
  2706. * doc/aria2c.1.txt
  2707. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  2708. Added doc for --bt-hash-check-seed option.
  2709. * doc/aria2c.1.txt
  2710. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  2711. Documented exit codes.
  2712. * doc/aria2c.1.txt
  2713. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  2714. Added --bt-max-peers option to specify the maximum number of peers
  2715. per torrent. 0 means unlimited number of peers.
  2716. * src/ActivePeerConnectionCommand.cc
  2717. * src/BtRuntime.h
  2718. * src/DefaultPeerStorage.cc
  2719. * src/DefaultPeerStorage.h
  2720. * src/OptionHandlerFactory.cc
  2721. * src/RequestGroup.cc
  2722. * src/option_processing.cc
  2723. * src/prefs.cc
  2724. * src/prefs.h
  2725. * src/usage_text.h
  2726. * test/DefaultPeerStorageTest.cc
  2727. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  2728. Added --bt-hash-check-seed option. If true is given to this
  2729. option, after hash check using --check-integrity option and file
  2730. is complete, continue to seed file. If you want to check file and
  2731. download it only when it is damaged or incomplete, set this option
  2732. to false. This option has effect only on BitTorrent download.
  2733. The default value is true(This is the same behavior with the
  2734. previous release).
  2735. * src/BtCheckIntegrityEntry.cc
  2736. * src/OptionHandlerFactory.cc
  2737. * src/option_processing.cc
  2738. * src/prefs.cc
  2739. * src/prefs.h
  2740. * src/usage_text.h
  2741. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  2742. Updated copyright year.
  2743. * src/version_usage.cc
  2744. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  2745. Rewritten the usage text for --bt-request-peer-speed-limit option.
  2746. * doc/aria2c.1.txt
  2747. * src/usage_text.h
  2748. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  2749. Made the max value of split option unlimited.
  2750. * doc/aria2c.1.txt
  2751. * src/OptionHandlerFactory.cc
  2752. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  2753. Fixed compile warning/error.
  2754. * src/DownloadResult.h
  2755. * src/HttpDownloadCommand.cc
  2756. * src/ServerStat.cc
  2757. * test/RequestGroupTest.cc
  2758. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  2759. Added --event-poll option to select the method for polling events.
  2760. The available methods are "select" and "epoll". "epoll" is
  2761. available on Linux only. The earlier release has the compile
  2762. option to choose from these methods.
  2763. * configure.ac
  2764. * src/RequestGroupMan.cc
  2765. * src/OptionHandlerFactory.cc
  2766. * src/EpollEventPoll.h
  2767. * src/StreamFileAllocationEntry.cc
  2768. * src/a2io.h
  2769. * src/SelectEventPoll.h
  2770. * src/option_processing.cc
  2771. * src/prefs.h
  2772. * src/EpollEventPoll.cc
  2773. * src/EventPoll.h
  2774. * src/SocketCore.h
  2775. * src/Makefile.am
  2776. * src/main.cc
  2777. * src/DownloadEngine.h
  2778. * src/SelectEventPoll.cc
  2779. * src/DownloadEngine.cc
  2780. * src/SocketCore.cc
  2781. * src/DownloadEngineFactory.cc
  2782. * src/Makefile.in
  2783. * src/prefs.cc
  2784. * src/usage_text.h
  2785. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  2786. Included RecoverableException.h from main.cc
  2787. * src/main.cc
  2788. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  2789. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  2790. now returns last error encountered in the HTTP/FTP downloads as a
  2791. exit status value. If all downloads finished successfully, aria2
  2792. returns 0. The error code is defined in src/DownloadResult.h.
  2793. The error occurred in the download currently in progress is not
  2794. reported as a last error. If no error has encountered but there
  2795. are in progress or waiting downloads, aria2 returns 7.
  2796. * src/AbstractCommand.cc
  2797. * src/DlAbortEx.h
  2798. * src/DlRetryEx.h
  2799. * src/DownloadCommand.cc
  2800. * src/DownloadFailureException.h
  2801. * src/DownloadResult.h
  2802. * src/FtpNegotiationCommand.cc
  2803. * src/HttpSkipResponseCommand.cc
  2804. * src/Makefile.am
  2805. * src/MultiUrlRequestInfo.cc
  2806. * src/MultiUrlRequestInfo.h
  2807. * src/RecoverableException.h
  2808. * src/RequestGroup.cc
  2809. * src/RequestGroup.h
  2810. * src/RequestGroupMan.cc
  2811. * src/RequestGroupMan.h
  2812. * src/URIResult.cc
  2813. * src/URIResult.h
  2814. * src/main.cc
  2815. * src/option_processing.cc
  2816. * test/RequestGroupTest.cc
  2817. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  2818. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  2819. patch adds AdaptiveURISelector, which selects one of the bests
  2820. mirrors for first and reserved connections. For supplementary
  2821. ones, it returns mirrors which has not been tested yet, and if
  2822. each of them already tested, returns mirrors which has to be
  2823. tested again. Otherwise, it doesn't return anymore mirrors.
  2824. * src/AdaptiveURISelector.cc
  2825. * src/AdaptiveURISelector.h
  2826. * src/FtpNegotiationCommand.cc
  2827. * src/HttpResponseCommand.cc
  2828. * src/Makefile.am
  2829. * src/Makefile.in
  2830. * src/OptionHandlerFactory.cc
  2831. * src/RequestGroup.cc
  2832. * src/RequestGroup.h
  2833. * src/RequestGroupMan.cc
  2834. * src/ServerStat.cc
  2835. * src/ServerStat.h
  2836. * src/ServerStatMan.cc
  2837. * src/SpeedCalc.cc
  2838. * src/URISelector.h
  2839. * src/prefs.cc
  2840. * src/prefs.h
  2841. * test/RequestGroupManTest.cc
  2842. * test/ServerStatManTest.cc
  2843. * test/ServerStatTest.cc
  2844. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  2845. Fixed unit test error.
  2846. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2847. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  2848. * Release 1.1.2
  2849. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  2850. Updated Russian translation. Thanks to the translators.
  2851. * po/ru.po
  2852. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  2853. Added the description of --use-head option to man page.
  2854. * doc/aria2c.1.txt
  2855. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  2856. Bump up version number to 1.1.2
  2857. * configure.ac
  2858. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  2859. Added --use-head option to toggle whether HEAD method should be
  2860. used in the first HTTP request. By default aria2 uses HEAD method
  2861. as the first request. When the server doesn't recognize HEAD, then
  2862. give aria2 --use-head=false to force aria2 to use GET method
  2863. instead.
  2864. * src/OptionHandlerFactory.cc
  2865. * src/RequestGroupMan.cc
  2866. * src/option_processing.cc
  2867. * src/prefs.cc
  2868. * src/prefs.h
  2869. * src/usage_text.h
  2870. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  2871. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2872. message is received before CHOKE message. The old implementation
  2873. doen't clear the use-bit of the piece when recieved REJECT
  2874. message.
  2875. * src/DefaultBtMessageDispatcher.cc
  2876. * test/DefaultBtMessageDispatcherTest.cc
  2877. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  2878. * Release 1.1.1
  2879. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  2880. Bump up version number to 1.1.1.
  2881. * configure.ac
  2882. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  2883. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2884. is printed repeatedly.
  2885. * src/ConsoleStatCalc.cc
  2886. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2887. * Release 1.1.0
  2888. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2889. Added ifdef clause for conditional compilation.
  2890. * src/main.cc
  2891. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2892. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2893. translations. Thanks to all translators.
  2894. * po/ja.po
  2895. * po/ru.po
  2896. * po/uk.po
  2897. * po/zh_CN.po
  2898. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2899. Added the preceding ">>> " before the message "Printing the
  2900. contents of file..." to make the output more readable.
  2901. * src/main.cc
  2902. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  2903. Added try-catch block in the loop in showFiles() to continue the
  2904. operation even if the exception occurred in one file.
  2905. * src/main.cc (showFiles)
  2906. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2907. Made messages in showFiles() translatable.
  2908. * po/aria2.pot
  2909. * src/main.cc
  2910. * src/message.h
  2911. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  2912. Print the contents of Torrent/Metalink files are printed without
  2913. -T/-M options.
  2914. * src/main.cc
  2915. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  2916. Escaped '--' with '\--'
  2917. * README
  2918. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  2919. Updated "How to build" section in README. Mentioned about
  2920. --with-ca-bundle compile option.
  2921. * README
  2922. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  2923. Bump up version number to 1.1.0.
  2924. * configure.ac
  2925. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  2926. Added a note for --dht-listen-port option.
  2927. * doc/aria2c.1.txt
  2928. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  2929. Update doc for --realtime-chunk-checksum option.
  2930. * doc/aria2c.1.txt
  2931. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  2932. Update doc for --realtime-chunk-checksum option.
  2933. * src/usage_text.h
  2934. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  2935. Updated French, Japanese, Russian and Ukrainian translations.
  2936. Thanks to all translators.
  2937. * po/fr.po
  2938. * po/ja.po
  2939. * po/ru.po
  2940. * po/uk.po
  2941. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  2942. Renamed aria2c.pot to aria2.pot
  2943. * po/aria2.pot
  2944. * po/aria2c.pot: Removed.
  2945. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  2946. Removed MetaEntry.h
  2947. * src/Makefile.am
  2948. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  2949. Rename file by appending digits if a local file exists and its
  2950. file size is larger than that of remote file with --continue
  2951. option. The old implementation just throws exception in such case.
  2952. * src/RequestGroup.cc
  2953. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  2954. Fixed the bug that download progress summary is not printed in the
  2955. interval specified by the option.
  2956. * src/ConsoleStatCalc.cc
  2957. * src/ConsoleStatCalc.h
  2958. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  2959. Fixed compiler warning
  2960. * src/Cookie.cc
  2961. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  2962. Fixed the cookie implementation based on RFC2965.
  2963. Now if a value in domain field is not started with dot, then
  2964. prepend dot. That means a cookie with domain=sf.net is sent to
  2965. wiki.sf.net.
  2966. * src/Cookie.cc
  2967. * test/CookieParserTest.cc
  2968. * test/CookieStorageTest.cc
  2969. * test/CookieTest.cc
  2970. * test/NsCookieParserTest.cc
  2971. * test/Sqlite3MozCookieParserTest.cc
  2972. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  2973. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2974. is enabled and the server doesn't support keep-alive.
  2975. * src/AbstractCommand.cc
  2976. * src/DownloadCommand.cc
  2977. * src/HttpDownloadCommand.cc
  2978. * src/HttpDownloadCommand.h
  2979. * src/HttpResponseCommand.cc
  2980. * src/Request.cc
  2981. * src/Request.h
  2982. * test/RequestTest.cc
  2983. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  2984. Removed Dictionary/List/Data and its related classes.
  2985. * src/BencodeVisitor.cc: Removed.
  2986. * src/BencodeVisitor.h: Removed.
  2987. * src/Data.cc: Removed.
  2988. * src/Data.h: Removed.
  2989. * src/Dictionary.cc: Removed.
  2990. * src/Dictionary.h: Removed.
  2991. * src/List.cc: Removed.
  2992. * src/List.h: Removed.
  2993. * src/Makefile.am
  2994. * src/MetaEntry.h: Removed.
  2995. * src/MetaEntryVisitor.h: Removed.
  2996. * src/MetaFileUtil.cc: Removed.
  2997. * src/MetaFileUtil.h: Removed.
  2998. * test/BencodeVisitorTest.cc: Removed.
  2999. * test/DataTest.cc: Removed.
  3000. * test/DictionaryTest.cc: Removed.
  3001. * test/ListTest.cc: Removed.
  3002. * test/Makefile.am
  3003. * test/MetaFileUtilTest.cc: Removed.
  3004. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3005. Removed include of MetaEntry.h
  3006. * test/DHTMessageTrackerEntryTest.cc
  3007. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3008. Use BDE instead of Dictionary/List/Data.
  3009. * src/AnnounceList.cc
  3010. * src/AnnounceList.h
  3011. * test/AnnounceListTest.cc
  3012. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3013. Use BDE instead of Dictionary/List/Data.
  3014. * src/DHTAbstractMessage.cc
  3015. * src/DHTAbstractMessage.h
  3016. * src/DHTAnnouncePeerMessage.cc
  3017. * src/DHTAnnouncePeerMessage.h
  3018. * src/DHTAnnouncePeerReplyMessage.cc
  3019. * src/DHTAnnouncePeerReplyMessage.h
  3020. * src/DHTFindNodeMessage.cc
  3021. * src/DHTFindNodeMessage.h
  3022. * src/DHTFindNodeReplyMessage.cc
  3023. * src/DHTFindNodeReplyMessage.h
  3024. * src/DHTGetPeersMessage.cc
  3025. * src/DHTGetPeersMessage.h
  3026. * src/DHTGetPeersReplyMessage.cc
  3027. * src/DHTGetPeersReplyMessage.h
  3028. * src/DHTMessageFactory.h
  3029. * src/DHTMessageFactoryImpl.cc
  3030. * src/DHTMessageFactoryImpl.h
  3031. * src/DHTMessageReceiver.cc
  3032. * src/DHTMessageTracker.cc
  3033. * src/DHTMessageTracker.h
  3034. * src/DHTPingMessage.cc
  3035. * src/DHTPingMessage.h
  3036. * src/DHTPingReplyMessage.cc
  3037. * src/DHTPingReplyMessage.h
  3038. * src/DHTQueryMessage.cc
  3039. * src/DHTQueryMessage.h
  3040. * src/DHTResponseMessage.cc
  3041. * src/DHTResponseMessage.h
  3042. * test/DHTAnnouncePeerMessageTest.cc
  3043. * test/DHTAnnouncePeerReplyMessageTest.cc
  3044. * test/DHTFindNodeMessageTest.cc
  3045. * test/DHTFindNodeReplyMessageTest.cc
  3046. * test/DHTGetPeersMessageTest.cc
  3047. * test/DHTGetPeersReplyMessageTest.cc
  3048. * test/DHTMessageFactoryImplTest.cc
  3049. * test/DHTMessageTrackerTest.cc
  3050. * test/DHTPingMessageTest.cc
  3051. * test/DHTPingReplyMessageTest.cc
  3052. * test/MockDHTMessageFactory.h
  3053. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3054. Added tests the case where length < 0 is specified.
  3055. * test/BencodeTest.cc
  3056. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3057. Fixed memory leak in decoderawstring()
  3058. * src/bencode.cc
  3059. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  3060. Added missing #ifdef guard. Added uc() function for String and
  3061. removeKey() for Dict.
  3062. * src/bencode.cc
  3063. * src/bencode.h
  3064. * test/BencodeTest.cc
  3065. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  3066. Use BDE instead of Dictionary/List/Data.
  3067. * src/HandshakeExtensionMessage.cc
  3068. * src/HandshakeExtensionMessage.h
  3069. * test/HandshakeExtensionMessageTest.cc
  3070. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  3071. Added --max-overall-upload-limit option. This option limits the
  3072. overall upload speed. Stated in help message that the existing
  3073. --max-upload-limit option limits the upload speed per each
  3074. torrent. Man page is also updated.
  3075. * doc/aria2c.1.txt
  3076. * src/DefaultBtMessageDispatcher.cc
  3077. * src/DefaultBtMessageDispatcher.h
  3078. * src/OptionHandlerFactory.cc
  3079. * src/PeerInteractionCommand.cc
  3080. * src/option_processing.cc
  3081. * src/prefs.cc
  3082. * src/prefs.h
  3083. * src/usage_text.h
  3084. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  3085. Use BDE instead of Dictionary/List/Data classes.
  3086. * src/CompactPeerListProcessor.cc
  3087. * src/CompactPeerListProcessor.h
  3088. * src/DefaultBtAnnounce.cc
  3089. * src/DefaultBtContext.cc
  3090. * src/DefaultBtContext.h
  3091. * src/DefaultPeerListProcessor.cc
  3092. * src/DefaultPeerListProcessor.h
  3093. * src/DelegatingPeerListProcessor.cc
  3094. * src/DelegatingPeerListProcessor.h
  3095. * src/PeerListProcessor.h
  3096. * src/UTPexExtensionMessage.cc
  3097. * src/Util.h
  3098. * src/message.h
  3099. * test/DefaultBtContextTest.cc
  3100. * test/DefaultPeerListProcessorTest.cc
  3101. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  3102. Added bencode helper functions and BDE class.
  3103. They will replace MetaFileUtil and Dictionary/List/Data classes.
  3104. * src/Makefile.am
  3105. * src/bencode.cc
  3106. * src/bencode.h
  3107. * test/BencodeTest.cc
  3108. * test/Makefile.am
  3109. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  3110. Fixed the bug that bad URI is sent to the tracker when the announe
  3111. URI in torrent file includes query.
  3112. * src/DefaultBtAnnounce.cc
  3113. * test/DefaultBtAnnounceTest.cc
  3114. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  3115. Added Option::blank().
  3116. Use !Option::blank(name) instead of Option::defined(name) for
  3117. the options that take filename.
  3118. * src/MultiUrlRequestInfo.cc
  3119. * src/Option.cc
  3120. * src/Option.h
  3121. * src/main.cc
  3122. * src/option_processing.cc
  3123. * test/OptionTest.cc
  3124. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  3125. Documented the default value of --check-certificate option in man
  3126. page.
  3127. * doc/aria2c.1.txt
  3128. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  3129. Enabled --check-certificate by default. Added compile
  3130. time(configure) option --with-ca-bundle to specify CA bundle.
  3131. Warn if --check-certificate=true and --ca-certificate is not
  3132. specified or loading CA certificate is failed.
  3133. * configure.ac
  3134. * src/MultiUrlRequestInfo.cc
  3135. * src/OptionHandlerFactory.cc
  3136. * src/message.h
  3137. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  3138. Mentioned https tag in help option.
  3139. * doc/aria2c.1.txt
  3140. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  3141. Added `https' tag to help option category. Added https tag to
  3142. --ca-certificate, --certificate, --check-certificate and
  3143. --private-key option.
  3144. * src/OptionHandlerFactory.cc
  3145. * src/help_tags.h
  3146. * src/option_processing.cc
  3147. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  3148. Changed the package name from `aria2c' to `aria2' in order to fix
  3149. the packaging issue in Debian and Fedora. The name of the
  3150. executable is not changed.
  3151. * configure.ac
  3152. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  3153. Fixed typos
  3154. * src/usage_text.h
  3155. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  3156. Fixed typos and updated doc.
  3157. * README
  3158. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  3159. Fixed typos
  3160. * doc/aria2c.1.txt
  3161. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  3162. Fixed typos
  3163. * src/usage_text.h
  3164. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  3165. Print a message when no files to download.
  3166. * src/download_helper.cc
  3167. * src/main.cc
  3168. * src/message.h
  3169. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  3170. RFC3986 complied Percent-Encoding(urlencode).
  3171. Use uppercase hexadecimal digits for encoded text instead of lowercase
  3172. ones.
  3173. * src/Request.cc
  3174. * src/Util.cc
  3175. * src/Util.h
  3176. * test/BtHandshakeMessageTest.cc
  3177. * test/DefaultBtAnnounceTest.cc
  3178. * test/DefaultBtContextTest.cc
  3179. * test/RequestTest.cc
  3180. * test/UtilTest.cc
  3181. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  3182. Fixed the bug that prevents aria2 from downloading 0-length files
  3183. via HTTP/FTP.
  3184. * src/DefaultBtContext.cc
  3185. * src/DefaultBtContext.h
  3186. * src/DownloadContext.h
  3187. * src/FtpNegotiationCommand.cc
  3188. * src/HttpResponseCommand.cc
  3189. * src/HttpResponseCommand.h
  3190. * src/RequestGroup.cc
  3191. * src/SingleFileDownloadContext.cc
  3192. * src/SingleFileDownloadContext.h
  3193. * test/BtPostDownloadHandlerTest.cc
  3194. * test/MetalinkPostDownloadHandlerTest.cc
  3195. * test/MockBtContext.h
  3196. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  3197. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  3198. * src/option_processing.cc
  3199. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  3200. Applied aria2-1.0.1-mingw.patch.
  3201. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  3202. mingw.
  3203. Collected 4th and 5th argument types for getsockopt and setsockopt.
  3204. * src/SocketCore.cc
  3205. * src/a2netcompat.h
  3206. * test/SocketCoreTest.cc
  3207. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3208. * Release 1.0.1
  3209. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3210. Updated Ukrainian and Norwegian Nynorsk translations.
  3211. Thanks to all translators.
  3212. * po/nn.po
  3213. * po/uk.po
  3214. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3215. Don't show download result when -S option is used.
  3216. * src/main.cc
  3217. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3218. Bump up version number to 1.0.1
  3219. * configure.ac
  3220. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  3221. Closed files after the test cases in MultiDiskWriterTest::
  3222. testResetDiskWriterEntries(). This will fix the unit test error
  3223. in mingw32 build.
  3224. * test/MultiDiskWriterTest.cc
  3225. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3226. Use HEAD method to get file size from HTTP server for segmented
  3227. downloading.
  3228. The request to the BitTorrent Tracker always uses GET method because
  3229. the response of the tracker is small and it doesn't need segmented
  3230. download.
  3231. * src/FtpNegotiationCommand.cc
  3232. * src/HttpRequest.cc
  3233. * src/HttpResponseCommand.cc
  3234. * src/HttpSkipResponseCommand.cc
  3235. * src/RequestGroup.cc
  3236. * src/RequestGroup.h
  3237. * src/TrackerWatcherCommand.cc
  3238. * test/HttpRequestTest.cc
  3239. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  3240. Fixed the bug that causes floating exception when -T option is used and
  3241. no URIs are given.
  3242. * src/download_helper.cc
  3243. * test/DownloadHelperTest.cc
  3244. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  3245. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  3246. errors in MinGW:
  3247. Closed file after saving server stats (RequestGroupMan.cc)
  3248. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  3249. Ignored case & handled 2-digit years (strptime.c)
  3250. Added missing suseconds_t definition (a2time.h)
  3251. Fixed socket CLOSE() define (SocketCore.cc)
  3252. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  3253. Changed utime() test values from x000 to x00000 as MinGW failed on
  3254. values less than timezone offset from Unix epoch
  3255. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  3256. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  3257. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  3258. handle negative dates (CookieParserTest.cc)
  3259. * src/a2time.h
  3260. * src/FtpConnection.cc
  3261. * src/RequestGroupMan.cc
  3262. * src/SocketCore.cc
  3263. * src/strptime.c
  3264. * test/CookieParserTest.cc
  3265. * test/CopyDiskAdaptorTest.cc
  3266. * test/FileTest.cc
  3267. * test/FtpConnectionTest.cc
  3268. * test/MultiDiskAdaptorTest.cc
  3269. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  3270. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  3271. * doc/aria2c.1.txt
  3272. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  3273. * Release 1.0.0
  3274. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  3275. Added '~' to reserved characters.
  3276. * src/Util.cc
  3277. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  3278. Do not urlencode Request::url in setUrl() because we want unmodified
  3279. URL using Request::getUrl()
  3280. * src/Request.cc
  3281. * src/Request.h
  3282. * test/RequestTest.cc
  3283. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  3284. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  3285. Thanks to all translators.
  3286. * po/bg.po
  3287. * po/fr.po
  3288. * po/ja.po
  3289. * po/ru.po
  3290. * po/uk.po
  3291. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  3292. Bump up version number to 1.0.0
  3293. * configure.ac
  3294. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  3295. Added nosqlite3 build to build_test.sh.
  3296. Renamed noxml as expat.
  3297. * build_test.sh
  3298. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  3299. Updated INPUT FILE section.
  3300. * doc/aria2c.1.txt
  3301. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  3302. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  3303. on big endian systems because test .aria2 files are made for little
  3304. endian systems.
  3305. * test/DefaultBtProgressInfoFileTest.cc
  3306. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  3307. Dropped ares support.
  3308. * README
  3309. * configure.ac
  3310. * m4/libares.m4: Removed.
  3311. * src/AsyncNameResolver.cc
  3312. * src/Makefile.am
  3313. * test/Makefile.am
  3314. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  3315. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  3316. Removed const qualifier from DiskWriter::size().
  3317. * src/AbstractDiskWriter.cc
  3318. * src/AbstractDiskWriter.h
  3319. * src/ByteArrayDiskWriter.cc
  3320. * src/ByteArrayDiskWriter.h
  3321. * src/DiskWriter.h
  3322. * test/ByteArrayDiskWriterTest.cc
  3323. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  3324. Fixed the bug that causes segmentation fault/bus error during executing
  3325. choking algorithm while seeding. This is caused by improper
  3326. implementation of compare function which returns inconsistent results
  3327. depending on the timing of last unchoke.
  3328. * src/BtSeederStateChoke.cc
  3329. * src/BtSeederStateChoke.h
  3330. * src/DefaultPeerStorage.cc
  3331. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  3332. Removed TODO
  3333. * TODO
  3334. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  3335. Added a section that explains how to pass argument to options that
  3336. takes optional arguments with its short form.
  3337. * doc/aria2c.1.txt
  3338. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  3339. Added -u for the short form of --max-upload-limit option.
  3340. * doc/aria2c.1.txt
  3341. * src/option_processing.cc
  3342. * src/usage_text.h
  3343. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  3344. Added -V for the short form of --check-integrity option.
  3345. Now the argument of --check-integrity option is optional:
  3346. if it is omitted, it is evaluated as true.
  3347. * doc/aria2c.1.txt
  3348. * src/option_processing.cc
  3349. * src/usage_text.h
  3350. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  3351. Made the default value of --ftp-pasv option set to true and it can take
  3352. true/false values.
  3353. * src/OptionHandlerFactory.cc
  3354. * src/option_processing.cc
  3355. * src/usage_text.h
  3356. * doc/aria2c.1.txt
  3357. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3358. Given custom random number generator to std::random_shuffle.
  3359. * src/AnnounceList.cc
  3360. * src/BtLeecherStateChoke.cc
  3361. * src/BtSeederStateChoke.cc
  3362. * src/DefaultBtRequestFactory.cc
  3363. * src/MetalinkEntry.cc
  3364. * src/RarestPieceSelector.cc
  3365. * src/SimpleRandomizer.cc
  3366. * src/SimpleRandomizer.h
  3367. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3368. Now the default value of --enable-direct-io is true.
  3369. * src/OptionHandlerFactory.cc
  3370. * doc/aria2c.1.txt
  3371. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  3372. Erase peer before executing onReturningPeer and onErasingPeer
  3373. because choking algorithm called from onReturningPeer doesn't
  3374. like erasing peer in the active peer list.
  3375. * src/DefaultPeerStorage.cc
  3376. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3377. Instead of creating special filename in createDownloadResult() if
  3378. inMemoryDownload() is true, now it is done in getFilePath().
  3379. * src/RequestGroup.cc
  3380. * test/RequestGroupTest.cc
  3381. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3382. Print "[MEMORY]" and filename if a file is not saved in disk and just
  3383. processed in memory. This is the fix for previous comment out.
  3384. * src/MemoryBufferPreDownloadHandler.cc
  3385. * src/RequestGroup.cc
  3386. * src/RequestGroup.h
  3387. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3388. Commented out the code which sets virtual directory path "[MEMORY]"
  3389. propagate directory to store to following RequestGroup.
  3390. * src/MemoryBufferPreDownloadHandler.cc
  3391. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3392. Bump up version number to 1.0.0b
  3393. * configure.ac
  3394. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3395. Added input_uris.txt to EXTRA_DIST
  3396. * test/Makefile.am
  3397. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3398. Removed PeerObject.h from Makefile.am
  3399. * src/Makefile.am
  3400. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3401. Avoid slow seeding
  3402. * src/PeerInteractionCommand.cc
  3403. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3404. Updated usage for -i option.
  3405. * src/usage_text.h (TEXT_INPUT_FILE)
  3406. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3407. Added INPUT FILE section to man page.
  3408. Escaped fake URLs.
  3409. * doc/aria2c.1.txt
  3410. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3411. Fixed wrong note position for -o option.
  3412. * doc/aria2c.1.txt
  3413. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  3414. Fixed compile error without SSL/XML library.
  3415. * src/DefaultBtProgressInfoFile.cc
  3416. * src/DefaultBtProgressInfoFile.h
  3417. * src/FileMetalinkParserState.cc
  3418. * src/RequestGroup.h
  3419. * src/SocketCore.cc
  3420. * src/SocketCore.h
  3421. * src/VerificationMetalinkParserState.cc
  3422. * src/download_helper.h
  3423. * src/main.cc
  3424. * test/DefaultBtProgressInfoFileTest.cc
  3425. * test/DownloadHelperTest.cc
  3426. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  3427. Rewritten URI handling functions. They are now provided as a testable
  3428. functions.
  3429. * src/Makefile.am
  3430. * src/RequestGroup.cc
  3431. * src/RequestGroup.h
  3432. * src/download_helper.cc
  3433. * src/download_helper.h
  3434. * src/main.cc
  3435. * test/DownloadHelperTest.cc
  3436. * test/Makefile.am
  3437. * test/input_uris.txt
  3438. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  3439. Quickly terminate commands when ctrl-c is pressed.
  3440. * src/DownloadEngine.cc
  3441. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  3442. Quickly terminate idle commands when download finished.
  3443. * src/AbstractCommand.cc
  3444. * src/DownloadCommand.cc
  3445. * src/DownloadEngine.cc
  3446. * src/DownloadEngine.h
  3447. * src/SleepCommand.cc
  3448. * src/SleepCommand.h
  3449. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3450. Added the ability to specify output filename and directory in input
  3451. file.
  3452. Additional parameters are added in the following line of URIs
  3453. with proceeding white space(s), 1 parameter in 1 line.
  3454. The parameter names are the same with the command-line option name
  3455. without proceeding "--". Not all the options are available here:
  3456. at the moment, 'dir' and 'out' options are avialable.
  3457. Please note that out option has no effect against Metalink or BitTorrent
  3458. downloads.
  3459. Example input file:
  3460. http://host/foo-1.1.tar.bz2
  3461. out=foo.tar.bz2
  3462. dir=/tmp/downloads
  3463. http://host/thundermonkey-2.0.tar.bz2
  3464. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  3465. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  3466. thundermonkey-2.0.tar.bz2 is saved as
  3467. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  3468. * src/BtPostDownloadHandler.cc
  3469. * src/Metalink2RequestGroup.cc
  3470. * src/Metalink2RequestGroup.h
  3471. * src/MetalinkPostDownloadHandler.cc
  3472. * src/UriListParser.cc
  3473. * src/UriListParser.h
  3474. * src/main.cc
  3475. * test/Metalink2RequestGroupTest.cc
  3476. * test/UriListParserTest.cc
  3477. * test/filelist1.txt
  3478. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3479. Fixed error when SSL library is not found.
  3480. * configure.ac
  3481. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3482. Cross referenced among -s, -C and -j options.
  3483. Updated usage of -C and -s options.
  3484. * src/usage_text.h
  3485. * doc/aria2c.1.txt
  3486. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3487. Fixed bad cast in 32bit platforms.
  3488. * test/DefaultPieceStorageTest.cc
  3489. (DefaultPieceStorageTest::testGetCompletedLength)
  3490. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3491. Fixed unit test fails on 32bit platforms.
  3492. * test/CookieParserTest.cc
  3493. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3494. Show an average download speed in Download results.
  3495. * src/BtFileAllocationEntry.cc
  3496. * src/DefaultPieceStorage.cc
  3497. * src/DownloadContext.cc
  3498. * src/DownloadContext.h
  3499. * src/DownloadResult.h
  3500. * src/RequestGroup.cc
  3501. * src/RequestGroupMan.cc
  3502. * src/StreamFileAllocationEntry.cc
  3503. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  3504. Fixed the bug that metalink file is not processed if Content-Type
  3505. field has a paramter.
  3506. * src/HttpResponse.cc
  3507. * src/HttpResponse.h
  3508. * test/HttpResponseTest.cc
  3509. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  3510. Removed unused code.
  3511. * src/DefaultBtAnnounce.cc
  3512. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  3513. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  3514. the value larger than DefaultPieceStorage::getTotalLength() when
  3515. in flight pieces are involved.
  3516. * src/DefaultPieceStorage.cc
  3517. * test/DefaultPieceStorageTest.cc
  3518. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  3519. Bump up version number to 1.0.0a.
  3520. * configure.ac
  3521. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  3522. Updated configure.ac
  3523. * configure.ac
  3524. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  3525. Added usege for proxy.
  3526. * doc/aria2c.1.txt
  3527. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  3528. Added usage for --ca-certificate, --certificate, --private-key and
  3529. --check-certificate options.
  3530. * doc/aria2c.1.txt
  3531. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  3532. Updated man page
  3533. * doc/aria2c.1.txt
  3534. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  3535. Added --no-proxy option. It receives comman separated hostname or
  3536. domains to which proxy should not be used.
  3537. aria2 honors the environment variable no_proxy to override no-proxy
  3538. value in configuration file. The user can override the environment
  3539. variable no_proxy with --no-proxy command-line option.
  3540. * src/AbstractCommand.cc
  3541. * src/OptionHandlerFactory.cc
  3542. * src/option_processing.cc
  3543. * src/prefs.cc
  3544. * src/prefs.h
  3545. * src/usage_text.h
  3546. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  3547. Added the ability to verify peer in SSL/TLS using given CA certificates.
  3548. The CA certificates are specified in --ca-certificate option.
  3549. By default, the verification is disabled. Use --check-certificate
  3550. option to enable it.
  3551. * src/HttpRequestCommand.cc
  3552. * src/LibgnutlsTLSContext.cc
  3553. * src/LibgnutlsTLSContext.h
  3554. * src/LibsslTLSContext.cc
  3555. * src/LibsslTLSContext.h
  3556. * src/MultiUrlRequestInfo.cc
  3557. * src/OptionHandlerFactory.cc
  3558. * src/SocketCore.cc
  3559. * src/SocketCore.h
  3560. * src/a2functional.h
  3561. * src/message.h
  3562. * src/option_processing.cc
  3563. * src/prefs.cc
  3564. * src/prefs.h
  3565. * src/usage_text.h
  3566. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  3567. Added client certificate authentication for SSL/TLS.
  3568. Currently a private key must be decrypted for use with aria2.
  3569. If a user accidentally gives encrypted file to aria2 then following
  3570. thing happens:
  3571. If encrypted private key is given to aria2, it behaves differently
  3572. depending on the ssl library it uses. If aria2 built with openssl then
  3573. openssl prompts the user for password. If aria2 build with gnutls then
  3574. aria2 exists with error at start up.
  3575. * src/DownloadEngineFactory.cc
  3576. * src/MultiUrlRequestInfo.cc
  3577. * src/OptionHandlerFactory.cc
  3578. * src/option_processing.cc
  3579. * src/prefs.cc
  3580. * src/prefs.h
  3581. * src/usage_text.h
  3582. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  3583. Introduced TLSContext that holds TLS related data that can be shared
  3584. with multiple SSL connections.
  3585. * src/DownloadEngineFactory.cc
  3586. * src/LibgnutlsTLSContext.cc
  3587. * src/LibgnutlsTLSContext.h
  3588. * src/LibsslTLSContext.cc
  3589. * src/LibsslTLSContext.h
  3590. * src/Makefile.am
  3591. * src/SocketCore.cc
  3592. * src/SocketCore.h
  3593. * src/TLSContext.h
  3594. * src/message.h
  3595. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  3596. Fixed the bug that the DiskWriter of the first FileEntry whose
  3597. `needsFileAllocation' property is false is not created
  3598. even if it shares a piece with next FileEntry which `requested' property
  3599. is true.
  3600. Fixed the bug that zero-length file is not created if pre file
  3601. allocation is not done.
  3602. * src/MultiDiskAdaptor.cc
  3603. * src/MultiDiskAdaptor.h
  3604. * test/MultiDiskAdaptorTest.cc
  3605. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3606. Added the ability to pool proxy connection.
  3607. The conneciton in FTP with proxy-method=GET is not pooled.
  3608. Proxy-Connection header will not be sent when sending CONNECT method.
  3609. * src/DownloadEngine.cc
  3610. * src/DownloadEngine.h
  3611. * src/FtpFinishDownloadCommand.cc
  3612. * src/FtpInitiateConnectionCommand.cc
  3613. * src/FtpNegotiationCommand.cc
  3614. * src/HttpDownloadCommand.cc
  3615. * src/HttpInitiateConnectionCommand.cc
  3616. * src/HttpRequest.cc
  3617. * src/HttpRequest.h
  3618. * src/HttpResponse.cc
  3619. * src/HttpSkipResponseCommand.cc
  3620. * test/HttpRequestTest.cc
  3621. * test/HttpResponseTest.cc
  3622. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3623. Handle date before epoch.
  3624. To create *bad* Time object, call Time::null().
  3625. * src/CookieParser.cc
  3626. * src/FtpConnection.cc
  3627. * src/FtpConnection.h
  3628. * src/FtpNegotiationCommand.cc
  3629. * src/RequestGroup.cc
  3630. * src/TimeA2.cc
  3631. * src/TimeA2.h
  3632. * test/CookieParserTest.cc
  3633. * test/FtpConnectionTest.cc
  3634. * test/TimeTest.cc
  3635. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3636. Added support for following envrionment variables: http_proxy,
  3637. https_proxy, ftp_proxy and all_proxy.
  3638. Each variable is equivalent to the aria2 option whose name is the
  3639. variable name with '_' replaced with '-'.
  3640. They overrides options specified in aria2.conf file.
  3641. The envrionment variables can be overrode using command-line option.
  3642. * src/option_processing.cc
  3643. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3644. Renamed --http-proxy-method as --proxy-method.
  3645. * src/AbstractCommand.cc
  3646. * src/FtpInitiateConnectionCommand.cc
  3647. * src/HttpInitiateConnectionCommand.cc
  3648. * src/OptionHandlerFactory.cc
  3649. * src/option_processing.cc
  3650. * src/prefs.cc
  3651. * src/prefs.h
  3652. * src/usage_text.h
  3653. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3654. Deprecated --http-proxy-user and --http-proxy-passwd options.
  3655. Added --https-proxy, --ftp-proxy and --all-proxy options.
  3656. Above 3 options and --http-proxy option can handle proxy in URL format
  3657. like: http://user:passwd@host:port.
  3658. If a proxy requires user/password, they must be specified in a URL.
  3659. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  3660. instead.
  3661. * src/AbstractCommand.cc
  3662. * src/AbstractCommand.h
  3663. * src/AbstractProxyRequestCommand.cc
  3664. * src/AbstractProxyRequestCommand.h
  3665. * src/AuthConfigFactory.cc
  3666. * src/AuthConfigFactory.h
  3667. * src/FtpFinishDownloadCommand.cc
  3668. * src/FtpInitiateConnectionCommand.cc
  3669. * src/FtpInitiateConnectionCommand.h
  3670. * src/FtpNegotiationCommand.cc
  3671. * src/FtpTunnelRequestCommand.cc
  3672. * src/FtpTunnelRequestCommand.h
  3673. * src/HttpDownloadCommand.cc
  3674. * src/HttpInitiateConnectionCommand.cc
  3675. * src/HttpInitiateConnectionCommand.h
  3676. * src/HttpProxyRequestCommand.cc
  3677. * src/HttpProxyRequestCommand.h
  3678. * src/HttpRequest.cc
  3679. * src/HttpRequest.h
  3680. * src/HttpRequestCommand.cc
  3681. * src/HttpRequestCommand.h
  3682. * src/HttpSkipResponseCommand.cc
  3683. * src/InitiateConnectionCommand.cc
  3684. * src/InitiateConnectionCommand.h
  3685. * src/OptionHandlerFactory.cc
  3686. * src/OptionHandlerImpl.h
  3687. * src/Request.cc
  3688. * src/option_processing.cc
  3689. * src/prefs.cc
  3690. * src/prefs.h
  3691. * src/usage_text.h
  3692. * test/AuthConfigFactoryTest.cc
  3693. * test/HttpRequestTest.cc
  3694. * test/OptionHandlerTest.cc
  3695. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3696. Execute choking algorithm when unchoked and interested peer is
  3697. disconected.
  3698. * src/DefaultPeerStorage.cc
  3699. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3700. Added testcase for BtNotInterestedMessage from unchoked peer.
  3701. * test/BtNotInterestedMessageTest.cc
  3702. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3703. Execute choking algorithm when BtInterestedMessage arrives from
  3704. unchoked peer.
  3705. * src/BtInterestedMessage.cc
  3706. * src/BtInterestedMessage.h
  3707. * src/DefaultBtMessageFactory.cc
  3708. * test/BtInterestedMessageTest.cc
  3709. * test/MockPeerStorage.h
  3710. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3711. AuthConfigFactory is now part of DownloadEngine.
  3712. * src/AbstractProxyRequestCommand.cc
  3713. * src/AuthConfigFactory.h
  3714. * src/DownloadEngine.cc
  3715. * src/DownloadEngine.h
  3716. * src/FtpConnection.cc
  3717. * src/FtpConnection.h
  3718. * src/FtpNegotiationCommand.cc
  3719. * src/HttpConnection.cc
  3720. * src/HttpRequest.cc
  3721. * src/HttpRequest.h
  3722. * src/HttpRequestCommand.cc
  3723. * src/HttpResponse.cc
  3724. * src/HttpResponseCommand.cc
  3725. * src/HttpSkipResponseCommand.cc
  3726. * src/MultiUrlRequestInfo.cc
  3727. * src/main.cc
  3728. * test/FtpConnectionTest.cc
  3729. * test/HttpRequestTest.cc
  3730. * test/HttpResponseTest.cc
  3731. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3732. Corrected catched exception type.
  3733. * src/ServerStatMan.cc
  3734. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3735. DNSCache is now part of DownloadEngine.
  3736. * src/DNSCache.h
  3737. * src/DownloadEngine.cc
  3738. * src/DownloadEngine.h
  3739. * src/InitiateConnectionCommand.cc
  3740. * src/MultiUrlRequestInfo.cc
  3741. * test/Makefile.am
  3742. * test/Makefile.in
  3743. * test/SimpleDNSCacheTest.cc
  3744. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  3746. DownloadEngine.
  3747. * src/ActivePeerConnectionCommand.cc
  3748. * src/BtSetup.cc
  3749. * src/CUIDCounter.h
  3750. * src/DHTSetup.cc
  3751. * src/DownloadCommand.cc
  3752. * src/DownloadEngine.cc
  3753. * src/DownloadEngine.h
  3754. * src/DownloadEngineFactory.cc
  3755. * src/FileAllocationDispatcherCommand.cc
  3756. * src/InitiatorMSEHandshakeCommand.cc
  3757. * src/PeerInitiateConnectionCommand.cc
  3758. * src/PeerInteractionCommand.cc
  3759. * src/PeerListenCommand.cc
  3760. * src/RequestGroup.cc
  3761. * src/StreamFileAllocationEntry.cc
  3762. * src/TrackerWatcherCommand.cc
  3763. * src/main.cc
  3764. * test/RequestGroupManTest.cc
  3765. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3766. Implemented commented code in BtSeederStateChoke
  3767. * src/BtSeederStateChoke.cc
  3768. * src/Peer.cc
  3769. * src/Peer.h
  3770. * src/PeerInteractionCommand.cc
  3771. * src/PeerSessionResource.cc
  3772. * src/PeerSessionResource.h
  3773. * test/MockBtMessageDispatcher.h
  3774. * test/PeerSessionResourceTest.cc
  3775. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  3777. its object.
  3778. * src/AbstractBtMessage.cc
  3779. * src/ActivePeerConnectionCommand.cc
  3780. * src/ActivePeerConnectionCommand.h
  3781. * src/BtContextAwareCommand.cc
  3782. * src/BtContextAwareCommand.h
  3783. * src/BtExtendedMessage.cc
  3784. * src/BtExtendedMessage.h
  3785. * src/BtInterestedMessage.cc
  3786. * src/BtInterestedMessage.h
  3787. * src/BtNotInterestedMessage.cc
  3788. * src/BtNotInterestedMessage.h
  3789. * src/BtRegistry.cc
  3790. * src/BtRegistry.h
  3791. * src/BtSeederStateChoke.cc
  3792. * src/BtSetup.cc
  3793. * src/DHTGetPeersCommand.cc
  3794. * src/DHTGetPeersCommand.h
  3795. * src/DHTPeerAnnounceEntry.cc
  3796. * src/DHTPeerAnnounceEntry.h
  3797. * src/DHTPeerAnnounceStorage.cc
  3798. * src/DHTPeerAnnounceStorage.h
  3799. * src/DHTPeerLookupTask.cc
  3800. * src/DHTPeerLookupTask.h
  3801. * src/DHTSetup.cc
  3802. * src/DHTSetup.h
  3803. * src/DHTTaskFactory.h
  3804. * src/DHTTaskFactoryImpl.cc
  3805. * src/DHTTaskFactoryImpl.h
  3806. * src/DefaultBtAnnounce.cc
  3807. * src/DefaultBtInteractive.cc
  3808. * src/DefaultBtInteractive.h
  3809. * src/DefaultBtMessageDispatcher.cc
  3810. * src/DefaultBtMessageDispatcher.h
  3811. * src/DefaultBtMessageFactory.cc
  3812. * src/DefaultBtMessageFactory.h
  3813. * src/DefaultBtMessageReceiver.cc
  3814. * src/DefaultBtProgressInfoFile.cc
  3815. * src/DefaultBtProgressInfoFile.h
  3816. * src/DefaultBtRequestFactory.cc
  3817. * src/DefaultBtRequestFactory.h
  3818. * src/DefaultExtensionMessageFactory.cc
  3819. * src/DefaultExtensionMessageFactory.h
  3820. * src/DefaultPeerStorage.cc
  3821. * src/DefaultPeerStorage.h
  3822. * src/DownloadEngine.cc
  3823. * src/DownloadEngine.h
  3824. * src/InitiatorMSEHandshakeCommand.cc
  3825. * src/InitiatorMSEHandshakeCommand.h
  3826. * src/MSEHandshake.cc
  3827. * src/MSEHandshake.h
  3828. * src/Makefile.am
  3829. * src/Makefile.in
  3830. * src/PeerChokeCommand.cc
  3831. * src/PeerChokeCommand.h
  3832. * src/PeerInitiateConnectionCommand.cc
  3833. * src/PeerInitiateConnectionCommand.h
  3834. * src/PeerInteractionCommand.cc
  3835. * src/PeerInteractionCommand.h
  3836. * src/PeerObject.h
  3837. * src/PeerReceiveHandshakeCommand.cc
  3838. * src/PeerReceiveHandshakeCommand.h
  3839. * src/ReceiverMSEHandshakeCommand.cc
  3840. * src/RequestGroup.cc
  3841. * src/RequestGroup.h
  3842. * src/RequestGroupMan.cc
  3843. * src/RequestGroupMan.h
  3844. * src/SeedCheckCommand.cc
  3845. * src/SeedCheckCommand.h
  3846. * src/ShareRatioSeedCriteria.h
  3847. * src/SimpleBtMessage.cc
  3848. * src/TrackerWatcherCommand.cc
  3849. * src/TrackerWatcherCommand.h
  3850. * src/UTPexExtensionMessage.cc
  3851. * src/UTPexExtensionMessage.h
  3852. * test/BtCancelMessageTest.cc
  3853. * test/BtChokeMessageTest.cc
  3854. * test/BtExtendedMessageTest.cc
  3855. * test/BtInterestedMessageTest.cc
  3856. * test/BtNotInterestedMessageTest.cc
  3857. * test/BtPieceMessageTest.cc
  3858. * test/BtPortMessageTest.cc
  3859. * test/BtRegistryTest.cc
  3860. * test/BtRejectMessageTest.cc
  3861. * test/BtRequestMessageTest.cc
  3862. * test/DHTPeerAnnounceEntryTest.cc
  3863. * test/DHTPeerAnnounceStorageTest.cc
  3864. * test/DefaultBtMessageDispatcherTest.cc
  3865. * test/DefaultBtMessageFactoryTest.cc
  3866. * test/DefaultBtProgressInfoFileTest.cc
  3867. * test/DefaultBtRequestFactoryTest.cc
  3868. * test/DefaultExtensionMessageFactoryTest.cc
  3869. * test/MSEHandshakeTest.cc
  3870. * test/MockDHTTaskFactory.h
  3871. * test/ShareRatioSeedCriteriaTest.cc
  3872. * test/UTPexExtensionMessageTest.cc
  3873. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3874. Fixed compiler warning.
  3875. * test/UtilTest.cc
  3876. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3877. Treat Cookie object as session cookie if expiry = 0 is given.
  3878. With this change, you can specify session scoped cookies in an external
  3879. file setting expiry value to 0.
  3880. * src/Cookie.cc
  3881. * src/Cookie.h
  3882. * test/CookieParserTest.cc
  3883. * test/CookieStorageTest.cc
  3884. * test/CookieTest.cc
  3885. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3886. Changed signature of DHTMessageFactory::createResponseMessage().
  3887. Removed unused validateIDMatch.
  3888. * src/DHTMessageFactory.h
  3889. * src/DHTMessageFactoryImpl.cc
  3890. * src/DHTMessageFactoryImpl.h
  3891. * src/DHTMessageTracker.cc
  3892. * test/DHTMessageFactoryImplTest.cc
  3893. * test/MockDHTMessageFactory.h
  3894. Dropped DHT message coming from same ID of localhost.
  3895. * src/DHTMessageReceiver.cc
  3896. Rejected adding node whose ID is the same as localhost's.
  3897. * src/DHTRoutingTable.cc
  3898. * test/BtPortMessageTest.cc
  3899. * test/DHTRoutingTableTest.cc
  3900. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3901. Pool connection when redirection occurs with Content-Length = 0.
  3902. * src/HttpSkipResponseCommand.cc
  3903. * src/HttpSkipResponseCommand.h
  3904. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3905. Fixed the bug that causes time out when redirection occurs with
  3906. content-length 0.
  3907. * src/HttpResponseCommand.cc
  3908. * src/HttpSkipResponseCommand.cc
  3909. * src/HttpSkipResponseCommand.h
  3910. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3911. Now each status legends is shown only when it appears in Download
  3912. Result. If Download Result has no item, then status legend will not
  3913. be printed.
  3914. * src/RequestGroupMan.cc
  3915. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3916. Removed duplicate creation of OptionHandlers.
  3917. * src/option_processing.cc
  3918. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3919. Fixed the bug that causes segmentation fault when accessing files which
  3920. don't exist or are not included in --select-file option while
  3921. validating chunk checksum.
  3922. * src/MultiDiskAdaptor.cc
  3923. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3924. Fixed compiler warning.
  3925. * test/UtilTest.cc
  3926. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3927. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3928. * src/IteratableChecksumValidator.cc
  3929. * src/IteratableChunkChecksumValidator.cc
  3930. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3931. * Release 0.16.2
  3932. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Added Serbian translation. Updated Ukrainian translation.
  3934. Thanks to all translators.
  3935. * po/sr.po
  3936. * po/uk.po
  3937. * po/LINGUAS
  3938. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3939. Bump up version number to 0.16.2
  3940. * configure.ac
  3941. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3942. Added length equality test to operator== to drop a piece message
  3943. whose length does not match to the requested one.
  3944. * src/RequestSlot.cc
  3945. * test/DefaultBtMessageDispatcherTest.cc
  3946. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3947. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3948. recieved.
  3949. In this fix, if a request larger than 16KiB length is received, aria2
  3950. disconnects the peer.
  3951. * src/BtConstants.h
  3952. * src/PeerMessageUtil.cc
  3953. * src/PeerMessageUtil.h
  3954. * test/BtRequestMessageTest.cc
  3955. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3956. * Release 0.16.1
  3957. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3958. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3959. * doc/aria2c.1.txt
  3960. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3962. Updated French, Simplified Chinese and Japanese translations.
  3963. Thanks to all translators.
  3964. en@quot and en@boldquot are also added.
  3965. * po/LINGUAS
  3966. * po/fr.po
  3967. * po/ja.po
  3968. * po/uk.po
  3969. * po/vi.po
  3970. * po/zh_CN.po
  3971. * po/zh_TW.po
  3972. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3973. Bump up version number to 0.16.1.
  3974. * configure.ac
  3975. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3976. Updated README.
  3977. * README
  3978. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3980. not to replace '--' with em dash character.
  3981. * doc/aria2c.1.txt
  3982. * doc/makeman
  3983. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3985. every SEC seconds.
  3986. * src/DownloadEngineFactory.cc
  3987. * src/OptionHandlerFactory.cc
  3988. * src/option_processing.cc
  3989. * src/usage_text.h
  3990. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Fixed compile warning on linux-amd64
  3992. * src/FtpConnection.cc
  3993. * src/IteratableChunkChecksumValidator.cc
  3994. * src/MultiDiskAdaptor.cc
  3995. Fixed the bug that unit test fails on linux-amd64
  3996. * test/UtilTest.cc
  3997. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3998. Added --dht-file-path option to change the path to dht.dat, which is a
  3999. serialized DHT routing table.
  4000. * src/OptionHandlerFactory.cc
  4001. * src/option_processing.cc
  4002. * src/usage_text.h
  4003. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Fixed possible underflow.
  4005. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  4006. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4007. Fixed the bug that last character in URI is not encoded.
  4008. * src/Request.cc
  4009. * test/RequestTest.cc
  4010. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4011. Fixed the bug that referer header field contains fragment.
  4012. Now Request class removes fragment part of URI and encodes it
  4013. in Request::setUri() and setReferer().
  4014. * src/Request.h
  4015. * src/Request.cc
  4016. * test/RequestTest.cc
  4017. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Added missing m4 macros.
  4019. * m4/cppunit.m4
  4020. * m4/libgcrypt.m4
  4021. * m4/libgnutls-extra.m4
  4022. * m4/libgnutls.m4
  4023. * m4/libxml2.m4
  4024. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4025. Fixed compile error with gcc-4.4(snapshot)
  4026. * src/File.cc
  4027. * src/FtpConnection.cc
  4028. * src/OptionHandlerImpl.h
  4029. * src/Util.cc
  4030. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4031. Removed assert()
  4032. * src/SocketBuffer.cc (SocketBuffer::send)
  4033. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4034. Changed the type of _numNewConnection to unsigned int.
  4035. * src/ActivePeerConnectionCommand.cc
  4036. * src/ActivePeerConnectionCommand.h
  4037. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. * Release 0.16.0
  4039. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4040. Updated doc
  4041. * README
  4042. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4043. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  4044. translations. Thanks to all translators.
  4045. * po/bg.po
  4046. * po/de.po
  4047. * po/fr.po
  4048. * po/ja.po
  4049. * po/zh_CN.po
  4050. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4051. Bump up version number to 0.16.0.
  4052. * configure.ac
  4053. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4054. Casted entry->maxConnections to int32_t for std::min<T> with T =
  4055. int32_t.
  4056. Changed the type of count to int32_t.
  4057. * src/Metalink2RequestGroup.cc
  4058. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4059. Added test for Time::elapsed(time_t).
  4060. * test/TimeTest.cc
  4061. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  4063. Util::difftv() should be used instead.
  4064. * src/TimeA2.cc
  4065. * src/TimeA2.h
  4066. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4067. Made socket for dht connections non-blocking
  4068. * src/DHTAbstractMessage.cc
  4069. * src/DHTAbstractMessage.h
  4070. * src/DHTConnection.h
  4071. * src/DHTConnectionImpl.cc
  4072. * src/DHTConnectionImpl.h
  4073. * src/DHTMessage.h
  4074. * src/DHTMessageDispatcherImpl.cc
  4075. * src/DHTMessageDispatcherImpl.h
  4076. * src/DHTUnknownMessage.cc
  4077. * src/DHTUnknownMessage.h
  4078. * src/SocketCore.cc
  4079. * src/SocketCore.h
  4080. * test/MockDHTMessage.h
  4081. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4082. Changed the type of offset to int.
  4083. * src/ParameterizedStringParser.cc
  4084. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4085. Made getAsInt() return int32_t
  4086. * src/Option.h
  4087. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4088. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  4089. build.
  4090. * configure.ac
  4091. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4092. Use sqlite3_open if sqlite3_open_v2 is not available.
  4093. * src/Sqlite3MozCookieParser.cc
  4094. * src/Sqlite3MozCookieParser.h
  4095. * m4/sqlite3.m4
  4096. * test/Sqlite3MozCookieParserTest.cc
  4097. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4098. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  4099. * src/BtPieceMessage.cc
  4100. * src/DHTPeerAnnounceStorage.cc
  4101. * src/DefaultPieceStorage.cc
  4102. * src/DownloadCommand.cc
  4103. * src/DownloadEngine.cc
  4104. * src/FtpConnection.cc
  4105. * src/PeerConnection.cc
  4106. * src/PeerMessageUtil.cc
  4107. * src/RequestGroup.cc
  4108. * src/RequestGroupMan.cc
  4109. * src/SimpleBtMessage.cc
  4110. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4111. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  4112. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  4113. * src/AbstractDiskWriter.cc
  4114. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4115. Don't set Request::supportsPersistentConnection() in HttpConnection
  4116. since this code is also used in AbstractProxyResponseCommand.
  4117. Moved those code to HttpResponse.
  4118. * src/HttpResponse.cc
  4119. * src/HttpResponse.h
  4120. * src/HttpConnection.cc
  4121. * src/HttpConnection.h
  4122. * src/HttpResponseCommand.cc
  4123. * test/HttpResponseTest.cc
  4124. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4125. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  4126. The configuration is minimum: no torrent, no metalink, so there may be
  4127. other compile error on their code.
  4128. * src/a2netcompat.h
  4129. * src/File.cc
  4130. * src/File.h
  4131. * src/SocketCore.cc
  4132. * src/SocketCore.h
  4133. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4134. Made a socket of incoming peer non-blocking.
  4135. * src/PeerListenCommand.cc
  4136. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4137. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  4138. whole message data is not sent in one send() call.
  4139. * src/BtPieceMessage.cc
  4140. * src/BtPieceMessage.h
  4141. * src/PeerConnection.cc
  4142. * src/PeerConnection.h
  4143. * src/SimpleBtMessage.cc
  4144. * src/SimpleBtMessage.h
  4145. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4146. Fixed the bug that aria2 downloads faster than max-download-limit when
  4147. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  4148. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  4149. , instead of sum of them.
  4150. * src/ActivePeerConnectionCommand.cc
  4151. * src/DefaultBtInteractive.cc
  4152. * src/DownloadCommand.cc
  4153. * src/PeerInteractionCommand.cc
  4154. * src/PeerReceiveHandshakeCommand.cc
  4155. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4156. Fixed the bug that HTTPS download fails.
  4157. * src/AbstractCommand.cc
  4158. * src/AbstractCommand.h
  4159. * src/DownloadCommand.cc
  4160. * src/FtpConnection.cc
  4161. * src/HttpConnection.cc
  4162. * src/HttpRequestCommand.cc
  4163. * src/HttpResponseCommand.cc
  4164. * src/HttpSkipResponseCommand.cc
  4165. * src/MSEHandshake.cc
  4166. * src/PeerConnection.cc
  4167. * src/SocketCore.cc
  4168. * src/SocketCore.h
  4169. Fixed the bug that aria2 doesn't download whole content body and cannot
  4170. reuse connection if chunked transfer encoding and gzip content encoding
  4171. are set.
  4172. * src/DownloadCommand.cc
  4173. * src/HttpSkipResponseCommand.cc
  4174. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4175. Updated man page.
  4176. * doc/aria2c.1.txt
  4177. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4178. When error occurred while aria2 was parsing an .aria2.conf file, print
  4179. the usage of the option that caused error.
  4180. * src/option_processing.cc
  4181. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Fixed compile error on OptionHandlerException
  4183. * src/Makefile.am
  4184. * src/OptionHandlerException.cc
  4185. * src/OptionHandlerException.h
  4186. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4187. Moved message of the error to OptionHandlerException.h
  4188. * src/NameMatchOptionHandler.h
  4189. * src/OptionHandlerException.h
  4190. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4191. When error occurs while aria2 is parsing an command-line option, print
  4192. the usage of the option.
  4193. * src/Makefile.am
  4194. * src/NameMatchOptionHandler.h
  4195. * src/OptionHandlerException.h
  4196. * src/option_processing.cc
  4197. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Reverted previous change.
  4199. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  4200. username is not in URI.
  4201. * src/HttpRequest.cc
  4202. * src/Request.cc
  4203. * test/HttpRequestTest.cc
  4204. * test/RequestTest.cc
  4205. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4206. Now colon is required for username and password in FTP URL, like:
  4207. ftp://username:password@host.
  4208. If colon is not there, aria2 don't parse it as a username. For example,
  4209. aria2 don't retrieve username from ftp://username@host.
  4210. This fix was made in order to login FTP server via non-transparent ftp
  4211. proxy.
  4212. * src/Request.cc
  4213. * test/RequestTest.cc
  4214. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Use netrc for HTTP.
  4216. Now FTP user/password is sent in Authorization header when
  4217. --ftp-via-http-proxy=get is given.
  4218. * src/AuthConfigFactory.cc
  4219. * src/HttpRequest.cc
  4220. * src/HttpRequest.h
  4221. * src/NetrcAuthResolver.cc
  4222. * src/NetrcAuthResolver.h
  4223. * src/OptionHandlerFactory.cc
  4224. * src/option_processing.cc
  4225. * src/prefs.cc
  4226. * src/prefs.h
  4227. * test/AuthConfigFactoryTest.cc
  4228. * test/HttpRequestTest.cc
  4229. * test/NetrcAuthResolverTest.cc
  4230. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4231. Issue PWD command first and get working directory and use it as a prefix
  4232. for CWD command.
  4233. * src/DownloadEngine.cc
  4234. * src/DownloadEngine.h
  4235. * src/FtpConnection.cc
  4236. * src/FtpConnection.h
  4237. * src/FtpFinishDownloadCommand.cc
  4238. * src/FtpInitiateConnectionCommand.cc
  4239. * src/FtpNegotiationCommand.cc
  4240. * src/FtpNegotiationCommand.h
  4241. * test/FtpConnectionTest.cc
  4242. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4243. Removed default user/pass for FTP user/pass, since it should not have
  4244. precedence over netrc configuration by default.
  4245. * src/OptionHandlerFactory.cc
  4246. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4247. Added debug log for socket event.
  4248. * src/AbstractCommand.cc
  4249. * src/PeerAbstractCommand.cc
  4250. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4251. Log microseconds.
  4252. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4253. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4254. Replaced HelpItem.cc with OptionHandler.cc.
  4255. * po/POTFILES.in
  4256. Updated po files with 'make update-po'
  4257. * po/aria2c.pot
  4258. * po/*.po
  4259. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4260. Removed possible values from the text.
  4261. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  4262. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Removed unused preferences:
  4264. PREF_NO_PREALLOCATION
  4265. PREF_STDOUT_LOG
  4266. PREF_TRACKER_MAX_TRIES
  4267. PREF_DIRECT_DOWNLOAD_TIMEOUT
  4268. PREF_MIN_SEGMENT_SIZE
  4269. * src/option_processing.cc
  4270. * src/prefs.cc
  4271. * src/prefs.h
  4272. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4273. Integrated HelpItem into OptionParser to ease the workload for adding
  4274. new options. Removed default value from usage text.
  4275. * src/HelpItem.cc: Removed.
  4276. * src/HelpItem.h: Removed.
  4277. * src/HelpItemFactory.cc: Removed.
  4278. * src/HelpItemFactory.h: Removed.
  4279. * src/Makefile.am
  4280. * src/Makefile.in
  4281. * src/NameMatchOptionHandler.h
  4282. * src/OptionHandler.cc
  4283. * src/OptionHandler.h
  4284. * src/OptionHandlerFactory.cc
  4285. * src/OptionHandlerImpl.h
  4286. * src/OptionParser.cc
  4287. * src/OptionParser.h
  4288. * src/TagContainer.cc: Removed.
  4289. * src/TagContainer.h: Removed.
  4290. * src/TaggedItem.cc: Removed.
  4291. * src/TaggedItem.h: Removed.
  4292. * src/main.cc
  4293. * src/option_processing.cc
  4294. * src/usage_text.h
  4295. * src/version_usage.cc
  4296. * test/HelpItemTest.cc: Removed.
  4297. * test/Makefile.am
  4298. * test/Makefile.in
  4299. * test/OptionHandlerTest.cc
  4300. * test/OptionParserTest.cc
  4301. * test/TagContainerTest.cc: Removed.
  4302. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. Moved `TransferStat stat = ...' to inside the `if' clause.
  4304. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  4305. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4306. Fixed the bug that a block in a piece is requested when same block is
  4307. already requested to the same peer in end game mode.
  4308. * src/BtRequestFactory.h
  4309. * src/DefaultBtInteractive.cc
  4310. * src/DefaultBtRequestFactory.cc
  4311. * src/DefaultBtRequestFactory.h
  4312. * src/DefaultPieceStorage.cc
  4313. * src/DefaultPieceStorage.h
  4314. * src/PieceStorage.h
  4315. * src/UnknownLengthPieceStorage.cc
  4316. * src/UnknownLengthPieceStorage.h
  4317. * test/DefaultBtRequestFactoryTest.cc
  4318. * test/DefaultPieceStorageTest.cc
  4319. * test/MockBtRequestFactory.h
  4320. * test/MockPieceStorage.h
  4321. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. Removed _uploadLength and _downloadLength from PeerSessionResource
  4323. and use PeerStat::_sessionUploadLength and
  4324. PeerStat::_sessionDownloadLength.
  4325. * src/PeerSessionResource.cc
  4326. * src/PeerSessionResource.h
  4327. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4328. Fixed the bug that prefixLength of split bucket which doesn't include
  4329. local node ID is incremented.
  4330. * src/DHTBucket.cc
  4331. * src/DHTBucket.h
  4332. * test/DHTBucketTest.cc
  4333. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4334. Added cookies.sqlite to EXTRA_DIST
  4335. * test/Makefile.am
  4336. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4337. Added Turkish translation. Updated French, German, Russian and
  4338. Simplified Chinese translations. Thanks to all translators.
  4339. * po/LINGUAS
  4340. * po/de.po
  4341. * po/fr.po
  4342. * po/ru.po
  4343. * po/tr.po
  4344. * po/zh_CN.po
  4345. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4346. Added deliminating text to the beginning of the log so that one can find
  4347. where the log starts easily.
  4348. * src/main.cc
  4349. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  4351. to fix compile error when async DNS is not enabled by configuration.
  4352. * src/AbstractCommand.cc
  4353. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4354. If establishing conneciton to a server is failed, then mark error on
  4355. its ServerStat.
  4356. Added the cause of error to log when error event occurred.
  4357. Moved message string to message.h for translation.
  4358. * src/AbstractCommand.cc
  4359. * src/AbstractCommand.h
  4360. * src/FtpNegotiationCommand.cc
  4361. * src/HttpRequestCommand.cc
  4362. * src/PeerAbstractCommand.cc
  4363. * src/message.h
  4364. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4365. Added the function to get error message from socket.
  4366. * src/SocketCore.cc
  4367. * src/SocketCore.h
  4368. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4369. Added convenient method RequestGroupMan::getOrCreateServerStat()
  4370. * src/RequestGroupMan.cc
  4371. * src/RequestGroupMan.h
  4372. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4373. If error event is received in epoll, then abort download immediately.
  4374. * src/AbstractCommand.cc
  4375. * src/Command.cc
  4376. * src/Command.h
  4377. * src/DownloadEngine.cc
  4378. * src/PeerAbstractCommand.cc
  4379. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4380. Added usage message for --uri-selector, --server-stat-of,
  4381. --server-stat-in, --server-stat-timeout options.
  4382. * src/HelpItemFactory.cc
  4383. * src/usage_text.h
  4384. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4385. Added upper limit of FTP response buffer. The current implementation
  4386. uses 4096bytes as a limit.
  4387. * src/FtpConnection.cc
  4388. * src/FtpConnection.h
  4389. * test/FtpConnectionTest.cc
  4390. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4391. Use non-blocking socket for TCP communication to avoid possible
  4392. blocking due to buffer full.
  4393. * src/AbstractProxyRequestCommand.cc
  4394. * src/FtpConnection.cc
  4395. * src/FtpConnection.h
  4396. * src/FtpNegotiationCommand.cc
  4397. * src/FtpNegotiationCommand.h
  4398. * src/HttpConnection.cc
  4399. * src/HttpConnection.h
  4400. * src/HttpRequestCommand.cc
  4401. * src/InitiatorMSEHandshakeCommand.cc
  4402. * src/InitiatorMSEHandshakeCommand.h
  4403. * src/MSEHandshake.cc
  4404. * src/MSEHandshake.h
  4405. * src/Makefile.am
  4406. * src/PeerConnection.cc
  4407. * src/PeerConnection.h
  4408. * src/PeerInteractionCommand.cc
  4409. * src/PeerListenCommand.cc
  4410. * src/ReceiverMSEHandshakeCommand.cc
  4411. * src/ReceiverMSEHandshakeCommand.h
  4412. * src/SocketBuffer.cc
  4413. * src/SocketBuffer.h
  4414. * src/SocketCore.cc
  4415. * src/SocketCore.h
  4416. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4417. Call setStatusRealtime() in constructor.
  4418. * src/RealtimeCommand.cc
  4419. * src/RealtimeCommand.h
  4420. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4421. Call Download::setNoWait(true) to execute newly created command without
  4422. a pause.
  4423. * src/AbstractCommand.cc
  4424. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4425. Added --max-file-not-found=NUM option. If aria2 receives `file not
  4426. found' error from HTTP/FTP server NUM times without getting single
  4427. bytes of data, then force the download to fail.
  4428. Basically aria2 tris all URIs available. So if long list of URIs are
  4429. specified in Metalink, then aria2 will take a long time to fail
  4430. eventually if all URIs are outdated. This option eases this situation
  4431. to limit the number of servers to try.
  4432. * src/FtpNegotiationCommand.cc
  4433. * src/HelpItemFactory.cc
  4434. * src/HttpResponseCommand.cc
  4435. * src/OptionHandlerFactory.cc
  4436. * src/PeerStat.h
  4437. * src/RequestGroup.cc
  4438. * src/RequestGroup.h
  4439. * src/SegmentMan.cc
  4440. * src/SegmentMan.h
  4441. * src/option_processing.cc
  4442. * src/prefs.cc
  4443. * src/prefs.h
  4444. * src/usage_text.h
  4445. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Fixed the bug that bulkReceiveResponse() reads all received data as a
  4447. response even if more than one response is in it.
  4448. * src/FtpConnection.cc
  4449. * src/FtpConnection.h
  4450. * test/FtpConnectionTest.cc
  4451. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4452. Merged from stable-0.15
  4453. * m4/libcares.m4
  4454. Use pkg-config
  4455. * m4/sqlite3.m4
  4456. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Removed unnecessary if statement.
  4458. * src/DefaultPieceStorage.cc (initPieceStorage)
  4459. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4460. Added --connect-timeout option to specify connect timeout in seconds.
  4461. This option is in effect for HTTP/FTP/proxy server. The timeout for
  4462. connecting to BitTorrent peer is not controlled by this option.
  4463. * src/AbstractProxyRequestCommand.cc
  4464. * src/FtpNegotiationCommand.cc
  4465. * src/HelpItemFactory.cc
  4466. * src/HttpRequestCommand.cc
  4467. * src/OptionHandlerFactory.cc
  4468. * src/option_processing.cc
  4469. * src/prefs.cc
  4470. * src/prefs.h
  4471. * src/usage_text.h
  4472. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4473. Added help message for -R option.
  4474. * src/HelpItemFactory.cc
  4475. * src/usage_text.h
  4476. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4477. Added the message that the time is in local time zone.
  4478. * src/RequestGroup.cc
  4479. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Implemented the ability to get timestamp from remote FTP server using
  4481. MDTM command described in RFC3659.
  4482. * src/FtpConnection.cc
  4483. * src/FtpConnection.h
  4484. * src/FtpNegotiationCommand.cc
  4485. * src/FtpNegotiationCommand.h
  4486. * test/FtpConnectionTest.cc
  4487. * test/Makefile.am
  4488. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Implemented the ability to get timestamp from remote HTTP server and
  4490. apply it to local file. To enable this feature, --remote-time option
  4491. is added. No usage text has been written yet.
  4492. If several servers returns difference timestamp, then aria2 uses latest
  4493. one.
  4494. * src/CopyDiskAdaptor.cc
  4495. * src/CopyDiskAdaptor.h
  4496. * src/DirectDiskAdaptor.cc
  4497. * src/DirectDiskAdaptor.h
  4498. * src/DiskAdaptor.h
  4499. * src/File.cc
  4500. * src/File.h
  4501. * src/HttpHeader.cc
  4502. * src/HttpHeader.h
  4503. * src/HttpResponse.cc
  4504. * src/HttpResponse.h
  4505. * src/HttpResponseCommand.cc
  4506. * src/HttpResponseCommand.h
  4507. * src/MultiDiskAdaptor.cc
  4508. * src/MultiDiskAdaptor.h
  4509. * src/OptionHandlerFactory.cc
  4510. * src/RequestGroup.cc
  4511. * src/RequestGroup.h
  4512. * src/RequestGroupMan.cc
  4513. * src/option_processing.cc
  4514. * src/prefs.cc
  4515. * src/prefs.h
  4516. * test/CopyDiskAdaptorTest.cc
  4517. * test/FileTest.cc
  4518. * test/Makefile.am
  4519. * test/Makefile.in
  4520. * test/MultiDiskAdaptorTest.cc
  4521. * test/TestUtil.cc
  4522. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4523. Fixed the bug that DiskWriterEntry is not created when its
  4524. FileEntry.isRequested() is false and it doesn't share a piece with
  4525. other FileEntries that are requested. This bug causes segmentation fault
  4526. in the end.
  4527. * src/MultiDiskAdaptor.cc
  4528. * src/MultiDiskAdaptor.h
  4529. * src/MultiFileAllocationIterator.cc
  4530. * test/MultiDiskAdaptorTest.cc
  4531. * test/MultiFileAllocationIteratorTest.cc
  4532. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4533. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  4534. called if the number of file entries are greater than max open files.
  4535. * src/AbstractSingleDiskAdaptor.cc
  4536. * src/AbstractSingleDiskAdaptor.h
  4537. * src/DiskAdaptor.h
  4538. * src/MultiDiskAdaptor.cc
  4539. * src/MultiDiskAdaptor.h
  4540. * test/MultiDiskAdaptorTest.cc
  4541. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4542. Added a constuctor that receives struct timeval.
  4543. Added operator<.
  4544. * src/TimeA2.cc
  4545. * src/TimeA2.h
  4546. * test/TimeTest.cc
  4547. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4548. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  4549. * src/CookieParser.cc
  4550. * test/CookieParserTest.cc
  4551. * test/HttpResponseTest.cc
  4552. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4553. Implmented the functions to parse date.
  4554. * src/TimeA2.cc
  4555. * src/TimeA2.h
  4556. * test/TimeTest.cc
  4557. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4558. Added "Firefox3 Cookie" feature to FeatureConfig
  4559. * src/FeatureConfig.cc
  4560. * src/FeatureConfig.h
  4561. * test/FeatureConfigTest.cc
  4562. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4563. Bump up version number to 0.16.0b
  4564. * configure.ac
  4565. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4566. Use pkg-config if is is available.
  4567. * m4/openssl.m4
  4568. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4569. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  4570. * src/BtAnnounce.h
  4571. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4572. If an error occurred with a URI, remove identical URI from remaining
  4573. URI list because it is likely that same error occurred in the end and it
  4574. is waste of time.
  4575. * src/AbstractCommand.cc
  4576. * src/RequestGroup.cc
  4577. * src/RequestGroup.h
  4578. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4579. Removed wrong comment.
  4580. * src/DefaultPeerStorage.cc
  4581. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4582. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  4583. Added return value of getpid() to argument of srand() to achieve more
  4584. randomized value.
  4585. * src/SimpleRandomizer.cc
  4586. * src/SimpleRandomizer.h
  4587. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4588. Contact tracker frequently when the number of connections are 0 and
  4589. download is not finished yet.
  4590. * src/ActivePeerConnectionCommand.cc
  4591. * src/BtAnnounce.h
  4592. * src/DefaultBtAnnounce.cc
  4593. * src/DefaultBtAnnounce.h
  4594. * test/MockBtAnnounce.h
  4595. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Moved threshold values to UTPexExtensionMessage.
  4597. * src/DefaultBtInteractive.cc
  4598. * src/Peer.cc
  4599. * src/Peer.h
  4600. * src/UTPexExtensionMessage.cc
  4601. * src/UTPexExtensionMessage.h
  4602. * test/UTPexExtensionMessageTest.cc
  4603. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4604. Added _incoming member to Peer class and made it true if the peer
  4605. initiated connection. Don't add those peer to UTPex message.
  4606. If extended handshake is received, assign _incoming to false.
  4607. * src/DefaultBtInteractive.cc
  4608. * src/HandshakeExtensionMessage.cc
  4609. * src/Peer.cc
  4610. * src/Peer.h
  4611. * src/PeerListenCommand.cc
  4612. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4613. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  4614. Encoding Decoder. Removed size threshold for turning off on the fly
  4615. inflation because resulting file may or may not be inflated depending
  4616. on the file size and I think it is not expected by users.
  4617. This change fixes segmentation fault when Metalink file contains gzipped
  4618. file and its filesize is provided.
  4619. * src/HttpResponseCommand.cc
  4620. * src/HttpResponseCommand.h
  4621. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Made Cookie immutable.
  4623. * src/Cookie.cc
  4624. * src/Cookie.h
  4625. * src/CookieParser.cc
  4626. * src/CookieParser.h
  4627. * src/CookieStorage.cc
  4628. * test/CookieParserTest.cc
  4629. * test/CookieStorageTest.cc
  4630. * test/NsCookieParserTest.cc
  4631. * test/Sqlite3MozCookieParserTest.cc
  4632. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4633. Removed CookieBox, CookieBoxFactory.
  4634. * src/CookieBox.cc
  4635. * src/CookieBox.h
  4636. * src/CookieBoxFactory.cc
  4637. * src/CookieBoxFactory.h
  4638. * src/Makefile.am
  4639. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4640. Use CookieStorage class instead of CookieBox class.
  4641. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  4642. * src/AbstractProxyRequestCommand.cc
  4643. * src/CookieStorage.cc
  4644. * src/DownloadEngine.cc
  4645. * src/DownloadEngine.h
  4646. * src/HttpConnection.cc
  4647. * src/HttpConnection.h
  4648. * src/HttpRequest.cc
  4649. * src/HttpRequest.h
  4650. * src/HttpRequestCommand.cc
  4651. * src/HttpResponse.cc
  4652. * src/HttpResponseCommand.cc
  4653. * src/HttpSkipResponseCommand.cc
  4654. * src/Makefile.am
  4655. * src/MultiUrlRequestInfo.cc
  4656. * src/Request.cc
  4657. * src/Request.h
  4658. * src/main.cc
  4659. * test/AllTest.cc
  4660. * test/CookieStorageTest.cc
  4661. * test/CookieTest.cc
  4662. * test/HttpRequestTest.cc
  4663. * test/HttpResponseTest.cc
  4664. * test/Makefile.am
  4665. * test/NsCookieParserTest.cc
  4666. * test/Sqlite3MozCookieParserTest.cc
  4667. * test/nscookietest.txt
  4668. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4669. Updated
  4670. * test/Cookies.sqlite
  4671. * test/nscookietest.txt
  4672. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4673. Added tests for CookieStorage::load()
  4674. * test/CookieStorageTest.cc
  4675. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4676. Added CookieStorage class which is based on RFC2109 and manages cookies
  4677. more strictly than CookieBox and CookieBoxFactory class.
  4678. * src/CookieStorage.cc
  4679. * src/CookieStorage.h
  4680. * src/Cookie.cc
  4681. * src/Cookie.h
  4682. * test/CookieStorageTest.cc
  4683. * test/CookieTest.cc
  4684. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4685. Fixed the bug that commands are created more than the number of pieces.
  4686. * src/RequestGroup.cc
  4687. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4688. Fixed infinite loop bug in FTP when SIZE command failed.
  4689. * src/FtpNegotiationCommand.cc
  4690. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4691. Removed DirectDiskAdaptorTest.h
  4692. * test/Makefile.am
  4693. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4694. Fixed chunk checksum validation cannot detect trailing garbage data.
  4695. BUG#2074141
  4696. * src/AbstractSingleDiskAdaptor.cc
  4697. * src/AbstractSingleDiskAdaptor.h
  4698. * src/CheckIntegrityEntry.cc
  4699. * src/CheckIntegrityEntry.h
  4700. * src/DiskAdaptor.h
  4701. * src/MultiDiskAdaptor.cc
  4702. * src/MultiDiskAdaptor.h
  4703. * src/RequestGroup.cc
  4704. * test/DirectDiskAdaptorTest.cc
  4705. * test/MultiDiskAdaptorTest.cc
  4706. * test/TestUtil.cc
  4707. * test/TestUtil.h
  4708. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Bump up version number of dht.dat file to 3. In version 3 format, time
  4710. is stored in 64bit, network byte order.
  4711. New build can load old format(version 2) but it saves the file in new
  4712. format. It means once you used new build, your dht.dat becomes
  4713. incompatible with older build.
  4714. * src/DHTRoutingTableDeserializer.cc
  4715. * src/DHTRoutingTableSerializer.cc
  4716. * test/DHTRoutingTableSerializerTest.cc
  4717. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  4719. * test/Makefile.am
  4720. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4721. Bump up version number of .aria2 control file to 0001.
  4722. New aria2 can still load version 0000 file but it saves the file in
  4723. version 0001 format. It means that new aria2 can resume download
  4724. started by old aria2 but the opposite is not true.
  4725. * src/DefaultBtProgressInfoFile.cc
  4726. * src/DefaultBtProgressInfoFile.h
  4727. * test/DefaultBtProgressInfoFileTest.cc
  4728. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4729. Added ntoh64 and hton64 as inline functions.
  4730. * src/Util.cc
  4731. * test/UtilTest.cc
  4732. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4733. Added sqlite3 depenency and Firefox3 cookie support.
  4734. * README
  4735. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4736. State that firefox3 cookie is supported explicitly in the usage.
  4737. * src/usage_text.h
  4738. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Externalized message.
  4740. * src/RequestGroupMan.cc
  4741. * src/message.h
  4742. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Save temporary file first and rename to the destination on success.
  4744. Added test cases.
  4745. * src/RequestGroupMan.cc
  4746. * test/RequestGroupManTest.cc
  4747. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4748. Fixed the bug that the number of connected peer is exceeding the limit
  4749. (55 by default) in seeding mode.
  4750. Multiplied 0.8 to _maxUploadSpeedLimit.
  4751. * src/ActivePeerConnectionCommand.cc
  4752. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Clear table item.
  4754. * src/Dictionary.cc
  4755. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4756. Fixed error handling of lseek.
  4757. * src/AbstractDiskWriter.cc
  4758. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4759. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  4760. style cookie file.
  4761. * src/usage_text.h
  4762. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4763. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  4764. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  4765. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  4766. * src/Util.cc
  4767. * src/Util.h
  4768. * src/CookieParser.cc
  4769. * test/UtilTest.cc
  4770. * test/CookieParserTest.cc
  4771. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4772. Separate the implementation to load old mozilla format of cookie to
  4773. NsCookieParser class.
  4774. * src/CookieBoxFactory.cc
  4775. * src/CookieBoxFactory.h
  4776. * src/NsCookieParser.cc
  4777. * src/NsCookieParser.h
  4778. * test/NsCookieParserTest.cc
  4779. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4780. Made parse() const
  4781. * src/Sqlite3MozCookieParser.cc
  4782. * src/Sqlite3MozCookieParser.h
  4783. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Added firefox3 cookie support based on the patch submitted by
  4785. tizianomueller.
  4786. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  4787. this functionality.
  4788. * configure.ac
  4789. * m4/sqlite3.m4
  4790. * src/CookieBoxFactory.cc
  4791. * src/CookieBoxFactory.h
  4792. * src/Makefile.am
  4793. * src/Makefile.in
  4794. * src/Sqlite3MozCookieParser.cc
  4795. * src/Sqlite3MozCookieParser.h
  4796. * src/main.cc
  4797. * test/CookieBoxFactoryTest.cc
  4798. * test/Makefile.am
  4799. * test/Makefile.in
  4800. * test/Sqlite3MozCookieParserTest.cc
  4801. * test/badcookies.sqlite
  4802. * test/cookies.sqlite
  4803. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4804. Added Danish and Greek translations.
  4805. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  4806. Great thanks to all translators.
  4807. * po/LINGUAS
  4808. * po/el.po
  4809. * po/da.po
  4810. * po/es.po
  4811. * po/ca.po
  4812. * po/nn.po
  4813. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Fixed man page: --follow-bittorrent should be --follow-torrent
  4815. * doc/aria2c.1.txt
  4816. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4817. Fixed: numCommand is less than the value specified in -C option.
  4818. * src/RequestGroup.cc
  4819. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4820. Fixed occasional assertion failure in PieceSegment.
  4821. Calling PieceStorage::getMissingPiece(size_t) was missing after
  4822. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4823. creation of duplicate segments and one of the segment was finished then
  4824. assertion failure was caused.
  4825. * src/SegmentMan.cc
  4826. * test/SegmentManTest.cc
  4827. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Added options to load/save the server's performance/status to a file
  4829. and the timeout to drop their data.
  4830. --server-stat-of=FILE specifies the file to which performance data
  4831. is saved.
  4832. --server-stat-if=FILE specifies the file to read previously saved
  4833. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4834. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4835. TIMEOUT is specified in seconds and the default value is 24hours.
  4836. * src/MultiUrlRequestInfo.cc
  4837. * src/OptionHandlerFactory.cc
  4838. * src/RequestGroupMan.cc
  4839. * src/RequestGroupMan.h
  4840. * src/ServerStatMan.cc
  4841. * src/ServerStatMan.h
  4842. * src/option_processing.cc
  4843. * src/prefs.cc
  4844. * src/prefs.h
  4845. * test/ServerStatManTest.cc
  4846. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4847. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4848. * src/ServerStatMan.cc
  4849. * src/ServerStatMan.h
  4850. * test/ServerStatManTest.cc
  4851. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4852. Implemented ServerStatMan::load(...) function and its test case.
  4853. * src/ServerStat.cc
  4854. * src/ServerStat.h
  4855. * src/ServerStatMan.cc
  4856. * test/ServerStatManTest.cc
  4857. * test/ServerStatTest.cc
  4858. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4859. Use time_t instead of int32_t. Use int64_t where milli second is
  4860. expected.
  4861. * src/TimeA2.cc
  4862. * src/TimeA2.h
  4863. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Implemented ServerStatMan::save(...) function and its test case.
  4865. * src/ServerStat.cc
  4866. * src/ServerStat.h
  4867. * src/ServerStatMan.cc
  4868. * src/ServerStatMan.h
  4869. * test/ServerStatManTest.cc
  4870. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4871. Now aria2 uses name attribute in Metalink as local filename in
  4872. BitTorrent downloads. BUG#2033999
  4873. * src/BtContext.h
  4874. * src/BtDependency.cc
  4875. * src/DefaultBtContext.cc
  4876. * src/DefaultBtContext.h
  4877. * src/SingleFileDownloadContext.cc
  4878. * src/SingleFileDownloadContext.h
  4879. * test/BtDependencyTest.cc
  4880. * test/DefaultBtContextTest.cc
  4881. * test/MockBtContext.h
  4882. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4883. Added AC_C_BIGENDIAN
  4884. * src/configure.ac
  4885. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4886. Limited numCommand less than or equal to the number of piece.
  4887. * src/RequestGroup.cc
  4888. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4889. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4890. directive.
  4891. * test/DefaultPieceStorageTest.cc
  4892. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4893. Fixed memory leak in test code
  4894. * test/AnnounceListTest.cc
  4895. * test/DefaultPeerListProcessorTest.cc
  4896. * test/DefaultPeerStorageTest.cc
  4897. * test/MetaFileUtilTest.cc
  4898. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4900. * src/DefaultPieceStorage.cc
  4901. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4902. Initialized _directIOAllowed
  4903. * src/MultiDiskAdaptor.cc
  4904. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4905. Fixed memory leak
  4906. * src/GZipDecoder.cc
  4907. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Fixed memory leak
  4909. * src/MetalinkParserStateMachine.cc
  4910. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4911. Fixed memory leak
  4912. * src/Dictionary.cc
  4913. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4914. Fixed memory leak
  4915. * src/IteratableChunkChecksumValidator.h
  4916. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4917. Fixed unmatched malloc/free.
  4918. * src/IteratableChunkChecksumValidator.cc
  4919. * src/IteratableChecksumValidator.cc
  4920. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4921. Removed max chunk size check. This change fixes BUG#2040169
  4922. * src/ChunkedDecoder.cc
  4923. * src/ChunkedDecoder.h
  4924. * test/ChunkedDecoderTest.cc
  4925. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Implemented download speed based URI selection algorithm.
  4927. Introduced new option --uri-selector.
  4928. If --uri-selector=feedback is given, aria2 uses download speed observed
  4929. in the previous downloads and chooses fastest server in the URI list.
  4930. Currently at most 10 URIs are considered to introduce randomeness for
  4931. finding better servers. The speed is average download speed in the
  4932. downloads.
  4933. On the other hand, if --uri-selector=inorder is given, which is default,
  4934. URI is tried in order in URI list.
  4935. The usage text for the new option has not been written yet.
  4936. * src/AbstractCommand.cc
  4937. * src/DownloadCommand.cc
  4938. * src/DownloadEngine.cc
  4939. * src/DownloadEngineFactory.cc
  4940. * src/InOrderURISelector.cc
  4941. * src/InOrderURISelector.h
  4942. * src/OptionHandlerFactory.cc
  4943. * src/PeerStat.h
  4944. * src/RequestGroup.cc
  4945. * src/RequestGroup.h
  4946. * src/RequestGroupMan.cc
  4947. * src/RequestGroupMan.h
  4948. * src/SegmentMan.cc
  4949. * src/SegmentMan.h
  4950. * src/ServerStat.cc
  4951. * src/ServerStat.h
  4952. * src/ServerStatMan.cc
  4953. * src/ServerStatMan.h
  4954. * src/ServerStatURISelector.cc
  4955. * src/ServerStatURISelector.h
  4956. * src/URISelector.h
  4957. * src/option_processing.cc
  4958. * src/prefs.cc
  4959. * src/prefs.h
  4960. * test/InOrderURISelectorTest.cc
  4961. * test/RequestGroupManTest.cc
  4962. * test/ServerStatManTest.cc
  4963. * test/ServerStatURISelectorTest.cc
  4964. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4965. * Release 0.15.1+2
  4966. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4967. Bump up version number to 0.15.1+2
  4968. * configure.ac
  4969. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4970. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4971. * m4/aria2_arg.m4
  4972. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4973. * Release 0.15.1+1
  4974. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4975. Bump up version number to 0.15.1+1
  4976. * configure.ac
  4977. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4978. Fixed the bug that causes segmentaion fault when resuming download
  4979. using metalink without size tag. Reproducible only using HTTP URI.
  4980. * src/HttpResponseCommand.cc
  4981. * src/FtpNegotiationCommand.cc
  4982. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4983. * Release 0.15.1
  4984. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Updated Bulgarian and French translations, thanks to all translators.
  4986. * po/bg.po
  4987. * po/fr.po
  4988. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4989. Bump up version number to 0.15.1
  4990. * configure.ac
  4991. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. Avoid repeated call of gettimeofday() when calculating speed.
  4993. * src/SpeedCalc.cc
  4994. * src/SpeedCalc.h
  4995. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Removed writable check when socket's send buffer is full in BitTorrent
  4997. downloads to lower CPU usage.
  4998. * src/PeerInteractionCommand.cc
  4999. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Fixed broken gzip inflation.
  5001. Turn off segmented downloading if gzip content is smaller than or equal
  5002. to 1MiB and inflate the data on the fly, because HTTP response header
  5003. doesn't contain the length of inflated file we can't determin where
  5004. the chunk of data should be written.
  5005. On the other hand, if gzip content is larger than 1MB, then turn off
  5006. on the fly inflation, because some servers returns "content-type: gzip"
  5007. for *.tgz, *.gz files.
  5008. * src/DownloadCommand.cc
  5009. * src/HttpResponseCommand.cc
  5010. * src/HttpResponseCommand.h
  5011. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5012. Applied tizianomueller's patch to fix compile error.
  5013. * test/BitfieldManTest.cc
  5014. * test/BtRequestMessageTest.cc
  5015. * test/DefaultBtContextTest.cc
  5016. * test/DefaultDiskWriterTest.cc
  5017. * test/DefaultPieceStorageTest.cc
  5018. * test/HttpHeaderProcessorTest.cc
  5019. * test/HttpResponseTest.cc
  5020. * test/Metalink2RequestGroupTest.cc
  5021. * test/MetalinkParserControllerTest.cc
  5022. * test/MetalinkProcessorTest.cc
  5023. * test/PeerSessionResourceTest.cc
  5024. * test/UtilTest.cc
  5025. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. * Release 0.15.0
  5027. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5028. Reordered src files in POTFILES.in so that usage text appears first.
  5029. * po/POTFILES.in
  5030. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5031. Bump up version number to 0.15.0
  5032. * configure.ac
  5033. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Added Bulgarian translation.
  5035. Updated Catalan, Spanish, French and Japanese translations.
  5036. Thanks to all translators.
  5037. * po/LINGUAS
  5038. * po/bg.po
  5039. * po/ca.po
  5040. * po/es.po
  5041. * po/fr.po
  5042. * po/ja.po
  5043. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5044. Updated feature list. Added libz for dependency section.
  5045. Added a description about unit testing using CppUnit.
  5046. * README
  5047. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5048. Added a test for libz. Quoted where it is necessary.
  5049. * build_test.sh
  5050. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5051. Added GZip to `Enabled Features' list.
  5052. * src/FeatureConfig.cc
  5053. * src/FeatureConfig.h
  5054. * test/FeatureConfigTest.cc
  5055. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5056. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  5057. the transfer has not yet started.
  5058. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  5059. * src/SegmentMan.cc
  5060. * src/SegmentMan.h
  5061. * test/SegmentManTest.cc
  5062. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5063. Cache last calculated average download/upload speed.
  5064. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  5065. cached value.
  5066. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  5067. * src/PeerStat.h
  5068. * src/SpeedCalc.cc
  5069. * src/SpeedCalc.h
  5070. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5071. Call parseUrl directly.
  5072. * src/Request.cc (resetUrl)
  5073. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5074. Supported absolute/relative path in Location header field.
  5075. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  5076. * src/HttpHeader.cc
  5077. * src/HttpHeader.h
  5078. * src/HttpResponse.cc
  5079. * src/HttpSkipResponseCommand.cc
  5080. * src/Request.cc
  5081. * test/HttpHeaderTest.cc
  5082. * test/HttpResponseTest.cc
  5083. * test/RequestTest.cc
  5084. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Changed help text for --load-cookie option.
  5086. * doc/aria2c.1.txt
  5087. * src/usage_text.h
  5088. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5089. Regenerated test/Makefile.in to remove stale ChangeLog.
  5090. * test/Makefile.in
  5091. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Updated po files.
  5093. * po/aria2c.pot
  5094. * po/*.po
  5095. * po/*.gmo
  5096. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Bump up version number to 0.15.0b
  5098. * configure.ac
  5099. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5100. Externalize messages.
  5101. * src/RequestGroupMan.cc
  5102. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  5103. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5104. Use File::exists() instead of File::isFile() to allow non-regular file
  5105. such as block special files.
  5106. * src/AbstractDiskWriter.cc
  5107. * src/MultiDiskWriter.cc
  5108. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5109. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  5110. * src/gai_strerror.h
  5111. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5112. Fixed compile error. Thanks gknauf for the patch.
  5113. * src/asctime_r.c
  5114. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5115. Included asctime_r.h from a2time.h.
  5116. * src/a2time.h
  5117. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. Added a message "aria2 doesn't verify signature" to log message when
  5119. signature file is saved.
  5120. * src/RequestGroupMan.cc
  5121. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5122. Added the ability to save signature when download is completed if
  5123. signature is available. The filename of signature file is the path to
  5124. download file followed by ".sig". If it already exists, then signature
  5125. will not be saved.
  5126. * src/RequestGroupMan.cc
  5127. * src/Signature.cc
  5128. * test/SignatureTest.cc
  5129. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5130. Updated the descriptions for --bt-seed-unverified.
  5131. * doc/aria2c.1
  5132. * doc/aria2c.1.html
  5133. * doc/aria2c.1.txt
  5134. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5135. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  5136. that this is not going to verify files using piece hashes.
  5137. * src/HelpItemFactory.cc
  5138. * src/OptionHandlerFactory.cc
  5139. * src/RequestGroup.cc
  5140. * src/option_processing.cc
  5141. * src/prefs.cc
  5142. * src/prefs.h
  5143. * src/usage_text.h
  5144. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5145. Added the ability to retrieve signature from Metalink file.
  5146. A retrieved signature is stored in Signature class and it is held by
  5147. DownloadContext class. Note that aria2 doesn't verify signature.
  5148. * src/DownloadContext.cc
  5149. * src/DownloadContext.h
  5150. * src/Makefile.am
  5151. * src/Makefile.in
  5152. * src/Metalink2RequestGroup.cc
  5153. * src/MetalinkEntry.cc
  5154. * src/MetalinkEntry.h
  5155. * src/MetalinkParserController.cc
  5156. * src/MetalinkParserController.h
  5157. * src/MetalinkParserStateMachine.cc
  5158. * src/MetalinkParserStateMachine.h
  5159. * src/Signature.cc
  5160. * src/Signature.h
  5161. * src/SignatureMetalinkParserState.cc
  5162. * src/SignatureMetalinkParserState.h
  5163. * src/VerificationMetalinkParserState.cc
  5164. * src/VerificationMetalinkParserState.h
  5165. * test/Metalink2RequestGroupTest.cc
  5166. * test/MetalinkParserControllerTest.cc
  5167. * test/MetalinkProcessorTest.cc
  5168. * test/test.xml
  5169. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5170. Close DiskAdaptor after renaming file.
  5171. * src/RequestGroup.cc
  5172. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5173. Corrected indentation
  5174. * src/DefaultBtProgressInfoFile.cc
  5175. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5176. Moved the calls of std::ios::exceptions() inside of try-catch block
  5177. because if an error occurred in constructor of std::fstream, then
  5178. exception is thrown immediately when std::ios::exceptions() is called
  5179. which results unhandled exception and aria2c aborts.
  5180. * src/DefaultBtProgressInfoFile.cc
  5181. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5182. Added the test for the previous change in DefaultBtContext.cc
  5183. * test/DefaultBtContextTest.cc
  5184. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5185. Fixed the bug that causes infinite loop when the number of pieces are
  5186. fewer than allowed fast set size which is 10 by default.
  5187. * src/DefaultBtContext.cc
  5188. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Updated the descriptions for -j, -s. Added --bt-seed.
  5190. * doc/aria2c.1
  5191. * doc/aria2c.1.html
  5192. * doc/aria2c.1.txt
  5193. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5194. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  5195. aria2 seeds previously downloaded files without validating piece hashs.
  5196. * src/HelpItemFactory.cc
  5197. * src/OptionHandlerFactory.cc
  5198. * src/RequestGroup.cc
  5199. * src/option_processing.cc
  5200. * src/prefs.cc
  5201. * src/prefs.h
  5202. * src/usage_text.h
  5203. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5204. Updated DESCRIPTION of man page.
  5205. * doc/aria2c.1
  5206. * doc/aria2c.1.html
  5207. * doc/aria2c.1.txt
  5208. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5209. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  5210. Don't define `struct addrinfo' when __sun is defined.
  5211. * src/getaddrinfo.h
  5212. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  5214. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  5215. second argument is of type `struct _stati64'. Otherwise it is defined as
  5216. `struct stat'.
  5217. * src/AbstractDiskWriter.cc
  5218. * src/File.cc
  5219. * src/File.h
  5220. * src/a2io.h
  5221. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Fixed the compile error in hurd-i386
  5223. See the original bug report:
  5224. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  5225. * src/a2io.h
  5226. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5227. Code cleanup.
  5228. * src/PeerAbstractCommand.cc
  5229. * src/PeerAbstractCommand.h
  5230. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5231. Removed TransferEncoding.
  5232. * src/DownloadCommand.cc
  5233. * src/DownloadCommand.h
  5234. * src/HttpResponseCommand.cc
  5235. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5236. Updated po files.
  5237. * po/aria2c.pot
  5238. * po/*.po
  5239. * po/*.gmo
  5240. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5241. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  5242. * src/A2STR.cc
  5243. * src/A2STR.h
  5244. * src/ChunkedDecoder.cc
  5245. * src/ChunkedDecoder.h
  5246. * src/ChunkedEncoding.cc: Removed
  5247. * src/ChunkedEncoding.h: Removed
  5248. * src/DownloadCommand.cc
  5249. * src/DownloadCommand.h
  5250. * src/HttpDownloadCommand.cc
  5251. * src/HttpResponse.cc
  5252. * src/HttpResponse.h
  5253. * src/HttpResponseCommand.cc
  5254. * src/HttpSkipResponseCommand.cc
  5255. * src/HttpSkipResponseCommand.h
  5256. * src/Makefile.am
  5257. * src/TransferEncoding.h: Removed
  5258. * test/ChunkedDecoderTest.cc
  5259. * test/ChunkedEncodingTest.cc: Removed
  5260. * test/HttpResponseTest.cc
  5261. * test/Makefile.am
  5262. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5263. Use append instead of insert.
  5264. * src/GZipDecoder.cc
  5265. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5266. Updated doc
  5267. * src/Decoder.h
  5268. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5269. Updated usage text for -s option.
  5270. * src/usage_text.h
  5271. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  5273. * src/Request.cc
  5274. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Cleaned up configure.ac.
  5276. * configure.ac
  5277. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  5279. AC_ARG_ENABLE.
  5280. * configure.ac
  5281. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5282. Added gzip, deflate decoding support in HTTP using libz. If compiled
  5283. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  5284. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  5285. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  5286. fly and writes decoded data to a local disk.
  5287. * README
  5288. * README.html
  5289. * configure.ac
  5290. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  5291. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  5292. * m4/libz.m4
  5293. * src/Decoder.h
  5294. * src/DownloadCommand.cc
  5295. * src/DownloadCommand.h
  5296. * src/Exception.h
  5297. * src/GZipDecoder.cc
  5298. * src/GZipDecoder.h
  5299. * src/HttpHeader.cc
  5300. * src/HttpHeader.h
  5301. * src/HttpRequest.cc
  5302. * src/HttpRequest.h
  5303. * src/HttpResponse.cc
  5304. * src/HttpResponse.h
  5305. * src/HttpResponseCommand.cc
  5306. * src/Makefile.am
  5307. * test/GZipDecoderTest.cc
  5308. * test/HttpRequestTest.cc
  5309. * test/HttpResponseTest.cc
  5310. * test/Makefile.am
  5311. * test/Makefile.in
  5312. * test/gzip_decode_test.gz
  5313. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5314. Clarified usage of -j option.
  5315. * src/usage_text.h
  5316. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5317. Disabled getting size from the response of RETR.
  5318. If SIZE command failed, then disable resuming and segmented downloading.
  5319. * src/FtpConnection.cc
  5320. * src/FtpConnection.h
  5321. * src/FtpNegotiationCommand.cc
  5322. * src/FtpNegotiationCommand.h
  5323. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. Use digits to find first byte of file size, which makes the intention
  5325. of the code clearer.
  5326. * src/FtpConnection.cc
  5327. Don't call validateTotalLength() when size is 0.
  5328. * src/FtpNegotiationCommand.cc
  5329. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Updated po files.
  5331. * po/aria2c.pot
  5332. * po/*.gmo
  5333. * po/*.po
  5334. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5335. Clarified usage text for --split option.
  5336. * src/usage_text.h
  5337. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5338. Bump up version number to 0.15.0dev. "dev" means "development"
  5339. version, which means I started the development of the next release!
  5340. * src/configure.ac
  5341. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5342. If FTP server returns negative response with REST raw command and
  5343. requested range is not 0, throw exception. If requested range is 0,
  5344. continue download a file from 0 byte.
  5345. * src/FtpNegotiationCommand.cc
  5346. * src/FtpNegotiationCommand.h
  5347. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5348. Supported FTP server which don't recognize SIZE raw command.
  5349. If SIZE raw command is failed, aria2 will try to get file size
  5350. from the response of RETR raw command. If both attempts are failed,
  5351. then resuming and segmented downloading are disabled.
  5352. * src/FtpConnection.cc
  5353. * src/FtpConnection.h
  5354. * src/FtpNegotiationCommand.cc
  5355. * src/FtpNegotiationCommand.h
  5356. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5357. * Release 0.14.0+1
  5358. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Bump up version number to 0.14.0+1
  5360. * src/configure.ac
  5361. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Fixed the code that refers static member variable from non-static
  5363. context.
  5364. * src/DefaultPeerStorage.cc
  5365. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5366. * Release 0.14.0
  5367. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5368. Added build test script
  5369. * build_test.sh
  5370. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5371. Updated ja.po
  5372. * src/ja.po
  5373. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5374. Bump up version number to 0.14.0
  5375. * src/configure.ac
  5376. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5377. Updated ja.po and fr.po. Great thanks for french translators and
  5378. Sebastien WILLEMIJNS.
  5379. * po/fr.po
  5380. * po/ja.po
  5381. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5382. Added configure option to enable/disable epoll support.
  5383. * configure.ac
  5384. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Updated man page.
  5386. * doc/aria2c.1.txt
  5387. * doc/aria2c.1
  5388. * doc/aria2c.1.html
  5389. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Added missing default value '5' to the usage of --split option.
  5391. * src/HelpItemFactory.cc
  5392. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5393. Filled up pieces based on the number of missing blocks, rather than
  5394. simplay the number of piece * block length.
  5395. * src/BtRequestFactory.h
  5396. * src/DefaultBtInteractive.cc
  5397. * src/DefaultBtInteractive.h
  5398. * src/DefaultBtRequestFactory.cc
  5399. * src/DefaultBtRequestFactory.h
  5400. * src/Piece.cc
  5401. * src/Piece.h
  5402. * test/BitfieldManTest.cc
  5403. * test/DefaultBtRequestFactoryTest.cc
  5404. * test/MockBtRequestFactory.h
  5405. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5406. Made _epEvents a member variable.
  5407. * src/DownloadEngine.cc
  5408. * src/DownloadEngine.h
  5409. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Cancel download if http redirect is bounded more than 20 times.
  5411. * src/AbstractCommand.cc
  5412. * src/HttpSkipResponseCommand.cc
  5413. * src/Request.cc
  5414. * src/Request.h
  5415. * test/RequestTest.cc
  5416. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Fixed unhandled exception(removed keyword `new').
  5418. * src/SocketCore.cc (initEPOLL)
  5419. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Removed visit(const MetaEntry*)
  5421. * src/MetaEntryVisitor.h:
  5422. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  5423. and made them virtual.
  5424. * src/BencodeVisitor.h
  5425. * src/BencodeVisitor.cc
  5426. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Updated po files.
  5428. * po/aria2c.pot
  5429. * po/*.po
  5430. * po/*.gmo
  5431. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Moved the call setWriteCheckSocket inside the previous clause to reduce
  5433. the number of socket to watch out.
  5434. * src/PeerInteractionCommand.cc
  5435. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5436. When there is not enough space in disk when writing a chunk of data,
  5437. aria2 now prints the message to the console to warn user and aborts
  5438. its download. Not all downloads are canceled because some downloads
  5439. may use another disk or partition. BUG#1640332
  5440. * src/AbstractDiskWriter.cc
  5441. * src/PeerAbstractCommand.cc
  5442. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  5443. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  5444. setHaltRequested(true) to cancel download.
  5445. * src/PeerInteractionCommand.h
  5446. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5447. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  5448. socket from int to sock_t as sockets are unsigned in Windows.
  5449. For AsyncNameResolver, DownloadEngine, I did additional modification
  5450. for the portion of the code changed according to epoll support.
  5451. I defined sock_t in a2netcompat.h to use sock_t without including
  5452. SocketCore.h.
  5453. * src/AsyncNameResolver.cc
  5454. * src/AsyncNameResolver.h
  5455. * src/DownloadEngine.cc
  5456. * src/DownloadEngine.h
  5457. * src/SocketCore.cc
  5458. * src/SocketCore.h
  5459. * src/a2netcompat.h
  5460. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5461. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  5462. changes in the patch were applied.
  5463. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  5464. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  5465. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  5466. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5467. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  5468. a2io.h and common.h were modified.
  5469. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  5470. MinGW.
  5471. * src/common.h: Changed off_t to 64 bit in MinGW.
  5472. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5473. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5474. only a2netcompat.h is modified.
  5475. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  5476. directives.
  5477. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5478. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  5479. only gai_strerror.h is modified.
  5480. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  5481. winsock errors in MinGW.
  5482. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5483. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  5484. follow sources are applied.
  5485. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  5486. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  5487. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  5488. I included locale.h from Platform.cc.
  5489. * src/main.cc: Moved common setup/teardown code to Platform class.
  5490. * test/AllTest.cc: Use Platform class.
  5491. Set locale to C in AllTest.cc to prevent the messages to be localized.
  5492. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5493. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  5494. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  5495. * test/HttpRequestTest.cc: Casted to off_t where it should.
  5496. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Applied Ross's aria2-0.13.2+1-mingw.patch and
  5498. aria2-0.13.2+1-mingw-2.patch.
  5499. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  5500. systems which don't have termious.h. I moved the directive inside of
  5501. if(isTTY) { ... clause so that line is wiped out without termious.h.
  5502. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  5503. anyway.
  5504. * src/asctime_r.h
  5505. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  5506. I added 2nd argument to the prototype declaration.
  5507. * src/StringFormat.cc: Get rid of vasprintf.
  5508. * src/getaddrinfo.h: Fixed constants.
  5509. * configure.ac: Added the check for asctime_r function.
  5510. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  5511. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. Added writable test for Socket when the sending message is in progress.
  5513. Usually the sending message is piece message. Without wriable check,
  5514. upload latency is dropped to more than 1sec.
  5515. * src/PeerInteractionCommand.cc
  5516. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Create only requested files and files which shares a piece with
  5518. requested file in multi-torrent downloads. Directory structures are
  5519. also created in the same rule.
  5520. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  5521. DiskWriterEntry as in the previous implementation.
  5522. * src/MultiDiskWriter.cc
  5523. * src/MultiFileAllocationIterator.cc
  5524. * src/MultiFileAllocationIterator.h
  5525. * test/MultiFileAllocationIteratorTest.cc
  5526. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Commented out -lprofiler
  5528. * src/Makefile.am
  5529. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5530. Bump up version number to 0.14.0b.
  5531. * src/configure.ac
  5532. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5533. Actively establish connection to peers in seeding, when peer cache
  5534. is not full and max upload speed limit is not reached.
  5535. * src/ActivePeerConnectionCommand.cc
  5536. * src/ActivePeerConnectionCommand.h
  5537. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  5539. to make room more fleshy, recently found peers.
  5540. Peer::_badConditionStartTime is not used anymore. Consider to remove
  5541. it.
  5542. * src/DefaultPeerStorage.cc
  5543. * test/DefaultPeerStorageTest.cc
  5544. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5545. Returns cached data only when the previous receiveHandshake() is called
  5546. with peek = true.
  5547. * src/PeerConnection.cc (receiveHandshake)
  5548. * src/PeerConnection.h (receiveHandshake)
  5549. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5550. Changed default value of -s option from 1 to 5.
  5551. Also max value of -s option is changed from 5 to 16.
  5552. * src/HelpItemFactory.cc
  5553. * src/OptionHandlerFactory.cc
  5554. * src/option_processing.cc
  5555. * src/usage_text.h
  5556. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5557. Changed -s options behavior. Now it means the number of connections
  5558. made simultaneously in each http/ftp download.
  5559. If 1 URL is specified, the behavior is the same with old implementation.
  5560. If -s N is given and more than N URLs are specified, first N URLs are
  5561. used and remaining URLs are used for backup. If less than N URLs are
  5562. specified, some of URLs are used more than once so that totally N
  5563. connections are made simultaneously.
  5564. * src/main.cc
  5565. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5566. Included missing iosfwd or ostream header.
  5567. * src/RequestGroupMan.cc
  5568. * src/TaggedItem.cc
  5569. * src/TaggedItem.h
  5570. * src/Util.cc
  5571. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5572. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  5573. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  5574. * src/HttpConnection.cc: Included missing sstream.
  5575. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5576. Added --bt-max-open-files option.
  5577. * src/DefaultPieceStorage.cc
  5578. * src/HelpItemFactory.cc
  5579. * src/MultiDiskAdaptor.cc
  5580. * src/MultiDiskAdaptor.h
  5581. * src/OptionHandlerFactory.cc
  5582. * src/option_processing.cc
  5583. * src/prefs.cc
  5584. * src/prefs.h
  5585. * src/usage_text.h
  5586. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5587. Fixed the bug that aria2 aborts when a path to a directory is given
  5588. in command-line.
  5589. * src/ProtocolDetector.cc
  5590. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5591. Limited the number files opened in each BitTorrent download. The default
  5592. value is 100. The option to change this value will be added.
  5593. * src/MultiDiskAdaptor.cc
  5594. * src/MultiDiskAdaptor.h
  5595. * src/MultiFileAllocationIterator.cc
  5596. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5597. Fixed the bug that HTTP downloads don't start with old libraries.
  5598. * src/HttpHeaderProcessor.cc
  5599. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5600. Use empty() instead of size() > 0.
  5601. * src/HttpConnection.cc
  5602. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Drop connection if the incoming peer ID is the same with localhost's
  5604. one. The previous implementation drops connection when incoming peer's
  5605. IP address is the same with localhost's one.
  5606. * src/PeerListenCommand.cc
  5607. * src/DefaultBtInteractive.cc
  5608. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Returns cached data without checking whether socket is readable
  5610. if the cache is available.
  5611. * src/PeerConnection.cc (receiveHandshake)
  5612. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5613. Included stdint.h
  5614. * src/common.h
  5615. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5616. Removed duplicate HAVE_GETTIMEOFDAY
  5617. * src/Makefile.am
  5618. * src/Makefile.in
  5619. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Use interval as a minInterval when minInterval is not supplied.
  5621. * src/DefaultBtAnnounce.cc
  5622. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5623. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  5624. attempt is failed, then 2nd attempt get kicked out more quickly.
  5625. And it is now static const member of DefaultBtAnnounce.
  5626. * src/DefaultBtAnnounce.h
  5627. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5628. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  5629. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  5630. * src/ActivePeerConnectionCommand.cc
  5631. * src/BtConstants.h
  5632. * src/BtRuntime.h
  5633. * src/DHTGetPeersCommand.cc
  5634. * src/DefaultBtAnnounce.cc
  5635. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  5636. BtRuntime::MAX_PEERS.
  5637. * src/DefaultPeerStorage.h
  5638. * src/InitiatorMSEHandshakeCommand.cc
  5639. * src/PeerInitiateConnectionCommand.cc
  5640. * src/PeerInteractionCommand.cc
  5641. * src/PeerReceiveHandshakeCommand.cc
  5642. * src/TrackerWatcherCommand.cc
  5643. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. Always Connect to _numNewConnection
  5645. * src/ActivePeerConnectionCommand.cc
  5646. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5647. Made `begin' unsigned int.
  5648. * src/GrowSegment.h
  5649. * src/Piece.cc
  5650. * src/Piece.h
  5651. * src/PiecedSegment.cc
  5652. * src/PiecedSegment.h
  5653. * src/Segment.h
  5654. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. Calculate piece hash when data is arrived if the data is arrived in
  5656. order. This removes additional read operation for hash calculation.
  5657. If the data is arrived in out of order, the hash is calucated when the
  5658. piece is completed. This is the same behavior as the old implementation.
  5659. * src/BtPieceMessage.cc
  5660. * src/DefaultBtProgressInfoFile.cc
  5661. * src/DefaultPieceStorage.cc
  5662. * src/DownloadCommand.cc
  5663. * src/DownloadCommand.h
  5664. * src/DownloadEngine.cc
  5665. * src/GrowSegment.cc
  5666. * src/GrowSegment.h
  5667. * src/Piece.cc
  5668. * src/Piece.h
  5669. * src/PiecedSegment.cc
  5670. * src/PiecedSegment.h
  5671. * src/Segment.h
  5672. * test/PieceTest.cc
  5673. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5674. Try to keep the ordering of outgoing piece message.
  5675. * src/DefaultBtMessageDispatcher.cc
  5676. (DefaultBtMessageDispatcher::sendMessages)
  5677. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5678. Fixed busy loop when error/hup epoll events occur.
  5679. * src/AbstractCommand.cc
  5680. * src/PeerAbstractCommand.cc
  5681. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5682. Added --bt-request-peer-speed-limit option, which was a constant
  5683. SLOW_SPEED_THRESHOLD.
  5684. * src/ActivePeerConnectionCommand.cc
  5685. * src/ActivePeerConnectionCommand.h
  5686. * src/BtConstants.h
  5687. * src/HelpItemFactory.cc
  5688. * src/OptionHandlerFactory.cc
  5689. * src/PeerReceiveHandshakeCommand.cc
  5690. * src/option_processing.cc
  5691. * src/prefs.cc
  5692. * src/prefs.h
  5693. * src/usage_text.h
  5694. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5695. Removed repeated call of getTopDirPath(). Instead, call it once and
  5696. cache the result.
  5697. * src/MultiDiskAdaptor.cc
  5698. * src/MultiDiskAdaptor.h
  5699. (mkdir, openFile, initAndOpenFile, openExistingFile)
  5700. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. Fixed compile error on debian etch.
  5702. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  5703. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  5704. it is undefined.
  5705. * src/Util.cc (ULLONG_MAX)
  5706. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5707. Added epoll support. Use epoll if it is available. If not, use select.
  5708. When async dns is enabled in compile time, epoll support is enabled
  5709. only when aria2 is built with c-ares. This condition statement is
  5710. defined in a2io.h.
  5711. Currently aria2 supports both c-ares and ares, but ares is maintained
  5712. for quite a while and debian already has c-ares package, ares support
  5713. will be dropped in the future version.
  5714. * configure.ac
  5715. * src/AbstractCommand.cc
  5716. * src/AsyncNameResolver.cc
  5717. * src/AsyncNameResolver.h
  5718. * src/Command.cc
  5719. * src/Command.h
  5720. * src/DownloadEngine.cc
  5721. * src/DownloadEngine.h
  5722. * src/PeerAbstractCommand.cc
  5723. * src/SocketCore.cc
  5724. * src/SocketCore.h
  5725. * src/a2io.h
  5726. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  5728. directive.
  5729. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5730. Do not do write operation to /dev/null file.
  5731. * src/LogFactory.cc
  5732. * src/SimpleLogger.cc
  5733. Replaced vasprintf with vsnprintf
  5734. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  5735. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. * src/BtRequestMessage.cc
  5737. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  5738. for segmentation fault caused by previous commit.
  5739. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5740. Reduced the usage of gettimeofday().
  5741. * src/DefaultBtMessageDispatcher.cc
  5742. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  5743. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5744. * src/RequestSlot.cc
  5745. * src/RequestSlot.h
  5746. (RequestSlot::isTimeout)
  5747. Made RequestSlot have a reference to Piece object to avoid find
  5748. Piece repeatedly.
  5749. * src/DefaultBtMessageDispatcher.cc
  5750. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  5751. * src/RequestSlot.cc
  5752. * src/RequestSlot.h
  5753. (RequestSlot::getPiece)
  5754. * test/DefaultBtMessageDispatcherTest.cc
  5755. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5756. * src/TimeA2.cc
  5757. * src/TimeA2.h
  5758. (Time::difference): New function.
  5759. (Time::elapsed): Done optimization.
  5760. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5761. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  5762. directive.
  5763. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5764. * src/option_processing.cc: Added missing `defined' keyword to #if
  5765. directive.
  5766. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5767. Bump up version number to 0.13.2+1
  5768. * src/configure.ac
  5769. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5770. Refactored broken outstanding piece handling.
  5771. * src/DefaultPieceStorage.cc
  5772. * src/DefaultPieceStorage.h
  5773. * src/Piece.cc
  5774. * src/Piece.h
  5775. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5776. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  5777. name collision of static variable and predefined macro.
  5778. * src/BtContext.cc
  5779. * src/BtContext.h
  5780. * src/CookieBoxFactory.cc
  5781. * src/CookieBoxFactory.h
  5782. * src/CookieParser.cc
  5783. * src/CookieParser.h
  5784. * src/DefaultBtContext.cc
  5785. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5786. * src/RequestGroup.cc
  5787. (RequestGroup::createInitialCommand): Use empty() instead of size().
  5788. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5789. * Release 0.13.2
  5790. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5791. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  5792. * po/fr.po
  5793. * po/ja.po
  5794. * po/aria2c.pot
  5795. * po/*.po
  5796. * po/*.gmo
  5797. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5798. Bump up version number to 0.13.2
  5799. * src/configure.ac
  5800. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5801. Refactord.
  5802. * src/RequestGroupMan.cc
  5803. (removeStoppedGroup)
  5804. (fillRequestGroupFromReserver)
  5805. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5806. Fixed compile error on Ubuntu.
  5807. * src/BtPieceMessage.cc
  5808. * src/MessageDigestHelper.cc
  5809. * src/Util.cc
  5810. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5811. Fixed compile error when configured with --disable-bittorrent
  5812. * test/DownloadHandlerFactoryTest.cc
  5813. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. Done make update-po
  5815. * po/aria2c.pot
  5816. * po/*.po
  5817. * po/*.gmo
  5818. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5819. Bump up version number to 0.13.2rc.
  5820. * src/configure.ac
  5821. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5822. Made option name bold. Updated SYNOPSIS to make it more readable.
  5823. * doc/aria2c.1.txt
  5824. * doc/aria2c.1
  5825. * doc/aria2c.1.html
  5826. * src/version_usage.cc
  5827. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5828. Refactored. Use std::string instead of size and char*.
  5829. * Data.cc
  5830. * Data.h
  5831. * test/Data.cc
  5832. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5833. Added trimSelf(). Rewritten trim() to use trimSelf().
  5834. * Util.cc
  5835. * Util.h
  5836. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5837. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5838. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5839. Fixed compile error when configured with --disable-metalink.
  5840. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5841. * test/FeatureConfigTest.cc
  5842. * test/DownloadHandlerFactoryTest.cc
  5843. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5844. Fixed compile error when configured with --without-gnutls
  5845. --without-openssl
  5846. * src/main.cc
  5847. * test/DefaultBtProgressInfoFileTest.cc
  5848. * test/SegmentManTest.cc
  5849. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5850. Fixed compile error with OpenSSL.
  5851. * src/IteratableChunkChecksumValidator.cc
  5852. * src/LibsslDHKeyExchange.h
  5853. * src/MessageDigestHelper.cc
  5854. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. Revert the default value of --max-concurrent-downloads to 5.
  5856. Revert the default value of --metalink-servers to 5.
  5857. Man pages was also updated.
  5858. * src/option_processing.cc
  5859. * doc/aria2c.1.txt
  5860. * doc/aria2c.1.html
  5861. * doc/aria2c.1
  5862. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Returns const reference:
  5864. DownloadContext::getPieceHash, DownloadContext::getName,
  5865. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5866. BtContext::getInfoHashAsString,
  5867. * src/BtContext.h
  5868. * src/DefaultBtContext.cc
  5869. * src/DefaultBtContext.h
  5870. * src/DownloadContext.h
  5871. * src/SingleFileDownloadContext.h
  5872. * test/MockBtContext.h
  5873. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5874. * src/RequestGroup.h (getDir): Removed.
  5875. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5876. Returns const reference. The internal urlencode function was optimized
  5877. a little bit.
  5878. * src/Request.cc
  5879. * src/Request.h
  5880. * src/HttpRequest.cc
  5881. * src/HttpRequest.h
  5882. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5883. Defined option name and possible values as std::string to reduce
  5884. temporary string object creation in runtime.
  5885. * src/HelpItemFactory.cc
  5886. * src/LogFactory.cc
  5887. * src/Option.cc
  5888. * src/OptionHandlerFactory.cc
  5889. * src/option_processing.cc
  5890. * src/prefs.cc
  5891. * src/prefs.h
  5892. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. Return const reference.
  5894. * src/DownloadHandlerConstants.cc
  5895. * src/DownloadHandlerConstants.h
  5896. (getMetalinkExtensions)
  5897. (getMetalinkContentTypes)
  5898. (getBtExtensions)
  5899. (getBtContentTypes)
  5900. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5901. * src/HttpHeader.cc (get): Rewritten.
  5902. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5903. Make HttpHeader::getFirst(...) return const reference.
  5904. * src/HttpHeader.cc
  5905. * src/HttpHeader.h
  5906. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5907. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5908. it with V_TRUE.
  5909. * src/DefaultPieceStorage.cc
  5910. * src/DownloadCommand.cc
  5911. * src/FtpNegotiationCommand.cc
  5912. * src/HttpRequest.cc
  5913. * src/InitiateConnectionCommand.cc
  5914. * src/RequestGroup.cc
  5915. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Made Option::get(...) return const reference of std::string.
  5917. * src/Option.cc
  5918. * src/Option.h
  5919. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Replaced std:copy with insert.
  5921. * src/DefaultBtMessageDispatcher.cc
  5922. * src/DefaultPieceStorage.cc
  5923. * src/DownloadEngineFactory.cc
  5924. * src/RequestGroup.cc
  5925. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. Included SocketCore.h to fix compiler warning.
  5927. * src/InitiateConnectionCommand.cc
  5928. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5929. Put piece selection strategy algorithm to RarestPieceSelector class,
  5930. Added a switch to choose whether randomized selection so that unit
  5931. tests emit same results in, possibly, win32.
  5932. * src/DefaultPieceStorage.cc
  5933. * src/DefaultPieceStorage.h
  5934. * src/RarestPieceSelector.cc
  5935. * src/RarestPieceSelector.h
  5936. * test/DefaultPieceStorageTest.cc
  5937. * test/RarestPieceSelectorTest.cc
  5938. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5939. Don't pool connection if HTTP proxy is enabled.
  5940. * src/FtpFinishDownloadCommand.cc
  5941. * src/FtpNegotiationCommand.cc
  5942. * src/HttpSkipResponseCommand.cc
  5943. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5945. * src/AbstractCommand.cc
  5946. * src/AbstractCommand.h
  5947. * src/ActivePeerConnectionCommand.cc
  5948. * src/FtpInitiateConnectionCommand.cc
  5949. * src/HttpInitiateConnectionCommand.cc
  5950. * src/InitiateConnectionCommandFactory.cc
  5951. * src/PeerAbstractCommand.cc
  5952. * src/PeerAbstractCommand.h
  5953. * src/PeerInitiateConnectionCommand.cc
  5954. * src/TrackerWatcherCommand.cc
  5955. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Sort RequestSlot in ascending order and manipulate them using
  5957. lower_bound.
  5958. * src/DefaultBtMessageDispatcher.cc
  5959. * src/DefaultBtMessageDispatcher.h
  5960. (getMessageQueue): Added const qualifier.
  5961. (getRequestSlots): Added const qualifier.
  5962. (sendMessages): Use empty() instead of size().
  5963. (doCancelSendingPieceAction): Use HandleEvent object.
  5964. (doAbortOutstandingRequestAction): Rewritten.
  5965. (doChokedAction): Rewritten.
  5966. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5967. (isOutstandingRequest): Rewritten.
  5968. (getOutstandingRequest): Rewritten.
  5969. (removeOutstandingRequest): Rewritten.
  5970. (addOutstandingRequest): Rewritten.
  5971. * src/RequestSlot.cc
  5972. * src/RequestSlot.h
  5973. (operator=): Rewritten.
  5974. (operator!=): New function.
  5975. (operator<): New function.
  5976. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5977. * src/DefaultBtRequestFactory.cc
  5978. (doChokedAction): Rewritten.
  5979. (removeCompletedPiece): Rewritten.
  5980. (removeTargetPiece): Rewritten.
  5981. (createRequestMessages): Added the debug log.
  5982. (createRequestMessagesOnEndGame: Added the debug log.
  5983. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5984. Added the debug log message.
  5985. * src/BtPieceMessage.cc (doReceivedAction)
  5986. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5987. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5988. used lower_bound to process them rather than linear search.
  5989. * src/DHTPeerAnnounceStorage.cc
  5990. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5991. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5992. peer has at least one completed piece.
  5993. * src/Peer.cc
  5994. * src/Peer.h
  5995. * src/PeerInteractionCommand.cc
  5996. * src/PeerSessionResource.cc
  5997. * src/PeerSessionResource.h
  5998. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5999. Removed unnecessary sorting
  6000. * src/DefaultPieceStorage (DefaultPieceStorage)
  6001. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6002. Rewritten the portion of the code that mangaes allowed fast indexes.
  6003. * src/PeerSessionResource.cc
  6004. * src/PeerSessionResource.h
  6005. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6006. Removed the invalid string including '\r' from ru.po and
  6007. did make update-po.
  6008. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6009. Added --log-level and --summary-interval to man page.
  6010. * doc/aria2c.1.txt
  6011. * doc/aria2c.1.html
  6012. * doc/aria2c.1
  6013. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Added --log-level option to specify log level. Log messages under
  6015. the specified level are not output. Default value is `debug'.
  6016. * src/HelpItemFactory.cc
  6017. * src/LogFactory.cc
  6018. * src/LogFactory.h
  6019. * src/Logger.h
  6020. * src/OptionHandlerFactory.cc
  6021. * src/SimpleLogger.cc
  6022. * src/SimpleLogger.h
  6023. * src/main.cc
  6024. * src/option_processing.cc
  6025. * src/prefs.h
  6026. * src/usage_text.h
  6027. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Print download progress summary of all parallel downloads in specified
  6029. interval, default 60 secs. While aria2 could download several files
  6030. in parallel (see -j option), it displayed just first download progress,
  6031. and the other downloads are hidden from the users. This new feature
  6032. prints all downloads currently in-progress to the console so that you
  6033. can check the status of all downloads. The interval can be adjusted
  6034. by --summary-interval option.
  6035. The progress readout is now cut so that all fits in the one line of
  6036. console.
  6037. * src/ConsoleStatCalc.cc
  6038. * src/ConsoleStatCalc.h
  6039. * src/HelpItemFactory.cc
  6040. * src/OptionHandlerFactory.cc
  6041. * src/RequestGroupMan.cc
  6042. * src/RequestGroupMan.h
  6043. * src/main.cc
  6044. * src/option_processing.cc
  6045. * src/prefs.h
  6046. * src/usage_text.h
  6047. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6048. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  6049. * src/DownloadEngine.cc (DownloadEngine)
  6050. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6051. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  6052. defined.
  6053. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  6054. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. Use erase+lower_bound+insert instead of sort.
  6056. * src/DefaultPieceStorage.cc (addPieceStats)
  6057. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6058. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  6059. * src/A2STR.cc
  6060. * src/A2STR.h
  6061. * src/OptionParser.cc (parse)
  6062. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6063. Defined fake filename `[tracker.announce]' as static const std::string.
  6064. * src/TrackerWatcherCommand.cc (createRequestGroup)
  6065. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6066. Defined default filename `index.html' as static const std::string
  6067. * src/SingleFileDownloadContext.cc
  6068. * src/SingleFileDownloadContext.h
  6069. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Defined "[MEMORY]" as static const std::string.
  6071. * src/MemoryBufferPreDownloadHandler.cc (execute)
  6072. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6073. Defined control file's version number as static const std::string.
  6074. * src/DefaultBtProgressInfoFile.cc
  6075. * src/DefaultBtProgressInfoFile.h
  6076. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6077. Use Request::METHOD_GET
  6078. * src/RequestGroup.cc (createNextCommandWithAdj)
  6079. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6080. Defined "OK", "ERR", "INPR" as static const std::string
  6081. * src/RequestGroupMan.cc (showDownloadResults)
  6082. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Defined default client used in extended handshake as static const
  6084. std::string
  6085. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  6086. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6087. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  6088. * src/HttpConnection.cc (eraseConfidentialInfo)
  6089. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6090. Defined default ftp user and password as static const std::string
  6091. * src/AuthConfigFactory.cc
  6092. * src/AuthConfigFactory.h
  6093. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Defined strings used in netrc as static const std::string
  6095. * src/Netrc.cc
  6096. * src/Netrc.h
  6097. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6098. Defined HTTP status as static const std::string
  6099. * src/AbstractProxyResponseCommand.cc
  6100. * src/HttpHeader.cc
  6101. * src/HttpHeader.h
  6102. * src/HttpResponse.cc
  6103. * src/HttpResponseCommand.cc
  6104. * src/HttpSkipResponseCommand.cc
  6105. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6106. Defined "\r\n", "A", "I" as static const std::string
  6107. * src/A2STR.cc
  6108. * src/A2STR.h
  6109. * src/FtpConnection.cc
  6110. * src/FtpConnection.h
  6111. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6112. Added COLON_C(".") and used it in Request::parseUrl()
  6113. * src/A2STR.cc
  6114. * src/A2STR.h
  6115. * src/Request.cc (parseUrl)
  6116. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. Changed the type of padName from `const std::string&' to `const char*'.
  6118. * src/MSEHandshake.cc (verifyPadLength)
  6119. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Defined "sha1" as static const std::string.
  6121. * src/MetalinkParserController.cc
  6122. * src/MetalinkParserController.h
  6123. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6124. Defined message digest algorithm name as static const std::string
  6125. * src/DHTTokenTracker.cc
  6126. * src/DHTUtil.cc
  6127. * src/DefaultBtContext.cc
  6128. * src/MSEHandshake.cc
  6129. * src/MessageDigestHelper.cc
  6130. * src/Peer.cc
  6131. * src/messageDigest.cc
  6132. * src/messageDigest.h
  6133. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6134. Made string literals used in SAX parser static const std::string.
  6135. * src/FileMetalinkParserState.cc
  6136. * src/FileMetalinkParserState.h
  6137. * src/FilesMetalinkParserState.cc
  6138. * src/FilesMetalinkParserState.h
  6139. * src/InitialMetalinkParserState.cc
  6140. * src/InitialMetalinkParserState.h
  6141. * src/MetalinkMetalinkParserState.cc
  6142. * src/MetalinkMetalinkParserState.h
  6143. * src/PiecesMetalinkParserState.cc
  6144. * src/PiecesMetalinkParserState.h
  6145. * src/ResourcesMetalinkParserState.cc
  6146. * src/ResourcesMetalinkParserState.h
  6147. * src/VerificationMetalinkParserState.cc
  6148. * src/VerificationMetalinkParserState.h
  6149. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  6151. * src/A2STR.cc
  6152. * src/A2STR.h
  6153. * src/File.cc
  6154. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6155. Defined static const std::string IP("ip"), PORT("port") and use them
  6156. instead of string literals.
  6157. * src/DefaultPeerListProcessor.cc
  6158. * src/DefaultPeerListProcessor.h
  6159. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6160. Made string literals for torrent file processing static const
  6161. std::string.
  6162. * src/BtContext.cc
  6163. * src/BtContext.h
  6164. * src/DefaultBtContext.cc
  6165. * src/DefaultBtContext.h
  6166. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6167. Made string literal for tracker response static const std::string
  6168. * src/BtAnnounce.cc
  6169. * src/BtAnnounce.h
  6170. * src/DefaultBtAnnounce.cc
  6171. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6172. Use DHTMessage::T instead of "t".
  6173. * src/DHTMessageTracker.cc (messageArrived)
  6174. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6175. Made keyName static const. Made trimmed charset static const
  6176. std::string.
  6177. * src/Util.cc (getContentDispositionFilename)
  6178. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Made USER_AGENT const. Made "/" static const std::string.
  6180. * src/A2STR.cc
  6181. * src/A2STR.h
  6182. * src/HttpRequest.cc
  6183. * src/HttpRequest.h
  6184. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6185. Made string listeral to static const std::string:
  6186. "Content-Range", "Content-Length"
  6187. * src/HttpHeader.cc
  6188. * src/HttpHeader.h
  6189. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6190. Made string listeral to static const std::string.
  6191. * src/HttpConnection.cc
  6192. * src/HttpHeader.cc
  6193. * src/HttpHeader.h
  6194. * src/HttpResponse.cc
  6195. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Made string listeral to static const std::string.
  6197. * src/A2STR.cc
  6198. * src/A2STR.h
  6199. * src/SimpleLogger.cc
  6200. * src/SimpleLogger.h
  6201. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Made string literal to static const std::string.
  6203. Rewritten CookieParser::setField.
  6204. * src/A2STR.cc
  6205. * src/A2STR.h
  6206. * src/CookieBoxFactory.cc
  6207. * src/CookieBoxFactory.h
  6208. * src/CookieParser.cc
  6209. * src/CookieParser.h
  6210. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Made string literal to static const std::string
  6212. * src/DHTAbstractMessage.cc
  6213. * src/DHTAnnouncePeerMessage.cc
  6214. * src/DHTAnnouncePeerMessage.h
  6215. * src/DHTAnnouncePeerReplyMessage.cc
  6216. * src/DHTAnnouncePeerReplyMessage.h
  6217. * src/DHTFindNodeMessage.cc
  6218. * src/DHTFindNodeMessage.h
  6219. * src/DHTFindNodeReplyMessage.cc
  6220. * src/DHTFindNodeReplyMessage.h
  6221. * src/DHTGetPeersMessage.cc
  6222. * src/DHTGetPeersMessage.h
  6223. * src/DHTGetPeersReplyMessage.cc
  6224. * src/DHTGetPeersReplyMessage.h
  6225. * src/DHTMessage.cc
  6226. * src/DHTMessage.h
  6227. * src/DHTMessageFactoryImpl.cc
  6228. * src/DHTMessageReceiver.cc
  6229. * src/DHTPingMessage.cc
  6230. * src/DHTPingMessage.h
  6231. * src/DHTPingReplyMessage.cc
  6232. * src/DHTPingReplyMessage.h
  6233. * src/DHTQueryMessage.cc
  6234. * src/DHTQueryMessage.h
  6235. * src/DHTResponseMessage.cc
  6236. * src/DHTResponseMessage.h
  6237. * src/DHTUnknownMessage.cc
  6238. * src/DHTUnknownMessage.h
  6239. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Made string literal to static const std::string
  6241. * src/BtChokeMessage.cc (toString)
  6242. * src/BtHaveAllMessage.cc (toString)
  6243. * src/BtHaveNoneMessage.cc (toString)
  6244. * src/BtInterestedMessage.cc (toString)
  6245. * src/BtNotInterestedMessage.cc (toString)
  6246. * src/BtUnchokeMessage.cc (toString)
  6247. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6248. Replaced "" with static const variable A2STR::NIL.
  6249. Replaced string comparison against "" with std::string::empty().
  6250. Added PROTO_* to Request class and use them as a protocol string
  6251. constant.
  6252. Made "started", "stopped", "completed" static const variable in
  6253. AnnounceList class.
  6254. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Updated translations. Great thanks to translators.
  6256. * po/ca.po
  6257. * po/de.po
  6258. * po/fr.po
  6259. * po/it.po
  6260. * po/ja.po
  6261. * po/ru.po
  6262. * po/zh_CN.po
  6263. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6264. Updated man page; categorized options and fixed typo.
  6265. * doc/aria2c.1.txt
  6266. * doc/aria2c.1.html
  6267. * doc/aria2c.1
  6268. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6269. Removed const ref
  6270. * src/MetalinkEntry.cc (AddProtocolPreference)
  6271. * src/RequestGroup.cc (FindServerHostByHostname)
  6272. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6273. Rewritten Accept-Features handling.
  6274. * src/HttpRequestCommand.cc (createHttpRequest)
  6275. * src/a2functional.h
  6276. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6277. Changed method signature:
  6278. DHTAbstractNodeLookupTask::toEntries
  6279. * src/DHTAbstractNodeLookupTask.cc
  6280. * src/DHTAbstractNodeLookupTask.h
  6281. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6282. Changed method signature:
  6283. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  6284. * src/BtContext.h
  6285. * src/DefaultBtContext.cc
  6286. * src/DefaultBtContext.h
  6287. * src/DefaultBtInteractive.cc
  6288. * test/DefaultBtContextTest.cc
  6289. * test/MockBtContext.h
  6290. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6291. Changed method signature:
  6292. MultiFileAllocationIterator::makeDiskWriterEntries
  6293. * src/MultiFileAllocationIterator.cc
  6294. * src/MultiFileAllocationIterator.h
  6295. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6296. Changed method sinature:
  6297. MetalinkEntry::toFileEntry,
  6298. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  6299. Metalinker::queryEntry
  6300. * src/Metalink2RequestGroup.cc
  6301. * src/MetalinkEntry.cc
  6302. * src/MetalinkEntry.h
  6303. * src/MetalinkHelper.cc
  6304. * src/MetalinkHelper.h
  6305. * src/Metalinker.cc
  6306. * src/Metalinker.h
  6307. * src/main.cc
  6308. * test/MetalinkHelperTest.cc
  6309. * test/MetalinkerTest.cc
  6310. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6311. Changed method sinature:
  6312. RequestGroup::getURIs
  6313. * src/RequestGroup.cc
  6314. * src/RequestGroup.h
  6315. * test/Metalink2RequestGroupTest.cc
  6316. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6317. Changed method signature:
  6318. PeerListProcessor::extractPeer
  6319. * src/CompactPeerListProcessor.cc
  6320. * src/CompactPeerListProcessor.h
  6321. * src/DefaultBtAnnounce.cc
  6322. * src/DefaultPeerListProcessor.cc
  6323. * src/DefaultPeerListProcessor.h
  6324. * src/DelegatingPeerListProcessor.cc
  6325. * src/DelegatingPeerListProcessor.h
  6326. * src/PeerListProcessor.h
  6327. * src/UTPexExtensionMessage.cc
  6328. * test/DefaultPeerListProcessorTest.cc
  6329. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6330. Changed method signature:
  6331. BtRequestFactory::createRequestMessages,
  6332. BtRequestFactory::createRequestMessagesOnEndGame
  6333. * src/BtRequestFactory.h
  6334. * src/DefaultBtInteractive.cc
  6335. * src/DefaultBtRequestFactory.cc
  6336. * src/DefaultBtRequestFactory.h
  6337. * test/DefaultBtRequestFactoryTest.cc
  6338. * test/MockBtRequestFactory.h
  6339. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6340. Changed method signature:
  6341. PieceStorage::getInFlightPieces
  6342. * src/DefaultBtProgressInfoFile.cc
  6343. * src/DefaultPieceStorage.cc
  6344. * src/DefaultPieceStorage.h
  6345. * src/PieceStorage.h
  6346. * src/UnknownLengthPieceStorage.cc
  6347. * src/UnknownLengthPieceStorage.h
  6348. * test/DefaultBtProgressInfoFileTest.cc
  6349. * test/MockPieceStorage.h
  6350. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6351. Changed method signature:
  6352. PostDownloadHandler::getNextRequestGroups
  6353. Metalink2RequestGroup::generate
  6354. RequestGroup::postDownloadProcessing
  6355. * src/BtPostDownloadHandler.cc
  6356. * src/BtPostDownloadHandler.h
  6357. * src/Metalink2RequestGroup.cc
  6358. * src/Metalink2RequestGroup.h
  6359. * src/MetalinkPostDownloadHandler.cc
  6360. * src/MetalinkPostDownloadHandler.h
  6361. * src/PostDownloadHandler.h
  6362. * src/RequestGroup.cc
  6363. * src/RequestGroup.h
  6364. * src/RequestGroupMan.cc
  6365. * src/main.cc
  6366. * test/BtPostDownloadHandlerTest.cc
  6367. * test/Metalink2RequestGroupTest.cc
  6368. * test/MetalinkPostDownloadHandlerTest.cc
  6369. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6370. Rewritten AccRequestGroup
  6371. * src/main.cc
  6372. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6373. Rewritten.
  6374. * src/TaggedItem.cc (toTagString)
  6375. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6376. Rewritten Accept-Features handling.
  6377. * src/HttpRequestCommand.cc (createHttpRequest)
  6378. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6379. Rewritten accept types handling.
  6380. * HttpRequest.cc (createRequest)
  6381. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6382. Rewritten
  6383. * src/FeatureConfig.cc (featureSummary)
  6384. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6385. Changed method signature:
  6386. PeerStorage::getActivePeers
  6387. * src/DHTPeerAnnounceEntry.cc
  6388. * src/DefaultPeerStorage.cc
  6389. * src/DefaultPeerStorage.h
  6390. * src/PeerStorage.h
  6391. * test/DefaultPeerStorageTest.cc
  6392. * test/MockPeerStorage.h
  6393. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Changed method signature:
  6395. DHTPeerAnnounceStorage::getPeers,
  6396. DHTPeerAnnounceEntry::getPeers
  6397. * src/DHTGetPeersMessage.cc
  6398. * src/DHTPeerAnnounceEntry.cc
  6399. * src/DHTPeerAnnounceEntry.h
  6400. * src/DHTPeerAnnounceStorage.cc
  6401. * src/DHTPeerAnnounceStorage.h
  6402. * test/DHTAnnouncePeerMessageTest.cc
  6403. * test/DHTPeerAnnounceEntryTest.cc
  6404. * test/DHTPeerAnnounceStorageTest.cc
  6405. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6406. Changed method signature:
  6407. NameResolver::resolve
  6408. * src/DHTEntryPointNameResolveCommand.cc
  6409. * src/InitiateConnectionCommand.cc
  6410. * src/NameResolver.cc
  6411. * src/NameResolver.h
  6412. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6413. Changed method signature:
  6414. PieceStorage::getAdvertisedPieceIndexes
  6415. * src/DefaultBtInteractive.cc
  6416. * src/DefaultPieceStorage.cc
  6417. * src/DefaultPieceStorage.h
  6418. * src/PieceStorage.h
  6419. * src/UnknownLengthPieceStorage.h
  6420. * test/MockPieceStorage.h
  6421. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6422. Changed method signature:
  6423. SegmentMan::getInFlightSegment
  6424. * src/AbstractCommand.cc
  6425. * src/SegmentMan.cc
  6426. * src/SegmentMan.h
  6427. * test/SegmentManTest.cc
  6428. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6429. Changed method signature:
  6430. DHTAbstractNodeLookupTask::getNodesFromMessage
  6431. * src/DHTAbstractNodeLookupTask.cc
  6432. * src/DHTAbstractNodeLookupTask.h
  6433. * src/DHTNodeLookupTask.cc
  6434. * src/DHTNodeLookupTask.h
  6435. * src/DHTPeerLookupTask.cc
  6436. * src/DHTPeerLookupTask.h
  6437. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6438. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  6439. * src/AbstractCommand.cc
  6440. * src/BtCheckIntegrityEntry.cc
  6441. * src/BtCheckIntegrityEntry.h
  6442. * src/BtFileAllocationEntry.cc
  6443. * src/BtFileAllocationEntry.h
  6444. * src/BtSetup.cc
  6445. * src/BtSetup.h
  6446. * src/CheckIntegrityCommand.cc
  6447. * src/CheckIntegrityEntry.h
  6448. * src/ChecksumCheckIntegrityEntry.cc
  6449. * src/ChecksumCheckIntegrityEntry.h
  6450. * src/DHTSetup.cc
  6451. * src/DHTSetup.h
  6452. * src/DownloadEngine.cc
  6453. * src/FileAllocationCommand.cc
  6454. * src/FileAllocationEntry.h
  6455. * src/RequestGroup.cc
  6456. * src/RequestGroup.h
  6457. * src/RequestGroupMan.cc
  6458. * src/RequestGroupMan.h
  6459. * src/StreamCheckIntegrityEntry.cc
  6460. * src/StreamCheckIntegrityEntry.h
  6461. * src/StreamFileAllocationEntry.cc
  6462. * src/StreamFileAllocationEntry.h
  6463. * src/TrackerWatcherCommand.cc
  6464. * src/a2functional.h
  6465. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6466. Changed method signature:
  6467. BNode::findClosestKNodes, BNode:: enumerateBucket,
  6468. DHTBucket::getGoodNodes,
  6469. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  6470. * src/BNode.cc
  6471. * src/BNode.h
  6472. * src/DHTAbstractNodeLookupTask.cc
  6473. * src/DHTAutoSaveCommand.cc
  6474. * src/DHTBucket.cc
  6475. * src/DHTBucket.h
  6476. * src/DHTBucketRefreshTask.cc
  6477. * src/DHTFindNodeMessage.cc
  6478. * src/DHTGetPeersMessage.cc
  6479. * src/DHTRoutingTable.cc
  6480. * src/DHTRoutingTable.h
  6481. * test/BNodeTest.cc
  6482. * test/DHTBucketTest.cc
  6483. * test/DHTRoutingTableTest.cc
  6484. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. In piece selection functions, Pass std::deque<...> by reference rather
  6486. than returning it.
  6487. * src/BitfieldMan.cc
  6488. * src/BitfieldMan.h
  6489. * src/DefaultBtRequestFactory.cc
  6490. * src/DefaultPieceStorage.cc
  6491. * src/Piece.cc
  6492. * src/Piece.h
  6493. * test/BitfieldManTest.cc
  6494. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Implemented rarest piece first piece selection strategy.
  6496. * src/AbstractBtMessage.cc
  6497. * src/AbstractBtMessage.h
  6498. * src/BitfieldMan.cc
  6499. * src/BitfieldMan.h
  6500. * src/BtBitfieldMessage.cc
  6501. * src/BtHaveAllMessage.cc
  6502. * src/BtHaveMessage.cc
  6503. * src/DefaultPieceStorage.cc
  6504. * src/DefaultPieceStorage.h
  6505. * src/PeerInteractionCommand.cc
  6506. * src/PieceStorage.h
  6507. * src/UnknownLengthPieceStorage.h
  6508. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6509. Rewritten readData and writeData.
  6510. * src/MultiDiskAdaptor.cc
  6511. * src/MultiDiskAdaptor.h
  6512. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. Move \n out of the message "Usage: ...".
  6514. * src/version_usage.cc
  6515. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Bump up version number to 0.13.2b.
  6517. * configure.ac
  6518. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6519. Added const qualifier to argument Exception& e.
  6520. * src/Logger.h
  6521. * src/SimpleLogger.cc
  6522. * src/SimpleLogger.h
  6523. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Pool connection when CWD, SIZE command fails.
  6525. * src/FtpNegotiationCommand.cc
  6526. * src/FtpNegotiationCommand.h
  6527. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6528. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  6529. * src/HttpResponseCommand.cc
  6530. * src/HttpSkipResponseCommand.cc
  6531. * src/HttpSkipResponseCommand.h
  6532. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6533. Pool connection when a server returns 4xx, 5xx responses.
  6534. * src/HttpNullDownloadCommand.cc
  6535. * src/HttpNullDownloadCommand.h
  6536. * src/HttpResponse.cc
  6537. * src/HttpResponse.h
  6538. * src/HttpResponseCommand.cc
  6539. * src/HttpResponseCommand.h
  6540. * test/HttpResponseTest.cc
  6541. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6542. Print usage when no URL is specifed or bad command-line option is
  6543. specified.
  6544. * src/HelpItemFactory.cc
  6545. * src/help_tags.h
  6546. * src/option_processing.cc
  6547. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6548. Removed duplicate log message.
  6549. * src/AbstractCommand.cc (asyncResolveHostname)
  6550. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6551. Updated man page: --async-dns and --ftp-reuse-connection were added.
  6552. Changed -j option's default value from 5 to 1.
  6553. Added new examples using protocol auto detection feature.
  6554. Removed -T, -M usage where it can be omitted.
  6555. * doc/aria2c.1.txt
  6556. * doc/aria2c.1.html
  6557. * doc/aria2c.1.txt
  6558. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6559. Updated command-line usage text, so that it tells users that they
  6560. can specify any number of torrent files and metalink files in
  6561. command-line.
  6562. * src/version_usage.cc
  6563. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Changed the default value of -j option to 1.
  6565. * src/HelpItemFactory.cc
  6566. * src/option_processing.cc
  6567. * src/usage_text.h
  6568. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6569. Added the ability to reuse connection in FTP and it is enabled by
  6570. default. It can be disabled by --ftp-reuse-connection=false option.
  6571. * src/Command.cc
  6572. * src/DownloadCommand.cc
  6573. * src/FtpDownloadCommand.cc
  6574. * src/FtpDownloadCommand.h
  6575. * src/FtpFinishDownloadCommand.cc
  6576. * src/FtpFinishDownloadCommand.h
  6577. * src/FtpInitiateConnectionCommand.cc
  6578. * src/FtpNegotiationCommand.cc
  6579. * src/FtpNegotiationCommand.h
  6580. * src/HelpItemFactory.cc
  6581. * src/Makefile.am
  6582. * src/Makefile.in
  6583. * src/OptionHandlerFactory.cc
  6584. * src/option_processing.cc
  6585. * src/prefs.h
  6586. * src/usage_text.h
  6587. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Call Command::transitStatus() before calling Command::execute(),
  6589. so that the status change made in execute() is not cleared.
  6590. * src/DownloadEngine.cc
  6591. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Removed forward declaration of SocketCore class.
  6593. * src/HttpDownloadCommand.h
  6594. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  6596. in InitiateConnectionCommandFactory. They should be set only when
  6597. the protocol is HTTP or HTTPS.
  6598. * src/InitiateConnectionCommandFactory.cc
  6599. * src/RequestGroup.cc
  6600. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Fixed infinite loop in checksum checking.
  6602. * src/IteratableChecksumValidator.cc
  6603. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Set _supportsPersistentConnection to true by default.
  6605. * src/Request.cc
  6606. * src/RequestGroup.cc
  6607. * test/HttpRequestTest.cc
  6608. * test/RequestTest.cc
  6609. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6610. Added timeout to socket pool. The default timeout is 15 seconds,
  6611. which is the same value Apache uses.
  6612. * src/DownloadEngine.cc
  6613. * src/DownloadEngine.h
  6614. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6615. Fixed misuse of multimap::find()
  6616. * src/HttpHeader.cc
  6617. * test/HttpHeaderTest.cc
  6618. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6619. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  6620. option.
  6621. The asynchronous DNS is not capable of IPv6 yet.
  6622. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  6623. least for HTTP download.
  6624. * src/AbstractCommand.cc
  6625. * src/AbstractCommand.h
  6626. * src/AsyncNameResolver.cc
  6627. * src/AsyncNameResolver.h
  6628. * src/DHTEntryPointNameResolveCommand.cc
  6629. * src/DHTEntryPointNameResolveCommand.h
  6630. * src/DownloadEngine.cc
  6631. * src/DownloadEngine.h
  6632. * src/FtpInitiateConnectionCommand.cc
  6633. * src/FtpInitiateConnectionCommand.h
  6634. * src/HelpItemFactory.cc
  6635. * src/HttpInitiateConnectionCommand.cc
  6636. * src/HttpInitiateConnectionCommand.h
  6637. * src/InitiateConnectionCommand.cc
  6638. * src/InitiateConnectionCommand.h
  6639. * src/Makefile.am
  6640. * src/Makefile.in
  6641. * src/NameResolver.cc
  6642. * src/NameResolver.h
  6643. * src/OptionHandlerFactory.cc
  6644. * src/SocketCore.cc
  6645. * src/SocketCore.h
  6646. * src/Util.cc
  6647. * src/Util.h
  6648. * src/option_processing.cc
  6649. * src/prefs.h
  6650. * src/usage_text.h
  6651. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Updated man page: --quiet, --header were added.
  6653. --metalink-servers and --enable-http-keep-alive option were updated.
  6654. * doc/aria2c.1
  6655. * doc/aria2c.1.html
  6656. * doc/aria2c.1.txt
  6657. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6658. Enable HTTP keep-alive by default.
  6659. * src/HelpItemFactory.cc
  6660. * src/option_processing.cc
  6661. * src/usage_text.h
  6662. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6663. Disable http keep-alive if the remote server is not HTTP/1.1.
  6664. * src/HttpConnection.cc
  6665. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6666. Receive content body of 302 response so that the connection can be
  6667. reused later when http keep-alive is enabled.
  6668. * src/HttpNullDownloadCommand.cc
  6669. * src/HttpNullDownloadCommand.h
  6670. * src/HttpResponseCommand.cc
  6671. * src/HttpResponseCommand.h
  6672. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. const SharedHandle<Request> -> const SharedHandle<Request>&
  6674. * src/FtpDowndloadCommand.cc
  6675. * src/FtpDowndloadCommand.h
  6676. * src/HttpDownloadCommand.cc
  6677. * src/HttpDownloadCommand.h
  6678. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6679. Fixed the bug that the control file(.aria2 file) is not renamed
  6680. according to tryAutoFileRenaming().
  6681. tryAutoFileRenaming() was rewritten so that if both renamed file and
  6682. its control file exist, use them and continue download.
  6683. The old implementation didn't take into account of control file's
  6684. existence, so basically you couldn't continue download of renamed file.
  6685. * src/BtProgressInfoFile.h
  6686. * src/DefaultBtProgressInfoFile.cc
  6687. * src/DefaultBtProgressInfoFile.h
  6688. * src/NullProgressInfoFile.h
  6689. * src/RequestGroup.cc
  6690. * test/DefaultBtProgressInfoFileTest.cc
  6691. * test/MockBtProgressInfoFile.h
  6692. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6693. Change the default value of --metalink-servers option from `5' to `1'.
  6694. * src/HelpItemFactory.cc
  6695. * src/option_processing.cc
  6696. * src/usage_text.h
  6697. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Reimplemented transparent metalink using Accept request header.
  6699. * src/HttpRequest.cc
  6700. * src/HttpRequest.h
  6701. * src/HttpRequestCommand.cc
  6702. * src/Metalink2RequestGroup.cc
  6703. * src/RequestGroup.cc
  6704. * src/RequestGroup.h
  6705. * test/HttpRequestTest.cc
  6706. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6707. Bump up version number to 0.13.2a
  6708. * configure.ac
  6709. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6710. Updated configure.ac using the result of autoscan.
  6711. * configure.ac
  6712. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6713. Fixed compilation error without gcrypt/openssl.
  6714. * src/DownloadCommand.cc
  6715. * src/DownloadCommand.h
  6716. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6717. Reorganized version information so that it can be displayed in a
  6718. standard terminal screen without scrolling.
  6719. Removed http, ftp from Configuration section, because they are always
  6720. enabled.
  6721. * src/FeatureConfig.cc
  6722. * src/FeatureConfig.h
  6723. * src/main.cc
  6724. * src/messageDigest.cc
  6725. * src/messageDigest.h
  6726. * src/version_usage.cc
  6727. * test/FeatureConfigTest.cc
  6728. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6729. Masked user ID in log.
  6730. * src/FtpConnection.cc (sendUser)
  6731. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Removed query part from filename in HTTP download. The query part means
  6733. the substring after "?" in URL. Firefox seems do the same thing.
  6734. A query part is sometimes very long and not suitable to filename,
  6735. so I think it is better to remove it from filename.
  6736. * src/HttpRequest.cc
  6737. * src/HttpRequest.h
  6738. * src/Request.cc
  6739. * src/Request.h
  6740. * test/HttpRequestTest.cc
  6741. * test/RequestTest.cc
  6742. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. Rewritten Exception class. Throw exception object, not its pointer and
  6744. catch by reference, so that remove problematic delete operator for
  6745. catched exception.
  6746. * src/Exception.cc
  6747. * src/Exception.h
  6748. * test/ExceptionTest.cc
  6749. * src/*: All files throwing/catching exception.
  6750. * test/*: All files throwing/catching exception.
  6751. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Now auto protocol detection is enabled without -Z option.
  6753. But there is a important difference between with/without -Z optoin.
  6754. For example, if you type:
  6755. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  6756. then, aria2 interprets there are 3 request groups:
  6757. (1) http://host/file, http://mirror/file <-- multi-source download
  6758. (2) file1.torrent
  6759. (3) file2.metalink
  6760. On the other hand, if you invoke above command with -Z option, it is
  6761. interpreted as 4 request groups:
  6762. (1) http://host/file
  6763. (2) file1.torrent
  6764. (3) file2.metalink
  6765. (4) http://mirror/file
  6766. I think usually user don't mix multi-source URLs and torrent files, so
  6767. there is no big problem here.
  6768. * src/main.cc
  6769. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6770. Fixed the bug that causes segmentaion fault when reading XML containing
  6771. unescapsed character like '&'.
  6772. Also a modification was made which avoids adding unnecessary
  6773. characters stack and appending unused string.
  6774. * src/ExpatMetalinkProcessor.cc
  6775. * src/FileMetalinkParserState.h
  6776. * src/FilesMetalinkParserState.h
  6777. * src/FinMetalinkParserState.h
  6778. * src/HashMetalinkParserState.h
  6779. * src/InitialMetalinkParserState.h
  6780. * src/LanguageMetalinkParserState.h
  6781. * src/MetalinkMetalinkParserState.h
  6782. * src/MetalinkParserState.h
  6783. * src/MetalinkParserStateMachine.cc
  6784. * src/MetalinkParserStateMachine.h
  6785. * src/OSMetalinkParserState.h
  6786. * src/PieceHashMetalinkParserState.h
  6787. * src/PiecesMetalinkParserState.h
  6788. * src/ResourcesMetalinkParserState.h
  6789. * src/SizeMetalinkParserState.h
  6790. * src/SkipTagMetalinkParserState.h
  6791. * src/URLMetalinkParserState.h
  6792. * src/VerificationMetalinkParserState.h
  6793. * src/VersionMetalinkParserState.h
  6794. * src/XML2SAXMetalinkProcessor.cc
  6795. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6796. Added StringFormat class, which internally calls vasprintf.
  6797. operator<< is defined for this class, so it can be used with iostream
  6798. classes nicely. SimpleLogger and following functions are rewritten
  6799. using StringFormat class.
  6800. Besides, now Logger class's methods are non-const, many classes
  6801. that has a const Logger* as a member variable are modified to remove
  6802. const qualifier from the variable declaration.
  6803. * src/HelpItemFactory.cc
  6804. * src/Request.cc
  6805. * src/SimpleLogger.cc
  6806. * src/StringFormat.cc
  6807. * src/StringFormat.h
  6808. * src/Util.cc
  6809. * src/option_processing.cc
  6810. * src/version_usage.cc
  6811. * test/StringFormatTest.cc
  6812. * src/*.h: The classes that has const Logger* as a member variable.
  6813. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6814. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  6815. failed. Also fixed memory link when exception is thrown there.
  6816. * src/main.cc (AccRequestGroup)
  6817. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Added build-in "Accept-Features" support. For now only "metalink" is
  6819. used in this header field.
  6820. This "metalink" value is removed from the list when connecting URLs
  6821. fed by metalink file to avoid loop in "transparent" metlaink.
  6822. * src/HttpRequest.cc
  6823. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6824. header is also held in this variable. Also renamed setUserHeaders as
  6825. addHeader and it was rewritten to add header not just to clear the old
  6826. value.
  6827. * src/HttpRequestCommand.cc
  6828. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6829. from "Accept-Features" list.
  6830. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6831. default.
  6832. * src/RequestGroup.h
  6833. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6834. * src/a2functional.h: Included <string> because Concat class depends on
  6835. it.
  6836. * test/HttpRequestTest.cc
  6837. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6838. Added comment
  6839. * src/RequestGroup.cc (createNextCommand)
  6840. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. Capitalized METHOD_GET and METHOD_HEAD
  6842. * src/Request.cc
  6843. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6844. Added getDownloadResults() method
  6845. * src/RequestGroupMan.cc
  6846. * src/RequestGroupMan.h
  6847. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Fixed the bug that aria2 exits when commands is empty() but
  6849. _routineCommands are not.
  6850. * src/DownloadEngine.cc
  6851. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6852. Use the default value pulled from Option object in HelpItemFactory.
  6853. except options whose defualt value is embedded in a usage text.
  6854. * src/HelpItemFactory.cc
  6855. * src/HelpItemFactory.h
  6856. * src/option_processing.cc
  6857. * src/version_usage.cc
  6858. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6859. Added --quiet option to make aria2 quiet (no console output).
  6860. --quiet option is tagged with ADVANCED.
  6861. * src/HelpItemFactory.cc
  6862. * src/LogFactory.cc
  6863. * src/LogFactory.h
  6864. * src/MultiUrlRequestInfo.cc
  6865. * src/MultiUrlRequestInfo.h
  6866. * src/NullStatCalc.h: New class. This class prints nothing.
  6867. * src/OptionHandlerFactory.cc
  6868. * src/main.cc
  6869. * src/option_processing.cc
  6870. * src/prefs.h
  6871. * src/usage_text.h
  6872. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6874. * src/HelpItemFactory.cc (createHelpItems):
  6875. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Fixed compilation error in ExpatMetalinkProcessor.cc
  6877. * src/ExpatMetalinkProcessor.cc
  6878. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6879. Reuse socket if the origin server supports HTTP keep-alive and
  6880. --enable-http-keep-alive or --enable-http-pipelining is given.
  6881. The current implementation doesn't reuse the connections established
  6882. against proxy server.
  6883. * src/AbstractCommand.cc
  6884. * src/DownloadEngine.cc
  6885. * src/DownloadEngine.h
  6886. * src/HttpDownloadCommand.cc
  6887. * src/HttpInitiateConnectionCommand.cc
  6888. * src/HttpResponseCommand.cc
  6889. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6890. Rewritten HTTP keep-alive and pipelining routine.
  6891. * src/AbstractCommand.cc
  6892. * src/HttpConnection.cc
  6893. * src/HttpDownloadCommand.cc
  6894. * src/HttpRequest.cc
  6895. * src/HttpRequestCommand.cc
  6896. * src/HttpResponseCommand.cc
  6897. * src/Request.cc
  6898. * src/Request.h
  6899. * src/RequestGroup.cc
  6900. * test/HttpRequestTest.cc
  6901. * test/HttpResponseTest.cc
  6902. * test/RequestTest.cc
  6903. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Added missing setUserHeaders call
  6905. * src/HttpRequestCommand.cc
  6906. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6907. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6908. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6909. waste of time because it is more likey false.
  6910. * src/FileAllocationDispatcherCommand.cc (execute)
  6911. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6912. Now HTTP status and version are a member variable of HttpHeader.
  6913. HTTP status is processed as a string, not integer.
  6914. * src/AbstractProxyResponseCommand.cc
  6915. * src/HttpConnection.cc
  6916. * src/HttpHeader.cc
  6917. * src/HttpHeader.h
  6918. * src/HttpHeaderProcessor.cc
  6919. * src/HttpHeaderProcessor.h
  6920. * src/HttpResponse.cc
  6921. * src/HttpResponse.h
  6922. * test/HttpHeaderProcessorTest.cc
  6923. * test/HttpResponseTest.cc
  6924. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6925. Added --header option. You can specify any number of additional HTTP headers
  6926. like:
  6927. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6928. Unlike other commad-line option, you can use --header option multiple times.
  6929. * src/HelpItemFactory.cc
  6930. * src/HttpRequest.{cc, h}
  6931. * src/HttpRequestCommand.cc
  6932. * src/OptionHandlerFactory.cc
  6933. * src/OptionHandlerImpl.h
  6934. * src/option_processing.cc
  6935. * src/prefs.h
  6936. * src/usage_text.h
  6937. * test/HttpRequestTest.cc (testUserHeaders)
  6938. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6939. Eliminates the time lag between sequential downloads and commands in
  6940. the same RequestGroup.
  6941. In old implementation, aria2 occasionally waits 1 seconds before
  6942. executing next command or RequestGroup.
  6943. This is really a waste of time, and new implementation eliminates
  6944. this unnecessary time lag.
  6945. * src/AbstractCommand.cc
  6946. * src/AutoSaveCommand.cc
  6947. * src/CheckIntegrityCommand.cc
  6948. * src/Command.{cc, h}
  6949. * src/DownloadEngine.{cc, h}
  6950. * src/DownloadEngineFactory.cc
  6951. * src/FileAllocationCommand.cc
  6952. * src/FileAllocationDispatcherCommand.cc
  6953. * src/FillRequestGroupCommand.cc
  6954. * src/FtpInitiateConnectionCommand.cc
  6955. * src/HaveEraseCommand.cc
  6956. * src/HttpInitiateConnectionCommand.cc
  6957. * src/HttpResponseCommand.cc
  6958. * src/RealtimeCommand.cc
  6959. * src/RequestGroup.cc
  6960. * src/RequestGroupMan.cc
  6961. * src/StreamFileAllocationEntry.cc
  6962. * src/TimeBasedCommand.{cc, h}
  6963. * src/TimedHaltCommand.cc
  6964. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6965. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6966. keyword explicit and SharedHandle's default constructor initializes
  6967. its internal obj to null, old implementation initializes it using
  6968. obj's default constructor.
  6969. To assign null, write SharedHandle<T> x(...); x.reset();
  6970. TODO: test/SharedHandleTest.cc needs more tests.
  6971. * src/SharedHandle.h
  6972. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6973. Fixed type in man page.
  6974. * doc/aria2c.1.txt
  6975. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6976. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6977. * src/SimpleLogger.{cc, h}
  6978. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. Implemented auto protocol detection.
  6980. Now you can do:
  6981. aria2c -Z http://host/file file1.torrent file2.metalink
  6982. (Note: -Z option is required for auto protcol detection.)
  6983. Then aria2c downloads 3 files simultaneously:
  6984. 1. http://host/file
  6985. 2. file1.torrent <-- read local torrent file
  6986. 3. file2.metalink <-- read local Metalink file.
  6987. Same thing goes with -i option. Assume your uris.txt contans:
  6988. http://host/file
  6989. file1.torrent
  6990. file2.metalink
  6991. Then you can do: aria2c -i uris.txt
  6992. (Note: -Z option is not needed if -i option is given.)
  6993. * src/main.cc
  6994. * src/ProtocolDetector.{cc, h}
  6995. * test/ProtocolDetectorTest.cc
  6996. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6997. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6998. installed
  6999. * src/ARC4Encryptor.h
  7000. * src/ARC4Decryptor.h
  7001. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7002. Renamed argument from 'errno' to 'err', since errno is confused with
  7003. errno defined in errno.h.
  7004. * src/LibgcryptARC4Decryptor.h
  7005. * src/LibgcryptARC4Context.h
  7006. * src/LibgcryptDHKeyExchange.h
  7007. * src/LibgcryptARC4Encryptor.h
  7008. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7009. Rewritten choking algorithm.
  7010. * src/PeerChokeCommand.{cc, h}
  7011. * src/BtInterestedMessage.cc
  7012. * src/PeerSessionResource.{cc, h}
  7013. * src/DefaultPeerStorage.{cc, h}
  7014. * src/BtNotInterestedMessage.cc
  7015. * src/DefaultBtMessageDispatcher.{cc, h}
  7016. * src/BtMessageDispatcher.h
  7017. * src/Peer.{cc, h}
  7018. * src/BtLeecherStateChoke.{cc, h}
  7019. * src/BtSetup.cc
  7020. * src/BtSeederStateChoke.{cc, h}
  7021. * src/PeerStorage.h
  7022. * test/MockPeerStorage.h
  7023. * test/MockBtMessageDispatcher.h
  7024. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7025. Fixed compilation error on x84-64 platform.
  7026. * src/AuthConfig.cc: Included ostream.
  7027. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7028. Rewritten getBasename() and getDirname(), without standard library
  7029. basename(), dirname().
  7030. * src/File.cc
  7031. * test/FileTest.cc
  7032. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7033. Added Simplified Chinese translation. Also updated the following
  7034. translations: Polish, Dutch, German. Great thanks to all translators.
  7035. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7036. Suppress content-range error when 'Content-Range' response header
  7037. doesn't contains bytes-unit specifier 'bytes'
  7038. * src/HttpHeader.cc (getRange)
  7039. * test/HttpHeaderTest.cc
  7040. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7041. Fixed compilation error with g++-4.3
  7042. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Added missing include files for MinGW
  7044. * test/HttpHeaderProcessorTest.cc
  7045. * test/DHTRoutingTableSerializerTest.cc
  7046. * test/DHTRoutingTableDeserializerTest.cc
  7047. * test/UriListParserTest.cc
  7048. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7049. Now download line is printed nicely with no garbage at the end of
  7050. line. I use ioctl to get the columns of terminal.
  7051. If stdout is redirected to another device, instead of carriage return,
  7052. end of line '\n' character is used. This is feature request#1909659
  7053. * src/ConsoleStatCalc.cc (calculateStat)
  7054. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7055. Included a2time.h
  7056. * src/DHTMessageDispatcher.h
  7057. * src/DHTMessageEntry.h
  7058. * src/DHTReplaceNodeTask.h
  7059. * src/DHTMessageTracker.h
  7060. * src/Util.h
  7061. * src/CookieBox.h
  7062. * src/SocketCore.h
  7063. * src/DefaultBtMessageDispatcher.h
  7064. * src/SocketCore.cc
  7065. * src/Util.cc
  7066. * src/DHTPingTask.h
  7067. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7068. Fixed high memory footprint when DHT is enabled.
  7069. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  7070. queued than it is processed and the queue is getting longer. As a
  7071. consequence, momory usage is increased.
  7072. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  7073. replacement cache in DHTBucket which is described in Kademlia paper.
  7074. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  7075. DHTReplaceNodeTask.
  7076. * src/DHTBucket.{h, cc}
  7077. (cacheNode): New function.
  7078. (getCachedNodes): New function.
  7079. (dropNode): Push back cached node to _nodes.
  7080. * test/DHTBucketTest.cc
  7081. (testCacheNode): New test
  7082. (testDropNode): New test
  7083. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  7085. the unused 4KB memory when ssl is not used.
  7086. * src/SocketCore.cc
  7087. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7088. Added summary log for peer announce storage.
  7089. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  7090. Removed cast
  7091. * src/DefaultPeerStorage.cc (addPeer)
  7092. Log exception message
  7093. * src/DHTMessageTracker.cc (handleTimeout)
  7094. Fixed casting
  7095. * test/HttpRequestTest.cc
  7096. * test/MetalinkProcessorTest.cc
  7097. * test/PieceTest.cc
  7098. * test/MetalinkEntryTest.cc
  7099. * test/SequenceTest.cc
  7100. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. * src/ParameterizedStringParser.cc (createLoop):
  7102. Removed unused variable sstep.
  7103. * src/AlphaNumberDecorator.h (decode): Rewritten.
  7104. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7105. * src/Util.{h, cc}
  7106. (parseUInt): New function.
  7107. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  7108. The actual range is uint32_t.
  7109. * test/UtilTest.cc
  7110. * src/ParameterizedStringParser.cc:
  7111. Use Util::parseUInt() for loop variables.
  7112. * test/ParameterizedStringParserTest.cc
  7113. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  7114. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7115. Rewritten the functions for binding port.
  7116. * src/DHTConnectionImpl.{h, cc}
  7117. * src/PeerListenCommand.{h, cc}
  7118. * src/DHTSetup.cc
  7119. * src/BtSetup.cc
  7120. * test/DHTConnectionImplTest.cc
  7121. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7122. type cleanup for allmost all remaining files.
  7123. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7124. Type clarification
  7125. * src/PeerSessionResource.{h, cc}
  7126. * src/DefaultPieceStorage.{h, cc}
  7127. * src/Peer.{h, cc}
  7128. * test/PeerSessionResourceTest.cc
  7129. Use div function
  7130. * src/BtPieceMessage.cc (erasePieceOnDisk)
  7131. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Type clarification
  7133. * src/DefaultPeerStorage.{h, cc}
  7134. * test/DefaultPeerStorageTest.cc
  7135. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7136. Type clarification: size_t for length or size, uint64_t for file
  7137. length, off_t for file offset.
  7138. * src/DefaultBtProgressInfoFile.cc
  7139. * src/DefaultBtContext.{h, cc}
  7140. * src/DefaultBtInteractive.cc
  7141. * src/DownloadCommand.{h, cc}
  7142. * src/IteratableChunkChecksumValidator.{h, cc}
  7143. * src/SegmentMan.{h, cc}
  7144. * src/SingleFileDownloadContext.{h, cc}
  7145. * src/IteratableChecksumValidator.{h, cc}
  7146. * src/BtContext.h
  7147. * src/IteratableValidator.h
  7148. * src/DownloadContext.h
  7149. * test/SingleFileDownloadContextTest.cc
  7150. * test/DefaultBtContextTest.cc
  7151. * test/MockBtContext.h
  7152. * test/Metalink2RequestGroupTest.cc
  7153. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Type clarification: size_t for length or size, uint64_t for file
  7155. length, off_t for file offset.
  7156. * src/PiecedSegment.cc
  7157. * src/GrowSegment.h
  7158. * src/DefaultBtRequestFactory.h
  7159. * src/DefaultBtProgressInfoFile.cc
  7160. * src/UnknownLengthPieceStorage.h
  7161. * src/DefaultPieceStorage.cc
  7162. * src/UnknownLengthPieceStorage.cc
  7163. * src/DefaultBtInteractive.cc
  7164. * src/GrowSegment.cc
  7165. * src/BitfieldMan.h
  7166. * src/DownloadCommand.cc
  7167. * src/BtRequestFactory.h
  7168. * src/PiecedSegment.h
  7169. * src/DefaultPieceStorage.h
  7170. * src/Piece.cc
  7171. * src/DefaultBtRequestFactory.cc
  7172. * src/PieceStorage.h
  7173. * src/Segment.h
  7174. * src/Piece.h
  7175. * src/BitfieldMan.cc
  7176. * src/Util.cc
  7177. * test/DefaultBtProgressInfoFileTest.cc
  7178. * test/DefaultPieceStorageTest.cc
  7179. * test/MockPieceStorage.h
  7180. * test/BtRequestMessageTest.cc
  7181. * test/DefaultBtMessageDispatcherTest.cc
  7182. * test/BitfieldManTest.cc
  7183. * test/GrowSegmentTest.cc
  7184. * test/PieceTest.cc
  7185. * test/SegmentTest.cc
  7186. * test/SegmentManTest.cc
  7187. * test/DefaultBtRequestFactoryTest.cc
  7188. * test/MockBtRequestFactory.h
  7189. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7190. Fixed compilation error with --disable-nls
  7191. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  7192. in gettext.h causes the problem.
  7193. * src/common.h
  7194. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. Removed subPiece related functions.
  7196. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  7197. * src/DefaultPieceStorage.{h, cc}
  7198. * test/PieceTest.cc
  7199. * test/DefaultPieceStorageTest.cc
  7200. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Use unsigned char for data store.
  7202. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7203. Bump up version number to 0.13.0+1
  7204. * configure.ac
  7205. * Release 0.13.0+1
  7206. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7207. Changed inactive connection timeout to 120.
  7208. To accept more mulually interested peers, disconnect peer when there
  7209. is no interest between us after certain time passed.
  7210. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  7211. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7212. Fixed the bug that aria2 only uses first dns server in resolv.conf
  7213. when compiled with async DNS support.
  7214. * src/DownloadEngine.cc
  7215. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  7216. value '10' will be a little bit short when some DNS servers are
  7217. offline and several DNS servers are tried. It should be configured
  7218. by command-line option.
  7219. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. Merged Ross's mingw patch.
  7221. * src/DHTRoutingTableDeserializer.cc
  7222. * src/DHTRoutingTableSerializer.cc
  7223. * src/Platform.{h, cc}
  7224. * src/timegm.h
  7225. * src/gettimeofday.h
  7226. * src/getaddrinfo.h
  7227. * src/SocketCore.h
  7228. * src/common.h
  7229. * src/inet_aton.h
  7230. * src/DownloadEngine.h
  7231. * src/gai_strerror.h
  7232. * src/a2netcompat.h
  7233. * configure.ac
  7234. * configure
  7235. * aclocal.m4
  7236. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7237. Included missing iostream.
  7238. * test/AllTest.cc
  7239. * test/BtDependencyTest.cc
  7240. * test/BtExtendedMessageTest.cc
  7241. * test/DHTConnectionImplTest.cc
  7242. * test/DHTMessageFactoryImplTest.cc
  7243. * test/DHTMessageTrackerEntryTest.cc
  7244. * test/DHTNodeTest.cc
  7245. * test/DHTRoutingTableSerializerTest.cc
  7246. * test/DefaultBtAnnounceTest.cc
  7247. * test/DefaultBtContextTest.cc
  7248. * test/DefaultBtMessageFactoryTest.cc
  7249. * test/DefaultExtensionMessageFactoryTest.cc
  7250. * test/HandshakeExtensionMessageTest.cc
  7251. * test/HttpResponseTest.cc
  7252. * test/MetalinkProcessorTest.cc
  7253. * test/MultiFileAllocationIteratorTest.cc
  7254. * test/SocketCoreTest.cc
  7255. * test/UTPexExtensionMessageTest.cc
  7256. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7257. Reorganized includes.
  7258. * src/NameResolver.cc
  7259. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7260. Fixed compilation error without ares/c-ares
  7261. * src/NameResolver.h:
  7262. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7263. Added a test for large file.
  7264. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  7265. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7266. Fixed the bug that file size is ignored if size > INT32_MAX
  7267. * src/SizeMetalinkParserState.cc (endElement):
  7268. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7269. Bump up version number to 0.13.0
  7270. * configure.ac
  7271. * Release 0.13.0
  7272. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7273. Updated Makfefile.am to make 'make dist' work.
  7274. Now packaged filename is aria2c-VERSION.tar.bz2.
  7275. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  7276. Added LICENSE.OpenSSL to dist_noinst_DATA.
  7277. Large file support is now configured by configure script.
  7278. * configure.ac
  7279. Removed unsused source files
  7280. * src/
  7281. * test/
  7282. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  7283. Peer.h and BtContext.h respectively.
  7284. * src/Peer.h
  7285. * src/BtContext.h
  7286. Updated translations.
  7287. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  7288. translations. Great thanks to all translators!;)
  7289. * po/*.{po, gmo}
  7290. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  7292. statically declared sha1 MessageDigestContext.
  7293. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  7294. initialization of short-lived MessageDigestContext.
  7295. * src/MessageDigestHelper.{h, cc}
  7296. * src/main.cc
  7297. Now DownloadCommand has a reference to MessageDigestContext to avoid
  7298. the initialization of MessageDigestContext every time in validating
  7299. chunk checksum.
  7300. * src/DownloadCommand.{h, cc}
  7301. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Add a file descriptor which connected to fast peer(latency<1500) to
  7303. select(). This change reduced CPU load.
  7304. * src/PeerInteractionCommand.cc
  7305. * src/DefaultBtInteractive.{h, cc}
  7306. * src/BtInteractive.h
  7307. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7308. Fixed the previous insufficient fix for possible busy loop.
  7309. * src/MSEHandshake.cc (identifyHandshakeType)
  7310. Removed unused functions.
  7311. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  7312. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. Fixed possible busy loop if first 20 bytes are not received for a few
  7314. minutes.
  7315. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  7316. * src/ReceiverMSEHandshakeCommand.cc
  7317. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7318. Fixed compilation error
  7319. * src/ExpatMetalinkProcessor.cc
  7320. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7321. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  7322. * src/DHTBucket.cc
  7323. Removed unnecessary cast.
  7324. * src/HandshakeExtensionMessage.cc
  7325. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7326. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  7327. is missing.
  7328. * src/OptionHandlerFactory.cc
  7329. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Fixed the bug that HAVE message is not sent for a piece they are
  7331. downloaded fom http/ftp server before any BitTorrent handshake is done
  7332. with peers.
  7333. * src/DefaultBtInteractive.cc
  7334. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7335. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  7336. * src/Makefile.am
  7337. * src/Makefile.in
  7338. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7339. Updated README. Added html version of README and man page.
  7340. * README
  7341. * README.html
  7342. * readme2html: Shell script to generate README.html from README using
  7343. asciidoc.
  7344. * doc/aria2c.1.html
  7345. * doc/makeman: Added the line to generate aria2c.1.html
  7346. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7347. Fixed offset calculation.
  7348. * src/LibgcryptDHKeyExchange.h (computeSecret)
  7349. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7350. Rewritten itos and uitos using template. llitos and ullitos are
  7351. replaced with itos and uitos respectively.
  7352. * src/Util.{h, cc}
  7353. * test/UtilTest.cc
  7354. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7355. Fixed the bug that DH key exchange sometimes fails due to bad handling
  7356. of the number of bytes required for storing public key and shared
  7357. secret.
  7358. * src/LibgcryptDHKeyExchange.h
  7359. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  7360. * src/MSEHandshake.cc
  7361. * test/DHKeyExchangeTest.cc
  7362. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7363. Removed since they are not used.
  7364. * src/Xml2MetalinkProcessor.{h, cc}
  7365. * src/Socket.cc
  7366. * src/SegmentSplitter.{h, cc}
  7367. * test/Xml2MetalinkProcessorTest.cc
  7368. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7369. Fixed the bug that prevents aria2 from stopping other than by pressing
  7370. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  7371. option. aria2 doesn't stop even after --seed-time is satisfied and
  7372. continues to output blank lines in the console.
  7373. * src/ReceiverMSEHandshakeCommand.cc
  7374. * src/PeerReceiveHandshakeCommand.cc
  7375. * src/PeerListenCommand.cc
  7376. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7377. Bump up version number to 0.13.0rc
  7378. * configure.ac
  7379. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. Updated man page and some usage text.
  7381. * doc/aria2c.1.txt
  7382. * src/usage_text.h
  7383. * po/*.{po, gmo}
  7384. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Updated translations. Added Finnish and Hebrew translations.
  7386. Great thanks to all translators!
  7387. * po/*.{po, gmo}
  7388. * po/LINGUAS
  7389. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7390. Log more detailed information about each message.
  7391. * src/DHTQueryMessage.{h, cc}
  7392. * src/DHTGetPeersMessage.{h, cc}
  7393. * src/DHTFindNodeReplyMessage.{h, cc}
  7394. * src/DHTGetPeersReplyMessage.{h, cc}
  7395. * src/DHTAnnouncePeerMessage.{h, cc}
  7396. * src/DHTResponseMessage.{h, cc}
  7397. * src/DHTFindNodeMessage.{h, cc}
  7398. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Use constants defined in prefs.h
  7400. * src/option_processing.cc
  7401. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7402. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  7403. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. Make room for future enchancements for IPv6 addresses.
  7405. Bump up version number of dht.dat file format to 2.
  7406. Not compatible with previous version.
  7407. * src/DHTRoutingTableSerializer.cc
  7408. * src/DHTRoutingTableDeserializer.cc
  7409. * test/DHTRoutingTableSerializerTest.cc
  7410. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7411. Added handling for the return values from
  7412. PeerMessageUtil::createcompact().
  7413. * src/DefaultBtContext.cc (computeFastSet):
  7414. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7415. Fixed abort when peer's ip address is IPv4-mapped address.
  7416. * src/DefaultBtContext.cc (computeFastSet)
  7417. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  7418. cannot handle IPv4-mapped addresses.
  7419. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  7420. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7421. Proper return value handling for OpenSSL functions.
  7422. * src/LibsslDHKeyExchange.h
  7423. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Random bytes generation using libgcrypt and OpenSSL.
  7425. * src/DHTUtil.{h, cc}
  7426. * test/DHTUtilTest.cc
  7427. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7428. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  7429. received.
  7430. * src/DHTMessageReceiver.cc (receiveMessage)
  7431. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7432. Fixed the bug that a return code is always 0. BUG#1897704
  7433. If error occurred during the download or there exist unfinished
  7434. downloads, aria2 returns with code 1.
  7435. * src/RequestGroupMan.{h, cc}
  7436. * src/MultiUrlRequestInfo.{h, cc}
  7437. * src/main.cc
  7438. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7439. IPv6 support for SocketCore class.
  7440. TODO: In SocketCore::establishConnection(), this is insufficient to
  7441. determin the failure of connect() here because the socket is
  7442. non-blocking state. The next addresses should be tried after select().
  7443. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  7444. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  7445. instead which address family independent.
  7446. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  7447. information in a compact peer format which is for IPv4 only.
  7448. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  7449. this is a spec of BitTorrent protocol.
  7450. * src/SocketCore.{h, cc}
  7451. * src/PeerMessageUtil.cc
  7452. * test/SocketCoreTest.cc
  7453. * test/PeerMessageUtilTest.cc
  7454. * test/DHTConnectionImplTest.cc
  7455. Handle IPv4-mapped addresses.
  7456. * src/DHTNode.cc: Now identity is determined by node id.
  7457. * src/DHTMessageTrackerEntry.cc
  7458. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  7459. should handle it.
  7460. * src/DHTRoutingTableDeserializer.cc
  7461. * src/DHTMessageFactoryImpl.cc
  7462. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Change the unit of --stop option from a minute to a second.
  7464. * src/usage_text.h
  7465. * src/DownloadEngineFactory.cc
  7466. * src/OptionHandlerFactory.cc
  7467. * src/message.h
  7468. * src/TimedHaltCommand.cc
  7469. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7470. Make listening socket non-block mode.
  7471. * src/FtpConnection.cc
  7472. * src/FtpNegotiationCommand.{h, cc}
  7473. * src/PeerListenCommand.cc
  7474. Fixed the bug that cause slow ftp negotiation.
  7475. * src/FtpNegotiationCommand.{h, cc}
  7476. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7477. Added basic tag to --enable-dht, --dht-listen-port option.
  7478. * src/HelpItemFactory.cc (createHelpItems)
  7479. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7480. Updated text.
  7481. * src/usage_text.h
  7482. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  7484. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7485. Determin _threadtholdSpeed in each constructor for
  7486. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  7487. * src/ActivePeerConnectionCommand.{h, cc}
  7488. * src/PeerReceiveHandshakeCommand.{h, cc}
  7489. * src/BtSetup.cc
  7490. * src/BtConstants.h
  7491. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7492. Added --bt-min-crypto-level and --bt-require-crypto options.
  7493. * src/OptionHandlerFactory.cc
  7494. * src/MSEHandshake.cc
  7495. * src/HelpItemFactory.cc
  7496. * src/option_processing.cc
  7497. * src/ReceiverMSEHandshakeCommand.cc
  7498. * src/prefs.h
  7499. * src/DefaultBtAnnounce.cc
  7500. * src/InitiatorMSEHandshakeCommand.cc
  7501. * src/usage_text.h
  7502. * test/MSEHandshakeTest.cc
  7503. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Bump version number to 0.13.0b
  7505. * configure.ac
  7506. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. Updated doc.
  7508. * src/MessageDigestHelper.h:
  7509. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7510. Use raw message digest as a token instead of its hexadecimal
  7511. representation.
  7512. * src/DHTTokenTracker.cc (generateToken)
  7513. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7514. Added Message Stream Encryption(MSE) support.
  7515. Currently, aria2 accepts incoming connections with Obfuscation Header
  7516. and legacy BitTorrent Header and establishes connections with
  7517. Obfuscation Header first and if failed then retry with legacy
  7518. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  7519. choose ARC4. The new option to change the default behavior is planned.
  7520. For tracker extension, "supportcrypto=1" is added statically.
  7521. * src/PeerInitiateConnectionCommand.{h, cc}
  7522. * src/PeerConnection.{h, cc}
  7523. * src/HandleRegistry.h
  7524. * src/SocketCore.h
  7525. * src/PeerReceiveHandshakeCommand.{h, cc}
  7526. * src/BtRegistry.{h, cc}
  7527. * src/PeerListenCommand.cc
  7528. * src/InitiatorMSEHandshakeCommand.{h, cc}
  7529. * src/ReceiverMSEHandshakeCommand.{h, cc}
  7530. * src/MSEHandshake.{h, cc}
  7531. * src/ARC4Encryptor.h
  7532. * src/ARC4Decryptor.h
  7533. * src/LibgcryptARC4Encryptor.h
  7534. * src/LibgcryptARC4Decryptor.h
  7535. * src/LibgcryptARC4Context.h
  7536. * src/LibsslARC4Encryptor.h
  7537. * src/LibsslARC4Decryptor.h
  7538. * src/LibsslARC4Context.h
  7539. * src/DHKeyExchange.h
  7540. * src/LibgcryptDHKeyExchange.h
  7541. * src/LibsslDHKeyExchange.h
  7542. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  7543. * test/DefaultBtAnnounceTest.cc
  7544. * test/ARC4Test.cc
  7545. * test/DHKeyExchangeTest.cc
  7546. Removed prepareForRetry() because it is not used.
  7547. * src/PeerAbstractCommand.{h, cc}
  7548. * src/PeerInteractionCommand.{h, cc}
  7549. * src/PeerInitiateConnectionCommand.{h, cc}
  7550. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Added the ability to load nodes from torrent file. These nodes are
  7552. added to the routing table when downloading that torrent.
  7553. * src/BtContext.h
  7554. * src/DefaultBtContext.{h, cc}
  7555. * src/DHTSetup.cc
  7556. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  7557. hostname and port pair, and resolves all of them.
  7558. * src/NameResolver.{h, cc}: Added reset().
  7559. * src/RequestGroup.cc
  7560. * test/DefaultBtContextTest.cc
  7561. * test/MockBtContext.h
  7562. Removed assert() from DefaultBtContext and throw exception instead.
  7563. * src/DefaultBtContext.cc
  7564. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Fixed segmentation fault bug when exiting if dht is disabled.
  7566. * src/RequestGroup.cc
  7567. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7568. Fixed typo in log message and define the message in message.h
  7569. * src/TimedHaltCommand.cc
  7570. * src/message.h
  7571. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7572. Included RecoverableException.h to fix compilation error.
  7573. * test/DHTMessageFactoryImplTest.cc
  7574. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  7576. * test/DHTPingMessageTest.cc
  7577. * test/DHTGetPeersMessageTest.cc
  7578. * test/DHTFindNodeMessageTest.cc
  7579. * test/DHTAnnouncePeerMessageTest.cc
  7580. * test/MockDHTMessage.h
  7581. * test/MockDHTMessageFactory.h
  7582. * test/MockDHTMessageDispatcher.h: New class.
  7583. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  7585. virtual.
  7586. * src/DHTMessageDispatcher.h
  7587. * src/DHTMessageDispatcherImpl.{h, cc}
  7588. * src/DHTSetup.cc
  7589. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7590. Adding handling of DHT error message. Just log error message and
  7591. throw exception.
  7592. * src/DHTMessageFactoryImpl.cc
  7593. * test/DHTMessageFactoryImplTest.cc
  7594. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7595. Added handling of dynamic cast failure.
  7596. * src/DHTNodeLookupTask.cc
  7597. * src/DHTPeerLookupTask.cc
  7598. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7599. Added the ability to stop aria2 itself when given time has passed
  7600. from start. Use --stop option to specify time in minutes.
  7601. When 0 is given, this feature is disabled.
  7602. * src/OptionHandlerFactory.cc
  7603. * src/TimeBasedCommand.h: Make _interval protected scope.
  7604. * src/HelpItemFactory.cc
  7605. * src/option_processing.cc
  7606. * src/prefs.h
  7607. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  7608. before calling RequestGroupMan::fillRequestGroupFromReserver().
  7609. Without this modification, the result list shows "ERR" when aria2 is
  7610. stopped by --stop option. It should be "INPR".
  7611. * src/DownloadEngine.{h, cc}
  7612. * src/DownloadEngineFactory.cc
  7613. * src/usage_text.h
  7614. * src/TimedHaltCommand.{h, cc}: New class.
  7615. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7616. Bootstrap through node added by port message.
  7617. Currently bootstrap is executed if the number of buckets in routing
  7618. table is 1.
  7619. * src/BtPortMessage.{h, cc}
  7620. * src/DefaultBtMessageFactory.{h, cc}
  7621. * src/PeerInteractionCommand.cc
  7622. * test/BtPortMessageTest.cc
  7623. * test/MockDHTTask.h
  7624. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7625. Extract the Peer class's member variables, which are only needed after
  7626. PeerInteractionCommand, into PeerSessionResource class.
  7627. This class is instantiated in PeerInteractionCommand class's ctor and
  7628. released in its dtor.
  7629. This will make Peer class lightweight and uses less memory for peers
  7630. which are not connected and wait in the queue.
  7631. * src/PeerChokeCommand.cc
  7632. * src/PeerSessionResource.{h, cc}
  7633. * src/PeerInteractionCommand.cc
  7634. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  7635. * src/DefaultBtInteractive.cc
  7636. * src/BtPieceMessage.cc
  7637. * src/BtInterestedMessage.cc
  7638. * src/BtUnchokeMessage.cc
  7639. * src/DefaultPeerStorage.{h, cc}
  7640. * src/PeerInitiateConnectionCommand.cc
  7641. * src/ActivePeerConnectionCommand.cc
  7642. * src/BtNotInterestedMessage.cc
  7643. * src/DefaultBtMessageDispatcher.cc
  7644. * src/BtChokeMessage.cc
  7645. * src/BtRequestMessage.cc
  7646. * src/Peer.{h, cc}
  7647. * src/BtRegistry.h
  7648. * src/TrackerWatcherCommand.cc
  7649. * src/PeerReceiveHandshakeCommand.cc
  7650. * test/BtExtendedMessageTest.cc
  7651. * test/BtAllowedFastMessageTest.cc
  7652. * test/BtCancelMessageTest.cc
  7653. * test/DefaultPieceStorageTest.cc
  7654. * test/BtBitfieldMessageTest.cc
  7655. * test/BtHaveMessageTest.cc
  7656. * test/BtNotInterestedMessageTest.cc
  7657. * test/BtRequestMessageTest.cc
  7658. * test/PeerSessionResourceTest.cc
  7659. * test/DefaultBtMessageDispatcherTest.cc
  7660. * test/PeerTest.cc
  7661. * test/BtInterestedMessageTest.cc
  7662. * test/BtRejectMessageTest.cc
  7663. * test/BtChokeMessageTest.cc
  7664. * test/DefaultPeerStorageTest.cc
  7665. * test/BtHaveNoneMessageTest.cc
  7666. * test/BtHaveAllMessageTest.cc
  7667. * test/DefaultExtensionMessageFactoryTest.cc
  7668. * test/BtUnchokeMessageTest.cc
  7669. * test/DefaultBtMessageFactoryTest.cc
  7670. * test/HandshakeExtensionMessageTest.cc
  7671. * test/UTPexExtensionMessageTest.cc
  7672. * test/DefaultBtRequestFactoryTest.cc
  7673. * test/BtPieceMessageTest.cc
  7674. Removed typedef PeerStats.
  7675. * src/PeerStat.h
  7676. * src/SegmentMan.cc
  7677. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Added std namespace to copy, remove_copy, back_inserter,
  7679. front_inserter.
  7680. * src/RequestGroupMan.cc
  7681. * src/DefaultPieceStorage.cc
  7682. * src/StreamFileAllocationEntry.cc
  7683. * src/BtFileAllocationEntry.cc
  7684. * src/RequestGroup.cc
  7685. * src/MetalinkEntry.cc
  7686. * src/DelegatingPeerListProcessor.cc
  7687. * src/DefaultBtRequestFactory.cc
  7688. * src/DefaultBtMessageDispatcher.cc
  7689. * src/version_usage.cc: Included <algorithm>
  7690. * src/main.cc
  7691. * src/MetalinkParserController.cc
  7692. * src/DefaultBtContext.cc
  7693. * src/DownloadEngineFactory.cc
  7694. * src/a2algo.h
  7695. Removed.
  7696. * test/StreamUriListParserTest.cc
  7697. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7698. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  7699. ActivePeerConnectionCommand when it is given and
  7700. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  7701. * src/ActivePeerConnectionCommand.{h, cc}
  7702. * src/BtSetup.cc
  7703. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Only add socket to DownloadEngine's select routine when peer or
  7705. localhost is unchoked and interested. This lowers CPU usage a
  7706. little bit.
  7707. * src/PeerInteractionCommand.cc
  7708. * src/PeerAbstractCommand.{h, cc}
  7709. * src/BtInteractive.h
  7710. * src/DefaultBtInteractive.{h, cc}
  7711. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7712. Revert previous change because get_peers message is needed for
  7713. announce_peer anyway.
  7714. * src/DHTGetPeersCommand.cc
  7715. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7716. Request peers thought DHT only when download hasn't finished.
  7717. * src/DHTGetPeersCommand.cc
  7718. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  7720. * src/DHTBucketRefreshTask.{h, cc}
  7721. * src/DHTSetup.cc
  7722. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  7724. standard classes.
  7725. Included string.h where mem* function are used.
  7726. Added namespace aria2.
  7727. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7728. Create directory before saving DHT routing table.
  7729. Now ios::failure is now handled properly.
  7730. * src/DHTAutoSaveCommand.cc
  7731. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7732. Removed unnecessary cerr.
  7733. * src/DownloadEngine.cc
  7734. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7735. Catch exception inside DHTMessageReceiver::receiveMessage().
  7736. Log unknown message.
  7737. * src/DHTMessageReceiver.{h, cc}
  7738. * src/DHTMessageFactory.h
  7739. * src/DHTMessageFactoryImpl.{h, cc}
  7740. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  7741. * src/DHTInteractionCommand.cc
  7742. * src/DHTUnknownMessage.{h, cc}
  7743. * test/DHTUnknownMessageTest.cc
  7744. * test/MockDHTMessageFactory.h
  7745. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7746. Commented out ip address comparison because a host can have multiple
  7747. ip addresses and it is hard to predict the hostname is resolved into
  7748. which one.
  7749. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  7750. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7751. * po/Makefile.in: Removed since this is generated by configure.
  7752. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7753. Fixed compiler warning about redefinition of SIZE_MAX.
  7754. Use common.h instead of config.h directly here.
  7755. * src/Platform.{h, cc}
  7756. The check of ENABLE_NLS is made in gettext.h, so it is not required
  7757. here.
  7758. * common.h
  7759. 2008-02-02 gettextize <[email protected]>
  7760. Updated gettext related files.
  7761. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  7762. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  7763. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7764. Added DHT functionality, compatible with mainline.
  7765. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  7766. You may need to specify entry point to DHT network using
  7767. --dht-entry-point. DHT uses UDP port to listen incoming message.
  7768. Use --dht-listen-port to specify port number. Make sure that your
  7769. firewall configuration can pass through UDP traffic to the port.
  7770. The routing table is saved in $HOME/.aria2/dht.dat.
  7771. * src/DHT*
  7772. * src/BNode.{h, cc}
  7773. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  7774. particular torrent.
  7775. * src/Data.cc: Rewritten ctor.
  7776. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  7777. --dht-entry-point.
  7778. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  7779. * src/RequestGroup.cc: Initialize DHT functionality. When download
  7780. ends, remove BtContext from DHTPeerAnnounceStorage.
  7781. * src/BtPortMessage.{h, cc}: Rewritten.
  7782. * src/message.h
  7783. * src/OptionHandlerImpl.cc
  7784. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  7785. --dht-entry-point.
  7786. * src/Dictionary.{h, cc} (remove): New function.
  7787. * src/prefs.h
  7788. * src/DefaultBtMessageFactory.h
  7789. * src/BtHandshakeMessage.cc
  7790. * src/ActivePeerConnectionCommand.cc
  7791. * src/SocketCore.{h, cc}: Added datagram socket support.
  7792. * src/DefaultBtMessageFactory.cc
  7793. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  7794. Create DHT commands.
  7795. * src/BtMessageFactory.h
  7796. * src/PeerMessageUtil.{h, cc}
  7797. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7798. Fixed the bug that log file is not written when configuration file doesn't exist.
  7799. This is caused by using Logger class before LogFactory is not configured.
  7800. BUG #1875079
  7801. * src/option_processing.cc
  7802. Warning message "configuration doesn't exist" is only printed when --conf is
  7803. given.
  7804. * src/option_processing.cc
  7805. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  7807. ShaVisitor is now deprecated and slated to be removed.
  7808. * src/DefaultBtContext.cc
  7809. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7810. Externalize message to message.h
  7811. * src/Platform.cc
  7812. * src/message.h
  7813. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7814. Set default domain and default path to cookie.
  7815. * src/HttpResponse.cc
  7816. * src/CookieBox.{h, cc}
  7817. * src/CookieParser.{h, cc}
  7818. * test/CookieParserTest.cc
  7819. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7820. Added --no-conf and --conf-path command-line option.
  7821. --no-conf option disables loading aria2.conf file.
  7822. --conf-path option changes the configuration file path. The default
  7823. file path is $HOME/.aria2/aria2.conf
  7824. Added a warning message when the configuration file is not found.
  7825. * src/HelpItemFactory.cc
  7826. * src/option_processing.cc
  7827. * src/prefs.h
  7828. * src/usage_text.h
  7829. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Added the message to inform users that other help categories are
  7831. available in -h option.
  7832. * src/version_usage.cc
  7833. * src/TagContainer.{h, cc}
  7834. * test/TagContainerTest.cc
  7835. * src/TaggedItem.{h, cc}
  7836. * test/TaggedItemTest.cc
  7837. * src/HelpItem.h
  7838. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7839. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7840. from PiecedSegment's ctor.
  7841. Previously Piece::getAllMissingBlockIndexes() is called from
  7842. PiecedSegment() but it is rather expensive since only first element is
  7843. used.
  7844. * src/PiecedSegment.cc
  7845. * src/Piece.{h, cc}
  7846. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7847. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7848. each time these functions are called.
  7849. * src/BitfieldMan.{h, cc}
  7850. * test/BitfieldManTest.cc
  7851. * src/array_fun.h
  7852. * test/array_funTest.cc
  7853. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7854. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7855. filtered. Removed unnecessary cast to int32_t.
  7856. * src/BitfieldMan.{h, cc}
  7857. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7858. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7859. payload length(4bytes) are received. This happens because lenbufLength
  7860. is not updated in this particular case and successive call of
  7861. receiveMessage() overwrites payload length with bytes recieved which
  7862. are payload body.
  7863. * src/PeerConnection.{h, cc}
  7864. * src/message.h
  7865. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7867. peer if there are peers that have same ipaddr and port.
  7868. I've experiened segmentation fault and "pure virtual function was
  7869. called" error.
  7870. * src/Peer.h
  7871. * test/PeerTest.cc
  7872. * src/DefaultPeerStorage.cc
  7873. * test/DefaultPeerStorageTest.cc
  7874. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7875. Removed a call to isPowerOf() because it is no longer necessary here
  7876. and a request block is not always power of 2.
  7877. BUG#1866924
  7878. * src/PeerMessageUtil.cc (checkLength)
  7879. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. Fixed the bug that always first found Segment is removed from
  7881. usedSegmentEntries. Removed unused functions.
  7882. * src/SegmentMan.{h, cc}
  7883. * test/SegmentManTest.cc
  7884. Fixed the bug that ServerHost is not removed.
  7885. * src/RequestGroup.cc
  7886. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Fixed the bug that SegmentMan::completeSegment() is not called
  7888. even if Segment is complete when --lowest-speed-limit is enabled.
  7889. BUG#1864525
  7890. * src/DownloadCommand.{h, cc}
  7891. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Fixed: hash algorithm 'sha1' is always used.
  7893. * src/DownloadCommand.cc (validatePieceHash)
  7894. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7895. Added --enable-peer-exchange command-line option.
  7896. * src/OptionHandlerFactory.cc
  7897. * src/HelpItemFactory.cc
  7898. * src/option_processing.cc
  7899. * src/usage_text.h
  7900. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7901. Move extension from BtRuntime to ExtensionMessageFactory, because
  7902. extension can be specified per peer, not per torrent.
  7903. * src/DefaultBtInteractive.cc
  7904. * src/BtRuntime.h
  7905. * src/ExtendedMessagingAware.h
  7906. * src/ExtensionMessageFactory.h
  7907. * src/DefaultExtensionMessageFactory.cc
  7908. * test/DefaultExtensionMessageFactoryTest.cc
  7909. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7910. Added categorized option help. Specify category using --help option.
  7911. Also added the ability to search options in forward match.
  7912. * src/HelpItem.{h, cc}
  7913. * test/HelpItemTest.cc
  7914. * src/HelpItemFactory.{h, cc}
  7915. * src/TagContainer.{h, cc}
  7916. * test/TagContainerTest.cc
  7917. * src/option_processing.cc
  7918. * src/prefs.h
  7919. * src/TaggedItem.{h, cc}
  7920. * test/TaggedItemTest.cc
  7921. * src/version_usage.cc
  7922. * src/help_tags.h
  7923. * src/usage_text.h
  7924. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Fixed segmentation fault when bad torrent metainfo is parsed.
  7926. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7927. and then throw exception or skip it.
  7928. * src/DefaultBtContext.{h, cc}
  7929. * test/DefaultBtContextTest.cc
  7930. * src/AnnounceList.cc
  7931. * src/CompactPeerListProcessor.cc
  7932. * src/message.h
  7933. * src/DefaultBtAnnounce.{h, cc}
  7934. * test/DefaultBtAnnounceTest.cc
  7935. * src/BencodeVisitor.cc
  7936. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Added missing "B"(=Byte). So now the message looks like this:
  7938. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7939. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7940. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7941. Show the seed ratio after torrent downloads.
  7942. For example, after torrent download completed and --seed-time and
  7943. --seed-ratio conditions are fulfilled, following message is printed
  7944. right after "Download complete: .....":
  7945. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7946. * src/RequestGroupMan.cc
  7947. * src/RequestGroup.{h, cc}
  7948. * src/message.h
  7949. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7950. Remove a defunct control file. A defunct control file means that while
  7951. it exists, but the corresponding download file is missing.
  7952. After its removal, a download restarts from the beginning.
  7953. * src/RequestGroup.cc
  7954. * src/message.h
  7955. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7956. Allocate bitfield in Peer when it is really used. More specifically,
  7957. bitfield in Peer is allocated after the connection is established and
  7958. deallocated when the connection is dropped.
  7959. Since 2 parameters(piece length and total length) was removed from the
  7960. constructor of Peer class, many test classes were modified accordingly.
  7961. See svn log for more detailed information.
  7962. * src/PeerInteractionCommand.cc
  7963. * src/CompactPeerListProcessor.cc
  7964. * src/Peer.cc
  7965. * src/DefaultPeerListProcessor.cc
  7966. * src/PeerListenCommand.cc
  7967. * src/PeerReceiveHandshakeCommand.cc
  7968. Fixed memory leak
  7969. * src/Piece.cc
  7970. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7971. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7972. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7973. command-line options.
  7974. * src/option_processing.cc
  7975. * src/ActivePeerConnectionCommand.cc
  7976. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7977. Send have message to peer if it already has the piece.
  7978. * src/BtHaveMessage.{h, cc}
  7979. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7981. port.
  7982. * src/DefaultPeerStorage.{h, cc}
  7983. * test/DefaultPeerStorageTest.cc
  7984. * src/HandshakeExtensionMessage.cc
  7985. * test/HandshakeExtensionMessageTest.cc
  7986. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7987. * src/PeerStorage.h
  7988. * test/MockPeerStorage.h
  7989. * src/PeerListenCommand.cc
  7990. * src/PeerReceiveHandshakeCommand.cc
  7991. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7992. Added --metalink-enable-unique-protocol option.
  7993. * src/Metalink2RequestGroup.cc
  7994. * src/option_processing.cc
  7995. * src/prefs.h
  7996. * src/version_usage.cc
  7997. * doc/aria2c.1.txt
  7998. * doc/aria2c.1
  7999. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8000. Allow a peer in incomingPeer to be added peers.
  8001. * src/DefaultPeerStorage.cc
  8002. * test/DefaultPeerStorageTest.cc
  8003. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  8005. I could reproduce this bug in following procedure:
  8006. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  8007. 2. Restart aria2.
  8008. 3. You see the download stopped around 99%.
  8009. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8010. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  8011. If timeout is reached, then _nextCommand is unused and it may contains
  8012. segments and they won't be canceled. Actually, timeout is not needed
  8013. here because if the server dropped connection, then retry is made.
  8014. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8015. Added uTorrent compatible Peer Exchange.
  8016. * src/BencodeVisitor.{h, cc}
  8017. * test/BencodeVisitorTest.cc
  8018. * src/BtConstants.h
  8019. * src/BtContext.h: Added 'private' flag.
  8020. * src/BtExtendedMessage.{h, cc}
  8021. * test/BtExtendedMessageTest.cc
  8022. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  8023. reserved field.
  8024. * test/BtHandshakeMessageTest.cc
  8025. * src/BtMessageFactory.h
  8026. * src/BtRegistry.h
  8027. * src/BtRuntime.h: This class holds default extension message IDs for
  8028. aria2. By default, aria2 uses ID 8 for ut_pex.
  8029. * src/DefaultBtContext.cc
  8030. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  8031. When it is true, aria2 enables ut_pex. This value is set by
  8032. PeerInteractionCommand.
  8033. * src/DefaultBtMessageFactory.{h, cc}
  8034. * test/DefaultBtMessageFactoryTest.cc
  8035. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  8036. handling to DefaultBtInteractive class.
  8037. * src/DefaultExtensionMessageFactory.{h, cc}
  8038. * test/DefaultExtensionMessageFactoryTest.cc
  8039. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  8040. the container(peers and incomingPeers. The equality is determined by
  8041. Peer::id).
  8042. * test/DefaultPeerStorageTest.cc
  8043. * src/ExtensionMessage.h
  8044. * test/MockExtensionMessage.h
  8045. * src/ExtensionMessageFactory.h
  8046. * test/MockExtensionMessageFactory.h
  8047. * src/HandshakeExtensionMessage.{h, cc}
  8048. * test/HandshakeExtensionMessageTest.cc
  8049. * src/MetaEntry.h
  8050. * src/Peer.{h, cc}
  8051. * src/PeerInteractionCommand.cc
  8052. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  8053. addIncomingPeer.
  8054. * src/PeerMessageUtil.{h, cc}
  8055. * src/PeerObject.h
  8056. * src/UTPexExtensionMessage.{h, cc}
  8057. * test/UTPexExtensionMessageTest.cc
  8058. * src/message.h
  8059. * src/prefs.h
  8060. Fixed the bug that returns incomplete data when it contains null
  8061. character. A convenient constructor was also added.
  8062. * src/Data.{h, cc}
  8063. Rewritten.
  8064. * src/CompactPeerListProcessor.cc
  8065. Fixed typos.
  8066. * src/message.h
  8067. * src/MetaFileUtil.cc
  8068. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8069. Added "Status Legend" label to the explanation text of 'stat' in
  8070. download result and moved it to the last. BUG#1848214
  8071. * src/RequestGroupMan.cc
  8072. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  8074. * src/Makefie.am
  8075. * test/Makefile.am
  8076. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8077. Fixed the bug that prevents aria2 from loading cookie file when expire
  8078. value is greater than 2^31-1. BUG#1851066
  8079. * src/CookieBoxFactory.cc
  8080. * test/CookieBoxFactoryTest.cc
  8081. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8082. Fixed possible memory leak when an exception is thrown.
  8083. * src/XML2SAXMetalinkProcessor.cc
  8084. Added Expat support. If both libxml2 and Expat are installed, then
  8085. libxml2 is used by default.
  8086. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  8087. ExpatMetalinkProcessor according to the configuration.
  8088. * src/ExpatMetalinkProcessor.{h, cc}
  8089. * src/main.cc: Removed libxml2 specific header and init/free function.
  8090. * src/MetalinkProcessorFactory.{h, cc}
  8091. * src/MetalinkHelper.cc
  8092. * src/Metalinker.h: Removed unnecessary libxml2 header.
  8093. * src/MetalinkProcessor.h
  8094. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  8095. MetalinkProcessorTest is used instead.
  8096. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  8097. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  8098. MetalinkProcessorFactory::newInstance().
  8099. * m4/libexpat.m4
  8100. * configure.ac: Added configuration options for libexpat.
  8101. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8102. Disabled -s option in metalink download.
  8103. * src/Metalink2RequestGroup.cc
  8104. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. If several protocols are available for a mirror in metalink file,
  8106. aria2 now use one of them. --metalink-preferred-protocol option was
  8107. added to specify the preference of protocol.
  8108. * src/AbstractCommand.cc
  8109. * src/OptionHandlerFactory.cc
  8110. * src/ServerHost.{h, cc}
  8111. * src/Metalink2RequestGroup.cc
  8112. * src/RequestGroup.{h, cc}
  8113. * test/RequestGroupTest.cc
  8114. * src/option_processing.cc
  8115. * src/prefs.h
  8116. * src/HttpResponseCommand.cc
  8117. * src/MetalinkResource.{h, cc}
  8118. * src/FtpNegotiationCommand.cc
  8119. * src/MetalinkEntry.{h, cc}
  8120. * src/MetalinkEntryTest.cc
  8121. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Code cleanup and added debug log.
  8123. * src/PeerConnection.cc
  8124. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8125. Compiler error fix: applied the patch by Tiziano Mueller
  8126. * src/RequestGroup.cc
  8127. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8128. Fixed the bug: only first announce URL is tried in AnnounceTier,
  8129. in stopped and completed event.
  8130. * src/AnnounceList.{h, cc}
  8131. * test/AnnounceListTest.cc
  8132. * src/DefaultBtAnnounce.cc
  8133. * test/DefaultBtAnnounceTest.cc
  8134. Sorted URLs.
  8135. * test/Metalink2RequestGroupTest.cc
  8136. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8137. Removed unnecessary string copy. Updated doc and corrected indentation.
  8138. * src/Base64.cc
  8139. Fixed compilation warnings
  8140. * test/DataTest.cc
  8141. * test/HttpRequestTest.cc
  8142. * test/MetaFileUtilTest.cc
  8143. * test/RequestTest.cc
  8144. * Release 0.12.0
  8145. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8146. Updated translations
  8147. * po/{de,fr,ja,nl,ru}.po
  8148. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  8149. translations. Many thanks to translators.
  8150. * po/{ca,es,it,pt_BR,sv}.po
  8151. * po/LINGUAS
  8152. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8153. Added a notice about URL
  8154. * src/version_usage.cc
  8155. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  8156. Fixed the bug#1845750; CTRL+C does not stop torrent.
  8157. aria2 repeatedly sends stopped request when tracker returns error code.
  8158. * src/AnnounceList.cc
  8159. * test/AnnounceListTest.cc
  8160. * src/AnnounceTier.h
  8161. Added a message when ctrl-c is hit.
  8162. Now second ctrl-c is also handled in signal handler.
  8163. * src/RequestGroupMan.{h, cc}
  8164. * src/RequestGroup.{h, cc}
  8165. * src/MultiUrlRequestInfo.cc
  8166. * src/DownloadEngine.cc
  8167. * src/TrackerWatcherCommand.cc
  8168. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8169. Code cleanup
  8170. * src/Base64.cc (encode)
  8171. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Changed Direct/IO enable/disable procesure in file allocation routine.
  8173. * src/SingleFileAllocationIterator.cc
  8174. (SingleFileAllocationIterator):
  8175. Disable directIO if offset is not multiple of 512.
  8176. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  8177. * src/MultiFileAllocationIterator.cc (allocateChunk):
  8178. Enable created SingleFileAllocationIterator's directIO.
  8179. * src/FileAllocationEntry.cc
  8180. (FileAllocationEntry): Enable directIO here.
  8181. (~FileAllocationEntry): Disable directIO here.
  8182. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8183. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  8184. * src/Peer.{h, cc}
  8185. * src/DefaultPieceStorage.cc
  8186. * test/DefaultPieceStorageTest.cc
  8187. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8188. Rewritten direct I/O support routine
  8189. * src/SingleFileAllocationIterator.cc
  8190. * src/MultiDiskAdaptor.{h, cc}
  8191. * src/ByteArrayDiskWriter.h
  8192. * src/AbstractSingleDiskAdaptor.h
  8193. * src/AbstractDiskWriter.cc
  8194. * src/DefaultPieceStorage.cc
  8195. * src/DiskWriter.h
  8196. * src/BinaryStream.h
  8197. * src/IteratableChunkChecksumValidator.cc
  8198. * src/IteratableChecksumValidator.cc
  8199. * src/CheckIntegrityEntry.cc
  8200. * src/FileAllocationEntry.cc
  8201. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8202. Fixed typo
  8203. * src/version_usage.cc
  8204. Updated doc
  8205. * doc/aria2c.1.txt
  8206. * doc/aria2c.1
  8207. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8208. Fixed compile error without message digest support.
  8209. * src/FileMetalinkParserState.cc
  8210. * src/MetalinkParserController.{h, cc}
  8211. * test/XML2SAXMetalinkProcessorTest.cc
  8212. * test/MetalinkParserControllerTest.cc
  8213. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8214. Enable direct I/O support in checksum checking.
  8215. * src/IteratableChunkChecksumValidator.{h, cc}
  8216. * test/IteratableChunkChecksumValidatorTest.cc
  8217. * src/CheckIntegrityEntry.cc
  8218. * src/PieceHashCheckIntegrityEntry.cc
  8219. * src/IteratableChecksumValidator.{h, cc}
  8220. * src/BtCheckIntegrityEntry.cc: Added doc.
  8221. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8222. Added --allow-piece-length-change option.
  8223. * src/DefaultBtProgressInfoFile.cc
  8224. * test/DefaultBtProgressInfoFileTest.cc
  8225. * src/OptionHandlerFactory.cc
  8226. * src/option_processing.cc
  8227. * src/prefs.h
  8228. * src/version_usage.cc
  8229. * doc/aria2c.1.txt
  8230. * doc/aria2c.1
  8231. Fixed: duplicated result entry appears when exception is thrown in
  8232. RequestGroup::createInitiateConnectionCommand().
  8233. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  8234. Add RequestGroup to _requestGroup after RequetGroup::
  8235. createInitiateConnectionCommand() succeeds.
  8236. Externalized message
  8237. * src/XML2SAXMetalinkProcessor.cc
  8238. * src/message.h
  8239. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8240. Forced download abort when received negative response from http/ftp
  8241. server.
  8242. * src/HttpResponseCommand.cc
  8243. * src/FtpNegotiationCommand.cc
  8244. * src/HttpResponse.cc
  8245. * src/FtpConnection.cc
  8246. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8247. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  8248. the predecessor, Xml2MetalinkParser class.
  8249. I tested them against 94KB metalink file with 1234 chunk checksums.
  8250. The new one parsed it in 22msec, while it took 6000msec with old one.
  8251. * src/XML2SAXMetalinkProcessor.{h, cc}
  8252. * test/XML2SAXMetalinkProcessorTest.cc
  8253. * src/MetalinkParserController.{h, cc}
  8254. * test/MetalinkParserControllerTest.cc
  8255. * src/MetalinkParserState.h: Also added 16 subclasses.
  8256. * src/main.cc
  8257. * src/Metalink2RequestGroup.cc
  8258. * src/MetalinkHelper.cc
  8259. * src/MetalinkEntry.cc
  8260. * src/ChunkChecksum.h
  8261. Rewritten Base64 class for better performance.
  8262. * src/Base64.{h, cc}
  8263. * test/Base64Test.cc
  8264. * src/HttpRequest.cc
  8265. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Fixed the bug#1841757: aria2 will connect to server to only get
  8267. file size.
  8268. * src/StreamFileAllocationEntry.cc
  8269. * src/option_processing.cc
  8270. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  8271. downloads.
  8272. * src/FtpNegotiationCommand.cc
  8273. Suppressed wrong message when finding PreDownloadHandler
  8274. * src/RequestGroup.cc
  8275. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8276. Updated usage
  8277. * src/version_usage.cc
  8278. Updated man page
  8279. * doc/aria2c.1.txt
  8280. * doc/aria2c.1
  8281. Updated po files
  8282. * po/aria2c.pot
  8283. * po/*.po
  8284. * po/*.gmo
  8285. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8286. Eliminated g++-4.2 warning
  8287. * src/DownloadHandlerConstants.{h, cc}
  8288. * src/Util.cc
  8289. * test/MetaFileUtilTest.cc
  8290. * test/PStringBuildVisitorTest.cc
  8291. Fixed bug: --check-integrity doesn't work for multi file torrent.
  8292. * src/RequestGroup.cc
  8293. * src/BtCheckIntegrityEntry.cc
  8294. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. Fixed a2io.h
  8296. * src/a2io.h
  8297. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. Added direct I/O support. The current implementation uses O_DIRECT,
  8299. which is not posix standard and is tested on linux 2.6.21.
  8300. Currently only file allocation uses direct I/O.
  8301. * src/SingleFileAllocationIterator.{h, cc}
  8302. * test/SingleFileAllocationIteratorTest.cc
  8303. * src/MultiFileAllocationIterator.{h, cc}
  8304. * test/MultiFileAllocationIteratorTest.cc
  8305. * src/BinaryStream.h
  8306. * src/DiskWriter.h
  8307. * src/AbstractDiskWriter.{h, cc}
  8308. * src/ByteArrayDiskWriter.h
  8309. * src/DiskAdaptor.h
  8310. * src/AbstractSingleDiskAdaptor.{h, cc}
  8311. * src/MultiDiskAdaptor.{h, cc}
  8312. * src/FileAllocationEntry.cc
  8313. * src/Util.{h, cc}
  8314. * src/OptionHandlerFactory.cc
  8315. * src/prefs.h
  8316. * src/version_usage.cc
  8317. * src/option_processing.cc
  8318. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  8319. handleException.
  8320. * src/MultiFileAllocationIterator.cc
  8321. Added EINTR handling
  8322. * src/SocketCore.cc
  8323. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8324. Updated usage
  8325. * src/version_usage.cc
  8326. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8327. Applied Ross's patch for MinGW port.
  8328. * src/DownloadEngine.h
  8329. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. Set Content-Type to SingleFileDownloadContext when http response is
  8331. received.
  8332. * src/HttpResponseCommand.cc
  8333. * src/HttpResponse.{h, cc}
  8334. * test/HttpResponseTest.cc
  8335. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8336. Rewritten to add content-type support.
  8337. * src/DownloadHandler.{h, cc}
  8338. * src/BtPostDownloadHandler.{h, cc}
  8339. * test/BtPostDownloadHandlerTest.cc
  8340. * src/MetalinkPostDownloadHandler.{h, cc}
  8341. * test/MetalinkPostDownloadHandlerTest.cc
  8342. * src/PostDownloadHandler.{h, cc}
  8343. * src/DownloadHandlerConstants.{h, cc}
  8344. * src/RequestGroup.cc
  8345. * src/HttpResponseCommand.cc
  8346. * src/FtpNegotiationCommand.cc
  8347. * src/SingleFileDownloadContext.{h, cc}
  8348. * src/RequestGroup.h
  8349. * src/RequestGroupCriteria.h
  8350. * src/ContentTypeRequestGroupCriteria.h
  8351. Added 'mem' option value for --follow-metalink, --follow-torrent.
  8352. If it is give, metalink/torrent file is not written to the disk, but
  8353. just is kept in memory. Parsing is occurred on memory.
  8354. * src/MetalinkHelper.{h, cc}
  8355. * src/MetalinkProcessor.h
  8356. * src/Xml2MetalinkProcessor.{h, cc}
  8357. * test/Xml2MetalinkProcessorTest.cc
  8358. * src/DownloadHandlerFactory.{h, cc}
  8359. * test/DownloadHandlerFactoryTest.cc
  8360. * src/PreDownloadHandler.{h, cc}
  8361. * src/OptionHandlerFactory.cc
  8362. * src/DefaultBtContext.{h, cc}
  8363. * test/DefaultBtContextTest.cc
  8364. * src/version_usage.cc
  8365. * src/Metalink2RequestGroup.{h, cc}
  8366. * src/RequestGroup.{h, cc}
  8367. * src/a2functional.h
  8368. * test/a2functionalTest.cc
  8369. * src/MemoryBufferPreDownloadHandler.{h, cc}
  8370. * src/OptionHandlerImpl.h
  8371. * src/prefs.h
  8372. * src/Util.{h, cc}
  8373. * test/UtilTest.cc
  8374. Keep DownloadResult rather than RequestGroup after downloads to reduce
  8375. memory usage.
  8376. * src/RequestGroupMan.{h, cc}
  8377. * src/DownloadEngine.cc
  8378. * src/BtDependency.{h, cc}: Changed the type of dependee from
  8379. WeakHandle to SharedHandle because WeakHandle could be null.
  8380. * src/RequestGroup.{h, cc}
  8381. * src/DownloadEngineFactory.cc
  8382. * src/DownloadResult.h
  8383. Set totalLength after download finished
  8384. * src/UnknownLengthPieceStorage.{h, cc}
  8385. Keep torrent file specified in metalink in memory.
  8386. * src/Metalink2RequestGroup.cc
  8387. * src/BtDependency.cc
  8388. * src/TrueRequestGroupCriteria.h
  8389. Fixed the bug: seekg is used where seekp should be used.
  8390. * src/ByteArrayDiskWriter.cc
  8391. * test/ByteArraydiskWriterTest.cc
  8392. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8393. Fixed syntax error
  8394. * test/SequenceTest.cc
  8395. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8396. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8397. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  8398. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  8399. * src/RequestGroup.cc (downloadFinishedByFileLength)
  8400. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8401. Added the check to see whether ares_host_callback accepts timeouts
  8402. with c-ares; only c-ares 1.5.0 or newer accepts it.
  8403. * src/NameResolver.{h, cc}
  8404. * m4/libcares.m4
  8405. * configure.ac: Set C++ for language choice.
  8406. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8407. Fixed: compilation fails without c-ares/ares
  8408. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  8409. Generate http/ftp commands only when download is incomplete.
  8410. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  8411. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8412. Corrected typo. Examples are removed since they are available in man
  8413. page.
  8414. * src/version_usage.cc
  8415. Updated man page.
  8416. * doc/aria2c.1
  8417. * doc/aria2c.1.txt
  8418. * doc/makeman: Commented out sed command.
  8419. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8420. Throw DlAbortEx when a remote file is not found.
  8421. * src/HttpResponse.cc
  8422. * src/FtpNegotiationCommand.cc
  8423. * src/message.h
  8424. Overwrite an existing file if --allow-overwrite=true is given.
  8425. * src/RequestGroup.cc
  8426. Removed unused functions
  8427. * src/AbstractCommand.h
  8428. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8429. Removed 'extern' from 'extern typedef ...' in src/*.h
  8430. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8431. Updated usage
  8432. * src/version_usage.cc
  8433. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8434. Trim announce URL
  8435. * src/DefaultBtContext.cc
  8436. * test/ShaVisitorTest.cc
  8437. Trim argument s. Give trimed s to exception constructor.
  8438. * src/Util.cc (parseInt)(parseLLInt)
  8439. * test/UtilTest.cc
  8440. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8441. Set precision back to 1.
  8442. * src/ConsoleStatCalc.cc (calculateStat)
  8443. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8444. Replaced strtol with Util::parseInt
  8445. * src/ChunkedEncoding.cc
  8446. * src/HttpConnection.cc
  8447. * src/CookieBoxFactory.cc
  8448. * src/ParameterizedStringParser.cc
  8449. * src/Util.cc
  8450. * test/UtilTest.cc
  8451. * test/OptionHandlerTest.cc
  8452. * src/Request.cc
  8453. Throw exception when empty string is given. The message for exception
  8454. changed.
  8455. * src/Util.cc (parseInt)(parseLLInt)
  8456. * src/message.h
  8457. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8458. Set precision to 2 because share ratio is rounded into 1.0 if precision
  8459. set to 1.
  8460. * src/ConsoleStatCalc.cc (calculateStat)
  8461. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8462. Preallocate non-requested file which is adjacent forward to requested
  8463. file('requested' files means the files given in --select-file option)
  8464. if they share a same piece.
  8465. This fixes long pause in the file system which doesn't support sparse
  8466. files like FAT32 while downloading.
  8467. * src/MultiFileAllocationIterator.{h, cc}
  8468. * test/MultiFileAllocationIteratorTest.cc
  8469. * src/FileEntry.{h, cc}
  8470. Removed unused _option.
  8471. * src/MultiDiskAdaptor.h
  8472. * test/MultiDiskAdaptorTest.cc
  8473. * src/DefaultPieceStorage.cc
  8474. Set the default value of --seed-ratio to 1.0.
  8475. If 0.0 is given, then seeding continues regardless of share ratio.
  8476. * src/version_usage.cc
  8477. * src/option_processing.cc
  8478. * src/BtSetup.cc
  8479. * doc/aria2c.1.txt
  8480. * doc/aria2c.1
  8481. Fixed: Selective download is not working in BitTorrent
  8482. * src/RequestGroup.cc
  8483. Introduced Sequence class. Use this instead of Util::unfoldRange()
  8484. * src/PieceStorage.h
  8485. * test/MockPieceStorage.h
  8486. * src/UnknownLengthPieceStorage.h
  8487. * src/DefaultPieceStorage.{h, cc}
  8488. * src/Metalink2RequestGroup.cc
  8489. * src/RequestGroup.cc
  8490. * src/Sequence.h
  8491. * test/SequenceTest.cc
  8492. * src/IntSequence.h
  8493. * src/message.h
  8494. * src/Util.{h, cc}
  8495. * test/UtilTest.cc
  8496. Added new function 'parse' to catch exception thrown by subclass's
  8497. parseArg
  8498. * src/OptionHandler.h
  8499. * src/OptionParser.cc
  8500. * src/NameMatchOptionHandler.h
  8501. * src/OptionHandlerImpl.h
  8502. * test/OptionHandlerTest.cc
  8503. Added IntegerRangeOptionHandler. Used for --listen-port and
  8504. --select-file. Now --listen-port accepts range of port.
  8505. * src/OptionHandlerFactory.cc
  8506. * src/version_usage.cc
  8507. * src/OptionHandlerImpl.h
  8508. * src/option_processing.cc
  8509. * src/BtSetup.cc
  8510. * src/PeerListenCommand.{h, cc}
  8511. * doc/aria2c.1.txt
  8512. * doc/aria2c.1
  8513. Implemented operator< for Exception class to provide easy way to print
  8514. exception stack trace.
  8515. * src/Exception.{h, cc}
  8516. * src/main.cc
  8517. * src/option_processing.cc
  8518. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8519. * src/version_usage.cc
  8520. (showVersion): Reworked.
  8521. (showUsage): Added examples.
  8522. Removed Hint for total length and file name.
  8523. * src/Metalink2RequestGroup.cc
  8524. * src/RequestGroup.{h, cc}
  8525. * src/HttpResponseCommand.cc
  8526. * src/FtpNegotiationCommand.cc
  8527. Now --follow-torrent and --follow-metalink option work properly.
  8528. * src/RequestGroup.cc
  8529. Updated man page
  8530. * doc/aria2c.1.txt
  8531. * doc/aria2c.1
  8532. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8533. Removed.
  8534. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  8535. Use Segment::operator==()
  8536. * src/HttpConnection.cc
  8537. * src/Segment.h
  8538. Updated usage
  8539. * src/version_usage.cc
  8540. Added EINTR treatment.
  8541. * src/SocketCore.cc
  8542. * src/AbstractDiskWriter.cc
  8543. Rewritten.
  8544. * src/Util.cc (rangedFileCopy)
  8545. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8546. Fixed typo.
  8547. * src/version_usage.cc
  8548. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8549. Implemented. Now -c option works fine.
  8550. * src/DefaultPieceStorage.cc (markPiecesDone)
  8551. * test/DefaultPieceStorageTest.cc
  8552. Removed.
  8553. * src/SegmentMan.{h, cc}
  8554. (markAllPiecesDone)
  8555. (markPieceDone)
  8556. Synchronized po files with
  8557. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  8558. * src/fr.po
  8559. * src/ru.po
  8560. * src/de.po
  8561. * src/ja.po
  8562. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8563. Added ifdef and some modifications to compile without BitTorrent,
  8564. Metalink, MessageDigest
  8565. support.
  8566. * src/PieceHashCheckIntegrityEntry.cc
  8567. * src/MetalinkEntry.h
  8568. * src/version_usage.cc
  8569. * src/main.cc
  8570. * src/DownloadEngine.{h, cc}
  8571. * src/Metalink2RequestGroup.cc
  8572. * src/Peer.cc
  8573. * src/RequestGroup.cc
  8574. * src/MetalinkHelper.cc
  8575. * test/DefaultPieceStorageTest.cc
  8576. * test/MetalinkPostDownloadHandlerTest.cc
  8577. * test/Metalink2RequestGroupTest.cc
  8578. Hide TOTAL SPD when all downloads complete.
  8579. * src/ConsoleStatCalc.cc
  8580. Log target system information.
  8581. * src/main.cc
  8582. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8583. Now --metalink-location accepts a comma-deliminated list of locations.
  8584. * src/MetalinkEntry.{h, cc}
  8585. * test/MetalinkEntryTest.cc
  8586. * src/version_usage.cc
  8587. * src/Metalink2RequestGroup.cc
  8588. * src/Xml2MetalinkProcessor.cc
  8589. * test/Xml2MetalinkProcessorTest.cc
  8590. * doc/aria2c.1.txt
  8591. * doc/aria2c.1
  8592. * src/Util.cc (toUpper)(toLower): Rewritten.
  8593. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8594. Added the ability to detect duplicate download entry which is about to
  8595. download the same file other RequestGroup is downloading.
  8596. * src/RequestGroup.cc
  8597. * src/HttpResponseCommand.cc
  8598. * src/FtpNegotiationCommand.cc
  8599. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8600. Recalculates download progress when loading a control file,
  8601. if the piece length of DownloadContext is different from the one saved
  8602. in the control file. Currently in-flight pieces are ignored.
  8603. * src/DefaultBtProgressInfoFile.cc
  8604. * test/DefaultBtProgressInfoFileTest.cc
  8605. * src/Util.{h, cc}
  8606. * test/UtilTest.cc
  8607. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8608. Do not rotate tiers in announce-list.
  8609. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  8610. AnnounceList::allTiersFailed() used instead to detect whether all
  8611. tiers are tried and failed.
  8612. * test/DefaultBtAnnounceTest.cc
  8613. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  8614. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  8615. * test/AnnounceListTest.cc
  8616. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  8617. clause. Catch RecoverableException instead of DlRetryEx instead.
  8618. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8619. Implemented checksum validation feature(1 checksum for each file)
  8620. The validation takes place after the download.
  8621. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  8622. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  8623. * src/CheckIntegrityCommand.cc: Changed log message.
  8624. * src/Metalink2RequestGroup.cc: Set checksum to
  8625. SingleFileDownloadContext.
  8626. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  8627. PieceHashCheckIntegrity class.
  8628. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  8629. PieceHashCheckIntegrity class.
  8630. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  8631. * src/IteratableValidator.h: New class.
  8632. * src/message.h
  8633. * src/CheckIntegrityEntry.{h, cc}
  8634. * src/IteratableChunkChecksumValidator.{h, cc}
  8635. * src/SingleFileDownloadContext.h
  8636. * src/DownloadCommand.cc
  8637. --allow-overwrite=true is no longer needed to check file integrity
  8638. before download in BitTorrent download.
  8639. * src/RequestGroup.cc (getInitialCommand)
  8640. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  8641. throws exception.
  8642. * src/RequestGroupMan.cc (getInitialCommands)
  8643. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8644. urlencode the given url inside Request::parseUrl(...)
  8645. * src/Request.{h, cc}
  8646. * src/Util.{h, cc}
  8647. * test/RequestTest.cc
  8648. Removed #!metalink3! notation support because it is deleted from
  8649. the metalink specification.
  8650. * src/Request.{h, cc}
  8651. * test/RequestTest.cc
  8652. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8653. Don't connect server before checking file integrity at startup, if
  8654. filesize and output file path are known.
  8655. * src/AbstractCommand.cc
  8656. * src/StreamFileAllocationEntry.cc
  8657. * src/Metalink2RequestGroup.cc
  8658. * src/RequestGroup.{h, cc}
  8659. * src/HttpResponseCommand.cc
  8660. * src/FtpNegotiationCommand.cc
  8661. Added DownloadFailureException. If it is thrown, RequestGroup should
  8662. halt.
  8663. * src/AbstractCommand.cc
  8664. * src/DownloadFailureException.h
  8665. * src/RequestGroup.cc
  8666. Catch RecoverableException, instead of DlAbortEx.
  8667. * src/RequestGroupMan.cc
  8668. * src/FillRequestGroupCommand.cc
  8669. * src/MetaFileUtil.cc
  8670. * src/IteratableChunkChecksumValidator.cc
  8671. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  8672. getGID())
  8673. * src/CheckIntegrityCommand.cc
  8674. * src/message.h
  8675. Print gid instead of idx.
  8676. * src/RequestGroupMan.cc
  8677. Removed exception throwers declaration.
  8678. * src/DirectDiskAdaptor.{h, cc}
  8679. * src/SocketCore.{h, cc}
  8680. * src/MultiDiskAdaptor.{h, cc}
  8681. * src/HttpConnection.{h, cc}
  8682. * src/HttpResponse.{h, cc}
  8683. * src/DiskAdaptor.{h, cc}
  8684. * src/CopyDiskAdaptor.{h, cc}
  8685. * src/MultiDiskAdaptor.{h, cc}
  8686. * src/HttpHeaderProcessor.{h, cc}
  8687. * src/AbstractSingleDiskAdaptor.{h, cc}
  8688. * src/Util.{h, cc}
  8689. * test/UtilTest.cc
  8690. * src/DefaultDiskWriter.{h, cc}
  8691. * src/FtpConnection.{h, cc}
  8692. * src/AbstractDiskWriter.{h, cc}
  8693. Removed duplicate code.
  8694. * src/StreamCheckIntegrityEntry.cc
  8695. Removed unnecessary include.
  8696. * src/DiskWriter.h
  8697. Included Exception.h
  8698. * src/option_processing.cc
  8699. Included 2 files and added doc
  8700. * src/TrackerWatcherCommand.cc
  8701. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  8702. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. Changed CheckIntegrityEntry interface so that it can define
  8704. the action when all the chunk checksums are valid.
  8705. * src/CheckIntegrityEntry.h
  8706. * src/StreamCheckIntegrityEntry.{h, cc}
  8707. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  8708. are valid, then aira2 goes to seeding mode. Sometimes it is better
  8709. to exit rather than doing seeding. So, it would be good to toggle this
  8710. behavior.
  8711. * src/CheckIntegrityCommand.cc
  8712. * src/AbstractCommand.cc
  8713. * src/RequestGroup.cc
  8714. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8715. Reflect the download length of in-flight pieces.
  8716. It makes the download length readout more precise.
  8717. * src/DefaultPieceStorage.{h, cc}
  8718. * test/DefaultPieceStorageTest.cc
  8719. * src/a2functional.h
  8720. * test/a2functionalTest.cc
  8721. Lower CPU load when --max-download-limit is used.
  8722. There is up and down in speed indicator when enabling
  8723. http-pipelining but a download goes well. I think the problem is that
  8724. because http-pipelining is enabled, DownloadCommand is created for
  8725. each segment and in its constructor, PeerStat::downloadStart() is
  8726. called. In PeerStat::downloadStart(), speed calculation object is
  8727. reseted, which makes download speed zero.
  8728. * src/DownloadCommand.cc
  8729. Rewritten using accumulate.
  8730. * src/RequestGroupMan.cc (calculateStat)
  8731. Code clearnup.
  8732. * src/FtpNegotiationCommand.cc
  8733. * src/HttpResponseCommand.cc
  8734. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8735. Fixed: Can not resume: aria2 reports download already finished.
  8736. * src/AbstractCommand.{h, cc}
  8737. * src/HttpResponseCommand.cc
  8738. * src/FtpNegotiateCommand.cc
  8739. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8740. Now a file is stored in the directory specified in .metalnk file
  8741. (file[@name]).
  8742. * src/Metalink2RequestGroup.cc
  8743. Create the directory structure when opening the file if it doesn't
  8744. exist.
  8745. * src/AbstractDiskWriter.cc
  8746. * src/Util.{h, cc}
  8747. * src/File.h
  8748. * test/UtilTest.cc
  8749. Removed file name comparison
  8750. * src/Metalink2RequestGroup.cc
  8751. * src/HttpResponseCommand.cc
  8752. Rewritten using Util::mkdirs()
  8753. * src/FileEntry.cc (setupDir)
  8754. * test/FileEntryTest.cc
  8755. Updated doc
  8756. * src/SingleFileDownloadContext.h
  8757. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8758. Now SleepCommand dispatches nextCommand when halt is requested.
  8759. It avoids a possible long wait after hitting CTRL-C.
  8760. * src/SleepCommand.{h, cc}
  8761. * src/RequestGroupAware.{h, cc}
  8762. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8763. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  8764. to open listen port, then remove the port number from the tracker
  8765. request.
  8766. * src/DefaultBtAnnounce.cc
  8767. * test/DefaultBtAnnounceTest.cc
  8768. * test/MockPieceStorage.h
  8769. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  8770. them more testable.
  8771. * src/DefaultBtAnnounce.{h, cc}
  8772. * src/DefaultBtContext.{h, cc}
  8773. * src/Util.{h, cc}
  8774. * test/DefaultBtAnnounceTest.cc
  8775. * test/DefaultBtContextTest.cc
  8776. * test/UtilTest.cc
  8777. Added 'B' to upload bytes readout.
  8778. * src/ConsoleStatCalc.cc
  8779. Now the listen port for BitTorrent download is opened when it is
  8780. needed.
  8781. * src/DownloadEngineFactory.cc
  8782. * src/BtSetup.{h, cc}
  8783. * src/PeerListenCommand.{h, cc}
  8784. Now an exception thrown while parsing tracker response is now logged.
  8785. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  8786. called, which means no retry is made in this case, assuming a tracker
  8787. has a problem.
  8788. * src/TrackerWatcherCommand.cc
  8789. Fixed: downloading a file whose length is unkown fails.
  8790. * src/DownloadCommand.cc
  8791. Simplified prepareForNextSegment()
  8792. * src/DownloadCommand.cc
  8793. Updated
  8794. * po/POTFILES.in
  8795. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8796. Re-implemented a file listing for Metalink, which was dropped while
  8797. http/ftp/torrent integration was being implemented.
  8798. * src/MetalinkHelper.{h, cc}: New class.
  8799. * test/MetalinkHelperTest.cc
  8800. * src/main.cc
  8801. * src/Metalink2RequestGroup.cc
  8802. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. Added the ability to display the detailed torrent file information.
  8804. Now -S option gives not only a file listing, but also total download
  8805. length, info hash, announce URI, piece length, the number of pieces,
  8806. and mode(single or multi-torrent).
  8807. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  8808. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  8809. KiB)
  8810. * test/UtilTest.cc
  8811. * src/main.cc
  8812. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8813. Added ftp://USER:PASSWD@Servername automatic parsing.
  8814. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  8815. _password. Recognize username and password in URI.
  8816. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  8817. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  8818. * src/RequestFactory.{h, cc}: Removed.
  8819. * src/AuthConfigFactory.{h, cc}: New class.
  8820. * src/FtpConnection.cc: Use AuthConfigFactory.
  8821. * src/HttpRequest.cc: Use AuthConfigFactory.
  8822. * test/HttpRequestTest.cc: Updated.
  8823. * test/RequestTest.cc: Updated.
  8824. * test/AuthConfigFactoryTest.cc: New class.
  8825. * test/RequestFactoryTest.cc: Removed.
  8826. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. Use RequestGroup::allDownloadFinished() to decide whether the control
  8828. file should be removed or saved.
  8829. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8830. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8831. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8832. Use File::renameTo()
  8833. * src/DefaultBtProgressInfoFile.cc
  8834. Added --no-file-allocation-limit command-line option.
  8835. * src/version_usage.cc
  8836. * src/option_processing.cc
  8837. * src/OptionHandlerFactory.cc
  8838. * src/RequestGroup.{h, cc}
  8839. * src/BtCheckIntegrityEntry.cc
  8840. * src/StreamCheckIntegrityEntry.cc
  8841. * src/prefs.h
  8842. * doc/aria2c.1.txt
  8843. * doc/aria2c.1
  8844. Now prealloc is the default value for --file-allocation option.
  8845. * src/version_usage.cc
  8846. * src/option_processing.cc
  8847. * doc/aria2c.1.txt
  8848. * doc/aria2c.1
  8849. Don't URL-encode user-agent.
  8850. * src/HttpRequest.cc
  8851. Updated translations
  8852. * po/LINGUAS: Added nl for Dutch translation.
  8853. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8854. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8855. * po/POTFILES.in: Updated.
  8856. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8857. Added the ability to recognize url-list in a torrent file.
  8858. The retrieved URLs are attached to the corresponding FileEntry.
  8859. * src/DefaultBtContext.{h, cc}
  8860. * src/FileEntry.{h, cc}
  8861. * test/DefaultBtContextTest.cc
  8862. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8863. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8864. after the download finishes.
  8865. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8866. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8867. the data smaller than block length.
  8868. A block length can be specified by constructor's argument.
  8869. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8870. Get a missing piece in the range of given FileEntry. This function is
  8871. not used in the program yet.
  8872. * src/Util.h: Added some macros.
  8873. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8874. Added HTTP/1.1 keep alive and pipelining support.
  8875. See --enable-http-keep-alive and --enable-http-pipelining option.
  8876. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8877. Segment.
  8878. * src/HttpDownloadCommand.{h, cc}
  8879. * src/OptionHandlerFactory.cc
  8880. * src/HttpConnection.{h, cc}
  8881. * src/version_usage.cc
  8882. * src/HttpInitiateConnectionCommand.cc
  8883. * src/FtpInitiateConnectionCommand.cc
  8884. * src/Segment.h
  8885. * src/HttpRequestCommand.{h, cc}
  8886. * src/option_processing.cc
  8887. * src/prefs.h
  8888. * src/HttpResponseCommand.cc
  8889. * src/SegmentMan.{h, cc}
  8890. * src/FtpNegotiateCommand.cc
  8891. * src/HttpProxyResponseCommand.cc
  8892. * src/Request.cc
  8893. * src/HttpRequest.cc
  8894. * src/DownloadCommand.cc
  8895. * test/HttpRequestTest.cc
  8896. * test/RequestTest.cc
  8897. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8899. finished.
  8900. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8901. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8902. catching it inside the method.
  8903. When no file entry is found in a metalink without querying user
  8904. preferences, throw the exception with the error message that suggests
  8905. metalink file is probably broken.
  8906. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8907. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8908. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8909. processed.
  8910. * src/RequestGroupMan.cc (removeStoppedGroup)
  8911. Added debug message.
  8912. * src/BtPostDownloadHandler.cc
  8913. * src/MetalinkPostDownloadHandler.cc
  8914. * src/PostDownloadHandler.{h, cc}
  8915. * src/RequestGroup.cc
  8916. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8918. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8919. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8920. stops and there are any unfinished or in-progress downloads.
  8921. Added the legend of "stat".
  8922. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8923. Throw exception when chunck checksum verification fails.
  8924. * src/DownloadCommand.cc (validatePieceHash): New function.
  8925. * src/PiecedSegment.{h, cc} (clear): New function.
  8926. * src/GrowSegment.{h, cc} (clear): New function.
  8927. * src/Segment.h (clear): New function.
  8928. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8929. * test/SegmentTest.cc
  8930. * test/GrowSegmentTest.cc
  8931. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8932. Do not send referer when redirected.
  8933. * src/Request.cc (redirectUrl)
  8934. * test/RequestTest.cc
  8935. * test/HttpRequestTest.cc
  8936. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8937. Implemented BitTorrent/http/ftp integrated download.
  8938. I've rewritten lots of files and now some headers have forward
  8939. class declarations to reduce compile time.
  8940. The implementation is extremely alpha stage, I recommend to use this
  8941. for testing purpose only.
  8942. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. Fixed the compilation error on 64bit platform.
  8944. * test/HttpHeaderProcessorTest.cc
  8945. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8946. Merged Ross's patch that fixes compilation problem in MinGW
  8947. * test/DefaultBtProgressInfoFileTest.cc
  8948. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8949. Updated fr.po by sebone
  8950. * po/fr.po
  8951. Updated man page.
  8952. * doc/aria2c.1.txt
  8953. * Release 0.11.3
  8954. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8955. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8956. failure in Metalink.
  8957. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8958. Automatically save *.aria2 control file of http/ftp download in every
  8959. 60 seconds.
  8960. * src/AutoSaveCommand.{h, cc}: New class.
  8961. * src/TimeBasedCommand.{h, cc}: New class.
  8962. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8963. Disable parameterized URI support by default. Added -P option to
  8964. enable the feature.
  8965. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8966. * src/OptionHandlerFactory.cc
  8967. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8968. Updated Japanese translation.
  8969. * po/ja.po
  8970. Updated man page.
  8971. * doc/aria2c.1.txt
  8972. * Release 0.11.3-rc
  8973. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8974. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8975. it is successful, then renamed to *.aria2.
  8976. This prevents *.aria2 file from being truncated or corrupted when
  8977. file system becomes out of space.
  8978. * src/DefaultBtProgressInfoFile.cc (save)
  8979. * src/SegmentMan.cc (save)
  8980. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8981. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8982. Reduced the fragmentation of bitfield in http/ftp download.
  8983. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8984. * test/BitfieldManTest.cc
  8985. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8986. Added the ability to disable segmented download in .metalink.
  8987. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8988. 'url' tag.
  8989. * src/MetalinkEntry.{h, cc}
  8990. * src/RequestResource.{h, cc}
  8991. * src/MetalinkRequestInfo.cc
  8992. * src/Xml2MetalinkProcessor.cc
  8993. * test/Xml2MetalinkProcessorTest.cc
  8994. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8995. Added parameterized URI support.
  8996. * src/main.cc: -Z option added.
  8997. * src/OptionHandlerFactory.cc
  8998. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8999. * src/PStringDatum.h: New class.
  9000. * src/PStringSegment.{h,cc}: New class.
  9001. * src/PStringNumLoop.h: New class.
  9002. * src/PStringSelect.h: New class.
  9003. * src/NumberDecorator.h: New class.
  9004. * src/FixedWidthNumberDecorator.h: New class.
  9005. * src/AlphaNumberDecorator.h: New class.
  9006. * src/PStringVisitor.h: New class.
  9007. * src/PStringBuildVisitor.{h,cc}: New class.
  9008. * src/ParameterizedStringParser.{h,cc}: New class.
  9009. * src/Util.{h,cc}
  9010. (isNumber): New function.
  9011. (isLowercase): New function.
  9012. (isUppercase): New function.
  9013. (alphaToNum): New function.
  9014. * test/ParameterizedStringParserTest.cc: New class.
  9015. * test/AlphaNumberDecoratorTest.cc: New class.
  9016. * test/PStringBuildVisitorTest.cc: New class.
  9017. * test/UtilTest.cc
  9018. (testIsNumber): New function.
  9019. (testIsLowercase): New function.
  9020. (testIsUppercase): New function.
  9021. (testAlphaToNum): New function.
  9022. Added '\n' after the error message
  9023. * src/RequestInfo.h (printDownloadAbortMessage)
  9024. Added auto file renaming feature in http(s)/ftp download.
  9025. * src/main.cc: Added --auto-file-renaming command-line option.
  9026. * src/OptionHandlerFactory.cc
  9027. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  9028. * src/RequestGroup.{h, cc}
  9029. (shouldCancelDownloadForSafety): Rewritten
  9030. (tryAutoFileRenaming): New function.
  9031. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  9032. * src/HttpResponseCommand.cc
  9033. (executeInternal): Removed the call to RequestGroupMan::
  9034. isSameFileBeingDownloaded()
  9035. * src/FtpNegotiateCommand.cc
  9036. (recvSize): Removed the call to RequestGroupMan::
  9037. isSameFileBeingDownloaded()
  9038. * test/RequestGroupTest.cc: New class.
  9039. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9040. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  9041. IO.
  9042. * src/DefaultBtProgressInfoFile.cc
  9043. * src/MetaFileUtil.cc
  9044. * src/SimpleLogger.cc
  9045. * src/SegmentMan.cc
  9046. * src/Util.cc
  9047. * src/Platform.cc
  9048. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9049. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  9050. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. Avoid sparse files if possible, because VFAT32 doesn't support it.
  9052. * src/DefaultDiskWriter.cc (initAndOpenFile)
  9053. Fixed the bug that prevents file allocation is not done when
  9054. dowloading multi-torrent file.
  9055. * src/AbstractDiskWriter.cc (openFile)
  9056. Increase the maximum number of -j option from 15 to 45.
  9057. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9058. Added fr.po, thanks to Charles Landemaine.
  9059. * po/fr.po
  9060. * po/LINGUAS
  9061. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9062. gcc 3.4.4 support:
  9063. * src/DefaultBtContext.cc: int32_t -> int
  9064. * src/main.cc: int -> int32_t, int32_t -> int
  9065. * src/messageDigest.h: uint32_t -> unsigned int
  9066. * src/NameResolver.h: int32_t -> int
  9067. * src/PeerConnection.cc: int -> int32_t
  9068. * src/SpeedCalc.cc: int32_t -> int
  9069. * src/TrackerUpdateCommand.h: int -> int32_t
  9070. * src/Util.cc: int32_t -> int
  9071. * src/Util.h: int32_t -> int
  9072. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  9073. * test/AnnounceListTest.cc: int -> int32_t
  9074. * test/ChunkedEncodingTest.cc: int -> int32_t
  9075. * test/DataTest.cc: int -> int32_t
  9076. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  9077. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  9078. * test/DefaultPieceStorageTest.cc: int -> int32_t
  9079. * test/FeatureConfigTest.cc: int -> int32_t
  9080. * test/MetalinkEntryTest.cc: int -> int32_t
  9081. * test/MockBtRequestFactory.h: int -> int32_t
  9082. * test/MockPieceStorage.h: int -> int32_t
  9083. * test/OptionTest.cc: int -> int32_t
  9084. * test/RequestTest.cc: int -> int32_t
  9085. * test/SegmentManTest.cc: int -> int32_t
  9086. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  9087. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  9088. Move sleep functions to Util class:
  9089. * src/Util.cc
  9090. (sleep): New function.
  9091. (usleep): New function.
  9092. * src/DownloadCommand.cc: sleep -> Util::sleep
  9093. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  9094. MinGW build enhancements. The following files are added:
  9095. * src/timegm.{c,h}
  9096. Changes to support the above new files:
  9097. * configure.ac
  9098. * src/Makefile.am
  9099. * src/a2time.h
  9100. * src/Util.cc:
  9101. * src/strptime.c: Added support for %Z option.
  9102. Fixed MinGW non-blocking bug.
  9103. * src/SocketCore.cc
  9104. * src/HttpRequestCommand.cc
  9105. Miscellenous build fixes/enhancements.
  9106. * configure.ac: Added summary report.
  9107. * src/Platform.h: Tweaked #include's.
  9108. * src/a2netcompat.h: Tweaked #include's.
  9109. * src/strptime.h: Tweaked #include's.
  9110. * src/gai_strerror.c: Tweaked #include's.
  9111. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  9112. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  9113. * src/gettimeofday.h: Added HAVE_CONFIG_H
  9114. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. Increased the initial connection size in BitTorrent download to 40.
  9116. * src/BtRuntime.h
  9117. Added the usage message of --peer-id-prefix option.
  9118. * src/main.cc
  9119. * Release 0.11.2
  9120. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. MessageDigestHelper is introduced in order to simplify the use
  9122. of message digest. Removed repeated code.
  9123. The message digest algorithm is now specified by string, like "sha1",
  9124. "md5".
  9125. * src/messageDigest.{h, cc}
  9126. * src/MessageDigestHelper.{h, cc}: New class.
  9127. * src/DefaultPieceStorage.cc
  9128. * src/DefaultBtContext.{h, cc}
  9129. (computeFastSet): New function.
  9130. (setInfoHash): Added for unit testing.
  9131. (setNumPieces): Added for unit testing.
  9132. * src/DefaultBtInteractive.cc
  9133. * src/BtPieceMessage.cc
  9134. * src/Peer.cc
  9135. * src/Checksum.h
  9136. * src/message.h
  9137. * src/IteratableChecksumValidator.h
  9138. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  9139. inside it.
  9140. * src/SegmentMan.{h, cc}
  9141. (checkIntegrity): Removed.
  9142. * src/IteratableChunkChecksumValidator.{h, cc}
  9143. * src/Util.h
  9144. (sha1Sum): Removed.
  9145. (simpleMessageDigest): Removed.
  9146. (fileChecksum): Removed.
  9147. (computeFastSet): Removed.
  9148. * src/ShaVisitor.cc
  9149. * src/ChunkChecksum.h
  9150. * src/DownloadCommand.cc
  9151. Removed messageDigest virtual functions.
  9152. * src/MultiDiskAdaptor.{h, cc}
  9153. * src/DiskAdaptor.h
  9154. * src/ByteArrayDiskWriter.h
  9155. * src/DiskWriter.h
  9156. * src/DiskAdaptorWriter.h
  9157. * src/AbstractSingleDiskAdaptor.{h, cc}
  9158. * src/AbstractDiskWriter.{h, cc}
  9159. Fixed comilation error when message digest is disabled.
  9160. * src/MetalinkEntry.{h, cc}
  9161. * src/MetalinkRequestInfo.cc
  9162. Removed srandom and random.
  9163. * src/SimpleRandomizer.h
  9164. Added size() virtual function to DiskAdaptor
  9165. * src/MultiDiskAdaptor.h
  9166. Fixed the bug that causes that files are not opened correctly in
  9167. multi-file torrent.
  9168. * src/TorrentRequestInfo.cc
  9169. * src/MultiDiskAdaptor.cc
  9170. Added SHA256 support
  9171. * src/messageDigest.cc
  9172. * src/Xml2MetalinkProcessor.cc
  9173. Show supported message digest algorithms
  9174. * src/main.cc
  9175. Updated contact info.
  9176. * src/main.cc
  9177. Applied Ross's patch
  9178. * src/a2netcompat.h
  9179. * src/main.cc
  9180. Fixed the bug that prevents a remote metalink from not being processed
  9181. even if '-o foo.metalink' is specified.
  9182. * src/MetalinkRequestInfo.cc
  9183. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9184. Merged Dan's patch:
  9185. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  9186. Use va_copy to avoid core dump on amd64:
  9187. * src/SimpleLogger.cc
  9188. Updated contact info.
  9189. * src/main.cc
  9190. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  9191. digest is not available.
  9192. * src/MetalinkEntry.h
  9193. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9194. Make a2netcompat.h include a2io.h to fix compilation error:
  9195. * src/a2netcompat.h
  9196. * src/SocketCore.cc: Removed include of a2io.h
  9197. * src/Util.cc: Removed include of a2io.h
  9198. Gather time related functions to a2time.h:
  9199. * src/a2time.h: New file.
  9200. * src/DefaultPeerStorage.cc
  9201. * src/SimpleLogger.cc
  9202. * src/Util.{h, cc}
  9203. * src/SimpleRandomizer.h
  9204. * src/TimeA2.{h,cc}
  9205. * src/DownloadCommand.cc
  9206. * src/main.cc
  9207. Removed #ifdef __MINGW32__ since gai_strerror is included in
  9208. a2netcompat.h:
  9209. * src/NameResolver.cc
  9210. Fixed compilation error without openssl:
  9211. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  9212. Added default block to suppress compiler warnings:
  9213. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  9214. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  9215. MinGW build enhancements. The following files are added:
  9216. * src/gai_strerror.{c,h}
  9217. * src/gettimeofday.{c,h}
  9218. Changes to support the above new files:
  9219. * configure.ac
  9220. * src/Makefile.am
  9221. * src/a2netcompat.h
  9222. * src/TimeA2.cc
  9223. * src/DefaultPeerStorage.cc
  9224. * src/NameResolver.cc: removed mingw_strerror() function.
  9225. * src/SocketCore.cc: removed mingw_strerror() function.
  9226. Miscellaneous MinGW build fixes.
  9227. * src/a2io.h: Use _lseeki64() instead of lseek()
  9228. * src/common.h
  9229. * src/DefaultFileAllocator.cc
  9230. * src/GlowFileAllocator.cc
  9231. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  9232. * src/NameResolver.cc
  9233. (callback): Changed int32_t to int.
  9234. (resolve): Changed int32_t to int.
  9235. * src/Platform.cc
  9236. * src/Platform.h
  9237. * test/MultiDiskWriterTest.cc
  9238. * test/PeerMessageUtilTest.cc
  9239. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  9240. Other enhancements and fixes.
  9241. * src/HttpRequestCommand.cc
  9242. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  9243. * src/SocketCore.cc:
  9244. (error): New function to abstract errno/WSAGetLastError().
  9245. (errorMsg): New function to abstract errno/WSAGetLastError().
  9246. (initiateSecureConnection): Added more detailed error reporting.
  9247. * src/SocketCore.h: Added private variable blocking, to allow
  9248. proper handling of OpenSSL psuedo-errors.
  9249. * src/message.h
  9250. (EX_SSL_INIT_FAILURE)
  9251. (EX_SSL_IO_ERROR)
  9252. (EX_SSL_PROTOCOL_ERROR)
  9253. (EX_SSL_UNKNOWN_ERROR)
  9254. (EX_SSL_CONNECT_ERROR)
  9255. (EX_SOCKET_BLOCKING)
  9256. (EX_SOCKET_NONBLOCKING)
  9257. (EX_SOCKET_UNKNOWN_ERROR)
  9258. * src/Util.cc
  9259. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  9260. reserved name.
  9261. (httpGMT): Fixed typo.
  9262. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9263. Merged Ross's win32 patch(manually)
  9264. In the course of merging, following files are added.
  9265. * src/strptime.{h,c}
  9266. * src/libgen.{h,c}
  9267. * src/inet_aton.{h,c}
  9268. * src/Platform.{h,cc}
  9269. * src/localtime_r.{h,c}
  9270. * src/getaddrinfo.{h,c}
  9271. I've gethered network related things, and put them to following file:
  9272. * src/a2netcompat.h
  9273. Also io related things are put to following file:
  9274. * src/a2io.h
  9275. Changed %lld to %s because mingw32 doesn't recognize %lld.
  9276. * src/message.h
  9277. (MSG_ALLOCATION_COMPLETED)
  9278. (EX_TOO_LARGE_FILE)
  9279. (EX_SIZE_MISMATCH)
  9280. (EX_FILE_OFFSET_OUT_OF_RANGE)
  9281. (EX_INVALID_CHUNK_CHECKSUM)
  9282. (EX_INVALID_RANGE_HEADER)
  9283. * src/FileAllocationCommand.cc
  9284. * src/HttpResponse.cc
  9285. * src/RequestGroup.cc
  9286. * src/MultiDiskAdaptor.cc
  9287. * src/OptionHandlerImpl.h
  9288. * src/HttpResponseCommand.cc
  9289. * src/FtpNegotiateCommand.cc
  9290. * src/IteratableChecksumValidator.cc
  9291. * src/SegmentMan.cc
  9292. * src/ChunkChecksumValidator.cc
  9293. Added Randomizer::getRandomNumber(long int)
  9294. * src/Randomizer.h (getRandomNumber)
  9295. * src/SimpleRandomizer.h (getRandomNumber)
  9296. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  9297. * src/Util.cc (randomAlpha): Use this new function.
  9298. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9299. Converted int's to in32_t. long long int's are also converted to
  9300. int64_t
  9301. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. Fixed the bug that prevents cookies from being sent to the server
  9303. if the domain of cookie is FQDN and starts with ".".
  9304. * src/Cookie.cc (match)
  9305. To add the ability to change peer id.
  9306. * src/DefaultBtContext.h
  9307. (_peerIdPrefix): New variable
  9308. (setPeerIdPrefix): New function.
  9309. * src/torrentRequestInfo.cc
  9310. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  9311. DefaultBtContext.
  9312. * src/main.cc (main): Added peer-id-prefix command-line option.
  9313. The usage message is not added yet.
  9314. * src/DefaultBtContext.cc
  9315. (generatePeerId): Use _peerIdPrefix.
  9316. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  9317. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9318. Fixed the bug that prevents filename in content-disposition from
  9319. being retrieved when filename is not quoted.
  9320. * src/Util.cc (getContentDispositionFilename)
  9321. Fixed the bug that causes infinate loop and memory leak when file open
  9322. operation failed.
  9323. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  9324. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9325. Fixed the bug that causes segfault when all URIs specified are
  9326. unsupported.
  9327. * src/RequestGroupMan.cc (getInitialCommands)
  9328. Check if RequestGroup::createNextCommand() returns empty list of
  9329. commands.
  9330. * src/RequestGroup.cc (createNextCommand)
  9331. Change log level from info to error so that users can notice that
  9332. an error occurred.
  9333. Fixed the bug that causes segfault when a zero-sized file is
  9334. downloaded.
  9335. * src/BitfieldMan.cc (isAllBitSet)
  9336. Return true if bitfieldLength is 0.
  9337. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9338. * src/main.cc
  9339. (showUsage): Added 3 usage examples for metalink download.
  9340. Replace MetalinkChunkChecksum with ChunkChecksum.
  9341. * src/MetalinkChunkChecksum.h: Removed.
  9342. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  9343. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  9344. * src/Xml2MetalinkProcessor.cc
  9345. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  9346. * src/MetalinkRequestInfo.cc (execute)
  9347. * Release 0.11.1
  9348. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9349. Reads URIs from stdin when "-i -" is specified.
  9350. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  9351. * src/UriListParser.h, src/UriListParser.cc: New class.
  9352. * src/StreamUriListParser.h: New class.
  9353. * src/FileUriListParser.h: New class.
  9354. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  9355. instead of UriFileListParser.
  9356. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9357. Made console readout more readable.
  9358. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9359. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9360. Fix the bug that causes -s option not to work.
  9361. * src/main.cc (main)
  9362. * src/a2algo.h: New file.
  9363. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9364. Create directory structure specified in metalink file.
  9365. * src/RequestGroup.h, src/RequestGroup.cc
  9366. (initAndOpenFile): Create a directory to store files if it does not
  9367. exist.
  9368. (getDir): New function.
  9369. Added ETA and download speed for an individual file to readout.
  9370. * src/ConsoleDownloadEngine.cc (sendStatistics)
  9371. * src/RequestGroup.h
  9372. (calculateDownloadSpeed): New function.
  9373. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9374. Made -S option work with metalink file and provided selective download
  9375. to metalink.
  9376. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  9377. (filename): Removed.
  9378. (file): New variable.
  9379. (size): Removed.
  9380. (operator=): Updated.
  9381. (getPath): New function.
  9382. (getLength): New function.
  9383. (toFileEntry): New function.
  9384. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  9385. (execute): Use toStream.
  9386. (showFileEntry): Removed.
  9387. * src/MetalinkRequestInfo.h
  9388. (targetFiles): New variable.
  9389. (setTargetFiles): New variable.
  9390. * src/MetalinkRequestInfo.cc
  9391. (execute): Added the ability to print file information included in
  9392. a metalink file.
  9393. Added selective download mode to metalink.
  9394. * src/main.cc
  9395. (showUsage): Updated to denote that -S and --select-file options are
  9396. applicable to metalink.
  9397. * src/FileEntry.h
  9398. (operator=): New function.
  9399. (getBasename): New function.
  9400. (getDirname): New function.
  9401. * src/Util.h, src/Util.cc
  9402. (toStream): New function.
  9403. * src/Xml2MetalinkProcessor.cc: Updated.
  9404. Made aria2 work with metalink with directory structure.
  9405. * src/File.h, src/File.cc
  9406. (getBasename): New function.
  9407. (getDirname): New function.
  9408. * src/RequestGroup.h, src/RequestGroup.cc
  9409. (_topDir): New variable.
  9410. (setTopDir): New function.
  9411. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  9412. Rewrote HTTP header parsing with stringstream.
  9413. * src/HttpConnection.h, src/HttpConnection.cc
  9414. (HttpRequestEntry): New class.
  9415. (headerBuf): Removed.
  9416. (headerBufLength): Removed.
  9417. (outstandingHttpRequests): Now its element type is
  9418. HttpRequestEntryHandle.
  9419. (findEndOfHeader): Removed.
  9420. (receiveResponse): Rewritten.
  9421. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  9422. Updated doc for -j option to notice that it should be used with -i
  9423. option.
  9424. * src/main.cc (showUsage)
  9425. Removed unused classes.
  9426. * src/RequestInfo.h
  9427. (FileInfo): Removed.
  9428. (checksum): Removed.
  9429. (fileInfo): Removed.
  9430. (setChecksum): Removed.
  9431. (getChecksum): Removed.
  9432. (getFileInfo): Removed.
  9433. Use ISO units.
  9434. * src/ConsoleDownloadEngine.cc
  9435. * src/TorrentConsoleDownloadEngine.cc
  9436. * src/Util.cc (abbrevSize)
  9437. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9438. Added the default listening ports to the help message.
  9439. * src/main.cc (showUsage)
  9440. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Reduce the number of calls to gettimeofday to lower CPU load.
  9442. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  9443. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  9444. * src/Peer.h (calculateUploadSpeed): New function.
  9445. (calculateDownloadSpeed): New function.
  9446. * src/DefaultPeerStorage.cc
  9447. (CalculateStat): Added _now variable.
  9448. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  9449. and Peer::calculateUploadSpeed(const struct timeval&)
  9450. Drop connection if no request or piece message is exchanged in
  9451. a certain interval.
  9452. * src/DefaultBtInteractive.h
  9453. (btRuntime): New variable.
  9454. (inactiveCheckPoint): New variable.
  9455. (checkActiveInteraction): New function.
  9456. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  9457. request or piece message is received.
  9458. (checkActiveInteraction): New function.
  9459. (doInteractionProcessing): Call checkActiveInteraction.
  9460. Fixed the bug that causes remote Metalink and Torrent files are not
  9461. processed.
  9462. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  9463. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9464. Changed format of log file.
  9465. * src/SimpleLogger.cc
  9466. * Release 0.11.0
  9467. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9468. * src/AbstractCommand.cc
  9469. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  9470. MSG_MAX_TRY from error to info.
  9471. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  9472. * src/message.h
  9473. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  9474. (MSG_DOWNLOAD_ABORTED): Added %s.
  9475. (MSG_RESTARTING_DOWNLOAD): Added %s.
  9476. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  9477. * src/PeerAbstractCommand.cc
  9478. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  9479. * src/Request.h
  9480. (cookieBox): Made ShardHandle.
  9481. * src/RequestGroup.h, src/RequestGroup.cc
  9482. (createNextCommandWithAdj): New function.
  9483. * src/FileAllocationCommand.cc
  9484. (executeInternal): Use createNextCommandWithAdj().
  9485. * src/CheckIntegrityCommand.cc
  9486. (executeInternal): Use createNextCommandWithAdj().
  9487. Added --load-cookies command-option.
  9488. * src/OptionHandlerFactory.cc
  9489. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  9490. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  9491. Now aria2 can handle cookie's expiration date.
  9492. * src/Cookie.h (expires): Changed its type to time_t.
  9493. * src/main.cc: Added --load-cookies command-line option.
  9494. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  9495. * src/Util.h, src/Util.cc (httpGMT): New function.
  9496. * src/Request.cc (Request): Initialize cookieBox using
  9497. CookieBoxFactory.
  9498. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  9499. * src/CookieParser.h, src/CookieParser.cc: New class.
  9500. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  9501. * src/HttpResponseCommand.cc
  9502. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  9503. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  9504. download.
  9505. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9506. Added -j command-line option.
  9507. * src/OptionHandlerFactory.cc (createOptionHandlers)
  9508. * src/main.cc
  9509. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  9510. Rewritten using stringstream.
  9511. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  9512. Rewritten using stringstream.
  9513. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9514. Make download size shown in MB, KB.
  9515. * src/ConsoleDownloadEngine.h (sendStatistics)
  9516. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  9517. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9518. Accept incoming connections if download rate is low.
  9519. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  9520. (_lowestSpeedLimit): New variable.
  9521. (setLowestSpeedLimit): New function.
  9522. (execute): Accept incoming connections if download rate is low.
  9523. MAX_PEERS is ignored in this case.
  9524. Disable PREF_OUT in multiple concurrent download:
  9525. * src/RequestGroup.h, src/RequestGroup.cc
  9526. (setUserDefinedFilename): New function.
  9527. * src/DownloadEngineFactory.cc
  9528. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  9529. concurrent download.
  9530. * src/DefaultSegmentManFactory.cc
  9531. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  9532. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9533. RequestGroup::getNextCommand() was renamed to createNextCommand().
  9534. Added its overloaded method.
  9535. * src/RequestGroup.h
  9536. (_numConcurrentCommand): New variable.
  9537. (setNumConcurrentCommand): New function.
  9538. * src/RequestGroup.cc
  9539. Abort download if same file is being downloaded concurrently.
  9540. * src/RequestGroup.h, src/RequestGroupMan.cc
  9541. (isSameFileBeingDownloaded): New function.
  9542. * src/HttpResponseCommand.cc (executeInternal)
  9543. * src/FtpNegotiateCommand.cc (recvSize)
  9544. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  9545. * main.cc: Added help message for -i option.
  9546. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9547. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  9548. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  9549. * src/MetalinkEntry.h
  9550. (checksum): Changed to ChecksumHandle
  9551. * src/MetalinkRequestInfo.cc
  9552. (checksum): Changed to ChecksumHandle
  9553. * src/File.cc
  9554. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  9555. * src/common.h
  9556. (DIR_OPEN_MODE): New definition
  9557. * src/RequestGroup.cc
  9558. (prepareForNextAction): Added an argument.
  9559. * src/message.h
  9560. (MSG_GOOD_CHECKSUM): New definition
  9561. (MSG_BAD_CHECKSUM): New definition
  9562. * src/HttpResponseCommand.cc
  9563. (handleDefaultEncoding): Continue download sequence in new
  9564. non-segmented download.
  9565. * src/FileAllocationEntry.h
  9566. (_nextDownloadCommand): New variable.
  9567. * src/DownloadCommand.cc
  9568. (prepareForNextSegment): Create ChecksumCommand if checksum is
  9569. available.
  9570. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  9571. * src/IteratableChecksumValidator.h,
  9572. src/IteratableChecksumValidator.cc: New class.
  9573. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  9574. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9575. Change file mode to 666:
  9576. * src/common.h (OPEN_MODE): New definition.
  9577. * src/File.cc
  9578. * src/Util.cc
  9579. * src/Directry.cc
  9580. * src/AbstractDiskWriter.cc
  9581. Change the level of log message "download aborted" to debug:
  9582. * src/PeerAbstractCommand.cc (execute)
  9583. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  9584. * src/TrackerWatcherCommand.cc
  9585. (createCommand): Sleep some seconds after request failed.
  9586. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  9587. then abort tracker request.
  9588. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9589. * Added the simultaneous download feature.
  9590. * src/main.cc: Print "Exception caught: " when exception is caught.
  9591. Use CUIDCounter instead of BtRuntime::getNewCuid():
  9592. * src/ActivePeerConnectionCommand.cc
  9593. * src/PeerInteractionCommand.cc
  9594. * src/BtRuntime.h
  9595. (cuidCounter): Removed.
  9596. (getNewCuid): Removed.
  9597. * src/DownloadEngineFactory.cc
  9598. * src/PeerListenCommand.cc
  9599. * src/TrackerUpdateCommand.cc
  9600. * src/PeerInitiateConnectionCommand.cc
  9601. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9602. * src/PeerAbstractCommand.cc
  9603. (onAbort): Call PeerStorage::returnPeer()
  9604. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  9605. (incomingPeers): New variable.
  9606. (addIncomingPeer): New function.
  9607. (returnPeer): New function.
  9608. (onErasingPeer): New function.
  9609. (addPeer): push_back -> push_front
  9610. (getActivePeers): Rewritten.
  9611. (calculateStat): Rewritten.
  9612. * src/PeerStorage.h
  9613. (TransferStat::copy): New function.
  9614. (TransferStat::TransferStat): New function.
  9615. (TransferStat::operator=): New function.
  9616. (addIncomingPeer): New function.
  9617. (returnPeer): New function.
  9618. * src/PeerListenCommand.cc
  9619. (execute): Use PeerStorage::addIncomingPeer() instead of
  9620. Peer::addPeer().
  9621. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9622. Connect to a peer actively when download speed is lower than specified
  9623. speed in torrent download:
  9624. * src/ActivePeerConnectionCommand.h: New class.
  9625. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9626. * src/HttpRequest.cc (createRequest): url-encode user-agent
  9627. * src/main.cc: Fixed the bug that prevents download if .netrc
  9628. doesn't exist.
  9629. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9630. To cache resolved hostname:
  9631. * src/AbstractCommand.h, src/AbstractCommand.cc
  9632. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  9633. Added dns cache.
  9634. * src/FtpInitiateConnectionCommand.cc
  9635. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  9636. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  9637. NameResolver working without ares.
  9638. * src/TorrentRequestInfo.cc
  9639. (execute): Don't cache dns in torrent download.
  9640. * src/HttpInitiateConnectionCommand.cc
  9641. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  9642. * src/DNSCache.h: New class.
  9643. * src/UrlRequestInfo.cc
  9644. (execute): Use dns cache.
  9645. In http request, suppress port number in http request header if port
  9646. is 80 or 443:
  9647. * src/HttpRequest.cc (getHostText): Suppress port number in http
  9648. request header if port is 80 or 443.
  9649. (createProxyRequest): Allways send port number.
  9650. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9651. To add the command-line option which disables netrc support:
  9652. * src/OptionHandlerFactory.cc
  9653. (createOptionHandlers): Added PREF_NO_NETRC.
  9654. * src/main.cc: Added -n option.
  9655. * src/prefs.h (PREF_NO_NETRC): New definition.
  9656. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  9657. V_TRUE.
  9658. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  9659. is V_FALSE. This may get configurable in the future release.
  9660. To clear peer's error status by time basis:
  9661. * src/PeerAbstractCommand.cc
  9662. (onAbort): Call Peer::startBadCondition().
  9663. * src/Peer.h, src/Peer.cc
  9664. (error): Removed.
  9665. (_badConditionStartTime): New variable.
  9666. (_badConditionInterval): New variable. Initialized to 10 seconds.
  9667. (startBadCondition): New function.
  9668. (isGood): New function.
  9669. * src/DefaultPeerStorage.cc
  9670. (addPeer): Use Peer::isGood().
  9671. (FindFinePeer): Use Peer::isGood().
  9672. Always include port number in http request header:
  9673. * src/HttpRequest.cc (getHostText): Always include port number in
  9674. http request header.
  9675. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9676. To the ability to read options from a config file:
  9677. * src/main.cc: Command-line parameter validation is delegated to
  9678. OptionHandler class.
  9679. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  9680. * src/Option.h, src/Option.cc (clear): New function.
  9681. * src/OptionParser.h, src/OptionParser.cc: New class.
  9682. * src/OptionHandler.h: New class.
  9683. * src/NameMatchOptionHandler.h: New class.
  9684. * src/OptionHandlerImpl.h: New classes.
  9685. * src/prefs.h: '_' -> '-'
  9686. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  9687. (FTP_PASV): New definition.
  9688. * src/Util.h, src/Util.cc (getRealSize): New function.
  9689. To disable netrc support if .netrc file does not have correct
  9690. permissions:
  9691. * src/File.h, src/File.cc (mode): New function.
  9692. To prevent confidential information to be logged:
  9693. * src/HttpConnection.h, src/HttpConnection.cc
  9694. (eraseConfidentialInfo): New function.
  9695. (sendRequest): Call eraseConfidentialInfo().
  9696. (sendProxyRequest): Call eraseConfidentialInfo().
  9697. * src/main.cc: Validate permissions of .netrc file.
  9698. To add --user-agent command-line option:
  9699. * src/main.cc: Added new command line option: --user-agent
  9700. * src/prefs.h (PREF_USER_AGENT): New definition.
  9701. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  9702. parameter to HttpRequest object.
  9703. * src/AbstractProxyRequestCommand.cc
  9704. (executeInternal): Set user-agent option parameter to HttpRequest
  9705. object.
  9706. Marged the patches from Dan Fandrich.
  9707. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9708. Use filename and size from Metalink file instead of sending HEAD
  9709. request:
  9710. * src/UrlRequestInfo.h
  9711. (_filename): New variable.
  9712. (_totalLength): New variable.
  9713. (setTotalLength): New variable.
  9714. (setFilename): New variable.
  9715. * src/MetalinkRequestInfo.cc
  9716. (execute): Set filename and size to UrlRequestInfo
  9717. * src/UrlRequestInfo.cc
  9718. (execute): Use filename and size from Metalink instead of seding
  9719. HEAD request to servers.
  9720. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9721. To add the ability to resume downloading a partially downloaded file
  9722. which is downloaded from the beginning:
  9723. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  9724. takes this role.
  9725. * src/main.cc: Added -c option.
  9726. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  9727. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  9728. * src/prefs.h (PREF_CONTINUE): New definition.
  9729. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  9730. * src/DefaultDiskWriter.cc
  9731. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  9732. * src/AbstractDiskWriter.h
  9733. (glowFileAllocator): New variable.
  9734. * src/AbstractDiskWriter.cc
  9735. (openExistingFile): Now preallocate file space from the end of the
  9736. existing file if totalLength argument is specified and grater than 0.
  9737. * src/UrlRequestInfo.cc: If -c option is specified and the file
  9738. to download exists in local, continue the download of the file.
  9739. --allow-overwrite=true is assumed in this context.
  9740. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  9741. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  9742. Throw exception if --check-integrity=true is specified but chunk
  9743. checksums are not provided:
  9744. * src/UrlRequestInfo.cc
  9745. Do not print URLs to stdout:
  9746. * src/UrlRequestInfo.cc
  9747. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9748. * src/Request.h: Use AuthResolver to get authentication information.
  9749. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  9750. set to RequestFactory object.
  9751. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  9752. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  9753. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  9754. create Request object.
  9755. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  9756. To integrate Netrc into exsiting classes:
  9757. * src/Request.h
  9758. (_userDefinedAuthConfig): New variable.
  9759. (findNetrcAuthenticator): New function.
  9760. (segment): Removed.
  9761. (setUserDefinedAuthConfig): New function.
  9762. (resolveHttpAuthConfigItem): New function.
  9763. (resolveFtpAuthConfigItem): New function.
  9764. (resolveHttpProxyAuthConfigItem): New function.
  9765. * src/HttpRequest.h
  9766. (authConfig): Removed.
  9767. (proxyAuthConfig): Removed.
  9768. (setAuthConfig): Removed.
  9769. (setProxyAuthConfig): Removed.
  9770. * src/UrlRequest.h
  9771. (getHeadResult): Added a parameter: authConfigHandle
  9772. * src/common.h
  9773. (SingletonHolder.h): New include.
  9774. * src/main.cc
  9775. (Netrc.h): New include.
  9776. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  9777. Added initial value of PREF_NETRC_PATH.
  9778. Added the initialization of netrc.
  9779. * src/AuthConfig.h: New class.
  9780. * src/prefs.h
  9781. (PREF_NETRC_PATH): New definition.
  9782. * src/HttpAuthConfig.h: Removed.
  9783. * src/Netrc.cc
  9784. (getRequiredNextToken): New function.
  9785. (skipMacdef): New function.
  9786. (parse): Rewritten.
  9787. * src/Netrc.h
  9788. (getRequiredNextToken): New function.
  9789. (skipMacdef): New function.
  9790. * src/Util.h, src/Util.cc
  9791. (getHomeDir): New function.
  9792. * src/TrackerWatcherComand.cc
  9793. (createRequestCommand): Use AuthConfig.
  9794. * src/FtpConnection.cc
  9795. (sendUser): Use Request::resolveFtpAuthConfigItem().
  9796. (sendPass): Use Request::resolveFtpAuthConfigItem().
  9797. * src/Request.cc
  9798. (findNetrcAuthenticator): New function.
  9799. (resolveHttpAuthConfigItem): New function.
  9800. (resolveFtpAuthConfigItem): New function.
  9801. (resolveHttpProxyAuthConfigItem): New function.
  9802. * src/UrlRequestInfo.cc: Use AuthConfig.
  9803. * src/HttpRequest.cc
  9804. (createRequest): Use authConfig.
  9805. (getProxyAuthString): Use authConfig.
  9806. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  9807. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  9808. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9809. To reduce overhead to find commands whose socket is either
  9810. readable or writable in the download engine loop:
  9811. * src/Command.h, src/Command.cc
  9812. (STATUS): New enum.
  9813. (status): New variable.
  9814. (statusMatch): New function.
  9815. (setStatusActive): New function.
  9816. (setStatusInactive): New function.
  9817. * src/DownloadEngine.h, src/DownloadEngine.cc
  9818. (executeCommand): New function.
  9819. (run): Simplified.
  9820. (waitData): Call Command::setStatusActive() when command's socket is
  9821. readable or writable.
  9822. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9823. To handle Segment as SegmentHandle:
  9824. * src/AbstractCommand.cc (execute): Rewritten.
  9825. * src/SegmentMan.h: Segment -> SegmentHandle
  9826. Introducded HttpResponse class, HttpRequest class to improve code
  9827. extensiveness and make it clear:
  9828. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9829. HttpResponse class.
  9830. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9831. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9832. * src/HttpConnection.cc: Contruction of http request were moved to
  9833. HttpRequest class.
  9834. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9835. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9836. * src/HttpAuthConfig.h: New class.
  9837. * src/Range.h: New class.
  9838. To make FtpTunnel{Request, Response}Command and
  9839. HttpProxy{Request, Response}Command derived from
  9840. AbstractProxy{Request, Response}Command:
  9841. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9842. Derived from AbstractProxyRequestCommand class.
  9843. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9844. Derived from AbstractProxyResponseCommand class.
  9845. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9846. Derived from AbstractProxyRequestCommand class.
  9847. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9848. Derived from AbstractProxyResponseCommand class.
  9849. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9850. : New class.
  9851. * src/AbstractProxyResponseCommand.h,
  9852. src/AbstractProxyResponseCommand.cc: New class.
  9853. To add netrc support:
  9854. * src/Netrc.h, src/Netrc.cc: New class.
  9855. * src/Util.h, src/Util.cc (split): New function.
  9856. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9857. "Content-Range" header instead of "Range" header.
  9858. * src/HttpHeader.h
  9859. (getStatus): Removed.
  9860. (setStatus): Removed.
  9861. * src/Segment.h
  9862. (getPositionToWrite): New function.
  9863. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9864. * src/HttpHeader.h
  9865. (Range.h): New include.
  9866. (status): New variable.
  9867. (HttpHeader): Initialized status with 0.
  9868. (getStatus): New function.
  9869. (setStatus): New function.
  9870. (getRange): New function.
  9871. (HttpHeaderHandle): New function.
  9872. * src/HttpHeader.cc
  9873. (getRange): New function.
  9874. * src/Request.h
  9875. (RequestWeakHandle): New definition.
  9876. * src/HttpConnection.h
  9877. (HttpConnectionHandle): New type definition.
  9878. * src/HttpConnection.cc
  9879. (receiveResponse): Set HTTP status to headers.
  9880. * src/main.cc
  9881. (showUsage): Fixed typo.
  9882. * src/Segment.h
  9883. (SegmentHandle): New type definition.
  9884. * src/BitfieldMan.h
  9885. (getMissingUnusedLength): New function.
  9886. * src/BitfieldMan.cc
  9887. (getMissingUnusedLength): New function.
  9888. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9889. To fix static initialization order problem:
  9890. * src/BitfieldManFactory.h
  9891. (defaultRandomizer): Removed.
  9892. (factory): New variable.
  9893. (getNewFactory): Removed.
  9894. (getFactoryInstance): New function.
  9895. (setDefaultRandomizer): Rewritten.
  9896. (getDefaultRandomizer): Rewritten.
  9897. * src/BitfieldManFactory.cc
  9898. (defaultRandomizer): Removed.
  9899. (factory): Initialized to 0.
  9900. (BitfieldManFactory): Initialized randomizer to 0.
  9901. * src/DefaultPieceStorage.cc
  9902. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9903. * src/Peer.cc
  9904. (Peer): getNewFactory() -> getFactoryInstance()
  9905. * src/SegmentMan.cc
  9906. (initBitfield): getNewFactory() -> getFactoryInstance()
  9907. * src/Piece.cc
  9908. (Piece): getNewFactory() -> getFactoryInstance()
  9909. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9910. To fix the bug that causes crash on Max OS X:
  9911. * src/SimpleRandomizer.h
  9912. (getInstance): Create new instance if the static variable is null.
  9913. * src/SimpleRandomizer.cc
  9914. (randomizer): Initialized to 0.
  9915. * src/BitfieldManFactory.h
  9916. (getNewFactory): Removed the call to setRandomizer().
  9917. To fix the miscalculation of the range of checksum:
  9918. * src/BitfieldMan.h
  9919. (isBitSetOffsetRange): New function.
  9920. * src/BitfieldMan.cc
  9921. (isBitSetOffsetRange): New function.
  9922. * src/SegmentMan.cc
  9923. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9924. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9925. * Release 0.10.1
  9926. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9927. To lower CPU usage in BitTorrent download when --max-upload-limit
  9928. command-line option specified:
  9929. * src/DefaultBtMessageDispatcher.cc
  9930. (sendMessages): Calculate uploading speed only when current message
  9931. is uploading data and is not sent yet.
  9932. * src/DefaultPeerStorage.h
  9933. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9934. * src/HttpResponseCommand.cc
  9935. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9936. This fixes compile error in Soralis 10.
  9937. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9938. To fix segfault in Metalink download:
  9939. * src/UrlRequestInfo.h
  9940. (filename): Removed.
  9941. (totalLength): Removed.
  9942. (setTotalLength): Removed.
  9943. (setFilename): Removed.
  9944. * src/MetalinkRequestInfo.cc
  9945. (execute): Do not set filename and totalLength to reqInfo.
  9946. Set chunk checksum to reqInfo if it is not null.
  9947. * src/HttpResponseCommand.cc
  9948. (executeInternal): Fixed filename in log.
  9949. (handleDefaultEncoding): Removed the call to initBitfield() and
  9950. markAllPiecesDone().
  9951. (handleOtherEncoding): Added HEAD method handling.
  9952. * src/FtpNegotiateCommand.cc
  9953. (executeInternal): Added SEQ_HEAD_OK handling.
  9954. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9955. return false.
  9956. * src/FtpNegotiateCommand.h
  9957. (SEQ_HEAD_OK): New definition.
  9958. * src/SegmentMan.cc
  9959. (initBitfield): Delete bitfield.
  9960. (isChunkChecksumValidationReady): Fixed the condition.
  9961. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9962. works fine.
  9963. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9964. * src/Xml2MetalinkProcessor.h
  9965. (xpathExists): New function.
  9966. * src/Xml2MetalinkProcessor.cc
  9967. (xpathExists): New function.
  9968. Not to send HEAD request if filename and size are available in Metalink
  9969. file:
  9970. * src/UrlRequestInfo.h
  9971. (filename): New variable.
  9972. (totalLength): New variable.
  9973. (setTotalLength): New function.
  9974. (setFilename): New function.
  9975. * src/MetalinkRequestInfo.cc
  9976. (execute): Set filename and size to UrlRequestInfo.
  9977. * src/MetalinkEntry.cc
  9978. (MetalinkEntry): Initialize size with 0.
  9979. * src/UrlRequestInfo.cc
  9980. (execute): Set filename and size to SegmentMan.
  9981. Not to download rest of the files after selected files are downloaded
  9982. in BitTorrent:
  9983. * src/PieceStorage.h
  9984. (allDownloadFinished): New function.
  9985. * src/DefaultBtAnnounce.cc
  9986. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9987. downloadFinished.
  9988. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9989. * src/DefaultPieceStorage.cc
  9990. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9991. Commented out the call to finishSelectiveDownloadingMode().
  9992. (downloadFinished): Call isFilteredAllBitSet() instead of
  9993. isAllBitSet().
  9994. (allDownloadFinished): New function.
  9995. * src/DefaultBtInteractive.cc
  9996. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9997. downloadFinished().
  9998. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9999. * src/TorrentDownloadEngine.cc
  10000. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  10001. * src/BitfieldMan.h
  10002. (isFilteredAllBitSet): New function.
  10003. * src/ShareRatioSeedCriteria.h
  10004. (PieceStorage.h): New include.
  10005. (pieceStorage): New variable.
  10006. (evaluate):
  10007. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  10008. * src/BitfieldMan.cc
  10009. (isFilteredAllBitSet): New function.
  10010. (isAllBitSet): Filter is not took into account.
  10011. Rename --force-truncate as --allow-overwrite:
  10012. * src/TorrentRequestInfo.cc
  10013. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  10014. * src/main.cc
  10015. (showUsage): --force-truncate -> --allow-overwrite
  10016. * src/message.h
  10017. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  10018. * src/prefs.h
  10019. (PREF_FORCE_TRUNCATE): Removed.
  10020. (PREF_ALLOW_OVERWRITE): New definition.
  10021. * src/SegmentMan.cc
  10022. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  10023. * src/MetalinkRequestInfo.cc
  10024. (execute): Queueing message are now logged in info level.
  10025. * src/common.h
  10026. (LONG_LONG_MAX): Removed.
  10027. (LONG_LONG_MIN): Removed.
  10028. * src/HttpResponseCommand.cc
  10029. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  10030. * src/FtpNegotiateCommand.cc
  10031. (recvSize): LONG_LONG_MAX -> INT64_MAX
  10032. * src/main.cc
  10033. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  10034. command-line option.
  10035. (main): Added --check-integriy and --realtime-chunk-checksum
  10036. command-line option.
  10037. --force-truncate -> --allow-overwrite
  10038. Set initial value of --check-integrity option to false.
  10039. Don't show usage when error occurs while persing command-line options.
  10040. Removed deprecated --upload-limit option.
  10041. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10042. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  10043. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  10044. * src/BtAllowedFastMessage.cc:
  10045. * src/BtBitfieldMessage.cc
  10046. * src/BtCancelMessage.cc
  10047. * src/BtChokeMessage.cc
  10048. * src/BtHaveAllMessage.cc
  10049. * src/BtHaveMessage.cc
  10050. * src/BtHaveNoneMessage.cc
  10051. * src/BtInterestedMessage.cc
  10052. * src/BtNotInterestedMessage.cc
  10053. * src/BtPieceMessage.cc
  10054. * src/BtPortMessage.cc
  10055. * src/BtRejectMessage.cc
  10056. * src/BtRequestMessage.cc
  10057. * src/BtSuggestPieceMessage.cc
  10058. * src/BtUnchokeMessage.cc
  10059. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  10060. files are affected.
  10061. * src/ChunkChecksumValidator.cc
  10062. * src/SegmentMan.cc
  10063. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. To add chunk checksum validation:
  10065. * src/MetalinkEntry.h
  10066. (MetalinkChunkChecksum.h): New include.
  10067. (chunkChecksum): New variable.
  10068. * src/Request.h
  10069. (method): New variable.
  10070. (setMethod): New function.
  10071. (getMethod): New function.
  10072. (METHOD_GET): New static constant.
  10073. (METHOD_HEAD): New static constant.
  10074. * src/Xml2MetalinkProcessor.h
  10075. (getPieceHash): New function.
  10076. * src/PieceStorage.h
  10077. (markAllPiecesDone): New function.
  10078. (checkIntegrity): New function.
  10079. * src/FileAllocator.h
  10080. (NullFileAllocationMonitor.h): New include.
  10081. (FileAllocator): Initialize fileAllocationMonitor with new
  10082. NullFileAllocationMonitor().
  10083. * src/MultiDiskAdaptor.h
  10084. (messageDigest.h): Remove include.
  10085. (ctx): Removed.
  10086. (hashUpdate): Added ctx.
  10087. (MultiDiskAdaptor): Removed ctx.
  10088. (sha1Sum): Renamed as messageDigest.
  10089. (messageDigest): New function.
  10090. * src/UrlRequestInfo.h
  10091. (HeadResult): New class.
  10092. (digestAlgo): New variable.
  10093. (chunkChecksumLength): New variable.
  10094. (chunkChecksums): New variable.
  10095. (getHeadResult): New function.
  10096. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  10097. (setDigestAlgo): New function.
  10098. (setChunkChecksumLength): New function.
  10099. (setChunkChecksums): New function.
  10100. * src/DefaultPieceStorage.cc
  10101. (DiskAdaptorWriter.h): New include.
  10102. (ChunkChecksumValidator.h): New include.
  10103. (markAllPiecesDone): New function.
  10104. (checkIntegrity): New function.
  10105. * src/DefaultBtContext.h
  10106. (getPieceHashes): New function.
  10107. * src/TorrentRequestInfo.cc
  10108. (execute): Try to validate chunk checksum if file already exists and
  10109. .aria2 file doesn't there and user allows aria2 to overwrite it.
  10110. * src/messageDigest.h
  10111. (~MessageDigestContext): Added digestFree().
  10112. * src/MetalinkRequestInfo.cc
  10113. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  10114. * src/DiskAdaptor.h
  10115. (messageDigest.h): New include.
  10116. (sha1Sum): Renamed as messageDigest.
  10117. (messageDigest): New function.
  10118. * src/DownloadCommand.h
  10119. (PeerStat.h): New include.
  10120. (maxDownloadSpeedLimit): New variable.
  10121. (startupIdleTime): New variable.
  10122. (lowestDownloadSpeedLimit): New variable.
  10123. (peerStat): New variable.
  10124. (setMaxDownloadSpeedLimit): New function.
  10125. (setStartupIdleTime): New function.
  10126. (setLowestDownloadSPeedLimit): New function.
  10127. * src/BtContext.h
  10128. (getPieceHashes): New function.
  10129. * src/main.cc
  10130. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  10131. option to true for testing purpose.
  10132. * src/BtPieceMessage.cc
  10133. (checkPieceHash): Use messageDigest
  10134. * src/DownloadEngine.cc
  10135. (SetDescriptor): Removed.
  10136. (AccumulateActiveCommand): Removed.
  10137. (waitData): Rewritten.
  10138. (updateFdSet): Rewritten.
  10139. * src/MultiDiskAdaptor.cc
  10140. (hashUpdate): Added ctx.
  10141. (sha1Sum): Renamed as messageDigest.
  10142. (messageDigest): New function.
  10143. * src/BitfieldMan.h
  10144. (isBitRangeSet): New function.
  10145. (unsetBitRange): New function.
  10146. * src/ByteArrayDiskWriter.h
  10147. (sha1Sum): Renamed as messageDigest.
  10148. (messageDigest): New function.
  10149. * src/ConsoleDownloadEngine.cc
  10150. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  10151. * src/DiskWriter.h
  10152. (messageDigest.h): New include.
  10153. (sha1Sum): Renamed as messageDigest.
  10154. (messageDigest): New function.
  10155. * src/ChunkChecksumValidator.h: New class.
  10156. * src/DiskAdaptorWriter.h: New class.
  10157. * src/prefs.h
  10158. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  10159. (PREF_CHECK_INTEGRITY): New definition.
  10160. * src/HttpResponseCommand.cc
  10161. (handleDefaultEncoding): Added method "HEAD" handling.
  10162. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10163. (handleOtherEncoding):
  10164. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  10165. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  10166. startupIdleTime, lowestDownloadSpeedLimit to command.
  10167. * src/SegmentMan.h
  10168. (getSegmentEntryByIndex): New function.
  10169. (getSegmentEntryByCuid): New function.
  10170. (getSegmentEntryIteratorByCuid): New function.
  10171. (diskWriter): DiskWriter -> DiskWriterHandle
  10172. (pieceHashes): New variable.
  10173. (chunkHashLength): New variable.
  10174. (digestAlgo): New variable.
  10175. (FindPeerStat): Removed.
  10176. (getPeerStat): Rewritten.
  10177. (markAllPiecesDone): New function.
  10178. (checkIntegrity): New function.
  10179. (tryChunkChecksumValidation): New function.
  10180. (isChunkChecksumValidationReady): New function.
  10181. * src/BitfieldMan.cc
  10182. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  10183. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  10184. blocks to 0.
  10185. (isBitRangeSet): New function.
  10186. (unsetBitRange): New function.
  10187. * src/FtpNegotiateCommand.cc
  10188. (executeInternal): Set maxDownloadSpeedLimit,
  10189. startupIdleTime, lowestDownloadSpeedLimit to command.
  10190. (recvSize): Added method "HEAD" handling.
  10191. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  10192. * src/AbstractSingleDiskAdaptor.cc
  10193. (sha1Sum): Renamed as messageDigest.
  10194. (messageDigest): New function.
  10195. * src/AbstractSingleDiskAdaptor.h
  10196. (sha1Sum): Renamed as messageDigest.
  10197. (messageDigest): New function.
  10198. * src/Util.h
  10199. (indexRange): New function.
  10200. * src/MetalinkEntry.cc
  10201. (MetalinkEntry): Initialized chunkChecksum to 0.
  10202. * src/ShaVisitor.cc
  10203. (~ShaVisitor): Removed the call to ctx.digestFree().
  10204. * src/SegmentMan.cc
  10205. (ChunkChecksumValidator.h): New include.
  10206. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  10207. to DIGEST_ALGO_SHA1.
  10208. (~SegmentMan): Removed diskWriter.
  10209. (FindSegmentEntryByIndex): Removed.
  10210. (FindSegmentEntryByCuid): Removed.
  10211. (checkoutSegment): Rewritten.
  10212. (findSlowerSegmentEntry): Rewritten.
  10213. (getSegment): Rewritten.
  10214. (updateSegment): Rewritten.
  10215. (completeSegment): Rewritten.
  10216. (markAllPiecesDone): New function.
  10217. (checkIntegrity): New function.
  10218. (isChunkChecksumValidationReady): New function.
  10219. (tryChunkChecksumValidation): New function.
  10220. * src/Xml2MetalinkProcessor.cc
  10221. (getEntry): Get size and set it to entry.
  10222. Get chunk checksum and set it to entry.
  10223. (getPieceHash): New function.
  10224. * src/Util.cc
  10225. (sha1Sum): Removed ctx.digestFree()
  10226. (fileChecksum): Removed ctx.digestFree()
  10227. (indexRange): New function.
  10228. * src/Request.cc
  10229. (METHOD_GET): New variable.
  10230. (METHOD_HEAD): New variable.
  10231. (Request): Added method.
  10232. * src/UrlRequestInfo.cc
  10233. (FatalException.h): New include.
  10234. (message.h): New include.
  10235. (operator<<): Added operator<< for class HeadResult.
  10236. (getHeadResult): New function.
  10237. (execute): Get filename and size in separate download engine.
  10238. * src/ChunkChecksumValidator.cc: New class.
  10239. * src/DownloadCommand.cc:
  10240. (DownloadCommand): Added peerStat.
  10241. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  10242. the value from Option.
  10243. The buffer size is now 16KB.
  10244. Use peerStat member instead of getting it from SegmentMan.
  10245. Use startupIdleTime member instead of gettingit from Option.
  10246. Added chunk checksum validation.
  10247. * src/AbstractDiskWriter.cc
  10248. (AbstractDiskWriter): Removed ctx.
  10249. (~AbstractDiskWriter): Removed ctx.digestFree()
  10250. (writeDataInternal): Returns the return value of write.
  10251. (readDataInternal): Returns the return value of read.
  10252. (sha1Sum): Renamed as messageDigest
  10253. (messageDigest): New function.
  10254. * src/AbstractDiwkWriter.h
  10255. (messageDigest.h): Removed include.
  10256. (ctx): Removed.
  10257. (sha1Sum): Renamed as messageDigest
  10258. (messageDigest): New function.
  10259. * src/DefaultPieceStorage.h
  10260. (markAllPiecesDone): New function.
  10261. (checkIntegrity): New function.
  10262. * src/NullFileAllocationMonitor.h: New class.
  10263. * src/MetalinkChunkChecksum.h: New class.
  10264. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10265. To decrease CPU usage in bittorrent download, calculation results in
  10266. BitfieldMan were cached and realtime fetching PeerObject was removed
  10267. with WeakHandle introduced. Option values are set to the objects
  10268. by setter before download begins.
  10269. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  10270. * src/DefaultBtRequestFactory.h
  10271. (dispatcher): BtMessageDispatcherHandle ->
  10272. BtMessageDispatcherWeakHandle.
  10273. (messageFactory): New variable.
  10274. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  10275. BtMessageDispatcherWeakHandle.
  10276. (setBtMessageFactory): New function.
  10277. * src/DefaultBtMessageDispatcher.cc:
  10278. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  10279. from Option.
  10280. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  10281. feating the value from Option.
  10282. Use messageFactory member.
  10283. * src/PeerInteractionCommand.cc
  10284. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  10285. Add reverse dependencies to factory object.
  10286. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  10287. dispatcher.
  10288. Set messageFactory to receiver.
  10289. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  10290. btInteractive.
  10291. Set receiver to peerObject.
  10292. Set maxDownloadSpeedLimit to this.
  10293. (executeInternal): Use maxDownloadSpeedLimit member.
  10294. * src/BtChokeMessage.cc
  10295. (doReceivedAction): Use dispatcher, requestFactory member.
  10296. (onSendComplete): Use dispatcher member.
  10297. * src/PeerInteractionCommand.h
  10298. (maxDownloadSpeedLimit): New variable.
  10299. * src/DefaultBtMessageReceiver.h
  10300. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10301. (dispatcher):
  10302. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10303. (messageFactory): New variable.
  10304. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10305. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  10306. (setDispatcher):
  10307. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  10308. (setBtMessageFactory): New function.
  10309. * src/DefaultBtInteractive.cc
  10310. (initiateHandshake): Use messageFactory member.
  10311. (addBitfieldMessageToQueue): Use messageFactory member.
  10312. (addAllowedFastMessageToQueue): Use messageFactory member.
  10313. (decideChoking): Use messageFactory member.
  10314. (checkHave): Use messageFactory member.
  10315. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  10316. (receiveMessages): Use maxDownloadSpeedLimit member.
  10317. (decideInterest): Use messageFactory member.
  10318. * src/BtRequestMessage.cc
  10319. (doReceivedAction): Use messageFactory, dispatcher member.
  10320. (onQueued): Use dispatcher member.
  10321. * src/BtPieceMessage.cc
  10322. (doReceivedAction): Use dispatcher member.
  10323. (send): Use peerConnection member.
  10324. (onWrongPiece): Use requestFactory member.
  10325. (handleChokingEvent): Use messageFactory, dispatcher member.
  10326. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  10327. * src/BtMessageDispatcher.h
  10328. (BtMessageDispatcherWeakHandle): New type definition.
  10329. * src/SimpleBtMessage.cc
  10330. (send): Use peerConnection member.
  10331. * src/BtRejectMessage.cc
  10332. (doReceivedAction): Use dispatcher member.
  10333. * src/DefaultBtMessageDispatcher.h
  10334. (Option.h): Removed include.
  10335. (messageFactory): New variable.
  10336. (option): Removed.
  10337. (maxUploadSpeedLimit): New variable.
  10338. (requestTimeout): New variable.
  10339. (DefaultBtMessageDispatcher): Removed option.
  10340. Added maxUploadSpeedLimit, requestTimeout.
  10341. (setOption): Removed.
  10342. (getOption): Removed.
  10343. (setMaxUploadSpeedLimit): New function.
  10344. (setRequestTimeout): New function.
  10345. (setBtMessageFactory): New function.
  10346. * src/DefaultBtInteractive.h
  10347. (btMessageReceiver):
  10348. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10349. (dispatcher):
  10350. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10351. (btRequestFactory):
  10352. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10353. (peerConnection):
  10354. PeerConnectionHandle -> PeerConnectionWeakHandle
  10355. (messageFactory): New variable.
  10356. (option): Removed.
  10357. (keepAliveInterval): New variable.
  10358. (maxDownloadSpeedLimit): New variable.
  10359. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  10360. (setBtMessageReceiver):
  10361. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  10362. (setDispatcher):
  10363. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  10364. (setBtRequestFactory):
  10365. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  10366. (setPeerConnection):
  10367. PeerConnectionHandle -> PeerConnectionWeakHandle
  10368. (setOption): Removed.
  10369. (setKeepAliveInterval): New function.
  10370. (setMaxDownloadSpeedLimit): New function.
  10371. (setBtMessageFactory): New function.
  10372. * src/BitfieldMan.h
  10373. (cachedNumMissingBlock): New variable.
  10374. (cachedNumFilteredBlock): New variable.
  10375. (cachedCompletedLength): New variable.
  10376. (cachedFilteredComletedLength): New variable.
  10377. (cachedFilteredTotalLength): New variable.
  10378. (countMissingBlockNow): New function.
  10379. (countFilteredBlockNow): New function.
  10380. (getFilteredTotalLengthNow): New function.
  10381. (getCompletedLengthNow): New function.
  10382. (getFilteredCompletedLengthNow): New function.
  10383. (updateCache): New function.
  10384. * src/AbstractBtMessage.h
  10385. (BtMessageDispatcher.h): New include.
  10386. (PeerConnection.h): New include.
  10387. (BtRequestFactory.h): New include
  10388. (BtMessageFactory.h): New include.
  10389. (dispatcher): New variable.
  10390. (messageFactory): New variable.
  10391. (peerConnection: New variable.
  10392. (setBtMessageDispatcher): New function.
  10393. (setPeerConnection): New function.
  10394. (setBtMessageFactory): New function.
  10395. (setBtRequestFactory): New function.
  10396. * src/DefaultBtMessageFactory.cc
  10397. (setCommonProperty): Set dispatcher, requestFactory, this,
  10398. peerConnection to msg.
  10399. * src/BtRegistry.h
  10400. (BT_MESSAGE_RECEIVER): New macro.
  10401. * src/PeerConnection.h
  10402. (PeerConnectionWeakHandle): New type definition.
  10403. * src/BtMessageFactory.h
  10404. (BtMessageFactoryWeakHandle): New type definition.
  10405. * src/BitfieldMan.cc
  10406. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  10407. cachedCompletedLength, cachedFilteredComletedLength,
  10408. cachedFilteredTotalLength.
  10409. Call updateCache().
  10410. (countMissingBlock): Return cachedNumMissingBlock.
  10411. (countMissingBlockNow): New function.
  10412. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  10413. (countFilteredBlockNow): New function.
  10414. (setBit): Call updateCache().
  10415. (unsetBit): Call updateCache().
  10416. (setBitfield): Call updateCache().
  10417. (clearAllBit): Call updateCache().
  10418. (setAllBit): Use setBitInternal instead of setBit.
  10419. Call updateCache().
  10420. (addFilter): Call updateCache().
  10421. (enableFilter): Call updateCache().
  10422. (disableFilter): Call updateCache().
  10423. (clearFilter): Call updateCache().
  10424. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  10425. (getFilteredTotalLengthNow): New function.
  10426. (getCompletedLength): Return cachedCompletedLength.
  10427. (getCompletedLengthNow): New function.
  10428. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  10429. (getFilteredCompletedLengthNow): New function.
  10430. (updateCache): New function.
  10431. * src/BtMessageReceiver.h
  10432. (BtMessageReceiverWeakHandle): New type definition.
  10433. * src/DefaultBtMessageReceiver.cc
  10434. (receiveHandshake): Use messageFactory member.
  10435. (sendHandshake): Use messageFactory member.
  10436. (receiveMessage): Use messageFactory member.
  10437. * src/DefaultBtMessageFactory.h
  10438. (dispatcher): New variable.
  10439. (requestFactory): New variable.
  10440. (peerConnection): New variablle.
  10441. (setBtMessageDispatcher): New function.
  10442. (setBtRequestFactory): New function.
  10443. (setPeerConnection): New function.
  10444. * src/SharedHandle.h
  10445. (RefCount): New class.
  10446. (WeakHandle): New class.
  10447. * src/PeerObject.h
  10448. (BtMessageReceiver.h): New include.
  10449. (PeerObject): Added btMessageReceiver.
  10450. (btMessageReceiver): New variable.
  10451. * src/Util.cc
  10452. (countBit): Simplified.
  10453. * src/BtCancelMessage.cc
  10454. (doReceivedAction): Use dispatcher member.
  10455. * src/BtRequestFactory.h
  10456. (BtRequestFactoryWeakHandle): New type definition.
  10457. * src/PeerStorage.h
  10458. (downloadSpeed): int -> uint32_t
  10459. (uploadSpeed): int -> uint32_t
  10460. (sessionDownloadLength): long long int -> uint64_t
  10461. (sessionUploadLength): long long int -> uint64_t
  10462. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10463. To add RecoverableException, FatalException:
  10464. * src/AbstractCommand.cc
  10465. (onAbort): Exception -> RecoverableException
  10466. * src/PeerAbstractCommand.h
  10467. (RecoverableException.h): New include.
  10468. (onAbort): Exception -> RecoverableException.
  10469. * src/PeerInteractionCommand.cc
  10470. (onAbort): Exception -> RecoverableException.
  10471. * src/PeerAbstractCommand.cc
  10472. (execute): Exception -> RecoverableException.
  10473. (onAbort): Exception -> RecoverableException.
  10474. * src/TorrentRequestInfo.cc
  10475. (execute): Exception -> RecoverableException.
  10476. * src/MetalinkRequestInfo.cc
  10477. (execute): Exception -> RecoverableException.
  10478. * src/MetaFileUtil.cc: RecoverableException.
  10479. * src/AbstractCommand.h
  10480. (onAbort): Exception -> RecoverableException.
  10481. * src/DlRetryEx.h: Exception -> RecoverableException.
  10482. * src/DlAbortEx.h: Exception -> RecoverableException.
  10483. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  10484. * src/Util.cc: Exception -> RecoverableException.
  10485. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  10486. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  10487. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  10488. To make ID static const int
  10489. * src/BtInterestedMessage.h
  10490. (ID_t): Removed.
  10491. (ID): New variable.
  10492. (getId): Made non-const.
  10493. * src/BtPieceMessage.h
  10494. (ID_t): Removed.
  10495. (ID): New variable.
  10496. (getId): Made non-const.
  10497. * src/BtChokeMessage.h
  10498. (ID_t): Removed.
  10499. (ID): New variable.
  10500. (getId): Made non-const.
  10501. * src/BtHaveAllMessage.h
  10502. (ID_t): Removed.
  10503. (ID): New variable.
  10504. (getId): Made non-const.
  10505. * src/BtKeepAliveMessage.h
  10506. (ID_t): Removed.
  10507. (ID): New variable.
  10508. (getId): Made non-const.
  10509. * src/BtHandshakeMessage.h
  10510. (ID): New variable.
  10511. (getId): Made non-const.
  10512. * src/BtSuggestPieceMessage.h
  10513. (ID_t): Removed.
  10514. (ID): New variable.
  10515. (getId): Made non-const.
  10516. * src/BtPortMessage.h
  10517. (ID_t): Removed.
  10518. (ID): New variable.
  10519. (getId): Made non-const.
  10520. * src/AbstractBtMessage.h
  10521. (id): Removed.
  10522. (AbstractBtMessage): Removed id.
  10523. (getId): Removed.
  10524. * src/BtHaveMessage.h
  10525. (ID_t): Removed.
  10526. (ID): New variable.
  10527. (getId): Made non-const.
  10528. * src/BtAllowedFastMessage.h
  10529. (ID_t): Removed.
  10530. (ID): New variable.
  10531. (getId): Made non-const.
  10532. * src/BtCancelMessage.h
  10533. (ID_t): Removed.
  10534. (ID): New variable.
  10535. (getId): Made non-const.
  10536. * src/BtNotInterestedMessage.h
  10537. (ID_t): Removed.
  10538. (ID): New variable.
  10539. (getId): Made non-const.
  10540. * src/BtChokeMessage.h
  10541. (ID_t): Removed.
  10542. (ID): New variable.
  10543. (getId): Made non-const.
  10544. * src/BtRejectMessage.h
  10545. (ID_t): Removed.
  10546. (ID): New variable.
  10547. (getId): Made non-const.
  10548. * src/BtBitfieldMessage.h
  10549. (ID_t): Removed.
  10550. (ID): New variable.
  10551. (getId): Made non-const.
  10552. * src/BtUnchokeMessage.h
  10553. (ID_t): Removed.
  10554. (ID): New variable.
  10555. (getId): Made non-const.
  10556. * src/BtRequestMessage.h
  10557. (ID_t): Removed.
  10558. (ID): New variable.
  10559. (getId): Made non-const.
  10560. * src/BtHaveMessage.h
  10561. (ID_t): Removed.
  10562. (ID): New variable.
  10563. (getId): Made non-const.
  10564. To add --force-truncate command-line option and a check whether
  10565. the file already exists:
  10566. * src/DirectDiskAdaptor.h
  10567. (getFilePath): Made virtual public.
  10568. * src/MultiDiskAdaptor.h
  10569. (File.h): New include.
  10570. (DiskWriterEntry::fileEntry): Made private.
  10571. (DiskWriterEntry::fileExists): New function.
  10572. (DiskWriterEntry::getFileEntry): New function.
  10573. (fileExists): New function.
  10574. (getFilePath): New function.
  10575. * src/TorrentRequestInfo.cc
  10576. (FatalException.h): New include.
  10577. (message.h): New include.
  10578. (RecoverableException.h): New include.
  10579. (execute): Added a check whether file is already exists or not.
  10580. * src/DiskAdaptor.h
  10581. (fileExists): New function.
  10582. (getFilePath): New function.
  10583. * src/main.cc
  10584. (showUsage): Added an explanation of --force-truncate command-line
  10585. option.
  10586. (main): Added --force-truncate command-line option.
  10587. * src/Exception.h
  10588. (setMsg): buf[256] -> buf[1024]
  10589. * src/CopyDiskWriter.h
  10590. (getFilePath): Made public virtual.
  10591. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  10592. (fileExists): New function.
  10593. * src/DownloadEngineFactory.cc
  10594. (newTorrentConsoleEngine): Don't open file here.
  10595. * src/message.h
  10596. (EX_FILE_ALREADY_EXISTS): New definition.
  10597. * src/prefs.h
  10598. (PREF_FOECE_TRUNCATE): New definition.
  10599. * src/HttpResponseCommand.cc
  10600. (handleDefaultEncoding): Added a check whether the file already exists.
  10601. * src/SegmentMan.h
  10602. (fileExists): New function.
  10603. (shouldCancelDownloadForSafety): New function.
  10604. * src/FtpNegotiateCommand.cc
  10605. (recvSize): Added a check whether the file already exists.
  10606. * src/AbstractSingleDiskAdaptor.cc
  10607. (File.h): New include.
  10608. (fileExists): New function.
  10609. * src/AbstractSingleDiskAdaptor.h
  10610. (getFilePath): Removed.
  10611. (fileExists): New function.
  10612. * src/SegmentMan.cc
  10613. (fileExists): New function.
  10614. (shouldCancelDownloadForSafety): New function.
  10615. To fix regression bug in torrent downloading:
  10616. * src/DefaultBtRequestFactory.cc
  10617. (doChokedAction): New function.
  10618. * src/DefaultBtRequestFactory.h
  10619. (doChokedAction): New function.
  10620. * src/DefaultBtMessageDispatcher.cc
  10621. (doChokedAction): Do not delete request if its target is in allowed
  10622. fast set.
  10623. * src/DefaultBtInteractive.cc
  10624. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  10625. (sendKeepAlive): Send keep alive message even if the outgoing message
  10626. queue is not empty.
  10627. (decideInterest): Simplified the code.
  10628. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  10629. it is already called when BtChokeMessage is received from a peer.
  10630. * src/BtRequestFactory.h
  10631. (doChokedAction): New function.
  10632. To clean up code:
  10633. * src/PeerInteractionCommand.h
  10634. (executeInternal): Added virtual keyword explicitly.
  10635. (prepareForRetry): Added virtual keyword explicitly.
  10636. (prepareForNextPeer): Added virtual keyword explicitly.
  10637. (onAbort): Added virtual keyword explicitly.
  10638. * src/RequestSlot.cc
  10639. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  10640. * src/BtPieceMessage.cc
  10641. (doReceivedAction): Added a debug log of piece's bitfield.
  10642. * src/Piece.h
  10643. (getBitfieldLength): New function.
  10644. * src/ByteArrayDiskWriter.cc
  10645. (clear): Added buf = 0 to avoid double free corruption.
  10646. * src/FileAllocator.cc
  10647. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  10648. Added cp.reset().
  10649. * src/BitfieldMan.h
  10650. (operator=): Rewritten.
  10651. * src/BitfieldMan.cc
  10652. (BitfieldMan): Initialized bitfield, useBitfield.
  10653. * src/PeerConnection.cc
  10654. (receiveMessage): Added a call to socket->readable() after getting
  10655. message length to avoid possible EOF.
  10656. * src/Util.cc
  10657. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  10658. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10659. To add an ability to pre-allocate file space:
  10660. * src/DirectDiskAdaptor.h: Rewritten.
  10661. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  10662. * src/MultiDiskAdaptor.h: Rewritten.
  10663. * src/DefaultPieceStorage.cc
  10664. (MultiDiskWriter.h): Removed include.
  10665. (PreAllocationDiskWriter.h): Removed include.
  10666. (FileAllocationMonitor.h): New include.
  10667. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  10668. (initStorage): Rewritten.
  10669. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10670. * src/FileAllocator.h: New class.
  10671. * src/FileAllocator.cc: New class.
  10672. * src/FileAllocationMonitor.h: New class.
  10673. * src/FileAllocationMonitor.cc: New class.
  10674. * src/ConsoleFileAllocationMonitor.h: New class.
  10675. * src/ConsoleFileAllocationMonitor.cc: New class.
  10676. * src/AbstractSingleDiskAdaptor.h: New class.
  10677. * src/AbstractSingleDiskAdaptor.cc: New class.
  10678. * src/DiskAdaptor.h
  10679. (Directory.h): Removed include.
  10680. (DiskWriter.h): Removed include.
  10681. (FileEntry.h): Removed include.
  10682. (diskWriter): Removed.
  10683. (DiskAdaptor): Removed diskWriter.
  10684. (openFile): Made pure virtual.
  10685. (closeFile): Made pure virtual.
  10686. (openExistingFile): Made pure virtual.
  10687. (initAndOpenFile): Made pure virtual.
  10688. (writeData): Made pure virtual.
  10689. (readData): Made pure virtual.
  10690. (sha1Sum): Made pure virtual.
  10691. (getStoreDir): Returns const reference of storeDir.
  10692. (DiskAdaptorHandle): New type definition.
  10693. * src/main.cc
  10694. (ConsoleFileAllocationMonitor.h): New include.
  10695. (showUsage): Added default value description of -s option.
  10696. Added the description of --file-allocation option.
  10697. (main): Set default value of --file-allocation option to 'none'.
  10698. Added --file-allocation command-line option.
  10699. Setup FileAllocationMonitorFactory.
  10700. * src/FtpInitiateConnectionCommand.cc
  10701. (executeInternal): Removed diskWriter related processing, which was
  10702. moved to FtpNegotiationCommand.cc.
  10703. * src/DirectDiskAdaptor.cc
  10704. (getFilePath): Made non-const.
  10705. * src/CopyDiskAdaptor.h
  10706. (DiskAdaptor.h): Removed include.
  10707. (DiskWriter.h): Removed include.
  10708. (AbstractSingleDiskAdaptor.h): New include.
  10709. (getFilePath): Made non-const. Added virtual keyword.
  10710. (CopyDiskAdaptor): Removed diskWriter.
  10711. (getTempFile): Returns const reference.
  10712. (CopyDiskAdaptorHandle): New type definition.
  10713. * src/ByteArrayDiskWriter.cc
  10714. (clear): Simplified.
  10715. (initAndOpenFile): Rewritten.
  10716. (openFile): Call initAndOpenFile()
  10717. * src/MultiDiskAdaptor.cc: Rewritten.
  10718. * src/DownloadEngineFactory.cc
  10719. (FileAllocator.h): New include.
  10720. (FileAllocationMonitor.h): New include.
  10721. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  10722. create DefaultDiskWriter with file allocator.
  10723. * src/DiskWriter.h
  10724. (initAndOpenFile): Added totalLength argument.
  10725. (openFile): Added totalLength argument.
  10726. * src/prefs.h
  10727. (PREF_FILE_ALLOCATION): New definition.
  10728. (V_PREALLOC): New definition.
  10729. (V_NONE): New definition.
  10730. * src/HttpResponseCommand.cc
  10731. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  10732. size.
  10733. * src/FtpNegotiateCommand.cc
  10734. (Util.h): New include.
  10735. (recvSize): Open file here.
  10736. * src/Util.h
  10737. (ullitos): New function.
  10738. * src/CopyDiskWriter.h
  10739. (getFilePath): Made non-const.
  10740. * src/DefaultDiskWriter.h
  10741. (Option.h): New include.
  10742. (totalLength): Removed.
  10743. (DefaultDiskWriter): Removed totalLength.
  10744. (initAndOpenFile): Added totalLength argument.
  10745. (DefaultDiskWriterHandle): New type definition.
  10746. (createNewDiskWriter): New function.
  10747. * src/Util.cc
  10748. (ullitos): New function.
  10749. * src/DefaultDiskWriter.cc
  10750. (message.h): New include.
  10751. (FileAllocator.h): New include.
  10752. (prefs.h): New include.
  10753. (Util.h): New include.
  10754. (DefaultDiskWriter): Removed totalLength.
  10755. (initAndOpenFile): Added file allocation.
  10756. (createNewDiskWriter): New function. Just for temporary solution.
  10757. It will be rewritten later.
  10758. * src/DiskAdaptor.cc
  10759. (DiskAdaptor): Removed diskWriter.
  10760. * src/AbstractDiskWriter.cc
  10761. (LogFactory.h): New include.
  10762. (AbstractDiskWriter): Added fileAllocator, logger.
  10763. (openFile): Added totalLength argument.
  10764. * src/AbstractDiskWriter.h
  10765. (FileAllocator.h): New include.
  10766. (Logger.h): New include.
  10767. (fileAllocator): New variable.
  10768. (logger): New variable.
  10769. (openFile): Added totalLength argument. Added virtual keyword
  10770. explicitly.
  10771. (openExistingFile): Added totalLength argument. Added virtual keyword
  10772. explicitly.
  10773. (closeFile): Added virtual keyword explicitly.
  10774. (sha1Sum): Added virtual keyword explicitly.
  10775. (writeData): Added virtual keyword explicitly.
  10776. (readData): Added virtual keyword explicitly.
  10777. (setFileAllocator): New function.
  10778. * src/DefaultPieceStorage.h
  10779. (FileAllocator.h): New include.
  10780. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10781. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  10782. * src/FileProgressMonitor.h: New class.
  10783. To compile aria2 on PC-BSD:
  10784. * src/DefaultBtContext.cc
  10785. (libgen.h): New include.
  10786. To fix memory leak:
  10787. * src/Exception.h
  10788. (~Exception): Delete cause. Fixed memory leak.
  10789. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10790. Rewritten a portion of bittorrent implementation:
  10791. * src/BtMessageValidator.h: New class.
  10792. * src/BtBitfieldMessageValidator.h: New class.
  10793. * src/BtHandshakeMessageValidator.h: New class.
  10794. * src/BtRequestMessageValidator.h: New class.
  10795. * src/BtSuggestPieceMessageValidator.h: New class.
  10796. * src/BtAllowedFastMessageValidator.h: New class.
  10797. * src/BtRejectMessageValidator.h: New class.
  10798. * src/BtCancelMessageValidator.h: New class.
  10799. * src/BtPieceMessageValidator.h: New class.
  10800. * src/BtHaveMessageValidator.h: New class.
  10801. * src/BtEventListener.h: New class.
  10802. * src/AbstractBtEventListener.h: New class.
  10803. * src/BtEvent.h: New class.
  10804. * src/BtChokingEvent.h: New class.
  10805. * src/BtChokedEvent.h: New class.
  10806. * src/BtCancelSendingPieceEvent.h: New class.
  10807. * src/BtAbortOutstandingRequestEvent.h: New class.
  10808. * src/Randomizer.h: New class.
  10809. * src/SimpleRandomizer.h: New class.
  10810. * src/BtMessage.h: New class.
  10811. * src/AbstractBtMessage.h: New class.
  10812. * src/SimpleBtMessage.h: New class.
  10813. * src/BtHaveMessage.h: New class.
  10814. * src/BtInterestedMessage.h: New class.
  10815. * src/BtAllowedFastMessage.h: New class.
  10816. * src/BtUnchokeMessage.h: New class.
  10817. * src/BtCancelMessage.h: New class.
  10818. * src/BtNotInterestedMessage.h: New class.
  10819. * src/BtChokeMessage.h: New class.
  10820. * src/BtHaveNoneMessage.h: New class.
  10821. * src/BtHandshakeMessage.h: New class.
  10822. * src/BtSuggestPieceMessage.h: New class.
  10823. * src/BtHaveMessage.h: New class.
  10824. * src/BtPieceMessage.h: New class.
  10825. * src/BtHaveAllMessage.h: New class.
  10826. * src/BtKeepAliveMessage.h: New class.
  10827. * src/BtPortMessage.h: New class.
  10828. * src/BtRejectMessage.h: New class.
  10829. * src/BtBitfieldMessage.h: New class.
  10830. * src/BtRequestMessage.h: New class.
  10831. * src/DefaultBtRequestFactory.h: New class.
  10832. * src/DefaultBtMessageReceiver.h: New class.
  10833. * src/BtInteractive.h: New class.
  10834. * src/BtMessageDispatcher.h: New class.
  10835. * src/DefaultBtMessageDispatcher.h: New class.
  10836. * src/DefaultBtInteractive.h: New class.
  10837. * src/BitfieldManFactory.h: New class.
  10838. * src/HandleRegistry.h: New class.
  10839. * src/BtMessageFactory.h: New class.
  10840. * src/BtMessageReceiver.h: New class.
  10841. * src/DefaultBtMessageFactory.h: New class.
  10842. * src/PeerObject.h: New class.
  10843. * src/BtRequestFactory.h: New class.
  10844. * src/SuggestPieceMessage.h: Removed.
  10845. * src/PortMessage.h: Removed.
  10846. * src/SuggestPieceMessage.h: Removed.
  10847. * src/KeepAliveMessage.h: Removed.
  10848. * src/HandshakeMessage.h: Removed.
  10849. * src/PeerInteraction.h: Removed.
  10850. * src/UnchokeMessage.h: Removed.
  10851. * src/PieceMessage.h: Removed.
  10852. * src/RequestMessage.h: Removed.
  10853. * src/InterestedMessage.h: Removed.
  10854. * src/HaveMessage.h: Removed.
  10855. * src/CancelMessage.h: Removed.
  10856. * src/RejectMessage.h: Removed.
  10857. * src/AllowedFastMessage.h: Removed.
  10858. * src/HaveNoneMessage.h: Removed.
  10859. * src/SimplePeerMessage.h: Removed.
  10860. * src/HaveAllMessage.h: Removed.
  10861. * src/BitfieldMessage.h: Removed.
  10862. * src/PeerMessageFactory.h: Removed.
  10863. * src/NotInterestedMessage.h: Removed.
  10864. * src/ChokeMessage.h: Removed.
  10865. * src/PeerMessage.h: Removed.
  10866. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10867. To know root cause of exception:
  10868. * src/Exception.h
  10869. (cause): New variable.
  10870. (Exception): Added a parameter.
  10871. (getMsg): Return const reference to msg.
  10872. (getCause): New function.
  10873. * src/DlRetryEx.h
  10874. (DlRetryEx): Added a parameter 'cause'.
  10875. Added an overloaded constructor.
  10876. (DlAbortEx): Added a parameter 'cause'.
  10877. Added an overloaded constructor.
  10878. * src/SimpleLogger.cc
  10879. (writeLog): Log nested exception messages recursively.
  10880. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10881. * src/DefaultBtProgressInfoFile.cc
  10882. (load): Fixed memory leak when the infohash doesn't match.
  10883. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10884. * src/DefaultPeerStorage.cc
  10885. (calculateStat): Simplified the code by combining 2 loops into 1.
  10886. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10887. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10888. for BitTorrent download:
  10889. * src/PeerAbstractCommand.cc
  10890. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10891. * src/main.cc:
  10892. (timeoutSpecified): Removed.
  10893. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10894. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10895. * src/TorrentRequestInfo.cc
  10896. (timeoutSpecified): Removed.
  10897. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10898. timeout value.
  10899. * src/prefs.h
  10900. (PREF_BT_TIMEOUT): New definition.
  10901. Delete unused variables:
  10902. * src/TorrentRequestInfo.cc
  10903. (requestInfo): Removed.
  10904. Move setSignalHander to Util::setGlobalSignalHandler:
  10905. * src/TorrentRequestInfo.cc:
  10906. setSignalHander -> Util::setGlobalSignalHandler
  10907. * src/main.cc
  10908. (setSignalHander): Removed.
  10909. (main): setSignalHander -> Util::setGlobalSignalHandler
  10910. * src/Util.h
  10911. (setGlobalSignalHandler): New function.
  10912. * src/Util.cc
  10913. (setGlobalSignalHandler): New function.
  10914. * src/UrlRequestInfo.cc:
  10915. setSignalHander -> Util::setGlobalSignalHandler
  10916. Reset peer status in order to exit gracefully:
  10917. * src/PeerAbstractCommand.cc
  10918. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10919. To fix the bug that causes the number of bytes uploaded is not saved
  10920. to .aria2 file:
  10921. * src/DefaultPeerStorage.h
  10922. (removedPeerSessionDownloadLength): New variable.
  10923. (removedPeerSessionUploadLength): New variable.
  10924. * src/DefaultPeerStorage.cc
  10925. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10926. removedPeerSessionUploadLength(0).
  10927. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10928. through all peers, and then add removedPeerSessionDownloadLength(
  10929. removedPeerSessionUploadLength) to it.
  10930. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10931. (to) the peer to removedPeerSessionDownloadLength
  10932. (removedPeerSessionUploadLength).
  10933. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10934. To add Metalink location option:
  10935. * src/MetalinkRequestInfo.cc
  10936. (execute): Call MetalinkEntry::setLocationPreference()
  10937. * src/main.cc
  10938. (showUsage): Added the help message for --metalink-location option.
  10939. (main): Added --metalink-location option.
  10940. * src/prefs.h
  10941. (PREF_METALINK_LOCATION): New definition.
  10942. * src/MetalinkEntry.cc
  10943. (AddLocationPreference): New function object.
  10944. (setLocationPreference): New function.
  10945. * src/Xml2MetalinkProcessor.cc
  10946. (getResource): Set location attribute to MetalinkResource
  10947. To show URLs to download
  10948. * src/UrlRequestInfo.h
  10949. (printUrls): New function.
  10950. To add multiple <file> Metalink support:
  10951. * src/MetalinkEntry.h
  10952. (MetalinkResources): Removed.
  10953. (setLocationPreference): New function.
  10954. (MetalinkEntryHandle): New type definition.
  10955. (MetalinkEntries): New type definition.
  10956. * src/Xml2MetalinkProcessor.h
  10957. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10958. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10959. (parseFile): Metalinker* -> MetalinkerHandle
  10960. * src/UrlRequestInfo.h
  10961. (execute): RequestInfo* -> RequestInfos
  10962. * src/MetalinkRequestInfo.cc
  10963. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10964. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10965. (execute): RequestInfo* -> RequestInfos
  10966. Added multiple <file> support. Print filename when it is queued.
  10967. * src/MetalinkRequestInfo.h
  10968. (execute): RequestInfo* -> RequestInfos
  10969. (getDownloadEngine): Removed.
  10970. * src/RequestInfo.h
  10971. (RequestInfoHandle): New type definition.
  10972. (RequestInfos): New type definition.
  10973. (execute): RequestInfo* -> RequestInfos
  10974. (getDownloadEngine): Removed.
  10975. * src/MetalinkResource.h
  10976. (MetalinkResourceHandle): New type definition.
  10977. (MetalinkResources): New type definition.
  10978. * src/MetalinkEntry.cc
  10979. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10980. because the element is now of type MetalinkResourceHandle.
  10981. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10982. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10983. (dropUnsupportedResource): Removed the deletion of the elements of
  10984. resources because the element is now of type MetalinkResourceHandle.
  10985. * src/Xml2MetalinkProcessor.cc
  10986. (parseFile): Metalinker* -> MetalinkerHandle
  10987. MetalinkEntry* -> MetalinkEntryHandle
  10988. Removed try-catch block.
  10989. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10990. MetalinkResource* -> MetalinkResourceHandle
  10991. Removed try-catch block.
  10992. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10993. Free result by using xmlXPathFreeObject()
  10994. * src/Metalinker.cc
  10995. (~Metalinker): Removed the deletion of entries.
  10996. MetalinkEntry* -> MetalinkEntryHandle
  10997. (queryEntry): Add multiple <file> Metalink support.
  10998. * src/Metalinker.h
  10999. (MetalinkEntries): Removed.
  11000. (queryEntry): MetalinkEntry* -> MetalinkEntries
  11001. * src/MetalinkProcessor.h
  11002. (parseFile): Metalinker* -> MetalinkerHandle
  11003. Bug fixes:
  11004. * src/PeerChokeCommand.cc
  11005. (execute): cat01->cat02
  11006. * src/DefaultPieceStorage.cc
  11007. (DefaultPieceStorage): Added diskAdaptor(0)
  11008. * src/TrackerWatcherComand.cc:
  11009. (execute): Use btAnnounce->noMoreAnnounce()
  11010. to determin whether the function returns true or not.
  11011. * src/TrackerUpdateCommand.cc:
  11012. (execute): Use btAnnounce->noMoreAnnounce()
  11013. to determin whether the function returns true or not.
  11014. * src/FtpConnection.cc
  11015. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  11016. This is the fix of the busy loop bug.
  11017. * src/DownloadCommand.cc
  11018. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  11019. cached PeerStat.
  11020. The value of "name" entry in torrent file is now set by
  11021. *DiskAdaptor::setTopDir(...) methods.
  11022. * src/MultiDiskAdaptor.h
  11023. (topDir): New variable.
  11024. (setTopDir): New function.
  11025. (getTopDir): New function.
  11026. * src/MultiDiskAdaptor.cc
  11027. (getFilePath): Concat storDir, "/" and topDir.
  11028. (mkdir): Use getFilePath() to get the directory path for output.
  11029. * src/DefaultPieceStorage.cc
  11030. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  11031. CopyDiskAdaptor.
  11032. * src/CopyDiskAdaptor.h
  11033. (topDir): New variable.
  11034. (setTopDir): New function.
  11035. (getTopDir): New function.
  11036. * src/CopyDiskAdaptor.cc
  11037. (fixFilename): Updated.
  11038. Misc
  11039. * src/UrlRequestInfo.h
  11040. (e): Removed.
  11041. (UrlRequestInfo): Removed e.
  11042. (getDownloadEngine): Removed.
  11043. * src/UrlRequestInfo.cc
  11044. (handler): Rewritten.
  11045. (printUrls): New function.
  11046. (execute): Call printUrls().
  11047. * src/HandshakeMessage.cc
  11048. (check): peerinteraction->getBtContext() -> btContext
  11049. * src/PeerInteraction.h
  11050. (getBtContext): Removed.
  11051. * src/TorrentRequestInfo.h
  11052. (execute): RequestInfo* -> RequestInfos
  11053. (getDownloadEngine): Removed.
  11054. * src/TorrentRequestInfo.cc
  11055. (haltRequested): Removed.
  11056. (btHaltRequested): New variable.
  11057. (torrentHandler): haltRequested -> btHaltRequested
  11058. (execute): RequestInfo* -> RequestInfos
  11059. * src/TorrentConsoleDownloadEngine.cc
  11060. (afterEachIteration): haltRequested -> btHaltRequested.
  11061. * src/ConsoleDownloadEngine.h
  11062. (initStatistics): Added virtual.
  11063. (calculateStatistics): Added virtual.
  11064. (onEndOfRun): Added virtual.
  11065. (afterEachIteration): Added virtual.
  11066. * src/ConsoleDownloadEngine.cc
  11067. (haltRequested): New variable.
  11068. (afterEachIteration): New function.
  11069. * src/main.cc
  11070. (requestInfo): Removed.
  11071. * src/SegmentMan.cc
  11072. (findSlowerSegmentEntry): Refactored.
  11073. * Release 0.9.0
  11074. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11075. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  11076. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  11077. * src/TorrentMan.h: Removed.
  11078. * src/TorrentMan.cc: Removed.
  11079. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  11080. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  11081. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  11082. * src/PeerAbstractCommand.cc: Use btRuntime.
  11083. * src/BtContextAwareCommand.h: New class.
  11084. * src/FileEntry.h: Added accessor methods for following variables.
  11085. (path): Made private.
  11086. (length): Made private.
  11087. (offset): Made private.
  11088. (extracted): Made private.
  11089. (requested): Made private.
  11090. (FileEntries): New definition.
  11091. (FileEntryHandle): New definition.
  11092. * src/FileEntry.cc: New file.
  11093. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  11094. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  11095. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  11096. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  11097. * src/PieceStorage.h: New file.
  11098. * src/PeerInteractionCommand.h: Use btContext.
  11099. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  11100. btRuntime.
  11101. * src/DefaultBtProgressInfoFile.h: New file.
  11102. * src/DefaultBtProgressInfoFile.cc: New file.
  11103. * src/File.cc
  11104. (Util.h): New include.
  11105. (mkdirs): New function.
  11106. * src/MultiDiskAdaptor.h
  11107. (mkdir): New function.
  11108. * src/PeerListProcessor.h
  11109. (Peers): Removed.
  11110. * src/PeerInteraction.h
  11111. (torrentMan): Removed.
  11112. (btContext): New variable.
  11113. (peerStorage): New variable.
  11114. (pieceStorage): New variable.
  11115. (btAnnounce): New variable.
  11116. (getTorrentMan): Removed.
  11117. (getBtContext): New function.
  11118. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  11119. btAnnounce.
  11120. * src/HandshakeMessage.h
  11121. (TorrentMan.h): Removed.
  11122. * src/HandshakeMessage.cc: Use btContext.
  11123. * src/DefaultBtAnnounce.cc: New file.
  11124. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  11125. * src/DefaultPieceStorage.cc: New file.
  11126. * src/DefaultBtContext.h: New file.
  11127. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  11128. Use the accessor methods of FileEntry.
  11129. * src/CookieBox.cc: Updated to use Util::slice().
  11130. * src/PieceMessage.cc: Use btContext, pieceStorage.
  11131. * src/common.h (SharedHandle.h): New include.
  11132. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  11133. pieceStorage.
  11134. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  11135. * src/DiskAdaptor.h
  11136. (topDir): Removed.
  11137. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  11138. (setTopDir): Removed.
  11139. (getTopDir): Removed.
  11140. * src/BtContext.h: New file.
  11141. * src/DefaultPeerStorage.h: New file.
  11142. * src/PieceMessage.h (TorrentMan.h): Removed.
  11143. * src/RequestMessage.h (TorrentMan.h): Removed.
  11144. * src/TorrentDownloadEngine.h
  11145. (uploadLength): New variable.
  11146. (btContext): New variable.
  11147. (btRuntime): New variable.
  11148. (pieceStorage): New variable.
  11149. (peerStorage): New variable.
  11150. (btAnnounce): New variable.
  11151. (btProgressInfoFile): New variable.
  11152. (torrentMan): Removed.
  11153. (setBtContext): New function.
  11154. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  11155. peerStorage, btAnnounce, btProgressInfoFile.
  11156. * src/Piece.h
  11157. (toString): New function.
  11158. (Pieces): New type definition.
  11159. * src/Peer.h
  11160. (active): New variable.
  11161. (Peer): Added active.
  11162. (activate): Set active to true.
  11163. (deactivate): Set active to false.
  11164. (isActive): New function.
  11165. (Peers): New type definition.
  11166. * src/DirectDiskAdaptor.cc
  11167. (getFilePath): Use the accessor methods of FileEntry.
  11168. * src/TorrentConsoleDownloadEngine.h
  11169. (afterEachIteration): New function.
  11170. * src/TorrentConsoleDownloadEngine.cc
  11171. (haltRequested): New variable.
  11172. (sendStatistics): Use pieceStorage, btRuntime.
  11173. (afterEachIteration): New function.
  11174. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  11175. * src/Directry.h
  11176. (Directory): New function.
  11177. (DirectoryHandle): New type definition.
  11178. * src/BtProgressInfoFile.h: New file.
  11179. * src/RequestMessage.cc: Use pieceStorage.
  11180. * src/BtRuntime.h: New file.
  11181. * src/DefaultBtContext.cc: New file.
  11182. * src/BitfieldMan.h
  11183. (getCompletedLength): New function(private).
  11184. (getCompletedLength): New function.
  11185. (getFilteredCompletedLength): New function.
  11186. * src/BitfieldMan.h
  11187. (getCompletedLength): New function(private).
  11188. (getCompletedLength): New function.
  11189. (getFilteredCompletedLength): New function.
  11190. * src/MultiDiskAdaptor.cc
  11191. (mkdir): New function.
  11192. (openFile): Call mkdir().
  11193. (initAndOpenFile): Call mkdir().
  11194. * src/CancelMessage.h
  11195. (TorrentMan.h): Removed.
  11196. * src/RejectMessage.h
  11197. (TorrentMan.h): Removed.
  11198. * src/DownloadEngineFactory.cc
  11199. (DefaultPieceStorage.h): New include.
  11200. (DefaultPeerStorage.h): New include.
  11201. (DefaultBtAnnounce.h): New include.
  11202. (DefaultBtProgressInfoFile.h): New include.
  11203. (newTorrentConsoleEngine): Rewritten.
  11204. * src/ShareRatioSeedCriteria.h
  11205. (torrentMan): Removed.
  11206. (btContext): New variable.
  11207. (peerStorage): New variable.
  11208. (btRuntime): New variable.
  11209. (evaluate): Use btContext, btRuntime, peerStorage.
  11210. * src/AnnounceTier.h: New file.
  11211. * src/BtAnnounce.h: New file.
  11212. * src/BtRegistry.h: New file.
  11213. * src/PeerInitiateConnectionCommand.h: Added btContext.
  11214. * src/PeerConnection.h (TorrentMan.h): Removed.
  11215. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  11216. * src/Util.h
  11217. (slice): Added an argument.
  11218. * src/Util.cc
  11219. (slice): Added an argument to control whether trim is made or not.
  11220. * src/PeerStorage.h: New file.
  11221. * src/BtRegistry.cc: New file.
  11222. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  11223. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  11224. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  11225. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  11226. * src/TorrentRequestInfo.h
  11227. (e): Removed.
  11228. (showFileEntry): Added an argument.
  11229. (getDownloadEngine): Return 0.
  11230. * src/DefaultBtAnnounce.h: New file.
  11231. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  11232. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  11233. * src/PeerMessageFactory.h
  11234. (btContext): New variable.
  11235. (pieceStorage): New variable.
  11236. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  11237. btAnnounce.
  11238. * src/DiskAdaptor.cc
  11239. (DiskAdaptor): Removed topDir.
  11240. (~DiskAdaptor): Removed topDir.
  11241. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  11242. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  11243. * src/File.h (mkdirs): New function.
  11244. * src/DefaultPeerStorage): New file.
  11245. * src/DownloadEngineFactory.h
  11246. (newTorrentConsoleEngine): Use btContext.
  11247. * src/BtContextAwareCommand.cc: New file.
  11248. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  11249. * src/PeerMessage.h
  11250. (btContext): New variable.
  11251. (peerStorage): New variable.
  11252. (pieceStorage): New variable.
  11253. (setBtContext): New function.
  11254. * src/Directry.cc
  11255. (Directory): New function.
  11256. (createDir): Do nothing if name.size() == 0.
  11257. * src/AnnounceList.h
  11258. (AnnounceTier): Removed.
  11259. (AnnounceTiers): Removed.
  11260. * src/DefaultPieceStorage.h: New file.
  11261. * src/Piece.cc (toString): New function.
  11262. To fix typo:
  11263. * src/main.cc (showVersion): Fixed typo.
  11264. To fix compile warning:
  11265. * src/DelegatingPeerListProcessor.cc
  11266. (canHandle): Added "return false".
  11267. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11268. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  11269. make the process of announce request testable.
  11270. * src/TrackerWatcherCommand.h
  11271. (TimeA2.h): Removed.
  11272. (interval): Removed.
  11273. (checkPoint): Removed.
  11274. (createRequestCommand): Added an argument 'url'.
  11275. (TrackerWatherCommand): Removed interval.
  11276. (createCommand): New function.
  11277. * src/DownloadEngineFactory.cc
  11278. (newTorrentConsoleEngine): Updated according to the changes in
  11279. TrackerWatherCommand.
  11280. * src/TorrentMan.cc
  11281. (DelegatingPeerListProcessor.h): New includes.
  11282. (TorrentMan): Added the initialization of announceInterval.
  11283. (isStoppedAnnounceReady): New function.
  11284. (isCompletedAnnounceReady): New function.
  11285. (isDefaultAnnounceReady): New function.
  11286. (isAnnounceReady): New function.
  11287. (getAnnounceUrl): New function.
  11288. (announceStart): New function.
  11289. (announceFailure): New function.
  11290. (announceSuccess): New function.
  11291. (isAllAnnounceFailed): New function.
  11292. (resetAnnounce): New function.
  11293. (processAnnounceResponse): New function.
  11294. (needMorePeerConnection): New function.
  11295. (noMoreAnnounce): New function.
  11296. * src/TrackerUpdateCommand.h
  11297. (getTrackerResponse): int->size_t
  11298. * src/TorrentMan.h
  11299. (isStoppedAnnounceReady): New function.
  11300. (isCompletedAnnounceReady): New function.
  11301. (isDefaultAnnounceReady): New function.
  11302. (announceInterval): New variable.
  11303. (isAnnounceReady): New function.
  11304. (getAnnounceUrl): New function.
  11305. (announceStart): New function.
  11306. (announceFailure): New function.
  11307. (announceSuccess): New function.
  11308. (isAllAnnounceFailed): New function.
  11309. (resetAnnounce): New function.
  11310. (processAnnounceResponse): New function.
  11311. (needMorePeerConnection): New function.
  11312. (noMoreAnnounce): New function.
  11313. * src/TrackerWatcherCommand.cc
  11314. (TrackerWatherCommand): Removed interval and checkPoint.
  11315. (execute): Rewritten.
  11316. (createCommand): New function.
  11317. (createRequestCommand): Rewritten.
  11318. * src/TrackerUpdateCommand.cc
  11319. (MetaFileUtil.h): Removed.
  11320. (DelegatingPeerListProcessor.h): Removed.
  11321. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  11322. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11323. Request -> RequestHandle:
  11324. * src/HttpResponseCommand.h: Request->RequestHandle
  11325. * src/AbstractCommand.cc: Request->RequestHandle
  11326. * src/HttpDownloadCommand.cc: Request->RequestHandle
  11327. * src/HttpRequestCommand.cc: Request->RequestHandle
  11328. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  11329. * src/AbstractCommand.h: Request->RequestHandle
  11330. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  11331. * src/HttpResponseCommand.cc: Request->RequestHandle
  11332. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  11333. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  11334. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  11335. * src/HttpConnection.h: Request->RequestHandle
  11336. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  11337. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  11338. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11339. * src/DownloadCommand.h: Request->RequestHandle
  11340. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  11341. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  11342. * src/HttpRequestCommand.h: Request->RequestHandle
  11343. * src/FtpNegotiateCommand.h: Request->RequestHandle
  11344. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  11345. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  11346. * src/HttpDownloadCommand.h: Request->RequestHandle
  11347. * src/FtpConnection.cc: Request->RequestHandle
  11348. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  11349. * src/UrlRequestInfo.cc: Request->RequestHandle
  11350. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  11351. * src/HttpConnection.h: Request->RequestHandle
  11352. * src/DownloadCommand.cc: Request->RequestHandle
  11353. * src/FtpConnection.h: Request->RequestHandle
  11354. * src/FtpDowndloadCommand.h: Request->RequestHandle
  11355. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  11356. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  11357. * src/Request.h
  11358. (SharedHandle.h): New include.
  11359. (RequestHandle): New type definition.
  11360. (Requests): Redefined.
  11361. To add MULTITRACKER support:
  11362. * src/TrackerWatcherCommand.h
  11363. (createRequestCommand): New function.
  11364. * src/DownloadEngineFactory.cc
  11365. (newTorrentConsoleEngine): Removed req.
  11366. * src/prefs.h
  11367. (PREF_TRACKER_MAX_TRIES): New definition.
  11368. * src/TorrentMan.cc
  11369. (TorrentMan): Removed req. Added trackerNumTry.
  11370. (~TorrentMan): Removed req.
  11371. (setupInternal1): Added announceList.
  11372. * src/TorrentRequestInfo.cc
  11373. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  11374. announces is now specified by PREF_TRACKER_MAX_TRIES.
  11375. * src/main.cc
  11376. (main): Added PREF_TRACKER_MAX_TRIES.
  11377. * src/TorrentMan.h
  11378. (Request.h): Removed.
  11379. (AnnounceList.h): New include.
  11380. (trackerNumTry): New variable.
  11381. (req): Removed.
  11382. (announceList): New variable.
  11383. * src/TrackerWatcherCommand.cc
  11384. (execute): Rewritten.
  11385. (createRequestCommand): New function.
  11386. * src/TrackerUpdateCommand.cc
  11387. (execute): Updated with the use of AnnounceList.
  11388. * src/AnnounceList.cc: New class.
  11389. * src/AnnounceList.h: New class.
  11390. To fix typo:
  11391. * src/prefs.h
  11392. (PREF_MAX_TRIES): max_try->max_tries
  11393. To not to decode "+" as space in URL decode:
  11394. * src/Util.cc
  11395. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  11396. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11397. To add timeout to async name resolution:
  11398. * src/AbstractCommand.h
  11399. (nameResolveFinished): New function. This is not elegant way. It needs
  11400. to be more refined.
  11401. (nameResolverCheck): New variable.
  11402. * src/AbstractCommand.cc
  11403. (AbstractCommand): Added nameResolverCheck.
  11404. (execute): Added the check whether the name resolution has finished.
  11405. (setNameResolverCheck): Set nameResolverCheck to true.
  11406. (disableNameResolverCheck): Set nameResolverCheck to false.
  11407. (nameResolverFinished): New function.
  11408. * src/FtpInitiateConnectionCommand.h
  11409. (nameResolverFinished): New function.
  11410. * src/FtpInitiateConnectionCommand.cc
  11411. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11412. * src/HttpInitiateConnectionCommand.h
  11413. (nameResolverFinished): New function.
  11414. * src/HttpInitiateConnectionCommand.cc
  11415. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  11416. * src/prefs.h
  11417. (PREF_DNS_TIMEOUT): New definition.
  11418. * src/main.cc
  11419. (main): Added PREF_DNS_TIMEOUT.
  11420. To add the support for a non-compact response from a tracker:
  11421. * src/PeerListProcessor.h: New class.
  11422. * src/DefaultPeerListProcessor.h: New class.
  11423. * src/DefaultPeerListProcessor.cc: New class.
  11424. * src/CompactPeerListProcessor.h: New class.
  11425. * src/CompactPeerListProcessor.cc: New class.
  11426. * src/DelegatingPeerListProcessor.h: New class.
  11427. * src/DelegatingPeerListProcessor.cc: New class.
  11428. * src/TorrentMan.cc
  11429. (addPeer): New function(overload).
  11430. (addPeer): Delete unused peers only when new peer is added.
  11431. * src/TorrentMan.h
  11432. (PeerListProcessor.h): Included.
  11433. (Peers): Removed.
  11434. (addPeer): New function(overload).
  11435. * src/TrackerUpdateCommand.cc
  11436. (netinet/in.h): Removed.
  11437. (DelegatingPeerListProcessor.h): Included.
  11438. (execute): Updated to use DelegatingPeerListProcessor.
  11439. To fix the memory leak in TorrentMan::peers:
  11440. * src/PeerAbstractCommand.cc
  11441. (onAbort): Added peer->resetStatus().
  11442. * src/Peer.h
  11443. (resetStatus): Made public.
  11444. To improve the precision of the speed calculation:
  11445. * src/SpeedCalc.h
  11446. (nextInterval): New variable.
  11447. * src/SpeedCalc.cc
  11448. (reset): Added nextInterval.
  11449. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  11450. (changeSw): Set nextInterval to 15 seconds relative to the current
  11451. instant time.
  11452. * src/main.cc
  11453. (showVersion): Updated.
  11454. (showUsage): Updated.
  11455. * Release 0.8.1
  11456. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11457. * src/main.cc
  11458. (showUsage): Commented out --min-segment-size option.
  11459. (main): Commented out --min-segment-size option.
  11460. * Release 0.8.0
  11461. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11462. * src/*.{h,cc}:
  11463. Added an exception to the license which allows linking with OpenSSL.
  11464. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11465. * src/AbstractCommand.cc
  11466. (execute): Check whether the download has finished before checking
  11467. socket status.
  11468. Return true if peerStat->getStatus() == REQUEST_IDLE.
  11469. Do not exit even if no segment is available.
  11470. * src/prefs.h
  11471. (PREF_STARTUP_IDLE_TIME): New definition.
  11472. * src/PeerInteractionCommand.cc
  11473. (executeInternal): Removed max speed limit. Because it performs bad.
  11474. (receiveMessages): Added max speed limit. This was better than above,
  11475. but still a little bit to be desired. Sometimes the download speed
  11476. became much faster than I specified.
  11477. * src/SpeedCalc.h
  11478. (start): New variable.
  11479. (accumulatedLength): New variable.
  11480. (getAvgSpeed): New function.
  11481. * src/SpeedCalc.cc
  11482. (reset): Added start, accumulatedLength.
  11483. (update): Added calculation of an average speed.
  11484. (getAvgSpeed): New function.
  11485. * src/DownloadCommand.h
  11486. (sw): Removed.
  11487. * src/main.cc
  11488. (main): Added PREF_STARTUP_IDLE_TIME.
  11489. * src/PeerStat.h
  11490. (STATUS): Added REQUEST_IDLE.
  11491. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  11492. (getAvgDownloadSpeed): New function
  11493. (requestIdle): New function.
  11494. * src/SegmentMan.h
  11495. (SegmentEntryHandle): New type definition.
  11496. (SegmentEntries): Now holds SegmentEntryHandle.
  11497. (findSlowerSegmentEntry): New funtion.
  11498. * src/SegmentMan.cc
  11499. (save): Updated according to the changes in SegmentEntries.
  11500. (read): Updated according to the changes in SegmentEntries.
  11501. (FindSegmentEntryByIndex): Updated according to the changes in
  11502. SegmentEntries.
  11503. (FindSegmentEntryByCuid): Updated according to the changes in
  11504. SegmentEntries.
  11505. (checkoutSegment): Updated according to the changes in SegmentEntries.
  11506. (onNullBitfield): Updated according to the changes in SegmentEntries.
  11507. Renamed uitr as itr.
  11508. (findSlowerSegmentEntry): New function.
  11509. (getSegment): Updated according to the changes in SegmentEntries.
  11510. Added the feature that cancels the segment with slow server and fast
  11511. one takes it over.
  11512. (cancelSegment): Updated according to the changes in SegmentEntries.
  11513. (getDownloadLength): Updated according to the changes in
  11514. SegmentEntries.
  11515. (init): Assigned 0 to bitfield after deleting it.
  11516. * src/DownloadCommand.cc
  11517. (STARTUP_IDLE_TIME): Removed.
  11518. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  11519. * src/PeerChokeCommand.cc
  11520. (optUnchokingPeer): Updated according to the changes in Peer.
  11521. (ResetDelta): Removed.
  11522. (UploadFaster): Updated according to the changes in Peer.
  11523. (DownloadFaster): Updated according to the changes in Peer.
  11524. (execute): I clarify the meaning of "upload" and "download" here.
  11525. "upload" means the transfer from localhost to remote host.
  11526. "download" means the transfer from remote host to localhost.
  11527. Based on this rule, I swapped orderByUploadRate and
  11528. orderByDownloadRate.
  11529. * src/PeerInteractionCommand.cc
  11530. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  11531. (executeInternal): Removed the argument of
  11532. peerInteraction->sendMessages().
  11533. (receiveMessages): Rewritten download speed limit.
  11534. (sendKeepAlive): Removed peerInteraction->sendMessages().
  11535. * src/HttpResponseCommand.cc
  11536. (handleDefaultEncoding): If file size is unknown in torrent request,
  11537. do not call segmentMan->initBitfield() here.
  11538. Disabled persistent connection feature in torrent request.
  11539. * src/UrlRequestInfo.h
  11540. (UrlRequestInfo): Removed const qualifier from option.
  11541. * src/TorrentMan.h
  11542. (TransferStat): New class.
  11543. (deltaDownloadLength): Removed.
  11544. (deltaUploadLength): Removed.
  11545. (addDeltaDownloadLength): Removed.
  11546. (getDeltaDownloadLength): Removed.
  11547. (resetDeltaDownloadLength): Removed.
  11548. (addDeltaUploadLength): Removed.
  11549. (getDeltaUploadLength): Removed.
  11550. (resetDeltaUploadLength): Removed.
  11551. (addActivePeer): Added peer->activate().
  11552. (deleteActivePeer): Added peer->deactivate().
  11553. (calculateStat): New function.
  11554. * src/TorrentMan.cc
  11555. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  11556. (calculateStat): New function.
  11557. * src/PeerInteraction.h
  11558. (uploadLimit): Removed.
  11559. (option): New variable.
  11560. (setUploadLimit): Removed.
  11561. (getUploadSpeed): Removed.
  11562. (sendMessages): Removed the argument "currentUploadSpeed".
  11563. * src/PeerInteraction.cc
  11564. (prefs.h): Included.
  11565. (PeerInteraction): Removed uploadLimit. Added option.
  11566. (sendMessages): Rewritten upload speed limit.
  11567. (sendHandshake): Removed the argument from sendMessages().
  11568. (sendBitfield): Removed the argument from sendMessages().
  11569. * src/PeerAbstractCommand.cc
  11570. (execute): Commented out the portion of upload limit.
  11571. (onAbort): Removed peer->resetStatus().
  11572. * src/TorrentRequestInfo.cc
  11573. (timeoutSpecified): Declared extern.
  11574. (execute): Set timeout to 180 if timeout is not specified by.
  11575. command-line.
  11576. * src/PieceMessage.cc
  11577. (receivedAction): Added peer->updateDownloadLength().
  11578. Removed peer->addPeerUpload().
  11579. Removed torrentMan->addDeltaDownloadLength().
  11580. (send): Added peer->updateUploadLength().
  11581. Removed peer->addPeerDownload().
  11582. Removed torrentMan->addDeltaUploadLength().
  11583. * src/main.cc
  11584. (timeoutSpecified): New variable.
  11585. (main): Set timeoutSpecified to false.
  11586. If the command-line option "--upload-limit" is specified, then
  11587. timeoutSpecified is set to true. This option will remain in the next
  11588. release, but be deprecated in the future release.
  11589. * src/TorrentRequestInfo.h
  11590. (TorrentRequestInfo): Removed const qualifier from op.
  11591. * src/PeerStat.h
  11592. (uploadSpeed): New variable.
  11593. (PeerStat): Added default value to cuid.
  11594. (calculateUploadSpeed): New function.
  11595. (updateUploadLength): New function.
  11596. (getMaxUploadSpeed): New function.
  11597. (getAvgUploadSpeed): New function.
  11598. (reset): Added uploadSpeed. Set status to IDLE.
  11599. * src/TorrentDownloadEngine.h
  11600. (cp): Declared as Time.
  11601. (sessionDownloadLengthArray): Removed.
  11602. (sessionUploadLengthArray): Removed.
  11603. (currentCp): Removed.
  11604. (lastCalcStat): New variable
  11605. (lastElapsed): Removed.
  11606. (sessionDownloadLength): Removed.
  11607. (calculateStat): New function.
  11608. * src/TorrentDownloadEngine.cc
  11609. (initStatistics): Removed lastElapsed, cp[],
  11610. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  11611. currentCp, sessionDownloadLength.
  11612. Added cp.reset() and lastCalcStat.reset().
  11613. (calculateSpeed): Changed the name of the argument.
  11614. (calculateStatistics): Rewritten.
  11615. (calculateStat): New function.
  11616. * src/Peer.h
  11617. (PeerStat.h): Included.
  11618. (peerUpload): Removed.
  11619. (peerDownload): Removed.
  11620. (peerStat): New variable.
  11621. (sessionUploadLength): New variable.
  11622. (sessionDownloadLength): New variable.
  11623. (deltaUpload): Removed.
  11624. (deltaDownload): Removed.
  11625. (resetStatus): Made private.
  11626. (Peer): Added sessionUploadLength, sessionDownloadLength.
  11627. Removed peerUpload, peerDownload.
  11628. (updateUploadLength): New function.
  11629. (addDeltaUpload): Removed.
  11630. (updateDownloadLength): New function.
  11631. (resetDeltaUpload): Removed.
  11632. (getDeltaUpload): Removed.
  11633. (addDeltaDownload): Removed.
  11634. (calculateUploadSpeed): New function.
  11635. (resetDeltaDownload): Removed.
  11636. (getDeltaDownload): Removed.
  11637. (calculateDownloadSpeed): New function.
  11638. (getSessionUploadLength): New function.
  11639. (getSessionDownloadLength): New function.
  11640. (activate): New function.
  11641. (deactivate): New function.
  11642. (addPeerUpload): Removed.
  11643. (setPeerUpload): Removed.
  11644. (getPeerUpload): Removed.
  11645. (addPeerDownload): Removed.
  11646. (setPeerDownload): Removed.
  11647. (getPeerDownload): Removed.
  11648. * src/Peer.cc
  11649. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  11650. * src/MetalinkRequestInfo.h
  11651. (MetalinkRequestInfo): Removed const qualifier from op.
  11652. * src/RequestInfo.h
  11653. (op): Removed const qualifier.
  11654. (RequestInfo): Removed const qualifier from op.
  11655. * src/prefs.h
  11656. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  11657. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  11658. * src/PeerInteractionCommand.cc
  11659. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  11660. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  11661. * src/PeerInteraction.cc
  11662. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  11663. * src/main.cc
  11664. (showUsage): Updated the description of "--lowest-speed-limit" option.
  11665. Added the description of "--max-download-limit" option.
  11666. Removed the description of "--upload-limit" option.
  11667. Added the description of "--max-upload-limit" option.
  11668. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  11669. Added "--max-download-limit" option and "--max-upload-limit" option.
  11670. Added the warning message if "--upload-limit" option is used.
  11671. * src/DownloadCommand.cc
  11672. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  11673. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11674. To rewrite segment download mechanism for HTTP/FTP download.
  11675. Use BitfieldMan to manage segment download.
  11676. * src/HttpResponseCommand.h
  11677. (executeInternal): Pass the reference of segment.
  11678. * src/AbstractCommand.cc
  11679. (prepareForRetry): Call segmentMan->cancelSegment here.
  11680. (onAbort): Call segmentMan->cancelSegment here.
  11681. * src/HttpDownloadCommand.cc
  11682. (prepareForNextSegment): New function.
  11683. * src/DownloadEngineFactory.cc
  11684. (newConsoleEngine): Removed splitter.
  11685. (newTorrentConsoleEngine): Removed splitter.
  11686. * src/Request.h
  11687. (segment): Renamed from seg.
  11688. * src/FtpInitiateConnectionCommand.h
  11689. (executeInternal): Pass the reference of segment.
  11690. * src/AbstractCommand.h
  11691. (executeInternal): Pass the reference of segment.
  11692. * src/pref.h
  11693. (PREF_SEGMENT_SIZE): New definition.
  11694. * src/HttpProxyRequestCommand.h
  11695. (executeInternal): Pass the reference of segment.
  11696. * src/HttpResponseCommand.cc
  11697. (checkResponse): Allowed status 206 when a request range starts 0.
  11698. (handleDefaultEncoding): Rewritten the code related to Segment.
  11699. (handleOtherEncoding): Rewritten the code related to Segment.
  11700. * src/SegmentMan.h
  11701. (SegmentEntry): New class.
  11702. (SegmentEntries): New type definition.
  11703. (bitfield): New variable.
  11704. (usedSegmentEntries): New variable.
  11705. (onNullBitfield): New function.
  11706. (checkoutSegment): New function.
  11707. (segments): Removed.
  11708. (splitter): Removed.
  11709. (unregisterId): Removed.
  11710. (getSegment): New function(overload)
  11711. (getDownloadedSize): Removed.
  11712. (cancelSegment): New function.
  11713. (completeSegment): New function.
  11714. (initBitfield): New function.
  11715. (hasSegment): New function.
  11716. (getDownloadLength): New function.
  11717. * src/BitfieldMan.h
  11718. (getStartIndex): New function.
  11719. (getEndIndex): New function.
  11720. (getMissingUnusedIndex): New function(overload).
  11721. (getSparseMissingUnusedIndex): New function.
  11722. * src/BitfieldMan.cc
  11723. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  11724. (getMissingUnusedIndex): New function(overload).
  11725. (Range): New class.
  11726. (getStartIndex): New function.
  11727. (getEndIndex): New function.
  11728. (getSparseMissingUnusedIndex): New function.
  11729. (isBitSetInternal): Return false if the given index is less than 0.
  11730. * src/HttpInitiateConnectionCommand.h
  11731. (executeInternal): Pass the reference of segment.
  11732. * src/FtpNegotiateCommand.h
  11733. (executeInternal): Pass the reference of segment.
  11734. * src/FtpNegotiateCommand.cc
  11735. (recvSize): Initialize bitfield here.
  11736. * src/FtpTunnelResponseCommand.h
  11737. (executeInternal): Pass the reference of segment.
  11738. * src/HttpConnection.cc
  11739. (createRequest): Rewritten range header processing.
  11740. * src/DownloadCommand.h
  11741. (executeInternal): Pass the reference of segment.
  11742. (prepareForRetry): Removed.
  11743. (prepareForNextSegment): Added an argument segment. Made it a virtual
  11744. function.
  11745. * src/main.cc
  11746. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  11747. * src/SegmentMan.cc
  11748. (SegmentMan): Added bitfield. Removed splitter.
  11749. (~SegmentMan): Added bitfield. Removed splitter.
  11750. (unregisterId): Removed.
  11751. (getSegment): Rewritten.
  11752. (updateSegment): Rewritten.
  11753. (save): Rewritten.
  11754. (read): Rewritten.
  11755. (finished): Rewritten.
  11756. (getDownloadedSize): Removed.
  11757. (initBitfield): New function.
  11758. (FindSegmentEntryByIndex): New function object.
  11759. (FindSegmentEntryByCuid): New function object.
  11760. (checkoutSegment): New function.
  11761. (onNullBitfield): New function.
  11762. (getSegment): New function(overload).
  11763. (CancelSegment): New function object.
  11764. (cancelSegment): New function.
  11765. (completeSegment): New function.
  11766. (hasSegment): New function.
  11767. (getDownloadLength): New function.
  11768. * src/FtpInitiateConnectionCommand.cc
  11769. (executeInternal): Load .aria2 file after hostname resolution finishes.
  11770. * src/Segment.h: Rewritten.
  11771. * src/Segment.cc (operator<<): New function.
  11772. * src/HttpDownloadCommand.h
  11773. (prepareForNextSegment): New function.
  11774. * src/Request.cc
  11775. (resetUrl): Made segment null.
  11776. * src/DownloadEngine.cc
  11777. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  11778. * src/HttpProxyRequestCommand.h
  11779. (executeInternal): Pass the reference of segment.
  11780. * src/DownloadCommand.cc
  11781. (executeInternal): Rewritten the code related to Segment.
  11782. (prepareForRetry): Removed.
  11783. (prepareForNextSegment): Rewritten.
  11784. * src/FtpTunnelResponseCommand.h
  11785. (executeInternal): Pass the reference of segment.
  11786. To add HTTP 1.1 persistent connection support(experimental)
  11787. * src/HttpRequestCommand.cc
  11788. (executeInternal): Disable keep alive if it is disabled by
  11789. configuration.
  11790. * src/Request.h
  11791. (keepAlive): New variable.
  11792. (isKeepAlive): New function.
  11793. (setKeepAlive): New function.
  11794. * src/pref.h
  11795. (PREF_HTTP_KEEP_ALIVE): New definition.
  11796. * src/HttpResponseCommand.cc
  11797. (executeInternal): Check the remote server supports keep alive.
  11798. * src/HttpConnection.cc
  11799. (createRequest): Send "Connection: close" only if keep alive is
  11800. disabled.
  11801. * src/main.cc
  11802. (main):
  11803. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  11804. To add max download speed limit:
  11805. * src/pref.h
  11806. (PREF_MAX_SPEED_LIMIT): New definition.
  11807. * src/PeerInteractionCommand.cc
  11808. (executeInternal): Added max download speed limit. Not tested yet.
  11809. * src/SegmentMan.h
  11810. (PeerStats): New type definition.
  11811. (peerStats): New variable.
  11812. (registerPeerStat): New function.
  11813. (FindPeerStat): New function object.
  11814. (getPeerStat): New function.
  11815. (calculateDownloadSpeed): New function.
  11816. * src/SpeedCalc.h: New class.
  11817. * src/SpeedCalc.cc: New class.
  11818. * src/main.cc
  11819. (main):
  11820. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  11821. download speed is not restricted).
  11822. * src/PeerStat.h: New class.
  11823. * src/SegmentMan.cc
  11824. (registerPeerStat): New function.
  11825. (calculateDownloadSpeed): New function.
  11826. * src/DownloadCommand.cc
  11827. (STARTUP_IDLE_TIME): New definition.
  11828. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11829. downloadStart.
  11830. (~DownloadCommand): Call peerStat->downloadStop.
  11831. (executeInternal): Added download speed limitter. Rewritten lowest
  11832. speed limitter.
  11833. * src/HttpConnection.cc
  11834. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11835. * src/AbstractCommand.cc
  11836. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11837. Added hostname to the error message.
  11838. * src/ConsoleDownloadEngine.cc
  11839. (calculateStatistics): Initialize psize with dlSize.
  11840. * src/PieceMessage.cc
  11841. (receivedAction): Do not call peerInteraction->abortPiece here.
  11842. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11843. * src/BitfieldMan.h
  11844. (clearAllUseBit): New function.
  11845. (setAllUseBit): New function.
  11846. * src/BitfieldMan.cc
  11847. (clearAllBit): Do not clear useBitfield here.
  11848. (clearAllUseBit): New function.
  11849. (setAllUseBit): New function.
  11850. * src/Piece.cc
  11851. (clearAllBlock): Call bitfield->clearAllUseBit().
  11852. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11853. To make filename URL-decoded:
  11854. * src/HttpResponseCommand.h: Updated doc.
  11855. * src/HttpResponseCommand.cc
  11856. (determinFilename): Made filename URL-decoded.
  11857. * src/FtpInitiateConnectionCommand.cc
  11858. (executeInternal): Made filename URL-decoded.
  11859. * src/Util.h (urldecode): New function.
  11860. * src/Util.cc (urldecode): New function.
  11861. To fix a bug that caused assertion failure in ares_strerror:
  11862. * src/NameResolver.cc (callback): Fixed the bug.
  11863. * Release 0.7.3
  11864. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11865. To add --seed-time and --seed-ratio command-line option:
  11866. * src/Option.h (getAsDouble): New function.
  11867. * src/Option.cc (getAsDouble): New function.
  11868. * src/SeedCheckCommand.h: New class.
  11869. * src/SeedCheckCommand.cc: New class.
  11870. * src/DownloadEngineFactory.cc
  11871. (SeedCheckCommand.h): Included.
  11872. (UnionSeedCriteria.h): Included.
  11873. (TimeSeedCriteria.h): Included.
  11874. (ShareRatioSeedCriteria.h): Included.
  11875. (newTorrentConsoleEngine): Added the processing of seed option.
  11876. * src/SeedCriteria.h: New class.
  11877. * src/ShareRatioSeedCriteria.h: New class.
  11878. * src/TimeSeedCriteria.h: New class.
  11879. * src/UnionSeedCriteria.h: New class.
  11880. * src/prefs.h
  11881. (PREF_SEED_TIME): New definition.
  11882. (PREF_SEED_RATIO): New definition.
  11883. * src/main.cc
  11884. (showUsage): Added --seed-time and --seed-ratio option.
  11885. (main): Added --seed-time and --seed-ratio option.
  11886. Made default log file name "/dev/null".
  11887. * src/SharedHandle.h
  11888. (SharedHandle): Copy constructor. Made it assignable from the
  11889. SharedHandle of the subclasses.
  11890. (operator=): Made it assignable from the SharedHandle of the
  11891. subclasses.
  11892. (getRefCount): New function.
  11893. To add notice log level and the switch to write log to stdout. This
  11894. switch is configurable per log level.
  11895. * src/Logger.h
  11896. (notice): New function.
  11897. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11898. constant.
  11899. * src/LogFactory.cc
  11900. (getInstance): The use of NullLogger was removed. A log message with
  11901. notice log level was made written to stdout along with log file.
  11902. * src/NullLogger.h
  11903. (notice): New function.
  11904. * src/SimpleLogger.h
  11905. (writeHeader): Added the 'file' argument.
  11906. (writeLog): Added the 'file' argument.
  11907. (writeFile): New function.
  11908. (stdoutField): New variable.
  11909. (SimpleLogger): Removed the default constructor.
  11910. (SimpleLogger): Made the default value of logfile 0.
  11911. (debug): Added 'virtual' keyword.
  11912. (info): Added 'virtual' keyword.
  11913. (warn): Added 'virtual' keyword.
  11914. (error): Added 'virtual' keyword.
  11915. (notice): New function.
  11916. (setStdout): New function.
  11917. * src/SimpleLogger.cc
  11918. (WRITE_LOG): Replaced writeLog with writeFile.
  11919. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11920. (SimpleLogger): Removed the default constructor.
  11921. (setStdout): New function.
  11922. (writeLog): Added the handling of NOTICE log level.
  11923. (writeFile): New function.
  11924. (notice): New function.
  11925. * src/TorrentMan.h: Updated doc.
  11926. * src/BitfieldMan.h: Updated doc.
  11927. * src/TrackerWatcherCommand.cc
  11928. (execute): Return true if error occurred in the request to the tracker
  11929. and halt is requested.
  11930. * src/TrackerUpdateCommand.cc
  11931. (execute): Return true if error occurred in the request to the tracker
  11932. and halt is requested.
  11933. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11934. DownloadEngine:
  11935. * src/TorrentConsoleDownloadEngine.h
  11936. (onSelectiveDownloadingCompletes): Removed.
  11937. * src/TorrentConsoleDownloadEngine.cc
  11938. (onSelectiveDownloadingCompletes): Removed.
  11939. * src/TorrentDownloadEngine.h
  11940. (onEndOfRun): Added 'virtual' keyword.
  11941. (afterEachIteration): Removed.
  11942. (onSelectiveDownloadingCompletes): Removed.
  11943. * src/TorrentDownloadEngine.cc
  11944. (onEndOfRun): Removed filenameFixed.
  11945. (afterEachIteration): Removed.
  11946. * src/TorrentMan.cc
  11947. (completePiece): Call onDownloadComplete here.
  11948. (onDownloadComplete): Added 2 log messages.
  11949. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11950. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11951. * src/NameResolver.h: Added the prototype declaration of callback().
  11952. To support c-ares library:
  11953. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11954. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11955. * src/FtpInitiateConnectionCommand.h:
  11956. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11957. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11958. * src/HttpInitiateConnectionCommand.h:
  11959. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11960. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11961. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11962. #1542285 by tizianomueller)
  11963. * src/HttpInitiateConnectionCommand.cc:
  11964. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11965. * src/FtpInitiateConnectionCommand.cc:
  11966. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11967. * src/DownloadEngine.h:
  11968. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11969. * src/DownloadEngine.cc:
  11970. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11971. To fix the bug that causes compilation failure with metalink-support
  11972. disabled(bug#1543587):
  11973. * src/main.cc: Fixed with the patch by tizianomueller.
  11974. * Release 0.7.2
  11975. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11976. * src/main.cc
  11977. (main): Added a message to inform users that aria2 is starting to
  11978. verify checksum.
  11979. * src/RequestInfo.cc
  11980. (printDownloadAbortMessage): Added a message to inform users that
  11981. transfer can be resumed.
  11982. * src/FeatureConfig.cc
  11983. (FEATURE_ASYNC_DNS): New definition.
  11984. (FeatureConfig): Added aysnc DNS entry.
  11985. To replace CommandUuid with Command* in SocketEntry and
  11986. NameResolverEntry:
  11987. * src/DownloadEngine.h
  11988. (CommandUuids): Removed.
  11989. (SocketEntry::commandUuid): Removed.
  11990. (SocketEntry::command): New variable.
  11991. (SocketEntry::SocketEntry): Updated.
  11992. (SocketEntry::operator==): Updated.
  11993. (NameResolverEntry::commandUuid): Removed.
  11994. (NameResolverEntry::command): New variable.
  11995. (NameResolverEntry::NameResolverEntry): Updated.
  11996. (NameResolverEntry::operator==): Updated.
  11997. (waitData): Changed the argument type.
  11998. (addSocketForReadCheck): Changed the argument type.
  11999. (deleteSocketForReadCheck): Changed the argument type.
  12000. (addSocketForWriteCheck): Changed the argument type.
  12001. (deleteSocketForWriteCheck): Changed the argument type.
  12002. (addNameResolverCheck): Changed the argument type.
  12003. (deleteNameResolverCheck): Changed the argument type.
  12004. * src/DownloadEngine.cc
  12005. (FindCommand): Removed.
  12006. (run): Removed activeUuid. Added activeCommands instead.
  12007. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  12008. (AccumulateActiveCommand): New function object.
  12009. (waitData): Use AccumulateActiveCommand.
  12010. (addSocketForReadCheck): Use Command instead of CommandUuid.
  12011. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  12012. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  12013. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  12014. (addNameResolverCheck): Use Command instead of CommandUuid.
  12015. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  12016. * src/AbstractCommand.cc
  12017. (disableReadCheckSocket): Updated according to the changes in
  12018. DownloadEngine.
  12019. (setReadCheckSocket): Updated according to the changes in
  12020. DownloadEngine.
  12021. (disableWriteCheckSocket): Updated according to the changes in
  12022. DownloadEngine.
  12023. (setWriteCheckSocket): Updated according to the changes in
  12024. DownloadEngine.
  12025. (setNameResolverCheck): Updated according to the changes in
  12026. DownloadEngine.
  12027. (disableNameResolverCheck): Updated according to the changes in
  12028. DownloadEngine.
  12029. * src/AbstractCommand.cc
  12030. (disableReadCheckSocket): Updated according to the changes in
  12031. DownloadEngine.
  12032. (setReadCheckSocket): Updated according to the changes in
  12033. DownloadEngine.
  12034. (disableWriteCheckSocket): Updated according to the changes in
  12035. DownloadEngine.
  12036. (setWriteCheckSocket): Updated according to the changes in
  12037. DownloadEngine.
  12038. * release 0.7.1
  12039. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12040. To handle the case where some BitTorrent tracker requires all letters
  12041. except for [A-Za-z0-9] is URL encoded.
  12042. * src/Util.h
  12043. (torrentUrlencode): New function.
  12044. * src/Util.cc
  12045. (ctype.h): Included.
  12046. (torrentUrlencode): New function.
  12047. * src/TrackerWatcherCommand.cc
  12048. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  12049. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12050. To add asynchronous DNS support(libares):
  12051. * src/AbstractCommand.h
  12052. (setNameResolverCheck): New function.
  12053. (disableNameResolverCheck): New function
  12054. (resolveHostname): New function.
  12055. * src/AbstractCommand.cc
  12056. (setNameResolverCheck): New function.
  12057. (disableNameResolverCheck): New function
  12058. (resolveHostname): New function.
  12059. * src/FtpInitiateConnectionCommand.h
  12060. (nameResolver): New function.
  12061. * src/FtpInitiateConnectionCommand.cc
  12062. (Util.h): Included.
  12063. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  12064. disableWriteCheckSocket.
  12065. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  12066. (executeInternal): Added async DNS support.
  12067. * src/HttpInitiateConnectionCommand.h
  12068. (nameResolver): New function.
  12069. * src/HttpInitiateConnectionCommand.cc
  12070. (DlRetryEx.h): Included.
  12071. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  12072. disableWriteCheckSocket.
  12073. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  12074. (executeInternal): Added async DNS support.
  12075. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  12076. by extern "C" declaration.
  12077. * src/NameResolver.cc: New class.
  12078. * src/Util.h:
  12079. (isNumberAndDotsNotation): New function
  12080. * src/Util.cc
  12081. (isNumberAndDotsNotation): New function.
  12082. * src/DownloadEngine.h
  12083. (NameResolver.h): Included.
  12084. (NameResolverEntry): New class.
  12085. (NameResolverEntries): New type definition.
  12086. (addNameResolverCheck): New function.
  12087. (deleteNameResolverCheck): New function.
  12088. * src/DownloadEngine.cc
  12089. (run): Initialize cp with 0.
  12090. (SetDescriptor::operator()): Added for NameResolverEntry.
  12091. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  12092. (waitData): Check nameResolver entries.
  12093. (updateFdSet): Update fds in nameResolver entries.
  12094. (addNameResolverCheck): New function.
  12095. (deleteNameResolverCheck): new function.
  12096. * src/PeerInteractionCommand.cc
  12097. (executeInternal): Fixed wrong socket handling.
  12098. * src/main.cc
  12099. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  12100. * src/Util.cc
  12101. (fileChecksum): Removed the call to ctx.digestReset().
  12102. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12103. * po/ru.po: Azamat sent me Russian translation.
  12104. * src/FtpNegotiateCommand.cc
  12105. (recvGreeting): Call disableWriteCheckSocket just after
  12106. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  12107. (recvRetr): Recognized status code 125 as a acceptable response code.
  12108. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  12109. case-insesitive filesystem(BUG#1531057).
  12110. * src/Time.h: Renamed as TimeA2.h.
  12111. * src/Time.cc: Renamed as TimeA2.cc.
  12112. * src/TimeA2.h: New class.
  12113. * src/TimeA2.cc: New class.
  12114. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  12115. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  12116. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  12117. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  12118. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  12119. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12120. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  12121. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  12122. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  12123. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  12124. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  12125. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  12126. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  12127. * release 0.7.0
  12128. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12129. * src/PeerChokeCommand.h
  12130. (PeerChokeCommand): Rearranged the arguments.
  12131. * src/PeerChokeCommand.cc
  12132. (PeerChokeCommand): Rearranged the arguments.
  12133. * src/MetalinkEntry.h
  12134. (Checksum.h): Included.
  12135. (md5): Removed.
  12136. (sha1): Removed.
  12137. (checksum): New variable.
  12138. (operator=): Updated.
  12139. (check): Removed.
  12140. * src/prefs.h
  12141. (PREF_LOWEST_SPEED_LIMIT): New definition.
  12142. (PREF_FOLLOW_TORRENT): New definition.
  12143. (PREF_SELECT_FILE): New definition.
  12144. (PREF_FOLLOW_METALINK): New definition.
  12145. * src/MetalinkResource.h
  12146. (TYPE_HTTPS): Added to enum TYPE.
  12147. * src/TorrentMan.cc
  12148. (~TorrentMan): Rewritten.
  12149. * src/MultiDiskWriter.cc
  12150. (MultiDiskAdaptor): Updated according to the changes in
  12151. MessageDigestContext.
  12152. (~MultiDiskAdaptor): Updated according to the changes in
  12153. MessageDigestContext.
  12154. (hashUpdate): Updated according to the changes in MessageDigestContext.
  12155. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12156. * src/Util.h
  12157. (fileChecksum): Updated according to the changes in
  12158. MessageDigestContext.
  12159. * src/Util.cc
  12160. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12161. (fileChecksum): Updated according to the changes in
  12162. MessageDigestContext.
  12163. * src/messageDigest.h: Rewritten.
  12164. * src/MetalinkEntry.cc
  12165. (check): Removed.
  12166. (Supported): Updated.
  12167. (dropUnsupportedResource): Fixed a memory leak.
  12168. * src/ShaVisitor.cc
  12169. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  12170. (~ShaVisitor): Updated according to the changes in
  12171. MessageDigestContext.
  12172. (visit): Updated according to the changes in MessageDigestContext.
  12173. * src/main.cc
  12174. (main): Rewritten the portion of download loop. --lowest-speed-limit
  12175. command-line option added.
  12176. * src/DownloadEngine.h
  12177. (SocketEntry): New class.
  12178. (SocketEntries): New definition.
  12179. (PairFind): Removed.
  12180. (SockCmdMap): Removed.
  12181. * src/DownloadEngine.cc
  12182. (DownloadEngine): Rewritten.
  12183. (~DownloadEngine): Rewritten.
  12184. (run): Renamed activeCommandUuids as activeUuids.
  12185. (SetDescriptor): Rewritten.
  12186. (AccumulateActiveCommandUuid): Removed.
  12187. (AccumulateActiveUuid): New function object.
  12188. (waitData): Rewritten.
  12189. (updateFdSet): Rewritten.
  12190. (addSocket): Rewritten.
  12191. (deleteSocket): Rewritten.
  12192. (addSocketForReadCheck): Rewritten.
  12193. (deleteSocketForReadCheck): Rewritten.
  12194. (addSocketForWriteCheck): Rewritten.
  12195. (deleteSocketForWriteCheck): Rewritten.
  12196. * src/Xml2MetalinkProcessor.cc
  12197. (getEntry): Rewritten the portion of MetalinkEntry creation.
  12198. * src/DownloadCommand.cc
  12199. (executeInternal): Added the check routine for lowest speed limit.
  12200. * src/AbstractDiskWriter.cc
  12201. (AbstractDiskWriter): Updated according to the changes in
  12202. MessageDigestContext.
  12203. (~AbstractDiskWriter): Updated according to the changes in
  12204. MessageDigestContext.
  12205. (sha1Sum): Updated according to the changes in MessageDigestContext.
  12206. * src/RequestInfo.h: New class.
  12207. * src/UrlRequestInfo.h: New class.
  12208. * src/UrlRequestInfo.cc: New class.
  12209. * src/TorrentRequestInfo.h: New class.
  12210. * src/TorrentRequestInfo.cc: New class.
  12211. * src/MetalinkRequestInfo.h: New class.
  12212. * src/MetalinkRequestInfo.cc: New class.
  12213. * src/Checksum.h: New class.
  12214. * src/DownloadEngineFactory.h: New class.
  12215. * src/DownloadEngineFactory.cc: New class.
  12216. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12217. * src/Option.h
  12218. (getAsBool): New function.
  12219. * src/Option.cc
  12220. (prefs.h): Included.
  12221. (defined): 0-length value is now recognized as undefined.
  12222. (getAsInt): Rewritten.
  12223. (getAsLLInt): Rewritten.
  12224. (getAsBool): New function.
  12225. * src/FeatureConfig.h: Rewritten.
  12226. * src/FeatureConfig.cc: Rewritten.
  12227. * src/prefs.h
  12228. (PREF_STDOUT_LOG): New definition.
  12229. (PREF_LOG): New definition.
  12230. (PREF_DIR): New definition.
  12231. (PREF_OUT): New definition.
  12232. (PREF_SPLIT): New definition.
  12233. (PREF_DAEMON): New definition.
  12234. (PREF_REFERER): New definition.
  12235. (PREF_TORRENT_FILE): New definition.
  12236. (PREF_LISTEN_PORT): New definition.
  12237. (PREF_METALINK_FILE): New definition.
  12238. (PREF_METALINK_VERSION): New definition.
  12239. (PREF_METALINK_LANGUAGE): New definition.
  12240. (PREF_METALINK_OS): New definition.
  12241. (PREF_METALINK_SERVERS): New definition.
  12242. * src/main.cc
  12243. (main): Following command-line parameters are now put into Option
  12244. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  12245. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  12246. metalinkLanguage, metalinkOs, metalinkServers
  12247. To fix the bug that aria2 can not handle http response header properly.
  12248. * src/HttpHeader.cc
  12249. (put): Made name lowercased.
  12250. (defined): Made name lowercased.
  12251. (getFirst): Made name lowercased.
  12252. (get): Made name lowercased.
  12253. (getFirstAsInt): Rewritten.
  12254. (getFirstAsLLInt): Rewritten.
  12255. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12256. * src/TorrentMan.h:
  12257. (advertisePiece): Updated doc.
  12258. (getAdvertisedPieceIndexes): Updated doc.
  12259. (removeAdvertisedPiece); New function.
  12260. * src/TorrentMan.cc
  12261. (FindElapsedHave): New function object.
  12262. (removeAdvertisedPiece): New function.
  12263. * src/HaveEraseCommand.h: New class.
  12264. * src/HaveEraseCommand.cc: New class.
  12265. * src/FeatureConfig.h: New class.
  12266. * src/FeatureConfig.cc: New class.
  12267. * src/Request.h
  12268. (defaultPorts): Removed.
  12269. * src/Request.cc
  12270. (FeatureConfig.h): Included.
  12271. (Request): Removed the statements related to defaultPorts.
  12272. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  12273. A default port number is now retrieved from FeatureConfig.
  12274. * src/main.cc
  12275. (HaveEraseCommand.h): Included.
  12276. (showVersion): Added the output of feature list.
  12277. (main): Added HaveEraseCommand to command queue in BitTorrent
  12278. downloading.
  12279. * src/PeerInteractionCommand.h
  12280. (chokeCheckPoint): Commented out.
  12281. (periodicExecPoint): New variable.
  12282. * src/PeerInteractionCommand.cc
  12283. (executeInternal): Following methods are now called in at least every
  12284. 0.5 seconds to reduce CPU usage:
  12285. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  12286. checkHave(), sendKeepAlive().
  12287. (checkLongTimePeerChoking): Commented out.
  12288. * src/BitfieldMan.h
  12289. (getNthBitIndex): Changed the method signature.
  12290. (getMissingIndexRandomly): Changed the method signature.
  12291. * src/BitfieldMan.cc
  12292. (getNthBitIndex): Rewritten
  12293. (getMissingIndexRandomly): Rewritten.
  12294. (hasMissingPiece): Rewritten.
  12295. (getMissingIndex): Refactored.
  12296. (getMissingUnusedIndex); Refactored.
  12297. (getMissingIndex): Refactored.
  12298. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12299. * src/PeerMessage.h
  12300. (Piece.h): Included.
  12301. (SharedHandle.h): Included.
  12302. (invalidate): New variable.
  12303. (uploading): New variable.
  12304. (isInvalidate): New function.
  12305. (isUploading): New function.
  12306. (onPush): New function.
  12307. (onChoked): New function.
  12308. (onCanceled): New function.
  12309. (onAbortPiece): New function.
  12310. (PeerMessageHandle): New type definition.
  12311. * src/PeerMessage.cc
  12312. (PeerMessage): Added the initialization for invalidate and uploading.
  12313. * src/CancelMessage.h
  12314. (CancelMessage): Rewritten.
  12315. * src/RejectMessage.h
  12316. (RejectMessage): Rewritten.
  12317. * src/Metalinker.h
  12318. (operator=): Defined.
  12319. * src/MetaEntry.h
  12320. (operator=): Defined.
  12321. * src/MetalinkResource.h
  12322. (operator=): Defined.
  12323. * src/AllowedFastMessage.h
  12324. (AllowedFastMessage): Rewritten.
  12325. * src/HandshakeMessage.h
  12326. (HandshakeMessage): New function(overload).
  12327. * src/HandshakeMessage.cc
  12328. (HandshakeMessage): Rewritten.
  12329. (init): New function.
  12330. * src/HaveMessage.h
  12331. (HaveMessage): Rewritten.
  12332. * src/Time.h
  12333. (operator=): Defined the function body here.
  12334. * src/Time.cc
  12335. (operator=): Removed.
  12336. * src/SocketCore.h
  12337. (operator==): Defined here.
  12338. (operator!=): Defined here.
  12339. (operator<): Defined here.
  12340. * src/SocketCore.cc
  12341. (operator==): Removed.
  12342. (operator<): Removed.
  12343. * src/BitfieldMan.h
  12344. (operator=): Defined the function body here.
  12345. * src/BitfieldMan.cc
  12346. (operator=): Removed.
  12347. * src/TorrentMan.h
  12348. (deleteErrorPeer): Removed.
  12349. (deleteUnusedPeer); New function.
  12350. * src/TorrentMan.cc
  12351. (addPeer): Call deleteUnusedPeer.
  12352. (deleteErrorPeer): Removed.
  12353. (deleteUnusedPeer): New function.
  12354. * src/PeerAbstractCommand.h
  12355. (setNoCheck): New function.
  12356. (noCheck): New variable.
  12357. * src/PeerAbstractCommand.cc
  12358. (PeerAbstractCommand): Added the initialization of noCheck.
  12359. (execute): Added a check for noCheck.
  12360. (setNoCheck): New function.
  12361. * src/Util.h
  12362. (stdio.h): Included.
  12363. * src/Util.cc
  12364. (unistd.h): Included.
  12365. * src/DefaultDiskWriter.cc
  12366. (unistd.h): Included.
  12367. * src/Peer.h
  12368. (operator==): Defined the function body here.
  12369. (operator!=): Defined the function body here.
  12370. * src/Peer.cc
  12371. (operator==): Removed.
  12372. (operator!=): Removed.
  12373. * src/Piece.h
  12374. (Piece): Defined the function body here(copy constructor).
  12375. (operator=): Defined the function body here.
  12376. (operator==): Defined the function body here.
  12377. * src/Piece.cc
  12378. (Piece): Removed(copy constructor).
  12379. (operator=): Removed.
  12380. (operator==): Removed.
  12381. * src/PeerMessageUtil.h
  12382. (ChokeMessage.h): Removed.
  12383. (UnchokeMessage.h): Removed.
  12384. (InterestedMessage.h): Removed.
  12385. (NotInterestedMessage.h): Removed.
  12386. (HaveMessage.h): Removed.
  12387. (BitfieldMessage.h): Removed.
  12388. (RequestMessage.h): Removed.
  12389. (CancelMessage.h): Removed.
  12390. (PieceMessage.h): Removed.
  12391. (HandshakeMessage.h): Removed.
  12392. (KeepAliveMessage.h): Removed.
  12393. (PortMessage.h): Removed.
  12394. (HaveAllMessage.h): Removed.
  12395. (HaveNoneMessage.h): Removed.
  12396. (PeerConnection.h): Removed.
  12397. (HandshakeMessage.h): Included.
  12398. * src/BitfieldMessage.h
  12399. (init): New function.
  12400. (BitfieldMessage): Rewritten.
  12401. (BitfieldMessage): New function(overload).
  12402. * src/RequestSlot.h
  12403. (operator=): Defined the function body here.
  12404. (operator==): Defined the function body here.
  12405. * src/RequestSlot.cc
  12406. (operator=): Removed.
  12407. (operator==): Removed.
  12408. To remove the dependency on the PeerMessage subclass from
  12409. PeerInteraction:
  12410. * src/PeerMessageFactory.h: New class.
  12411. * src/PeerMessageFactory.cc: New class.
  12412. * src/SimplePeerMessage.cc
  12413. (send): If invalidate is true then do nothing.
  12414. * src/PeerInteractionCommand.cc
  12415. (HandshakeMessage.h): Included.
  12416. (KeepAliveMessage.h): Included.
  12417. (ChokeMessage.h): Included.
  12418. (UnchokeMessage.h): Included.
  12419. (HaveMessage.h): Included.
  12420. (executeInternal): Call setNoCheck().
  12421. Removed setWriteCheckSocket(socket).
  12422. * src/PeerInteraction.h
  12423. (ChokeMessage.h): Removed.
  12424. (UnchokeMessage.h): Removed.
  12425. (InterestedMessage.h): Removed.
  12426. (NotInterestedMessage.h): Removed.
  12427. (HaveMessage.h): Removed.
  12428. (BitfieldMessage.h): Removed.
  12429. (RequestMessage.h): Removed.
  12430. (CancelMessage.h): Removed.
  12431. (PieceMessage.h): Removed.
  12432. (HandshakeMessage.h): Removed.
  12433. (KeepAliveMessage.h): Removed.
  12434. (PortMessage.h): Removed.
  12435. (HaveAllMessage.h): Removed.
  12436. (HaveNoneMessage.h): Removed.
  12437. (RejectMessage.h): Removed.
  12438. (AllowedFastMessage.h): Removed.
  12439. (SuggestPieceMessage.h): Removed.
  12440. (PeerMessageFactory.h): Included.
  12441. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  12442. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  12443. (PeerMessageFactory): New variable.
  12444. (createPeerMessage): Removed.
  12445. (createHandshakeMessage): Removed.
  12446. (setPeerMessageCommonProperty): Removed.
  12447. (addRequestSlot): New function.
  12448. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12449. (getPeerMessageFactory): New function.
  12450. (createRequestMessage): Removed.
  12451. (createCancelMessage): Removed.
  12452. (createPieceMessage): Removed.
  12453. (createHaveMessage): Removed.
  12454. (createChokeMessage): Removed.
  12455. (createUnchokeMessage): Removed.
  12456. (createInterestedMessage): Removed.
  12457. (createNotInterestedMessage): Removed.
  12458. (createBitfieldMessage): Removed.
  12459. (createKeepAliveMessage): Removed.
  12460. (createHaveAllMessage): Removed.
  12461. (createHaveNoneMessage): Removed.
  12462. (createRejectMessage): Removed.
  12463. (createAllowedFastMessage): Removed.
  12464. * src/PeerInteraction.cc
  12465. (PeerInteraction): Allocate PeerMessageFactory here.
  12466. (~PeerInteraction): Deallocate PeerMessageFactory here.
  12467. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  12468. PieceMessage::ID.
  12469. (addMessage): Simplified by using PeerMessage::onPush().
  12470. (addRequestSlot): New function.
  12471. (rejectAllPieceMessageInQueue): Simplified by using
  12472. PeerMessage::onChoked().
  12473. (rejectPieceMessageInQueue): Simplified by using
  12474. PeerMessage::onCanceled().
  12475. (abortPiece): Simplified by using PeerMessage::abortPiece().
  12476. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  12477. (createHandshakeMessage): Removed.
  12478. (createPeerMessage): Removed.
  12479. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  12480. (setPeerMessageCommonProperty): Removed.
  12481. (createRequestMessage): Removed.
  12482. (createCancelMessage): Removed.
  12483. (createPieceMessage): Removed.
  12484. (createHaveMessage): Removed.
  12485. (createChokeMessage): Removed.
  12486. (createUnchokeMessage): Removed.
  12487. (createInterestedMessage): Removed.
  12488. (createNotInterestedMessage): Removed.
  12489. (createBitfieldMessage): Removed.
  12490. (createKeepAliveMessage): Removed.
  12491. (createHaveAllMessage): Removed.
  12492. (createHaveNoneMessage): Removed.
  12493. (createRejectMessage): Removed.
  12494. (createAllowedFastMessage): Removed.
  12495. * src/PieceMessage.h
  12496. (createRejectMessage): New function.
  12497. (PieceMessage): Rewritten.
  12498. (onChoked): New function.
  12499. (onCanceled): New function.
  12500. * src/PieceMessage.cc
  12501. (send): If invalidate is true then do nothing, just return.
  12502. (createRejectMessage): New function.
  12503. (onChoked): New function.
  12504. (onCanceled): New function.
  12505. * src/RequestMessage.h
  12506. (RequestMessage): Rewritten.
  12507. (onPush): New function.
  12508. (onAbortPiece): New function.
  12509. * src/RequestMessage.cc
  12510. (onPush): New function.
  12511. (onAbortPiece): New function.
  12512. Update fd_set when a socket is added or deleted in order to improve
  12513. performance:
  12514. * src/DownloadEngine.h
  12515. (rfdset): New variable.
  12516. (wfdset): New variable.
  12517. (updateFdSet): New function.
  12518. * src/DownloadEngine.cc
  12519. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  12520. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  12521. (waitData): Copy rfdset and wfdset.
  12522. (updateFdSet): New function.
  12523. (addSocket): Call updateFdSet.
  12524. (deleteSocket): Call updateFdSet.
  12525. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12526. To add the support for Metalink3.0 backward compatible links:
  12527. * src/Request.h
  12528. (SAFE_CHARS): Added '#'.
  12529. (METALINK_MARK): New definition.
  12530. * src/Request.cc
  12531. (parseUrl): Added the support for Metalink3.0 backward compatible
  12532. links.
  12533. etc
  12534. * src/PeerInteraction.cc
  12535. (MsgPushBack): Removed.
  12536. (sendMessages): Use STL copy and back_inserter.
  12537. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  12538. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  12539. * src/TorrentMan.h
  12540. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  12541. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12542. * src/SharedHandle.h: New class.
  12543. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  12544. * src/HttpResponseCommand.h
  12545. (HttpResponseCommand): Wrapped Socket.
  12546. * src/SocketCore.h
  12547. (operator==): New function.
  12548. (operator!=): New function.
  12549. (operator<): New function.
  12550. (getSockfd): New function.
  12551. (isOpen): New function.
  12552. (writeData): New function.
  12553. * src/SocketCore.cc
  12554. (operator==): New function.
  12555. (operator!=): New function.
  12556. (operator<): New function.
  12557. * src/AbstractCommand.h
  12558. (socket): Changed its type to SocketHandle.
  12559. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12560. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12561. (disableReadCheckSocket): New function.
  12562. (disableWriteCheckSocket): New function.
  12563. (readCheckTarget): Changed its type to SocketHandle.
  12564. (writeCheckTarget): Changed its type to SocketHandle.
  12565. (AbstractCommand): Replaced Socket with SocketHandle.
  12566. * src/AbstractCommand.cc
  12567. (AbstractCommand): Replaced Socket with SocketHandle.
  12568. (~AbstractCommand): Removed the deallocation for Socket object.
  12569. (disableReadCheckSocket): New function.
  12570. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12571. (disableWriteCheckSocket): New function.
  12572. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12573. * src/HttpDownloadCommand.cc
  12574. (DownloadCommand): Replaced Socket with SocketHandle.
  12575. * src/PeerAbstractCommand.h
  12576. (socket): Changed its type to SocketHandle.
  12577. (peer): Changed its type to PeerHandle.
  12578. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12579. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12580. (disableReadCheckSocket): New function.
  12581. (disableWriteCheckSocket): New function.
  12582. (readCheckTarget): Changed its type to SocketHandle.
  12583. (writeCheckTarget): Changed its type to SocketHandle.
  12584. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12585. Replaced Peer with PeerHandle.
  12586. * src/HttpRequestCommand.cc
  12587. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12588. Use disableReadCheckSocket.
  12589. * src/PeerInitiateConnectionCommand.h
  12590. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12591. * src/PeerChokeCommand.cc
  12592. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  12593. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  12594. (execute): Use PeerHandle.
  12595. * src/PeerConnection.h
  12596. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  12597. (socket): Changed its type to SocketHandle.
  12598. (PeerConnection): Replaced Socket with SocketHandle.
  12599. * src/PeerConnection.cc
  12600. (PeerConnection): Replaced Socket with SocketHandle.
  12601. * src/PeerInteractionCommand.h
  12602. (PeerInteractionCommand): Replaced socket with SocketHandle.
  12603. Replaced Peer with PeerHandle.
  12604. * src/PeerInteractionCommand.cc
  12605. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  12606. Replaced Peer with PeerHandle.
  12607. (executeInternal): Use disableWriteCheckSocket.
  12608. Use HandshakeMessageHandle.
  12609. (receiveMessages): Use PeerMessageHandle.
  12610. (prepareForNextPeer): Use PeerHandle.
  12611. * src/HttpProxyRequestCommand.h
  12612. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12613. * src/HttpResponseCommand.cc
  12614. (HttpResponseCommand): Replaced Socket with SocketHandle.
  12615. * src/TorrentMan.cc
  12616. (nullPeer): Added external reference.
  12617. (~TorrentMan): Removed the deallocation of the elements of peers.
  12618. (addPeer): Rewritten.
  12619. (isPeerAvailable): Use nullPeer.
  12620. (deleteOldpeers): Replaced with deleteErrorPeer.
  12621. (deleteErrorPeer): New function.
  12622. (getPeer): Use PeerHandle and nullPeer.
  12623. (hasMissingPiece): Replaced Peer with PeerHandle.
  12624. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12625. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12626. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12627. (getMissingPiece): Replaced Peer with PeerHandle.
  12628. * src/FtpNegotiateCommand.cc
  12629. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  12630. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  12631. (recvGreeting): Use disableWriteCheckSocket.
  12632. (recvPasv): Removed the allocation of Socket.
  12633. Use disableReadCheckSocket.
  12634. (sendRestPasv): Use disableWriteCheckSocket.
  12635. (recvRetr): Changed assertion.
  12636. * src/PeerInteraction.h
  12637. (SharedHandle.h): Included SharedHandle.h.
  12638. (PeerMessageHandle): New type definition.
  12639. (HandshakeMessageHandle): New type definition.
  12640. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  12641. (peer): Changed its type to PeerHandle.
  12642. (createHandshakeMessage): Replaced HandshakeMessage with
  12643. HandshakeMessageHandle.
  12644. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  12645. (PeerInteraction): Replaced Peer with PeerHandle.
  12646. Replaced Socket with SocketHandle.
  12647. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12648. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12649. (receiveHandshake): Replaced HandshakeMessage with
  12650. HandshakeMessageHandle.
  12651. * src/PeerInteraction.cc
  12652. (PeerInteraction): Replaced Peer with PeerHandle.
  12653. Replaced Socket with SocketHandle.
  12654. (~PeerInteraction): Removed the deallocation of the elements of
  12655. messageQueue.
  12656. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  12657. (isSendingMessageInProgress): Replaced PeerMessage with
  12658. PeerMessageHandle.
  12659. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  12660. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  12661. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  12662. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  12663. (abortPiece): Use PeerMessageHandle.
  12664. (receiveHandshake): Replaced HandshakeMessage with
  12665. HandshakeMessageHandle. Removed try-catch block.
  12666. (createHandshakeMessage): Replaced HandshakeMessage with
  12667. HandshakeMessageHandle.
  12668. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  12669. Removed try-catch block.
  12670. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  12671. * src/HttpProxyResponseCommand.cc
  12672. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12673. * src/FtpTunnelResponseCommand.h
  12674. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12675. * src/HttpConnection.cc
  12676. (HttpConnection): Replaced Socket with SocketHandle.
  12677. * src/PeerAbstractCommand.cc
  12678. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  12679. (~PeerAbstractCommand): Removed the deallocation of socket.
  12680. Use disableReadCheckSocket, disableWriteCheckSocket.
  12681. (disableReadCheckSocket): New function.
  12682. (setReadCheckSocket): Replaced Socket with SocketHandle.
  12683. (disableWriteCheckSocket): New function.
  12684. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  12685. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  12686. * src/FtpTunnelRequestCommand.cc
  12687. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12688. (~FtpTunnelRequestCommand): Corrected indentation.
  12689. * src/DownloadCommand.h
  12690. (DownloadCommand): Replaced Socket with SocketHandle.
  12691. * src/PeerListenCommand.cc
  12692. (PeerListenCommand): Removed the initialization of socket.
  12693. (~PeerListenCommand): Removed the deallocation of socket.
  12694. (bindPort): Use SocketHandle.
  12695. (execute): Use SocketHandle and PeerHandle.
  12696. * src/FtpDowndloadCommand.cc
  12697. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12698. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  12699. * src/main.cc
  12700. (main): Corrected indentation.
  12701. * src/HttpInitiateConnectionCommand.cc
  12702. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  12703. (executeInternal): Removed the allocation of socket.
  12704. * src/HttpRequestCommand.h
  12705. (HttpRequestCommand): Replaced Socket with SocketHandle.
  12706. * src/FtpNegotiationCommand.h
  12707. (dataSocket): Changed its type to SocketHandle.
  12708. (serverSocket): Changed its type to SocketHandle.
  12709. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  12710. * src/TorrentMan.h
  12711. (MAX_PEER_UPDATE): Removed.
  12712. (MAX_PEERS): New definition.
  12713. (Peers): The element is now of type PeerHandle.
  12714. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  12715. (getPeer): Replaced Peer with PeerHandle.
  12716. (deleteOldErrorPeers): Removed.
  12717. (deleteErrorPeer): New function.
  12718. (hasMissingPiece): Replaced Peer with PeerHandle.
  12719. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  12720. (getMissingPiece): Replaced Peer with PeerHandle.
  12721. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  12722. (getMissingFastPiece): Replaced Peer with PeerHandle.
  12723. (addActivePeer): Replaced Peer with PeerHandle.
  12724. (deleteActivePeer): Replaced Peer with PeerHandle.
  12725. Added a check for the return value of find.
  12726. * src/FtpTunnelResponseCommand.cc
  12727. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  12728. * src/FtpInitiateConnectionCommand.cc
  12729. (executeInternal): Removed the allocation of socket.
  12730. * src/DownloadEngine.h
  12731. (Sockets): An element is now of type SocketHandle.
  12732. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  12733. (CommandUuids): New type definition.
  12734. (rsockets): Changed its type to SockCmdMap.
  12735. (wsockets): Changed its type to SockCmdMap.
  12736. (addSocket): Rewritten.
  12737. (deleteSocket): Rewritten.
  12738. (addSocketForReadCheck): Rewritten.
  12739. (deleteSocketForReadCheck): Rewritten.
  12740. (addSocketForWriteCheck): Rewritten.
  12741. (deleteSocketForWriteCheck): Rewritten.
  12742. (PairFind): New template class.
  12743. * src/HttpDownloadCommand.h
  12744. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  12745. * src/FtpConnection.cc
  12746. (FtpConnection): Replaced Socket with SocketHandle.
  12747. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  12748. block.
  12749. * src/InitiateConnectionCommandFactory.cc
  12750. (DlAbortEx.h): Included DlAbortEx.h.
  12751. (createInitiateConnectionCommand): Throw exception if the protocol of
  12752. requested URI is not supported.
  12753. * src/Peer.cc
  12754. (nullPeer): Changed its type to PeerHandle.
  12755. (operator==): New function.
  12756. (operator!=): New function.
  12757. * src/Peer.h
  12758. (SharedHandle.h): Included SharedHandle.h.
  12759. (operator==): New function.
  12760. (operator!=): New function.
  12761. (Peer): Added the default constructor.
  12762. Use resetStatus() to initialize member variables.
  12763. (nullPeer): Removed.
  12764. * src/TrackerUpdateCommand.cc
  12765. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  12766. with MIN_PEERS.
  12767. * src/PeerListenCommand.h
  12768. (socket): Changed its type to SocketHandle.
  12769. * src/Command.h
  12770. (CommandUuid): New type definition.
  12771. (uuid): New variable.
  12772. (uuidGen): New variable.
  12773. (Command): Added the initialization of uuid.
  12774. (getUuid): New function.
  12775. * src/Socket.h
  12776. (Socket): Removed.
  12777. (SocketHandle): New type definition.
  12778. * src/DownloadEngine.h
  12779. (FindCommand): New function object.
  12780. (run): The portion of socket check was rewritten.
  12781. (SetDescriptor): New function object.
  12782. (AccumulateActiveCommandUuid): New function object.
  12783. (waitData): Rewritten.
  12784. (addSocket): Rewritten.
  12785. (deleteSocket): Rewritten.
  12786. (addSocketForReadCheck): Rewritten.
  12787. (addSocketForWriteCheck): Rewritten.
  12788. (deleteSocketForReadCheck): Rewritten.
  12789. (deleteSocketForWriteCheck): Rewritten.
  12790. * src/HttpProxyResponseCommand.h
  12791. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  12792. * src/HttpConnection.h
  12793. (socket): Changed its type to SocketHandle.
  12794. (HttpConnection): Replaced Socket with SocketHandle.
  12795. * src/PeerInitiateConnectionCommand.cc
  12796. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  12797. (executeInternal): Removed the allocation of socket.
  12798. (prepareForNextPeer): Use PeerHandle.
  12799. * src/PeerMessage.h
  12800. (peer): Changed its type to PeerHandle.
  12801. (getPeer): Replaced Peer with PeerHandle.
  12802. (setPeer): Replaced Peer with PeerHandle.
  12803. * src/DownloadCommand.cc
  12804. (DownloadCommand): Replaced Socket with SocketHandle.
  12805. * src/FtpConnection.h
  12806. (socket): Changed its type to SocketHandle.
  12807. (FtpConnection): Replaced Socket with SocketHandle.
  12808. (sendPort); Replaced Socket with SocketHandle.
  12809. * src/FtpDowndloadCommand.h
  12810. (ctrlSocket): Changed its type to SocketHandle.
  12811. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  12812. * src/HttpProxyRequestCommand.cc
  12813. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  12814. * src/FtpTunnelRequestCommand.h
  12815. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  12816. etc
  12817. * src/PeerChokeCommand.h
  12818. (setAllPeerChoked): Removed.
  12819. (setAllPeerResetDelta): Removed.
  12820. * src/PeerChokeCommand.cc
  12821. (setAllPeerChoked): Removed.
  12822. (ChokePeer): New function object.
  12823. (setAllPeerResetDelta): Removed.
  12824. (ResetDelta): New function object.
  12825. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12826. (execute): Show download speed when the local node is a seeder.
  12827. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12828. using STL.
  12829. * src/TrackerWatcherCommand.h
  12830. (MIN_PEERS): Removed.
  12831. * src/TorrentMan.cc
  12832. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12833. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12834. To fix the bug that .aria2 file is not saved if downloading is stopped
  12835. by the errors:it results that aria2 can not resume downloading:
  12836. * src/main.cc
  12837. (normalDownload): Added the call to save().
  12838. (main): Added the deletion of the elements in 'reserved'.
  12839. To fix log:
  12840. * src/PeerInteraction.cc
  12841. (receiveHandshake): Fixed log.
  12842. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12843. To improve download performance in BitTorrent:
  12844. * src/TorrentMan.cc
  12845. (getPeer): Check the number of connections. Return nullPeer if
  12846. it is greater than MAX_PEER_UPDATE.
  12847. This code was originally here, but was removed in 0.5.1.
  12848. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12849. To improve the conditional compilation:
  12850. * src/MultiDiskWriter.h:
  12851. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12852. * src/MultiDiskWriter.cc:
  12853. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12854. * src/Util.h:
  12855. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12856. Added ENABLE_BITTORRENT around computeFastSet().
  12857. * src/Util.cc:
  12858. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12859. Added ENABLE_BITTORRENT around computeFastSet().
  12860. * src/messageDigest.h:
  12861. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12862. * src/ShaVisitor.h:
  12863. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12864. * src/ShaVisitor.cc:
  12865. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12866. * src/main.cc:
  12867. Added ENABLE_BITTORRENT around includes and blocks related to
  12868. BitTorrent.
  12869. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12870. digest support is not available.
  12871. * src/AbstractDiskWriter.h:
  12872. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12873. * src/AbstractDiskWriter.cc:
  12874. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12875. * src/MetalinkEntry.cc
  12876. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12877. support is not available.
  12878. To add command-line options for Metalink:
  12879. * src/main.cc:
  12880. Added metalink-version, metalink-language, metalink-os,
  12881. follow-metalink.
  12882. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12883. * src/main.cc: Use these definition.
  12884. * Release 0.6.0
  12885. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12886. To add Metalink support(http/ftp only):
  12887. * src/AbstractCommand.h
  12888. (tryReserved): New function.
  12889. * src/AbstractCommand.cc
  12890. (execute): Call tryReserved().
  12891. (tryReserved): New function.
  12892. * src/Request.h
  12893. (Requests): New type definition.
  12894. * src/SegmentMan.h
  12895. (reserved): New variable.
  12896. * src/Util.h
  12897. (fileChecksum): New function.
  12898. (toUpper): New function.
  12899. (toLower): New function.
  12900. * src/Util.cc
  12901. (messageDigest.h): Included.
  12902. (trim): Trim \r\n\t.
  12903. (fileChecksum): New function.
  12904. (toUpper): New function.
  12905. (toLower): New function.
  12906. * src/main.cc
  12907. (normalDownload): New function.
  12908. (main): Added 2 command-line options: metalink-file,
  12909. metalink-connection. Their usage has not been written yet.
  12910. * src/MetalinkProcessor.h: New class.
  12911. * src/Xml2MetalinkProcessor.h: New class.
  12912. * src/Xml2MetalinkProcessor.cc: New class.
  12913. * src/MetalinkEntry.h: New class.
  12914. * src/MetalinkEntry.cc: New class.
  12915. * src/MetalinkResource.h: New class.
  12916. * src/MetalinkResource.cc: New class.
  12917. To add md5 message digest checking:
  12918. * src/messageDigest.h: Rewritten.
  12919. * src/MultiDiskWriter.cc: Updated according to the changes in
  12920. messageDigest.h.
  12921. * src/ShaVisitor.cc: Updated according to the changes in
  12922. messageDigest.h.
  12923. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12924. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12925. messageDigest.h.
  12926. To fix a bug that causes segfault when the payload length in peer
  12927. message is less than 0:
  12928. * src/PeerConnection.cc:
  12929. (receiveMessage): Fixed the bug.
  12930. * src/PeerMessageUtil.cc
  12931. (checkLength): Throw an exception if length is less than or equals to
  12932. 0.
  12933. To add new interfaces to Base64 encoding/decoding:
  12934. * src/Base64.h
  12935. (part_encode): Changed the method signature.
  12936. (encode): New function(overload).
  12937. (decode): New function(overload).
  12938. * src/Base64.cc
  12939. (part_encode): Rewritten.
  12940. (encode): Rewritten.
  12941. (encode): New function(overload).
  12942. To prevent a peer to download same piece if there is an error in
  12943. checksum:
  12944. * src/PieceMessage.cc
  12945. (receivedAction): Call peerInteraction->abortPiece().
  12946. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12947. To fix the bug that causes same have message is sent many times to
  12948. a single peer.
  12949. * src/Time.cc
  12950. (isNewer): Use Util::difftv().
  12951. * src/Util.cc
  12952. (difftv): Added a cast to (long long int).
  12953. * src/TorrentMan.cc
  12954. (advertisePiece): Use push_front.
  12955. (getAdvertisedPieceIndexes): A performance improvement was made.
  12956. To fix the bug that sends tracker requests without a sleep interval
  12957. when the number of connections is less than 15.
  12958. * src/TrackerWatcherCommand.cc
  12959. (execute): Now the number of connections is not a factor to decide
  12960. whether or not a tracker request should be sent or not.
  12961. * src/Time.h
  12962. (setTimeInSec): New function.
  12963. * src/Time.cc
  12964. (setTimeInSec): New function.
  12965. etc.
  12966. * src/ChokeMessage.cc
  12967. (receivedAction): Removed peer->snubbing = false
  12968. * src/PeerConnection.h
  12969. (receiveHandshake): Updated doc.
  12970. * src/TorrentMan.h
  12971. (getAdvertisedPieceIndexes): Updated the method signature.
  12972. * src/TorrentMan.cc
  12973. (getAdvertisedPieceIndexes): Updated the method signature.
  12974. * src/Time.h
  12975. (getTimeInMicros): Added a cast to (long long int).
  12976. (getTimeInMillis): Added a cast to (long long int).
  12977. * Release 0.5.2
  12978. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12979. To make a listening socket non-block:
  12980. * src/SocketCore.h
  12981. (setNonBlockingMode): New function.
  12982. * src/SocketCore.cc
  12983. (setNonBlockingMode): New function.
  12984. (beginListen): Added a call to setNonBlockingMode().
  12985. (acceptConnection): Call setNonBlockingMode().
  12986. (setBlockingMode): Updated.
  12987. To handle tracker's NAT-checking:
  12988. * src/PeerConnection.cc
  12989. (receiveHandshake): 'msg' param is filled with received data and
  12990. its length is assigned to 'length' param, even if all handshake
  12991. message is not yet received.
  12992. * src/PeerInteractionCommand.cc
  12993. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12994. a new peer connects to localhost.
  12995. A call to peerInteraction->sendHandshake() was removed because
  12996. it is called from peerInteraction->receiveHandshake(true).
  12997. * src/PeerInteraction.h
  12998. (quickReplied): New variable.
  12999. (receiveHandshake): Added an argument.
  13000. * src/PeerInteraction.cc
  13001. (PeerInteraction): Added the initialization of quickReplied.
  13002. (receiveHandshake): Send handshake message as soon as the info hash
  13003. in a handshake message from a peer is correct.
  13004. To change the random part of peer id and key parameter:
  13005. * src/TorrentMan.h
  13006. (key): New variable.
  13007. * src/TorrentMan.cc
  13008. (setupInternal1): Use Util::randomAlpha() to generate random part
  13009. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  13010. key is also generated by Util::randomAlpha() and it is now 8 character
  13011. long.
  13012. * src/Util.h
  13013. (randomAlpha): New function.
  13014. * src/Util.cc
  13015. (randomAlpha): New function.
  13016. * src/TrackerWatcherCommand.cc
  13017. (execute): In a tracker request: Use torrentMan->key as key parameter.
  13018. Added no_peer_id=1.
  13019. Set snubbing flag to false when a choke message is received from a
  13020. snubbed peer.
  13021. * src/ChokeMessage.cc
  13022. (receivedAction): Set snubbing flag to false.
  13023. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13024. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  13025. * src/SimpleLogger.h (writeHeader): New function.
  13026. * src/SimpleLogger.cc (writeHeader): New function.
  13027. (writeLog): Fixed the bug that causes segfaults if exception message
  13028. contains an unescaped "%" character.
  13029. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  13030. when a tracker request fails.
  13031. * src/Request.cc (parseUrl): Query string is now handled properly.
  13032. * Release 0.5.1
  13033. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13034. To add Time class which represents a specific instant in time and
  13035. its precision is microseconds. Time checking procedures were rewritten
  13036. using this object.
  13037. * src/Time.h: New class.
  13038. * src/Time.cc: New class.
  13039. * src/AbstractCommand.h
  13040. (updateCheckPoint): Removed.
  13041. (isTimeoutDetected): Removed.
  13042. (checkPoint): Changed the type to Time.
  13043. (timeout): New variable.
  13044. (setTimeout): New function.
  13045. * src/AbstractCommand.cc
  13046. (AbstractCommand): Removed the initialization of checkPoint.
  13047. Added the initialization of timeout.
  13048. (updateCheckPoint): Removed.
  13049. (isTimeoutDetected): Removed.
  13050. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13051. * src/PeerChokeCommand.h
  13052. (checkPoint): Changed the type to Time.
  13053. * src/PeerChokeCommand.cc
  13054. (PeerChokeCommand): Removed the initialization of checkPoint.
  13055. (execute): Rewritten using Time object.
  13056. * src/TrackerWatcherCommand.h
  13057. (checkPoint): Changed the type to Time.
  13058. * src/TrackerWatcherCommand.cc
  13059. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  13060. (execute): Rewritten.
  13061. * src/ConsoleDownloadEngine.h
  13062. (cp): Changed the type to Time.
  13063. (startup): Changed the type to Time.
  13064. * src/ConsoleDownloadEngine.cc
  13065. (initStatistics): Use cp.reset(), startup.reset().
  13066. (calculateStatistics): Rewritten using Time object.
  13067. * src/PeerAbstractCommand.h
  13068. (updateCheckPoint): Removed.
  13069. (isTimeoutDetected): Removed.
  13070. (checkPoint): Changed the type to Time.
  13071. * src/PeerAbstractCommand.cc
  13072. (PeerAbstractCommand): Removed the initialization of checkPoint.
  13073. (updateCheckPoint): Removed.
  13074. (isTimeoutDetected): Removed.
  13075. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  13076. * src/PeerInteractionCommand.cc
  13077. (PeerInteractionCommand): Removed the initializations of struct
  13078. timeval variables.
  13079. * src/PeerInteractionCommand.h
  13080. (keepAliveCheckPoint): Changed the type to Time.
  13081. (chokeCheckPoint): Changed the type to Time.
  13082. (freqCheckPoint): Changed the type to Time.
  13083. (haveCheckTime): Changed the type to Time.
  13084. * src/PeerInteractionCommand.cc
  13085. (executeInternal): Rewritten using Time object.
  13086. (detectMessageFlooding): Rewritten using Time object.
  13087. (checkLongTimePeerChoking): Rewritten using Time object.
  13088. (sendKeepAlive): Rewritten using Time object.
  13089. (checkHave): Rewritten using Time object.
  13090. * src/SleepCommand.h
  13091. (checkPoint): Changed the type to Time.
  13092. * src/SleepCommand.cc
  13093. (SleepCommand): Removed the initialization of checkPoint.
  13094. (execute): Rewritten using Time object.
  13095. * src/TorrentAutoSaveCommand.h
  13096. (checkPoint): Changed the type to Time.
  13097. * src/TorrentAutoSaveCommand.cc
  13098. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  13099. (execute): Rewritten.
  13100. * src/DownloadCommand.h
  13101. (sw): Changed the type to Time.
  13102. * src/DownloadCommand.cc
  13103. (DownloadCommand): Removed the initialization of sw.
  13104. (executeInternal): Rewritten.
  13105. * src/RequestSlot.h
  13106. (dispatchedTime): Changed the type to Time.
  13107. * src/RequestSlot.cc
  13108. (RequestSlot): Removed the call to setDispatchedTime().
  13109. (setDispatchedTime): Rewirtten.
  13110. (isTimeout): Rewritten.
  13111. (getLatencyInMillis): Rewritten.
  13112. * src/TorrentDownloadEngine.h
  13113. (cp): Changed the type to Time[2].
  13114. (startup): Changed the type to Time.
  13115. * src/TorrentDownloadEngine.cc
  13116. (initStatistics): Rewritten.
  13117. (calculateStatistics): Rewritten.
  13118. * src/DownloadEngine.cc
  13119. (run): Rewritten.
  13120. To detect all attempts to connect to the tracker are failed:
  13121. * src/AbstractCommand.cc
  13122. (execute): Increment e->segmentMan->errors if a command aborted.
  13123. * src/SegmentMan.h
  13124. (errors): New variable.
  13125. * src/SegmentMan.cc
  13126. (SegmentMan): Added the initialization of errors.
  13127. (init): Added the initialization of errors.
  13128. * src/TrackerWatcherCommand.cc
  13129. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  13130. request was failed.
  13131. To handle snubbed peers:
  13132. * src/PeerChokeCommand.cc
  13133. (optUnchokingPeer): Snubbed peers don't get unchoked.
  13134. (execute): Snubbed peers don't get unchoked.
  13135. * src/PeerInteraction.h
  13136. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  13137. * src/PeerInteraction.cc
  13138. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  13139. back the requested 16k block in 60 seconds.
  13140. * src/PieceMessage.cc
  13141. (receivedAction): A peer's snubbed state is cleard if it sends
  13142. the requested 16k block in 60 seconds.
  13143. * src/Peer.h
  13144. (snubbing): New variable.
  13145. * src/Peer.cc
  13146. (resetStatus): Added snubbed = false.
  13147. To fix the bug that causes have message is not sent:
  13148. * src/PeerInteractionCommand.cc
  13149. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  13150. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  13151. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  13152. * src/TorrentMan.h
  13153. (HaveEntry): New class.
  13154. (advertisePiece): Rewritten.
  13155. (getAdvertisedPieceIndexes): Rewritten.
  13156. (Haves): Changed the type.
  13157. (getAdvertisedPieceIndexes): Added an argument.
  13158. Others:
  13159. * src/TorrentMan.h
  13160. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  13161. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  13162. * src/TorrentMan.cc
  13163. (getPeer): Don't check the number of connections here.
  13164. (setupInternal1): Changed peerId.
  13165. * src/PeerInteractionCommand.h
  13166. (KEEP_ALIVE_INTERVAL): New definition.
  13167. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  13168. * src/main.cc
  13169. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  13170. * src/DownloadEngine.h: Removed unnecessary header includes.
  13171. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13172. To fix the bug that causes segfaults if a tracker returns a zero-length
  13173. list as "peers":
  13174. * src/TrackerUpdateCommand.cc
  13175. (execute): Added a check to see wether the type of peers is Data*.
  13176. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13177. * Release 0.5.0
  13178. To fix compile issue with gcc3:
  13179. * src/CancelMessage.h
  13180. (ID): Renamed as ID_t
  13181. (ID_t): New enum.
  13182. * src/RejectMessage.h
  13183. (ID): Renamed as ID_t
  13184. (ID_t): New enum.
  13185. * src/SuggestPieceMessage.h
  13186. (ID): Renamed as ID_t
  13187. (ID_t): New enum.
  13188. * src/AllowedFastMessage.h
  13189. (ID): Renamed as ID_t
  13190. (ID_t): New enum.
  13191. * src/PortMessage.h
  13192. (ID): Renamed as ID_t
  13193. (ID_t): New enum.
  13194. * src/HaveNoneMessage.h
  13195. (ID): Renamed as ID_t
  13196. (ID_t): New enum.
  13197. * src/KeepAliveMessage.h
  13198. (ID): Renamed as ID_t
  13199. (ID_t): New enum.
  13200. * src/HaveAllMessage.h
  13201. (ID): Renamed as ID_t
  13202. (ID_t): New enum.
  13203. * src/UnchokeMessage.h
  13204. (ID): Renamed as ID_t
  13205. (ID_t): New enum.
  13206. * src/BitfieldMessage.h
  13207. (ID): Renamed as ID_t
  13208. (ID_t): New enum.
  13209. * src/PieceMessage.h
  13210. (ID): Renamed as ID_t
  13211. (ID_t): New enum.
  13212. * src/RequestMessage.h
  13213. (ID): Renamed as ID_t
  13214. (ID_t): New enum.
  13215. * src/NotInterestedMessage.h
  13216. (ID): Renamed as ID_t
  13217. (ID_t): New enum.
  13218. * src/ChokeMessage.h
  13219. (ID): Renamed as ID_t
  13220. (ID_t): New enum.
  13221. * src/InterestedMessage.h
  13222. (ID): Renamed as ID_t
  13223. (ID_t): New enum.
  13224. * src/HaveMessage.h
  13225. (ID): Renamed as ID_t
  13226. (ID_t): New enum.
  13227. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13228. * src/PeerAbstractCommand.h
  13229. (beforeSocketCheck): Removed.
  13230. * src/PeerAbstractCommand.cc
  13231. Modified in order to call executeInternal() even if socket check
  13232. and upload limit check fail.
  13233. * src/PeerInteractionCommand.h
  13234. (keepAlive): Removed.
  13235. (sendKeepAlive): New function.
  13236. (checkHave): New function.
  13237. (beforeSocketCheck): Removed.
  13238. * src/PeerInteractionCommand.cc
  13239. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  13240. calls to checkHave() and sendKeepAlive().
  13241. (keepAlive): Renamed to sendKeepAlive().
  13242. (sendKeepAlive): New function.
  13243. (beforeSocketCheck): Removed.
  13244. (checkHave): New function.
  13245. * src/BitfieldMan.cc
  13246. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  13247. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  13248. 0.
  13249. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  13250. * src/TorrentMan.h
  13251. (UsedPieces): Removed.
  13252. (Pieces): New type definition.
  13253. * src/Piece.h: Updated doc.
  13254. * src/Peer.h
  13255. (totalLength): Removed.
  13256. * src/Peer.cc
  13257. (updateLatency): Fixed the latency calculation.
  13258. * src/TorrentMan.cc
  13259. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  13260. than or equal to MAX_PEER_LIST_SIZE.
  13261. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  13262. then return false.
  13263. (deleteOldErrorPeers): Rewritten.
  13264. (deleteUsedPiece): Fixed the miss use of STL remove.
  13265. * src/PeerInteraction.h
  13266. (Pieces): Removed.
  13267. (deleteTimeoutRequestSlot): Removed.
  13268. (deleteCompletedRequestSlot): Removed.
  13269. (checkRequestSlot): New function.
  13270. * src/PeerInteraction.cc
  13271. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  13272. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  13273. (checkRequestSlot): New function.
  13274. * src/DownloadEngine.cc
  13275. (run): Clear activeSockets before calling waitData().
  13276. (waitData): Removed a call to activeSockets.clear().
  13277. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13278. To attempt to handle EINTR:
  13279. * src/SocketCore.cc
  13280. (isReadable): Added EINTR handling.
  13281. (isWritable): Added EINTR handling.
  13282. To improve the performance:
  13283. * src/AbstractCommand.cc
  13284. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13285. * src/PeerInteractionCommand.h
  13286. (receiveMessage): Renamed as receiveMessages().
  13287. (receiveMessages): New function.
  13288. * src/PeerInteractionCommand.cc
  13289. (executeInternal): receiveMessage loop is moved to new receiveMessages
  13290. () function. detectMessageFlooding() is moved here.
  13291. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  13292. (). The flooding detection for have message is comment out.
  13293. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  13294. Util::difftv().
  13295. (receiveMessage): Renamed as receiveMessages().
  13296. (receiveMessages): New function.
  13297. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  13298. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  13299. * src/SleepCommand.cc
  13300. (execute): Use Util::difftvsec() instead of Util::difftv().
  13301. * src/BitfieldMan.h
  13302. (getNthBitIndex): New function.
  13303. (hasMissingPiece): New function.
  13304. (getAllMissingIndexes): New function.
  13305. * src/BitfieldMan.cc
  13306. (countSetBit): Rewritten.
  13307. (getNthBitIndex): New function.
  13308. (getMissingIndexRandomly): Rewritten.
  13309. (hasMissingPiece): New function.
  13310. (getAllMissingIndexes): New function.
  13311. * src/TorrentMan.cc
  13312. (hasMissingPiece): New function.
  13313. (deleteUsedPiece): Rewritten using STL.
  13314. * src/PeerInteraction.cc
  13315. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  13316. is a little bit faster then TorrentMan::getMissingPieceIndex().
  13317. (addRequests): Updated the number of pending requests.
  13318. * src/PeerAbstractCommand.cc
  13319. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  13320. (execute): Returns true if TorrentMan::isHalt() is true.
  13321. Corrected the condition of upload limit checking.
  13322. * src/Util.h
  13323. (countBit): New function.
  13324. * src/Util.cc
  13325. (nbits): New variable.
  13326. (countBit): New function.
  13327. * src/DownloadEngine.h
  13328. (SockCmdMap): New type definition.
  13329. (waitData): Added an argument.
  13330. (addSocket): Added an argument.
  13331. (addSocketForReadCheck): Added an argument.
  13332. (addSocketForWriteCheck): Added an argument.
  13333. * src/DownloadEngine.cc
  13334. (run): Executes only commands whose sockets are ready to read or write.
  13335. All commands are executed in every 1 second.
  13336. (waitData): Calls select() again if it returned
  13337. EINTR.
  13338. (addSocket): Saves socket and command object pair to the map.
  13339. (deleteSocket): Deletes socket and command object pair from the map.
  13340. (addSocketForReadCheck): Added an argument.
  13341. (addSocketForWriteCheck): Added an argument.
  13342. * src/DownloadCommand.cc
  13343. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  13344. To send "event=stopped" to the tracker when the application finishes:
  13345. * src/PeerChokeCommand.h
  13346. (checkPoint): New variable.
  13347. * src/PeerChokeCommand.cc
  13348. (PeerChokeCommand): Added the initialization of checkPoint.
  13349. (execute): The interval check is now done by checkPoint, not
  13350. SleepCommand. Return true if TorrentMan::isHalt() is true.
  13351. * src/TorrentMan.h
  13352. (halt): New function.
  13353. (hasMissingPiece): New function.
  13354. (isHalt): New function.
  13355. (setHalt): New function.
  13356. * src/TorrentMan.cc
  13357. (TorrentMan): Added the initialization of halt.
  13358. * src/TorrentAutoSaveCommand.h
  13359. (checkPoint): New variable.
  13360. * src/PeerListenCommand.cc
  13361. (execute): Returns true if TorrentMan::isHalt() is true.
  13362. * src/main.cc
  13363. (setSignalHander): Added flags argument.
  13364. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  13365. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  13366. Removed printDownloadAbortMessage() after torrent downloading loop.
  13367. * src/TorrentAutoSaveCommand.cc
  13368. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  13369. (execute): Returns true if TorrentMan::isHalt() is true.
  13370. The interval check is now done by checkPoint, not SleepCommand.
  13371. * src/TrackerWatcherCommand.cc
  13372. (execute): If TorrentMan::isHalt(), then create a tracker request with
  13373. event=stopped.
  13374. * src/TrackerUpdateCommand.cc
  13375. (prepareForRetry): Do not use SleepCommand here.
  13376. (execute): Returns true if TorrentMan::isHalt() is true.
  13377. Others:
  13378. * src/TorrentMan.cc
  13379. (getMissingPieceIndex): Updated log message.
  13380. * src/PeerInteraction.cc
  13381. (createPeerMessag): Updated log message.
  13382. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13383. To add the ability to download several pieces in mix in a command and
  13384. increase the number of request slots according to request-cancel
  13385. latency:
  13386. * src/PeerInteractionCommand.cc
  13387. (executeInternal): The number of messages to be received at a time
  13388. is increased from 10 to 50.
  13389. * src/LogFactory
  13390. (getInstance): Added NullLogger.
  13391. * src/NullLogger.h: New class.
  13392. * src/BitfieldMan.h
  13393. (getMissingIndex): New function.
  13394. * src/BitfieldMan.cc
  13395. (getMissingIndex): New function.
  13396. * src/TorrentMan.h
  13397. (checkOutPiece): New function.
  13398. (getMissingPieceIndex): New function.
  13399. (getMissingFastPieceIndex): New function.
  13400. (getMissingFastPiece): New function.
  13401. * src/TorrentMan.cc
  13402. (updatePiece): Rewritten using STL.
  13403. (syncPiece): Rewritten using STL.
  13404. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  13405. checkOutPiece().
  13406. (getMissingPieceIndex): New function.
  13407. (getMissingFastPieceIndex): New function.
  13408. (getMissingFastPiece): New function.
  13409. (checkOutPiece): New function.
  13410. * src/PeerInteraction.h
  13411. (Pieces): New type definition.
  13412. (piece): Removed.
  13413. (pieces): New variable.
  13414. (getNewPieceAndSendInterest): Added the "piece" argument.
  13415. (abortPiece): Added the "piece" argument.
  13416. (abortAllPieces): New function.
  13417. (isInRequestSlot): New function.
  13418. (hasDownloadPiece): Added the "index" argument.
  13419. (setDownloadPiece): Removed.
  13420. (getDownloadPiece): Added the "index" argument.
  13421. (updatePiece): New function.
  13422. (createRequestMessage): Added the "index" argument.
  13423. * src/PeerInteraction.cc
  13424. (onChoked): Rewritten.
  13425. (abortPiece): Rewirtten.
  13426. (abortAllPieces): New function.
  13427. (deleteTimeoutRequestSlot): Rewritten.
  13428. Clarified code a little bit.
  13429. (deleteCompletedRequestSlot): Rewritten.
  13430. (isInRequestSlot): New function.
  13431. (syncPiece): Rewritten.
  13432. (updatePiece): New function.
  13433. (getNewPieceAndSendInterest): Rewritten.
  13434. (addRequests): Rewritten.
  13435. (getDownloadPiece): Rewritten.
  13436. (hasDownloadPiece): Rewritten.
  13437. (createRequestMessage): Added the "index" argument.
  13438. * src/common.h
  13439. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  13440. (DIV_FLOOR): New definition.
  13441. * src/PieceMessage.cc
  13442. (receivedAction): Update request-piece latency here.
  13443. * src/RequestSlot.h
  13444. (getLatencyInMillis): New function.
  13445. * src/RequestSlot.cc
  13446. (isTimeout): Rewritten using getLatencyInMillis.
  13447. (getLatencyInMillis): New function.
  13448. * src/Piece.h
  13449. (operator==): New function.
  13450. (getMissingBlockIndex): New function.
  13451. * src/Piece.cc
  13452. (operator==): New function.
  13453. (getMissingBlockIndex): New function.
  13454. * src/Peer.h
  13455. (DEFAULT_LATENCY): New definition.
  13456. (latency): New variable.
  13457. (updateLatency): New function.
  13458. (getLatency): New function.
  13459. * src/Peer.cc
  13460. (resetStatus): Reset latecy.
  13461. (updateLatency): New function.
  13462. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13463. * src/SocketCore.cc
  13464. (isReadable): Added secure to the condition.
  13465. * src/HttpConnection.cc
  13466. (receiveResponse): Fixed a bug that causes no response header
  13467. exception.
  13468. * src/Peer.h
  13469. (getFastSet): Fixed the return value type.
  13470. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13471. To remove a wait from download loop:
  13472. * src/DownloadEngine.cc
  13473. (run): Comment out shortSleep.
  13474. To rewrite the message handling:
  13475. * src/SimplePeerMessage.h: New class.
  13476. * src/SimplePeerMessage.cc: New class.
  13477. * src/CancelMessage.h: Derived from SimplePeerMessage.
  13478. (msg): New variable.
  13479. (create): New function.
  13480. (send): Removed.
  13481. (getMessage): New function.
  13482. (getMessageLength): New function.
  13483. * src/CancelMessage.cc
  13484. (create): New function.
  13485. (receivedAction): Replaced deleteRequestMessageInQueue with
  13486. rejectPieceMessageInQueue.
  13487. (send): Removed.
  13488. (getMessage): New function.
  13489. (getMessageLength): New function.
  13490. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  13491. (msg): New variable.
  13492. (msgLength): New variable.
  13493. (~BitfieldMessage): Deleted msg.
  13494. (send): Removed.
  13495. (getMessage): New function.
  13496. (getMessageLength): New function.
  13497. * src/BitfieldMessage.cc
  13498. (create): New function.
  13499. (send): Removed.
  13500. (getMessage): New function.
  13501. (getMessageLength): New function.
  13502. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  13503. (msg): New variable.
  13504. (sendPredicate): New function.
  13505. (onSendComplete): New function.
  13506. (send): Removed.
  13507. (getMessage): New function.
  13508. (getMessageLength): New function.
  13509. (create): New function.
  13510. * src/ChokeMessage.cc
  13511. (create): New function.
  13512. (send): Removed.
  13513. (sendPredicate): New function.
  13514. (getMessage): New function.
  13515. (getMessageLength): New function.
  13516. (onSendComplete): New function.
  13517. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  13518. (msg): New variable.
  13519. (send): Removed.
  13520. (getMessage): New function.
  13521. (getMessageLength): New function.
  13522. * src/KeepAliveMessage.cc
  13523. (send): Removed.
  13524. (getMessage): New function.
  13525. (getMessageLength): New function.
  13526. * src/PortMessage.h
  13527. (create): New function.
  13528. (receivedAction): Updated log message.
  13529. * src/PortMessage.cc: New file.
  13530. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  13531. (msg): New variable.
  13532. (sendPredicate): New function.
  13533. (onSendComplete): New function.
  13534. (create): New function.
  13535. (send): Removed.
  13536. (getMessage): New function.
  13537. (getMessageLength): New function.
  13538. * src/UnchokeMessage.cc
  13539. (create): New function.
  13540. (send): Removed.
  13541. (sendPredicate): New function.
  13542. (getMessage): New function.
  13543. (getMessageLength): New function.
  13544. (onSendComplete): New function.
  13545. * src/PieceMessage.h
  13546. (leftPieceDataLength): Removed.
  13547. (leftDataLength): New variable.
  13548. (headerSend): New variable.
  13549. (pendingCount): New variable.
  13550. (msgHeader): New variable.
  13551. (sendPieceData): New function.
  13552. (incrementPendingCount): New function.
  13553. (isPendingCountMax): New function.
  13554. (create): New function.
  13555. (getMessageHeader): New function.
  13556. (getMessageHeaderLength): New function.
  13557. * src/PieceMessage.cc
  13558. (create): New function.
  13559. (getMessageHeader): New function.
  13560. (getMessageHeaderLength): New function.
  13561. (send): Rewritten.
  13562. (sendPieceData): New function.
  13563. * src/HaveMessage.h: Derived from SimplePeerMessage.
  13564. (msg): New variable.
  13565. (create): New function.
  13566. (getMessage): New function.
  13567. (getMessageLength): New function.
  13568. * src/HaveMessage.cc
  13569. (create): New function.
  13570. (send): Removed.
  13571. (sendPieceData): New function.
  13572. (getMessage): New function.
  13573. (getMessageLength): New function.
  13574. * src/RequestMessage.h: Derived from SimplePeerMessage.
  13575. (msg): New variable.
  13576. (create): New function.
  13577. (send): Removed.
  13578. (getMessage): New function.
  13579. (getMessageLength): New function.
  13580. * src/RequestMessage.cc
  13581. (create): New function.
  13582. (receivedAction): Added the handling of fast extension.
  13583. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  13584. (send): Removed.
  13585. (getMessage): New function.
  13586. (getMessageLength): New function.
  13587. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  13588. (msg): New variable.
  13589. (sendPredicate): New function.
  13590. (onSendComplete): New function.
  13591. (create): New function.
  13592. (getMessage): New function.
  13593. (getMessageLength): New function.
  13594. * src/InterestedMessage.cc
  13595. (create): New function.
  13596. (send): Removed.
  13597. (sendPieceData): New function.
  13598. (getMessage): New function.
  13599. (getMessageLength): New function.
  13600. (onSendComplete): New function.
  13601. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  13602. (msg): New variable.
  13603. (sendPieceData): New function.
  13604. (onSendComplete): New function.
  13605. (create): New function.
  13606. (send): Removed.
  13607. (getMessage): New function.
  13608. (getMessageLength): New function.
  13609. * src/NotInterestedMessage.cc
  13610. (create): New function.
  13611. (send): Removed.
  13612. (sendPredicate): New function.
  13613. (getMessage): New function.
  13614. (getMessageLength): New function.
  13615. (onSendComplete): New function.
  13616. * src/AllowedFastMessage.h: New class.
  13617. * src/AllowedFastMessage.cc: New class.
  13618. * src/RejectMessage.h: New class.
  13619. * src/RejectMessage.cc: New class.
  13620. * src/SuggestPieceMessage.h: New class.
  13621. * src/SuggestPieceMessage.cc: New class.
  13622. * src/HaveAllMessage.h: New class.
  13623. * src/HaveAllMessage.cc: New class.
  13624. * src/HaveNoneMessage.h: New class.
  13625. * src/HaveNoneMessage.cc: New class.
  13626. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  13627. (msg): New variable.
  13628. (reserved): New variable.
  13629. (create): New function.
  13630. (getId): New function.
  13631. (receivedAction): New function.
  13632. (getMessage): New function.
  13633. (getMessageLength): New function.
  13634. (isFastExtensionSupported): New function.
  13635. * src/HandshakeMessage.cc
  13636. (HandshakeMessage): Moved here from HandshakeMessage.h.
  13637. (create): New function.
  13638. (getMessage): New function.
  13639. (getMessageLength): New function.
  13640. (toString): Added the output of reserved field.
  13641. (check): Added const qualifier.
  13642. (isFastExtensionSupported): New function.
  13643. * src/PeerMessageUtil.h
  13644. (createChokeMessage): Removed.
  13645. (createUnchokeMessage): Removed.
  13646. (createInterestedMessage): Removed.
  13647. (createNotInterestedMessage): Removed.
  13648. (createHaveMessage): Removed.
  13649. (createBitfieldMessage): Removed.
  13650. (createRequestMessage): Removed.
  13651. (createCancelMessage): Removed.
  13652. (createPieceMessage): Removed.
  13653. (createPortMessage): Removed.
  13654. (createChokeMessage): Removed.
  13655. (createUnchokeMessage): Removed.
  13656. (createInterestedMessage): Removed.
  13657. (createNotInterestedMessage): Removed.
  13658. (createHaveMessage): Removed.
  13659. (createBitfieldMessage): Removed.
  13660. (createRequestMessage): Removed.
  13661. (createCancelMessage): Removed.
  13662. (createPieceMessage): Removed.
  13663. (createKeepAliveMessage): Removed.
  13664. (createHandshakeMessage): Removed.
  13665. (setIntParam): New function.
  13666. (createPeerMessageString): New function.
  13667. * src/PeerMessageUtil.cc
  13668. (createChokeMessage): Removed.
  13669. (createUnchokeMessage): Removed.
  13670. (createInterestedMessage): Removed.
  13671. (createNotInterestedMessage): Removed.
  13672. (createHaveMessage): Removed.
  13673. (createBitfieldMessage): Removed.
  13674. (createRequestMessage): Removed.
  13675. (createCancelMessage): Removed.
  13676. (createPieceMessage): Removed.
  13677. (createPortMessage): Removed.
  13678. (createRequestMessage): Removed.
  13679. (createCancelMessage): Removed.
  13680. (createPieceMessage): Removed.
  13681. (createHaveMessage): Removed.
  13682. (createChokeMessage): Removed.
  13683. (createUnchokeMessage): Removed.
  13684. (createInterestedMessage): Removed.
  13685. (createNotInterestedMessage): Removed.
  13686. (createBitfieldMessage): Removed.
  13687. (createKeepAliveMessage): Removed.
  13688. (createHandshakeMessage): Removed.
  13689. (setIntParam): New function.
  13690. (createPeerMessageString): New function.
  13691. * src/PeerConnection.h
  13692. (peer): Removed.
  13693. (torrentMan): Removed.
  13694. (createNLengthMessage): Removed.
  13695. (setIntParam): Removed.
  13696. (writeOutgoingMessageLog): Removed all overloaded functions.
  13697. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13698. (sendMessage): New function.
  13699. (sendHandshake): Removed.
  13700. (sendKeepAlive): Removed.
  13701. (sendChoke): Removed.
  13702. (sendUnchoke): Removed.
  13703. (sendInterested): Removed.
  13704. (sendNotInterested): Removed.
  13705. (sendHave): Removed.
  13706. (sendBitfield): Removed.
  13707. (sendRequest): Removed.
  13708. (sendPiece): Removed.
  13709. (sendPieceHeader): Removed.
  13710. (sendPieceData): Removed.
  13711. (sendCancel): Removed.
  13712. (getPeer): Removed.
  13713. * src/PeerConnection.cc
  13714. (PeerConnection): Deleted peer and torrentMan from its arguments.
  13715. (sendHandshake): Removed.
  13716. (sendKeepAlive): Removed.
  13717. (createNLengthMessage): Removed.
  13718. (setIntParam): Removed.
  13719. (writeOutgoingMessageLog): Removed all overloaded functions.
  13720. (sendChoke): Removed.
  13721. (sendUnchoke): Removed.
  13722. (sendInterested): Removed.
  13723. (sendNotInterested): Removed.
  13724. (sendHave): Removed.
  13725. (sendBitfield): Removed.
  13726. (sendRequest): Removed.
  13727. (sendPiece): Removed.
  13728. (sendPieceHeader): Removed.
  13729. (sendPieceData): Removed.
  13730. (sendMessage): New function.
  13731. (sendCancel): Removed.
  13732. * src/PeerInteractionCommand.cc
  13733. (PeerInteractionCommand): Call setUploadLimit.
  13734. (executeInternal): Call setUploadLimit.
  13735. Added the handling of "inProgress" state of handshake message.
  13736. Call sendBitfield() or sendAllowdFast() instead of deprecated
  13737. sendNow().
  13738. (keepAlive): Call addMessage and sendMessage instead of deprecated
  13739. sendNow().
  13740. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  13741. * src/TorrentMan.h
  13742. (PEER_ID_LENGTH): New definition.
  13743. (hasAllPieces): New function.
  13744. * src/TorrentMan.cc
  13745. (getMissingPiece): Added the handling of fast extension.
  13746. (cancelPiece): Call updatePiece().
  13747. (hasAllPieces): New function.
  13748. * src/PeerInteraction.h
  13749. (fastSet): New variable.
  13750. (getNewPieceAndSendInterest): Changed the return type to void.
  13751. (send): Renamed as sendMessages.
  13752. (deleteAllRequestSlot): Removed.
  13753. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13754. (cancelAllRequest): Removed all overloaded functions.
  13755. (deleteAllRequestSlot): Removed.
  13756. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13757. (rejectPieceMessageInQueue): New function.
  13758. (rejectAllPieceMessageInQueue): New function.
  13759. (onChoked): New function.
  13760. (isSendingMessageInProgress): New function.
  13761. (getCorrespondingRequestSlot): Changed its arguments.
  13762. (isInFastSet): New function.
  13763. (addFastSetIndex): New function.
  13764. (addRequests): New function.
  13765. (sendNow): Removed.
  13766. (trySendNow): Removed.
  13767. (sendBitfield): New function.
  13768. (sendAllowdFast): New function.
  13769. (createHaveAllMessage): New function.
  13770. (createHaveNoneMessage): New function.
  13771. (createRejectMessage): New function.
  13772. (createAllowedFastMessage): New function.
  13773. * src/PeerInteraction.cc
  13774. (send): Renamed as sendMessages.
  13775. (sendMessages): New function.
  13776. (MsgPushBack): New class.
  13777. (isSendingMessageInProgress): New function.
  13778. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  13779. (rejectAllPieceMessageInQueue): New function.
  13780. Added the handling of fast extension.
  13781. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  13782. (rejectPieceMessageInQueue): New function.
  13783. Added the handling of fast extension.
  13784. (deleteRequestSlot): Replaced for loop with std::find.
  13785. (onChoked): New function.
  13786. (deleteAllRequestSlot): Removed.
  13787. (abortPiece): Rewirtten.
  13788. (deleteTimeoutRequestSlot): Updated log messages.
  13789. (getCorrespondingRequestSlot): Changed its arguments.
  13790. (cancelAllRequest): Removed all overloaded functions.
  13791. (receiveHandshake): Added the check to see whether an incoming peer
  13792. supports fast extension.
  13793. (createHandshakeMessage): Use HandshakeMessage::create instead of
  13794. PeerMessageUtil.
  13795. (createPeerMessage): Use create() of each message class instead of
  13796. PeerMessageUtil.
  13797. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  13798. AllowedFastMessage were added.
  13799. (getNewPieceAndSendInterest): Changed its return value type to void.
  13800. Added the handling of fast extension.
  13801. (addRequests): New function.
  13802. (sendNow): Removed.
  13803. (sendHandshake): Rewritten.
  13804. (trySendNow): Removed.
  13805. (sendBitfield): New function.
  13806. (sendAllowdFast): New function.
  13807. (isInFastSet): New function.
  13808. (addFastSetIndex): New function.
  13809. (createRequestMessage): Use RequestMessage::create instead of
  13810. PeerMessageUtil.
  13811. (createCancelMessage): Use CancelMessage::create instead of
  13812. PeerMessageUtil.
  13813. (createPieceMessage): Use PieceMessage::create instead of
  13814. PeerMessageUtil.
  13815. (createHaveMessage): Use HaveMessage::create instead of
  13816. PeerMessageUtil.
  13817. (createChokeMessage): Use ChokeMessage::create instead of
  13818. PeerMessageUtil.
  13819. (createUnchokeMessage): Use UnchokeMessage::create instead of
  13820. PeerMessageUtil.
  13821. (createInterestedMessage): Use InterestedMessage::create instead of
  13822. PeerMessageUtil.
  13823. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13824. of PeerMessageUtil.
  13825. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13826. PeerMessageUtil.
  13827. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13828. PeerMessageUtil.
  13829. (createHaveAllMessage): New function.
  13830. (createHaveNoneMessage): New function.
  13831. (createRejectMessage): New function.
  13832. (createAllowedFastMessage: New function.
  13833. * src/Util.h
  13834. (sha1Sum): New function.
  13835. (computeFastSet): New function.
  13836. * src/Util.cc
  13837. (sha1Sum): New function.
  13838. (computeFastSet): New function.
  13839. * src/Peer.h
  13840. (fastExtensionEnabled): New variable.
  13841. (fastSet): New variable.
  13842. (setAllBitfield): New function.
  13843. (setFastExtensionEnabled): New function.
  13844. (isFastExtensionEnabled): New function.
  13845. (addFastSetIndex): New function.
  13846. (getFastSet): New function.
  13847. (isInFastSet): New function.
  13848. (countFastSet): New function.
  13849. * src/Peer.cc
  13850. (isInFastSet): New function.
  13851. (addFastSetIndex): New function.
  13852. (setAllBitfield): New function.
  13853. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13854. sockets.
  13855. * src/PeerAbstractCommand.cc
  13856. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13857. and uploadLimit.
  13858. (execute): Changed the procedure of checking sockets. The upload speed
  13859. checking were added.
  13860. (setUploadLimit): New function.
  13861. (setUploadLimitCheck): New function.
  13862. * src/PeerAbstractCommand.h
  13863. (setUploadLimit): New function.
  13864. (setUploadLimitCheck): New function.
  13865. (uploadLimit): New variable.
  13866. (uploadLimitCheck): New variable.
  13867. To contact a tracker regularly:
  13868. * src/TrackerWatcherCommand.h (interval): New variable.
  13869. (checkPoint): New variable.
  13870. (TrackerWatcherCommand): Added interval argument.
  13871. * src/TrackerWatcherCommand.cc
  13872. (TrackerWatcherCommand): Initialized checkPoint.
  13873. (execute): Now a tracker is contacted in every specified period.
  13874. If peer list is not needed, send request with numwant=0.
  13875. * src/TrackerUpdateCommand.cc
  13876. (execute): Updated log messages.
  13877. * src/DownloadEngine.cc
  13878. (~DownloadEngine): Removed two asserts.
  13879. (waitData): Uncommented wfds. May be a bug fix.
  13880. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13881. * src/PeerInteractionCommand.h
  13882. (checkInactiveConnection): Removed.
  13883. * src/PeerInteractionCommand.cc
  13884. (executeInternal): Removed following function calls:
  13885. detectMessageFlooding(), checkLongTimePeerChoking and
  13886. checkInactiveConnection().
  13887. (checkInactiveConnection): Removed.
  13888. (detectMessageFlooding): Removed function call to
  13889. checkInactiveConnection().
  13890. * src/PeerMessageUtil.h
  13891. (createChokeMessage): New function. Overload.
  13892. (createUnchokeMessage): New function. Overload.
  13893. (createInterestedMessage): New function. Overload.
  13894. (createNotInterestedMessage): New function. Overload.
  13895. (createHaveMessage): New function. Overload.
  13896. (createBitfieldMessage): New function. Overload.
  13897. (createRequestMessage): New function. Overload.
  13898. (createCancelMessage): New function. Overload.
  13899. (createPieceMessage): New function. Overload.
  13900. (createKeepAliveMessage): New function. Overload.
  13901. * src/PeerMessageUtil.cc
  13902. (createChokeMessage): New function. Overload.
  13903. (createUnchokeMessage): New function. Overload.
  13904. (createInterestedMessage): New function. Overload.
  13905. (createNotInterestedMessage): New function. Overload.
  13906. (createHaveMessage): New function. Overload.
  13907. (createBitfieldMessage): New function. Overload.
  13908. (createRequestMessage): New function. Overload.
  13909. (createCancelMessage): New function. Overload.
  13910. (createPieceMessage): New function. Overload.
  13911. (createKeepAliveMessage): New function. Overload.
  13912. * src/SendMessageQueue.cc
  13913. (createRequestMessage): Use PeerMessageUtil.
  13914. (createCancelMessage): Use PeerMessageUtil.
  13915. (createPieceMessage): Use PeerMessageUtil.
  13916. (createHaveMessage): Use PeerMessageUtil.
  13917. (createChokeMessage): Use PeerMessageUtil.
  13918. (createUnchokeMessage): Use PeerMessageUtil.
  13919. (createInterestedMessage): Use PeerMessageUtil.
  13920. (createNotInterestedMessage): Use PeerMessageUtil.
  13921. (createBitfieldMessage): Use PeerMessageUtil.
  13922. (createKeepAliveMessage): Use PeerMessageUtil.
  13923. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13924. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13925. * src/PeerInteraction.h: New class.
  13926. * src/PeerInteraction.cc: New class.
  13927. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13928. Each peer message has its own class.
  13929. * src/PendingMessages.h: Removed.
  13930. * src/PendingMessages.cc: Removed. The sending process was moved to
  13931. each message class.
  13932. * src/RequestSlotMan.h: Removed.
  13933. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13934. SendMessageQueue.
  13935. * src/RequestMessage.h: New class.
  13936. * src/RequestMessage.cc: New class.
  13937. * src/CancelMessage.h: New class.
  13938. * src/CancelMessage.cc: New class.
  13939. * src/BitfieldMessage.h: New class.
  13940. * src/BitfieldMessage.cc: New class.
  13941. * src/ChokeMessage.h: New class.
  13942. * src/ChokeMessage.cc: New class.
  13943. * src/KeepAliveMessage.h: New class.
  13944. * src/KeepAliveMessage.cc: New class.
  13945. * src/PortMessage.h: New class.
  13946. * src/UnchokeMessage.h: New class.
  13947. * src/UnchokeMessage.cc: New class.
  13948. * src/PieceMessage.h: New class.
  13949. * src/PieceMessage.cc: New class.
  13950. * src/HaveMessage.h: New class.
  13951. * src/HaveMessage.cc: New class.
  13952. * src/BitfieldMessage.h: New class.
  13953. * src/BitfieldMessage.cc: New class.
  13954. * src/NotInterestedMessage.h: New class.
  13955. * src/NotInterestedMessage.cc: New class.
  13956. * src/InterestedMessage.h: New class.
  13957. * src/InterestedMessage.cc: New class.
  13958. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13959. (getSendMessageQueue): New function.
  13960. (setSendMessageQueue): New function.
  13961. * src/HandshakeMessage.cc: New class.
  13962. * src/PeerConnection.h (receiveMessage): Changed return value and
  13963. arguments.
  13964. (receiveHandshake): Changed return value and arguments.
  13965. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13966. here.
  13967. (receiveHandshake): Do not create handshake class here.
  13968. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13969. (piece): Removed.
  13970. (syncPiece): Removed.
  13971. (sendInterest): Removed.
  13972. (sendMessages): Removed.
  13973. (createRequestPendingMessage): Removed.
  13974. (checkPieceHash): Removed.
  13975. (erasePieceOnDisk): Removed.
  13976. (getNewPieceAndSendInterest): Removed.
  13977. (onGotNewPice): Removed.
  13978. (onGotWrongPiece): Removed.
  13979. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13980. Removed peerConnection, piece.
  13981. (~PeerInteractionCommand): Removed peerConnection.
  13982. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13983. (syncPiece): Moved to SendMessageQueue.
  13984. (decideChoking): Removed PendingMessage.
  13985. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13986. The action after receiving peer message was moved to each message
  13987. class.
  13988. (onGotNewPice): Moved to SendMessageQueue.
  13989. (onGotWrongPiece): Moved to SendMessageQueue.
  13990. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13991. (sendInterest): Moved to SendMessageQueue.
  13992. (createRequestPendingMessage): Removed.
  13993. (sendMessages): Moved to SendMessageQueue.
  13994. (onAbort): Use SendMessageQueue::abortPiece()
  13995. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13996. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13997. (checkPieceHash): Moved to SendMessageQueue.
  13998. (erasePieceOnDisk): Moved to SendMessageQueue.
  13999. * src/PeerMessageUtil.h
  14000. (createBitfieldMessage): Removed.
  14001. (createHaveMessage): Changed return value and arguments.
  14002. (createBitfieldMessage): Changed return value and arguments.
  14003. (createRequestCancelMessage): Removed.
  14004. (createPieceMessage): Changed return value and arguments.
  14005. (getShortIntParam): New function.
  14006. (checkIndex): Changed arguments.
  14007. (checkBegin): Changed arguments.
  14008. (checkLength): Changed arguments.
  14009. (checkPieceOffset): Removed.
  14010. (checkRange): New function.
  14011. (checkBitfield): Changed arguments.
  14012. (createPeerMessage): Removed.
  14013. (checkIntegrity): Removed.
  14014. (createHandshakeMessage): Changed arguments.
  14015. (createChokeMessage): New function.
  14016. (createUnchokeMessage): New function.
  14017. (createInterestedMessage): New function.
  14018. (createNotInterestedMessage): New function.
  14019. (createRequestMessage): New function.
  14020. (createCancelMessage): New function.
  14021. (createPortMessage): New function.
  14022. * src/PeerMessageUtil.cc
  14023. (createBitfieldMessage): Removed.
  14024. (createHaveMessage): Changed return value and arguments.
  14025. (createBitfieldMessage): Changed return value and arguments.
  14026. (createRequestCancelMessage): Removed.
  14027. (createPieceMessage): Changed return value and arguments.
  14028. (getShortIntParam): New function.
  14029. (checkIndex): Changed arguments.
  14030. (checkBegin): Changed arguments.
  14031. (checkLength): Changed arguments.
  14032. (checkPieceOffset): Removed.
  14033. (checkRange): New function.
  14034. (checkBitfield): Changed arguments.
  14035. (createPeerMessage): Removed.
  14036. (checkIntegrity): Removed.
  14037. (createHandshakeMessage): Changed arguments.
  14038. (createChokeMessage): New function.
  14039. (createUnchokeMessage): New function.
  14040. (createInterestedMessage): New function.
  14041. (createNotInterestedMessage): New function.
  14042. (createRequestMessage): New function.
  14043. (createCancelMessage): New function.
  14044. (createPortMessage): New function.
  14045. * src/PeerMessage.h
  14046. (id): Removed.
  14047. (index): Removed.
  14048. (begin): Removed.
  14049. (length): Removed.
  14050. (bitfield): Removed.
  14051. (bitfieldLength): Removed.
  14052. (block): Removed.
  14053. (blockLength): Removed.
  14054. (inProgress): New variable.
  14055. (cuid): New variable.
  14056. (peer): New variable.
  14057. (sendMessageQueue): New variable.
  14058. (logger): New variable.
  14059. (setBitfield): Removed.
  14060. (getBitfield): Removed.
  14061. (setBlock): Removed.
  14062. (getBlock): Removed.
  14063. (getBitfieldLength): Removed.
  14064. (getBlockLength): Removed.
  14065. (isInProgress): New function.
  14066. (toString): Made pure virtual.
  14067. (check): New function.
  14068. (send): New function.
  14069. (receivedAction): New function.
  14070. (getId): Made pure virtual.
  14071. (setId): Removed.
  14072. (getIndex): Removed.
  14073. (setIndex): Removed.
  14074. (getBegin): Removed.
  14075. (setBegin): Removed.
  14076. (getLength): Removed.
  14077. (setLength): Removed.
  14078. (getCuid): New function.
  14079. (setCuid): New function.
  14080. (getPeer): New function.
  14081. (setPeer): New function.
  14082. (getSendMessageQueue): New function.
  14083. (setSendMessageQueue): New function.
  14084. (ID): Removed.
  14085. * src/PeerMessage.cc
  14086. (setBitfield): Removed.
  14087. (setBlock): Removed.
  14088. (toString): Removed.
  14089. * src/TorrentMan.h
  14090. (getPieceLength): New function.
  14091. (getPieceLength): New function.
  14092. * src/SendMessageQueue.h
  14093. (REQUEST_TIME_OUT): New definition.
  14094. (RequestSlots): New definition.
  14095. (MessageQueue): New definition.
  14096. (requestSlotMan): Removed.
  14097. (pendingMessages): Removed.
  14098. (requestSlots): New variable.
  14099. (messageQueue): New variable.
  14100. (torrentMan): New variable.
  14101. (peerConnection): New variable.
  14102. (peer): New variable.
  14103. (piece): New variable.
  14104. (getNewPieceAndSendInterest): New function.
  14105. (createPeerMessage): New function.
  14106. (createHandshakeMessage): New function.
  14107. (send): Made private.
  14108. (setPeerMessageCommonProperty): New function.
  14109. (deleteAllRequestSlot): New function.
  14110. (deleteRequestMessageInQueue): New function.
  14111. (cancelAllRequest): Made private.
  14112. (cancelAllRequest): Made private.
  14113. (countRequestSlot): Made private.
  14114. (addPendingMessage): Removed.
  14115. (deletePendingPieceMessage): Removed.
  14116. (deletePendingRequestMessage): Removed.
  14117. (addMessage): New function.
  14118. (deletePieceMessageInQueue): New function.
  14119. (deleteTimeoutRequestSlot): Changed argument.
  14120. (deleteCompletedRequestSlot): Changed argument.
  14121. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  14122. (getCorrespondingRequestSlot): New function.
  14123. (countPendingMessage): Removed.
  14124. (countMessageInQueue): New function.
  14125. (getTorrentMan): New function.
  14126. (getPeerConnection): New function.
  14127. (hasDownloadPiece): New function.
  14128. (getDownloadPiece): New function.
  14129. (setDownloadPiece): New function.
  14130. (syncPiece): New function.
  14131. (sendMessages): New function.
  14132. (sendNow): New function.
  14133. (trySendNow): New function.
  14134. (abortPiece): New function.
  14135. (sendHandshake): New function.
  14136. (receiveMessage): New function.
  14137. (receiveHandshake): New function.
  14138. (createRequestMessage): New function.
  14139. (createCancelMessage): New function.
  14140. (createPieceMessage): New function.
  14141. (createHaveMessage): New function.
  14142. (createChokeMessage): New function.
  14143. (createUnchokeMessage): New function.
  14144. (createInterestedMessage): New function.
  14145. (createNotInterestedMessage): New function.
  14146. (createBitfieldMessage): New function.
  14147. (createKeepAliveMessage): New function.
  14148. * src/SendMessageQueue.cc
  14149. (SendMessageQueue): Removed requestSlotMan.
  14150. Instantiated peerConnection here.
  14151. (~SendMessageQueue): Removed requestSlotMan.
  14152. Added deletion of peerConnection and the contents of messageQueue.
  14153. (send): Updated according to the change of messageQueue.
  14154. (addPendingMessage): Renamed to addMessage.
  14155. (addMessage): New function.
  14156. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  14157. (deletePieceMessageInQueue): New function.
  14158. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  14159. (deleteRequestMessageInQueue): New function.
  14160. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  14161. here.
  14162. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  14163. (...) was moved here.
  14164. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  14165. moved here.
  14166. (deleteCompletedRequestSlot):
  14167. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  14168. (getCorrespondingRequestSlot):
  14169. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  14170. And renamed to getCorrespondingRequestSlot, correcting a typo.
  14171. (countPendingMessage): Renamed to countMessageInQueue.
  14172. (countMessageInQueue): New function.
  14173. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  14174. (receiveHandshake): New function.
  14175. (createHandshakeMessage): New function.
  14176. (receiveMessage): New function.
  14177. (createPeerMessage): New function.
  14178. (syncPiece): New function.
  14179. (getNewPieceAndSendInterest): New function.
  14180. (sendMessages): New function.
  14181. (sendNow): New function.
  14182. (trySendNow): New function.
  14183. (sendHandshake): New function.
  14184. (abortPiece): New function.
  14185. (getDownloadPiece): New function.
  14186. (getPeerMessageCommonProperty): New function.
  14187. (createRequestMessage): New function.
  14188. (createCancelMessage): New function.
  14189. (createPieceMessage): New function.
  14190. (createHaveMessage): New function.
  14191. (createChokeMessage): New function.
  14192. (createUnchokeMessage): New function.
  14193. (createInterestedMessage): New function.
  14194. (createNotInterestedMessage): New function.
  14195. (createBitfieldMessage): New function.
  14196. (createKeepAliveMessage): New function.
  14197. To add simple Content-Disposition support:
  14198. * src/HttpResponseCommand.h (determinFilename): New function.
  14199. * src/HttpResponseCommand.cc (executeInternal):
  14200. Use determinFilename(headers) instead of req->getFile() when comparing
  14201. filename.
  14202. (determinFilename): New function.
  14203. (handleDefaultEncoding): Use determinFilename(headers) instead of
  14204. req->getFile().
  14205. (handleOtherEncoding): Use determinFilename(headers) instead of
  14206. req->getFile().
  14207. * src/Util.h (getContentDispositionFilename): New function.
  14208. * src/Util.cc (getContentDispositionFilename): New function.
  14209. * src/LogFactory.h (release): New function.
  14210. * src/LogFactory.cc (release): New function.
  14211. To fix a bug that causes out-of-bound exception when HTTP status
  14212. line is wrong:
  14213. * src/HttpConnection.cc (receiveResponse): Added a check for header
  14214. size.
  14215. * src/common.h (Deleter): New class.
  14216. * src/SegmentMan.cc
  14217. (~SegmentMan): Added deletion of splitter and diskWriter.
  14218. * src/DownloadEngine.h
  14219. (Commands): Use deque.
  14220. (clearQueue): New function.
  14221. * src/DownloadEngine.cc
  14222. (~DownloadEngine): Added deletion of segmentMan.
  14223. (cleanQueue): New function.
  14224. * src/TorrentDownloadEngine.h
  14225. (TorrentDownloadEngine): The implementation was moved to
  14226. TorrentDownloadEngine.cc.
  14227. (~TorrentDownloadEngine): The implementation was moved to
  14228. TorrentDownloadEngine.cc.
  14229. * src/TorrentDownloadEngine.cc
  14230. (~TorrentDownloadEngine): Added deletion of torrentMan.
  14231. * src/main.cc
  14232. (clearRequest): Removed.
  14233. (handler): Added deletion of e.
  14234. (torrentHandler): Added deletion of te.
  14235. (main): Do not share splitter.
  14236. Use Deleter instead of clearRequest.
  14237. Deletion of classes were updated.
  14238. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14239. * src/main.cc (main): Fixed typo.
  14240. * src/message.h: Fixed typo.
  14241. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  14242. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14243. To add --select-file command-line option:
  14244. * src/Util.cc
  14245. (unfoldRange): New function.
  14246. (getNum): New function.
  14247. (unfoldSubRange): New function
  14248. * src/main.cc
  14249. (showUsage): Added help message.
  14250. (main): Added --select-file command-line option. Updated the layout of
  14251. file listing.
  14252. * src/common.h
  14253. (Integers): New definition.
  14254. * src/SocketCore.cc
  14255. (writeData): Removed timeout argument.
  14256. (readData): Removed timeout argument.
  14257. (peekData): Removed timeout argument.
  14258. * src/Socket.cc
  14259. (writeData): Removed timeout argument.
  14260. (readData): Removed timeout argument.
  14261. (peekData): Removed timeout argument.
  14262. * Release 0.4.1
  14263. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14264. To deploy upload rate based choking algorithm:
  14265. * src/PeerInteractionCommand.cc
  14266. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  14267. peer currently used.
  14268. (decideChoking): Deleted the choke/unchoke decision algorithm when
  14269. download completes. Simplified.
  14270. (receiveMessage): Updated.
  14271. * src/TorrentMan.h
  14272. (activePeers): New variable.
  14273. (addActivePeer): New function.
  14274. (getActivePeers): New function.
  14275. (deleteActivePeer): New function.
  14276. * src/TorrentMan.cc
  14277. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  14278. * src/PeerAbstractCommand.cc
  14279. (onAbort): Use peer->resetStatus().
  14280. * src/main.cc
  14281. (PeerChokeCommand.h): Included.
  14282. (main): Added the instance of ChokingCommand to the command queue.
  14283. * src/Peer.h
  14284. (amChoking): Renamed from amChocking
  14285. (chokingRequired): New variable.
  14286. (optUnchoking): New variable.
  14287. (deltaUpload): New variable.
  14288. (deltaDownload): New variable.
  14289. (addDeltaUpload): New function.
  14290. (resetDeltaUpload): New function.
  14291. (addDeltaDownload): New function.
  14292. (resetDeltaDownload): New function.
  14293. (addPeerUpload): Added a call to addDeltaUpload.
  14294. (addPeerDownload): Added a call to addDeltaDownload.
  14295. * src/Peer.cc
  14296. (shouldBeChoking): Renamed from shouldChoke.
  14297. (resetStatus): New function.
  14298. * src/PeerChokeCommand.h: New class.
  14299. * src/PeerChokeCommand.cc: New class.
  14300. To add lazy upload speed limiter:
  14301. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  14302. statistics calculation to TorrentDownloadEngine.
  14303. * src/TorrentConsoleDownloadEngine.cc
  14304. (sendStatistics): Renamed from printStatistics.
  14305. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  14306. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  14307. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  14308. * src/TorrentDownloadEngine.h: Added the variables for statistics
  14309. calculation.
  14310. (sendStatistics): New function as pure virtual function.
  14311. (getUploadSpeed): New function.
  14312. * src/TorrentDownloadEngine.cc
  14313. (initStatistics): New function.
  14314. (calculateSpeed): New function.
  14315. (calculateStatistics): New function.
  14316. * src/SendMessageQueue.h
  14317. (uploadLength): New variable.
  14318. (send): Added an argument.
  14319. (setUploadLimit): New function.
  14320. (getUploadLimit): New function.
  14321. * src/SendMessageQueue.cc
  14322. (send): Added upload speed limiter.
  14323. * src/prefs.h
  14324. (PREF_UPLOAD_LIMIT): New definition.
  14325. * src/PeerInteractionCommand.cc
  14326. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  14327. * src/main.cc
  14328. (main): Added --upload-limit option
  14329. For bug fixes:
  14330. * src/main.cc
  14331. (showUsage): Corrected --listen-port help
  14332. Other changes:
  14333. * src/TorrentMan.cc
  14334. (getPeer): Return nullPeer if connection is grather than
  14335. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  14336. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14337. To add some useful information to the exception message:
  14338. * src/SocketCore.cc : Updated messages.
  14339. * src/SegmentMan.cc :
  14340. * src/TorrentMan.cc : Updated messages.
  14341. * src/MultiDiskWriter.cc : Updated messages.
  14342. * src/Util.cc : Updated messages.
  14343. * src/AbstractDiskWriter.cc : Updated messages.
  14344. * src/PreAllocationDiskWriter.cc : Updated messages.
  14345. * src/message.cc : Added new messages. Updated some messages.
  14346. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  14347. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  14348. Updated threshold from 30 to 15.
  14349. * src/AbstractDiskWriter.h (filename): New variable.
  14350. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  14351. (createFile): Assigned filename.
  14352. * src/main.cc: Updated the help message for http-auth-scheme.
  14353. * Release 0.4.0
  14354. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14355. To add TrackerUpdateCommand with which replaces
  14356. CompactTrackerResponseProcessor:
  14357. * src/TrackerWatcherCommand.h (req): Removed.
  14358. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  14359. if the number of peer connections are less than 30.
  14360. * src/ByteArrayDiskWriter.h (readData): Implemented.
  14361. * src/SegmentMan.h (diskWriter): New function.
  14362. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  14363. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  14364. (main): Use TrackerUpdateCommand.
  14365. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  14366. (req): New variable.
  14367. (setTrackerResponseProcessor): Removed.
  14368. (getTrackerResponseProcessor): Removed.
  14369. (processTrackerResponse): Removed.
  14370. * src/DownloadEngine.h (diskWriter): Removed.
  14371. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  14372. to torrentMan->processTrackerResponse().
  14373. To add Util::expandBuffer:
  14374. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  14375. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  14376. * src/Util.h (expandBuffer): New function.
  14377. To fix the bug that causes segmentation fault when "-l ." is specified
  14378. in command-line option:
  14379. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  14380. (openFile): New function.
  14381. (closeFile): New function.
  14382. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  14383. (~SimpleLogger): Call closeFile();
  14384. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  14385. * src/main.cc (main): Added a check to see logger is configured
  14386. properly.
  14387. To enable HTTP authentication without specifying "--http-auth-scheme"
  14388. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  14389. * src/HttpConnection.cc (createRequest): Send Authorization header
  14390. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  14391. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  14392. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  14393. * src/Peer.cc (shouldChoke): Updated algorithm.
  14394. * src/message.h (EX_AUTH_FAILED): New definition.
  14395. (EX_FILE_OPEN): New definition.
  14396. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  14397. if status == 401.
  14398. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  14399. if req->isTorrent == true.
  14400. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  14401. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  14402. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  14403. (createFile): Updated message.
  14404. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14405. To add a readout of estimated remaining time to normal HTTP/FTP
  14406. downloads:
  14407. * src/ConsoleDownloadEngine.h (startup): New variable.
  14408. (startupLength): New variable.
  14409. (isStartupLengthSet): New variable.
  14410. (avgSpeed): New variable.
  14411. (eta): New variable.
  14412. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  14413. estimated remaining time.
  14414. (initStatistics): Initialized newly added variables.
  14415. (calculateStatistics): Calculate average speed and estimated remaining
  14416. time.
  14417. To decouple TorrentDownloadEngine from HttpResponseCommand:
  14418. * src/TrackerDownloadCommand.h: Removed.
  14419. * src/TrackerDownloadCommand.cc: Removed.
  14420. * src/TrackerInitCommand.h: Removed.
  14421. * src/TrackerInitCommand.cc: Removed.
  14422. * src/TrackerUpdateCommand.h: Removed.
  14423. * src/TrackerUpdateCommand.cc: Removed.
  14424. * src/TrackerWatcherCommand.cc (execute): The construction of request
  14425. url written in TrackerInitCommand was moved here. Do not create
  14426. tracker request command if torrentMan->trackers != 0.
  14427. * src/CompactTrackerResponseProcessor.h: New class.
  14428. * src/CompactTrackerResponseProcessor.cc: New class.
  14429. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  14430. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  14431. Decoupled TorrentDownloadEngine from this.
  14432. * src/SegmentMan.h (init): New function.
  14433. * src/SegmentMan.cc (init): New function.
  14434. * src/TorrentMan.h (responseProcessor): New variable.
  14435. (trackers): New variable.
  14436. (setTrackerResponseProcessor): New function.
  14437. (getTrackerResponseProcessor): New function.
  14438. (processTrackerResponse): New function.
  14439. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  14440. (processTrackerResponse): New function.
  14441. * src/main.cc (main): Use ByteArrayDiskWriter and
  14442. CompactTrackerResponseProcessor.
  14443. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  14444. processTrackerResponse().
  14445. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  14446. readout.
  14447. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  14448. which indicates download has completed.
  14449. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  14450. (closeFile): fd >= 0, not fd > 0
  14451. * src/main.cc (main): Added short cut for show-files.
  14452. Added short cut for torrent-file.
  14453. Added new command-line option listen-port.
  14454. Updated i18n messages.
  14455. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14456. To add LogFactory which creates singleton logger:
  14457. * src/LogFactory.h: New class.
  14458. * src/LogFactory.cc: New class.
  14459. * src/Command.h (logger): New variable.
  14460. (Constructor): Use LogFactory.
  14461. * src/AbstractCommand.cc: Use Command::logger
  14462. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  14463. Use LogFactory.
  14464. * src/SegmentSplitter.h : Made logger protected.
  14465. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  14466. * src/SegmentMan.cc (Constructor): Use LogFactory.
  14467. * src/DownloadEngine.h : Made logger protected.
  14468. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  14469. * src/PeerInteractionCommand.cc : Use Command::logger.
  14470. * src/HttpResponseCommand.cc : Use Command::logger.
  14471. * src/SegmentMan.h : Made logger private.
  14472. * src/TorrentMan.h : Made logger private.
  14473. * src/TorrentMan.cc : Use LogFactory.
  14474. * src/FtpNegotiateCommand.cc : Use Command::logger.
  14475. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  14476. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  14477. Use LogFactory.
  14478. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  14479. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  14480. Use LogFactory.
  14481. * src/DownloadCommand.cc : Use Command::logger.
  14482. * src/PeerAbstractCommand.cc : Use Command::logger.
  14483. * src/PeerListenCommand.cc : Use Command::logger.
  14484. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  14485. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  14486. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  14487. * src/TrackerWatcherCommand.cc : Use Command::logger.
  14488. * src/TrackerUpdateCommand.cc : Use Command::logger.
  14489. * src/TrackerDownloadCommand.cc : Use Command::logger.
  14490. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  14491. Use LogFactory.
  14492. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  14493. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  14494. Use LogFactory.
  14495. * src/main.cc (main): Use LogFactory.
  14496. * src/DiskAdaptor.h (logger): New variable.
  14497. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  14498. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  14499. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14500. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  14501. parameter to a tracker request.
  14502. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  14503. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  14504. * src/main.cc (setSignalHander): New function.
  14505. (main): Added a handler for SIGTERM.
  14506. (handler): Updated message.
  14507. (torrentHandler): Updated message.
  14508. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14509. * src/TorrentConsoleDownloadEngine.cc
  14510. (onPartialDownloadingCompletes): Renamed as
  14511. onSelectiveDownloadingCompletes.
  14512. (onSelectiveDownloadingCompletes): Updated message.
  14513. To add DiskAdaptor which abstract DiskWriter family:
  14514. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  14515. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  14516. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  14517. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  14518. MultiDiskAdaptor.h.
  14519. (readFileEntry): Changed its arguments.
  14520. (setup): setupDiskWriter is merged into this function.
  14521. (setupDiskWriter): Removed.
  14522. (setFileFilter): New function.
  14523. (readFileEntryFromMetaInfoFile): Updated according to the changes
  14524. made in readFileEntry.
  14525. (getFilePath): Removed.
  14526. (getTempFilePath): Removed.
  14527. (getSegmentFilePath): Updated due to the removal of getFilePath.
  14528. (fixFilename): Removed.
  14529. (copySingleFile): Removed.
  14530. (splitMultiFile): Removed.
  14531. (deleteTempFile): Removed.
  14532. (setFileEntriesToDownload): Removed.
  14533. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  14534. (isSelectiveDownloadingMode): New function.
  14535. (setAllMultiFileRequestedState): Removed.
  14536. (finishPartialDownloadingMode): Renamed as
  14537. finishSelectiveDownloadingMode.
  14538. (finishSelectiveDownloadingMode): New function.
  14539. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  14540. (getSelectedTotalLength): New function.
  14541. (onDownloadComplete): Use diskAdaptor.
  14542. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  14543. (Range): Removed.
  14544. (setMultiFileEntries): Renamed as setFileEntries.
  14545. (setFileEntries): New function.
  14546. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  14547. (pieceLength): New variable.
  14548. * src/main.cc (printDownloadCompeleteMessage): New function.
  14549. (torrentHandler): Use diskAdaptor instead of diskWriter.
  14550. (main): Renamed torrent-show-files to show-files.
  14551. Rewritten file contents listing.
  14552. * src/TorrentMan.h (FileEntry): Removed.
  14553. (multiFileTopDir): Removed.
  14554. (multiFileEntries): Removed.
  14555. (diskWriter): Removed.
  14556. (diskAdaptor): New variable.
  14557. * src/DefaultDiskWriter.h (totalLength): New variable.
  14558. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  14559. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  14560. diskWriter.
  14561. * src/TorrentConsoleDownloadEngine.h
  14562. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  14563. (partialTotalLength): Renamed as selectedTotalLength.
  14564. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  14565. openExistingFile, otherwise call initAndOpenFile.
  14566. (closeFile): fd > 0, not fd != 0.
  14567. * src/DirectDiskAdaptor.h: New class.
  14568. * src/DirectDiskAdaptor.cc: New class.
  14569. * src/MultiDiskAdaptor.h: New class.
  14570. * src/MultiDiskAdaptor.cc: New class.
  14571. * src/CopyDiskAdaptor.h: New class.
  14572. * src/CopyDiskAdaptor.cc: New class.
  14573. * src/DiskAdaptor.h: New class.
  14574. * src/DiskAdaptor.cc: New class.
  14575. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  14576. (PREF_SHOW_FILES): New definition.
  14577. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14578. To add the ability to download multi torrent into respective files
  14579. directly:
  14580. * src/DiskWriter.h (openFile): New function.
  14581. (seek): Removed.
  14582. * src/MultiDiskWriter.h: New class.
  14583. * src/MultiDiskWriter.cc: New class.
  14584. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  14585. protected.
  14586. (openFile): New function.
  14587. * src/AbstractDiskWriter.cc (openFile): New function.
  14588. * src/prefs.h (V_FALSE): New definition.
  14589. (PREF_DIRECT_FILE_MAPPING): New definition.
  14590. * src/TorrentMan.h (setupDiskWriter): New function.
  14591. (setAllMultiFileRequestedState): New function.
  14592. (onDownloadComplete): New function.
  14593. * src/TorrentMan.cc : Included MultiDiskWriter.h
  14594. (setupDiskWriter): New function.
  14595. (getFilePath): Updated.
  14596. (getTempFilePath): Updated.
  14597. (getSegmentFilePath): Updated.
  14598. (fixFilename): Updated.
  14599. (deleteTempFile): Updated.
  14600. (setAllMultiFileRequestedState): New function.
  14601. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  14602. (finishPartialDownloadingMode): Reset requested flags.
  14603. (onDownloadComplete): New function.
  14604. * src/main.cc: Added --direct-file-mapping option.
  14605. Use TorrentMan::setupDiskWriter().
  14606. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  14607. onDownloadComplete().
  14608. To fix ETA bug:
  14609. * src/Util.h (difftvsec): New function.
  14610. * src/Util.cc (difftvsec): New function.
  14611. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  14612. type of "elapsed" instead of long long int.
  14613. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  14614. The updates of statistics takes place every 1 seconds.
  14615. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  14616. (calculateSpeed): Changed its argument signature.
  14617. * src/PeerMessage.cc (toString): Fixed message.
  14618. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14619. To print ETA:
  14620. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  14621. completion handling when dealing with
  14622. TorrentMan::isPartialDownloadingMode() == true.
  14623. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  14624. New function.
  14625. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  14626. (sessionDownloadLength): New variable.
  14627. (avgSpeed): New variable.
  14628. (eta): New variable.
  14629. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  14630. new variables: eta, avgSpeed, startup.
  14631. (calculateSpeed): Calculate average speed and ETA.
  14632. (printStatistics): Added ETA.
  14633. * src/Util.h (secfmt): New function.
  14634. * src/Util.cc (secfmt): New function.
  14635. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14636. To detect "keep alive" flooding:
  14637. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  14638. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  14639. variable: keepAliveCount.
  14640. (detectMessageFlooding): Added "keep alive" flooding detection.
  14641. (receiveMessage): Increase keepAliveCount when "keep alive" message
  14642. received.
  14643. To add the ability to download only specified files in multi-file
  14644. torrent:
  14645. * src/BitfieldMan.h (filterBitfield): New variable.
  14646. (filterEnabled): New variable.
  14647. (setFilterBit): New function.
  14648. (enableFilter): New function.
  14649. (disableFilter): New function.
  14650. (isFilterEnabled): New function.
  14651. (getFilteredTotalLength): New function.
  14652. (getCompletedLength): New function.
  14653. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  14654. filterBitfield, filterEnabled.
  14655. (CopyConstructor): Added filterBitfield and filterEnabled.
  14656. (operator==): Added filterBitfield and filterEnabled.
  14657. (Destructor): Added filterBitfield.
  14658. (getMissingIndex): Use filterBitfield.
  14659. (getMissingUnusedIndex): Use filterBitfield.
  14660. (getFirstMissingUnusedIndex): Use filterBitfield.
  14661. (getFirstMissingUnusedIndex): Use filterBitfield.
  14662. (getAllMissingIndexes): Use filterBitfield.
  14663. (countMissingBlock): Use filterBitfield.
  14664. (countBlock): Use filterBitfield.
  14665. (setBitInternal): Added new argument on.
  14666. (setUseBit): Use setBitInternal.
  14667. (unsetUseBit): Use setBitInternal.
  14668. (setBit): Use setBitInternal.
  14669. (unsetBit): Use setBitInternal.
  14670. (isAllBitSet): Use filterBitfield.
  14671. (setFilterBit): New function.
  14672. (addFilter): New function.
  14673. (enableFilter): New function.
  14674. (disableFilter): New function.
  14675. (clearFilter): New function.
  14676. (isFilterEnabled): New function.
  14677. (getFilteredTotalLength): New function.
  14678. (getCompletedLength): New function.
  14679. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  14680. Initalized newly added variables.
  14681. [FileEntry](offset): New variable.
  14682. [FileEntry](extracted): New variable.
  14683. [FileEntry](requested): New variable.
  14684. (readFileEntry): New function.
  14685. (option): New variable.
  14686. (splitMultiFile): Removed const qualifier.
  14687. (fixFilename): Removed const qualifier.
  14688. (readFileEntryFromMetaInfoFile): New function.
  14689. (finishPartialDownloadingMode): New function.
  14690. (isPartialDownloadingMode): New function.
  14691. (setFileEntriesToDownload): New function.
  14692. (getCompletedLength): New function.
  14693. (getPartialTotalLength): New function.
  14694. * src/TorrentMan.cc (readFileEntry): New function.
  14695. (setup): Use readFileEntry. If no-preallocation option is specified,
  14696. use DefaultDiskWriter.
  14697. (readFileEntryFromMetaInfoFile): New function.
  14698. (fixFilename): Removed const qualifier.
  14699. (splitMultiFile): Removed const qualifier.
  14700. (setFileEntriesToDownload): New function.
  14701. (isPartialDownloadingMode): New function.
  14702. (finishPartialDownloadingMode): New function.
  14703. (getCompletedLength): New function.
  14704. (getPartialTotalLength): New function.
  14705. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  14706. New variable.
  14707. (partialTotalLength): New variable.
  14708. (downloadLength): New variable.
  14709. (totalLength): New variable.
  14710. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  14711. Added log.
  14712. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  14713. partialTotalLength, downloadLength, totalLength.
  14714. (calculate): Calculate downloadLength and totalLength.
  14715. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  14716. * src/main.cc (addCommand): Changed argument signature.
  14717. (main): Added new variable: args. Added new option "torrent-show-files"
  14718. "no-preallocation". Usage is not updated yet.
  14719. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14720. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  14721. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14722. Attempt to add the ability to listing file entries in a .torrent file.
  14723. This feature is not yet complete.
  14724. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  14725. * src/TorrentMan.cc (getMultiFileEntries): New function.
  14726. (getName): New function.
  14727. * src/TorrentMan.h (getMultiFileEntries): New function.
  14728. (getName): New function.
  14729. * src/main.cc (main): Use above 2 funtion.
  14730. * Release 0.3.2
  14731. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14732. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  14733. (detectMessageFlooding): Updated threshold value.
  14734. (checkLongTimePeerChoking): Updated timeout value.
  14735. (getNewPieceAndSendInterest): Added debug log.
  14736. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  14737. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  14738. (getPeer): Updated.
  14739. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  14740. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  14741. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  14742. is localhost.
  14743. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  14744. * src/PendingMessage.cc (processMessage): Not to send piece message
  14745. if peer is not interested in the pieces localhost has.
  14746. * src/Peer.cc (shouldChoke): Updated.
  14747. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  14748. * src/Util.cc (isPowerOf): New function.
  14749. * src/Util.h (isPowerOf): New function.
  14750. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  14751. whether or not it is power of 2.
  14752. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14753. Added new class SendMessageQueue that includes PendingMessages and
  14754. RequestSlotMan.
  14755. * src/SendMessageQueue.h: New class.
  14756. * src/SendMessageQueue.cc: New class.
  14757. * src/PendingMessage.h: Added new member variable blockIndex and its
  14758. accessors.
  14759. (createRequestMessage): Updated.
  14760. * src/PendingMessage.cc (createRequestMessage): Updated.
  14761. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  14762. SendMessageQueue.
  14763. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  14764. (receiveMessage): Updated with SendMessageQueue.
  14765. (deletePendingPieceMessage): Removed.
  14766. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  14767. (sendInterest): Updated with SendMessageQueue.
  14768. (createRequestPendingMessage): Updated with SendMessageQueue.
  14769. (sendMessages): Updated with SendMessageQueue.
  14770. (onAbort): Updated with SendMessageQueue.
  14771. (keepAlive): Updated with SendMessageQueue.
  14772. (beforeSocketCheck): Updated SendMessageQueue.
  14773. * src/PeerInteractionCommand (sendMessages): Shuffle
  14774. missingBLockIndexes before using it.
  14775. Added its own timeout for peer connection.
  14776. * src/PeerAbstractCommand.h: Added member variable timeout and its
  14777. setter.
  14778. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  14779. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  14780. Added setTimeout() call.
  14781. (executeInternal): Added setTimeout() call.
  14782. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  14783. Added timeout.
  14784. (isTimeoutDetected): Updated.
  14785. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  14786. option.
  14787. Added *simple* message flooding checker.
  14788. * src/PeerInteractionCommand.cc (executeInternal):
  14789. Added detectMessageFlooding() call.
  14790. (detectMessageFlooding): New function.
  14791. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  14792. (beforeSocketCheck): Added detectMessageFlooding() call.
  14793. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  14794. chokeUnchokeCount, haveCount, detectMessageFlooding().
  14795. Removed deletePendingPieceMessage(), getRequestSlot(),
  14796. deleteRequestSlot(), deleteAllRequestSlot().
  14797. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  14798. Added checkLongTimePeerChoking() call.
  14799. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  14800. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  14801. if duplicate == false.
  14802. The parameter "uploaded" and "downloaded" in the tracker request are
  14803. the size since the client sent the "started" event to the tracker.
  14804. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  14805. uploaded size to preDownloadedSize, preUploadedSize respectively.
  14806. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  14807. getSessionDownloadedSize(), getSessionUploadedSize().
  14808. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  14809. getSessionUploadedSize() instead of getDownloadedSize(),
  14810. getUploadedSize().
  14811. * src/PendingMessage.cc (processMessage): Do not send request message
  14812. if the peer is choking the client.
  14813. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  14814. less than interval.
  14815. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14816. * configure.in: Added gnutls support. Added several CPP macros.
  14817. * m4/openssl.m4: Added.
  14818. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  14819. readData(), peekData(). Added gnutls support.
  14820. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  14821. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  14822. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14823. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14824. Instead, added a check for whether setup method has executed
  14825. successfully.
  14826. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14827. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14828. * src/Makefile.am: Updated.
  14829. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14830. using whether OpenSSL or gcrypt, depending on the result of configure
  14831. script.
  14832. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14833. messageDigest.h.
  14834. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14835. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14836. Fixed memory leak.
  14837. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14838. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14839. Removed instantiation of TrackerInitCommand. Instead,
  14840. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14841. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14842. ENABLE_SSL.
  14843. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14844. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14845. If a piece is already acquired by another command, delete the request
  14846. slots for the piece.
  14847. * src/TrackerUpdateCommand.cc (execute):
  14848. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14849. Added a check whether peer list is null.
  14850. Fixed the bug that causes sending completed event to the tracker
  14851. several times.
  14852. * src/TrackerInitCommand.cc (execute):
  14853. Fixed the bug that causes sending completed event to the tracker
  14854. several times.
  14855. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14856. by using messageDigest.h.
  14857. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14858. * PeerConnection.cc: Replaced log message "keep-alive" with
  14859. "keep alive".
  14860. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14861. localhost long time.
  14862. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14863. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14864. at most 100 failure entry from the list. If with duplicate = false,
  14865. MAX_PEER_LIST is not checked.
  14866. * PeerListenCommand.cc: Fixed the argument order of log message.
  14867. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14868. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14869. Added warn().
  14870. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14871. Implemented warn().
  14872. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14873. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14874. * Request.h: Added AFTER_COMPLETED event.
  14875. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14876. instead of downloaded size and progress(%) after download completes.
  14877. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14878. message to the peer if it is interested in what localhost has
  14879. downloaded.
  14880. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14881. destination instead of just renaming it.
  14882. * TorrentMan.cc: Added deleteTempFile().
  14883. * PeerAbstractCommand.cc: do not stop execution after download
  14884. completes. This makes localhost a seeder.
  14885. * Util.{h,cc}: Added fileCopy().
  14886. * PeerListenCommand.cc: do not stop execution after download completes.
  14887. This makes localhost a seeder.
  14888. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14889. Added TorrentMan::deleteTempFile() to torrentHandler.
  14890. Initialized the variable dir as ".".
  14891. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14892. Deleted renameSingleFile().
  14893. Added copySingleFile(), deleteTempFile().
  14894. * DownloadEngine.h: Added virtual function afterEachIteration().
  14895. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14896. in onEndOfRun() to afterEachIteration().
  14897. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14898. true.
  14899. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14900. In rangedFileCopy(), added try-catch block to properly close file
  14901. descriptors.
  14902. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14903. Added afterEachIteration(), isFilenameFixed().
  14904. * Peer.cc: Changed choking strategy.
  14905. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14906. * TrackerInitCommand.cc: Send completed event only once.
  14907. * DownloadEngine.cc: Added a call to afterEachIteration().
  14908. * TrackerUpdateCommand.cc: Do not stop execution after download
  14909. completes.
  14910. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14911. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14912. received from a tracker.
  14913. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14914. Decreased the number of failure peers to delete to 0(just comment out
  14915. the line).
  14916. * Release 0.3.1
  14917. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14918. * PeerInteractionCommand.cc: added a call to
  14919. TorrentMan::unadvertisePiece in Destructor.
  14920. * PeerInteractionCommand.cc: make have message sent immediately
  14921. if the size of pending message queue is zero.
  14922. * TorrentMan.cc: set the maximum size of peer list to 250.
  14923. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14924. to deque.
  14925. * Util.cc: fixed rangedFileCopy.
  14926. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14927. to Constructor. Also, moved digest cleanup to Destructor.
  14928. * MetaFileUtil.cc: fixed memory leak
  14929. * replaced std::vector with std::deque.
  14930. * AbstractCommand.cc: casted timeout value to long long int.
  14931. * ChunkedEncoding.cc: fixed memory leak.
  14932. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14933. * SleepCommand.cc: casted timeout value to long long int.
  14934. * Data.cc: fixed memory leak.
  14935. * Data.cc: fixed toLLInt().
  14936. * BitfieldMan.cc: fixed memory leak.
  14937. * TorrentMan.cc: initialized storeDir to ".".
  14938. * TorrentMan.cc: fixed memory leak.
  14939. * TorrentMan.cc: corrected file paths of splitted files.
  14940. * PeerAbstractCommand.cc: casted timeout to long long int.
  14941. * main.cc: added delete(req) and delete(te->diskWriter).
  14942. * RequestSlot.cc: casted timeout value to long long int.
  14943. * Request.cc: fixed memory leak.
  14944. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14945. have the piece.
  14946. * Peer.{h,cc}: added hasPiece(int index).
  14947. * main.cc: corrected addCommand.
  14948. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14949. * BitTorrent protocol support added.
  14950. * Release 0.3.0
  14951. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14952. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14953. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14954. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14955. decoding did not work properly.
  14956. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14957. * DownloadEngine.h: included sys/time.h
  14958. * DownloadEngine.cc: remove sys/time.h
  14959. * Makefile.am (SUBDIRS): Add intl.
  14960. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14961. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14962. * main.cc: correct help message for --http-auth-scheme.
  14963. * main.cc: changed e-mail address for bug reports.
  14964. * ja.po: added japanese translation.
  14965. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14966. * SimpleLogger.cc: flush log file instead of stdout.
  14967. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14968. * main.cc: Fixed command-line option: max-tries
  14969. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14970. does not equal to seg.sp.
  14971. * DownloadCommand.cc: If EOF is got from the server and the total size
  14972. of file is not zero, then throw DlRetryEx.
  14973. * main.cc: Set the minium value of min-segment-size to 1024.
  14974. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14975. fails because of a regression since 0.2.0 release.
  14976. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14977. * HttpConnection.cc:
  14978. * common.h: defined the user agent name as macro
  14979. * DownloadEngine.{h, cc}:
  14980. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14981. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14982. * main.cc: Download complete/abort message is now generated by main.
  14983. * Makefile.am (SUBDIRS): Add m4.
  14984. (ACLOCAL_AMFLAGS): New variable.
  14985. (EXTRA_DIST): New variable.
  14986. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14987. * gettext: added gettext functionality
  14988. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14989. * AbstractCommand.cc:
  14990. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14991. unregister its cuid from SegmentMan.
  14992. * DownloadEngine.cc: .aria2 file was written when a downloading
  14993. failed with errors.
  14994. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14995. Added "User-Agent" header to CONNECT proxy request.
  14996. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14997. properly.
  14998. * Logger.h:
  14999. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  15000. * ChunkedEncoding.cc: Added #include directive for strings.h
  15001. * Release 0.2.1
  15002. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15003. * Util.{h,cc}: added startsWith().
  15004. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  15005. Util::endsWith().
  15006. * SocketCore.cc: struct addrinfo is now zero-initialized.
  15007. * common.h: added #include directive of limit.h.
  15008. * DownloadEngine.cc: added #include directive of sys/time.h and
  15009. algorithm.
  15010. * Exception.h: added #include directive of stdio.h.
  15011. * AbstractCommand.h: added #include directive of sys/time.h.
  15012. * DownloadCommand.h: added #include directive of sys/time.h.
  15013. * *.h: added #include directive of common.h to all base classes.
  15014. subclasses' one was removed.
  15015. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  15016. does not define these macros.
  15017. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15018. * Release 0.2.0
  15019. * main.cc:
  15020. * HttpInitiateConnectionCommand.{h,cc}:
  15021. * prefs.h:
  15022. * HttpConnection.{h,cc}: added --http-proxy-method option.
  15023. We can now use GET command in http proxy.
  15024. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15025. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  15026. that splits slowest segment of SegmentMan::commands vector.
  15027. This is the default split algorithm of aria2.
  15028. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  15029. that splits first segment of SegmentMan::commands vector.
  15030. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  15031. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  15032. * Segment.h:
  15033. * SegmentMan.cc: Added speed field to Segment.h
  15034. * main.cc: -s option now affects all URLs in command-line arguemtns.
  15035. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  15036. * message.h: Change file size related %d to %lld.
  15037. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15038. * FtpInitiateConnectionCommand.{h,cc}:
  15039. * FtpNegotiationCommand.{h,cc}:
  15040. * FtpDownloadCommand.{h,cc}:
  15041. * FtpConnection.{h,cc}: Added FTP support
  15042. * SimpleLogger.cc: Log message now includes time information.
  15043. * main.cc: The value of --http-auth-scheme option is chagned from
  15044. 'BASIC' to 'basic'
  15045. * main.cc: Added --timeout command-line option.
  15046. * main.cc: Added --min-segment-size command-line option.
  15047. * main.cc: Added --max-retries command-line option.
  15048. * prefs.h: option string constants are now defined in prefs.h
  15049. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15050. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  15051. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  15052. with version 0.1.0's one.
  15053. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  15054. * configure.in: Added --enable-ssl option to configure script.
  15055. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  15056. cannot permit absoluteURI as Request-URI.
  15057. * HttpConnection.cc: Added Referer support.
  15058. * main.cc: Added referer command-line option.
  15059. * main.cc: Added rety-wait command-line option.
  15060. * Exception.h: Fixed formating bug in Exception::setMsg()
  15061. * SocketCore.{h,cc}:
  15062. * Socket.{h, cc}:
  15063. * Request.cc:
  15064. * InitiateConnectionCommandFactory.cc:
  15065. * HttpRequestCommand.cc: Added HTTPS support.
  15066. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  15067. for SocketCore.
  15068. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  15069. size is wrong
  15070. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  15071. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  15072. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  15073. * Release 0.1.0