Changeset 7125:b8fc701daf8e in nginx


Ignore:
Timestamp:
10/09/17 12:59:10 (2 years ago)
Author:
Maxim Dounin <mdounin@…>
Branch:
default
Phase:
public
Message:

Upstream: even better handling of invalid headers in cache files.

When parsing of headers in a cache file fails, already parsed headers
need to be cleared, and protocol state needs to be reinitialized. To do
so, u->request_sent is now set to ensure ngx_http_upstream_reinit() will
be called.

This change complements improvements in 46ddff109e72.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/http/ngx_http_upstream.c

    r7117 r7125  
    585585                u->buffer.start = NULL;
    586586                u->cache_status = NGX_HTTP_CACHE_MISS;
     587                u->request_sent = 1;
    587588            }
    588589
Note: See TracChangeset for help on using the changeset viewer.