-
Notifications
You must be signed in to change notification settings - Fork 279
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
[bug] proxy: session does not transfer after COM_STMT_CLOSE. #18613
Conversation
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Reviewer Guide 🔍
|
PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here. PR Code Suggestions ✨
|
e611522
to
4d17a55
Compare
4d17a55
to
629f131
Compare
User description
What type of PR is this?
Which issue(s) this PR fixes:
issue https://github.com/matrixorigin/MO-Cloud/issues/4022
What this PR does / why we need it:
there is no response from server after client send a COM_STMT_CLOSE cmd,
which will cause the session cannot be transferred forever. So ignore the
send time when client send a COM_STMT_CLOSE cmd.
PR Type
Bug fix, Tests
Description
COM_STMT_CLOSE
command by ignoring the send time for such commands.tempBuf
to improve buffer handling.isEmptyPacket
andisDeallocatePacket
to identify packet types.lastCmdTime
based on packet type.Changes walkthrough 📝
tunnel.go
Improve session handling and command time management
pkg/proxy/tunnel.go
tempBuf
to hold buffer data for processing.lastCmdTime
conditionally.util.go
Add utility functions for packet type checking
pkg/proxy/util.go
isEmptyPacket
function to check for empty packets.isDeallocatePacket
function to identify deallocate packets.util_test.go
Add tests for packet utility functions
pkg/proxy/util_test.go
isDeallocatePacket
function.isEmptyPacket
function.