From dece57561a711fabe6a6c2c8653d0b02b7b24bbc Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Sat, 23 Oct 2021 13:42:24 +0200 Subject: [PATCH] update docs --- serversession.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/serversession.go b/serversession.go index 464618fb..1d357f7e 100644 --- a/serversession.go +++ b/serversession.go @@ -309,7 +309,7 @@ func (ss *ServerSession) run() { case <-checkTimeoutTicker.C: switch { - // in case of RECORD and UDP, timeout happens when no frames are being received + // in case of RECORD and UDP, timeout happens when no RTCP packets are being received case ss.state == ServerSessionStatePublish && (*ss.setuppedTransport == TransportUDP || *ss.setuppedTransport == TransportUDPMulticast): now := time.Now() @@ -318,7 +318,7 @@ func (ss *ServerSession) run() { return liberrors.ErrServerSessionTimedOut{} } - // in case of PLAY and UDP, timeout happens when no request arrives + // in case of PLAY and UDP, timeout happens when no RTSP request arrives case ss.state == ServerSessionStateRead && (*ss.setuppedTransport == TransportUDP || *ss.setuppedTransport == TransportUDPMulticast): now := time.Now() @@ -326,7 +326,7 @@ func (ss *ServerSession) run() { return liberrors.ErrServerSessionTimedOut{} } - // otherwise, there's no timeout until all associated connections are closed + // in case of TCP, there's no timeout until all associated connections are closed } case <-receiverReportTicker.C: