# All players freeze on session outgoing queue full

**URL:** <https://forum.heroiclabs.com/t/all-players-freeze-on-session-outgoing-queue-full/5481>\
**Category:** Runtime Framework\
**Created:** [July 14, 2024, 10:30am UTC](https://forum.heroiclabs.com/t/all-players-freeze-on-session-outgoing-queue-full/5481 "2024-07-14T10:30:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gruset](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gruset/32/940_2.png) [@gruset](https://forum.heroiclabs.com/u/gruset)\
**Post date:** [July 14, 2024, 10:30am UTC](https://forum.heroiclabs.com/t/all-players-freeze-on-session-outgoing-queue-full/5481/1 "2024-07-14T10:30:57Z")

</div>

Hey, im having trouble understanding whats going on here.

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

```auto
{"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

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [July 19, 2024, 4:23pm UTC](https://forum.heroiclabs.com/t/all-players-freeze-on-session-outgoing-queue-full/5481/2 "2024-07-19T16:23:55Z")

</div>

Hello @gruset,

As stated [here](https://github.com/heroiclabs/nakama/blob/3957a84b9ccfb52a4ad8478235717fd181a3381e/server/config.go#L738), 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.

---

<div class="post-metadata">

**Author:** ![gruset](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/gruset/32/940_2.png) [@gruset](https://forum.heroiclabs.com/u/gruset)\
**Post date:** [July 22, 2024, 2:06pm UTC](https://forum.heroiclabs.com/t/all-players-freeze-on-session-outgoing-queue-full/5481/3 "2024-07-22T14:06:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [July 22, 2024, 2:27pm UTC](https://forum.heroiclabs.com/t/all-players-freeze-on-session-outgoing-queue-full/5481/4 "2024-07-22T14:27:04Z")

</div>

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