Commit f25f432
## 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.
---------
Co-authored-by: Michael Friesen <[email protected]>
1 parent b25db06 commit f25f432
2 files changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
977 | 977 | | |
978 | 978 | | |
979 | 979 | | |
980 | | - | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
981 | 990 | | |
982 | 991 | | |
983 | 992 | | |
| |||
991 | 1000 | | |
992 | 1001 | | |
993 | 1002 | | |
994 | | - | |
| 1003 | + | |
995 | 1004 | | |
996 | 1005 | | |
997 | 1006 | | |
| |||
0 commit comments