I just remembered, you could just get the server to tell the client that a peer disconnected. That way, it&#39;d skip it&#39;s attempt to connect to the client.<br><br><div class="gmail_quote">On Fri, Nov 6, 2009 at 5:03 PM, Uj <span dir="ltr">&lt;<a href="mailto:ujdevil@gmail.com">ujdevil@gmail.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;">Well it&#39;s your application do decide if the disconnection is sudden... (expect for crashes of course, but your app shouldn&#39;t crash ^^)<br>
I can&#39;t see Alain the difference in your case between disconnection and timeout actually... timeout causes disconnection.<br>

<br>If those settings are for debugging purposes, then take them off in the release version and it should be fine :p<br><br>If you can spot the moments when you need high timeout,<br>then set them dynamically and adjust them when needed.<br>


Or use specific messages to prevent specific situations (like asserts or so on).<br><br>Hope this helps,<br>regards,<br>Ju<div><div></div><div class="h5"><br><br><br><div class="gmail_quote">On Thu, Nov 5, 2009 at 7:51 PM, Alain Becam <span dir="ltr">&lt;<a href="mailto:Al@thegiantball.com" target="_blank">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;">Indeed...<br><br><div class="gmail_quote">2009/11/5 Nuno Silva <span dir="ltr">&lt;<a href="mailto:little.coding.fox@gmail.com" target="_blank">little.coding.fox@gmail.com</a>&gt;</span><div>


<div></div><div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Not to mention you&#39;d have the same issue if the users&#39; network was disconnected suddently.<br><br><div class="gmail_quote"><div><div></div><div>On Thu, Nov 5, 2009 at 5:27 PM, Alain Becam <span dir="ltr">&lt;<a href="mailto:Al@thegiantball.com" target="_blank">Al@thegiantball.com</a>&gt;</span> wrote:<br>





</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div><pre>Hi,</pre><pre>   Thank you for your answer! Actually when they disconnect properly, there is no problem. It is in case of crash that we have this problem. Unfortunately it happens ;)</pre>





<pre>//Alain</pre><pre>Hi Alain,

Is it possible for your peers to send a disconnection message before going
away ?

regards,
Ju


On Thu, Nov 5, 2009 at 2:03 PM, Alain Becam &lt;<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">Al at thegiantball.com</a>&gt; wrote:

&gt;<i> Hello,
</i><div><div></div><div>&gt;<i>      Greetings from a new happy user. We are using ENet has the &quot;low-level&quot;
</i>&gt;<i> communication API for an object-oriented solution, with object replication.
</i>&gt;<i> Thanks for this great library !
</i>&gt;<i>
</i>&gt;<i> Mostly for debug purposes, we increased the TIME_OUT, like that:
</i>&gt;<i>
</i>&gt;<i>    ENET_PEER_TIMEOUT_LIMIT                = 3200, // 32
</i>&gt;<i>    ENET_PEER_TIMEOUT_MINIMUM              = 5000, // 5000
</i>&gt;<i>    ENET_PEER_TIMEOUT_MAXIMUM              = 300000, // 30000
</i>&gt;<i>
</i>&gt;<i> It works well to avoid too quick disconnections, but we still have a
</i>&gt;<i> problem. When a new peer connect, it receives the list of existing peers
</i>&gt;<i> from the server, then try to connect to all peers, and when done, send an
</i>&gt;<i> acknowledgment to the server. Then the server replicates the existing
</i>&gt;<i> objects. But with these time-out, a disconnected peer is discovered after a
</i>&gt;<i> very long time, and if a new peer connect, it will never send the ack to the
</i>&gt;<i> server (because he is waiting for the connection and until it receives the
</i>&gt;<i> disconnection event).
</i>&gt;<i>
</i>&gt;<i> We tried to do that in protocol.c (line 1270):
</i>&gt;<i>
</i>&gt;<i> outgoingCommand -&gt; roundTripTimeoutLimit = (ENET_PEER_TIMEOUT_LIMIT/100) *
</i>&gt;<i> outgoingCommand -&gt; roundTripTimeout;
</i>&gt;<i>
</i>&gt;<i> But it seems to have some nasty side-effects (when some communications are
</i>&gt;<i> occurring, it might disconnect very quickly again)...
</i>&gt;<i>
</i>&gt;<i> Any way to have a quick disconnection and still a long time-out for comms ?
</i>&gt;<i>
</i>&gt;<i> Kind regards,
</i>&gt;<i>     Alain
</i>&gt;<i>
</i></div></div>&gt;<i> _______________________________________________
</i>&gt;<i> ENet-discuss mailing list
</i>&gt;<i> <a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">ENet-discuss at cubik.org</a>
</i>&gt;<i> <a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a>
</i>&gt;<i>
</i>&gt;<i>
</i></pre><br>
<br>_______________________________________________<br>
ENet-discuss mailing list<br>
</div></div><a href="mailto:ENet-discuss@cubik.org" target="_blank">ENet-discuss@cubik.org</a><div><br>
<a href="http://lists.cubik.org/mailman/listinfo/enet-discuss" target="_blank">http://lists.cubik.org/mailman/listinfo/enet-discuss</a><br>
<br></div></blockquote></div><br>
<br>_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org" target="_blank">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></div></div><br>
<br>_______________________________________________<br>
ENet-discuss mailing list<br>
<a href="mailto:ENet-discuss@cubik.org" target="_blank">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>
</div></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>