hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Stremin (JIRA)" <j...@apache.org>
Subject [jira] Created: (HTTPCORE-167) Stale connection checking doesn't work if server correctly closes connection
Date Tue, 22 Jul 2008 11:10:31 GMT
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


Mime
View raw message