Merge pull request #85 from zeevl/keep-alive

Keep sockets alive after connecting
This commit is contained in:
Roman Shtylman
2015-07-15 15:19:35 -07:00

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.