summaryrefslogtreecommitdiff
path: root/kafka/client.py
diff options
context:
space:
mode:
authorDana Powers <dana.powers@gmail.com>2016-06-26 19:28:59 -0700
committerDana Powers <dana.powers@gmail.com>2016-07-17 09:48:03 -0700
commitcfa06f7380bc0bbe702151002d74d01476dcfe1b (patch)
tree1982ae2e9380b1763a363dfc7d5dbb470b611b56 /kafka/client.py
parentade3160a4b954f5460f4a0aa34d4664d07a0e378 (diff)
downloadkafka-python-conn_legacy.tar.gz
Delete KafkaConnection classconn_legacy
Diffstat (limited to 'kafka/client.py')
-rw-r--r--kafka/client.py3
1 files changed, 2 insertions, 1 deletions
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