Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
7238:06cf0c4b8618 | 7239:400a3412b1e3 |
---|---|
133 } | 133 } |
134 | 134 |
135 if (ngx_freebsd_use_tcp_nopush | 135 if (ngx_freebsd_use_tcp_nopush |
136 && c->tcp_nopush == NGX_TCP_NOPUSH_UNSET) | 136 && c->tcp_nopush == NGX_TCP_NOPUSH_UNSET) |
137 { | 137 { |
138 if (ngx_tcp_nopush(c->fd) == NGX_ERROR) { | 138 if (ngx_tcp_nopush(c->fd) == -1) { |
139 err = ngx_socket_errno; | 139 err = ngx_socket_errno; |
140 | 140 |
141 /* | 141 /* |
142 * there is a tiny chance to be interrupted, however, | 142 * there is a tiny chance to be interrupted, however, |
143 * we continue a processing without the TCP_NOPUSH | 143 * we continue a processing without the TCP_NOPUSH |