diff options
author | Sascha Schumann <sas@php.net> | 2000-10-29 16:14:27 +0000 |
---|---|---|
committer | Sascha Schumann <sas@php.net> | 2000-10-29 16:14:27 +0000 |
commit | af87dfe204d4418951071d102ef15b1b26db2aa2 (patch) | |
tree | 472723f6377cc3e5a3e1652954f61265cf443dff /sapi/nsapi | |
parent | bed7034f920d7560fa7635a922f578db528d88d3 (diff) | |
download | php-git-af87dfe204d4418951071d102ef15b1b26db2aa2.tar.gz |
Unify handling of aborted connections
Diffstat (limited to 'sapi/nsapi')
-rw-r--r-- | sapi/nsapi/nsapi.c | 5 |
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 |