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

SOCKS proxy reconnect? #483

Open
hobofan opened this issue Mar 14, 2025 · 3 comments
Open

SOCKS proxy reconnect? #483

hobofan opened this issue Mar 14, 2025 · 3 comments

Comments

@hobofan
Copy link

hobofan commented Mar 14, 2025

Hi,

so the concrete issue I'm facing is that the SOCKS proxy I'm using is broken after my Mac goes to sleep.

A simple toggle-off/toggle-on restores it back to working, but obviously not having to do that would be better.

I'm not sure if that impacts tunnels besides SOCKS proxies.

Having some sort of auto reconnect that restores the connection when XPipe detects that it is broken would be great (not sure if that is technically feasible).

@crschnick
Copy link
Member

Something like that would be technically feasible, but it would require some work. Essentially implementing some form of background thread that continuously checks all open tunnels if they are still alive.

I would have to try that out myself first with the sleep, but in theory something like https://superuser.com/a/146641 could work around this by letting the ssh client do more retries. If you add that to your SSH config and it makes a difference, xpipe could do the same

@crschnick
Copy link
Member

Alternatively, XPipe could just restart all active connections after it resumes from sleep.

@crschnick
Copy link
Member

So the problem that I see, at least on macOS, is that I use a wireless connection and that takes like 15s to initialize after the system starts/resumes. Or just restarting any tunnels on resume will probably fail because the internet connection is not there yet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants