]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
mod_cgi[d]: Close the connection after handling nph- scripts.
authorYann Ylavic <ylavic@apache.org>
Fri, 28 Jan 2022 12:32:25 +0000 (12:32 +0000)
committerYann Ylavic <ylavic@apache.org>
Fri, 28 Jan 2022 12:32:25 +0000 (12:32 +0000)
commitb36b129f346ccf191069b5117d631a77a4b74502
tree238a928ce0734d6fce904cc9a09932bf2ff58f6a
parent4afce44d844474ee7190c1c5e0eadb0d91483dcf
mod_cgi[d]: Close the connection after handling nph- scripts.

The HTTP output filters chain is bypassed for nph- scripts (whatever this
means), so there is no way to know whether the connection is reusable after
sending the cgi response (opaque header + body).

Set r->connection->keepalive = AP_CONN_CLOSE unconditionally.

For instance test frameork's "nph-foldhdr.pl" script responds with HTTP/1.0
and no Content-Length so closing the connection is the only way to detect the
end of response for the peer.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1897563 13f79535-47bb-0310-9956-ffa450edef68
modules/generators/cgi_common.h