Welcome! Log In Create A New Profile

Advanced

Re: DTLS patches

All files from this thread

File Name File Size   Posted by Date  
0001-Retain-CAP_NET_BIND_SERVICE-capability-for-udp-privi.patch 3.5 KB open | download shankerwangmiao 02/21/2018 Read message
Vladimir Homutov
February 21, 2018 05:20AM
On Wed, Feb 21, 2018 at 12:18:27PM +0800, Wang Shanker wrote:
> Hi, Vladimir
>
> `ngx_stream_ssl_init_connection` trys to set tcp_nodelay on the given connection.
> The following patch adds a test for the type of connection before set.
>
> Cheers,
>
> Miao Wang
>
> diff --git a/src/stream/ngx_stream_ssl_module.c b/src/stream/ngx_stream_ssl_module.c
> index f85bbb6..36f7fdd 100644
> --- a/src/stream/ngx_stream_ssl_module.c
> +++ b/src/stream/ngx_stream_ssl_module.c
> @@ -369,7 +369,7 @@ ngx_stream_ssl_init_connection(ngx_ssl_t *ssl, ngx_connection_t *c)
>
> cscf = ngx_stream_get_module_srv_conf(s, ngx_stream_core_module);
>
> - if (cscf->tcp_nodelay && ngx_tcp_nodelay(c) != NGX_OK) {
> + if (cscf->tcp_nodelay && c->type == SOCK_STREAM && ngx_tcp_nodelay(c) != NGX_OK) {
> return NGX_ERROR;
> }
>
>

Hi, Miao

The change is indeed correct, it is required since
http://hg.nginx.org/nginx/rev/29c6d66b83ba

Have you tried patches in work?
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

DTLS patches

Vladimir Homutov May 18, 2017 05:26AM

Re: DTLS patches

George May 18, 2017 10:29AM

Re: DTLS patches

Vladimir Homutov May 18, 2017 10:52AM

Re: DTLS patches

George May 18, 2017 07:52PM

Re: DTLS patches

shankerwangmiao February 20, 2018 11:20PM

Re: DTLS patches

Vladimir Homutov February 21, 2018 05:20AM

Re: DTLS patches

shankerwangmiao February 21, 2018 08:47AM

Re: DTLS patches

Vladimir Homutov February 21, 2018 09:14AM

Re: DTLS patches

shankerwangmiao February 21, 2018 09:32AM

Re: DTLS patches Attachments

shankerwangmiao February 21, 2018 09:46AM

Re: DTLS patches

Vladimir Homutov February 21, 2018 10:36AM

Re: DTLS patches

shankerwangmiao February 21, 2018 10:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 176
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready