Skip to content

TCP hangs on send almost every time... #12

@mikkeaa

Description

@mikkeaa

Hi,
just tested out the tcp-modbus pack, but it seems to hang almost every time on short data or bad data.
Seems to happen here:
xMBTCPPortSendResponse(const UCHAR *pucMBTCPFrame, USHORT usTCPLength)
-> tcpserver_send(mb_client, (void *)pucMBTCPFrame, usTCPLength, 0)
-> send(client->sock, buf, size, 0)
-> sal_sendto(socket, dataptr, size, flags, NULL, 0)
and finally never returns form here:
pf->skt_ops->sendto((int) sock->user_data, dataptr, size, flags, to, tolen)
in sal_socket.c

br. Mike

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