mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-20 17:05:51 +00:00
ARTEMIS-2706 Discounting Transfer payload size
This commit is contained in:
parent
17d659052d
commit
e7a437d999
@ -838,7 +838,8 @@ public class ProtonServerSenderContext extends ProtonInitializable implements Pr
|
||||
}
|
||||
void deliver() {
|
||||
|
||||
int frameSize = protonSession.session.getConnection().getTransport().getOutboundFrameSizeLimit();
|
||||
// This is discounting some bytes due to Transfer payload
|
||||
int frameSize = protonSession.session.getConnection().getTransport().getOutboundFrameSizeLimit() - 50 - (delivery.getTag() != null ? delivery.getTag().length : 0);
|
||||
|
||||
// Let the Message decide how to present the message bytes
|
||||
LargeBodyReader context = message.getLargeBodyReader();
|
||||
|
Loading…
x
Reference in New Issue
Block a user