You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Colm O hEigeartaigh (Jira)" <ji...@apache.org> on 2020/08/31 09:13:00 UTC

[jira] [Created] (AMQ-8029) Place a bound on the data read in MessageServletSupport

Colm O hEigeartaigh created AMQ-8029:
----------------------------------------

             Summary: Place a bound on the data read in MessageServletSupport
                 Key: AMQ-8029
                 URL: https://issues.apache.org/jira/browse/AMQ-8029
             Project: ActiveMQ
          Issue Type: Task
            Reporter: Colm O hEigeartaigh
            Assignee: Colm O hEigeartaigh
             Fix For: 5.17.0, 5.16.1, 5.15.14


This task is to place a bound on the amount of data read in MessageServletSupport, as otherwise BufferedReader.readLine() will block until all data is read, potentially leading to a java.lang.OutOfMemoryError: Java heap space error.

 

I introduced a dependency on commons-io's BoundedInputStream for this, with a default (configurable) bound of 100000 bytes.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)