Skip to content

Commit

Permalink
RSDK-9714: Call WaitGroup.Done in too many in-flight requests error p…
Browse files Browse the repository at this point in the history
…ath. (#401)
  • Loading branch information
dgottlieb authored Jan 10, 2025
1 parent 95db6b6 commit a4cfa8d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rpc/wrtc_server_stream.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func (s *webrtcServerStream) processHeaders(headers *webrtcpb.RequestHeaders) {
select {
case s.ch.server.callTickets <- struct{}{}:
default:
s.ch.server.processHeadersWorkers.Done()
s.closeWithSendError(status.Error(codes.ResourceExhausted, "too many in-flight requests"))
return
}
Expand Down

0 comments on commit a4cfa8d

Please sign in to comment.