Repository navigation
Conversation
Basic support - Transport connect via Unix domain socket, and bypass the protocol/kex/userauth stages, and just use proxy. Some jiggling of the packetizer pad byte calculations
ControlMaster proxy seems to forward global_request messages, but swallows the global_response, so the proxied client should never wait for the response. For tcpip-forward, the client can't distinguish between success and failure. kex_init is even more borky, it seems. The proxy forwards the initial kex_init, but fields the server reply as a server initiated kex_init, so the ContolMaster sends another kex_init in response. The server, upon getting a kex_init message while already processing the proxied one, boots the connection altogether (per RFC4253 7.1)
Rather than complicate the retry logic, have Transport raise exception, and allow retry only within SSHClient. Change mux_path to controlpath, to be more consistent with OpenSSH terminology
plus a typo I'm just going to attribute to spellcheck
|
what is the delay with merging this pull? thank you! |
|
The failing CI, for one -- if I'm looking at the Travis run output correctly, there are some things that need to be fixed in the CI infrastructure/config first. |
Yeah I saw the failure log as well, Can you share who's responsible for the CI configuration? |
|
I believe all of that is still on @bitprophet's shoulders -- he's dividing his weekly OSS time among all of paramiko, fabric and invoke, so it can sometimes take a while for any given thing to get addressed. It looks to me like there's more than one problem underlying this CI failure -- partly, Python 3.4 might need to be dropped; partly, there have been some ongoing issues with getting |
Hi @bitprophet , Thank you for your efforts, FYI if anyone want to test this pull request you can use the following, |
|
Either during or after the CI work, 3.4 and 3.5 will be dropped along with 2: http://bitprophet.org/blog/2021/02/25/byethon2/#how-exactly I've put this ticket in a milestone so that ideally I'll revisit it once I'm ready to push forwards with feature work. Thanks! |
|
Hey guys, another highly interested party here :-) As I notice that CI on PRs that came after this one is passing, may I suggest to simply try rebasing once more @takluyver ? If there's anything others can do to help get this merged, please let us know! Edit: rebased in #1931 (happy to close this PR if you prefer to continue here) |
|
After a simple style fix, tests are passing. Note: I had to do the fix manually, since the black installed in my python 3.9 environment ended up making more changes and I was unable to reproduce the python 3.6 environment in which the CI runs. Given that python 3.6 is EOL end of this year, I'll open another PR that moves the style checking etc. to python 3.7. |
|
Perhaps updating to an even more recent version would be better? Thoughts, @bitprophet? |
|
God, I didn't even realize 3.6 was that close to EOL. I'll be over here growing moss... But no, the point in my mind of the "baseline CI" tasks are to use the oldest supported version since usually things that work ok on version N will work identically well on N+1, N+2 etc. So bumping up to 3.7 seems like the correct choice right now. With the downside that someone has to submit a version of that 2nd PR every year or so - tho I'm hoping to eventually leverage Circle's templatey junk so the pipeline definitions are more DRY (esp given I have one of those for every project). Unless my US Thanksgiving goes very sour this year, I'm planning to work on Paramiko this Friday and some of the following week - hopefully I'll get to this ticket in the milestone. Thanks all for continuing to keep it going. |
|
A bit later: actually, my dayjob (which pays me to work on the OSS a day a week) has a /lot/ of users on Python 3.6, which undoubtedly means a large number of the greater ecosystem does too. So I'm curious what specifically the problem was for @ltalirz re:
since my general thinking is that I'm fine with dropping interpreter versions after they reach EOL, but only when the pain of supporting them outweighs some arbitrary userbase-% (I haven't looked at the download stats lately). In my own personal and dayjob environments, 3.6 is still trivially accessible & so far the libraries/tools I use haven't themselves become 3.6-incompatible. (with the caveat that a lot of said dependencies tend to get pinned & will shortly need re-examination…) Also! CircleCI has tooling that makes it easy to run local containers matching what they run, which can be a big help with this kind of thing. I'm still getting my NixOS system stood up with containers & such but on my Mac, it was basically "install circleci's CLI tool, make sure Docker or Podman-aliased-to-Docker exist, and run All that aside, I'd like to add that for now, I expect to do work on my end when merging (true 'click & done' PRs are rare), and a submitter/contributor's inability to reproduce CI locally isn't a roadblock - if I'm intending to merge/release a ticket, I'll just get it done regardless. |
I first installed the dev dependencies in a python 3.9 conda environment. That worked fine, but the version of I then created a python 3.6 conda env, and here installing the dev dependencies didn't work because it was trying to change the version of some "system-level package" (don't remember which one) which it could not. Anyhow, I guess you're right that I could have tried using a container - to me the update to python3.7 is up to you, I care much more about the SSH multiplexing support in this PR (or #1932). Cheers! |
|
Rolling into #1931 and its chat. |
This is a straight rebase of #1341, which no longer merges cleanly. So far, I've not attempted to make any changes to it.
I wonder if it would be better, rather than adding another parameter to
Client.connect()which causes it to take a completely different code path, to add a separate method, called something likeconnect_multiplex()orconnect_master(), which just does this. Then it can be up to the caller whether to fall back to standard connection if using the multiplexing socket fails (whereas the current implementation silences errors and always tries to fall back).(In principle, I'd also like to disentangle the code in Transport in a similar way, but it's less clear how to do that)