mscs icon indicating copy to clipboard operation
mscs copied to clipboard

No error checking on world creation for port already in use

Open sandain opened this issue 4 years ago • 3 comments

We should be performing error checking on world creation (or import) to verify that the requested port is not already in use.

sandain avatar Jul 29 '20 17:07 sandain

We definitely want to check if a port is in use by an enabled world. How do we want to handle ports in use by disabled worlds? If we don't care about checking disabled worlds, what about when a disabled world is enabled?

sandain avatar Jul 29 '20 18:07 sandain

The first part in checking for the ports would be showing the port in e.g. mscs status. Often I am in search of an available port for a new world and this would enable me to choose a good port.

For my use-case, disabled worlds often stay disabled forever, I just don't want to delete them, so for me only a warning would be nice.

conrad784 avatar Jul 31 '20 07:07 conrad784

The mscs ls command returns the ports in use.

sandain avatar Jul 31 '20 12:07 sandain