SO_REUSEPORT

This commit is contained in:
Skylar "The Cobra" Astaroth 2026-03-20 13:14:29 -04:00
commit cdeaad42af
No known key found for this signature in database
GPG key ID: BA264FFE0FF18555

View file

@ -62,6 +62,7 @@
(string->number (getenv "PORT")) (string->number (getenv "PORT"))
8006)) 8006))
(sock (socket PF_INET SOCK_STREAM 0))) (sock (socket PF_INET SOCK_STREAM 0)))
(setsockopt sock SOL_SOCKET SO_REUSEPORT 1)
(bind sock AF_INET INADDR_ANY port) (bind sock AF_INET INADDR_ANY port)
(fcntl sock F_SETFL (logior O_NONBLOCK (fcntl sock F_SETFL (logior O_NONBLOCK
(fcntl sock F_GETFL))) (fcntl sock F_GETFL)))