diff options
| author | Roman Arutyunyan <arut@nginx.com> | 2022-11-01 17:00:35 +0400 |
|---|---|---|
| committer | Roman Arutyunyan <arut@nginx.com> | 2022-11-01 17:00:35 +0400 |
| commit | 0da752661530c145b3c5d1a739115b1968219732 (patch) | |
| tree | bda67fb50faff63a8d24401d836954037120d304 /src/http/ngx_http_core_module.c | |
| parent | 3123fac3e764b4706881ffcb8f8b554c1628c5e0 (diff) | |
| download | nginx-0da752661530c145b3c5d1a739115b1968219732.tar.gz nginx-0da752661530c145b3c5d1a739115b1968219732.tar.bz2 | |
Set default listen socket type in http.
The type field was added in 7999d3fbb765 at early stages of QUIC implementation
and was not initialized for default listen. Missing initialization resulted in
default listen socket creation error.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
| -rw-r--r-- | src/http/ngx_http_core_module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 78a9e5ea7..248fa80ea 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -3008,6 +3008,7 @@ ngx_http_core_server(ngx_conf_t *cf, ngx_command_t *cmd, void *dummy) lsopt.socklen = sizeof(struct sockaddr_in); lsopt.backlog = NGX_LISTEN_BACKLOG; + lsopt.type = SOCK_STREAM; lsopt.rcvbuf = -1; lsopt.sndbuf = -1; #if (NGX_HAVE_SETFIB) |
