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

add TCP connect timeout option #102

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

trapezoid
Copy link
Contributor

Currently, the time before timing out when starting a TCP connection depends on the socket connection timeout period on the OS side (probably net.inet.tcp.keepinit).
For this reason, we have confirmed cases where the timeout takes 75 seconds on iOS/macOS.

This pull request adds a new connect_timeout option and sets it as the timeout when connecting to TCP in hyper.

@mayuki
Copy link
Member

mayuki commented Dec 10, 2024

Looks good to me. Thanks!

@mayuki mayuki merged commit 3639eca into Cysharp:main Dec 10, 2024
14 checks passed
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.

2 participants