On Fri, 2010-12-03 at 22:28 +0530, Supun Kamburugamuva wrote: > On Fri, Dec 3, 2010 at 9:56 PM, Oleg Kalnichevski <[email protected]> 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: [email protected] For additional commands, e-mail: [email protected]
