I'm using socketio-java--20101204, Firefox 3.6.12 and Chrome 8.0.552.215
The client sends the server a "test" message.
In response to that message the server does the following.
for (int i = 0; i < 10; i++) {
outbound.sendMessage(
SocketIOFrame.JSON_MESSAGE_TYPE,
JSON.toString(Util.map("say", "Hi " + i)));
}
Sometimes all ten msgs make it to the client.
Most of the time though, only 2 messages are sent to the client and the rest
aren't sent until the client sends a PING.
The long-polling GET request
(http://127.0.0.1:8080/socket.io/xhr-multipart/)
never disconnects or shows any issue.
I added timestamps to the existing server-side logging and this snippet
shows what I'm talking about.
http://paste.pocoo.org/show/301364/
The first 2 lines show 2 messages being sent back to the client, followed by
a 15 second delay, a client PING, and then the rest of the data being sent
to the client.
I'm not able to cause the same problem using the websocket transport in
Chrome.
Original issue reported on code.google.com by cgri...@gmail.com on 6 Dec 2010 at 3:54
Original issue reported on code.google.com by
cgri...@gmail.com
on 6 Dec 2010 at 3:54