Skip to content

Pbuf leak if call close before recv complete #3974

@kyliuxing

Description

@kyliuxing

Hi,
I met a Pbuf leak issue.
when i call mbed_lwip_socket_recv(), if the parameter size is smaller than pbuf's payload(or interrupt by someone), i can't get all data in once. but if i close the socket after that immediatly, nobody will release that pbuf.
So should we call netbuf_delete() in mbed_lwip_socket_close to check it?

Thanks!

RDA shileiyu

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