diff --git a/lib/TunnelCluster.js b/lib/TunnelCluster.js index 7634f6f..0ee7111 100644 --- a/lib/TunnelCluster.js +++ b/lib/TunnelCluster.js @@ -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.