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: ready-based immediate task indexing #1129

Merged
merged 6 commits into from
Feb 26, 2025
Merged

Conversation

guybedford
Copy link
Member

This fixes a bug found by @harmony7 in https://github.com/harmony7/compute-react19-readablestream-repro where a specific setup in async tasks with immediate timers would lead to a panic.

The panic in this case turns out to be in the Fastly event loop layer, where I previously implemented a bug in the optimized immediate handle checking case in not properly looking up the immediate index. The logic fix is self-explanatory for the most part.

Confirmed that with this change the linked repo no longer panics.

@guybedford
Copy link
Member Author

CI is currently failing because the fastly config-store create command doesn't seem to be working currently.

Since this is critical fix I'm going ahead with the release based on local & viceroy tests passing and the changes for this release being fully isolated to this subsystem.

@guybedford guybedford merged commit 8cfad4f into main Feb 26, 2025
22 of 28 checks passed
@guybedford guybedford deleted the readablestream-bug branch February 26, 2025 03:01
@harmony7
Copy link
Member

Thanks for this fix!

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