From cfa06f7380bc0bbe702151002d74d01476dcfe1b Mon Sep 17 00:00:00 2001 From: Dana Powers Date: Sun, 26 Jun 2016 19:28:59 -0700 Subject: Delete KafkaConnection class --- kafka/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kafka/client.py') diff --git a/kafka/client.py b/kafka/client.py index 8a34cc4..056d623 100644 --- a/kafka/client.py +++ b/kafka/client.py @@ -15,7 +15,7 @@ from kafka.errors import (UnknownError, ConnectionError, FailedPayloadsError, from kafka.structs import TopicPartition, BrokerMetadata from kafka.conn import ( - collect_hosts, BrokerConnection, DEFAULT_SOCKET_TIMEOUT_SECONDS, + collect_hosts, BrokerConnection, ConnectionStates, get_ip_port_afi) from kafka.protocol import KafkaProtocol @@ -32,6 +32,7 @@ log = logging.getLogger(__name__) class SimpleClient(object): CLIENT_ID = b'kafka-python' + DEFAULT_SOCKET_TIMEOUT_SECONDS = 120 # NOTE: The timeout given to the client should always be greater than the # one passed to SimpleConsumer.get_message(), otherwise you can get a -- cgit v1.2.1