-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
fix: Check that a port truly is free before using it #11085
Conversation
If 0.0.0.0 port 12345 is in use, then 'chromedriver --port=12345 --allowed-ips=1.2.3.4' fails with address already in use. If ::1 port 12345 is in use, then 'chromedriver --port=12345' fails.
Codecov ReportBase: 55.49% // Head: 55.49% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## trunk #11085 +/- ##
=======================================
Coverage 55.49% 55.49%
=======================================
Files 82 82
Lines 5503 5503
Branches 278 278
=======================================
Hits 3054 3054
Misses 2171 2171
Partials 278 278 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
SonarCloud Quality Gate failed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @Artur-!
@Artur- I am reverting the |
Is the problem that the machines do not have ipv6 support on or something else? |
I would say yes, however I didn't have enough time to check it |
Ok, I assumed |
Ah, but that returns false. So then every port will be in use and nothing free.. |
Exactly, that is the issue, so we do not know if ipv6 is available or the port being busy. |
Description
If for instance 0.0.0.0:12345 is bound then running chromedriver with '--port=12345 --allowed-ips=1.2.3.4' fails with address already in use. If ::1 port 1234 is in used, chromedriver with '--port=12345' fails
Motivation and Context
Chromedriver fails to start in many cases with
[SEVERE]: bind() failed: Address already in use (48)
Types of changes
Checklist