Hello!
TLDR; Is it possible to change the Maximum Transmissible Unit from 1500 bytes? On connections with some latency, the packets are arriving close together and terminating the connection for players.
Full context:
I’m the developer of Doomsday Paradise which uses Nakama as its backend for online multiplayer. Post launch a lot of bug reports from players arrived complaining about disconnects during matchmaking I did not catch during the game’s QA period. Some players had no problems at all, and others could barely play. Online issues are the majority of negative reviews on the game’s Steam page.
After several months of poking around I discovered that the issue is the 1500 byte MTU. Depending on latency, packets would arrive more or less closely together- and lots of small packets or a single large buffer packet would cause the connection to completely drop.
I couldn’t find a configuration parameter for this anywhere. Right now I’m going through a ton of hoops to slow down packet transmission based on latency, and it’s effective, but I’d prefer to simply bump up the MTU by a bit to ensure that there isn’t an edge case that is terminating games somewhere.
At the very least, having Nakama slow down the packets rather than disconnect the receiving player would be preferable.