Strip additional hosts in the connection string

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

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