Hi Alain,<br><br>Is it possible for your peers to send a disconnection message before going away ?<br><br>regards,<br>Ju<br><br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 2:03 PM, Alain Becam <span dir="ltr">&lt;<a href="mailto:Al@thegiantball.com">Al@thegiantball.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div>Hello,</div><div>     Greetings from a new happy user. We are using ENet has the &quot;low-level&quot; communication API for an object-oriented solution, with object replication. Thanks for this great library !</div>

<div>


<br></div><div>Mostly for debug purposes, we increased the TIME_OUT, like that: </div><div><br></div><div>   ENET_PEER_TIMEOUT_LIMIT                = 3200, // 32</div><div>   ENET_PEER_TIMEOUT_MINIMUM              = 5000, // 5000</div>




<div>   ENET_PEER_TIMEOUT_MAXIMUM              = 300000, // 30000</div><div><br></div><div>It works well to avoid too quick disconnections, but we still have a problem. When a new peer connect, it receives the list of existing peers from the server, then try to connect to all peers, and when done, send an acknowledgment to the server. Then the server replicates the existing objects. But with these time-out, a disconnected peer is discovered after a very long time, and if a new peer connect, it will never send the ack to the server (because he is waiting for the connection and until it receives the disconnection event).</div>




<div><br></div><div>We tried to do that in protocol.c (line 1270):</div><div><br></div><div>outgoingCommand -&gt; roundTripTimeoutLimit = (ENET_PEER_TIMEOUT_LIMIT/100) * outgoingCommand -&gt; roundTripTimeout;</div><div>



<br>
</div><div>But it seems to have some nasty side-effects (when some communications are occurring, it might disconnect very quickly again)...</div><div><br></div><div>Any way to have a quick disconnection and still a long time-out for comms ?</div>




<div><br></div><div>Kind regards,</div><div>    Alain </div>
<br>_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</a><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br></blockquote></div><br>