We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9644166 commit 94f4c9bCopy full SHA for 94f4c9b
kafka/conn.py
@@ -17,8 +17,13 @@ class KafkaConnection(local):
17
by a call to `recv` in order to get the correct response. Eventually,
18
we can do something in here to facilitate multiplexed requests/responses
19
since the Kafka API includes a correlation id.
20
+
21
+ host: the host name or IP address of a kafka broker
22
+ port: the port number the kafka broker is listening on
23
+ timeout: default None. The socket timeout for sending and receiving data.
24
+ None means no timeout, so a request can block forever.
25
"""
- def __init__(self, host, port, timeout=10):
26
+ def __init__(self, host, port, timeout=None):
27
super(KafkaConnection, self).__init__()
28
self.host = host
29
self.port = port
0 commit comments