namib-project / libcoap-rs

Rust bindings to and wrapper around the libcoap C library
BSD 2-Clause "Simplified" License
6 stars 1 forks source link

Resolve some issues with (DTLS) session management and add some tests. #8

Closed pulsastrix closed 1 year ago

pulsastrix commented 1 year ago

This PR resolves a number of smaller issues with DTLS support and adds a basic DTLS test, refactoring out common parts between the UDP and DTLS test cases.

The following issues were resolved:

There is still one more issue that remains to be resolved: Currently, client-side sessions are kept in memory until the context is dropped, and not doing so causes some more crashes because the event handler is then called on a session that is in the process of being dropped. I'll look into that problem in the next few days. Update: Is now fixed by temporarily disabling the event handler in the client side session drop implementation.