diff options
| author | Your Name <you@example.com> | 2026-05-19 22:58:01 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-19 22:58:01 +0530 |
| commit | 144b48f53110d4c186f5deafd1d1365e0a140331 (patch) | |
| tree | 93e8f65285bb67e2fa09b45008926afcd020601e /main/tollgate_api.c | |
| parent | 918432128df5797045dc27407d30851a60c1a69f (diff) | |
fix: use default httpd socket settings to prevent socket exhaustionfeature/tollgate-core-component
- Remove max_open_sockets=2 override from both httpd servers (use
ESP-IDF default of 4)
- Increase LWIP_MAX_SOCKETS from 16 to 20 (matching standalone
tollgate)
- The previous custom tuning (max_open_sockets=2, keep_alive_enable=false,
linger_timeout=0) caused socket leaks by interfering with ESP-IDF's
internal session management
- Verified: 50/50 sequential requests pass, full payment flow works
Diffstat (limited to 'main/tollgate_api.c')
| -rw-r--r-- | main/tollgate_api.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/main/tollgate_api.c b/main/tollgate_api.c index 9b4612d..71056cf 100644 --- a/main/tollgate_api.c +++ b/main/tollgate_api.c | |||
| @@ -390,7 +390,6 @@ esp_err_t tollgate_api_start(void) | |||
| 390 | config.server_port = 2121; | 390 | config.server_port = 2121; |
| 391 | config.ctrl_port = 32769; | 391 | config.ctrl_port = 32769; |
| 392 | config.max_uri_handlers = 16; | 392 | config.max_uri_handlers = 16; |
| 393 | config.max_open_sockets = 2; | ||
| 394 | config.stack_size = 16384; | 393 | config.stack_size = 16384; |
| 395 | 394 | ||
| 396 | esp_err_t ret = httpd_start(&s_api_server, &config); | 395 | esp_err_t ret = httpd_start(&s_api_server, &config); |