PHP is a short-lived process, but it's often common to daemonize it for long-running tasks. A good example would be running a ReactPHP server on Supervisord for handling WebSocket connections (because, you know, you hate Node even though it would be a perfectly valid solution in this case 😜).
So here's my question: PHP and memory leaks are synonymous, which makes me wonder how solutions like ReactPHP perform in production. Here's my nightmare: The ReactPHP server is handling 10,000 WebSocket connections when Supervisor (or something else) realizes that the daemon is leaking memory big time and well, decides to restart it.
If so, what happens to all the active WebSocket connections? 😱😱