Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-9633

TCP server sockets do not transition to listen state after call to listen()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Network Development Kit
    • NDK-356
    • 1.71
    • NDK_3_75_00

      The server socket in the tcpEcho example, while blocked on accept(), was showing "CLOSED". The expected state here is "LISTEN".

      In the NDK stack, the transition to the "LISTEN" state doesn't happen until the listening socket receives a SYN request from a client. The if statement (that checks for a RX'd SYN) that encloses this state change also has a comment about the socket being in a listening state, although the code hasn't actually put it into that state yet:

      Seems that the parent socket should have been put into the listening state during the listen call.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: