<div dir="ltr">2013/7/2 IOhannes m zmoelnig <span dir="ltr">&lt;<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>&gt;</span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<div class="im"><br>
On 2013-07-02 13:39, Antoine Villeret wrote:<br>
&gt;<br>
&gt; I realize that with iemnet&#39;s version of tcpclient/tcpserver, if two<br>
&gt; client connect at the same time to server, only on receive data<br>
&gt; not the other, <br>
<br>
</div>that&#39;s a different bug, please report it.<br></blockquote><div><br></div><div style>strangely I cannot reproduce it now, but when it happens i&#39;ll report it</div><div style><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


(please also report *this* bug in the sourceforge bugtracker for<br>
&quot;pure-data&quot;)<br>
<div class="im"><br></div></blockquote><div style>ok, i&#39;ll do</div><div style>sorry, I was thinking pure-data bug tracker was only for pure-data bugs not for externals ones...</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="im">
<br>
&gt; so I put a timeout to disconnect the client if no answer was<br>
&gt; received in a certain time and then reconnect<br>
&gt;<br>
&gt; i first make this with iemnet&#39;s tcpserver and I got a SIGPIPE on<br>
&gt; the server side (see my previous post) while I got SIGSEGV on the<br>
&gt; client side, here is the gdb backtrace :<br>
&gt;<br>
&gt; [New Thread 0x7fff7bfff700 (LWP 4478)]<br>
&gt;<br>
&gt; Program received signal SIGSEGV, Segmentation fault. [Switching to<br>
&gt; Thread 0x7fffc8ff9700 (LWP 4477)] 0x0000000000472963 in clock_set<br>
&gt; () (gdb) watchdog: signaling pd...<br>
<br>
</div>tip: when running Pd in a debugger, always use &quot;-nrt&quot;.<br>
<br>
general remark: to get a backtrace, please run &quot;bt&quot; in the debugger<br>
(after the crash).<br></blockquote><div><br></div><div style>ok thanks for that, gdb is still a bit confusing for me </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div class="im"><br>
&gt; I think in the server side a signal(SIGPIPE, SIG_IGN); could help<br>
&gt; but I don&#39;t know where to put it (in tcpserver.c ? in<br>
&gt; iemlnet_sender.c or somewhere else ?)<br>
<br>
</div>i don&#39;t think this is a good solution.<br>
i would prefer something along the lines of &quot;setsockopt(SO_NOSIGPIPE)&quot;<br>
and/or &quot;send(..., MSG_NOSIGNAL)&quot; - a solution that does not have<br>
side-effects on the entire Pd.<br></blockquote><div><br></div><div style>ok </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
&gt;<br>
&gt; also I tested it with the mrpeach&#39;s version, it doesn&#39;t crash but<br>
&gt; the GUI hangs gdb doesn&#39;t tell anything, it continue to show thread<br>
&gt; creation and exiting<br>
&gt;<br>
&gt; also I&#39;m using iemnet&#39;s first because it has a [port( method to<br>
&gt; change the binding port on the fly and I made a rebinding routing<br>
&gt; to choose an available port in a certain range both in server and<br>
&gt; in client side to prenvent connection error if port is still used<br>
&gt; after a crash for example<br>
&gt;<br>
&gt; I don&#39;t know how to go further with this, But I really need a<br>
&gt; reliable server for some project and for now I just have an<br>
&gt; headache :-) please tell me how i can help fixing this (and please<br>
&gt; note that I don&#39;t know anything on tcp communication...)<br>
<br>
</div>btw, my experimental repository for iemnet is at [1].<br>
i added the MSG_NOSIGNAL flag (currently this is linux only), and the<br>
server does not crash anymore, but the clients still do.<br></blockquote><div><br></div><div style>ok thanks I&#39;ll check it</div><div style><br></div><div style>best regards</div><div style>a </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<br>
fgmasdr<br>
IOhannes<br>
<br>
<br>
<br>
[1] <a href="https://github.com/umlaeute/pd-iemnet" target="_blank">https://github.com/umlaeute/pd-iemnet</a><br>
<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.12 (GNU/Linux)<br>
Comment: Using GnuPG with Icedove - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
iEYEARECAAYFAlHSxSoACgkQkX2Xpv6ydvRiAwCgrn20fLBsSDaDxDODerVSEGiw<br>
AG0An0u5PY21NryZawi/JdH3U02NOYAe<br>
=mQ4d<br>
-----END PGP SIGNATURE-----<br>
<br>
_______________________________________________<br>
Pd-dev mailing list<br>
<a href="mailto:Pd-dev@iem.at">Pd-dev@iem.at</a><br>
<a href="http://lists.puredata.info/listinfo/pd-dev" target="_blank">http://lists.puredata.info/listinfo/pd-dev</a><br>
</blockquote></div><br></div></div>