cvs: php4 /sapi/thttpd thttpd.c

From: Date: Fri, 16 May 2003 22:32:22 +0000
Subject: cvs: php4 /sapi/thttpd thttpd.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-20974@lists.php.net to get a copy of this message
sas Fri May 16 18:32:22 2003 EDT Modified files: /php4/sapi/thttpd thttpd.c Log: If there is a content body, enable lingering and disable keep alive. Index: php4/sapi/thttpd/thttpd.c diff -u php4/sapi/thttpd/thttpd.c:1.86 php4/sapi/thttpd/thttpd.c:1.87 --- php4/sapi/thttpd/thttpd.c:1.86 Sun May 11 21:29:21 2003 +++ php4/sapi/thttpd/thttpd.c Fri May 16 18:32:22 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: thttpd.c,v 1.86 2003/05/12 01:29:21 sas Exp $ */ +/* $Id: thttpd.c,v 1.87 2003/05/16 22:32:22 sas Exp $ */ #include "php.h" #include "SAPI.h" @@ -633,8 +633,10 @@ 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) {

« previous php.cvs (#20974) next »