[issue30847] asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select()

2017-07-06 Thread STINNER Victor
STINNER Victor added the comment: Ok, it makes sense. Thanks :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue30847] asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select()

2017-07-06 Thread Pim Klanke
Pim Klanke added the comment: > "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 ov

[issue30847] asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select()

2017-07-06 Thread Pim Klanke
Pim Klanke added the comment: This is in fact the third catagory of select(), "exceptional conditions", but because some find the term "exceptional" confusing when used in a Python module, we decided to use the term "urgent data", borrowed from the poll(2) man page. (see bpo-30844) An example

[issue30847] asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select()

2017-07-05 Thread Guido van Rossum
Guido van Rossum added the comment: How do you define "urgent data"? Is this just the third category of select(), Read, Write, Exceptional? I don't know if that should be considered urgent, it's just "out of band" IIRC. -- ___ Python tracker

[issue30847] asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select()

2017-07-05 Thread STINNER Victor
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 tha

[issue30847] asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select()

2017-07-04 Thread Pim Klanke
Changes by Pim Klanke : -- title: asyncio: selector_events: add_excepter(), 3rd argument of select.select() -> asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select() ___ Python tracker