Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-41182 selector: use DefaultSelector based upon implementation (GH-21257) | Miss Islington (bot) | 2020-07-26 | 1 | -4/+28 |
| | | | | | | | | | | | | | On some platform such as VMware ESXi, DefaultSelector fails to detect selector due to default value. This fix adds a check and uses the correct selector depending upon select implementation and actual call. Fixes: [bpo-41182]() Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com> (cherry picked from commit bcd47837a9bf4806e559b40df73869493efcce27) Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com> | ||||
* | bpo-29255: Wait in KqueueSelector.select when no fds are registered (GH-19508) | Russell Davis | 2020-04-15 | 1 | -1/+4 |
| | | | | Also partially fixes bpo-25680 (there's still a discrepancy in behavior on Windows that needs to be fixed). | ||||
* | bpo-30624 remaining bare except (#2108) | Giampaolo Rodola | 2017-06-12 | 1 | -1/+1 |
| | | | | bpo-30624 / selectors: use bare 'except' clause instead of 'except Exception' | ||||
* | #30624 / selectors: use bare except clause in order to not leave the fd in a ↵ | Giampaolo Rodola | 2017-06-10 | 1 | -2/+2 |
| | | | | bad state in case of error (#2082) | ||||
* | bpo-30014: make poll-like selector's modify() method faster (#1030) | Giampaolo Rodola | 2017-06-09 | 1 | -1/+29 |
| | | | | | | | | | | | | | | | | * #30014: make selectors.DefaultSelector.modify() faster by relying on selector's modify() method instead of un/register()ing the fd * #30014: add unit test * speedup poll/epoll/devpoll modify() method by using internal modify() call * update doc * address PR comments * update NEWS entries * use != instead of 'is not' | ||||
* | #30014: refactor poll-related classes (#1035) | Giampaolo Rodola | 2017-05-20 | 1 | -132/+84 |
| | | | | | | | | | | | | | | | | * #30014: refactor poll-related classes so that poll(), epoll() and devpoll() share the same methods for register(), unregister(), close() and select() * remove unused attribute * use specific class attributes instead of select.* constants * have all classes except SelectSelector a _selector attribute * BaseException -> Exception * be explicit in defining a close() method only for selectors which have it * fix AttributeError | ||||
* | bpo-30144: Import collections ABC from collections.abc rather than ↵ | Serhiy Storchaka | 2017-04-24 | 1 | -1/+2 |
| | | | | collections. (#1263) | ||||
* | Issue #27759: Fix selectors incorrectly retain invalid file descriptors. | Yury Selivanov | 2016-09-15 | 1 | -9/+17 |
| | | | | Patch by Mark Williams. | ||||
* | asyncio, selectors: Update to the upstream version | Yury Selivanov | 2016-03-02 | 1 | -2/+11 |
| | |||||
* | asyncio: Sync with github repo | Yury Selivanov | 2015-05-11 | 1 | -23/+26 |
| | |||||
* | Issue #23865: close() methods in multiple modules now are idempotent and more | Serhiy Storchaka | 2015-04-10 | 1 | -6/+12 |
|\ | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured. | ||||
| * | Issue #23865: close() methods in multiple modules now are idempotent and more | Serhiy Storchaka | 2015-04-10 | 1 | -4/+8 |
| | | | | | | | | | | robust at shutdown. If needs to release multiple resources, they are released even if errors are occured. | ||||
* | | Issue #23485: select.devpoll.poll() is now retried when interrupted by a signal | Victor Stinner | 2015-03-31 | 1 | -4/+3 |
| | | |||||
* | | Issue #23485: select.kqueue.control() is now retried when interrupted by a ↵ | Victor Stinner | 2015-03-31 | 1 | -4/+2 |
| | | | | | | | | signal | ||||
* | | Issue #23485: select.epoll.poll() is now retried when interrupted by a signal | Victor Stinner | 2015-03-30 | 1 | -4/+2 |
| | | |||||
* | | Issue #23485: select.poll.poll() is now retried when interrupted by a signal | Victor Stinner | 2015-03-30 | 1 | -4/+3 |
| | | |||||
* | | Issue #23485: select.select() is now retried automatically with the recomputed | Victor Stinner | 2015-03-30 | 1 | -4/+1 |
| | | | | | | | | | | | | | | | | | | timeout when interrupted by a signal, except if the signal handler raises an exception. This change is part of the PEP 475. The asyncore and selectors module doesn't catch the InterruptedError exception anymore when calling select.select(), since this function should not raise InterruptedError anymore. | ||||
* | | Issue #23209, #23225: selectors.BaseSelector.get_key() now raises a | Victor Stinner | 2015-01-13 | 1 | -0/+3 |
|\ \ | |/ | | | | | | | | | RuntimeError if the selector is closed. And selectors.BaseSelector.close() now clears its internal reference to the selector mapping to break a reference cycle. Initial patch written by Martin Richard. | ||||
| * | Issue #23209, #23225: selectors.BaseSelector.close() now clears its internal | Victor Stinner | 2015-01-13 | 1 | -0/+3 |
| | | | | | | | | | | reference to the selector mapping to break a reference cycle. Initial patch written by Martin Richard. | ||||
* | | (Merge 3.4) Issue #23209: Revert change on selectors, test_selectors failed. | Victor Stinner | 2015-01-09 | 1 | -1/+0 |
|\ \ | |/ | |||||
| * | Issue #23209: Revert change on selectors, test_selectors failed. | Victor Stinner | 2015-01-09 | 1 | -1/+0 |
| | | |||||
* | | Merge 3.4 (asyncio, selectors) | Victor Stinner | 2015-01-09 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Issue #23209: Break some reference cycles in asyncio. Patch written by Martin | Victor Stinner | 2015-01-09 | 1 | -0/+1 |
| | | | | | | | | Richard. | ||||
* | | selectors: truncate to 80 characters | Victor Stinner | 2015-01-08 | 1 | -1/+2 |
| | | |||||
* | | selectors: Fix typo in comment. | Yury Selivanov | 2014-12-08 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | selectors: Fix typo in comment. | Yury Selivanov | 2014-12-08 | 1 | -1/+1 |
| | | |||||
* | | selectors: Make sure EpollSelecrtor.select() works when no FD is registered. | Yury Selivanov | 2014-12-08 | 1 | -1/+6 |
|\ \ | |/ | | | | | Closes issue #23009. | ||||
| * | selectors: Make sure EpollSelecrtor.select() works when no FD is registered. | Yury Selivanov | 2014-12-08 | 1 | -1/+6 |
| | | | | | | | | Closes issue #23009. | ||||
| * | asyncio: remove unused imports and unused variables noticed by pyflakes | Victor Stinner | 2014-02-20 | 1 | -2/+1 |
| | | |||||
| * | asyncio: Fix spelling and typos. | Yury Selivanov | 2014-02-19 | 1 | -1/+1 |
| | | | | | | | | Thanks to Vajrasky Kok for discovering some of them. | ||||
* | | Fix issue 18931: selectors module now supports /dev/poll on Solaris. | Giampaolo Rodola' | 2014-03-20 | 1 | -1/+61 |
| | | |||||
* | | asyncio: remove unused imports and unused variables noticed by pyflakes | Victor Stinner | 2014-02-20 | 1 | -2/+1 |
| | | |||||
* | | asyncio: Fix spelling and typos. | Yury Selivanov | 2014-02-19 | 1 | -1/+1 |
|/ | | | | Thanks to Vajrasky Kok for discovering some of them. | ||||
* | Issue #20505: Remove resolution and _granularity from selectors and asyncio | Victor Stinner | 2014-02-07 | 1 | -21/+0 |
| | | | | | * Remove selectors.BaseSelector.resolution attribute * Remove asyncio.BaseEventLoop._granularity attribute | ||||
* | Issue #20455: math.ceil() returns an int in Python 3, no need to cast the | Victor Stinner | 2014-01-31 | 1 | -1/+1 |
| | | | | result again to int | ||||
* | Issue #20452: select and selectors round (again) timeout away from zero for | Victor Stinner | 2014-01-31 | 1 | -2/+8 |
| | | | | | | poll and epoll Improve also debug info to analyze the issue | ||||
* | Issue #20311: selectors: Add a resolution attribute to BaseSelector. | Victor Stinner | 2014-01-25 | 1 | -1/+22 |
| | |||||
* | Issue #20311: Revert e042ea77a152 and 7ce7295393c2, PollSelector.select() and | Victor Stinner | 2014-01-25 | 1 | -8/+2 |
| | | | | EpollSelector.select() round again the timeout towards zero | ||||
* | Issue #20311: EpollSelector now also rounds the timeout towards zero, as | Victor Stinner | 2014-01-21 | 1 | -1/+8 |
| | | | | | | | | PollSelector. This change is not really required in Python 3.4, since select.epoll.poll() now rounds also correctly the timeout. But Guido van Rossum prefers to have exactly the same selectors.py file in CPython and Tulip projects: "it's not harmful". | ||||
* | selectors: add a comment to explain why and how poll timeout is rounded | Victor Stinner | 2014-01-21 | 1 | -2/+4 |
| | |||||
* | Issue #20311: selector.PollSelector.select() now rounds the timeout away from | Victor Stinner | 2014-01-21 | 1 | -1/+7 |
| | | | | | | | | zero, instead of rounding towards zero. For example, a timeout of one microsecond is now rounded to one millisecond, instead of being rounded to zero. Move also a test in test_epoll which was moved by my previous merge. | ||||
* | Silently ignore unregistering closed files. Fixes issue 19876. With docs and ↵ | Guido van Rossum | 2013-12-07 | 1 | -9/+65 |
| | | | | slight test refactor. | ||||
* | Issue #19842: Refactor BaseSelector to make it an actual usable ABC. | Charles-François Natali | 2013-12-01 | 1 | -44/+68 |
| | |||||
* | selectors: use a single return. | Charles-François Natali | 2013-11-18 | 1 | -4/+2 |
| | |||||
* | Optimize BaseSelector.modify(). Patch by Arnaud Faure. | Guido van Rossum | 2013-11-07 | 1 | -3/+6 |
| | |||||
* | Close resources owned by subclass before calling super().close(). | Guido van Rossum | 2013-10-31 | 1 | -2/+2 |
| | |||||
* | Issue #19172: Add a get_map() method to selectors. | Charles-François Natali | 2013-10-30 | 1 | -1/+26 |
| | |||||
* | Issue #16853: Add new selectors module. | Charles-François Natali | 2013-09-04 | 1 | -0/+405 |