Closed
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Description
| BPO | 4501 |
|---|---|
| Nosy | @josiahcarlson, @giampaolo, @bitdancer, @intgr |
| Files |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee = None
closed_at = <Date 2009-04-12.17:28:32.640>
created_at = <Date 2008-12-03.01:10:51.345>
labels = ['type-bug', 'library']
title = "asyncore's urgent data management and connection closed events are broken when using poll()"
updated_at = <Date 2009-04-12.17:28:32.633>
user = 'https://github.com/giampaolo'bugs.python.org fields:
activity = <Date 2009-04-12.17:28:32.633>
actor = 'r.david.murray'
assignee = 'none'
closed = True
closed_date = <Date 2009-04-12.17:28:32.640>
closer = 'r.david.murray'
components = ['Library (Lib)']
creation = <Date 2008-12-03.01:10:51.345>
creator = 'giampaolo.rodola'
dependencies = []
files = ['12206']
hgrepos = []
issue_num = 4501
keywords = ['patch']
message_count = 3.0
messages = ['76807', '77902', '85912']
nosy_count = 5.0
nosy_names = ['josiahcarlson', 'giampaolo.rodola', 'josiah.carlson', 'r.david.murray', 'intgr']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = 'resolved'
status = 'closed'
superseder = None
type = 'behavior'
url = 'https://bugs.python.org/issue4501'
versions = ['Python 2.6', 'Python 3.0', 'Python 3.1', 'Python 2.7']Metadata
Metadata
Assignees
Labels
stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
Activity
giampaolo commentedon Dec 3, 2008
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:
so handle_expt_event() is called.
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/
giampaolo commentedon Dec 16, 2008
IMHO it would be good if this could go in the latest 2.4 and 2.5
upcoming releases while we still have the chance.
bitdancer commentedon Apr 12, 2009
Fixed as part of the work done on bpo-1161031.