STINNER Victor added the comment: In the selectors issue, we discussed how an application should prioritize "urgent" events: http://bugs.python.org/issue30844#msg297707
While I now agree that it's not the role of selectors to decide, I would like to discuss the plan for asyncio. Let's say that we got read event on sockets A and B (in an ordered list from selectors: A, then B), but B gets urgent data: should we handle B urgent data before not-urgent A data? Would it be possible to let the developer decide how to prioritize events? How does Twisted or Node.JS handle urgent data? ---------- nosy: +gvanrossum _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30847> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com