problem: zeromq connects peer before handshake is completed

Solution: delay connecting the peer pipe until the handshake is completed
This commit is contained in:
Doron Somech
2020-05-13 17:32:06 +03:00
parent 18cacf2ec1
commit e7f0090b16
13 changed files with 47 additions and 14 deletions

View File

@@ -67,7 +67,7 @@ zmq::raw_engine_t::raw_engine_t (
fd_t fd_,
const options_t &options_,
const endpoint_uri_pair_t &endpoint_uri_pair_) :
stream_engine_base_t (fd_, options_, endpoint_uri_pair_)
stream_engine_base_t (fd_, options_, endpoint_uri_pair_, false)
{
}