Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-110038: KqueueSelector must count all read/write events (#110039) | 2023-09-28 | 1 | -1/+6 | |
| | |||||
* | gh-106751: Optimize _PolllikeSelector for many iteration case (gh-106884) | 2023-07-20 | 1 | -17/+9 | |
| | |||||
* | gh-106751: Optimize SelectSelector.select() for many iteration case (gh-106879) | 2023-07-19 | 1 | -10/+8 | |
| | |||||
* | gh-106751: Optimize KqueueSelector.select() for many iteration case (gh-106864) | 2023-07-19 | 1 | -8/+6 | |
| | |||||
* | gh-106751: selectors: optimize EpollSelector.select() (#106754) | 2023-07-18 | 1 | -8/+9 | |
| | | | Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com> | ||||
* | gh-106554: replace `_BaseSelectorImpl._key_from_fd` with `dict.get` (#106555) | 2023-07-15 | 1 | -17/+4 | |
| | |||||
* | gh-106664: selectors: add get() method to _SelectorMapping (#106665) | 2023-07-13 | 1 | -5/+9 | |
| | | | | | It can be used to avoid raising and catching KeyError twice via __getitem__. Co-authored-by: Inada Naoki <songofacandy@gmail.com> | ||||
* | bpo-46583: remove unused `sys.version_info` check from `selectors` (GH-31023) | 2022-02-02 | 1 | -6/+5 | |
| | |||||
* | bpo-41182 selector: use DefaultSelector based upon implementation (GH-21257) | 2020-07-22 | 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> | ||||
* | bpo-29255: Wait in KqueueSelector.select when no fds are registered (GH-19508) | 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) | 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 ↵ | 2017-06-10 | 1 | -2/+2 | |
| | | | | bad state in case of error (#2082) | ||||
* | bpo-30014: make poll-like selector's modify() method faster (#1030) | 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) | 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 ↵ | 2017-04-24 | 1 | -1/+2 | |
| | | | | collections. (#1263) | ||||
* | Issue #27759: Fix selectors incorrectly retain invalid file descriptors. | 2016-09-15 | 1 | -9/+17 | |
| | | | | Patch by Mark Williams. | ||||
* | asyncio, selectors: Update to the upstream version | 2016-03-02 | 1 | -2/+11 | |
| | |||||
* | asyncio: Sync with github repo | 2015-05-11 | 1 | -23/+26 | |
| | |||||
* | Issue #23865: close() methods in multiple modules now are idempotent and more | 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 | 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 | 2015-03-31 | 1 | -4/+3 | |
| | | |||||
* | | Issue #23485: select.kqueue.control() is now retried when interrupted by a ↵ | 2015-03-31 | 1 | -4/+2 | |
| | | | | | | | | signal | ||||
* | | Issue #23485: select.epoll.poll() is now retried when interrupted by a signal | 2015-03-30 | 1 | -4/+2 | |
| | | |||||
* | | Issue #23485: select.poll.poll() is now retried when interrupted by a signal | 2015-03-30 | 1 | -4/+3 | |
| | | |||||
* | | Issue #23485: select.select() is now retried automatically with the recomputed | 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 | 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 | 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. | 2015-01-09 | 1 | -1/+0 | |
|\| | |||||
| * | Issue #23209: Revert change on selectors, test_selectors failed. | 2015-01-09 | 1 | -1/+0 | |
| | | |||||
* | | Merge 3.4 (asyncio, selectors) | 2015-01-09 | 1 | -0/+1 | |
|\| | |||||
| * | Issue #23209: Break some reference cycles in asyncio. Patch written by Martin | 2015-01-09 | 1 | -0/+1 | |
| | | | | | | | | Richard. | ||||
* | | selectors: truncate to 80 characters | 2015-01-09 | 1 | -1/+2 | |
| | | |||||
* | | selectors: Fix typo in comment. | 2014-12-08 | 1 | -1/+1 | |
|\| | |||||
| * | selectors: Fix typo in comment. | 2014-12-08 | 1 | -1/+1 | |
| | | |||||
* | | selectors: Make sure EpollSelecrtor.select() works when no FD is registered. | 2014-12-08 | 1 | -1/+6 | |
|\| | | | | | | | Closes issue #23009. | ||||
| * | selectors: Make sure EpollSelecrtor.select() works when no FD is registered. | 2014-12-08 | 1 | -1/+6 | |
| | | | | | | | | Closes issue #23009. | ||||
| * | asyncio: remove unused imports and unused variables noticed by pyflakes | 2014-02-20 | 1 | -2/+1 | |
| | | |||||
| * | asyncio: Fix spelling and typos. | 2014-02-18 | 1 | -1/+1 | |
| | | | | | | | | Thanks to Vajrasky Kok for discovering some of them. | ||||
* | | Fix issue 18931: selectors module now supports /dev/poll on Solaris. | 2014-03-20 | 1 | -1/+61 | |
| | | |||||
* | | asyncio: remove unused imports and unused variables noticed by pyflakes | 2014-02-20 | 1 | -2/+1 | |
| | | |||||
* | | asyncio: Fix spelling and typos. | 2014-02-18 | 1 | -1/+1 | |
|/ | | | | Thanks to Vajrasky Kok for discovering some of them. | ||||
* | Issue #20505: Remove resolution and _granularity from selectors and asyncio | 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 | 2014-01-31 | 1 | -1/+1 | |
| | | | | result again to int | ||||
* | Issue #20452: select and selectors round (again) timeout away from zero for | 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. | 2014-01-25 | 1 | -1/+22 | |
| | |||||
* | Issue #20311: Revert e042ea77a152 and 7ce7295393c2, PollSelector.select() and | 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 | 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 | 2014-01-21 | 1 | -2/+4 | |
| | |||||
* | Issue #20311: selector.PollSelector.select() now rounds the timeout away from | 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 ↵ | 2013-12-07 | 1 | -9/+65 | |
| | | | | slight test refactor. |