mirror of
https://github.com/bitinflow/localtunnel.git
synced 2026-03-19 00:15:55 +00:00
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