[xSocket-develop] Simple Server Sometimes Seeing Data Corruption on Client Side
Status: Inactive
Brought to you by:
grro
|
From: Rod M. <rod...@gm...> - 2008-05-03 07:08:49
|
I've got a simple server that sends/receives null terminated Strings to/from
a flash based client.
Flush mode is async.
I'm using the 2.0 final jar.
I'm seeing times when the client is receiving mangled data. The length of
the data is correct, just some of the contents are wrong. This does not
happen often and is hard to reproduce. When it does happen other clients
receive the correct data.
I write out the messages with:
String END_OF_MESSAGE_DELIM = new String(new char[] { 0 });
connection.write(message + END_OF_MESSAGE_DELIM);
connection.flush();
It could be either client or server. Ideas on how to disqualify the server?
Thanks,
Rod
|