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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to