cvs: php4 /sapi/thttpd thttpd.c
| From: | Sascha Schumann | Date: | Wed, 21 Feb 2001 20:25:53 +0000 |
| Subject: | cvs: php4 /sapi/thttpd thttpd.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-4189@lists.php.net to get a copy of this message | ||
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)