Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonewu committed Jan 27, 2023
1 parent d12835c commit 8f940c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": false,
"name": "ssh-tunneling",
"version": "1.1.14",
"version": "1.1.16",
"description": "a ssh-tunneling client for nodejs",
"keywords": [
"ssh tunnel",
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class SshTunnel {
setTimeout(() => {
// 防止大量并发请求进来时导致 channel 连接数过大,状态默认缓存 3s 后,自动销毁
this.heartbeatPromise = undefined;
}, 3000);
}, 5000);
});
return this.heartbeatPromise;
};
Expand Down Expand Up @@ -378,8 +378,8 @@ class SshTunnel {
});
// pipeline(socket, stream);
// pipeline(stream, socket);
// socket.pipe(stream);
// stream.pipe(socket);
socket.pipe(stream);
stream.pipe(socket);
// socket.on('data', data => {
// logger.orange(`local data, ${data.toString('utf8')}`)
// stream.write(data);
Expand Down

0 comments on commit 8f940c4

Please sign in to comment.