New submission from Nir Soffer: This is an old issue with asyncore - asyncore has a "closing" attribute, but it was never used. Every user has to implement the closing once logic in dispatcher subclasses.
Here is a typical fixes in user code: - https://github.com/oVirt/vdsm/blob/master/lib/vdsm/storage/asyncevent.py#L497 - https://github.com/oVirt/vdsm/blob/master/lib/vdsm/storage/asyncevent.py#L540 Fixing closing attribute will allow fixing the races during asyncore.poll() and asyncore.poll2(), see https://github.com/python/cpython/pull/2764 ---------- nosy: +Nir Soffer versions: +Python 2.7, Python 3.5, Python 3.6, Python 3.7 _______________________________________ Python tracker <[email protected]> <http://bugs.python.org/issue30985> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
