mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-16 06:54:22 +00:00
fix(esp_http_server): prevent concurrent access to socket used in async http requests
This commit is contained in:

committed by
David Cermak

parent
4951df6fcc
commit
83216d64e4
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user