[KRYONET] Unable to read TCP

So I managed to get my debug level to TRACE to find why my clients are always getting disconnected for no reason.
So right before the client got disconnected by the server, this error message came up in the server console:

I have no idea why it can’t read and I don’t know how to fix this, I really need some help with this exception.

Thanks.

Is the connection timing out? It might show in the log if it actually timed out, but you can try setting setKeepAliveTCP(int keepAliveMillis) on the connection, or set setTimeout(int timeoutMillis) to ensure it does not time out.