<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1515" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Im having trouble understanding how this 
works.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have a program where a client connects to a 
server. Both sides sends only reliable messages. This works fine at 
first.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Then my client preforms an operation that take 
several seconds, this causes a timeout due to the fact that no enet_host_service 
occurs.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I then try to increse the timeout limits by 
changing to the following:</FONT></DIV>
<DIV><FONT face=Arial 
size=2>NET_PEER_TIMEOUT_LIMIT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
= 128,&nbsp;<BR> 
ENET_PEER_TIMEOUT_MINIMUM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 

10000,<BR>ENET_PEER_TIMEOUT_MAXIMUM&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
= 50000,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Both on client and server.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>After I do this, no timeouts occur. However no 
messages I send seem to reach the server after the point in time where the 
timeout previously occured and nothing gets acked (thus a timeout occurs 
eventually).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>What could it be? Im confused. Are there additional 
timeout limits I need to set or am I messing up the throttling algorithm 
by</FONT></DIV>
<DIV><FONT face=Arial size=2>changing the timeout values?</FONT></DIV>
<DIV><FONT face=Arial size=2>/Thomas</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=thomas@paradoxplaza.com href="mailto:thomas@paradoxplaza.com">Thomas 
  Johansson</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=enet-discuss@cubik.org 
  href="mailto:enet-discuss@cubik.org">Discussion of the ENet library</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Friday, September 16, 2005 10:50 
  AM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [ENet-discuss] Auto 
  disconnect at client witheventENET_EVENT_TYPE_DISCONNECT</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>No takers on this? Im also very interested in 
  these issues.</FONT></DIV>
  <DIV><FONT face=Arial size=2>/Thomas</FONT></DIV>
  <BLOCKQUOTE 
  style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
    <DIV 
    style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
    <A title=ulhas.dhuri@gmail.com href="mailto:ulhas.dhuri@gmail.com">Ulhas 
    Dhuri.</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=enet-discuss@cubik.org 
    href="mailto:enet-discuss@cubik.org">enet-discuss@cubik.org</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 08, 2005 
    11:31 AM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> [ENet-discuss] Auto disconnect 
    at client with eventENET_EVENT_TYPE_DISCONNECT</DIV>
    <DIV><BR></DIV>Hi! <BR><BR>Looking for any active enetian, who could help 
    out :),<BR><BR>I was doing some stress testing for enet library on my LAN 
    .<BR><BR>1&gt; I use Enet Server to to accept 2000 clients and send them 
    small test data and also receive small <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    test data. (In Infinte loop ) at interval of 1 second.<BR><BR>2&gt; I 
    use&nbsp; Enet multithreaded&nbsp; program which spawns&nbsp; 300 test 
    clients sending/receiving&nbsp; some test data at interval of 1 second 
    .<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    Now it happens that the slowly client's&nbsp; connection breaks down posting 
    event ENET_EVENT_TYPE_DISCONNECT , where as the server didn't disconnect the 
    client .<BR><BR><BR>On a Lan under ideal circumstances, there should be no 
    such TIMEOUT .I further tried to explore into enet code and did the 
    following stuff:<BR><BR>&nbsp;1&gt;set in enet.h &nbsp; &nbsp; &nbsp; &nbsp; 
    &nbsp; 
    ENET_PEER_TIMEOUT_LIMIT&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    = 64<BR><BR>&nbsp;2&gt;protocol.c line no :913 , 
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (outgoingCommand -&gt; roundTripTimeout 
    &gt;= (<SPAN>outgoingCommand</SPAN> -&gt; <SPAN>roundTripTimeoutLimit</SPAN> 
    )*400)<BR>&nbsp;ie. increased the <SPAN>roundTripTimeoutLimit</SPAN> by 400 
    times<BR><BR>3&gt;tried out 
    <BR>enet_peer_throttle_configure(*tempIter,5000,10,500);<BR><BR>but all in 
    vain .<BR><BR><BR>Could some one with a good understanding on enet post some 
    solution to this problem and throw some more light on 
    enet_peer_throttle_configure() making it usage more clear<BR><BR 
    clear=all><BR>-- <BR>Warm Regards,<BR>&nbsp;&nbsp; 
    <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ulhas 
    . S .&nbsp;&nbsp;Dhuri<BR>&nbsp;&nbsp;&nbsp;&nbsp; 
    <P>
    <HR>

    <P></P>_______________________________________________<BR>ENet-discuss 
    mailing 
    list<BR>ENet-discuss@cubik.org<BR>http://lists.cubik.org/mailman/listinfo/enet-discuss<BR></BLOCKQUOTE>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>ENet-discuss mailing 
  list<BR>ENet-discuss@cubik.org<BR>http://lists.cubik.org/mailman/listinfo/enet-discuss<BR></BLOCKQUOTE></BODY></HTML>