You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Sergey Stremin (JIRA)" <ji...@apache.org> on 2008/07/22 13:10:31 UTC
[jira] Created: (HTTPCORE-167) Stale connection checking doesn't
work if server correctly closes connection
Stale connection checking doesn't work if server correctly closes connection
----------------------------------------------------------------------------
Key: HTTPCORE-167
URL: https://issues.apache.org/jira/browse/HTTPCORE-167
Project: HttpComponents HttpCore
Issue Type: Bug
Components: HttpCore
Affects Versions: 4.0-beta2
Reporter: Sergey Stremin
Problem was found in the following setting: client makes request to server, server reports and closes connection 5 seconds after response.
Second request from client results in NoHttpResponseException (retries are disabled).
AbstractHttpClientConnection.isStale() only reports true when IOException is thrown by inbuffer.isDataAvailable(1). In this case no exception is thrown, but read() method returns -1 which goes unnoticed.
--
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
[jira] Resolved: (HTTPCORE-167) Stale connection checking doesn't
work if server correctly closes connection
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCORE-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski resolved HTTPCORE-167.
----------------------------------------
Resolution: Fixed
Patch checked in
Oleg
> Stale connection checking doesn't work if server correctly closes connection
> ----------------------------------------------------------------------------
>
> Key: HTTPCORE-167
> URL: https://issues.apache.org/jira/browse/HTTPCORE-167
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore
> Affects Versions: 4.0-beta2
> Reporter: Sergey Stremin
> Fix For: 4.0-beta3
>
> Attachments: stalecheck.patch
>
>
> Problem was found in the following setting: client makes request to server, server reports and closes connection 5 seconds after response.
> Second request from client results in NoHttpResponseException (retries are disabled).
> AbstractHttpClientConnection.isStale() only reports true when IOException is thrown by inbuffer.isDataAvailable(1). In this case no exception is thrown, but read() method returns -1 which goes unnoticed.
--
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
[jira] Updated: (HTTPCORE-167) Stale connection checking doesn't
work if server correctly closes connection
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCORE-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPCORE-167:
---------------------------------------
Attachment: stalecheck.patch
I think I found an acceptable solution. Please review.
Sergey, could you please re-test your application against the trunk with this patch applied and let me know if that fixes the problem for you?
Oleg
> Stale connection checking doesn't work if server correctly closes connection
> ----------------------------------------------------------------------------
>
> Key: HTTPCORE-167
> URL: https://issues.apache.org/jira/browse/HTTPCORE-167
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore
> Affects Versions: 4.0-beta2
> Reporter: Sergey Stremin
> Fix For: 4.0-beta3
>
> Attachments: stalecheck.patch
>
>
> Problem was found in the following setting: client makes request to server, server reports and closes connection 5 seconds after response.
> Second request from client results in NoHttpResponseException (retries are disabled).
> AbstractHttpClientConnection.isStale() only reports true when IOException is thrown by inbuffer.isDataAvailable(1). In this case no exception is thrown, but read() method returns -1 which goes unnoticed.
--
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
[jira] Commented: (HTTPCORE-167) Stale connection checking doesn't
work if server correctly closes connection
Posted by "Sergey Stremin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCORE-167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615616#action_12615616 ]
Sergey Stremin commented on HTTPCORE-167:
-----------------------------------------
Oleg, patch works fine, thank you!
> Stale connection checking doesn't work if server correctly closes connection
> ----------------------------------------------------------------------------
>
> Key: HTTPCORE-167
> URL: https://issues.apache.org/jira/browse/HTTPCORE-167
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore
> Affects Versions: 4.0-beta2
> Reporter: Sergey Stremin
> Fix For: 4.0-beta3
>
> Attachments: stalecheck.patch
>
>
> Problem was found in the following setting: client makes request to server, server reports and closes connection 5 seconds after response.
> Second request from client results in NoHttpResponseException (retries are disabled).
> AbstractHttpClientConnection.isStale() only reports true when IOException is thrown by inbuffer.isDataAvailable(1). In this case no exception is thrown, but read() method returns -1 which goes unnoticed.
--
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
[jira] Updated: (HTTPCORE-167) Stale connection checking doesn't
work if server correctly closes connection
Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HTTPCORE-167?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Oleg Kalnichevski updated HTTPCORE-167:
---------------------------------------
Fix Version/s: 4.0-beta3
This looks a nasty one, which will be difficult to fix without breaking the existing API. I'll be working on a fix
Oleg
> Stale connection checking doesn't work if server correctly closes connection
> ----------------------------------------------------------------------------
>
> Key: HTTPCORE-167
> URL: https://issues.apache.org/jira/browse/HTTPCORE-167
> Project: HttpComponents HttpCore
> Issue Type: Bug
> Components: HttpCore
> Affects Versions: 4.0-beta2
> Reporter: Sergey Stremin
> Fix For: 4.0-beta3
>
>
> Problem was found in the following setting: client makes request to server, server reports and closes connection 5 seconds after response.
> Second request from client results in NoHttpResponseException (retries are disabled).
> AbstractHttpClientConnection.isStale() only reports true when IOException is thrown by inbuffer.isDataAvailable(1). In this case no exception is thrown, but read() method returns -1 which goes unnoticed.
--
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