<HTML>
<HEAD>
<TITLE>Re: [Twisted-Python] Flush socket</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>sorry, my question wasn't clear:<BR>
<BR>
I do already disable Nagle by setting TCP NoDelay.<BR>
<BR>
And I do a reactor.select(0), which sometimes breaks I guess<BR>
because of reactor reentry not expected, and it will break<BR>
when the reactor is not select() based I guess.<BR>
<BR>
So the question is: is there an alternative to reactor.select(0)<BR>
after a transport.write() to make the reactor call write() on<BR>
the underlying socket for all stuff buffered within Twisted?<BR>
<BR>
<BR>
On 11.08.11 23:47, &quot;Itamar Turner-Trauring&quot; &lt;<a href="itamar@itamarst.org">itamar@itamarst.org</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>&gt; so there is no Twisted sanctioned (reactor independent and reentry safe)<BR>
&gt; alternative to disable nagle (tcp nodelay) and doing a select()?<BR>
<BR>
You can disable nagle in Twisted, if that's the question<BR>
(transport.setTcpNoDelay(True)). But you can't determine TCP packet size,<BR>
that's up to the operating system.<BR>
<BR>
<BR>
_______________________________________________<BR>
Twisted-Python mailing list<BR>
<a href="Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><BR>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>