Skip to content

Timeout on Socket.Connect #45426

Answered by stephentoub
cincuranet asked this question in Q&A
Dec 1, 2020 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

You can pass a CancellationToken to Socket.ConnectAsync. That token can have cancellation requested manually or via a timer.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@cincuranet
Comment options

cincuranet Dec 1, 2020
Collaborator Author

@stephentoub
Comment options

@cincuranet
Comment options

cincuranet Dec 1, 2020
Collaborator Author

@stephentoub
Comment options

@cincuranet
Comment options

cincuranet Dec 1, 2020
Collaborator Author

Answer selected by cincuranet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants