W3C home > Mailing lists > Public > www-lib@w3.org > April to June 1998

Re: confirmation on ECONNRESET

From: Henrik Frystyk Nielsen <frystyk@w3.org>
Date: Wed, 27 May 1998 17:58:37 -0400
Message-Id: <3.0.5.32.19980527175837.0098bb00@localhost>
To: Scott Cooper <scott@iguana.co.nz>, www-lib@w3.org
At 15:52 5/27/98 +1200, Scott Cooper wrote:
>hello, i have a quick question:
>
>what do you do when you get a ECONNRESET when reading from your http server
>socket?
>
>if the correct answer is 'kill the request, close the socket, forget about
>it' then i'll be happy.

It depends - if pipelining requests then libwww recovers the connection.
Otherwise, it closes the connection. You can find the descriptions in the
implementations of

	http://www.w3.org/Library/src/HTReader.html
	http://www.w3.org/Library/src/HTWriter.html

>but why would 5% of my requests suffer this fate during header reading, but
>less than .5% during the (much longer?) post reading phase (for the simple
>case of an http 1.0 server reading headers, thinking about it, then sending
>data).

I am not quite sure what you mean by this - do you have some traces?

Henrik
--
Henrik Frystyk Nielsen,
World Wide Web Consortium
http://www.w3.org/People/Frystyk
Received on Wednesday, 27 May 1998 17:58:25 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:27 GMT