We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2983264 commit ee4a53eCopy full SHA for ee4a53e
kafka/conn.py
@@ -790,7 +790,8 @@ def send_pending_requests(self):
790
if self.state not in (ConnectionStates.AUTHENTICATING,
791
ConnectionStates.CONNECTED):
792
return Errors.NodeNotReadyError(str(self))
793
- data = self._protocol.send_bytes()
+ with self._lock:
794
+ data = self._protocol.send_bytes()
795
try:
796
# In the future we might manage an internal write buffer
797
# and send bytes asynchronously. For now, just block
0 commit comments