Open
Description
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
Labels
No labels