Skip to content

SFTP Fix#667

Merged
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
ejohnstown:sftp-fix
Mar 18, 2024
Merged

SFTP Fix#667
JacobBarthelmeh merged 1 commit intowolfSSL:masterfrom
ejohnstown:sftp-fix

Conversation

@ejohnstown
Copy link
Copy Markdown
Contributor

@ejohnstown ejohnstown commented Mar 13, 2024

Description

The goal is that when there isn't data waiting on the socket, check and process the data in the SFTP channel's buffer, always.

  1. Remove the continue from the SFTP worker loop when there's a timeout on the select and when there's a want_read from the wolfSSH_worker.
  2. When the select has receive data ready, check it. Don't make it conditional on want read as well.

Testing

./configure --enable-sftp && make clean && make
./examples/echoserver/echoserver

From another directory run the SFTP client:

sftp -P 22222 jill@localhost
Password: upthehill
get configure

I was able to copy the files configure, configure.ac, README.md, and a 6GB iso image I had floating around.

1. Remove the continue from the SFTP worker loop when there's a timeout
   on the select and when there's a want_read from the wolfSSH_worker.
2. When the select has receive data ready, check it. Don't make it
   conditional on want read as well.

The goal is that when there isn't data waiting on the socket, check and
process the data in the SFTP channel's buffer, always.
@JacobBarthelmeh JacobBarthelmeh merged commit 902cff3 into wolfSSL:master Mar 18, 2024
@ejohnstown ejohnstown deleted the sftp-fix branch March 18, 2024 17:22
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