Local port forwarding implementation, when to close channel #355
Replies: 1 comment 3 replies
-
Both |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I am trying to implement local port forwaring and my goal is to be as close as possible to the functionality of
ssh -L ...
. I found issue #256 that is related and followed the ideas there. But the code there has an important drawback in my opinion, for every connection it creates an inner loop that never terminates (listens for client/server messages indefinitely), see:This means we have infinitely running tokio tasks that amess if the port forwarding is running for a long time.
What is the suggested solution to that problem?
Beta Was this translation helpful? Give feedback.
All reactions