[Twisted-Python] intermittent problem: not accepting new connections

Paul C. Nendick paul.nendick at gmail.com
Thu Sep 11 07:31:38 MDT 2008

Not necessarily related to what you've described, but I'll share
something that's helped a good deal on my most-heavily hit twisted
servers. Presuming you're using Linux:

 echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle

from http://lartc.org/howto/lartc.kernel.obscure.html :

"Enable fast recycling TIME-WAIT sockets. Default value is 1. It
should not be changed without advice/request of technical experts"

My expert advice: only use this on machines connected on a low-latency
LAN. It *will* break internet-facing interfaces. It halves the
constant used by the Nagle algorithm:


Kind regards,


More information about the Twisted-Python mailing list