Non chiudere socket server per sola inattivita
parent
2a92acc25f
commit
c99cde83ff
|
|
@ -249,7 +249,6 @@ module.exports = function(RED) {
|
|||
});
|
||||
socket.on('timeout', function() {
|
||||
node.log(RED._("tcpin.errors.timeout",{port:node.port}));
|
||||
socket.destroy();
|
||||
});
|
||||
socket.on('close', function() {
|
||||
delete connectionPool[id];
|
||||
|
|
@ -427,7 +426,6 @@ module.exports = function(RED) {
|
|||
node.status({text:RED._("tcpin.status.connections",{count:connectedSockets.length})});
|
||||
socket.on('timeout', function() {
|
||||
node.log(RED._("tcpin.errors.timeout",{port:node.port}));
|
||||
socket.destroy();
|
||||
});
|
||||
socket.on('close',function() {
|
||||
node.log(RED._("tcpin.status.connection-closed",{host:socket.remoteAddress, port:socket.remotePort}));
|
||||
|
|
|
|||
Loading…
Reference in New Issue