mirror of
https://git.vern.cc/cobra/NerdsforNerds.git
synced 2026-10-23 03:45:04 +05:30
SO_REUSEPORT
This commit is contained in:
parent
4c4802976d
commit
cdeaad42af
1 changed files with 1 additions and 0 deletions
1
nerd.scm
1
nerd.scm
|
|
@ -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)))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue