OpenArena Message Boards

OpenArena => Technical Snafus => Topic started by: GrosBedo on July 23, 2010, 10:31:20 AM



Title: sv_timeOut vs sv_zombietime ?
Post by: GrosBedo on July 23, 2010, 10:31:20 AM
Hello,

Do someone know what's the difference between sv_timeout and sv_zombietime ?

The only interesting thread I've found about it :

http://www.ftwgl.com/forums/showthread.php?t=657

Quote
http://www.shadowspawn.net/content/g...ver-config.asp

"This variable determines how long the server will keep the connection alive while not receiving any response from the client.
-NOTE-
If you run a busy server and wish to always keep slots open no matter what, keep this as the default. If you wish to have clients be able to reconnect within a period of time, specify it here."


so this implies this cvar is to kick non communicating clients and sv_timeout is for a communicating but idle client.

But it's false since g_inactivity is used to kick communicating but idle clients.

Do someone has a clearer idea ?


Title: Re: sv_timeOut vs sv_zombietime ?
Post by: 7 on July 25, 2010, 12:48:58 PM
sv_zombietime determines how long a client connection stays open after the client has either disconnected or timed out with sv_timeout.

From the source code:
Code:
SV_CheckTimeouts

If a packet has not been received from a client for timeout->integer
seconds, drop the conneciton.  Server time is used instead of
realtime to avoid dropping the local client while debugging.

When a client is normally dropped, the client_t goes into a zombie state
for a few seconds to make sure any final reliable message gets resent
if necessary


Title: Re: sv_timeOut vs sv_zombietime ?
Post by: GrosBedo on July 28, 2010, 07:04:16 PM
Perfect, thank you very much :)