MCPcopy Index your code
hub / github.com/python/cpython / _do_read

Method _do_read

Lib/asyncio/sslproto.py:727–747  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

725 # Incoming flow
726
727 def _do_read(self):
728 if (
729 self._state not in (
730 SSLProtocolState.WRAPPED,
731 SSLProtocolState.FLUSHING,
732 )
733 ):
734 return
735 try:
736 if not self._app_reading_paused:
737 if self._app_protocol_is_buffer:
738 self._do_read__buffered()
739 else:
740 self._do_read__copied()
741 if self._write_backlog:
742 self._do_write()
743 else:
744 self._process_outgoing()
745 self._control_ssl_reading()
746 except Exception as ex:
747 self._fatal_error(ex, 'Fatal error on SSL protocol')
748
749 def _do_read__buffered(self):
750 offset = 0

Callers 4

buffer_updatedMethod · 0.95
_do_flushMethod · 0.95
resumeMethod · 0.95

Calls 6

_do_read__bufferedMethod · 0.95
_do_read__copiedMethod · 0.95
_do_writeMethod · 0.95
_process_outgoingMethod · 0.95
_control_ssl_readingMethod · 0.95
_fatal_errorMethod · 0.95

Tested by

no test coverage detected