perf(peer): Reduce datachannel buffer threshold from 1MB to 256KB

This commit is contained in:
zarazaex69
2026-04-09 18:38:47 +03:00
parent 503b0549e6
commit fea611f687

View File

@@ -174,7 +174,7 @@ func (p *Peer) Send(data []byte) error {
return fmt.Errorf("datachannel not ready")
}
for p.dc.BufferedAmount() > 1024*1024 {
for p.dc.BufferedAmount() > 256*1024 {
time.Sleep(1 * time.Millisecond)
}