Skip to content

Returns message too long error, when receiving 10000 bytes for udp socket. #4113

@aiyolo

Description

@aiyolo

I created a udp socket, and prepared to receive data from peer socket, and the peer socket will send 10000 bytes to me.
here, I found that when only receiving 1000 bytes of 10000, whill throw error message too long.

char buf[1000]
_socket.receiveBytes(buffer, sizeof(buffer));

how to deal with it.

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