Message96195
I have a patch for adding epoll() support which is almost ready
(asyncore supports poll(), not epoll()), it's just a matter of writing
tests.
kqueue() shouldn't be too difficult to implement considering that we can
take Twisted as example.
...But aside from the implementation details I'd say there's a crucial
problem with the current API:
asyncore.loop([timeout[, use_poll[, map[, count]]]])
The "use_poll" argument should be deprecated in favor of something else,
maybe a "poller" which accepts a callable, like this:
>>> asyncore.loop(poller=asyncore.select_poller)
>>> asyncore.loop(poller=asyncore.epoll_poller)
>>> asyncore.loop(poller=asyncore.kqueue_poller) |
|
Date |
User |
Action |
Args |
2009-12-10 08:23:53 | giampaolo.rodola | set | recipients:
+ giampaolo.rodola, josiahcarlson, Ikinoki |
2009-12-10 08:23:53 | giampaolo.rodola | set | messageid: <1260433433.63.0.581204840811.issue6692@psf.upfronthosting.co.za> |
2009-12-10 08:23:52 | giampaolo.rodola | link | issue6692 messages |
2009-12-10 08:23:50 | giampaolo.rodola | create | |
|