lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] [lwip] Three questions


From: H.J.W.
Subject: [lwip-users] [lwip] Three questions
Date: Thu, 09 Jan 2003 00:44:51 -0000

   Hi!

   I got three questions.
   
   1,When a tcp pcb in LAST_ACK state and receives a segment with correct ack 
number, before the pcb comes to CLOSED state, is it possible that there are 
some segments still in the unsent, unacked or ooseq queue?
   
   2,If it is possible,then in function "tcp_process", the pcb's state was 
changed to CLOSED before calling "tcp_pcb_purge" later, so the pending segments 
in the pcb will not be freed, because there is a condition "pcb->state != 
CLOSED" in function "tcp_pcb_purge", will it potentially cause memory leak?

   3,Normally, when a tcp pcb receives a segment with "RST" flag or purged from 
a LAST_ACK state, should it send nothing to peer? If it should, then when the 
function "tcp_input" processing the abovt situations by calling 
"tcp_pcb_remove" will potentially
send a ACK segment to peer.

   Is my understanding correct? Thanks!

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡H.J.W.
address@hidden
¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡2002-10-31


[This message was sent through the lwip discussion list.]




reply via email to

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