envoyproxy/envoy

wasm: protect against blocking scripts

Open

#14,126 opened on Nov 20, 2020

View on GitHub
 (6 comments) (3 reactions) (0 assignees)C++ (5,373 forks)batch import
area/wasmhelp wanted

Repository metrics

Stars
 (27,997 stars)
PR merge metrics
 (Avg merge 8d) (378 merged PRs in 30d)

Description

An infinite loop in a Wasm script causes envoy worker to spin and block. Envoy does not respond to ^C. A well-meaning module might have long loops that are potentially taking too much of work. Ideally, the module should be able to yield back strategically and let Envoy handle book keeping business (e.g. potentially stopping the script if the request is interrupted).

Contributor guide