We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8da8d05 commit 7b0f534Copy full SHA for 7b0f534
1 file changed
varnish.py
@@ -62,6 +62,10 @@ class VarnishHandler(Telnet):
62
def __init__(self, host_port_timeout, secret=None, **kwargs):
63
if isinstance(host_port_timeout, basestring):
64
host_port_timeout = host_port_timeout.split(':')
65
+
66
+ if (len(host_port_timeout) == 3):
67
+ host_port_timeout[2] = float(host_port_timeout[2])
68
69
Telnet.__init__(self, *host_port_timeout)
70
(status, length), content = self._read()
71
if status == 107 and secret is not None:
0 commit comments