E (9305) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54

tharunjoy
Posts: 20
Joined: Wed Dec 12, 2018 5:30 am

E (9305) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54

Postby tharunjoy » Mon Jun 07, 2021 7:16 am

I am using the following for the development.
Module or chip used: [ESP32-WROOM-32]
IDF version: v3.3.3
Build System: make
Compiler version: 1.22.0-80-g6c4433a5

Example working: simple_ota_example
Issue: OTA crash

I am trying to do OTA from an HTTPS server. I am able to do OTA successfully if there is no interruption.
The crash occurs when I turn OFF WiFi or HTTPS Server in between OTA updates.

Steps to reproduce
Run OTA update
In between the upgrade..ie.. 10 or 20 percent complete, turn OFF WiFi/Stop Server

App getting crash, I am not able to exit from OTA.

Code: Select all

I (1645) wifi:AP's beacon interval = 102400 us, DTIM period = 1
I (2295) event: sta ip: 192.168.1.102, mask: 255.255.255.0, gw: 192.168.1.1
I (2295) simple_ota_example: Starting OTA example
I (2295) simple_ota_example: Connected to WiFi network! Attempting to connect to server...
I (5195) esp_https_ota: Starting OTA...
I (5195) esp_https_ota: Writing to partition subtype 16 at offset 0x110000
E (8415) esp-tls: read error :-80:
E (8415) TRANS_SSL: esp_tls_conn_read error, errno=Connection reset by peer
W (8415) HTTP_CLIENT: esp_transport_read returned:-80 and errno:104
E (8425) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8425) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8435) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8445) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8455) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8465) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8475) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8485) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8495) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8505) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8515) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8525) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8535) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8545) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8545) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8555) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8565) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8575) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8585) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8595) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8605) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8615) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8625) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8635) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8645) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8655) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8655) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8665) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8675) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8685) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8695) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8705) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8715) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8725) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8735) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8745) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8755) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8765) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8775) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8775) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8785) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8795) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8805) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8815) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8825) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8835) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8845) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8855) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8865) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8875) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
E (8885) TRANS_SSL: ssl_poll_read select error 104, errno = Connection reset by peer, fd = 54
Thanks for the support in advance.

Who is online

Users browsing this forum: No registered users and 48 guests