[New-bugs-announce] [issue13372] handle_close called twice in poll2

Xavier de Gaye report at bugs.python.org
Tue Nov 8 18:32:13 CET 2011


New submission from Xavier de Gaye <xdegaye at gmail.com>:

When use_poll is True, test_handle_close in test_asyncore.py invokes
twice the handle_close() method.

The attached patch:

    modifies test_handle_close so that it fails when handle_close() is
    called more than once

    includes a fix that makes readwrite() behave like poll(): check
    that the dispatcher instance is still in the socket map, before
    calling the handle_xxx methods

----------
components: Library (Lib)
files: handle_close.diff
keywords: patch
messages: 147311
nosy: giampaolo.rodola, josiahcarlson, neologix, stutzbach, xdegaye
priority: normal
severity: normal
status: open
title: handle_close called twice in poll2
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file23634/handle_close.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13372>
_______________________________________


More information about the New-bugs-announce mailing list