]> granicus.if.org Git - php/commitdiff
MFH
authorSascha Schumann <sas@php.net>
Mon, 12 May 2003 01:29:41 +0000 (01:29 +0000)
committerSascha Schumann <sas@php.net>
Mon, 12 May 2003 01:29:41 +0000 (01:29 +0000)
sapi/thttpd/thttpd.c

index 96741daa9aa49a2b010fde72d1c693e628ddd27b..1c13c356b1c2d62c02cc8434c76858207c6428ee 100644 (file)
@@ -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;