Skip to content

Conversation

@bk2204
Copy link
Member

@bk2204 bk2204 commented Oct 5, 2022

When we attempt a connection with the pure SSH protocol but fail, we fail to close the file descriptors for the pipes or reap the process which has exited. This can cause substantial resource consumption and run the user out of file descriptors or processes.

Since that's not very nice, let's be sure to explicitly close the pipes and wait for the process if this occurs, which it probably will quite frequently, since few people are using the new pure SSH protocol.

Fixes #5077

When we attempt a connection with the pure SSH protocol but fail, we
fail to close the file descriptors for the pipes or reap the process
which has exited.  This can cause substantial resource consumption and
run the user out of file descriptors or processes.

Since that's not very nice, let's be sure to explicitly close the pipes
and wait for the process if this occurs, which it probably will quite
frequently, since few people are using the new pure SSH protocol.
@bk2204 bk2204 marked this pull request as ready for review October 5, 2022 20:51
@bk2204 bk2204 requested a review from a team as a code owner October 5, 2022 20:51
@bk2204 bk2204 merged commit d3716c9 into git-lfs:main Oct 6, 2022
@bk2204 bk2204 deleted the ssh-wait branch October 6, 2022 13:42
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.

lfs push leaks SSH processes, eventually hits process limit and dies

2 participants