Skip to content

Commit 28aa93b

Browse files
authored
fix xid out of range
fix xid out of range (-2147483648 <= number <= 2147483647)
1 parent a4ef623 commit 28aa93b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kazoo/protocol/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ def _send_request(self, read_timeout, connect_timeout):
439439
if request.type == Auth.type:
440440
xid = AUTH_XID
441441
else:
442-
self._xid += 1
442+
self._xid = (self._xid % 2147483647) + 1
443443
xid = self._xid
444444

445445
self._submit(request, connect_timeout, xid)

0 commit comments

Comments
 (0)