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

athenad: update comment about timeout constant #29216

Merged
merged 5 commits into from
Aug 3, 2023
Merged

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Aug 3, 2023

mentioned it was exposed in 3.7 release notes, so not sure why we thought it wasn't available (checked a venv and it's there in 3.8.11)

related PR: #28864

@sshane sshane marked this pull request as ready for review August 3, 2023 07:39
@sshane sshane requested a review from incognitojam August 3, 2023 07:39
@sshane sshane changed the title User timeout in socket athena: use socket timeout constant Aug 3, 2023
@sshane sshane added the cleanup label Aug 3, 2023
@sshane sshane changed the title athena: use socket timeout constant athenad: use socket timeout constant Aug 3, 2023
@incognitojam
Copy link
Member

incognitojam commented Aug 3, 2023

I think it's just a typing issue, the type is defined conditionally: https://github.com/python/typeshed/blob/9456f5501b564b333891fb474f44f7172c6d5174/stdlib/_socket.pyi#L514

(maybe we could make mypy recognise this on linux, but supposedly it isn't available on macOS?)

@sshane
Copy link
Contributor Author

sshane commented Aug 3, 2023

yeah only linux supports this TCP option, made a mypy PR (python/mypy#15811). we can ignore for now since we know what the issue is (if athenad is ran on macOS or PC I'd make a PR to not set option)

@sshane sshane force-pushed the user-timeout-in-socket branch from 8b2cafb to 7b7c949 Compare August 3, 2023 11:24
@sshane sshane changed the title athenad: use socket timeout constant athenad: update comment about timeout constant Aug 3, 2023
@sshane sshane merged commit 0f7b775 into master Aug 3, 2023
@sshane sshane deleted the user-timeout-in-socket branch August 3, 2023 11:24
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.

2 participants