From a1f485bba51c56305537f3308a777035ea7c514d Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 14 Aug 2018 18:08:36 +0500 Subject: fixes #652 dial has no timeout with UNIX domain sockets --- src/transport/ipc/ipc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/transport/ipc/ipc.c b/src/transport/ipc/ipc.c index 8141b588..5d0064e5 100644 --- a/src/transport/ipc/ipc.c +++ b/src/transport/ipc/ipc.c @@ -175,6 +175,11 @@ ipctran_pipe_init(ipctran_pipe **pipep, ipctran_ep *ep) nni_atomic_flag_reset(&p->reaped); nni_list_append(&ep->pipes, p); + // 5 seconds each for connection and negotiation; should be more than + // sufficient. + nni_aio_set_timeout(p->connaio, 5000); + nni_aio_set_timeout(p->negoaio, 5000); + p->proto = ep->proto; p->rcvmax = ep->rcvmax; p->sa = ep->sa; -- cgit v1.2.3-70-g09d2