Socket options for a tcp server with 3G clients & frequent disconnections
- by Joel
I have a TCP server, written in java, sending and receiving many short messages, from 500 bytes to 100 KB long. It's a chess game and chat server, to make it simple. The server is running Debian 6.
Half of the clients are connecting from 3G networks, and half over standard DSL.
A portion of the 3G clients lose connection pretty often. The error I get on the server and on the client socket is Connection reset.
I have come across this page at Oracle documentation: socketOpt. I am wondering what I could tune there to lower the number of disconnections from 3G clients. I don't mind about the ping or transfer rate, but just about the TCP disconnections.
I am not skilled enough to understand the impact of each setting, but I sort of understood that the TCP window was important, although I don't know exactly how. So I'm asking if anyone here has an idea ?
Thanks if you can help.