You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zmq_poller does not return ETERM when a registed socket's context is shutdown if no flags is specified. Note that this is only an issue when no flag is specified.
If you have a poller that only has one or more sockets without any flags registered, it can never return succesfully. Calling zmq_poller_wait with an infinite timeout in this case should probably fail with EINVAL immediately, independently from the shutdown of the context.
This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions.
Issue description
zmq_poller
does not returnETERM
when a registed socket's context is shutdown if no flags is specified. Note that this is only an issue when no flag is specified.Environment
Minimal test code / Steps to reproduce the issue
zmq_poller
.zmq_ctx_shutdown
on the context of the registered socket.zmq_poller_wait
with no timeout (-1) on the poller.What's the actual result? (include assertion message & call stack if applicable)
The call to
zmq_poller_wait
blocks forever.What's the expected result?
Since the context of one of the registered socket was terminated, the call to
zmq_poller_wait
should fail withETERM
, as specified in the docs.The text was updated successfully, but these errors were encountered: