From c09aa142d64c6795a6bed8603a336285e7d3543d Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 19 Mar 2018 16:28:23 +0300 Subject: Fixed checking ngx_tcp_push() and ngx_tcp_nopush() return values. No functional changes. --- src/os/unix/ngx_linux_sendfile_chain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/os/unix/ngx_linux_sendfile_chain.c') diff --git a/src/os/unix/ngx_linux_sendfile_chain.c b/src/os/unix/ngx_linux_sendfile_chain.c index b44724cdd..5695839b0 100644 --- a/src/os/unix/ngx_linux_sendfile_chain.c +++ b/src/os/unix/ngx_linux_sendfile_chain.c @@ -130,7 +130,7 @@ ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit) if (c->tcp_nodelay == NGX_TCP_NODELAY_UNSET) { - if (ngx_tcp_nopush(c->fd) == NGX_ERROR) { + if (ngx_tcp_nopush(c->fd) == -1) { err = ngx_socket_errno; /* -- cgit v1.2.3