Home > other >  Lwip TCP server connection problem
Lwip TCP server connection problem

Time:10-02

I use lwip 1.4 for tcpip protocol I wrote a TCP server, the TCP server listening to the queue for 3 sets listen (listenfd, 3), after tests found that found the TCP server can't connect after a period of time, the accept function does not return, also have no wrong, testing method is: connection, disconnect immediately, repeat this operation, a complete operation about 2 seconds, then I open some system debugging information, found that the print: tcp_listen_input: listen backlog for port 5 is my listening on port 7685768, excuse me everybody: how to deal with this problem? Because listening to the queue for 3 sets listen (listenfd, 3) set is too small?

CodePudding user response:

Oneself the top first

CodePudding user response:

Tcp_listen_input: listen backlog exceeded the for port 7685

CodePudding user response:

I also encountered such a problem, stm32 FreeRTOS and transplantation LWIP wrote a TCP server, use sockit open a client on the computer to connect to the server, found that connect only 3 times, and then connect to the server disconnected directly
  • Related