[issue30844] selectors: Add urgent data to read event

2017-11-03 Thread Pim Klanke
Pim Klanke <p...@protonic.nl> added the comment: On 02-11-17 16:54, STINNER Victor wrote: > STINNER Victor <victor.stin...@gmail.com> added the comment: > > It seems like kqueue supports urgent data: > > "EV_OOBAND: Read filter on socket may set this flag to

[issue30844] selectors: Add urgent data to read event

2017-09-27 Thread Pim Klanke
Pim Klanke <p...@protonic.nl> added the comment: On 26-09-17 14:13, STINNER Victor wrote: > > STINNER Victor added the comment: > > It would help to look how Twisted, eventlet, gevent and others handle "urgent > data" and "exceptions". First of all, t

[issue30844] selectors: Add urgent data to read event

2017-09-27 Thread Pim Klanke
Pim Klanke <p...@protonic.nl> added the comment: On 26-09-17 14:01, STINNER Victor wrote: > > STINNER Victor added the comment: > > Anothe piece of history, the creation of the selectors module, bpo-16853, > directly with the win32 "select.select(r, w,

[issue30844] selectors: Add urgent data to read event

2017-09-27 Thread Pim Klanke
Pim Klanke <p...@protonic.nl> added the comment: On 26-09-17 14:10, STINNER Victor wrote: > > STINNER Victor added the comment: > > On Windows, exceptfds of select() is not only related to urgent ("out of > band") data, it also notifies co

[issue30844] selectors: Add urgent data to read event

2017-09-26 Thread Pim Klanke
Pim Klanke added the comment: On 26-09-17 12:29, STINNER Victor wrote: > > STINNER Victor added the comment: > > Using Git history, I found the following commit which added "r, w, x = > select(r, w, w, timeout)" for Windows in tulip (old name of the asyncio > pr

[issue30844] selectors: Add urgent data to read event

2017-09-26 Thread Pim Klanke
Pim Klanke added the comment: On 26-09-17 11:51, STINNER Victor wrote: > > STINNER Victor added the comment: > > I'm not confortable with the change because of following questions: > > * It seems like your patch changes the SelectSelector behaviour on Windows. > Ho

[issue30844] selectors: Add urgent data to read event

2017-09-22 Thread Pim Klanke
Pim Klanke added the comment: In the selectors module, the winsock select method is wrapped. The second parameter (writefds) is passed to both writefds and exceptfds and the returned number of fds for write and except are summed and returned in the second element of the tuple. Can anyone

[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

[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 pol

[issue30844] selectors: Add urgent data to read event

2017-07-05 Thread Pim Klanke
Pim Klanke added the comment: I'm confused about the wrapper method around winsock select and curious to why this is necessary. I have send an email to neologix to share some light on the subject. -- ___ Python tracker <rep...@bugs.python.

[issue30844] selectors: Add urgent data to read event

2017-07-05 Thread Pim Klanke
Pim Klanke added the comment: > "The selectors API returns a list of (key, events) tuples. So an application > has to iterate on this list twice?" No. "urgent data" means 'urgent' towards other events for thís key (key being the file object), not towards events for o

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

2017-07-05 Thread Pim Klanke
Changes by Pim Klanke <p...@protonic.nl>: -- 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 tra

[issue30844] selectors: Add urgent data to read event

2017-07-05 Thread Pim Klanke
Changes by Pim Klanke <p...@protonic.nl>: -- title: selectors: Add exceptional conditions event -> selectors: Add urgent data to read event ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue30844] selectors: Add exceptional conditions event

2017-07-04 Thread Pim Klanke
Changes by Pim Klanke <p...@protonic.nl>: -- title: selectors: Add exceptional urgent data event -> selectors: Add exceptional conditions event ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue30847] asyncio: selector_events: add_excepter(), 3rd argument of select.select()

2017-07-04 Thread Pim Klanke
Pim Klanke added the comment: To be able to use GPIO Sysfs Interface with asyncio on our embedded platforms, we require exceptional event support in asyncio. depends on bpo-30844 -- ___ Python tracker <rep...@bugs.python.org>

[issue30847] asyncio: selector_events: add_excepter(), 3rd argument of select.select()

2017-07-04 Thread Pim Klanke
New submission from Pim Klanke: depends on bpo-30844 -- components: asyncio messages: 297652 nosy: pklanke, yselivanov priority: normal severity: normal status: open title: asyncio: selector_events: add_excepter(), 3rd argument of select.select() type: enhancement versions: Python 3.7

[issue30844] selectors: Add exceptional urgent data event

2017-07-04 Thread Pim Klanke
Changes by Pim Klanke <p...@protonic.nl>: -- title: selectors: add_excepter(), 3rd argument of select.select() -> selectors: Add exceptional urgent data event ___ Python tracker <rep...@bugs.python.org> <http://bugs.pyt

[issue30844] selectors: add_excepter(), 3rd argument of select.select()

2017-07-04 Thread Pim Klanke
Changes by Pim Klanke <p...@protonic.nl>: -- components: -asyncio title: selectors and asyncio: add_excepter(), 3rd argument of select.select() -> selectors: add_excepter(), 3rd argument of select.select() ___ Python tracker <rep...@bug

[issue30844] selector_events.py lacks exceptional event support

2017-07-04 Thread Pim Klanke
Changes by Pim Klanke <p...@protonic.nl>: -- pull_requests: +2629 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30844> ___ __

[issue30844] selector_events.py lacks exceptional event support

2017-07-04 Thread Pim Klanke
New submission from Pim Klanke: To be able to use GPIO Sysfs Interface on our embedded platforms we require exceptional event support. -- components: asyncio messages: 297629 nosy: pklanke, yselivanov priority: normal severity: normal status: open title: selector_events.py lacks