-
-
Notifications
You must be signed in to change notification settings - Fork 376
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
Udp connection not close when using TURN (reopen #195) #232
Comments
UPDATE: In the
So, similarly, I play the timeout strategy,
and it seems the conn got dropped and port released, I am not sure if a Strong/Weak Atomic count could work this time |
Is this issue webrtc-rs/turn#13 the same cause of this one? |
On our servers, we found that after the TURN service runs for a long time, there will be a large number of UDP ports that are not released. We found that the reason is that after the `packet_handler` task is started, if the client no longer uses the UDP connection, `relay_socket.recv_from` will never return. So we add a 10-second timeout here to check whether the allocation has been dropped every 10 seconds. Fixes #232 Refs webrtc-rs/turn#13
hi
This is a bug similar to bug 195, the out come is udp port not closing.
It seems when I try to deploy a TURN server, the candidate would use the
related_address
to communicate with the TURN server. But when the peer connection is dropping and all candidate are dropped, it seems therelated_address
is still trying to listen to the opened port.Everytime I opened a new peerconnection, a new port shall be unreleased. It is a sure to come issue, could you please take a look into it?
The text was updated successfully, but these errors were encountered: