Skip to content

Be able to use dynamic port#80

Open
thomasjm wants to merge 1 commit intoReachFive:masterfrom
codedownio:dynamic-port
Open

Be able to use dynamic port#80
thomasjm wants to merge 1 commit intoReachFive:masterfrom
codedownio:dynamic-port

Conversation

@thomasjm
Copy link
Copy Markdown

@thomasjm thomasjm commented Sep 1, 2023

This PR makes it possible to use dynamically chosen ports by passing --http-port 0 and --smtp-port 0. It's useful to allow the OS to choose the ports when you want to run different SMTP tests concurrently without running into port collisions.

To support this, I added the flags --http-port-file and --smtp-port-file. These files will be written with the chosen ports when the servers start up, and can then be read by your test harness code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant