Commit bb16ecc
Fix Garmin Connect consecutive upload SSL error (#4154)
Fixes #4135 - Users reported that only the first FIT file upload
to Garmin Connect succeeded, while consecutive uploads failed with:
"SSL routines:ssl3_read_bytes:sslv3 alert bad record mac"
Root cause: QNetworkAccessManager was reusing stale SSL connections
between consecutive uploads, causing the server to reject the second
request due to connection state inconsistency.
Solution: Added "Connection: close" header to both uploadFitFile()
and uploadActivity() methods to force connection closure after each
upload, preventing SSL connection reuse issues.
This ensures clean SSL handshakes for every upload request.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 77d18da commit bb16ecc
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
| |||
1334 | 1339 | | |
1335 | 1340 | | |
1336 | 1341 | | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1337 | 1348 | | |
1338 | 1349 | | |
1339 | 1350 | | |
| |||
0 commit comments