2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 17:43:14 +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:
Jarrod Johnson 2015-03-26 13:27:57 -04:00
parent c98d2e32d3
commit 4090dac50c

View File

@ -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()