Browse Source

KBF-41 increase stack size for httpd with SSL

Bence Balint 2 years ago
parent
commit
b90b48ebd0
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/http/server.cpp

+ 3 - 1
src/http/server.cpp

@@ -24,7 +24,7 @@ http::Server &http::Server::start(int port) {
     handle = nullptr;
     httpd_config_t config = HTTPD_DEFAULT_CONFIG();
     config.server_port = port;
-    config.stack_size  = 16384;
+    config.stack_size  = 16384; // TODO use Kconfig
     CHECK(httpd_start(&handle, &config));
 
     registerUriHandlers();
@@ -49,6 +49,8 @@ http::Server &http::Server::startSSL(const unsigned char *cert_start, const unsi
     conf.prvtkey_pem = key_start;
     conf.prvtkey_len = key_end - key_start;
 
+    conf.httpd.stack_size  = 16384; // TODO use Kconfig
+
     CHECK(httpd_ssl_start(&handle, &conf));
 
     registerUriHandlers();