Read readily available data. Raise EOFError if connection closed and no cooked data available. Return b'' if no cooked data available otherwise. Don't block unless in the midst of an IAC sequence.
(self)
| 371 | return self.read_very_lazy() |
| 372 | |
| 373 | def read_eager(self): |
| 374 | """Read readily available data. |
| 375 | |
| 376 | Raise EOFError if connection closed and no cooked data |
| 377 | available. Return b'' if no cooked data available otherwise. |
| 378 | Don't block unless in the midst of an IAC sequence. |
| 379 | |
| 380 | """ |
| 381 | self.process_rawq() |
| 382 | while not self.cookedq and not self.eof and self.sock_avail(): |
| 383 | self.fill_rawq() |
| 384 | self.process_rawq() |
| 385 | return self.read_very_lazy() |
| 386 | |
| 387 | def read_lazy(self): |
| 388 | """Process and return data that's already in the queues (lazy). |
no test coverage detected