[PD-dev] [tcpserver]: new 'clientbuf' method seems to be buggy

Roman Haefeli reduzierer at yahoo.de
Mon Apr 6 23:44:21 CEST 2009


On Mon, 2009-04-06 at 21:26 +0000, martin.peach at sympatico.ca wrote:
> Spoke too soon. On Debian setting the buffer to any size always
> returns me 2048, so that's no good.
> On WinXP some values (1,2) do what you said. Others (10,12) don't. I'm
> not sure what to do about that. It seems to be the OS.

i would say, that the ability to set the buffer to any arbitrary size is
not critical. though, it is really critical, if messages are not sent
completely. 

i cannot think of situations, where one is really dependent on a small
buffersize. whatever works with small buffersize, should work as well
with bigger buffersizes, shouldn't it? however, the reverse of that is
not true. so if you are saying, that every buffersize _above_ a certain
value works fine, then i am really fine with it. the reason, why i was
using small (200 or 1024) buffersizes was wanting to debug the
netpd-server. 

or are you saying that some buffersizes work, others don't, and that it
is completely unrelated to whether they are big or small?

roman

________________________________________________________________________
> From: martin.peach at sympatico.ca
> To: reduzierer at yahoo.de; pd-dev at iem.at
> Date: Mon, 6 Apr 2009 20:33:15 +0000
> Subject: Re: [PD-dev] [tcpserver]: new 'clientbuf' method seems to be
> buggy
> 
> Well I'm trying to get rid of the bugs in it...
> I don't get that on WinXP though (Pd 0.41.4-extended). I set the
> buffer to 12 and still received 30 bytes.
> On Debian with Pd 0.41.4-extended I get two separate messages (each
> longer than 12) but still all the data arrives.
> 
> Martin
> 
> 
> > From: reduzierer at yahoo.de
> > To: pd-dev at iem.at
> > Date: Mon, 6 Apr 2009 17:38:20 +0200
> > Subject: [PD-dev] [tcpserver]: new 'clientbuf' method seems to be
> buggy
> > 
> > hi martin
> > 
> > i reckon, that you're working on tcpserver code these days, at least
> > when ever i update mrpeach from svn, the tcpserver.c file is
> updated. so
> > please tell me, if it makes sense at all to currently report bugs.
> > 
> > after having set the buffersize using the 'clientbuf' messages,
> message
> > to the client, for which the buffersize was set, are truncated.
> while
> > sending 30 byte messages, only 15 bytes are sent, respectively 15
> bytes
> > are received on the client side.
> > 
> > please check the attached bug illustration patch
> > 
> > roman


	
		
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de





More information about the Pd-dev mailing list