Skip to content

[v17] Prevent forwarded tcpip requests hanging indefinitely#50238

Merged
rosstimothy merged 1 commit intobranch/v17from
tross/backport-50209/v17
Dec 13, 2024
Merged

[v17] Prevent forwarded tcpip requests hanging indefinitely#50238
rosstimothy merged 1 commit intobranch/v17from
tross/backport-50209/v17

Conversation

@rosstimothy
Copy link
Copy Markdown
Contributor

Backport #50209 to branch/v17

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

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.
@aws-amplify-us-west-2
Copy link
Copy Markdown

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

Access this pull request here: https://pr-50238.d212ksyjt6y4yg.amplifyapp.com

@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/v17 with commit 646abfc Dec 13, 2024
@rosstimothy rosstimothy deleted the tross/backport-50209/v17 branch December 13, 2024 22:02
@doggydogworld doggydogworld mentioned this pull request Dec 18, 2024
@fheinecke fheinecke mentioned this pull request Mar 18, 2025
@fheinecke fheinecke mentioned this pull request Apr 9, 2025
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