httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Ames" <ames.g...@gmail.com>
Subject Re: About lingering_close
Date Tue, 09 Sep 2008 19:33:26 GMT
On Sun, Sep 7, 2008 at 8:57 AM, Arnab Ganguly <aganguly01@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

Mime
View raw message