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

Make agent channel setup lazy. #3741

Merged
merged 1 commit into from
Jun 10, 2020
Merged

Conversation

fspmarshall
Copy link
Contributor

@fspmarshall fspmarshall commented May 19, 2020

Changes agent channel setup behavior to be consistent with openssh by having servers lazily request agent channels when they are needed, rather than immediately starting a single connection-wide channel as soon as forwarding is requested.

Fixes an issue introduced in #3613 which caused openssh clients to hang on exit due to persistent agent channel.

@fspmarshall fspmarshall force-pushed the fspmarshall/agent-hang-fix branch 2 times, most recently from afa4587 to 8ecf6fc Compare May 19, 2020 22:10
@fspmarshall
Copy link
Contributor Author

retest this please

@fspmarshall fspmarshall force-pushed the fspmarshall/agent-hang-fix branch 2 times, most recently from 3792be0 to 399b575 Compare June 6, 2020 00:31
@fspmarshall fspmarshall requested review from russjones and awly June 6, 2020 00:32
// never actually be empty.
t.namespace = defaults.Namespace
}
cmt := check.Commentf("Test case %d: %+v", i, t)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional: you can add a desc string field to the test cases to explain what the case covers instead of printing index + contents

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, I wasn't aware of that feature. Think I'll keep as-is though; since I'm mutating the test case I think its nice to include a pretty print of the test case's value.

@fspmarshall fspmarshall force-pushed the fspmarshall/agent-hang-fix branch from 399b575 to bd64b09 Compare June 9, 2020 19:02
Changes agent channel setup behavior to be consistent
openssh by having servers lazily request agent channels
when they are needed, rather than immediately starting a
single connection-wide channel as soon as forwarding is
requested.  Fixes an issue introduced in #3613 which
caused openssh clients to hang on exit due to persistent
agent channel.
@fspmarshall fspmarshall force-pushed the fspmarshall/agent-hang-fix branch from bd64b09 to fe98141 Compare June 10, 2020 20:10
@fspmarshall fspmarshall merged commit acde213 into master Jun 10, 2020
@fspmarshall fspmarshall deleted the fspmarshall/agent-hang-fix branch June 10, 2020 21:15
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.

4 participants