Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 84ba773, which had to be reverted because of problems. Fixes #719: ERROR in output_formatter.c:822 Failed to send result as json.
- Loading branch information
1 parent
49b543f
commit 42d7e71
Showing
1 changed file
with
46 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters