You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Sergio Berna <sb...@extendnow.com> on 2003/03/21 14:13:23 UTC

connections on pool close unexpectedly

Hello,

I am having problems with HttpClient 2.0-alpha3 when i try to pool it.

After the first call to stablish a connection against a server i usually can
work with the client for 1 minue requetsing new pages. But after that minute
i think the connecion is been closed somehow because any new attempt to
retrieve any file at the host is rejcted instantly with the message
BrokenPipe.

Afetr logging it the problem arises just after the first attemt to write the
HTTP header for the request so i suppose it is closed somehow either by the
client or the server and the client always attemps to write to the same
stream.

Thanks for your time.




Re: connections on pool close unexpectedly

Posted by Oleg Kalnichevski <o....@dplanet.ch>.
Sergio

I regret that your message has been left unanswered for so long. The
problem is that out of 4 committers I seem to be the only one currently
monitoring this forum on a regular basis, and I just happened to not be
using connection pooling much. So, I am not the best source to turn to
in this regard. You'll have to wait until Mike gets back in order to get
a more informed opinion on your problem. 

However, that little can can tell:

Both HTTP server and HTTP client may close connection at any time
according to the HTTP spec. I suppose that the HTTP server you are using
may be dripping connections after a minute of inactivity. This is a
perfectly standard compliant behavior. I am afraid you might have to
live with it and simply try the request after having caught a retriable
exception 

I would help you provided us with more detailed information on the setup
you are using

Cheers

Oleg
  

On Fri, 2003-03-21 at 14:13, Sergio Berna wrote:
> Hello,
> 
> I am having problems with HttpClient 2.0-alpha3 when i try to pool it.
> 
> After the first call to stablish a connection against a server i usually can
> work with the client for 1 minue requetsing new pages. But after that minute
> i think the connecion is been closed somehow because any new attempt to
> retrieve any file at the host is rejcted instantly with the message
> BrokenPipe.
> 
> Afetr logging it the problem arises just after the first attemt to write the
> HTTP header for the request so i suppose it is closed somehow either by the
> client or the server and the client always attemps to write to the same
> stream.
> 
> Thanks for your time.
> 
> 
>