(self)
| 455 | self.handle_write() |
| 456 | |
| 457 | def handle_expt_event(self): |
| 458 | # handle_expt_event() is called if there might be an error on the |
| 459 | # socket, or if there is OOB data |
| 460 | # check for the error condition first |
| 461 | err = self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_ERROR) |
| 462 | if err != 0: |
| 463 | # we can get here when select.select() says that there is an |
| 464 | # exceptional condition on the socket |
| 465 | # since there is an error, we'll go ahead and close the socket |
| 466 | # like we would in a subclassed handle_read() that received no |
| 467 | # data |
| 468 | self.handle_close() |
| 469 | else: |
| 470 | self.handle_expt() |
| 471 | |
| 472 | def handle_error(self): |
| 473 | nil, t, v, tbinfo = compact_traceback() |
no test coverage detected