Skip to content

CTCPServer::Send can result in SIGPIPE #16

Open

Description

@logidelic

First, thanks for this project. Quite useful.

One issue I've noticed so far: If the connection gets disconnected for some reason just before a CTCPServer::Send call, then Send will result in a SIGPIPE under Linux, aborting the program.

Instead, this should be handled gracefully (ex Send should return an error).

Activity

  1. logidelic commented on Apr 21, 2021

    @logidelic
    Author

    Thanks for that. Yea, for the send call, I ended up changing the flags passed to MSG_NOSIGNAL (I think recv needs the same). IMO this be the default for this lib, but I'll let you decide. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions