Skip to content

Commit ad1abfc

Browse files
committed
Remove waiting for OK response after QUIT command
MySQL Server 5.7 does not send OK payload after QUIT command, but simply closes the TCP connection, so this wait is unnecessary. Also fixes #330, in which case there was an infinite waiting.
1 parent 798ec7c commit ad1abfc

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/MySqlConnector/Serialization/MySqlSession.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ public async Task DisposeAsync(IOBehavior ioBehavior, CancellationToken cancella
170170
{
171171
m_payloadHandler.StartNewConversation();
172172
await m_payloadHandler.WritePayloadAsync(QuitPayload.Create(), ioBehavior).ConfigureAwait(false);
173-
await m_payloadHandler.ReadPayloadAsync(m_payloadCache, ProtocolErrorBehavior.Ignore, ioBehavior).ConfigureAwait(false);
174173
}
175174
catch (IOException)
176175
{

0 commit comments

Comments
 (0)