[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] How to force-close a netconn from the server side?
From: |
Freddie Chopin |
Subject: |
Re: [lwip-users] How to force-close a netconn from the server side? |
Date: |
Thu, 26 Jan 2017 21:24:25 +0100 |
On Thu, 2017-01-26 at 20:02 +0100, address@hidden wrote:
> Freddie Chopin wrote:
> > But what difference in reception does it make - in both cases
> > (with/without delay) the netconns are closed and deleted anyway.
>
> What you might be mising is that the netconn can be deleted with the
> pcb
> being still alive?
I know that and in both cases the PCB stays active. But in case nr 1 it
quickly goes into TIME_WAIT state while in case nr 2 it says in
FIN_WAIT_1 forever... As if trying to establish a new netconn (which
fails at "netconn_bind()", after which it is closed and deleted)
somehow locked further transfers to/from that active PCB... I would
expect that in each case the PCB would finally go into TIME_WAIT soon,
but it does not happen without the delay of thread...
I'm just trying to understand it (;
Regards,
FCh