ClusterLabs / anvil

The Anvil! Intelligent Availability™ Platform, mark 3
5 stars 6 forks source link

Web UI: patch repeated SIGTERM on `anvil-access-module` child process #555

Closed ylei-tsubame closed 6 months ago

ylei-tsubame commented 6 months ago

Problem: There's an timeout=10000 (10s) option passed to child_process.spawn with the original intention to prevent the child process from hanging during the start phase. But this option actually meant the max lifespan of the child process; meaning the child process will always get terminated after running for 10 seconds.

The timeout option was introduced in node15.13.0, thus it had no effect in node10 which is the default for RHEL8.

Solution: Remove the timeout option as it's not what we needed.