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

shogo82148 / mysql / 8403035702
82%

Build:
DEFAULT BRANCH: master
Ran 23 Mar 2024 04:21PM UTC
Jobs 26
Files 18
Run time 1min
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

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

Jobs
ID Job ID Ran Files Coverage
1 Linux-Go-1.22-DB-8.3 - 8403035702.1 23 Mar 2024 04:21PM UTC 17
82.34
GitHub Action Run
2 Linux-Go-1.22-DB-mariadb-10.5 - 8403035702.2 23 Mar 2024 04:21PM UTC 17
82.29
GitHub Action Run
3 Linux-Go-1.22-DB-mariadb-10.6 - 8403035702.3 23 Mar 2024 04:21PM UTC 17
82.21
GitHub Action Run
4 Linux-Go-1.21-DB-8.0 - 8403035702.4 23 Mar 2024 04:21PM UTC 17
82.34
GitHub Action Run
5 Linux-Go-1.22-DB-5.7 - 8403035702.5 23 Mar 2024 04:22PM UTC 17
82.21
GitHub Action Run
6 macOS-Go-1.22-DB-8.0 - 8403035702.6 23 Mar 2024 04:22PM UTC 17
82.24
GitHub Action Run
7 Linux-Go-1.22-DB-8.0 - 8403035702.7 23 Mar 2024 04:21PM UTC 17
82.26
GitHub Action Run
8 Linux-Go-1.22-DB-mariadb-11.3 - 8403035702.8 23 Mar 2024 04:21PM UTC 17
82.21
GitHub Action Run
9 macOS-Go-1.22-DB-8.3 - 8403035702.9 23 Mar 2024 04:22PM UTC 17
82.16
GitHub Action Run
10 macOS-Go-1.22-DB-5.7 - 8403035702.10 23 Mar 2024 04:22PM UTC 17
82.1
GitHub Action Run
11 macOS-Go-1.22-DB-mariadb-10.11 - 8403035702.11 23 Mar 2024 04:22PM UTC 17
82.18
GitHub Action Run
12 Linux-Go-1.20-DB-8.0 - 8403035702.12 23 Mar 2024 04:21PM UTC 17
82.34
GitHub Action Run
13 Linux-Go-1.22-DB-mariadb-10.11 - 8403035702.13 23 Mar 2024 04:21PM UTC 17
82.21
GitHub Action Run
14 Linux-Go-1.22-DB-mariadb-11.1 - 8403035702.14 23 Mar 2024 04:22PM UTC 17
82.29
GitHub Action Run
15 Windows-Go-1.22-DB-5.7 - 8403035702.15 23 Mar 2024 04:22PM UTC 17
82.04
GitHub Action Run
16 macOS-Go-1.22-DB-mariadb-11.1 - 8403035702.16 23 Mar 2024 04:22PM UTC 17
82.18
GitHub Action Run
17 Windows-Go-1.22-DB-mariadb-10.5 - 8403035702.17 23 Mar 2024 04:22PM UTC 17
82.12
GitHub Action Run
18 Windows-Go-1.22-DB-mariadb-10.11 - 8403035702.18 23 Mar 2024 04:23PM UTC 17
82.04
GitHub Action Run
19 Windows-Go-1.22-DB-8.0 - 8403035702.19 23 Mar 2024 04:23PM UTC 17
82.14
GitHub Action Run
20 macOS-Go-1.22-DB-mariadb-10.6 - 8403035702.20 23 Mar 2024 04:23PM UTC 17
82.18
GitHub Action Run
21 macOS-Go-1.22-DB-mariadb-10.5 - 8403035702.21 23 Mar 2024 04:23PM UTC 17
82.18
GitHub Action Run
22 macOS-Go-1.22-DB-mariadb-11.3 - 8403035702.22 23 Mar 2024 04:23PM UTC 17
82.18
GitHub Action Run
23 Windows-Go-1.22-DB-mariadb-11.1 - 8403035702.23 23 Mar 2024 04:23PM UTC 17
82.04
GitHub Action Run
24 Windows-Go-1.22-DB-mariadb-10.6 - 8403035702.24 23 Mar 2024 04:23PM UTC 17
82.04
GitHub Action Run
25 Windows-Go-1.22-DB-mariadb-11.3 - 8403035702.25 23 Mar 2024 04:24PM UTC 17
82.04
GitHub Action Run
26 Windows-Go-1.22-DB-8.3 - 8403035702.26 23 Mar 2024 04:24PM UTC 17
82.06
GitHub Action Run
Source Files on build 8403035702
  • Tree
  • List 18
  • Changed 12
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • d7ddb8b9 on github
  • Prev Build on master (#8391019197)
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

© 2026 Coveralls, Inc