Skip to content

[CP] Persists the virtual buffer size when switching to app owned buffers #5690#5719

Merged
guhetier merged 2 commits intorelease/2.5from
guhetier/cp_app_buffer_fix
Jan 16, 2026
Merged

[CP] Persists the virtual buffer size when switching to app owned buffers #5690#5719
guhetier merged 2 commits intorelease/2.5from
guhetier/cp_app_buffer_fix

Conversation

@guhetier
Copy link
Collaborator

Description

When an endpoint receives a new stream indication, it can provide some receive buffers inline to convert the stream to app-owned buffer mode.
When doing so, the receive buffer struct of the stream is reinitialized, and the virtual buffer length (which correspond to the stream receive window) was set to zero.

This is incorrect since we introduced the "more buffer needed" notification and the receive window is no longer tied to the amount of buffer provided.

This would result in a receive failure with data received outside of the virtual size.

When converting the receive buffer to app-buffer mode, the virtual size is now preserved.

Fixes #5672.

Testing

Test not backported as they rely on changes present only in main

Documentation

Clarify documentation about the app provided receive buffer ownership.

guhetier and others added 2 commits January 15, 2026 15:43
Co-authored-by: Michael Friesen <3517159+mtfriesen@users.noreply.github.com>
@guhetier guhetier requested a review from a team as a code owner January 15, 2026 23:46
@guhetier guhetier enabled auto-merge (squash) January 15, 2026 23:46
@codecov
Copy link

codecov bot commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.17%. Comparing base (b25db06) to head (e65b6f0).
⚠️ Report is 1 commits behind head on release/2.5.

Additional details and impacted files
@@               Coverage Diff               @@
##           release/2.5    #5719      +/-   ##
===============================================
- Coverage        87.25%   86.17%   -1.09%     
===============================================
  Files               59       59              
  Lines            18207    18209       +2     
===============================================
- Hits             15887    15692     -195     
- Misses            2320     2517     +197     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@guhetier guhetier merged commit f25f432 into release/2.5 Jan 16, 2026
285 checks passed
@guhetier guhetier deleted the guhetier/cp_app_buffer_fix branch January 16, 2026 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants