Closed damencho closed 3 years ago
It'd probably be even better to avoid creating the ZRTP engine and SrtpControl at all. Not sure why that's happening when ZRTP is disabled. Maybe this needs to be changed to the NullControl (which doesn't do encryption):
I'm not sure anymore what the comment just above refers to, probably this:
Yeah, I was thinking the same, why we even create it ... :)
@gpolitis @ibauersachs So in my tests I always had DEFAULT_ENCRYPTION=false and with this change the NullControl is used and if I comment DEFAULT_ENCRYPTION setting, leaving default zrtp is initialized as before. And about the comment, I saw nothing that needs to be adjusted 🤷♂️
Thanks @ibauersachs
In jigasi we saw some TimeoutProvider threads leaking ... where zrtp is not used. Seems there is a scenario in which the ZRTPTransformEngine is initialized but never stopped/cleaned. And zrtp is not used there. Rarely happening, but still happening 20 times out of 2k.