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

SSH may occasionally fail to connect due to invalid socket names #161

Open
miversen33 opened this issue Jul 13, 2023 · 0 comments
Open

SSH may occasionally fail to connect due to invalid socket names #161

miversen33 opened this issue Jul 13, 2023 · 0 comments
Assignees
Labels
bug Something isn't working Provider Issue with a _remote_ (core) provider SSH SSH Provider
Milestone

Comments

@miversen33
Copy link
Owner

Because we are using ssh multiplexing to increase ssh performance on *nix machines, we need to come up with a better way to handle ssh socket names.

Currently sockets are stored in $XGD_CACHE/nvim/netman/tmp, however this path can (after having the ssh connection information attached) result in a pathname that is too long for the OS to handle. This failure results in a silent connection failure. The end user receives no notification, it just "doesn't work".

I don't know the best way to address this off the top of my head. Currently we are using
ControlPath=$HOME/.cache/nvim/netman/tmp// %h-%p-%r.
We might be able to get away with a shorter ControlPath args, or we might be able to get away with a different storage location for these connection sockets. Maybe some logic to handle "Oh that is going to be too long, use a different hash". Not sure yet.

@miversen33 miversen33 added bug Something isn't working Provider Issue with a _remote_ (core) provider SSH SSH Provider labels Jul 13, 2023
@miversen33 miversen33 self-assigned this Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Provider Issue with a _remote_ (core) provider SSH SSH Provider
Projects
None yet
Development

No branches or pull requests

1 participant