[issue4332] asyncore.file_dispatcher does not use dup()'ed fd

2008-11-19 Thread Josiah Carlson

Josiah Carlson [EMAIL PROTECTED] added the comment:

Oy.  You are right.  Fixed in Py3k in r67286, in trunk (2.7) in r67287, 
and 2.6-maintenance in r67288.

--
resolution:  - fixed
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4332
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4332] asyncore.file_dispatcher does not use dup()'ed fd

2008-11-16 Thread Christian Becke

New submission from Christian Becke [EMAIL PROTECTED]:

asyncore.file_dispatcher stores the file descriptor passed to
asyncore.file_dispatcher.__init__ into the map, not the dup()'ed one
created by asyncore.file_wrapper. Because of this, a select.error (9,
'Bad file descriptor') is raised in asyncore.loop() if the fd passed to
asyncore.file_dispatcher.__init__ is closed while the loop is running.
Attached patch fixes the issue.

--
components: Library (Lib)
files: asyncore_file_dispatcher_use_duped_fd.diff
keywords: patch
messages: 75947
nosy: christianbecke
severity: normal
status: open
title: asyncore.file_dispatcher does not use dup()'ed fd
type: behavior
versions: Python 2.6
Added file: 
http://bugs.python.org/file12022/asyncore_file_dispatcher_use_duped_fd.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4332
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4332] asyncore.file_dispatcher does not use dup()'ed fd

2008-11-16 Thread Benjamin Peterson

Changes by Benjamin Peterson [EMAIL PROTECTED]:


--
assignee:  - josiahcarlson
nosy: +josiahcarlson

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4332
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4332] asyncore.file_dispatcher does not use dup()'ed fd

2008-11-16 Thread Giampaolo Rodola'

Changes by Giampaolo Rodola' [EMAIL PROTECTED]:


--
nosy: +giampaolo.rodola

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue4332
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com