Closed wkeeling closed 3 years ago
I experience the same issue. It seems to happen when calling quit()
on the driver, 50% of the times in my setup.
It is not a really big deal but still quite annoying. Do you think we should open an issue in the mitmproxy project, or is it a selenium-wire bug?
Thanks for your work on selenium-wire by the way, this is awesome!
Quitting the driver will now wait for silence (wait for requests to complete) before mitmproxy is shutdown, which should significantly reduce the frequency of these messages. They may still happen occasionally when very slow requests don't complete before the shutdown timeout (5 seconds) is reached. It is also worth mentioning that the default backend has been reworked from v4.0.0 of Selenium Wire, which removes many reasons for switching to the mitmproxy backend in the first place.
Occasionally the mitmproxy backend raises the following exception. It seems to happen at the end of a test when Selenium Wire shuts down the backend when the backend is still processing requests.
The exception seems harmless although it would be nice to prevent it from happening.