Fixed checking ngx_tcp_push() and ngx_tcp_nopush() return values.
No functional changes.
Ruslan Ermilov
4 years ago
2019 | 2019 | } |
2020 | 2020 | |
2021 | 2021 | if (c->tcp_nopush == NGX_TCP_NOPUSH_SET) { |
2022 | if (ngx_tcp_push(c->fd) == NGX_ERROR) { | |
2022 | if (ngx_tcp_push(c->fd) == -1) { | |
2023 | 2023 | ngx_log_error(NGX_LOG_CRIT, c->log, ngx_socket_errno, |
2024 | 2024 | ngx_tcp_push_n " failed"); |
2025 | 2025 | ngx_http_upstream_finalize_request(r, u, |