piston
piston copied to clipboard
Parallel requests causes losing some stdout

Adding a 0 ms sleep here seems to fix it for some reason:
proc.on('exit', async (code, signal) => {
await new Promise(resolve => set_timeout(resolve, 0));
this.exit_cleanup();
resolve({ stdout, stderr, code, signal, output });
});
Commenting the cleanup doesn't fix it
Hi, I am also facing this issue. Any solutions on how to fix it?
Fixed with the backport PR #613