Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle StopTunnel request #136

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Handle StopTunnel request #136

merged 1 commit into from
Nov 27, 2023

Conversation

bobzilladev
Copy link
Contributor

@bobzilladev bobzilladev commented Nov 3, 2023

Handle a new StopTunnel message, which will close the tunnel, causing an error on the tunnel's Accept(), and maintain the running session.

Copy link
Collaborator

@jrobsonchase jrobsonchase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall approach looks good, but I think we should remove the public-facing CloseTunnel method as well as the user-definable StopTunnel handler.

Still need to go through the internal agent change to see how we're actually using it. Might have some suggestions there.

internal/tunnel/client/session.go Show resolved Hide resolved
session.go Outdated Show resolved Hide resolved
session.go Outdated Show resolved Hide resolved
examples/ngrok-forward-lite/main.go Outdated Show resolved Hide resolved
internal/tunnel/client/reconnecting.go Outdated Show resolved Hide resolved
session.go Outdated Show resolved Hide resolved
Copy link
Collaborator

@jrobsonchase jrobsonchase left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, looks good to me!

@bobzilladev bobzilladev merged commit 1a21b9c into main Nov 27, 2023
2 checks passed
@bobzilladev bobzilladev deleted the bob/burn-notice branch November 27, 2023 22:01
@bobzilladev bobzilladev mentioned this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants