Message76807
| Author |
giampaolo.rodola |
| Recipients |
giampaolo.rodola, josiah.carlson, josiahcarlson |
| Date |
2008年12月03日.01:10:47 |
| SpamBayes Score |
0.001478246 |
| Marked as misclassified |
No |
| Message-id |
<1228266655.05.0.188613442109.issue4501@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I discovered that some pyftpdlib [1] tests fail when using poll()
instead of select().
The problem is in asyncore.readwrite() function which erroneously calls
handle_read_event() in case of a POLLPRI event.
The patches modify readwrite() function so that:
- POLLPRI is now treated as synonym for "there is urgent data to read"
so handle_expt_event() is called.
- POLLHUP, POLLERR and POLLINVAL are now treated as synonyms for "the
connection has been closed" (Twisted behaves exactly the same) so
handle_close() is called.
Both pyftpdlib and asyncore tests passed on Linux Debian Etch and
FreeBSD 7.0-RC1.
[1] http://code.google.com/p/pyftpdlib/ |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年12月03日 01:10:55 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, josiahcarlson, josiah.carlson |
| 2008年12月03日 01:10:55 | giampaolo.rodola | set | messageid: <1228266655.05.0.188613442109.issue4501@psf.upfronthosting.co.za> |
| 2008年12月03日 01:10:50 | giampaolo.rodola | link | issue4501 messages |
| 2008年12月03日 01:10:50 | giampaolo.rodola | create |
|