Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Devel #46

Merged
merged 7 commits into from
May 28, 2024
Merged

Devel #46

merged 7 commits into from
May 28, 2024

Conversation

Clonkk
Copy link
Collaborator

@Clonkk Clonkk commented May 10, 2024

  • Add API to log or echo EAGAIN error
  • Add -d:defaultFlagDontWait to change the default flag to receive / send proc to DONTWAIT instead of NOFLAGS
  • Add docstring about using non-blocking in asyncPoll context
    • Modified examples and test to use non-blocking function in asyncPoll
    • This shouldn't change anything for asyncReceive / asyncSend

### Log EAGAIN errno

Sometimes EAGAIN error happens in ZMQ context; typically this is a non-ctritical error that can be ignored. Nonetheless, if you desire to logg or display such error you can compile with the flag ``-d:zmqEAGAIN`` and EAGAIN error will be logged using ``std/logging`` or ``echo`` to stdout if no logger handler is defined.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How hard would it be to make this a runtime switch? Compile-time switches for libraries do not compose.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very easy.

I will make the change.

@Clonkk
Copy link
Collaborator Author

Clonkk commented May 28, 2024

ping @Araq anything else for this PR ?

@Araq Araq merged commit 6eb2f6e into master May 28, 2024
1 check passed
@Araq Araq deleted the devel branch May 28, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants