Skip to content

Commit

Permalink
Merge pull request #79 from nils-ohlmeier/increase_disconnected_timeout
Browse files Browse the repository at this point in the history
Increased ICE disconnected timeout
  • Loading branch information
third774 authored Aug 12, 2024
2 parents 7a9ff1b + 62d9d0f commit 23fb804
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/utils/rxjs/RxjsPeer.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,10 @@ export class RxjsPeer {
)
subscribe.next(setup())
} else if (peerConnection.iceConnectionState === 'disconnected') {
const timeoutSeconds = 3
// TODO: we should start to inspect the connection stats from here on for
// any other signs of trouble to guide what to do next (instead of just hoping
// for the best like we do here for now)
const timeoutSeconds = 7
iceTimeout = window.setTimeout(() => {
console.debug(
`💥 Peer iceConnectionState was ${peerConnection.iceConnectionState} for more than ${timeoutSeconds} seconds`
Expand Down

0 comments on commit 23fb804

Please sign in to comment.