[nginx] Upstream: reading from a client after connection upgrade.
mdounin at mdounin.ru
Wed Jan 22 12:05:24 UTC 2014
user: Maxim Dounin <mdounin at mdounin.ru>
date: Wed Jan 22 16:05:07 2014 +0400
Upstream: reading from a client after connection upgrade.
Read event on a client connection might have been disabled during
previous processing, and we at least need to handle events. Calling
ngx_http_upstream_process_upgraded() is a simpliest way to do it.
Notably this change is needed for select, poll and /dev/poll event
Previous version of this patch was posted here:
src/http/ngx_http_upstream.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diffs (16 lines):
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
@@ -2560,11 +2560,7 @@ ngx_http_upstream_upgrade(ngx_http_reque
ngx_http_upstream_process_upgraded(r, 1, 1);
- if (c->read->ready
- || r->header_in->pos != r->header_in->last)
- ngx_http_upstream_process_upgraded(r, 0, 1);
+ ngx_http_upstream_process_upgraded(r, 0, 1);
More information about the nginx-devel