couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick North <nort...@gmail.com>
Subject Re: Bench marking a simple 10k write
Date Fri, 04 Apr 2014 09:37:22 GMT
On second thoughts, while my previous claim is true, I'm not sure what
happens when you use WebRequest.Create for each write, as in the example.
So maybe keep-alive is not enabled after all.

Nick


On 4 April 2014 10:35, Nick North <north.n@gmail.com> wrote:

> The HttpWebRequest class has a KeepAlive
> <http://msdn.microsoft.com/en-us/library/system.net.httpwebrequest.keepalive.aspx>property
> that defaults to true under HTTP 1.1, so it should be enabled in the OP's
> example.
>
> Nick
>
>
> On 4 April 2014 10:24, Stanley Iriele <siriele2x3@gmail.com> wrote:
>
>> On Fri, Apr 4, 2014 at 1:28 AM, Benoit Chesneau <bchesneau@gmail.com>
>> wrote:
>>
>> > On Fri, Apr 4, 2014 at 10:25 AM, Will Holley <willholley@gmail.com>
>> wrote:
>> >
>> > > .NET should set keep-alive by default.
>> > >
>> >
>>
>> I have a hard time believing that because its the library you're using not
>> NET itself that decides that. Also If the test is truly being torn down
>> rerun I don't see how it could use keep-alives...that would invalidate the
>> test wouldn't it? being that the 1st test makes a connection and
>> subsequent
>> tests reuse the same connection
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message