forked from wolfSSL/wolfssl
Fix for unit test with non-blocking set.
This commit is contained in:
@ -1812,7 +1812,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} while (err == WC_PENDING_E);
|
} while (err == WC_PENDING_E || err == SSL_ERROR_WANT_READ);
|
||||||
if (ret > 0) {
|
if (ret > 0) {
|
||||||
reply[ret] = 0;
|
reply[ret] = 0;
|
||||||
printf("Server response: %s\n", reply);
|
printf("Server response: %s\n", reply);
|
||||||
|
@ -1233,7 +1233,7 @@ THREAD_RETURN CYASSL_THREAD server_test(void* args)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
} while (err == WC_PENDING_E);
|
} while (err == WC_PENDING_E || err == SSL_ERROR_WANT_WRITE);
|
||||||
if (ret != write_msg_sz) {
|
if (ret != write_msg_sz) {
|
||||||
printf("SSL_write msg error %d, %s\n", err,
|
printf("SSL_write msg error %d, %s\n", err,
|
||||||
ERR_error_string(err, buffer));
|
ERR_error_string(err, buffer));
|
||||||
|
Reference in New Issue
Block a user