-
Notifications
You must be signed in to change notification settings - Fork 17
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
Conversation
Clonkk
commented
May 10, 2024
•
edited
Loading
edited
- 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
…to display errno behind a define; start work on overriding default send / receive flags with NOWAIT in async context
### 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. | ||
|
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
ping @Araq anything else for this PR ? |