The openssl DTLS handshake does have internal timeouts that does resends. If we just poll the dtls subsystem, we will get resends. This PR adds a timeout during dtls handshake to poll for the resends.
The built-in timer is 1 second with a backoff for each resend. This can be further configured, but the necessary functions are not exposed in the openssl crate.
We can't test this because openssl notion of time is real time. I don't see a way to pass in what the current time is.
The openssl DTLS handshake does have internal timeouts that does resends. If we just poll the dtls subsystem, we will get resends. This PR adds a timeout during dtls handshake to poll for the resends.
Close #564