mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
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:
parent
cdca1097d5
commit
c7cb648b60
1 changed files with 0 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue