When a client disconnects before the slave is able to produce any output, lastOutgoingData is empty and PHP PM interpretes it as empty response. PHP PM should detect that the slave is closing because of the client (not because the slave is ready) and avoid logging this warning.
This is annoying because these messages could hide a real issue.
How to reproduce
- Start PHP PM
- Connect with netcat "nc ip port"
- Kill netcat (e.g. Control-C)
- Result: "Script did not return a valid HTTP response. Maybe it has called exit() prematurely?" in the logs
When a client disconnects before the slave is able to produce any output, lastOutgoingData is empty and PHP PM interpretes it as empty response. PHP PM should detect that the slave is closing because of the client (not because the slave is ready) and avoid logging this warning.
This is annoying because these messages could hide a real issue.
How to reproduce