From 09b31812fa2af4e67d9d9193aaae0d7111ded15f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 16 Jul 2017 12:36:32 -0700 Subject: Fix locking errors in endpoints, and simplify some logic. This cleans up the pipe creation logic greatly, and eliminates a nasty potential deadlock (lock-order incorrect.) It also adds a corret binary exponential and randomized backoff on both accept and connect. --- src/core/socket.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/socket.h') diff --git a/src/core/socket.h b/src/core/socket.h index 56cf60c0..6516de7e 100644 --- a/src/core/socket.h +++ b/src/core/socket.h @@ -95,8 +95,8 @@ extern void nni_sock_pipe_stop(nni_sock *, nni_pipe *); // nni_sock_pipe_ready lets the socket know the pipe is ready for // business. This also calls the socket/protocol specific add function, -// and it may return an error. A reference count on the pipe is incremented -// on success. The reference count should be dropped by nni_sock_pipe_closed. +// and it may return an error. The reference count should be dropped by +// nni_sock_pipe_closed. extern int nni_sock_pipe_ready(nni_sock *, nni_pipe *); // Set error codes for applications. These are only ever -- cgit v1.2.3-70-g09d2