luci-base: Add possiblity to set path and timeout of ubus connection
authorWojciech Jowsa <redacted>
Wed, 19 Aug 2020 10:49:03 +0000 (12:49 +0200)
committerWojciech Jowsa <redacted>
Wed, 19 Aug 2020 11:00:49 +0000 (13:00 +0200)
commit1f6dc29f745b3a38d7b5cab709964ad78d69de1c
tree970c7dfd455386505155bf437b6dc57b62ceea59
parentb2fa7903ebfdbe9f485a94710b77320fe7897dba
luci-base: Add possiblity to set path and timeout of ubus connection

It might happen (e.g. when downloading a large file with low speed
connection) that the ubus connection will time out.
The ubus_connect function allows to specify
ubus socket path and ubus connection timeout
so it should allowed to set these arguments from luci.

Signed-off-by: Wojciech Jowsa <redacted>
libs/luci-lib-base/luasrc/util.lua
git clone https://git.99rst.org/PROJECT