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

move generic Buffer parameter to fn #94

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yu-re-ka
Copy link
Contributor

@yu-re-ka yu-re-ka commented Jun 17, 2022

Solves #93

The idea is that the quic abstraction does not need the send_data method with its protections. h3::quic::SendStream only has poll_write() and we use that in the higher levels to implement send_data() as an async fn.
The user can not accidentally have two running send_data() calls, because the async fn takes a mutable borrow of the RequestStream.

@yu-re-ka yu-re-ka mentioned this pull request Jun 24, 2022
@yu-re-ka
Copy link
Contributor Author

I still think this is the right way to do it, making both the code and the api cleaner.
But please let me know your opinion so that I can either close or rebase this.

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