Replies: 1 comment
-
|
Pings and events use the same transport, that is correct. The server emits pings at the configured ping interval. This is unrelated to what other traffic exists between the client and the server. The issue might be that your server gets too busy due to all the incoming traffic, causing the ping task to not receive CPU time. This is especially more likely if your server is asynchronous, but can also affect a threaded server given a sufficiently big load. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I sent a lot of events (5000) at once from the client to the server via socketio, and then a socketio reconnection occurred. This seems to be caused by a ping timeout.
Q1: It looks like all current events and pings are in the same queue, which may prevent ping-pong from being sent in a timely manner (I'm not sure if this understanding is correct)?
Q2: I think pings might only be generated when there is no data, because if there is data being generated between the client and the server, it inherently indicates that their connection is normal, right?
Beta Was this translation helpful? Give feedback.
All reactions