aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2018-08-29 15:56:42 +0300
committerRoman Arutyunyan <arut@nginx.com>2018-08-29 15:56:42 +0300
commitd9908c6c9a8ef01b36dc604ace4c00c09135372e (patch)
treec1ba2dbc26a26180b177c0af24cdbea60b0276c2 /src/http/ngx_http_request.c
parent73d467cecd4fa6efc748a1186782154931269e36 (diff)
downloadnginx-d9908c6c9a8ef01b36dc604ace4c00c09135372e.tar.gz
nginx-d9908c6c9a8ef01b36dc604ace4c00c09135372e.zip
Stream: avoid potential infinite loop at preread phase.
Previously the preread phase code ignored NGX_AGAIN value returned from c->recv() and relied only on c->read->ready. But this flag is not reliable and should only be checked for optimization purposes. For example, when using SSL, c->read->ready may be set when no input is available. This can lead to calling preread handler infinitely in a loop.
Diffstat (limited to 'src/http/ngx_http_request.c')
0 files changed, 0 insertions, 0 deletions