[ENet-discuss] [Q] auto-disconnect timeout ?
Lee Salzman
lsalzman1 at cox.net
Mon Nov 29 02:25:54 PST 2004
What sort of predictable are you looking for? Do you want the disconnect
to always happen after a fixed number of seconds?
Lee
On Fri, Nov 26, 2004 at 04:31:21PM +0100, Benoit Germain wrote:
> Hello,
>
> When a client dies while connected to a server, the server generates a
> DISCONNECTED event after a while. When running a little test with both the
> client and server on the same computer, that 'while' is about 15 seconds.
> This seems to be controlled by the ENET_PEER_TIMEOUT_LIMIT value. If I
> change the value from 32 to 64, the delay is now ~ 50 seconds. Also, by
> looking at the code, I understand the observed timeout is dependant on the
> actual roudtrip duration that the server observed.
>
> So, the question is: can I specify a timeout setting that will yield
> predictable results, and how ?
>
> __________________________________
> Benoit Germain
> mailto:bgermain at ubisoft.fr <mailto:bgermain at ubisoft.fr>
>
> Person who says it cannot be done should not interrupt person doing it.
> -- Chinese Proverb
>
> People who think they're smart annoy those of us who are.
> -- double-U's Proverb ?
> __________________________________
>
More information about the ENet-discuss
mailing list