mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-23 01:53:28 +00:00
Fix client having too short a timeout in remote TLS usage
There was a 5 second timeout to establish basic connectivity, but was mistakenly extended beyond that. Re-establish default timeout behavior after connectivity established.
This commit is contained in:
parent
c98d2e32d3
commit
4090dac50c
@ -154,6 +154,7 @@ class Command(object):
|
||||
try:
|
||||
self.connection.settimeout(5)
|
||||
self.connection.connect(sa)
|
||||
self.connection.settimeout(None)
|
||||
except:
|
||||
raise
|
||||
self.connection.close()
|
||||
|
Loading…
Reference in New Issue
Block a user