-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Seek stream_position error when using Compat with File #5764
Comments
MVP is here: https://github.com/tmpfs/tokio-compat-seek I notice that if I call |
Thank you. This seems like a bug in the |
I'd like to give this a shot, if that's alright? Any suggestion for a place to start looking at is greatly welcomed. |
The problem is likely here: tokio/tokio-util/src/compat.rs Lines 223 to 237 in a2941e4
|
Looks like this issue is solved in the merged PR #5783, and we can close this issue. 😊 |
Version
Platform
Description
Calling
stream_position()
after a write fails when using thefutures::io
compatibility traits but works when usingtokio::fs::File
directly.Here is a small program that reproduces the issue:
Yields this output:
Cargo.toml:
I expected to see the correct stream position in both function calls, instead the second call using
Compat
errors.Any ideas why this error is happening?
The text was updated successfully, but these errors were encountered: