[ https://issues.apache.org/jira/browse/ARTEMIS-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15118080#comment-15118080 ]
ASF subversion and git services commented on ARTEMIS-362: --------------------------------------------------------- Commit cc4d24cfbb0024af73592e2ed3e76e9d5add9494 in activemq-artemis's branch refs/heads/master from [~lachezar] [ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=cc4d24c ] ARTEMIS-362 Broadcast only filled buffer content. When publishing server connectors to other cluster members the whole buffer is sent. This fixes ARTEMIS-362 by extracting the filled part of the buffer for broadcasting. Added test case that checks that packet size does not exceed 1500 bytes with one connector. > BroadcastGroupImpl sends datagrams big datagrams full of zero bytes > ------------------------------------------------------------------- > > Key: ARTEMIS-362 > URL: https://issues.apache.org/jira/browse/ARTEMIS-362 > Project: ActiveMQ Artemis > Issue Type: Bug > Affects Versions: 1.0.0, 1.1.0, 1.2.0, 1.3.0 > Environment: OS: Linux > JVM: Oracle or OpenJDK, 1.7 or 1.8 > Reporter: Lachezar Dobrev > Labels: newbie, patch, test > Original Estimate: 1h > Remaining Estimate: 1h > > The BroadcastGroupImpl uses improper buffer handling to generate packages for > broadcasting to a cluster. This results in sending 4096 byte packages (the > size of the buffer) full of zero bytes with only about 250-300 bytes actual > payload. > This incurs needless weight on any underlying network equipment. > This also may result in loss of service as large packages may be silently > discarded. -- This message was sent by Atlassian JIRA (v6.3.4#6332)