Uploaded image for project: 'EtherNet/IP Core V2'
  1. EtherNet/IP Core V2
  2. PSEIPCORE-170

Socket structure of encapsulation task might be cleaned up before CLOSE_REQ returns

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V2.4.0.5
    • Fix Version/s: V2.4.0.6, V2.4.2.0, V2.5.0.0
    • Labels:
      None
    • Account:
      SPC EthernetIp Core (SPCETHERNET)

      Description

      Each socket strucuture inside the encapsulation task has its own static packet that is used to send a close request to the tcp stack. In case it is sent to the tcp stack the socket state transitions to SOCK_WAITCLOSE to indicate that it's waiting for the close confirmation now.

      However, when being in that state and a RECEIVE_STOP_IND is received, the socket structure is cleaned up without waiting for the close confirmation. During that cleanup also the static packet is zeroed (which is actually still in the hand of the tcp stack at that time). In the end the tcp stack cannot properly return the close request packet, since its zeroed, which brings the TCP stack to a fatal error state that can only be left by a hard reset.

        Attachments

          Issue Links

            Expenses

              Activity

                Status Description

                  People

                  • Reporter:
                    KMichel Kai Michel
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    0 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: