summaryrefslogtreecommitdiff
path: root/listen_unix_setopt_freebsd.go
diff options
context:
space:
mode:
authorJonathan Davies <jd+github@upthedownstair.com>2023-05-23 17:56:00 +0100
committerGitHub <noreply@github.com>2023-05-23 10:56:00 -0600
commit942fbb37ec46f1907e57a04c44ca790bd47ed52c (patch)
tree6211f3c8af32b58d5b6717aac52436f3548ed222 /listen_unix_setopt_freebsd.go
parentcee4441cb1d485b38d728168a315cda5641d84fb (diff)
core: Use SO_REUSEPORT_LB on FreeBSD (#5554)
to balance load between threads.
Diffstat (limited to 'listen_unix_setopt_freebsd.go')
-rw-r--r--listen_unix_setopt_freebsd.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/listen_unix_setopt_freebsd.go b/listen_unix_setopt_freebsd.go
new file mode 100644
index 0000000..0652054
--- /dev/null
+++ b/listen_unix_setopt_freebsd.go
@@ -0,0 +1,7 @@
+//go:build freebsd
+
+package caddy
+
+import "golang.org/x/sys/unix"
+
+const unixSOREUSEPORT = unix.SO_REUSEPORT_LB