hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: DefaultHttpClientConnection.isOpen();
Date Wed, 18 Jun 2008 22:02:43 GMT
On Wed, 2008-06-18 at 22:58 +0200, Quintin Beukes wrote:
> Hey,
> Is it possible for this method (DefaultHttpClientConnection.isOpen())
> to return "true" when the socket is closed.

If you are not accessing the same connection instance from multiple
threads, I do not see how this could happen.

Please note only HttpConnection#shutdown method is expected to be
threading safe.

This sounds like a concurrency issue to me


> I have a case where netstat doesn't return ANY open connections to the
> target server, but isOpen returns true.
> It's not very easy to reproduce my problem, but I've been able to do
> it whenever needed by using high concurrency. I'm not sure if isOpen()
> ever returns true when there is no socket when it seems like my
> problem isn't there. I've only checked when my problem is occurring,
> and this seems very odd.
> Thanks

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

View raw message