Skip to content

[N8266-18] espconn_gethostbyname returns ERR_MEM although there is more than enough free memory #198

Closed
@kriegste

Description

@kriegste

How do I debug espconn_gethostbyname? I call it to retrieve the IP of "api.openweathermap.org". Sometimes (for a few hours in a row) it returns ERR_MEM although there should be more than enough memory available. I print the amount of free heap in the log and it is always around 49264 bytes more or less.

Has anyone experienced a similar behavior?

I suspect there is a fixed buffer inside the espconn_gethostbyname function which is too small for some requests. Maybe Espressif can enlighten us.

Edit:
dns is part of lwip, so I enabled debugging there and will report back new findings.

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