Added a restart for hosting that kills user processes - #14
Conversation
Sustenance
commented
Mar 1, 2016
Actually, don't merge this yet. I need to add a check that the node PID is still alive - just realized that it wasn't actively checking that on each serve |
niutech
commented
Mar 2, 2016
Thank you for your contribution. Could you please add spaces around |
Sustenance
commented
Mar 2, 2016
I can make the requested changes. I called node_serve recursively so that it would redo the check for the PID. |
niutech
commented
Mar 2, 2016
via email
No, I haven't experienced it. Does `$!` also return nothing? |
Sustenance
commented
Apr 11, 2016
Sorry I let this PR die. The host I was using (NameCheap) has an autokiller on its shared hosting apparently, and kills node as soon as it starts. Doesn't look like I'll be able to continue contributing. |
Some shared hosting, such as Namecheap, will periodically kill off users' processes. This should allow the process to be restarted when a request comes in while the process is dead.