[
https://issues.apache.org/jira/browse/ARTEMIS-3604?focusedWorklogId=693828&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-693828
]
ASF GitHub Bot logged work on ARTEMIS-3604:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 10/Dec/21 10:13
Start Date: 10/Dec/21 10:13
Worklog Time Spent: 10m
Work Description: gtully commented on a change in pull request #3876:
URL: https://github.com/apache/activemq-artemis/pull/3876#discussion_r766545424
##########
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 seems the only right option to me, if the actor can be used without
an acceptor, then maybe pass in the maxPendingSize rather than the acceptorUsed.
--
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: 693828)
Time Spent: 0.5h (was: 20m)
> 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: 0.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)