mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-20 08:55:53 +00:00
Merge pull request #85 from zeevl/keep-alive
Keep sockets alive after connecting
This commit is contained in:
@@ -38,6 +38,8 @@ TunnelCluster.prototype.open = function() {
|
|||||||
port: remote_port
|
port: remote_port
|
||||||
});
|
});
|
||||||
|
|
||||||
|
remote.setKeepAlive(true);
|
||||||
|
|
||||||
remote.on('error', function(err) {
|
remote.on('error', function(err) {
|
||||||
// emit connection refused errors immediately, because they
|
// emit connection refused errors immediately, because they
|
||||||
// indicate that the tunnel can't be established.
|
// indicate that the tunnel can't be established.
|
||||||
|
|||||||
Reference in New Issue
Block a user