MCPcopy
hub / github.com/shadowsocks/shadowsocks / close

Method close

shadowsocks/udprelay.py:318–327  ·  view source on GitHub ↗
(self, next_tick=False)

Source from the content-addressed store, hash-verified

316 self._dns_cache.sweep()
317
318 def close(self, next_tick=False):
319 logging.debug('UDP close')
320 self._closed = True
321 if not next_tick:
322 if self._eventloop:
323 self._eventloop.remove_periodic(self.handle_periodic)
324 self._eventloop.remove(self._server_socket)
325 self._server_socket.close()
326 for client in list(self._cache.values()):
327 client.close()

Callers 12

write_pid_fileFunction · 0.45
freopenFunction · 0.45
daemon_startFunction · 0.45
handlerFunction · 0.45
_close_clientMethod · 0.45
handle_periodicMethod · 0.45
child_handlerFunction · 0.45
mainFunction · 0.45
remove_portMethod · 0.45
testFunction · 0.45
graceful_cli.pyFile · 0.45
test_udp_src.pyFile · 0.45

Calls 2

remove_periodicMethod · 0.80
removeMethod · 0.80

Tested by

no test coverage detected