Strip additional hosts in the connection string

This commit is contained in:
Don Brown committed 2014-04-01 11:44:50 -06:00
1 parent 5626414f2d
commit 26845c7eb4
2 files changed
+17 -1

No files matched your search

+8
View File
@@ -30,6 +30,14 @@ class Connection:
connection = cls()
connection.host = host
# strip any additional hosts in the connection string for now
try:
if "," in port:
port = port[:port.find(',')]
except TypeError:
pass
connection.port = port
connection._loop = loop
connection._retry_interval = .5