Uploaded image for project: 'LWIP based TCP/IP'
  1. LWIP based TCP/IP
  2. PSLWIP-22

Firmware dead lock when handling Socket Api Accept Service

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V3.0.20.0
    • Fix Version/s: V3.0.21.0
    • Labels:
      None
    • Account:
      SPC TCP_IP (SPCTCPIP)

      Description

      When the Socket Api Accept service is used a firmware deadlock might occur under high load scenarios. In order to reproduce the issue, the backlog > 1 must be used.
      Another problem occurs when an incomming connection is closed by the peer before the Accept Service has been used. In that case the connection socket will not be reported as closed an RecvFrom Service will not return with an error as expected.
      Workarounds:

      • For problem (1) setting backlog to 1 for an server socket will solve the problem
      • For problem (2) application might implement a timeout for RecvFrom Service Confirmation and close the socket using Socket Close Service

        Attachments

          Issue Links

            Expenses

              Activity

                Status Description

                  People

                  • Reporter:
                    AMesser Andreas Messer
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    0 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: