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(runtime): Fix runtime timeouts #5236

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

leoyvens
Copy link
Collaborator

The handling for epoch-based timeouts wasn't quite right. Using set_epoch_deadline(1) meant the timeout would be hit on the next epoch, which could be anywhere between 0 and timeout seconds away. set_epoch_deadline(2) will make that between timeout and 2*timeout seconds away.

The handling for epoch-based timeouts wasn't quite right.
Using `set_epoch_deadline(1)` meant the timeout would be hit
on the next epoch, which could be anywhere between `0` and `timeout`
seconds away. `set_epoch_deadline(2)` will make that between `timeout`
and `2*timeout` seconds away.
@leoyvens leoyvens force-pushed the leo/fix-timeouts-for-new-wasmtime branch from 656da4f to 09bd64a Compare February 23, 2024 15:48
@leoyvens leoyvens merged commit 647d42c into master Feb 23, 2024
7 checks passed
@leoyvens leoyvens deleted the leo/fix-timeouts-for-new-wasmtime branch February 23, 2024 16:08
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.

None yet

2 participants