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]