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

Mu-L / go-mysql-driver / 8783236709
83%

Build:
DEFAULT BRANCH: master
Ran 22 Apr 2024 01:49PM 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.7%) from 81.808%
8783236709

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%)

443 existing lines in 11 files now uncovered.

3122 of 3786 relevant lines covered (82.46%)

1130466.62 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Linux-Go-1.22-DB-mariadb-10.5 - 8783236709.1 22 Apr 2024 04:13PM UTC 0
82.21
GitHub Action Run
2 Linux-Go-1.22-DB-8.3 - 8783236709.2 22 Apr 2024 04:13PM UTC 0
82.26
GitHub Action Run
3 macOS-Go-1.22-DB-mariadb-10.6 - 8783236709.3 22 Apr 2024 01:53PM UTC 0
82.18
GitHub Action Run
4 Linux-Go-1.22-DB-mariadb-10.11 - 8783236709.4 22 Apr 2024 04:13PM UTC 0
82.21
GitHub Action Run
5 Windows-Go-1.22-DB-8.0 - 8783236709.5 22 Apr 2024 01:52PM UTC 0
82.06
GitHub Action Run
6 Linux-Go-1.20-DB-8.0 - 8783236709.6 22 Apr 2024 03:34PM UTC 0
82.34
GitHub Action Run
7 Windows-Go-1.22-DB-8.3 - 8783236709.7 22 Apr 2024 01:52PM UTC 0
82.14
GitHub Action Run
8 Windows-Go-1.22-DB-5.7 - 8783236709.8 22 Apr 2024 01:51PM UTC 0
82.04
GitHub Action Run
9 Windows-Go-1.22-DB-mariadb-10.5 - 8783236709.9 22 Apr 2024 01:51PM UTC 0
82.12
GitHub Action Run
10 macOS-Go-1.22-DB-8.0 - 8783236709.10 22 Apr 2024 01:52PM UTC 0
82.24
GitHub Action Run
11 macOS-Go-1.22-DB-mariadb-11.3 - 8783236709.11 22 Apr 2024 01:55PM UTC 0
82.18
GitHub Action Run
12 Linux-Go-1.22-DB-mariadb-11.1 - 8783236709.12 22 Apr 2024 04:13PM UTC 0
82.21
GitHub Action Run
13 Windows-Go-1.22-DB-mariadb-11.3 - 8783236709.13 22 Apr 2024 01:52PM UTC 0
82.04
GitHub Action Run
14 macOS-Go-1.22-DB-mariadb-10.11 - 8783236709.14 22 Apr 2024 01:52PM UTC 0
82.18
GitHub Action Run
15 macOS-Go-1.22-DB-mariadb-10.5 - 8783236709.15 22 Apr 2024 01:53PM UTC 0
82.18
GitHub Action Run
16 Windows-Go-1.22-DB-mariadb-10.6 - 8783236709.16 22 Apr 2024 01:51PM UTC 0
82.04
GitHub Action Run
17 Linux-Go-1.21-DB-8.0 - 8783236709.17 22 Apr 2024 03:34PM UTC 0
82.34
GitHub Action Run
18 macOS-Go-1.22-DB-5.7 - 8783236709.18 22 Apr 2024 01:51PM UTC 0
82.18
GitHub Action Run
19 Linux-Go-1.22-DB-mariadb-11.3 - 8783236709.19 22 Apr 2024 04:13PM UTC 0
82.21
GitHub Action Run
20 macOS-Go-1.22-DB-8.3 - 8783236709.20 22 Apr 2024 01:49PM UTC 0
82.16
GitHub Action Run
21 Linux-Go-1.22-DB-8.0 - 8783236709.21 22 Apr 2024 03:34PM UTC 0
82.26
GitHub Action Run
22 Windows-Go-1.22-DB-mariadb-10.11 - 8783236709.22 22 Apr 2024 01:51PM UTC 0
82.04
GitHub Action Run
23 Linux-Go-1.22-DB-mariadb-10.6 - 8783236709.23 22 Apr 2024 04:13PM UTC 0
82.21
GitHub Action Run
24 Linux-Go-1.22-DB-5.7 - 8783236709.24 22 Apr 2024 03:35PM UTC 0
82.29
GitHub Action Run
25 Windows-Go-1.22-DB-mariadb-11.1 - 8783236709.25 22 Apr 2024 01:52PM UTC 0
82.04
GitHub Action Run
26 macOS-Go-1.22-DB-mariadb-11.1 - 8783236709.26 22 Apr 2024 01:51PM UTC 0
82.18
GitHub Action Run
Source Files on build 8783236709
Detailed source file information is not available for this build.
  • Back to Repo
  • d7ddb8b9 on github
  • Prev Build on master (#4369438940)
  • Next Build on master (#8901886599)
  • Delete
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