Use logical 'or' instead of bitwise in IsConnectionReset method. (#2983)
This commit is contained in:
parent
35d35f22a3
commit
df2ad98743
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue