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

Method _abort

python/python3/tornado/websocket.py:650–656  ·  view source on GitHub ↗

Instantly aborts the WebSocket connection by closing the socket

(self)

Source from the content-addressed store, hash-verified

648 self._abort()
649
650 def _abort(self) -> None:
651 """Instantly aborts the WebSocket connection by closing the socket"""
652 self.client_terminated = True
653 self.server_terminated = True
654 if self.stream is not None:
655 self.stream.close() # forcibly tear down the connection
656 self.close() # let the subclass cleanup
657
658 @abc.abstractmethod
659 def close(self, code: Optional[int] = None, reason: Optional[str] = None) -> None:

Callers 8

_run_callbackMethod · 0.95
on_connection_closeMethod · 0.95
accept_connectionMethod · 0.80
_accept_connectionMethod · 0.80
_receive_frame_loopMethod · 0.80
_receive_frameMethod · 0.80
_handle_messageMethod · 0.80
closeMethod · 0.80

Calls 2

closeMethod · 0.95
closeMethod · 0.45

Tested by

no test coverage detected