hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magnus Jason (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1666) HTTPClient hangs on bad data from server.
Date Wed, 15 Jul 2015 02:12:04 GMT
Magnus Jason created HTTPCLIENT-1666:

             Summary: HTTPClient hangs on bad data from server.
                 Key: HTTPCLIENT-1666
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1666
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.5
         Environment: Java 8 / Linux
            Reporter: Magnus Jason

HttpClient wont give up on a request despite the server sending bad data and connection/connectionrequest/socket
timeouts being specified.

If a server periodically sends data like a newline to httpclient, then httpclient will just
continue to block.

Code demonstrating the issue:

There should be a way of setting a timeout for how long httpclient should attempt to make
a request before giving up.

This message was sent by Atlassian JIRA

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

View raw message