Skip to content

Dynamic port selection and writing used port to external file #3

@pekkaklarck

Description

@pekkaklarck

Selecting the port to use dynamically has two major benefits:

  • No need to have port open on registered port range.
  • Faster to launch remote servers sequentially when there's no need to wait ports to be free'ed. This happens to be needed in our acceptance tests and thus this feature is included into the 1.0 release.

This feature has three sides:

  1. Actual implementation of selecting a port dynamically. This actually happens to be possible already now by explicitly using port 0. SimpleXMLRPCServer takes care of everything else.
  2. Announcing the selected port so that users can easily check it and later connect to the right port. This will be implemented in two ways:
    • The already now printed message contains the actually used port, not the port that user gave.
    • Add feature to give the server a path to a file where to write the port number in use. This will be easy to use programmatically.
  3. Document the functionality.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions