req->aux == null
Posted: Wed Aug 02, 2023 11:48 pm
Hi,
I am having some issues with my websocket secure server running in ESP32-S3.
When i sent a websocket message to client synchronously, the req->aux sometimes is null and sometimes in not null with the same client and same "session", ie, without the client reconnect again.
In httpd_ws.c file:
What can be the causes for req->aux to be null ?
Stack corruption ?
Do i need to increase the httpd task stack ?
Edit:
i increased the httpd task stack from 10240 to 20480 and didn't solve the problem.
i increased the lwip task stack from 3072 to 4096(with httpd task stack 20480) and didn't solve the problem too.
@ESP_cermak
I am having some issues with my websocket secure server running in ESP32-S3.
When i sent a websocket message to client synchronously, the req->aux sometimes is null and sometimes in not null with the same client and same "session", ie, without the client reconnect again.
In httpd_ws.c file:
Code: Select all
esp_err_t httpd_ws_send_frame(httpd_req_t *req, httpd_ws_frame_t *frame)
{
ESP_LOGI(TAG, "[%s] req: %p\n", __func__, req );
ESP_LOGI(TAG, "[%s] req->aux: %p\n", __func__, req->aux );
esp_err_t ret = httpd_ws_check_req(req);
if (ret != ESP_OK) {
return ret;
}
return httpd_ws_send_frame_async(req->handle, httpd_req_to_sockfd(req), frame);
}
Code: Select all
I (110924) httpd_ws: [httpd_ws_send_frame] req: 0x3fcc2c7c
I (110927) httpd_ws: [httpd_ws_send_frame] req->aux: 0x0
W (110934) httpd_ws: httpd_ws_check_req: Argument is null
Stack corruption ?
Do i need to increase the httpd task stack ?
Edit:
i increased the httpd task stack from 10240 to 20480 and didn't solve the problem.
i increased the lwip task stack from 3072 to 4096(with httpd task stack 20480) and didn't solve the problem too.
@ESP_cermak