aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2020-02-28 13:09:51 +0300
committerSergey Kandaurov <pluknet@nginx.com>2020-02-28 13:09:51 +0300
commite92cb24f40b865e3cc5b9f0993e328e4f0642e0f (patch)
treed1dc4924b24bb6365add78c80c0ddabbd819b728 /src/http/ngx_http_core_module.c
parent84510c9f1f06f9794e482972e23cdfc139ad7247 (diff)
downloadnginx-e92cb24f40b865e3cc5b9f0993e328e4f0642e0f.tar.gz
nginx-e92cb24f40b865e3cc5b9f0993e328e4f0642e0f.zip
HTTP UDP layer, QUIC support autotest.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 4867bed2b..b0c8aabfc 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -3800,6 +3800,7 @@ ngx_http_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
ngx_memzero(&lsopt, sizeof(ngx_http_listen_opt_t));
lsopt.backlog = NGX_LISTEN_BACKLOG;
+ lsopt.type = SOCK_STREAM;
lsopt.rcvbuf = -1;
lsopt.sndbuf = -1;
#if (NGX_HAVE_SETFIB)
@@ -3821,6 +3822,11 @@ ngx_http_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
continue;
}
+ if (ngx_strcmp(value[n].data, "quic") == 0) {
+ lsopt.type = SOCK_DGRAM;
+ continue;
+ }
+
if (ngx_strcmp(value[n].data, "bind") == 0) {
lsopt.set = 1;
lsopt.bind = 1;