ChangeLog 460 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375
  1. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Documented the default value of --check-certificate option in man
  3. page.
  4. * doc/aria2c.1.txt
  5. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Enabled --check-certificate by default. Added compile
  7. time(configure) option --with-ca-bundle to specify CA bundle.
  8. Warn if --check-certificate=true and --ca-certificate is not
  9. specified or loading CA certificate is failed.
  10. * configure.ac
  11. * src/MultiUrlRequestInfo.cc
  12. * src/OptionHandlerFactory.cc
  13. * src/message.h
  14. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Mentioned https tag in help option.
  16. * doc/aria2c.1.txt
  17. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Added `https' tag to help option category. Added https tag to
  19. --ca-certificate, --certificate, --check-certificate and
  20. --private-key option.
  21. * src/OptionHandlerFactory.cc
  22. * src/help_tags.h
  23. * src/option_processing.cc
  24. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Changed the package name from `aria2c' to `aria2' in order to fix
  26. the packaging issue in Debian and Fedora. The name of the
  27. executable is not changed.
  28. * configure.ac
  29. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  30. Fixed typos
  31. * src/usage_text.h
  32. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  33. Fixed typos and updated doc.
  34. * README
  35. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  36. Fixed typos
  37. * doc/aria2c.1.txt
  38. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. Fixed typos
  40. * src/usage_text.h
  41. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Print a message when no files to download.
  43. * src/download_helper.cc
  44. * src/main.cc
  45. * src/message.h
  46. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. RFC3986 complied Percent-Encoding(urlencode).
  48. Use uppercase hexadecimal digits for encoded text instead of lowercase
  49. ones.
  50. * src/Request.cc
  51. * src/Util.cc
  52. * src/Util.h
  53. * test/BtHandshakeMessageTest.cc
  54. * test/DefaultBtAnnounceTest.cc
  55. * test/DefaultBtContextTest.cc
  56. * test/RequestTest.cc
  57. * test/UtilTest.cc
  58. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  59. Fixed the bug that prevents aria2 from downloading 0-length files
  60. via HTTP/FTP.
  61. * src/DefaultBtContext.cc
  62. * src/DefaultBtContext.h
  63. * src/DownloadContext.h
  64. * src/FtpNegotiationCommand.cc
  65. * src/HttpResponseCommand.cc
  66. * src/HttpResponseCommand.h
  67. * src/RequestGroup.cc
  68. * src/SingleFileDownloadContext.cc
  69. * src/SingleFileDownloadContext.h
  70. * test/BtPostDownloadHandlerTest.cc
  71. * test/MetalinkPostDownloadHandlerTest.cc
  72. * test/MockBtContext.h
  73. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  75. * src/option_processing.cc
  76. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  77. Applied aria2-1.0.1-mingw.patch.
  78. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  79. mingw.
  80. Collected 4th and 5th argument types for getsockopt and setsockopt.
  81. * src/SocketCore.cc
  82. * src/a2netcompat.h
  83. * test/SocketCoreTest.cc
  84. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  85. * Release 1.0.1
  86. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  87. Updated Ukrainian and Norwegian Nynorsk translations.
  88. Thanks to all translators.
  89. * po/nn.po
  90. * po/uk.po
  91. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  92. Don't show download result when -S option is used.
  93. * src/main.cc
  94. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  95. Bump up version number to 1.0.1
  96. * configure.ac
  97. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  98. Closed files after the test cases in MultiDiskWriterTest::
  99. testResetDiskWriterEntries(). This will fix the unit test error
  100. in mingw32 build.
  101. * test/MultiDiskWriterTest.cc
  102. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  103. Use HEAD method to get file size from HTTP server for segmented
  104. downloading.
  105. The request to the BitTorrent Tracker always uses GET method because
  106. the response of the tracker is small and it doesn't need segmented
  107. download.
  108. * src/FtpNegotiationCommand.cc
  109. * src/HttpRequest.cc
  110. * src/HttpResponseCommand.cc
  111. * src/HttpSkipResponseCommand.cc
  112. * src/RequestGroup.cc
  113. * src/RequestGroup.h
  114. * src/TrackerWatcherCommand.cc
  115. * test/HttpRequestTest.cc
  116. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  117. Fixed the bug that causes floating exception when -T option is used and
  118. no URIs are given.
  119. * src/download_helper.cc
  120. * test/DownloadHelperTest.cc
  121. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  122. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  123. errors in MinGW:
  124. Closed file after saving server stats (RequestGroupMan.cc)
  125. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  126. Ignored case & handled 2-digit years (strptime.c)
  127. Added missing suseconds_t definition (a2time.h)
  128. Fixed socket CLOSE() define (SocketCore.cc)
  129. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  130. Changed utime() test values from x000 to x00000 as MinGW failed on
  131. values less than timezone offset from Unix epoch
  132. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  133. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  134. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  135. handle negative dates (CookieParserTest.cc)
  136. * src/a2time.h
  137. * src/FtpConnection.cc
  138. * src/RequestGroupMan.cc
  139. * src/SocketCore.cc
  140. * src/strptime.c
  141. * test/CookieParserTest.cc
  142. * test/CopyDiskAdaptorTest.cc
  143. * test/FileTest.cc
  144. * test/FtpConnectionTest.cc
  145. * test/MultiDiskAdaptorTest.cc
  146. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  148. * doc/aria2c.1.txt
  149. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  150. * Release 1.0.0
  151. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Added '~' to reserved characters.
  153. * src/Util.cc
  154. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  155. Do not urlencode Request::url in setUrl() because we want unmodified
  156. URL using Request::getUrl()
  157. * src/Request.cc
  158. * src/Request.h
  159. * test/RequestTest.cc
  160. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  162. Thanks to all translators.
  163. * po/bg.po
  164. * po/fr.po
  165. * po/ja.po
  166. * po/ru.po
  167. * po/uk.po
  168. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  169. Bump up version number to 1.0.0
  170. * configure.ac
  171. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  172. Added nosqlite3 build to build_test.sh.
  173. Renamed noxml as expat.
  174. * build_test.sh
  175. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  176. Updated INPUT FILE section.
  177. * doc/aria2c.1.txt
  178. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  180. on big endian systems because test .aria2 files are made for little
  181. endian systems.
  182. * test/DefaultBtProgressInfoFileTest.cc
  183. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Dropped ares support.
  185. * README
  186. * configure.ac
  187. * m4/libares.m4: Removed.
  188. * src/AsyncNameResolver.cc
  189. * src/Makefile.am
  190. * test/Makefile.am
  191. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  192. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  193. Removed const qualifier from DiskWriter::size().
  194. * src/AbstractDiskWriter.cc
  195. * src/AbstractDiskWriter.h
  196. * src/ByteArrayDiskWriter.cc
  197. * src/ByteArrayDiskWriter.h
  198. * src/DiskWriter.h
  199. * test/ByteArrayDiskWriterTest.cc
  200. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  201. Fixed the bug that causes segmentation fault/bus error during executing
  202. choking algorithm while seeding. This is caused by improper
  203. implementation of compare function which returns inconsistent results
  204. depending on the timing of last unchoke.
  205. * src/BtSeederStateChoke.cc
  206. * src/BtSeederStateChoke.h
  207. * src/DefaultPeerStorage.cc
  208. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  209. Removed TODO
  210. * TODO
  211. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  212. Added a section that explains how to pass argument to options that
  213. takes optional arguments with its short form.
  214. * doc/aria2c.1.txt
  215. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  216. Added -u for the short form of --max-upload-limit option.
  217. * doc/aria2c.1.txt
  218. * src/option_processing.cc
  219. * src/usage_text.h
  220. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  221. Added -V for the short form of --check-integrity option.
  222. Now the argument of --check-integrity option is optional:
  223. if it is omitted, it is evaluated as true.
  224. * doc/aria2c.1.txt
  225. * src/option_processing.cc
  226. * src/usage_text.h
  227. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  228. Made the default value of --ftp-pasv option set to true and it can take
  229. true/false values.
  230. * src/OptionHandlerFactory.cc
  231. * src/option_processing.cc
  232. * src/usage_text.h
  233. * doc/aria2c.1.txt
  234. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Given custom random number generator to std::random_shuffle.
  236. * src/AnnounceList.cc
  237. * src/BtLeecherStateChoke.cc
  238. * src/BtSeederStateChoke.cc
  239. * src/DefaultBtRequestFactory.cc
  240. * src/MetalinkEntry.cc
  241. * src/RarestPieceSelector.cc
  242. * src/SimpleRandomizer.cc
  243. * src/SimpleRandomizer.h
  244. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  245. Now the default value of --enable-direct-io is true.
  246. * src/OptionHandlerFactory.cc
  247. * doc/aria2c.1.txt
  248. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Erase peer before executing onReturningPeer and onErasingPeer
  250. because choking algorithm called from onReturningPeer doesn't
  251. like erasing peer in the active peer list.
  252. * src/DefaultPeerStorage.cc
  253. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  254. Instead of creating special filename in createDownloadResult() if
  255. inMemoryDownload() is true, now it is done in getFilePath().
  256. * src/RequestGroup.cc
  257. * test/RequestGroupTest.cc
  258. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  259. Print "[MEMORY]" and filename if a file is not saved in disk and just
  260. processed in memory. This is the fix for previous comment out.
  261. * src/MemoryBufferPreDownloadHandler.cc
  262. * src/RequestGroup.cc
  263. * src/RequestGroup.h
  264. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  265. Commented out the code which sets virtual directory path "[MEMORY]"
  266. propagate directory to store to following RequestGroup.
  267. * src/MemoryBufferPreDownloadHandler.cc
  268. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Bump up version number to 1.0.0b
  270. * configure.ac
  271. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Added input_uris.txt to EXTRA_DIST
  273. * test/Makefile.am
  274. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  275. Removed PeerObject.h from Makefile.am
  276. * src/Makefile.am
  277. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  278. Avoid slow seeding
  279. * src/PeerInteractionCommand.cc
  280. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  281. Updated usage for -i option.
  282. * src/usage_text.h (TEXT_INPUT_FILE)
  283. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  284. Added INPUT FILE section to man page.
  285. Escaped fake URLs.
  286. * doc/aria2c.1.txt
  287. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Fixed wrong note position for -o option.
  289. * doc/aria2c.1.txt
  290. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Fixed compile error without SSL/XML library.
  292. * src/DefaultBtProgressInfoFile.cc
  293. * src/DefaultBtProgressInfoFile.h
  294. * src/FileMetalinkParserState.cc
  295. * src/RequestGroup.h
  296. * src/SocketCore.cc
  297. * src/SocketCore.h
  298. * src/VerificationMetalinkParserState.cc
  299. * src/download_helper.h
  300. * src/main.cc
  301. * test/DefaultBtProgressInfoFileTest.cc
  302. * test/DownloadHelperTest.cc
  303. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  304. Rewritten URI handling functions. They are now provided as a testable
  305. functions.
  306. * src/Makefile.am
  307. * src/RequestGroup.cc
  308. * src/RequestGroup.h
  309. * src/download_helper.cc
  310. * src/download_helper.h
  311. * src/main.cc
  312. * test/DownloadHelperTest.cc
  313. * test/Makefile.am
  314. * test/input_uris.txt
  315. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  316. Quickly terminate commands when ctrl-c is pressed.
  317. * src/DownloadEngine.cc
  318. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Quickly terminate idle commands when download finished.
  320. * src/AbstractCommand.cc
  321. * src/DownloadCommand.cc
  322. * src/DownloadEngine.cc
  323. * src/DownloadEngine.h
  324. * src/SleepCommand.cc
  325. * src/SleepCommand.h
  326. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Added the ability to specify output filename and directory in input
  328. file.
  329. Additional parameters are added in the following line of URIs
  330. with proceeding white space(s), 1 parameter in 1 line.
  331. The parameter names are the same with the command-line option name
  332. without proceeding "--". Not all the options are available here:
  333. at the moment, 'dir' and 'out' options are avialable.
  334. Please note that out option has no effect against Metalink or BitTorrent
  335. downloads.
  336. Example input file:
  337. http://host/foo-1.1.tar.bz2
  338. out=foo.tar.bz2
  339. dir=/tmp/downloads
  340. http://host/thundermonkey-2.0.tar.bz2
  341. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  342. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  343. thundermonkey-2.0.tar.bz2 is saved as
  344. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  345. * src/BtPostDownloadHandler.cc
  346. * src/Metalink2RequestGroup.cc
  347. * src/Metalink2RequestGroup.h
  348. * src/MetalinkPostDownloadHandler.cc
  349. * src/UriListParser.cc
  350. * src/UriListParser.h
  351. * src/main.cc
  352. * test/Metalink2RequestGroupTest.cc
  353. * test/UriListParserTest.cc
  354. * test/filelist1.txt
  355. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Fixed error when SSL library is not found.
  357. * configure.ac
  358. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Cross referenced among -s, -C and -j options.
  360. Updated usage of -C and -s options.
  361. * src/usage_text.h
  362. * doc/aria2c.1.txt
  363. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  364. Fixed bad cast in 32bit platforms.
  365. * test/DefaultPieceStorageTest.cc
  366. (DefaultPieceStorageTest::testGetCompletedLength)
  367. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Fixed unit test fails on 32bit platforms.
  369. * test/CookieParserTest.cc
  370. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Show an average download speed in Download results.
  372. * src/BtFileAllocationEntry.cc
  373. * src/DefaultPieceStorage.cc
  374. * src/DownloadContext.cc
  375. * src/DownloadContext.h
  376. * src/DownloadResult.h
  377. * src/RequestGroup.cc
  378. * src/RequestGroupMan.cc
  379. * src/StreamFileAllocationEntry.cc
  380. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Fixed the bug that metalink file is not processed if Content-Type
  382. field has a paramter.
  383. * src/HttpResponse.cc
  384. * src/HttpResponse.h
  385. * test/HttpResponseTest.cc
  386. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  387. Removed unused code.
  388. * src/DefaultBtAnnounce.cc
  389. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  390. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  391. the value larger than DefaultPieceStorage::getTotalLength() when
  392. in flight pieces are involved.
  393. * src/DefaultPieceStorage.cc
  394. * test/DefaultPieceStorageTest.cc
  395. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  396. Bump up version number to 1.0.0a.
  397. * configure.ac
  398. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  399. Updated configure.ac
  400. * configure.ac
  401. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  402. Added usege for proxy.
  403. * doc/aria2c.1.txt
  404. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Added usage for --ca-certificate, --certificate, --private-key and
  406. --check-certificate options.
  407. * doc/aria2c.1.txt
  408. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  409. Updated man page
  410. * doc/aria2c.1.txt
  411. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Added --no-proxy option. It receives comman separated hostname or
  413. domains to which proxy should not be used.
  414. aria2 honors the environment variable no_proxy to override no-proxy
  415. value in configuration file. The user can override the environment
  416. variable no_proxy with --no-proxy command-line option.
  417. * src/AbstractCommand.cc
  418. * src/OptionHandlerFactory.cc
  419. * src/option_processing.cc
  420. * src/prefs.cc
  421. * src/prefs.h
  422. * src/usage_text.h
  423. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Added the ability to verify peer in SSL/TLS using given CA certificates.
  425. The CA certificates are specified in --ca-certificate option.
  426. By default, the verification is disabled. Use --check-certificate
  427. option to enable it.
  428. * src/HttpRequestCommand.cc
  429. * src/LibgnutlsTLSContext.cc
  430. * src/LibgnutlsTLSContext.h
  431. * src/LibsslTLSContext.cc
  432. * src/LibsslTLSContext.h
  433. * src/MultiUrlRequestInfo.cc
  434. * src/OptionHandlerFactory.cc
  435. * src/SocketCore.cc
  436. * src/SocketCore.h
  437. * src/a2functional.h
  438. * src/message.h
  439. * src/option_processing.cc
  440. * src/prefs.cc
  441. * src/prefs.h
  442. * src/usage_text.h
  443. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Added client certificate authentication for SSL/TLS.
  445. Currently a private key must be decrypted for use with aria2.
  446. If a user accidentally gives encrypted file to aria2 then following
  447. thing happens:
  448. If encrypted private key is given to aria2, it behaves differently
  449. depending on the ssl library it uses. If aria2 built with openssl then
  450. openssl prompts the user for password. If aria2 build with gnutls then
  451. aria2 exists with error at start up.
  452. * src/DownloadEngineFactory.cc
  453. * src/MultiUrlRequestInfo.cc
  454. * src/OptionHandlerFactory.cc
  455. * src/option_processing.cc
  456. * src/prefs.cc
  457. * src/prefs.h
  458. * src/usage_text.h
  459. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  460. Introduced TLSContext that holds TLS related data that can be shared
  461. with multiple SSL connections.
  462. * src/DownloadEngineFactory.cc
  463. * src/LibgnutlsTLSContext.cc
  464. * src/LibgnutlsTLSContext.h
  465. * src/LibsslTLSContext.cc
  466. * src/LibsslTLSContext.h
  467. * src/Makefile.am
  468. * src/SocketCore.cc
  469. * src/SocketCore.h
  470. * src/TLSContext.h
  471. * src/message.h
  472. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  473. Fixed the bug that the DiskWriter of the first FileEntry whose
  474. `needsFileAllocation' property is false is not created
  475. even if it shares a piece with next FileEntry which `requested' property
  476. is true.
  477. Fixed the bug that zero-length file is not created if pre file
  478. allocation is not done.
  479. * src/MultiDiskAdaptor.cc
  480. * src/MultiDiskAdaptor.h
  481. * test/MultiDiskAdaptorTest.cc
  482. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  483. Added the ability to pool proxy connection.
  484. The conneciton in FTP with proxy-method=GET is not pooled.
  485. Proxy-Connection header will not be sent when sending CONNECT method.
  486. * src/DownloadEngine.cc
  487. * src/DownloadEngine.h
  488. * src/FtpFinishDownloadCommand.cc
  489. * src/FtpInitiateConnectionCommand.cc
  490. * src/FtpNegotiationCommand.cc
  491. * src/HttpDownloadCommand.cc
  492. * src/HttpInitiateConnectionCommand.cc
  493. * src/HttpRequest.cc
  494. * src/HttpRequest.h
  495. * src/HttpResponse.cc
  496. * src/HttpSkipResponseCommand.cc
  497. * test/HttpRequestTest.cc
  498. * test/HttpResponseTest.cc
  499. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  500. Handle date before epoch.
  501. To create *bad* Time object, call Time::null().
  502. * src/CookieParser.cc
  503. * src/FtpConnection.cc
  504. * src/FtpConnection.h
  505. * src/FtpNegotiationCommand.cc
  506. * src/RequestGroup.cc
  507. * src/TimeA2.cc
  508. * src/TimeA2.h
  509. * test/CookieParserTest.cc
  510. * test/FtpConnectionTest.cc
  511. * test/TimeTest.cc
  512. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  513. Added support for following envrionment variables: http_proxy,
  514. https_proxy, ftp_proxy and all_proxy.
  515. Each variable is equivalent to the aria2 option whose name is the
  516. variable name with '_' replaced with '-'.
  517. They overrides options specified in aria2.conf file.
  518. The envrionment variables can be overrode using command-line option.
  519. * src/option_processing.cc
  520. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  521. Renamed --http-proxy-method as --proxy-method.
  522. * src/AbstractCommand.cc
  523. * src/FtpInitiateConnectionCommand.cc
  524. * src/HttpInitiateConnectionCommand.cc
  525. * src/OptionHandlerFactory.cc
  526. * src/option_processing.cc
  527. * src/prefs.cc
  528. * src/prefs.h
  529. * src/usage_text.h
  530. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  531. Deprecated --http-proxy-user and --http-proxy-passwd options.
  532. Added --https-proxy, --ftp-proxy and --all-proxy options.
  533. Above 3 options and --http-proxy option can handle proxy in URL format
  534. like: http://user:passwd@host:port.
  535. If a proxy requires user/password, they must be specified in a URL.
  536. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  537. instead.
  538. * src/AbstractCommand.cc
  539. * src/AbstractCommand.h
  540. * src/AbstractProxyRequestCommand.cc
  541. * src/AbstractProxyRequestCommand.h
  542. * src/AuthConfigFactory.cc
  543. * src/AuthConfigFactory.h
  544. * src/FtpFinishDownloadCommand.cc
  545. * src/FtpInitiateConnectionCommand.cc
  546. * src/FtpInitiateConnectionCommand.h
  547. * src/FtpNegotiationCommand.cc
  548. * src/FtpTunnelRequestCommand.cc
  549. * src/FtpTunnelRequestCommand.h
  550. * src/HttpDownloadCommand.cc
  551. * src/HttpInitiateConnectionCommand.cc
  552. * src/HttpInitiateConnectionCommand.h
  553. * src/HttpProxyRequestCommand.cc
  554. * src/HttpProxyRequestCommand.h
  555. * src/HttpRequest.cc
  556. * src/HttpRequest.h
  557. * src/HttpRequestCommand.cc
  558. * src/HttpRequestCommand.h
  559. * src/HttpSkipResponseCommand.cc
  560. * src/InitiateConnectionCommand.cc
  561. * src/InitiateConnectionCommand.h
  562. * src/OptionHandlerFactory.cc
  563. * src/OptionHandlerImpl.h
  564. * src/Request.cc
  565. * src/option_processing.cc
  566. * src/prefs.cc
  567. * src/prefs.h
  568. * src/usage_text.h
  569. * test/AuthConfigFactoryTest.cc
  570. * test/HttpRequestTest.cc
  571. * test/OptionHandlerTest.cc
  572. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  573. Execute choking algorithm when unchoked and interested peer is
  574. disconected.
  575. * src/DefaultPeerStorage.cc
  576. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  577. Added testcase for BtNotInterestedMessage from unchoked peer.
  578. * test/BtNotInterestedMessageTest.cc
  579. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  580. Execute choking algorithm when BtInterestedMessage arrives from
  581. unchoked peer.
  582. * src/BtInterestedMessage.cc
  583. * src/BtInterestedMessage.h
  584. * src/DefaultBtMessageFactory.cc
  585. * test/BtInterestedMessageTest.cc
  586. * test/MockPeerStorage.h
  587. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  588. AuthConfigFactory is now part of DownloadEngine.
  589. * src/AbstractProxyRequestCommand.cc
  590. * src/AuthConfigFactory.h
  591. * src/DownloadEngine.cc
  592. * src/DownloadEngine.h
  593. * src/FtpConnection.cc
  594. * src/FtpConnection.h
  595. * src/FtpNegotiationCommand.cc
  596. * src/HttpConnection.cc
  597. * src/HttpRequest.cc
  598. * src/HttpRequest.h
  599. * src/HttpRequestCommand.cc
  600. * src/HttpResponse.cc
  601. * src/HttpResponseCommand.cc
  602. * src/HttpSkipResponseCommand.cc
  603. * src/MultiUrlRequestInfo.cc
  604. * src/main.cc
  605. * test/FtpConnectionTest.cc
  606. * test/HttpRequestTest.cc
  607. * test/HttpResponseTest.cc
  608. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  609. Corrected catched exception type.
  610. * src/ServerStatMan.cc
  611. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  612. DNSCache is now part of DownloadEngine.
  613. * src/DNSCache.h
  614. * src/DownloadEngine.cc
  615. * src/DownloadEngine.h
  616. * src/InitiateConnectionCommand.cc
  617. * src/MultiUrlRequestInfo.cc
  618. * test/Makefile.am
  619. * test/Makefile.in
  620. * test/SimpleDNSCacheTest.cc
  621. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  622. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  623. DownloadEngine.
  624. * src/ActivePeerConnectionCommand.cc
  625. * src/BtSetup.cc
  626. * src/CUIDCounter.h
  627. * src/DHTSetup.cc
  628. * src/DownloadCommand.cc
  629. * src/DownloadEngine.cc
  630. * src/DownloadEngine.h
  631. * src/DownloadEngineFactory.cc
  632. * src/FileAllocationDispatcherCommand.cc
  633. * src/InitiatorMSEHandshakeCommand.cc
  634. * src/PeerInitiateConnectionCommand.cc
  635. * src/PeerInteractionCommand.cc
  636. * src/PeerListenCommand.cc
  637. * src/RequestGroup.cc
  638. * src/StreamFileAllocationEntry.cc
  639. * src/TrackerWatcherCommand.cc
  640. * src/main.cc
  641. * test/RequestGroupManTest.cc
  642. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  643. Implemented commented code in BtSeederStateChoke
  644. * src/BtSeederStateChoke.cc
  645. * src/Peer.cc
  646. * src/Peer.h
  647. * src/PeerInteractionCommand.cc
  648. * src/PeerSessionResource.cc
  649. * src/PeerSessionResource.h
  650. * test/MockBtMessageDispatcher.h
  651. * test/PeerSessionResourceTest.cc
  652. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  653. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  654. its object.
  655. * src/AbstractBtMessage.cc
  656. * src/ActivePeerConnectionCommand.cc
  657. * src/ActivePeerConnectionCommand.h
  658. * src/BtContextAwareCommand.cc
  659. * src/BtContextAwareCommand.h
  660. * src/BtExtendedMessage.cc
  661. * src/BtExtendedMessage.h
  662. * src/BtInterestedMessage.cc
  663. * src/BtInterestedMessage.h
  664. * src/BtNotInterestedMessage.cc
  665. * src/BtNotInterestedMessage.h
  666. * src/BtRegistry.cc
  667. * src/BtRegistry.h
  668. * src/BtSeederStateChoke.cc
  669. * src/BtSetup.cc
  670. * src/DHTGetPeersCommand.cc
  671. * src/DHTGetPeersCommand.h
  672. * src/DHTPeerAnnounceEntry.cc
  673. * src/DHTPeerAnnounceEntry.h
  674. * src/DHTPeerAnnounceStorage.cc
  675. * src/DHTPeerAnnounceStorage.h
  676. * src/DHTPeerLookupTask.cc
  677. * src/DHTPeerLookupTask.h
  678. * src/DHTSetup.cc
  679. * src/DHTSetup.h
  680. * src/DHTTaskFactory.h
  681. * src/DHTTaskFactoryImpl.cc
  682. * src/DHTTaskFactoryImpl.h
  683. * src/DefaultBtAnnounce.cc
  684. * src/DefaultBtInteractive.cc
  685. * src/DefaultBtInteractive.h
  686. * src/DefaultBtMessageDispatcher.cc
  687. * src/DefaultBtMessageDispatcher.h
  688. * src/DefaultBtMessageFactory.cc
  689. * src/DefaultBtMessageFactory.h
  690. * src/DefaultBtMessageReceiver.cc
  691. * src/DefaultBtProgressInfoFile.cc
  692. * src/DefaultBtProgressInfoFile.h
  693. * src/DefaultBtRequestFactory.cc
  694. * src/DefaultBtRequestFactory.h
  695. * src/DefaultExtensionMessageFactory.cc
  696. * src/DefaultExtensionMessageFactory.h
  697. * src/DefaultPeerStorage.cc
  698. * src/DefaultPeerStorage.h
  699. * src/DownloadEngine.cc
  700. * src/DownloadEngine.h
  701. * src/InitiatorMSEHandshakeCommand.cc
  702. * src/InitiatorMSEHandshakeCommand.h
  703. * src/MSEHandshake.cc
  704. * src/MSEHandshake.h
  705. * src/Makefile.am
  706. * src/Makefile.in
  707. * src/PeerChokeCommand.cc
  708. * src/PeerChokeCommand.h
  709. * src/PeerInitiateConnectionCommand.cc
  710. * src/PeerInitiateConnectionCommand.h
  711. * src/PeerInteractionCommand.cc
  712. * src/PeerInteractionCommand.h
  713. * src/PeerObject.h
  714. * src/PeerReceiveHandshakeCommand.cc
  715. * src/PeerReceiveHandshakeCommand.h
  716. * src/ReceiverMSEHandshakeCommand.cc
  717. * src/RequestGroup.cc
  718. * src/RequestGroup.h
  719. * src/RequestGroupMan.cc
  720. * src/RequestGroupMan.h
  721. * src/SeedCheckCommand.cc
  722. * src/SeedCheckCommand.h
  723. * src/ShareRatioSeedCriteria.h
  724. * src/SimpleBtMessage.cc
  725. * src/TrackerWatcherCommand.cc
  726. * src/TrackerWatcherCommand.h
  727. * src/UTPexExtensionMessage.cc
  728. * src/UTPexExtensionMessage.h
  729. * test/BtCancelMessageTest.cc
  730. * test/BtChokeMessageTest.cc
  731. * test/BtExtendedMessageTest.cc
  732. * test/BtInterestedMessageTest.cc
  733. * test/BtNotInterestedMessageTest.cc
  734. * test/BtPieceMessageTest.cc
  735. * test/BtPortMessageTest.cc
  736. * test/BtRegistryTest.cc
  737. * test/BtRejectMessageTest.cc
  738. * test/BtRequestMessageTest.cc
  739. * test/DHTPeerAnnounceEntryTest.cc
  740. * test/DHTPeerAnnounceStorageTest.cc
  741. * test/DefaultBtMessageDispatcherTest.cc
  742. * test/DefaultBtMessageFactoryTest.cc
  743. * test/DefaultBtProgressInfoFileTest.cc
  744. * test/DefaultBtRequestFactoryTest.cc
  745. * test/DefaultExtensionMessageFactoryTest.cc
  746. * test/MSEHandshakeTest.cc
  747. * test/MockDHTTaskFactory.h
  748. * test/ShareRatioSeedCriteriaTest.cc
  749. * test/UTPexExtensionMessageTest.cc
  750. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  751. Fixed compiler warning.
  752. * test/UtilTest.cc
  753. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  754. Treat Cookie object as session cookie if expiry = 0 is given.
  755. With this change, you can specify session scoped cookies in an external
  756. file setting expiry value to 0.
  757. * src/Cookie.cc
  758. * src/Cookie.h
  759. * test/CookieParserTest.cc
  760. * test/CookieStorageTest.cc
  761. * test/CookieTest.cc
  762. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  763. Changed signature of DHTMessageFactory::createResponseMessage().
  764. Removed unused validateIDMatch.
  765. * src/DHTMessageFactory.h
  766. * src/DHTMessageFactoryImpl.cc
  767. * src/DHTMessageFactoryImpl.h
  768. * src/DHTMessageTracker.cc
  769. * test/DHTMessageFactoryImplTest.cc
  770. * test/MockDHTMessageFactory.h
  771. Dropped DHT message coming from same ID of localhost.
  772. * src/DHTMessageReceiver.cc
  773. Rejected adding node whose ID is the same as localhost's.
  774. * src/DHTRoutingTable.cc
  775. * test/BtPortMessageTest.cc
  776. * test/DHTRoutingTableTest.cc
  777. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  778. Pool connection when redirection occurs with Content-Length = 0.
  779. * src/HttpSkipResponseCommand.cc
  780. * src/HttpSkipResponseCommand.h
  781. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  782. Fixed the bug that causes time out when redirection occurs with
  783. content-length 0.
  784. * src/HttpResponseCommand.cc
  785. * src/HttpSkipResponseCommand.cc
  786. * src/HttpSkipResponseCommand.h
  787. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  788. Now each status legends is shown only when it appears in Download
  789. Result. If Download Result has no item, then status legend will not
  790. be printed.
  791. * src/RequestGroupMan.cc
  792. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  793. Removed duplicate creation of OptionHandlers.
  794. * src/option_processing.cc
  795. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  796. Fixed the bug that causes segmentation fault when accessing files which
  797. don't exist or are not included in --select-file option while
  798. validating chunk checksum.
  799. * src/MultiDiskAdaptor.cc
  800. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  801. Fixed compiler warning.
  802. * test/UtilTest.cc
  803. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  804. Included cstdlib. This fixed the compile error with g++-4.3.2.
  805. * src/IteratableChecksumValidator.cc
  806. * src/IteratableChunkChecksumValidator.cc
  807. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  808. * Release 0.16.2
  809. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  810. Added Serbian translation. Updated Ukrainian translation.
  811. Thanks to all translators.
  812. * po/sr.po
  813. * po/uk.po
  814. * po/LINGUAS
  815. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  816. Bump up version number to 0.16.2
  817. * configure.ac
  818. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  819. Added length equality test to operator== to drop a piece message
  820. whose length does not match to the requested one.
  821. * src/RequestSlot.cc
  822. * test/DefaultBtMessageDispatcherTest.cc
  823. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  824. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  825. recieved.
  826. In this fix, if a request larger than 16KiB length is received, aria2
  827. disconnects the peer.
  828. * src/BtConstants.h
  829. * src/PeerMessageUtil.cc
  830. * src/PeerMessageUtil.h
  831. * test/BtRequestMessageTest.cc
  832. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  833. * Release 0.16.1
  834. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  835. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  836. * doc/aria2c.1.txt
  837. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  838. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  839. Updated French, Simplified Chinese and Japanese translations.
  840. Thanks to all translators.
  841. en@quot and en@boldquot are also added.
  842. * po/LINGUAS
  843. * po/fr.po
  844. * po/ja.po
  845. * po/uk.po
  846. * po/vi.po
  847. * po/zh_CN.po
  848. * po/zh_TW.po
  849. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  850. Bump up version number to 0.16.1.
  851. * configure.ac
  852. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  853. Updated README.
  854. * README
  855. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  856. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  857. not to replace '--' with em dash character.
  858. * doc/aria2c.1.txt
  859. * doc/makeman
  860. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  861. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  862. every SEC seconds.
  863. * src/DownloadEngineFactory.cc
  864. * src/OptionHandlerFactory.cc
  865. * src/option_processing.cc
  866. * src/usage_text.h
  867. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  868. Fixed compile warning on linux-amd64
  869. * src/FtpConnection.cc
  870. * src/IteratableChunkChecksumValidator.cc
  871. * src/MultiDiskAdaptor.cc
  872. Fixed the bug that unit test fails on linux-amd64
  873. * test/UtilTest.cc
  874. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  875. Added --dht-file-path option to change the path to dht.dat, which is a
  876. serialized DHT routing table.
  877. * src/OptionHandlerFactory.cc
  878. * src/option_processing.cc
  879. * src/usage_text.h
  880. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  881. Fixed possible underflow.
  882. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  883. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  884. Fixed the bug that last character in URI is not encoded.
  885. * src/Request.cc
  886. * test/RequestTest.cc
  887. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  888. Fixed the bug that referer header field contains fragment.
  889. Now Request class removes fragment part of URI and encodes it
  890. in Request::setUri() and setReferer().
  891. * src/Request.h
  892. * src/Request.cc
  893. * test/RequestTest.cc
  894. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  895. Added missing m4 macros.
  896. * m4/cppunit.m4
  897. * m4/libgcrypt.m4
  898. * m4/libgnutls-extra.m4
  899. * m4/libgnutls.m4
  900. * m4/libxml2.m4
  901. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  902. Fixed compile error with gcc-4.4(snapshot)
  903. * src/File.cc
  904. * src/FtpConnection.cc
  905. * src/OptionHandlerImpl.h
  906. * src/Util.cc
  907. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  908. Removed assert()
  909. * src/SocketBuffer.cc (SocketBuffer::send)
  910. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  911. Changed the type of _numNewConnection to unsigned int.
  912. * src/ActivePeerConnectionCommand.cc
  913. * src/ActivePeerConnectionCommand.h
  914. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  915. * Release 0.16.0
  916. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  917. Updated doc
  918. * README
  919. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  920. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  921. translations. Thanks to all translators.
  922. * po/bg.po
  923. * po/de.po
  924. * po/fr.po
  925. * po/ja.po
  926. * po/zh_CN.po
  927. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Bump up version number to 0.16.0.
  929. * configure.ac
  930. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  931. Casted entry->maxConnections to int32_t for std::min<T> with T =
  932. int32_t.
  933. Changed the type of count to int32_t.
  934. * src/Metalink2RequestGroup.cc
  935. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  936. Added test for Time::elapsed(time_t).
  937. * test/TimeTest.cc
  938. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  939. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  940. Util::difftv() should be used instead.
  941. * src/TimeA2.cc
  942. * src/TimeA2.h
  943. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  944. Made socket for dht connections non-blocking
  945. * src/DHTAbstractMessage.cc
  946. * src/DHTAbstractMessage.h
  947. * src/DHTConnection.h
  948. * src/DHTConnectionImpl.cc
  949. * src/DHTConnectionImpl.h
  950. * src/DHTMessage.h
  951. * src/DHTMessageDispatcherImpl.cc
  952. * src/DHTMessageDispatcherImpl.h
  953. * src/DHTUnknownMessage.cc
  954. * src/DHTUnknownMessage.h
  955. * src/SocketCore.cc
  956. * src/SocketCore.h
  957. * test/MockDHTMessage.h
  958. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  959. Changed the type of offset to int.
  960. * src/ParameterizedStringParser.cc
  961. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  962. Made getAsInt() return int32_t
  963. * src/Option.h
  964. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  965. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  966. build.
  967. * configure.ac
  968. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  969. Use sqlite3_open if sqlite3_open_v2 is not available.
  970. * src/Sqlite3MozCookieParser.cc
  971. * src/Sqlite3MozCookieParser.h
  972. * m4/sqlite3.m4
  973. * test/Sqlite3MozCookieParserTest.cc
  974. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  975. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  976. * src/BtPieceMessage.cc
  977. * src/DHTPeerAnnounceStorage.cc
  978. * src/DefaultPieceStorage.cc
  979. * src/DownloadCommand.cc
  980. * src/DownloadEngine.cc
  981. * src/FtpConnection.cc
  982. * src/PeerConnection.cc
  983. * src/PeerMessageUtil.cc
  984. * src/RequestGroup.cc
  985. * src/RequestGroupMan.cc
  986. * src/SimpleBtMessage.cc
  987. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  988. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  989. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  990. * src/AbstractDiskWriter.cc
  991. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  992. Don't set Request::supportsPersistentConnection() in HttpConnection
  993. since this code is also used in AbstractProxyResponseCommand.
  994. Moved those code to HttpResponse.
  995. * src/HttpResponse.cc
  996. * src/HttpResponse.h
  997. * src/HttpConnection.cc
  998. * src/HttpConnection.h
  999. * src/HttpResponseCommand.cc
  1000. * test/HttpResponseTest.cc
  1001. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1002. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  1003. The configuration is minimum: no torrent, no metalink, so there may be
  1004. other compile error on their code.
  1005. * src/a2netcompat.h
  1006. * src/File.cc
  1007. * src/File.h
  1008. * src/SocketCore.cc
  1009. * src/SocketCore.h
  1010. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1011. Made a socket of incoming peer non-blocking.
  1012. * src/PeerListenCommand.cc
  1013. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1014. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  1015. whole message data is not sent in one send() call.
  1016. * src/BtPieceMessage.cc
  1017. * src/BtPieceMessage.h
  1018. * src/PeerConnection.cc
  1019. * src/PeerConnection.h
  1020. * src/SimpleBtMessage.cc
  1021. * src/SimpleBtMessage.h
  1022. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1023. Fixed the bug that aria2 downloads faster than max-download-limit when
  1024. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  1025. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  1026. , instead of sum of them.
  1027. * src/ActivePeerConnectionCommand.cc
  1028. * src/DefaultBtInteractive.cc
  1029. * src/DownloadCommand.cc
  1030. * src/PeerInteractionCommand.cc
  1031. * src/PeerReceiveHandshakeCommand.cc
  1032. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1033. Fixed the bug that HTTPS download fails.
  1034. * src/AbstractCommand.cc
  1035. * src/AbstractCommand.h
  1036. * src/DownloadCommand.cc
  1037. * src/FtpConnection.cc
  1038. * src/HttpConnection.cc
  1039. * src/HttpRequestCommand.cc
  1040. * src/HttpResponseCommand.cc
  1041. * src/HttpSkipResponseCommand.cc
  1042. * src/MSEHandshake.cc
  1043. * src/PeerConnection.cc
  1044. * src/SocketCore.cc
  1045. * src/SocketCore.h
  1046. Fixed the bug that aria2 doesn't download whole content body and cannot
  1047. reuse connection if chunked transfer encoding and gzip content encoding
  1048. are set.
  1049. * src/DownloadCommand.cc
  1050. * src/HttpSkipResponseCommand.cc
  1051. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1052. Updated man page.
  1053. * doc/aria2c.1.txt
  1054. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1055. When error occurred while aria2 was parsing an .aria2.conf file, print
  1056. the usage of the option that caused error.
  1057. * src/option_processing.cc
  1058. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1059. Fixed compile error on OptionHandlerException
  1060. * src/Makefile.am
  1061. * src/OptionHandlerException.cc
  1062. * src/OptionHandlerException.h
  1063. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1064. Moved message of the error to OptionHandlerException.h
  1065. * src/NameMatchOptionHandler.h
  1066. * src/OptionHandlerException.h
  1067. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1068. When error occurs while aria2 is parsing an command-line option, print
  1069. the usage of the option.
  1070. * src/Makefile.am
  1071. * src/NameMatchOptionHandler.h
  1072. * src/OptionHandlerException.h
  1073. * src/option_processing.cc
  1074. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1075. Reverted previous change.
  1076. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  1077. username is not in URI.
  1078. * src/HttpRequest.cc
  1079. * src/Request.cc
  1080. * test/HttpRequestTest.cc
  1081. * test/RequestTest.cc
  1082. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1083. Now colon is required for username and password in FTP URL, like:
  1084. ftp://username:password@host.
  1085. If colon is not there, aria2 don't parse it as a username. For example,
  1086. aria2 don't retrieve username from ftp://username@host.
  1087. This fix was made in order to login FTP server via non-transparent ftp
  1088. proxy.
  1089. * src/Request.cc
  1090. * test/RequestTest.cc
  1091. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1092. Use netrc for HTTP.
  1093. Now FTP user/password is sent in Authorization header when
  1094. --ftp-via-http-proxy=get is given.
  1095. * src/AuthConfigFactory.cc
  1096. * src/HttpRequest.cc
  1097. * src/HttpRequest.h
  1098. * src/NetrcAuthResolver.cc
  1099. * src/NetrcAuthResolver.h
  1100. * src/OptionHandlerFactory.cc
  1101. * src/option_processing.cc
  1102. * src/prefs.cc
  1103. * src/prefs.h
  1104. * test/AuthConfigFactoryTest.cc
  1105. * test/HttpRequestTest.cc
  1106. * test/NetrcAuthResolverTest.cc
  1107. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1108. Issue PWD command first and get working directory and use it as a prefix
  1109. for CWD command.
  1110. * src/DownloadEngine.cc
  1111. * src/DownloadEngine.h
  1112. * src/FtpConnection.cc
  1113. * src/FtpConnection.h
  1114. * src/FtpFinishDownloadCommand.cc
  1115. * src/FtpInitiateConnectionCommand.cc
  1116. * src/FtpNegotiationCommand.cc
  1117. * src/FtpNegotiationCommand.h
  1118. * test/FtpConnectionTest.cc
  1119. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1120. Removed default user/pass for FTP user/pass, since it should not have
  1121. precedence over netrc configuration by default.
  1122. * src/OptionHandlerFactory.cc
  1123. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1124. Added debug log for socket event.
  1125. * src/AbstractCommand.cc
  1126. * src/PeerAbstractCommand.cc
  1127. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1128. Log microseconds.
  1129. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1130. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1131. Replaced HelpItem.cc with OptionHandler.cc.
  1132. * po/POTFILES.in
  1133. Updated po files with 'make update-po'
  1134. * po/aria2c.pot
  1135. * po/*.po
  1136. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1137. Removed possible values from the text.
  1138. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  1139. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1140. Removed unused preferences:
  1141. PREF_NO_PREALLOCATION
  1142. PREF_STDOUT_LOG
  1143. PREF_TRACKER_MAX_TRIES
  1144. PREF_DIRECT_DOWNLOAD_TIMEOUT
  1145. PREF_MIN_SEGMENT_SIZE
  1146. * src/option_processing.cc
  1147. * src/prefs.cc
  1148. * src/prefs.h
  1149. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1150. Integrated HelpItem into OptionParser to ease the workload for adding
  1151. new options. Removed default value from usage text.
  1152. * src/HelpItem.cc: Removed.
  1153. * src/HelpItem.h: Removed.
  1154. * src/HelpItemFactory.cc: Removed.
  1155. * src/HelpItemFactory.h: Removed.
  1156. * src/Makefile.am
  1157. * src/Makefile.in
  1158. * src/NameMatchOptionHandler.h
  1159. * src/OptionHandler.cc
  1160. * src/OptionHandler.h
  1161. * src/OptionHandlerFactory.cc
  1162. * src/OptionHandlerImpl.h
  1163. * src/OptionParser.cc
  1164. * src/OptionParser.h
  1165. * src/TagContainer.cc: Removed.
  1166. * src/TagContainer.h: Removed.
  1167. * src/TaggedItem.cc: Removed.
  1168. * src/TaggedItem.h: Removed.
  1169. * src/main.cc
  1170. * src/option_processing.cc
  1171. * src/usage_text.h
  1172. * src/version_usage.cc
  1173. * test/HelpItemTest.cc: Removed.
  1174. * test/Makefile.am
  1175. * test/Makefile.in
  1176. * test/OptionHandlerTest.cc
  1177. * test/OptionParserTest.cc
  1178. * test/TagContainerTest.cc: Removed.
  1179. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1180. Moved `TransferStat stat = ...' to inside the `if' clause.
  1181. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  1182. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1183. Fixed the bug that a block in a piece is requested when same block is
  1184. already requested to the same peer in end game mode.
  1185. * src/BtRequestFactory.h
  1186. * src/DefaultBtInteractive.cc
  1187. * src/DefaultBtRequestFactory.cc
  1188. * src/DefaultBtRequestFactory.h
  1189. * src/DefaultPieceStorage.cc
  1190. * src/DefaultPieceStorage.h
  1191. * src/PieceStorage.h
  1192. * src/UnknownLengthPieceStorage.cc
  1193. * src/UnknownLengthPieceStorage.h
  1194. * test/DefaultBtRequestFactoryTest.cc
  1195. * test/DefaultPieceStorageTest.cc
  1196. * test/MockBtRequestFactory.h
  1197. * test/MockPieceStorage.h
  1198. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1199. Removed _uploadLength and _downloadLength from PeerSessionResource
  1200. and use PeerStat::_sessionUploadLength and
  1201. PeerStat::_sessionDownloadLength.
  1202. * src/PeerSessionResource.cc
  1203. * src/PeerSessionResource.h
  1204. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1205. Fixed the bug that prefixLength of split bucket which doesn't include
  1206. local node ID is incremented.
  1207. * src/DHTBucket.cc
  1208. * src/DHTBucket.h
  1209. * test/DHTBucketTest.cc
  1210. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1211. Added cookies.sqlite to EXTRA_DIST
  1212. * test/Makefile.am
  1213. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1214. Added Turkish translation. Updated French, German, Russian and
  1215. Simplified Chinese translations. Thanks to all translators.
  1216. * po/LINGUAS
  1217. * po/de.po
  1218. * po/fr.po
  1219. * po/ru.po
  1220. * po/tr.po
  1221. * po/zh_CN.po
  1222. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1223. Added deliminating text to the beginning of the log so that one can find
  1224. where the log starts easily.
  1225. * src/main.cc
  1226. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1227. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  1228. to fix compile error when async DNS is not enabled by configuration.
  1229. * src/AbstractCommand.cc
  1230. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1231. If establishing conneciton to a server is failed, then mark error on
  1232. its ServerStat.
  1233. Added the cause of error to log when error event occurred.
  1234. Moved message string to message.h for translation.
  1235. * src/AbstractCommand.cc
  1236. * src/AbstractCommand.h
  1237. * src/FtpNegotiationCommand.cc
  1238. * src/HttpRequestCommand.cc
  1239. * src/PeerAbstractCommand.cc
  1240. * src/message.h
  1241. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1242. Added the function to get error message from socket.
  1243. * src/SocketCore.cc
  1244. * src/SocketCore.h
  1245. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1246. Added convenient method RequestGroupMan::getOrCreateServerStat()
  1247. * src/RequestGroupMan.cc
  1248. * src/RequestGroupMan.h
  1249. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1250. If error event is received in epoll, then abort download immediately.
  1251. * src/AbstractCommand.cc
  1252. * src/Command.cc
  1253. * src/Command.h
  1254. * src/DownloadEngine.cc
  1255. * src/PeerAbstractCommand.cc
  1256. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1257. Added usage message for --uri-selector, --server-stat-of,
  1258. --server-stat-in, --server-stat-timeout options.
  1259. * src/HelpItemFactory.cc
  1260. * src/usage_text.h
  1261. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1262. Added upper limit of FTP response buffer. The current implementation
  1263. uses 4096bytes as a limit.
  1264. * src/FtpConnection.cc
  1265. * src/FtpConnection.h
  1266. * test/FtpConnectionTest.cc
  1267. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1268. Use non-blocking socket for TCP communication to avoid possible
  1269. blocking due to buffer full.
  1270. * src/AbstractProxyRequestCommand.cc
  1271. * src/FtpConnection.cc
  1272. * src/FtpConnection.h
  1273. * src/FtpNegotiationCommand.cc
  1274. * src/FtpNegotiationCommand.h
  1275. * src/HttpConnection.cc
  1276. * src/HttpConnection.h
  1277. * src/HttpRequestCommand.cc
  1278. * src/InitiatorMSEHandshakeCommand.cc
  1279. * src/InitiatorMSEHandshakeCommand.h
  1280. * src/MSEHandshake.cc
  1281. * src/MSEHandshake.h
  1282. * src/Makefile.am
  1283. * src/PeerConnection.cc
  1284. * src/PeerConnection.h
  1285. * src/PeerInteractionCommand.cc
  1286. * src/PeerListenCommand.cc
  1287. * src/ReceiverMSEHandshakeCommand.cc
  1288. * src/ReceiverMSEHandshakeCommand.h
  1289. * src/SocketBuffer.cc
  1290. * src/SocketBuffer.h
  1291. * src/SocketCore.cc
  1292. * src/SocketCore.h
  1293. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1294. Call setStatusRealtime() in constructor.
  1295. * src/RealtimeCommand.cc
  1296. * src/RealtimeCommand.h
  1297. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1298. Call Download::setNoWait(true) to execute newly created command without
  1299. a pause.
  1300. * src/AbstractCommand.cc
  1301. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1302. Added --max-file-not-found=NUM option. If aria2 receives `file not
  1303. found' error from HTTP/FTP server NUM times without getting single
  1304. bytes of data, then force the download to fail.
  1305. Basically aria2 tris all URIs available. So if long list of URIs are
  1306. specified in Metalink, then aria2 will take a long time to fail
  1307. eventually if all URIs are outdated. This option eases this situation
  1308. to limit the number of servers to try.
  1309. * src/FtpNegotiationCommand.cc
  1310. * src/HelpItemFactory.cc
  1311. * src/HttpResponseCommand.cc
  1312. * src/OptionHandlerFactory.cc
  1313. * src/PeerStat.h
  1314. * src/RequestGroup.cc
  1315. * src/RequestGroup.h
  1316. * src/SegmentMan.cc
  1317. * src/SegmentMan.h
  1318. * src/option_processing.cc
  1319. * src/prefs.cc
  1320. * src/prefs.h
  1321. * src/usage_text.h
  1322. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1323. Fixed the bug that bulkReceiveResponse() reads all received data as a
  1324. response even if more than one response is in it.
  1325. * src/FtpConnection.cc
  1326. * src/FtpConnection.h
  1327. * test/FtpConnectionTest.cc
  1328. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1329. Merged from stable-0.15
  1330. * m4/libcares.m4
  1331. Use pkg-config
  1332. * m4/sqlite3.m4
  1333. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1334. Removed unnecessary if statement.
  1335. * src/DefaultPieceStorage.cc (initPieceStorage)
  1336. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1337. Added --connect-timeout option to specify connect timeout in seconds.
  1338. This option is in effect for HTTP/FTP/proxy server. The timeout for
  1339. connecting to BitTorrent peer is not controlled by this option.
  1340. * src/AbstractProxyRequestCommand.cc
  1341. * src/FtpNegotiationCommand.cc
  1342. * src/HelpItemFactory.cc
  1343. * src/HttpRequestCommand.cc
  1344. * src/OptionHandlerFactory.cc
  1345. * src/option_processing.cc
  1346. * src/prefs.cc
  1347. * src/prefs.h
  1348. * src/usage_text.h
  1349. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1350. Added help message for -R option.
  1351. * src/HelpItemFactory.cc
  1352. * src/usage_text.h
  1353. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1354. Added the message that the time is in local time zone.
  1355. * src/RequestGroup.cc
  1356. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1357. Implemented the ability to get timestamp from remote FTP server using
  1358. MDTM command described in RFC3659.
  1359. * src/FtpConnection.cc
  1360. * src/FtpConnection.h
  1361. * src/FtpNegotiationCommand.cc
  1362. * src/FtpNegotiationCommand.h
  1363. * test/FtpConnectionTest.cc
  1364. * test/Makefile.am
  1365. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1366. Implemented the ability to get timestamp from remote HTTP server and
  1367. apply it to local file. To enable this feature, --remote-time option
  1368. is added. No usage text has been written yet.
  1369. If several servers returns difference timestamp, then aria2 uses latest
  1370. one.
  1371. * src/CopyDiskAdaptor.cc
  1372. * src/CopyDiskAdaptor.h
  1373. * src/DirectDiskAdaptor.cc
  1374. * src/DirectDiskAdaptor.h
  1375. * src/DiskAdaptor.h
  1376. * src/File.cc
  1377. * src/File.h
  1378. * src/HttpHeader.cc
  1379. * src/HttpHeader.h
  1380. * src/HttpResponse.cc
  1381. * src/HttpResponse.h
  1382. * src/HttpResponseCommand.cc
  1383. * src/HttpResponseCommand.h
  1384. * src/MultiDiskAdaptor.cc
  1385. * src/MultiDiskAdaptor.h
  1386. * src/OptionHandlerFactory.cc
  1387. * src/RequestGroup.cc
  1388. * src/RequestGroup.h
  1389. * src/RequestGroupMan.cc
  1390. * src/option_processing.cc
  1391. * src/prefs.cc
  1392. * src/prefs.h
  1393. * test/CopyDiskAdaptorTest.cc
  1394. * test/FileTest.cc
  1395. * test/Makefile.am
  1396. * test/Makefile.in
  1397. * test/MultiDiskAdaptorTest.cc
  1398. * test/TestUtil.cc
  1399. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1400. Fixed the bug that DiskWriterEntry is not created when its
  1401. FileEntry.isRequested() is false and it doesn't share a piece with
  1402. other FileEntries that are requested. This bug causes segmentation fault
  1403. in the end.
  1404. * src/MultiDiskAdaptor.cc
  1405. * src/MultiDiskAdaptor.h
  1406. * src/MultiFileAllocationIterator.cc
  1407. * test/MultiDiskAdaptorTest.cc
  1408. * test/MultiFileAllocationIteratorTest.cc
  1409. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1410. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  1411. called if the number of file entries are greater than max open files.
  1412. * src/AbstractSingleDiskAdaptor.cc
  1413. * src/AbstractSingleDiskAdaptor.h
  1414. * src/DiskAdaptor.h
  1415. * src/MultiDiskAdaptor.cc
  1416. * src/MultiDiskAdaptor.h
  1417. * test/MultiDiskAdaptorTest.cc
  1418. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1419. Added a constuctor that receives struct timeval.
  1420. Added operator<.
  1421. * src/TimeA2.cc
  1422. * src/TimeA2.h
  1423. * test/TimeTest.cc
  1424. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1425. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  1426. * src/CookieParser.cc
  1427. * test/CookieParserTest.cc
  1428. * test/HttpResponseTest.cc
  1429. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1430. Implmented the functions to parse date.
  1431. * src/TimeA2.cc
  1432. * src/TimeA2.h
  1433. * test/TimeTest.cc
  1434. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1435. Added "Firefox3 Cookie" feature to FeatureConfig
  1436. * src/FeatureConfig.cc
  1437. * src/FeatureConfig.h
  1438. * test/FeatureConfigTest.cc
  1439. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1440. Bump up version number to 0.16.0b
  1441. * configure.ac
  1442. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1443. Use pkg-config if is is available.
  1444. * m4/openssl.m4
  1445. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1446. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  1447. * src/BtAnnounce.h
  1448. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1449. If an error occurred with a URI, remove identical URI from remaining
  1450. URI list because it is likely that same error occurred in the end and it
  1451. is waste of time.
  1452. * src/AbstractCommand.cc
  1453. * src/RequestGroup.cc
  1454. * src/RequestGroup.h
  1455. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1456. Removed wrong comment.
  1457. * src/DefaultPeerStorage.cc
  1458. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1459. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  1460. Added return value of getpid() to argument of srand() to achieve more
  1461. randomized value.
  1462. * src/SimpleRandomizer.cc
  1463. * src/SimpleRandomizer.h
  1464. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1465. Contact tracker frequently when the number of connections are 0 and
  1466. download is not finished yet.
  1467. * src/ActivePeerConnectionCommand.cc
  1468. * src/BtAnnounce.h
  1469. * src/DefaultBtAnnounce.cc
  1470. * src/DefaultBtAnnounce.h
  1471. * test/MockBtAnnounce.h
  1472. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1473. Moved threshold values to UTPexExtensionMessage.
  1474. * src/DefaultBtInteractive.cc
  1475. * src/Peer.cc
  1476. * src/Peer.h
  1477. * src/UTPexExtensionMessage.cc
  1478. * src/UTPexExtensionMessage.h
  1479. * test/UTPexExtensionMessageTest.cc
  1480. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1481. Added _incoming member to Peer class and made it true if the peer
  1482. initiated connection. Don't add those peer to UTPex message.
  1483. If extended handshake is received, assign _incoming to false.
  1484. * src/DefaultBtInteractive.cc
  1485. * src/HandshakeExtensionMessage.cc
  1486. * src/Peer.cc
  1487. * src/Peer.h
  1488. * src/PeerListenCommand.cc
  1489. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1490. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  1491. Encoding Decoder. Removed size threshold for turning off on the fly
  1492. inflation because resulting file may or may not be inflated depending
  1493. on the file size and I think it is not expected by users.
  1494. This change fixes segmentation fault when Metalink file contains gzipped
  1495. file and its filesize is provided.
  1496. * src/HttpResponseCommand.cc
  1497. * src/HttpResponseCommand.h
  1498. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1499. Made Cookie immutable.
  1500. * src/Cookie.cc
  1501. * src/Cookie.h
  1502. * src/CookieParser.cc
  1503. * src/CookieParser.h
  1504. * src/CookieStorage.cc
  1505. * test/CookieParserTest.cc
  1506. * test/CookieStorageTest.cc
  1507. * test/NsCookieParserTest.cc
  1508. * test/Sqlite3MozCookieParserTest.cc
  1509. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1510. Removed CookieBox, CookieBoxFactory.
  1511. * src/CookieBox.cc
  1512. * src/CookieBox.h
  1513. * src/CookieBoxFactory.cc
  1514. * src/CookieBoxFactory.h
  1515. * src/Makefile.am
  1516. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1517. Use CookieStorage class instead of CookieBox class.
  1518. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  1519. * src/AbstractProxyRequestCommand.cc
  1520. * src/CookieStorage.cc
  1521. * src/DownloadEngine.cc
  1522. * src/DownloadEngine.h
  1523. * src/HttpConnection.cc
  1524. * src/HttpConnection.h
  1525. * src/HttpRequest.cc
  1526. * src/HttpRequest.h
  1527. * src/HttpRequestCommand.cc
  1528. * src/HttpResponse.cc
  1529. * src/HttpResponseCommand.cc
  1530. * src/HttpSkipResponseCommand.cc
  1531. * src/Makefile.am
  1532. * src/MultiUrlRequestInfo.cc
  1533. * src/Request.cc
  1534. * src/Request.h
  1535. * src/main.cc
  1536. * test/AllTest.cc
  1537. * test/CookieStorageTest.cc
  1538. * test/CookieTest.cc
  1539. * test/HttpRequestTest.cc
  1540. * test/HttpResponseTest.cc
  1541. * test/Makefile.am
  1542. * test/NsCookieParserTest.cc
  1543. * test/Sqlite3MozCookieParserTest.cc
  1544. * test/nscookietest.txt
  1545. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1546. Updated
  1547. * test/Cookies.sqlite
  1548. * test/nscookietest.txt
  1549. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1550. Added tests for CookieStorage::load()
  1551. * test/CookieStorageTest.cc
  1552. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1553. Added CookieStorage class which is based on RFC2109 and manages cookies
  1554. more strictly than CookieBox and CookieBoxFactory class.
  1555. * src/CookieStorage.cc
  1556. * src/CookieStorage.h
  1557. * src/Cookie.cc
  1558. * src/Cookie.h
  1559. * test/CookieStorageTest.cc
  1560. * test/CookieTest.cc
  1561. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1562. Fixed the bug that commands are created more than the number of pieces.
  1563. * src/RequestGroup.cc
  1564. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1565. Fixed infinite loop bug in FTP when SIZE command failed.
  1566. * src/FtpNegotiationCommand.cc
  1567. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1568. Removed DirectDiskAdaptorTest.h
  1569. * test/Makefile.am
  1570. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1571. Fixed chunk checksum validation cannot detect trailing garbage data.
  1572. BUG#2074141
  1573. * src/AbstractSingleDiskAdaptor.cc
  1574. * src/AbstractSingleDiskAdaptor.h
  1575. * src/CheckIntegrityEntry.cc
  1576. * src/CheckIntegrityEntry.h
  1577. * src/DiskAdaptor.h
  1578. * src/MultiDiskAdaptor.cc
  1579. * src/MultiDiskAdaptor.h
  1580. * src/RequestGroup.cc
  1581. * test/DirectDiskAdaptorTest.cc
  1582. * test/MultiDiskAdaptorTest.cc
  1583. * test/TestUtil.cc
  1584. * test/TestUtil.h
  1585. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1586. Bump up version number of dht.dat file to 3. In version 3 format, time
  1587. is stored in 64bit, network byte order.
  1588. New build can load old format(version 2) but it saves the file in new
  1589. format. It means once you used new build, your dht.dat becomes
  1590. incompatible with older build.
  1591. * src/DHTRoutingTableDeserializer.cc
  1592. * src/DHTRoutingTableSerializer.cc
  1593. * test/DHTRoutingTableSerializerTest.cc
  1594. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1595. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  1596. * test/Makefile.am
  1597. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1598. Bump up version number of .aria2 control file to 0001.
  1599. New aria2 can still load version 0000 file but it saves the file in
  1600. version 0001 format. It means that new aria2 can resume download
  1601. started by old aria2 but the opposite is not true.
  1602. * src/DefaultBtProgressInfoFile.cc
  1603. * src/DefaultBtProgressInfoFile.h
  1604. * test/DefaultBtProgressInfoFileTest.cc
  1605. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1606. Added ntoh64 and hton64 as inline functions.
  1607. * src/Util.cc
  1608. * test/UtilTest.cc
  1609. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1610. Added sqlite3 depenency and Firefox3 cookie support.
  1611. * README
  1612. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1613. State that firefox3 cookie is supported explicitly in the usage.
  1614. * src/usage_text.h
  1615. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1616. Externalized message.
  1617. * src/RequestGroupMan.cc
  1618. * src/message.h
  1619. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1620. Save temporary file first and rename to the destination on success.
  1621. Added test cases.
  1622. * src/RequestGroupMan.cc
  1623. * test/RequestGroupManTest.cc
  1624. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1625. Fixed the bug that the number of connected peer is exceeding the limit
  1626. (55 by default) in seeding mode.
  1627. Multiplied 0.8 to _maxUploadSpeedLimit.
  1628. * src/ActivePeerConnectionCommand.cc
  1629. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1630. Clear table item.
  1631. * src/Dictionary.cc
  1632. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1633. Fixed error handling of lseek.
  1634. * src/AbstractDiskWriter.cc
  1635. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1636. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  1637. style cookie file.
  1638. * src/usage_text.h
  1639. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1640. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  1641. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  1642. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  1643. * src/Util.cc
  1644. * src/Util.h
  1645. * src/CookieParser.cc
  1646. * test/UtilTest.cc
  1647. * test/CookieParserTest.cc
  1648. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1649. Separate the implementation to load old mozilla format of cookie to
  1650. NsCookieParser class.
  1651. * src/CookieBoxFactory.cc
  1652. * src/CookieBoxFactory.h
  1653. * src/NsCookieParser.cc
  1654. * src/NsCookieParser.h
  1655. * test/NsCookieParserTest.cc
  1656. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1657. Made parse() const
  1658. * src/Sqlite3MozCookieParser.cc
  1659. * src/Sqlite3MozCookieParser.h
  1660. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1661. Added firefox3 cookie support based on the patch submitted by
  1662. tizianomueller.
  1663. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  1664. this functionality.
  1665. * configure.ac
  1666. * m4/sqlite3.m4
  1667. * src/CookieBoxFactory.cc
  1668. * src/CookieBoxFactory.h
  1669. * src/Makefile.am
  1670. * src/Makefile.in
  1671. * src/Sqlite3MozCookieParser.cc
  1672. * src/Sqlite3MozCookieParser.h
  1673. * src/main.cc
  1674. * test/CookieBoxFactoryTest.cc
  1675. * test/Makefile.am
  1676. * test/Makefile.in
  1677. * test/Sqlite3MozCookieParserTest.cc
  1678. * test/badcookies.sqlite
  1679. * test/cookies.sqlite
  1680. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1681. Added Danish and Greek translations.
  1682. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  1683. Great thanks to all translators.
  1684. * po/LINGUAS
  1685. * po/el.po
  1686. * po/da.po
  1687. * po/es.po
  1688. * po/ca.po
  1689. * po/nn.po
  1690. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1691. Fixed man page: --follow-bittorrent should be --follow-torrent
  1692. * doc/aria2c.1.txt
  1693. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1694. Fixed: numCommand is less than the value specified in -C option.
  1695. * src/RequestGroup.cc
  1696. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1697. Fixed occasional assertion failure in PieceSegment.
  1698. Calling PieceStorage::getMissingPiece(size_t) was missing after
  1699. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  1700. creation of duplicate segments and one of the segment was finished then
  1701. assertion failure was caused.
  1702. * src/SegmentMan.cc
  1703. * test/SegmentManTest.cc
  1704. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1705. Added options to load/save the server's performance/status to a file
  1706. and the timeout to drop their data.
  1707. --server-stat-of=FILE specifies the file to which performance data
  1708. is saved.
  1709. --server-stat-if=FILE specifies the file to read previously saved
  1710. by --server-stat-of option. Might be used with --uri-selector=feedback.
  1711. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  1712. TIMEOUT is specified in seconds and the default value is 24hours.
  1713. * src/MultiUrlRequestInfo.cc
  1714. * src/OptionHandlerFactory.cc
  1715. * src/RequestGroupMan.cc
  1716. * src/RequestGroupMan.h
  1717. * src/ServerStatMan.cc
  1718. * src/ServerStatMan.h
  1719. * src/option_processing.cc
  1720. * src/prefs.cc
  1721. * src/prefs.h
  1722. * test/ServerStatManTest.cc
  1723. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1724. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  1725. * src/ServerStatMan.cc
  1726. * src/ServerStatMan.h
  1727. * test/ServerStatManTest.cc
  1728. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1729. Implemented ServerStatMan::load(...) function and its test case.
  1730. * src/ServerStat.cc
  1731. * src/ServerStat.h
  1732. * src/ServerStatMan.cc
  1733. * test/ServerStatManTest.cc
  1734. * test/ServerStatTest.cc
  1735. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1736. Use time_t instead of int32_t. Use int64_t where milli second is
  1737. expected.
  1738. * src/TimeA2.cc
  1739. * src/TimeA2.h
  1740. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1741. Implemented ServerStatMan::save(...) function and its test case.
  1742. * src/ServerStat.cc
  1743. * src/ServerStat.h
  1744. * src/ServerStatMan.cc
  1745. * src/ServerStatMan.h
  1746. * test/ServerStatManTest.cc
  1747. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1748. Now aria2 uses name attribute in Metalink as local filename in
  1749. BitTorrent downloads. BUG#2033999
  1750. * src/BtContext.h
  1751. * src/BtDependency.cc
  1752. * src/DefaultBtContext.cc
  1753. * src/DefaultBtContext.h
  1754. * src/SingleFileDownloadContext.cc
  1755. * src/SingleFileDownloadContext.h
  1756. * test/BtDependencyTest.cc
  1757. * test/DefaultBtContextTest.cc
  1758. * test/MockBtContext.h
  1759. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1760. Added AC_C_BIGENDIAN
  1761. * src/configure.ac
  1762. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1763. Limited numCommand less than or equal to the number of piece.
  1764. * src/RequestGroup.cc
  1765. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1766. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  1767. directive.
  1768. * test/DefaultPieceStorageTest.cc
  1769. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1770. Fixed memory leak in test code
  1771. * test/AnnounceListTest.cc
  1772. * test/DefaultPeerListProcessorTest.cc
  1773. * test/DefaultPeerStorageTest.cc
  1774. * test/MetaFileUtilTest.cc
  1775. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1776. Fixed wrong argument passing to BitfieldMan::isBitSet()
  1777. * src/DefaultPieceStorage.cc
  1778. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1779. Initialized _directIOAllowed
  1780. * src/MultiDiskAdaptor.cc
  1781. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1782. Fixed memory leak
  1783. * src/GZipDecoder.cc
  1784. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1785. Fixed memory leak
  1786. * src/MetalinkParserStateMachine.cc
  1787. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1788. Fixed memory leak
  1789. * src/Dictionary.cc
  1790. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1791. Fixed memory leak
  1792. * src/IteratableChunkChecksumValidator.h
  1793. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1794. Fixed unmatched malloc/free.
  1795. * src/IteratableChunkChecksumValidator.cc
  1796. * src/IteratableChecksumValidator.cc
  1797. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1798. Removed max chunk size check. This change fixes BUG#2040169
  1799. * src/ChunkedDecoder.cc
  1800. * src/ChunkedDecoder.h
  1801. * test/ChunkedDecoderTest.cc
  1802. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1803. Implemented download speed based URI selection algorithm.
  1804. Introduced new option --uri-selector.
  1805. If --uri-selector=feedback is given, aria2 uses download speed observed
  1806. in the previous downloads and chooses fastest server in the URI list.
  1807. Currently at most 10 URIs are considered to introduce randomeness for
  1808. finding better servers. The speed is average download speed in the
  1809. downloads.
  1810. On the other hand, if --uri-selector=inorder is given, which is default,
  1811. URI is tried in order in URI list.
  1812. The usage text for the new option has not been written yet.
  1813. * src/AbstractCommand.cc
  1814. * src/DownloadCommand.cc
  1815. * src/DownloadEngine.cc
  1816. * src/DownloadEngineFactory.cc
  1817. * src/InOrderURISelector.cc
  1818. * src/InOrderURISelector.h
  1819. * src/OptionHandlerFactory.cc
  1820. * src/PeerStat.h
  1821. * src/RequestGroup.cc
  1822. * src/RequestGroup.h
  1823. * src/RequestGroupMan.cc
  1824. * src/RequestGroupMan.h
  1825. * src/SegmentMan.cc
  1826. * src/SegmentMan.h
  1827. * src/ServerStat.cc
  1828. * src/ServerStat.h
  1829. * src/ServerStatMan.cc
  1830. * src/ServerStatMan.h
  1831. * src/ServerStatURISelector.cc
  1832. * src/ServerStatURISelector.h
  1833. * src/URISelector.h
  1834. * src/option_processing.cc
  1835. * src/prefs.cc
  1836. * src/prefs.h
  1837. * test/InOrderURISelectorTest.cc
  1838. * test/RequestGroupManTest.cc
  1839. * test/ServerStatManTest.cc
  1840. * test/ServerStatURISelectorTest.cc
  1841. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1842. * Release 0.15.1+2
  1843. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1844. Bump up version number to 0.15.1+2
  1845. * configure.ac
  1846. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1847. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  1848. * m4/aria2_arg.m4
  1849. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1850. * Release 0.15.1+1
  1851. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1852. Bump up version number to 0.15.1+1
  1853. * configure.ac
  1854. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1855. Fixed the bug that causes segmentaion fault when resuming download
  1856. using metalink without size tag. Reproducible only using HTTP URI.
  1857. * src/HttpResponseCommand.cc
  1858. * src/FtpNegotiationCommand.cc
  1859. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1860. * Release 0.15.1
  1861. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1862. Updated Bulgarian and French translations, thanks to all translators.
  1863. * po/bg.po
  1864. * po/fr.po
  1865. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1866. Bump up version number to 0.15.1
  1867. * configure.ac
  1868. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1869. Avoid repeated call of gettimeofday() when calculating speed.
  1870. * src/SpeedCalc.cc
  1871. * src/SpeedCalc.h
  1872. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1873. Removed writable check when socket's send buffer is full in BitTorrent
  1874. downloads to lower CPU usage.
  1875. * src/PeerInteractionCommand.cc
  1876. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1877. Fixed broken gzip inflation.
  1878. Turn off segmented downloading if gzip content is smaller than or equal
  1879. to 1MiB and inflate the data on the fly, because HTTP response header
  1880. doesn't contain the length of inflated file we can't determin where
  1881. the chunk of data should be written.
  1882. On the other hand, if gzip content is larger than 1MB, then turn off
  1883. on the fly inflation, because some servers returns "content-type: gzip"
  1884. for *.tgz, *.gz files.
  1885. * src/DownloadCommand.cc
  1886. * src/HttpResponseCommand.cc
  1887. * src/HttpResponseCommand.h
  1888. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1889. Applied tizianomueller's patch to fix compile error.
  1890. * test/BitfieldManTest.cc
  1891. * test/BtRequestMessageTest.cc
  1892. * test/DefaultBtContextTest.cc
  1893. * test/DefaultDiskWriterTest.cc
  1894. * test/DefaultPieceStorageTest.cc
  1895. * test/HttpHeaderProcessorTest.cc
  1896. * test/HttpResponseTest.cc
  1897. * test/Metalink2RequestGroupTest.cc
  1898. * test/MetalinkParserControllerTest.cc
  1899. * test/MetalinkProcessorTest.cc
  1900. * test/PeerSessionResourceTest.cc
  1901. * test/UtilTest.cc
  1902. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1903. * Release 0.15.0
  1904. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1905. Reordered src files in POTFILES.in so that usage text appears first.
  1906. * po/POTFILES.in
  1907. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1908. Bump up version number to 0.15.0
  1909. * configure.ac
  1910. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1911. Added Bulgarian translation.
  1912. Updated Catalan, Spanish, French and Japanese translations.
  1913. Thanks to all translators.
  1914. * po/LINGUAS
  1915. * po/bg.po
  1916. * po/ca.po
  1917. * po/es.po
  1918. * po/fr.po
  1919. * po/ja.po
  1920. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1921. Updated feature list. Added libz for dependency section.
  1922. Added a description about unit testing using CppUnit.
  1923. * README
  1924. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1925. Added a test for libz. Quoted where it is necessary.
  1926. * build_test.sh
  1927. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1928. Added GZip to `Enabled Features' list.
  1929. * src/FeatureConfig.cc
  1930. * src/FeatureConfig.h
  1931. * test/FeatureConfigTest.cc
  1932. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1933. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  1934. the transfer has not yet started.
  1935. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  1936. * src/SegmentMan.cc
  1937. * src/SegmentMan.h
  1938. * test/SegmentManTest.cc
  1939. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1940. Cache last calculated average download/upload speed.
  1941. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  1942. cached value.
  1943. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  1944. * src/PeerStat.h
  1945. * src/SpeedCalc.cc
  1946. * src/SpeedCalc.h
  1947. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1948. Call parseUrl directly.
  1949. * src/Request.cc (resetUrl)
  1950. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1951. Supported absolute/relative path in Location header field.
  1952. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  1953. * src/HttpHeader.cc
  1954. * src/HttpHeader.h
  1955. * src/HttpResponse.cc
  1956. * src/HttpSkipResponseCommand.cc
  1957. * src/Request.cc
  1958. * test/HttpHeaderTest.cc
  1959. * test/HttpResponseTest.cc
  1960. * test/RequestTest.cc
  1961. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1962. Changed help text for --load-cookie option.
  1963. * doc/aria2c.1.txt
  1964. * src/usage_text.h
  1965. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1966. Regenerated test/Makefile.in to remove stale ChangeLog.
  1967. * test/Makefile.in
  1968. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1969. Updated po files.
  1970. * po/aria2c.pot
  1971. * po/*.po
  1972. * po/*.gmo
  1973. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1974. Bump up version number to 0.15.0b
  1975. * configure.ac
  1976. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1977. Externalize messages.
  1978. * src/RequestGroupMan.cc
  1979. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  1980. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1981. Use File::exists() instead of File::isFile() to allow non-regular file
  1982. such as block special files.
  1983. * src/AbstractDiskWriter.cc
  1984. * src/MultiDiskWriter.cc
  1985. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1986. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  1987. * src/gai_strerror.h
  1988. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1989. Fixed compile error. Thanks gknauf for the patch.
  1990. * src/asctime_r.c
  1991. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1992. Included asctime_r.h from a2time.h.
  1993. * src/a2time.h
  1994. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1995. Added a message "aria2 doesn't verify signature" to log message when
  1996. signature file is saved.
  1997. * src/RequestGroupMan.cc
  1998. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1999. Added the ability to save signature when download is completed if
  2000. signature is available. The filename of signature file is the path to
  2001. download file followed by ".sig". If it already exists, then signature
  2002. will not be saved.
  2003. * src/RequestGroupMan.cc
  2004. * src/Signature.cc
  2005. * test/SignatureTest.cc
  2006. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2007. Updated the descriptions for --bt-seed-unverified.
  2008. * doc/aria2c.1
  2009. * doc/aria2c.1.html
  2010. * doc/aria2c.1.txt
  2011. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2012. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  2013. that this is not going to verify files using piece hashes.
  2014. * src/HelpItemFactory.cc
  2015. * src/OptionHandlerFactory.cc
  2016. * src/RequestGroup.cc
  2017. * src/option_processing.cc
  2018. * src/prefs.cc
  2019. * src/prefs.h
  2020. * src/usage_text.h
  2021. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2022. Added the ability to retrieve signature from Metalink file.
  2023. A retrieved signature is stored in Signature class and it is held by
  2024. DownloadContext class. Note that aria2 doesn't verify signature.
  2025. * src/DownloadContext.cc
  2026. * src/DownloadContext.h
  2027. * src/Makefile.am
  2028. * src/Makefile.in
  2029. * src/Metalink2RequestGroup.cc
  2030. * src/MetalinkEntry.cc
  2031. * src/MetalinkEntry.h
  2032. * src/MetalinkParserController.cc
  2033. * src/MetalinkParserController.h
  2034. * src/MetalinkParserStateMachine.cc
  2035. * src/MetalinkParserStateMachine.h
  2036. * src/Signature.cc
  2037. * src/Signature.h
  2038. * src/SignatureMetalinkParserState.cc
  2039. * src/SignatureMetalinkParserState.h
  2040. * src/VerificationMetalinkParserState.cc
  2041. * src/VerificationMetalinkParserState.h
  2042. * test/Metalink2RequestGroupTest.cc
  2043. * test/MetalinkParserControllerTest.cc
  2044. * test/MetalinkProcessorTest.cc
  2045. * test/test.xml
  2046. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2047. Close DiskAdaptor after renaming file.
  2048. * src/RequestGroup.cc
  2049. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2050. Corrected indentation
  2051. * src/DefaultBtProgressInfoFile.cc
  2052. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2053. Moved the calls of std::ios::exceptions() inside of try-catch block
  2054. because if an error occurred in constructor of std::fstream, then
  2055. exception is thrown immediately when std::ios::exceptions() is called
  2056. which results unhandled exception and aria2c aborts.
  2057. * src/DefaultBtProgressInfoFile.cc
  2058. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2059. Added the test for the previous change in DefaultBtContext.cc
  2060. * test/DefaultBtContextTest.cc
  2061. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2062. Fixed the bug that causes infinite loop when the number of pieces are
  2063. fewer than allowed fast set size which is 10 by default.
  2064. * src/DefaultBtContext.cc
  2065. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2066. Updated the descriptions for -j, -s. Added --bt-seed.
  2067. * doc/aria2c.1
  2068. * doc/aria2c.1.html
  2069. * doc/aria2c.1.txt
  2070. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2071. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  2072. aria2 seeds previously downloaded files without validating piece hashs.
  2073. * src/HelpItemFactory.cc
  2074. * src/OptionHandlerFactory.cc
  2075. * src/RequestGroup.cc
  2076. * src/option_processing.cc
  2077. * src/prefs.cc
  2078. * src/prefs.h
  2079. * src/usage_text.h
  2080. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2081. Updated DESCRIPTION of man page.
  2082. * doc/aria2c.1
  2083. * doc/aria2c.1.html
  2084. * doc/aria2c.1.txt
  2085. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2086. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  2087. Don't define `struct addrinfo' when __sun is defined.
  2088. * src/getaddrinfo.h
  2089. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2090. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  2091. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  2092. second argument is of type `struct _stati64'. Otherwise it is defined as
  2093. `struct stat'.
  2094. * src/AbstractDiskWriter.cc
  2095. * src/File.cc
  2096. * src/File.h
  2097. * src/a2io.h
  2098. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2099. Fixed the compile error in hurd-i386
  2100. See the original bug report:
  2101. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  2102. * src/a2io.h
  2103. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2104. Code cleanup.
  2105. * src/PeerAbstractCommand.cc
  2106. * src/PeerAbstractCommand.h
  2107. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2108. Removed TransferEncoding.
  2109. * src/DownloadCommand.cc
  2110. * src/DownloadCommand.h
  2111. * src/HttpResponseCommand.cc
  2112. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2113. Updated po files.
  2114. * po/aria2c.pot
  2115. * po/*.po
  2116. * po/*.gmo
  2117. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2118. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  2119. * src/A2STR.cc
  2120. * src/A2STR.h
  2121. * src/ChunkedDecoder.cc
  2122. * src/ChunkedDecoder.h
  2123. * src/ChunkedEncoding.cc: Removed
  2124. * src/ChunkedEncoding.h: Removed
  2125. * src/DownloadCommand.cc
  2126. * src/DownloadCommand.h
  2127. * src/HttpDownloadCommand.cc
  2128. * src/HttpResponse.cc
  2129. * src/HttpResponse.h
  2130. * src/HttpResponseCommand.cc
  2131. * src/HttpSkipResponseCommand.cc
  2132. * src/HttpSkipResponseCommand.h
  2133. * src/Makefile.am
  2134. * src/TransferEncoding.h: Removed
  2135. * test/ChunkedDecoderTest.cc
  2136. * test/ChunkedEncodingTest.cc: Removed
  2137. * test/HttpResponseTest.cc
  2138. * test/Makefile.am
  2139. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2140. Use append instead of insert.
  2141. * src/GZipDecoder.cc
  2142. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2143. Updated doc
  2144. * src/Decoder.h
  2145. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2146. Updated usage text for -s option.
  2147. * src/usage_text.h
  2148. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2149. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  2150. * src/Request.cc
  2151. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2152. Cleaned up configure.ac.
  2153. * configure.ac
  2154. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2155. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  2156. AC_ARG_ENABLE.
  2157. * configure.ac
  2158. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2159. Added gzip, deflate decoding support in HTTP using libz. If compiled
  2160. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  2161. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  2162. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  2163. fly and writes decoded data to a local disk.
  2164. * README
  2165. * README.html
  2166. * configure.ac
  2167. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  2168. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  2169. * m4/libz.m4
  2170. * src/Decoder.h
  2171. * src/DownloadCommand.cc
  2172. * src/DownloadCommand.h
  2173. * src/Exception.h
  2174. * src/GZipDecoder.cc
  2175. * src/GZipDecoder.h
  2176. * src/HttpHeader.cc
  2177. * src/HttpHeader.h
  2178. * src/HttpRequest.cc
  2179. * src/HttpRequest.h
  2180. * src/HttpResponse.cc
  2181. * src/HttpResponse.h
  2182. * src/HttpResponseCommand.cc
  2183. * src/Makefile.am
  2184. * test/GZipDecoderTest.cc
  2185. * test/HttpRequestTest.cc
  2186. * test/HttpResponseTest.cc
  2187. * test/Makefile.am
  2188. * test/Makefile.in
  2189. * test/gzip_decode_test.gz
  2190. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2191. Clarified usage of -j option.
  2192. * src/usage_text.h
  2193. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2194. Disabled getting size from the response of RETR.
  2195. If SIZE command failed, then disable resuming and segmented downloading.
  2196. * src/FtpConnection.cc
  2197. * src/FtpConnection.h
  2198. * src/FtpNegotiationCommand.cc
  2199. * src/FtpNegotiationCommand.h
  2200. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2201. Use digits to find first byte of file size, which makes the intention
  2202. of the code clearer.
  2203. * src/FtpConnection.cc
  2204. Don't call validateTotalLength() when size is 0.
  2205. * src/FtpNegotiationCommand.cc
  2206. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2207. Updated po files.
  2208. * po/aria2c.pot
  2209. * po/*.gmo
  2210. * po/*.po
  2211. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2212. Clarified usage text for --split option.
  2213. * src/usage_text.h
  2214. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2215. Bump up version number to 0.15.0dev. "dev" means "development"
  2216. version, which means I started the development of the next release!
  2217. * src/configure.ac
  2218. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2219. If FTP server returns negative response with REST raw command and
  2220. requested range is not 0, throw exception. If requested range is 0,
  2221. continue download a file from 0 byte.
  2222. * src/FtpNegotiationCommand.cc
  2223. * src/FtpNegotiationCommand.h
  2224. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2225. Supported FTP server which don't recognize SIZE raw command.
  2226. If SIZE raw command is failed, aria2 will try to get file size
  2227. from the response of RETR raw command. If both attempts are failed,
  2228. then resuming and segmented downloading are disabled.
  2229. * src/FtpConnection.cc
  2230. * src/FtpConnection.h
  2231. * src/FtpNegotiationCommand.cc
  2232. * src/FtpNegotiationCommand.h
  2233. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2234. * Release 0.14.0+1
  2235. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2236. Bump up version number to 0.14.0+1
  2237. * src/configure.ac
  2238. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2239. Fixed the code that refers static member variable from non-static
  2240. context.
  2241. * src/DefaultPeerStorage.cc
  2242. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2243. * Release 0.14.0
  2244. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2245. Added build test script
  2246. * build_test.sh
  2247. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2248. Updated ja.po
  2249. * src/ja.po
  2250. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2251. Bump up version number to 0.14.0
  2252. * src/configure.ac
  2253. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2254. Updated ja.po and fr.po. Great thanks for french translators and
  2255. Sebastien WILLEMIJNS.
  2256. * po/fr.po
  2257. * po/ja.po
  2258. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2259. Added configure option to enable/disable epoll support.
  2260. * configure.ac
  2261. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2262. Updated man page.
  2263. * doc/aria2c.1.txt
  2264. * doc/aria2c.1
  2265. * doc/aria2c.1.html
  2266. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2267. Added missing default value '5' to the usage of --split option.
  2268. * src/HelpItemFactory.cc
  2269. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2270. Filled up pieces based on the number of missing blocks, rather than
  2271. simplay the number of piece * block length.
  2272. * src/BtRequestFactory.h
  2273. * src/DefaultBtInteractive.cc
  2274. * src/DefaultBtInteractive.h
  2275. * src/DefaultBtRequestFactory.cc
  2276. * src/DefaultBtRequestFactory.h
  2277. * src/Piece.cc
  2278. * src/Piece.h
  2279. * test/BitfieldManTest.cc
  2280. * test/DefaultBtRequestFactoryTest.cc
  2281. * test/MockBtRequestFactory.h
  2282. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2283. Made _epEvents a member variable.
  2284. * src/DownloadEngine.cc
  2285. * src/DownloadEngine.h
  2286. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2287. Cancel download if http redirect is bounded more than 20 times.
  2288. * src/AbstractCommand.cc
  2289. * src/HttpSkipResponseCommand.cc
  2290. * src/Request.cc
  2291. * src/Request.h
  2292. * test/RequestTest.cc
  2293. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2294. Fixed unhandled exception(removed keyword `new').
  2295. * src/SocketCore.cc (initEPOLL)
  2296. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2297. Removed visit(const MetaEntry*)
  2298. * src/MetaEntryVisitor.h:
  2299. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  2300. and made them virtual.
  2301. * src/BencodeVisitor.h
  2302. * src/BencodeVisitor.cc
  2303. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2304. Updated po files.
  2305. * po/aria2c.pot
  2306. * po/*.po
  2307. * po/*.gmo
  2308. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2309. Moved the call setWriteCheckSocket inside the previous clause to reduce
  2310. the number of socket to watch out.
  2311. * src/PeerInteractionCommand.cc
  2312. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2313. When there is not enough space in disk when writing a chunk of data,
  2314. aria2 now prints the message to the console to warn user and aborts
  2315. its download. Not all downloads are canceled because some downloads
  2316. may use another disk or partition. BUG#1640332
  2317. * src/AbstractDiskWriter.cc
  2318. * src/PeerAbstractCommand.cc
  2319. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  2320. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  2321. setHaltRequested(true) to cancel download.
  2322. * src/PeerInteractionCommand.h
  2323. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2324. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  2325. socket from int to sock_t as sockets are unsigned in Windows.
  2326. For AsyncNameResolver, DownloadEngine, I did additional modification
  2327. for the portion of the code changed according to epoll support.
  2328. I defined sock_t in a2netcompat.h to use sock_t without including
  2329. SocketCore.h.
  2330. * src/AsyncNameResolver.cc
  2331. * src/AsyncNameResolver.h
  2332. * src/DownloadEngine.cc
  2333. * src/DownloadEngine.h
  2334. * src/SocketCore.cc
  2335. * src/SocketCore.h
  2336. * src/a2netcompat.h
  2337. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2338. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  2339. changes in the patch were applied.
  2340. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  2341. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  2342. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  2343. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2344. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  2345. a2io.h and common.h were modified.
  2346. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  2347. MinGW.
  2348. * src/common.h: Changed off_t to 64 bit in MinGW.
  2349. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2350. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2351. only a2netcompat.h is modified.
  2352. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  2353. directives.
  2354. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2355. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2356. only gai_strerror.h is modified.
  2357. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  2358. winsock errors in MinGW.
  2359. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2360. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  2361. follow sources are applied.
  2362. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  2363. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  2364. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  2365. I included locale.h from Platform.cc.
  2366. * src/main.cc: Moved common setup/teardown code to Platform class.
  2367. * test/AllTest.cc: Use Platform class.
  2368. Set locale to C in AllTest.cc to prevent the messages to be localized.
  2369. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2370. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  2371. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  2372. * test/HttpRequestTest.cc: Casted to off_t where it should.
  2373. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2374. Applied Ross's aria2-0.13.2+1-mingw.patch and
  2375. aria2-0.13.2+1-mingw-2.patch.
  2376. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  2377. systems which don't have termious.h. I moved the directive inside of
  2378. if(isTTY) { ... clause so that line is wiped out without termious.h.
  2379. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  2380. anyway.
  2381. * src/asctime_r.h
  2382. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  2383. I added 2nd argument to the prototype declaration.
  2384. * src/StringFormat.cc: Get rid of vasprintf.
  2385. * src/getaddrinfo.h: Fixed constants.
  2386. * configure.ac: Added the check for asctime_r function.
  2387. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  2388. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2389. Added writable test for Socket when the sending message is in progress.
  2390. Usually the sending message is piece message. Without wriable check,
  2391. upload latency is dropped to more than 1sec.
  2392. * src/PeerInteractionCommand.cc
  2393. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2394. Create only requested files and files which shares a piece with
  2395. requested file in multi-torrent downloads. Directory structures are
  2396. also created in the same rule.
  2397. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  2398. DiskWriterEntry as in the previous implementation.
  2399. * src/MultiDiskWriter.cc
  2400. * src/MultiFileAllocationIterator.cc
  2401. * src/MultiFileAllocationIterator.h
  2402. * test/MultiFileAllocationIteratorTest.cc
  2403. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2404. Commented out -lprofiler
  2405. * src/Makefile.am
  2406. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2407. Bump up version number to 0.14.0b.
  2408. * src/configure.ac
  2409. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2410. Actively establish connection to peers in seeding, when peer cache
  2411. is not full and max upload speed limit is not reached.
  2412. * src/ActivePeerConnectionCommand.cc
  2413. * src/ActivePeerConnectionCommand.h
  2414. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2415. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  2416. to make room more fleshy, recently found peers.
  2417. Peer::_badConditionStartTime is not used anymore. Consider to remove
  2418. it.
  2419. * src/DefaultPeerStorage.cc
  2420. * test/DefaultPeerStorageTest.cc
  2421. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2422. Returns cached data only when the previous receiveHandshake() is called
  2423. with peek = true.
  2424. * src/PeerConnection.cc (receiveHandshake)
  2425. * src/PeerConnection.h (receiveHandshake)
  2426. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2427. Changed default value of -s option from 1 to 5.
  2428. Also max value of -s option is changed from 5 to 16.
  2429. * src/HelpItemFactory.cc
  2430. * src/OptionHandlerFactory.cc
  2431. * src/option_processing.cc
  2432. * src/usage_text.h
  2433. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2434. Changed -s options behavior. Now it means the number of connections
  2435. made simultaneously in each http/ftp download.
  2436. If 1 URL is specified, the behavior is the same with old implementation.
  2437. If -s N is given and more than N URLs are specified, first N URLs are
  2438. used and remaining URLs are used for backup. If less than N URLs are
  2439. specified, some of URLs are used more than once so that totally N
  2440. connections are made simultaneously.
  2441. * src/main.cc
  2442. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2443. Included missing iosfwd or ostream header.
  2444. * src/RequestGroupMan.cc
  2445. * src/TaggedItem.cc
  2446. * src/TaggedItem.h
  2447. * src/Util.cc
  2448. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2449. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  2450. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  2451. * src/HttpConnection.cc: Included missing sstream.
  2452. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2453. Added --bt-max-open-files option.
  2454. * src/DefaultPieceStorage.cc
  2455. * src/HelpItemFactory.cc
  2456. * src/MultiDiskAdaptor.cc
  2457. * src/MultiDiskAdaptor.h
  2458. * src/OptionHandlerFactory.cc
  2459. * src/option_processing.cc
  2460. * src/prefs.cc
  2461. * src/prefs.h
  2462. * src/usage_text.h
  2463. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2464. Fixed the bug that aria2 aborts when a path to a directory is given
  2465. in command-line.
  2466. * src/ProtocolDetector.cc
  2467. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2468. Limited the number files opened in each BitTorrent download. The default
  2469. value is 100. The option to change this value will be added.
  2470. * src/MultiDiskAdaptor.cc
  2471. * src/MultiDiskAdaptor.h
  2472. * src/MultiFileAllocationIterator.cc
  2473. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2474. Fixed the bug that HTTP downloads don't start with old libraries.
  2475. * src/HttpHeaderProcessor.cc
  2476. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2477. Use empty() instead of size() > 0.
  2478. * src/HttpConnection.cc
  2479. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2480. Drop connection if the incoming peer ID is the same with localhost's
  2481. one. The previous implementation drops connection when incoming peer's
  2482. IP address is the same with localhost's one.
  2483. * src/PeerListenCommand.cc
  2484. * src/DefaultBtInteractive.cc
  2485. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2486. Returns cached data without checking whether socket is readable
  2487. if the cache is available.
  2488. * src/PeerConnection.cc (receiveHandshake)
  2489. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2490. Included stdint.h
  2491. * src/common.h
  2492. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2493. Removed duplicate HAVE_GETTIMEOFDAY
  2494. * src/Makefile.am
  2495. * src/Makefile.in
  2496. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2497. Use interval as a minInterval when minInterval is not supplied.
  2498. * src/DefaultBtAnnounce.cc
  2499. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2500. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  2501. attempt is failed, then 2nd attempt get kicked out more quickly.
  2502. And it is now static const member of DefaultBtAnnounce.
  2503. * src/DefaultBtAnnounce.h
  2504. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2505. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  2506. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  2507. * src/ActivePeerConnectionCommand.cc
  2508. * src/BtConstants.h
  2509. * src/BtRuntime.h
  2510. * src/DHTGetPeersCommand.cc
  2511. * src/DefaultBtAnnounce.cc
  2512. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  2513. BtRuntime::MAX_PEERS.
  2514. * src/DefaultPeerStorage.h
  2515. * src/InitiatorMSEHandshakeCommand.cc
  2516. * src/PeerInitiateConnectionCommand.cc
  2517. * src/PeerInteractionCommand.cc
  2518. * src/PeerReceiveHandshakeCommand.cc
  2519. * src/TrackerWatcherCommand.cc
  2520. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2521. Always Connect to _numNewConnection
  2522. * src/ActivePeerConnectionCommand.cc
  2523. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2524. Made `begin' unsigned int.
  2525. * src/GrowSegment.h
  2526. * src/Piece.cc
  2527. * src/Piece.h
  2528. * src/PiecedSegment.cc
  2529. * src/PiecedSegment.h
  2530. * src/Segment.h
  2531. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2532. Calculate piece hash when data is arrived if the data is arrived in
  2533. order. This removes additional read operation for hash calculation.
  2534. If the data is arrived in out of order, the hash is calucated when the
  2535. piece is completed. This is the same behavior as the old implementation.
  2536. * src/BtPieceMessage.cc
  2537. * src/DefaultBtProgressInfoFile.cc
  2538. * src/DefaultPieceStorage.cc
  2539. * src/DownloadCommand.cc
  2540. * src/DownloadCommand.h
  2541. * src/DownloadEngine.cc
  2542. * src/GrowSegment.cc
  2543. * src/GrowSegment.h
  2544. * src/Piece.cc
  2545. * src/Piece.h
  2546. * src/PiecedSegment.cc
  2547. * src/PiecedSegment.h
  2548. * src/Segment.h
  2549. * test/PieceTest.cc
  2550. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2551. Try to keep the ordering of outgoing piece message.
  2552. * src/DefaultBtMessageDispatcher.cc
  2553. (DefaultBtMessageDispatcher::sendMessages)
  2554. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2555. Fixed busy loop when error/hup epoll events occur.
  2556. * src/AbstractCommand.cc
  2557. * src/PeerAbstractCommand.cc
  2558. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2559. Added --bt-request-peer-speed-limit option, which was a constant
  2560. SLOW_SPEED_THRESHOLD.
  2561. * src/ActivePeerConnectionCommand.cc
  2562. * src/ActivePeerConnectionCommand.h
  2563. * src/BtConstants.h
  2564. * src/HelpItemFactory.cc
  2565. * src/OptionHandlerFactory.cc
  2566. * src/PeerReceiveHandshakeCommand.cc
  2567. * src/option_processing.cc
  2568. * src/prefs.cc
  2569. * src/prefs.h
  2570. * src/usage_text.h
  2571. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2572. Removed repeated call of getTopDirPath(). Instead, call it once and
  2573. cache the result.
  2574. * src/MultiDiskAdaptor.cc
  2575. * src/MultiDiskAdaptor.h
  2576. (mkdir, openFile, initAndOpenFile, openExistingFile)
  2577. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2578. Fixed compile error on debian etch.
  2579. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  2580. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  2581. it is undefined.
  2582. * src/Util.cc (ULLONG_MAX)
  2583. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2584. Added epoll support. Use epoll if it is available. If not, use select.
  2585. When async dns is enabled in compile time, epoll support is enabled
  2586. only when aria2 is built with c-ares. This condition statement is
  2587. defined in a2io.h.
  2588. Currently aria2 supports both c-ares and ares, but ares is maintained
  2589. for quite a while and debian already has c-ares package, ares support
  2590. will be dropped in the future version.
  2591. * configure.ac
  2592. * src/AbstractCommand.cc
  2593. * src/AsyncNameResolver.cc
  2594. * src/AsyncNameResolver.h
  2595. * src/Command.cc
  2596. * src/Command.h
  2597. * src/DownloadEngine.cc
  2598. * src/DownloadEngine.h
  2599. * src/PeerAbstractCommand.cc
  2600. * src/SocketCore.cc
  2601. * src/SocketCore.h
  2602. * src/a2io.h
  2603. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2604. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  2605. directive.
  2606. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2607. Do not do write operation to /dev/null file.
  2608. * src/LogFactory.cc
  2609. * src/SimpleLogger.cc
  2610. Replaced vasprintf with vsnprintf
  2611. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2612. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2613. * src/BtRequestMessage.cc
  2614. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  2615. for segmentation fault caused by previous commit.
  2616. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2617. Reduced the usage of gettimeofday().
  2618. * src/DefaultBtMessageDispatcher.cc
  2619. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  2620. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2621. * src/RequestSlot.cc
  2622. * src/RequestSlot.h
  2623. (RequestSlot::isTimeout)
  2624. Made RequestSlot have a reference to Piece object to avoid find
  2625. Piece repeatedly.
  2626. * src/DefaultBtMessageDispatcher.cc
  2627. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2628. * src/RequestSlot.cc
  2629. * src/RequestSlot.h
  2630. (RequestSlot::getPiece)
  2631. * test/DefaultBtMessageDispatcherTest.cc
  2632. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2633. * src/TimeA2.cc
  2634. * src/TimeA2.h
  2635. (Time::difference): New function.
  2636. (Time::elapsed): Done optimization.
  2637. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2638. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  2639. directive.
  2640. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2641. * src/option_processing.cc: Added missing `defined' keyword to #if
  2642. directive.
  2643. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Bump up version number to 0.13.2+1
  2645. * src/configure.ac
  2646. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2647. Refactored broken outstanding piece handling.
  2648. * src/DefaultPieceStorage.cc
  2649. * src/DefaultPieceStorage.h
  2650. * src/Piece.cc
  2651. * src/Piece.h
  2652. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2653. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  2654. name collision of static variable and predefined macro.
  2655. * src/BtContext.cc
  2656. * src/BtContext.h
  2657. * src/CookieBoxFactory.cc
  2658. * src/CookieBoxFactory.h
  2659. * src/CookieParser.cc
  2660. * src/CookieParser.h
  2661. * src/DefaultBtContext.cc
  2662. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2663. * src/RequestGroup.cc
  2664. (RequestGroup::createInitialCommand): Use empty() instead of size().
  2665. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2666. * Release 0.13.2
  2667. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2668. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  2669. * po/fr.po
  2670. * po/ja.po
  2671. * po/aria2c.pot
  2672. * po/*.po
  2673. * po/*.gmo
  2674. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2675. Bump up version number to 0.13.2
  2676. * src/configure.ac
  2677. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2678. Refactord.
  2679. * src/RequestGroupMan.cc
  2680. (removeStoppedGroup)
  2681. (fillRequestGroupFromReserver)
  2682. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2683. Fixed compile error on Ubuntu.
  2684. * src/BtPieceMessage.cc
  2685. * src/MessageDigestHelper.cc
  2686. * src/Util.cc
  2687. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2688. Fixed compile error when configured with --disable-bittorrent
  2689. * test/DownloadHandlerFactoryTest.cc
  2690. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2691. Done make update-po
  2692. * po/aria2c.pot
  2693. * po/*.po
  2694. * po/*.gmo
  2695. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2696. Bump up version number to 0.13.2rc.
  2697. * src/configure.ac
  2698. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2699. Made option name bold. Updated SYNOPSIS to make it more readable.
  2700. * doc/aria2c.1.txt
  2701. * doc/aria2c.1
  2702. * doc/aria2c.1.html
  2703. * src/version_usage.cc
  2704. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2705. Refactored. Use std::string instead of size and char*.
  2706. * Data.cc
  2707. * Data.h
  2708. * test/Data.cc
  2709. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2710. Added trimSelf(). Rewritten trim() to use trimSelf().
  2711. * Util.cc
  2712. * Util.h
  2713. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2714. * src/ChunkChecksum.h (getChecksum): Return const reference.
  2715. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2716. Fixed compile error when configured with --disable-metalink.
  2717. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  2718. * test/FeatureConfigTest.cc
  2719. * test/DownloadHandlerFactoryTest.cc
  2720. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2721. Fixed compile error when configured with --without-gnutls
  2722. --without-openssl
  2723. * src/main.cc
  2724. * test/DefaultBtProgressInfoFileTest.cc
  2725. * test/SegmentManTest.cc
  2726. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2727. Fixed compile error with OpenSSL.
  2728. * src/IteratableChunkChecksumValidator.cc
  2729. * src/LibsslDHKeyExchange.h
  2730. * src/MessageDigestHelper.cc
  2731. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2732. Revert the default value of --max-concurrent-downloads to 5.
  2733. Revert the default value of --metalink-servers to 5.
  2734. Man pages was also updated.
  2735. * src/option_processing.cc
  2736. * doc/aria2c.1.txt
  2737. * doc/aria2c.1.html
  2738. * doc/aria2c.1
  2739. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2740. Returns const reference:
  2741. DownloadContext::getPieceHash, DownloadContext::getName,
  2742. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  2743. BtContext::getInfoHashAsString,
  2744. * src/BtContext.h
  2745. * src/DefaultBtContext.cc
  2746. * src/DefaultBtContext.h
  2747. * src/DownloadContext.h
  2748. * src/SingleFileDownloadContext.h
  2749. * test/MockBtContext.h
  2750. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2751. * src/RequestGroup.h (getDir): Removed.
  2752. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2753. Returns const reference. The internal urlencode function was optimized
  2754. a little bit.
  2755. * src/Request.cc
  2756. * src/Request.h
  2757. * src/HttpRequest.cc
  2758. * src/HttpRequest.h
  2759. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2760. Defined option name and possible values as std::string to reduce
  2761. temporary string object creation in runtime.
  2762. * src/HelpItemFactory.cc
  2763. * src/LogFactory.cc
  2764. * src/Option.cc
  2765. * src/OptionHandlerFactory.cc
  2766. * src/option_processing.cc
  2767. * src/prefs.cc
  2768. * src/prefs.h
  2769. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2770. Return const reference.
  2771. * src/DownloadHandlerConstants.cc
  2772. * src/DownloadHandlerConstants.h
  2773. (getMetalinkExtensions)
  2774. (getMetalinkContentTypes)
  2775. (getBtExtensions)
  2776. (getBtContentTypes)
  2777. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2778. * src/HttpHeader.cc (get): Rewritten.
  2779. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2780. Make HttpHeader::getFirst(...) return const reference.
  2781. * src/HttpHeader.cc
  2782. * src/HttpHeader.h
  2783. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2784. Use Option::getAsBool(...) instead of Option::get(...) and compare
  2785. it with V_TRUE.
  2786. * src/DefaultPieceStorage.cc
  2787. * src/DownloadCommand.cc
  2788. * src/FtpNegotiationCommand.cc
  2789. * src/HttpRequest.cc
  2790. * src/InitiateConnectionCommand.cc
  2791. * src/RequestGroup.cc
  2792. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2793. Made Option::get(...) return const reference of std::string.
  2794. * src/Option.cc
  2795. * src/Option.h
  2796. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2797. Replaced std:copy with insert.
  2798. * src/DefaultBtMessageDispatcher.cc
  2799. * src/DefaultPieceStorage.cc
  2800. * src/DownloadEngineFactory.cc
  2801. * src/RequestGroup.cc
  2802. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Included SocketCore.h to fix compiler warning.
  2804. * src/InitiateConnectionCommand.cc
  2805. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2806. Put piece selection strategy algorithm to RarestPieceSelector class,
  2807. Added a switch to choose whether randomized selection so that unit
  2808. tests emit same results in, possibly, win32.
  2809. * src/DefaultPieceStorage.cc
  2810. * src/DefaultPieceStorage.h
  2811. * src/RarestPieceSelector.cc
  2812. * src/RarestPieceSelector.h
  2813. * test/DefaultPieceStorageTest.cc
  2814. * test/RarestPieceSelectorTest.cc
  2815. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2816. Don't pool connection if HTTP proxy is enabled.
  2817. * src/FtpFinishDownloadCommand.cc
  2818. * src/FtpNegotiationCommand.cc
  2819. * src/HttpSkipResponseCommand.cc
  2820. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2821. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  2822. * src/AbstractCommand.cc
  2823. * src/AbstractCommand.h
  2824. * src/ActivePeerConnectionCommand.cc
  2825. * src/FtpInitiateConnectionCommand.cc
  2826. * src/HttpInitiateConnectionCommand.cc
  2827. * src/InitiateConnectionCommandFactory.cc
  2828. * src/PeerAbstractCommand.cc
  2829. * src/PeerAbstractCommand.h
  2830. * src/PeerInitiateConnectionCommand.cc
  2831. * src/TrackerWatcherCommand.cc
  2832. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2833. Sort RequestSlot in ascending order and manipulate them using
  2834. lower_bound.
  2835. * src/DefaultBtMessageDispatcher.cc
  2836. * src/DefaultBtMessageDispatcher.h
  2837. (getMessageQueue): Added const qualifier.
  2838. (getRequestSlots): Added const qualifier.
  2839. (sendMessages): Use empty() instead of size().
  2840. (doCancelSendingPieceAction): Use HandleEvent object.
  2841. (doAbortOutstandingRequestAction): Rewritten.
  2842. (doChokedAction): Rewritten.
  2843. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  2844. (isOutstandingRequest): Rewritten.
  2845. (getOutstandingRequest): Rewritten.
  2846. (removeOutstandingRequest): Rewritten.
  2847. (addOutstandingRequest): Rewritten.
  2848. * src/RequestSlot.cc
  2849. * src/RequestSlot.h
  2850. (operator=): Rewritten.
  2851. (operator!=): New function.
  2852. (operator<): New function.
  2853. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2854. * src/DefaultBtRequestFactory.cc
  2855. (doChokedAction): Rewritten.
  2856. (removeCompletedPiece): Rewritten.
  2857. (removeTargetPiece): Rewritten.
  2858. (createRequestMessages): Added the debug log.
  2859. (createRequestMessagesOnEndGame: Added the debug log.
  2860. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2861. Added the debug log message.
  2862. * src/BtPieceMessage.cc (doReceivedAction)
  2863. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2864. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  2865. used lower_bound to process them rather than linear search.
  2866. * src/DHTPeerAnnounceStorage.cc
  2867. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2868. Call subtractPieceStats from ~PeerInteractionCommand only when the
  2869. peer has at least one completed piece.
  2870. * src/Peer.cc
  2871. * src/Peer.h
  2872. * src/PeerInteractionCommand.cc
  2873. * src/PeerSessionResource.cc
  2874. * src/PeerSessionResource.h
  2875. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2876. Removed unnecessary sorting
  2877. * src/DefaultPieceStorage (DefaultPieceStorage)
  2878. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2879. Rewritten the portion of the code that mangaes allowed fast indexes.
  2880. * src/PeerSessionResource.cc
  2881. * src/PeerSessionResource.h
  2882. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2883. Removed the invalid string including '\r' from ru.po and
  2884. did make update-po.
  2885. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2886. Added --log-level and --summary-interval to man page.
  2887. * doc/aria2c.1.txt
  2888. * doc/aria2c.1.html
  2889. * doc/aria2c.1
  2890. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2891. Added --log-level option to specify log level. Log messages under
  2892. the specified level are not output. Default value is `debug'.
  2893. * src/HelpItemFactory.cc
  2894. * src/LogFactory.cc
  2895. * src/LogFactory.h
  2896. * src/Logger.h
  2897. * src/OptionHandlerFactory.cc
  2898. * src/SimpleLogger.cc
  2899. * src/SimpleLogger.h
  2900. * src/main.cc
  2901. * src/option_processing.cc
  2902. * src/prefs.h
  2903. * src/usage_text.h
  2904. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2905. Print download progress summary of all parallel downloads in specified
  2906. interval, default 60 secs. While aria2 could download several files
  2907. in parallel (see -j option), it displayed just first download progress,
  2908. and the other downloads are hidden from the users. This new feature
  2909. prints all downloads currently in-progress to the console so that you
  2910. can check the status of all downloads. The interval can be adjusted
  2911. by --summary-interval option.
  2912. The progress readout is now cut so that all fits in the one line of
  2913. console.
  2914. * src/ConsoleStatCalc.cc
  2915. * src/ConsoleStatCalc.h
  2916. * src/HelpItemFactory.cc
  2917. * src/OptionHandlerFactory.cc
  2918. * src/RequestGroupMan.cc
  2919. * src/RequestGroupMan.h
  2920. * src/main.cc
  2921. * src/option_processing.cc
  2922. * src/prefs.h
  2923. * src/usage_text.h
  2924. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2925. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  2926. * src/DownloadEngine.cc (DownloadEngine)
  2927. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2928. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  2929. defined.
  2930. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  2931. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2932. Use erase+lower_bound+insert instead of sort.
  2933. * src/DefaultPieceStorage.cc (addPieceStats)
  2934. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2935. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  2936. * src/A2STR.cc
  2937. * src/A2STR.h
  2938. * src/OptionParser.cc (parse)
  2939. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. Defined fake filename `[tracker.announce]' as static const std::string.
  2941. * src/TrackerWatcherCommand.cc (createRequestGroup)
  2942. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2943. Defined default filename `index.html' as static const std::string
  2944. * src/SingleFileDownloadContext.cc
  2945. * src/SingleFileDownloadContext.h
  2946. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2947. Defined "[MEMORY]" as static const std::string.
  2948. * src/MemoryBufferPreDownloadHandler.cc (execute)
  2949. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2950. Defined control file's version number as static const std::string.
  2951. * src/DefaultBtProgressInfoFile.cc
  2952. * src/DefaultBtProgressInfoFile.h
  2953. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2954. Use Request::METHOD_GET
  2955. * src/RequestGroup.cc (createNextCommandWithAdj)
  2956. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2957. Defined "OK", "ERR", "INPR" as static const std::string
  2958. * src/RequestGroupMan.cc (showDownloadResults)
  2959. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2960. Defined default client used in extended handshake as static const
  2961. std::string
  2962. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  2963. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2964. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  2965. * src/HttpConnection.cc (eraseConfidentialInfo)
  2966. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2967. Defined default ftp user and password as static const std::string
  2968. * src/AuthConfigFactory.cc
  2969. * src/AuthConfigFactory.h
  2970. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2971. Defined strings used in netrc as static const std::string
  2972. * src/Netrc.cc
  2973. * src/Netrc.h
  2974. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2975. Defined HTTP status as static const std::string
  2976. * src/AbstractProxyResponseCommand.cc
  2977. * src/HttpHeader.cc
  2978. * src/HttpHeader.h
  2979. * src/HttpResponse.cc
  2980. * src/HttpResponseCommand.cc
  2981. * src/HttpSkipResponseCommand.cc
  2982. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. Defined "\r\n", "A", "I" as static const std::string
  2984. * src/A2STR.cc
  2985. * src/A2STR.h
  2986. * src/FtpConnection.cc
  2987. * src/FtpConnection.h
  2988. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2989. Added COLON_C(".") and used it in Request::parseUrl()
  2990. * src/A2STR.cc
  2991. * src/A2STR.h
  2992. * src/Request.cc (parseUrl)
  2993. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2994. Changed the type of padName from `const std::string&' to `const char*'.
  2995. * src/MSEHandshake.cc (verifyPadLength)
  2996. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2997. Defined "sha1" as static const std::string.
  2998. * src/MetalinkParserController.cc
  2999. * src/MetalinkParserController.h
  3000. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3001. Defined message digest algorithm name as static const std::string
  3002. * src/DHTTokenTracker.cc
  3003. * src/DHTUtil.cc
  3004. * src/DefaultBtContext.cc
  3005. * src/MSEHandshake.cc
  3006. * src/MessageDigestHelper.cc
  3007. * src/Peer.cc
  3008. * src/messageDigest.cc
  3009. * src/messageDigest.h
  3010. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3011. Made string literals used in SAX parser static const std::string.
  3012. * src/FileMetalinkParserState.cc
  3013. * src/FileMetalinkParserState.h
  3014. * src/FilesMetalinkParserState.cc
  3015. * src/FilesMetalinkParserState.h
  3016. * src/InitialMetalinkParserState.cc
  3017. * src/InitialMetalinkParserState.h
  3018. * src/MetalinkMetalinkParserState.cc
  3019. * src/MetalinkMetalinkParserState.h
  3020. * src/PiecesMetalinkParserState.cc
  3021. * src/PiecesMetalinkParserState.h
  3022. * src/ResourcesMetalinkParserState.cc
  3023. * src/ResourcesMetalinkParserState.h
  3024. * src/VerificationMetalinkParserState.cc
  3025. * src/VerificationMetalinkParserState.h
  3026. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  3028. * src/A2STR.cc
  3029. * src/A2STR.h
  3030. * src/File.cc
  3031. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3032. Defined static const std::string IP("ip"), PORT("port") and use them
  3033. instead of string literals.
  3034. * src/DefaultPeerListProcessor.cc
  3035. * src/DefaultPeerListProcessor.h
  3036. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3037. Made string literals for torrent file processing static const
  3038. std::string.
  3039. * src/BtContext.cc
  3040. * src/BtContext.h
  3041. * src/DefaultBtContext.cc
  3042. * src/DefaultBtContext.h
  3043. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3044. Made string literal for tracker response static const std::string
  3045. * src/BtAnnounce.cc
  3046. * src/BtAnnounce.h
  3047. * src/DefaultBtAnnounce.cc
  3048. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3049. Use DHTMessage::T instead of "t".
  3050. * src/DHTMessageTracker.cc (messageArrived)
  3051. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3052. Made keyName static const. Made trimmed charset static const
  3053. std::string.
  3054. * src/Util.cc (getContentDispositionFilename)
  3055. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3056. Made USER_AGENT const. Made "/" static const std::string.
  3057. * src/A2STR.cc
  3058. * src/A2STR.h
  3059. * src/HttpRequest.cc
  3060. * src/HttpRequest.h
  3061. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3062. Made string listeral to static const std::string:
  3063. "Content-Range", "Content-Length"
  3064. * src/HttpHeader.cc
  3065. * src/HttpHeader.h
  3066. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3067. Made string listeral to static const std::string.
  3068. * src/HttpConnection.cc
  3069. * src/HttpHeader.cc
  3070. * src/HttpHeader.h
  3071. * src/HttpResponse.cc
  3072. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3073. Made string listeral to static const std::string.
  3074. * src/A2STR.cc
  3075. * src/A2STR.h
  3076. * src/SimpleLogger.cc
  3077. * src/SimpleLogger.h
  3078. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3079. Made string literal to static const std::string.
  3080. Rewritten CookieParser::setField.
  3081. * src/A2STR.cc
  3082. * src/A2STR.h
  3083. * src/CookieBoxFactory.cc
  3084. * src/CookieBoxFactory.h
  3085. * src/CookieParser.cc
  3086. * src/CookieParser.h
  3087. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3088. Made string literal to static const std::string
  3089. * src/DHTAbstractMessage.cc
  3090. * src/DHTAnnouncePeerMessage.cc
  3091. * src/DHTAnnouncePeerMessage.h
  3092. * src/DHTAnnouncePeerReplyMessage.cc
  3093. * src/DHTAnnouncePeerReplyMessage.h
  3094. * src/DHTFindNodeMessage.cc
  3095. * src/DHTFindNodeMessage.h
  3096. * src/DHTFindNodeReplyMessage.cc
  3097. * src/DHTFindNodeReplyMessage.h
  3098. * src/DHTGetPeersMessage.cc
  3099. * src/DHTGetPeersMessage.h
  3100. * src/DHTGetPeersReplyMessage.cc
  3101. * src/DHTGetPeersReplyMessage.h
  3102. * src/DHTMessage.cc
  3103. * src/DHTMessage.h
  3104. * src/DHTMessageFactoryImpl.cc
  3105. * src/DHTMessageReceiver.cc
  3106. * src/DHTPingMessage.cc
  3107. * src/DHTPingMessage.h
  3108. * src/DHTPingReplyMessage.cc
  3109. * src/DHTPingReplyMessage.h
  3110. * src/DHTQueryMessage.cc
  3111. * src/DHTQueryMessage.h
  3112. * src/DHTResponseMessage.cc
  3113. * src/DHTResponseMessage.h
  3114. * src/DHTUnknownMessage.cc
  3115. * src/DHTUnknownMessage.h
  3116. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3117. Made string literal to static const std::string
  3118. * src/BtChokeMessage.cc (toString)
  3119. * src/BtHaveAllMessage.cc (toString)
  3120. * src/BtHaveNoneMessage.cc (toString)
  3121. * src/BtInterestedMessage.cc (toString)
  3122. * src/BtNotInterestedMessage.cc (toString)
  3123. * src/BtUnchokeMessage.cc (toString)
  3124. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3125. Replaced "" with static const variable A2STR::NIL.
  3126. Replaced string comparison against "" with std::string::empty().
  3127. Added PROTO_* to Request class and use them as a protocol string
  3128. constant.
  3129. Made "started", "stopped", "completed" static const variable in
  3130. AnnounceList class.
  3131. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3132. Updated translations. Great thanks to translators.
  3133. * po/ca.po
  3134. * po/de.po
  3135. * po/fr.po
  3136. * po/it.po
  3137. * po/ja.po
  3138. * po/ru.po
  3139. * po/zh_CN.po
  3140. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3141. Updated man page; categorized options and fixed typo.
  3142. * doc/aria2c.1.txt
  3143. * doc/aria2c.1.html
  3144. * doc/aria2c.1
  3145. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3146. Removed const ref
  3147. * src/MetalinkEntry.cc (AddProtocolPreference)
  3148. * src/RequestGroup.cc (FindServerHostByHostname)
  3149. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3150. Rewritten Accept-Features handling.
  3151. * src/HttpRequestCommand.cc (createHttpRequest)
  3152. * src/a2functional.h
  3153. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3154. Changed method signature:
  3155. DHTAbstractNodeLookupTask::toEntries
  3156. * src/DHTAbstractNodeLookupTask.cc
  3157. * src/DHTAbstractNodeLookupTask.h
  3158. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3159. Changed method signature:
  3160. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  3161. * src/BtContext.h
  3162. * src/DefaultBtContext.cc
  3163. * src/DefaultBtContext.h
  3164. * src/DefaultBtInteractive.cc
  3165. * test/DefaultBtContextTest.cc
  3166. * test/MockBtContext.h
  3167. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3168. Changed method signature:
  3169. MultiFileAllocationIterator::makeDiskWriterEntries
  3170. * src/MultiFileAllocationIterator.cc
  3171. * src/MultiFileAllocationIterator.h
  3172. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3173. Changed method sinature:
  3174. MetalinkEntry::toFileEntry,
  3175. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  3176. Metalinker::queryEntry
  3177. * src/Metalink2RequestGroup.cc
  3178. * src/MetalinkEntry.cc
  3179. * src/MetalinkEntry.h
  3180. * src/MetalinkHelper.cc
  3181. * src/MetalinkHelper.h
  3182. * src/Metalinker.cc
  3183. * src/Metalinker.h
  3184. * src/main.cc
  3185. * test/MetalinkHelperTest.cc
  3186. * test/MetalinkerTest.cc
  3187. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3188. Changed method sinature:
  3189. RequestGroup::getURIs
  3190. * src/RequestGroup.cc
  3191. * src/RequestGroup.h
  3192. * test/Metalink2RequestGroupTest.cc
  3193. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3194. Changed method signature:
  3195. PeerListProcessor::extractPeer
  3196. * src/CompactPeerListProcessor.cc
  3197. * src/CompactPeerListProcessor.h
  3198. * src/DefaultBtAnnounce.cc
  3199. * src/DefaultPeerListProcessor.cc
  3200. * src/DefaultPeerListProcessor.h
  3201. * src/DelegatingPeerListProcessor.cc
  3202. * src/DelegatingPeerListProcessor.h
  3203. * src/PeerListProcessor.h
  3204. * src/UTPexExtensionMessage.cc
  3205. * test/DefaultPeerListProcessorTest.cc
  3206. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3207. Changed method signature:
  3208. BtRequestFactory::createRequestMessages,
  3209. BtRequestFactory::createRequestMessagesOnEndGame
  3210. * src/BtRequestFactory.h
  3211. * src/DefaultBtInteractive.cc
  3212. * src/DefaultBtRequestFactory.cc
  3213. * src/DefaultBtRequestFactory.h
  3214. * test/DefaultBtRequestFactoryTest.cc
  3215. * test/MockBtRequestFactory.h
  3216. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3217. Changed method signature:
  3218. PieceStorage::getInFlightPieces
  3219. * src/DefaultBtProgressInfoFile.cc
  3220. * src/DefaultPieceStorage.cc
  3221. * src/DefaultPieceStorage.h
  3222. * src/PieceStorage.h
  3223. * src/UnknownLengthPieceStorage.cc
  3224. * src/UnknownLengthPieceStorage.h
  3225. * test/DefaultBtProgressInfoFileTest.cc
  3226. * test/MockPieceStorage.h
  3227. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3228. Changed method signature:
  3229. PostDownloadHandler::getNextRequestGroups
  3230. Metalink2RequestGroup::generate
  3231. RequestGroup::postDownloadProcessing
  3232. * src/BtPostDownloadHandler.cc
  3233. * src/BtPostDownloadHandler.h
  3234. * src/Metalink2RequestGroup.cc
  3235. * src/Metalink2RequestGroup.h
  3236. * src/MetalinkPostDownloadHandler.cc
  3237. * src/MetalinkPostDownloadHandler.h
  3238. * src/PostDownloadHandler.h
  3239. * src/RequestGroup.cc
  3240. * src/RequestGroup.h
  3241. * src/RequestGroupMan.cc
  3242. * src/main.cc
  3243. * test/BtPostDownloadHandlerTest.cc
  3244. * test/Metalink2RequestGroupTest.cc
  3245. * test/MetalinkPostDownloadHandlerTest.cc
  3246. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3247. Rewritten AccRequestGroup
  3248. * src/main.cc
  3249. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3250. Rewritten.
  3251. * src/TaggedItem.cc (toTagString)
  3252. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3253. Rewritten Accept-Features handling.
  3254. * src/HttpRequestCommand.cc (createHttpRequest)
  3255. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3256. Rewritten accept types handling.
  3257. * HttpRequest.cc (createRequest)
  3258. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3259. Rewritten
  3260. * src/FeatureConfig.cc (featureSummary)
  3261. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3262. Changed method signature:
  3263. PeerStorage::getActivePeers
  3264. * src/DHTPeerAnnounceEntry.cc
  3265. * src/DefaultPeerStorage.cc
  3266. * src/DefaultPeerStorage.h
  3267. * src/PeerStorage.h
  3268. * test/DefaultPeerStorageTest.cc
  3269. * test/MockPeerStorage.h
  3270. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Changed method signature:
  3272. DHTPeerAnnounceStorage::getPeers,
  3273. DHTPeerAnnounceEntry::getPeers
  3274. * src/DHTGetPeersMessage.cc
  3275. * src/DHTPeerAnnounceEntry.cc
  3276. * src/DHTPeerAnnounceEntry.h
  3277. * src/DHTPeerAnnounceStorage.cc
  3278. * src/DHTPeerAnnounceStorage.h
  3279. * test/DHTAnnouncePeerMessageTest.cc
  3280. * test/DHTPeerAnnounceEntryTest.cc
  3281. * test/DHTPeerAnnounceStorageTest.cc
  3282. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3283. Changed method signature:
  3284. NameResolver::resolve
  3285. * src/DHTEntryPointNameResolveCommand.cc
  3286. * src/InitiateConnectionCommand.cc
  3287. * src/NameResolver.cc
  3288. * src/NameResolver.h
  3289. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3290. Changed method signature:
  3291. PieceStorage::getAdvertisedPieceIndexes
  3292. * src/DefaultBtInteractive.cc
  3293. * src/DefaultPieceStorage.cc
  3294. * src/DefaultPieceStorage.h
  3295. * src/PieceStorage.h
  3296. * src/UnknownLengthPieceStorage.h
  3297. * test/MockPieceStorage.h
  3298. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3299. Changed method signature:
  3300. SegmentMan::getInFlightSegment
  3301. * src/AbstractCommand.cc
  3302. * src/SegmentMan.cc
  3303. * src/SegmentMan.h
  3304. * test/SegmentManTest.cc
  3305. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3306. Changed method signature:
  3307. DHTAbstractNodeLookupTask::getNodesFromMessage
  3308. * src/DHTAbstractNodeLookupTask.cc
  3309. * src/DHTAbstractNodeLookupTask.h
  3310. * src/DHTNodeLookupTask.cc
  3311. * src/DHTNodeLookupTask.h
  3312. * src/DHTPeerLookupTask.cc
  3313. * src/DHTPeerLookupTask.h
  3314. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3315. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  3316. * src/AbstractCommand.cc
  3317. * src/BtCheckIntegrityEntry.cc
  3318. * src/BtCheckIntegrityEntry.h
  3319. * src/BtFileAllocationEntry.cc
  3320. * src/BtFileAllocationEntry.h
  3321. * src/BtSetup.cc
  3322. * src/BtSetup.h
  3323. * src/CheckIntegrityCommand.cc
  3324. * src/CheckIntegrityEntry.h
  3325. * src/ChecksumCheckIntegrityEntry.cc
  3326. * src/ChecksumCheckIntegrityEntry.h
  3327. * src/DHTSetup.cc
  3328. * src/DHTSetup.h
  3329. * src/DownloadEngine.cc
  3330. * src/FileAllocationCommand.cc
  3331. * src/FileAllocationEntry.h
  3332. * src/RequestGroup.cc
  3333. * src/RequestGroup.h
  3334. * src/RequestGroupMan.cc
  3335. * src/RequestGroupMan.h
  3336. * src/StreamCheckIntegrityEntry.cc
  3337. * src/StreamCheckIntegrityEntry.h
  3338. * src/StreamFileAllocationEntry.cc
  3339. * src/StreamFileAllocationEntry.h
  3340. * src/TrackerWatcherCommand.cc
  3341. * src/a2functional.h
  3342. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3343. Changed method signature:
  3344. BNode::findClosestKNodes, BNode:: enumerateBucket,
  3345. DHTBucket::getGoodNodes,
  3346. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  3347. * src/BNode.cc
  3348. * src/BNode.h
  3349. * src/DHTAbstractNodeLookupTask.cc
  3350. * src/DHTAutoSaveCommand.cc
  3351. * src/DHTBucket.cc
  3352. * src/DHTBucket.h
  3353. * src/DHTBucketRefreshTask.cc
  3354. * src/DHTFindNodeMessage.cc
  3355. * src/DHTGetPeersMessage.cc
  3356. * src/DHTRoutingTable.cc
  3357. * src/DHTRoutingTable.h
  3358. * test/BNodeTest.cc
  3359. * test/DHTBucketTest.cc
  3360. * test/DHTRoutingTableTest.cc
  3361. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3362. In piece selection functions, Pass std::deque<...> by reference rather
  3363. than returning it.
  3364. * src/BitfieldMan.cc
  3365. * src/BitfieldMan.h
  3366. * src/DefaultBtRequestFactory.cc
  3367. * src/DefaultPieceStorage.cc
  3368. * src/Piece.cc
  3369. * src/Piece.h
  3370. * test/BitfieldManTest.cc
  3371. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3372. Implemented rarest piece first piece selection strategy.
  3373. * src/AbstractBtMessage.cc
  3374. * src/AbstractBtMessage.h
  3375. * src/BitfieldMan.cc
  3376. * src/BitfieldMan.h
  3377. * src/BtBitfieldMessage.cc
  3378. * src/BtHaveAllMessage.cc
  3379. * src/BtHaveMessage.cc
  3380. * src/DefaultPieceStorage.cc
  3381. * src/DefaultPieceStorage.h
  3382. * src/PeerInteractionCommand.cc
  3383. * src/PieceStorage.h
  3384. * src/UnknownLengthPieceStorage.h
  3385. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3386. Rewritten readData and writeData.
  3387. * src/MultiDiskAdaptor.cc
  3388. * src/MultiDiskAdaptor.h
  3389. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3390. Move \n out of the message "Usage: ...".
  3391. * src/version_usage.cc
  3392. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3393. Bump up version number to 0.13.2b.
  3394. * configure.ac
  3395. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3396. Added const qualifier to argument Exception& e.
  3397. * src/Logger.h
  3398. * src/SimpleLogger.cc
  3399. * src/SimpleLogger.h
  3400. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3401. Pool connection when CWD, SIZE command fails.
  3402. * src/FtpNegotiationCommand.cc
  3403. * src/FtpNegotiationCommand.h
  3404. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3405. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  3406. * src/HttpResponseCommand.cc
  3407. * src/HttpSkipResponseCommand.cc
  3408. * src/HttpSkipResponseCommand.h
  3409. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3410. Pool connection when a server returns 4xx, 5xx responses.
  3411. * src/HttpNullDownloadCommand.cc
  3412. * src/HttpNullDownloadCommand.h
  3413. * src/HttpResponse.cc
  3414. * src/HttpResponse.h
  3415. * src/HttpResponseCommand.cc
  3416. * src/HttpResponseCommand.h
  3417. * test/HttpResponseTest.cc
  3418. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3419. Print usage when no URL is specifed or bad command-line option is
  3420. specified.
  3421. * src/HelpItemFactory.cc
  3422. * src/help_tags.h
  3423. * src/option_processing.cc
  3424. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3425. Removed duplicate log message.
  3426. * src/AbstractCommand.cc (asyncResolveHostname)
  3427. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. Updated man page: --async-dns and --ftp-reuse-connection were added.
  3429. Changed -j option's default value from 5 to 1.
  3430. Added new examples using protocol auto detection feature.
  3431. Removed -T, -M usage where it can be omitted.
  3432. * doc/aria2c.1.txt
  3433. * doc/aria2c.1.html
  3434. * doc/aria2c.1.txt
  3435. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3436. Updated command-line usage text, so that it tells users that they
  3437. can specify any number of torrent files and metalink files in
  3438. command-line.
  3439. * src/version_usage.cc
  3440. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3441. Changed the default value of -j option to 1.
  3442. * src/HelpItemFactory.cc
  3443. * src/option_processing.cc
  3444. * src/usage_text.h
  3445. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3446. Added the ability to reuse connection in FTP and it is enabled by
  3447. default. It can be disabled by --ftp-reuse-connection=false option.
  3448. * src/Command.cc
  3449. * src/DownloadCommand.cc
  3450. * src/FtpDownloadCommand.cc
  3451. * src/FtpDownloadCommand.h
  3452. * src/FtpFinishDownloadCommand.cc
  3453. * src/FtpFinishDownloadCommand.h
  3454. * src/FtpInitiateConnectionCommand.cc
  3455. * src/FtpNegotiationCommand.cc
  3456. * src/FtpNegotiationCommand.h
  3457. * src/HelpItemFactory.cc
  3458. * src/Makefile.am
  3459. * src/Makefile.in
  3460. * src/OptionHandlerFactory.cc
  3461. * src/option_processing.cc
  3462. * src/prefs.h
  3463. * src/usage_text.h
  3464. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3465. Call Command::transitStatus() before calling Command::execute(),
  3466. so that the status change made in execute() is not cleared.
  3467. * src/DownloadEngine.cc
  3468. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3469. Removed forward declaration of SocketCore class.
  3470. * src/HttpDownloadCommand.h
  3471. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3472. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  3473. in InitiateConnectionCommandFactory. They should be set only when
  3474. the protocol is HTTP or HTTPS.
  3475. * src/InitiateConnectionCommandFactory.cc
  3476. * src/RequestGroup.cc
  3477. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3478. Fixed infinite loop in checksum checking.
  3479. * src/IteratableChecksumValidator.cc
  3480. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3481. Set _supportsPersistentConnection to true by default.
  3482. * src/Request.cc
  3483. * src/RequestGroup.cc
  3484. * test/HttpRequestTest.cc
  3485. * test/RequestTest.cc
  3486. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Added timeout to socket pool. The default timeout is 15 seconds,
  3488. which is the same value Apache uses.
  3489. * src/DownloadEngine.cc
  3490. * src/DownloadEngine.h
  3491. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3492. Fixed misuse of multimap::find()
  3493. * src/HttpHeader.cc
  3494. * test/HttpHeaderTest.cc
  3495. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  3497. option.
  3498. The asynchronous DNS is not capable of IPv6 yet.
  3499. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  3500. least for HTTP download.
  3501. * src/AbstractCommand.cc
  3502. * src/AbstractCommand.h
  3503. * src/AsyncNameResolver.cc
  3504. * src/AsyncNameResolver.h
  3505. * src/DHTEntryPointNameResolveCommand.cc
  3506. * src/DHTEntryPointNameResolveCommand.h
  3507. * src/DownloadEngine.cc
  3508. * src/DownloadEngine.h
  3509. * src/FtpInitiateConnectionCommand.cc
  3510. * src/FtpInitiateConnectionCommand.h
  3511. * src/HelpItemFactory.cc
  3512. * src/HttpInitiateConnectionCommand.cc
  3513. * src/HttpInitiateConnectionCommand.h
  3514. * src/InitiateConnectionCommand.cc
  3515. * src/InitiateConnectionCommand.h
  3516. * src/Makefile.am
  3517. * src/Makefile.in
  3518. * src/NameResolver.cc
  3519. * src/NameResolver.h
  3520. * src/OptionHandlerFactory.cc
  3521. * src/SocketCore.cc
  3522. * src/SocketCore.h
  3523. * src/Util.cc
  3524. * src/Util.h
  3525. * src/option_processing.cc
  3526. * src/prefs.h
  3527. * src/usage_text.h
  3528. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3529. Updated man page: --quiet, --header were added.
  3530. --metalink-servers and --enable-http-keep-alive option were updated.
  3531. * doc/aria2c.1
  3532. * doc/aria2c.1.html
  3533. * doc/aria2c.1.txt
  3534. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3535. Enable HTTP keep-alive by default.
  3536. * src/HelpItemFactory.cc
  3537. * src/option_processing.cc
  3538. * src/usage_text.h
  3539. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3540. Disable http keep-alive if the remote server is not HTTP/1.1.
  3541. * src/HttpConnection.cc
  3542. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3543. Receive content body of 302 response so that the connection can be
  3544. reused later when http keep-alive is enabled.
  3545. * src/HttpNullDownloadCommand.cc
  3546. * src/HttpNullDownloadCommand.h
  3547. * src/HttpResponseCommand.cc
  3548. * src/HttpResponseCommand.h
  3549. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3550. const SharedHandle<Request> -> const SharedHandle<Request>&
  3551. * src/FtpDowndloadCommand.cc
  3552. * src/FtpDowndloadCommand.h
  3553. * src/HttpDownloadCommand.cc
  3554. * src/HttpDownloadCommand.h
  3555. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3556. Fixed the bug that the control file(.aria2 file) is not renamed
  3557. according to tryAutoFileRenaming().
  3558. tryAutoFileRenaming() was rewritten so that if both renamed file and
  3559. its control file exist, use them and continue download.
  3560. The old implementation didn't take into account of control file's
  3561. existence, so basically you couldn't continue download of renamed file.
  3562. * src/BtProgressInfoFile.h
  3563. * src/DefaultBtProgressInfoFile.cc
  3564. * src/DefaultBtProgressInfoFile.h
  3565. * src/NullProgressInfoFile.h
  3566. * src/RequestGroup.cc
  3567. * test/DefaultBtProgressInfoFileTest.cc
  3568. * test/MockBtProgressInfoFile.h
  3569. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3570. Change the default value of --metalink-servers option from `5' to `1'.
  3571. * src/HelpItemFactory.cc
  3572. * src/option_processing.cc
  3573. * src/usage_text.h
  3574. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Reimplemented transparent metalink using Accept request header.
  3576. * src/HttpRequest.cc
  3577. * src/HttpRequest.h
  3578. * src/HttpRequestCommand.cc
  3579. * src/Metalink2RequestGroup.cc
  3580. * src/RequestGroup.cc
  3581. * src/RequestGroup.h
  3582. * test/HttpRequestTest.cc
  3583. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3584. Bump up version number to 0.13.2a
  3585. * configure.ac
  3586. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3587. Updated configure.ac using the result of autoscan.
  3588. * configure.ac
  3589. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3590. Fixed compilation error without gcrypt/openssl.
  3591. * src/DownloadCommand.cc
  3592. * src/DownloadCommand.h
  3593. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3594. Reorganized version information so that it can be displayed in a
  3595. standard terminal screen without scrolling.
  3596. Removed http, ftp from Configuration section, because they are always
  3597. enabled.
  3598. * src/FeatureConfig.cc
  3599. * src/FeatureConfig.h
  3600. * src/main.cc
  3601. * src/messageDigest.cc
  3602. * src/messageDigest.h
  3603. * src/version_usage.cc
  3604. * test/FeatureConfigTest.cc
  3605. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3606. Masked user ID in log.
  3607. * src/FtpConnection.cc (sendUser)
  3608. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3609. Removed query part from filename in HTTP download. The query part means
  3610. the substring after "?" in URL. Firefox seems do the same thing.
  3611. A query part is sometimes very long and not suitable to filename,
  3612. so I think it is better to remove it from filename.
  3613. * src/HttpRequest.cc
  3614. * src/HttpRequest.h
  3615. * src/Request.cc
  3616. * src/Request.h
  3617. * test/HttpRequestTest.cc
  3618. * test/RequestTest.cc
  3619. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3620. Rewritten Exception class. Throw exception object, not its pointer and
  3621. catch by reference, so that remove problematic delete operator for
  3622. catched exception.
  3623. * src/Exception.cc
  3624. * src/Exception.h
  3625. * test/ExceptionTest.cc
  3626. * src/*: All files throwing/catching exception.
  3627. * test/*: All files throwing/catching exception.
  3628. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3629. Now auto protocol detection is enabled without -Z option.
  3630. But there is a important difference between with/without -Z optoin.
  3631. For example, if you type:
  3632. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  3633. then, aria2 interprets there are 3 request groups:
  3634. (1) http://host/file, http://mirror/file <-- multi-source download
  3635. (2) file1.torrent
  3636. (3) file2.metalink
  3637. On the other hand, if you invoke above command with -Z option, it is
  3638. interpreted as 4 request groups:
  3639. (1) http://host/file
  3640. (2) file1.torrent
  3641. (3) file2.metalink
  3642. (4) http://mirror/file
  3643. I think usually user don't mix multi-source URLs and torrent files, so
  3644. there is no big problem here.
  3645. * src/main.cc
  3646. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3647. Fixed the bug that causes segmentaion fault when reading XML containing
  3648. unescapsed character like '&'.
  3649. Also a modification was made which avoids adding unnecessary
  3650. characters stack and appending unused string.
  3651. * src/ExpatMetalinkProcessor.cc
  3652. * src/FileMetalinkParserState.h
  3653. * src/FilesMetalinkParserState.h
  3654. * src/FinMetalinkParserState.h
  3655. * src/HashMetalinkParserState.h
  3656. * src/InitialMetalinkParserState.h
  3657. * src/LanguageMetalinkParserState.h
  3658. * src/MetalinkMetalinkParserState.h
  3659. * src/MetalinkParserState.h
  3660. * src/MetalinkParserStateMachine.cc
  3661. * src/MetalinkParserStateMachine.h
  3662. * src/OSMetalinkParserState.h
  3663. * src/PieceHashMetalinkParserState.h
  3664. * src/PiecesMetalinkParserState.h
  3665. * src/ResourcesMetalinkParserState.h
  3666. * src/SizeMetalinkParserState.h
  3667. * src/SkipTagMetalinkParserState.h
  3668. * src/URLMetalinkParserState.h
  3669. * src/VerificationMetalinkParserState.h
  3670. * src/VersionMetalinkParserState.h
  3671. * src/XML2SAXMetalinkProcessor.cc
  3672. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3673. Added StringFormat class, which internally calls vasprintf.
  3674. operator<< is defined for this class, so it can be used with iostream
  3675. classes nicely. SimpleLogger and following functions are rewritten
  3676. using StringFormat class.
  3677. Besides, now Logger class's methods are non-const, many classes
  3678. that has a const Logger* as a member variable are modified to remove
  3679. const qualifier from the variable declaration.
  3680. * src/HelpItemFactory.cc
  3681. * src/Request.cc
  3682. * src/SimpleLogger.cc
  3683. * src/StringFormat.cc
  3684. * src/StringFormat.h
  3685. * src/Util.cc
  3686. * src/option_processing.cc
  3687. * src/version_usage.cc
  3688. * test/StringFormatTest.cc
  3689. * src/*.h: The classes that has const Logger* as a member variable.
  3690. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3691. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  3692. failed. Also fixed memory link when exception is thrown there.
  3693. * src/main.cc (AccRequestGroup)
  3694. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3695. Added build-in "Accept-Features" support. For now only "metalink" is
  3696. used in this header field.
  3697. This "metalink" value is removed from the list when connecting URLs
  3698. fed by metalink file to avoid loop in "transparent" metlaink.
  3699. * src/HttpRequest.cc
  3700. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  3701. header is also held in this variable. Also renamed setUserHeaders as
  3702. addHeader and it was rewritten to add header not just to clear the old
  3703. value.
  3704. * src/HttpRequestCommand.cc
  3705. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  3706. from "Accept-Features" list.
  3707. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  3708. default.
  3709. * src/RequestGroup.h
  3710. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  3711. * src/a2functional.h: Included <string> because Concat class depends on
  3712. it.
  3713. * test/HttpRequestTest.cc
  3714. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. Added comment
  3716. * src/RequestGroup.cc (createNextCommand)
  3717. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3718. Capitalized METHOD_GET and METHOD_HEAD
  3719. * src/Request.cc
  3720. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3721. Added getDownloadResults() method
  3722. * src/RequestGroupMan.cc
  3723. * src/RequestGroupMan.h
  3724. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3725. Fixed the bug that aria2 exits when commands is empty() but
  3726. _routineCommands are not.
  3727. * src/DownloadEngine.cc
  3728. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3729. Use the default value pulled from Option object in HelpItemFactory.
  3730. except options whose defualt value is embedded in a usage text.
  3731. * src/HelpItemFactory.cc
  3732. * src/HelpItemFactory.h
  3733. * src/option_processing.cc
  3734. * src/version_usage.cc
  3735. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3736. Added --quiet option to make aria2 quiet (no console output).
  3737. --quiet option is tagged with ADVANCED.
  3738. * src/HelpItemFactory.cc
  3739. * src/LogFactory.cc
  3740. * src/LogFactory.h
  3741. * src/MultiUrlRequestInfo.cc
  3742. * src/MultiUrlRequestInfo.h
  3743. * src/NullStatCalc.h: New class. This class prints nothing.
  3744. * src/OptionHandlerFactory.cc
  3745. * src/main.cc
  3746. * src/option_processing.cc
  3747. * src/prefs.h
  3748. * src/usage_text.h
  3749. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3750. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  3751. * src/HelpItemFactory.cc (createHelpItems):
  3752. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3753. Fixed compilation error in ExpatMetalinkProcessor.cc
  3754. * src/ExpatMetalinkProcessor.cc
  3755. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3756. Reuse socket if the origin server supports HTTP keep-alive and
  3757. --enable-http-keep-alive or --enable-http-pipelining is given.
  3758. The current implementation doesn't reuse the connections established
  3759. against proxy server.
  3760. * src/AbstractCommand.cc
  3761. * src/DownloadEngine.cc
  3762. * src/DownloadEngine.h
  3763. * src/HttpDownloadCommand.cc
  3764. * src/HttpInitiateConnectionCommand.cc
  3765. * src/HttpResponseCommand.cc
  3766. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3767. Rewritten HTTP keep-alive and pipelining routine.
  3768. * src/AbstractCommand.cc
  3769. * src/HttpConnection.cc
  3770. * src/HttpDownloadCommand.cc
  3771. * src/HttpRequest.cc
  3772. * src/HttpRequestCommand.cc
  3773. * src/HttpResponseCommand.cc
  3774. * src/Request.cc
  3775. * src/Request.h
  3776. * src/RequestGroup.cc
  3777. * test/HttpRequestTest.cc
  3778. * test/HttpResponseTest.cc
  3779. * test/RequestTest.cc
  3780. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. Added missing setUserHeaders call
  3782. * src/HttpRequestCommand.cc
  3783. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3784. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  3785. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  3786. waste of time because it is more likey false.
  3787. * src/FileAllocationDispatcherCommand.cc (execute)
  3788. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3789. Now HTTP status and version are a member variable of HttpHeader.
  3790. HTTP status is processed as a string, not integer.
  3791. * src/AbstractProxyResponseCommand.cc
  3792. * src/HttpConnection.cc
  3793. * src/HttpHeader.cc
  3794. * src/HttpHeader.h
  3795. * src/HttpHeaderProcessor.cc
  3796. * src/HttpHeaderProcessor.h
  3797. * src/HttpResponse.cc
  3798. * src/HttpResponse.h
  3799. * test/HttpHeaderProcessorTest.cc
  3800. * test/HttpResponseTest.cc
  3801. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3802. Added --header option. You can specify any number of additional HTTP headers
  3803. like:
  3804. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  3805. Unlike other commad-line option, you can use --header option multiple times.
  3806. * src/HelpItemFactory.cc
  3807. * src/HttpRequest.{cc, h}
  3808. * src/HttpRequestCommand.cc
  3809. * src/OptionHandlerFactory.cc
  3810. * src/OptionHandlerImpl.h
  3811. * src/option_processing.cc
  3812. * src/prefs.h
  3813. * src/usage_text.h
  3814. * test/HttpRequestTest.cc (testUserHeaders)
  3815. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3816. Eliminates the time lag between sequential downloads and commands in
  3817. the same RequestGroup.
  3818. In old implementation, aria2 occasionally waits 1 seconds before
  3819. executing next command or RequestGroup.
  3820. This is really a waste of time, and new implementation eliminates
  3821. this unnecessary time lag.
  3822. * src/AbstractCommand.cc
  3823. * src/AutoSaveCommand.cc
  3824. * src/CheckIntegrityCommand.cc
  3825. * src/Command.{cc, h}
  3826. * src/DownloadEngine.{cc, h}
  3827. * src/DownloadEngineFactory.cc
  3828. * src/FileAllocationCommand.cc
  3829. * src/FileAllocationDispatcherCommand.cc
  3830. * src/FillRequestGroupCommand.cc
  3831. * src/FtpInitiateConnectionCommand.cc
  3832. * src/HaveEraseCommand.cc
  3833. * src/HttpInitiateConnectionCommand.cc
  3834. * src/HttpResponseCommand.cc
  3835. * src/RealtimeCommand.cc
  3836. * src/RequestGroup.cc
  3837. * src/RequestGroupMan.cc
  3838. * src/StreamFileAllocationEntry.cc
  3839. * src/TimeBasedCommand.{cc, h}
  3840. * src/TimedHaltCommand.cc
  3841. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3842. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  3843. keyword explicit and SharedHandle's default constructor initializes
  3844. its internal obj to null, old implementation initializes it using
  3845. obj's default constructor.
  3846. To assign null, write SharedHandle<T> x(...); x.reset();
  3847. TODO: test/SharedHandleTest.cc needs more tests.
  3848. * src/SharedHandle.h
  3849. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Fixed type in man page.
  3851. * doc/aria2c.1.txt
  3852. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3853. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  3854. * src/SimpleLogger.{cc, h}
  3855. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Implemented auto protocol detection.
  3857. Now you can do:
  3858. aria2c -Z http://host/file file1.torrent file2.metalink
  3859. (Note: -Z option is required for auto protcol detection.)
  3860. Then aria2c downloads 3 files simultaneously:
  3861. 1. http://host/file
  3862. 2. file1.torrent <-- read local torrent file
  3863. 3. file2.metalink <-- read local Metalink file.
  3864. Same thing goes with -i option. Assume your uris.txt contans:
  3865. http://host/file
  3866. file1.torrent
  3867. file2.metalink
  3868. Then you can do: aria2c -i uris.txt
  3869. (Note: -Z option is not needed if -i option is given.)
  3870. * src/main.cc
  3871. * src/ProtocolDetector.{cc, h}
  3872. * test/ProtocolDetectorTest.cc
  3873. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3874. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  3875. installed
  3876. * src/ARC4Encryptor.h
  3877. * src/ARC4Decryptor.h
  3878. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3879. Renamed argument from 'errno' to 'err', since errno is confused with
  3880. errno defined in errno.h.
  3881. * src/LibgcryptARC4Decryptor.h
  3882. * src/LibgcryptARC4Context.h
  3883. * src/LibgcryptDHKeyExchange.h
  3884. * src/LibgcryptARC4Encryptor.h
  3885. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3886. Rewritten choking algorithm.
  3887. * src/PeerChokeCommand.{cc, h}
  3888. * src/BtInterestedMessage.cc
  3889. * src/PeerSessionResource.{cc, h}
  3890. * src/DefaultPeerStorage.{cc, h}
  3891. * src/BtNotInterestedMessage.cc
  3892. * src/DefaultBtMessageDispatcher.{cc, h}
  3893. * src/BtMessageDispatcher.h
  3894. * src/Peer.{cc, h}
  3895. * src/BtLeecherStateChoke.{cc, h}
  3896. * src/BtSetup.cc
  3897. * src/BtSeederStateChoke.{cc, h}
  3898. * src/PeerStorage.h
  3899. * test/MockPeerStorage.h
  3900. * test/MockBtMessageDispatcher.h
  3901. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3902. Fixed compilation error on x84-64 platform.
  3903. * src/AuthConfig.cc: Included ostream.
  3904. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3905. Rewritten getBasename() and getDirname(), without standard library
  3906. basename(), dirname().
  3907. * src/File.cc
  3908. * test/FileTest.cc
  3909. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3910. Added Simplified Chinese translation. Also updated the following
  3911. translations: Polish, Dutch, German. Great thanks to all translators.
  3912. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3913. Suppress content-range error when 'Content-Range' response header
  3914. doesn't contains bytes-unit specifier 'bytes'
  3915. * src/HttpHeader.cc (getRange)
  3916. * test/HttpHeaderTest.cc
  3917. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3918. Fixed compilation error with g++-4.3
  3919. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3920. Added missing include files for MinGW
  3921. * test/HttpHeaderProcessorTest.cc
  3922. * test/DHTRoutingTableSerializerTest.cc
  3923. * test/DHTRoutingTableDeserializerTest.cc
  3924. * test/UriListParserTest.cc
  3925. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3926. Now download line is printed nicely with no garbage at the end of
  3927. line. I use ioctl to get the columns of terminal.
  3928. If stdout is redirected to another device, instead of carriage return,
  3929. end of line '\n' character is used. This is feature request#1909659
  3930. * src/ConsoleStatCalc.cc (calculateStat)
  3931. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3932. Included a2time.h
  3933. * src/DHTMessageDispatcher.h
  3934. * src/DHTMessageEntry.h
  3935. * src/DHTReplaceNodeTask.h
  3936. * src/DHTMessageTracker.h
  3937. * src/Util.h
  3938. * src/CookieBox.h
  3939. * src/SocketCore.h
  3940. * src/DefaultBtMessageDispatcher.h
  3941. * src/SocketCore.cc
  3942. * src/Util.cc
  3943. * src/DHTPingTask.h
  3944. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3945. Fixed high memory footprint when DHT is enabled.
  3946. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  3947. queued than it is processed and the queue is getting longer. As a
  3948. consequence, momory usage is increased.
  3949. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  3950. replacement cache in DHTBucket which is described in Kademlia paper.
  3951. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  3952. DHTReplaceNodeTask.
  3953. * src/DHTBucket.{h, cc}
  3954. (cacheNode): New function.
  3955. (getCachedNodes): New function.
  3956. (dropNode): Push back cached node to _nodes.
  3957. * test/DHTBucketTest.cc
  3958. (testCacheNode): New test
  3959. (testDropNode): New test
  3960. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  3962. the unused 4KB memory when ssl is not used.
  3963. * src/SocketCore.cc
  3964. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. Added summary log for peer announce storage.
  3966. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  3967. Removed cast
  3968. * src/DefaultPeerStorage.cc (addPeer)
  3969. Log exception message
  3970. * src/DHTMessageTracker.cc (handleTimeout)
  3971. Fixed casting
  3972. * test/HttpRequestTest.cc
  3973. * test/MetalinkProcessorTest.cc
  3974. * test/PieceTest.cc
  3975. * test/MetalinkEntryTest.cc
  3976. * test/SequenceTest.cc
  3977. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3978. * src/ParameterizedStringParser.cc (createLoop):
  3979. Removed unused variable sstep.
  3980. * src/AlphaNumberDecorator.h (decode): Rewritten.
  3981. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3982. * src/Util.{h, cc}
  3983. (parseUInt): New function.
  3984. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  3985. The actual range is uint32_t.
  3986. * test/UtilTest.cc
  3987. * src/ParameterizedStringParser.cc:
  3988. Use Util::parseUInt() for loop variables.
  3989. * test/ParameterizedStringParserTest.cc
  3990. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  3991. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3992. Rewritten the functions for binding port.
  3993. * src/DHTConnectionImpl.{h, cc}
  3994. * src/PeerListenCommand.{h, cc}
  3995. * src/DHTSetup.cc
  3996. * src/BtSetup.cc
  3997. * test/DHTConnectionImplTest.cc
  3998. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3999. type cleanup for allmost all remaining files.
  4000. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4001. Type clarification
  4002. * src/PeerSessionResource.{h, cc}
  4003. * src/DefaultPieceStorage.{h, cc}
  4004. * src/Peer.{h, cc}
  4005. * test/PeerSessionResourceTest.cc
  4006. Use div function
  4007. * src/BtPieceMessage.cc (erasePieceOnDisk)
  4008. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4009. Type clarification
  4010. * src/DefaultPeerStorage.{h, cc}
  4011. * test/DefaultPeerStorageTest.cc
  4012. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4013. Type clarification: size_t for length or size, uint64_t for file
  4014. length, off_t for file offset.
  4015. * src/DefaultBtProgressInfoFile.cc
  4016. * src/DefaultBtContext.{h, cc}
  4017. * src/DefaultBtInteractive.cc
  4018. * src/DownloadCommand.{h, cc}
  4019. * src/IteratableChunkChecksumValidator.{h, cc}
  4020. * src/SegmentMan.{h, cc}
  4021. * src/SingleFileDownloadContext.{h, cc}
  4022. * src/IteratableChecksumValidator.{h, cc}
  4023. * src/BtContext.h
  4024. * src/IteratableValidator.h
  4025. * src/DownloadContext.h
  4026. * test/SingleFileDownloadContextTest.cc
  4027. * test/DefaultBtContextTest.cc
  4028. * test/MockBtContext.h
  4029. * test/Metalink2RequestGroupTest.cc
  4030. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4031. Type clarification: size_t for length or size, uint64_t for file
  4032. length, off_t for file offset.
  4033. * src/PiecedSegment.cc
  4034. * src/GrowSegment.h
  4035. * src/DefaultBtRequestFactory.h
  4036. * src/DefaultBtProgressInfoFile.cc
  4037. * src/UnknownLengthPieceStorage.h
  4038. * src/DefaultPieceStorage.cc
  4039. * src/UnknownLengthPieceStorage.cc
  4040. * src/DefaultBtInteractive.cc
  4041. * src/GrowSegment.cc
  4042. * src/BitfieldMan.h
  4043. * src/DownloadCommand.cc
  4044. * src/BtRequestFactory.h
  4045. * src/PiecedSegment.h
  4046. * src/DefaultPieceStorage.h
  4047. * src/Piece.cc
  4048. * src/DefaultBtRequestFactory.cc
  4049. * src/PieceStorage.h
  4050. * src/Segment.h
  4051. * src/Piece.h
  4052. * src/BitfieldMan.cc
  4053. * src/Util.cc
  4054. * test/DefaultBtProgressInfoFileTest.cc
  4055. * test/DefaultPieceStorageTest.cc
  4056. * test/MockPieceStorage.h
  4057. * test/BtRequestMessageTest.cc
  4058. * test/DefaultBtMessageDispatcherTest.cc
  4059. * test/BitfieldManTest.cc
  4060. * test/GrowSegmentTest.cc
  4061. * test/PieceTest.cc
  4062. * test/SegmentTest.cc
  4063. * test/SegmentManTest.cc
  4064. * test/DefaultBtRequestFactoryTest.cc
  4065. * test/MockBtRequestFactory.h
  4066. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4067. Fixed compilation error with --disable-nls
  4068. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  4069. in gettext.h causes the problem.
  4070. * src/common.h
  4071. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4072. Removed subPiece related functions.
  4073. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  4074. * src/DefaultPieceStorage.{h, cc}
  4075. * test/PieceTest.cc
  4076. * test/DefaultPieceStorageTest.cc
  4077. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4078. Use unsigned char for data store.
  4079. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4080. Bump up version number to 0.13.0+1
  4081. * configure.ac
  4082. * Release 0.13.0+1
  4083. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. Changed inactive connection timeout to 120.
  4085. To accept more mulually interested peers, disconnect peer when there
  4086. is no interest between us after certain time passed.
  4087. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  4088. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4089. Fixed the bug that aria2 only uses first dns server in resolv.conf
  4090. when compiled with async DNS support.
  4091. * src/DownloadEngine.cc
  4092. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  4093. value '10' will be a little bit short when some DNS servers are
  4094. offline and several DNS servers are tried. It should be configured
  4095. by command-line option.
  4096. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4097. Merged Ross's mingw patch.
  4098. * src/DHTRoutingTableDeserializer.cc
  4099. * src/DHTRoutingTableSerializer.cc
  4100. * src/Platform.{h, cc}
  4101. * src/timegm.h
  4102. * src/gettimeofday.h
  4103. * src/getaddrinfo.h
  4104. * src/SocketCore.h
  4105. * src/common.h
  4106. * src/inet_aton.h
  4107. * src/DownloadEngine.h
  4108. * src/gai_strerror.h
  4109. * src/a2netcompat.h
  4110. * configure.ac
  4111. * configure
  4112. * aclocal.m4
  4113. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4114. Included missing iostream.
  4115. * test/AllTest.cc
  4116. * test/BtDependencyTest.cc
  4117. * test/BtExtendedMessageTest.cc
  4118. * test/DHTConnectionImplTest.cc
  4119. * test/DHTMessageFactoryImplTest.cc
  4120. * test/DHTMessageTrackerEntryTest.cc
  4121. * test/DHTNodeTest.cc
  4122. * test/DHTRoutingTableSerializerTest.cc
  4123. * test/DefaultBtAnnounceTest.cc
  4124. * test/DefaultBtContextTest.cc
  4125. * test/DefaultBtMessageFactoryTest.cc
  4126. * test/DefaultExtensionMessageFactoryTest.cc
  4127. * test/HandshakeExtensionMessageTest.cc
  4128. * test/HttpResponseTest.cc
  4129. * test/MetalinkProcessorTest.cc
  4130. * test/MultiFileAllocationIteratorTest.cc
  4131. * test/SocketCoreTest.cc
  4132. * test/UTPexExtensionMessageTest.cc
  4133. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4134. Reorganized includes.
  4135. * src/NameResolver.cc
  4136. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4137. Fixed compilation error without ares/c-ares
  4138. * src/NameResolver.h:
  4139. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4140. Added a test for large file.
  4141. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  4142. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4143. Fixed the bug that file size is ignored if size > INT32_MAX
  4144. * src/SizeMetalinkParserState.cc (endElement):
  4145. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4146. Bump up version number to 0.13.0
  4147. * configure.ac
  4148. * Release 0.13.0
  4149. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4150. Updated Makfefile.am to make 'make dist' work.
  4151. Now packaged filename is aria2c-VERSION.tar.bz2.
  4152. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  4153. Added LICENSE.OpenSSL to dist_noinst_DATA.
  4154. Large file support is now configured by configure script.
  4155. * configure.ac
  4156. Removed unsused source files
  4157. * src/
  4158. * test/
  4159. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  4160. Peer.h and BtContext.h respectively.
  4161. * src/Peer.h
  4162. * src/BtContext.h
  4163. Updated translations.
  4164. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  4165. translations. Great thanks to all translators!;)
  4166. * po/*.{po, gmo}
  4167. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4168. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  4169. statically declared sha1 MessageDigestContext.
  4170. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  4171. initialization of short-lived MessageDigestContext.
  4172. * src/MessageDigestHelper.{h, cc}
  4173. * src/main.cc
  4174. Now DownloadCommand has a reference to MessageDigestContext to avoid
  4175. the initialization of MessageDigestContext every time in validating
  4176. chunk checksum.
  4177. * src/DownloadCommand.{h, cc}
  4178. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Add a file descriptor which connected to fast peer(latency<1500) to
  4180. select(). This change reduced CPU load.
  4181. * src/PeerInteractionCommand.cc
  4182. * src/DefaultBtInteractive.{h, cc}
  4183. * src/BtInteractive.h
  4184. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4185. Fixed the previous insufficient fix for possible busy loop.
  4186. * src/MSEHandshake.cc (identifyHandshakeType)
  4187. Removed unused functions.
  4188. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  4189. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4190. Fixed possible busy loop if first 20 bytes are not received for a few
  4191. minutes.
  4192. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  4193. * src/ReceiverMSEHandshakeCommand.cc
  4194. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Fixed compilation error
  4196. * src/ExpatMetalinkProcessor.cc
  4197. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  4199. * src/DHTBucket.cc
  4200. Removed unnecessary cast.
  4201. * src/HandshakeExtensionMessage.cc
  4202. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4203. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  4204. is missing.
  4205. * src/OptionHandlerFactory.cc
  4206. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4207. Fixed the bug that HAVE message is not sent for a piece they are
  4208. downloaded fom http/ftp server before any BitTorrent handshake is done
  4209. with peers.
  4210. * src/DefaultBtInteractive.cc
  4211. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4212. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  4213. * src/Makefile.am
  4214. * src/Makefile.in
  4215. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4216. Updated README. Added html version of README and man page.
  4217. * README
  4218. * README.html
  4219. * readme2html: Shell script to generate README.html from README using
  4220. asciidoc.
  4221. * doc/aria2c.1.html
  4222. * doc/makeman: Added the line to generate aria2c.1.html
  4223. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4224. Fixed offset calculation.
  4225. * src/LibgcryptDHKeyExchange.h (computeSecret)
  4226. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. Rewritten itos and uitos using template. llitos and ullitos are
  4228. replaced with itos and uitos respectively.
  4229. * src/Util.{h, cc}
  4230. * test/UtilTest.cc
  4231. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4232. Fixed the bug that DH key exchange sometimes fails due to bad handling
  4233. of the number of bytes required for storing public key and shared
  4234. secret.
  4235. * src/LibgcryptDHKeyExchange.h
  4236. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  4237. * src/MSEHandshake.cc
  4238. * test/DHKeyExchangeTest.cc
  4239. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4240. Removed since they are not used.
  4241. * src/Xml2MetalinkProcessor.{h, cc}
  4242. * src/Socket.cc
  4243. * src/SegmentSplitter.{h, cc}
  4244. * test/Xml2MetalinkProcessorTest.cc
  4245. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4246. Fixed the bug that prevents aria2 from stopping other than by pressing
  4247. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  4248. option. aria2 doesn't stop even after --seed-time is satisfied and
  4249. continues to output blank lines in the console.
  4250. * src/ReceiverMSEHandshakeCommand.cc
  4251. * src/PeerReceiveHandshakeCommand.cc
  4252. * src/PeerListenCommand.cc
  4253. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4254. Bump up version number to 0.13.0rc
  4255. * configure.ac
  4256. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. Updated man page and some usage text.
  4258. * doc/aria2c.1.txt
  4259. * src/usage_text.h
  4260. * po/*.{po, gmo}
  4261. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4262. Updated translations. Added Finnish and Hebrew translations.
  4263. Great thanks to all translators!
  4264. * po/*.{po, gmo}
  4265. * po/LINGUAS
  4266. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Log more detailed information about each message.
  4268. * src/DHTQueryMessage.{h, cc}
  4269. * src/DHTGetPeersMessage.{h, cc}
  4270. * src/DHTFindNodeReplyMessage.{h, cc}
  4271. * src/DHTGetPeersReplyMessage.{h, cc}
  4272. * src/DHTAnnouncePeerMessage.{h, cc}
  4273. * src/DHTResponseMessage.{h, cc}
  4274. * src/DHTFindNodeMessage.{h, cc}
  4275. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4276. Use constants defined in prefs.h
  4277. * src/option_processing.cc
  4278. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4279. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  4280. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4281. Make room for future enchancements for IPv6 addresses.
  4282. Bump up version number of dht.dat file format to 2.
  4283. Not compatible with previous version.
  4284. * src/DHTRoutingTableSerializer.cc
  4285. * src/DHTRoutingTableDeserializer.cc
  4286. * test/DHTRoutingTableSerializerTest.cc
  4287. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4288. Added handling for the return values from
  4289. PeerMessageUtil::createcompact().
  4290. * src/DefaultBtContext.cc (computeFastSet):
  4291. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4292. Fixed abort when peer's ip address is IPv4-mapped address.
  4293. * src/DefaultBtContext.cc (computeFastSet)
  4294. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  4295. cannot handle IPv4-mapped addresses.
  4296. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  4297. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4298. Proper return value handling for OpenSSL functions.
  4299. * src/LibsslDHKeyExchange.h
  4300. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4301. Random bytes generation using libgcrypt and OpenSSL.
  4302. * src/DHTUtil.{h, cc}
  4303. * test/DHTUtilTest.cc
  4304. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4305. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  4306. received.
  4307. * src/DHTMessageReceiver.cc (receiveMessage)
  4308. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4309. Fixed the bug that a return code is always 0. BUG#1897704
  4310. If error occurred during the download or there exist unfinished
  4311. downloads, aria2 returns with code 1.
  4312. * src/RequestGroupMan.{h, cc}
  4313. * src/MultiUrlRequestInfo.{h, cc}
  4314. * src/main.cc
  4315. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4316. IPv6 support for SocketCore class.
  4317. TODO: In SocketCore::establishConnection(), this is insufficient to
  4318. determin the failure of connect() here because the socket is
  4319. non-blocking state. The next addresses should be tried after select().
  4320. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  4321. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  4322. instead which address family independent.
  4323. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  4324. information in a compact peer format which is for IPv4 only.
  4325. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  4326. this is a spec of BitTorrent protocol.
  4327. * src/SocketCore.{h, cc}
  4328. * src/PeerMessageUtil.cc
  4329. * test/SocketCoreTest.cc
  4330. * test/PeerMessageUtilTest.cc
  4331. * test/DHTConnectionImplTest.cc
  4332. Handle IPv4-mapped addresses.
  4333. * src/DHTNode.cc: Now identity is determined by node id.
  4334. * src/DHTMessageTrackerEntry.cc
  4335. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  4336. should handle it.
  4337. * src/DHTRoutingTableDeserializer.cc
  4338. * src/DHTMessageFactoryImpl.cc
  4339. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4340. Change the unit of --stop option from a minute to a second.
  4341. * src/usage_text.h
  4342. * src/DownloadEngineFactory.cc
  4343. * src/OptionHandlerFactory.cc
  4344. * src/message.h
  4345. * src/TimedHaltCommand.cc
  4346. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. Make listening socket non-block mode.
  4348. * src/FtpConnection.cc
  4349. * src/FtpNegotiationCommand.{h, cc}
  4350. * src/PeerListenCommand.cc
  4351. Fixed the bug that cause slow ftp negotiation.
  4352. * src/FtpNegotiationCommand.{h, cc}
  4353. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4354. Added basic tag to --enable-dht, --dht-listen-port option.
  4355. * src/HelpItemFactory.cc (createHelpItems)
  4356. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. Updated text.
  4358. * src/usage_text.h
  4359. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4360. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  4361. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4362. Determin _threadtholdSpeed in each constructor for
  4363. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  4364. * src/ActivePeerConnectionCommand.{h, cc}
  4365. * src/PeerReceiveHandshakeCommand.{h, cc}
  4366. * src/BtSetup.cc
  4367. * src/BtConstants.h
  4368. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4369. Added --bt-min-crypto-level and --bt-require-crypto options.
  4370. * src/OptionHandlerFactory.cc
  4371. * src/MSEHandshake.cc
  4372. * src/HelpItemFactory.cc
  4373. * src/option_processing.cc
  4374. * src/ReceiverMSEHandshakeCommand.cc
  4375. * src/prefs.h
  4376. * src/DefaultBtAnnounce.cc
  4377. * src/InitiatorMSEHandshakeCommand.cc
  4378. * src/usage_text.h
  4379. * test/MSEHandshakeTest.cc
  4380. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4381. Bump version number to 0.13.0b
  4382. * configure.ac
  4383. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4384. Updated doc.
  4385. * src/MessageDigestHelper.h:
  4386. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4387. Use raw message digest as a token instead of its hexadecimal
  4388. representation.
  4389. * src/DHTTokenTracker.cc (generateToken)
  4390. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4391. Added Message Stream Encryption(MSE) support.
  4392. Currently, aria2 accepts incoming connections with Obfuscation Header
  4393. and legacy BitTorrent Header and establishes connections with
  4394. Obfuscation Header first and if failed then retry with legacy
  4395. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  4396. choose ARC4. The new option to change the default behavior is planned.
  4397. For tracker extension, "supportcrypto=1" is added statically.
  4398. * src/PeerInitiateConnectionCommand.{h, cc}
  4399. * src/PeerConnection.{h, cc}
  4400. * src/HandleRegistry.h
  4401. * src/SocketCore.h
  4402. * src/PeerReceiveHandshakeCommand.{h, cc}
  4403. * src/BtRegistry.{h, cc}
  4404. * src/PeerListenCommand.cc
  4405. * src/InitiatorMSEHandshakeCommand.{h, cc}
  4406. * src/ReceiverMSEHandshakeCommand.{h, cc}
  4407. * src/MSEHandshake.{h, cc}
  4408. * src/ARC4Encryptor.h
  4409. * src/ARC4Decryptor.h
  4410. * src/LibgcryptARC4Encryptor.h
  4411. * src/LibgcryptARC4Decryptor.h
  4412. * src/LibgcryptARC4Context.h
  4413. * src/LibsslARC4Encryptor.h
  4414. * src/LibsslARC4Decryptor.h
  4415. * src/LibsslARC4Context.h
  4416. * src/DHKeyExchange.h
  4417. * src/LibgcryptDHKeyExchange.h
  4418. * src/LibsslDHKeyExchange.h
  4419. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  4420. * test/DefaultBtAnnounceTest.cc
  4421. * test/ARC4Test.cc
  4422. * test/DHKeyExchangeTest.cc
  4423. Removed prepareForRetry() because it is not used.
  4424. * src/PeerAbstractCommand.{h, cc}
  4425. * src/PeerInteractionCommand.{h, cc}
  4426. * src/PeerInitiateConnectionCommand.{h, cc}
  4427. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. Added the ability to load nodes from torrent file. These nodes are
  4429. added to the routing table when downloading that torrent.
  4430. * src/BtContext.h
  4431. * src/DefaultBtContext.{h, cc}
  4432. * src/DHTSetup.cc
  4433. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  4434. hostname and port pair, and resolves all of them.
  4435. * src/NameResolver.{h, cc}: Added reset().
  4436. * src/RequestGroup.cc
  4437. * test/DefaultBtContextTest.cc
  4438. * test/MockBtContext.h
  4439. Removed assert() from DefaultBtContext and throw exception instead.
  4440. * src/DefaultBtContext.cc
  4441. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4442. Fixed segmentation fault bug when exiting if dht is disabled.
  4443. * src/RequestGroup.cc
  4444. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4445. Fixed typo in log message and define the message in message.h
  4446. * src/TimedHaltCommand.cc
  4447. * src/message.h
  4448. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4449. Included RecoverableException.h to fix compilation error.
  4450. * test/DHTMessageFactoryImplTest.cc
  4451. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4452. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  4453. * test/DHTPingMessageTest.cc
  4454. * test/DHTGetPeersMessageTest.cc
  4455. * test/DHTFindNodeMessageTest.cc
  4456. * test/DHTAnnouncePeerMessageTest.cc
  4457. * test/MockDHTMessage.h
  4458. * test/MockDHTMessageFactory.h
  4459. * test/MockDHTMessageDispatcher.h: New class.
  4460. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4461. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  4462. virtual.
  4463. * src/DHTMessageDispatcher.h
  4464. * src/DHTMessageDispatcherImpl.{h, cc}
  4465. * src/DHTSetup.cc
  4466. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4467. Adding handling of DHT error message. Just log error message and
  4468. throw exception.
  4469. * src/DHTMessageFactoryImpl.cc
  4470. * test/DHTMessageFactoryImplTest.cc
  4471. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4472. Added handling of dynamic cast failure.
  4473. * src/DHTNodeLookupTask.cc
  4474. * src/DHTPeerLookupTask.cc
  4475. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4476. Added the ability to stop aria2 itself when given time has passed
  4477. from start. Use --stop option to specify time in minutes.
  4478. When 0 is given, this feature is disabled.
  4479. * src/OptionHandlerFactory.cc
  4480. * src/TimeBasedCommand.h: Make _interval protected scope.
  4481. * src/HelpItemFactory.cc
  4482. * src/option_processing.cc
  4483. * src/prefs.h
  4484. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  4485. before calling RequestGroupMan::fillRequestGroupFromReserver().
  4486. Without this modification, the result list shows "ERR" when aria2 is
  4487. stopped by --stop option. It should be "INPR".
  4488. * src/DownloadEngine.{h, cc}
  4489. * src/DownloadEngineFactory.cc
  4490. * src/usage_text.h
  4491. * src/TimedHaltCommand.{h, cc}: New class.
  4492. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4493. Bootstrap through node added by port message.
  4494. Currently bootstrap is executed if the number of buckets in routing
  4495. table is 1.
  4496. * src/BtPortMessage.{h, cc}
  4497. * src/DefaultBtMessageFactory.{h, cc}
  4498. * src/PeerInteractionCommand.cc
  4499. * test/BtPortMessageTest.cc
  4500. * test/MockDHTTask.h
  4501. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4502. Extract the Peer class's member variables, which are only needed after
  4503. PeerInteractionCommand, into PeerSessionResource class.
  4504. This class is instantiated in PeerInteractionCommand class's ctor and
  4505. released in its dtor.
  4506. This will make Peer class lightweight and uses less memory for peers
  4507. which are not connected and wait in the queue.
  4508. * src/PeerChokeCommand.cc
  4509. * src/PeerSessionResource.{h, cc}
  4510. * src/PeerInteractionCommand.cc
  4511. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  4512. * src/DefaultBtInteractive.cc
  4513. * src/BtPieceMessage.cc
  4514. * src/BtInterestedMessage.cc
  4515. * src/BtUnchokeMessage.cc
  4516. * src/DefaultPeerStorage.{h, cc}
  4517. * src/PeerInitiateConnectionCommand.cc
  4518. * src/ActivePeerConnectionCommand.cc
  4519. * src/BtNotInterestedMessage.cc
  4520. * src/DefaultBtMessageDispatcher.cc
  4521. * src/BtChokeMessage.cc
  4522. * src/BtRequestMessage.cc
  4523. * src/Peer.{h, cc}
  4524. * src/BtRegistry.h
  4525. * src/TrackerWatcherCommand.cc
  4526. * src/PeerReceiveHandshakeCommand.cc
  4527. * test/BtExtendedMessageTest.cc
  4528. * test/BtAllowedFastMessageTest.cc
  4529. * test/BtCancelMessageTest.cc
  4530. * test/DefaultPieceStorageTest.cc
  4531. * test/BtBitfieldMessageTest.cc
  4532. * test/BtHaveMessageTest.cc
  4533. * test/BtNotInterestedMessageTest.cc
  4534. * test/BtRequestMessageTest.cc
  4535. * test/PeerSessionResourceTest.cc
  4536. * test/DefaultBtMessageDispatcherTest.cc
  4537. * test/PeerTest.cc
  4538. * test/BtInterestedMessageTest.cc
  4539. * test/BtRejectMessageTest.cc
  4540. * test/BtChokeMessageTest.cc
  4541. * test/DefaultPeerStorageTest.cc
  4542. * test/BtHaveNoneMessageTest.cc
  4543. * test/BtHaveAllMessageTest.cc
  4544. * test/DefaultExtensionMessageFactoryTest.cc
  4545. * test/BtUnchokeMessageTest.cc
  4546. * test/DefaultBtMessageFactoryTest.cc
  4547. * test/HandshakeExtensionMessageTest.cc
  4548. * test/UTPexExtensionMessageTest.cc
  4549. * test/DefaultBtRequestFactoryTest.cc
  4550. * test/BtPieceMessageTest.cc
  4551. Removed typedef PeerStats.
  4552. * src/PeerStat.h
  4553. * src/SegmentMan.cc
  4554. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4555. Added std namespace to copy, remove_copy, back_inserter,
  4556. front_inserter.
  4557. * src/RequestGroupMan.cc
  4558. * src/DefaultPieceStorage.cc
  4559. * src/StreamFileAllocationEntry.cc
  4560. * src/BtFileAllocationEntry.cc
  4561. * src/RequestGroup.cc
  4562. * src/MetalinkEntry.cc
  4563. * src/DelegatingPeerListProcessor.cc
  4564. * src/DefaultBtRequestFactory.cc
  4565. * src/DefaultBtMessageDispatcher.cc
  4566. * src/version_usage.cc: Included <algorithm>
  4567. * src/main.cc
  4568. * src/MetalinkParserController.cc
  4569. * src/DefaultBtContext.cc
  4570. * src/DownloadEngineFactory.cc
  4571. * src/a2algo.h
  4572. Removed.
  4573. * test/StreamUriListParserTest.cc
  4574. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4575. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  4576. ActivePeerConnectionCommand when it is given and
  4577. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  4578. * src/ActivePeerConnectionCommand.{h, cc}
  4579. * src/BtSetup.cc
  4580. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. Only add socket to DownloadEngine's select routine when peer or
  4582. localhost is unchoked and interested. This lowers CPU usage a
  4583. little bit.
  4584. * src/PeerInteractionCommand.cc
  4585. * src/PeerAbstractCommand.{h, cc}
  4586. * src/BtInteractive.h
  4587. * src/DefaultBtInteractive.{h, cc}
  4588. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4589. Revert previous change because get_peers message is needed for
  4590. announce_peer anyway.
  4591. * src/DHTGetPeersCommand.cc
  4592. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4593. Request peers thought DHT only when download hasn't finished.
  4594. * src/DHTGetPeersCommand.cc
  4595. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  4597. * src/DHTBucketRefreshTask.{h, cc}
  4598. * src/DHTSetup.cc
  4599. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4600. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  4601. standard classes.
  4602. Included string.h where mem* function are used.
  4603. Added namespace aria2.
  4604. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4605. Create directory before saving DHT routing table.
  4606. Now ios::failure is now handled properly.
  4607. * src/DHTAutoSaveCommand.cc
  4608. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4609. Removed unnecessary cerr.
  4610. * src/DownloadEngine.cc
  4611. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4612. Catch exception inside DHTMessageReceiver::receiveMessage().
  4613. Log unknown message.
  4614. * src/DHTMessageReceiver.{h, cc}
  4615. * src/DHTMessageFactory.h
  4616. * src/DHTMessageFactoryImpl.{h, cc}
  4617. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  4618. * src/DHTInteractionCommand.cc
  4619. * src/DHTUnknownMessage.{h, cc}
  4620. * test/DHTUnknownMessageTest.cc
  4621. * test/MockDHTMessageFactory.h
  4622. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. Commented out ip address comparison because a host can have multiple
  4624. ip addresses and it is hard to predict the hostname is resolved into
  4625. which one.
  4626. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  4627. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4628. * po/Makefile.in: Removed since this is generated by configure.
  4629. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Fixed compiler warning about redefinition of SIZE_MAX.
  4631. Use common.h instead of config.h directly here.
  4632. * src/Platform.{h, cc}
  4633. The check of ENABLE_NLS is made in gettext.h, so it is not required
  4634. here.
  4635. * common.h
  4636. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  4637. Updated gettext related files.
  4638. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  4639. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  4640. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Added DHT functionality, compatible with mainline.
  4642. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  4643. You may need to specify entry point to DHT network using
  4644. --dht-entry-point. DHT uses UDP port to listen incoming message.
  4645. Use --dht-listen-port to specify port number. Make sure that your
  4646. firewall configuration can pass through UDP traffic to the port.
  4647. The routing table is saved in $HOME/.aria2/dht.dat.
  4648. * src/DHT*
  4649. * src/BNode.{h, cc}
  4650. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  4651. particular torrent.
  4652. * src/Data.cc: Rewritten ctor.
  4653. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  4654. --dht-entry-point.
  4655. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  4656. * src/RequestGroup.cc: Initialize DHT functionality. When download
  4657. ends, remove BtContext from DHTPeerAnnounceStorage.
  4658. * src/BtPortMessage.{h, cc}: Rewritten.
  4659. * src/message.h
  4660. * src/OptionHandlerImpl.cc
  4661. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  4662. --dht-entry-point.
  4663. * src/Dictionary.{h, cc} (remove): New function.
  4664. * src/prefs.h
  4665. * src/DefaultBtMessageFactory.h
  4666. * src/BtHandshakeMessage.cc
  4667. * src/ActivePeerConnectionCommand.cc
  4668. * src/SocketCore.{h, cc}: Added datagram socket support.
  4669. * src/DefaultBtMessageFactory.cc
  4670. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  4671. Create DHT commands.
  4672. * src/BtMessageFactory.h
  4673. * src/PeerMessageUtil.{h, cc}
  4674. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4675. Fixed the bug that log file is not written when configuration file doesn't exist.
  4676. This is caused by using Logger class before LogFactory is not configured.
  4677. BUG #1875079
  4678. * src/option_processing.cc
  4679. Warning message "configuration doesn't exist" is only printed when --conf is
  4680. given.
  4681. * src/option_processing.cc
  4682. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  4684. ShaVisitor is now deprecated and slated to be removed.
  4685. * src/DefaultBtContext.cc
  4686. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4687. Externalize message to message.h
  4688. * src/Platform.cc
  4689. * src/message.h
  4690. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4691. Set default domain and default path to cookie.
  4692. * src/HttpResponse.cc
  4693. * src/CookieBox.{h, cc}
  4694. * src/CookieParser.{h, cc}
  4695. * test/CookieParserTest.cc
  4696. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4697. Added --no-conf and --conf-path command-line option.
  4698. --no-conf option disables loading aria2.conf file.
  4699. --conf-path option changes the configuration file path. The default
  4700. file path is $HOME/.aria2/aria2.conf
  4701. Added a warning message when the configuration file is not found.
  4702. * src/HelpItemFactory.cc
  4703. * src/option_processing.cc
  4704. * src/prefs.h
  4705. * src/usage_text.h
  4706. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4707. Added the message to inform users that other help categories are
  4708. available in -h option.
  4709. * src/version_usage.cc
  4710. * src/TagContainer.{h, cc}
  4711. * test/TagContainerTest.cc
  4712. * src/TaggedItem.{h, cc}
  4713. * test/TaggedItemTest.cc
  4714. * src/HelpItem.h
  4715. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4716. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  4717. from PiecedSegment's ctor.
  4718. Previously Piece::getAllMissingBlockIndexes() is called from
  4719. PiecedSegment() but it is rather expensive since only first element is
  4720. used.
  4721. * src/PiecedSegment.cc
  4722. * src/Piece.{h, cc}
  4723. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4724. Rewritten get*Missing*Index functions. Now no need to allocate memory
  4725. each time these functions are called.
  4726. * src/BitfieldMan.{h, cc}
  4727. * test/BitfieldManTest.cc
  4728. * src/array_fun.h
  4729. * test/array_funTest.cc
  4730. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  4731. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  4732. filtered. Removed unnecessary cast to int32_t.
  4733. * src/BitfieldMan.{h, cc}
  4734. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  4736. payload length(4bytes) are received. This happens because lenbufLength
  4737. is not updated in this particular case and successive call of
  4738. receiveMessage() overwrites payload length with bytes recieved which
  4739. are payload body.
  4740. * src/PeerConnection.{h, cc}
  4741. * src/message.h
  4742. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  4744. peer if there are peers that have same ipaddr and port.
  4745. I've experiened segmentation fault and "pure virtual function was
  4746. called" error.
  4747. * src/Peer.h
  4748. * test/PeerTest.cc
  4749. * src/DefaultPeerStorage.cc
  4750. * test/DefaultPeerStorageTest.cc
  4751. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4752. Removed a call to isPowerOf() because it is no longer necessary here
  4753. and a request block is not always power of 2.
  4754. BUG#1866924
  4755. * src/PeerMessageUtil.cc (checkLength)
  4756. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. Fixed the bug that always first found Segment is removed from
  4758. usedSegmentEntries. Removed unused functions.
  4759. * src/SegmentMan.{h, cc}
  4760. * test/SegmentManTest.cc
  4761. Fixed the bug that ServerHost is not removed.
  4762. * src/RequestGroup.cc
  4763. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. Fixed the bug that SegmentMan::completeSegment() is not called
  4765. even if Segment is complete when --lowest-speed-limit is enabled.
  4766. BUG#1864525
  4767. * src/DownloadCommand.{h, cc}
  4768. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4769. Fixed: hash algorithm 'sha1' is always used.
  4770. * src/DownloadCommand.cc (validatePieceHash)
  4771. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4772. Added --enable-peer-exchange command-line option.
  4773. * src/OptionHandlerFactory.cc
  4774. * src/HelpItemFactory.cc
  4775. * src/option_processing.cc
  4776. * src/usage_text.h
  4777. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4778. Move extension from BtRuntime to ExtensionMessageFactory, because
  4779. extension can be specified per peer, not per torrent.
  4780. * src/DefaultBtInteractive.cc
  4781. * src/BtRuntime.h
  4782. * src/ExtendedMessagingAware.h
  4783. * src/ExtensionMessageFactory.h
  4784. * src/DefaultExtensionMessageFactory.cc
  4785. * test/DefaultExtensionMessageFactoryTest.cc
  4786. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4787. Added categorized option help. Specify category using --help option.
  4788. Also added the ability to search options in forward match.
  4789. * src/HelpItem.{h, cc}
  4790. * test/HelpItemTest.cc
  4791. * src/HelpItemFactory.{h, cc}
  4792. * src/TagContainer.{h, cc}
  4793. * test/TagContainerTest.cc
  4794. * src/option_processing.cc
  4795. * src/prefs.h
  4796. * src/TaggedItem.{h, cc}
  4797. * test/TaggedItemTest.cc
  4798. * src/version_usage.cc
  4799. * src/help_tags.h
  4800. * src/usage_text.h
  4801. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Fixed segmentation fault when bad torrent metainfo is parsed.
  4803. Added dynamic_cast properly to detect the misconfiguration of metainfo
  4804. and then throw exception or skip it.
  4805. * src/DefaultBtContext.{h, cc}
  4806. * test/DefaultBtContextTest.cc
  4807. * src/AnnounceList.cc
  4808. * src/CompactPeerListProcessor.cc
  4809. * src/message.h
  4810. * src/DefaultBtAnnounce.{h, cc}
  4811. * test/DefaultBtAnnounceTest.cc
  4812. * src/BencodeVisitor.cc
  4813. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Added missing "B"(=Byte). So now the message looks like this:
  4815. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  4816. * src/message.h (MSG_SHARE_RATIO_REPORT)
  4817. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Show the seed ratio after torrent downloads.
  4819. For example, after torrent download completed and --seed-time and
  4820. --seed-ratio conditions are fulfilled, following message is printed
  4821. right after "Download complete: .....":
  4822. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  4823. * src/RequestGroupMan.cc
  4824. * src/RequestGroup.{h, cc}
  4825. * src/message.h
  4826. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4827. Remove a defunct control file. A defunct control file means that while
  4828. it exists, but the corresponding download file is missing.
  4829. After its removal, a download restarts from the beginning.
  4830. * src/RequestGroup.cc
  4831. * src/message.h
  4832. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4833. Allocate bitfield in Peer when it is really used. More specifically,
  4834. bitfield in Peer is allocated after the connection is established and
  4835. deallocated when the connection is dropped.
  4836. Since 2 parameters(piece length and total length) was removed from the
  4837. constructor of Peer class, many test classes were modified accordingly.
  4838. See svn log for more detailed information.
  4839. * src/PeerInteractionCommand.cc
  4840. * src/CompactPeerListProcessor.cc
  4841. * src/Peer.cc
  4842. * src/DefaultPeerListProcessor.cc
  4843. * src/PeerListenCommand.cc
  4844. * src/PeerReceiveHandshakeCommand.cc
  4845. Fixed memory leak
  4846. * src/Piece.cc
  4847. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  4849. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  4850. command-line options.
  4851. * src/option_processing.cc
  4852. * src/ActivePeerConnectionCommand.cc
  4853. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. Send have message to peer if it already has the piece.
  4855. * src/BtHaveMessage.{h, cc}
  4856. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4857. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  4858. port.
  4859. * src/DefaultPeerStorage.{h, cc}
  4860. * test/DefaultPeerStorageTest.cc
  4861. * src/HandshakeExtensionMessage.cc
  4862. * test/HandshakeExtensionMessageTest.cc
  4863. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  4864. * src/PeerStorage.h
  4865. * test/MockPeerStorage.h
  4866. * src/PeerListenCommand.cc
  4867. * src/PeerReceiveHandshakeCommand.cc
  4868. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4869. Added --metalink-enable-unique-protocol option.
  4870. * src/Metalink2RequestGroup.cc
  4871. * src/option_processing.cc
  4872. * src/prefs.h
  4873. * src/version_usage.cc
  4874. * doc/aria2c.1.txt
  4875. * doc/aria2c.1
  4876. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. Allow a peer in incomingPeer to be added peers.
  4878. * src/DefaultPeerStorage.cc
  4879. * test/DefaultPeerStorageTest.cc
  4880. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  4882. I could reproduce this bug in following procedure:
  4883. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  4884. 2. Restart aria2.
  4885. 3. You see the download stopped around 99%.
  4886. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4887. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  4888. If timeout is reached, then _nextCommand is unused and it may contains
  4889. segments and they won't be canceled. Actually, timeout is not needed
  4890. here because if the server dropped connection, then retry is made.
  4891. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4892. Added uTorrent compatible Peer Exchange.
  4893. * src/BencodeVisitor.{h, cc}
  4894. * test/BencodeVisitorTest.cc
  4895. * src/BtConstants.h
  4896. * src/BtContext.h: Added 'private' flag.
  4897. * src/BtExtendedMessage.{h, cc}
  4898. * test/BtExtendedMessageTest.cc
  4899. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  4900. reserved field.
  4901. * test/BtHandshakeMessageTest.cc
  4902. * src/BtMessageFactory.h
  4903. * src/BtRegistry.h
  4904. * src/BtRuntime.h: This class holds default extension message IDs for
  4905. aria2. By default, aria2 uses ID 8 for ut_pex.
  4906. * src/DefaultBtContext.cc
  4907. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  4908. When it is true, aria2 enables ut_pex. This value is set by
  4909. PeerInteractionCommand.
  4910. * src/DefaultBtMessageFactory.{h, cc}
  4911. * test/DefaultBtMessageFactoryTest.cc
  4912. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  4913. handling to DefaultBtInteractive class.
  4914. * src/DefaultExtensionMessageFactory.{h, cc}
  4915. * test/DefaultExtensionMessageFactoryTest.cc
  4916. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  4917. the container(peers and incomingPeers. The equality is determined by
  4918. Peer::id).
  4919. * test/DefaultPeerStorageTest.cc
  4920. * src/ExtensionMessage.h
  4921. * test/MockExtensionMessage.h
  4922. * src/ExtensionMessageFactory.h
  4923. * test/MockExtensionMessageFactory.h
  4924. * src/HandshakeExtensionMessage.{h, cc}
  4925. * test/HandshakeExtensionMessageTest.cc
  4926. * src/MetaEntry.h
  4927. * src/Peer.{h, cc}
  4928. * src/PeerInteractionCommand.cc
  4929. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  4930. addIncomingPeer.
  4931. * src/PeerMessageUtil.{h, cc}
  4932. * src/PeerObject.h
  4933. * src/UTPexExtensionMessage.{h, cc}
  4934. * test/UTPexExtensionMessageTest.cc
  4935. * src/message.h
  4936. * src/prefs.h
  4937. Fixed the bug that returns incomplete data when it contains null
  4938. character. A convenient constructor was also added.
  4939. * src/Data.{h, cc}
  4940. Rewritten.
  4941. * src/CompactPeerListProcessor.cc
  4942. Fixed typos.
  4943. * src/message.h
  4944. * src/MetaFileUtil.cc
  4945. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4946. Added "Status Legend" label to the explanation text of 'stat' in
  4947. download result and moved it to the last. BUG#1848214
  4948. * src/RequestGroupMan.cc
  4949. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  4951. * src/Makefie.am
  4952. * test/Makefile.am
  4953. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4954. Fixed the bug that prevents aria2 from loading cookie file when expire
  4955. value is greater than 2^31-1. BUG#1851066
  4956. * src/CookieBoxFactory.cc
  4957. * test/CookieBoxFactoryTest.cc
  4958. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4959. Fixed possible memory leak when an exception is thrown.
  4960. * src/XML2SAXMetalinkProcessor.cc
  4961. Added Expat support. If both libxml2 and Expat are installed, then
  4962. libxml2 is used by default.
  4963. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  4964. ExpatMetalinkProcessor according to the configuration.
  4965. * src/ExpatMetalinkProcessor.{h, cc}
  4966. * src/main.cc: Removed libxml2 specific header and init/free function.
  4967. * src/MetalinkProcessorFactory.{h, cc}
  4968. * src/MetalinkHelper.cc
  4969. * src/Metalinker.h: Removed unnecessary libxml2 header.
  4970. * src/MetalinkProcessor.h
  4971. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  4972. MetalinkProcessorTest is used instead.
  4973. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  4974. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  4975. MetalinkProcessorFactory::newInstance().
  4976. * m4/libexpat.m4
  4977. * configure.ac: Added configuration options for libexpat.
  4978. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Disabled -s option in metalink download.
  4980. * src/Metalink2RequestGroup.cc
  4981. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4982. If several protocols are available for a mirror in metalink file,
  4983. aria2 now use one of them. --metalink-preferred-protocol option was
  4984. added to specify the preference of protocol.
  4985. * src/AbstractCommand.cc
  4986. * src/OptionHandlerFactory.cc
  4987. * src/ServerHost.{h, cc}
  4988. * src/Metalink2RequestGroup.cc
  4989. * src/RequestGroup.{h, cc}
  4990. * test/RequestGroupTest.cc
  4991. * src/option_processing.cc
  4992. * src/prefs.h
  4993. * src/HttpResponseCommand.cc
  4994. * src/MetalinkResource.{h, cc}
  4995. * src/FtpNegotiationCommand.cc
  4996. * src/MetalinkEntry.{h, cc}
  4997. * src/MetalinkEntryTest.cc
  4998. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. Code cleanup and added debug log.
  5000. * src/PeerConnection.cc
  5001. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5002. Compiler error fix: applied the patch by Tiziano Mueller
  5003. * src/RequestGroup.cc
  5004. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. Fixed the bug: only first announce URL is tried in AnnounceTier,
  5006. in stopped and completed event.
  5007. * src/AnnounceList.{h, cc}
  5008. * test/AnnounceListTest.cc
  5009. * src/DefaultBtAnnounce.cc
  5010. * test/DefaultBtAnnounceTest.cc
  5011. Sorted URLs.
  5012. * test/Metalink2RequestGroupTest.cc
  5013. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5014. Removed unnecessary string copy. Updated doc and corrected indentation.
  5015. * src/Base64.cc
  5016. Fixed compilation warnings
  5017. * test/DataTest.cc
  5018. * test/HttpRequestTest.cc
  5019. * test/MetaFileUtilTest.cc
  5020. * test/RequestTest.cc
  5021. * Release 0.12.0
  5022. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5023. Updated translations
  5024. * po/{de,fr,ja,nl,ru}.po
  5025. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  5026. translations. Many thanks to translators.
  5027. * po/{ca,es,it,pt_BR,sv}.po
  5028. * po/LINGUAS
  5029. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Added a notice about URL
  5031. * src/version_usage.cc
  5032. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  5033. Fixed the bug#1845750; CTRL+C does not stop torrent.
  5034. aria2 repeatedly sends stopped request when tracker returns error code.
  5035. * src/AnnounceList.cc
  5036. * test/AnnounceListTest.cc
  5037. * src/AnnounceTier.h
  5038. Added a message when ctrl-c is hit.
  5039. Now second ctrl-c is also handled in signal handler.
  5040. * src/RequestGroupMan.{h, cc}
  5041. * src/RequestGroup.{h, cc}
  5042. * src/MultiUrlRequestInfo.cc
  5043. * src/DownloadEngine.cc
  5044. * src/TrackerWatcherCommand.cc
  5045. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5046. Code cleanup
  5047. * src/Base64.cc (encode)
  5048. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. Changed Direct/IO enable/disable procesure in file allocation routine.
  5050. * src/SingleFileAllocationIterator.cc
  5051. (SingleFileAllocationIterator):
  5052. Disable directIO if offset is not multiple of 512.
  5053. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  5054. * src/MultiFileAllocationIterator.cc (allocateChunk):
  5055. Enable created SingleFileAllocationIterator's directIO.
  5056. * src/FileAllocationEntry.cc
  5057. (FileAllocationEntry): Enable directIO here.
  5058. (~FileAllocationEntry): Disable directIO here.
  5059. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  5061. * src/Peer.{h, cc}
  5062. * src/DefaultPieceStorage.cc
  5063. * test/DefaultPieceStorageTest.cc
  5064. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5065. Rewritten direct I/O support routine
  5066. * src/SingleFileAllocationIterator.cc
  5067. * src/MultiDiskAdaptor.{h, cc}
  5068. * src/ByteArrayDiskWriter.h
  5069. * src/AbstractSingleDiskAdaptor.h
  5070. * src/AbstractDiskWriter.cc
  5071. * src/DefaultPieceStorage.cc
  5072. * src/DiskWriter.h
  5073. * src/BinaryStream.h
  5074. * src/IteratableChunkChecksumValidator.cc
  5075. * src/IteratableChecksumValidator.cc
  5076. * src/CheckIntegrityEntry.cc
  5077. * src/FileAllocationEntry.cc
  5078. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5079. Fixed typo
  5080. * src/version_usage.cc
  5081. Updated doc
  5082. * doc/aria2c.1.txt
  5083. * doc/aria2c.1
  5084. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Fixed compile error without message digest support.
  5086. * src/FileMetalinkParserState.cc
  5087. * src/MetalinkParserController.{h, cc}
  5088. * test/XML2SAXMetalinkProcessorTest.cc
  5089. * test/MetalinkParserControllerTest.cc
  5090. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Enable direct I/O support in checksum checking.
  5092. * src/IteratableChunkChecksumValidator.{h, cc}
  5093. * test/IteratableChunkChecksumValidatorTest.cc
  5094. * src/CheckIntegrityEntry.cc
  5095. * src/PieceHashCheckIntegrityEntry.cc
  5096. * src/IteratableChecksumValidator.{h, cc}
  5097. * src/BtCheckIntegrityEntry.cc: Added doc.
  5098. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Added --allow-piece-length-change option.
  5100. * src/DefaultBtProgressInfoFile.cc
  5101. * test/DefaultBtProgressInfoFileTest.cc
  5102. * src/OptionHandlerFactory.cc
  5103. * src/option_processing.cc
  5104. * src/prefs.h
  5105. * src/version_usage.cc
  5106. * doc/aria2c.1.txt
  5107. * doc/aria2c.1
  5108. Fixed: duplicated result entry appears when exception is thrown in
  5109. RequestGroup::createInitiateConnectionCommand().
  5110. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  5111. Add RequestGroup to _requestGroup after RequetGroup::
  5112. createInitiateConnectionCommand() succeeds.
  5113. Externalized message
  5114. * src/XML2SAXMetalinkProcessor.cc
  5115. * src/message.h
  5116. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5117. Forced download abort when received negative response from http/ftp
  5118. server.
  5119. * src/HttpResponseCommand.cc
  5120. * src/FtpNegotiationCommand.cc
  5121. * src/HttpResponse.cc
  5122. * src/FtpConnection.cc
  5123. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  5125. the predecessor, Xml2MetalinkParser class.
  5126. I tested them against 94KB metalink file with 1234 chunk checksums.
  5127. The new one parsed it in 22msec, while it took 6000msec with old one.
  5128. * src/XML2SAXMetalinkProcessor.{h, cc}
  5129. * test/XML2SAXMetalinkProcessorTest.cc
  5130. * src/MetalinkParserController.{h, cc}
  5131. * test/MetalinkParserControllerTest.cc
  5132. * src/MetalinkParserState.h: Also added 16 subclasses.
  5133. * src/main.cc
  5134. * src/Metalink2RequestGroup.cc
  5135. * src/MetalinkHelper.cc
  5136. * src/MetalinkEntry.cc
  5137. * src/ChunkChecksum.h
  5138. Rewritten Base64 class for better performance.
  5139. * src/Base64.{h, cc}
  5140. * test/Base64Test.cc
  5141. * src/HttpRequest.cc
  5142. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5143. Fixed the bug#1841757: aria2 will connect to server to only get
  5144. file size.
  5145. * src/StreamFileAllocationEntry.cc
  5146. * src/option_processing.cc
  5147. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  5148. downloads.
  5149. * src/FtpNegotiationCommand.cc
  5150. Suppressed wrong message when finding PreDownloadHandler
  5151. * src/RequestGroup.cc
  5152. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5153. Updated usage
  5154. * src/version_usage.cc
  5155. Updated man page
  5156. * doc/aria2c.1.txt
  5157. * doc/aria2c.1
  5158. Updated po files
  5159. * po/aria2c.pot
  5160. * po/*.po
  5161. * po/*.gmo
  5162. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5163. Eliminated g++-4.2 warning
  5164. * src/DownloadHandlerConstants.{h, cc}
  5165. * src/Util.cc
  5166. * test/MetaFileUtilTest.cc
  5167. * test/PStringBuildVisitorTest.cc
  5168. Fixed bug: --check-integrity doesn't work for multi file torrent.
  5169. * src/RequestGroup.cc
  5170. * src/BtCheckIntegrityEntry.cc
  5171. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. Fixed a2io.h
  5173. * src/a2io.h
  5174. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Added direct I/O support. The current implementation uses O_DIRECT,
  5176. which is not posix standard and is tested on linux 2.6.21.
  5177. Currently only file allocation uses direct I/O.
  5178. * src/SingleFileAllocationIterator.{h, cc}
  5179. * test/SingleFileAllocationIteratorTest.cc
  5180. * src/MultiFileAllocationIterator.{h, cc}
  5181. * test/MultiFileAllocationIteratorTest.cc
  5182. * src/BinaryStream.h
  5183. * src/DiskWriter.h
  5184. * src/AbstractDiskWriter.{h, cc}
  5185. * src/ByteArrayDiskWriter.h
  5186. * src/DiskAdaptor.h
  5187. * src/AbstractSingleDiskAdaptor.{h, cc}
  5188. * src/MultiDiskAdaptor.{h, cc}
  5189. * src/FileAllocationEntry.cc
  5190. * src/Util.{h, cc}
  5191. * src/OptionHandlerFactory.cc
  5192. * src/prefs.h
  5193. * src/version_usage.cc
  5194. * src/option_processing.cc
  5195. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  5196. handleException.
  5197. * src/MultiFileAllocationIterator.cc
  5198. Added EINTR handling
  5199. * src/SocketCore.cc
  5200. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5201. Updated usage
  5202. * src/version_usage.cc
  5203. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5204. Applied Ross's patch for MinGW port.
  5205. * src/DownloadEngine.h
  5206. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5207. Set Content-Type to SingleFileDownloadContext when http response is
  5208. received.
  5209. * src/HttpResponseCommand.cc
  5210. * src/HttpResponse.{h, cc}
  5211. * test/HttpResponseTest.cc
  5212. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. Rewritten to add content-type support.
  5214. * src/DownloadHandler.{h, cc}
  5215. * src/BtPostDownloadHandler.{h, cc}
  5216. * test/BtPostDownloadHandlerTest.cc
  5217. * src/MetalinkPostDownloadHandler.{h, cc}
  5218. * test/MetalinkPostDownloadHandlerTest.cc
  5219. * src/PostDownloadHandler.{h, cc}
  5220. * src/DownloadHandlerConstants.{h, cc}
  5221. * src/RequestGroup.cc
  5222. * src/HttpResponseCommand.cc
  5223. * src/FtpNegotiationCommand.cc
  5224. * src/SingleFileDownloadContext.{h, cc}
  5225. * src/RequestGroup.h
  5226. * src/RequestGroupCriteria.h
  5227. * src/ContentTypeRequestGroupCriteria.h
  5228. Added 'mem' option value for --follow-metalink, --follow-torrent.
  5229. If it is give, metalink/torrent file is not written to the disk, but
  5230. just is kept in memory. Parsing is occurred on memory.
  5231. * src/MetalinkHelper.{h, cc}
  5232. * src/MetalinkProcessor.h
  5233. * src/Xml2MetalinkProcessor.{h, cc}
  5234. * test/Xml2MetalinkProcessorTest.cc
  5235. * src/DownloadHandlerFactory.{h, cc}
  5236. * test/DownloadHandlerFactoryTest.cc
  5237. * src/PreDownloadHandler.{h, cc}
  5238. * src/OptionHandlerFactory.cc
  5239. * src/DefaultBtContext.{h, cc}
  5240. * test/DefaultBtContextTest.cc
  5241. * src/version_usage.cc
  5242. * src/Metalink2RequestGroup.{h, cc}
  5243. * src/RequestGroup.{h, cc}
  5244. * src/a2functional.h
  5245. * test/a2functionalTest.cc
  5246. * src/MemoryBufferPreDownloadHandler.{h, cc}
  5247. * src/OptionHandlerImpl.h
  5248. * src/prefs.h
  5249. * src/Util.{h, cc}
  5250. * test/UtilTest.cc
  5251. Keep DownloadResult rather than RequestGroup after downloads to reduce
  5252. memory usage.
  5253. * src/RequestGroupMan.{h, cc}
  5254. * src/DownloadEngine.cc
  5255. * src/BtDependency.{h, cc}: Changed the type of dependee from
  5256. WeakHandle to SharedHandle because WeakHandle could be null.
  5257. * src/RequestGroup.{h, cc}
  5258. * src/DownloadEngineFactory.cc
  5259. * src/DownloadResult.h
  5260. Set totalLength after download finished
  5261. * src/UnknownLengthPieceStorage.{h, cc}
  5262. Keep torrent file specified in metalink in memory.
  5263. * src/Metalink2RequestGroup.cc
  5264. * src/BtDependency.cc
  5265. * src/TrueRequestGroupCriteria.h
  5266. Fixed the bug: seekg is used where seekp should be used.
  5267. * src/ByteArrayDiskWriter.cc
  5268. * test/ByteArraydiskWriterTest.cc
  5269. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. Fixed syntax error
  5271. * test/SequenceTest.cc
  5272. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5273. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5274. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  5275. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5276. * src/RequestGroup.cc (downloadFinishedByFileLength)
  5277. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5278. Added the check to see whether ares_host_callback accepts timeouts
  5279. with c-ares; only c-ares 1.5.0 or newer accepts it.
  5280. * src/NameResolver.{h, cc}
  5281. * m4/libcares.m4
  5282. * configure.ac: Set C++ for language choice.
  5283. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5284. Fixed: compilation fails without c-ares/ares
  5285. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  5286. Generate http/ftp commands only when download is incomplete.
  5287. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  5288. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Corrected typo. Examples are removed since they are available in man
  5290. page.
  5291. * src/version_usage.cc
  5292. Updated man page.
  5293. * doc/aria2c.1
  5294. * doc/aria2c.1.txt
  5295. * doc/makeman: Commented out sed command.
  5296. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Throw DlAbortEx when a remote file is not found.
  5298. * src/HttpResponse.cc
  5299. * src/FtpNegotiationCommand.cc
  5300. * src/message.h
  5301. Overwrite an existing file if --allow-overwrite=true is given.
  5302. * src/RequestGroup.cc
  5303. Removed unused functions
  5304. * src/AbstractCommand.h
  5305. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5306. Removed 'extern' from 'extern typedef ...' in src/*.h
  5307. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. Updated usage
  5309. * src/version_usage.cc
  5310. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5311. Trim announce URL
  5312. * src/DefaultBtContext.cc
  5313. * test/ShaVisitorTest.cc
  5314. Trim argument s. Give trimed s to exception constructor.
  5315. * src/Util.cc (parseInt)(parseLLInt)
  5316. * test/UtilTest.cc
  5317. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5318. Set precision back to 1.
  5319. * src/ConsoleStatCalc.cc (calculateStat)
  5320. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5321. Replaced strtol with Util::parseInt
  5322. * src/ChunkedEncoding.cc
  5323. * src/HttpConnection.cc
  5324. * src/CookieBoxFactory.cc
  5325. * src/ParameterizedStringParser.cc
  5326. * src/Util.cc
  5327. * test/UtilTest.cc
  5328. * test/OptionHandlerTest.cc
  5329. * src/Request.cc
  5330. Throw exception when empty string is given. The message for exception
  5331. changed.
  5332. * src/Util.cc (parseInt)(parseLLInt)
  5333. * src/message.h
  5334. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5335. Set precision to 2 because share ratio is rounded into 1.0 if precision
  5336. set to 1.
  5337. * src/ConsoleStatCalc.cc (calculateStat)
  5338. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5339. Preallocate non-requested file which is adjacent forward to requested
  5340. file('requested' files means the files given in --select-file option)
  5341. if they share a same piece.
  5342. This fixes long pause in the file system which doesn't support sparse
  5343. files like FAT32 while downloading.
  5344. * src/MultiFileAllocationIterator.{h, cc}
  5345. * test/MultiFileAllocationIteratorTest.cc
  5346. * src/FileEntry.{h, cc}
  5347. Removed unused _option.
  5348. * src/MultiDiskAdaptor.h
  5349. * test/MultiDiskAdaptorTest.cc
  5350. * src/DefaultPieceStorage.cc
  5351. Set the default value of --seed-ratio to 1.0.
  5352. If 0.0 is given, then seeding continues regardless of share ratio.
  5353. * src/version_usage.cc
  5354. * src/option_processing.cc
  5355. * src/BtSetup.cc
  5356. * doc/aria2c.1.txt
  5357. * doc/aria2c.1
  5358. Fixed: Selective download is not working in BitTorrent
  5359. * src/RequestGroup.cc
  5360. Introduced Sequence class. Use this instead of Util::unfoldRange()
  5361. * src/PieceStorage.h
  5362. * test/MockPieceStorage.h
  5363. * src/UnknownLengthPieceStorage.h
  5364. * src/DefaultPieceStorage.{h, cc}
  5365. * src/Metalink2RequestGroup.cc
  5366. * src/RequestGroup.cc
  5367. * src/Sequence.h
  5368. * test/SequenceTest.cc
  5369. * src/IntSequence.h
  5370. * src/message.h
  5371. * src/Util.{h, cc}
  5372. * test/UtilTest.cc
  5373. Added new function 'parse' to catch exception thrown by subclass's
  5374. parseArg
  5375. * src/OptionHandler.h
  5376. * src/OptionParser.cc
  5377. * src/NameMatchOptionHandler.h
  5378. * src/OptionHandlerImpl.h
  5379. * test/OptionHandlerTest.cc
  5380. Added IntegerRangeOptionHandler. Used for --listen-port and
  5381. --select-file. Now --listen-port accepts range of port.
  5382. * src/OptionHandlerFactory.cc
  5383. * src/version_usage.cc
  5384. * src/OptionHandlerImpl.h
  5385. * src/option_processing.cc
  5386. * src/BtSetup.cc
  5387. * src/PeerListenCommand.{h, cc}
  5388. * doc/aria2c.1.txt
  5389. * doc/aria2c.1
  5390. Implemented operator< for Exception class to provide easy way to print
  5391. exception stack trace.
  5392. * src/Exception.{h, cc}
  5393. * src/main.cc
  5394. * src/option_processing.cc
  5395. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5396. * src/version_usage.cc
  5397. (showVersion): Reworked.
  5398. (showUsage): Added examples.
  5399. Removed Hint for total length and file name.
  5400. * src/Metalink2RequestGroup.cc
  5401. * src/RequestGroup.{h, cc}
  5402. * src/HttpResponseCommand.cc
  5403. * src/FtpNegotiationCommand.cc
  5404. Now --follow-torrent and --follow-metalink option work properly.
  5405. * src/RequestGroup.cc
  5406. Updated man page
  5407. * doc/aria2c.1.txt
  5408. * doc/aria2c.1
  5409. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Removed.
  5411. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  5412. Use Segment::operator==()
  5413. * src/HttpConnection.cc
  5414. * src/Segment.h
  5415. Updated usage
  5416. * src/version_usage.cc
  5417. Added EINTR treatment.
  5418. * src/SocketCore.cc
  5419. * src/AbstractDiskWriter.cc
  5420. Rewritten.
  5421. * src/Util.cc (rangedFileCopy)
  5422. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5423. Fixed typo.
  5424. * src/version_usage.cc
  5425. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5426. Implemented. Now -c option works fine.
  5427. * src/DefaultPieceStorage.cc (markPiecesDone)
  5428. * test/DefaultPieceStorageTest.cc
  5429. Removed.
  5430. * src/SegmentMan.{h, cc}
  5431. (markAllPiecesDone)
  5432. (markPieceDone)
  5433. Synchronized po files with
  5434. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  5435. * src/fr.po
  5436. * src/ru.po
  5437. * src/de.po
  5438. * src/ja.po
  5439. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5440. Added ifdef and some modifications to compile without BitTorrent,
  5441. Metalink, MessageDigest
  5442. support.
  5443. * src/PieceHashCheckIntegrityEntry.cc
  5444. * src/MetalinkEntry.h
  5445. * src/version_usage.cc
  5446. * src/main.cc
  5447. * src/DownloadEngine.{h, cc}
  5448. * src/Metalink2RequestGroup.cc
  5449. * src/Peer.cc
  5450. * src/RequestGroup.cc
  5451. * src/MetalinkHelper.cc
  5452. * test/DefaultPieceStorageTest.cc
  5453. * test/MetalinkPostDownloadHandlerTest.cc
  5454. * test/Metalink2RequestGroupTest.cc
  5455. Hide TOTAL SPD when all downloads complete.
  5456. * src/ConsoleStatCalc.cc
  5457. Log target system information.
  5458. * src/main.cc
  5459. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5460. Now --metalink-location accepts a comma-deliminated list of locations.
  5461. * src/MetalinkEntry.{h, cc}
  5462. * test/MetalinkEntryTest.cc
  5463. * src/version_usage.cc
  5464. * src/Metalink2RequestGroup.cc
  5465. * src/Xml2MetalinkProcessor.cc
  5466. * test/Xml2MetalinkProcessorTest.cc
  5467. * doc/aria2c.1.txt
  5468. * doc/aria2c.1
  5469. * src/Util.cc (toUpper)(toLower): Rewritten.
  5470. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Added the ability to detect duplicate download entry which is about to
  5472. download the same file other RequestGroup is downloading.
  5473. * src/RequestGroup.cc
  5474. * src/HttpResponseCommand.cc
  5475. * src/FtpNegotiationCommand.cc
  5476. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Recalculates download progress when loading a control file,
  5478. if the piece length of DownloadContext is different from the one saved
  5479. in the control file. Currently in-flight pieces are ignored.
  5480. * src/DefaultBtProgressInfoFile.cc
  5481. * test/DefaultBtProgressInfoFileTest.cc
  5482. * src/Util.{h, cc}
  5483. * test/UtilTest.cc
  5484. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5485. Do not rotate tiers in announce-list.
  5486. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  5487. AnnounceList::allTiersFailed() used instead to detect whether all
  5488. tiers are tried and failed.
  5489. * test/DefaultBtAnnounceTest.cc
  5490. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  5491. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  5492. * test/AnnounceListTest.cc
  5493. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  5494. clause. Catch RecoverableException instead of DlRetryEx instead.
  5495. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5496. Implemented checksum validation feature(1 checksum for each file)
  5497. The validation takes place after the download.
  5498. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  5499. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  5500. * src/CheckIntegrityCommand.cc: Changed log message.
  5501. * src/Metalink2RequestGroup.cc: Set checksum to
  5502. SingleFileDownloadContext.
  5503. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  5504. PieceHashCheckIntegrity class.
  5505. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  5506. PieceHashCheckIntegrity class.
  5507. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  5508. * src/IteratableValidator.h: New class.
  5509. * src/message.h
  5510. * src/CheckIntegrityEntry.{h, cc}
  5511. * src/IteratableChunkChecksumValidator.{h, cc}
  5512. * src/SingleFileDownloadContext.h
  5513. * src/DownloadCommand.cc
  5514. --allow-overwrite=true is no longer needed to check file integrity
  5515. before download in BitTorrent download.
  5516. * src/RequestGroup.cc (getInitialCommand)
  5517. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  5518. throws exception.
  5519. * src/RequestGroupMan.cc (getInitialCommands)
  5520. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. urlencode the given url inside Request::parseUrl(...)
  5522. * src/Request.{h, cc}
  5523. * src/Util.{h, cc}
  5524. * test/RequestTest.cc
  5525. Removed #!metalink3! notation support because it is deleted from
  5526. the metalink specification.
  5527. * src/Request.{h, cc}
  5528. * test/RequestTest.cc
  5529. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5530. Don't connect server before checking file integrity at startup, if
  5531. filesize and output file path are known.
  5532. * src/AbstractCommand.cc
  5533. * src/StreamFileAllocationEntry.cc
  5534. * src/Metalink2RequestGroup.cc
  5535. * src/RequestGroup.{h, cc}
  5536. * src/HttpResponseCommand.cc
  5537. * src/FtpNegotiationCommand.cc
  5538. Added DownloadFailureException. If it is thrown, RequestGroup should
  5539. halt.
  5540. * src/AbstractCommand.cc
  5541. * src/DownloadFailureException.h
  5542. * src/RequestGroup.cc
  5543. Catch RecoverableException, instead of DlAbortEx.
  5544. * src/RequestGroupMan.cc
  5545. * src/FillRequestGroupCommand.cc
  5546. * src/MetaFileUtil.cc
  5547. * src/IteratableChunkChecksumValidator.cc
  5548. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  5549. getGID())
  5550. * src/CheckIntegrityCommand.cc
  5551. * src/message.h
  5552. Print gid instead of idx.
  5553. * src/RequestGroupMan.cc
  5554. Removed exception throwers declaration.
  5555. * src/DirectDiskAdaptor.{h, cc}
  5556. * src/SocketCore.{h, cc}
  5557. * src/MultiDiskAdaptor.{h, cc}
  5558. * src/HttpConnection.{h, cc}
  5559. * src/HttpResponse.{h, cc}
  5560. * src/DiskAdaptor.{h, cc}
  5561. * src/CopyDiskAdaptor.{h, cc}
  5562. * src/MultiDiskAdaptor.{h, cc}
  5563. * src/HttpHeaderProcessor.{h, cc}
  5564. * src/AbstractSingleDiskAdaptor.{h, cc}
  5565. * src/Util.{h, cc}
  5566. * test/UtilTest.cc
  5567. * src/DefaultDiskWriter.{h, cc}
  5568. * src/FtpConnection.{h, cc}
  5569. * src/AbstractDiskWriter.{h, cc}
  5570. Removed duplicate code.
  5571. * src/StreamCheckIntegrityEntry.cc
  5572. Removed unnecessary include.
  5573. * src/DiskWriter.h
  5574. Included Exception.h
  5575. * src/option_processing.cc
  5576. Included 2 files and added doc
  5577. * src/TrackerWatcherCommand.cc
  5578. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  5579. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5580. Changed CheckIntegrityEntry interface so that it can define
  5581. the action when all the chunk checksums are valid.
  5582. * src/CheckIntegrityEntry.h
  5583. * src/StreamCheckIntegrityEntry.{h, cc}
  5584. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  5585. are valid, then aira2 goes to seeding mode. Sometimes it is better
  5586. to exit rather than doing seeding. So, it would be good to toggle this
  5587. behavior.
  5588. * src/CheckIntegrityCommand.cc
  5589. * src/AbstractCommand.cc
  5590. * src/RequestGroup.cc
  5591. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. Reflect the download length of in-flight pieces.
  5593. It makes the download length readout more precise.
  5594. * src/DefaultPieceStorage.{h, cc}
  5595. * test/DefaultPieceStorageTest.cc
  5596. * src/a2functional.h
  5597. * test/a2functionalTest.cc
  5598. Lower CPU load when --max-download-limit is used.
  5599. There is up and down in speed indicator when enabling
  5600. http-pipelining but a download goes well. I think the problem is that
  5601. because http-pipelining is enabled, DownloadCommand is created for
  5602. each segment and in its constructor, PeerStat::downloadStart() is
  5603. called. In PeerStat::downloadStart(), speed calculation object is
  5604. reseted, which makes download speed zero.
  5605. * src/DownloadCommand.cc
  5606. Rewritten using accumulate.
  5607. * src/RequestGroupMan.cc (calculateStat)
  5608. Code clearnup.
  5609. * src/FtpNegotiationCommand.cc
  5610. * src/HttpResponseCommand.cc
  5611. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5612. Fixed: Can not resume: aria2 reports download already finished.
  5613. * src/AbstractCommand.{h, cc}
  5614. * src/HttpResponseCommand.cc
  5615. * src/FtpNegotiateCommand.cc
  5616. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. Now a file is stored in the directory specified in .metalnk file
  5618. (file[@name]).
  5619. * src/Metalink2RequestGroup.cc
  5620. Create the directory structure when opening the file if it doesn't
  5621. exist.
  5622. * src/AbstractDiskWriter.cc
  5623. * src/Util.{h, cc}
  5624. * src/File.h
  5625. * test/UtilTest.cc
  5626. Removed file name comparison
  5627. * src/Metalink2RequestGroup.cc
  5628. * src/HttpResponseCommand.cc
  5629. Rewritten using Util::mkdirs()
  5630. * src/FileEntry.cc (setupDir)
  5631. * test/FileEntryTest.cc
  5632. Updated doc
  5633. * src/SingleFileDownloadContext.h
  5634. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5635. Now SleepCommand dispatches nextCommand when halt is requested.
  5636. It avoids a possible long wait after hitting CTRL-C.
  5637. * src/SleepCommand.{h, cc}
  5638. * src/RequestGroupAware.{h, cc}
  5639. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5640. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  5641. to open listen port, then remove the port number from the tracker
  5642. request.
  5643. * src/DefaultBtAnnounce.cc
  5644. * test/DefaultBtAnnounceTest.cc
  5645. * test/MockPieceStorage.h
  5646. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  5647. them more testable.
  5648. * src/DefaultBtAnnounce.{h, cc}
  5649. * src/DefaultBtContext.{h, cc}
  5650. * src/Util.{h, cc}
  5651. * test/DefaultBtAnnounceTest.cc
  5652. * test/DefaultBtContextTest.cc
  5653. * test/UtilTest.cc
  5654. Added 'B' to upload bytes readout.
  5655. * src/ConsoleStatCalc.cc
  5656. Now the listen port for BitTorrent download is opened when it is
  5657. needed.
  5658. * src/DownloadEngineFactory.cc
  5659. * src/BtSetup.{h, cc}
  5660. * src/PeerListenCommand.{h, cc}
  5661. Now an exception thrown while parsing tracker response is now logged.
  5662. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  5663. called, which means no retry is made in this case, assuming a tracker
  5664. has a problem.
  5665. * src/TrackerWatcherCommand.cc
  5666. Fixed: downloading a file whose length is unkown fails.
  5667. * src/DownloadCommand.cc
  5668. Simplified prepareForNextSegment()
  5669. * src/DownloadCommand.cc
  5670. Updated
  5671. * po/POTFILES.in
  5672. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5673. Re-implemented a file listing for Metalink, which was dropped while
  5674. http/ftp/torrent integration was being implemented.
  5675. * src/MetalinkHelper.{h, cc}: New class.
  5676. * test/MetalinkHelperTest.cc
  5677. * src/main.cc
  5678. * src/Metalink2RequestGroup.cc
  5679. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5680. Added the ability to display the detailed torrent file information.
  5681. Now -S option gives not only a file listing, but also total download
  5682. length, info hash, announce URI, piece length, the number of pieces,
  5683. and mode(single or multi-torrent).
  5684. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  5685. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  5686. KiB)
  5687. * test/UtilTest.cc
  5688. * src/main.cc
  5689. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Added ftp://USER:PASSWD@Servername automatic parsing.
  5691. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  5692. _password. Recognize username and password in URI.
  5693. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  5694. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  5695. * src/RequestFactory.{h, cc}: Removed.
  5696. * src/AuthConfigFactory.{h, cc}: New class.
  5697. * src/FtpConnection.cc: Use AuthConfigFactory.
  5698. * src/HttpRequest.cc: Use AuthConfigFactory.
  5699. * test/HttpRequestTest.cc: Updated.
  5700. * test/RequestTest.cc: Updated.
  5701. * test/AuthConfigFactoryTest.cc: New class.
  5702. * test/RequestFactoryTest.cc: Removed.
  5703. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5704. Use RequestGroup::allDownloadFinished() to decide whether the control
  5705. file should be removed or saved.
  5706. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  5707. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  5708. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5709. Use File::renameTo()
  5710. * src/DefaultBtProgressInfoFile.cc
  5711. Added --no-file-allocation-limit command-line option.
  5712. * src/version_usage.cc
  5713. * src/option_processing.cc
  5714. * src/OptionHandlerFactory.cc
  5715. * src/RequestGroup.{h, cc}
  5716. * src/BtCheckIntegrityEntry.cc
  5717. * src/StreamCheckIntegrityEntry.cc
  5718. * src/prefs.h
  5719. * doc/aria2c.1.txt
  5720. * doc/aria2c.1
  5721. Now prealloc is the default value for --file-allocation option.
  5722. * src/version_usage.cc
  5723. * src/option_processing.cc
  5724. * doc/aria2c.1.txt
  5725. * doc/aria2c.1
  5726. Don't URL-encode user-agent.
  5727. * src/HttpRequest.cc
  5728. Updated translations
  5729. * po/LINGUAS: Added nl for Dutch translation.
  5730. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  5731. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  5732. * po/POTFILES.in: Updated.
  5733. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5734. Added the ability to recognize url-list in a torrent file.
  5735. The retrieved URLs are attached to the corresponding FileEntry.
  5736. * src/DefaultBtContext.{h, cc}
  5737. * src/FileEntry.{h, cc}
  5738. * test/DefaultBtContextTest.cc
  5739. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5740. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  5741. after the download finishes.
  5742. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5743. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  5744. the data smaller than block length.
  5745. A block length can be specified by constructor's argument.
  5746. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  5747. Get a missing piece in the range of given FileEntry. This function is
  5748. not used in the program yet.
  5749. * src/Util.h: Added some macros.
  5750. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5751. Added HTTP/1.1 keep alive and pipelining support.
  5752. See --enable-http-keep-alive and --enable-http-pipelining option.
  5753. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  5754. Segment.
  5755. * src/HttpDownloadCommand.{h, cc}
  5756. * src/OptionHandlerFactory.cc
  5757. * src/HttpConnection.{h, cc}
  5758. * src/version_usage.cc
  5759. * src/HttpInitiateConnectionCommand.cc
  5760. * src/FtpInitiateConnectionCommand.cc
  5761. * src/Segment.h
  5762. * src/HttpRequestCommand.{h, cc}
  5763. * src/option_processing.cc
  5764. * src/prefs.h
  5765. * src/HttpResponseCommand.cc
  5766. * src/SegmentMan.{h, cc}
  5767. * src/FtpNegotiateCommand.cc
  5768. * src/HttpProxyResponseCommand.cc
  5769. * src/Request.cc
  5770. * src/HttpRequest.cc
  5771. * src/DownloadCommand.cc
  5772. * test/HttpRequestTest.cc
  5773. * test/RequestTest.cc
  5774. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  5776. finished.
  5777. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  5779. catching it inside the method.
  5780. When no file entry is found in a metalink without querying user
  5781. preferences, throw the exception with the error message that suggests
  5782. metalink file is probably broken.
  5783. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  5784. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Fixed the bug that prevents remote Metalink/Torrent file from begin
  5786. processed.
  5787. * src/RequestGroupMan.cc (removeStoppedGroup)
  5788. Added debug message.
  5789. * src/BtPostDownloadHandler.cc
  5790. * src/MetalinkPostDownloadHandler.cc
  5791. * src/PostDownloadHandler.{h, cc}
  5792. * src/RequestGroup.cc
  5793. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5794. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  5795. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  5797. stops and there are any unfinished or in-progress downloads.
  5798. Added the legend of "stat".
  5799. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5800. Throw exception when chunck checksum verification fails.
  5801. * src/DownloadCommand.cc (validatePieceHash): New function.
  5802. * src/PiecedSegment.{h, cc} (clear): New function.
  5803. * src/GrowSegment.{h, cc} (clear): New function.
  5804. * src/Segment.h (clear): New function.
  5805. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  5806. * test/SegmentTest.cc
  5807. * test/GrowSegmentTest.cc
  5808. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5809. Do not send referer when redirected.
  5810. * src/Request.cc (redirectUrl)
  5811. * test/RequestTest.cc
  5812. * test/HttpRequestTest.cc
  5813. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5814. Implemented BitTorrent/http/ftp integrated download.
  5815. I've rewritten lots of files and now some headers have forward
  5816. class declarations to reduce compile time.
  5817. The implementation is extremely alpha stage, I recommend to use this
  5818. for testing purpose only.
  5819. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Fixed the compilation error on 64bit platform.
  5821. * test/HttpHeaderProcessorTest.cc
  5822. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5823. Merged Ross's patch that fixes compilation problem in MinGW
  5824. * test/DefaultBtProgressInfoFileTest.cc
  5825. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5826. Updated fr.po by sebone
  5827. * po/fr.po
  5828. Updated man page.
  5829. * doc/aria2c.1.txt
  5830. * Release 0.11.3
  5831. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5832. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  5833. failure in Metalink.
  5834. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Automatically save *.aria2 control file of http/ftp download in every
  5836. 60 seconds.
  5837. * src/AutoSaveCommand.{h, cc}: New class.
  5838. * src/TimeBasedCommand.{h, cc}: New class.
  5839. * src/DownloadEngineFactory.cc (newConsoleEngine)
  5840. Disable parameterized URI support by default. Added -P option to
  5841. enable the feature.
  5842. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  5843. * src/OptionHandlerFactory.cc
  5844. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  5845. Updated Japanese translation.
  5846. * po/ja.po
  5847. Updated man page.
  5848. * doc/aria2c.1.txt
  5849. * Release 0.11.3-rc
  5850. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5851. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  5852. it is successful, then renamed to *.aria2.
  5853. This prevents *.aria2 file from being truncated or corrupted when
  5854. file system becomes out of space.
  5855. * src/DefaultBtProgressInfoFile.cc (save)
  5856. * src/SegmentMan.cc (save)
  5857. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  5858. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5859. Reduced the fragmentation of bitfield in http/ftp download.
  5860. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  5861. * test/BitfieldManTest.cc
  5862. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Added the ability to disable segmented download in .metalink.
  5864. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  5865. 'url' tag.
  5866. * src/MetalinkEntry.{h, cc}
  5867. * src/RequestResource.{h, cc}
  5868. * src/MetalinkRequestInfo.cc
  5869. * src/Xml2MetalinkProcessor.cc
  5870. * test/Xml2MetalinkProcessorTest.cc
  5871. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5872. Added parameterized URI support.
  5873. * src/main.cc: -Z option added.
  5874. * src/OptionHandlerFactory.cc
  5875. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  5876. * src/PStringDatum.h: New class.
  5877. * src/PStringSegment.{h,cc}: New class.
  5878. * src/PStringNumLoop.h: New class.
  5879. * src/PStringSelect.h: New class.
  5880. * src/NumberDecorator.h: New class.
  5881. * src/FixedWidthNumberDecorator.h: New class.
  5882. * src/AlphaNumberDecorator.h: New class.
  5883. * src/PStringVisitor.h: New class.
  5884. * src/PStringBuildVisitor.{h,cc}: New class.
  5885. * src/ParameterizedStringParser.{h,cc}: New class.
  5886. * src/Util.{h,cc}
  5887. (isNumber): New function.
  5888. (isLowercase): New function.
  5889. (isUppercase): New function.
  5890. (alphaToNum): New function.
  5891. * test/ParameterizedStringParserTest.cc: New class.
  5892. * test/AlphaNumberDecoratorTest.cc: New class.
  5893. * test/PStringBuildVisitorTest.cc: New class.
  5894. * test/UtilTest.cc
  5895. (testIsNumber): New function.
  5896. (testIsLowercase): New function.
  5897. (testIsUppercase): New function.
  5898. (testAlphaToNum): New function.
  5899. Added '\n' after the error message
  5900. * src/RequestInfo.h (printDownloadAbortMessage)
  5901. Added auto file renaming feature in http(s)/ftp download.
  5902. * src/main.cc: Added --auto-file-renaming command-line option.
  5903. * src/OptionHandlerFactory.cc
  5904. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  5905. * src/RequestGroup.{h, cc}
  5906. (shouldCancelDownloadForSafety): Rewritten
  5907. (tryAutoFileRenaming): New function.
  5908. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  5909. * src/HttpResponseCommand.cc
  5910. (executeInternal): Removed the call to RequestGroupMan::
  5911. isSameFileBeingDownloaded()
  5912. * src/FtpNegotiateCommand.cc
  5913. (recvSize): Removed the call to RequestGroupMan::
  5914. isSameFileBeingDownloaded()
  5915. * test/RequestGroupTest.cc: New class.
  5916. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5917. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  5918. IO.
  5919. * src/DefaultBtProgressInfoFile.cc
  5920. * src/MetaFileUtil.cc
  5921. * src/SimpleLogger.cc
  5922. * src/SegmentMan.cc
  5923. * src/Util.cc
  5924. * src/Platform.cc
  5925. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5926. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  5927. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5928. Avoid sparse files if possible, because VFAT32 doesn't support it.
  5929. * src/DefaultDiskWriter.cc (initAndOpenFile)
  5930. Fixed the bug that prevents file allocation is not done when
  5931. dowloading multi-torrent file.
  5932. * src/AbstractDiskWriter.cc (openFile)
  5933. Increase the maximum number of -j option from 15 to 45.
  5934. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5935. Added fr.po, thanks to Charles Landemaine.
  5936. * po/fr.po
  5937. * po/LINGUAS
  5938. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5939. gcc 3.4.4 support:
  5940. * src/DefaultBtContext.cc: int32_t -> int
  5941. * src/main.cc: int -> int32_t, int32_t -> int
  5942. * src/messageDigest.h: uint32_t -> unsigned int
  5943. * src/NameResolver.h: int32_t -> int
  5944. * src/PeerConnection.cc: int -> int32_t
  5945. * src/SpeedCalc.cc: int32_t -> int
  5946. * src/TrackerUpdateCommand.h: int -> int32_t
  5947. * src/Util.cc: int32_t -> int
  5948. * src/Util.h: int32_t -> int
  5949. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  5950. * test/AnnounceListTest.cc: int -> int32_t
  5951. * test/ChunkedEncodingTest.cc: int -> int32_t
  5952. * test/DataTest.cc: int -> int32_t
  5953. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  5954. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  5955. * test/DefaultPieceStorageTest.cc: int -> int32_t
  5956. * test/FeatureConfigTest.cc: int -> int32_t
  5957. * test/MetalinkEntryTest.cc: int -> int32_t
  5958. * test/MockBtRequestFactory.h: int -> int32_t
  5959. * test/MockPieceStorage.h: int -> int32_t
  5960. * test/OptionTest.cc: int -> int32_t
  5961. * test/RequestTest.cc: int -> int32_t
  5962. * test/SegmentManTest.cc: int -> int32_t
  5963. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  5964. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5965. Move sleep functions to Util class:
  5966. * src/Util.cc
  5967. (sleep): New function.
  5968. (usleep): New function.
  5969. * src/DownloadCommand.cc: sleep -> Util::sleep
  5970. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  5971. MinGW build enhancements. The following files are added:
  5972. * src/timegm.{c,h}
  5973. Changes to support the above new files:
  5974. * configure.ac
  5975. * src/Makefile.am
  5976. * src/a2time.h
  5977. * src/Util.cc:
  5978. * src/strptime.c: Added support for %Z option.
  5979. Fixed MinGW non-blocking bug.
  5980. * src/SocketCore.cc
  5981. * src/HttpRequestCommand.cc
  5982. Miscellenous build fixes/enhancements.
  5983. * configure.ac: Added summary report.
  5984. * src/Platform.h: Tweaked #include's.
  5985. * src/a2netcompat.h: Tweaked #include's.
  5986. * src/strptime.h: Tweaked #include's.
  5987. * src/gai_strerror.c: Tweaked #include's.
  5988. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  5989. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  5990. * src/gettimeofday.h: Added HAVE_CONFIG_H
  5991. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5992. Increased the initial connection size in BitTorrent download to 40.
  5993. * src/BtRuntime.h
  5994. Added the usage message of --peer-id-prefix option.
  5995. * src/main.cc
  5996. * Release 0.11.2
  5997. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5998. MessageDigestHelper is introduced in order to simplify the use
  5999. of message digest. Removed repeated code.
  6000. The message digest algorithm is now specified by string, like "sha1",
  6001. "md5".
  6002. * src/messageDigest.{h, cc}
  6003. * src/MessageDigestHelper.{h, cc}: New class.
  6004. * src/DefaultPieceStorage.cc
  6005. * src/DefaultBtContext.{h, cc}
  6006. (computeFastSet): New function.
  6007. (setInfoHash): Added for unit testing.
  6008. (setNumPieces): Added for unit testing.
  6009. * src/DefaultBtInteractive.cc
  6010. * src/BtPieceMessage.cc
  6011. * src/Peer.cc
  6012. * src/Checksum.h
  6013. * src/message.h
  6014. * src/IteratableChecksumValidator.h
  6015. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  6016. inside it.
  6017. * src/SegmentMan.{h, cc}
  6018. (checkIntegrity): Removed.
  6019. * src/IteratableChunkChecksumValidator.{h, cc}
  6020. * src/Util.h
  6021. (sha1Sum): Removed.
  6022. (simpleMessageDigest): Removed.
  6023. (fileChecksum): Removed.
  6024. (computeFastSet): Removed.
  6025. * src/ShaVisitor.cc
  6026. * src/ChunkChecksum.h
  6027. * src/DownloadCommand.cc
  6028. Removed messageDigest virtual functions.
  6029. * src/MultiDiskAdaptor.{h, cc}
  6030. * src/DiskAdaptor.h
  6031. * src/ByteArrayDiskWriter.h
  6032. * src/DiskWriter.h
  6033. * src/DiskAdaptorWriter.h
  6034. * src/AbstractSingleDiskAdaptor.{h, cc}
  6035. * src/AbstractDiskWriter.{h, cc}
  6036. Fixed comilation error when message digest is disabled.
  6037. * src/MetalinkEntry.{h, cc}
  6038. * src/MetalinkRequestInfo.cc
  6039. Removed srandom and random.
  6040. * src/SimpleRandomizer.h
  6041. Added size() virtual function to DiskAdaptor
  6042. * src/MultiDiskAdaptor.h
  6043. Fixed the bug that causes that files are not opened correctly in
  6044. multi-file torrent.
  6045. * src/TorrentRequestInfo.cc
  6046. * src/MultiDiskAdaptor.cc
  6047. Added SHA256 support
  6048. * src/messageDigest.cc
  6049. * src/Xml2MetalinkProcessor.cc
  6050. Show supported message digest algorithms
  6051. * src/main.cc
  6052. Updated contact info.
  6053. * src/main.cc
  6054. Applied Ross's patch
  6055. * src/a2netcompat.h
  6056. * src/main.cc
  6057. Fixed the bug that prevents a remote metalink from not being processed
  6058. even if '-o foo.metalink' is specified.
  6059. * src/MetalinkRequestInfo.cc
  6060. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Merged Dan's patch:
  6062. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  6063. Use va_copy to avoid core dump on amd64:
  6064. * src/SimpleLogger.cc
  6065. Updated contact info.
  6066. * src/main.cc
  6067. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  6068. digest is not available.
  6069. * src/MetalinkEntry.h
  6070. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6071. Make a2netcompat.h include a2io.h to fix compilation error:
  6072. * src/a2netcompat.h
  6073. * src/SocketCore.cc: Removed include of a2io.h
  6074. * src/Util.cc: Removed include of a2io.h
  6075. Gather time related functions to a2time.h:
  6076. * src/a2time.h: New file.
  6077. * src/DefaultPeerStorage.cc
  6078. * src/SimpleLogger.cc
  6079. * src/Util.{h, cc}
  6080. * src/SimpleRandomizer.h
  6081. * src/TimeA2.{h,cc}
  6082. * src/DownloadCommand.cc
  6083. * src/main.cc
  6084. Removed #ifdef __MINGW32__ since gai_strerror is included in
  6085. a2netcompat.h:
  6086. * src/NameResolver.cc
  6087. Fixed compilation error without openssl:
  6088. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  6089. Added default block to suppress compiler warnings:
  6090. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  6091. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  6092. MinGW build enhancements. The following files are added:
  6093. * src/gai_strerror.{c,h}
  6094. * src/gettimeofday.{c,h}
  6095. Changes to support the above new files:
  6096. * configure.ac
  6097. * src/Makefile.am
  6098. * src/a2netcompat.h
  6099. * src/TimeA2.cc
  6100. * src/DefaultPeerStorage.cc
  6101. * src/NameResolver.cc: removed mingw_strerror() function.
  6102. * src/SocketCore.cc: removed mingw_strerror() function.
  6103. Miscellaneous MinGW build fixes.
  6104. * src/a2io.h: Use _lseeki64() instead of lseek()
  6105. * src/common.h
  6106. * src/DefaultFileAllocator.cc
  6107. * src/GlowFileAllocator.cc
  6108. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  6109. * src/NameResolver.cc
  6110. (callback): Changed int32_t to int.
  6111. (resolve): Changed int32_t to int.
  6112. * src/Platform.cc
  6113. * src/Platform.h
  6114. * test/MultiDiskWriterTest.cc
  6115. * test/PeerMessageUtilTest.cc
  6116. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  6117. Other enhancements and fixes.
  6118. * src/HttpRequestCommand.cc
  6119. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  6120. * src/SocketCore.cc:
  6121. (error): New function to abstract errno/WSAGetLastError().
  6122. (errorMsg): New function to abstract errno/WSAGetLastError().
  6123. (initiateSecureConnection): Added more detailed error reporting.
  6124. * src/SocketCore.h: Added private variable blocking, to allow
  6125. proper handling of OpenSSL psuedo-errors.
  6126. * src/message.h
  6127. (EX_SSL_INIT_FAILURE)
  6128. (EX_SSL_IO_ERROR)
  6129. (EX_SSL_PROTOCOL_ERROR)
  6130. (EX_SSL_UNKNOWN_ERROR)
  6131. (EX_SSL_CONNECT_ERROR)
  6132. (EX_SOCKET_BLOCKING)
  6133. (EX_SOCKET_NONBLOCKING)
  6134. (EX_SOCKET_UNKNOWN_ERROR)
  6135. * src/Util.cc
  6136. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  6137. reserved name.
  6138. (httpGMT): Fixed typo.
  6139. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6140. Merged Ross's win32 patch(manually)
  6141. In the course of merging, following files are added.
  6142. * src/strptime.{h,c}
  6143. * src/libgen.{h,c}
  6144. * src/inet_aton.{h,c}
  6145. * src/Platform.{h,cc}
  6146. * src/localtime_r.{h,c}
  6147. * src/getaddrinfo.{h,c}
  6148. I've gethered network related things, and put them to following file:
  6149. * src/a2netcompat.h
  6150. Also io related things are put to following file:
  6151. * src/a2io.h
  6152. Changed %lld to %s because mingw32 doesn't recognize %lld.
  6153. * src/message.h
  6154. (MSG_ALLOCATION_COMPLETED)
  6155. (EX_TOO_LARGE_FILE)
  6156. (EX_SIZE_MISMATCH)
  6157. (EX_FILE_OFFSET_OUT_OF_RANGE)
  6158. (EX_INVALID_CHUNK_CHECKSUM)
  6159. (EX_INVALID_RANGE_HEADER)
  6160. * src/FileAllocationCommand.cc
  6161. * src/HttpResponse.cc
  6162. * src/RequestGroup.cc
  6163. * src/MultiDiskAdaptor.cc
  6164. * src/OptionHandlerImpl.h
  6165. * src/HttpResponseCommand.cc
  6166. * src/FtpNegotiateCommand.cc
  6167. * src/IteratableChecksumValidator.cc
  6168. * src/SegmentMan.cc
  6169. * src/ChunkChecksumValidator.cc
  6170. Added Randomizer::getRandomNumber(long int)
  6171. * src/Randomizer.h (getRandomNumber)
  6172. * src/SimpleRandomizer.h (getRandomNumber)
  6173. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  6174. * src/Util.cc (randomAlpha): Use this new function.
  6175. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6176. Converted int's to in32_t. long long int's are also converted to
  6177. int64_t
  6178. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Fixed the bug that prevents cookies from being sent to the server
  6180. if the domain of cookie is FQDN and starts with ".".
  6181. * src/Cookie.cc (match)
  6182. To add the ability to change peer id.
  6183. * src/DefaultBtContext.h
  6184. (_peerIdPrefix): New variable
  6185. (setPeerIdPrefix): New function.
  6186. * src/torrentRequestInfo.cc
  6187. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  6188. DefaultBtContext.
  6189. * src/main.cc (main): Added peer-id-prefix command-line option.
  6190. The usage message is not added yet.
  6191. * src/DefaultBtContext.cc
  6192. (generatePeerId): Use _peerIdPrefix.
  6193. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  6194. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6195. Fixed the bug that prevents filename in content-disposition from
  6196. being retrieved when filename is not quoted.
  6197. * src/Util.cc (getContentDispositionFilename)
  6198. Fixed the bug that causes infinate loop and memory leak when file open
  6199. operation failed.
  6200. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6201. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Fixed the bug that causes segfault when all URIs specified are
  6203. unsupported.
  6204. * src/RequestGroupMan.cc (getInitialCommands)
  6205. Check if RequestGroup::createNextCommand() returns empty list of
  6206. commands.
  6207. * src/RequestGroup.cc (createNextCommand)
  6208. Change log level from info to error so that users can notice that
  6209. an error occurred.
  6210. Fixed the bug that causes segfault when a zero-sized file is
  6211. downloaded.
  6212. * src/BitfieldMan.cc (isAllBitSet)
  6213. Return true if bitfieldLength is 0.
  6214. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6215. * src/main.cc
  6216. (showUsage): Added 3 usage examples for metalink download.
  6217. Replace MetalinkChunkChecksum with ChunkChecksum.
  6218. * src/MetalinkChunkChecksum.h: Removed.
  6219. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  6220. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  6221. * src/Xml2MetalinkProcessor.cc
  6222. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  6223. * src/MetalinkRequestInfo.cc (execute)
  6224. * Release 0.11.1
  6225. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Reads URIs from stdin when "-i -" is specified.
  6227. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  6228. * src/UriListParser.h, src/UriListParser.cc: New class.
  6229. * src/StreamUriListParser.h: New class.
  6230. * src/FileUriListParser.h: New class.
  6231. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  6232. instead of UriFileListParser.
  6233. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6234. Made console readout more readable.
  6235. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6236. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6237. Fix the bug that causes -s option not to work.
  6238. * src/main.cc (main)
  6239. * src/a2algo.h: New file.
  6240. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6241. Create directory structure specified in metalink file.
  6242. * src/RequestGroup.h, src/RequestGroup.cc
  6243. (initAndOpenFile): Create a directory to store files if it does not
  6244. exist.
  6245. (getDir): New function.
  6246. Added ETA and download speed for an individual file to readout.
  6247. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6248. * src/RequestGroup.h
  6249. (calculateDownloadSpeed): New function.
  6250. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6251. Made -S option work with metalink file and provided selective download
  6252. to metalink.
  6253. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  6254. (filename): Removed.
  6255. (file): New variable.
  6256. (size): Removed.
  6257. (operator=): Updated.
  6258. (getPath): New function.
  6259. (getLength): New function.
  6260. (toFileEntry): New function.
  6261. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  6262. (execute): Use toStream.
  6263. (showFileEntry): Removed.
  6264. * src/MetalinkRequestInfo.h
  6265. (targetFiles): New variable.
  6266. (setTargetFiles): New variable.
  6267. * src/MetalinkRequestInfo.cc
  6268. (execute): Added the ability to print file information included in
  6269. a metalink file.
  6270. Added selective download mode to metalink.
  6271. * src/main.cc
  6272. (showUsage): Updated to denote that -S and --select-file options are
  6273. applicable to metalink.
  6274. * src/FileEntry.h
  6275. (operator=): New function.
  6276. (getBasename): New function.
  6277. (getDirname): New function.
  6278. * src/Util.h, src/Util.cc
  6279. (toStream): New function.
  6280. * src/Xml2MetalinkProcessor.cc: Updated.
  6281. Made aria2 work with metalink with directory structure.
  6282. * src/File.h, src/File.cc
  6283. (getBasename): New function.
  6284. (getDirname): New function.
  6285. * src/RequestGroup.h, src/RequestGroup.cc
  6286. (_topDir): New variable.
  6287. (setTopDir): New function.
  6288. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  6289. Rewrote HTTP header parsing with stringstream.
  6290. * src/HttpConnection.h, src/HttpConnection.cc
  6291. (HttpRequestEntry): New class.
  6292. (headerBuf): Removed.
  6293. (headerBufLength): Removed.
  6294. (outstandingHttpRequests): Now its element type is
  6295. HttpRequestEntryHandle.
  6296. (findEndOfHeader): Removed.
  6297. (receiveResponse): Rewritten.
  6298. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  6299. Updated doc for -j option to notice that it should be used with -i
  6300. option.
  6301. * src/main.cc (showUsage)
  6302. Removed unused classes.
  6303. * src/RequestInfo.h
  6304. (FileInfo): Removed.
  6305. (checksum): Removed.
  6306. (fileInfo): Removed.
  6307. (setChecksum): Removed.
  6308. (getChecksum): Removed.
  6309. (getFileInfo): Removed.
  6310. Use ISO units.
  6311. * src/ConsoleDownloadEngine.cc
  6312. * src/TorrentConsoleDownloadEngine.cc
  6313. * src/Util.cc (abbrevSize)
  6314. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. Added the default listening ports to the help message.
  6316. * src/main.cc (showUsage)
  6317. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Reduce the number of calls to gettimeofday to lower CPU load.
  6319. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  6320. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  6321. * src/Peer.h (calculateUploadSpeed): New function.
  6322. (calculateDownloadSpeed): New function.
  6323. * src/DefaultPeerStorage.cc
  6324. (CalculateStat): Added _now variable.
  6325. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  6326. and Peer::calculateUploadSpeed(const struct timeval&)
  6327. Drop connection if no request or piece message is exchanged in
  6328. a certain interval.
  6329. * src/DefaultBtInteractive.h
  6330. (btRuntime): New variable.
  6331. (inactiveCheckPoint): New variable.
  6332. (checkActiveInteraction): New function.
  6333. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  6334. request or piece message is received.
  6335. (checkActiveInteraction): New function.
  6336. (doInteractionProcessing): Call checkActiveInteraction.
  6337. Fixed the bug that causes remote Metalink and Torrent files are not
  6338. processed.
  6339. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  6340. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6341. Changed format of log file.
  6342. * src/SimpleLogger.cc
  6343. * Release 0.11.0
  6344. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6345. * src/AbstractCommand.cc
  6346. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  6347. MSG_MAX_TRY from error to info.
  6348. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  6349. * src/message.h
  6350. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  6351. (MSG_DOWNLOAD_ABORTED): Added %s.
  6352. (MSG_RESTARTING_DOWNLOAD): Added %s.
  6353. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  6354. * src/PeerAbstractCommand.cc
  6355. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  6356. * src/Request.h
  6357. (cookieBox): Made ShardHandle.
  6358. * src/RequestGroup.h, src/RequestGroup.cc
  6359. (createNextCommandWithAdj): New function.
  6360. * src/FileAllocationCommand.cc
  6361. (executeInternal): Use createNextCommandWithAdj().
  6362. * src/CheckIntegrityCommand.cc
  6363. (executeInternal): Use createNextCommandWithAdj().
  6364. Added --load-cookies command-option.
  6365. * src/OptionHandlerFactory.cc
  6366. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  6367. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  6368. Now aria2 can handle cookie's expiration date.
  6369. * src/Cookie.h (expires): Changed its type to time_t.
  6370. * src/main.cc: Added --load-cookies command-line option.
  6371. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  6372. * src/Util.h, src/Util.cc (httpGMT): New function.
  6373. * src/Request.cc (Request): Initialize cookieBox using
  6374. CookieBoxFactory.
  6375. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  6376. * src/CookieParser.h, src/CookieParser.cc: New class.
  6377. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  6378. * src/HttpResponseCommand.cc
  6379. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  6380. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  6381. download.
  6382. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6383. Added -j command-line option.
  6384. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6385. * src/main.cc
  6386. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  6387. Rewritten using stringstream.
  6388. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  6389. Rewritten using stringstream.
  6390. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6391. Make download size shown in MB, KB.
  6392. * src/ConsoleDownloadEngine.h (sendStatistics)
  6393. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  6394. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6395. Accept incoming connections if download rate is low.
  6396. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  6397. (_lowestSpeedLimit): New variable.
  6398. (setLowestSpeedLimit): New function.
  6399. (execute): Accept incoming connections if download rate is low.
  6400. MAX_PEERS is ignored in this case.
  6401. Disable PREF_OUT in multiple concurrent download:
  6402. * src/RequestGroup.h, src/RequestGroup.cc
  6403. (setUserDefinedFilename): New function.
  6404. * src/DownloadEngineFactory.cc
  6405. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  6406. concurrent download.
  6407. * src/DefaultSegmentManFactory.cc
  6408. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  6409. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6410. RequestGroup::getNextCommand() was renamed to createNextCommand().
  6411. Added its overloaded method.
  6412. * src/RequestGroup.h
  6413. (_numConcurrentCommand): New variable.
  6414. (setNumConcurrentCommand): New function.
  6415. * src/RequestGroup.cc
  6416. Abort download if same file is being downloaded concurrently.
  6417. * src/RequestGroup.h, src/RequestGroupMan.cc
  6418. (isSameFileBeingDownloaded): New function.
  6419. * src/HttpResponseCommand.cc (executeInternal)
  6420. * src/FtpNegotiateCommand.cc (recvSize)
  6421. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  6422. * main.cc: Added help message for -i option.
  6423. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6424. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  6425. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  6426. * src/MetalinkEntry.h
  6427. (checksum): Changed to ChecksumHandle
  6428. * src/MetalinkRequestInfo.cc
  6429. (checksum): Changed to ChecksumHandle
  6430. * src/File.cc
  6431. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  6432. * src/common.h
  6433. (DIR_OPEN_MODE): New definition
  6434. * src/RequestGroup.cc
  6435. (prepareForNextAction): Added an argument.
  6436. * src/message.h
  6437. (MSG_GOOD_CHECKSUM): New definition
  6438. (MSG_BAD_CHECKSUM): New definition
  6439. * src/HttpResponseCommand.cc
  6440. (handleDefaultEncoding): Continue download sequence in new
  6441. non-segmented download.
  6442. * src/FileAllocationEntry.h
  6443. (_nextDownloadCommand): New variable.
  6444. * src/DownloadCommand.cc
  6445. (prepareForNextSegment): Create ChecksumCommand if checksum is
  6446. available.
  6447. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  6448. * src/IteratableChecksumValidator.h,
  6449. src/IteratableChecksumValidator.cc: New class.
  6450. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  6451. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Change file mode to 666:
  6453. * src/common.h (OPEN_MODE): New definition.
  6454. * src/File.cc
  6455. * src/Util.cc
  6456. * src/Directry.cc
  6457. * src/AbstractDiskWriter.cc
  6458. Change the level of log message "download aborted" to debug:
  6459. * src/PeerAbstractCommand.cc (execute)
  6460. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  6461. * src/TrackerWatcherCommand.cc
  6462. (createCommand): Sleep some seconds after request failed.
  6463. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  6464. then abort tracker request.
  6465. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6466. * Added the simultaneous download feature.
  6467. * src/main.cc: Print "Exception caught: " when exception is caught.
  6468. Use CUIDCounter instead of BtRuntime::getNewCuid():
  6469. * src/ActivePeerConnectionCommand.cc
  6470. * src/PeerInteractionCommand.cc
  6471. * src/BtRuntime.h
  6472. (cuidCounter): Removed.
  6473. (getNewCuid): Removed.
  6474. * src/DownloadEngineFactory.cc
  6475. * src/PeerListenCommand.cc
  6476. * src/TrackerUpdateCommand.cc
  6477. * src/PeerInitiateConnectionCommand.cc
  6478. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. * src/PeerAbstractCommand.cc
  6480. (onAbort): Call PeerStorage::returnPeer()
  6481. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  6482. (incomingPeers): New variable.
  6483. (addIncomingPeer): New function.
  6484. (returnPeer): New function.
  6485. (onErasingPeer): New function.
  6486. (addPeer): push_back -> push_front
  6487. (getActivePeers): Rewritten.
  6488. (calculateStat): Rewritten.
  6489. * src/PeerStorage.h
  6490. (TransferStat::copy): New function.
  6491. (TransferStat::TransferStat): New function.
  6492. (TransferStat::operator=): New function.
  6493. (addIncomingPeer): New function.
  6494. (returnPeer): New function.
  6495. * src/PeerListenCommand.cc
  6496. (execute): Use PeerStorage::addIncomingPeer() instead of
  6497. Peer::addPeer().
  6498. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6499. Connect to a peer actively when download speed is lower than specified
  6500. speed in torrent download:
  6501. * src/ActivePeerConnectionCommand.h: New class.
  6502. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. * src/HttpRequest.cc (createRequest): url-encode user-agent
  6504. * src/main.cc: Fixed the bug that prevents download if .netrc
  6505. doesn't exist.
  6506. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6507. To cache resolved hostname:
  6508. * src/AbstractCommand.h, src/AbstractCommand.cc
  6509. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  6510. Added dns cache.
  6511. * src/FtpInitiateConnectionCommand.cc
  6512. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  6513. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  6514. NameResolver working without ares.
  6515. * src/TorrentRequestInfo.cc
  6516. (execute): Don't cache dns in torrent download.
  6517. * src/HttpInitiateConnectionCommand.cc
  6518. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  6519. * src/DNSCache.h: New class.
  6520. * src/UrlRequestInfo.cc
  6521. (execute): Use dns cache.
  6522. In http request, suppress port number in http request header if port
  6523. is 80 or 443:
  6524. * src/HttpRequest.cc (getHostText): Suppress port number in http
  6525. request header if port is 80 or 443.
  6526. (createProxyRequest): Allways send port number.
  6527. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6528. To add the command-line option which disables netrc support:
  6529. * src/OptionHandlerFactory.cc
  6530. (createOptionHandlers): Added PREF_NO_NETRC.
  6531. * src/main.cc: Added -n option.
  6532. * src/prefs.h (PREF_NO_NETRC): New definition.
  6533. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  6534. V_TRUE.
  6535. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  6536. is V_FALSE. This may get configurable in the future release.
  6537. To clear peer's error status by time basis:
  6538. * src/PeerAbstractCommand.cc
  6539. (onAbort): Call Peer::startBadCondition().
  6540. * src/Peer.h, src/Peer.cc
  6541. (error): Removed.
  6542. (_badConditionStartTime): New variable.
  6543. (_badConditionInterval): New variable. Initialized to 10 seconds.
  6544. (startBadCondition): New function.
  6545. (isGood): New function.
  6546. * src/DefaultPeerStorage.cc
  6547. (addPeer): Use Peer::isGood().
  6548. (FindFinePeer): Use Peer::isGood().
  6549. Always include port number in http request header:
  6550. * src/HttpRequest.cc (getHostText): Always include port number in
  6551. http request header.
  6552. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. To the ability to read options from a config file:
  6554. * src/main.cc: Command-line parameter validation is delegated to
  6555. OptionHandler class.
  6556. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  6557. * src/Option.h, src/Option.cc (clear): New function.
  6558. * src/OptionParser.h, src/OptionParser.cc: New class.
  6559. * src/OptionHandler.h: New class.
  6560. * src/NameMatchOptionHandler.h: New class.
  6561. * src/OptionHandlerImpl.h: New classes.
  6562. * src/prefs.h: '_' -> '-'
  6563. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  6564. (FTP_PASV): New definition.
  6565. * src/Util.h, src/Util.cc (getRealSize): New function.
  6566. To disable netrc support if .netrc file does not have correct
  6567. permissions:
  6568. * src/File.h, src/File.cc (mode): New function.
  6569. To prevent confidential information to be logged:
  6570. * src/HttpConnection.h, src/HttpConnection.cc
  6571. (eraseConfidentialInfo): New function.
  6572. (sendRequest): Call eraseConfidentialInfo().
  6573. (sendProxyRequest): Call eraseConfidentialInfo().
  6574. * src/main.cc: Validate permissions of .netrc file.
  6575. To add --user-agent command-line option:
  6576. * src/main.cc: Added new command line option: --user-agent
  6577. * src/prefs.h (PREF_USER_AGENT): New definition.
  6578. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  6579. parameter to HttpRequest object.
  6580. * src/AbstractProxyRequestCommand.cc
  6581. (executeInternal): Set user-agent option parameter to HttpRequest
  6582. object.
  6583. Marged the patches from Dan Fandrich.
  6584. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6585. Use filename and size from Metalink file instead of sending HEAD
  6586. request:
  6587. * src/UrlRequestInfo.h
  6588. (_filename): New variable.
  6589. (_totalLength): New variable.
  6590. (setTotalLength): New variable.
  6591. (setFilename): New variable.
  6592. * src/MetalinkRequestInfo.cc
  6593. (execute): Set filename and size to UrlRequestInfo
  6594. * src/UrlRequestInfo.cc
  6595. (execute): Use filename and size from Metalink instead of seding
  6596. HEAD request to servers.
  6597. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6598. To add the ability to resume downloading a partially downloaded file
  6599. which is downloaded from the beginning:
  6600. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  6601. takes this role.
  6602. * src/main.cc: Added -c option.
  6603. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  6604. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  6605. * src/prefs.h (PREF_CONTINUE): New definition.
  6606. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  6607. * src/DefaultDiskWriter.cc
  6608. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  6609. * src/AbstractDiskWriter.h
  6610. (glowFileAllocator): New variable.
  6611. * src/AbstractDiskWriter.cc
  6612. (openExistingFile): Now preallocate file space from the end of the
  6613. existing file if totalLength argument is specified and grater than 0.
  6614. * src/UrlRequestInfo.cc: If -c option is specified and the file
  6615. to download exists in local, continue the download of the file.
  6616. --allow-overwrite=true is assumed in this context.
  6617. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  6618. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  6619. Throw exception if --check-integrity=true is specified but chunk
  6620. checksums are not provided:
  6621. * src/UrlRequestInfo.cc
  6622. Do not print URLs to stdout:
  6623. * src/UrlRequestInfo.cc
  6624. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6625. * src/Request.h: Use AuthResolver to get authentication information.
  6626. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  6627. set to RequestFactory object.
  6628. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  6629. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  6630. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  6631. create Request object.
  6632. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  6633. To integrate Netrc into exsiting classes:
  6634. * src/Request.h
  6635. (_userDefinedAuthConfig): New variable.
  6636. (findNetrcAuthenticator): New function.
  6637. (segment): Removed.
  6638. (setUserDefinedAuthConfig): New function.
  6639. (resolveHttpAuthConfigItem): New function.
  6640. (resolveFtpAuthConfigItem): New function.
  6641. (resolveHttpProxyAuthConfigItem): New function.
  6642. * src/HttpRequest.h
  6643. (authConfig): Removed.
  6644. (proxyAuthConfig): Removed.
  6645. (setAuthConfig): Removed.
  6646. (setProxyAuthConfig): Removed.
  6647. * src/UrlRequest.h
  6648. (getHeadResult): Added a parameter: authConfigHandle
  6649. * src/common.h
  6650. (SingletonHolder.h): New include.
  6651. * src/main.cc
  6652. (Netrc.h): New include.
  6653. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  6654. Added initial value of PREF_NETRC_PATH.
  6655. Added the initialization of netrc.
  6656. * src/AuthConfig.h: New class.
  6657. * src/prefs.h
  6658. (PREF_NETRC_PATH): New definition.
  6659. * src/HttpAuthConfig.h: Removed.
  6660. * src/Netrc.cc
  6661. (getRequiredNextToken): New function.
  6662. (skipMacdef): New function.
  6663. (parse): Rewritten.
  6664. * src/Netrc.h
  6665. (getRequiredNextToken): New function.
  6666. (skipMacdef): New function.
  6667. * src/Util.h, src/Util.cc
  6668. (getHomeDir): New function.
  6669. * src/TrackerWatcherComand.cc
  6670. (createRequestCommand): Use AuthConfig.
  6671. * src/FtpConnection.cc
  6672. (sendUser): Use Request::resolveFtpAuthConfigItem().
  6673. (sendPass): Use Request::resolveFtpAuthConfigItem().
  6674. * src/Request.cc
  6675. (findNetrcAuthenticator): New function.
  6676. (resolveHttpAuthConfigItem): New function.
  6677. (resolveFtpAuthConfigItem): New function.
  6678. (resolveHttpProxyAuthConfigItem): New function.
  6679. * src/UrlRequestInfo.cc: Use AuthConfig.
  6680. * src/HttpRequest.cc
  6681. (createRequest): Use authConfig.
  6682. (getProxyAuthString): Use authConfig.
  6683. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  6684. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  6685. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6686. To reduce overhead to find commands whose socket is either
  6687. readable or writable in the download engine loop:
  6688. * src/Command.h, src/Command.cc
  6689. (STATUS): New enum.
  6690. (status): New variable.
  6691. (statusMatch): New function.
  6692. (setStatusActive): New function.
  6693. (setStatusInactive): New function.
  6694. * src/DownloadEngine.h, src/DownloadEngine.cc
  6695. (executeCommand): New function.
  6696. (run): Simplified.
  6697. (waitData): Call Command::setStatusActive() when command's socket is
  6698. readable or writable.
  6699. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6700. To handle Segment as SegmentHandle:
  6701. * src/AbstractCommand.cc (execute): Rewritten.
  6702. * src/SegmentMan.h: Segment -> SegmentHandle
  6703. Introducded HttpResponse class, HttpRequest class to improve code
  6704. extensiveness and make it clear:
  6705. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  6706. HttpResponse class.
  6707. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  6708. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  6709. * src/HttpConnection.cc: Contruction of http request were moved to
  6710. HttpRequest class.
  6711. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  6712. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  6713. * src/HttpAuthConfig.h: New class.
  6714. * src/Range.h: New class.
  6715. To make FtpTunnel{Request, Response}Command and
  6716. HttpProxy{Request, Response}Command derived from
  6717. AbstractProxy{Request, Response}Command:
  6718. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  6719. Derived from AbstractProxyRequestCommand class.
  6720. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  6721. Derived from AbstractProxyResponseCommand class.
  6722. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  6723. Derived from AbstractProxyRequestCommand class.
  6724. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  6725. Derived from AbstractProxyResponseCommand class.
  6726. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  6727. : New class.
  6728. * src/AbstractProxyResponseCommand.h,
  6729. src/AbstractProxyResponseCommand.cc: New class.
  6730. To add netrc support:
  6731. * src/Netrc.h, src/Netrc.cc: New class.
  6732. * src/Util.h, src/Util.cc (split): New function.
  6733. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  6734. "Content-Range" header instead of "Range" header.
  6735. * src/HttpHeader.h
  6736. (getStatus): Removed.
  6737. (setStatus): Removed.
  6738. * src/Segment.h
  6739. (getPositionToWrite): New function.
  6740. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6741. * src/HttpHeader.h
  6742. (Range.h): New include.
  6743. (status): New variable.
  6744. (HttpHeader): Initialized status with 0.
  6745. (getStatus): New function.
  6746. (setStatus): New function.
  6747. (getRange): New function.
  6748. (HttpHeaderHandle): New function.
  6749. * src/HttpHeader.cc
  6750. (getRange): New function.
  6751. * src/Request.h
  6752. (RequestWeakHandle): New definition.
  6753. * src/HttpConnection.h
  6754. (HttpConnectionHandle): New type definition.
  6755. * src/HttpConnection.cc
  6756. (receiveResponse): Set HTTP status to headers.
  6757. * src/main.cc
  6758. (showUsage): Fixed typo.
  6759. * src/Segment.h
  6760. (SegmentHandle): New type definition.
  6761. * src/BitfieldMan.h
  6762. (getMissingUnusedLength): New function.
  6763. * src/BitfieldMan.cc
  6764. (getMissingUnusedLength): New function.
  6765. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6766. To fix static initialization order problem:
  6767. * src/BitfieldManFactory.h
  6768. (defaultRandomizer): Removed.
  6769. (factory): New variable.
  6770. (getNewFactory): Removed.
  6771. (getFactoryInstance): New function.
  6772. (setDefaultRandomizer): Rewritten.
  6773. (getDefaultRandomizer): Rewritten.
  6774. * src/BitfieldManFactory.cc
  6775. (defaultRandomizer): Removed.
  6776. (factory): Initialized to 0.
  6777. (BitfieldManFactory): Initialized randomizer to 0.
  6778. * src/DefaultPieceStorage.cc
  6779. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  6780. * src/Peer.cc
  6781. (Peer): getNewFactory() -> getFactoryInstance()
  6782. * src/SegmentMan.cc
  6783. (initBitfield): getNewFactory() -> getFactoryInstance()
  6784. * src/Piece.cc
  6785. (Piece): getNewFactory() -> getFactoryInstance()
  6786. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. To fix the bug that causes crash on Max OS X:
  6788. * src/SimpleRandomizer.h
  6789. (getInstance): Create new instance if the static variable is null.
  6790. * src/SimpleRandomizer.cc
  6791. (randomizer): Initialized to 0.
  6792. * src/BitfieldManFactory.h
  6793. (getNewFactory): Removed the call to setRandomizer().
  6794. To fix the miscalculation of the range of checksum:
  6795. * src/BitfieldMan.h
  6796. (isBitSetOffsetRange): New function.
  6797. * src/BitfieldMan.cc
  6798. (isBitSetOffsetRange): New function.
  6799. * src/SegmentMan.cc
  6800. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  6801. Use bitfield->getBlockLength() instead of segment.segmentLength.
  6802. * Release 0.10.1
  6803. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6804. To lower CPU usage in BitTorrent download when --max-upload-limit
  6805. command-line option specified:
  6806. * src/DefaultBtMessageDispatcher.cc
  6807. (sendMessages): Calculate uploading speed only when current message
  6808. is uploading data and is not sent yet.
  6809. * src/DefaultPeerStorage.h
  6810. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  6811. * src/HttpResponseCommand.cc
  6812. (handleDefaultEncoding): Added the cast to int32_t to itos.
  6813. This fixes compile error in Soralis 10.
  6814. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6815. To fix segfault in Metalink download:
  6816. * src/UrlRequestInfo.h
  6817. (filename): Removed.
  6818. (totalLength): Removed.
  6819. (setTotalLength): Removed.
  6820. (setFilename): Removed.
  6821. * src/MetalinkRequestInfo.cc
  6822. (execute): Do not set filename and totalLength to reqInfo.
  6823. Set chunk checksum to reqInfo if it is not null.
  6824. * src/HttpResponseCommand.cc
  6825. (executeInternal): Fixed filename in log.
  6826. (handleDefaultEncoding): Removed the call to initBitfield() and
  6827. markAllPiecesDone().
  6828. (handleOtherEncoding): Added HEAD method handling.
  6829. * src/FtpNegotiateCommand.cc
  6830. (executeInternal): Added SEQ_HEAD_OK handling.
  6831. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  6832. return false.
  6833. * src/FtpNegotiateCommand.h
  6834. (SEQ_HEAD_OK): New definition.
  6835. * src/SegmentMan.cc
  6836. (initBitfield): Delete bitfield.
  6837. (isChunkChecksumValidationReady): Fixed the condition.
  6838. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  6839. works fine.
  6840. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6841. * src/Xml2MetalinkProcessor.h
  6842. (xpathExists): New function.
  6843. * src/Xml2MetalinkProcessor.cc
  6844. (xpathExists): New function.
  6845. Not to send HEAD request if filename and size are available in Metalink
  6846. file:
  6847. * src/UrlRequestInfo.h
  6848. (filename): New variable.
  6849. (totalLength): New variable.
  6850. (setTotalLength): New function.
  6851. (setFilename): New function.
  6852. * src/MetalinkRequestInfo.cc
  6853. (execute): Set filename and size to UrlRequestInfo.
  6854. * src/MetalinkEntry.cc
  6855. (MetalinkEntry): Initialize size with 0.
  6856. * src/UrlRequestInfo.cc
  6857. (execute): Set filename and size to SegmentMan.
  6858. Not to download rest of the files after selected files are downloaded
  6859. in BitTorrent:
  6860. * src/PieceStorage.h
  6861. (allDownloadFinished): New function.
  6862. * src/DefaultBtAnnounce.cc
  6863. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  6864. downloadFinished.
  6865. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  6866. * src/DefaultPieceStorage.cc
  6867. (completePiece): Use allDownloadFinished instead of downloadFinished.
  6868. Commented out the call to finishSelectiveDownloadingMode().
  6869. (downloadFinished): Call isFilteredAllBitSet() instead of
  6870. isAllBitSet().
  6871. (allDownloadFinished): New function.
  6872. * src/DefaultBtInteractive.cc
  6873. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  6874. downloadFinished().
  6875. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  6876. * src/TorrentDownloadEngine.cc
  6877. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  6878. * src/BitfieldMan.h
  6879. (isFilteredAllBitSet): New function.
  6880. * src/ShareRatioSeedCriteria.h
  6881. (PieceStorage.h): New include.
  6882. (pieceStorage): New variable.
  6883. (evaluate):
  6884. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  6885. * src/BitfieldMan.cc
  6886. (isFilteredAllBitSet): New function.
  6887. (isAllBitSet): Filter is not took into account.
  6888. Rename --force-truncate as --allow-overwrite:
  6889. * src/TorrentRequestInfo.cc
  6890. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  6891. * src/main.cc
  6892. (showUsage): --force-truncate -> --allow-overwrite
  6893. * src/message.h
  6894. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  6895. * src/prefs.h
  6896. (PREF_FORCE_TRUNCATE): Removed.
  6897. (PREF_ALLOW_OVERWRITE): New definition.
  6898. * src/SegmentMan.cc
  6899. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  6900. * src/MetalinkRequestInfo.cc
  6901. (execute): Queueing message are now logged in info level.
  6902. * src/common.h
  6903. (LONG_LONG_MAX): Removed.
  6904. (LONG_LONG_MIN): Removed.
  6905. * src/HttpResponseCommand.cc
  6906. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  6907. * src/FtpNegotiateCommand.cc
  6908. (recvSize): LONG_LONG_MAX -> INT64_MAX
  6909. * src/main.cc
  6910. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  6911. command-line option.
  6912. (main): Added --check-integriy and --realtime-chunk-checksum
  6913. command-line option.
  6914. --force-truncate -> --allow-overwrite
  6915. Set initial value of --check-integrity option to false.
  6916. Don't show usage when error occurs while persing command-line options.
  6917. Removed deprecated --upload-limit option.
  6918. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  6920. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  6921. * src/BtAllowedFastMessage.cc:
  6922. * src/BtBitfieldMessage.cc
  6923. * src/BtCancelMessage.cc
  6924. * src/BtChokeMessage.cc
  6925. * src/BtHaveAllMessage.cc
  6926. * src/BtHaveMessage.cc
  6927. * src/BtHaveNoneMessage.cc
  6928. * src/BtInterestedMessage.cc
  6929. * src/BtNotInterestedMessage.cc
  6930. * src/BtPieceMessage.cc
  6931. * src/BtPortMessage.cc
  6932. * src/BtRejectMessage.cc
  6933. * src/BtRequestMessage.cc
  6934. * src/BtSuggestPieceMessage.cc
  6935. * src/BtUnchokeMessage.cc
  6936. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  6937. files are affected.
  6938. * src/ChunkChecksumValidator.cc
  6939. * src/SegmentMan.cc
  6940. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. To add chunk checksum validation:
  6942. * src/MetalinkEntry.h
  6943. (MetalinkChunkChecksum.h): New include.
  6944. (chunkChecksum): New variable.
  6945. * src/Request.h
  6946. (method): New variable.
  6947. (setMethod): New function.
  6948. (getMethod): New function.
  6949. (METHOD_GET): New static constant.
  6950. (METHOD_HEAD): New static constant.
  6951. * src/Xml2MetalinkProcessor.h
  6952. (getPieceHash): New function.
  6953. * src/PieceStorage.h
  6954. (markAllPiecesDone): New function.
  6955. (checkIntegrity): New function.
  6956. * src/FileAllocator.h
  6957. (NullFileAllocationMonitor.h): New include.
  6958. (FileAllocator): Initialize fileAllocationMonitor with new
  6959. NullFileAllocationMonitor().
  6960. * src/MultiDiskAdaptor.h
  6961. (messageDigest.h): Remove include.
  6962. (ctx): Removed.
  6963. (hashUpdate): Added ctx.
  6964. (MultiDiskAdaptor): Removed ctx.
  6965. (sha1Sum): Renamed as messageDigest.
  6966. (messageDigest): New function.
  6967. * src/UrlRequestInfo.h
  6968. (HeadResult): New class.
  6969. (digestAlgo): New variable.
  6970. (chunkChecksumLength): New variable.
  6971. (chunkChecksums): New variable.
  6972. (getHeadResult): New function.
  6973. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  6974. (setDigestAlgo): New function.
  6975. (setChunkChecksumLength): New function.
  6976. (setChunkChecksums): New function.
  6977. * src/DefaultPieceStorage.cc
  6978. (DiskAdaptorWriter.h): New include.
  6979. (ChunkChecksumValidator.h): New include.
  6980. (markAllPiecesDone): New function.
  6981. (checkIntegrity): New function.
  6982. * src/DefaultBtContext.h
  6983. (getPieceHashes): New function.
  6984. * src/TorrentRequestInfo.cc
  6985. (execute): Try to validate chunk checksum if file already exists and
  6986. .aria2 file doesn't there and user allows aria2 to overwrite it.
  6987. * src/messageDigest.h
  6988. (~MessageDigestContext): Added digestFree().
  6989. * src/MetalinkRequestInfo.cc
  6990. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  6991. * src/DiskAdaptor.h
  6992. (messageDigest.h): New include.
  6993. (sha1Sum): Renamed as messageDigest.
  6994. (messageDigest): New function.
  6995. * src/DownloadCommand.h
  6996. (PeerStat.h): New include.
  6997. (maxDownloadSpeedLimit): New variable.
  6998. (startupIdleTime): New variable.
  6999. (lowestDownloadSpeedLimit): New variable.
  7000. (peerStat): New variable.
  7001. (setMaxDownloadSpeedLimit): New function.
  7002. (setStartupIdleTime): New function.
  7003. (setLowestDownloadSPeedLimit): New function.
  7004. * src/BtContext.h
  7005. (getPieceHashes): New function.
  7006. * src/main.cc
  7007. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  7008. option to true for testing purpose.
  7009. * src/BtPieceMessage.cc
  7010. (checkPieceHash): Use messageDigest
  7011. * src/DownloadEngine.cc
  7012. (SetDescriptor): Removed.
  7013. (AccumulateActiveCommand): Removed.
  7014. (waitData): Rewritten.
  7015. (updateFdSet): Rewritten.
  7016. * src/MultiDiskAdaptor.cc
  7017. (hashUpdate): Added ctx.
  7018. (sha1Sum): Renamed as messageDigest.
  7019. (messageDigest): New function.
  7020. * src/BitfieldMan.h
  7021. (isBitRangeSet): New function.
  7022. (unsetBitRange): New function.
  7023. * src/ByteArrayDiskWriter.h
  7024. (sha1Sum): Renamed as messageDigest.
  7025. (messageDigest): New function.
  7026. * src/ConsoleDownloadEngine.cc
  7027. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  7028. * src/DiskWriter.h
  7029. (messageDigest.h): New include.
  7030. (sha1Sum): Renamed as messageDigest.
  7031. (messageDigest): New function.
  7032. * src/ChunkChecksumValidator.h: New class.
  7033. * src/DiskAdaptorWriter.h: New class.
  7034. * src/prefs.h
  7035. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  7036. (PREF_CHECK_INTEGRITY): New definition.
  7037. * src/HttpResponseCommand.cc
  7038. (handleDefaultEncoding): Added method "HEAD" handling.
  7039. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7040. (handleOtherEncoding):
  7041. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  7042. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  7043. startupIdleTime, lowestDownloadSpeedLimit to command.
  7044. * src/SegmentMan.h
  7045. (getSegmentEntryByIndex): New function.
  7046. (getSegmentEntryByCuid): New function.
  7047. (getSegmentEntryIteratorByCuid): New function.
  7048. (diskWriter): DiskWriter -> DiskWriterHandle
  7049. (pieceHashes): New variable.
  7050. (chunkHashLength): New variable.
  7051. (digestAlgo): New variable.
  7052. (FindPeerStat): Removed.
  7053. (getPeerStat): Rewritten.
  7054. (markAllPiecesDone): New function.
  7055. (checkIntegrity): New function.
  7056. (tryChunkChecksumValidation): New function.
  7057. (isChunkChecksumValidationReady): New function.
  7058. * src/BitfieldMan.cc
  7059. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  7060. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  7061. blocks to 0.
  7062. (isBitRangeSet): New function.
  7063. (unsetBitRange): New function.
  7064. * src/FtpNegotiateCommand.cc
  7065. (executeInternal): Set maxDownloadSpeedLimit,
  7066. startupIdleTime, lowestDownloadSpeedLimit to command.
  7067. (recvSize): Added method "HEAD" handling.
  7068. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7069. * src/AbstractSingleDiskAdaptor.cc
  7070. (sha1Sum): Renamed as messageDigest.
  7071. (messageDigest): New function.
  7072. * src/AbstractSingleDiskAdaptor.h
  7073. (sha1Sum): Renamed as messageDigest.
  7074. (messageDigest): New function.
  7075. * src/Util.h
  7076. (indexRange): New function.
  7077. * src/MetalinkEntry.cc
  7078. (MetalinkEntry): Initialized chunkChecksum to 0.
  7079. * src/ShaVisitor.cc
  7080. (~ShaVisitor): Removed the call to ctx.digestFree().
  7081. * src/SegmentMan.cc
  7082. (ChunkChecksumValidator.h): New include.
  7083. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  7084. to DIGEST_ALGO_SHA1.
  7085. (~SegmentMan): Removed diskWriter.
  7086. (FindSegmentEntryByIndex): Removed.
  7087. (FindSegmentEntryByCuid): Removed.
  7088. (checkoutSegment): Rewritten.
  7089. (findSlowerSegmentEntry): Rewritten.
  7090. (getSegment): Rewritten.
  7091. (updateSegment): Rewritten.
  7092. (completeSegment): Rewritten.
  7093. (markAllPiecesDone): New function.
  7094. (checkIntegrity): New function.
  7095. (isChunkChecksumValidationReady): New function.
  7096. (tryChunkChecksumValidation): New function.
  7097. * src/Xml2MetalinkProcessor.cc
  7098. (getEntry): Get size and set it to entry.
  7099. Get chunk checksum and set it to entry.
  7100. (getPieceHash): New function.
  7101. * src/Util.cc
  7102. (sha1Sum): Removed ctx.digestFree()
  7103. (fileChecksum): Removed ctx.digestFree()
  7104. (indexRange): New function.
  7105. * src/Request.cc
  7106. (METHOD_GET): New variable.
  7107. (METHOD_HEAD): New variable.
  7108. (Request): Added method.
  7109. * src/UrlRequestInfo.cc
  7110. (FatalException.h): New include.
  7111. (message.h): New include.
  7112. (operator<<): Added operator<< for class HeadResult.
  7113. (getHeadResult): New function.
  7114. (execute): Get filename and size in separate download engine.
  7115. * src/ChunkChecksumValidator.cc: New class.
  7116. * src/DownloadCommand.cc:
  7117. (DownloadCommand): Added peerStat.
  7118. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  7119. the value from Option.
  7120. The buffer size is now 16KB.
  7121. Use peerStat member instead of getting it from SegmentMan.
  7122. Use startupIdleTime member instead of gettingit from Option.
  7123. Added chunk checksum validation.
  7124. * src/AbstractDiskWriter.cc
  7125. (AbstractDiskWriter): Removed ctx.
  7126. (~AbstractDiskWriter): Removed ctx.digestFree()
  7127. (writeDataInternal): Returns the return value of write.
  7128. (readDataInternal): Returns the return value of read.
  7129. (sha1Sum): Renamed as messageDigest
  7130. (messageDigest): New function.
  7131. * src/AbstractDiwkWriter.h
  7132. (messageDigest.h): Removed include.
  7133. (ctx): Removed.
  7134. (sha1Sum): Renamed as messageDigest
  7135. (messageDigest): New function.
  7136. * src/DefaultPieceStorage.h
  7137. (markAllPiecesDone): New function.
  7138. (checkIntegrity): New function.
  7139. * src/NullFileAllocationMonitor.h: New class.
  7140. * src/MetalinkChunkChecksum.h: New class.
  7141. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7142. To decrease CPU usage in bittorrent download, calculation results in
  7143. BitfieldMan were cached and realtime fetching PeerObject was removed
  7144. with WeakHandle introduced. Option values are set to the objects
  7145. by setter before download begins.
  7146. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  7147. * src/DefaultBtRequestFactory.h
  7148. (dispatcher): BtMessageDispatcherHandle ->
  7149. BtMessageDispatcherWeakHandle.
  7150. (messageFactory): New variable.
  7151. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  7152. BtMessageDispatcherWeakHandle.
  7153. (setBtMessageFactory): New function.
  7154. * src/DefaultBtMessageDispatcher.cc:
  7155. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  7156. from Option.
  7157. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  7158. feating the value from Option.
  7159. Use messageFactory member.
  7160. * src/PeerInteractionCommand.cc
  7161. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  7162. Add reverse dependencies to factory object.
  7163. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  7164. dispatcher.
  7165. Set messageFactory to receiver.
  7166. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  7167. btInteractive.
  7168. Set receiver to peerObject.
  7169. Set maxDownloadSpeedLimit to this.
  7170. (executeInternal): Use maxDownloadSpeedLimit member.
  7171. * src/BtChokeMessage.cc
  7172. (doReceivedAction): Use dispatcher, requestFactory member.
  7173. (onSendComplete): Use dispatcher member.
  7174. * src/PeerInteractionCommand.h
  7175. (maxDownloadSpeedLimit): New variable.
  7176. * src/DefaultBtMessageReceiver.h
  7177. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7178. (dispatcher):
  7179. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7180. (messageFactory): New variable.
  7181. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7182. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7183. (setDispatcher):
  7184. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7185. (setBtMessageFactory): New function.
  7186. * src/DefaultBtInteractive.cc
  7187. (initiateHandshake): Use messageFactory member.
  7188. (addBitfieldMessageToQueue): Use messageFactory member.
  7189. (addAllowedFastMessageToQueue): Use messageFactory member.
  7190. (decideChoking): Use messageFactory member.
  7191. (checkHave): Use messageFactory member.
  7192. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  7193. (receiveMessages): Use maxDownloadSpeedLimit member.
  7194. (decideInterest): Use messageFactory member.
  7195. * src/BtRequestMessage.cc
  7196. (doReceivedAction): Use messageFactory, dispatcher member.
  7197. (onQueued): Use dispatcher member.
  7198. * src/BtPieceMessage.cc
  7199. (doReceivedAction): Use dispatcher member.
  7200. (send): Use peerConnection member.
  7201. (onWrongPiece): Use requestFactory member.
  7202. (handleChokingEvent): Use messageFactory, dispatcher member.
  7203. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  7204. * src/BtMessageDispatcher.h
  7205. (BtMessageDispatcherWeakHandle): New type definition.
  7206. * src/SimpleBtMessage.cc
  7207. (send): Use peerConnection member.
  7208. * src/BtRejectMessage.cc
  7209. (doReceivedAction): Use dispatcher member.
  7210. * src/DefaultBtMessageDispatcher.h
  7211. (Option.h): Removed include.
  7212. (messageFactory): New variable.
  7213. (option): Removed.
  7214. (maxUploadSpeedLimit): New variable.
  7215. (requestTimeout): New variable.
  7216. (DefaultBtMessageDispatcher): Removed option.
  7217. Added maxUploadSpeedLimit, requestTimeout.
  7218. (setOption): Removed.
  7219. (getOption): Removed.
  7220. (setMaxUploadSpeedLimit): New function.
  7221. (setRequestTimeout): New function.
  7222. (setBtMessageFactory): New function.
  7223. * src/DefaultBtInteractive.h
  7224. (btMessageReceiver):
  7225. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7226. (dispatcher):
  7227. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7228. (btRequestFactory):
  7229. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7230. (peerConnection):
  7231. PeerConnectionHandle -> PeerConnectionWeakHandle
  7232. (messageFactory): New variable.
  7233. (option): Removed.
  7234. (keepAliveInterval): New variable.
  7235. (maxDownloadSpeedLimit): New variable.
  7236. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  7237. (setBtMessageReceiver):
  7238. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7239. (setDispatcher):
  7240. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7241. (setBtRequestFactory):
  7242. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7243. (setPeerConnection):
  7244. PeerConnectionHandle -> PeerConnectionWeakHandle
  7245. (setOption): Removed.
  7246. (setKeepAliveInterval): New function.
  7247. (setMaxDownloadSpeedLimit): New function.
  7248. (setBtMessageFactory): New function.
  7249. * src/BitfieldMan.h
  7250. (cachedNumMissingBlock): New variable.
  7251. (cachedNumFilteredBlock): New variable.
  7252. (cachedCompletedLength): New variable.
  7253. (cachedFilteredComletedLength): New variable.
  7254. (cachedFilteredTotalLength): New variable.
  7255. (countMissingBlockNow): New function.
  7256. (countFilteredBlockNow): New function.
  7257. (getFilteredTotalLengthNow): New function.
  7258. (getCompletedLengthNow): New function.
  7259. (getFilteredCompletedLengthNow): New function.
  7260. (updateCache): New function.
  7261. * src/AbstractBtMessage.h
  7262. (BtMessageDispatcher.h): New include.
  7263. (PeerConnection.h): New include.
  7264. (BtRequestFactory.h): New include
  7265. (BtMessageFactory.h): New include.
  7266. (dispatcher): New variable.
  7267. (messageFactory): New variable.
  7268. (peerConnection: New variable.
  7269. (setBtMessageDispatcher): New function.
  7270. (setPeerConnection): New function.
  7271. (setBtMessageFactory): New function.
  7272. (setBtRequestFactory): New function.
  7273. * src/DefaultBtMessageFactory.cc
  7274. (setCommonProperty): Set dispatcher, requestFactory, this,
  7275. peerConnection to msg.
  7276. * src/BtRegistry.h
  7277. (BT_MESSAGE_RECEIVER): New macro.
  7278. * src/PeerConnection.h
  7279. (PeerConnectionWeakHandle): New type definition.
  7280. * src/BtMessageFactory.h
  7281. (BtMessageFactoryWeakHandle): New type definition.
  7282. * src/BitfieldMan.cc
  7283. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  7284. cachedCompletedLength, cachedFilteredComletedLength,
  7285. cachedFilteredTotalLength.
  7286. Call updateCache().
  7287. (countMissingBlock): Return cachedNumMissingBlock.
  7288. (countMissingBlockNow): New function.
  7289. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  7290. (countFilteredBlockNow): New function.
  7291. (setBit): Call updateCache().
  7292. (unsetBit): Call updateCache().
  7293. (setBitfield): Call updateCache().
  7294. (clearAllBit): Call updateCache().
  7295. (setAllBit): Use setBitInternal instead of setBit.
  7296. Call updateCache().
  7297. (addFilter): Call updateCache().
  7298. (enableFilter): Call updateCache().
  7299. (disableFilter): Call updateCache().
  7300. (clearFilter): Call updateCache().
  7301. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  7302. (getFilteredTotalLengthNow): New function.
  7303. (getCompletedLength): Return cachedCompletedLength.
  7304. (getCompletedLengthNow): New function.
  7305. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  7306. (getFilteredCompletedLengthNow): New function.
  7307. (updateCache): New function.
  7308. * src/BtMessageReceiver.h
  7309. (BtMessageReceiverWeakHandle): New type definition.
  7310. * src/DefaultBtMessageReceiver.cc
  7311. (receiveHandshake): Use messageFactory member.
  7312. (sendHandshake): Use messageFactory member.
  7313. (receiveMessage): Use messageFactory member.
  7314. * src/DefaultBtMessageFactory.h
  7315. (dispatcher): New variable.
  7316. (requestFactory): New variable.
  7317. (peerConnection): New variablle.
  7318. (setBtMessageDispatcher): New function.
  7319. (setBtRequestFactory): New function.
  7320. (setPeerConnection): New function.
  7321. * src/SharedHandle.h
  7322. (RefCount): New class.
  7323. (WeakHandle): New class.
  7324. * src/PeerObject.h
  7325. (BtMessageReceiver.h): New include.
  7326. (PeerObject): Added btMessageReceiver.
  7327. (btMessageReceiver): New variable.
  7328. * src/Util.cc
  7329. (countBit): Simplified.
  7330. * src/BtCancelMessage.cc
  7331. (doReceivedAction): Use dispatcher member.
  7332. * src/BtRequestFactory.h
  7333. (BtRequestFactoryWeakHandle): New type definition.
  7334. * src/PeerStorage.h
  7335. (downloadSpeed): int -> uint32_t
  7336. (uploadSpeed): int -> uint32_t
  7337. (sessionDownloadLength): long long int -> uint64_t
  7338. (sessionUploadLength): long long int -> uint64_t
  7339. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7340. To add RecoverableException, FatalException:
  7341. * src/AbstractCommand.cc
  7342. (onAbort): Exception -> RecoverableException
  7343. * src/PeerAbstractCommand.h
  7344. (RecoverableException.h): New include.
  7345. (onAbort): Exception -> RecoverableException.
  7346. * src/PeerInteractionCommand.cc
  7347. (onAbort): Exception -> RecoverableException.
  7348. * src/PeerAbstractCommand.cc
  7349. (execute): Exception -> RecoverableException.
  7350. (onAbort): Exception -> RecoverableException.
  7351. * src/TorrentRequestInfo.cc
  7352. (execute): Exception -> RecoverableException.
  7353. * src/MetalinkRequestInfo.cc
  7354. (execute): Exception -> RecoverableException.
  7355. * src/MetaFileUtil.cc: RecoverableException.
  7356. * src/AbstractCommand.h
  7357. (onAbort): Exception -> RecoverableException.
  7358. * src/DlRetryEx.h: Exception -> RecoverableException.
  7359. * src/DlAbortEx.h: Exception -> RecoverableException.
  7360. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  7361. * src/Util.cc: Exception -> RecoverableException.
  7362. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  7363. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  7364. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  7365. To make ID static const int
  7366. * src/BtInterestedMessage.h
  7367. (ID_t): Removed.
  7368. (ID): New variable.
  7369. (getId): Made non-const.
  7370. * src/BtPieceMessage.h
  7371. (ID_t): Removed.
  7372. (ID): New variable.
  7373. (getId): Made non-const.
  7374. * src/BtChokeMessage.h
  7375. (ID_t): Removed.
  7376. (ID): New variable.
  7377. (getId): Made non-const.
  7378. * src/BtHaveAllMessage.h
  7379. (ID_t): Removed.
  7380. (ID): New variable.
  7381. (getId): Made non-const.
  7382. * src/BtKeepAliveMessage.h
  7383. (ID_t): Removed.
  7384. (ID): New variable.
  7385. (getId): Made non-const.
  7386. * src/BtHandshakeMessage.h
  7387. (ID): New variable.
  7388. (getId): Made non-const.
  7389. * src/BtSuggestPieceMessage.h
  7390. (ID_t): Removed.
  7391. (ID): New variable.
  7392. (getId): Made non-const.
  7393. * src/BtPortMessage.h
  7394. (ID_t): Removed.
  7395. (ID): New variable.
  7396. (getId): Made non-const.
  7397. * src/AbstractBtMessage.h
  7398. (id): Removed.
  7399. (AbstractBtMessage): Removed id.
  7400. (getId): Removed.
  7401. * src/BtHaveMessage.h
  7402. (ID_t): Removed.
  7403. (ID): New variable.
  7404. (getId): Made non-const.
  7405. * src/BtAllowedFastMessage.h
  7406. (ID_t): Removed.
  7407. (ID): New variable.
  7408. (getId): Made non-const.
  7409. * src/BtCancelMessage.h
  7410. (ID_t): Removed.
  7411. (ID): New variable.
  7412. (getId): Made non-const.
  7413. * src/BtNotInterestedMessage.h
  7414. (ID_t): Removed.
  7415. (ID): New variable.
  7416. (getId): Made non-const.
  7417. * src/BtChokeMessage.h
  7418. (ID_t): Removed.
  7419. (ID): New variable.
  7420. (getId): Made non-const.
  7421. * src/BtRejectMessage.h
  7422. (ID_t): Removed.
  7423. (ID): New variable.
  7424. (getId): Made non-const.
  7425. * src/BtBitfieldMessage.h
  7426. (ID_t): Removed.
  7427. (ID): New variable.
  7428. (getId): Made non-const.
  7429. * src/BtUnchokeMessage.h
  7430. (ID_t): Removed.
  7431. (ID): New variable.
  7432. (getId): Made non-const.
  7433. * src/BtRequestMessage.h
  7434. (ID_t): Removed.
  7435. (ID): New variable.
  7436. (getId): Made non-const.
  7437. * src/BtHaveMessage.h
  7438. (ID_t): Removed.
  7439. (ID): New variable.
  7440. (getId): Made non-const.
  7441. To add --force-truncate command-line option and a check whether
  7442. the file already exists:
  7443. * src/DirectDiskAdaptor.h
  7444. (getFilePath): Made virtual public.
  7445. * src/MultiDiskAdaptor.h
  7446. (File.h): New include.
  7447. (DiskWriterEntry::fileEntry): Made private.
  7448. (DiskWriterEntry::fileExists): New function.
  7449. (DiskWriterEntry::getFileEntry): New function.
  7450. (fileExists): New function.
  7451. (getFilePath): New function.
  7452. * src/TorrentRequestInfo.cc
  7453. (FatalException.h): New include.
  7454. (message.h): New include.
  7455. (RecoverableException.h): New include.
  7456. (execute): Added a check whether file is already exists or not.
  7457. * src/DiskAdaptor.h
  7458. (fileExists): New function.
  7459. (getFilePath): New function.
  7460. * src/main.cc
  7461. (showUsage): Added an explanation of --force-truncate command-line
  7462. option.
  7463. (main): Added --force-truncate command-line option.
  7464. * src/Exception.h
  7465. (setMsg): buf[256] -> buf[1024]
  7466. * src/CopyDiskWriter.h
  7467. (getFilePath): Made public virtual.
  7468. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  7469. (fileExists): New function.
  7470. * src/DownloadEngineFactory.cc
  7471. (newTorrentConsoleEngine): Don't open file here.
  7472. * src/message.h
  7473. (EX_FILE_ALREADY_EXISTS): New definition.
  7474. * src/prefs.h
  7475. (PREF_FOECE_TRUNCATE): New definition.
  7476. * src/HttpResponseCommand.cc
  7477. (handleDefaultEncoding): Added a check whether the file already exists.
  7478. * src/SegmentMan.h
  7479. (fileExists): New function.
  7480. (shouldCancelDownloadForSafety): New function.
  7481. * src/FtpNegotiateCommand.cc
  7482. (recvSize): Added a check whether the file already exists.
  7483. * src/AbstractSingleDiskAdaptor.cc
  7484. (File.h): New include.
  7485. (fileExists): New function.
  7486. * src/AbstractSingleDiskAdaptor.h
  7487. (getFilePath): Removed.
  7488. (fileExists): New function.
  7489. * src/SegmentMan.cc
  7490. (fileExists): New function.
  7491. (shouldCancelDownloadForSafety): New function.
  7492. To fix regression bug in torrent downloading:
  7493. * src/DefaultBtRequestFactory.cc
  7494. (doChokedAction): New function.
  7495. * src/DefaultBtRequestFactory.h
  7496. (doChokedAction): New function.
  7497. * src/DefaultBtMessageDispatcher.cc
  7498. (doChokedAction): Do not delete request if its target is in allowed
  7499. fast set.
  7500. * src/DefaultBtInteractive.cc
  7501. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  7502. (sendKeepAlive): Send keep alive message even if the outgoing message
  7503. queue is not empty.
  7504. (decideInterest): Simplified the code.
  7505. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  7506. it is already called when BtChokeMessage is received from a peer.
  7507. * src/BtRequestFactory.h
  7508. (doChokedAction): New function.
  7509. To clean up code:
  7510. * src/PeerInteractionCommand.h
  7511. (executeInternal): Added virtual keyword explicitly.
  7512. (prepareForRetry): Added virtual keyword explicitly.
  7513. (prepareForNextPeer): Added virtual keyword explicitly.
  7514. (onAbort): Added virtual keyword explicitly.
  7515. * src/RequestSlot.cc
  7516. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  7517. * src/BtPieceMessage.cc
  7518. (doReceivedAction): Added a debug log of piece's bitfield.
  7519. * src/Piece.h
  7520. (getBitfieldLength): New function.
  7521. * src/ByteArrayDiskWriter.cc
  7522. (clear): Added buf = 0 to avoid double free corruption.
  7523. * src/FileAllocator.cc
  7524. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  7525. Added cp.reset().
  7526. * src/BitfieldMan.h
  7527. (operator=): Rewritten.
  7528. * src/BitfieldMan.cc
  7529. (BitfieldMan): Initialized bitfield, useBitfield.
  7530. * src/PeerConnection.cc
  7531. (receiveMessage): Added a call to socket->readable() after getting
  7532. message length to avoid possible EOF.
  7533. * src/Util.cc
  7534. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  7535. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7536. To add an ability to pre-allocate file space:
  7537. * src/DirectDiskAdaptor.h: Rewritten.
  7538. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  7539. * src/MultiDiskAdaptor.h: Rewritten.
  7540. * src/DefaultPieceStorage.cc
  7541. (MultiDiskWriter.h): Removed include.
  7542. (PreAllocationDiskWriter.h): Removed include.
  7543. (FileAllocationMonitor.h): New include.
  7544. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  7545. (initStorage): Rewritten.
  7546. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7547. * src/FileAllocator.h: New class.
  7548. * src/FileAllocator.cc: New class.
  7549. * src/FileAllocationMonitor.h: New class.
  7550. * src/FileAllocationMonitor.cc: New class.
  7551. * src/ConsoleFileAllocationMonitor.h: New class.
  7552. * src/ConsoleFileAllocationMonitor.cc: New class.
  7553. * src/AbstractSingleDiskAdaptor.h: New class.
  7554. * src/AbstractSingleDiskAdaptor.cc: New class.
  7555. * src/DiskAdaptor.h
  7556. (Directory.h): Removed include.
  7557. (DiskWriter.h): Removed include.
  7558. (FileEntry.h): Removed include.
  7559. (diskWriter): Removed.
  7560. (DiskAdaptor): Removed diskWriter.
  7561. (openFile): Made pure virtual.
  7562. (closeFile): Made pure virtual.
  7563. (openExistingFile): Made pure virtual.
  7564. (initAndOpenFile): Made pure virtual.
  7565. (writeData): Made pure virtual.
  7566. (readData): Made pure virtual.
  7567. (sha1Sum): Made pure virtual.
  7568. (getStoreDir): Returns const reference of storeDir.
  7569. (DiskAdaptorHandle): New type definition.
  7570. * src/main.cc
  7571. (ConsoleFileAllocationMonitor.h): New include.
  7572. (showUsage): Added default value description of -s option.
  7573. Added the description of --file-allocation option.
  7574. (main): Set default value of --file-allocation option to 'none'.
  7575. Added --file-allocation command-line option.
  7576. Setup FileAllocationMonitorFactory.
  7577. * src/FtpInitiateConnectionCommand.cc
  7578. (executeInternal): Removed diskWriter related processing, which was
  7579. moved to FtpNegotiationCommand.cc.
  7580. * src/DirectDiskAdaptor.cc
  7581. (getFilePath): Made non-const.
  7582. * src/CopyDiskAdaptor.h
  7583. (DiskAdaptor.h): Removed include.
  7584. (DiskWriter.h): Removed include.
  7585. (AbstractSingleDiskAdaptor.h): New include.
  7586. (getFilePath): Made non-const. Added virtual keyword.
  7587. (CopyDiskAdaptor): Removed diskWriter.
  7588. (getTempFile): Returns const reference.
  7589. (CopyDiskAdaptorHandle): New type definition.
  7590. * src/ByteArrayDiskWriter.cc
  7591. (clear): Simplified.
  7592. (initAndOpenFile): Rewritten.
  7593. (openFile): Call initAndOpenFile()
  7594. * src/MultiDiskAdaptor.cc: Rewritten.
  7595. * src/DownloadEngineFactory.cc
  7596. (FileAllocator.h): New include.
  7597. (FileAllocationMonitor.h): New include.
  7598. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  7599. create DefaultDiskWriter with file allocator.
  7600. * src/DiskWriter.h
  7601. (initAndOpenFile): Added totalLength argument.
  7602. (openFile): Added totalLength argument.
  7603. * src/prefs.h
  7604. (PREF_FILE_ALLOCATION): New definition.
  7605. (V_PREALLOC): New definition.
  7606. (V_NONE): New definition.
  7607. * src/HttpResponseCommand.cc
  7608. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  7609. size.
  7610. * src/FtpNegotiateCommand.cc
  7611. (Util.h): New include.
  7612. (recvSize): Open file here.
  7613. * src/Util.h
  7614. (ullitos): New function.
  7615. * src/CopyDiskWriter.h
  7616. (getFilePath): Made non-const.
  7617. * src/DefaultDiskWriter.h
  7618. (Option.h): New include.
  7619. (totalLength): Removed.
  7620. (DefaultDiskWriter): Removed totalLength.
  7621. (initAndOpenFile): Added totalLength argument.
  7622. (DefaultDiskWriterHandle): New type definition.
  7623. (createNewDiskWriter): New function.
  7624. * src/Util.cc
  7625. (ullitos): New function.
  7626. * src/DefaultDiskWriter.cc
  7627. (message.h): New include.
  7628. (FileAllocator.h): New include.
  7629. (prefs.h): New include.
  7630. (Util.h): New include.
  7631. (DefaultDiskWriter): Removed totalLength.
  7632. (initAndOpenFile): Added file allocation.
  7633. (createNewDiskWriter): New function. Just for temporary solution.
  7634. It will be rewritten later.
  7635. * src/DiskAdaptor.cc
  7636. (DiskAdaptor): Removed diskWriter.
  7637. * src/AbstractDiskWriter.cc
  7638. (LogFactory.h): New include.
  7639. (AbstractDiskWriter): Added fileAllocator, logger.
  7640. (openFile): Added totalLength argument.
  7641. * src/AbstractDiskWriter.h
  7642. (FileAllocator.h): New include.
  7643. (Logger.h): New include.
  7644. (fileAllocator): New variable.
  7645. (logger): New variable.
  7646. (openFile): Added totalLength argument. Added virtual keyword
  7647. explicitly.
  7648. (openExistingFile): Added totalLength argument. Added virtual keyword
  7649. explicitly.
  7650. (closeFile): Added virtual keyword explicitly.
  7651. (sha1Sum): Added virtual keyword explicitly.
  7652. (writeData): Added virtual keyword explicitly.
  7653. (readData): Added virtual keyword explicitly.
  7654. (setFileAllocator): New function.
  7655. * src/DefaultPieceStorage.h
  7656. (FileAllocator.h): New include.
  7657. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7658. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7659. * src/FileProgressMonitor.h: New class.
  7660. To compile aria2 on PC-BSD:
  7661. * src/DefaultBtContext.cc
  7662. (libgen.h): New include.
  7663. To fix memory leak:
  7664. * src/Exception.h
  7665. (~Exception): Delete cause. Fixed memory leak.
  7666. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7667. Rewritten a portion of bittorrent implementation:
  7668. * src/BtMessageValidator.h: New class.
  7669. * src/BtBitfieldMessageValidator.h: New class.
  7670. * src/BtHandshakeMessageValidator.h: New class.
  7671. * src/BtRequestMessageValidator.h: New class.
  7672. * src/BtSuggestPieceMessageValidator.h: New class.
  7673. * src/BtAllowedFastMessageValidator.h: New class.
  7674. * src/BtRejectMessageValidator.h: New class.
  7675. * src/BtCancelMessageValidator.h: New class.
  7676. * src/BtPieceMessageValidator.h: New class.
  7677. * src/BtHaveMessageValidator.h: New class.
  7678. * src/BtEventListener.h: New class.
  7679. * src/AbstractBtEventListener.h: New class.
  7680. * src/BtEvent.h: New class.
  7681. * src/BtChokingEvent.h: New class.
  7682. * src/BtChokedEvent.h: New class.
  7683. * src/BtCancelSendingPieceEvent.h: New class.
  7684. * src/BtAbortOutstandingRequestEvent.h: New class.
  7685. * src/Randomizer.h: New class.
  7686. * src/SimpleRandomizer.h: New class.
  7687. * src/BtMessage.h: New class.
  7688. * src/AbstractBtMessage.h: New class.
  7689. * src/SimpleBtMessage.h: New class.
  7690. * src/BtHaveMessage.h: New class.
  7691. * src/BtInterestedMessage.h: New class.
  7692. * src/BtAllowedFastMessage.h: New class.
  7693. * src/BtUnchokeMessage.h: New class.
  7694. * src/BtCancelMessage.h: New class.
  7695. * src/BtNotInterestedMessage.h: New class.
  7696. * src/BtChokeMessage.h: New class.
  7697. * src/BtHaveNoneMessage.h: New class.
  7698. * src/BtHandshakeMessage.h: New class.
  7699. * src/BtSuggestPieceMessage.h: New class.
  7700. * src/BtHaveMessage.h: New class.
  7701. * src/BtPieceMessage.h: New class.
  7702. * src/BtHaveAllMessage.h: New class.
  7703. * src/BtKeepAliveMessage.h: New class.
  7704. * src/BtPortMessage.h: New class.
  7705. * src/BtRejectMessage.h: New class.
  7706. * src/BtBitfieldMessage.h: New class.
  7707. * src/BtRequestMessage.h: New class.
  7708. * src/DefaultBtRequestFactory.h: New class.
  7709. * src/DefaultBtMessageReceiver.h: New class.
  7710. * src/BtInteractive.h: New class.
  7711. * src/BtMessageDispatcher.h: New class.
  7712. * src/DefaultBtMessageDispatcher.h: New class.
  7713. * src/DefaultBtInteractive.h: New class.
  7714. * src/BitfieldManFactory.h: New class.
  7715. * src/HandleRegistry.h: New class.
  7716. * src/BtMessageFactory.h: New class.
  7717. * src/BtMessageReceiver.h: New class.
  7718. * src/DefaultBtMessageFactory.h: New class.
  7719. * src/PeerObject.h: New class.
  7720. * src/BtRequestFactory.h: New class.
  7721. * src/SuggestPieceMessage.h: Removed.
  7722. * src/PortMessage.h: Removed.
  7723. * src/SuggestPieceMessage.h: Removed.
  7724. * src/KeepAliveMessage.h: Removed.
  7725. * src/HandshakeMessage.h: Removed.
  7726. * src/PeerInteraction.h: Removed.
  7727. * src/UnchokeMessage.h: Removed.
  7728. * src/PieceMessage.h: Removed.
  7729. * src/RequestMessage.h: Removed.
  7730. * src/InterestedMessage.h: Removed.
  7731. * src/HaveMessage.h: Removed.
  7732. * src/CancelMessage.h: Removed.
  7733. * src/RejectMessage.h: Removed.
  7734. * src/AllowedFastMessage.h: Removed.
  7735. * src/HaveNoneMessage.h: Removed.
  7736. * src/SimplePeerMessage.h: Removed.
  7737. * src/HaveAllMessage.h: Removed.
  7738. * src/BitfieldMessage.h: Removed.
  7739. * src/PeerMessageFactory.h: Removed.
  7740. * src/NotInterestedMessage.h: Removed.
  7741. * src/ChokeMessage.h: Removed.
  7742. * src/PeerMessage.h: Removed.
  7743. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7744. To know root cause of exception:
  7745. * src/Exception.h
  7746. (cause): New variable.
  7747. (Exception): Added a parameter.
  7748. (getMsg): Return const reference to msg.
  7749. (getCause): New function.
  7750. * src/DlRetryEx.h
  7751. (DlRetryEx): Added a parameter 'cause'.
  7752. Added an overloaded constructor.
  7753. (DlAbortEx): Added a parameter 'cause'.
  7754. Added an overloaded constructor.
  7755. * src/SimpleLogger.cc
  7756. (writeLog): Log nested exception messages recursively.
  7757. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. * src/DefaultBtProgressInfoFile.cc
  7759. (load): Fixed memory leak when the infohash doesn't match.
  7760. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7761. * src/DefaultPeerStorage.cc
  7762. (calculateStat): Simplified the code by combining 2 loops into 1.
  7763. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7764. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  7765. for BitTorrent download:
  7766. * src/PeerAbstractCommand.cc
  7767. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  7768. * src/main.cc:
  7769. (timeoutSpecified): Removed.
  7770. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  7771. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  7772. * src/TorrentRequestInfo.cc
  7773. (timeoutSpecified): Removed.
  7774. (torrentHandler): Removed timeoutSpecified and the adjustment of
  7775. timeout value.
  7776. * src/prefs.h
  7777. (PREF_BT_TIMEOUT): New definition.
  7778. Delete unused variables:
  7779. * src/TorrentRequestInfo.cc
  7780. (requestInfo): Removed.
  7781. Move setSignalHander to Util::setGlobalSignalHandler:
  7782. * src/TorrentRequestInfo.cc:
  7783. setSignalHander -> Util::setGlobalSignalHandler
  7784. * src/main.cc
  7785. (setSignalHander): Removed.
  7786. (main): setSignalHander -> Util::setGlobalSignalHandler
  7787. * src/Util.h
  7788. (setGlobalSignalHandler): New function.
  7789. * src/Util.cc
  7790. (setGlobalSignalHandler): New function.
  7791. * src/UrlRequestInfo.cc:
  7792. setSignalHander -> Util::setGlobalSignalHandler
  7793. Reset peer status in order to exit gracefully:
  7794. * src/PeerAbstractCommand.cc
  7795. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  7796. To fix the bug that causes the number of bytes uploaded is not saved
  7797. to .aria2 file:
  7798. * src/DefaultPeerStorage.h
  7799. (removedPeerSessionDownloadLength): New variable.
  7800. (removedPeerSessionUploadLength): New variable.
  7801. * src/DefaultPeerStorage.cc
  7802. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  7803. removedPeerSessionUploadLength(0).
  7804. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  7805. through all peers, and then add removedPeerSessionDownloadLength(
  7806. removedPeerSessionUploadLength) to it.
  7807. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  7808. (to) the peer to removedPeerSessionDownloadLength
  7809. (removedPeerSessionUploadLength).
  7810. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. To add Metalink location option:
  7812. * src/MetalinkRequestInfo.cc
  7813. (execute): Call MetalinkEntry::setLocationPreference()
  7814. * src/main.cc
  7815. (showUsage): Added the help message for --metalink-location option.
  7816. (main): Added --metalink-location option.
  7817. * src/prefs.h
  7818. (PREF_METALINK_LOCATION): New definition.
  7819. * src/MetalinkEntry.cc
  7820. (AddLocationPreference): New function object.
  7821. (setLocationPreference): New function.
  7822. * src/Xml2MetalinkProcessor.cc
  7823. (getResource): Set location attribute to MetalinkResource
  7824. To show URLs to download
  7825. * src/UrlRequestInfo.h
  7826. (printUrls): New function.
  7827. To add multiple <file> Metalink support:
  7828. * src/MetalinkEntry.h
  7829. (MetalinkResources): Removed.
  7830. (setLocationPreference): New function.
  7831. (MetalinkEntryHandle): New type definition.
  7832. (MetalinkEntries): New type definition.
  7833. * src/Xml2MetalinkProcessor.h
  7834. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7835. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7836. (parseFile): Metalinker* -> MetalinkerHandle
  7837. * src/UrlRequestInfo.h
  7838. (execute): RequestInfo* -> RequestInfos
  7839. * src/MetalinkRequestInfo.cc
  7840. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  7841. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  7842. (execute): RequestInfo* -> RequestInfos
  7843. Added multiple <file> support. Print filename when it is queued.
  7844. * src/MetalinkRequestInfo.h
  7845. (execute): RequestInfo* -> RequestInfos
  7846. (getDownloadEngine): Removed.
  7847. * src/RequestInfo.h
  7848. (RequestInfoHandle): New type definition.
  7849. (RequestInfos): New type definition.
  7850. (execute): RequestInfo* -> RequestInfos
  7851. (getDownloadEngine): Removed.
  7852. * src/MetalinkResource.h
  7853. (MetalinkResourceHandle): New type definition.
  7854. (MetalinkResources): New type definition.
  7855. * src/MetalinkEntry.cc
  7856. (~MetalinkEntry): Removed the deletion of the elements of resources,
  7857. because the element is now of type MetalinkResourceHandle.
  7858. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  7859. (Supported): MetalinkResource* -> MetalinkResourceHandle
  7860. (dropUnsupportedResource): Removed the deletion of the elements of
  7861. resources because the element is now of type MetalinkResourceHandle.
  7862. * src/Xml2MetalinkProcessor.cc
  7863. (parseFile): Metalinker* -> MetalinkerHandle
  7864. MetalinkEntry* -> MetalinkEntryHandle
  7865. Removed try-catch block.
  7866. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7867. MetalinkResource* -> MetalinkResourceHandle
  7868. Removed try-catch block.
  7869. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7870. Free result by using xmlXPathFreeObject()
  7871. * src/Metalinker.cc
  7872. (~Metalinker): Removed the deletion of entries.
  7873. MetalinkEntry* -> MetalinkEntryHandle
  7874. (queryEntry): Add multiple <file> Metalink support.
  7875. * src/Metalinker.h
  7876. (MetalinkEntries): Removed.
  7877. (queryEntry): MetalinkEntry* -> MetalinkEntries
  7878. * src/MetalinkProcessor.h
  7879. (parseFile): Metalinker* -> MetalinkerHandle
  7880. Bug fixes:
  7881. * src/PeerChokeCommand.cc
  7882. (execute): cat01->cat02
  7883. * src/DefaultPieceStorage.cc
  7884. (DefaultPieceStorage): Added diskAdaptor(0)
  7885. * src/TrackerWatcherComand.cc:
  7886. (execute): Use btAnnounce->noMoreAnnounce()
  7887. to determin whether the function returns true or not.
  7888. * src/TrackerUpdateCommand.cc:
  7889. (execute): Use btAnnounce->noMoreAnnounce()
  7890. to determin whether the function returns true or not.
  7891. * src/FtpConnection.cc
  7892. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  7893. This is the fix of the busy loop bug.
  7894. * src/DownloadCommand.cc
  7895. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  7896. cached PeerStat.
  7897. The value of "name" entry in torrent file is now set by
  7898. *DiskAdaptor::setTopDir(...) methods.
  7899. * src/MultiDiskAdaptor.h
  7900. (topDir): New variable.
  7901. (setTopDir): New function.
  7902. (getTopDir): New function.
  7903. * src/MultiDiskAdaptor.cc
  7904. (getFilePath): Concat storDir, "/" and topDir.
  7905. (mkdir): Use getFilePath() to get the directory path for output.
  7906. * src/DefaultPieceStorage.cc
  7907. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  7908. CopyDiskAdaptor.
  7909. * src/CopyDiskAdaptor.h
  7910. (topDir): New variable.
  7911. (setTopDir): New function.
  7912. (getTopDir): New function.
  7913. * src/CopyDiskAdaptor.cc
  7914. (fixFilename): Updated.
  7915. Misc
  7916. * src/UrlRequestInfo.h
  7917. (e): Removed.
  7918. (UrlRequestInfo): Removed e.
  7919. (getDownloadEngine): Removed.
  7920. * src/UrlRequestInfo.cc
  7921. (handler): Rewritten.
  7922. (printUrls): New function.
  7923. (execute): Call printUrls().
  7924. * src/HandshakeMessage.cc
  7925. (check): peerinteraction->getBtContext() -> btContext
  7926. * src/PeerInteraction.h
  7927. (getBtContext): Removed.
  7928. * src/TorrentRequestInfo.h
  7929. (execute): RequestInfo* -> RequestInfos
  7930. (getDownloadEngine): Removed.
  7931. * src/TorrentRequestInfo.cc
  7932. (haltRequested): Removed.
  7933. (btHaltRequested): New variable.
  7934. (torrentHandler): haltRequested -> btHaltRequested
  7935. (execute): RequestInfo* -> RequestInfos
  7936. * src/TorrentConsoleDownloadEngine.cc
  7937. (afterEachIteration): haltRequested -> btHaltRequested.
  7938. * src/ConsoleDownloadEngine.h
  7939. (initStatistics): Added virtual.
  7940. (calculateStatistics): Added virtual.
  7941. (onEndOfRun): Added virtual.
  7942. (afterEachIteration): Added virtual.
  7943. * src/ConsoleDownloadEngine.cc
  7944. (haltRequested): New variable.
  7945. (afterEachIteration): New function.
  7946. * src/main.cc
  7947. (requestInfo): Removed.
  7948. * src/SegmentMan.cc
  7949. (findSlowerSegmentEntry): Refactored.
  7950. * Release 0.9.0
  7951. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7952. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  7953. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  7954. * src/TorrentMan.h: Removed.
  7955. * src/TorrentMan.cc: Removed.
  7956. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  7957. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  7958. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  7959. * src/PeerAbstractCommand.cc: Use btRuntime.
  7960. * src/BtContextAwareCommand.h: New class.
  7961. * src/FileEntry.h: Added accessor methods for following variables.
  7962. (path): Made private.
  7963. (length): Made private.
  7964. (offset): Made private.
  7965. (extracted): Made private.
  7966. (requested): Made private.
  7967. (FileEntries): New definition.
  7968. (FileEntryHandle): New definition.
  7969. * src/FileEntry.cc: New file.
  7970. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  7971. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  7972. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  7973. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  7974. * src/PieceStorage.h: New file.
  7975. * src/PeerInteractionCommand.h: Use btContext.
  7976. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  7977. btRuntime.
  7978. * src/DefaultBtProgressInfoFile.h: New file.
  7979. * src/DefaultBtProgressInfoFile.cc: New file.
  7980. * src/File.cc
  7981. (Util.h): New include.
  7982. (mkdirs): New function.
  7983. * src/MultiDiskAdaptor.h
  7984. (mkdir): New function.
  7985. * src/PeerListProcessor.h
  7986. (Peers): Removed.
  7987. * src/PeerInteraction.h
  7988. (torrentMan): Removed.
  7989. (btContext): New variable.
  7990. (peerStorage): New variable.
  7991. (pieceStorage): New variable.
  7992. (btAnnounce): New variable.
  7993. (getTorrentMan): Removed.
  7994. (getBtContext): New function.
  7995. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  7996. btAnnounce.
  7997. * src/HandshakeMessage.h
  7998. (TorrentMan.h): Removed.
  7999. * src/HandshakeMessage.cc: Use btContext.
  8000. * src/DefaultBtAnnounce.cc: New file.
  8001. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  8002. * src/DefaultPieceStorage.cc: New file.
  8003. * src/DefaultBtContext.h: New file.
  8004. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  8005. Use the accessor methods of FileEntry.
  8006. * src/CookieBox.cc: Updated to use Util::slice().
  8007. * src/PieceMessage.cc: Use btContext, pieceStorage.
  8008. * src/common.h (SharedHandle.h): New include.
  8009. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  8010. pieceStorage.
  8011. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  8012. * src/DiskAdaptor.h
  8013. (topDir): Removed.
  8014. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  8015. (setTopDir): Removed.
  8016. (getTopDir): Removed.
  8017. * src/BtContext.h: New file.
  8018. * src/DefaultPeerStorage.h: New file.
  8019. * src/PieceMessage.h (TorrentMan.h): Removed.
  8020. * src/RequestMessage.h (TorrentMan.h): Removed.
  8021. * src/TorrentDownloadEngine.h
  8022. (uploadLength): New variable.
  8023. (btContext): New variable.
  8024. (btRuntime): New variable.
  8025. (pieceStorage): New variable.
  8026. (peerStorage): New variable.
  8027. (btAnnounce): New variable.
  8028. (btProgressInfoFile): New variable.
  8029. (torrentMan): Removed.
  8030. (setBtContext): New function.
  8031. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  8032. peerStorage, btAnnounce, btProgressInfoFile.
  8033. * src/Piece.h
  8034. (toString): New function.
  8035. (Pieces): New type definition.
  8036. * src/Peer.h
  8037. (active): New variable.
  8038. (Peer): Added active.
  8039. (activate): Set active to true.
  8040. (deactivate): Set active to false.
  8041. (isActive): New function.
  8042. (Peers): New type definition.
  8043. * src/DirectDiskAdaptor.cc
  8044. (getFilePath): Use the accessor methods of FileEntry.
  8045. * src/TorrentConsoleDownloadEngine.h
  8046. (afterEachIteration): New function.
  8047. * src/TorrentConsoleDownloadEngine.cc
  8048. (haltRequested): New variable.
  8049. (sendStatistics): Use pieceStorage, btRuntime.
  8050. (afterEachIteration): New function.
  8051. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  8052. * src/Directry.h
  8053. (Directory): New function.
  8054. (DirectoryHandle): New type definition.
  8055. * src/BtProgressInfoFile.h: New file.
  8056. * src/RequestMessage.cc: Use pieceStorage.
  8057. * src/BtRuntime.h: New file.
  8058. * src/DefaultBtContext.cc: New file.
  8059. * src/BitfieldMan.h
  8060. (getCompletedLength): New function(private).
  8061. (getCompletedLength): New function.
  8062. (getFilteredCompletedLength): New function.
  8063. * src/BitfieldMan.h
  8064. (getCompletedLength): New function(private).
  8065. (getCompletedLength): New function.
  8066. (getFilteredCompletedLength): New function.
  8067. * src/MultiDiskAdaptor.cc
  8068. (mkdir): New function.
  8069. (openFile): Call mkdir().
  8070. (initAndOpenFile): Call mkdir().
  8071. * src/CancelMessage.h
  8072. (TorrentMan.h): Removed.
  8073. * src/RejectMessage.h
  8074. (TorrentMan.h): Removed.
  8075. * src/DownloadEngineFactory.cc
  8076. (DefaultPieceStorage.h): New include.
  8077. (DefaultPeerStorage.h): New include.
  8078. (DefaultBtAnnounce.h): New include.
  8079. (DefaultBtProgressInfoFile.h): New include.
  8080. (newTorrentConsoleEngine): Rewritten.
  8081. * src/ShareRatioSeedCriteria.h
  8082. (torrentMan): Removed.
  8083. (btContext): New variable.
  8084. (peerStorage): New variable.
  8085. (btRuntime): New variable.
  8086. (evaluate): Use btContext, btRuntime, peerStorage.
  8087. * src/AnnounceTier.h: New file.
  8088. * src/BtAnnounce.h: New file.
  8089. * src/BtRegistry.h: New file.
  8090. * src/PeerInitiateConnectionCommand.h: Added btContext.
  8091. * src/PeerConnection.h (TorrentMan.h): Removed.
  8092. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  8093. * src/Util.h
  8094. (slice): Added an argument.
  8095. * src/Util.cc
  8096. (slice): Added an argument to control whether trim is made or not.
  8097. * src/PeerStorage.h: New file.
  8098. * src/BtRegistry.cc: New file.
  8099. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  8100. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  8101. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  8102. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  8103. * src/TorrentRequestInfo.h
  8104. (e): Removed.
  8105. (showFileEntry): Added an argument.
  8106. (getDownloadEngine): Return 0.
  8107. * src/DefaultBtAnnounce.h: New file.
  8108. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  8109. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  8110. * src/PeerMessageFactory.h
  8111. (btContext): New variable.
  8112. (pieceStorage): New variable.
  8113. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  8114. btAnnounce.
  8115. * src/DiskAdaptor.cc
  8116. (DiskAdaptor): Removed topDir.
  8117. (~DiskAdaptor): Removed topDir.
  8118. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  8119. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  8120. * src/File.h (mkdirs): New function.
  8121. * src/DefaultPeerStorage): New file.
  8122. * src/DownloadEngineFactory.h
  8123. (newTorrentConsoleEngine): Use btContext.
  8124. * src/BtContextAwareCommand.cc: New file.
  8125. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  8126. * src/PeerMessage.h
  8127. (btContext): New variable.
  8128. (peerStorage): New variable.
  8129. (pieceStorage): New variable.
  8130. (setBtContext): New function.
  8131. * src/Directry.cc
  8132. (Directory): New function.
  8133. (createDir): Do nothing if name.size() == 0.
  8134. * src/AnnounceList.h
  8135. (AnnounceTier): Removed.
  8136. (AnnounceTiers): Removed.
  8137. * src/DefaultPieceStorage.h: New file.
  8138. * src/Piece.cc (toString): New function.
  8139. To fix typo:
  8140. * src/main.cc (showVersion): Fixed typo.
  8141. To fix compile warning:
  8142. * src/DelegatingPeerListProcessor.cc
  8143. (canHandle): Added "return false".
  8144. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8145. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  8146. make the process of announce request testable.
  8147. * src/TrackerWatcherCommand.h
  8148. (TimeA2.h): Removed.
  8149. (interval): Removed.
  8150. (checkPoint): Removed.
  8151. (createRequestCommand): Added an argument 'url'.
  8152. (TrackerWatherCommand): Removed interval.
  8153. (createCommand): New function.
  8154. * src/DownloadEngineFactory.cc
  8155. (newTorrentConsoleEngine): Updated according to the changes in
  8156. TrackerWatherCommand.
  8157. * src/TorrentMan.cc
  8158. (DelegatingPeerListProcessor.h): New includes.
  8159. (TorrentMan): Added the initialization of announceInterval.
  8160. (isStoppedAnnounceReady): New function.
  8161. (isCompletedAnnounceReady): New function.
  8162. (isDefaultAnnounceReady): New function.
  8163. (isAnnounceReady): New function.
  8164. (getAnnounceUrl): New function.
  8165. (announceStart): New function.
  8166. (announceFailure): New function.
  8167. (announceSuccess): New function.
  8168. (isAllAnnounceFailed): New function.
  8169. (resetAnnounce): New function.
  8170. (processAnnounceResponse): New function.
  8171. (needMorePeerConnection): New function.
  8172. (noMoreAnnounce): New function.
  8173. * src/TrackerUpdateCommand.h
  8174. (getTrackerResponse): int->size_t
  8175. * src/TorrentMan.h
  8176. (isStoppedAnnounceReady): New function.
  8177. (isCompletedAnnounceReady): New function.
  8178. (isDefaultAnnounceReady): New function.
  8179. (announceInterval): New variable.
  8180. (isAnnounceReady): New function.
  8181. (getAnnounceUrl): New function.
  8182. (announceStart): New function.
  8183. (announceFailure): New function.
  8184. (announceSuccess): New function.
  8185. (isAllAnnounceFailed): New function.
  8186. (resetAnnounce): New function.
  8187. (processAnnounceResponse): New function.
  8188. (needMorePeerConnection): New function.
  8189. (noMoreAnnounce): New function.
  8190. * src/TrackerWatcherCommand.cc
  8191. (TrackerWatherCommand): Removed interval and checkPoint.
  8192. (execute): Rewritten.
  8193. (createCommand): New function.
  8194. (createRequestCommand): Rewritten.
  8195. * src/TrackerUpdateCommand.cc
  8196. (MetaFileUtil.h): Removed.
  8197. (DelegatingPeerListProcessor.h): Removed.
  8198. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  8199. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8200. Request -> RequestHandle:
  8201. * src/HttpResponseCommand.h: Request->RequestHandle
  8202. * src/AbstractCommand.cc: Request->RequestHandle
  8203. * src/HttpDownloadCommand.cc: Request->RequestHandle
  8204. * src/HttpRequestCommand.cc: Request->RequestHandle
  8205. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  8206. * src/AbstractCommand.h: Request->RequestHandle
  8207. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  8208. * src/HttpResponseCommand.cc: Request->RequestHandle
  8209. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  8210. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  8211. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  8212. * src/HttpConnection.h: Request->RequestHandle
  8213. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  8214. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  8215. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8216. * src/DownloadCommand.h: Request->RequestHandle
  8217. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  8218. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  8219. * src/HttpRequestCommand.h: Request->RequestHandle
  8220. * src/FtpNegotiateCommand.h: Request->RequestHandle
  8221. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8222. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  8223. * src/HttpDownloadCommand.h: Request->RequestHandle
  8224. * src/FtpConnection.cc: Request->RequestHandle
  8225. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  8226. * src/UrlRequestInfo.cc: Request->RequestHandle
  8227. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  8228. * src/HttpConnection.h: Request->RequestHandle
  8229. * src/DownloadCommand.cc: Request->RequestHandle
  8230. * src/FtpConnection.h: Request->RequestHandle
  8231. * src/FtpDowndloadCommand.h: Request->RequestHandle
  8232. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  8233. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  8234. * src/Request.h
  8235. (SharedHandle.h): New include.
  8236. (RequestHandle): New type definition.
  8237. (Requests): Redefined.
  8238. To add MULTITRACKER support:
  8239. * src/TrackerWatcherCommand.h
  8240. (createRequestCommand): New function.
  8241. * src/DownloadEngineFactory.cc
  8242. (newTorrentConsoleEngine): Removed req.
  8243. * src/prefs.h
  8244. (PREF_TRACKER_MAX_TRIES): New definition.
  8245. * src/TorrentMan.cc
  8246. (TorrentMan): Removed req. Added trackerNumTry.
  8247. (~TorrentMan): Removed req.
  8248. (setupInternal1): Added announceList.
  8249. * src/TorrentRequestInfo.cc
  8250. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  8251. announces is now specified by PREF_TRACKER_MAX_TRIES.
  8252. * src/main.cc
  8253. (main): Added PREF_TRACKER_MAX_TRIES.
  8254. * src/TorrentMan.h
  8255. (Request.h): Removed.
  8256. (AnnounceList.h): New include.
  8257. (trackerNumTry): New variable.
  8258. (req): Removed.
  8259. (announceList): New variable.
  8260. * src/TrackerWatcherCommand.cc
  8261. (execute): Rewritten.
  8262. (createRequestCommand): New function.
  8263. * src/TrackerUpdateCommand.cc
  8264. (execute): Updated with the use of AnnounceList.
  8265. * src/AnnounceList.cc: New class.
  8266. * src/AnnounceList.h: New class.
  8267. To fix typo:
  8268. * src/prefs.h
  8269. (PREF_MAX_TRIES): max_try->max_tries
  8270. To not to decode "+" as space in URL decode:
  8271. * src/Util.cc
  8272. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  8273. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8274. To add timeout to async name resolution:
  8275. * src/AbstractCommand.h
  8276. (nameResolveFinished): New function. This is not elegant way. It needs
  8277. to be more refined.
  8278. (nameResolverCheck): New variable.
  8279. * src/AbstractCommand.cc
  8280. (AbstractCommand): Added nameResolverCheck.
  8281. (execute): Added the check whether the name resolution has finished.
  8282. (setNameResolverCheck): Set nameResolverCheck to true.
  8283. (disableNameResolverCheck): Set nameResolverCheck to false.
  8284. (nameResolverFinished): New function.
  8285. * src/FtpInitiateConnectionCommand.h
  8286. (nameResolverFinished): New function.
  8287. * src/FtpInitiateConnectionCommand.cc
  8288. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8289. * src/HttpInitiateConnectionCommand.h
  8290. (nameResolverFinished): New function.
  8291. * src/HttpInitiateConnectionCommand.cc
  8292. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8293. * src/prefs.h
  8294. (PREF_DNS_TIMEOUT): New definition.
  8295. * src/main.cc
  8296. (main): Added PREF_DNS_TIMEOUT.
  8297. To add the support for a non-compact response from a tracker:
  8298. * src/PeerListProcessor.h: New class.
  8299. * src/DefaultPeerListProcessor.h: New class.
  8300. * src/DefaultPeerListProcessor.cc: New class.
  8301. * src/CompactPeerListProcessor.h: New class.
  8302. * src/CompactPeerListProcessor.cc: New class.
  8303. * src/DelegatingPeerListProcessor.h: New class.
  8304. * src/DelegatingPeerListProcessor.cc: New class.
  8305. * src/TorrentMan.cc
  8306. (addPeer): New function(overload).
  8307. (addPeer): Delete unused peers only when new peer is added.
  8308. * src/TorrentMan.h
  8309. (PeerListProcessor.h): Included.
  8310. (Peers): Removed.
  8311. (addPeer): New function(overload).
  8312. * src/TrackerUpdateCommand.cc
  8313. (netinet/in.h): Removed.
  8314. (DelegatingPeerListProcessor.h): Included.
  8315. (execute): Updated to use DelegatingPeerListProcessor.
  8316. To fix the memory leak in TorrentMan::peers:
  8317. * src/PeerAbstractCommand.cc
  8318. (onAbort): Added peer->resetStatus().
  8319. * src/Peer.h
  8320. (resetStatus): Made public.
  8321. To improve the precision of the speed calculation:
  8322. * src/SpeedCalc.h
  8323. (nextInterval): New variable.
  8324. * src/SpeedCalc.cc
  8325. (reset): Added nextInterval.
  8326. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  8327. (changeSw): Set nextInterval to 15 seconds relative to the current
  8328. instant time.
  8329. * src/main.cc
  8330. (showVersion): Updated.
  8331. (showUsage): Updated.
  8332. * Release 0.8.1
  8333. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8334. * src/main.cc
  8335. (showUsage): Commented out --min-segment-size option.
  8336. (main): Commented out --min-segment-size option.
  8337. * Release 0.8.0
  8338. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8339. * src/*.{h,cc}:
  8340. Added an exception to the license which allows linking with OpenSSL.
  8341. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8342. * src/AbstractCommand.cc
  8343. (execute): Check whether the download has finished before checking
  8344. socket status.
  8345. Return true if peerStat->getStatus() == REQUEST_IDLE.
  8346. Do not exit even if no segment is available.
  8347. * src/prefs.h
  8348. (PREF_STARTUP_IDLE_TIME): New definition.
  8349. * src/PeerInteractionCommand.cc
  8350. (executeInternal): Removed max speed limit. Because it performs bad.
  8351. (receiveMessages): Added max speed limit. This was better than above,
  8352. but still a little bit to be desired. Sometimes the download speed
  8353. became much faster than I specified.
  8354. * src/SpeedCalc.h
  8355. (start): New variable.
  8356. (accumulatedLength): New variable.
  8357. (getAvgSpeed): New function.
  8358. * src/SpeedCalc.cc
  8359. (reset): Added start, accumulatedLength.
  8360. (update): Added calculation of an average speed.
  8361. (getAvgSpeed): New function.
  8362. * src/DownloadCommand.h
  8363. (sw): Removed.
  8364. * src/main.cc
  8365. (main): Added PREF_STARTUP_IDLE_TIME.
  8366. * src/PeerStat.h
  8367. (STATUS): Added REQUEST_IDLE.
  8368. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  8369. (getAvgDownloadSpeed): New function
  8370. (requestIdle): New function.
  8371. * src/SegmentMan.h
  8372. (SegmentEntryHandle): New type definition.
  8373. (SegmentEntries): Now holds SegmentEntryHandle.
  8374. (findSlowerSegmentEntry): New funtion.
  8375. * src/SegmentMan.cc
  8376. (save): Updated according to the changes in SegmentEntries.
  8377. (read): Updated according to the changes in SegmentEntries.
  8378. (FindSegmentEntryByIndex): Updated according to the changes in
  8379. SegmentEntries.
  8380. (FindSegmentEntryByCuid): Updated according to the changes in
  8381. SegmentEntries.
  8382. (checkoutSegment): Updated according to the changes in SegmentEntries.
  8383. (onNullBitfield): Updated according to the changes in SegmentEntries.
  8384. Renamed uitr as itr.
  8385. (findSlowerSegmentEntry): New function.
  8386. (getSegment): Updated according to the changes in SegmentEntries.
  8387. Added the feature that cancels the segment with slow server and fast
  8388. one takes it over.
  8389. (cancelSegment): Updated according to the changes in SegmentEntries.
  8390. (getDownloadLength): Updated according to the changes in
  8391. SegmentEntries.
  8392. (init): Assigned 0 to bitfield after deleting it.
  8393. * src/DownloadCommand.cc
  8394. (STARTUP_IDLE_TIME): Removed.
  8395. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  8396. * src/PeerChokeCommand.cc
  8397. (optUnchokingPeer): Updated according to the changes in Peer.
  8398. (ResetDelta): Removed.
  8399. (UploadFaster): Updated according to the changes in Peer.
  8400. (DownloadFaster): Updated according to the changes in Peer.
  8401. (execute): I clarify the meaning of "upload" and "download" here.
  8402. "upload" means the transfer from localhost to remote host.
  8403. "download" means the transfer from remote host to localhost.
  8404. Based on this rule, I swapped orderByUploadRate and
  8405. orderByDownloadRate.
  8406. * src/PeerInteractionCommand.cc
  8407. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  8408. (executeInternal): Removed the argument of
  8409. peerInteraction->sendMessages().
  8410. (receiveMessages): Rewritten download speed limit.
  8411. (sendKeepAlive): Removed peerInteraction->sendMessages().
  8412. * src/HttpResponseCommand.cc
  8413. (handleDefaultEncoding): If file size is unknown in torrent request,
  8414. do not call segmentMan->initBitfield() here.
  8415. Disabled persistent connection feature in torrent request.
  8416. * src/UrlRequestInfo.h
  8417. (UrlRequestInfo): Removed const qualifier from option.
  8418. * src/TorrentMan.h
  8419. (TransferStat): New class.
  8420. (deltaDownloadLength): Removed.
  8421. (deltaUploadLength): Removed.
  8422. (addDeltaDownloadLength): Removed.
  8423. (getDeltaDownloadLength): Removed.
  8424. (resetDeltaDownloadLength): Removed.
  8425. (addDeltaUploadLength): Removed.
  8426. (getDeltaUploadLength): Removed.
  8427. (resetDeltaUploadLength): Removed.
  8428. (addActivePeer): Added peer->activate().
  8429. (deleteActivePeer): Added peer->deactivate().
  8430. (calculateStat): New function.
  8431. * src/TorrentMan.cc
  8432. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  8433. (calculateStat): New function.
  8434. * src/PeerInteraction.h
  8435. (uploadLimit): Removed.
  8436. (option): New variable.
  8437. (setUploadLimit): Removed.
  8438. (getUploadSpeed): Removed.
  8439. (sendMessages): Removed the argument "currentUploadSpeed".
  8440. * src/PeerInteraction.cc
  8441. (prefs.h): Included.
  8442. (PeerInteraction): Removed uploadLimit. Added option.
  8443. (sendMessages): Rewritten upload speed limit.
  8444. (sendHandshake): Removed the argument from sendMessages().
  8445. (sendBitfield): Removed the argument from sendMessages().
  8446. * src/PeerAbstractCommand.cc
  8447. (execute): Commented out the portion of upload limit.
  8448. (onAbort): Removed peer->resetStatus().
  8449. * src/TorrentRequestInfo.cc
  8450. (timeoutSpecified): Declared extern.
  8451. (execute): Set timeout to 180 if timeout is not specified by.
  8452. command-line.
  8453. * src/PieceMessage.cc
  8454. (receivedAction): Added peer->updateDownloadLength().
  8455. Removed peer->addPeerUpload().
  8456. Removed torrentMan->addDeltaDownloadLength().
  8457. (send): Added peer->updateUploadLength().
  8458. Removed peer->addPeerDownload().
  8459. Removed torrentMan->addDeltaUploadLength().
  8460. * src/main.cc
  8461. (timeoutSpecified): New variable.
  8462. (main): Set timeoutSpecified to false.
  8463. If the command-line option "--upload-limit" is specified, then
  8464. timeoutSpecified is set to true. This option will remain in the next
  8465. release, but be deprecated in the future release.
  8466. * src/TorrentRequestInfo.h
  8467. (TorrentRequestInfo): Removed const qualifier from op.
  8468. * src/PeerStat.h
  8469. (uploadSpeed): New variable.
  8470. (PeerStat): Added default value to cuid.
  8471. (calculateUploadSpeed): New function.
  8472. (updateUploadLength): New function.
  8473. (getMaxUploadSpeed): New function.
  8474. (getAvgUploadSpeed): New function.
  8475. (reset): Added uploadSpeed. Set status to IDLE.
  8476. * src/TorrentDownloadEngine.h
  8477. (cp): Declared as Time.
  8478. (sessionDownloadLengthArray): Removed.
  8479. (sessionUploadLengthArray): Removed.
  8480. (currentCp): Removed.
  8481. (lastCalcStat): New variable
  8482. (lastElapsed): Removed.
  8483. (sessionDownloadLength): Removed.
  8484. (calculateStat): New function.
  8485. * src/TorrentDownloadEngine.cc
  8486. (initStatistics): Removed lastElapsed, cp[],
  8487. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  8488. currentCp, sessionDownloadLength.
  8489. Added cp.reset() and lastCalcStat.reset().
  8490. (calculateSpeed): Changed the name of the argument.
  8491. (calculateStatistics): Rewritten.
  8492. (calculateStat): New function.
  8493. * src/Peer.h
  8494. (PeerStat.h): Included.
  8495. (peerUpload): Removed.
  8496. (peerDownload): Removed.
  8497. (peerStat): New variable.
  8498. (sessionUploadLength): New variable.
  8499. (sessionDownloadLength): New variable.
  8500. (deltaUpload): Removed.
  8501. (deltaDownload): Removed.
  8502. (resetStatus): Made private.
  8503. (Peer): Added sessionUploadLength, sessionDownloadLength.
  8504. Removed peerUpload, peerDownload.
  8505. (updateUploadLength): New function.
  8506. (addDeltaUpload): Removed.
  8507. (updateDownloadLength): New function.
  8508. (resetDeltaUpload): Removed.
  8509. (getDeltaUpload): Removed.
  8510. (addDeltaDownload): Removed.
  8511. (calculateUploadSpeed): New function.
  8512. (resetDeltaDownload): Removed.
  8513. (getDeltaDownload): Removed.
  8514. (calculateDownloadSpeed): New function.
  8515. (getSessionUploadLength): New function.
  8516. (getSessionDownloadLength): New function.
  8517. (activate): New function.
  8518. (deactivate): New function.
  8519. (addPeerUpload): Removed.
  8520. (setPeerUpload): Removed.
  8521. (getPeerUpload): Removed.
  8522. (addPeerDownload): Removed.
  8523. (setPeerDownload): Removed.
  8524. (getPeerDownload): Removed.
  8525. * src/Peer.cc
  8526. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  8527. * src/MetalinkRequestInfo.h
  8528. (MetalinkRequestInfo): Removed const qualifier from op.
  8529. * src/RequestInfo.h
  8530. (op): Removed const qualifier.
  8531. (RequestInfo): Removed const qualifier from op.
  8532. * src/prefs.h
  8533. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  8534. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  8535. * src/PeerInteractionCommand.cc
  8536. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  8537. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  8538. * src/PeerInteraction.cc
  8539. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  8540. * src/main.cc
  8541. (showUsage): Updated the description of "--lowest-speed-limit" option.
  8542. Added the description of "--max-download-limit" option.
  8543. Removed the description of "--upload-limit" option.
  8544. Added the description of "--max-upload-limit" option.
  8545. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  8546. Added "--max-download-limit" option and "--max-upload-limit" option.
  8547. Added the warning message if "--upload-limit" option is used.
  8548. * src/DownloadCommand.cc
  8549. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  8550. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. To rewrite segment download mechanism for HTTP/FTP download.
  8552. Use BitfieldMan to manage segment download.
  8553. * src/HttpResponseCommand.h
  8554. (executeInternal): Pass the reference of segment.
  8555. * src/AbstractCommand.cc
  8556. (prepareForRetry): Call segmentMan->cancelSegment here.
  8557. (onAbort): Call segmentMan->cancelSegment here.
  8558. * src/HttpDownloadCommand.cc
  8559. (prepareForNextSegment): New function.
  8560. * src/DownloadEngineFactory.cc
  8561. (newConsoleEngine): Removed splitter.
  8562. (newTorrentConsoleEngine): Removed splitter.
  8563. * src/Request.h
  8564. (segment): Renamed from seg.
  8565. * src/FtpInitiateConnectionCommand.h
  8566. (executeInternal): Pass the reference of segment.
  8567. * src/AbstractCommand.h
  8568. (executeInternal): Pass the reference of segment.
  8569. * src/pref.h
  8570. (PREF_SEGMENT_SIZE): New definition.
  8571. * src/HttpProxyRequestCommand.h
  8572. (executeInternal): Pass the reference of segment.
  8573. * src/HttpResponseCommand.cc
  8574. (checkResponse): Allowed status 206 when a request range starts 0.
  8575. (handleDefaultEncoding): Rewritten the code related to Segment.
  8576. (handleOtherEncoding): Rewritten the code related to Segment.
  8577. * src/SegmentMan.h
  8578. (SegmentEntry): New class.
  8579. (SegmentEntries): New type definition.
  8580. (bitfield): New variable.
  8581. (usedSegmentEntries): New variable.
  8582. (onNullBitfield): New function.
  8583. (checkoutSegment): New function.
  8584. (segments): Removed.
  8585. (splitter): Removed.
  8586. (unregisterId): Removed.
  8587. (getSegment): New function(overload)
  8588. (getDownloadedSize): Removed.
  8589. (cancelSegment): New function.
  8590. (completeSegment): New function.
  8591. (initBitfield): New function.
  8592. (hasSegment): New function.
  8593. (getDownloadLength): New function.
  8594. * src/BitfieldMan.h
  8595. (getStartIndex): New function.
  8596. (getEndIndex): New function.
  8597. (getMissingUnusedIndex): New function(overload).
  8598. (getSparseMissingUnusedIndex): New function.
  8599. * src/BitfieldMan.cc
  8600. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  8601. (getMissingUnusedIndex): New function(overload).
  8602. (Range): New class.
  8603. (getStartIndex): New function.
  8604. (getEndIndex): New function.
  8605. (getSparseMissingUnusedIndex): New function.
  8606. (isBitSetInternal): Return false if the given index is less than 0.
  8607. * src/HttpInitiateConnectionCommand.h
  8608. (executeInternal): Pass the reference of segment.
  8609. * src/FtpNegotiateCommand.h
  8610. (executeInternal): Pass the reference of segment.
  8611. * src/FtpNegotiateCommand.cc
  8612. (recvSize): Initialize bitfield here.
  8613. * src/FtpTunnelResponseCommand.h
  8614. (executeInternal): Pass the reference of segment.
  8615. * src/HttpConnection.cc
  8616. (createRequest): Rewritten range header processing.
  8617. * src/DownloadCommand.h
  8618. (executeInternal): Pass the reference of segment.
  8619. (prepareForRetry): Removed.
  8620. (prepareForNextSegment): Added an argument segment. Made it a virtual
  8621. function.
  8622. * src/main.cc
  8623. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  8624. * src/SegmentMan.cc
  8625. (SegmentMan): Added bitfield. Removed splitter.
  8626. (~SegmentMan): Added bitfield. Removed splitter.
  8627. (unregisterId): Removed.
  8628. (getSegment): Rewritten.
  8629. (updateSegment): Rewritten.
  8630. (save): Rewritten.
  8631. (read): Rewritten.
  8632. (finished): Rewritten.
  8633. (getDownloadedSize): Removed.
  8634. (initBitfield): New function.
  8635. (FindSegmentEntryByIndex): New function object.
  8636. (FindSegmentEntryByCuid): New function object.
  8637. (checkoutSegment): New function.
  8638. (onNullBitfield): New function.
  8639. (getSegment): New function(overload).
  8640. (CancelSegment): New function object.
  8641. (cancelSegment): New function.
  8642. (completeSegment): New function.
  8643. (hasSegment): New function.
  8644. (getDownloadLength): New function.
  8645. * src/FtpInitiateConnectionCommand.cc
  8646. (executeInternal): Load .aria2 file after hostname resolution finishes.
  8647. * src/Segment.h: Rewritten.
  8648. * src/Segment.cc (operator<<): New function.
  8649. * src/HttpDownloadCommand.h
  8650. (prepareForNextSegment): New function.
  8651. * src/Request.cc
  8652. (resetUrl): Made segment null.
  8653. * src/DownloadEngine.cc
  8654. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  8655. * src/HttpProxyRequestCommand.h
  8656. (executeInternal): Pass the reference of segment.
  8657. * src/DownloadCommand.cc
  8658. (executeInternal): Rewritten the code related to Segment.
  8659. (prepareForRetry): Removed.
  8660. (prepareForNextSegment): Rewritten.
  8661. * src/FtpTunnelResponseCommand.h
  8662. (executeInternal): Pass the reference of segment.
  8663. To add HTTP 1.1 persistent connection support(experimental)
  8664. * src/HttpRequestCommand.cc
  8665. (executeInternal): Disable keep alive if it is disabled by
  8666. configuration.
  8667. * src/Request.h
  8668. (keepAlive): New variable.
  8669. (isKeepAlive): New function.
  8670. (setKeepAlive): New function.
  8671. * src/pref.h
  8672. (PREF_HTTP_KEEP_ALIVE): New definition.
  8673. * src/HttpResponseCommand.cc
  8674. (executeInternal): Check the remote server supports keep alive.
  8675. * src/HttpConnection.cc
  8676. (createRequest): Send "Connection: close" only if keep alive is
  8677. disabled.
  8678. * src/main.cc
  8679. (main):
  8680. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  8681. To add max download speed limit:
  8682. * src/pref.h
  8683. (PREF_MAX_SPEED_LIMIT): New definition.
  8684. * src/PeerInteractionCommand.cc
  8685. (executeInternal): Added max download speed limit. Not tested yet.
  8686. * src/SegmentMan.h
  8687. (PeerStats): New type definition.
  8688. (peerStats): New variable.
  8689. (registerPeerStat): New function.
  8690. (FindPeerStat): New function object.
  8691. (getPeerStat): New function.
  8692. (calculateDownloadSpeed): New function.
  8693. * src/SpeedCalc.h: New class.
  8694. * src/SpeedCalc.cc: New class.
  8695. * src/main.cc
  8696. (main):
  8697. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  8698. download speed is not restricted).
  8699. * src/PeerStat.h: New class.
  8700. * src/SegmentMan.cc
  8701. (registerPeerStat): New function.
  8702. (calculateDownloadSpeed): New function.
  8703. * src/DownloadCommand.cc
  8704. (STARTUP_IDLE_TIME): New definition.
  8705. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  8706. downloadStart.
  8707. (~DownloadCommand): Call peerStat->downloadStop.
  8708. (executeInternal): Added download speed limitter. Rewritten lowest
  8709. speed limitter.
  8710. * src/HttpConnection.cc
  8711. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  8712. * src/AbstractCommand.cc
  8713. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  8714. Added hostname to the error message.
  8715. * src/ConsoleDownloadEngine.cc
  8716. (calculateStatistics): Initialize psize with dlSize.
  8717. * src/PieceMessage.cc
  8718. (receivedAction): Do not call peerInteraction->abortPiece here.
  8719. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  8720. * src/BitfieldMan.h
  8721. (clearAllUseBit): New function.
  8722. (setAllUseBit): New function.
  8723. * src/BitfieldMan.cc
  8724. (clearAllBit): Do not clear useBitfield here.
  8725. (clearAllUseBit): New function.
  8726. (setAllUseBit): New function.
  8727. * src/Piece.cc
  8728. (clearAllBlock): Call bitfield->clearAllUseBit().
  8729. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8730. To make filename URL-decoded:
  8731. * src/HttpResponseCommand.h: Updated doc.
  8732. * src/HttpResponseCommand.cc
  8733. (determinFilename): Made filename URL-decoded.
  8734. * src/FtpInitiateConnectionCommand.cc
  8735. (executeInternal): Made filename URL-decoded.
  8736. * src/Util.h (urldecode): New function.
  8737. * src/Util.cc (urldecode): New function.
  8738. To fix a bug that caused assertion failure in ares_strerror:
  8739. * src/NameResolver.cc (callback): Fixed the bug.
  8740. * Release 0.7.3
  8741. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8742. To add --seed-time and --seed-ratio command-line option:
  8743. * src/Option.h (getAsDouble): New function.
  8744. * src/Option.cc (getAsDouble): New function.
  8745. * src/SeedCheckCommand.h: New class.
  8746. * src/SeedCheckCommand.cc: New class.
  8747. * src/DownloadEngineFactory.cc
  8748. (SeedCheckCommand.h): Included.
  8749. (UnionSeedCriteria.h): Included.
  8750. (TimeSeedCriteria.h): Included.
  8751. (ShareRatioSeedCriteria.h): Included.
  8752. (newTorrentConsoleEngine): Added the processing of seed option.
  8753. * src/SeedCriteria.h: New class.
  8754. * src/ShareRatioSeedCriteria.h: New class.
  8755. * src/TimeSeedCriteria.h: New class.
  8756. * src/UnionSeedCriteria.h: New class.
  8757. * src/prefs.h
  8758. (PREF_SEED_TIME): New definition.
  8759. (PREF_SEED_RATIO): New definition.
  8760. * src/main.cc
  8761. (showUsage): Added --seed-time and --seed-ratio option.
  8762. (main): Added --seed-time and --seed-ratio option.
  8763. Made default log file name "/dev/null".
  8764. * src/SharedHandle.h
  8765. (SharedHandle): Copy constructor. Made it assignable from the
  8766. SharedHandle of the subclasses.
  8767. (operator=): Made it assignable from the SharedHandle of the
  8768. subclasses.
  8769. (getRefCount): New function.
  8770. To add notice log level and the switch to write log to stdout. This
  8771. switch is configurable per log level.
  8772. * src/Logger.h
  8773. (notice): New function.
  8774. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  8775. constant.
  8776. * src/LogFactory.cc
  8777. (getInstance): The use of NullLogger was removed. A log message with
  8778. notice log level was made written to stdout along with log file.
  8779. * src/NullLogger.h
  8780. (notice): New function.
  8781. * src/SimpleLogger.h
  8782. (writeHeader): Added the 'file' argument.
  8783. (writeLog): Added the 'file' argument.
  8784. (writeFile): New function.
  8785. (stdoutField): New variable.
  8786. (SimpleLogger): Removed the default constructor.
  8787. (SimpleLogger): Made the default value of logfile 0.
  8788. (debug): Added 'virtual' keyword.
  8789. (info): Added 'virtual' keyword.
  8790. (warn): Added 'virtual' keyword.
  8791. (error): Added 'virtual' keyword.
  8792. (notice): New function.
  8793. (setStdout): New function.
  8794. * src/SimpleLogger.cc
  8795. (WRITE_LOG): Replaced writeLog with writeFile.
  8796. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  8797. (SimpleLogger): Removed the default constructor.
  8798. (setStdout): New function.
  8799. (writeLog): Added the handling of NOTICE log level.
  8800. (writeFile): New function.
  8801. (notice): New function.
  8802. * src/TorrentMan.h: Updated doc.
  8803. * src/BitfieldMan.h: Updated doc.
  8804. * src/TrackerWatcherCommand.cc
  8805. (execute): Return true if error occurred in the request to the tracker
  8806. and halt is requested.
  8807. * src/TrackerUpdateCommand.cc
  8808. (execute): Return true if error occurred in the request to the tracker
  8809. and halt is requested.
  8810. To call onDownloadComplete from TorrentMan::completePiece(), not from
  8811. DownloadEngine:
  8812. * src/TorrentConsoleDownloadEngine.h
  8813. (onSelectiveDownloadingCompletes): Removed.
  8814. * src/TorrentConsoleDownloadEngine.cc
  8815. (onSelectiveDownloadingCompletes): Removed.
  8816. * src/TorrentDownloadEngine.h
  8817. (onEndOfRun): Added 'virtual' keyword.
  8818. (afterEachIteration): Removed.
  8819. (onSelectiveDownloadingCompletes): Removed.
  8820. * src/TorrentDownloadEngine.cc
  8821. (onEndOfRun): Removed filenameFixed.
  8822. (afterEachIteration): Removed.
  8823. * src/TorrentMan.cc
  8824. (completePiece): Call onDownloadComplete here.
  8825. (onDownloadComplete): Added 2 log messages.
  8826. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8827. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  8828. * src/NameResolver.h: Added the prototype declaration of callback().
  8829. To support c-ares library:
  8830. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8831. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8832. * src/FtpInitiateConnectionCommand.h:
  8833. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8834. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8835. * src/HttpInitiateConnectionCommand.h:
  8836. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8837. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  8838. Added thes upport of c-ares's ares_strerror(the idea came from patch
  8839. #1542285 by tizianomueller)
  8840. * src/HttpInitiateConnectionCommand.cc:
  8841. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8842. * src/FtpInitiateConnectionCommand.cc:
  8843. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8844. * src/DownloadEngine.h:
  8845. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8846. * src/DownloadEngine.cc:
  8847. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8848. To fix the bug that causes compilation failure with metalink-support
  8849. disabled(bug#1543587):
  8850. * src/main.cc: Fixed with the patch by tizianomueller.
  8851. * Release 0.7.2
  8852. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. * src/main.cc
  8854. (main): Added a message to inform users that aria2 is starting to
  8855. verify checksum.
  8856. * src/RequestInfo.cc
  8857. (printDownloadAbortMessage): Added a message to inform users that
  8858. transfer can be resumed.
  8859. * src/FeatureConfig.cc
  8860. (FEATURE_ASYNC_DNS): New definition.
  8861. (FeatureConfig): Added aysnc DNS entry.
  8862. To replace CommandUuid with Command* in SocketEntry and
  8863. NameResolverEntry:
  8864. * src/DownloadEngine.h
  8865. (CommandUuids): Removed.
  8866. (SocketEntry::commandUuid): Removed.
  8867. (SocketEntry::command): New variable.
  8868. (SocketEntry::SocketEntry): Updated.
  8869. (SocketEntry::operator==): Updated.
  8870. (NameResolverEntry::commandUuid): Removed.
  8871. (NameResolverEntry::command): New variable.
  8872. (NameResolverEntry::NameResolverEntry): Updated.
  8873. (NameResolverEntry::operator==): Updated.
  8874. (waitData): Changed the argument type.
  8875. (addSocketForReadCheck): Changed the argument type.
  8876. (deleteSocketForReadCheck): Changed the argument type.
  8877. (addSocketForWriteCheck): Changed the argument type.
  8878. (deleteSocketForWriteCheck): Changed the argument type.
  8879. (addNameResolverCheck): Changed the argument type.
  8880. (deleteNameResolverCheck): Changed the argument type.
  8881. * src/DownloadEngine.cc
  8882. (FindCommand): Removed.
  8883. (run): Removed activeUuid. Added activeCommands instead.
  8884. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  8885. (AccumulateActiveCommand): New function object.
  8886. (waitData): Use AccumulateActiveCommand.
  8887. (addSocketForReadCheck): Use Command instead of CommandUuid.
  8888. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  8889. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  8890. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  8891. (addNameResolverCheck): Use Command instead of CommandUuid.
  8892. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  8893. * src/AbstractCommand.cc
  8894. (disableReadCheckSocket): Updated according to the changes in
  8895. DownloadEngine.
  8896. (setReadCheckSocket): Updated according to the changes in
  8897. DownloadEngine.
  8898. (disableWriteCheckSocket): Updated according to the changes in
  8899. DownloadEngine.
  8900. (setWriteCheckSocket): Updated according to the changes in
  8901. DownloadEngine.
  8902. (setNameResolverCheck): Updated according to the changes in
  8903. DownloadEngine.
  8904. (disableNameResolverCheck): Updated according to the changes in
  8905. DownloadEngine.
  8906. * src/AbstractCommand.cc
  8907. (disableReadCheckSocket): Updated according to the changes in
  8908. DownloadEngine.
  8909. (setReadCheckSocket): Updated according to the changes in
  8910. DownloadEngine.
  8911. (disableWriteCheckSocket): Updated according to the changes in
  8912. DownloadEngine.
  8913. (setWriteCheckSocket): Updated according to the changes in
  8914. DownloadEngine.
  8915. * release 0.7.1
  8916. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. To handle the case where some BitTorrent tracker requires all letters
  8918. except for [A-Za-z0-9] is URL encoded.
  8919. * src/Util.h
  8920. (torrentUrlencode): New function.
  8921. * src/Util.cc
  8922. (ctype.h): Included.
  8923. (torrentUrlencode): New function.
  8924. * src/TrackerWatcherCommand.cc
  8925. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  8926. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. To add asynchronous DNS support(libares):
  8928. * src/AbstractCommand.h
  8929. (setNameResolverCheck): New function.
  8930. (disableNameResolverCheck): New function
  8931. (resolveHostname): New function.
  8932. * src/AbstractCommand.cc
  8933. (setNameResolverCheck): New function.
  8934. (disableNameResolverCheck): New function
  8935. (resolveHostname): New function.
  8936. * src/FtpInitiateConnectionCommand.h
  8937. (nameResolver): New function.
  8938. * src/FtpInitiateConnectionCommand.cc
  8939. (Util.h): Included.
  8940. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  8941. disableWriteCheckSocket.
  8942. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  8943. (executeInternal): Added async DNS support.
  8944. * src/HttpInitiateConnectionCommand.h
  8945. (nameResolver): New function.
  8946. * src/HttpInitiateConnectionCommand.cc
  8947. (DlRetryEx.h): Included.
  8948. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  8949. disableWriteCheckSocket.
  8950. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  8951. (executeInternal): Added async DNS support.
  8952. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  8953. by extern "C" declaration.
  8954. * src/NameResolver.cc: New class.
  8955. * src/Util.h:
  8956. (isNumberAndDotsNotation): New function
  8957. * src/Util.cc
  8958. (isNumberAndDotsNotation): New function.
  8959. * src/DownloadEngine.h
  8960. (NameResolver.h): Included.
  8961. (NameResolverEntry): New class.
  8962. (NameResolverEntries): New type definition.
  8963. (addNameResolverCheck): New function.
  8964. (deleteNameResolverCheck): New function.
  8965. * src/DownloadEngine.cc
  8966. (run): Initialize cp with 0.
  8967. (SetDescriptor::operator()): Added for NameResolverEntry.
  8968. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  8969. (waitData): Check nameResolver entries.
  8970. (updateFdSet): Update fds in nameResolver entries.
  8971. (addNameResolverCheck): New function.
  8972. (deleteNameResolverCheck): new function.
  8973. * src/PeerInteractionCommand.cc
  8974. (executeInternal): Fixed wrong socket handling.
  8975. * src/main.cc
  8976. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  8977. * src/Util.cc
  8978. (fileChecksum): Removed the call to ctx.digestReset().
  8979. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8980. * po/ru.po: Azamat sent me Russian translation.
  8981. * src/FtpNegotiateCommand.cc
  8982. (recvGreeting): Call disableWriteCheckSocket just after
  8983. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  8984. (recvRetr): Recognized status code 125 as a acceptable response code.
  8985. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  8986. case-insesitive filesystem(BUG#1531057).
  8987. * src/Time.h: Renamed as TimeA2.h.
  8988. * src/Time.cc: Renamed as TimeA2.cc.
  8989. * src/TimeA2.h: New class.
  8990. * src/TimeA2.cc: New class.
  8991. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  8992. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  8993. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  8994. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  8995. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  8996. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8997. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  8998. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  8999. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  9000. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9001. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  9002. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  9003. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  9004. * release 0.7.0
  9005. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9006. * src/PeerChokeCommand.h
  9007. (PeerChokeCommand): Rearranged the arguments.
  9008. * src/PeerChokeCommand.cc
  9009. (PeerChokeCommand): Rearranged the arguments.
  9010. * src/MetalinkEntry.h
  9011. (Checksum.h): Included.
  9012. (md5): Removed.
  9013. (sha1): Removed.
  9014. (checksum): New variable.
  9015. (operator=): Updated.
  9016. (check): Removed.
  9017. * src/prefs.h
  9018. (PREF_LOWEST_SPEED_LIMIT): New definition.
  9019. (PREF_FOLLOW_TORRENT): New definition.
  9020. (PREF_SELECT_FILE): New definition.
  9021. (PREF_FOLLOW_METALINK): New definition.
  9022. * src/MetalinkResource.h
  9023. (TYPE_HTTPS): Added to enum TYPE.
  9024. * src/TorrentMan.cc
  9025. (~TorrentMan): Rewritten.
  9026. * src/MultiDiskWriter.cc
  9027. (MultiDiskAdaptor): Updated according to the changes in
  9028. MessageDigestContext.
  9029. (~MultiDiskAdaptor): Updated according to the changes in
  9030. MessageDigestContext.
  9031. (hashUpdate): Updated according to the changes in MessageDigestContext.
  9032. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9033. * src/Util.h
  9034. (fileChecksum): Updated according to the changes in
  9035. MessageDigestContext.
  9036. * src/Util.cc
  9037. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9038. (fileChecksum): Updated according to the changes in
  9039. MessageDigestContext.
  9040. * src/messageDigest.h: Rewritten.
  9041. * src/MetalinkEntry.cc
  9042. (check): Removed.
  9043. (Supported): Updated.
  9044. (dropUnsupportedResource): Fixed a memory leak.
  9045. * src/ShaVisitor.cc
  9046. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  9047. (~ShaVisitor): Updated according to the changes in
  9048. MessageDigestContext.
  9049. (visit): Updated according to the changes in MessageDigestContext.
  9050. * src/main.cc
  9051. (main): Rewritten the portion of download loop. --lowest-speed-limit
  9052. command-line option added.
  9053. * src/DownloadEngine.h
  9054. (SocketEntry): New class.
  9055. (SocketEntries): New definition.
  9056. (PairFind): Removed.
  9057. (SockCmdMap): Removed.
  9058. * src/DownloadEngine.cc
  9059. (DownloadEngine): Rewritten.
  9060. (~DownloadEngine): Rewritten.
  9061. (run): Renamed activeCommandUuids as activeUuids.
  9062. (SetDescriptor): Rewritten.
  9063. (AccumulateActiveCommandUuid): Removed.
  9064. (AccumulateActiveUuid): New function object.
  9065. (waitData): Rewritten.
  9066. (updateFdSet): Rewritten.
  9067. (addSocket): Rewritten.
  9068. (deleteSocket): Rewritten.
  9069. (addSocketForReadCheck): Rewritten.
  9070. (deleteSocketForReadCheck): Rewritten.
  9071. (addSocketForWriteCheck): Rewritten.
  9072. (deleteSocketForWriteCheck): Rewritten.
  9073. * src/Xml2MetalinkProcessor.cc
  9074. (getEntry): Rewritten the portion of MetalinkEntry creation.
  9075. * src/DownloadCommand.cc
  9076. (executeInternal): Added the check routine for lowest speed limit.
  9077. * src/AbstractDiskWriter.cc
  9078. (AbstractDiskWriter): Updated according to the changes in
  9079. MessageDigestContext.
  9080. (~AbstractDiskWriter): Updated according to the changes in
  9081. MessageDigestContext.
  9082. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9083. * src/RequestInfo.h: New class.
  9084. * src/UrlRequestInfo.h: New class.
  9085. * src/UrlRequestInfo.cc: New class.
  9086. * src/TorrentRequestInfo.h: New class.
  9087. * src/TorrentRequestInfo.cc: New class.
  9088. * src/MetalinkRequestInfo.h: New class.
  9089. * src/MetalinkRequestInfo.cc: New class.
  9090. * src/Checksum.h: New class.
  9091. * src/DownloadEngineFactory.h: New class.
  9092. * src/DownloadEngineFactory.cc: New class.
  9093. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9094. * src/Option.h
  9095. (getAsBool): New function.
  9096. * src/Option.cc
  9097. (prefs.h): Included.
  9098. (defined): 0-length value is now recognized as undefined.
  9099. (getAsInt): Rewritten.
  9100. (getAsLLInt): Rewritten.
  9101. (getAsBool): New function.
  9102. * src/FeatureConfig.h: Rewritten.
  9103. * src/FeatureConfig.cc: Rewritten.
  9104. * src/prefs.h
  9105. (PREF_STDOUT_LOG): New definition.
  9106. (PREF_LOG): New definition.
  9107. (PREF_DIR): New definition.
  9108. (PREF_OUT): New definition.
  9109. (PREF_SPLIT): New definition.
  9110. (PREF_DAEMON): New definition.
  9111. (PREF_REFERER): New definition.
  9112. (PREF_TORRENT_FILE): New definition.
  9113. (PREF_LISTEN_PORT): New definition.
  9114. (PREF_METALINK_FILE): New definition.
  9115. (PREF_METALINK_VERSION): New definition.
  9116. (PREF_METALINK_LANGUAGE): New definition.
  9117. (PREF_METALINK_OS): New definition.
  9118. (PREF_METALINK_SERVERS): New definition.
  9119. * src/main.cc
  9120. (main): Following command-line parameters are now put into Option
  9121. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  9122. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  9123. metalinkLanguage, metalinkOs, metalinkServers
  9124. To fix the bug that aria2 can not handle http response header properly.
  9125. * src/HttpHeader.cc
  9126. (put): Made name lowercased.
  9127. (defined): Made name lowercased.
  9128. (getFirst): Made name lowercased.
  9129. (get): Made name lowercased.
  9130. (getFirstAsInt): Rewritten.
  9131. (getFirstAsLLInt): Rewritten.
  9132. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9133. * src/TorrentMan.h:
  9134. (advertisePiece): Updated doc.
  9135. (getAdvertisedPieceIndexes): Updated doc.
  9136. (removeAdvertisedPiece); New function.
  9137. * src/TorrentMan.cc
  9138. (FindElapsedHave): New function object.
  9139. (removeAdvertisedPiece): New function.
  9140. * src/HaveEraseCommand.h: New class.
  9141. * src/HaveEraseCommand.cc: New class.
  9142. * src/FeatureConfig.h: New class.
  9143. * src/FeatureConfig.cc: New class.
  9144. * src/Request.h
  9145. (defaultPorts): Removed.
  9146. * src/Request.cc
  9147. (FeatureConfig.h): Included.
  9148. (Request): Removed the statements related to defaultPorts.
  9149. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  9150. A default port number is now retrieved from FeatureConfig.
  9151. * src/main.cc
  9152. (HaveEraseCommand.h): Included.
  9153. (showVersion): Added the output of feature list.
  9154. (main): Added HaveEraseCommand to command queue in BitTorrent
  9155. downloading.
  9156. * src/PeerInteractionCommand.h
  9157. (chokeCheckPoint): Commented out.
  9158. (periodicExecPoint): New variable.
  9159. * src/PeerInteractionCommand.cc
  9160. (executeInternal): Following methods are now called in at least every
  9161. 0.5 seconds to reduce CPU usage:
  9162. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  9163. checkHave(), sendKeepAlive().
  9164. (checkLongTimePeerChoking): Commented out.
  9165. * src/BitfieldMan.h
  9166. (getNthBitIndex): Changed the method signature.
  9167. (getMissingIndexRandomly): Changed the method signature.
  9168. * src/BitfieldMan.cc
  9169. (getNthBitIndex): Rewritten
  9170. (getMissingIndexRandomly): Rewritten.
  9171. (hasMissingPiece): Rewritten.
  9172. (getMissingIndex): Refactored.
  9173. (getMissingUnusedIndex); Refactored.
  9174. (getMissingIndex): Refactored.
  9175. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9176. * src/PeerMessage.h
  9177. (Piece.h): Included.
  9178. (SharedHandle.h): Included.
  9179. (invalidate): New variable.
  9180. (uploading): New variable.
  9181. (isInvalidate): New function.
  9182. (isUploading): New function.
  9183. (onPush): New function.
  9184. (onChoked): New function.
  9185. (onCanceled): New function.
  9186. (onAbortPiece): New function.
  9187. (PeerMessageHandle): New type definition.
  9188. * src/PeerMessage.cc
  9189. (PeerMessage): Added the initialization for invalidate and uploading.
  9190. * src/CancelMessage.h
  9191. (CancelMessage): Rewritten.
  9192. * src/RejectMessage.h
  9193. (RejectMessage): Rewritten.
  9194. * src/Metalinker.h
  9195. (operator=): Defined.
  9196. * src/MetaEntry.h
  9197. (operator=): Defined.
  9198. * src/MetalinkResource.h
  9199. (operator=): Defined.
  9200. * src/AllowedFastMessage.h
  9201. (AllowedFastMessage): Rewritten.
  9202. * src/HandshakeMessage.h
  9203. (HandshakeMessage): New function(overload).
  9204. * src/HandshakeMessage.cc
  9205. (HandshakeMessage): Rewritten.
  9206. (init): New function.
  9207. * src/HaveMessage.h
  9208. (HaveMessage): Rewritten.
  9209. * src/Time.h
  9210. (operator=): Defined the function body here.
  9211. * src/Time.cc
  9212. (operator=): Removed.
  9213. * src/SocketCore.h
  9214. (operator==): Defined here.
  9215. (operator!=): Defined here.
  9216. (operator<): Defined here.
  9217. * src/SocketCore.cc
  9218. (operator==): Removed.
  9219. (operator<): Removed.
  9220. * src/BitfieldMan.h
  9221. (operator=): Defined the function body here.
  9222. * src/BitfieldMan.cc
  9223. (operator=): Removed.
  9224. * src/TorrentMan.h
  9225. (deleteErrorPeer): Removed.
  9226. (deleteUnusedPeer); New function.
  9227. * src/TorrentMan.cc
  9228. (addPeer): Call deleteUnusedPeer.
  9229. (deleteErrorPeer): Removed.
  9230. (deleteUnusedPeer): New function.
  9231. * src/PeerAbstractCommand.h
  9232. (setNoCheck): New function.
  9233. (noCheck): New variable.
  9234. * src/PeerAbstractCommand.cc
  9235. (PeerAbstractCommand): Added the initialization of noCheck.
  9236. (execute): Added a check for noCheck.
  9237. (setNoCheck): New function.
  9238. * src/Util.h
  9239. (stdio.h): Included.
  9240. * src/Util.cc
  9241. (unistd.h): Included.
  9242. * src/DefaultDiskWriter.cc
  9243. (unistd.h): Included.
  9244. * src/Peer.h
  9245. (operator==): Defined the function body here.
  9246. (operator!=): Defined the function body here.
  9247. * src/Peer.cc
  9248. (operator==): Removed.
  9249. (operator!=): Removed.
  9250. * src/Piece.h
  9251. (Piece): Defined the function body here(copy constructor).
  9252. (operator=): Defined the function body here.
  9253. (operator==): Defined the function body here.
  9254. * src/Piece.cc
  9255. (Piece): Removed(copy constructor).
  9256. (operator=): Removed.
  9257. (operator==): Removed.
  9258. * src/PeerMessageUtil.h
  9259. (ChokeMessage.h): Removed.
  9260. (UnchokeMessage.h): Removed.
  9261. (InterestedMessage.h): Removed.
  9262. (NotInterestedMessage.h): Removed.
  9263. (HaveMessage.h): Removed.
  9264. (BitfieldMessage.h): Removed.
  9265. (RequestMessage.h): Removed.
  9266. (CancelMessage.h): Removed.
  9267. (PieceMessage.h): Removed.
  9268. (HandshakeMessage.h): Removed.
  9269. (KeepAliveMessage.h): Removed.
  9270. (PortMessage.h): Removed.
  9271. (HaveAllMessage.h): Removed.
  9272. (HaveNoneMessage.h): Removed.
  9273. (PeerConnection.h): Removed.
  9274. (HandshakeMessage.h): Included.
  9275. * src/BitfieldMessage.h
  9276. (init): New function.
  9277. (BitfieldMessage): Rewritten.
  9278. (BitfieldMessage): New function(overload).
  9279. * src/RequestSlot.h
  9280. (operator=): Defined the function body here.
  9281. (operator==): Defined the function body here.
  9282. * src/RequestSlot.cc
  9283. (operator=): Removed.
  9284. (operator==): Removed.
  9285. To remove the dependency on the PeerMessage subclass from
  9286. PeerInteraction:
  9287. * src/PeerMessageFactory.h: New class.
  9288. * src/PeerMessageFactory.cc: New class.
  9289. * src/SimplePeerMessage.cc
  9290. (send): If invalidate is true then do nothing.
  9291. * src/PeerInteractionCommand.cc
  9292. (HandshakeMessage.h): Included.
  9293. (KeepAliveMessage.h): Included.
  9294. (ChokeMessage.h): Included.
  9295. (UnchokeMessage.h): Included.
  9296. (HaveMessage.h): Included.
  9297. (executeInternal): Call setNoCheck().
  9298. Removed setWriteCheckSocket(socket).
  9299. * src/PeerInteraction.h
  9300. (ChokeMessage.h): Removed.
  9301. (UnchokeMessage.h): Removed.
  9302. (InterestedMessage.h): Removed.
  9303. (NotInterestedMessage.h): Removed.
  9304. (HaveMessage.h): Removed.
  9305. (BitfieldMessage.h): Removed.
  9306. (RequestMessage.h): Removed.
  9307. (CancelMessage.h): Removed.
  9308. (PieceMessage.h): Removed.
  9309. (HandshakeMessage.h): Removed.
  9310. (KeepAliveMessage.h): Removed.
  9311. (PortMessage.h): Removed.
  9312. (HaveAllMessage.h): Removed.
  9313. (HaveNoneMessage.h): Removed.
  9314. (RejectMessage.h): Removed.
  9315. (AllowedFastMessage.h): Removed.
  9316. (SuggestPieceMessage.h): Removed.
  9317. (PeerMessageFactory.h): Included.
  9318. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  9319. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  9320. (PeerMessageFactory): New variable.
  9321. (createPeerMessage): Removed.
  9322. (createHandshakeMessage): Removed.
  9323. (setPeerMessageCommonProperty): Removed.
  9324. (addRequestSlot): New function.
  9325. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9326. (getPeerMessageFactory): New function.
  9327. (createRequestMessage): Removed.
  9328. (createCancelMessage): Removed.
  9329. (createPieceMessage): Removed.
  9330. (createHaveMessage): Removed.
  9331. (createChokeMessage): Removed.
  9332. (createUnchokeMessage): Removed.
  9333. (createInterestedMessage): Removed.
  9334. (createNotInterestedMessage): Removed.
  9335. (createBitfieldMessage): Removed.
  9336. (createKeepAliveMessage): Removed.
  9337. (createHaveAllMessage): Removed.
  9338. (createHaveNoneMessage): Removed.
  9339. (createRejectMessage): Removed.
  9340. (createAllowedFastMessage): Removed.
  9341. * src/PeerInteraction.cc
  9342. (PeerInteraction): Allocate PeerMessageFactory here.
  9343. (~PeerInteraction): Deallocate PeerMessageFactory here.
  9344. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  9345. PieceMessage::ID.
  9346. (addMessage): Simplified by using PeerMessage::onPush().
  9347. (addRequestSlot): New function.
  9348. (rejectAllPieceMessageInQueue): Simplified by using
  9349. PeerMessage::onChoked().
  9350. (rejectPieceMessageInQueue): Simplified by using
  9351. PeerMessage::onCanceled().
  9352. (abortPiece): Simplified by using PeerMessage::abortPiece().
  9353. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9354. (createHandshakeMessage): Removed.
  9355. (createPeerMessage): Removed.
  9356. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  9357. (setPeerMessageCommonProperty): Removed.
  9358. (createRequestMessage): Removed.
  9359. (createCancelMessage): Removed.
  9360. (createPieceMessage): Removed.
  9361. (createHaveMessage): Removed.
  9362. (createChokeMessage): Removed.
  9363. (createUnchokeMessage): Removed.
  9364. (createInterestedMessage): Removed.
  9365. (createNotInterestedMessage): Removed.
  9366. (createBitfieldMessage): Removed.
  9367. (createKeepAliveMessage): Removed.
  9368. (createHaveAllMessage): Removed.
  9369. (createHaveNoneMessage): Removed.
  9370. (createRejectMessage): Removed.
  9371. (createAllowedFastMessage): Removed.
  9372. * src/PieceMessage.h
  9373. (createRejectMessage): New function.
  9374. (PieceMessage): Rewritten.
  9375. (onChoked): New function.
  9376. (onCanceled): New function.
  9377. * src/PieceMessage.cc
  9378. (send): If invalidate is true then do nothing, just return.
  9379. (createRejectMessage): New function.
  9380. (onChoked): New function.
  9381. (onCanceled): New function.
  9382. * src/RequestMessage.h
  9383. (RequestMessage): Rewritten.
  9384. (onPush): New function.
  9385. (onAbortPiece): New function.
  9386. * src/RequestMessage.cc
  9387. (onPush): New function.
  9388. (onAbortPiece): New function.
  9389. Update fd_set when a socket is added or deleted in order to improve
  9390. performance:
  9391. * src/DownloadEngine.h
  9392. (rfdset): New variable.
  9393. (wfdset): New variable.
  9394. (updateFdSet): New function.
  9395. * src/DownloadEngine.cc
  9396. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  9397. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  9398. (waitData): Copy rfdset and wfdset.
  9399. (updateFdSet): New function.
  9400. (addSocket): Call updateFdSet.
  9401. (deleteSocket): Call updateFdSet.
  9402. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9403. To add the support for Metalink3.0 backward compatible links:
  9404. * src/Request.h
  9405. (SAFE_CHARS): Added '#'.
  9406. (METALINK_MARK): New definition.
  9407. * src/Request.cc
  9408. (parseUrl): Added the support for Metalink3.0 backward compatible
  9409. links.
  9410. etc
  9411. * src/PeerInteraction.cc
  9412. (MsgPushBack): Removed.
  9413. (sendMessages): Use STL copy and back_inserter.
  9414. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  9415. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  9416. * src/TorrentMan.h
  9417. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  9418. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9419. * src/SharedHandle.h: New class.
  9420. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  9421. * src/HttpResponseCommand.h
  9422. (HttpResponseCommand): Wrapped Socket.
  9423. * src/SocketCore.h
  9424. (operator==): New function.
  9425. (operator!=): New function.
  9426. (operator<): New function.
  9427. (getSockfd): New function.
  9428. (isOpen): New function.
  9429. (writeData): New function.
  9430. * src/SocketCore.cc
  9431. (operator==): New function.
  9432. (operator!=): New function.
  9433. (operator<): New function.
  9434. * src/AbstractCommand.h
  9435. (socket): Changed its type to SocketHandle.
  9436. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9437. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9438. (disableReadCheckSocket): New function.
  9439. (disableWriteCheckSocket): New function.
  9440. (readCheckTarget): Changed its type to SocketHandle.
  9441. (writeCheckTarget): Changed its type to SocketHandle.
  9442. (AbstractCommand): Replaced Socket with SocketHandle.
  9443. * src/AbstractCommand.cc
  9444. (AbstractCommand): Replaced Socket with SocketHandle.
  9445. (~AbstractCommand): Removed the deallocation for Socket object.
  9446. (disableReadCheckSocket): New function.
  9447. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9448. (disableWriteCheckSocket): New function.
  9449. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9450. * src/HttpDownloadCommand.cc
  9451. (DownloadCommand): Replaced Socket with SocketHandle.
  9452. * src/PeerAbstractCommand.h
  9453. (socket): Changed its type to SocketHandle.
  9454. (peer): Changed its type to PeerHandle.
  9455. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9456. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9457. (disableReadCheckSocket): New function.
  9458. (disableWriteCheckSocket): New function.
  9459. (readCheckTarget): Changed its type to SocketHandle.
  9460. (writeCheckTarget): Changed its type to SocketHandle.
  9461. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9462. Replaced Peer with PeerHandle.
  9463. * src/HttpRequestCommand.cc
  9464. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9465. Use disableReadCheckSocket.
  9466. * src/PeerInitiateConnectionCommand.h
  9467. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9468. * src/PeerChokeCommand.cc
  9469. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  9470. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  9471. (execute): Use PeerHandle.
  9472. * src/PeerConnection.h
  9473. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  9474. (socket): Changed its type to SocketHandle.
  9475. (PeerConnection): Replaced Socket with SocketHandle.
  9476. * src/PeerConnection.cc
  9477. (PeerConnection): Replaced Socket with SocketHandle.
  9478. * src/PeerInteractionCommand.h
  9479. (PeerInteractionCommand): Replaced socket with SocketHandle.
  9480. Replaced Peer with PeerHandle.
  9481. * src/PeerInteractionCommand.cc
  9482. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  9483. Replaced Peer with PeerHandle.
  9484. (executeInternal): Use disableWriteCheckSocket.
  9485. Use HandshakeMessageHandle.
  9486. (receiveMessages): Use PeerMessageHandle.
  9487. (prepareForNextPeer): Use PeerHandle.
  9488. * src/HttpProxyRequestCommand.h
  9489. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9490. * src/HttpResponseCommand.cc
  9491. (HttpResponseCommand): Replaced Socket with SocketHandle.
  9492. * src/TorrentMan.cc
  9493. (nullPeer): Added external reference.
  9494. (~TorrentMan): Removed the deallocation of the elements of peers.
  9495. (addPeer): Rewritten.
  9496. (isPeerAvailable): Use nullPeer.
  9497. (deleteOldpeers): Replaced with deleteErrorPeer.
  9498. (deleteErrorPeer): New function.
  9499. (getPeer): Use PeerHandle and nullPeer.
  9500. (hasMissingPiece): Replaced Peer with PeerHandle.
  9501. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9502. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9503. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9504. (getMissingPiece): Replaced Peer with PeerHandle.
  9505. * src/FtpNegotiateCommand.cc
  9506. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  9507. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  9508. (recvGreeting): Use disableWriteCheckSocket.
  9509. (recvPasv): Removed the allocation of Socket.
  9510. Use disableReadCheckSocket.
  9511. (sendRestPasv): Use disableWriteCheckSocket.
  9512. (recvRetr): Changed assertion.
  9513. * src/PeerInteraction.h
  9514. (SharedHandle.h): Included SharedHandle.h.
  9515. (PeerMessageHandle): New type definition.
  9516. (HandshakeMessageHandle): New type definition.
  9517. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  9518. (peer): Changed its type to PeerHandle.
  9519. (createHandshakeMessage): Replaced HandshakeMessage with
  9520. HandshakeMessageHandle.
  9521. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  9522. (PeerInteraction): Replaced Peer with PeerHandle.
  9523. Replaced Socket with SocketHandle.
  9524. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9525. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9526. (receiveHandshake): Replaced HandshakeMessage with
  9527. HandshakeMessageHandle.
  9528. * src/PeerInteraction.cc
  9529. (PeerInteraction): Replaced Peer with PeerHandle.
  9530. Replaced Socket with SocketHandle.
  9531. (~PeerInteraction): Removed the deallocation of the elements of
  9532. messageQueue.
  9533. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  9534. (isSendingMessageInProgress): Replaced PeerMessage with
  9535. PeerMessageHandle.
  9536. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  9537. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9538. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  9539. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  9540. (abortPiece): Use PeerMessageHandle.
  9541. (receiveHandshake): Replaced HandshakeMessage with
  9542. HandshakeMessageHandle. Removed try-catch block.
  9543. (createHandshakeMessage): Replaced HandshakeMessage with
  9544. HandshakeMessageHandle.
  9545. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9546. Removed try-catch block.
  9547. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  9548. * src/HttpProxyResponseCommand.cc
  9549. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9550. * src/FtpTunnelResponseCommand.h
  9551. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9552. * src/HttpConnection.cc
  9553. (HttpConnection): Replaced Socket with SocketHandle.
  9554. * src/PeerAbstractCommand.cc
  9555. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9556. (~PeerAbstractCommand): Removed the deallocation of socket.
  9557. Use disableReadCheckSocket, disableWriteCheckSocket.
  9558. (disableReadCheckSocket): New function.
  9559. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9560. (disableWriteCheckSocket): New function.
  9561. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9562. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  9563. * src/FtpTunnelRequestCommand.cc
  9564. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9565. (~FtpTunnelRequestCommand): Corrected indentation.
  9566. * src/DownloadCommand.h
  9567. (DownloadCommand): Replaced Socket with SocketHandle.
  9568. * src/PeerListenCommand.cc
  9569. (PeerListenCommand): Removed the initialization of socket.
  9570. (~PeerListenCommand): Removed the deallocation of socket.
  9571. (bindPort): Use SocketHandle.
  9572. (execute): Use SocketHandle and PeerHandle.
  9573. * src/FtpDowndloadCommand.cc
  9574. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9575. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  9576. * src/main.cc
  9577. (main): Corrected indentation.
  9578. * src/HttpInitiateConnectionCommand.cc
  9579. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  9580. (executeInternal): Removed the allocation of socket.
  9581. * src/HttpRequestCommand.h
  9582. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9583. * src/FtpNegotiationCommand.h
  9584. (dataSocket): Changed its type to SocketHandle.
  9585. (serverSocket): Changed its type to SocketHandle.
  9586. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  9587. * src/TorrentMan.h
  9588. (MAX_PEER_UPDATE): Removed.
  9589. (MAX_PEERS): New definition.
  9590. (Peers): The element is now of type PeerHandle.
  9591. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  9592. (getPeer): Replaced Peer with PeerHandle.
  9593. (deleteOldErrorPeers): Removed.
  9594. (deleteErrorPeer): New function.
  9595. (hasMissingPiece): Replaced Peer with PeerHandle.
  9596. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9597. (getMissingPiece): Replaced Peer with PeerHandle.
  9598. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9599. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9600. (addActivePeer): Replaced Peer with PeerHandle.
  9601. (deleteActivePeer): Replaced Peer with PeerHandle.
  9602. Added a check for the return value of find.
  9603. * src/FtpTunnelResponseCommand.cc
  9604. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9605. * src/FtpInitiateConnectionCommand.cc
  9606. (executeInternal): Removed the allocation of socket.
  9607. * src/DownloadEngine.h
  9608. (Sockets): An element is now of type SocketHandle.
  9609. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  9610. (CommandUuids): New type definition.
  9611. (rsockets): Changed its type to SockCmdMap.
  9612. (wsockets): Changed its type to SockCmdMap.
  9613. (addSocket): Rewritten.
  9614. (deleteSocket): Rewritten.
  9615. (addSocketForReadCheck): Rewritten.
  9616. (deleteSocketForReadCheck): Rewritten.
  9617. (addSocketForWriteCheck): Rewritten.
  9618. (deleteSocketForWriteCheck): Rewritten.
  9619. (PairFind): New template class.
  9620. * src/HttpDownloadCommand.h
  9621. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  9622. * src/FtpConnection.cc
  9623. (FtpConnection): Replaced Socket with SocketHandle.
  9624. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  9625. block.
  9626. * src/InitiateConnectionCommandFactory.cc
  9627. (DlAbortEx.h): Included DlAbortEx.h.
  9628. (createInitiateConnectionCommand): Throw exception if the protocol of
  9629. requested URI is not supported.
  9630. * src/Peer.cc
  9631. (nullPeer): Changed its type to PeerHandle.
  9632. (operator==): New function.
  9633. (operator!=): New function.
  9634. * src/Peer.h
  9635. (SharedHandle.h): Included SharedHandle.h.
  9636. (operator==): New function.
  9637. (operator!=): New function.
  9638. (Peer): Added the default constructor.
  9639. Use resetStatus() to initialize member variables.
  9640. (nullPeer): Removed.
  9641. * src/TrackerUpdateCommand.cc
  9642. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  9643. with MIN_PEERS.
  9644. * src/PeerListenCommand.h
  9645. (socket): Changed its type to SocketHandle.
  9646. * src/Command.h
  9647. (CommandUuid): New type definition.
  9648. (uuid): New variable.
  9649. (uuidGen): New variable.
  9650. (Command): Added the initialization of uuid.
  9651. (getUuid): New function.
  9652. * src/Socket.h
  9653. (Socket): Removed.
  9654. (SocketHandle): New type definition.
  9655. * src/DownloadEngine.h
  9656. (FindCommand): New function object.
  9657. (run): The portion of socket check was rewritten.
  9658. (SetDescriptor): New function object.
  9659. (AccumulateActiveCommandUuid): New function object.
  9660. (waitData): Rewritten.
  9661. (addSocket): Rewritten.
  9662. (deleteSocket): Rewritten.
  9663. (addSocketForReadCheck): Rewritten.
  9664. (addSocketForWriteCheck): Rewritten.
  9665. (deleteSocketForReadCheck): Rewritten.
  9666. (deleteSocketForWriteCheck): Rewritten.
  9667. * src/HttpProxyResponseCommand.h
  9668. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  9669. * src/HttpConnection.h
  9670. (socket): Changed its type to SocketHandle.
  9671. (HttpConnection): Replaced Socket with SocketHandle.
  9672. * src/PeerInitiateConnectionCommand.cc
  9673. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9674. (executeInternal): Removed the allocation of socket.
  9675. (prepareForNextPeer): Use PeerHandle.
  9676. * src/PeerMessage.h
  9677. (peer): Changed its type to PeerHandle.
  9678. (getPeer): Replaced Peer with PeerHandle.
  9679. (setPeer): Replaced Peer with PeerHandle.
  9680. * src/DownloadCommand.cc
  9681. (DownloadCommand): Replaced Socket with SocketHandle.
  9682. * src/FtpConnection.h
  9683. (socket): Changed its type to SocketHandle.
  9684. (FtpConnection): Replaced Socket with SocketHandle.
  9685. (sendPort); Replaced Socket with SocketHandle.
  9686. * src/FtpDowndloadCommand.h
  9687. (ctrlSocket): Changed its type to SocketHandle.
  9688. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9689. * src/HttpProxyRequestCommand.cc
  9690. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9691. * src/FtpTunnelRequestCommand.h
  9692. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9693. etc
  9694. * src/PeerChokeCommand.h
  9695. (setAllPeerChoked): Removed.
  9696. (setAllPeerResetDelta): Removed.
  9697. * src/PeerChokeCommand.cc
  9698. (setAllPeerChoked): Removed.
  9699. (ChokePeer): New function object.
  9700. (setAllPeerResetDelta): Removed.
  9701. (ResetDelta): New function object.
  9702. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  9703. (execute): Show download speed when the local node is a seeder.
  9704. setAllPeerChoked and setAllPeerResetDelta were rewritten
  9705. using STL.
  9706. * src/TrackerWatcherCommand.h
  9707. (MIN_PEERS): Removed.
  9708. * src/TorrentMan.cc
  9709. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  9710. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9711. To fix the bug that .aria2 file is not saved if downloading is stopped
  9712. by the errors:it results that aria2 can not resume downloading:
  9713. * src/main.cc
  9714. (normalDownload): Added the call to save().
  9715. (main): Added the deletion of the elements in 'reserved'.
  9716. To fix log:
  9717. * src/PeerInteraction.cc
  9718. (receiveHandshake): Fixed log.
  9719. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9720. To improve download performance in BitTorrent:
  9721. * src/TorrentMan.cc
  9722. (getPeer): Check the number of connections. Return nullPeer if
  9723. it is greater than MAX_PEER_UPDATE.
  9724. This code was originally here, but was removed in 0.5.1.
  9725. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. To improve the conditional compilation:
  9727. * src/MultiDiskWriter.h:
  9728. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9729. * src/MultiDiskWriter.cc:
  9730. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9731. * src/Util.h:
  9732. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9733. Added ENABLE_BITTORRENT around computeFastSet().
  9734. * src/Util.cc:
  9735. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9736. Added ENABLE_BITTORRENT around computeFastSet().
  9737. * src/messageDigest.h:
  9738. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  9739. * src/ShaVisitor.h:
  9740. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9741. * src/ShaVisitor.cc:
  9742. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9743. * src/main.cc:
  9744. Added ENABLE_BITTORRENT around includes and blocks related to
  9745. BitTorrent.
  9746. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  9747. digest support is not available.
  9748. * src/AbstractDiskWriter.h:
  9749. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9750. * src/AbstractDiskWriter.cc:
  9751. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9752. * src/MetalinkEntry.cc
  9753. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  9754. support is not available.
  9755. To add command-line options for Metalink:
  9756. * src/main.cc:
  9757. Added metalink-version, metalink-language, metalink-os,
  9758. follow-metalink.
  9759. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  9760. * src/main.cc: Use these definition.
  9761. * Release 0.6.0
  9762. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9763. To add Metalink support(http/ftp only):
  9764. * src/AbstractCommand.h
  9765. (tryReserved): New function.
  9766. * src/AbstractCommand.cc
  9767. (execute): Call tryReserved().
  9768. (tryReserved): New function.
  9769. * src/Request.h
  9770. (Requests): New type definition.
  9771. * src/SegmentMan.h
  9772. (reserved): New variable.
  9773. * src/Util.h
  9774. (fileChecksum): New function.
  9775. (toUpper): New function.
  9776. (toLower): New function.
  9777. * src/Util.cc
  9778. (messageDigest.h): Included.
  9779. (trim): Trim \r\n\t.
  9780. (fileChecksum): New function.
  9781. (toUpper): New function.
  9782. (toLower): New function.
  9783. * src/main.cc
  9784. (normalDownload): New function.
  9785. (main): Added 2 command-line options: metalink-file,
  9786. metalink-connection. Their usage has not been written yet.
  9787. * src/MetalinkProcessor.h: New class.
  9788. * src/Xml2MetalinkProcessor.h: New class.
  9789. * src/Xml2MetalinkProcessor.cc: New class.
  9790. * src/MetalinkEntry.h: New class.
  9791. * src/MetalinkEntry.cc: New class.
  9792. * src/MetalinkResource.h: New class.
  9793. * src/MetalinkResource.cc: New class.
  9794. To add md5 message digest checking:
  9795. * src/messageDigest.h: Rewritten.
  9796. * src/MultiDiskWriter.cc: Updated according to the changes in
  9797. messageDigest.h.
  9798. * src/ShaVisitor.cc: Updated according to the changes in
  9799. messageDigest.h.
  9800. * src/Util.cc: Updated according to the changes in messageDigest.h.
  9801. * src/AbstractDiskWriter.cc: Updated according to the changes in
  9802. messageDigest.h.
  9803. To fix a bug that causes segfault when the payload length in peer
  9804. message is less than 0:
  9805. * src/PeerConnection.cc:
  9806. (receiveMessage): Fixed the bug.
  9807. * src/PeerMessageUtil.cc
  9808. (checkLength): Throw an exception if length is less than or equals to
  9809. 0.
  9810. To add new interfaces to Base64 encoding/decoding:
  9811. * src/Base64.h
  9812. (part_encode): Changed the method signature.
  9813. (encode): New function(overload).
  9814. (decode): New function(overload).
  9815. * src/Base64.cc
  9816. (part_encode): Rewritten.
  9817. (encode): Rewritten.
  9818. (encode): New function(overload).
  9819. To prevent a peer to download same piece if there is an error in
  9820. checksum:
  9821. * src/PieceMessage.cc
  9822. (receivedAction): Call peerInteraction->abortPiece().
  9823. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9824. To fix the bug that causes same have message is sent many times to
  9825. a single peer.
  9826. * src/Time.cc
  9827. (isNewer): Use Util::difftv().
  9828. * src/Util.cc
  9829. (difftv): Added a cast to (long long int).
  9830. * src/TorrentMan.cc
  9831. (advertisePiece): Use push_front.
  9832. (getAdvertisedPieceIndexes): A performance improvement was made.
  9833. To fix the bug that sends tracker requests without a sleep interval
  9834. when the number of connections is less than 15.
  9835. * src/TrackerWatcherCommand.cc
  9836. (execute): Now the number of connections is not a factor to decide
  9837. whether or not a tracker request should be sent or not.
  9838. * src/Time.h
  9839. (setTimeInSec): New function.
  9840. * src/Time.cc
  9841. (setTimeInSec): New function.
  9842. etc.
  9843. * src/ChokeMessage.cc
  9844. (receivedAction): Removed peer->snubbing = false
  9845. * src/PeerConnection.h
  9846. (receiveHandshake): Updated doc.
  9847. * src/TorrentMan.h
  9848. (getAdvertisedPieceIndexes): Updated the method signature.
  9849. * src/TorrentMan.cc
  9850. (getAdvertisedPieceIndexes): Updated the method signature.
  9851. * src/Time.h
  9852. (getTimeInMicros): Added a cast to (long long int).
  9853. (getTimeInMillis): Added a cast to (long long int).
  9854. * Release 0.5.2
  9855. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9856. To make a listening socket non-block:
  9857. * src/SocketCore.h
  9858. (setNonBlockingMode): New function.
  9859. * src/SocketCore.cc
  9860. (setNonBlockingMode): New function.
  9861. (beginListen): Added a call to setNonBlockingMode().
  9862. (acceptConnection): Call setNonBlockingMode().
  9863. (setBlockingMode): Updated.
  9864. To handle tracker's NAT-checking:
  9865. * src/PeerConnection.cc
  9866. (receiveHandshake): 'msg' param is filled with received data and
  9867. its length is assigned to 'length' param, even if all handshake
  9868. message is not yet received.
  9869. * src/PeerInteractionCommand.cc
  9870. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  9871. a new peer connects to localhost.
  9872. A call to peerInteraction->sendHandshake() was removed because
  9873. it is called from peerInteraction->receiveHandshake(true).
  9874. * src/PeerInteraction.h
  9875. (quickReplied): New variable.
  9876. (receiveHandshake): Added an argument.
  9877. * src/PeerInteraction.cc
  9878. (PeerInteraction): Added the initialization of quickReplied.
  9879. (receiveHandshake): Send handshake message as soon as the info hash
  9880. in a handshake message from a peer is correct.
  9881. To change the random part of peer id and key parameter:
  9882. * src/TorrentMan.h
  9883. (key): New variable.
  9884. * src/TorrentMan.cc
  9885. (setupInternal1): Use Util::randomAlpha() to generate random part
  9886. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  9887. key is also generated by Util::randomAlpha() and it is now 8 character
  9888. long.
  9889. * src/Util.h
  9890. (randomAlpha): New function.
  9891. * src/Util.cc
  9892. (randomAlpha): New function.
  9893. * src/TrackerWatcherCommand.cc
  9894. (execute): In a tracker request: Use torrentMan->key as key parameter.
  9895. Added no_peer_id=1.
  9896. Set snubbing flag to false when a choke message is received from a
  9897. snubbed peer.
  9898. * src/ChokeMessage.cc
  9899. (receivedAction): Set snubbing flag to false.
  9900. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9901. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  9902. * src/SimpleLogger.h (writeHeader): New function.
  9903. * src/SimpleLogger.cc (writeHeader): New function.
  9904. (writeLog): Fixed the bug that causes segfaults if exception message
  9905. contains an unescaped "%" character.
  9906. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  9907. when a tracker request fails.
  9908. * src/Request.cc (parseUrl): Query string is now handled properly.
  9909. * Release 0.5.1
  9910. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9911. To add Time class which represents a specific instant in time and
  9912. its precision is microseconds. Time checking procedures were rewritten
  9913. using this object.
  9914. * src/Time.h: New class.
  9915. * src/Time.cc: New class.
  9916. * src/AbstractCommand.h
  9917. (updateCheckPoint): Removed.
  9918. (isTimeoutDetected): Removed.
  9919. (checkPoint): Changed the type to Time.
  9920. (timeout): New variable.
  9921. (setTimeout): New function.
  9922. * src/AbstractCommand.cc
  9923. (AbstractCommand): Removed the initialization of checkPoint.
  9924. Added the initialization of timeout.
  9925. (updateCheckPoint): Removed.
  9926. (isTimeoutDetected): Removed.
  9927. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9928. * src/PeerChokeCommand.h
  9929. (checkPoint): Changed the type to Time.
  9930. * src/PeerChokeCommand.cc
  9931. (PeerChokeCommand): Removed the initialization of checkPoint.
  9932. (execute): Rewritten using Time object.
  9933. * src/TrackerWatcherCommand.h
  9934. (checkPoint): Changed the type to Time.
  9935. * src/TrackerWatcherCommand.cc
  9936. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  9937. (execute): Rewritten.
  9938. * src/ConsoleDownloadEngine.h
  9939. (cp): Changed the type to Time.
  9940. (startup): Changed the type to Time.
  9941. * src/ConsoleDownloadEngine.cc
  9942. (initStatistics): Use cp.reset(), startup.reset().
  9943. (calculateStatistics): Rewritten using Time object.
  9944. * src/PeerAbstractCommand.h
  9945. (updateCheckPoint): Removed.
  9946. (isTimeoutDetected): Removed.
  9947. (checkPoint): Changed the type to Time.
  9948. * src/PeerAbstractCommand.cc
  9949. (PeerAbstractCommand): Removed the initialization of checkPoint.
  9950. (updateCheckPoint): Removed.
  9951. (isTimeoutDetected): Removed.
  9952. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9953. * src/PeerInteractionCommand.cc
  9954. (PeerInteractionCommand): Removed the initializations of struct
  9955. timeval variables.
  9956. * src/PeerInteractionCommand.h
  9957. (keepAliveCheckPoint): Changed the type to Time.
  9958. (chokeCheckPoint): Changed the type to Time.
  9959. (freqCheckPoint): Changed the type to Time.
  9960. (haveCheckTime): Changed the type to Time.
  9961. * src/PeerInteractionCommand.cc
  9962. (executeInternal): Rewritten using Time object.
  9963. (detectMessageFlooding): Rewritten using Time object.
  9964. (checkLongTimePeerChoking): Rewritten using Time object.
  9965. (sendKeepAlive): Rewritten using Time object.
  9966. (checkHave): Rewritten using Time object.
  9967. * src/SleepCommand.h
  9968. (checkPoint): Changed the type to Time.
  9969. * src/SleepCommand.cc
  9970. (SleepCommand): Removed the initialization of checkPoint.
  9971. (execute): Rewritten using Time object.
  9972. * src/TorrentAutoSaveCommand.h
  9973. (checkPoint): Changed the type to Time.
  9974. * src/TorrentAutoSaveCommand.cc
  9975. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  9976. (execute): Rewritten.
  9977. * src/DownloadCommand.h
  9978. (sw): Changed the type to Time.
  9979. * src/DownloadCommand.cc
  9980. (DownloadCommand): Removed the initialization of sw.
  9981. (executeInternal): Rewritten.
  9982. * src/RequestSlot.h
  9983. (dispatchedTime): Changed the type to Time.
  9984. * src/RequestSlot.cc
  9985. (RequestSlot): Removed the call to setDispatchedTime().
  9986. (setDispatchedTime): Rewirtten.
  9987. (isTimeout): Rewritten.
  9988. (getLatencyInMillis): Rewritten.
  9989. * src/TorrentDownloadEngine.h
  9990. (cp): Changed the type to Time[2].
  9991. (startup): Changed the type to Time.
  9992. * src/TorrentDownloadEngine.cc
  9993. (initStatistics): Rewritten.
  9994. (calculateStatistics): Rewritten.
  9995. * src/DownloadEngine.cc
  9996. (run): Rewritten.
  9997. To detect all attempts to connect to the tracker are failed:
  9998. * src/AbstractCommand.cc
  9999. (execute): Increment e->segmentMan->errors if a command aborted.
  10000. * src/SegmentMan.h
  10001. (errors): New variable.
  10002. * src/SegmentMan.cc
  10003. (SegmentMan): Added the initialization of errors.
  10004. (init): Added the initialization of errors.
  10005. * src/TrackerWatcherCommand.cc
  10006. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  10007. request was failed.
  10008. To handle snubbed peers:
  10009. * src/PeerChokeCommand.cc
  10010. (optUnchokingPeer): Snubbed peers don't get unchoked.
  10011. (execute): Snubbed peers don't get unchoked.
  10012. * src/PeerInteraction.h
  10013. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  10014. * src/PeerInteraction.cc
  10015. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  10016. back the requested 16k block in 60 seconds.
  10017. * src/PieceMessage.cc
  10018. (receivedAction): A peer's snubbed state is cleard if it sends
  10019. the requested 16k block in 60 seconds.
  10020. * src/Peer.h
  10021. (snubbing): New variable.
  10022. * src/Peer.cc
  10023. (resetStatus): Added snubbed = false.
  10024. To fix the bug that causes have message is not sent:
  10025. * src/PeerInteractionCommand.cc
  10026. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  10027. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  10028. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  10029. * src/TorrentMan.h
  10030. (HaveEntry): New class.
  10031. (advertisePiece): Rewritten.
  10032. (getAdvertisedPieceIndexes): Rewritten.
  10033. (Haves): Changed the type.
  10034. (getAdvertisedPieceIndexes): Added an argument.
  10035. Others:
  10036. * src/TorrentMan.h
  10037. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  10038. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  10039. * src/TorrentMan.cc
  10040. (getPeer): Don't check the number of connections here.
  10041. (setupInternal1): Changed peerId.
  10042. * src/PeerInteractionCommand.h
  10043. (KEEP_ALIVE_INTERVAL): New definition.
  10044. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  10045. * src/main.cc
  10046. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  10047. * src/DownloadEngine.h: Removed unnecessary header includes.
  10048. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10049. To fix the bug that causes segfaults if a tracker returns a zero-length
  10050. list as "peers":
  10051. * src/TrackerUpdateCommand.cc
  10052. (execute): Added a check to see wether the type of peers is Data*.
  10053. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10054. * Release 0.5.0
  10055. To fix compile issue with gcc3:
  10056. * src/CancelMessage.h
  10057. (ID): Renamed as ID_t
  10058. (ID_t): New enum.
  10059. * src/RejectMessage.h
  10060. (ID): Renamed as ID_t
  10061. (ID_t): New enum.
  10062. * src/SuggestPieceMessage.h
  10063. (ID): Renamed as ID_t
  10064. (ID_t): New enum.
  10065. * src/AllowedFastMessage.h
  10066. (ID): Renamed as ID_t
  10067. (ID_t): New enum.
  10068. * src/PortMessage.h
  10069. (ID): Renamed as ID_t
  10070. (ID_t): New enum.
  10071. * src/HaveNoneMessage.h
  10072. (ID): Renamed as ID_t
  10073. (ID_t): New enum.
  10074. * src/KeepAliveMessage.h
  10075. (ID): Renamed as ID_t
  10076. (ID_t): New enum.
  10077. * src/HaveAllMessage.h
  10078. (ID): Renamed as ID_t
  10079. (ID_t): New enum.
  10080. * src/UnchokeMessage.h
  10081. (ID): Renamed as ID_t
  10082. (ID_t): New enum.
  10083. * src/BitfieldMessage.h
  10084. (ID): Renamed as ID_t
  10085. (ID_t): New enum.
  10086. * src/PieceMessage.h
  10087. (ID): Renamed as ID_t
  10088. (ID_t): New enum.
  10089. * src/RequestMessage.h
  10090. (ID): Renamed as ID_t
  10091. (ID_t): New enum.
  10092. * src/NotInterestedMessage.h
  10093. (ID): Renamed as ID_t
  10094. (ID_t): New enum.
  10095. * src/ChokeMessage.h
  10096. (ID): Renamed as ID_t
  10097. (ID_t): New enum.
  10098. * src/InterestedMessage.h
  10099. (ID): Renamed as ID_t
  10100. (ID_t): New enum.
  10101. * src/HaveMessage.h
  10102. (ID): Renamed as ID_t
  10103. (ID_t): New enum.
  10104. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. * src/PeerAbstractCommand.h
  10106. (beforeSocketCheck): Removed.
  10107. * src/PeerAbstractCommand.cc
  10108. Modified in order to call executeInternal() even if socket check
  10109. and upload limit check fail.
  10110. * src/PeerInteractionCommand.h
  10111. (keepAlive): Removed.
  10112. (sendKeepAlive): New function.
  10113. (checkHave): New function.
  10114. (beforeSocketCheck): Removed.
  10115. * src/PeerInteractionCommand.cc
  10116. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  10117. calls to checkHave() and sendKeepAlive().
  10118. (keepAlive): Renamed to sendKeepAlive().
  10119. (sendKeepAlive): New function.
  10120. (beforeSocketCheck): Removed.
  10121. (checkHave): New function.
  10122. * src/BitfieldMan.cc
  10123. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  10124. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  10125. 0.
  10126. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  10127. * src/TorrentMan.h
  10128. (UsedPieces): Removed.
  10129. (Pieces): New type definition.
  10130. * src/Piece.h: Updated doc.
  10131. * src/Peer.h
  10132. (totalLength): Removed.
  10133. * src/Peer.cc
  10134. (updateLatency): Fixed the latency calculation.
  10135. * src/TorrentMan.cc
  10136. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  10137. than or equal to MAX_PEER_LIST_SIZE.
  10138. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  10139. then return false.
  10140. (deleteOldErrorPeers): Rewritten.
  10141. (deleteUsedPiece): Fixed the miss use of STL remove.
  10142. * src/PeerInteraction.h
  10143. (Pieces): Removed.
  10144. (deleteTimeoutRequestSlot): Removed.
  10145. (deleteCompletedRequestSlot): Removed.
  10146. (checkRequestSlot): New function.
  10147. * src/PeerInteraction.cc
  10148. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  10149. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  10150. (checkRequestSlot): New function.
  10151. * src/DownloadEngine.cc
  10152. (run): Clear activeSockets before calling waitData().
  10153. (waitData): Removed a call to activeSockets.clear().
  10154. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10155. To attempt to handle EINTR:
  10156. * src/SocketCore.cc
  10157. (isReadable): Added EINTR handling.
  10158. (isWritable): Added EINTR handling.
  10159. To improve the performance:
  10160. * src/AbstractCommand.cc
  10161. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10162. * src/PeerInteractionCommand.h
  10163. (receiveMessage): Renamed as receiveMessages().
  10164. (receiveMessages): New function.
  10165. * src/PeerInteractionCommand.cc
  10166. (executeInternal): receiveMessage loop is moved to new receiveMessages
  10167. () function. detectMessageFlooding() is moved here.
  10168. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  10169. (). The flooding detection for have message is comment out.
  10170. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  10171. Util::difftv().
  10172. (receiveMessage): Renamed as receiveMessages().
  10173. (receiveMessages): New function.
  10174. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  10175. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  10176. * src/SleepCommand.cc
  10177. (execute): Use Util::difftvsec() instead of Util::difftv().
  10178. * src/BitfieldMan.h
  10179. (getNthBitIndex): New function.
  10180. (hasMissingPiece): New function.
  10181. (getAllMissingIndexes): New function.
  10182. * src/BitfieldMan.cc
  10183. (countSetBit): Rewritten.
  10184. (getNthBitIndex): New function.
  10185. (getMissingIndexRandomly): Rewritten.
  10186. (hasMissingPiece): New function.
  10187. (getAllMissingIndexes): New function.
  10188. * src/TorrentMan.cc
  10189. (hasMissingPiece): New function.
  10190. (deleteUsedPiece): Rewritten using STL.
  10191. * src/PeerInteraction.cc
  10192. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  10193. is a little bit faster then TorrentMan::getMissingPieceIndex().
  10194. (addRequests): Updated the number of pending requests.
  10195. * src/PeerAbstractCommand.cc
  10196. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10197. (execute): Returns true if TorrentMan::isHalt() is true.
  10198. Corrected the condition of upload limit checking.
  10199. * src/Util.h
  10200. (countBit): New function.
  10201. * src/Util.cc
  10202. (nbits): New variable.
  10203. (countBit): New function.
  10204. * src/DownloadEngine.h
  10205. (SockCmdMap): New type definition.
  10206. (waitData): Added an argument.
  10207. (addSocket): Added an argument.
  10208. (addSocketForReadCheck): Added an argument.
  10209. (addSocketForWriteCheck): Added an argument.
  10210. * src/DownloadEngine.cc
  10211. (run): Executes only commands whose sockets are ready to read or write.
  10212. All commands are executed in every 1 second.
  10213. (waitData): Calls select() again if it returned
  10214. EINTR.
  10215. (addSocket): Saves socket and command object pair to the map.
  10216. (deleteSocket): Deletes socket and command object pair from the map.
  10217. (addSocketForReadCheck): Added an argument.
  10218. (addSocketForWriteCheck): Added an argument.
  10219. * src/DownloadCommand.cc
  10220. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  10221. To send "event=stopped" to the tracker when the application finishes:
  10222. * src/PeerChokeCommand.h
  10223. (checkPoint): New variable.
  10224. * src/PeerChokeCommand.cc
  10225. (PeerChokeCommand): Added the initialization of checkPoint.
  10226. (execute): The interval check is now done by checkPoint, not
  10227. SleepCommand. Return true if TorrentMan::isHalt() is true.
  10228. * src/TorrentMan.h
  10229. (halt): New function.
  10230. (hasMissingPiece): New function.
  10231. (isHalt): New function.
  10232. (setHalt): New function.
  10233. * src/TorrentMan.cc
  10234. (TorrentMan): Added the initialization of halt.
  10235. * src/TorrentAutoSaveCommand.h
  10236. (checkPoint): New variable.
  10237. * src/PeerListenCommand.cc
  10238. (execute): Returns true if TorrentMan::isHalt() is true.
  10239. * src/main.cc
  10240. (setSignalHander): Added flags argument.
  10241. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  10242. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  10243. Removed printDownloadAbortMessage() after torrent downloading loop.
  10244. * src/TorrentAutoSaveCommand.cc
  10245. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  10246. (execute): Returns true if TorrentMan::isHalt() is true.
  10247. The interval check is now done by checkPoint, not SleepCommand.
  10248. * src/TrackerWatcherCommand.cc
  10249. (execute): If TorrentMan::isHalt(), then create a tracker request with
  10250. event=stopped.
  10251. * src/TrackerUpdateCommand.cc
  10252. (prepareForRetry): Do not use SleepCommand here.
  10253. (execute): Returns true if TorrentMan::isHalt() is true.
  10254. Others:
  10255. * src/TorrentMan.cc
  10256. (getMissingPieceIndex): Updated log message.
  10257. * src/PeerInteraction.cc
  10258. (createPeerMessag): Updated log message.
  10259. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10260. To add the ability to download several pieces in mix in a command and
  10261. increase the number of request slots according to request-cancel
  10262. latency:
  10263. * src/PeerInteractionCommand.cc
  10264. (executeInternal): The number of messages to be received at a time
  10265. is increased from 10 to 50.
  10266. * src/LogFactory
  10267. (getInstance): Added NullLogger.
  10268. * src/NullLogger.h: New class.
  10269. * src/BitfieldMan.h
  10270. (getMissingIndex): New function.
  10271. * src/BitfieldMan.cc
  10272. (getMissingIndex): New function.
  10273. * src/TorrentMan.h
  10274. (checkOutPiece): New function.
  10275. (getMissingPieceIndex): New function.
  10276. (getMissingFastPieceIndex): New function.
  10277. (getMissingFastPiece): New function.
  10278. * src/TorrentMan.cc
  10279. (updatePiece): Rewritten using STL.
  10280. (syncPiece): Rewritten using STL.
  10281. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  10282. checkOutPiece().
  10283. (getMissingPieceIndex): New function.
  10284. (getMissingFastPieceIndex): New function.
  10285. (getMissingFastPiece): New function.
  10286. (checkOutPiece): New function.
  10287. * src/PeerInteraction.h
  10288. (Pieces): New type definition.
  10289. (piece): Removed.
  10290. (pieces): New variable.
  10291. (getNewPieceAndSendInterest): Added the "piece" argument.
  10292. (abortPiece): Added the "piece" argument.
  10293. (abortAllPieces): New function.
  10294. (isInRequestSlot): New function.
  10295. (hasDownloadPiece): Added the "index" argument.
  10296. (setDownloadPiece): Removed.
  10297. (getDownloadPiece): Added the "index" argument.
  10298. (updatePiece): New function.
  10299. (createRequestMessage): Added the "index" argument.
  10300. * src/PeerInteraction.cc
  10301. (onChoked): Rewritten.
  10302. (abortPiece): Rewirtten.
  10303. (abortAllPieces): New function.
  10304. (deleteTimeoutRequestSlot): Rewritten.
  10305. Clarified code a little bit.
  10306. (deleteCompletedRequestSlot): Rewritten.
  10307. (isInRequestSlot): New function.
  10308. (syncPiece): Rewritten.
  10309. (updatePiece): New function.
  10310. (getNewPieceAndSendInterest): Rewritten.
  10311. (addRequests): Rewritten.
  10312. (getDownloadPiece): Rewritten.
  10313. (hasDownloadPiece): Rewritten.
  10314. (createRequestMessage): Added the "index" argument.
  10315. * src/common.h
  10316. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  10317. (DIV_FLOOR): New definition.
  10318. * src/PieceMessage.cc
  10319. (receivedAction): Update request-piece latency here.
  10320. * src/RequestSlot.h
  10321. (getLatencyInMillis): New function.
  10322. * src/RequestSlot.cc
  10323. (isTimeout): Rewritten using getLatencyInMillis.
  10324. (getLatencyInMillis): New function.
  10325. * src/Piece.h
  10326. (operator==): New function.
  10327. (getMissingBlockIndex): New function.
  10328. * src/Piece.cc
  10329. (operator==): New function.
  10330. (getMissingBlockIndex): New function.
  10331. * src/Peer.h
  10332. (DEFAULT_LATENCY): New definition.
  10333. (latency): New variable.
  10334. (updateLatency): New function.
  10335. (getLatency): New function.
  10336. * src/Peer.cc
  10337. (resetStatus): Reset latecy.
  10338. (updateLatency): New function.
  10339. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10340. * src/SocketCore.cc
  10341. (isReadable): Added secure to the condition.
  10342. * src/HttpConnection.cc
  10343. (receiveResponse): Fixed a bug that causes no response header
  10344. exception.
  10345. * src/Peer.h
  10346. (getFastSet): Fixed the return value type.
  10347. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10348. To remove a wait from download loop:
  10349. * src/DownloadEngine.cc
  10350. (run): Comment out shortSleep.
  10351. To rewrite the message handling:
  10352. * src/SimplePeerMessage.h: New class.
  10353. * src/SimplePeerMessage.cc: New class.
  10354. * src/CancelMessage.h: Derived from SimplePeerMessage.
  10355. (msg): New variable.
  10356. (create): New function.
  10357. (send): Removed.
  10358. (getMessage): New function.
  10359. (getMessageLength): New function.
  10360. * src/CancelMessage.cc
  10361. (create): New function.
  10362. (receivedAction): Replaced deleteRequestMessageInQueue with
  10363. rejectPieceMessageInQueue.
  10364. (send): Removed.
  10365. (getMessage): New function.
  10366. (getMessageLength): New function.
  10367. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  10368. (msg): New variable.
  10369. (msgLength): New variable.
  10370. (~BitfieldMessage): Deleted msg.
  10371. (send): Removed.
  10372. (getMessage): New function.
  10373. (getMessageLength): New function.
  10374. * src/BitfieldMessage.cc
  10375. (create): New function.
  10376. (send): Removed.
  10377. (getMessage): New function.
  10378. (getMessageLength): New function.
  10379. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  10380. (msg): New variable.
  10381. (sendPredicate): New function.
  10382. (onSendComplete): New function.
  10383. (send): Removed.
  10384. (getMessage): New function.
  10385. (getMessageLength): New function.
  10386. (create): New function.
  10387. * src/ChokeMessage.cc
  10388. (create): New function.
  10389. (send): Removed.
  10390. (sendPredicate): New function.
  10391. (getMessage): New function.
  10392. (getMessageLength): New function.
  10393. (onSendComplete): New function.
  10394. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  10395. (msg): New variable.
  10396. (send): Removed.
  10397. (getMessage): New function.
  10398. (getMessageLength): New function.
  10399. * src/KeepAliveMessage.cc
  10400. (send): Removed.
  10401. (getMessage): New function.
  10402. (getMessageLength): New function.
  10403. * src/PortMessage.h
  10404. (create): New function.
  10405. (receivedAction): Updated log message.
  10406. * src/PortMessage.cc: New file.
  10407. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  10408. (msg): New variable.
  10409. (sendPredicate): New function.
  10410. (onSendComplete): New function.
  10411. (create): New function.
  10412. (send): Removed.
  10413. (getMessage): New function.
  10414. (getMessageLength): New function.
  10415. * src/UnchokeMessage.cc
  10416. (create): New function.
  10417. (send): Removed.
  10418. (sendPredicate): New function.
  10419. (getMessage): New function.
  10420. (getMessageLength): New function.
  10421. (onSendComplete): New function.
  10422. * src/PieceMessage.h
  10423. (leftPieceDataLength): Removed.
  10424. (leftDataLength): New variable.
  10425. (headerSend): New variable.
  10426. (pendingCount): New variable.
  10427. (msgHeader): New variable.
  10428. (sendPieceData): New function.
  10429. (incrementPendingCount): New function.
  10430. (isPendingCountMax): New function.
  10431. (create): New function.
  10432. (getMessageHeader): New function.
  10433. (getMessageHeaderLength): New function.
  10434. * src/PieceMessage.cc
  10435. (create): New function.
  10436. (getMessageHeader): New function.
  10437. (getMessageHeaderLength): New function.
  10438. (send): Rewritten.
  10439. (sendPieceData): New function.
  10440. * src/HaveMessage.h: Derived from SimplePeerMessage.
  10441. (msg): New variable.
  10442. (create): New function.
  10443. (getMessage): New function.
  10444. (getMessageLength): New function.
  10445. * src/HaveMessage.cc
  10446. (create): New function.
  10447. (send): Removed.
  10448. (sendPieceData): New function.
  10449. (getMessage): New function.
  10450. (getMessageLength): New function.
  10451. * src/RequestMessage.h: Derived from SimplePeerMessage.
  10452. (msg): New variable.
  10453. (create): New function.
  10454. (send): Removed.
  10455. (getMessage): New function.
  10456. (getMessageLength): New function.
  10457. * src/RequestMessage.cc
  10458. (create): New function.
  10459. (receivedAction): Added the handling of fast extension.
  10460. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  10461. (send): Removed.
  10462. (getMessage): New function.
  10463. (getMessageLength): New function.
  10464. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  10465. (msg): New variable.
  10466. (sendPredicate): New function.
  10467. (onSendComplete): New function.
  10468. (create): New function.
  10469. (getMessage): New function.
  10470. (getMessageLength): New function.
  10471. * src/InterestedMessage.cc
  10472. (create): New function.
  10473. (send): Removed.
  10474. (sendPieceData): New function.
  10475. (getMessage): New function.
  10476. (getMessageLength): New function.
  10477. (onSendComplete): New function.
  10478. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  10479. (msg): New variable.
  10480. (sendPieceData): New function.
  10481. (onSendComplete): New function.
  10482. (create): New function.
  10483. (send): Removed.
  10484. (getMessage): New function.
  10485. (getMessageLength): New function.
  10486. * src/NotInterestedMessage.cc
  10487. (create): New function.
  10488. (send): Removed.
  10489. (sendPredicate): New function.
  10490. (getMessage): New function.
  10491. (getMessageLength): New function.
  10492. (onSendComplete): New function.
  10493. * src/AllowedFastMessage.h: New class.
  10494. * src/AllowedFastMessage.cc: New class.
  10495. * src/RejectMessage.h: New class.
  10496. * src/RejectMessage.cc: New class.
  10497. * src/SuggestPieceMessage.h: New class.
  10498. * src/SuggestPieceMessage.cc: New class.
  10499. * src/HaveAllMessage.h: New class.
  10500. * src/HaveAllMessage.cc: New class.
  10501. * src/HaveNoneMessage.h: New class.
  10502. * src/HaveNoneMessage.cc: New class.
  10503. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  10504. (msg): New variable.
  10505. (reserved): New variable.
  10506. (create): New function.
  10507. (getId): New function.
  10508. (receivedAction): New function.
  10509. (getMessage): New function.
  10510. (getMessageLength): New function.
  10511. (isFastExtensionSupported): New function.
  10512. * src/HandshakeMessage.cc
  10513. (HandshakeMessage): Moved here from HandshakeMessage.h.
  10514. (create): New function.
  10515. (getMessage): New function.
  10516. (getMessageLength): New function.
  10517. (toString): Added the output of reserved field.
  10518. (check): Added const qualifier.
  10519. (isFastExtensionSupported): New function.
  10520. * src/PeerMessageUtil.h
  10521. (createChokeMessage): Removed.
  10522. (createUnchokeMessage): Removed.
  10523. (createInterestedMessage): Removed.
  10524. (createNotInterestedMessage): Removed.
  10525. (createHaveMessage): Removed.
  10526. (createBitfieldMessage): Removed.
  10527. (createRequestMessage): Removed.
  10528. (createCancelMessage): Removed.
  10529. (createPieceMessage): Removed.
  10530. (createPortMessage): Removed.
  10531. (createChokeMessage): Removed.
  10532. (createUnchokeMessage): Removed.
  10533. (createInterestedMessage): Removed.
  10534. (createNotInterestedMessage): Removed.
  10535. (createHaveMessage): Removed.
  10536. (createBitfieldMessage): Removed.
  10537. (createRequestMessage): Removed.
  10538. (createCancelMessage): Removed.
  10539. (createPieceMessage): Removed.
  10540. (createKeepAliveMessage): Removed.
  10541. (createHandshakeMessage): Removed.
  10542. (setIntParam): New function.
  10543. (createPeerMessageString): New function.
  10544. * src/PeerMessageUtil.cc
  10545. (createChokeMessage): Removed.
  10546. (createUnchokeMessage): Removed.
  10547. (createInterestedMessage): Removed.
  10548. (createNotInterestedMessage): Removed.
  10549. (createHaveMessage): Removed.
  10550. (createBitfieldMessage): Removed.
  10551. (createRequestMessage): Removed.
  10552. (createCancelMessage): Removed.
  10553. (createPieceMessage): Removed.
  10554. (createPortMessage): Removed.
  10555. (createRequestMessage): Removed.
  10556. (createCancelMessage): Removed.
  10557. (createPieceMessage): Removed.
  10558. (createHaveMessage): Removed.
  10559. (createChokeMessage): Removed.
  10560. (createUnchokeMessage): Removed.
  10561. (createInterestedMessage): Removed.
  10562. (createNotInterestedMessage): Removed.
  10563. (createBitfieldMessage): Removed.
  10564. (createKeepAliveMessage): Removed.
  10565. (createHandshakeMessage): Removed.
  10566. (setIntParam): New function.
  10567. (createPeerMessageString): New function.
  10568. * src/PeerConnection.h
  10569. (peer): Removed.
  10570. (torrentMan): Removed.
  10571. (createNLengthMessage): Removed.
  10572. (setIntParam): Removed.
  10573. (writeOutgoingMessageLog): Removed all overloaded functions.
  10574. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10575. (sendMessage): New function.
  10576. (sendHandshake): Removed.
  10577. (sendKeepAlive): Removed.
  10578. (sendChoke): Removed.
  10579. (sendUnchoke): Removed.
  10580. (sendInterested): Removed.
  10581. (sendNotInterested): Removed.
  10582. (sendHave): Removed.
  10583. (sendBitfield): Removed.
  10584. (sendRequest): Removed.
  10585. (sendPiece): Removed.
  10586. (sendPieceHeader): Removed.
  10587. (sendPieceData): Removed.
  10588. (sendCancel): Removed.
  10589. (getPeer): Removed.
  10590. * src/PeerConnection.cc
  10591. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10592. (sendHandshake): Removed.
  10593. (sendKeepAlive): Removed.
  10594. (createNLengthMessage): Removed.
  10595. (setIntParam): Removed.
  10596. (writeOutgoingMessageLog): Removed all overloaded functions.
  10597. (sendChoke): Removed.
  10598. (sendUnchoke): Removed.
  10599. (sendInterested): Removed.
  10600. (sendNotInterested): Removed.
  10601. (sendHave): Removed.
  10602. (sendBitfield): Removed.
  10603. (sendRequest): Removed.
  10604. (sendPiece): Removed.
  10605. (sendPieceHeader): Removed.
  10606. (sendPieceData): Removed.
  10607. (sendMessage): New function.
  10608. (sendCancel): Removed.
  10609. * src/PeerInteractionCommand.cc
  10610. (PeerInteractionCommand): Call setUploadLimit.
  10611. (executeInternal): Call setUploadLimit.
  10612. Added the handling of "inProgress" state of handshake message.
  10613. Call sendBitfield() or sendAllowdFast() instead of deprecated
  10614. sendNow().
  10615. (keepAlive): Call addMessage and sendMessage instead of deprecated
  10616. sendNow().
  10617. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  10618. * src/TorrentMan.h
  10619. (PEER_ID_LENGTH): New definition.
  10620. (hasAllPieces): New function.
  10621. * src/TorrentMan.cc
  10622. (getMissingPiece): Added the handling of fast extension.
  10623. (cancelPiece): Call updatePiece().
  10624. (hasAllPieces): New function.
  10625. * src/PeerInteraction.h
  10626. (fastSet): New variable.
  10627. (getNewPieceAndSendInterest): Changed the return type to void.
  10628. (send): Renamed as sendMessages.
  10629. (deleteAllRequestSlot): Removed.
  10630. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10631. (cancelAllRequest): Removed all overloaded functions.
  10632. (deleteAllRequestSlot): Removed.
  10633. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10634. (rejectPieceMessageInQueue): New function.
  10635. (rejectAllPieceMessageInQueue): New function.
  10636. (onChoked): New function.
  10637. (isSendingMessageInProgress): New function.
  10638. (getCorrespondingRequestSlot): Changed its arguments.
  10639. (isInFastSet): New function.
  10640. (addFastSetIndex): New function.
  10641. (addRequests): New function.
  10642. (sendNow): Removed.
  10643. (trySendNow): Removed.
  10644. (sendBitfield): New function.
  10645. (sendAllowdFast): New function.
  10646. (createHaveAllMessage): New function.
  10647. (createHaveNoneMessage): New function.
  10648. (createRejectMessage): New function.
  10649. (createAllowedFastMessage): New function.
  10650. * src/PeerInteraction.cc
  10651. (send): Renamed as sendMessages.
  10652. (sendMessages): New function.
  10653. (MsgPushBack): New class.
  10654. (isSendingMessageInProgress): New function.
  10655. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10656. (rejectAllPieceMessageInQueue): New function.
  10657. Added the handling of fast extension.
  10658. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10659. (rejectPieceMessageInQueue): New function.
  10660. Added the handling of fast extension.
  10661. (deleteRequestSlot): Replaced for loop with std::find.
  10662. (onChoked): New function.
  10663. (deleteAllRequestSlot): Removed.
  10664. (abortPiece): Rewirtten.
  10665. (deleteTimeoutRequestSlot): Updated log messages.
  10666. (getCorrespondingRequestSlot): Changed its arguments.
  10667. (cancelAllRequest): Removed all overloaded functions.
  10668. (receiveHandshake): Added the check to see whether an incoming peer
  10669. supports fast extension.
  10670. (createHandshakeMessage): Use HandshakeMessage::create instead of
  10671. PeerMessageUtil.
  10672. (createPeerMessage): Use create() of each message class instead of
  10673. PeerMessageUtil.
  10674. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  10675. AllowedFastMessage were added.
  10676. (getNewPieceAndSendInterest): Changed its return value type to void.
  10677. Added the handling of fast extension.
  10678. (addRequests): New function.
  10679. (sendNow): Removed.
  10680. (sendHandshake): Rewritten.
  10681. (trySendNow): Removed.
  10682. (sendBitfield): New function.
  10683. (sendAllowdFast): New function.
  10684. (isInFastSet): New function.
  10685. (addFastSetIndex): New function.
  10686. (createRequestMessage): Use RequestMessage::create instead of
  10687. PeerMessageUtil.
  10688. (createCancelMessage): Use CancelMessage::create instead of
  10689. PeerMessageUtil.
  10690. (createPieceMessage): Use PieceMessage::create instead of
  10691. PeerMessageUtil.
  10692. (createHaveMessage): Use HaveMessage::create instead of
  10693. PeerMessageUtil.
  10694. (createChokeMessage): Use ChokeMessage::create instead of
  10695. PeerMessageUtil.
  10696. (createUnchokeMessage): Use UnchokeMessage::create instead of
  10697. PeerMessageUtil.
  10698. (createInterestedMessage): Use InterestedMessage::create instead of
  10699. PeerMessageUtil.
  10700. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  10701. of PeerMessageUtil.
  10702. (createBitfieldMessage): Use BitfieldMessage::create instead of
  10703. PeerMessageUtil.
  10704. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  10705. PeerMessageUtil.
  10706. (createHaveAllMessage): New function.
  10707. (createHaveNoneMessage): New function.
  10708. (createRejectMessage): New function.
  10709. (createAllowedFastMessage: New function.
  10710. * src/Util.h
  10711. (sha1Sum): New function.
  10712. (computeFastSet): New function.
  10713. * src/Util.cc
  10714. (sha1Sum): New function.
  10715. (computeFastSet): New function.
  10716. * src/Peer.h
  10717. (fastExtensionEnabled): New variable.
  10718. (fastSet): New variable.
  10719. (setAllBitfield): New function.
  10720. (setFastExtensionEnabled): New function.
  10721. (isFastExtensionEnabled): New function.
  10722. (addFastSetIndex): New function.
  10723. (getFastSet): New function.
  10724. (isInFastSet): New function.
  10725. (countFastSet): New function.
  10726. * src/Peer.cc
  10727. (isInFastSet): New function.
  10728. (addFastSetIndex): New function.
  10729. (setAllBitfield): New function.
  10730. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  10731. sockets.
  10732. * src/PeerAbstractCommand.cc
  10733. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  10734. and uploadLimit.
  10735. (execute): Changed the procedure of checking sockets. The upload speed
  10736. checking were added.
  10737. (setUploadLimit): New function.
  10738. (setUploadLimitCheck): New function.
  10739. * src/PeerAbstractCommand.h
  10740. (setUploadLimit): New function.
  10741. (setUploadLimitCheck): New function.
  10742. (uploadLimit): New variable.
  10743. (uploadLimitCheck): New variable.
  10744. To contact a tracker regularly:
  10745. * src/TrackerWatcherCommand.h (interval): New variable.
  10746. (checkPoint): New variable.
  10747. (TrackerWatcherCommand): Added interval argument.
  10748. * src/TrackerWatcherCommand.cc
  10749. (TrackerWatcherCommand): Initialized checkPoint.
  10750. (execute): Now a tracker is contacted in every specified period.
  10751. If peer list is not needed, send request with numwant=0.
  10752. * src/TrackerUpdateCommand.cc
  10753. (execute): Updated log messages.
  10754. * src/DownloadEngine.cc
  10755. (~DownloadEngine): Removed two asserts.
  10756. (waitData): Uncommented wfds. May be a bug fix.
  10757. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10758. * src/PeerInteractionCommand.h
  10759. (checkInactiveConnection): Removed.
  10760. * src/PeerInteractionCommand.cc
  10761. (executeInternal): Removed following function calls:
  10762. detectMessageFlooding(), checkLongTimePeerChoking and
  10763. checkInactiveConnection().
  10764. (checkInactiveConnection): Removed.
  10765. (detectMessageFlooding): Removed function call to
  10766. checkInactiveConnection().
  10767. * src/PeerMessageUtil.h
  10768. (createChokeMessage): New function. Overload.
  10769. (createUnchokeMessage): New function. Overload.
  10770. (createInterestedMessage): New function. Overload.
  10771. (createNotInterestedMessage): New function. Overload.
  10772. (createHaveMessage): New function. Overload.
  10773. (createBitfieldMessage): New function. Overload.
  10774. (createRequestMessage): New function. Overload.
  10775. (createCancelMessage): New function. Overload.
  10776. (createPieceMessage): New function. Overload.
  10777. (createKeepAliveMessage): New function. Overload.
  10778. * src/PeerMessageUtil.cc
  10779. (createChokeMessage): New function. Overload.
  10780. (createUnchokeMessage): New function. Overload.
  10781. (createInterestedMessage): New function. Overload.
  10782. (createNotInterestedMessage): New function. Overload.
  10783. (createHaveMessage): New function. Overload.
  10784. (createBitfieldMessage): New function. Overload.
  10785. (createRequestMessage): New function. Overload.
  10786. (createCancelMessage): New function. Overload.
  10787. (createPieceMessage): New function. Overload.
  10788. (createKeepAliveMessage): New function. Overload.
  10789. * src/SendMessageQueue.cc
  10790. (createRequestMessage): Use PeerMessageUtil.
  10791. (createCancelMessage): Use PeerMessageUtil.
  10792. (createPieceMessage): Use PeerMessageUtil.
  10793. (createHaveMessage): Use PeerMessageUtil.
  10794. (createChokeMessage): Use PeerMessageUtil.
  10795. (createUnchokeMessage): Use PeerMessageUtil.
  10796. (createInterestedMessage): Use PeerMessageUtil.
  10797. (createNotInterestedMessage): Use PeerMessageUtil.
  10798. (createBitfieldMessage): Use PeerMessageUtil.
  10799. (createKeepAliveMessage): Use PeerMessageUtil.
  10800. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  10801. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  10802. * src/PeerInteraction.h: New class.
  10803. * src/PeerInteraction.cc: New class.
  10804. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10805. Each peer message has its own class.
  10806. * src/PendingMessages.h: Removed.
  10807. * src/PendingMessages.cc: Removed. The sending process was moved to
  10808. each message class.
  10809. * src/RequestSlotMan.h: Removed.
  10810. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  10811. SendMessageQueue.
  10812. * src/RequestMessage.h: New class.
  10813. * src/RequestMessage.cc: New class.
  10814. * src/CancelMessage.h: New class.
  10815. * src/CancelMessage.cc: New class.
  10816. * src/BitfieldMessage.h: New class.
  10817. * src/BitfieldMessage.cc: New class.
  10818. * src/ChokeMessage.h: New class.
  10819. * src/ChokeMessage.cc: New class.
  10820. * src/KeepAliveMessage.h: New class.
  10821. * src/KeepAliveMessage.cc: New class.
  10822. * src/PortMessage.h: New class.
  10823. * src/UnchokeMessage.h: New class.
  10824. * src/UnchokeMessage.cc: New class.
  10825. * src/PieceMessage.h: New class.
  10826. * src/PieceMessage.cc: New class.
  10827. * src/HaveMessage.h: New class.
  10828. * src/HaveMessage.cc: New class.
  10829. * src/BitfieldMessage.h: New class.
  10830. * src/BitfieldMessage.cc: New class.
  10831. * src/NotInterestedMessage.h: New class.
  10832. * src/NotInterestedMessage.cc: New class.
  10833. * src/InterestedMessage.h: New class.
  10834. * src/InterestedMessage.cc: New class.
  10835. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  10836. (getSendMessageQueue): New function.
  10837. (setSendMessageQueue): New function.
  10838. * src/HandshakeMessage.cc: New class.
  10839. * src/PeerConnection.h (receiveMessage): Changed return value and
  10840. arguments.
  10841. (receiveHandshake): Changed return value and arguments.
  10842. * src/PeerConnection.cc (receiveMessage): Do not create message class
  10843. here.
  10844. (receiveHandshake): Do not create handshake class here.
  10845. * src/PeerInteractionCommand.h (peerConnection): Removed.
  10846. (piece): Removed.
  10847. (syncPiece): Removed.
  10848. (sendInterest): Removed.
  10849. (sendMessages): Removed.
  10850. (createRequestPendingMessage): Removed.
  10851. (checkPieceHash): Removed.
  10852. (erasePieceOnDisk): Removed.
  10853. (getNewPieceAndSendInterest): Removed.
  10854. (onGotNewPice): Removed.
  10855. (onGotWrongPiece): Removed.
  10856. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10857. Removed peerConnection, piece.
  10858. (~PeerInteractionCommand): Removed peerConnection.
  10859. (executeInternal): Use sendMessageQueue instead of peerConnection.
  10860. (syncPiece): Moved to SendMessageQueue.
  10861. (decideChoking): Removed PendingMessage.
  10862. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  10863. The action after receiving peer message was moved to each message
  10864. class.
  10865. (onGotNewPice): Moved to SendMessageQueue.
  10866. (onGotWrongPiece): Moved to SendMessageQueue.
  10867. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  10868. (sendInterest): Moved to SendMessageQueue.
  10869. (createRequestPendingMessage): Removed.
  10870. (sendMessages): Moved to SendMessageQueue.
  10871. (onAbort): Use SendMessageQueue::abortPiece()
  10872. (keepAlive): Use sendMessageQueue instead of peerConnection.
  10873. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  10874. (checkPieceHash): Moved to SendMessageQueue.
  10875. (erasePieceOnDisk): Moved to SendMessageQueue.
  10876. * src/PeerMessageUtil.h
  10877. (createBitfieldMessage): Removed.
  10878. (createHaveMessage): Changed return value and arguments.
  10879. (createBitfieldMessage): Changed return value and arguments.
  10880. (createRequestCancelMessage): Removed.
  10881. (createPieceMessage): Changed return value and arguments.
  10882. (getShortIntParam): New function.
  10883. (checkIndex): Changed arguments.
  10884. (checkBegin): Changed arguments.
  10885. (checkLength): Changed arguments.
  10886. (checkPieceOffset): Removed.
  10887. (checkRange): New function.
  10888. (checkBitfield): Changed arguments.
  10889. (createPeerMessage): Removed.
  10890. (checkIntegrity): Removed.
  10891. (createHandshakeMessage): Changed arguments.
  10892. (createChokeMessage): New function.
  10893. (createUnchokeMessage): New function.
  10894. (createInterestedMessage): New function.
  10895. (createNotInterestedMessage): New function.
  10896. (createRequestMessage): New function.
  10897. (createCancelMessage): New function.
  10898. (createPortMessage): New function.
  10899. * src/PeerMessageUtil.cc
  10900. (createBitfieldMessage): Removed.
  10901. (createHaveMessage): Changed return value and arguments.
  10902. (createBitfieldMessage): Changed return value and arguments.
  10903. (createRequestCancelMessage): Removed.
  10904. (createPieceMessage): Changed return value and arguments.
  10905. (getShortIntParam): New function.
  10906. (checkIndex): Changed arguments.
  10907. (checkBegin): Changed arguments.
  10908. (checkLength): Changed arguments.
  10909. (checkPieceOffset): Removed.
  10910. (checkRange): New function.
  10911. (checkBitfield): Changed arguments.
  10912. (createPeerMessage): Removed.
  10913. (checkIntegrity): Removed.
  10914. (createHandshakeMessage): Changed arguments.
  10915. (createChokeMessage): New function.
  10916. (createUnchokeMessage): New function.
  10917. (createInterestedMessage): New function.
  10918. (createNotInterestedMessage): New function.
  10919. (createRequestMessage): New function.
  10920. (createCancelMessage): New function.
  10921. (createPortMessage): New function.
  10922. * src/PeerMessage.h
  10923. (id): Removed.
  10924. (index): Removed.
  10925. (begin): Removed.
  10926. (length): Removed.
  10927. (bitfield): Removed.
  10928. (bitfieldLength): Removed.
  10929. (block): Removed.
  10930. (blockLength): Removed.
  10931. (inProgress): New variable.
  10932. (cuid): New variable.
  10933. (peer): New variable.
  10934. (sendMessageQueue): New variable.
  10935. (logger): New variable.
  10936. (setBitfield): Removed.
  10937. (getBitfield): Removed.
  10938. (setBlock): Removed.
  10939. (getBlock): Removed.
  10940. (getBitfieldLength): Removed.
  10941. (getBlockLength): Removed.
  10942. (isInProgress): New function.
  10943. (toString): Made pure virtual.
  10944. (check): New function.
  10945. (send): New function.
  10946. (receivedAction): New function.
  10947. (getId): Made pure virtual.
  10948. (setId): Removed.
  10949. (getIndex): Removed.
  10950. (setIndex): Removed.
  10951. (getBegin): Removed.
  10952. (setBegin): Removed.
  10953. (getLength): Removed.
  10954. (setLength): Removed.
  10955. (getCuid): New function.
  10956. (setCuid): New function.
  10957. (getPeer): New function.
  10958. (setPeer): New function.
  10959. (getSendMessageQueue): New function.
  10960. (setSendMessageQueue): New function.
  10961. (ID): Removed.
  10962. * src/PeerMessage.cc
  10963. (setBitfield): Removed.
  10964. (setBlock): Removed.
  10965. (toString): Removed.
  10966. * src/TorrentMan.h
  10967. (getPieceLength): New function.
  10968. (getPieceLength): New function.
  10969. * src/SendMessageQueue.h
  10970. (REQUEST_TIME_OUT): New definition.
  10971. (RequestSlots): New definition.
  10972. (MessageQueue): New definition.
  10973. (requestSlotMan): Removed.
  10974. (pendingMessages): Removed.
  10975. (requestSlots): New variable.
  10976. (messageQueue): New variable.
  10977. (torrentMan): New variable.
  10978. (peerConnection): New variable.
  10979. (peer): New variable.
  10980. (piece): New variable.
  10981. (getNewPieceAndSendInterest): New function.
  10982. (createPeerMessage): New function.
  10983. (createHandshakeMessage): New function.
  10984. (send): Made private.
  10985. (setPeerMessageCommonProperty): New function.
  10986. (deleteAllRequestSlot): New function.
  10987. (deleteRequestMessageInQueue): New function.
  10988. (cancelAllRequest): Made private.
  10989. (cancelAllRequest): Made private.
  10990. (countRequestSlot): Made private.
  10991. (addPendingMessage): Removed.
  10992. (deletePendingPieceMessage): Removed.
  10993. (deletePendingRequestMessage): Removed.
  10994. (addMessage): New function.
  10995. (deletePieceMessageInQueue): New function.
  10996. (deleteTimeoutRequestSlot): Changed argument.
  10997. (deleteCompletedRequestSlot): Changed argument.
  10998. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  10999. (getCorrespondingRequestSlot): New function.
  11000. (countPendingMessage): Removed.
  11001. (countMessageInQueue): New function.
  11002. (getTorrentMan): New function.
  11003. (getPeerConnection): New function.
  11004. (hasDownloadPiece): New function.
  11005. (getDownloadPiece): New function.
  11006. (setDownloadPiece): New function.
  11007. (syncPiece): New function.
  11008. (sendMessages): New function.
  11009. (sendNow): New function.
  11010. (trySendNow): New function.
  11011. (abortPiece): New function.
  11012. (sendHandshake): New function.
  11013. (receiveMessage): New function.
  11014. (receiveHandshake): New function.
  11015. (createRequestMessage): New function.
  11016. (createCancelMessage): New function.
  11017. (createPieceMessage): New function.
  11018. (createHaveMessage): New function.
  11019. (createChokeMessage): New function.
  11020. (createUnchokeMessage): New function.
  11021. (createInterestedMessage): New function.
  11022. (createNotInterestedMessage): New function.
  11023. (createBitfieldMessage): New function.
  11024. (createKeepAliveMessage): New function.
  11025. * src/SendMessageQueue.cc
  11026. (SendMessageQueue): Removed requestSlotMan.
  11027. Instantiated peerConnection here.
  11028. (~SendMessageQueue): Removed requestSlotMan.
  11029. Added deletion of peerConnection and the contents of messageQueue.
  11030. (send): Updated according to the change of messageQueue.
  11031. (addPendingMessage): Renamed to addMessage.
  11032. (addMessage): New function.
  11033. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  11034. (deletePieceMessageInQueue): New function.
  11035. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  11036. (deleteRequestMessageInQueue): New function.
  11037. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  11038. here.
  11039. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  11040. (...) was moved here.
  11041. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  11042. moved here.
  11043. (deleteCompletedRequestSlot):
  11044. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  11045. (getCorrespondingRequestSlot):
  11046. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  11047. And renamed to getCorrespondingRequestSlot, correcting a typo.
  11048. (countPendingMessage): Renamed to countMessageInQueue.
  11049. (countMessageInQueue): New function.
  11050. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  11051. (receiveHandshake): New function.
  11052. (createHandshakeMessage): New function.
  11053. (receiveMessage): New function.
  11054. (createPeerMessage): New function.
  11055. (syncPiece): New function.
  11056. (getNewPieceAndSendInterest): New function.
  11057. (sendMessages): New function.
  11058. (sendNow): New function.
  11059. (trySendNow): New function.
  11060. (sendHandshake): New function.
  11061. (abortPiece): New function.
  11062. (getDownloadPiece): New function.
  11063. (getPeerMessageCommonProperty): New function.
  11064. (createRequestMessage): New function.
  11065. (createCancelMessage): New function.
  11066. (createPieceMessage): New function.
  11067. (createHaveMessage): New function.
  11068. (createChokeMessage): New function.
  11069. (createUnchokeMessage): New function.
  11070. (createInterestedMessage): New function.
  11071. (createNotInterestedMessage): New function.
  11072. (createBitfieldMessage): New function.
  11073. (createKeepAliveMessage): New function.
  11074. To add simple Content-Disposition support:
  11075. * src/HttpResponseCommand.h (determinFilename): New function.
  11076. * src/HttpResponseCommand.cc (executeInternal):
  11077. Use determinFilename(headers) instead of req->getFile() when comparing
  11078. filename.
  11079. (determinFilename): New function.
  11080. (handleDefaultEncoding): Use determinFilename(headers) instead of
  11081. req->getFile().
  11082. (handleOtherEncoding): Use determinFilename(headers) instead of
  11083. req->getFile().
  11084. * src/Util.h (getContentDispositionFilename): New function.
  11085. * src/Util.cc (getContentDispositionFilename): New function.
  11086. * src/LogFactory.h (release): New function.
  11087. * src/LogFactory.cc (release): New function.
  11088. To fix a bug that causes out-of-bound exception when HTTP status
  11089. line is wrong:
  11090. * src/HttpConnection.cc (receiveResponse): Added a check for header
  11091. size.
  11092. * src/common.h (Deleter): New class.
  11093. * src/SegmentMan.cc
  11094. (~SegmentMan): Added deletion of splitter and diskWriter.
  11095. * src/DownloadEngine.h
  11096. (Commands): Use deque.
  11097. (clearQueue): New function.
  11098. * src/DownloadEngine.cc
  11099. (~DownloadEngine): Added deletion of segmentMan.
  11100. (cleanQueue): New function.
  11101. * src/TorrentDownloadEngine.h
  11102. (TorrentDownloadEngine): The implementation was moved to
  11103. TorrentDownloadEngine.cc.
  11104. (~TorrentDownloadEngine): The implementation was moved to
  11105. TorrentDownloadEngine.cc.
  11106. * src/TorrentDownloadEngine.cc
  11107. (~TorrentDownloadEngine): Added deletion of torrentMan.
  11108. * src/main.cc
  11109. (clearRequest): Removed.
  11110. (handler): Added deletion of e.
  11111. (torrentHandler): Added deletion of te.
  11112. (main): Do not share splitter.
  11113. Use Deleter instead of clearRequest.
  11114. Deletion of classes were updated.
  11115. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11116. * src/main.cc (main): Fixed typo.
  11117. * src/message.h: Fixed typo.
  11118. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  11119. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11120. To add --select-file command-line option:
  11121. * src/Util.cc
  11122. (unfoldRange): New function.
  11123. (getNum): New function.
  11124. (unfoldSubRange): New function
  11125. * src/main.cc
  11126. (showUsage): Added help message.
  11127. (main): Added --select-file command-line option. Updated the layout of
  11128. file listing.
  11129. * src/common.h
  11130. (Integers): New definition.
  11131. * src/SocketCore.cc
  11132. (writeData): Removed timeout argument.
  11133. (readData): Removed timeout argument.
  11134. (peekData): Removed timeout argument.
  11135. * src/Socket.cc
  11136. (writeData): Removed timeout argument.
  11137. (readData): Removed timeout argument.
  11138. (peekData): Removed timeout argument.
  11139. * Release 0.4.1
  11140. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11141. To deploy upload rate based choking algorithm:
  11142. * src/PeerInteractionCommand.cc
  11143. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  11144. peer currently used.
  11145. (decideChoking): Deleted the choke/unchoke decision algorithm when
  11146. download completes. Simplified.
  11147. (receiveMessage): Updated.
  11148. * src/TorrentMan.h
  11149. (activePeers): New variable.
  11150. (addActivePeer): New function.
  11151. (getActivePeers): New function.
  11152. (deleteActivePeer): New function.
  11153. * src/TorrentMan.cc
  11154. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  11155. * src/PeerAbstractCommand.cc
  11156. (onAbort): Use peer->resetStatus().
  11157. * src/main.cc
  11158. (PeerChokeCommand.h): Included.
  11159. (main): Added the instance of ChokingCommand to the command queue.
  11160. * src/Peer.h
  11161. (amChoking): Renamed from amChocking
  11162. (chokingRequired): New variable.
  11163. (optUnchoking): New variable.
  11164. (deltaUpload): New variable.
  11165. (deltaDownload): New variable.
  11166. (addDeltaUpload): New function.
  11167. (resetDeltaUpload): New function.
  11168. (addDeltaDownload): New function.
  11169. (resetDeltaDownload): New function.
  11170. (addPeerUpload): Added a call to addDeltaUpload.
  11171. (addPeerDownload): Added a call to addDeltaDownload.
  11172. * src/Peer.cc
  11173. (shouldBeChoking): Renamed from shouldChoke.
  11174. (resetStatus): New function.
  11175. * src/PeerChokeCommand.h: New class.
  11176. * src/PeerChokeCommand.cc: New class.
  11177. To add lazy upload speed limiter:
  11178. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  11179. statistics calculation to TorrentDownloadEngine.
  11180. * src/TorrentConsoleDownloadEngine.cc
  11181. (sendStatistics): Renamed from printStatistics.
  11182. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  11183. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  11184. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  11185. * src/TorrentDownloadEngine.h: Added the variables for statistics
  11186. calculation.
  11187. (sendStatistics): New function as pure virtual function.
  11188. (getUploadSpeed): New function.
  11189. * src/TorrentDownloadEngine.cc
  11190. (initStatistics): New function.
  11191. (calculateSpeed): New function.
  11192. (calculateStatistics): New function.
  11193. * src/SendMessageQueue.h
  11194. (uploadLength): New variable.
  11195. (send): Added an argument.
  11196. (setUploadLimit): New function.
  11197. (getUploadLimit): New function.
  11198. * src/SendMessageQueue.cc
  11199. (send): Added upload speed limiter.
  11200. * src/prefs.h
  11201. (PREF_UPLOAD_LIMIT): New definition.
  11202. * src/PeerInteractionCommand.cc
  11203. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  11204. * src/main.cc
  11205. (main): Added --upload-limit option
  11206. For bug fixes:
  11207. * src/main.cc
  11208. (showUsage): Corrected --listen-port help
  11209. Other changes:
  11210. * src/TorrentMan.cc
  11211. (getPeer): Return nullPeer if connection is grather than
  11212. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  11213. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11214. To add some useful information to the exception message:
  11215. * src/SocketCore.cc : Updated messages.
  11216. * src/SegmentMan.cc :
  11217. * src/TorrentMan.cc : Updated messages.
  11218. * src/MultiDiskWriter.cc : Updated messages.
  11219. * src/Util.cc : Updated messages.
  11220. * src/AbstractDiskWriter.cc : Updated messages.
  11221. * src/PreAllocationDiskWriter.cc : Updated messages.
  11222. * src/message.cc : Added new messages. Updated some messages.
  11223. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  11224. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  11225. Updated threshold from 30 to 15.
  11226. * src/AbstractDiskWriter.h (filename): New variable.
  11227. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  11228. (createFile): Assigned filename.
  11229. * src/main.cc: Updated the help message for http-auth-scheme.
  11230. * Release 0.4.0
  11231. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11232. To add TrackerUpdateCommand with which replaces
  11233. CompactTrackerResponseProcessor:
  11234. * src/TrackerWatcherCommand.h (req): Removed.
  11235. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  11236. if the number of peer connections are less than 30.
  11237. * src/ByteArrayDiskWriter.h (readData): Implemented.
  11238. * src/SegmentMan.h (diskWriter): New function.
  11239. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  11240. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  11241. (main): Use TrackerUpdateCommand.
  11242. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  11243. (req): New variable.
  11244. (setTrackerResponseProcessor): Removed.
  11245. (getTrackerResponseProcessor): Removed.
  11246. (processTrackerResponse): Removed.
  11247. * src/DownloadEngine.h (diskWriter): Removed.
  11248. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  11249. to torrentMan->processTrackerResponse().
  11250. To add Util::expandBuffer:
  11251. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  11252. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  11253. * src/Util.h (expandBuffer): New function.
  11254. To fix the bug that causes segmentation fault when "-l ." is specified
  11255. in command-line option:
  11256. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  11257. (openFile): New function.
  11258. (closeFile): New function.
  11259. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  11260. (~SimpleLogger): Call closeFile();
  11261. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  11262. * src/main.cc (main): Added a check to see logger is configured
  11263. properly.
  11264. To enable HTTP authentication without specifying "--http-auth-scheme"
  11265. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  11266. * src/HttpConnection.cc (createRequest): Send Authorization header
  11267. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  11268. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  11269. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  11270. * src/Peer.cc (shouldChoke): Updated algorithm.
  11271. * src/message.h (EX_AUTH_FAILED): New definition.
  11272. (EX_FILE_OPEN): New definition.
  11273. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  11274. if status == 401.
  11275. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  11276. if req->isTorrent == true.
  11277. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  11278. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  11279. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  11280. (createFile): Updated message.
  11281. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11282. To add a readout of estimated remaining time to normal HTTP/FTP
  11283. downloads:
  11284. * src/ConsoleDownloadEngine.h (startup): New variable.
  11285. (startupLength): New variable.
  11286. (isStartupLengthSet): New variable.
  11287. (avgSpeed): New variable.
  11288. (eta): New variable.
  11289. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  11290. estimated remaining time.
  11291. (initStatistics): Initialized newly added variables.
  11292. (calculateStatistics): Calculate average speed and estimated remaining
  11293. time.
  11294. To decouple TorrentDownloadEngine from HttpResponseCommand:
  11295. * src/TrackerDownloadCommand.h: Removed.
  11296. * src/TrackerDownloadCommand.cc: Removed.
  11297. * src/TrackerInitCommand.h: Removed.
  11298. * src/TrackerInitCommand.cc: Removed.
  11299. * src/TrackerUpdateCommand.h: Removed.
  11300. * src/TrackerUpdateCommand.cc: Removed.
  11301. * src/TrackerWatcherCommand.cc (execute): The construction of request
  11302. url written in TrackerInitCommand was moved here. Do not create
  11303. tracker request command if torrentMan->trackers != 0.
  11304. * src/CompactTrackerResponseProcessor.h: New class.
  11305. * src/CompactTrackerResponseProcessor.cc: New class.
  11306. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  11307. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  11308. Decoupled TorrentDownloadEngine from this.
  11309. * src/SegmentMan.h (init): New function.
  11310. * src/SegmentMan.cc (init): New function.
  11311. * src/TorrentMan.h (responseProcessor): New variable.
  11312. (trackers): New variable.
  11313. (setTrackerResponseProcessor): New function.
  11314. (getTrackerResponseProcessor): New function.
  11315. (processTrackerResponse): New function.
  11316. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  11317. (processTrackerResponse): New function.
  11318. * src/main.cc (main): Use ByteArrayDiskWriter and
  11319. CompactTrackerResponseProcessor.
  11320. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  11321. processTrackerResponse().
  11322. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  11323. readout.
  11324. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  11325. which indicates download has completed.
  11326. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  11327. (closeFile): fd >= 0, not fd > 0
  11328. * src/main.cc (main): Added short cut for show-files.
  11329. Added short cut for torrent-file.
  11330. Added new command-line option listen-port.
  11331. Updated i18n messages.
  11332. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11333. To add LogFactory which creates singleton logger:
  11334. * src/LogFactory.h: New class.
  11335. * src/LogFactory.cc: New class.
  11336. * src/Command.h (logger): New variable.
  11337. (Constructor): Use LogFactory.
  11338. * src/AbstractCommand.cc: Use Command::logger
  11339. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  11340. Use LogFactory.
  11341. * src/SegmentSplitter.h : Made logger protected.
  11342. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  11343. * src/SegmentMan.cc (Constructor): Use LogFactory.
  11344. * src/DownloadEngine.h : Made logger protected.
  11345. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  11346. * src/PeerInteractionCommand.cc : Use Command::logger.
  11347. * src/HttpResponseCommand.cc : Use Command::logger.
  11348. * src/SegmentMan.h : Made logger private.
  11349. * src/TorrentMan.h : Made logger private.
  11350. * src/TorrentMan.cc : Use LogFactory.
  11351. * src/FtpNegotiateCommand.cc : Use Command::logger.
  11352. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  11353. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  11354. Use LogFactory.
  11355. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  11356. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  11357. Use LogFactory.
  11358. * src/DownloadCommand.cc : Use Command::logger.
  11359. * src/PeerAbstractCommand.cc : Use Command::logger.
  11360. * src/PeerListenCommand.cc : Use Command::logger.
  11361. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  11362. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  11363. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  11364. * src/TrackerWatcherCommand.cc : Use Command::logger.
  11365. * src/TrackerUpdateCommand.cc : Use Command::logger.
  11366. * src/TrackerDownloadCommand.cc : Use Command::logger.
  11367. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  11368. Use LogFactory.
  11369. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  11370. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  11371. Use LogFactory.
  11372. * src/main.cc (main): Use LogFactory.
  11373. * src/DiskAdaptor.h (logger): New variable.
  11374. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  11375. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  11376. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11377. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  11378. parameter to a tracker request.
  11379. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  11380. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  11381. * src/main.cc (setSignalHander): New function.
  11382. (main): Added a handler for SIGTERM.
  11383. (handler): Updated message.
  11384. (torrentHandler): Updated message.
  11385. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11386. * src/TorrentConsoleDownloadEngine.cc
  11387. (onPartialDownloadingCompletes): Renamed as
  11388. onSelectiveDownloadingCompletes.
  11389. (onSelectiveDownloadingCompletes): Updated message.
  11390. To add DiskAdaptor which abstract DiskWriter family:
  11391. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  11392. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  11393. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  11394. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  11395. MultiDiskAdaptor.h.
  11396. (readFileEntry): Changed its arguments.
  11397. (setup): setupDiskWriter is merged into this function.
  11398. (setupDiskWriter): Removed.
  11399. (setFileFilter): New function.
  11400. (readFileEntryFromMetaInfoFile): Updated according to the changes
  11401. made in readFileEntry.
  11402. (getFilePath): Removed.
  11403. (getTempFilePath): Removed.
  11404. (getSegmentFilePath): Updated due to the removal of getFilePath.
  11405. (fixFilename): Removed.
  11406. (copySingleFile): Removed.
  11407. (splitMultiFile): Removed.
  11408. (deleteTempFile): Removed.
  11409. (setFileEntriesToDownload): Removed.
  11410. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  11411. (isSelectiveDownloadingMode): New function.
  11412. (setAllMultiFileRequestedState): Removed.
  11413. (finishPartialDownloadingMode): Renamed as
  11414. finishSelectiveDownloadingMode.
  11415. (finishSelectiveDownloadingMode): New function.
  11416. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  11417. (getSelectedTotalLength): New function.
  11418. (onDownloadComplete): Use diskAdaptor.
  11419. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  11420. (Range): Removed.
  11421. (setMultiFileEntries): Renamed as setFileEntries.
  11422. (setFileEntries): New function.
  11423. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  11424. (pieceLength): New variable.
  11425. * src/main.cc (printDownloadCompeleteMessage): New function.
  11426. (torrentHandler): Use diskAdaptor instead of diskWriter.
  11427. (main): Renamed torrent-show-files to show-files.
  11428. Rewritten file contents listing.
  11429. * src/TorrentMan.h (FileEntry): Removed.
  11430. (multiFileTopDir): Removed.
  11431. (multiFileEntries): Removed.
  11432. (diskWriter): Removed.
  11433. (diskAdaptor): New variable.
  11434. * src/DefaultDiskWriter.h (totalLength): New variable.
  11435. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  11436. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  11437. diskWriter.
  11438. * src/TorrentConsoleDownloadEngine.h
  11439. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  11440. (partialTotalLength): Renamed as selectedTotalLength.
  11441. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  11442. openExistingFile, otherwise call initAndOpenFile.
  11443. (closeFile): fd > 0, not fd != 0.
  11444. * src/DirectDiskAdaptor.h: New class.
  11445. * src/DirectDiskAdaptor.cc: New class.
  11446. * src/MultiDiskAdaptor.h: New class.
  11447. * src/MultiDiskAdaptor.cc: New class.
  11448. * src/CopyDiskAdaptor.h: New class.
  11449. * src/CopyDiskAdaptor.cc: New class.
  11450. * src/DiskAdaptor.h: New class.
  11451. * src/DiskAdaptor.cc: New class.
  11452. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  11453. (PREF_SHOW_FILES): New definition.
  11454. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11455. To add the ability to download multi torrent into respective files
  11456. directly:
  11457. * src/DiskWriter.h (openFile): New function.
  11458. (seek): Removed.
  11459. * src/MultiDiskWriter.h: New class.
  11460. * src/MultiDiskWriter.cc: New class.
  11461. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  11462. protected.
  11463. (openFile): New function.
  11464. * src/AbstractDiskWriter.cc (openFile): New function.
  11465. * src/prefs.h (V_FALSE): New definition.
  11466. (PREF_DIRECT_FILE_MAPPING): New definition.
  11467. * src/TorrentMan.h (setupDiskWriter): New function.
  11468. (setAllMultiFileRequestedState): New function.
  11469. (onDownloadComplete): New function.
  11470. * src/TorrentMan.cc : Included MultiDiskWriter.h
  11471. (setupDiskWriter): New function.
  11472. (getFilePath): Updated.
  11473. (getTempFilePath): Updated.
  11474. (getSegmentFilePath): Updated.
  11475. (fixFilename): Updated.
  11476. (deleteTempFile): Updated.
  11477. (setAllMultiFileRequestedState): New function.
  11478. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  11479. (finishPartialDownloadingMode): Reset requested flags.
  11480. (onDownloadComplete): New function.
  11481. * src/main.cc: Added --direct-file-mapping option.
  11482. Use TorrentMan::setupDiskWriter().
  11483. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  11484. onDownloadComplete().
  11485. To fix ETA bug:
  11486. * src/Util.h (difftvsec): New function.
  11487. * src/Util.cc (difftvsec): New function.
  11488. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  11489. type of "elapsed" instead of long long int.
  11490. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  11491. The updates of statistics takes place every 1 seconds.
  11492. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  11493. (calculateSpeed): Changed its argument signature.
  11494. * src/PeerMessage.cc (toString): Fixed message.
  11495. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11496. To print ETA:
  11497. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  11498. completion handling when dealing with
  11499. TorrentMan::isPartialDownloadingMode() == true.
  11500. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  11501. New function.
  11502. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  11503. (sessionDownloadLength): New variable.
  11504. (avgSpeed): New variable.
  11505. (eta): New variable.
  11506. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  11507. new variables: eta, avgSpeed, startup.
  11508. (calculateSpeed): Calculate average speed and ETA.
  11509. (printStatistics): Added ETA.
  11510. * src/Util.h (secfmt): New function.
  11511. * src/Util.cc (secfmt): New function.
  11512. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11513. To detect "keep alive" flooding:
  11514. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  11515. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  11516. variable: keepAliveCount.
  11517. (detectMessageFlooding): Added "keep alive" flooding detection.
  11518. (receiveMessage): Increase keepAliveCount when "keep alive" message
  11519. received.
  11520. To add the ability to download only specified files in multi-file
  11521. torrent:
  11522. * src/BitfieldMan.h (filterBitfield): New variable.
  11523. (filterEnabled): New variable.
  11524. (setFilterBit): New function.
  11525. (enableFilter): New function.
  11526. (disableFilter): New function.
  11527. (isFilterEnabled): New function.
  11528. (getFilteredTotalLength): New function.
  11529. (getCompletedLength): New function.
  11530. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  11531. filterBitfield, filterEnabled.
  11532. (CopyConstructor): Added filterBitfield and filterEnabled.
  11533. (operator==): Added filterBitfield and filterEnabled.
  11534. (Destructor): Added filterBitfield.
  11535. (getMissingIndex): Use filterBitfield.
  11536. (getMissingUnusedIndex): Use filterBitfield.
  11537. (getFirstMissingUnusedIndex): Use filterBitfield.
  11538. (getFirstMissingUnusedIndex): Use filterBitfield.
  11539. (getAllMissingIndexes): Use filterBitfield.
  11540. (countMissingBlock): Use filterBitfield.
  11541. (countBlock): Use filterBitfield.
  11542. (setBitInternal): Added new argument on.
  11543. (setUseBit): Use setBitInternal.
  11544. (unsetUseBit): Use setBitInternal.
  11545. (setBit): Use setBitInternal.
  11546. (unsetBit): Use setBitInternal.
  11547. (isAllBitSet): Use filterBitfield.
  11548. (setFilterBit): New function.
  11549. (addFilter): New function.
  11550. (enableFilter): New function.
  11551. (disableFilter): New function.
  11552. (clearFilter): New function.
  11553. (isFilterEnabled): New function.
  11554. (getFilteredTotalLength): New function.
  11555. (getCompletedLength): New function.
  11556. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  11557. Initalized newly added variables.
  11558. [FileEntry](offset): New variable.
  11559. [FileEntry](extracted): New variable.
  11560. [FileEntry](requested): New variable.
  11561. (readFileEntry): New function.
  11562. (option): New variable.
  11563. (splitMultiFile): Removed const qualifier.
  11564. (fixFilename): Removed const qualifier.
  11565. (readFileEntryFromMetaInfoFile): New function.
  11566. (finishPartialDownloadingMode): New function.
  11567. (isPartialDownloadingMode): New function.
  11568. (setFileEntriesToDownload): New function.
  11569. (getCompletedLength): New function.
  11570. (getPartialTotalLength): New function.
  11571. * src/TorrentMan.cc (readFileEntry): New function.
  11572. (setup): Use readFileEntry. If no-preallocation option is specified,
  11573. use DefaultDiskWriter.
  11574. (readFileEntryFromMetaInfoFile): New function.
  11575. (fixFilename): Removed const qualifier.
  11576. (splitMultiFile): Removed const qualifier.
  11577. (setFileEntriesToDownload): New function.
  11578. (isPartialDownloadingMode): New function.
  11579. (finishPartialDownloadingMode): New function.
  11580. (getCompletedLength): New function.
  11581. (getPartialTotalLength): New function.
  11582. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  11583. New variable.
  11584. (partialTotalLength): New variable.
  11585. (downloadLength): New variable.
  11586. (totalLength): New variable.
  11587. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  11588. Added log.
  11589. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  11590. partialTotalLength, downloadLength, totalLength.
  11591. (calculate): Calculate downloadLength and totalLength.
  11592. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  11593. * src/main.cc (addCommand): Changed argument signature.
  11594. (main): Added new variable: args. Added new option "torrent-show-files"
  11595. "no-preallocation". Usage is not updated yet.
  11596. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11597. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  11598. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11599. Attempt to add the ability to listing file entries in a .torrent file.
  11600. This feature is not yet complete.
  11601. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  11602. * src/TorrentMan.cc (getMultiFileEntries): New function.
  11603. (getName): New function.
  11604. * src/TorrentMan.h (getMultiFileEntries): New function.
  11605. (getName): New function.
  11606. * src/main.cc (main): Use above 2 funtion.
  11607. * Release 0.3.2
  11608. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11609. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  11610. (detectMessageFlooding): Updated threshold value.
  11611. (checkLongTimePeerChoking): Updated timeout value.
  11612. (getNewPieceAndSendInterest): Added debug log.
  11613. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  11614. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  11615. (getPeer): Updated.
  11616. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  11617. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  11618. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  11619. is localhost.
  11620. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  11621. * src/PendingMessage.cc (processMessage): Not to send piece message
  11622. if peer is not interested in the pieces localhost has.
  11623. * src/Peer.cc (shouldChoke): Updated.
  11624. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  11625. * src/Util.cc (isPowerOf): New function.
  11626. * src/Util.h (isPowerOf): New function.
  11627. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  11628. whether or not it is power of 2.
  11629. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11630. Added new class SendMessageQueue that includes PendingMessages and
  11631. RequestSlotMan.
  11632. * src/SendMessageQueue.h: New class.
  11633. * src/SendMessageQueue.cc: New class.
  11634. * src/PendingMessage.h: Added new member variable blockIndex and its
  11635. accessors.
  11636. (createRequestMessage): Updated.
  11637. * src/PendingMessage.cc (createRequestMessage): Updated.
  11638. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  11639. SendMessageQueue.
  11640. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  11641. (receiveMessage): Updated with SendMessageQueue.
  11642. (deletePendingPieceMessage): Removed.
  11643. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  11644. (sendInterest): Updated with SendMessageQueue.
  11645. (createRequestPendingMessage): Updated with SendMessageQueue.
  11646. (sendMessages): Updated with SendMessageQueue.
  11647. (onAbort): Updated with SendMessageQueue.
  11648. (keepAlive): Updated with SendMessageQueue.
  11649. (beforeSocketCheck): Updated SendMessageQueue.
  11650. * src/PeerInteractionCommand (sendMessages): Shuffle
  11651. missingBLockIndexes before using it.
  11652. Added its own timeout for peer connection.
  11653. * src/PeerAbstractCommand.h: Added member variable timeout and its
  11654. setter.
  11655. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  11656. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11657. Added setTimeout() call.
  11658. (executeInternal): Added setTimeout() call.
  11659. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  11660. Added timeout.
  11661. (isTimeoutDetected): Updated.
  11662. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  11663. option.
  11664. Added *simple* message flooding checker.
  11665. * src/PeerInteractionCommand.cc (executeInternal):
  11666. Added detectMessageFlooding() call.
  11667. (detectMessageFlooding): New function.
  11668. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  11669. (beforeSocketCheck): Added detectMessageFlooding() call.
  11670. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  11671. chokeUnchokeCount, haveCount, detectMessageFlooding().
  11672. Removed deletePendingPieceMessage(), getRequestSlot(),
  11673. deleteRequestSlot(), deleteAllRequestSlot().
  11674. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  11675. Added checkLongTimePeerChoking() call.
  11676. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  11677. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  11678. if duplicate == false.
  11679. The parameter "uploaded" and "downloaded" in the tracker request are
  11680. the size since the client sent the "started" event to the tracker.
  11681. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  11682. uploaded size to preDownloadedSize, preUploadedSize respectively.
  11683. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  11684. getSessionDownloadedSize(), getSessionUploadedSize().
  11685. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  11686. getSessionUploadedSize() instead of getDownloadedSize(),
  11687. getUploadedSize().
  11688. * src/PendingMessage.cc (processMessage): Do not send request message
  11689. if the peer is choking the client.
  11690. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  11691. less than interval.
  11692. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11693. * configure.in: Added gnutls support. Added several CPP macros.
  11694. * m4/openssl.m4: Added.
  11695. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  11696. readData(), peekData(). Added gnutls support.
  11697. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  11698. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  11699. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  11700. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  11701. Instead, added a check for whether setup method has executed
  11702. successfully.
  11703. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  11704. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  11705. * src/Makefile.am: Updated.
  11706. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  11707. using whether OpenSSL or gcrypt, depending on the result of configure
  11708. script.
  11709. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  11710. messageDigest.h.
  11711. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  11712. * src/PeerListenCommand.cc: Added log about port binded successfully.
  11713. Fixed memory leak.
  11714. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  11715. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  11716. Removed instantiation of TrackerInitCommand. Instead,
  11717. TrackerWatcherCommand is instantiated and pushed to the command queue.
  11718. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  11719. ENABLE_SSL.
  11720. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  11721. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  11722. If a piece is already acquired by another command, delete the request
  11723. slots for the piece.
  11724. * src/TrackerUpdateCommand.cc (execute):
  11725. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  11726. Added a check whether peer list is null.
  11727. Fixed the bug that causes sending completed event to the tracker
  11728. several times.
  11729. * src/TrackerInitCommand.cc (execute):
  11730. Fixed the bug that causes sending completed event to the tracker
  11731. several times.
  11732. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  11733. by using messageDigest.h.
  11734. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11735. * PeerConnection.cc: Replaced log message "keep-alive" with
  11736. "keep alive".
  11737. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  11738. localhost long time.
  11739. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  11740. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  11741. at most 100 failure entry from the list. If with duplicate = false,
  11742. MAX_PEER_LIST is not checked.
  11743. * PeerListenCommand.cc: Fixed the argument order of log message.
  11744. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11745. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  11746. Added warn().
  11747. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  11748. Implemented warn().
  11749. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  11750. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11751. * Request.h: Added AFTER_COMPLETED event.
  11752. * TorrentDownloadEngine.cc: Prints "Download complete" message
  11753. instead of downloaded size and progress(%) after download completes.
  11754. * PeerInteractionCommand.cc: After download completes, sends unchoke
  11755. message to the peer if it is interested in what localhost has
  11756. downloaded.
  11757. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  11758. destination instead of just renaming it.
  11759. * TorrentMan.cc: Added deleteTempFile().
  11760. * PeerAbstractCommand.cc: do not stop execution after download
  11761. completes. This makes localhost a seeder.
  11762. * Util.{h,cc}: Added fileCopy().
  11763. * PeerListenCommand.cc: do not stop execution after download completes.
  11764. This makes localhost a seeder.
  11765. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  11766. Added TorrentMan::deleteTempFile() to torrentHandler.
  11767. Initialized the variable dir as ".".
  11768. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  11769. Deleted renameSingleFile().
  11770. Added copySingleFile(), deleteTempFile().
  11771. * DownloadEngine.h: Added virtual function afterEachIteration().
  11772. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  11773. in onEndOfRun() to afterEachIteration().
  11774. In onEndOfRun(), changed if condition to check whether filenameFixed is
  11775. true.
  11776. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  11777. In rangedFileCopy(), added try-catch block to properly close file
  11778. descriptors.
  11779. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  11780. Added afterEachIteration(), isFilenameFixed().
  11781. * Peer.cc: Changed choking strategy.
  11782. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  11783. * TrackerInitCommand.cc: Send completed event only once.
  11784. * DownloadEngine.cc: Added a call to afterEachIteration().
  11785. * TrackerUpdateCommand.cc: Do not stop execution after download
  11786. completes.
  11787. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  11788. connect the peers at most MAX_PEER_UPDATE when a peer list is
  11789. received from a tracker.
  11790. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  11791. Decreased the number of failure peers to delete to 0(just comment out
  11792. the line).
  11793. * Release 0.3.1
  11794. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11795. * PeerInteractionCommand.cc: added a call to
  11796. TorrentMan::unadvertisePiece in Destructor.
  11797. * PeerInteractionCommand.cc: make have message sent immediately
  11798. if the size of pending message queue is zero.
  11799. * TorrentMan.cc: set the maximum size of peer list to 250.
  11800. * TorrentMan.h: changed the container type of Peers and UsedPieces
  11801. to deque.
  11802. * Util.cc: fixed rangedFileCopy.
  11803. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  11804. to Constructor. Also, moved digest cleanup to Destructor.
  11805. * MetaFileUtil.cc: fixed memory leak
  11806. * replaced std::vector with std::deque.
  11807. * AbstractCommand.cc: casted timeout value to long long int.
  11808. * ChunkedEncoding.cc: fixed memory leak.
  11809. * PeerInteractionCommand.cc: casted timeout value to long long int.
  11810. * SleepCommand.cc: casted timeout value to long long int.
  11811. * Data.cc: fixed memory leak.
  11812. * Data.cc: fixed toLLInt().
  11813. * BitfieldMan.cc: fixed memory leak.
  11814. * TorrentMan.cc: initialized storeDir to ".".
  11815. * TorrentMan.cc: fixed memory leak.
  11816. * TorrentMan.cc: corrected file paths of splitted files.
  11817. * PeerAbstractCommand.cc: casted timeout to long long int.
  11818. * main.cc: added delete(req) and delete(te->diskWriter).
  11819. * RequestSlot.cc: casted timeout value to long long int.
  11820. * Request.cc: fixed memory leak.
  11821. * PendingMessage.cc: make HAVE messages sent only when peer does not
  11822. have the piece.
  11823. * Peer.{h,cc}: added hasPiece(int index).
  11824. * main.cc: corrected addCommand.
  11825. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11826. * BitTorrent protocol support added.
  11827. * Release 0.3.0
  11828. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11829. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  11830. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11831. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  11832. decoding did not work properly.
  11833. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11834. * DownloadEngine.h: included sys/time.h
  11835. * DownloadEngine.cc: remove sys/time.h
  11836. * Makefile.am (SUBDIRS): Add intl.
  11837. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  11838. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11839. * main.cc: correct help message for --http-auth-scheme.
  11840. * main.cc: changed e-mail address for bug reports.
  11841. * ja.po: added japanese translation.
  11842. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11843. * SimpleLogger.cc: flush log file instead of stdout.
  11844. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11845. * main.cc: Fixed command-line option: max-tries
  11846. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  11847. does not equal to seg.sp.
  11848. * DownloadCommand.cc: If EOF is got from the server and the total size
  11849. of file is not zero, then throw DlRetryEx.
  11850. * main.cc: Set the minium value of min-segment-size to 1024.
  11851. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  11852. fails because of a regression since 0.2.0 release.
  11853. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11854. * HttpConnection.cc:
  11855. * common.h: defined the user agent name as macro
  11856. * DownloadEngine.{h, cc}:
  11857. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  11858. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  11859. * main.cc: Download complete/abort message is now generated by main.
  11860. * Makefile.am (SUBDIRS): Add m4.
  11861. (ACLOCAL_AMFLAGS): New variable.
  11862. (EXTRA_DIST): New variable.
  11863. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  11864. * gettext: added gettext functionality
  11865. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11866. * AbstractCommand.cc:
  11867. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  11868. unregister its cuid from SegmentMan.
  11869. * DownloadEngine.cc: .aria2 file was written when a downloading
  11870. failed with errors.
  11871. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  11872. Added "User-Agent" header to CONNECT proxy request.
  11873. Fixed "Proxy-Authorization" header. Now proxy authorization works
  11874. properly.
  11875. * Logger.h:
  11876. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  11877. * ChunkedEncoding.cc: Added #include directive for strings.h
  11878. * Release 0.2.1
  11879. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11880. * Util.{h,cc}: added startsWith().
  11881. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  11882. Util::endsWith().
  11883. * SocketCore.cc: struct addrinfo is now zero-initialized.
  11884. * common.h: added #include directive of limit.h.
  11885. * DownloadEngine.cc: added #include directive of sys/time.h and
  11886. algorithm.
  11887. * Exception.h: added #include directive of stdio.h.
  11888. * AbstractCommand.h: added #include directive of sys/time.h.
  11889. * DownloadCommand.h: added #include directive of sys/time.h.
  11890. * *.h: added #include directive of common.h to all base classes.
  11891. subclasses' one was removed.
  11892. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  11893. does not define these macros.
  11894. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11895. * Release 0.2.0
  11896. * main.cc:
  11897. * HttpInitiateConnectionCommand.{h,cc}:
  11898. * prefs.h:
  11899. * HttpConnection.{h,cc}: added --http-proxy-method option.
  11900. We can now use GET command in http proxy.
  11901. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11902. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  11903. that splits slowest segment of SegmentMan::commands vector.
  11904. This is the default split algorithm of aria2.
  11905. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  11906. that splits first segment of SegmentMan::commands vector.
  11907. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  11908. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  11909. * Segment.h:
  11910. * SegmentMan.cc: Added speed field to Segment.h
  11911. * main.cc: -s option now affects all URLs in command-line arguemtns.
  11912. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  11913. * message.h: Change file size related %d to %lld.
  11914. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11915. * FtpInitiateConnectionCommand.{h,cc}:
  11916. * FtpNegotiationCommand.{h,cc}:
  11917. * FtpDownloadCommand.{h,cc}:
  11918. * FtpConnection.{h,cc}: Added FTP support
  11919. * SimpleLogger.cc: Log message now includes time information.
  11920. * main.cc: The value of --http-auth-scheme option is chagned from
  11921. 'BASIC' to 'basic'
  11922. * main.cc: Added --timeout command-line option.
  11923. * main.cc: Added --min-segment-size command-line option.
  11924. * main.cc: Added --max-retries command-line option.
  11925. * prefs.h: option string constants are now defined in prefs.h
  11926. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11927. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  11928. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  11929. with version 0.1.0's one.
  11930. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11931. * configure.in: Added --enable-ssl option to configure script.
  11932. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  11933. cannot permit absoluteURI as Request-URI.
  11934. * HttpConnection.cc: Added Referer support.
  11935. * main.cc: Added referer command-line option.
  11936. * main.cc: Added rety-wait command-line option.
  11937. * Exception.h: Fixed formating bug in Exception::setMsg()
  11938. * SocketCore.{h,cc}:
  11939. * Socket.{h, cc}:
  11940. * Request.cc:
  11941. * InitiateConnectionCommandFactory.cc:
  11942. * HttpRequestCommand.cc: Added HTTPS support.
  11943. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  11944. for SocketCore.
  11945. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  11946. size is wrong
  11947. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  11948. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  11949. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  11950. * Release 0.1.0