From e88f07b434dbcfdb57435a14e1beadcdae3cef0d Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 24 Jan 2017 19:26:31 -0800 Subject: Add endpoint tuning of maxrcv size. Fix cmsg API. The CMSG handling was completely borked. This is fixed now, and we stash the SP header size (ugh) in the CMSG contents to match what nanomsg does. We now pass the cmsg validation test. We also fixed handling of certain endpoint-related options, so that endpoints can get options from the socket at initialization time. This required a minor change to the transport API for endpoints. Finally, we fixed a critical fault in the REP handling of RAW sockets, which caused them to always return NNG_ESTATE in all cases. It should now honor the actual socket option. --- src/core/endpt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/endpt.c') diff --git a/src/core/endpt.c b/src/core/endpt.c index c0890cd3..9411c220 100644 --- a/src/core/endpt.c +++ b/src/core/endpt.c @@ -131,7 +131,7 @@ nni_ep_create(nni_ep **epp, nni_sock *sock, const char *addr) return (NNG_ECLOSED); } - rv = ep->ep_ops.ep_init(&ep->ep_data, addr, nni_sock_proto(sock)); + rv = ep->ep_ops.ep_init(&ep->ep_data, addr, sock); if (rv != 0) { nni_mtx_unlock(&sock->s_mx); nni_cv_fini(&ep->ep_cv); -- cgit v1.2.3-70-g09d2