]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Fix a long delay with CGI requests and keepalive connections on
authorJeff Trawick <trawick@apache.org>
Fri, 7 Nov 2003 15:26:34 +0000 (15:26 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 7 Nov 2003 15:26:34 +0000 (15:26 +0000)
commitc76efd6bfb45a0478e2cdbc3df447525dcfe067e
treeaddcc296838e03f9735bde902c7c0964c7d5ae06
parentde5a239b61c8986908426021c61d8381f54775e7
Fix a long delay with CGI requests and keepalive connections on
AIX.

On AIX, for processes like mod_cgid's script children where
SIGCHLD is ignored, kill(pid,0) returns success for up to
one second after the script child exits, based on when a
daemon runs to clean up unnecessary process table entries.
getpgid() can report the proper info (-1/ESRCH) immediately.

One user had a page with a lot of embedded images created by
CGIs, and the browser fetched them on a keepalive connection,
and the cumulative delays were very noticeable by the clients.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101716 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
modules/generators/mod_cgid.c