mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01: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;
|
char syncFlag;
|
||||||
unsigned int numBytes = 1;
|
unsigned int numBytes = 1;
|
||||||
if (!NormStreamRead (stream, &syncFlag, &numBytes)) {
|
if (!NormStreamRead (stream, &syncFlag, &numBytes)) {
|
||||||
// broken stream (shouldn't happen after seek msg start?)
|
// broken stream (can happen on late-joining subscriber)
|
||||||
zmq_assert (false);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (0 == numBytes) {
|
if (0 == numBytes) {
|
||||||
|
Loading…
Reference in New Issue
Block a user