hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: When a client closes the connection following exception is thrown
Date Fri, 03 Dec 2010 17:12:25 GMT
On Fri, 2010-12-03 at 22:28 +0530, Supun Kamburugamuva wrote:
> On Fri, Dec 3, 2010 at 9:56 PM, Oleg Kalnichevski <olegk@apache.org> wrote:
> 
> > On Fri, 2010-12-03 at 21:40 +0530, Supun Kamburugamuva wrote:
> > > It is HttpConnection#shutdown(). But the problem is this exception
> > happens
> > > before I call this method.
> > >
> > > Thanks,
> > > Supun..
> > >
> >
> > In this case one should shut down the connection immediately after
> > catching the I/O exception.
> >
> > Hi Oleg,
> 
> Thanks for the quick response.
> 
> So is this the expected behavior in case a client closes a connection in the
> middle of a message read?
> 

One cannot assume the connection to be in a consistent state in case of
an I/O exception of any kind. So, connection shutdown seems to be the
only option in such case.

Hope this helps

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message