mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
Fix some problems on systems where EAGAIN != EWOULDBLOCK (e.g., OS/390).
ap_canonical_errror() for Unix now maps EWOULDBLOCK to EAGAIN/APR_EAGAIN when appropriate so that the changes here (as well as bjh's changes from a few days ago) to call ap_canonical_error() before comparing with EWOULDBLOCK will work on Unix as well. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85019 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -2272,7 +2272,7 @@ API_EXPORT(size_t) ap_send_mmap(ap_mmap_t *mm, request_rec *r, size_t offset,
|
||||
else if (rv != APR_SUCCESS) {
|
||||
if (r->connection->aborted)
|
||||
break;
|
||||
else if (rv == EAGAIN)
|
||||
else if (ap_canonical_error(rv) == APR_EAGAIN)
|
||||
continue;
|
||||
else {
|
||||
ap_log_rerror(APLOG_MARK, APLOG_INFO, rv, r,
|
||||
|
Reference in New Issue
Block a user