Open woutd opened 3 days ago
please test #3465
I can confirm #3465 fixes the above issue.
@woutd thanks for the feedback! We'll add some more cleanup in a few other places where I can see a potential leak happening, and then we'll merge.
Alright, thanks @lminiero and @atoppi!
What version of Janus is this happening on? 1.2.4
Have you tested a more recent version of Janus too? No
Was this working before? Probably not
Is there a gdb or libasan trace of the issue? No
Additional context When the first media port for a create request is free but the second port is in use Janus returns an error and does not create the streaming mountpoint. But it keeps listening on the first port. It is now unable to free this port.
To reproduce:
Create first mountpoint and listen to 24210 and 24211:
Janus returns:
Janus is listening to 24210 and 24211:
Try to create second mountpoint to listen on 24212 and 24210:
Janus returns error because 24210 is in use and does not create the mountpoint:
But is still listening on 24212:
This only happens if the first port is free but the second is not.