Include .h file from components directory / httpd_sock_err

alitergee
Posts: 14
Joined: Wed Aug 17, 2022 1:31 pm

Include .h file from components directory / httpd_sock_err

Postby alitergee » Fri Aug 19, 2022 10:51 am

I'm working on a project in which HTTP Server is created and is started on the wifi event WIFI_EVENT_AP_STACONNECTED.
HTTP server sends response to the webpage when a request comes (Webpage consists of more than 35 requests but only one request is called at a time). But after sometime

Code: Select all

httpd_txrx: httpd_sock_err: error in send : 11
can be seen in logs and HTTP stops accepting reuquests (http server freezes imo).
So to fix this I copied the entire esp_http_server directory into my components directory and edited (added flags) in httpd_txrx.c file (which I think is a bad practice but I had to do something).
Now I need to use that flag in my main file in main directory. How do I include

Code: Select all

esp_httpd_priv.h
(full path : myproject/components/esp_http_server/src/esp_httpd_priv.h) ?
I'm new ESP32 and ESP-IDF.
Also is there any other fix to the socket error that I'm getting ?

Please Help. Thank you.

Who is online

Users browsing this forum: Google [Bot] and 137 guests