fix(esp_http_server): prevent concurrent access to socket used in async http requests

This commit is contained in:
Friedolin Gröger
2024-07-16 10:46:50 +02:00
committed by David Cermak
parent 4951df6fcc
commit 83216d64e4
3 changed files with 11 additions and 3 deletions

View File

@@ -247,6 +247,11 @@ static int httpd_process_session(struct sock_db *session, void *context)
return 1;
}
// session is busy in an async task, do not process here.
if (session->for_async_req) {
return 1;
}
process_session_context_t *ctx = (process_session_context_t *)context;
int fd = session->fd;