sas Wed Feb 21 12:25:53 2001 EDT
Modified files:
/php4/sapi/thttpd thttpd.c
Log:
If we cannot send the header, we don't need to continue with the page.
Index: php4/sapi/thttpd/thttpd.c
diff -u php4/sapi/thttpd/thttpd.c:1.35 php4/sapi/thttpd/thttpd.c:1.36
--- php4/sapi/thttpd/thttpd.c:1.35 Mon Feb 19 02:28:08 2001
+++ php4/sapi/thttpd/thttpd.c Wed Feb 21 12:25:53 2001
@@ -98,7 +98,8 @@
vec[n++].iov_len = 2;
TG(hc)->bytes += 2;
- writev(TG(hc)->conn_fd, vec, n);
+ if (writev(TG(hc)->conn_fd, vec, n) == -1 && errno == EPIPE)
+ php_handle_aborted_connection();
}
static int sapi_thttpd_read_post(char *buffer, uint count_bytes SLS_DC)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]