MCPcopy
hub / github.com/tornadoweb/tornado / _abort

Method _abort

tornado/websocket.py:674–680  ·  view source on GitHub ↗

Instantly aborts the WebSocket connection by closing the socket

(self)

Source from the content-addressed store, hash-verified

672 self._abort()
673
674 def _abort(self) -> None:
675 """Instantly aborts the WebSocket connection by closing the socket"""
676 self.client_terminated = True
677 self.server_terminated = True
678 if self.stream is not None:
679 self.stream.close() # forcibly tear down the connection
680 self.close() # let the subclass cleanup
681
682 @abc.abstractmethod
683 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