- Riješeno
- Arhivirano
need to get network.http.max-connections-per-server value from javascript
I have an AJAX web application which is very sensitive to the number of connections allowed by the browser. Bad things happen when the limit is set up low: frozen screens… (pročitajte više)
I have an AJAX web application which is very sensitive to the number of connections allowed by the browser. Bad things happen when the limit is set up low: frozen screens, uncommitted transactions, deadlocks etc.
In order to prevent this I need to check the current value of configuration parameter "network.http.max-connections-per-server" programmatically (i.e. by the javascript code) and reject a request if the limit is too low with appropriate instructions to the user.
I guess it's possible because "about:config" renders all parameters values and even lets user to modify them. However the code behind the page is very complicated so I can't figure out how to perform my task. All I need is a function or method returning the current value of a given config parameter.
Any help will be greatly appreciated.
Anatoly