netty-socketio icon indicating copy to clipboard operation
netty-socketio copied to clipboard

Session is not registered. Closing connection

Open jimmyathf opened this issue 8 years ago • 5 comments

While doing performance Test, I got error like " [ntLoopGroup-3-3] c.c.socketio.transport.PollingTransport : 4982e004-8d8b-479c-8fdd-e1c918668d23 is not registered. Closing connection ".And only 2000 clients are connetced. If I set UpgradeTimeOut with 180000, no such error will happen even 10000 clients are connected. Seems got IO stress with PING and PONG. Any suggestions will be appreciated.

jimmyathf avatar Jul 04 '17 06:07 jimmyathf

I got the same error, but increasing the value of UpgradeTimeOut didn't work.

lovebing avatar Feb 28 '18 03:02 lovebing

Multiple socketio server, do not set up a connection with a polling, specify a websocket transport,Because the polling HTTP request will be requested to a different machine, causing sid is not registered.

song2song avatar Jan 07 '20 05:01 song2song

Multiple socketio server, do not set up a connection with a polling, specify a websocket transport,Because the polling HTTP request will be requested to a different machine, causing sid is not registered.

you are right, front end socketio js set websocket only , can solve this problem

transports:['websocket']

pigercc avatar Sep 18 '20 10:09 pigercc

@song2song thanks a lot, polling and round robin LB is not a good idea :D

SKOTYK avatar Jul 14 '21 07:07 SKOTYK

Multiple socketio server, do not set up a connection with a polling, specify a websocket transport,Because the polling HTTP request will be requested to a different machine, causing sid is not registered.

Why polling request will be requested to a different machine?

oryjk avatar Nov 08 '21 04:11 oryjk