Title: [Regression] Fix for error on Enter-PSSession exit by PaulHigin · Pull Request #4693 · PowerShell/PowerShell · GitHub
Open Graph Title: [Regression] Fix for error on Enter-PSSession exit by PaulHigin · Pull Request #4693 · PowerShell/PowerShell
X Title: [Regression] Fix for error on Enter-PSSession exit by PaulHigin · Pull Request #4693 · PowerShell/PowerShell
Description: This is a fix for issue #4686.
I inadvertently created this regression with PR #4475. The problem is that connection state is terminated before the session close sequence completes. The fix is to only clean up connection state on session close if the session was never established.
I also added code to Enter-PSSession to handle a similar case where the Cmdlet operation is stopped before the connection or session is created. This is important for SSH remoting because PowerShell interacts with SSH and it is possible to cancel before a connection is even started.
PS > Enter-PSSession -hostname
Open Graph Description: This is a fix for issue #4686. I inadvertently created this regression with PR #4475. The problem is that connection state is terminated before the session close sequence completes. The fix is to...
X Description: This is a fix for issue #4686. I inadvertently created this regression with PR #4475. The problem is that connection state is terminated before the session close sequence completes. The fix is to...
Opengraph URL: https://github.com/PowerShell/PowerShell/pull/4693
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9ea10a82-f692-3292-489f-54245dd00ea9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A5D8:1749AA:1629AA5:1F4BC3C:6A574C9F |
| html-safe-nonce | 397739cc714a968e4c27d32e0dbad97e9f69baae8d0fcd40c09a2593b97f1ff0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNUQ4OjE3NDlBQToxNjI5QUE1OjFGNEJDM0M6NkE1NzRDOUYiLCJ2aXNpdG9yX2lkIjoiNDQzNjczOTU4OTc4OTkyODYwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c71d707af95e13b26f8e5702116b0ed26c859561bb1dec3631e0758c406edfaf |
| hovercard-subject-tag | pull_request:138058589 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/PowerShell/PowerShell/pull/4693/files |
| twitter:image | https://avatars.githubusercontent.com/u/14019529?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/14019529?s=400&v=4 |
| og:image:alt | This is a fix for issue #4686. I inadvertently created this regression with PR #4475. The problem is that connection state is terminated before the session close sequence completes. The fix is to... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 602250ea3b6dd8302a7220ef98adb828dbc807e4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width