You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was fiddling with the timeout option. It seems like it doesn't quite work as I'd expect (any maybe you as well!)
The setup
I have a bash script that sleeps for 6 seconds (sample.sh) and a nodejs file that is supposed to timeout after 200ms.
What's happening
The nodejs file rejects as expected but not after 200ms but after 6seconds. This is weird.
I investigated a bit and the internal timeout to kill the process is reached. The process is killed as well.
The issue seems to be this line; It looks like we are waiting for the stream of the killed process. It seems unusual since it will never talk again.
Removing the selected line (and the one after it) makes the process timeout nicely. The cleanup doesn't seem to be correct.
I've tried to work around by passing the options stdout and stderr and set each to null but that didn't really help.
Attached you'll find the sample project. Please let me know if something is missing. I might try to find a solution this evening.. ;) execa_timeout_broken.tar.gz
Hello there,
I was fiddling with the timeout option. It seems like it doesn't quite work as I'd expect (any maybe you as well!)
The setup
I have a bash script that sleeps for 6 seconds (sample.sh) and a nodejs file that is supposed to timeout after 200ms.
What's happening
The nodejs file rejects as expected but not after 200ms but after 6seconds. This is weird.
I investigated a bit and the internal timeout to kill the process is reached. The process is killed as well.
The issue seems to be this line; It looks like we are waiting for the stream of the killed process. It seems unusual since it will never talk again.
Removing the selected line (and the one after it) makes the process timeout nicely. The cleanup doesn't seem to be correct.
I've tried to work around by passing the options
stdout
andstderr
and set each to null but that didn't really help.Attached you'll find the sample project. Please let me know if something is missing. I might try to find a solution this evening.. ;)
execa_timeout_broken.tar.gz
The text was updated successfully, but these errors were encountered: