google / google/CodeCity

Busy-loop with suspend() blocks inbound network taffic

Open
#350 0 comments 0 reactions 0 assignees View on GitHub
bug server
Dominant language
JavaScript
Stars
198
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Because `Interpreter.prototype.run` doesn't yield the event loop so long as there is a thread ready to run, (it is almost certainly the case that) network event handers will never get the chance to run so long as there is a long-running computation task running, even if it regularly calls `suspend`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.