mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
tries is fixed in options
This commit is contained in:
parent
52b950945f
commit
5fd09fa3df
@ -74,7 +74,7 @@ class HTTPServer(object):
|
|||||||
tries = self.opts.get('tries', 5)
|
tries = self.opts.get('tries', 5)
|
||||||
delay = self.opts.get('delay', 0.5)
|
delay = self.opts.get('delay', 0.5)
|
||||||
|
|
||||||
for i in range(5):
|
for i in range(tries):
|
||||||
try:
|
try:
|
||||||
sock = socketserver.TCPServer(addr, **opts)
|
sock = socketserver.TCPServer(addr, **opts)
|
||||||
self.LISTENERS.append(sock)
|
self.LISTENERS.append(sock)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user