[Twisted-Python] Re: [Twisted-commits] r10475 - Use writeSequence instead of silly for-loop.
Itamar Shtull-Trauring
itamar at itamarst.org
Thu Apr 15 12:00:17 MDT 2004
On Thu, 2004-04-15 at 13:27, James Y Knight wrote:
> Unfortunately, python doesn't expose the writev syscall, which means
> that you depend on Nagling to not coalesce the TCP packets. There *is*
> a TCP option which you can use to help fix too many small packets:
> TCP_CORK on linux and TCP_NOPUSH on FreeBSD. This keeps partial packets
> from being sent at all until you close the connection or turn off the
> option (except on older freebsd, where it's broken and you need to turn
> off the option and call write again to wake it up).
JP has code for using writev in the sandbox (sandbox/exarkun/iovec/)
which ought to be integrated at some point.
--
Itamar Shtull-Trauring http://itamarst.org
Looking for a job -- http://itamarst.org/resume.html
More information about the Twisted-Python
mailing list