From: Sascha Schumann Date: Mon, 12 May 2003 01:29:41 +0000 (+0000) Subject: MFH X-Git-Tag: php-4.3.2RC3~48 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c53c056477edcf1a9078892d3ca3cdc9844d9feb;p=php MFH --- 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;