detach socket in child process

This commit is contained in:
Ankit Patel 2023-02-01 16:06:43 -05:00
parent 0a0ef9d140
commit b0115b9c27
No known key found for this signature in database
GPG Key ID: 2158139E46CA600D

View File

@ -41,7 +41,7 @@ class GeventWorker(AsyncWorker):
sockets = []
for s in self.sockets:
sockets.append(socket.socket(s.FAMILY, socket.SOCK_STREAM,
fileno=s.sock.fileno()))
fileno=s.sock.detach()))
self.sockets = sockets
def notify(self):