make server/client only work

This commit is contained in:
Hideki Miyazaki
2022-01-11 16:30:30 +09:00
parent c7b0b7003e
commit 723cfb2d0b

View File

@ -1992,6 +1992,10 @@ int bench_tls(void* args)
#endif
#endif
if (argClientOnly) {
#if !defined(NO_WOLFSSL_SERVER) && !defined(NO_WOLFSSL_CLIENT)
/* to avoid to wait server forever */
info->serverListening = 1;
#endif
#ifndef NO_WOLFSSL_CLIENT
ret = bench_tls_client(info);
#endif