mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
wait a little, depending on the system, the socket took some time to be
released. Solve error I have when testing and going back to old address too fast.
This commit is contained in:
parent
6ca1a2398e
commit
b2a97e4622
@ -47,6 +47,7 @@ class BaseSocket(object):
|
||||
self.sock.close()
|
||||
except socket.error, e:
|
||||
log.info("Error while closing socket %s" % str(e))
|
||||
time.sleep(0.3)
|
||||
del self.sock
|
||||
|
||||
class TCPSocket(BaseSocket):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user