tries is fixed in options

This commit is contained in:
Benoit Chesneau 2009-11-30 23:09:28 +01:00
parent 52b950945f
commit 5fd09fa3df

View File

@ -74,7 +74,7 @@ class HTTPServer(object):
tries = self.opts.get('tries', 5)
delay = self.opts.get('delay', 0.5)
for i in range(5):
for i in range(tries):
try:
sock = socketserver.TCPServer(addr, **opts)
self.LISTENERS.append(sock)