|
|
@@ -19,6 +19,8 @@
|
|
|
extern "C" {
|
|
|
#endif
|
|
|
|
|
|
+#define ESP_HTTPD_DEF_CTRL_PORT (32768) /*!< HTTP Server control socket port*/
|
|
|
+
|
|
|
/*
|
|
|
note: esp_https_server.h includes a customized copy of this
|
|
|
initializer that should be kept in sync
|
|
|
@@ -28,7 +30,7 @@ initializer that should be kept in sync
|
|
|
.stack_size = 4096, \
|
|
|
.core_id = tskNO_AFFINITY, \
|
|
|
.server_port = 80, \
|
|
|
- .ctrl_port = 32768, \
|
|
|
+ .ctrl_port = ESP_HTTPD_DEF_CTRL_PORT, \
|
|
|
.max_open_sockets = 7, \
|
|
|
.max_uri_handlers = 8, \
|
|
|
.max_resp_headers = 8, \
|
|
|
@@ -153,7 +155,7 @@ typedef struct httpd_config {
|
|
|
*/
|
|
|
uint16_t ctrl_port;
|
|
|
|
|
|
- uint16_t max_open_sockets; /*!< Max number of sockets/clients connected at any time*/
|
|
|
+ uint16_t max_open_sockets; /*!< Max number of sockets/clients connected at any time (3 sockets are reserved for internal working of the HTTP server) */
|
|
|
uint16_t max_uri_handlers; /*!< Maximum allowed uri handlers */
|
|
|
uint16_t max_resp_headers; /*!< Maximum allowed additional headers in HTTP response */
|
|
|
uint16_t backlog_conn; /*!< Number of backlog connections */
|