Skip to content

Conversation

@ptiurin
Copy link
Contributor

@ptiurin ptiurin commented Jan 26, 2022

TCP_KEEPIDLE is not available on MacOS. TCP_KEEPALIVE is the alternative, however it's not added to the socket library until Python 3.10. This is a workaround.

Tested locally on a mac.

@ptiurin
Copy link
Contributor Author

ptiurin commented Jan 26, 2022

We have integration tests for this. Not sure if unit tests are appropriate, we can only check if correct functions are called on a mocked socket?

@ptiurin ptiurin merged commit 783018c into main Jan 26, 2022
@ptiurin ptiurin deleted the fix-mac-keepalive branch January 26, 2022 17:05
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

77.7% 77.7% Coverage
0.0% 0.0% Duplication

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants