<p></p>
<p><b>@janosbrodbeck</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/15549#discussion_r639899933">sys/net/dsm/dsm.c</a>:</p>
<pre style='color:#555'>> + * @}
+ */
+
+#include "net/dsm.h"
+#include "mutex.h"
+#include "net/sock/util.h"
+#include "xtimer.h"
+
+#define ENABLE_DEBUG 0
+#include "debug.h"
+
+typedef struct {
+    sock_dtls_t *sock;
+    sock_dtls_session_t session;
+    dsm_state_t state;
+    uint64_t last_used;
</pre>
<p>Ultimately, the timeout is again application-specific and can be relevant to security. So, any kind of mechanism would be nice here which does not rely on "only if our session storage is full".</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/15549#discussion_r639899933">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYGQ3NYJAEFHIGJ73HTTPUOX5ANCNFSM4UL2PR7Q">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ABE7WYGXDB6CMNEOVOHSZCTTPUOX5A5CNFSM4UL2PR72YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOE7SAS5Y.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/15549#discussion_r639899933",
"url": "https://github.com/RIOT-OS/RIOT/pull/15549#discussion_r639899933",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>