Remove sessions list and added only one session to tbd_controller. If the session is finished, the session ptr is released.
Correct openssl tls server shutdown.
Issue ticket number and link
Until now, it was not possible to run several sessions in a row. The problem was adding each new session to a list. The old actual closed sessions remained in the list and were never properly released.
Now every session is freed by a reset after the TCP/TLS close. As soon as a new SDP request message is received, a new session unique ptr is created.
Checklist before requesting a review
[x] I have performed a self-review of my code
[ ] I have made corresponding changes to the documentation
Describe your changes
Remove sessions list and added only one session to tbd_controller. If the session is finished, the session ptr is released. Correct openssl tls server shutdown.
Issue ticket number and link
Until now, it was not possible to run several sessions in a row. The problem was adding each new session to a list. The old actual closed sessions remained in the list and were never properly released. Now every session is freed by a reset after the TCP/TLS close. As soon as a new SDP request message is received, a new session unique ptr is created.
Checklist before requesting a review