[ENet-discuss] Inconsistent connection status between hosts in bad network conditions

Pablo de Heras Ciechomski pablo.deheras at gmail.com
Tue Jun 23 07:06:48 PDT 2015


Thanks! Simple solutions are the best.

Pablo

On Tue, Jun 23, 2015 at 3:45 PM, <kristin.nielsen at se.atlascopco.com> wrote:

> I've investigated this further and is seems like the problem occurs when
> the server side gets two connect commands, ENET_PROTOCOL_COMMAND_CONNECT
> from the same client without any disconnect in between. The ENet host at
> the server will in that case get two peers with the exact same address and
> port. After a while one of them will get a timeout, and that timeout is
> what triggers the strange ENET_EVENT_TYPE_DISCONNECT. Our application
> code at the server side interprets this as a connection loss, but on the
> client side it is still connected since we have that other peer still up
> and running and responding.
>
> I've solved this by letting the application code on the server do a reset
> on the current peer when a new is received with the same address and port.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20150623/8d4dc8e0/attachment.html>


More information about the ENet-discuss mailing list