aboutsummaryrefslogtreecommitdiff
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/ipc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ipc.c b/tests/ipc.c
index 69fe36d0..d8752a70 100644
--- a/tests/ipc.c
+++ b/tests/ipc.c
@@ -15,4 +15,6 @@
TestMain("IPC Transport", {
trantest_test_all("ipc:///tmp/nng_ipc_test");
+
+ nng_fini();
})