-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Update select poll logic to support eventlet. #1754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Keywords which can automatically close issues and at(@) mentions are not allowed in the title of a Pull Request. You can edit the title by writing /retitle in a comment.
When GitHub merges a Pull Request, the title is included in the merge commit. To avoid invalid keywords in the merge commit, please edit the title of the PR.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
Welcome @bobh66! |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bobh66 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
# However, only works on linux. | ||
if sys.platform.startswith('linux') or sys.platform in ['darwin']: | ||
# Will not work on Linux when eventlet is being used. | ||
if ((sys.platform.startswith('linux') and getattr(select, "poll", None) is not None) or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eventlet supports epoll, does it make sense to use epoll
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If that's a better solution I'm happy to rework the PR. I'm not very familiar with select and poll but if epoll is equivalent I'll update the change.
…into wsclient_eventlet
…into wsclient_eventlet
…into wsclient_eventlet
Keywords which can automatically close issues and at(@) or hashtag(#) mentions are not allowed in commit messages. The list of commits with invalid commit messages:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
# However, only works on linux. | ||
if sys.platform.startswith('linux') or sys.platform in ['darwin']: | ||
# Will not work on Linux when eventlet is being used. | ||
if ((sys.platform.startswith('linux') and getattr(select, "poll", None) is not None) or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can take an inspiration from python/cpython#21257 and ansible/ansible#70352
/assign @yliaog |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
Closing due to inactivity. |
@roycaihw: Closed this PR. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this?
/kind bug
/kind regression
What this PR does / why we need it:
Fixes exception in WSClient.update() caused by select not having a poll() attribute when running under eventlet. Introduced by PR kubernetes-client/python-base#268
Which issue(s) this PR fixes:
Fixes #1753
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: