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
HttpClient: Timing issue in sync ConnectHelper.Connect #40876
using(cancellationToken.UnsafeRegister(static s =>((Socket)s!).Dispose(),socket)){socket.Connect(newDnsEndPoint(host,port));}
If the socket.Connect call succeeds, but then the CancellationToken fires before the registration is disposed, then the Socket will be disposed but we will still continue as if the Connect succeeded.
Activity
ManickaP commentedon Aug 15, 2020
This has been already fixed in #39514
But returned back, probably via bad resolution of conflicts in merge, in #39524.
I can fix that.