Mercurial > hg > nginx
comparison src/http/ngx_http_core_module.c @ 9036:6cf8ed15fd00 quic
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Tue, 01 Nov 2022 17:00:35 +0400 |
parents | 8d0753760546 |
children | 91ad1abfb285 |
comparison
equal
deleted
inserted
replaced
9035:3be953161026 | 9036:6cf8ed15fd00 |
---|---|
3006 sin->sin_addr.s_addr = INADDR_ANY; | 3006 sin->sin_addr.s_addr = INADDR_ANY; |
3007 | 3007 |
3008 lsopt.socklen = sizeof(struct sockaddr_in); | 3008 lsopt.socklen = sizeof(struct sockaddr_in); |
3009 | 3009 |
3010 lsopt.backlog = NGX_LISTEN_BACKLOG; | 3010 lsopt.backlog = NGX_LISTEN_BACKLOG; |
3011 lsopt.type = SOCK_STREAM; | |
3011 lsopt.rcvbuf = -1; | 3012 lsopt.rcvbuf = -1; |
3012 lsopt.sndbuf = -1; | 3013 lsopt.sndbuf = -1; |
3013 #if (NGX_HAVE_SETFIB) | 3014 #if (NGX_HAVE_SETFIB) |
3014 lsopt.setfib = -1; | 3015 lsopt.setfib = -1; |
3015 #endif | 3016 #endif |