Mercurial > hg > nginx
comparison src/os/unix/ngx_linux_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 | ff0c8e11edbc |
children | a2613fc1bce5 |
comparison
equal
deleted
inserted
replaced
7238:06cf0c4b8618 | 7239:400a3412b1e3 |
---|---|
128 } | 128 } |
129 } | 129 } |
130 | 130 |
131 if (c->tcp_nodelay == NGX_TCP_NODELAY_UNSET) { | 131 if (c->tcp_nodelay == NGX_TCP_NODELAY_UNSET) { |
132 | 132 |
133 if (ngx_tcp_nopush(c->fd) == NGX_ERROR) { | 133 if (ngx_tcp_nopush(c->fd) == -1) { |
134 err = ngx_socket_errno; | 134 err = ngx_socket_errno; |
135 | 135 |
136 /* | 136 /* |
137 * there is a tiny chance to be interrupted, however, | 137 * there is a tiny chance to be interrupted, however, |
138 * we continue a processing without the TCP_CORK | 138 * we continue a processing without the TCP_CORK |