mirror of
https://github.com/livekit/livekit.git
synced 2026-10-23 19:32:41 +00:00
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.
(cherry picked from commit 2fa46e2df4)
This commit is contained in:
1 parent
6a8e86c3a3
commit
93e8bba71d
3 files changed
+96
-36
No files matched your search
@@ -16,6 +16,7 @@ import (
|
||||
|
||||
// MessageSink is an abstraction for writing protobuf messages and having them read by a MessageSource,
|
||||
// potentially on a different node via a transport
|
||||
//
|
||||
//counterfeiter:generate . MessageSink
|
||||
type MessageSink interface {
|
||||
WriteMessage(msg proto.Message) error
|
||||
@@ -57,6 +58,7 @@ type RTCMessageCallback func(
|
||||
)
|
||||
|
||||
// Router allows multiple nodes to coordinate the participant session
|
||||
//
|
||||
//counterfeiter:generate . Router
|
||||
type Router interface {
|
||||
MessageRouter
|
||||
|
||||
Reference in new issue
Block a user