Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.8.0
-
Security Level: Public
-
None
-
Jim 19, Jim 20
-
5
Description
Now, multiple listeners can be opened on a single port.
Steps
1. Create listener 1 with localhost:4984 and start
2. Create listener 2 with localhost:4984 and start
We can see, both listeners are started without throwing an error.
Expected behaviour
throw an error saying, port is already being used by another process
Reading about SO_REUSEPORT again, I don't think there is a way to prevent this at the socket level without disabling this socket option. However if this socket option is disabled then there is an arbitrarily long period of time (60 seconds or so) after a socket is torn down on certain OSes that a new listener cannot be started. This creates havoc for automated testing that repeatedly starts up and shuts down listeners. Jens Alfke do you have information to the contrary?