384 Commits

Author SHA1 Message Date
Natalia Miakushina
0e4135a7bb CI: switch to code-analysis in own registry (IOP-9341) 2023-03-22 13:25:00 +00:00
Vivek Kumar Dutta
d866ee2a96 Removed private demo keys 2022-10-12 11:51:51 +00:00
vdutta
e37c6f9d70 Fix compilation issue with lws-4 2022-02-04 11:04:29 +00:00
vdutta
322cf2a4b6 Fix static analysis errors 2022-02-04 15:46:50 +05:30
Sukru Senli
76bde124d5 Merge branch 'master' into 'master'
add support for svg and json content types

See merge request iopsys/owsd!6
2021-06-02 11:27:35 +00:00
Sinduja Prakash
968f47b66a add support for svg and json content types 2021-06-02 11:31:00 +02:00
Jakob Olsson
f78f719894 use default ubus socket as NULL 2021-05-12 09:59:08 +02:00
Jakob Olsson
2ea5e5fca6 Merge branch 'raphael-owsd-fix-test' into 'master'
Fix the failing tests #4642

See merge request iopsys/owsd!4
2021-03-19 08:44:14 +00:00
Raphael Derensy
ff52741e57 gitlab-ci: remove tarring of test results #4642 2021-03-19 08:44:14 +00:00
Jakob Olsson
6ffea74593 add utils.c 2020-09-11 13:35:20 +02:00
Jakob Olsson
ed02490b4d gitlab-ci: use code-analysis-dev 2020-09-10 09:05:45 +02:00
Jakob Olsson
fd696e9d1b wsubus.impl: allow written to be greater or equal to len 2020-08-28 13:31:30 +02:00
Jakob Olsson
e606e7d389 wsubus.impl: make stale async cleanout timeout more leniant 2020-06-23 16:46:22 +02:00
Jakob Olsson
b2425e2e90 wsubus_client: use safe iterator when removing clients 2020-06-15 13:05:23 +02:00
Jakob Olsson
ceeb7d440c config: stylistic changes 2020-06-01 08:36:18 +02:00
Jakob Olsson
9e461e37a1 config: add reconnect_timeout 2020-05-29 16:09:54 +02:00
Reidar Cederqvist
04ca2a5f47 Make several timeout values configurable
Clients connection check retry timeout value (default 2000 ms)
	The time that owsd will wait before retrying a failed
	connection attempt to a client, this value is multiplied
	with the amount of failed attempt so far.

Timeout value on scanning all clients (default 3600000 ms <1h>)
	When this timer has expired, all clients will be added.
	This is to catch clients whos connect event was missed.

Set maximum connection check time on each client (default 10)
	The maximum amount of failed connection atemptes.
2020-05-29 13:35:44 +02:00
Jakob Olsson
6d2c10b28d ws_ubusproxy: only include json-validator.h if OWSD_JSON_VALIDATION flag is given 2020-04-22 12:45:44 +02:00
Jakob Olsson
a479a50e35 add module tests 2020-04-22 11:38:45 +02:00
Jakob Olsson
7375de4c5b main: improve memory managment for origin specific vhosts 2020-04-22 10:28:35 +02:00
Jakob Olsson
629e3942c3 checkpatch style fixes 2020-04-22 10:27:52 +02:00
Jakob Olsson
e73db4e733 Revert "ws_ubusproxy: call a teardown function if client should be torn down (behavior change for lws 3.1.0)"
This reverts commit 6bc97e4f9b.
This issue was fixed by adding the correct callback flag for clientside connection closing (LWS_CALLBACK_CLOSED to LWS_CALLBACK_CLIENT_CLOSED)
2020-04-22 10:27:52 +02:00
Jakob Olsson
93dacd6e59 compile warnings 2020-04-22 10:27:52 +02:00
Jakob Olsson
c91872b89f Revert "main: if list origin policy is allow all, use interface address as vhost name"
This reverts commit d7c0043abdb5983d33ad5e894c50fff566a5e309.
2020-04-22 10:27:52 +02:00
Jakob Olsson
592ed1041b main: if list origin policy is allow all, use interface address as vhost name 2020-04-22 10:24:37 +02:00
Jakob Olsson
8fa82d250d main: allocate memory for origin vhost info, ignore http:// and https:// for vhost names
http and https are not included in lws vhost names, http/https will be determined by port
2020-04-22 10:24:37 +02:00
Jakob Olsson
d61d6d9476 make one vhost for each origin 2020-04-22 10:24:37 +02:00
Jakob Olsson
5757bf1d3c coding style and general issue fixes 2020-04-22 10:24:15 +02:00
Jakob Olsson
6692e60328 change from cpp commenting style to c 2020-04-22 10:18:09 +02:00
Jakob Olsson
21efa7d2f9 ws_ubusproxy_client: add case for LWS_CALLBACK_CLIENT_CLOSED
Seems as if this is the flag used for a websocket connection cancelled by clients in lws 3.1.0
2020-04-22 10:11:19 +02:00
Jakob Olsson
24a6f7d06c move ubusx protocol init to ws_ubusproxy_cb 2020-04-22 10:10:18 +02:00
Jakob Olsson
cacd7153c8 ws_ubusproxy: call a teardown function if client should be torn down (behavior change for lws 3.1.0) 2020-04-22 10:07:20 +02:00
Jakob Olsson
d0352acf23 ws_ubusproxy: add cb handler for LWS_CALLBACK_CLIENT_CONNECTION_ERROR 2020-04-22 10:07:20 +02:00
Jakob Olsson
11196782c7 CMake: only install uproxyd if flag selected 2020-01-09 09:59:23 +01:00
Suru Dissanaike
0c94379fd6 Add .gitlab-ci.yml 2019-12-01 20:22:04 +01:00
Jakob Olsson
1c6efa76a2 Merge branch 'rpc_q-4.4' 2019-11-22 11:22:23 +01:00
Jakob Olsson
5b7a7b32d8 remove erronous changes included from rebase 2019-11-22 11:16:38 +01:00
Jakob Olsson
16299d6e1a wsubus.impl: only stop percall_cleaner for WSUBUS_ROLE_CLIENT
Caused segfault when trying to clean remote's due to no cleaner being started
2019-11-22 11:08:12 +01:00
Jakob Olsson
bc173d2b93 only clean stale method calls 2019-11-22 11:08:12 +01:00
Jakob Olsson
458fa48aee limit rpc_call_q based on total memory in system 2019-11-22 11:07:24 +01:00
Jakob Olsson
75ac7b7dcc clean stale async requests after 5s 2019-11-22 11:06:23 +01:00
Jakob Olsson
4ac66f412c place a limit on number of active requests per client 2019-11-22 11:04:27 +01:00
Jakob Olsson
a83448ed65 allow ubus.object.* events if access to affeted object is is specified by ubusx_acl
Solve issue on master side where objects would remain after daemon went down on client side, due to ubus.object.* events being restricted
2019-10-14 12:34:20 +02:00
Sukru Senli
e77caf28c1 add LICENSE file 2019-09-02 12:05:27 +02:00
Jakob Olsson
8a2b9ba61b read arguments from json config file 2019-07-05 11:59:00 +02:00
Jakob Olsson
3283b1c897 add uproxyd to gitignore 2019-07-01 10:36:02 +02:00
Jakob Olsson
b18f65dab4 change from cpp commenting style to c 2019-07-01 10:25:36 +02:00
Jakob Olsson
ad2436a63b fix compilation warnings 2019-07-01 08:33:17 +02:00
Jakob Olsson
f1d6bff197 uproxyd: poll every 5s on failed invoke, else 30s 2019-06-04 13:44:48 +02:00
Jakob Olsson
412a9f9c2f uproxyd: always poll router.network hosts every 5s 2019-06-04 13:22:34 +02:00