Keep sockets alive after connecting

This commit is contained in:
Steve Lamb
2015-07-15 10:29:53 -07:00
parent 3ee8b1b884
commit eb31659345

View File

@@ -38,6 +38,8 @@ TunnelCluster.prototype.open = function() {
port: remote_port
});
remote.setKeepAlive(true);
remote.on('error', function(err) {
// emit connection refused errors immediately, because they
// indicate that the tunnel can't be established.