Skip to content

Failure sending data over UDP blocking socket #2389

Closed
@jenia81

Description

@jenia81

The following scenario fails:

  1. Create UDP blocking socket
  2. Set timeout to the socket
  3. Try to receive message on UDP socket. If no message was sent, recvfrom() will fail with NSAPI_ERROR_WOULD_BLOCK error.
  4. Try to send message on UDP socket. The sendto() will fail with NSAPI_ERROR_PARAMETER error.

Attached is sample app that recreates this problem (rename it to .cpp)
udp_socket_example.txt
Should be compiled with following command:
"mbed compile -t GCC_ARM -m K64F --source ."

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