ubusd: add per-client tx queue limit
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Thu, 25 Mar 2021 21:45:02 +0000 (22:45 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 3 Jun 2021 08:01:28 +0000 (10:01 +0200)
commit8e66b5b1b1c4891d7283aa7662b13939a0b3fc9b
tree4924eccfad5d6e97d599d1483d565dbfc79937b0
parentef9950cc422f2fa9365c6cd57a1408f7f234bc20
ubusd: add per-client tx queue limit

No new message can be enqueued if this brings the total queue length of
that client over UBUS_CLIENT_MAX_TXQ_LEN.

Set UBUS_CLIENT_MAX_TXQ_LEN to UBUS_MAX_MSGLEN, i.e. 1MB. This limit
should be plenty for any practical use case.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit c736e47f3e2ad8f895306e9917f7bd6143fd29d9)
ubusd.c
ubusd.h
ubusd_main.c