geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sangjin Lee (JIRA)" <j...@apache.org>
Subject [jira] Closed: (GERONIMO-3917) response future does not complete if a connection is closed before the response is received
Date Fri, 21 Mar 2008 14:59:29 GMT

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

Sangjin Lee closed GERONIMO-3917.
---------------------------------


> response future does not complete if a connection is closed before the response is received
> -------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-3917
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-3917
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: AsyncHttpClient
>    Affects Versions: 1.x
>            Reporter: Sangjin Lee
>            Assignee: Rick McGuire
>         Attachments: GERONIMO-3917.patch
>
>
> If for *any reason* the server closes a connection without sending the response, calls
that wait on ResponseFuture.get() for the result will not return.
> The key issue is the way HttpIoHandler.sessionClosed() works.  The sessionClosed() method
is invoked when a session is closed.  Currently the only major things it does are to call
callback's onClosed() method and remove the timeout alarm.  If the message was not received
or an exception did not occur, however, the future remains not complete.  Therefore, any caller
that waits on Future.get() will never get unblocked.
> The sessionClosed() method needs to detect a situation where the connection is *prematurely*
closed while the response has not been received and cause an exception and complete the future.
> This is a pretty critical issue.

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


Mime
View raw message