Fix copy-paste bugs in settings.c for TlsServerMaxSendBuffer#5823
Fix copy-paste bugs in settings.c for TlsServerMaxSendBuffer#5823
Conversation
Co-authored-by: saikat107 <2145576+saikat107@users.noreply.github.com>
Co-authored-by: saikat107 <2145576+saikat107@users.noreply.github.com>
Co-authored-by: saikat107 <2145576+saikat107@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5823 +/- ##
==========================================
- Coverage 86.11% 85.66% -0.45%
==========================================
Files 60 60
Lines 18729 18729
==========================================
- Hits 16129 16045 -84
- Misses 2600 2684 +84 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…erMaxSendBuffer Co-authored-by: saikat107 <2145576+saikat107@users.noreply.github.com>
|
@copilot, is there other places in |
I've scanned all three functions in |
|
Looks good to me, thanks for the PR. |
Will contribute with full DeepTest tests. |
Three copy-paste bugs in
src/core/settings.ccausedTlsServerMaxSendBufferto never be properly initialized with its default value or propagated during settings merge/copy. A full scan of the file confirmed no further instances of this pattern remain.Description
QuicSettingsSetDefault): Secondifblock was checking/assigningTlsClientMaxSendBufferwithQUIC_MAX_TLS_SERVER_SEND_BUFFER— corrected to check and assignTlsServerMaxSendBuffer.QuicSettingsCopy): Two duplicate blocks (exact copies of theTlsClientMaxSendBufferblock) were silently no-ops forTlsServerMaxSendBuffer— both corrected to operate onTlsServerMaxSendBuffer(one at the originally reported location ~line 530, and one additional instance found at line 249).QuicSettingsSetDefault,QuicSettingsCopy,QuicSettingsMerge) were audited and confirmed to have no remaining instances of this bug.Testing
No existing tests cover these specific fields directly. The bugs were logic errors (dead/duplicate code paths), not behavioral regressions, so no new tests are added.
Documentation
No documentation impact.
Original prompt
src/core/settings.c#5822🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.