Robin Seggelmann via RT wrote:
To handle handshake message timeouts properly, DTLS sets the socket timeouts 
according to the currently remaining time until the next timeout occurs. 
However, in some cases this doesn't work because the operating system returns 
the socket call a few milliseconds before the DTLS timer expires. To solve 
this, the remaining time until timeout is set to 0 if it is less than 15 ms.
+       if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15)

tv_usec stores microseconds not milliseconds. So I suggest to use

if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15000)

-Daniel
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       openssl-dev@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to