Skip to content

Socket server crashes if the socket is closed by the remote host before stream_socket_accept is called #22

@krageon

Description

@krageon

If the remote host closes the socket early, this raises an E_WARNING when calling stream_socket_accept. This turns into an exception (depending on your configuration).

Seeing as the output of this function is checked (false or something else) exactly one line after it is called, it makes sense to suppress the warnings and use the existing handling for this case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions