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

[v15] Prevent forwarded tcpip requests hanging indefinitely #50240

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

rosstimothy
Copy link
Contributor

Backport #50209 to branch/v15

changelog: Properly close ssh port forwarding connections to prevent requests hanging indefinitely.

Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-50240.d3b94eevwi10ji.amplifyapp.com

The SSH channel was only being closed in the happy path once
proxying of data completed. This resulted in any connections being
made, and failing for any reason prior to that hanging until the
user terminated the request.

The behavior from the regular.Server was copied to the forward.Server
to ensure that the channel is always closed when handleDirectTCPIPRequest
terminates.
@rosstimothy rosstimothy force-pushed the tross/backport-50209/v15 branch from 0fa3cdc to 4341763 Compare December 13, 2024 20:54
@rosstimothy rosstimothy marked this pull request as ready for review December 13, 2024 21:17
@rosstimothy rosstimothy added this pull request to the merge queue Dec 13, 2024
Merged via the queue into branch/v15 with commit ee69d99 Dec 13, 2024
37 checks passed
@rosstimothy rosstimothy deleted the tross/backport-50209/v15 branch December 13, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants