From df2ad98743a6f5f882b23127eb4c2a3f0546ba1e Mon Sep 17 00:00:00 2001 From: Andrei Amialchenia Date: Fri, 5 Oct 2018 01:37:24 +0300 Subject: [PATCH] Use logical 'or' instead of bitwise in IsConnectionReset method. (#2983) --- src/Kestrel.Transport.Libuv/Internal/LibuvConstants.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kestrel.Transport.Libuv/Internal/LibuvConstants.cs b/src/Kestrel.Transport.Libuv/Internal/LibuvConstants.cs index d1657b63b8..0e07f1a69c 100644 --- a/src/Kestrel.Transport.Libuv/Internal/LibuvConstants.cs +++ b/src/Kestrel.Transport.Libuv/Internal/LibuvConstants.cs @@ -22,7 +22,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel.Transport.Libuv.Internal [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool IsConnectionReset(int errno) { - return errno == ECONNRESET || errno == EPIPE || errno == ENOTCONN | errno == EINVAL; + return errno == ECONNRESET || errno == EPIPE || errno == ENOTCONN || errno == EINVAL; } private static int? GetECONNRESET()