Skip to content

API that enables atomic writing #2229

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

Open
gretchenfrage opened this issue May 10, 2025 · 0 comments
Open

API that enables atomic writing #2229

gretchenfrage opened this issue May 10, 2025 · 0 comments

Comments

@gretchenfrage
Copy link
Collaborator

As noted in Discord, the WebTransport API suggests that we are likely to want to implement, in some form or another, an API that allows a user to attempt to atomically write a byte chunk of a user-controlled length:

The atomicWrite method will reject if the chunk given to it could not be sent in its entirety within the flow control window that is current at the time of sending. This behavior is designed to satisfy niche transactional applications sensitive to flow control deadlocks ([RFC9308] Section 4.4).

@gretchenfrage gretchenfrage changed the title API that enables atomic writnig API that enables atomic writing May 10, 2025
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

No branches or pull requests

1 participant