WyriHaximus / reactphp-child-process-pool

MIT License
40 stars 9 forks source link

How to handle errors from child process? #51

Open tarasMatskovich opened 4 years ago

tarasMatskovich commented 4 years ago

I get following error: Communication with process stopped unexpectedly when listening $pool->on('error), but i do not know where in my child process error occures - how can i handle such errors?

WyriHaximus commented 4 years ago

So this error only happens when there are outstanding calls to a child process and the process closes before they have been handled. This only happens during a fatal error, or when the process gets OOM killed.