We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c603513 commit 0052be6Copy full SHA for 0052be6
src/sensesp/net/http_server.h
@@ -13,6 +13,10 @@
13
#include "sensesp/system/configurable.h"
14
#include "sensesp_base_app.h"
15
16
+#ifndef HTTP_SERVER_STACK_SIZE
17
+#define HTTP_SERVER_STACK_SIZE 8192
18
+#endif
19
+
20
namespace sensesp {
21
22
#ifndef HTTP_DEFAULT_PORT
@@ -60,7 +64,7 @@ class HTTPServer : public Configurable {
60
64
: config_(HTTPD_DEFAULT_CONFIG()),
61
65
Configurable(config_path) {
62
66
config_.server_port = port;
63
- config_.stack_size = 4096;
67
+ config_.stack_size = HTTP_SERVER_STACK_SIZE;
68
config_.max_uri_handlers = 20;
69
config_.uri_match_fn = httpd_uri_match_wildcard;
70
String auth_realm_ = "Login required for " + SensESPBaseApp::get_hostname();
0 commit comments