[
https://issues.jboss.org/browse/JGRP-1598?page=com.atlassian.jira.plugin....
]
Bela Ban commented on JGRP-1598:
--------------------------------
The culprit was Draw: we use a BufferedOutputStream in DrawPanel.writeState(). This
creates an internal buffer, which is flushed every 4096 bytes. This results in a message
being sent to the state requester. *However* the buffer passed to the message is a
*reference* to the internal buffer in BufferedOutputStream, and since this is modified
again, the buffer in the message also changes !
The solution was to copy the buffer into the message in
STATE$StateOutputStream.sendMessage().
STATE: broken
-------------
Key: JGRP-1598
URL:
https://issues.jboss.org/browse/JGRP-1598
Project: JGroups
Issue Type: Bug
Reporter: Bela Ban
Assignee: Bela Ban
Fix For: 3.2.8, 3.3
When receiving state, STATE fails to correctly push the state to the receiver. There is
probably a bug in BlockingInputStream, as the state itself is transferred correctly.
STATE_TRANSFER and STATE_SOCK are not affected
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira