diff src/os/unix/ngx_freebsd_sendfile_chain.c @ 7239:400a3412b1e3

Fixed checking ngx_tcp_push() and ngx_tcp_nopush() return values. No functional changes.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 19 Mar 2018 16:28:23 +0300
parents 7cc2d3a96ea3
children 555533169506
line wrap: on
line diff
--- a/src/os/unix/ngx_freebsd_sendfile_chain.c
+++ b/src/os/unix/ngx_freebsd_sendfile_chain.c
@@ -135,7 +135,7 @@ ngx_freebsd_sendfile_chain(ngx_connectio
             if (ngx_freebsd_use_tcp_nopush
                 && c->tcp_nopush == NGX_TCP_NOPUSH_UNSET)
             {
-                if (ngx_tcp_nopush(c->fd) == NGX_ERROR) {
+                if (ngx_tcp_nopush(c->fd) == -1) {
                     err = ngx_socket_errno;
 
                     /*