def _read_ready(self):
try:<EOL><INDENT>data = os.read(self._fileno, self.max_size)<EOL><DEDENT>except InterruptedError:<EOL><INDENT>pass<EOL><DEDENT>except OSError as exc:<EOL><INDENT>self._fatal_error(exc, "<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>if data:<EOL><INDENT>self._protocol.data_received(data)<EOL><DEDENT>else:<EOL><INDENT>if self._loop.get_debug():<EOL><INDENT>logger.info("<STR_LIT>", self)<EOL><DEDENT>self._closing = False<EOL>self.pause_reading()<EOL>self._loop.call_soon(self._protocol.eof_received)<EOL>self._loop.call_soon(self._call_connection_lost, None)<EOL><DEDENT><DEDENT>
Called by the event loop whenever the fd is ready for reading.