Netconn drain issue

mpulis
Posts: 57
Joined: Mon Aug 07, 2017 7:53 am

Netconn drain issue

Postby mpulis » 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.

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'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.
Attachments
Capture2.PNG
Capture2.PNG (76.35 KiB) Viewed 1940 times
Capture.PNG
Capture.PNG (46.64 KiB) Viewed 1940 times

Who is online

Users browsing this forum: No registered users and 88 guests