[jboss-jira] [JBoss JIRA] Updated: (JGRP-1211) endless loop at SpeedTest
Danny Lade (JIRA)
jira-events at lists.jboss.org
Tue Jun 8 13:10:38 EDT 2010
[ https://jira.jboss.org/browse/JGRP-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Danny Lade updated JGRP-1211:
-----------------------------
Workaround Description:
The solution is rather simple, at subclass Reciever add:
run {
...
if(jg) {
obj=channel.receive(0);
if(obj instanceof Message) {
byte[] buffer = ((Message)obj).getBuffer();
in=new DataInputStream(new ByteArrayInputStream(buffer));
}
else {
System.out.println("received non-msg: " + obj.getClass());
continue;
}
}
else {
sock.receive(packet);
in=new DataInputStream(new ByteArrayInputStream(buf));
}
number=in.readInt();
matrix[number][1]=1;
if (num_received != number) {
System.err.println(" lost packet "+ number);
num_received = number;
}
...
num_received++;
was:
The solution is rather simple, at subclass Reciever add:
run {
...
if (!jg && num_received != number) {
System.err.println(" lost packet "+ number);
num_received = number;
}
...
num_received++;
> endless loop at SpeedTest
> -------------------------
>
> Key: JGRP-1211
> URL: https://jira.jboss.org/browse/JGRP-1211
> Project: JGroups
> Issue Type: Bug
> Affects Versions: 2.10
> Environment: Windows 7
> Reporter: Danny Lade
> Assignee: Bela Ban
> Priority: Minor
> Original Estimate: 5 minutes
> Remaining Estimate: 5 minutes
>
> See at org.jgroups.tests.SpeedTest:
> If pakets get lost - without using JGroups but pure sockets - the SpeedTest never ends.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list