diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-23 08:05:10 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-23 08:05:10 -0800 |
| commit | 6d54a51c87eb6d98b53eded8ca962a0e3a372f9e (patch) | |
| tree | 3c4ebe182609ddc420b119f4a3a6ebfe0c0bdb78 /src/sp | |
| parent | d142185f3fa980e6099c3f07d37ad2c327e031c6 (diff) | |
| download | nng-6d54a51c87eb6d98b53eded8ca962a0e3a372f9e.tar.gz nng-6d54a51c87eb6d98b53eded8ca962a0e3a372f9e.tar.bz2 nng-6d54a51c87eb6d98b53eded8ca962a0e3a372f9e.zip | |
Remove u_rawurl member of URL.
This means that most URLs can now be used without any allocations
needed. It eliminates some failure paths.
Diffstat (limited to 'src/sp')
| -rw-r--r-- | src/sp/transport/inproc/inproc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |
