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

https://github.com/rust-lang/futures-rs/pull/2583 introduced regression in select_with_strategy #2634

Closed
Sushisource opened this issue Aug 16, 2022 · 2 comments · Fixed by #2635
Labels
A-stream Area: futures::stream bug

Comments

@Sushisource
Copy link
Contributor

Sushisource commented Aug 16, 2022

Hello,

Recently updated my deps and started encountering all sorts of weird errors.

Narrowed it down to likely being something with select_with_strategy, and looking at the change notes I suspect this line of code here is the source of my problems.

I am (as in the example here) using an always-select-left strategy. The problem with the new code is that, if the right stream terminates, such a strategy now considers the combined stream as terminated.

I have created a PR here for the fix , but have not had time to add a test quite yet. There should definitely be one though, clearly.

@taiki-e
Copy link
Member

taiki-e commented Aug 16, 2022

cc @414owen

@taiki-e taiki-e added the bug label Aug 16, 2022
@414owen
Copy link
Contributor

414owen commented Aug 16, 2022

@Sushisource It's quite possible that I've introduced a regression, but I don't it think would be in the lines you linked.

I've commented on your PR with more detail.

@taiki-e taiki-e added the A-stream Area: futures::stream label Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-stream Area: futures::stream bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants