Skip to content

TCPSocket connection close by remote end reported as device error #2554

@infinnovation-dev

Description

@infinnovation-dev

Using a test program (an echo server), I connect from a Linux PC and send a stream of data:

nc $K64F_IP_ADDRESS 7 < /dev/zero > /dev/null

and then kill the nc process with a Ctrl-C

The board gets an error code -3011 NSAPI_ERROR_DEVICE_ERROR "failure interfacing with the network procesor" (sic). This can come either from the recv() call or from the send() call - I guess depending on the timing of the event relative to the send/recv loop.

I would expect either a 0 return from recv() to indicate end of stream; or some other error from send(), maybe NSAPI_ERROR_NO_CONNECTION.

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