Open rracariu opened 2 years ago
Looks that the limit for the number of pending promises is 129, anything larger than this would hang the test on my machine.
Surreal Client uses web sockets for connecting to the Surreal Server, not sure what might change in Deno to affect this.
The issue persists in Deno 1.27.2
.
Looks that the limit for the number of pending promises is 129, anything larger than this would hang the test on my machine.
@rracariu what do you mean by that? Do you mean that Deno is not able to resolve more than 129 pending promises?
Hmm we have scripts that do millions of promise resolutions in batch. This issue might be related to I/O
That conclusion was based on a simple test with limiting the number of request to 128
instead of 1000
as described in the original comment, making it 129 is reproducible on my machine with always hanging.
IMHO the issue is most likely related to web sockets.
The code bellow finishes successfully with
Deno 1.27.0
but hangs withDeno 1.27.1
deno run -A test.ts
More info about Surreal