mirror of
https://git.vern.cc/cobra/NerdsforNerds.git
synced 2026-04-19 18:46:15 +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"))
|
||||
8006))
|
||||
(sock (socket PF_INET SOCK_STREAM 0)))
|
||||
(setsockopt sock SOL_SOCKET SO_REUSEPORT 1)
|
||||
(bind sock AF_INET INADDR_ANY port)
|
||||
(fcntl sock F_SETFL (logior O_NONBLOCK
|
||||
(fcntl sock F_GETFL)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue