diff options
| author | Garrett D'Amore <garrett@damore.org> | 2017-07-16 02:41:16 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2017-07-16 02:41:16 -0700 |
| commit | b4eeb0eebe2541f8213b8bad4d458cb9d72072ce (patch) | |
| tree | 62c6368e02da3d7a06f98077bfccde599519b3a3 /src/core/endpt.h | |
| parent | aede989d57eb947c0e0cfc6e23374541c78e4ff6 (diff) | |
| download | nng-b4eeb0eebe2541f8213b8bad4d458cb9d72072ce.tar.gz nng-b4eeb0eebe2541f8213b8bad4d458cb9d72072ce.tar.bz2 nng-b4eeb0eebe2541f8213b8bad4d458cb9d72072ce.zip | |
Reconnect automatically, but do backoff on failures. (Accept too!)
Diffstat (limited to 'src/core/endpt.h')
| -rw-r--r-- | src/core/endpt.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/core/endpt.h b/src/core/endpt.h index 3350bc59..2c14605c 100644 --- a/src/core/endpt.h +++ b/src/core/endpt.h @@ -38,7 +38,12 @@ struct nni_ep { nni_list ep_pipes; nni_aio ep_acc_aio; nni_aio ep_con_aio; - nni_aio ep_con_syn; // used for sync connect + nni_aio ep_con_syn; // used for sync connect + nni_aio ep_backoff; // backoff timer + nni_duration ep_maxrtime; // maximum time for reconnect + nni_duration ep_currtime; // current time for reconnect + nni_duration ep_inirtime; // initial time for reconnect + nni_time ep_conntime; // time of last good connect nni_taskq_ent ep_reap_tqe; }; |
