Borgserver

You must be logged in to post Login Register


Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Client disconnects

UserPost

04:18
19. September 2011


Kittens

New Member

posts 1

1

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..

09:20
1. December 2011


GambitRicky

Member

posts 29

2

I cant answer that as i don't have your client to reproduce the behavior.
IMHO most disconnects happen during debug as the Lidgren library is not supporting (quite understandable) debugging. This is because of the Lidgren sending/receiving thread is being paused if a breakpoint is hit, naturally the other side receives a timeout in such case.



Date: 27. March 2010
Visitors:   (C) Copyright 2010, Borg Server Team
Borgserver