You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Arnab Ganguly <ag...@gmail.com> on 2008/09/07 14:57:02 UTC

About lingering_close

Hi All,
How do I enable lingering_close in Apache.Is it enabled by default in Apache
2.2.8 ? Is there anyway to check it.
Thanks and regards
Arnab

Re: About lingering_close

Posted by Greg Ames <am...@gmail.com>.
On Sun, Sep 7, 2008 at 8:57 AM, Arnab Ganguly <ag...@gmail.com> wrote:

> Hi All,
> How do I enable lingering_close in Apache.Is it enabled by default in
> Apache 2.2.8 ?
>

yes.


> Is there anyway to check it.
>

Trace the system calls.  On Linux, you can run strace against one of the
worker processes.  Other Unices often have truss.  I don't know how to do it
on Windows.  Look for something like this:

31148 read(8, "GET /index.html HTTP/1.1\r\nHost: "..., 8000) = 484
...
31148 writev(8, [{"HTTP/1.1 200 OK\r\nDate: Tue, 09 S"..., 297},
{"<html><body><h1>It works!</h1></"..., 45}], 2) = 342
...
31148 shutdown(8, 1 /* send */)         = 0  <== the shutdown(send) before
poll and close means we are doing lingering close
...
31148 poll([{fd=8, events=POLLIN}], 1, 2000) = 0
31148 close(8)                          = 0

Good luck,
Greg