aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.h
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2013-02-27 17:12:48 +0000
committerValentin Bartenev <vbart@nginx.com>2013-02-27 17:12:48 +0000
commit64932a971437aa0b83966b1c59ff5d603816bb92 (patch)
treed2c4b37694d7abda0003de74a6cc5766fb421f2b /src/http/ngx_http_request.h
parente1d8158b5e7b2cc3c3f0d1b9ed61f94ccb44e3f1 (diff)
downloadnginx-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.h1
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;