luci-base: xhr: increase poll request timeout
authorJo-Philipp Wich <jo@mein.io>
Fri, 13 Jul 2018 14:55:47 +0000 (16:55 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 13 Jul 2018 14:55:47 +0000 (16:55 +0200)
commitb38306dcee38cd475608f821130b50f11773e1b5
tree411189db8d27c380d9dec1a58bd54b5fa2cd32e4
parent053682c4c344e5b1ee875d503ea14e3cb9447e68
luci-base: xhr: increase poll request timeout

Some status requests can take quite some time to finish, the LuCI DSL
status information in particular.

Since the polling loop code already takes care of not relaunching
requests which are already running, increase the per iteration timeout
to up to five times the poll interval.

This should be sufficient to let most operations complete.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/xhr.js