hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r650225 - /httpcomponents/httpclient/trunk/RELEASE_NOTES.txt
Date Mon, 21 Apr 2008 19:14:25 GMT
Author: olegk
Date: Mon Apr 21 12:14:23 2008
New Revision: 650225

URL: http://svn.apache.org/viewvc?rev=650225&view=rev
Log:
HTTPCLIENT-763: AbstractClientConnAdapter#abortConnection() does not release the connection
if called from the main execution thread while there is no blocking I/O operation.

AbstractClientConnAdapter#abortConnection() is usually expected to be called from a helper
thread in order to unblock the main execution thread blocked in an I/O operation. It may be
unsafe to call AbstractClientConnAdapter#releaseConnection() from the helper thread, so we
have to rely on an IOException thrown by the closed socket on the main thread to trigger the
release of the connection back to the connection manager. However, if this method is called
from the main execution thread it should be safe to release the connection immediately. Besides,
this also helps ensure the connection gets released back to the manager if AbstractClientConnAdapter#abortConnection()
is called from the main execution thread while there is no blocking I/O operation.

Modified:
    httpcomponents/httpclient/trunk/RELEASE_NOTES.txt

Modified: httpcomponents/httpclient/trunk/RELEASE_NOTES.txt
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/RELEASE_NOTES.txt?rev=650225&r1=650224&r2=650225&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/RELEASE_NOTES.txt (original)
+++ httpcomponents/httpclient/trunk/RELEASE_NOTES.txt Mon Apr 21 12:14:23 2008
@@ -1,6 +1,11 @@
 Changes since 4.0 Alpha 3
 -------------------
 
+* [HTTPCLIENT-763] Fixed problem with AbstractClientConnAdapter#abortConnection() 
+  not releasing the connection if called from the main execution thread while 
+  there is no blocking I/O operation.
+  Contributed by Oleg Kalnichevski <olegk at apache.org>
+
 * [HTTPCLIENT-652] Added optional state attribute to managed client connections. 
   This enables connection managers to correctly handle stateful connections.
   Contributed by Oleg Kalnichevski <olegk at apache.org>



Mime
View raw message