Fix for unit test with non-blocking set.

This commit is contained in:
David Garske
2017-04-26 08:15:19 -07:00
parent 253140f37e
commit efb4b3c183
2 changed files with 2 additions and 2 deletions

View File

@ -1812,7 +1812,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
}
#endif
}
} while (err == WC_PENDING_E);
} while (err == WC_PENDING_E || err == SSL_ERROR_WANT_READ);
if (ret > 0) {
reply[ret] = 0;
printf("Server response: %s\n", reply);

View File

@ -1233,7 +1233,7 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
}
#endif
}
} while (err == WC_PENDING_E);
} while (err == WC_PENDING_E || err == SSL_ERROR_WANT_WRITE);
if (ret != write_msg_sz) {
printf("SSL_write msg error %d, %s\n", err,
ERR_error_string(err, buffer));