mrniko / netty-socketio

Socket.IO server implemented on Java. Realtime java framework
Apache License 2.0
6.82k stars 1.65k forks source link

Socket.io Connections hang in all the the tabs browser #127

Closed francescoagati closed 10 years ago

francescoagati commented 10 years ago

Sometimes socket.io don't open the connection in all the tabs of the same browser. The websocket is open, but there aren't messages in the communication layer of socket.io. And this happens in all the tabs of the same browser.

here the screenshots of chrome inspector:

image

image

Thanks

mrniko commented 10 years ago

all the tabs of the same browser

How much tabs did you open?

mrniko commented 10 years ago

do you take in account default limit of simultaneous persistent connections per server/proxy in browser?

francescoagati commented 10 years ago

2 tabs. It happens also if i close all the tabs and repoen it. I must wait some minutes first that the socket.io connection can be estabilished, and this in all the pages
of the browser that try to open a socketio connection with the netty server.

The netty server is behind nginx. I try to use also the 'force new connection' params but without effects.

francescoagati commented 10 years ago

I have this problem with a really low traffic (4 or 5 users connected)

mrniko commented 10 years ago

The netty server is behind nginx.

I think the problem with nginx configuration.

francescoagati commented 10 years ago

Thanks. Is possible that nginx try to reuse the same persistent connection for all the pages of the browser?

mrniko commented 10 years ago

may be, i don't know. it depends on your nginx config

francescoagati commented 10 years ago

Thanks for the answers. i try to investigate nginx