Sockets

Mark Rowe mark21rowe at yahoo.com
Thu Oct 11 06:00:04 CEST 2001


Hello,

I don't really think that disabling the Nagel algorithm would acheive a lot
in this case, and could cause unwanted network congestion as a side affect.
I also agree with the previous posters suggestions.

Mark
"John S. Yates, Jr." <john at yates-sheets.org> wrote in message
news:3d69st0v0s49ldmngrgj5viis7seqsifql at 4ax.com...
> On 10 Oct 2001 04:14:48 -0700, hugomartires at hotmail.com (Hugo Martires)
wrote:
>
> >My server need to send 2 strings separeted:
> > s1= 'xxx'
> > s2= 'yyy'
> >
> >My client must received like this:
> > rec1= 'xxx'
> > rec2= 'yyy'
> >
> >The problem is that the Client received s1 and s2 in one only string.
> >
> >How can i received in 2 separeted variables ?
> >
> >Tanks
>
> Previous posters have given the "correct" answer
> and I agree with them.  But a kludgy fix might
> be to disable the Nagel algorithm.  This involves
> putting the socket into no-delay mode.  I am very
> new to Python, so I don't know how or whether you
> can do this but in traditional socket programming
> it is definitely an option.
>
> /john
> --
> John Yates
> 40 Pine Street
> Needham, MA 02492
> 781 444-2899





More information about the Python-list mailing list