Take the line rate as a constant so nothing has to be plugged in, and drop the config box
This commit is contained in:
@@ -22,14 +22,6 @@ func setBufForce(fd, forceOpt, opt, size int) error {
|
||||
return unix.SetsockoptInt(fd, unix.SOL_SOCKET, opt, size)
|
||||
}
|
||||
|
||||
func sockBufSize(fd, opt int) int {
|
||||
v, err := unix.GetsockoptInt(fd, unix.SOL_SOCKET, opt)
|
||||
if err != nil {
|
||||
panic(fmt.Sprintf("reading socket buffer size: %v", err))
|
||||
}
|
||||
return v
|
||||
}
|
||||
|
||||
const (
|
||||
sndbufBytes = 8 << 20
|
||||
rcvbufBytes = 64 << 20
|
||||
|
||||
Reference in New Issue
Block a user