mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2024-04-21 12:32:08 +00:00
18 lines
377 B
Go
18 lines
377 B
Go
// Copyright (C) 2020 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
package socket
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func setLowPrioCongestionController(fd int) error {
|
|
// temporary behavior until we figure out better scavenger traffic
|
|
return nil
|
|
}
|
|
|
|
func setLowEffortQoS(fd int) error {
|
|
return syscall.SetsockoptByte(fd, syscall.SOL_IP, syscall.IP_TOS, byte(dscpLE)<<2)
|
|
}
|