Skip to content

Odd stack watermark for server task #105

Description

@Barabas5532

The server task stack usage immediately at statup seems to depend on the ApiMessage size.

Printing the stack watermark at this spot:

ESP_LOGI(TAG, "Got websocket upgrade request");

reports different values depening on the size of the API message struct. This doesn't make sense, as at this point in the execution, the server has not interacted with any API messages yet. It has pointers to the input and output queues, which do not depend on the size of the message.

This function also decodes the messages later on, maybe the stack for those calls gets allocated on entry to the function?

Sprinkle some more watermark prints to work out what is going on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Nice to have features

    Type

    No type

    Projects

    Status
    Specification in progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions