]> git.kaiwu.me - nginx.git/commit
Merging r4010, r4065:
authorIgor Sysoev <igor@sysoev.ru>
Fri, 30 Sep 2011 13:42:59 +0000 (13:42 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 30 Sep 2011 13:42:59 +0000 (13:42 +0000)
commit86553d2e0a955c97846e621fb62a4d3550982ab1
tree21223243dad2be688c9c94ef9dc7d710d017bc20
parent4918eb4407b5edf62fe2add6aa140052e2d59e3d
Merging r4010, r4065:

SSL related fixes:

*) Fixing proxy_set_body and proxy_pass_request_body with SSL.

Flush flag wasn't set in constructed buffer and this prevented any data
from being actually sent to upstream due to SSL buffering.  Make sure
we always set flush in the last buffer we are going to sent.

See here for report:
http://nginx.org/pipermail/nginx-ru/2011-June/041552.html

*) Proper SSL shutdown handling.

If connection has unsent alerts, SSL_shutdown() tries to send them even
if SSL_set_shutdown(SSL_RECEIVED_SHUTDOWN|SSL_SENT_SHUTDOWN) was used.
This can be prevented by SSL_set_quiet_shutdown().  SSL_set_shutdown()
is required nevertheless to preserve session.
src/event/ngx_event_openssl.c
src/http/modules/ngx_http_proxy_module.c