Firefox 29 and up: “The connection has timed out”
Posted by jpluimers on 2019/04/24
A few years ago, Firefox changed the default “network.http.response.timeout” value from zero to 300 seconds (5 minutes).
Display style systems that show refreshing web pages, this can be a problem as when the connection to the web-server is unavailable for more than 5 minutes, then the page will show “The connection has timed out” and stop refreshing.
The solution – apart from fixing each and every connection problem – is to either restore the value or make it very long:
network.http.response.timeout=0network.http.response.timeout=30000
Changing this works similarly like in A way to skip the Firefox “Well, this is embarrassing” during a sudden reboot « The Wiert Corner – irregular stream of stuff:
- Open Firefox
- Type
about:configin the addressbar
Confirm the
This might void your warranty!
by clicking
I accept the risk!- Search for
network.http.response.timeout - Double click it so the value changes from the
defaultvalue0to theuser setvalue0
–jeroen
Via:
- [WayBack] MORGB Blog: Firefox 29 and the HTTP Response Timeout who did this from the Selenium side with this piece of code:
ffprofile = webdriver.FirefoxProfile() ffprofile.set_preference("network.http.response.timeout", 30000) #replace 30000 with the number of seconds you want the max delay to be browser = webdriver.Firefox(firefox_profile=ffprofile) - [WayBack] Stop connection timeouts from happening – want the page to wait | Firefox Support Forum | Mozilla Support






Leave a comment