We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71cda6d commit 1422697Copy full SHA for 1422697
examples/echoserver/echoserver.c
@@ -1308,7 +1308,7 @@ static int sftp_worker(thread_ctx_t* threadCtx)
1308
s = (WS_SOCKET_T)wolfSSH_get_fd(ssh);
1309
1310
do {
1311
- if (wolfSSH_SFTP_PendingSend(ssh)) {
+ if (ret == WS_WANT_WRITE || wolfSSH_SFTP_PendingSend(ssh)) {
1312
/* Yes, process the SFTP data. */
1313
ret = wolfSSH_SFTP_read(ssh);
1314
error = wolfSSH_get_error(ssh);
0 commit comments