diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-16 12:36:32 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-16 12:36:32 -0700 |
| commit | 09b31812fa2af4e67d9d9193aaae0d7111ded15f (patch) | |
| tree | cc0b1fce9c5ce181ac86430e2c49f11ae63714c0 /src/core/socket.h | |
| parent | b48b18b6be688d9611b71ca60d51491c5b5127c6 (diff) | |
| download | nng-09b31812fa2af4e67d9d9193aaae0d7111ded15f.tar.gz nng-09b31812fa2af4e67d9d9193aaae0d7111ded15f.tar.bz2 nng-09b31812fa2af4e67d9d9193aaae0d7111ded15f.zip | |
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.
Diffstat (limited to 'src/core/socket.h')
| -rw-r--r-- | src/core/socket.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
