summaryrefslogtreecommitdiff
path: root/sapi/thttpd
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2003-05-12 01:29:21 +0000
committerSascha Schumann <sas@php.net>2003-05-12 01:29:21 +0000
commit3eab2fb3bd6123968d5bf795716b3438236e3041 (patch)
tree91c73427cbc5ae4914197191bc0fc738d3216cbf /sapi/thttpd
parent40dd3617eb53a5d2a8deeaf4adda019dac6ba737 (diff)
downloadphp-git-3eab2fb3bd6123968d5bf795716b3438236e3041.tar.gz
improve keep alive handling
Diffstat (limited to 'sapi/thttpd')
-rw-r--r--sapi/thttpd/thttpd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sapi/thttpd/thttpd.c b/sapi/thttpd/thttpd.c
index 96741daa9a..1c13c356b1 100644
--- a/sapi/thttpd/thttpd.c
+++ b/sapi/thttpd/thttpd.c
@@ -208,6 +208,7 @@ static int sapi_thttpd_send_headers(sapi_headers_struct *sapi_headers TSRMLS_DC)
if (TG(seen_cl) && !TG(seen_cn) && TG(hc)->do_keep_alive) {
ADD_VEC(KA_DO, sizeof(KA_DO)-1);
} else {
+ TG(hc)->do_keep_alive = 0;
ADD_VEC(KA_NO, sizeof(KA_NO)-1);
}
@@ -656,6 +657,7 @@ static off_t thttpd_real_php_request(httpd_conn *hc, int show_source TSRMLS_DC)
TG(hc)->response = TG(sbuf).c;
TG(hc)->responselen = TG(sbuf).len;
+ TG(hc)->maxresponse = TG(sbuf).a;
TG(sbuf).c = 0;
TG(sbuf).len = 0;