mirror of
https://github.com/django/daphne.git
synced 2025-04-21 17:22:03 +03:00
Convert port into an int in benchmarker
This commit is contained in:
parent
e7a5ad01fd
commit
a9d7284488
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user