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 mliska
Recipients asvetlov, mliska, yselivanov
Date 2018-06-11.15:59:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1528732780.1.0.592728768989.issue33837@psf.upfronthosting.co.za>
In-reply-to
Content
When calling asyncio.Server.close, the method calls asyncio.AbstractEventLoop._stop_serving for each of its sockets in turn.

The implementation of this method in asyncio.ProactorEventLoop calls the _stop_accept_futures method which seems to cancel "accept" futures of all sockets running on the loop, not just the one that was supposed to be stopped. This means that closing one server closes sockets of all existing servers.

With asyncio.SelectorEventLoop there is no such issue.
History
Date User Action Args
2018-06-11 15:59:40mliskasetrecipients: + mliska, asvetlov, yselivanov
2018-06-11 15:59:40mliskasetmessageid: <1528732780.1.0.592728768989.issue33837@psf.upfronthosting.co.za>
2018-06-11 15:59:40mliskalinkissue33837 messages
2018-06-11 15:59:40mliskacreate