revert not sending Batches to disconnected
@@ -836,10 +836,6 @@ class ZStack(NetworkInterface):
logger.warning('Remote {} is not connected - message will not be sent immediately.'
'If this problem does not resolve itself - check your firewall settings'
.format(z85_to_friendly(uid)))
- # We should not stash ping/pongs as this may lead to incorrect reconnection logic
- # (replying by old pongs for new connection and masking connection issues)
- # TODO: since we can not remove ping/pongs from Batches at this phase, just do not stash Batches at all
- if not is_batch:
self._stashed_to_disconnected \
.setdefault(uid, deque(maxlen=self.config.ZMQ_STASH_TO_NOT_CONNECTED_QUEUE_SIZE)) \
.append(msg)
