diff options
author | Valentin Bartenev <vbart@nginx.com> | 2013-02-27 17:12:48 +0000 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2013-02-27 17:12:48 +0000 |
commit | 64932a971437aa0b83966b1c59ff5d603816bb92 (patch) | |
tree | d2c4b37694d7abda0003de74a6cc5766fb421f2b /src/http/ngx_http_request.h | |
parent | e1d8158b5e7b2cc3c3f0d1b9ed61f94ccb44e3f1 (diff) | |
download | nginx-64932a971437aa0b83966b1c59ff5d603816bb92.tar.gz nginx-64932a971437aa0b83966b1c59ff5d603816bb92.zip |
SNI: reuse selected configuration for all requests in a connection.
Previously, only the first request in a connection was assigned the
configuration selected by SNI. All subsequent requests initially
used the default server's configuration, ignoring SNI, which was
wrong.
Now all subsequent requests in a connection will initially use the
configuration selected by SNI. This is done by storing a pointer
to configuration in http connection object. It points to default
server's configuration initially, but changed upon receipt of SNI.
(The request's configuration can be further refined when parsing
the request line and Host: header.)
This change was not made specific to SNI as it also allows slightly
faster access to configuration without the request object.
Diffstat (limited to 'src/http/ngx_http_request.h')
-rw-r--r-- | src/http/ngx_http_request.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_request.h b/src/http/ngx_http_request.h index 7ceea6225..a2df0c6f2 100644 --- a/src/http/ngx_http_request.h +++ b/src/http/ngx_http_request.h @@ -293,6 +293,7 @@ typedef struct ngx_http_addr_conf_s ngx_http_addr_conf_t; typedef struct { ngx_http_addr_conf_t *addr_conf; + ngx_http_conf_ctx_t *conf_ctx; ngx_http_request_t *request; |