diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-21 22:20:50 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-21 22:20:50 -0800 |
| commit | 8abf99028c3c3d26f0eba76fa4b3437c082a8874 (patch) | |
| tree | 936f27881ac72579dab7161f4136d417c75ccf3c /src/core/sockimpl.h | |
| parent | 73b3ed5a38cdd2312351ea8f19c3c89cbfc1154c (diff) | |
| download | nng-8abf99028c3c3d26f0eba76fa4b3437c082a8874.tar.gz nng-8abf99028c3c3d26f0eba76fa4b3437c082a8874.tar.bz2 nng-8abf99028c3c3d26f0eba76fa4b3437c082a8874.zip | |
Avoid extra allocs for listener url.
Diffstat (limited to 'src/core/sockimpl.h')
| -rw-r--r-- | src/core/sockimpl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/sockimpl.h b/src/core/sockimpl.h index deb226e4..8e2abb18 100644 --- a/src/core/sockimpl.h +++ b/src/core/sockimpl.h @@ -63,7 +63,6 @@ struct nni_listener { uint32_t l_id; // endpoint id nni_list_node l_node; // per socket list nni_sock *l_sock; - nng_url *l_url; int l_ref; bool l_closed; // full shutdown nni_atomic_flag l_closing; // close started (shutdown) @@ -72,6 +71,7 @@ struct nni_listener { nni_aio l_acc_aio; nni_aio l_tmo_aio; nni_reap_node l_reap; + nng_url l_url; #ifdef NNG_ENABLE_STATS nni_stat_item st_root; |
