diff options
author | Sascha Schumann <sas@php.net> | 2003-05-16 22:32:22 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2003-05-16 22:32:22 +0000 |
commit | 528c495d688a3e06f0f7e2a5522c81baf851c620 (patch) | |
tree | 096dd5ae5316ebe123eadf9cb2990f01247a2182 /sapi/thttpd | |
parent | 0596442eef9c3e779135966a9e80c922a4be89b6 (diff) | |
download | php-git-528c495d688a3e06f0f7e2a5522c81baf851c620.tar.gz |
If there is a content body, enable lingering and disable keep alive.
Diffstat (limited to 'sapi/thttpd')
-rw-r--r-- | sapi/thttpd/thttpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c index 1c13c356b1..48054c4394 100644 --- a/sapi/thttpd/thttpd.c +++ b/sapi/thttpd/thttpd.c @@ -633,8 +633,10 @@ static off_t thttpd_real_php_request(httpd_conn *hc, int show_source TSRMLS_DC) TG(hc) = hc; hc->bytes_sent = 0; - if (hc->method == METHOD_POST) + if (hc->contentlength != -1) { hc->should_linger = 1; + hc->do_keep_alive = 0; + } if (hc->contentlength != -1 && SIZEOF_UNCONSUMED_BYTES() < hc->contentlength) { |