• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

shogo82148 / mysql
82%

Build:
DEFAULT BRANCH: master
Repo Added 28 May 2017 02:43AM UTC
Files 18
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • add-go-builg-lines
  • add-go1.16-to-build-matrix
  • connector-interface-support
  • context-support
  • context-support2
  • deprecate-mysql-null-time
  • drop-go1.7
  • drop-support-of-go1.12
  • drop-support-of-go1.18
  • drop-support-of-go1.19
  • fix-626
  • fix-compile-error-on-plan9
  • fix-issue-1567
  • fix-raw-bytes-corruption-issue
  • fix-test-of-charset
  • fix1567-18
  • go1.15-is-released
  • go1.17-is-released
  • implement-register-dial-context
  • improve-github-actions
  • introduce-github-actions
  • introduce-reader-and-write-groutine
  • introduce-reader-and-write-groutine-2
  • introduce-reader-and-write-groutine-3
  • make-default-logger-goroutine-safe
  • make-nulltime-type-alias
  • no-copy-should-implement-locker
  • parallelize-test
  • prepare-for-v1.8.1
  • release-v1.6.0
  • scan-type-return-sql-null-time
  • session-resetter-support
  • shogo82148-patch-1
  • stop-repeated-queries
  • stop-rounding-time
  • support-read-only-transaction
  • support-read-only-transaction2
  • support-read-only-transaction3
  • tmp
  • update-changelog-for-v1.8.1
  • wip-context-support

22 Mar 2024 03:57PM UTC coverage: 82.462% (+0.5%) from 82.003%
8403035702

push

github

web-flow
Fix issue 1567 (#1570)

### Description

closes https://github.com/go-sql-driver/mysql/issues/1567

When TLS is enabled, `mc.netConn` is rewritten after the TLS handshak as
detailed here:


https://github.com/go-sql-driver/mysql/blob/d86c4527b/packets.go#L355

Therefore, `mc.netConn` should not be accessed within the watcher
goroutine.
Instead, `mc.rawConn` should be initialized prior to invoking
`mc.startWatcher`, and `mc.rawConn` should be used in lieu of
`mc.netConn`.

### 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

- **Refactor**
	- Improved variable naming for better code readability and maintenance.
	- Enhanced network connection handling logic.
- **New Features**
	- Updated TCP connection handling to better support TCP Keepalives.
- **Tests**
- Added a new test to address and verify the fix for a specific issue
related to TLS, connection pooling, and round trip time estimation.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

4 of 4 new or added lines in 2 files covered. (100.0%)

3122 of 3786 relevant lines covered (82.46%)

1130723.18 hits per line

Relevant lines Covered
Build:
Build:
3786 RELEVANT LINES 3122 COVERED LINES
1130723.18 HITS PER LINE
Source Files on master
  • List 18
  • Changed 12
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
8403035702 master Fix issue 1567 (#1570) ### Description closes https://github.com/go-sql-driver/mysql/issues/1567 When TLS is enabled, `mc.netConn` is rewritten after the TLS handshak as detailed here: https://github.com/go-sql-driver/mysql/blob/d86c4... push 23 Mar 2024 04:21PM UTC web-flow github
82.46
8391019197 master fix race condition when context is canceled (#1562) Fix #1559. push 22 Mar 2024 01:23PM UTC web-flow github
82.0
8233743488 master ci: update Go and MySQL versions (#1557) push 11 Mar 2024 01:36PM UTC web-flow github
81.99
8226448831 master Add BeforeConnect callback to configuration object (#1469) This can be used to alter the connection options for each connection, right before it's established Co-authored-by: Inada Naoki <songofacandy@gmail.com> push 11 Mar 2024 01:40AM UTC web-flow github
82.06
7179448318 master Add client_ed25519 authentication (#1518) Implements the necessary client code for [ed25519 authentication](https://mariadb.com/kb/en/authentication-plugin-ed25519/). This patch uses filippo.io/edwards25519 to implement the crypto bits. The s... push 12 Dec 2023 09:30AM UTC web-flow github
82.68
6424286039 master use strings.Cut (#1486) push 05 Oct 2023 08:46PM UTC web-flow github
82.71
6371799644 master Close connection on ErrPktSync and ErrPktSyncMul (#1473) An `ErrPktSync` or `ErrPktSyncMul` error always means that a packet header has been read, but since the sequence ID was not correct then the packet payload has not been read. This results... push 01 Oct 2023 04:07PM UTC web-flow github
82.72
6185780018 master Improve DSN docstsrings (#1475) push 14 Sep 2023 12:58PM UTC web-flow github
82.53
1438373632 master Go 1.17 and MariaDB 10.6 are released (#1253) push 09 Nov 2021 07:21AM UTC GitHub github pending completion  
1143079961 master return unsigned in database type name when necessary (#1238) push 18 Aug 2021 12:21PM UTC GitHub github pending completion  
See All Builds (362)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc