From 790e4de4453b0f016974aed1cc89a3ac47ba60c2 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 28 Dec 2016 22:55:17 -0800 Subject: Pipe ID calculations & socket error functions. The use of platform_next_id was a bit off, because it could give back pipe IDs that were too large (the high order bit must be clear), and in very long running applications serving many connections, the IDs could wrap and lead to duplicates. Also we have added functions to set the recverr or senderr values, which can be used by protocols -- either during initialization, or during filters. (REQ uses this for example.) --- src/core/pipe.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/core/pipe.c') diff --git a/src/core/pipe.c b/src/core/pipe.c index 0a7bbed1..15ae393b 100644 --- a/src/core/pipe.c +++ b/src/core/pipe.c @@ -89,7 +89,6 @@ nni_pipe_create(nni_pipe **pp, nni_endpt *ep) p->p_trandata = NULL; p->p_protdata = NULL; p->p_ops = *ep->ep_ops.ep_pipe_ops; - p->p_id = nni_plat_nextid(); p->p_ep = ep; p->p_sock = ep->ep_sock; if (ep->ep_dialer != NULL) { -- cgit v1.2.3-70-g09d2