Changeset 6868:ee3645078759 in nginx


Ignore:
Timestamp:
01/11/17 09:01:56 (8 days ago)
Author:
Vladimir Homutov <vl@…>
Branch:
default
Message:

Stream: avoid infinite loop in case of socket read error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/stream/ngx_stream_proxy_module.c

    r6863 r6868  
    15351535        size = b->end - b->last;
    15361536
    1537         if (size && src->read->ready && !src->read->delayed) {
    1538 
     1537        if (size && src->read->ready && !src->read->delayed
     1538            && !src->read->error)
     1539        {
    15391540            if (limit_rate) {
    15401541                limit = (off_t) limit_rate * (ngx_time() - u->start_sec + 1)
Note: See TracChangeset for help on using the changeset viewer.