1
0
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:
Calvin Rose
2024-12-31 08:52:37 -06:00
parent 746ced5501
commit ba5990ef21
2 changed files with 20 additions and 12 deletions

View File

@@ -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