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

Method close

gunicorn/sock.py:65–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63 sock.bind(self.cfg_addr)
64
65 def close(self):
66 if self.sock is None:
67 return
68
69 try:
70 self.sock.close()
71 except OSError as e:
72 self.log.info("Error while closing socket %s", str(e))
73
74 self.sock = None
75
76 def get_backlog(self):
77 return -1

Callers 15

reopen_filesMethod · 0.45
reloadMethod · 0.45
reap_workersMethod · 0.45
spawn_workerMethod · 0.45
kill_workerMethod · 0.45
__init__Method · 0.45
close_socketsFunction · 0.45
closeFunction · 0.45
close_gracefulFunction · 0.45
closerangeFunction · 0.45
daemonizeFunction · 0.45
redirectFunction · 0.45

Calls 1

infoMethod · 0.45

Tested by

no test coverage detected