bareos: master 42d7e719
|joergs||joergs||master||2017-06-30 18:18:13||master 49b543f7||Pending|
|Affected Issues||0000719: ERROR in output_formatter.c:822 Failed to send result as json.|
|Changeset||bsock: allow sending long messages
While API modes 0 and 1 normally send data as small chunks (often line
based), API mode 2 (JSON) collects the result of a bcommand, forms a
JSON object and sends it. This can result in large messages.
The maximum valid size of the result of a bcommand used to be 4 MB.
The size of "llist jobs limit=1" is already close to 1 KB.
So before this patch, "llist jobs" silently fails if the Bareos
Director returns more than 5000 jobs.
With this patch, the maximum length of a bcommand result is int32 (2GB).
This is a modified version of commit 84ba7730bb4799f0793b2c0ee8572c5c75970ffe,
which had to be reverted because of problems.
Fixes 0000719: ERROR in output_formatter.c:822 Failed to send result as json.
|mod - src/lib/bsock_tcp.c||Diff File|