Thanks for you quick response.
It will pause the paser if I the following code as client:
for (int i = 0; i < 50000; i++) {
try {
ByteBuffer buffer = ByteBuffer.allocate(16);
buffer.put(new byte[]{0x02});
buffer.putLong(System.currentTimeMillis());
buffer.put(new byte[]{0x03});
buffer.flip();
connectorHandler.write(buffer, false);
Thread.currentThread().sleep(50L);
if (i%10 == 0) System.out.println("i = " + i);
} catch (Exception e) {
System.out.println("Exception in execute ... " + e);
e.printStackTrace(System.out);
break;
}
}
It seems that some byte value will pause the parser.
Attached my client code:
http://www.nabble.com/file/p18776606/MyClient.java MyClient.java
--
View this message in context: http://www.nabble.com/java.io.IOException%3A-An-existing-connection-was-forcibly-closed-by-the-remote-host-tp18739932p18776606.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.