Skip to content

fix(WASIX): use advance_unchecked for TcpStream read_buf#17

Merged
marxin merged 1 commit intowasix-1.90.0from
fix-read_buf-for-TcpStream
Mar 27, 2026
Merged

fix(WASIX): use advance_unchecked for TcpStream read_buf#17
marxin merged 1 commit intowasix-1.90.0from
fix-read_buf-for-TcpStream

Conversation

@marxin
Copy link
Copy Markdown

@marxin marxin commented Mar 27, 2026

The recv already write into the buffer without first updating the cursor’s initialized-byte bookkeeping. Thus advance_unchecked must be used, otherwise we'll hit:

assertion failed: n <= self.buf.init - self.buf.filled

The recv already write into the buffer without first updating the cursor’s initialized-byte bookkeeping.
Thus advance_unchecked must be used, otherwise we'll hit:
```
assertion failed: n <= self.buf.init - self.buf.filled
```
@marxin marxin merged commit cdf4e9f into wasix-1.90.0 Mar 27, 2026
4 checks passed
@marxin marxin deleted the fix-read_buf-for-TcpStream branch March 27, 2026 12:50
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