mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-04 05:04:33 +02:00
Merge branch 'bugfix/http_server_sess_count' into 'master'
http_server: Increment active socket count for SSL session Closes IDFGH-8188 See merge request espressif/esp-idf!19991
This commit is contained in:
@@ -204,6 +204,9 @@ esp_err_t httpd_sess_new(struct httpd_data *hd, int newfd)
|
|||||||
session->send_fn = httpd_default_send;
|
session->send_fn = httpd_default_send;
|
||||||
session->recv_fn = httpd_default_recv;
|
session->recv_fn = httpd_default_recv;
|
||||||
|
|
||||||
|
// increment number of sessions
|
||||||
|
hd->hd_sd_active_count++;
|
||||||
|
|
||||||
// Call user-defined session opening function
|
// Call user-defined session opening function
|
||||||
if (hd->config.open_fn) {
|
if (hd->config.open_fn) {
|
||||||
esp_err_t ret = hd->config.open_fn(hd, session->fd);
|
esp_err_t ret = hd->config.open_fn(hd, session->fd);
|
||||||
@@ -214,10 +217,8 @@ esp_err_t httpd_sess_new(struct httpd_data *hd, int newfd)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// increment number of sessions
|
|
||||||
hd->hd_sd_active_count++;
|
|
||||||
ESP_LOGD(TAG, LOG_FMT("active sockets: %d"), hd->hd_sd_active_count);
|
|
||||||
|
|
||||||
|
ESP_LOGD(TAG, LOG_FMT("active sockets: %d"), hd->hd_sd_active_count);
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user