Skip to content

Bound each connect attempt in InnerSocketWaiter with a timeout#857

Merged
SimonCropp merged 1 commit into
mainfrom
Bound-each-connect-attempt-in-InnerSocketWaiter-with-a-timeout
Jun 29, 2026
Merged

Bound each connect attempt in InnerSocketWaiter with a timeout#857
SimonCropp merged 1 commit into
mainfrom
Bound-each-connect-attempt-in-InnerSocketWaiter-with-a-timeout

Conversation

@SimonCropp

Copy link
Copy Markdown
Member

ReceiveTimeout never applied to ConnectAsync, so a refused connect could block ~2s per attempt (~200s worst case). Use a 100ms CancellationToken per attempt with a fresh socket, giving a bounded ~20s give-up. Add tests.

ReceiveTimeout never applied to ConnectAsync, so a refused connect could
block ~2s per attempt (~200s worst case). Use a 100ms CancellationToken
per attempt with a fresh socket, giving a bounded ~20s give-up. Add tests.
@SimonCropp SimonCropp added this to the 3.1.1 milestone Jun 29, 2026
@SimonCropp SimonCropp merged commit f04f22b into main Jun 29, 2026
3 of 5 checks passed
@SimonCropp SimonCropp deleted the Bound-each-connect-attempt-in-InnerSocketWaiter-with-a-timeout branch June 29, 2026 11:56
@github-actions github-actions Bot restored the Bound-each-connect-attempt-in-InnerSocketWaiter-with-a-timeout branch June 29, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant