(self)
| 406 | callback(cmd, data) |
| 407 | |
| 408 | def flush(self): |
| 409 | self.wsock.setblocking(False) |
| 410 | if self.outbuf and self.outbuf[0]: |
| 411 | wrote = _nb_clean(os.write, self.wsock.fileno(), self.outbuf[0]) |
| 412 | debug2('mux wrote: %r/%d\n' % (wrote, len(self.outbuf[0]))) |
| 413 | if wrote: |
| 414 | self.outbuf[0] = self.outbuf[0][wrote:] |
| 415 | while self.outbuf and not self.outbuf[0]: |
| 416 | self.outbuf[0:1] = [] |
| 417 | |
| 418 | def fill(self): |
| 419 | self.rsock.setblocking(False) |
no test coverage detected