hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HTTPCLIENT-763) AbstractClientConnAdapter#abortConnection() does not release the connection if called from the main execution thread while there is no blocking I/O operation
Date Mon, 21 Apr 2008 19:07:22 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Oleg Kalnichevski resolved HTTPCLIENT-763.
------------------------------------------

    Resolution: Fixed

Fixed in SVN trunk.

Oleg

> AbstractClientConnAdapter#abortConnection() does not release the connection if called
from the main execution thread while there is no blocking I/O operation 
> --------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-763
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-763
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpConn
>    Affects Versions: 4.0 Alpha 3
>            Reporter: Oleg Kalnichevski
>             Fix For: 4.0 Alpha 4
>
>
> #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 #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 #abortConnection() is called from the main execution thread while there is no blocking
I/O operation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


Mime
View raw message