Convert port into an int in benchmarker

This commit is contained in:
Andrew Godwin 2016-03-20 18:10:33 -07:00
parent e7a5ad01fd
commit a9d7284488

View File

@ -96,6 +96,7 @@ class Benchmarker(object):
if len(stats) >= self.num:
return
host, port = self.url.split("://")[1].split(":")
port = int(port)
for i in range(self.rate):
# TODO: Look at URL
reactor.connectTCP(host, port, self.factory)