steep-balloon-41261
11/03/2023, 8:25 PMenough-zebra-80131
11/03/2023, 8:31 PMsignal_client::SignalClient::connect(&host, &auth_token, options).await
It connects successfully and I get a JoinResponse
, a SignalClient
and a UnboundedReceiver<SignalEvent>
.
I can publish tracks, stream stuff, things work fine until exactly 1min after the connection, when I get this:
> livekit signal < Leave(LeaveRequest { can_reconnect: false, reason: JoinFailure })
and then I receive a SignalEvent::Close()
what am I doing wrong?enough-zebra-80131
11/03/2023, 8:37 PMJoinResponse
it says:
ping_timeout: 15, ping_interval: 5
so I guess it's not a ping issue otherwise it would not take 1 minenough-zebra-80131
11/03/2023, 9:03 PM> livekit signal < Update(ParticipantUpdate { participants: [ParticipantInfo { sid: "PA_N9y2swDPr6S8", identity: "preview-identity", state: Joined, tracks: [], metadata: "", joined_at: 1699042748, name: "preview", version: 1, permission: Some(ParticipantPermission { can_subscribe: false, can_publish: true, can_publish_data: true, can_publish_sources: [], hidden: false, recorder: false, can_update_metadata: false }), region: "dfra1a", is_publisher: false }] })
so the server tells me my state is Joined
acoustic-engineer-41666
11/03/2023, 10:01 PMSignalClient::connect
rather than Room::connect
?dry-elephant-14928
11/03/2023, 10:45 PMenough-zebra-80131
11/04/2023, 8:22 AMdry-elephant-14928
11/04/2023, 7:01 PMenough-zebra-80131
11/04/2023, 9:59 PMenough-zebra-80131
11/04/2023, 10:00 PMacoustic-engineer-41666
11/04/2023, 10:03 PMenough-zebra-80131
11/04/2023, 10:09 PMenough-zebra-80131
11/04/2023, 10:24 PMenough-zebra-80131
11/04/2023, 10:26 PM2023-11-04T23:23:40.675+0100 ERROR livekit supervisor/participant_supervisor.go:156 supervisor error on publication {"room": "c47bfcce-5f4f-4906-966f-9dee7b840196", "roomID": "RM_8CQqu9MgQQqj", "participant": "preview-test", "pID": "PA_NWF7RLqTnd3U", "remote": false, "trackID": "TR_AMXy6KuSWwFyzE", "error": "publish time out"}
enough-zebra-80131
11/04/2023, 10:26 PMenough-zebra-80131
11/04/2023, 11:03 PMenough-zebra-80131
11/04/2023, 11:03 PMenough-zebra-80131
11/04/2023, 11:03 PM{
"room": "c47bfcce-5f4f-4906-966f-9dee7b840196",
"roomID": "RM_QxRgMvsqzEHt",
"participant": "preview-test",
"pID": "PA_cbad6L5Ej6WT",
"remote": false,
"sendLeave": true,
"reason": "JOIN_TIMEOUT",
"isExpectedToResume": false,
"clientInfo": "sdk:RUST protocol:9 address:\"192.168.1.4\""
}
dry-elephant-14928
11/04/2023, 11:51 PMdry-elephant-14928
11/04/2023, 11:52 PMenough-zebra-80131
11/04/2023, 11:59 PMenough-zebra-80131
11/05/2023, 12:00 AMenough-zebra-80131
11/05/2023, 12:00 AMenough-zebra-80131
11/05/2023, 12:01 AMdry-elephant-14928
11/05/2023, 12:01 AMenough-zebra-80131
11/05/2023, 12:02 AMenough-zebra-80131
11/05/2023, 12:03 AMdry-elephant-14928
11/05/2023, 12:03 AMenough-zebra-80131
11/05/2023, 12:04 AMdry-elephant-14928
11/05/2023, 12:04 AMenough-zebra-80131
11/05/2023, 12:04 AMdry-elephant-14928
11/05/2023, 12:05 AMcanSubscribe: false
dry-elephant-14928
11/05/2023, 12:05 AMenough-zebra-80131
11/05/2023, 12:05 AMdry-elephant-14928
11/05/2023, 12:05 AMenough-zebra-80131
11/05/2023, 12:06 AMlet grants = VideoGrants {
room_join: true,
can_subscribe: false,
room: self.instance_task.studio_session_uuid.clone(),
..Default::default()
};
enough-zebra-80131
11/05/2023, 12:06 AMenough-zebra-80131
11/05/2023, 12:08 AMdry-elephant-14928
11/05/2023, 12:11 AMdry-elephant-14928
11/05/2023, 12:11 AMenough-zebra-80131
11/05/2023, 12:12 AMenough-zebra-80131
11/05/2023, 12:25 AMenough-zebra-80131
11/06/2023, 10:01 AMenough-zebra-80131
11/06/2023, 10:02 AMenough-zebra-80131
11/06/2023, 10:03 AMfunc (t *PCTransport) isFullyEstablished() bool {
t.lock.RLock()
defer t.lock.RUnlock()
return t.reliableDCOpened && t.lossyDCOpened && !t.connectedAt.IsZero()
}
enough-zebra-80131
11/06/2023, 10:03 AMenough-zebra-80131
11/06/2023, 10:08 AMfunc (t *PCTransport) isFullyEstablished() bool {
t.lock.RLock()
defer t.lock.RUnlock()
return !t.connectedAt.IsZero()
}
maybe we should add a parameter to know if the participant wants data channels? (maybe there's one already?)enough-zebra-80131
11/06/2023, 1:41 PM