mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 11:17: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);
|
} while (err == WC_PENDING_E);
|
||||||
}
|
}
|
||||||
#else
|
#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);
|
ret = NonBlockingSSL_Accept(ssl);
|
||||||
#endif
|
#endif
|
||||||
#ifdef WOLFSSL_EARLY_DATA
|
#ifdef WOLFSSL_EARLY_DATA
|
||||||
|
Reference in New Issue
Block a user