esp-idf: [BUG] send() sometimes gets stuck ? (IDFGH-461)
As i have tested tcp client example i ran it for a couple of hours until send() got stuck and didn’t return any value
I’m calling it this way : send(sock, data_to_send, strlen(data_to_send), 0);
This bug is repreducable
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 21 (2 by maintainers)
yes , Enable this option, test it, thank you
hi @mikisch81 I will use your code to reproduce this problem. Thank you for your feedback
Hello, I am encountering a similar issue.
I am running a WROVER device - ESP32D0WDQ5 (revision 1), ESP-IDF official version 3.3.1.
When sending a large data buffer (> 1MB) from PSRAM every 30 seconds to a server which resides on an UBUNTU machine I get this behavior after a couple of iterations.
I also used the tcp-client example, modified for this scenario.
This is the modified
tcp_client_task()function:I use the default configuration, with only these changes in
sdkconfig.defaults:In Wireshark on the server-side I can see that the device sent an out-of-order packet (packet 15110) which the server responds with a duplicate ack for the needed seq.num (packet 15111), then it is stuck for 20 minutes until the retransmission actually happen (packet 22681), but by this time the operation fails with NO ROUTE TO HOST error (I guess the routing table entry has aged by this time).
Logs from device: