Skip to content

why pub socket does not reconnect #914

Open
@huogan

Description

@huogan

Pub socket and Sub socket lose connection at the same time, but SUB will reconnect, pub does not reconnect,
Sub socket can receive messages, but others cannot receive the messages my Pub socket send.

			ZContext context = new ZContext();

			ZMQ.Socket publisher = this.context.createSocket(SocketType.PUB);

			publisher.setTCPKeepAlive(1);
			publisher.setTCPKeepAliveIdle(20);
			publisher.setTCPKeepAliveInterval(10);
			publisher.setHeartbeatIvl(2*1000);
			publisher.setHeartbeatTimeout(5*1000);
			publisher.setHeartbeatTtl(10*1000);
			publisher.setReconnectIVLMax(2000);
			publisher.setReconnectIVL(3*1000);
			publisher.setReconnectIVLMax(10*1000);

			publisher.connect(this.pubURL);

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