Skip to content

libssh: split up the state machine function #17346

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

Closed
wants to merge 2 commits into from
Closed

Conversation

bagder
Copy link
Member

@bagder bagder commented May 14, 2025

This reduces the "complexity score" for myssh_statemach_act from 160 to 100, taking it down from the most complex function in libcurl to the 5th.

Also fixes a memory leak of the sftp session.

This reduces the "complexity score" for myssh_statemach_act from 160 to
100, taking it down from the most complex function in libcurl to the
5th.

Also fixes a memory leak of the sftp session.
@testclutch
Copy link

Analysis of PR #17346 at 1cc408ae:

Test 622 failed, which has NOT been flaky recently, so there could be a real issue in this PR.

Generated by Testclutch

@bagder bagder marked this pull request as ready for review May 14, 2025 13:43
To make sure we run libssh tests with valgrind enabled
@github-actions github-actions bot added the CI Continuous Integration label May 14, 2025
@bagder
Copy link
Member Author

bagder commented May 14, 2025

🥳

@bagder bagder closed this in 6f6ee60 May 14, 2025
@bagder bagder deleted the bagder/libssh-splitup branch May 14, 2025 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration memory-leak SCP/SFTP
Development

Successfully merging this pull request may close these issues.

2 participants