I read the other post about client disconnects after 5 seconds. I seem to be having a related problem except it's not always 5 seconds, sometimes 2, sometimes 7.
I've gone through the source over and over and I'm positive that the server is not disconnecting the client and that it is a timeout issue.
When I set the network server ping timeout (client_timeout_seconds in the database) to 5+ seconds, the disconnects stop.
So I'm puzzled at this point what could be causing a 5 second delay between pings. I've gone over all of the thread sleeps and waits and even modified the code to record date/time of each loop and there is no delay there on neither the client or server..
So what can be causing this? It's definitely a timeout issue but I don't understand what would be causing it to timeout..
Client I'm using is a version of the windows forms client included in the source, which I wrote myself and updated to be compatible.
Is it possible somehow using a windows forms app forces the additional threads to not execute as often? I don't know much about windows forms apps I'm mostly using either console apps or xna games.
Anyways I know the solution but I'm just curious what can be causing this..