[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #10370] Raw API: Callback for received FIN to confirm
From: |
Simon Goldschmidt |
Subject: |
[lwip-devel] [task #10370] Raw API: Callback for received FIN to confirm connection is closed |
Date: |
Wed, 16 Jun 2010 09:51:04 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 |
Follow-up Comment #7, task #10370 (project lwip):
> [..]but the abort callback my mislead the application
Do you mean the 'err' callback? If so, just set it back to NULL: lwIP's TCP
is currently designed to always call the callbacks as long as the pcb lives,
no matter which state it is in (e.g. when the pcb is removed from TIME_WAIT
because the stack ran out of new pcbs, the err callback will be called, too).
Besides, for a correct implementation of SO_LINGER, the err callback *must*
be called after tcp_close if a RST is received.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?10370>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/