Skip to content

Commit 8a8ee95

Browse files
in want write case with example echoserver do not wait on select for data
1 parent c998efc commit 8a8ee95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/echoserver/echoserver.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ static int sftp_worker(thread_ctx_t* threadCtx)
13361336
error == WS_CHAN_RXD || error == WS_REKEYING ||
13371337
error == WS_WINDOW_FULL)
13381338
ret = error;
1339-
if (error == WS_WANT_WRITE && wolfSSH_SFTP_PendingSend(ssh)) {
1339+
if (error == WS_WANT_WRITE || wolfSSH_SFTP_PendingSend(ssh)) {
13401340
continue; /* no need to spend time attempting to pull data
13411341
* if there is still pending sends */
13421342
}

0 commit comments

Comments
 (0)