Retry initial connection attempt should it fail (#1335)

Sometimes the initial selected node could fail. In that case, we'll give it a few more attempts to locate a media node for the session instead of failing it after the first try.
This commit is contained in:
David Zhao
2023-01-25 22:59:57 -08:00
committed by GitHub
parent bd39a96eac
commit 2fa46e2df4
4 changed files with 102 additions and 36 deletions
+6
View File
@@ -199,6 +199,12 @@ func IncrementParticipantJoin(join uint32) {
}
}
func IncrementParticipantJoinFail(join uint32) {
if join > 0 {
promParticipantJoin.WithLabelValues("signal_failed").Add(float64(join))
}
}
func IncrementParticipantRtcInit(join uint32) {
if join > 0 {
participantRTCInit.Add(uint64(join))