Skip to content
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

SFTP Fix #667

Merged
merged 1 commit into from
Mar 18, 2024
Merged

SFTP Fix #667

merged 1 commit into from
Mar 18, 2024

Conversation

ejohnstown
Copy link
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
11 checks passed
@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