Re: [PD] tcpserver crashes on the 34th client connection

2013-05-20 Thread Martin Peach
On 2013-05-20 11:58, IOhannes zmölnig wrote: On 05/20/2013 05:45 PM, Martin Peach wrote: There is more than one version of [tcpserver] around. In Pd-extended there is [net/tcpserver], [iemnet/tcpserver] and [mrpeach/tcpserver]. isn't [net/tcpserver] the same as [mrpeach/tcpserver]? Yes, that

Re: [PD] tcpserver crashes on the 34th client connection

2013-05-20 Thread IOhannes zmölnig
On 05/20/2013 05:45 PM, Martin Peach wrote: There is more than one version of [tcpserver] around. In Pd-extended there is [net/tcpserver], [iemnet/tcpserver] and [mrpeach/tcpserver]. isn't [net/tcpserver] the same as [mrpeach/tcpserver]? fgamsrd IOhannes __

Re: [PD] tcpserver crashes on the 34th client connection

2013-05-20 Thread Martin Peach
On 2013-05-20 08:19, Antoine Villeret wrote: Hi Martin, Thanks for your reply. For now, I increase the MAX_CONNECT value and I also make each client disconnecting after they receive expected data, and they connect again if needed. But I experience another issue. If Pd crashes for any reason, t

Re: [PD] tcpserver crashes on the 34th client connection

2013-05-20 Thread Antoine Villeret
shame on me, there does exist a [port ( message in iemnet's tcpserver with which I can change the port on the fly the rightmost outlet sends [port -1( if binding failed but this is not explained in the help patch, I should have to go through the code to see that could I push an updated version of

Re: [PD] tcpserver crashes on the 34th client connection

2013-05-20 Thread Antoine Villeret
Hi Martin, Thanks for your reply. For now, I increase the MAX_CONNECT value and I also make each client disconnecting after they receive expected data, and they connect again if needed. But I experience another issue. If Pd crashes for any reason, the socket stay in a TIME_WAIT state and if Pd r

Re: [PD] tcpserver crashes on the 34th client connection

2013-05-18 Thread Martin Peach
Yes, it seems that the routine that adds new connections doesn't check to see if it has passed the number of connection slots. There are MAX_CONNECT slots allocated when [tcpserver] starts. Thanks for finding this bug! There is no reason to limit the number of connections to 32 except to not u

Re: [PD] tcpserver crashes on the 34th client connection

2013-05-18 Thread Antoine Villeret
so I reply to myself... I found this in the code of both tcpserver.c : #define MAX_CONNECT 32 /* maximum number of connections */ which could be an answer embryo so, I shouldn't make more than 32 connections on the same tcpserver, ok, but why ? is there a good reason to fix this to 32 ? and thi

[PD] tcpserver crashes on the 34th client connection

2013-05-16 Thread Antoine Villeret
hi all, I've just notice [tcpserver] crashes when the 34th client try to connect both iemnet and mrpeach are affected iemnet version send a strange number on the 33th connection (like 2.8686e+07) and crashes on the 34th here is a gdb output for iem : Program received signal SIGSEGV, Segmentatio