mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
detach socket in child process
This commit is contained in:
parent
0a0ef9d140
commit
b0115b9c27
@ -41,7 +41,7 @@ class GeventWorker(AsyncWorker):
|
|||||||
sockets = []
|
sockets = []
|
||||||
for s in self.sockets:
|
for s in self.sockets:
|
||||||
sockets.append(socket.socket(s.FAMILY, socket.SOCK_STREAM,
|
sockets.append(socket.socket(s.FAMILY, socket.SOCK_STREAM,
|
||||||
fileno=s.sock.fileno()))
|
fileno=s.sock.detach()))
|
||||||
self.sockets = sockets
|
self.sockets = sockets
|
||||||
|
|
||||||
def notify(self):
|
def notify(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user