From 6d54a51c87eb6d98b53eded8ca962a0e3a372f9e Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 23 Nov 2024 08:05:10 -0800 Subject: Remove u_rawurl member of URL. This means that most URLs can now be used without any allocations needed. It eliminates some failure paths. --- src/sp/transport/inproc/inproc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sp') diff --git a/src/sp/transport/inproc/inproc.c b/src/sp/transport/inproc/inproc.c index 5216b5e6..6a3e3ee3 100644 --- a/src/sp/transport/inproc/inproc.c +++ b/src/sp/transport/inproc/inproc.c @@ -299,7 +299,7 @@ inproc_dialer_init(void **epp, nng_url *url, nni_dialer *ndialer) NNI_LIST_INIT(&ep->clients, inproc_ep, node); nni_aio_list_init(&ep->aios); - ep->addr = url->u_rawurl; // we match on the full URL. + ep->addr = url->u_path; // we match on the URL path. *epp = ep; return (0); @@ -322,7 +322,7 @@ inproc_listener_init(void **epp, nng_url *url, nni_listener *nlistener) NNI_LIST_INIT(&ep->clients, inproc_ep, node); nni_aio_list_init(&ep->aios); - ep->addr = url->u_rawurl; // we match on the full URL. + ep->addr = url->u_path; // we match on the path *epp = ep; return (0); -- cgit v1.2.3-70-g09d2