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

auto disconnected after update to 1.7.22

Open jptangchina opened this issue 4 years ago • 12 comments

I'm not sure if this is a bug. With server 1.7.22, and socket.io-client 2.5.0, the server auto disconnect with client because of ping timeout.(this works fine with server version 1.7.21)

Also this can be reproduce on your demo project: image

BTW: It says that 1.7.22 supports for the v4 ping/pong mechanism, is that means I can use socket.io-client 4.x? I'v tried so but I got this error: It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)

jptangchina avatar Sep 29 '22 10:09 jptangchina

I met the same problem.

haiyiya avatar Oct 05 '22 10:10 haiyiya

That confused me as well, I also thought this library only supports socket.io v2. It seems like 1.7.22 broke the ping/pong support for 2.5.0 (socket.io-client) and that is causing the reconnect. With version 1.7.20 and 1.7.21 I get Unknown transport for request /socket.io/?EIO=3&transport=websocket on the server side. The combination of 1.7.19 (netty-socketio) and 2.5.0 (socket.io-client) is working fine for me.

moritzhabegger avatar Oct 06 '22 08:10 moritzhabegger

me too, will resovle this problem in v1.7.23 ?

kang0821 avatar Dec 08 '22 06:12 kang0821

@moritzhabegger Me too, But after I rolled back to 1.7.19 everything works fine.

JiangYongKang avatar Dec 09 '22 09:12 JiangYongKang

me too, rolled back to 1.7.21.....will be normal

yujuncai avatar Jan 17 '23 06:01 yujuncai

Does anyone know why they implemented v4 ping/pong support when it says in the readme that they support v2 clients?

DavidAttar avatar Jan 31 '23 18:01 DavidAttar

Can you try version attached?

netty-socketio-1.7.23-SNAPSHOT.jar.zip

mrniko avatar Feb 01 '23 06:02 mrniko

image image I just replaced jar to 1.7.23......A lot of netty's class are missing

yujuncai avatar Feb 01 '23 08:02 yujuncai

you need to copy netty libs from pom.xml since dep defined as a file.

mrniko avatar Feb 01 '23 10:02 mrniko

eeeee.......I replaced jar to 1.7.23....auto disconnected never appeared again

yujuncai avatar Feb 02 '23 02:02 yujuncai

Fixed! Thanks for testing

mrniko avatar Feb 02 '23 05:02 mrniko

1.7.23 version has been released

mrniko avatar Feb 02 '23 05:02 mrniko