Message87402
| Author |
josiahcarlson |
| Recipients |
MrJean1, alanmcintyre, donmez, facundobatista, giampaolo.rodola, josiahcarlson, mark.dickinson, r.david.murray |
| Date |
2009年05月07日.20:03:02 |
| SpamBayes Score |
0.0015231747 |
| Marked as misclassified |
No |
| Message-id |
<1241726583.51.0.645625726051.issue5798@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Mark, try this:
if flags & select.POLLIN and (obj.connected or obj.accepting):
obj.handle_read_event()
if flags & select.POLLOUT and obj.connected:
obj.handle_write_event()
if flags & select.POLLPRI and obj.connected:
obj.handle_expt_event()
if flags & (select.POLLHUP | select.POLLERR | select.POLLNVAL):
obj.handle_close() |
|