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 pklanke
Recipients gvanrossum, pklanke, vstinner, yselivanov
Date 2017-07-06.10:22:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1499336545.65.0.142719140041.issue30847@psf.upfronthosting.co.za>
In-reply-to
Content
> "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?"

IMO No. The same strategy applies. urgent data events on B have priority over other events on B, but not necessarily over events on A. As long as the urgent data events for a certain file object are handled before other events for that file object, it should be fine.

> "Would it be possible to let the developer decide how to prioritize events?"
At this point asyncio has no support for prioritizing event handlers. If prioritizing should be necessary, it should IMO be implemented in a way that all event handlers can be prioritized and not just these events. I think we can agree that this falls outside the scope of this patch.
History
Date User Action Args
2017-07-06 10:22:25pklankesetrecipients: + pklanke, gvanrossum, vstinner, yselivanov
2017-07-06 10:22:25pklankesetmessageid: <1499336545.65.0.142719140041.issue30847@psf.upfronthosting.co.za>
2017-07-06 10:22:25pklankelinkissue30847 messages
2017-07-06 10:22:25pklankecreate