Commit graph

23 commits

Author SHA1 Message Date
Daniel Salzman
c2a6056b56 src: relicense to GPL-2.0-or-later 2025-03-24 09:53:50 +01:00
Daniel Salzman
000c5276f8 ctl: rename KNOT_CTL_IDX_FILTER to KNOT_CTL_IDX_FILTERS 2024-09-24 17:10:22 +02:00
Libor Peltan
4468af58dd ctl: implemented multi-threaded (mutexted) CTL handling 2024-09-01 18:35:17 +02:00
Daniel Salzman
1e9fbcb8d1 conf: add control.backlog configuration option 2024-04-19 14:21:21 +02:00
Daniel Salzman
33142cb9d4 control: set 0220 UNIX socket file mode 2023-01-04 08:48:43 +01:00
Daniel Salzman
e987372a0a server: set 0222 mode to STREAM UNIX listen socket files 2023-01-04 08:47:45 +01:00
Daniel Salzman
52433e7d23 libknot: increase default control timeout from 5 to 30 seconds 2022-07-26 09:41:50 +02:00
Daniel Salzman
e6426297b1 libknot/ctl: change accept poll() timeout from infinity to 5 seconds
This helps the server to process pending operations, which were triggered
by a signal before the poll execution in knot_ctl_accept().
2022-04-28 10:02:17 +02:00
Josh Soref
43db89b880 spelling
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
2021-11-24 12:55:47 +01:00
Daniel Salzman
ecf9156e15 net/requestor: add support for TFO 2021-03-15 13:21:50 +01:00
Daniel Salzman
d338704f74 ctl: increase listen backlog to 5
When a control client reaches its timeout or is interrupted, the connection isn't
closed by the server immediately. So another connection attempts can be forbiden
with the error "OS lacked necessary resources". By increasing the listen backlog
such a situation is less probable to happen.
2020-04-25 19:35:14 +02:00
Daniel Salzman
f9a87c22c3 contrib: replace 'struct sockaddr' with 'struct sockaddr_storage' where reasonable 2019-10-05 21:59:13 +02:00
Daniel Salzman
26c5a1ce44 control: replace memset with memzero to ensure the function call is not optimized out 2019-09-16 15:59:14 +02:00
David Vašek
e3d311d8ed coding style improvements - copyright notice 2019-07-04 15:16:43 +02:00
Daniel Kahn Gillmor
846bb431d2 use https://www.gnu.org instead of http://www.gnu.org
www.gnu.org has offered https for years now.
2018-08-29 09:45:57 -04:00
Daniel Salzman
32f84cf899 conf: fix creeping memory consumption upon reload 2018-05-21 14:08:37 +02:00
Filip Široký
db0a678b14 doc: enhance doxygen documentation 2017-12-21 13:59:16 +01:00
Filip Široký
68352fc969 doxygen: fix errors + code cleanup 2017-10-03 14:35:59 +02:00
Libor Peltan
0c6a5fbce4 knotc: added filtered zone cmd; removed repetitive code 2017-05-25 08:55:34 +02:00
Vladimír Čunát
9badca9828 wire_ctx: refactor to reduce duplication and UB
It was using misaligned pointers which causes undefined behavior,
at least theoretically.

API change: data in wire_ctx_read() is now passed as void* instead of
uint8_t*, and it zeroes the data on error.
2017-01-04 14:26:17 +01:00
Jan Vcelak
09991e75ce server: sockaddr instead of sockaddr_storage for const params 2016-06-27 21:20:40 +02:00
klemens
5b827cb3b4 trivial spelling fixes, as found by misspell_fixer 2016-05-02 10:08:33 +02:00
Daniel Salzman
e47e90488a libknot: add server control interface 2016-03-24 14:30:19 +01:00