Read everything that's possible without blocking in I/O (eager). 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)
| 357 | return buf |
| 358 | |
| 359 | def read_very_eager(self): |
| 360 | """Read everything that's possible without blocking in I/O (eager). |
| 361 | |
| 362 | Raise EOFError if connection closed and no cooked data |
| 363 | available. Return b'' if no cooked data available otherwise. |
| 364 | Don't block unless in the midst of an IAC sequence. |
| 365 | |
| 366 | """ |
| 367 | self.process_rawq() |
| 368 | while not self.eof and self.sock_avail(): |
| 369 | self.fill_rawq() |
| 370 | self.process_rawq() |
| 371 | return self.read_very_lazy() |
| 372 | |
| 373 | def read_eager(self): |
| 374 | """Read readily available data. |
nothing calls this directly
no test coverage detected