Re: Question about SO_LINGER

From: dean gaudet
Date: Sat Aug 13 2005 - 19:23:09 EST


On Wed, 10 Aug 2005, steve roussey wrote:

> socket to shut down. Apache has a workaround called lingering_close()
> that tries to address broken SO_LINGER implementations, but it also blocks."

apache 1.x is single threaded / forked, so yeah it blocks. the
implementation is there because very few SO_LINGER implementations
actually worked in the 90s. the method used by apache 1.x is easy to
modify into a non-blocking form... which could be how they did it in 2.x
(i stopped hacking on apache sometime early in 2.x development).

-dean
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/