[ 
https://issues.apache.org/jira/browse/HTTPCLIENT-1666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Oleg Kalnichevski resolved HTTPCLIENT-1666.
-------------------------------------------
    Resolution: Won't Fix

HTTP specification does not impose any restrictions on length of content entity 
enclosed in HTTP messages. It is a responsibility of the application layer to 
ensure that content stream is valid. One can abort request execution from an 
observer thread after a particular deadline or close the response after 
exceeding a particular max length limit.

Oleg 

> 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