diff options
author | Carson Labrado <clabrado@google.com> | 2022-07-29 01:17:28 +0300 |
---|---|---|
committer | Ed Tanous <ed@tanous.net> | 2022-08-17 19:31:34 +0300 |
commit | 17dcc312e534b33c2ea18a1dbf287e30ea79cfb5 (patch) | |
tree | 1aff5a712aaae3361c37d28620bf88d73f222a2d /http/http_client.hpp | |
parent | 209aa909421a63f659ca3ad3d848f6eebf5164ff (diff) | |
download | bmcweb-17dcc312e534b33c2ea18a1dbf287e30ea79cfb5.tar.xz |
HTTP Client: Further increase httpReadBodyLimit
A continuation of 4d94272fe54c147974f86788092bbbdd950406aa,
increases the size of httpReadBodyLimit to 2^17 bytes (about 128 KB).
This is because with Redfish Aggregation we need to be able to handle
larger response sizes such as json schema files. The ComputerSystem
schema in particular is over 120 KB.
Going forward we will not be able to keep increasing the limit.
We need a better solution for handling larger response that are
larger than httpReadBodyLimit.
Tested:
Used https://gerrit.openbmc.org/c/openbmc/bmcweb/+/53310/68 to
successfully retrieve
/redfish/v1/JsonSchemas/ComputerSystem/ComputerSystem.json from a
satellite BMC.
Signed-off-by: Carson Labrado <clabrado@google.com>
Change-Id: Ida80b8fddbd1df1310d18a77ecfb44b7fdf292ef
Diffstat (limited to 'http/http_client.hpp')
-rw-r--r-- | http/http_client.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/http/http_client.hpp b/http/http_client.hpp index c9526bbaf4..905700e3ef 100644 --- a/http/http_client.hpp +++ b/http/http_client.hpp @@ -47,7 +47,7 @@ namespace crow // It is assumed that the BMC should be able to handle 4 parallel connections constexpr uint8_t maxPoolSize = 4; constexpr uint8_t maxRequestQueueSize = 50; -constexpr unsigned int httpReadBodyLimit = 16384; +constexpr unsigned int httpReadBodyLimit = 131072; constexpr unsigned int httpReadBufferSize = 4096; enum class ConnState |