From eb31659345ad96dc3c72d260c14cd50aa3f27aca Mon Sep 17 00:00:00 2001 From: Steve Lamb Date: Wed, 15 Jul 2015 10:29:53 -0700 Subject: [PATCH] Keep sockets alive after connecting --- lib/TunnelCluster.js | 2 ++ 1 file changed, 2 insertions(+) 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.