Skip to content

EthernetClient BUG #93

Closed
Closed

Description

@TingRuazhang

void EthernetClient::stop()
{
if (_tcp_client == NULL) {
return;
}

// close tcp connection if not closed yet
if (status() != TCP_CLOSING) {
tcp_connection_close(_tcp_client->pcb, _tcp_client);
}
mem_free(_tcp_client);
}

In this function, memefree (_tcp_cient);, After release, the _tcp_cient was not set to NULL, which caused an exception when TCPClient was reconnected. After adding it, it worked normally. Please fix this issue

Activity

  1. fpistm commented on Feb 7, 2025

    @fpistm
    Member

    Hi @q1098401179
    feel free to provide a PR it's a community project.

  2. linked a pull request that will close this issueUpdate EthernetClient.cpp #94on Feb 7, 2025
  3. added this to the 1.4.1/1.5.0 milestone on Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions