[ 
https://issues.apache.org/jira/browse/AMQ-8029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236592#comment-17236592
 ] 

ASF subversion and git services commented on AMQ-8029:
------------------------------------------------------

Commit f91e81bf4cc32dd57cb1f4cb4d21aee4f8e6f0c5 in activemq's branch 
refs/heads/activemq-5.16.x from Colm O hEigeartaigh
[ https://gitbox.apache.org/repos/asf?p=activemq.git;h=f91e81b ]

AMQ-8029 - Place a bound on the data read in MessageServletSupport

(cherry picked from commit 66cb8d4cfb501ab5a76fa0a5ebb06d0eafdeec07)


> 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
>          Components: Transport
>            Reporter: Colm O hEigeartaigh
>            Assignee: Jean-Baptiste Onofré
>            Priority: Major
>             Fix For: 5.17.0, 5.16.1, 5.15.14
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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)

Reply via email to