|
From: | Noam weissman |
Subject: | Re: [lwip-users] After tcp_close PCB is still in active pcb inspecific situation. |
Date: | Mon, 13 May 2013 08:55:07 +0300 |
Hi, Yes it make sense adding a time out mechanism in the poll call back. You define a time out value/variable and update it in every poll call. Every time you get some data or send some data reset that time out counter. If you reach the time out value you close the connection. BR, Noam. From: address@hidden [mailto:address@hidden On Behalf Of CHASE CHENG I found that the connection would be stayed in FIN-WAIT1 state as the link is plugged out, and it seems no way to take the connection out. Is it make sense to add a judgement in slowtmr to remove the connection from active PCB? otherwise the connection will waste memory space. regards, Chase
************************************************************************************ This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. ************************************************************************************ |
[Prev in Thread] | Current Thread | [Next in Thread] |