diff options
author | Sébastien Ros <sebastienros@gmail.com> | 2022-05-10 00:57:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-10 00:57:08 +0300 |
commit | d9173b1cb06c3907af552dda249921d038ccd2e1 (patch) | |
tree | 0527081c9489ef5c7af623fd9576ab37380feb03 | |
parent | 19964bfa9415a7cfac53f73b16099843d19f486f (diff) |
Update SocketConnection.cssebros/error
-rw-r--r-- | src/Servers/Kestrel/Transport.Sockets/src/Internal/SocketConnection.cs | 6 |
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; } } } |