Skip to content

tests: Add test for error when server ring buffer is full#837

Merged
ids1024 merged 2 commits intomasterfrom
buffer-size-test
Nov 19, 2025
Merged

tests: Add test for error when server ring buffer is full#837
ids1024 merged 2 commits intomasterfrom
buffer-size-test

Conversation

@ids1024
Copy link
Member

@ids1024 ids1024 commented Oct 28, 2025

For #815, I'd like to have something that works the same way for wayland and sys backend, and have a test that it behaves as expected with and without an increased buffer size.

This is an initial prototype of a test to use here.

@ids1024 ids1024 force-pushed the buffer-size-test branch 2 times, most recently from 12e1b25 to 9649776 Compare October 28, 2025 22:08
@ids1024
Copy link
Member Author

ids1024 commented Oct 28, 2025

So in server_sys backend, we get BrokenPipe instead of ConnectionReset. But libwayland-server also prints a Data too big for buffer log message.

So that's one difference to consider first. Though limited buffer sizes breaking connections do occur with both backends.

@ids1024 ids1024 force-pushed the buffer-size-test branch 2 times, most recently from 50de25d to 2f46b60 Compare November 19, 2025 03:59
Should only one error be returned here (on both backends)? For now,
check for both connection reset and broken pipe errors.

When we add a way to set the buffer size, we can have more tests here,
to verify first that an error occurs without increasing the buffer size,
then that it works without error after increasing the size as needed.
@ids1024 ids1024 changed the title WIP Test for buffer size tests: Add test for error when server ring buffer is full Nov 19, 2025
@ids1024 ids1024 marked this pull request as ready for review November 19, 2025 04:03
@ids1024 ids1024 merged commit 2b5233c into master Nov 19, 2025
14 checks passed
@ids1024 ids1024 deleted the buffer-size-test branch November 19, 2025 04:04
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.

1 participant