Don't limit size of received Janus events.

Combined events of media stats could get larger than previous limit causing
interruptions in the connection from Janus and piling up unsent events on
Janus side.
This commit is contained in:
Joachim Bauch 2026-02-26 08:08:27 +01:00
commit c7cb648b60
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -82,9 +82,6 @@ const (
// Send pings to peer with this period. Must be less than pongWait.
pingPeriod = (pongWait * 9) / 10
// Maximum message size allowed from peer.
maxMessageSize = 64 * 1024
)
var (
@ -727,7 +724,6 @@ func (h *EventsHandler) readPump() {
return
}
conn.SetReadLimit(maxMessageSize)
conn.SetPongHandler(func(msg string) error {
now := time.Now()
conn.SetReadDeadline(now.Add(pongWait)) // nolint