wifi: esp_at: sockets not cleaned up on close #43512
Labels
area: Networking
area: Wi-Fi
Wi-Fi
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Describe the bug
The
ESP_SOCK_IN_USE
flag is never cleared when a socket is closed.Therefore after
ESP_MAX_SOCKETS
(5) sockets are opened and closed,esp_socket_get
will fail to allocate another socket.Expected behavior
Closing a socket should result in a complete cleanup of all resources, allowing it to be opened again at a later time.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: