-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Race condition in port selection #8
Comments
Shouldn't serve take a parameter to an assigned port? Picking a random port will make behat configuration difficult, for instance, where a specific port is necessary. |
No - in the planned refactoring, Behat will be passed a The code is given a preferred port number, and if that is available, it uses that. However, if that port is unavailable it autoincrements until it finds a free port. |
Oh I see, sorry I was missing the context. I would like to see less reliance on behat.yml to hard-code these settings, and more live-configuration such as this. |
still a problem? |
A brief review of the code suggests that it hasn't been fixed. |
This bash script will break the find-a-free-port code
The best fix is probably to retry on a new port if the
php -S
process fails to start.The text was updated successfully, but these errors were encountered: