Alex Cruise wrote:
Oleg Kalnichevski wrote:
Do not use absolute URLs when explicitly specifying an instance of
HostConfiguration. An absolute URL will always override the
HostConfiguration settings.
OK, thanks, my TrustManager is working now with 3.0. I still have the
CLOSE_WAIT problem though. In your opinion, should
connectionManager.releaseConnection() eventually result in the closure
of the Socket?
Alex,
The sole purpose of this method is to release the connection used by the
method back to the connection manager, hence the name. It is entirely up
to the connection manager to decide whether to keep the connection alive
or drop it.
Both standard connection managers (the multithreaded one and simple one)
always keep connections alive whenever possible. If you do not want
connections kept open indefinitely, set up an idle connection handler to
enforce an connection closure policy of a sort:
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/util/IdleConnectionHandler.html
http://jakarta.apache.org/commons/httpclient/apidocs/org/apache/commons/httpclient/util/IdleConnectionTimeoutThread.html
Hope this helps
Oleg
-0xe1a
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]