Treat control_connection_timeout like other cluster attributes.
This commit is contained in:
@@ -366,10 +366,9 @@ class Cluster(object):
|
|||||||
|
|
||||||
control_connection_timeout = 2.0
|
control_connection_timeout = 2.0
|
||||||
"""
|
"""
|
||||||
A default timeout, in seconds, for queries made by the control connection,
|
A timeout, in seconds, for queries made by the control connection, such
|
||||||
such as querying the current schema and information about nodes in the
|
as querying the current schema and information about nodes in the cluster.
|
||||||
cluster. If set to :const:`None`, there will be no timeout for these
|
If set to :const:`None`, there will be no timeout for these queries.
|
||||||
queries. Can be overridden by passing it to __init__()
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
sessions = None
|
sessions = None
|
||||||
@@ -406,7 +405,7 @@ class Cluster(object):
|
|||||||
protocol_version=2,
|
protocol_version=2,
|
||||||
executor_threads=2,
|
executor_threads=2,
|
||||||
max_schema_agreement_wait=10,
|
max_schema_agreement_wait=10,
|
||||||
control_connection_timeout=control_connection_timeout):
|
control_connection_timeout=2.0):
|
||||||
"""
|
"""
|
||||||
Any of the mutable Cluster attributes may be set as keyword arguments
|
Any of the mutable Cluster attributes may be set as keyword arguments
|
||||||
to the constructor.
|
to the constructor.
|
||||||
|
|||||||
Reference in New Issue
Block a user