mirror of
https://github.com/openlibrecommunity/olcrtc.git
synced 2026-05-28 16:09:48 +00:00
perf(peer): Reduce datachannel buffer threshold from 1MB to 256KB
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user