Closed glassfishrobot closed 13 years ago
@glassfishrobot Commented Reported by bbissett
@glassfishrobot Commented bbissett said: Fixed in revision 1544.
@glassfishrobot Commented Issue-Links: blocks GLASSFISH-16108
@glassfishrobot Commented Was assigned to bbissett
@glassfishrobot Commented This issue was imported from java.net JIRA SHOAL-115
@glassfishrobot Commented Marked as fixed on Wednesday, March 2nd 2011, 11:39:27 pm
In the thread's run method, the same byte buffer is being used for each DatagramPacket created. So the data returned from receive method can contain extra text, which throws of the set of host strings. So hosts will show up more than once in the output of the validate multicast tool.
Simple fix is just to create a new byte array for each packet (or clear the old one). Without this fix, the tool still gives accurate results – it can just include extra copies of previous entries. I have a GF issue filed for integration, and this one for the actual fix.
Affected Versions
[current]