Skip to content

tests: add SFTP connection reuse tests - #23254

Closed
aeroyorch wants to merge 1 commit into
curl:masterfrom
aeroyorch:sftp-reuse-tests
Closed

aeroyorch wants to merge 1 commit into
curl:masterfrom
aeroyorch:sftp-reuse-tests

Conversation

@aeroyorch

Copy link
Copy Markdown
Contributor

Connection reuse is already tested for HTTP, FTP, IMAP, POP3 and SMTP in the data tests, and for HTTP in lib1533, lib3033 and test_12_reuse.py but not for the SSH protocols.

These two tests count connections with total_connects, the same way test_12_reuse.py does.

Note: a C libtest could set CURLOPT_FORBID_REUSE directly and would not need a debug build. It would be the first libtest driven against an SFTP server, but the test suite already generates the keys and substitutes their paths into
<command>, so it is mostly a new data test plus reading those paths from argv.

Comment thread tests/http/Makefile.am Resolved
@aeroyorch
aeroyorch force-pushed the sftp-reuse-tests branch 3 times, most recently from b6524ee to e0c4fcd Compare October 5, 2026 08:24
@aeroyorch
aeroyorch requested a review from vszakats October 5, 2026 09:51
@bagder bagder closed this in 20e7d0a Oct 7, 2026
@aeroyorch
aeroyorch deleted the sftp-reuse-tests branch October 7, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants