From e126e668386562cd1e752cbb89cac147e155f6d5 Mon Sep 17 00:00:00 2001 From: Raptor Engineering Development Team Date: Thu, 13 Feb 2020 08:04:20 +0000 Subject: Increase bmcweb request limit to allow full firmware package uploads via Web GUI --- .../interfaces/bmcweb/0001-Increase-request-limit.patch | 15 +++++++++++++++ meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 meta-phosphor/recipes-phosphor/interfaces/bmcweb/0001-Increase-request-limit.patch diff --git a/meta-phosphor/recipes-phosphor/interfaces/bmcweb/0001-Increase-request-limit.patch b/meta-phosphor/recipes-phosphor/interfaces/bmcweb/0001-Increase-request-limit.patch new file mode 100644 index 000000000..ce710cbfd --- /dev/null +++ b/meta-phosphor/recipes-phosphor/interfaces/bmcweb/0001-Increase-request-limit.patch @@ -0,0 +1,15 @@ +diff --git a/crow/include/crow/http_connection.h b/crow/include/crow/http_connection.h +index 6f44186..6c23b63 100644 +--- a/crow/include/crow/http_connection.h ++++ b/crow/include/crow/http_connection.h +@@ -241,8 +241,8 @@ typename std::enable_if<(N > 0)>::type + static std::atomic connectionCount; + #endif + +-// request body limit size: 30M +-constexpr unsigned int httpReqBodyLimit = 1024 * 1024 * 30; ++// request body limit size: 128M ++constexpr unsigned int httpReqBodyLimit = 1024 * 1024 * 128; + + template + class Connection diff --git a/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb b/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb index 04dcc4efb..8052846e5 100644 --- a/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb +++ b/meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb @@ -12,7 +12,9 @@ GROUPMEMS_PARAM_${PN} = "-g web -a root; -g redfish -a root" LICENSE = "Apache-2.0" LIC_FILES_CHKSUM = "file://LICENCE;md5=a6a4edad4aed50f39a66d098d74b265b" -SRC_URI = "git://scm.raptorcs.com/scm/git/bmcweb;protocol=https" +SRC_URI = "git://scm.raptorcs.com/scm/git/bmcweb;protocol=https \ + file://0001-Increase-request-limit.patch \ + " PV = "1.0+git${SRCPV}" SRCREV = "4418c7f0ddcc5d3518831729a380a0b67e5d4093" -- cgit v1.2.1