diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-08-14 15:57:57 +0500 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-08-14 15:57:57 +0500 |
| commit | 77311bfcc94bba96cdee73ddcd1ac9a6d0ed17d2 (patch) | |
| tree | 2a6e124e6121738d3628fdf6b227b076875b85d2 /src/core/pipe.h | |
| parent | 6c6bdba20795166d2909adfecfa2d152de410101 (diff) | |
| download | nng-77311bfcc94bba96cdee73ddcd1ac9a6d0ed17d2.tar.gz nng-77311bfcc94bba96cdee73ddcd1ac9a6d0ed17d2.tar.bz2 nng-77311bfcc94bba96cdee73ddcd1ac9a6d0ed17d2.zip | |
fixes #208 pipe start should occur before connect / accept
fixes #599 nng_dial sync should not return until added to socket
This reintroduces the changes for the above fixes, building upon the
transport modifications that we have made to eliminate the separate
transport pipe start entry point. It also includes slightly reworked
code during start to put a hold on the pipe when it is created, which
we we drop at the end, hopefully fixing a use-after-free.
Diffstat (limited to 'src/core/pipe.h')
| -rw-r--r-- | src/core/pipe.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/core/pipe.h b/src/core/pipe.h index 1d73ce51..1e2f2b5d 100644 --- a/src/core/pipe.h +++ b/src/core/pipe.h @@ -59,11 +59,6 @@ extern uint32_t nni_pipe_listener_id(nni_pipe *); // nni_pipe_dialer_id returns the dialer id for the pipe (or 0 if none). extern uint32_t nni_pipe_dialer_id(nni_pipe *); -// nni_pipe_closed returns true if nni_pipe_close was called. -// (This is used by the socket to determine if user closed the pipe -// during callback.) -extern bool nni_pipe_closed(nni_pipe *); - // nni_pipe_rele releases the hold on the pipe placed by nni_pipe_find. extern void nni_pipe_rele(nni_pipe *); |
