mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user