From 4090dac50c958a6a0876033a7d662e30c81b57ed Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 26 Mar 2015 13:27:57 -0400 Subject: [PATCH] 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. --- confluent_client/confluent/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/confluent_client/confluent/client.py b/confluent_client/confluent/client.py index cb4058ee..506dc4aa 100644 --- a/confluent_client/confluent/client.py +++ b/confluent_client/confluent/client.py @@ -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()