-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
"Transport with same transportId already exists" (should not happen) #48
Comments
I've coded a test app trying to reproduce the bug. I'm not able to reproduce it: |
Ok, I've added transport related logs in the mediasoup demo server, and got something wrong:
So basically, the server receives two "createTransport" requests for
|
I've tried to reproduce the issue running the demo with lot of debugs. Calls to |
Regarding the error logs above, I don't even know if those are produced by the mediasoup-demo web application. I'm aware of some people connecting to this demo server using their own mediasoup clients. |
Do you know if the third party clients hitting your demo use the mediasoup-client package? |
The peer.name matches the random ID scheme of the demo, of course that is in no way definitive to what client is being used. |
Good question. I think (but I cannot confirm) that there are some guys testing custom native versions of mediasoup-client. BTW I've added some logs to the demo server: logger.info(
'connection request [roomId:%s, peerName:%s, address:%s, origin:%s]',
roomId, peerName, info.socket.remoteAddress, info.origin); I hope those will help us identifying which kind of clients are producing the error. |
News: By default mediasoup-client uses I've changed it to 300000 in mediasoup-client right now. If the server si too busy (it can happen if there are many rooms and, specially, if the
This makes sense and explains the problem. Please, increase the |
@james-maloney, if you can reproduce the issue, please try to find such a timeout error in your client side. If you see it, it means that probably the explanation above is accurate. |
Looking at my logs I do see some timeout errors that occurred trying to receive a new consumer. Also saw a bunch of these timeouts on the SFU |
I assume you have lot of debugging logs enabled in your mediasoup. Am I right? |
No debug logs but a lot of reqs are made to get stats from the worker. |
Performance in the Channel when stats are enabled and there are many participants can be discussed in another topic (if it produces timeout errors). However, I think we can close this issue and the related #47, right? |
@james-maloney, looks like those were from node. The request timeout there is hard coded to 5 seconds (https://github.com/versatica/mediasoup/blob/master/lib/Channel.js#L12). In fact, I just checked and we've been running with a custom 30 second timeout on the frontend for a while. |
@ibc It seems like the requestTimeout in the client should be the same or similar to the worker timeout. Could we make the worker timeout configurable? |
I agree that 5 seconds is too low. Wouldn't it just better if we increase it to 20 seconds? I don't get the point in making it configurable instead of choosing a value that works fine always. |
20s seems okay to me. I ask because it seems somewhat coupled to the client's requestTimeout and that's configurable. Maybe just a doc update would clarify things. |
I think that client's IMHO more than 20 seconds in |
Sounds good. |
Yep, I think 20 seconds is good. |
Thanks a lot, guys. mediasoup 2.3.2 released right now with REQUEST_TIMEOUT in |
Issue and some rationale described here: #47
The text was updated successfully, but these errors were encountered: