There is no retransmission on dtls protocol layer during handshake.
Probably the issue is common for dtls abstraction, checked against tinydtls and gnutls.
For example:
tinydtls has a callback dtls_check_retransmit() which should be run periodically in application main loop for at least not connected peers. It is never used in AwaLWM2M project.
Reproduction steps:
To simple simulate datagram drop run secure client when server is offline, after couple seconds run server. There is one dtls packet "client_hello" sent, no retransmission. After 32 seconds registration timeout on high protocol lever can be observed.
I think that it is good to have full functional dtls layer with retransmit working. It improves connectivity.
There is no retransmission on dtls protocol layer during handshake. Probably the issue is common for dtls abstraction, checked against tinydtls and gnutls.
For example: tinydtls has a callback
dtls_check_retransmit()
which should be run periodically in application main loop for at least not connected peers. It is never used in AwaLWM2M project.Reproduction steps: To simple simulate datagram drop run secure client when server is offline, after couple seconds run server. There is one dtls packet "client_hello" sent, no retransmission. After 32 seconds registration timeout on high protocol lever can be observed.
I think that it is good to have full functional dtls layer with retransmit working. It improves connectivity.