core: Use SO_REUSEPORT_LB on FreeBSD (#5554)

to balance load between threads.
This commit is contained in:
Jonathan Davies
2023-05-23 17:56:00 +01:00
committed by GitHub
parent cee4441cb1
commit 942fbb37ec
3 changed files with 15 additions and 1 deletions

7
listen_unix_setopt.go Normal file
View File

@ -0,0 +1,7 @@
//go:build unix && !freebsd
package caddy
import "golang.org/x/sys/unix"
const unixSOREUSEPORT = unix.SO_REUSEPORT