DTLS patches
Wang Shanker
shankerwangmiao at gmail.com
Wed Feb 21 04:18:27 UTC 2018
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;
}
> Hello all,
>
> For all those interested in testing DTLS support, experimental patch
> is now available at
> http://nginx.org/patches/dtls/
>
>
> Check the README.txt for details .
>
> If you have any feedback, please report to this thread.
>
More information about the nginx
mailing list