E53E fix: eventlet compatibility by tito · Pull Request #3132 · docker/docker-py · GitHub
[go: up one dir, main page]

Skip to content

Conversation

tito
Copy link
Contributor
@tito tito commented May 16, 2023

The implementation done in #2865 is breaking usage of docker-py library within eventlet. As per the Python select.poll documentation (https://docs.python.org/3/library/select.html#select.poll) and eventlet select removal advice (eventlet/eventlet#608 (comment)), it is preferable to use an implementation based on the availability of the poll() method that trying to check if the platform is win32.

Fixes #3131

…form check

The implementation done in docker#2865 is breaking usage of docker-py library within eventlet.
As per the Python `select.poll` documentation (https://docs.python.org/3/library/select.html#select.poll) and eventlet select removal advice (eventlet/eventlet#608 (comment)), it is preferable to use an implementation based on the availability of the `poll()` method that trying to check if the platform is `win32`.

Fixes docker#3131

Signed-off-by: Mathieu Virbel <mat@meltingrocks.com>
@tito tito changed the title Check if poll attribute exists on select module - eventlet compatibility fix: eventlet compatibility May 16, 2023
@milas milas added the kind/bug label May 23, 2023
@milas milas self-assigned this May 23, 2023
@milas milas merged commit 78439eb into docker:main Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot use docker with eventlet since #2865
2 participants
0