jira-importer opened a new issue, #891:
URL: https://github.com/apache/httpcomponents-core/issues/891

   **[Gordon 
Mohr](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=gojomo)** 
opened 
**[HTTPCORE-4](https://issues.apache.org/jira/browse/HTTPCORE-4?redirect=false)**
 and commented
   
   It would be desirable to be able to specify limits in the parsing of HTTP 
messages, so that impractically large content (inadvertently or maliciously) 
fails in a manageable way, rather than triggering an OutOfMemoryError.
   
   One possibility would be to set limits on HTTP header line lengths and 
number of headers; once exceeded, an exception would be thrown.
   
   Another would be to set a byte-total cap on how much content can be 
considered to contribute to the headers; past that cap, an exception would be 
thrown.
   
   A possible wrinkle would be implementing compatible limits at other places 
mid- or late-message where unbounded numbers of headers could again appear 
(multipart; chunked; footers).
   
   See also:
   
   http://issues.apache.org/jira/browse/HTTPCORE-3?page=all
   
   http://issues.apache.org/bugzilla/show_bug.cgi?id=25468
   
   
   
   ---
   
   **Affects:** 4.0-alpha1
   
   **Issue Links:**
   - [HTTPCORE-3](https://issues.apache.org/jira/browse/HTTPCORE-3) HttpParser 
triggers unfriendly OutOfMemoryError on challenging input
    (_**"blocks"**_)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to