diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-01-24 08:45:53 -0800 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-01-24 08:45:53 -0800 |
| commit | 4c496d8182b5f3a5db6ca8fd763bab444e39f48a (patch) | |
| tree | 1ec220c70d08951ce0f37d58255bd49d485c7701 /src/core/socket.c | |
| parent | 7df0822d3ed58ee73918cac576c0b07363e84425 (diff) | |
| download | nng-4c496d8182b5f3a5db6ca8fd763bab444e39f48a.tar.gz nng-4c496d8182b5f3a5db6ca8fd763bab444e39f48a.tar.bz2 nng-4c496d8182b5f3a5db6ca8fd763bab444e39f48a.zip | |
Implement reconnect timer including backoff.
This allows us to enable the last test case for compat_reqrep.
Diffstat (limited to 'src/core/socket.c')
| -rw-r--r-- | src/core/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index 24078941..b0ce172f 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -274,7 +274,7 @@ nni_sock_open(nni_sock **sockp, uint16_t pnum) sock->s_rcvtimeo = -1; sock->s_closing = 0; sock->s_reconn = NNI_SECOND; - sock->s_reconnmax = NNI_SECOND; + sock->s_reconnmax = 0; sock->s_reapexit = 0; NNI_LIST_INIT(&sock->s_pipes, nni_pipe, p_node); NNI_LIST_INIT(&sock->s_reaps, nni_pipe, p_node); |
