From 452ecf5ae83adc9ae77518746f4f81171c42248c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 31 Oct 2020 18:47:07 -0700 Subject: fixes #1311 reduce wasted use for nni_aio fixes #1317 IPv6 listener get port is incorrect fixes #1319 Want symbolic service names This is phase 1 of reducing the memory foot-print of aios, and also of pipes. This removes the largest consumer the socket address information, from the aio, which was only used by a few consumers. --- src/transport/tcp/tcp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/transport/tcp') diff --git a/src/transport/tcp/tcp.c b/src/transport/tcp/tcp.c index aee917e9..c240f4ef 100644 --- a/src/transport/tcp/tcp.c +++ b/src/transport/tcp/tcp.c @@ -728,11 +728,8 @@ tcptran_url_parse_source(nng_url *url, nng_sockaddr *sa, const nng_url *surl) return (rv); } - nni_tcp_resolv(src, 0, af, 1, aio); + nni_resolv_ip(src, "0", af, true, sa, aio); nni_aio_wait(aio); - if ((rv = nni_aio_result(aio)) == 0) { - nni_aio_get_sockaddr(aio, sa); - } nni_aio_free(aio); nni_free(src, len + 1); return (rv); -- cgit v1.2.3-70-g09d2