diff options
author | Valentin Bartenev <vbart@nginx.com> | 2013-02-27 17:21:21 +0000 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2013-02-27 17:21:21 +0000 |
commit | d281d0ba8b779b591e96ef237ff149e3d521264f (patch) | |
tree | fc7534926b1d84f131b2dcfc3c885e62c003926a /src/http/ngx_http_request.h | |
parent | 167aabf2b365073c383a7b80521a90f87d6e0a69 (diff) | |
download | nginx-d281d0ba8b779b591e96ef237ff149e3d521264f.tar.gz nginx-d281d0ba8b779b591e96ef237ff149e3d521264f.zip |
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.
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r-- | src/http/ngx_http_request.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h index a2df0c6f2..c4b6422c4 100644 --- a/src/http/ngx_http_request.h +++ b/src/http/ngx_http_request.h @@ -303,7 +303,8 @@ typedef struct { ngx_buf_t **free; ngx_int_t nfree; - ngx_uint_t pipeline; /* unsigned pipeline:1; */ + unsigned pipeline:1; + unsigned ssl:1; } ngx_http_connection_t; @@ -492,7 +493,6 @@ struct ngx_http_request_s { #endif unsigned pipeline:1; - unsigned plain_http:1; unsigned chunked:1; unsigned header_only:1; unsigned keepalive:1; |