Passive TCP Close

2011-09-05 Thread Chris Burroughs
(The first few paragraphs are background and why the "obvious" solution won't work for us.) So the "normal" problem a HTTP server will experience when serving many small requests to a large number of clients is a pile of connections in TIME_WAIT. There not great but there are a number of ways to

tomcat-6 socket.soLingerOn vs connectionLinger

2011-09-01 Thread Chris Burroughs
Looking at the Connector configuration options I'm having trouble reconciling the description of socket.soLingerOn and connectionLinger [1] connectionLinger: The number of milliseconds during which the sockets used by this Connector will linger when they are closed. The default value is -1 (socket

Http11NioProtocol; socketCloseDelay

2011-09-01 Thread Chris Burroughs
In tomcat 6 Http11NioProtocol defines a socketCloseDelay field. But as far as I and grep can tell it is not used anywhere [1]. Is this field supposed to be doing something? [1] $ grep -rni socketCloseDelay * java/org/apache/coyote/http11/Http11NioProtocol.java:219:private int socketCloseDela