Skip to content

Exception thrown on recv if survey timed out #4

Description

@daniel-j-h

Submitting this as an issue, otherwise it gets lost on the mailinglist:
http://www.freelists.org/post/nanomsg/cppnanomsg-throws-on-recv-if-survey-timed-out

  • recv throws except for EAGAIN
  • should also allow error codes such as ETIMEDOUT, EFSM

The wrapper is not usable for the survey pattern, as it returns EFSM right now (should be ETIMEDOUT, see: nanomsg/nanomsg#194).

There's only a single exception type. Catching it on deadline expiration may also catch a fatal error.
There's no way to distinguish between them.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions