[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Half-Open detecting
From: |
Steven Woody |
Subject: |
[lwip-users] Half-Open detecting |
Date: |
Thu, 21 Apr 2011 17:15:51 +0800 |
Hi,
As a TCP server, I want to detect half-open state that may fall in
either of the following cases:
1. Established connection broken somehow, but the peer still send
segments to me, in this case, there will not be a pcb on my side
matches.
2. Peer crashed somehow, but I still in 'established' state, then the
peer send a SYN to me. In this case, still no a connection on my side
could match.
In both cases above, I hope I can be indicated and go re-listen. In
lwIP, how can I do this without hacking code in tcp_input()?
Best Regards,
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 (address@hidden)