Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(v8) Do not parse MySQL server packets #9411

Merged
merged 1 commit into from
Dec 15, 2021
Merged

(v8) Do not parse MySQL server packets #9411

merged 1 commit into from
Dec 15, 2021

Conversation

r0mant
Copy link
Collaborator

@r0mant r0mant commented Dec 15, 2021

Fixes #9406.

Previously all packets sent by MySQL client or server were parsed by the same ParsePacket function. This caused issues with some packets returned by the server. For example, our parsing code could get confused by a certain packet returned by server if it's "type" (5th byte in packet) would match one of client-side packets. This led to the issue where one of the result set packets returned by server was mistakenly interpreted as a COM_CHANGE_USER packet. This PR addressed it by not trying to interpret the server packets since we don't do any processing for them currently.

@r0mant r0mant requested a review from smallinsky December 15, 2021 00:32
@r0mant r0mant self-assigned this Dec 15, 2021
@r0mant r0mant requested review from timothyb89 and removed request for atburke, rosstimothy and quinqu December 15, 2021 00:42
@r0mant r0mant requested a review from gabrielcorado December 15, 2021 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants