MCPcopy Create free account
hub / github.com/EasyIME/PIME / stop

Method stop

python/python3/tornado/tcpserver.py:310–323  ·  view source on GitHub ↗

Stops listening for new connections. Requests currently in progress may still continue after the server is stopped.

(self)

Source from the content-addressed store, hash-verified

308 self.add_sockets(sockets)
309
310 def stop(self) -> None:
311 """Stops listening for new connections.
312
313 Requests currently in progress may still continue after the
314 server is stopped.
315 """
316 if self._stopped:
317 return
318 self._stopped = True
319 for fd, sock in self._sockets.items():
320 assert sock.fileno() == fd
321 # Unregister socket from IOLoop
322 self._handlers.pop(fd)()
323 sock.close()
324
325 def handle_stream(
326 self, stream: IOStream, address: tuple

Callers 1

test_stop_twiceMethod · 0.95

Calls 3

itemsMethod · 0.80
filenoMethod · 0.45
closeMethod · 0.45

Tested by 1

test_stop_twiceMethod · 0.76