summaryrefslogtreecommitdiff
path: root/sapi/nsapi
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/nsapi
parentbed7034f920d7560fa7635a922f578db528d88d3 (diff)
downloadphp-git-af87dfe204d4418951071d102ef15b1b26db2aa2.tar.gz
Unify handling of aborted connections
Diffstat (limited to 'sapi/nsapi')
-rw-r--r--sapi/nsapi/nsapi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c
index 70b002b6c3..e7bd45ea83 100644
--- a/sapi/nsapi/nsapi.c
+++ b/sapi/nsapi/nsapi.c
@@ -141,9 +141,8 @@ sapi_nsapi_ub_write(const char *str, unsigned int str_length)
rc = (nsapi_request_context *)SG(server_context);
retval = net_write(rc->sn->csd, (char *)str, str_length);
if (retval == IO_ERROR /*-1*/ || retval == IO_EOF /*0*/)
- return -1;
- else
- return retval;
+ php_handle_aborted_connection();
+ return retval;
}
static int