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

Disable SSH multiplexing if not supported #1093

Merged
merged 6 commits into from Sep 11, 2020
Merged

Conversation

fmeum
Copy link
Member

@fmeum fmeum commented Sep 10, 2020

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring
  • Dependency updates

📜 Description

Fall back to single channel SSH connections if the server (looking at you, Bitbucket) does not support multiplexing.

💡 Motivation and Context

Should fix #1092 when it's done.

💚 How did you test it?

Not yet. Create a private Bitbucket repository, clone it to the device, attempt to synchronize after creating a new password and get the error about broken multiplexing then trying again correctly uses a pull + push separately.

📝 Checklist

  • I formatted the code with the IDE's reformat action (Ctrl + Shift + L/Cmd + Shift + L)
  • I reviewed submitted code
  • I added a CHANGELOG entry if applicable

🔮 Next steps

📸 Screenshots / GIFs

@fmeum
Copy link
Member Author

fmeum commented Sep 10, 2020

This is my attempt at fixing #1092. It is not completely consistent with how we sync (it's missing the occasional sync commit, which we may want to include in the PullOperation anyway) and untested. @msfjarvis Could you take over from here?

@msfjarvis
Copy link
Member

This is my attempt at fixing #1092. It is not completely consistent with how we sync (it's missing the occasional sync commit, which we may want to include in the PullOperation anyway) and untested. @msfjarvis Could you take over from here?

Sure thing.

@msfjarvis msfjarvis self-assigned this Sep 10, 2020
@msfjarvis msfjarvis added the bug label Sep 10, 2020
@msfjarvis msfjarvis added this to the 1.12.0 milestone Sep 10, 2020
…story

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
@fmeum
Copy link
Member Author

fmeum commented Sep 10, 2020

That story is 5/5.

* develop:
  build: update Kotlin and dependency-updates plugin (#1094)
@msfjarvis msfjarvis marked this pull request as ready for review September 11, 2020 06:45
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
@msfjarvis
Copy link
Member

Works for me now, but the double authentication w/ keystore-backed SSH keys sure is annoying. Get your shit together Bitbucket.

msfjarvis
msfjarvis previously approved these changes Sep 11, 2020
@fmeum
Copy link
Member Author

fmeum commented Sep 11, 2020

Works for me now, but the double authentication w/ keystore-backed SSH keys sure is annoying. Get your shit together Bitbucket.

We could get around this by only showing the prompt if the reauth timeout hasn't passed. As it is currently at 30 or 15 seconds, that should mostly work unless the user is on a really slow connection.

@msfjarvis
Copy link
Member

Works for me now, but the double authentication w/ keystore-backed SSH keys sure is annoying. Get your shit together Bitbucket.

We could get around this by only showing the prompt if the reauth timeout hasn't passed. As it is currently at 30 or 15 seconds, that should mostly work unless the user is on a really slow connection.

I'd rather just let it be at this point.

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
@msfjarvis
Copy link
Member

If the macOS runner is gonna be slow af anyway might as well get the trivial stuff done too.

@msfjarvis msfjarvis merged commit 7a58e39 into develop Sep 11, 2020
@msfjarvis msfjarvis deleted the bug/multiplexing branch September 11, 2020 07:58
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.

[BUG] unable to synchronize repository
2 participants