Reduce ghost participant disconnect timeout (#2077)
It's been reported that "ghost" participants, those that did not terminate cleanly, hang around the room for too long after they disappear. Evaluating our timeouts a bit, it seems that we are really conservative in waiting for participants to disconnect. This PR cuts down the disconnect timeout from 50s to 20s, a 30s reduction.
This commit is contained in:
@@ -60,7 +60,7 @@ const (
|
||||
dtlsRetransmissionInterval = 100 * time.Millisecond
|
||||
|
||||
iceDisconnectedTimeout = 10 * time.Second // compatible for ice-lite with firefox client
|
||||
iceFailedTimeout = 25 * time.Second // pion's default
|
||||
iceFailedTimeout = 5 * time.Second // time between disconnected and failed
|
||||
iceKeepaliveInterval = 2 * time.Second // pion's default
|
||||
|
||||
minTcpICEConnectTimeout = 5 * time.Second
|
||||
|
||||
Reference in New Issue
Block a user