Details
-
Task
-
Resolution: Fixed
-
Minor - P4
-
None
-
None
Description
Consolidates the verification logic for the listening port (i.e. net.port), so that it accepts values in the following range for mongod, mongos, and mongoq: [0, 65535]
Description of Linked Ticket
mongos, unlike mongod, does not allow listening on an arbitrary OS-assigned port by specifying --port 0.
In ancient times (2010), validation for --port was added to the server.
Then, in slightly less ancient times (2013), this validation was split into separate validation code for mongod and mongos.
And then, in not-even-all-that-long-ago times (2017), the validation for mongod was updated to allow port 0, but no such update was done for the corresponding mongos argument validation.
We should apply that update there as well.
Attachments
Issue Links
- documents
-
SERVER-78384 mongos should allow --port 0
-
- Closed
-