You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to set up auto close time to release udp port on turn server after i killed my webrtc application. #141
hello, i am deploy this repository for my webrtc turn server。
what happend
i meet a small problem,my application is builded by google-webrtc on android platform,
when i killed my application without close peerconnection normally,my turn server speed almost 10 minutes to close the udp port relayed , it is terrible。
what i want know
1.Is it possible to modify this time by adding config parameters?
2.Is it possible to reduce this time through linux system parameters?
Sorry I didn't respond to this sooner. I haven't put enough effort into this repo. When PeerConnections create the Allocation they get to pick how long they stay open. pion/turn is just respecting those values.
The lifetime of the allocation controls how long that relayed port is open for.
If anyone has ideas on how to make this less painful or maybe another TURN server has a way to make this easier I would love to hear!
Activity
cuiyijiee commentedon Jun 28, 2020
Is there a solution to this problem?
cuiyijiee commentedon Jun 28, 2020
i tried to modify ServerConfig.ChannelBindTimeout to 2 Seconds, but it did not work.
Sean-Der commentedon Dec 24, 2025
Hey @cuiyijiee
Sorry I didn't respond to this sooner. I haven't put enough effort into this repo. When PeerConnections create the Allocation they get to pick how long they stay open.
pion/turnis just respecting those values.The lifetime of the allocation controls how long that relayed port is open for.
If anyone has ideas on how to make this less painful or maybe another TURN server has a way to make this easier I would love to hear!