Closed lyh20190329 closed 2 years ago
sometime crash like this:
Stack dump detected
Core 0 register dump:
MEPC : 0x4204b066 RA : 0x4204d0a8 SP : 0x3fcbe680 GP : 0x3fcb0490
0x4204b066: tcp_recv_null at /home/ubuntu/work/esp-idf/components/lwip/lwip/src/core/tcp.c:1692
0x4204d0a8: tcp_process at /home/ubuntu/work/esp-idf/components/lwip/lwip/src/core/tcp_in.c:986
TP : 0x3fc90728 T0 : 0x400586f0 T1 : 0xffffffe0 T2 : 0xb9e9923d
S0/FP : 0x00007970 S1 : 0x3fcc9134 A0 : 0xffffff53 A1 : 0xffffff53
A2 : 0x00007970 A3 : 0x458a9dc1 A4 : 0x458a9e6e A5 : 0xfbce4630
A6 : 0x00000008 A7 : 0x00000010 S2 : 0x3fccdbee S3 : 0x3fcbf6f4
S4 : 0x00000000 S5 : 0x00000014 S6 : 0x00000000 S7 : 0x00000000
S8 : 0x00000000 S9 : 0x00000000 S10 : 0x00000000 S11 : 0x00000000
T3 : 0x0000000a T4 : 0x00000000 T5 : 0x0000000a T6 : 0x7b02a8
The attachment is the websocket interface I used esp_websocket_client.zip
Answers checklist.
IDF version.
v5.0-beta1-473-geea8629fa1
Operating System used.
Linux
How did you build your project?
Command line with CMake
If you are using Windows, please specify command line type.
CMD
Development Kit.
esp32c2
Power Supply used.
External 3.3V
What is the expected behavior?
Call the esp_websocket_client interface to establish a websocket connection, and data can be sent and received normally.
What is the actual behavior?
Call the esp_websocket_client interface to establish a websocket connection, and restart after sending and receiving data for a period of time
Steps to reproduce.
Step:
static void websocket_app_start(void *unused) {
} esp_websocket_client_config_t websocket_cfg = {}; websocket_cfg.uri = ws_url; websocket_cfg.pingpong_timeout_sec = 10; websocket_cfg.ping_interval_sec = 30; websocket_cfg.disable_auto_reconnect = false; websocket_cfg.buffer_size = 2048; websocket_cfg.network_timeout_ms=6000;///ms websocket_cfg.reconnect_timeout_ms=6000;////ms websocket_cfg.keep_alive_enable = true; websocket_cfg.keep_alive_idle=3;///ms websocket_cfg.keep_alive_interval=3;///ms
client = esp_websocket_client_init(&websocket_cfg);
esp_websocket_register_events(client, WEBSOCKET_EVENT_ANY, websocket_event_handler, (void *)client); esp_websocket_client_start(client); vTaskDelete(NULL); }
Step
Step ...
Debug Logs.
More Information.
No response