treat bind errors as a protocol_error instead of connection_error preventing an infinite loop of trying to create the udp socket as through the protocol_error the creation of the socket fails

This commit is contained in:
Arnaud Loonstra 2023-02-03 16:33:18 +01:00
parent acfdf67127
commit b261f9a678

View File

@ -195,7 +195,7 @@ void zmq::udp_engine_t::plug (io_thread_t *io_thread_, session_base_t *session_)
#endif
if (rc != 0) {
assert_success_or_recoverable (_fd, rc);
error (connection_error);
error (protocol_error);
return;
}