Mercurial > hg > nginx-quic
comparison src/http/ngx_http_request.h @ 5091:d3e256c67d6d
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.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Wed, 27 Feb 2013 17:21:21 +0000 |
parents | 903f2a5d86a5 |
children | 68ca3e824115 |
comparison
equal
deleted
inserted
replaced
5090:9db95b275755 | 5091:d3e256c67d6d |
---|---|
301 ngx_int_t nbusy; | 301 ngx_int_t nbusy; |
302 | 302 |
303 ngx_buf_t **free; | 303 ngx_buf_t **free; |
304 ngx_int_t nfree; | 304 ngx_int_t nfree; |
305 | 305 |
306 ngx_uint_t pipeline; /* unsigned pipeline:1; */ | 306 unsigned pipeline:1; |
307 unsigned ssl:1; | |
307 } ngx_http_connection_t; | 308 } ngx_http_connection_t; |
308 | 309 |
309 | 310 |
310 typedef void (*ngx_http_cleanup_pt)(void *data); | 311 typedef void (*ngx_http_cleanup_pt)(void *data); |
311 | 312 |
490 #if 0 | 491 #if 0 |
491 unsigned cacheable:1; | 492 unsigned cacheable:1; |
492 #endif | 493 #endif |
493 | 494 |
494 unsigned pipeline:1; | 495 unsigned pipeline:1; |
495 unsigned plain_http:1; | |
496 unsigned chunked:1; | 496 unsigned chunked:1; |
497 unsigned header_only:1; | 497 unsigned header_only:1; |
498 unsigned keepalive:1; | 498 unsigned keepalive:1; |
499 unsigned lingering_close:1; | 499 unsigned lingering_close:1; |
500 unsigned discard_body:1; | 500 unsigned discard_body:1; |