forked from wolfSSL/wolfssl
allow dtls timeout to be 0 in the recvfrom callback, set to 0 if the handshake is done
This commit is contained in:
5
src/io.c
5
src/io.c
@@ -404,7 +404,10 @@ int EmbedReceiveFrom(WOLFSSL *ssl, char *buf, int sz, void *ctx)
|
|||||||
|
|
||||||
WOLFSSL_ENTER("EmbedReceiveFrom()");
|
WOLFSSL_ENTER("EmbedReceiveFrom()");
|
||||||
|
|
||||||
if (!wolfSSL_get_using_nonblock(ssl) && dtls_timeout != 0) {
|
if (ssl->options.handShakeDone)
|
||||||
|
dtls_timeout = 0;
|
||||||
|
|
||||||
|
if (!wolfSSL_get_using_nonblock(ssl)) {
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
DWORD timeout = dtls_timeout * 1000;
|
DWORD timeout = dtls_timeout * 1000;
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user