Skip to content

add TCP connect timeout option#102

Merged
mayuki merged 1 commit intoCysharp:mainfrom
trapezoid:feature/trapezoid/connect_timeout
Dec 10, 2024
Merged

add TCP connect timeout option#102
mayuki merged 1 commit intoCysharp:mainfrom
trapezoid:feature/trapezoid/connect_timeout

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
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