All players freeze on session outgoing queue full

Hey, im having trouble understanding whats going on here.

If one player is sending too many messages these errors get spammed in the logs:

{"level":"warn","ts":"2024-07-14T10:17:51.776Z","caller":"server/session_ws.go:412","msg":"Could not write message, session outgoing queue full","uid":"d224b2f3-c7c5-45c9-9876-7e3e2df21d90","sid":"01a2f4b1-41c7-11ef-8987-006100a0eb06"}

{"level":"error","ts":"2024-07-14T10:17:51.776Z","caller":"server/tracker.go:1298","msg":"Failed to deliver presence event","sid":"01a2f4b1-41c7-11ef-8987-006100a0eb06","error":"session outgoing queue full"}

This makes ALL the players in the match freeze.

Why is it making all the players freeze?

Big issue atm

Hello @gruset,

As stated here, if the client is not receiving the messages fast enough they’ll fill the buffer, forcing a disconnect.

Perhaps the device doesn’t have enough bandwidth for the messages it’s receiving or there’s still too many messages.

Yes but this still dont answere the problem with everyone freezing. One idea that i had was that i had too long wait time in the configuration. So the server waited for response from a single client and thats the reason for a freeze for everyone. Could that be the case?

If the server is waiting for some message from a client that’s not present anymore then that’s likely the case.