You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Magnus Jason (JIRA)" <ji...@apache.org> on 2015/07/15 04:12:04 UTC

[jira] [Created] (HTTPCLIENT-1666) HTTPClient hangs on bad data from server.

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:
https://gist.github.com/magJ/f4cfc650658ea29b1b26

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
(v6.3.4#6332)

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