]> git.kaiwu.me - nginx.git/commit
SSL: fixed ssl_buffer_size on SNI virtual hosts (ticket #1192).
authorMaxim Dounin <mdounin@mdounin.ru>
Thu, 2 Feb 2017 17:29:16 +0000 (20:29 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Thu, 2 Feb 2017 17:29:16 +0000 (20:29 +0300)
commit4abafc85d612f3348c38e5294124f27a2e4681df
treea296b575e90602c2af45e3edbb3d142fef0f6c08
parentc76ccae991e5a1b90883d67f3398af92e8fc15c8
SSL: fixed ssl_buffer_size on SNI virtual hosts (ticket #1192).

Previously, buffer size was not changed from the one saved during
initial ngx_ssl_create_connection(), even if the buffer itself was not
yet created.  Fix is to change c->ssl->buffer_size in the SNI callback.

Note that it should be also possible to update buffer size even in non-SNI
virtual hosts as long as the buffer is not yet allocated.  This looks
like an overcomplication though.
src/http/ngx_http_request.c