Klaus Demo nginx / c09aa14
Fixed checking ngx_tcp_push() and ngx_tcp_nopush() return values. No functional changes. Ruslan Ermilov 2 years ago
3 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
20192019 }
20202020
20212021 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) {
20232023 ngx_log_error(NGX_LOG_CRIT, c->log, ngx_socket_errno,
20242024 ngx_tcp_push_n " failed");
20252025 ngx_http_upstream_finalize_request(r, u,
134134 if (ngx_freebsd_use_tcp_nopush
135135 && c->tcp_nopush == NGX_TCP_NOPUSH_UNSET)
136136 {
137 if (ngx_tcp_nopush(c->fd) == NGX_ERROR) {
137 if (ngx_tcp_nopush(c->fd) == -1) {
138138 err = ngx_socket_errno;
139139
140140 /*
129129
130130 if (c->tcp_nodelay == NGX_TCP_NODELAY_UNSET) {
131131
132 if (ngx_tcp_nopush(c->fd) == NGX_ERROR) {
132 if (ngx_tcp_nopush(c->fd) == -1) {
133133 err = ngx_socket_errno;
134134
135135 /*