-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Check mysqlConnector.canceled.Value when failed to TLS handshake #1615
Conversation
WalkthroughThe recent changes enhance the project's error handling during connection establishment, specifically addressing scenarios where a context is canceled. A new check in the Changes
Assessment against linked issues
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- AUTHORS (1 hunks)
- packets.go (1 hunks)
Files skipped from review due to trivial changes (1)
- AUTHORS
Additional comments not posted (1)
packets.go (1)
355-357
: LGTM! But verify the function usage in the codebase.The added check for context cancellation during the TLS handshake is a good improvement. The code changes are approved.
However, ensure that all function calls to
writeHandshakeResponsePacket
handle the new behavior correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Thanks for your review! We would like to apply this patch to our application, are there plans to release new version? |
…sql-driver#1615) ### Description Check if the context is canceled when failed to TLS handshake. fix: go-sql-driver#1614 ### Checklist - [x] Code compiles correctly - [x] Created tests which fail without the change (if possible) - [x] All tests passing - [x] Extended the README / documentation, if necessary - [x] Added myself / the copyright holder to the AUTHORS file <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added Nao Yokotsuka to the contributors list for improved project documentation. - **Bug Fixes** - Enhanced error handling in the TLS handshake process to better manage cancellation requests, improving connection responsiveness. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Description
Check if the context is canceled when failed to TLS handshake.
fix: #1614
Checklist
Summary by CodeRabbit
New Features
Bug Fixes