You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My server is written in JavaScript with default parameter (25s pingInterval 5s pingTimeout), this line of code would make all read timeout 5s after receiving pong. This makes my client reconnect every 30s.
go-engine.io/client.go
Line 120 in 798118f
According to the JavaScript documentation,
a client may have to wait up to pingTimeout + pingInterval ms before getting a disconnect event
. https://socket.io/docs/server-api/#new-Server-httpServer-optionsMy server is written in JavaScript with default parameter (25s pingInterval 5s pingTimeout), this line of code would make all read timeout 5s after receiving
pong
. This makes my client reconnect every 30s.For reference, in the JavaScript implementation, it waits
pingInterval + pingTimeout
:https://github.com/socketio/engine.io/blob/6a16ea119280a02029618544d44eb515f7f2d076/lib/socket.js#L141
The text was updated successfully, but these errors were encountered: