Restrict scope of negotiation time out error logs (#2283)

* Restrict scope of negotiation time out error logs

1. Log "negotiation failed" only if signal channel was active
within half window of negotiation timeout. Negotiation timeout currently
is at 15 seconds. Signal pings are every 10 seconds.
2. In transport.go, do not report negotiation timed out and do not
callback negotiation failure if the peer connection state is not
connected. Goal of negotiation failure tracker is to take remedial
action when an in-session negotiation fails. Seeing a bunch of cases
of the case hitting even without ICE connection forming. Negotiation
timer is not intended for those cases.

* fix test
This commit is contained in:
Raja Subramanian
2023-12-02 12:44:37 +05:30
committed by GitHub
parent dcff75a516
commit d866b5110f
4 changed files with 53 additions and 18 deletions
+1 -1
View File
@@ -555,7 +555,7 @@ func (s *StreamAllocator) postEvent(event Event) {
select {
case s.eventCh <- event:
default:
s.params.Logger.Warnw("stream allocator: event queue full", nil)
s.params.Logger.Warnw("stream allocator: event queue full", nil, "event", event.String())
}
s.eventChMu.RUnlock()
}