aboutsummaryrefslogtreecommitdiff
path: root/src/core/pipe.h
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-07-05 15:51:29 -0700
committerGarrett D'Amore <garrett@damore.org>2017-07-05 15:51:29 -0700
commit372d03889b1398016056d1641d31705b75d97c9a (patch)
treee26d06ee7e07820e8da08e9259832b2ce4180934 /src/core/pipe.h
parent0b08b59786e4af19f57bf00ebc20ee8f96453679 (diff)
downloadnng-372d03889b1398016056d1641d31705b75d97c9a.tar.gz
nng-372d03889b1398016056d1641d31705b75d97c9a.tar.bz2
nng-372d03889b1398016056d1641d31705b75d97c9a.zip
Move IPC negotiation out of connect/accept.
This prevents a slow partner from blocking new connections from being established on the server. Before this a single partner could cause the server to block waiting to complete the negotiation.
Diffstat (limited to 'src/core/pipe.h')
-rw-r--r--src/core/pipe.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/pipe.h b/src/core/pipe.h
index e8e6ecad..f7df8232 100644
--- a/src/core/pipe.h
+++ b/src/core/pipe.h
@@ -32,6 +32,7 @@ struct nni_pipe {
int p_stop;
nni_mtx p_mtx;
nni_taskq_ent p_reap_tqe;
+ nni_aio p_start_aio;
};
extern int nni_pipe_sys_init(void);