Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3165e80 + 13c4c76 commit 2677e9cCopy full SHA for 2677e9c
kubernetes/base/stream/ws_client.py
@@ -179,7 +179,7 @@ def update(self, timeout=0):
179
# efficient as epoll. Will work for fd numbers above 1024.
180
# select.epoll() - newest and most efficient way of polling.
181
# However, only works on linux.
182
- if sys.platform.startswith('linux') or sys.platform in ['darwin']:
+ if hasattr(select, "poll"):
183
poll = select.poll()
184
poll.register(self.sock.sock, select.POLLIN)
185
r = poll.poll(timeout)
0 commit comments