]> git.kaiwu.me - nginx.git/commit
SSL: do not treat SSL handshake as request.
authorValentin Bartenev <vbart@nginx.com>
Wed, 27 Feb 2013 17:21:21 +0000 (17:21 +0000)
committerValentin Bartenev <vbart@nginx.com>
Wed, 27 Feb 2013 17:21:21 +0000 (17:21 +0000)
commitd281d0ba8b779b591e96ef237ff149e3d521264f
treefc7534926b1d84f131b2dcfc3c885e62c003926a
parent167aabf2b365073c383a7b80521a90f87d6e0a69
SSL: do not treat SSL handshake as request.

The request object will not be created until SSL handshake is complete.
This simplifies adding another connection handler that does not need
request object right after handshake (e.g., SPDY).

There are also a few more intentional effects:

 - the "client_header_buffer_size" directive will be taken from the
   server configuration that was negotiated by SNI;

 - SSL handshake errors and timeouts are not logged into access log
   as bad requests;

 - ngx_ssl_create_connection() is not called until the first byte of
   ClientHello message was received.  This also decreases memory
   consumption if plain HTTP request is sent to SSL socket.
src/http/ngx_http_request.c
src/http/ngx_http_request.h