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

If TURN channel is inactive, it times out and is never re-established #542

Open
marcbrevoort-cyberhive opened this issue Mar 6, 2024 · 1 comment · May be fixed by #543
Open

If TURN channel is inactive, it times out and is never re-established #542

marcbrevoort-cyberhive opened this issue Mar 6, 2024 · 1 comment · May be fixed by #543

Comments

@marcbrevoort-cyberhive
Copy link

As it says in the title, channels appear to time out after some time of inactivity (~15 minutes). Which is probably fine.

However, when traffic occurs again later on, this always occurs using SendIndication/DataIndication (i.e. plain permissions based packets) and another channel is never re-established.

While data can still flow between two peers without a channel, it is less efficient.

@marcbrevoort-cyberhive marcbrevoort-cyberhive changed the title If channel is inactive, it times out and is never re-established If TURN channel is inactive, it times out and is never re-established Mar 6, 2024
@marcbrevoort-cyberhive
Copy link
Author

When this occurs, the following can be seen in the logs

121625	2024-03-07 08:52:05.834850	192.168.0.100	18.132.207.60	STUN	198	Channel-Bind Request XOR-PEER-ADDRESS: 90.206.45.61:18025 ChannelNumber=0x4001 user: 1709887601:74134842-07f3-4d16-a5c3-33ea4c52ab03 realm: eturnal.net with nonce
121626	2024-03-07 08:52:05.857553	18.132.207.60	192.168.0.100	STUN	126	Channel-Bind Error Response realm: eturnal.net with nonce error-code: 438 (Stale Nonce) Stale Nonce

and there is no effort made to recover.

The client should retry, using the NONCE provided in the response (as per RFC5389).

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