1
0
mirror of https://github.com/janet-lang/janet synced 2025-09-12 07:46:09 +00:00

Address issue #1558

Don't attempt SO_REUSEPORT on unix domain sockets since it doesn't make
sense and may cause a failure to bind without extra effort by the
programmer.
This commit is contained in:
Calvin Rose
2025-02-07 21:04:17 -06:00
parent 5f550ea5d4
commit 9a892363a3
3 changed files with 15 additions and 5 deletions

View File

@@ -484,4 +484,10 @@
(pp :foo)))
(ev/chan-close c)
# soreuseport on unix domain sockets
(compwhen (= :linux (os/which))
(assert-no-error "unix-domain socket reuseaddr"
(let [s (net/listen :unix "./unix-domain-socket" :stream)]
(:close s))))
(end-suite)