Open kevzettler opened 11 years ago
Ive switched this code back and forth a few times. There is a performance advantage to keeping the server up - no startup cost if server is already up. On the other hand you have to call exit or you'll get zombies like you said. Can you make sure your code is calling exit and waiting for callback to complete?
Maybe we should close all processes by default, then provide an option to keep open?
I think the most natural and expected behavior is to close the phantomjs process by default. I find that leaving it open the phantom-proxy dosen't always reconnect and spins up additional processes. Phantomjs will also crash and have strange behavior with multiple instances running.
Why is this commented out?
https://github.com/sheebz/phantom-proxy/blob/master/lib/proxy.js#L81
I believe this is causing zombie phantomjs processes to pile up and requires a
killall