MCPcopy
hub / github.com/benoitc/gunicorn / patch

Method patch

gunicorn/workers/ggevent.py:37–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 wsgi_handler = None
36
37 def patch(self):
38 monkey.patch_all()
39
40 # patch sockets
41 sockets = []
42 for s in self.sockets:
43 sockets.append(socket.socket(s.FAMILY, socket.SOCK_STREAM,
44 fileno=s.sock.detach()))
45 self.sockets = sockets
46
47 def notify(self):
48 super().notify()

Calls

no outgoing calls