You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When defined open_fn function not return ESP_OK http server enter in a infinite loop.
The problem is in components/esp_http_server/src/httpd_sess.c.
Replacing the same file from ESP-IDF works correct.
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
Error in http server when open_fn fail. ESP-IDF is ok
Error in http server when open_fn fail. ESP-IDF is ok (GIT8266O-407)
Mar 1, 2020
When defined open_fn function not return ESP_OK http server enter in a infinite loop.
The problem is in components/esp_http_server/src/httpd_sess.c.
Replacing the same file from ESP-IDF works correct.
differences:
--- components/esp_http_server/src/httpd_sess.c 2020-02-29 22:00:11.650552816 -0300
+++ components/esp_http_server/src/httpd_sess.c.orig 2020-02-20 00:14:35.808278894 -0300
@@ -19,6 +19,7 @@
#include <esp_http_server.h>
#include "esp_httpd_priv.h"
+#include <sys/fcntl.h>
static const char *TAG = "httpd_sess";
@@ -77,11 +78,7 @@
/* Call user-defined session opening function */
if (hd->config.open_fn) {
esp_err_t ret = hd->config.open_fn(hd, hd->hd_sd[i].fd);
@@ -196,10 +193,10 @@
/** Check if a FD is valid */
static int fd_is_valid(int fd)
{
}
-static inline uint64_t httpd_sess_get_lru_counter(void)
+static inline uint64_t httpd_sess_get_lru_counter()
{
static uint64_t lru_counter = 0;
return lru_counter++;
@@ -378,10 +375,6 @@
{
struct sock_db *sock_db = (struct sock_db *)arg;
if (sock_db) {
The text was updated successfully, but these errors were encountered: