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

Fix panic when Delay is used after Poll::Ready #74

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

Conversation

oblique
Copy link

@oblique oblique commented Jun 4, 2024

WASM implementation was inconsistent to the native once when Delay was polled after it returned Poll::Ready. WASM was producing a panic because gloo_timers::future::TimeoutFuture panic in this case.

In this PR I also enable test cases under tests to run in WASM.

We discovered this bug while researching eigerco/lumina#256.

@oblique oblique force-pushed the fix/wasm-panic branch 2 times, most recently from 977239e to e2163ce Compare June 4, 2024 13:40
@oblique oblique changed the title fix(wasm): Fix panic when timer future is re-used fix(wasm): Fix panic when Delay is reused before resetting Jun 4, 2024
@oblique oblique changed the title fix(wasm): Fix panic when Delay is reused before resetting Fix panic when Delay is used after Poll::Ready Jun 4, 2024
oblique added a commit to oblique/rust-libp2p that referenced this pull request Jun 6, 2024
mergify bot pushed a commit to libp2p/rust-libp2p that referenced this pull request Jun 10, 2024
TimTinkers pushed a commit to unattended-backpack/rust-libp2p that referenced this pull request Sep 14, 2024
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