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

Cannot set ZMQ_HEARTBEAT_TTL to more than 655.3 seconds #3136

Closed
sigiesec opened this issue May 25, 2018 · 0 comments
Closed

Cannot set ZMQ_HEARTBEAT_TTL to more than 655.3 seconds #3136

sigiesec opened this issue May 25, 2018 · 0 comments

Comments

@sigiesec
Copy link
Member

Issue description

The maximum value for ZMQ_HEARTBEAT_TTL is not correctly checked.

Environment

  • libzmq version (commit hash if unreleased): 50374bf
  • OS: any

Minimal test code / Steps to reproduce the issue

int value = 655400;
zmq_setsockopt (socket, ZMQ_HEARTBEAT_TTL, &value, sizeof (value))

What's the actual result? (include assertion message & call stack if applicable)

-1 / EINVAL

What's the expected result?

0

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

No branches or pull requests

1 participant