Skip to content
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

Fix kube client on mac with keepalive enabled #15551

Merged
merged 1 commit into from
Apr 27, 2021

Conversation

jedcunningham
Copy link
Member

socket on mac doesn't support TCP_KEEPIDLE, so when keepalive is
enabled we should check before trying to set it so the defaults work on
macs. We will be defensive with the other TCP_KEEP*s as well.

https://github.com/websocket-client/websocket-client/blob/719fc9d2e50e16292b4f09ca86385540456a55a7/websocket/_socket.py#L37-L44

`socket` on mac doesn't support `TCP_KEEPIDLE`, so when keepalive is
enabled we should check before trying to set it so the defaults work on
macs. We will be defensive with the other `TCP_KEEP*`s as well.

https://github.com/websocket-client/websocket-client/blob/719fc9d2e50e16292b4f09ca86385540456a55a7/websocket/_socket.py#L37-L44
@boring-cyborg boring-cyborg bot added the provider:cncf-kubernetes Kubernetes provider related issues label Apr 27, 2021
@jedcunningham
Copy link
Member Author

cc: @michalmisiewicz

@kaxil kaxil merged commit 11face6 into apache:master Apr 27, 2021
@kaxil kaxil deleted the mac_keepalive branch April 27, 2021 21:24
@kaxil kaxil added this to the Airflow 2.1 milestone Apr 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
provider:cncf-kubernetes Kubernetes provider related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants