mirror of https://github.com/ARMmbed/mbed-os.git
Allowing dtls test to retry correctly.
The dtls test already has the ability to retry upon a UDP failure. However the sockets are currently configured to be blocking and to wait forever. I added a timeout of 1.5 seconds in order the test to correctly timeout.pull/4369/head
parent
13334105e4
commit
26eafd9958
|
@ -71,6 +71,8 @@ int main() {
|
|||
|
||||
UDPSocket sock;
|
||||
SocketAddress udp_addr(ipbuf, port);
|
||||
sock.set_blocking(true);
|
||||
sock.set_timeout(1500);
|
||||
|
||||
for (int attempt = 0; attempt < MBED_CFG_UDP_DTLS_HANDSHAKE_RETRIES; attempt++) {
|
||||
err = sock.open(ð);
|
||||
|
|
Loading…
Reference in New Issue