[PD] pd and tcp: what to do against crashes?

Martin Peach martin.peach at sympatico.ca
Mon Feb 23 21:07:36 CET 2009


>From: Roman Haefeli <reduzierer at yahoo.de>
>Reply-To: reduzierer at yahoo.de
>To: Martin Peach <martin.peach at sympatico.ca>
>CC: pd-list at iem.at
>Subject: Re: [PD] pd and tcp: what to do against crashes?
>Date: Mon, 23 Feb 2009 20:59:41 +0100
>
>On Mon, 2009-02-23 at 19:10 +0000, Martin Peach wrote:
> >
> > >From: Roman Haefeli <reduzierer at yahoo.de>
> > >Reply-To: reduzierer at yahoo.de
> > >To: Martin Peach <martin.peach at sympatico.ca>
> > >CC: PD list <pd-list at iem.at>
> > >Subject: Re: [PD] pd and tcp: what to do against crashes?
> > >Date: Mon, 23 Feb 2009 19:50:44 +0100
> > >
> > >On Sun, 2009-02-22 at 18:42 -0500, Martin Peach wrote:
> > > > Roman Haefeli wrote:
> > > > > On Sun, 2009-02-22 at 17:30 -0500, Martin Peach wrote:
> > > > >
> > > > >> Maybe you could try it (I just uploaded it to the svn at
> > > > >>
> > 
> >http://pure-data.svn.sourceforge.net/viewvc/pure-data/trunk/externals/mrpeach/net/)
> > > > >> and see if anything changes.
> > >
> > >with the newest [tcpserver] i cannot send messages to clients anymore. 
>i
> > >tried both, 'send <socketnumber>' and 'client <number>'. whenever
> > >[tcpserver] receives such a message, pd is blocked for about a second
> > >and the i get in the console:
> > >
> > >tcpserver_send_buf: client 1 not writeable
> > >
> >
> > Are you sending a lot of data? That should only happen if you send more 
>than
> > a buffer, whatever that is, only the system knows. It blocks for exactly 
>one
> > second if the buffer is full, I was thinking that should give it enough 
>time
> > to send everything. I guess Pd isn't crashing anymore at least ;)
> > You could try changing line 383 of tcpserver.c to change the timeout:
> > timeout.tv_sec = 10; /* for ten seconds */
>
>probably, i should add, that i am testing the new [tcpserver] code on
>ubuntu 8.04, as i don't know how to compile on OS X or win XP. what are
>you testing on?
>

I tried it yesterday on WinXp. I have a debian machine here I can try it on.

Martin






More information about the Pd-list mailing list