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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user