From imtrobin at gmail.com Fri Aug 4 02:01:20 2017 From: imtrobin at gmail.com (Robin) Date: Fri, 04 Aug 2017 17:01:20 +0800 Subject: [ENet-discuss] Enet disconnection inconsistent received (Lee Salzman) In-Reply-To: References: Message-ID: <598437E0.3070504@gmail.com> Hi Lee, I have some time to revisit the issue again.Both server/client are on my machine, so it can take up to 30 secs for the disconnection to be received when either side crashes. I would assume the timing would be shorter, like under 5 seconds. Robin >The amount of time it takes to disconnect depends on the measured >round-trip-time, which is an indication of how laggy the connection >is. Disconnect is not supposed to take a fixed time. On Wed, Jul 12, 2017 at 12:31 AM, Robin wrote: > Hi, > > When I crash the server (for testing), I notice the time for client to > receive the disconnection message, can vary between 5 seconds to 30 seconds. > > I'm tried various timeout in both server/client (in the while loop) e.g > > enet_host_service (EnetClient_,&event, 0); > enet_host_service (EnetClient_,&event, 30); > > This happens even on both server/client running on local server. I would > expect it to be consistent timing, but this is varying too big. Is there > somewhere to debug this? > > -- > Robin -------------- next part -------------- An HTML attachment was scrubbed... URL: