Skip to content

Cannot set ZMQ_HEARTBEAT_TTL to more than 655.3 seconds #3136

Closed
@sigiesec

Description

@sigiesec

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

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