Message297722
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? |
|
Date |
User |
Action |
Args |
2017-07-05 09:24:38 | vstinner | set | recipients:
+ vstinner, gvanrossum, yselivanov, pklanke |
2017-07-05 09:24:38 | vstinner | set | messageid: <1499246678.9.0.534554154646.issue30847@psf.upfronthosting.co.za> |
2017-07-05 09:24:38 | vstinner | link | issue30847 messages |
2017-07-05 09:24:38 | vstinner | create | |
|