piston icon indicating copy to clipboard operation
piston copied to clipboard

Parallel requests causes losing some stdout

Open Brikaa opened this issue 3 years ago • 1 comments

image

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

Brikaa avatar Jul 04 '22 12:07 Brikaa

Hi, I am also facing this issue. Any solutions on how to fix it?

gouseferoz avatar Sep 20 '22 10:09 gouseferoz

Fixed with the backport PR #613

Brikaa avatar Sep 16 '23 18:09 Brikaa