This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:55giampaolo.rodolasetrecipients: + giampaolo.rodola, josiahcarlson, josiah.carlson
2008-12-03 01:10:55giampaolo.rodolasetmessageid: <1228266655.05.0.188613442109.issue4501@psf.upfronthosting.co.za>
2008-12-03 01:10:50giampaolo.rodolalinkissue4501 messages
2008-12-03 01:10:50giampaolo.rodolacreate