-
-
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
[py] Avoid waiting indefinitely on a frozen chromedriver process #14578
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
f127184
to
0bd4495
Compare
0bd4495
to
5c6214d
Compare
Thanks for the PR! |
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
By default requests.request waits indefinitely until it gets a response. This is unfortunate if the chromedriver process froze for some reason.
This PR adds a default timeout of two minutes to those requests.
Motivation and Context
Fixes waiting indefinitely because of a frozen chromedriver process.
Types of changes
Checklist
PR Type
Bug fix
Description
remote_connection.py
to prevent indefinite waiting due to a frozen chromedriver process._request
method to accept atimeout
parameter and applied it to HTTP requests.Changes walkthrough 📝
remote_connection.py
Add timeout parameter to HTTP requests in remote connection
py/selenium/webdriver/remote/remote_connection.py
timeout
parameter with a default value of 120 seconds to the_request
method.timeout
parameter.