Skip to content

Commit

Permalink
When sending the Connect message, use the connection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
ceache committed Nov 26, 2022
1 parent 863edb5 commit fd57818
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kazoo/protocol/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -727,9 +727,7 @@ def _connect(self, host, hostip, port, timeout):
client.read_only,
)

connect_result, zxid = self._invoke(
client._session_timeout / 1000.0 / len(client.hosts), connect
)
connect_result, zxid = self._invoke(timeout, connect)

if connect_result.time_out <= 0:
raise SessionExpiredError("Session has expired")
Expand Down

0 comments on commit fd57818

Please sign in to comment.