summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Socol <me@jamessocol.com>2015-10-22 18:32:52 -0400
committerJames Socol <me@jamessocol.com>2015-10-22 18:32:52 -0400
commit1c972b3a7ad941556325f6ae69db838b022890d5 (patch)
tree5398e9e81de802e39fa1e8b0044073de7fa9284c
parent0e5826ce55a132f2090e408429c181b644aa71f8 (diff)
downloadpystatsd-1c972b3a7ad941556325f6ae69db838b022890d5.tar.gz
Document new client kwargs.
-rw-r--r--docs/configure.rst16
1 files changed, 15 insertions, 1 deletions
diff --git a/docs/configure.rst b/docs/configure.rst
index bc945e3..ca78012 100644
--- a/docs/configure.rst
+++ b/docs/configure.rst
@@ -27,7 +27,8 @@ They, and their defaults, are::
statsd = StatsClient(host='localhost',
port=8125,
prefix=None,
- maxudpsize=512)
+ maxudpsize=512,
+ ipv6=False)
``host`` is the host running the statsd server. It will support any kind
of name or IP address you might use.
@@ -60,6 +61,19 @@ on the internet. On a controlled local network or when the statsd server is
running on 127.0.0.1 larger values can decrease the number of UDP packets when
pipelining many metrics. Use with care!
+.. versionadded:: 3.2
+
+``ipv6`` tells the client explicitly to look up the host using IPv6 (``True``)
+or IPv4 (``False``).
+
+
+TCP Clients
+-----------
+
+:ref:`TCP-based clients <tcp-chapter>` have an additional ``timeout`` argument,
+which defaults to ``None``, and is passed to `settimeout
+<https://docs.python.org/2/library/socket.html#socket.socket.settimeout>`.
+
In Django
=========