Don't try and spawn all sockets instantly

This commit is contained in:
Andrew Godwin 2016-03-20 19:03:06 -07:00
parent 40f6d198fa
commit 0ef19c9074

View File

@ -116,6 +116,8 @@ class Benchmarker(object):
max_to_spawn = self.num - len(stats)
if max_to_spawn <= 0:
return
# Don't spawn too many at once
max_to_spawn = min(max_to_spawn, 10)
# Decode connection args
host, port = self.url.split("://")[1].split(":")
port = int(port)