Buffer overflow using WebSockets in Play Framework

Viewed 206

On our online game using websockets, we get the following error several times a day:

ERROR p.c.s.common.WebSocketFlowHandler - WebSocket flow threw exception
akka.stream.BufferOverflowException: Buffer overflow (max capacity was: 16)!

We ran out of ideas on where to look at. Does anyone know why this happens?

Alternatively, is there any way we can enable debug info in Play Framework's WebSocketFlowHandler in order to understand why the buffer gets filled?

1 Answers

This config worked for me

akka.stream.materializer.max-input-buffer-size = 16384
Related