summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2020-02-13 08:04:20 +0000
committerRaptor Engineering Development Team <support@raptorengineering.com>2020-02-13 08:04:20 +0000
commite126e668386562cd1e752cbb89cac147e155f6d5 (patch)
tree157e7e8d4fa224455dc86dafdb241d71fd6c4580
parent00ce87fd4029584e916da4cf35ba938780c86a90 (diff)
downloadtalos-openbmc-e126e668386562cd1e752cbb89cac147e155f6d5.tar.gz
talos-openbmc-e126e668386562cd1e752cbb89cac147e155f6d5.zip
Increase bmcweb request limit to allow full firmware package uploads via Web GUI
-rw-r--r--meta-phosphor/recipes-phosphor/interfaces/bmcweb/0001-Increase-request-limit.patch15
-rw-r--r--meta-phosphor/recipes-phosphor/interfaces/bmcweb_git.bb4
2 files changed, 18 insertions, 1 deletions
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<int> 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 <typename Adaptor, typename Handler, typename... Middlewares>
+ 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"
OpenPOWER on IntegriCloud