hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Becke <mbe...@gmail.com>
Subject Re: ExecutorService, Future, and HttpClient with a MultiThreadedHttpConnectionManager
Date Tue, 05 Apr 2005 02:42:09 GMT
> You should not do that. The API Docs make no promise that this is
> allowed. Especially in a mulithreaded environment this could put a
> connection back to the pool although it is already used by another thead
> again! The consequences would be disasterous. We should address this
> issue in the 4.0 API actually to make a "double free" not suck.

Actually there is no problem in releasing a connection more than once.
 The secondary, tertiary, etc, calls to releaseConnection will get
ignored.

Mike

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


Mime
View raw message