-
Notifications
You must be signed in to change notification settings - Fork 80
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
Fix write to check poll_ready before sending data #81
base: master
Are you sure you want to change the base?
Conversation
The current Quinn implementation doesn't actually send the data on the stream; it just buffers it until a Lines 421 to 425 in 4ccd1a2
Lines 382 to 385 in 4ccd1a2
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Oops, approved this a bit too quickly... I looks like this swap makes all the transfers fail. I vaguely remember having this problem. @camshaft suggestion might help. Also, do you think the transfer should be initiated at the first |
Like mentioned in the issue, it would be most obvious to behave like the Sink trait:
|
Right, maybe I should have read the issue beforehand 😅 . Thanks! While we're at it, we might want to ditch
Or maybe implement |
Yeah AsyncWrite isn't the most efficient way of transferring data, especially when the data is already a |
Nice ! I didn't know about this project. |
we just launched yesterday 😄 |
Closes #78