(self)
| 446 | callback(cmd, data) |
| 447 | |
| 448 | def flush(self): |
| 449 | set_non_blocking_io(self.wfile.fileno()) |
| 450 | if self.outbuf and self.outbuf[0]: |
| 451 | wrote = _nb_clean(self.wfile.write, self.outbuf[0]) |
| 452 | # self.wfile.flush() |
| 453 | debug2('mux wrote: %r/%d' % (wrote, len(self.outbuf[0]))) |
| 454 | if wrote: |
| 455 | self.outbuf[0] = self.outbuf[0][wrote:] |
| 456 | while self.outbuf and not self.outbuf[0]: |
| 457 | self.outbuf[0:1] = [] |
| 458 | |
| 459 | def fill(self): |
| 460 | set_non_blocking_io(self.rfile.fileno()) |