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

Port forward automatic retry #23

Open
doppelrittberger opened this issue Sep 2, 2022 · 1 comment
Open

Port forward automatic retry #23

doppelrittberger opened this issue Sep 2, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@doppelrittberger
Copy link

Hi
I'm using your tool and I really like it. Currently I have a problem that some containers seem to open, close and reopen ports on startup and this causes the port forward feature to fail. Is it possible to change the code in a way that if you detect an abortion of the port forward the tool will automatically retry the port forward? This would make this feature more robust.
Thanks
Markus Ritter

P.S. if there is anything I can do to please let me know

@joyrex2001
Copy link
Owner

joyrex2001 commented Sep 7, 2022

I experimented with this some time ago. The approach I had was to watch the output that was produced by the ToPod port-forward, and act when the output was broken. The problem with this approach was that the reconnect happened after the error (which usually meant the test failed already) and I stopped investing time in this.

@joyrex2001 joyrex2001 added the enhancement New feature or request label Apr 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants