The official NGINX Open Source repository.
Go to file
Maxim Dounin c231640eba Upstream: fixed timeouts with gRPC, SSL and select (ticket #2229).
With SSL it is possible that an established connection is ready for
reading after the handshake.  Further, events might be already disabled
in case of level-triggered event methods.  If this happens and
ngx_http_upstream_send_request() blocks waiting for some data from
the upstream, such as flow control in case of gRPC, the connection
will time out due to no read events on the upstream connection.

Fix is to explicitly check the c->read->ready flag if sending request
blocks and post a read event if it is set.

Note that while it is possible to modify ngx_ssl_handshake() to keep
read events active, this won't completely resolve the issue, since
there can be data already received during the SSL handshake
(see 573bd30e46b4).
2021-08-20 03:53:56 +03:00
auto Configure: fixed --test-build-epoll on FreeBSD 13. 2021-04-05 20:14:16 +03:00
conf MIME: added application/wasm type (ticket #1606). 2021-05-08 20:31:03 +03:00
contrib Contrib: vim syntax, update core and 3rd party module directives. 2021-05-30 12:26:00 +03:00
docs Dark mode support in welcome and 50x error pages. 2021-08-16 16:36:08 +03:00
misc Updated OpenSSL used for win32 builds. 2021-03-30 17:44:36 +03:00
src Upstream: fixed timeouts with gRPC, SSL and select (ticket #2229). 2021-08-20 03:53:56 +03:00
.hgtags release-1.21.1 tag 2021-07-06 17:59:17 +03:00