hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roland Weber <ossf...@dubioso.net>
Subject Re: isOpen returns true even when network interface disabled
Date Mon, 10 Dec 2007 17:24:27 GMT
Hello Paolo,

HttpConnection.isOpen just checks the boolean flag in the
connection object, it doesn't perform any calls to the
underlying socket. Try calling conn.closeIfStale() before
checking if the connection is open:

I can't tell whether that is reliable, though.

hope that helps,

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

View raw message