Skip to content

Don't log warning if client disconnects before sending request #481

Description

@mathieudz

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions