diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-02 12:58:53 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-02 12:58:53 -0700 |
| commit | 424c2238c97d26d8d5fb30fb1449a96396269da0 (patch) | |
| tree | a5d3ed01e348f4644b06d630a3e92997944152f6 /src/core/pipe.c | |
| parent | 53a22a96d49e8b44c7e70b59559db87f57158a82 (diff) | |
| download | nng-424c2238c97d26d8d5fb30fb1449a96396269da0.tar.gz nng-424c2238c97d26d8d5fb30fb1449a96396269da0.tar.bz2 nng-424c2238c97d26d8d5fb30fb1449a96396269da0.zip | |
Transports allocate their pipe structures during connect & accept.
Diffstat (limited to 'src/core/pipe.c')
| -rw-r--r-- | src/core/pipe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/pipe.c b/src/core/pipe.c index 791ba4aa..ebf7adef 100644 --- a/src/core/pipe.c +++ b/src/core/pipe.c @@ -192,11 +192,13 @@ nni_pipe_create(nni_pipe **pp, nni_ep *ep, nni_sock *sock, nni_tran *tran) // Save the protocol destructor. p->p_proto_dtor = sock->s_pipe_ops.pipe_fini; +#if 0 // Initialize the transport pipe data. if ((rv = p->p_tran_ops.p_init(&p->p_tran_data)) != 0) { nni_objhash_unref(nni_pipes, p->p_id); return (rv); } +#endif // Initialize protocol pipe data. rv = sock->s_pipe_ops.pipe_init(&p->p_proto_data, p, sock->s_data); |
