Use logical 'or' instead of bitwise in IsConnectionReset method. (#2983)

This commit is contained in:
Andrei Amialchenia 2018-10-05 01:37:24 +03:00 committed by Stephen Halter
parent 35d35f22a3
commit df2ad98743
1 changed files with 1 additions and 1 deletions

View File

@ -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()