-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
I am using following for my NodeJS server,
const snmpTrap = require('snmpjs');
var log = new bunyan({ name: 'snmpd', level: 'trace'});
var trapd = snmpTrap.createTrapListener({log: log});
trapd.bind(options);
trapd.on('trap',function(msg) {
handleTrap(msg);
});
However, when I try graceful shutdown the Node server, I got the port 162 INUSE error, which is because of the absence of removeListener method. So is there a way to gracefully shutdown the snmpTrap listener?
Metadata
Metadata
Assignees
Labels
No labels