mirror of
https://github.com/janet-lang/janet
synced 2025-09-10 23:06:08 +00:00
Add switch to turn off "reuse" behavior for server sockets.
This commit is contained in:
@@ -410,6 +410,10 @@
|
||||
(ev/call handler connection)
|
||||
(break))))
|
||||
|
||||
# Make sure we can't bind again with no-reuse
|
||||
(assert-error "no-reuse"
|
||||
(net/listen test-host test-port :stream true))
|
||||
|
||||
# Read from socket
|
||||
|
||||
(defn expect-read
|
||||
|
Reference in New Issue
Block a user