Skip to content

Commit

Permalink
process/Broker: do not reset poller_class. Fixes mitogen-hq#967
Browse files Browse the repository at this point in the history
  • Loading branch information
philfry committed Apr 2, 2024
1 parent 301ae9c commit fc40ec9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions ansible_mitogen/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -280,12 +280,7 @@ def get_cpu_count(default=None):


class Broker(mitogen.master.Broker):
"""
WorkerProcess maintains at most 2 file descriptors, therefore does not need
the exuberant syscall expense of EpollPoller, so override it and restore
the poll() poller.
"""
poller_class = mitogen.core.Poller
pass


class Binding(object):
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ v0.3.5 (2024-03-17)
-------------------

* :gh:issue:`987` Support Python 3.11
* :gh:issue:`967` Broker: Do not reset poller_class to mitogen.core.Poller to avoid 'filedescriptor out of range in select()'
* :gh:issue:`885` Fix :py:exc:`PermissionError` in :py:mod:`importlib` when
becoming an unprivileged user with Python 3.x
* :gh:issue:`1033` Support `PEP 451 <https://peps.python.org/pep-0451/>`_,
Expand Down

0 comments on commit fc40ec9

Please sign in to comment.