[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #44092] tcp_pcb hangs in FIN_WAIT_1 after lwip_close c
From: |
Navaneeth Y V |
Subject: |
[lwip-devel] [bug #44092] tcp_pcb hangs in FIN_WAIT_1 after lwip_close call |
Date: |
Thu, 31 Aug 2017 01:09:04 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36 |
Follow-up Comment #7, bug #44092 (project lwip):
Hi Simon,
Thank you for pointing me to bug #31487. When I was going through the code I
some how had missed the part that TCP PCB moved to FIN_WAIT_1 will still be in
tcp active list. But answer given by Kieran helped me find the missing piece.
PCB will still be in the Active list. When the code for slow timer kicks in we
go through the active list and try to resend unacked segments. During this
the RTO increases significantly over time (with each retransmissions) and with
expiry of every RTO we make a note of it by incrementing nrtx, (Number of
retransmissions I think). When it hits TCP_MAXRTX (12) the PCB finally gets
freed. This is a pretty long interval actually. Hence I mistook it for being
stuck.
Thank you for the help again.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?44092>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/