Welcome! Log In Create A New Profile

Advanced

Re: nginx-quic socket() 0.0.0.0:80 failed (94: Socket type not supported)

Sergey Kandaurov
November 10, 2022 08:34AM
On Tue, Nov 01, 2022 at 05:02:51PM +0400, Roman Arutyunyan wrote:

[..]

> # HG changeset patch
> # User Roman Arutyunyan <arut@nginx.com>
> # Date 1667307635 -14400
> # Tue Nov 01 17:00:35 2022 +0400
> # Branch quic
> # Node ID 40777e329eea363001186c4bf609d2ef0682bcee
> # Parent 598cbf105892bf9d7acc0fc3278ba9329b3a151c
> 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.
>
> diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
> --- 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
> 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)

Looks good, please commit.
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

nginx-quic socket() 0.0.0.0:80 failed (94: Socket type not supported)

George November 01, 2022 08:19AM

Re: nginx-quic socket() 0.0.0.0:80 failed (94: Socket type not supported)

Roman Arutyunyan November 01, 2022 09:04AM

Re: nginx-quic socket() 0.0.0.0:80 failed (94: Socket type not supported)

George November 01, 2022 10:18AM

Re: nginx-quic socket() 0.0.0.0:80 failed (94: Socket type not supported)

George November 01, 2022 10:25AM

Re: nginx-quic socket() 0.0.0.0:80 failed (94: Socket type not supported)

Sergey Kandaurov November 10, 2022 08:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 258
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready