mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 15:24:01 +03:00
FILE / ScuroNeko/mtg
mtglib/internal/relay/pool_settings_constrained.go
Исходный файл и его история в репозитории.
14 lines
404 B
Go
14 lines
404 B
Go
//go:build mips || mipsle
|
|
|
|
package relay
|
|
|
|
import "github.com/9seconds/mtg/v2/mtglib/internal/tls"
|
|
|
|
const (
|
|
// MIPS is quite short in resources, and usually it means that it will run
|
|
// on Microtiks, OpenWRT-based routers or similar hardware. I think it worth
|
|
// to sacrifice a number of read syscalls (read, CPU load) to shrink
|
|
// limited RAM resources.
|
|
bufPoolSize = tls.MaxRecordPayloadSize / 2
|
|
)
|