diff options
author | Ruslan Ermilov <ru@nginx.com> | 2018-03-19 16:28:23 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2018-03-19 16:28:23 +0300 |
commit | c09aa142d64c6795a6bed8603a336285e7d3543d (patch) | |
tree | 2e660cd23b2b491704adda76c4a29d560547cfcb /src/http/ngx_http_upstream.c | |
parent | 510986b80683e6d44e0e431ae92423eb7be64351 (diff) | |
download | nginx-c09aa142d64c6795a6bed8603a336285e7d3543d.tar.gz nginx-c09aa142d64c6795a6bed8603a336285e7d3543d.zip |
Fixed checking ngx_tcp_push() and ngx_tcp_nopush() return values.
No functional changes.
Diffstat (limited to 'src/http/ngx_http_upstream.c')
-rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 680b664be..e6f9c09dc 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2020,7 +2020,7 @@ ngx_http_upstream_send_request(ngx_http_request_t *r, ngx_http_upstream_t *u, } if (c->tcp_nopush == NGX_TCP_NOPUSH_SET) { - if (ngx_tcp_push(c->fd) == NGX_ERROR) { + if (ngx_tcp_push(c->fd) == -1) { ngx_log_error(NGX_LOG_CRIT, c->log, ngx_socket_errno, ngx_tcp_push_n " failed"); ngx_http_upstream_finalize_request(r, u, |