You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Socket async cancellation and timeout during connection #2860
@roji while I don't mind taking this one, it might take a little more effort than just setting the timeout for the connection, as we're also missing it for the authentication part. But I'll do my best to get it done for the 5.0 release.
@vonzshik I'm adding support for this, a PR will be up shortly. I'm going to scope this issue to track specifically ConnectAsync, and have opened #3166 to track any remaining cancellation-related tasks (which you're welcome to take a look at).
Activity
roji commentedon Sep 17, 2020
@vonzshik another timeout-related issue just in case you're interested :)
vonzshik commentedon Sep 17, 2020
@roji while I don't mind taking this one, it might take a little more effort than just setting the timeout for the connection, as we're also missing it for the authentication part. But I'll do my best to get it done for the 5.0 release.
roji commentedon Sep 18, 2020
No problem @vonzshik! I'll clear the assignee, if you see you're not getting around to it for 5.0, I can try to work on it too. Let's see later.
roji commentedon Sep 20, 2020
Note: thanks to dotnet/runtime#40750, we can do both cancellation and timeout (via cancellation) in Socket.ConnectAsync.
vonzshik commentedon Sep 20, 2020
Woohoo!
roji commentedon Sep 20, 2020
@vonzshik I'm adding support for this, a PR will be up shortly. I'm going to scope this issue to track specifically ConnectAsync, and have opened #3166 to track any remaining cancellation-related tasks (which you're welcome to take a look at).
Real cancellation and timeout for ConnectAsync
Real cancellation and timeout for ConnectAsync (#3167)
[-]Socket timeout not set during connection[/-][+]Socket async cancellation and timeout during connection[/+]