MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / close

Method close

tools/python-3.11.9-amd64/Lib/asyncore.py:392–402  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

390 raise
391
392 def close(self):
393 self.connected = False
394 self.accepting = False
395 self.connecting = False
396 self.del_channel()
397 if self.socket is not None:
398 try:
399 self.socket.close()
400 except OSError as why:
401 if why.errno not in (ENOTCONN, EBADF):
402 raise
403
404 # log and log_info may be overridden to provide more sophisticated
405 # logging and warning methods. In general, log is for 'hit' logging

Callers 4

handle_closeMethod · 0.95
handle_acceptedMethod · 0.45
close_allFunction · 0.45
closeMethod · 0.45

Calls 1

del_channelMethod · 0.95

Tested by

no test coverage detected