summaryrefslogtreecommitdiff
path: root/sapi/phttpd
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2000-10-29 16:14:27 +0000
committerSascha Schumann <sas@php.net>2000-10-29 16:14:27 +0000
commitaf87dfe204d4418951071d102ef15b1b26db2aa2 (patch)
tree472723f6377cc3e5a3e1652954f61265cf443dff /sapi/phttpd
parentbed7034f920d7560fa7635a922f578db528d88d3 (diff)
downloadphp-git-af87dfe204d4418951071d102ef15b1b26db2aa2.tar.gz
Unify handling of aborted connections
Diffstat (limited to 'sapi/phttpd')
-rw-r--r--sapi/phttpd/phttpd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sapi/phttpd/phttpd.c b/sapi/phttpd/phttpd.c
index e8be996d6b..29733bcfd4 100644
--- a/sapi/phttpd/phttpd.c
+++ b/sapi/phttpd/phttpd.c
@@ -69,7 +69,9 @@ php_phttpd_sapi_ub_write(const char *str, uint str_length)
sent_bytes = fd_write(PHG(cip)->fd,str,str_length);
- if (sent_bytes == -1) perror("fd_write\n");
+ if (sent_bytes == -1) {
+ php_handle_aborted_connection();
+ }
return sent_bytes;
}