mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-13 14:45:38 +02: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:
@@ -523,6 +523,13 @@ void zmq::session_base_t::timer_event (int id_)
|
||||
_pipe->terminate (false);
|
||||
}
|
||||
|
||||
void zmq::session_base_t::process_conn_failed ()
|
||||
{
|
||||
std::string *ep = new (std::string);
|
||||
_addr->to_string (*ep);
|
||||
send_term_endpoint (_socket, ep);
|
||||
}
|
||||
|
||||
void zmq::session_base_t::reconnect ()
|
||||
{
|
||||
// For delayed connect situations, terminate the pipe
|
||||
|
Reference in New Issue
Block a user