clebertsuconic commented on a change in pull request #3079: ARTEMIS-2706 Use
FrameSize to decide when to flush large messages
URL: https://github.com/apache/activemq-artemis/pull/3079#discussion_r408140958
##########
File path:
artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/proton/ProtonServerSenderContext.java
##########
@@ -862,7 +862,9 @@ void deliver() {
sender.send(buf.array(), 0, size);
- connection.instantFlush();
+ if (protonSession.session.getOutgoingBytes() >=
protonSession.session.getConnection().getTransport().getOutboundFrameSizeLimit())
{
+ connection.instantFlush();
+ }
Review comment:
I wanted to avoid a bigger buffer. I will use the frame size as the buffer
size...
Making an update
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services