소스 검색

Limit HTTP server to five open client sockets

SybexXx 22 시간 전
부모
커밋
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;