h-inazumi / socketio-java

Automatically exported from code.google.com/p/socketio-java
0 stars 0 forks source link

Message batching on Firefox #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by Tad.Glines@gmail.com on 8 Dec 2010 at 9:37

GoogleCodeExporter commented 9 years ago
This issue "should" be fixed by commit "27:cd02572742a3".

Original comment by Tad.Glines@gmail.com on 15 Jan 2011 at 6:25