Page 1 of 1

Esp32S3 : httpd_txrx: httpd_sock_err: error in recv : 104. How to get the error code ?

Posted: Tue Oct 07, 2025 7:49 am
by ThomasESP32
Good morning,


I am working with an Esp32S3.
In my program, the chip is started as a WIFI access point and is running a web server that can be accessed from a computer
using a particular URL.

I am using this webserver in order to send file from a computer to the Esp32S3 using an application.
When I close the application during the filetransfer, I get the error :

httpd_txrx: httpd_sock_err: error in recv : 104

Is there a way to catch the error code from my program in order to execute a particular process in this case ?
Thank you for your help on this subject,

best regards,
Thomas TRUILHE

Re: Esp32S3 : httpd_txrx: httpd_sock_err: error in recv : 104. How to get the error code ?

Posted: Tue Oct 07, 2025 8:21 am
by AloePacci
This should be a warning, rather than an error (connection reset by peer)

If it were an error, you could use a panic handler https://docs.espressif.com/projects/esp ... dling.html

You can check events in "esp_wifi_get_event_mask(uint32_t *mask)" and handle them with the system event handler.
https://docs.espressif.com/projects/esp ... dling.html

However if the error is in the ws interface you created, you can handle them there.

I think this is a good start for you

Re: Esp32S3 : httpd_txrx: httpd_sock_err: error in recv : 104. How to get the error code ?

Posted: Tue Oct 07, 2025 9:16 am
by ThomasESP32
So I unerstand that this is not an error but just a warning
however, do you think it is possible to handle it using an event handler or something like that ?

Best regards,
Thomas TRUILHE

Re: Esp32S3 : httpd_txrx: httpd_sock_err: error in recv : 104. How to get the error code ?

Posted: Wed Oct 08, 2025 9:47 am
by MicroController
How do you read the (POST?) data from the HTTP connection?