Skip to content

Handle swift-testing events > 8kb #800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 14, 2024

Conversation

plemarquand
Copy link
Contributor

Using Node's built in net.Socket imposes an 8kb message limit on the JSONL writes from swift-testing. This meant that if a test case had a lot of iterations the test event would overrun the limit and the message would never be read.

Create our own readable stream and manage pausing/resuming the pipe on data/drain events. This allows for swift-testing to write whatever size messages it wants.

Using Node's built in net.Socket imposes an 8kb message limit on the
JSONL writes from swift-testing. This meant that if a test case had a
lot of iterations the `test` event would overrun the limit and the
message would never be read.

Create our own readable stream and manage pausing/resuming the pipe on
data/drain events. This allows for swift-testing to write whatever size
messages it wants.
@plemarquand plemarquand force-pushed the named-pipe-backpressure branch from 04b6aed to 03fc340 Compare May 14, 2024 16:10
@plemarquand plemarquand merged commit c27b60c into swiftlang:main May 14, 2024
@plemarquand plemarquand deleted the named-pipe-backpressure branch May 14, 2024 16:48
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