Skip to content

Commit 4788209

Browse files
committed
removed the handling of EOFPacket for auth
1 parent 7ddd216 commit 4788209

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/SuperSocket.MySQL/MySQLConnection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ public async Task ConnectAsync(CancellationToken cancellationToken = default)
100100
? errorPacket.ErrorMessage
101101
: "Authentication failed";
102102
throw new InvalidOperationException($"MySQL authentication failed: {errorMsg} (Error {errorPacket.ErrorCode})");
103+
/*
103104
case EOFPacket eofPacket:
104105
// EOF packet received, check if it indicates success
105106
if ((eofPacket.StatusFlags & 0x0002) != 0)
@@ -112,6 +113,7 @@ public async Task ConnectAsync(CancellationToken cancellationToken = default)
112113
{
113114
throw new InvalidOperationException("Authentication failed: EOF packet received without success status. Length: " + eofPacket.Length);
114115
}
116+
*/
115117
default:
116118
throw new InvalidOperationException($"Unexpected packet received during authentication: {authResult?.GetType().Name ?? "null"}");
117119
}

0 commit comments

Comments
 (0)