[Patch] Fix nonblocking DTLS

Nikos Mavrogiannopoulos nmav at gnutls.org
Wed Feb 15 15:05:38 CET 2012


On 02/15/2012 03:55 AM, Sean Buckheister wrote:

> Hi,
> 
> after seeing lots and lots of failures in nonblocking DTLS handshakes, I
> went digging through code and packet traces. I found that a gnutls
> server will not retransmit it's last handshake flight for nonblocking,
> nonresuming session, while the client would continue to request such
> retransmission by duplicating it's respective last flight. Ultimately,
> this would lead to timeouts.

> The offending piece of code is gnutls_dtls.c, _dtls_transmit, lines

> 254-255. Removing those sort of fixed DTLS -nb, i.e. all 18432 handshake
> sequence trials of dtls-stress passed. make check passed as well.


Thank you for debugging it and figuring it out. I've commited the fix.

regards,
Nikos




More information about the Gnutls-devel mailing list