httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: CLOSE_WAIT problem
Date Fri, 25 May 2012 06:38:58 GMT
> But, I have a question. Can't Apache detect the closed connection as soon
> as the backend connection is closed?

It "can" but it doesn't.

> I am sorry that I don't review codes yet so I don't know if Apache uses
> blocking I/O or NIO for backend.
>

NIO is a java-ism.  mod_proxy is synchronous and nobody is watching
the sockets while a thread isn't handling a request and trying to use
the conn.

>
> Is the watcher thread which is going through all of the connections
> looking to see if they have been closed by the peer only solution?

There is no thread.

Mime
View raw message