|
@@ -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();
|