Fixes bug where example server with WOLFSSL_CALLBACKS hangs when used with

-6 option (simulated WANT_WRITE errors) or with DTLS, causing make check
to fail
This commit is contained in:
Brett Nicholas
2023-11-07 11:41:01 -07:00
parent 9d632ccaa6
commit ba37dc9933

View File

@ -3392,7 +3392,14 @@ THREAD_RETURN WOLFSSL_THREAD server_test(void* args)
} while (err == WC_PENDING_E);
}
#else
(void)nonBlocking;
if (nonBlocking) {
#ifdef WOLFSSL_DTLS
if (doDTLS) {
wolfSSL_dtls_set_using_nonblock(ssl, 1);
}
#endif
tcp_set_nonblocking(&clientfd);
}
ret = NonBlockingSSL_Accept(ssl);
#endif
#ifdef WOLFSSL_EARLY_DATA