Currently we use simple listener supervisor + acceptor/connection state machine to handle DTLS. This structure does not differ process busy accepting and process already connected. Also it is hard to track e.g. number of connections, as accepting is a blocking operation.
Furthermore, reconnecting logic is absent because we are unclear about how the client would react in such a scenario (consider what to do when the device went into sleep mode).
Currently we use simple listener supervisor + acceptor/connection state machine to handle DTLS. This structure does not differ process busy accepting and process already connected. Also it is hard to track e.g. number of connections, as accepting is a blocking operation.
Furthermore, reconnecting logic is absent because we are unclear about how the client would react in such a scenario (consider what to do when the device went into sleep mode).