mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-30 13:47:13 +01:00
add option to stop trying to reconnect on ECONNREFUSED (#3831)
* add option to stop trying to reconnect on ECONNREFUSED
This commit is contained in:
@@ -116,6 +116,10 @@ struct options_t
|
||||
// Default 0 (unused)
|
||||
int tcp_maxrt;
|
||||
|
||||
// Disable reconnect under certain conditions
|
||||
// Default 0
|
||||
int reconnect_stop;
|
||||
|
||||
// Minimum interval between attempts to reconnect, in milliseconds.
|
||||
// Default 100ms
|
||||
int reconnect_ivl;
|
||||
|
||||
Reference in New Issue
Block a user