aboutsummaryrefslogtreecommitdiff
path: root/src/transport/ipc
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2018-08-08 06:40:41 +0300
committerGarrett D'Amore <garrett@damore.org>2018-08-13 09:55:32 +0500
commit5b61fa0e04348ee7661dbb19bc9c50ca22af74dc (patch)
tree456b452db00d26ec245343c8378af4c6e8a4c146 /src/transport/ipc
parente7e0306b9c4ff39597c681cb5cba724edc5cca0d (diff)
downloadnng-5b61fa0e04348ee7661dbb19bc9c50ca22af74dc.tar.gz
nng-5b61fa0e04348ee7661dbb19bc9c50ca22af74dc.tar.bz2
nng-5b61fa0e04348ee7661dbb19bc9c50ca22af74dc.zip
fixes #632 TCP start elimination
While here, perform a more aggressive close of the pipe on reaping (IPC).
Diffstat (limited to 'src/transport/ipc')
-rw-r--r--src/transport/ipc/ipc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/transport/ipc/ipc.c b/src/transport/ipc/ipc.c
index 11a0c890..7ba5bc52 100644
--- a/src/transport/ipc/ipc.c
+++ b/src/transport/ipc/ipc.c
@@ -149,6 +149,9 @@ static void
ipctran_pipe_reap(ipctran_pipe *p)
{
if (!nni_atomic_flag_test_and_set(&p->reaped)) {
+ if (p->conn != NULL) {
+ nni_ipc_conn_close(p->conn);
+ }
nni_reap(&p->reap, ipctran_pipe_fini, p);
}
}