-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should not crash if no more available ports #222
Comments
Better logs showing an assertion error in libuv that produces the real crash:
Core dump:
|
Ok, the problem is the following:
Custom logs to show the problem:
Some related info: |
So, theoretically, when a C++ class constructor throws an exception, its destructor is NOT called. The problem we have is that, after throwing the exception in the And it seems to be the expected behavior: So there our bug. |
@jmillan this will also affect the |
- The destructor of ~Transport was being called twice
This must be confirmed, but it seems that, if there are no more available RTP ports, the
mediasoup-worker
process crashes. Not sure if this is intentional. AFAIR it's not. Instead, the JS promise should just be rejected.The text was updated successfully, but these errors were encountered: