File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,7 @@ class WorkspaceConfig(Config):
264
264
"""
265
265
266
266
#: Session Connection Timeout
267
- session_connection_timeout = 120.0 # seconds
267
+ session_connection_timeout = float ( "inf" ) # seconds
268
268
# The maximum amount of time to wait for a session to obtain a usable
269
269
# read/write connection. This includes everything necessary for this to
270
270
# happen. Including fetching routing tables, opening sockets, etc.
Original file line number Diff line number Diff line change @@ -978,7 +978,7 @@ def __repr__(self):
978
978
@contextmanager
979
979
def _refresh_lock_deadline (self , deadline ):
980
980
timeout = deadline .to_timeout ()
981
- if timeout == float ( "inf" ) :
981
+ if timeout is None :
982
982
timeout = - 1
983
983
if not self .refresh_lock .acquire (timeout = timeout ):
984
984
raise ClientError (
Original file line number Diff line number Diff line change 56
56
}
57
57
58
58
test_session_config = {
59
- "session_connection_timeout" : float ( "inf" ) ,
59
+ "session_connection_timeout" : 180.0 ,
60
60
"connection_acquisition_timeout" : 60.0 ,
61
61
"max_transaction_retry_time" : 30.0 ,
62
62
"initial_retry_delay" : 1.0 ,
You can’t perform that action at this time.
0 commit comments