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

go-sql-driver / mysql / 8393028863
83%

Build:
DEFAULT BRANCH: master
Ran 22 Mar 2024 03:58PM 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%
8393028863

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

1130463.07 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Windows-Go-1.22-DB-mariadb-11.3 - 8393028863.1 22 Mar 2024 04:02PM UTC 17
82.04
GitHub Action Run
2 Windows-Go-1.22-DB-8.3 - 8393028863.2 22 Mar 2024 04:00PM UTC 17
82.06
GitHub Action Run
3 Linux-Go-1.22-DB-5.7 - 8393028863.3 22 Mar 2024 03:58PM UTC 17
82.21
GitHub Action Run
4 Windows-Go-1.22-DB-5.7 - 8393028863.4 22 Mar 2024 04:00PM UTC 17
82.04
GitHub Action Run
5 macOS-Go-1.22-DB-mariadb-11.1 - 8393028863.5 22 Mar 2024 03:59PM UTC 17
82.1
GitHub Action Run
6 Linux-Go-1.20-DB-8.0 - 8393028863.6 22 Mar 2024 03:58PM UTC 17
82.34
GitHub Action Run
7 Linux-Go-1.21-DB-8.0 - 8393028863.7 22 Mar 2024 03:58PM UTC 17
82.34
GitHub Action Run
8 Linux-Go-1.22-DB-mariadb-10.6 - 8393028863.8 22 Mar 2024 03:58PM UTC 17
82.21
GitHub Action Run
9 Linux-Go-1.22-DB-mariadb-11.1 - 8393028863.9 22 Mar 2024 03:58PM UTC 17
82.21
GitHub Action Run
10 Linux-Go-1.22-DB-mariadb-11.3 - 8393028863.10 22 Mar 2024 03:58PM UTC 17
82.21
GitHub Action Run
11 macOS-Go-1.22-DB-8.0 - 8393028863.11 22 Mar 2024 03:58PM UTC 17
82.16
GitHub Action Run
12 macOS-Go-1.22-DB-8.3 - 8393028863.12 22 Mar 2024 03:59PM UTC 17
82.24
GitHub Action Run
13 Linux-Go-1.22-DB-mariadb-10.11 - 8393028863.13 22 Mar 2024 03:58PM UTC 17
82.21
GitHub Action Run
14 macOS-Go-1.22-DB-mariadb-10.6 - 8393028863.14 22 Mar 2024 03:59PM UTC 17
82.1
GitHub Action Run
15 macOS-Go-1.22-DB-5.7 - 8393028863.15 22 Mar 2024 03:58PM UTC 17
82.1
GitHub Action Run
16 Linux-Go-1.22-DB-8.3 - 8393028863.16 22 Mar 2024 03:58PM UTC 17
82.26
GitHub Action Run
17 Windows-Go-1.22-DB-8.0 - 8393028863.17 22 Mar 2024 04:00PM UTC 17
82.14
GitHub Action Run
18 macOS-Go-1.22-DB-mariadb-10.5 - 8393028863.18 22 Mar 2024 03:59PM UTC 17
82.1
GitHub Action Run
19 Windows-Go-1.22-DB-mariadb-11.1 - 8393028863.19 22 Mar 2024 04:00PM UTC 17
82.04
GitHub Action Run
20 Linux-Go-1.22-DB-8.0 - 8393028863.20 22 Mar 2024 03:58PM UTC 17
82.34
GitHub Action Run
21 macOS-Go-1.22-DB-mariadb-10.11 - 8393028863.21 22 Mar 2024 03:58PM UTC 17
82.18
GitHub Action Run
22 Windows-Go-1.22-DB-mariadb-10.11 - 8393028863.22 22 Mar 2024 04:00PM UTC 17
82.04
GitHub Action Run
23 Linux-Go-1.22-DB-mariadb-10.5 - 8393028863.23 22 Mar 2024 03:58PM UTC 17
82.21
GitHub Action Run
24 Windows-Go-1.22-DB-mariadb-10.6 - 8393028863.24 22 Mar 2024 04:00PM UTC 17
82.04
GitHub Action Run
25 macOS-Go-1.22-DB-mariadb-11.3 - 8393028863.25 22 Mar 2024 04:00PM UTC 17
82.18
GitHub Action Run
26 Windows-Go-1.22-DB-mariadb-10.5 - 8393028863.26 22 Mar 2024 04:02PM UTC 17
82.12
GitHub Action Run
Source Files on build 8393028863
  • 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 (#8312957856)
  • Next Build on master (#8888583221)
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