shibd leaves connections in CLOSE_WAIT state

Cantor, Scott cantor.2 at
Mon Nov 14 19:56:42 GMT 2011

On 11/14/11 2:22 PM, "Roland Tanner" <roland at> wrote:
>I'm finding that over time the server quickly accumulates an increasing
>number of connections in CLOSE_WAIT state which never completely close.

Socket programming is not my area of expertise, so anybody that thinks the
code is wrong is encouraged to help fix it and supply patches. There's not
much chance I'm going to do anything without specific suggestions as to
what's broken, since the socket loop is all just copied from other

I would note that if you run in prefork, the SP is never going to work
well anyway. Switching to a modern MPM like prefork will greatly reduce
the connections and the churn and probably lessen the impact.

-- Scott

More information about the users mailing list