From: Sascha Schumann Date: Mon, 12 May 2003 01:29:21 +0000 (+0000) Subject: improve keep alive handling X-Git-Tag: RELEASE_0_9b~24 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3eab2fb3bd6123968d5bf795716b3438236e3041;p=php improve keep alive handling --- 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;