AwaLWM2M icon indicating copy to clipboard operation
AwaLWM2M copied to clipboard

Lack of dtls retransmission during handshake.

Open Lisek73 opened this issue 9 years ago • 1 comments

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.

Lisek73 avatar Aug 08 '16 09:08 Lisek73

You are right at the moment you would have to wait for the registration timeout for it to try again. As this will cause DTLS_Reset to be called.

delmet avatar Aug 08 '16 10:08 delmet