<div dir="ltr">so I reply to myself...<div><br></div><div style>I found this in the code of both tcpserver.c :</div><div style>#define MAX_CONNECT 32 /* maximum number of connections */<br></div><div style><br></div><div style>

which could be an answer embryo</div><div style><br></div><div style>so, I shouldn&#39;t make more than 32 connections on the same tcpserver, ok, but why ?</div><div style>is there a good reason to fix this to 32 ?</div>
<div style>
<br></div><div style>and this doesn&#39;t tell me why it crashes...</div><div style>reaching the MAX_CONNECT should handles in the code isn&#39;t it ?</div><div style><br></div><div style>cheers</div><div style><br></div>

<div style>a</div></div><div class="gmail_extra"><br clear="all"><div>--<br>do it yourself                       <br><a href="http://antoine.villeret.free.fr" target="_blank">http://antoine.villeret.free.fr</a><br></div>

<br><br><div class="gmail_quote">2013/5/16 Antoine Villeret <span dir="ltr">&lt;<a href="mailto:antoine.villeret@gmail.com" target="_blank">antoine.villeret@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">hi all, <div><br></div><div>I&#39;ve just notice [tcpserver] crashes when the 34th client try to connect</div><div>both iemnet and mrpeach are affected</div><div><br></div><div>iemnet version send a strange number on the 33th connection (like 2.8686e+07) and crashes on the 34th</div>


<div><br></div><div><br></div><div>here is a gdb output for iem :</div><div><div>Program received signal SIGSEGV, Segmentation fault.</div><div>0x00007fffcdbca746 in tcpserver_connectpoll (x=0x66994c0) at tcpserver.c:503</div>


<div>503<span style="white-space:pre-wrap">        </span>      x-&gt;x_sr[i] = y;</div><div>(gdb) watchdog: signaling pd...</div><div><br></div><div><br></div><div>and for mrpeach :</div><div><div>Program received signal SIGSEGV, Segmentation fault.</div>


<div>0x00007fffcddaf585 in tcpserver_connectpoll (x=0xadfc1c0) at tcpserver.c:1113</div><div>1113<span style="white-space:pre-wrap">        </span>        outlet_float(x-&gt;x_sockout, x-&gt;x_sr[i]-&gt;sr_fd);<span style="white-space:pre-wrap">        </span>/* the socket number */</div>


<div>(gdb) watchdog: signaling pd...</div><div><br></div><div><br></div><div>it happens on ubuntu 12.04 64 bit</div><div>pd 0.44.2</div><div>and SVN update today</div><div><br></div><div>i&#39;m certainly doing something wrong to get this (like keeping clients connected all the time)</div>


<div>but a crash is never welcome...</div><div><br></div><div>cheers</div><div><br></div><div>antoine</div></div></div><div><div><div><div>--<br>do it yourself                       <br><a href="http://antoine.villeret.free.fr" target="_blank">http://antoine.villeret.free.fr</a><br>


</div>
</div></div></div></div>
</blockquote></div><br></div>