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:
parent
ecc63d0d3b
commit
ec013f3a17
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user