EVerest / libiso15118

ISO 15118 library suite
Apache License 2.0
8 stars 5 forks source link

Refactor: Multiple Sessions now possible #27

Closed SebaLukas closed 2 months ago

SebaLukas commented 3 months ago

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