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