mirror of
https://github.com/nginx/nginx.git
synced 2026-07-29 15:54:27 -05:00
Stream: avoid infinite loop in case of socket read error.
This commit is contained in:
@@ -1534,8 +1534,9 @@ ngx_stream_proxy_process(ngx_stream_session_t *s, ngx_uint_t from_upstream,
|
||||
|
||||
size = b->end - b->last;
|
||||
|
||||
if (size && src->read->ready && !src->read->delayed) {
|
||||
|
||||
if (size && src->read->ready && !src->read->delayed
|
||||
&& !src->read->error)
|
||||
{
|
||||
if (limit_rate) {
|
||||
limit = (off_t) limit_rate * (ngx_time() - u->start_sec + 1)
|
||||
- *received;
|
||||
|
||||
Reference in New Issue
Block a user