Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Ros <sebastienros@gmail.com>2022-05-10 00:57:08 +0300
committerGitHub <noreply@github.com>2022-05-10 00:57:08 +0300
commitd9173b1cb06c3907af552dda249921d038ccd2e1 (patch)
tree0527081c9489ef5c7af623fd9576ab37380feb03
parent19964bfa9415a7cfac53f73b16099843d19f486f (diff)
Update SocketConnection.cssebros/error
-rw-r--r--src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketConnection.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketConnection.cs b/src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketConnection.cs
index 179d41a24a..ccfabeb310 100644
--- a/src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketConnection.cs
+++ b/src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketConnection.cs
@@ -231,7 +231,11 @@ internal sealed partial class SocketConnection : TransportConnection
return false;
}
- return true;
+ // This is unexpected.
+ error = result.SocketError;
+ SocketsLog.ConnectionError(_logger, this, error);
+
+ return false;
}
}
}