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

Wrong behavior of GetSockOpt for SO_ERROR

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V4.3.0.3, V4.4.0.1, V4.4.1.0, V4.5.0.0
    • Fix Version/s: V4.3.0.3, V4.4.0.3, V4.5.0.3, V4.5.1.0
    • Labels:
      None
    • Account:
      SPC TCP_IP (SPCTCPIP)

      Description

      The current implementation of GetSockOpt service for option SO_ERROR returns any previous error seen for a socket. Even errors occured during SetSockOpt or GetSockOpt services.

      According to Posix standard, SO_ERROR should only return the pending socket errors. These refer to problems occuring asynchronously during socket operation. (e.g. when a connection was lost)

      In addition, GetSockOpt SO_ERROR is expected to clear the last error, thus a subsequent call will not return an error anymore.

        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: