wolfSSL / wolfssh

wolfSSH is a small, fast, portable SSH implementation, including support for SCP and SFTP.
https://www.wolfssl.com
370 stars 88 forks source link

SFTP Fix #667

Closed ejohnstown closed 6 months ago

ejohnstown commented 6 months ago

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.