Skip to content

More robust SFTP send/read handling#882

Draft
JacobBarthelmeh wants to merge 3 commits intowolfSSL:masterfrom
JacobBarthelmeh:sftp
Draft

More robust SFTP send/read handling#882
JacobBarthelmeh wants to merge 3 commits intowolfSSL:masterfrom
JacobBarthelmeh:sftp

Conversation

@JacobBarthelmeh
Copy link
Contributor

ZD21253

@JacobBarthelmeh JacobBarthelmeh self-assigned this Feb 27, 2026
Copilot AI review requested due to automatic review settings February 27, 2026 06:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request addresses robust SFTP send/read handling (ZD21253) by fixing error handling logic and adding extensive testing for large file transfers.

Changes:

  • Corrected error handling logic in wolfSSH_SFTP_SendReadPacket to properly handle retriable vs fatal errors
  • Updated cache keys in CI workflow to include keygen configuration
  • Added comprehensive large file transfer test (3GB file with 10MB chunks)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/wolfsftp.c Fixed inverted error handling logic in 4 locations to properly distinguish between retriable errors (WS_WANT_READ/WRITE) and fatal errors
.github/workflows/sftp-test.yml Updated cache keys, added --enable-keygen to wolfssl build, added new large file transfer test job, and minor whitespace cleanup

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@JacobBarthelmeh JacobBarthelmeh marked this pull request as draft February 27, 2026 16:40
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.

2 participants