Skip to content
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

How to set up auto close time to release udp port on turn server after i killed my webrtc application. #141

Open
cuiyijiee opened this issue Jun 3, 2020 · 2 comments

Comments

@cuiyijiee
Copy link

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。
image

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?

Thank you very much!

@cuiyijiee
Copy link
Author

Is there a solution to this problem?

@cuiyijiee
Copy link
Author

i tried to modify ServerConfig.ChannelBindTimeout to 2 Seconds, but it did not work.

	s, err := turn.NewServer(turn.ServerConfig{
                 ...
		ChannelBindTimeout: time.Duration(2) * time.Minute,
	})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant