Skip to content
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

Buf_write should have back-pressure #760

Open
talex5 opened this issue Oct 4, 2024 · 0 comments
Open

Buf_write should have back-pressure #760

talex5 opened this issue Oct 4, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@talex5
Copy link
Collaborator

talex5 commented Oct 4, 2024

Buf_write writes allocate extra buffer space as needed. Currently there is no limit to how much. It would be good if it could suspend the calling fiber when some limit is reached and wait until some existing data has been consumed before continuing.

The easiest way would be to limit the number of internal buffers (which only requires checking on the slow allocation path). However, that does expose a detail of the internal buffering to users. Having an exact byte limit would make it easier to specify the behaviour precisely, but would perhaps be more expensive.

@talex5 talex5 added the enhancement New feature or request label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant