Skip to content

esp_websocket_client can not send ping request when receive many data (IDFGH-16701) #927

@ThunderDai

Description

@ThunderDai

Answers checklist.

  • I have read the documentation for esp-protocols components and the issue is not addressed there.
  • I have updated my esp-protocols branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

client->ping_tick_ms = _tick_get_ms();

as we can see, when read_select != 0, will run client->ping_tick_ms = _tick_get_ms(); so ping_tick_ms always refreshed, and (_tick_get_ms() - client->ping_tick_ms > client->config->ping_interval_sec * 1000) will be false. so can not send ping request.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions