diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-10-20 23:43:44 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-10-20 23:43:44 -0700 |
| commit | 53e8dbbe3c2bd82fb7ac8583a45e7fcfec173cc1 (patch) | |
| tree | 173a51c6094fc9aecb9f8baea550a5c3ac29974c /src/platform/posix | |
| parent | d05ff4934e57c55841a12a41eea41934267150ae (diff) | |
| download | nng-53e8dbbe3c2bd82fb7ac8583a45e7fcfec173cc1.tar.gz nng-53e8dbbe3c2bd82fb7ac8583a45e7fcfec173cc1.tar.bz2 nng-53e8dbbe3c2bd82fb7ac8583a45e7fcfec173cc1.zip | |
remove legacy support for configuration of transport options on socket
Transport specific options should be configured on the end point.
This has the most impact for TLS, as TLS dialers and listeners will
need to be allocated apriori, to configure TLS options.
Some legacy tests were removed... we're going to remove the legacy
libnanomsg compatibility layer anyway.
Diffstat (limited to 'src/platform/posix')
| -rw-r--r-- | src/platform/posix/posix_tcpdial.c | 3 | ||||
| -rw-r--r-- | src/platform/posix/posix_tcplisten.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/platform/posix/posix_tcpdial.c b/src/platform/posix/posix_tcpdial.c index cf3d9368..6aea8ae5 100644 --- a/src/platform/posix/posix_tcpdial.c +++ b/src/platform/posix/posix_tcpdial.c @@ -37,7 +37,8 @@ nni_tcp_dialer_init(nni_tcp_dialer **dp) return (NNG_ENOMEM); } nni_mtx_init(&d->mtx); - d->closed = false; + d->closed = false; + d->nodelay = true; nni_aio_list_init(&d->connq); nni_atomic_init_bool(&d->fini); nni_atomic_init64(&d->ref); diff --git a/src/platform/posix/posix_tcplisten.c b/src/platform/posix/posix_tcplisten.c index 95be4beb..a38411c5 100644 --- a/src/platform/posix/posix_tcplisten.c +++ b/src/platform/posix/posix_tcplisten.c @@ -1,5 +1,5 @@ // -// Copyright 2020 Staysail Systems, Inc. <info@staysail.tech> +// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech> // Copyright 2018 Capitar IT Group BV <info@capitar.com> // Copyright 2018 Devolutions <info@devolutions.net> // @@ -56,6 +56,7 @@ nni_tcp_listener_init(nni_tcp_listener **lp) l->pfd = NULL; l->closed = false; l->started = false; + l->nodelay = true; nni_aio_list_init(&l->acceptq); *lp = l; |
