mirror of
https://github.com/caddyserver/caddy.git
synced 2025-08-06 18:49:59 +08:00
core: Use SO_REUSEPORT_LB on FreeBSD (#5554)
to balance load between threads.
This commit is contained in:
7
listen_unix_setopt.go
Normal file
7
listen_unix_setopt.go
Normal file
@ -0,0 +1,7 @@
|
||||
//go:build unix && !freebsd
|
||||
|
||||
package caddy
|
||||
|
||||
import "golang.org/x/sys/unix"
|
||||
|
||||
const unixSOREUSEPORT = unix.SO_REUSEPORT
|
Reference in New Issue
Block a user