Skip to content

Commit df2ad98

Browse files
flash2048halter73
authored andcommitted
Use logical 'or' instead of bitwise in IsConnectionReset method. (#2983)
1 parent 35d35f2 commit df2ad98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Kestrel.Transport.Libuv/Internal/LibuvConstants.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ internal static class LibuvConstants
2222
[MethodImpl(MethodImplOptions.AggressiveInlining)]
2323
public static bool IsConnectionReset(int errno)
2424
{
25-
return errno == ECONNRESET || errno == EPIPE || errno == ENOTCONN | errno == EINVAL;
25+
return errno == ECONNRESET || errno == EPIPE || errno == ENOTCONN || errno == EINVAL;
2626
}
2727

2828
private static int? GetECONNRESET()

0 commit comments

Comments
 (0)