We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 84bc8b1 + 76e8d66 commit 902cff3Copy full SHA for 902cff3
examples/echoserver/echoserver.c
@@ -1196,11 +1196,8 @@ static int sftp_worker(thread_ctx_t* threadCtx)
1196
}
1197
else if (selected == WS_SELECT_TIMEOUT) {
1198
timeout = TEST_SFTP_TIMEOUT_LONG;
1199
- continue;
1200
1201
-
1202
- if (ret == WS_WANT_READ || ret == WS_WANT_WRITE ||
1203
- selected == WS_SELECT_RECV_READY) {
+ else if (selected == WS_SELECT_RECV_READY) {
1204
ret = wolfSSH_worker(ssh, NULL);
1205
error = wolfSSH_get_error(ssh);
1206
if (ret == WS_REKEYING) {
@@ -1213,7 +1210,6 @@ static int sftp_worker(thread_ctx_t* threadCtx)
1213
1210
error == WS_WINDOW_FULL) {
1214
1211
timeout = TEST_SFTP_TIMEOUT;
1215
1212
ret = error;
1216
1217
1218
1219
if (error == WS_EOF) {
0 commit comments