[🐛 Bug]: When encounter an exception in RemoteWebDriverBuilder.build(), the underlaying HttpClient resources are not released #15710
Labels
A-needs-triaging
A Selenium member will evaluate this soon!
C-java
Java Bindings
I-defect
Something is not working as intended
OS-linux
R-help wanted
Issues looking for contributions
Uh oh!
There was an error while loading. Please reload this page.
Description
var webDriver = RemoteWebDriver.builder().address(REMOTE_URL).build()
In the above code when there is an exception in the build() method, no webDriver instance returned and I cannot release the underlaying HttpClient resources. Could we consider releasing the HttpClient resources inside the build() before throwing an exception?
The exception example :
Reproducible Code
var webDriver = RemoteWebDriver.builder().address(REMOTE_URL).build()
Debugging Logs
The text was updated successfully, but these errors were encountered: