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
When using a bad URL I would expect a failure, but instead nothing happens.
Reproducing
npm install --save zeromq@5
// note the invalid `.1041`varzmqUrl='tcp://10.0.0.1041:28332';
varzmq=require('zeromq');varzmqSubSocket=zmq.socket('sub');zmqSubSocket.on('connect',function(fd,endPoint){console.info('ZMQ connected to:',endPoint);});zmqSubSocket.on('connect_delay',function(fd,endPoint){console.warn('ZMQ connection delay:',endPoint);});zmqSubSocket.on('disconnect',function(fd,endPoint){console.warn('ZMQ disconnect:',endPoint);});zmqSubSocket.on('monitor_error',function(err){console.error('Error in monitoring: %s, will restart monitoring in 5 seconds',err);});zmqSubSocket.monitor(500,0);zmqSubSocket.connect(zmqUrl);
node ./test.js
# just sits there and hangs
Expected behavior
An error should be thrown.
Tested on
OS: Ubuntu 22.04 LTS
ZeroMQ.js version: 5.3.1
The text was updated successfully, but these errors were encountered:
Describe the bug
When using a bad URL I would expect a failure, but instead nothing happens.
Reproducing
node ./test.js # just sits there and hangs
Expected behavior
An error should be thrown.
Tested on
The text was updated successfully, but these errors were encountered: