http_server multiple concurrent requests

HohkeiV
Posts: 7
Joined: Sun Jan 16, 2022 6:39 pm

http_server multiple concurrent requests

Postby HohkeiV » Mon Jan 24, 2022 5:41 pm

Does esp_http_server handle concurrency?

I use a default config params, such as

Code: Select all

sdkconfig:CONFIG_LWIP_MAX_SOCKETS=10
and I have this in my code:

Code: Select all

    httpd_config_t config = HTTPD_DEFAULT_CONFIG();
    config.max_open_sockets = 7;
But that doesn't seem to be sufficient to correctly handle concurrent requests. Tested by sending a multipart msg in chunks with considerable delays: only one is being served at any given moment, the others seem to be waiting in some kind of queue.

ESP_YJM
Posts: 300
Joined: Fri Feb 26, 2021 10:30 am

Re: http_server multiple concurrent requests

Postby ESP_YJM » Thu Feb 10, 2022 7:16 am

Your configuration only make your HTTP server can support multi connected clients. The HTTP server only can parse requests one-by-one.

Who is online

Users browsing this forum: No registered users and 133 guests