Netconn drain issue
Posted: Tue Jun 16, 2020 10:43 am
Hi,
I've setup my ESP32 as a TCP server, receiving incoming data from a client. If I open the socket using a TCP/IP debug tool such as the Hercules Utility and attempt to transfer some bytes of data to the ESP32, then there is no issue.
When using a custom C# TCP Client to transfer data, if the connection is closed, the Client sends a TCP RST packet to the ESP32. This causes the below assertion, resetting the device.
I've tried this out on both the v4.1 and master branches with the same issue occurring in both. What is the cause of this?
I'm attaching a snapshot of the error (Capture.png) and a snapshot of the Wireshark logs when the crash occurs (Capture2.png). The ESP32 has IP address 192.168.0.23.
I've setup my ESP32 as a TCP server, receiving incoming data from a client. If I open the socket using a TCP/IP debug tool such as the Hercules Utility and attempt to transfer some bytes of data to the ESP32, then there is no issue.
When using a custom C# TCP Client to transfer data, if the connection is closed, the Client sends a TCP RST packet to the ESP32. This causes the below assertion, resetting the device.
Code: Select all
assertion "netconn marked closed" failed: file "C:/Users/mpulis/Desktop/Projects/ESP32/IDF4/msys32/home/esp-idf/components/lwip/lwip/src/api/api_msg.c", line 860, function: netconn_drain
I'm attaching a snapshot of the error (Capture.png) and a snapshot of the Wireshark logs when the crash occurs (Capture2.png). The ESP32 has IP address 192.168.0.23.