[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Does the API "lwip_shutdown()" work fine?

From: Yafei Yan
Subject: [lwip-users] Does the API "lwip_shutdown()" work fine?
Date: Tue, 8 Apr 2014 16:33:37 +0800

Hi All,
LwIP Version in my board: LwIP1.4.0
Network way: GPRS modem dial via PPPoS.

I am facing a problem that there are a lot of FIN_WAIT_1 state TCP connections, because I broke network connection when my program called lwip_close() to close a socket descriptor. FIN_WAIT_1 state indicates that the client sends TCP FIN packet but not receive the TCP ACK packet. In my scenario, when the program has sent tcp data, it needs to shutdown the GPRS modem(so network connection is broke) due to low power consumption. It may not receive the TCP ACK packet actually. As far as I know, API "lwip_shutdown()" can shutdown a TCP connection, but it seems that it doesn't work. 

Waiting for guys' help.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]