also increase send buffer size, 0.9.8

This commit is contained in:
David Zhao
2021-06-07 21:22:42 -07:00
parent fc41e14bf3
commit e77c819d1a
2 changed files with 5 additions and 3 deletions

View File

@@ -17,7 +17,8 @@ import (
)
const (
minUDPBufferSize = 5_000_000
minUDPBufferSize = 5_000_000
defaultUDPBufferSize = 16_777_216
)
type WebRTCConfig struct {
@@ -82,7 +83,8 @@ func NewWebRTCConfig(conf *config.RTCConfig, externalIP string) (*WebRTCConfig,
if err != nil {
return nil, err
}
_ = udpMuxConn.SetReadBuffer(minUDPBufferSize)
_ = udpMuxConn.SetReadBuffer(defaultUDPBufferSize)
_ = udpMuxConn.SetWriteBuffer(defaultUDPBufferSize)
udpMux = ice.NewUDPMuxDefault(ice.UDPMuxParams{
Logger: lkLogger,

View File

@@ -1,3 +1,3 @@
package version
const Version = "0.9.7"
const Version = "0.9.8"