0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-25 22:30:51 +08:00

fix assert error on late-joining subscriber after publisher has filled NORM buffer

This commit is contained in:
Jeffery Weston 2023-07-21 14:34:53 -04:00 committed by Luca Boccassi
parent ecc63d0d3b
commit ec013f3a17

View File

@ -557,8 +557,7 @@ void zmq::norm_engine_t::recv_data (NormObjectHandle object)
char syncFlag;
unsigned int numBytes = 1;
if (!NormStreamRead (stream, &syncFlag, &numBytes)) {
// broken stream (shouldn't happen after seek msg start?)
zmq_assert (false);
// broken stream (can happen on late-joining subscriber)
continue;
}
if (0 == numBytes) {