Browse Source

Merge pull request #4743 from miyazakh/tls_bench_onlymode

Chris Conlon 2 years ago
parent
commit
4c05d35452
1 changed files with 4 additions and 0 deletions
  1. 4 0
      examples/benchmark/tls_bench.c

+ 4 - 0
examples/benchmark/tls_bench.c

@@ -1995,6 +1995,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