mirror of
https://github.com/nginx/nginx.git
synced 2026-08-27 12:14:16 +00:00
Stream: avoid infinite loop in case of socket read error.
This commit is contained in:
parent
bd6d8b5455
commit
b580770f3a
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue