[ 
https://issues.apache.org/jira/browse/ARTEMIS-3604?focusedWorklogId=693884&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-693884
 ]

ASF GitHub Bot logged work on ARTEMIS-3604:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 10/Dec/21 11:56
            Start Date: 10/Dec/21 11:56
    Worklog Time Spent: 10m 
      Work Description: clebertsuconic commented on a change in pull request 
#3876:
URL: https://github.com/apache/activemq-artemis/pull/3876#discussion_r766621379



##########
File path: 
artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/OpenWireConnection.java
##########
@@ -213,6 +230,15 @@ public OpenWireConnection(Connection connection,
       this.useKeepAlive = openWireProtocolManager.isUseKeepAlive();
       this.maxInactivityDuration = 
openWireProtocolManager.getMaxInactivityDuration();
       this.transportConnection.setProtocolConnection(this);
+      if (openWireProtocolManager.getMaxActorSize() > 0) {
+         this.maxActorSize = openWireProtocolManager.getMaxActorSize();
+      } else {
+         if (acceptorUsed == null) {
+            this.maxActorSize = 
TransportConstants.DEFAULT_TCP_RECEIVEBUFFER_SIZE;
+         } else {
+            this.maxActorSize = ((NettyAcceptor) 
acceptorUsed).getTcpReceiveBufferSize();

Review comment:
       this will be null on tests only...




-- 
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]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 693884)
    Time Spent: 1h 10m  (was: 1h)

> Async sends could overflow server with messages in openwire
> -----------------------------------------------------------
>
>                 Key: ARTEMIS-3604
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-3604
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>            Reporter: Clebert Suconic
>            Assignee: Clebert Suconic
>            Priority: Major
>             Fix For: 2.20.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to