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

Wrong behavior of Packet Socket Api after peer connection shutdown

    Details

    • Type: Change
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V3.0.8.0
    • Fix Version/s: V4.3.0.0
    • Labels:
      None
    • Account:
      SPC TCP_IP (SPCTCPIP)

      Description

      When a peer shutdowns transmission on a TCP connection (FIN sent) the implementation regards the socket as "HangUp" and will refuse further transmission on This socket. Additionally, the RecvFrom service is confirmed in an invalid manner.

      According to Posix definition. The following behavior is expected when a peer has shutdown transmission on a TCP connection:

      • Transmission (SendTo service) shall continue normal operation until the a connection reset is received. The latter is regarded as the event of "HangUp"
      • Reception shall not block anymore and return 0 byte without error. Thus RecvFrom Service shall be confirmed with success and length 0
      • Poll system call for that socket shall return immediately and have the SOCK_POLLIN flag set

        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: