[GH-ISSUE #129] Feature request. I would like an option for the tunnel to never be cut. #77

Closed
opened 2026-05-05 10:59:53 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @synaption on GitHub (Apr 17, 2021).
Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/129

If I try to start a tunnel when a tunnel is already using that port on the server, the program exits with error "failed to start tunnels: connection is being cut". My use case is remote raspberry pies that I never want to lose contact with, so for me the ideal behavior would be to not exit when this error occurs. There are obviously several ways to go about this. I could obviously write a service for systemd or use cron, but it would be nice if go-http-tunnel handled this itself. I might poke around the code and figure it out myself, but I figured I'd ask first and maybe somebody already knows right where to make the change.

Originally created by @synaption on GitHub (Apr 17, 2021). Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/129 If I try to start a tunnel when a tunnel is already using that port on the server, the program exits with error "failed to start tunnels: connection is being cut". My use case is remote raspberry pies that I never want to lose contact with, so for me the ideal behavior would be to not exit when this error occurs. There are obviously several ways to go about this. I could obviously write a service for systemd or use cron, but it would be nice if go-http-tunnel handled this itself. I might poke around the code and figure it out myself, but I figured I'd ask first and maybe somebody already knows right where to make the change.
Author
Owner

@1ubuntuuser commented on GitHub (Jan 20, 2022):

How did you solve this one?

<!-- gh-comment-id:1017039761 --> @1ubuntuuser commented on GitHub (Jan 20, 2022): How did you solve this one?
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/go-http-tunnel#77
No description provided.