We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 245cb86 commit 36a307eCopy full SHA for 36a307e
Platforms/emscripten/streams.mjs
@@ -56,10 +56,10 @@ function handleEAGAIN(cb) {
56
} catch (e) {
57
if (e && e.code === "EAGAIN") {
58
// Presumably this means we're in node and tried to read from/write to
59
- // an O_NONBLOCK file descriptor. Synchronously sleep for 100ms as
60
- // requested by EAGAIN and try again. In case for some reason we fail to
61
- // sleep, propagate the error (it will turn into an EOFError).
62
- if (syncSleep(100)) {
+ // an O_NONBLOCK file descriptor. Synchronously sleep for 10ms then try
+ // again. In case for some reason we fail to sleep, propagate the error
+ // (it will turn into an EOFError).
+ if (syncSleep(10)) {
63
continue;
64
}
65
0 commit comments