From 942fbb37ec46f1907e57a04c44ca790bd47ed52c Mon Sep 17 00:00:00 2001 From: Jonathan Davies Date: Tue, 23 May 2023 17:56:00 +0100 Subject: core: Use SO_REUSEPORT_LB on FreeBSD (#5554) to balance load between threads. --- listen_unix_setopt.go | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 listen_unix_setopt.go (limited to 'listen_unix_setopt.go') diff --git a/listen_unix_setopt.go b/listen_unix_setopt.go new file mode 100644 index 0000000..c9675f9 --- /dev/null +++ b/listen_unix_setopt.go @@ -0,0 +1,7 @@ +//go:build unix && !freebsd + +package caddy + +import "golang.org/x/sys/unix" + +const unixSOREUSEPORT = unix.SO_REUSEPORT -- cgit v1.2.3