Skip to content

_messageQueu size is not reset #146

@RonKrem

Description

@RonKrem

Platform

ESP32

IDE / Tooling

PlatformIO

What happened?

My ESP32 server is sending data to the client at regular intervals using websockets. Switch away from that server to another and the AsyncEventSource _messageQueue naturally begins to fill. If it does fill (32 entries) the message:

[908712][E][AsyncEventSource.cpp:230] _queueMessage(): Event message queue overflow: discard message

begins to appear on the console for every write. However, you can reconnect to the ESP32 server again, and once the connection is made, it will empty the queue and continue on, seemingly without any problems (apart from the >32 missing entries). However, the above message continues to appear, even when the _messageQueue.size() function returns normal values.

Causing no problems, but is there any reason this message is not reset along with the queue contents?

Stack Trace

None

Minimal Reproductible Example (MRE)

Not required

I confirm that:

  • I have read the documentation.
  • I have searched for similar discussions.
  • I have searched for similar issues.
  • I have looked at the examples.
  • I have upgraded to the lasted version of ESPAsyncWebServer (and AsyncTCP for ESP32).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions