Просмотр исходного кода

Limit HTTP server to five open client sockets

SybexXx 23 часов назад
Родитель
Сommit
9efefdece9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      code/main/server_main.cpp

+ 1 - 1
code/main/server_main.cpp

@@ -462,7 +462,7 @@ httpd_handle_t start_webserver(void)
     config.core_id = 1; // previously -> 2023-01-02: 0, 2022-12-11: tskNO_AFFINITY;
     config.server_port = 80;
     config.ctrl_port = 32768;
-    config.max_open_sockets = 7; // Tested: allow more simultaneous Web-UI connections
+    config.max_open_sockets = 5; // Conservative HTTP client limit; lwIP socket pool configured separately
     config.max_uri_handlers = 41; // Make sure this fits all URI handlers. Memory usage in bytes: 6*max_uri_handlers
     config.max_resp_headers = 8;                        
     config.backlog_conn = 5;