[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-devel] Closing connections with rawapi
From: |
Simon Goldschmidt |
Subject: |
Re: [lwip-devel] Closing connections with rawapi |
Date: |
Mon, 5 May 2014 10:22:33 +0200 |
> From source inspection, calling tcp_close() on a pcb that failed
> tcp_connect() should be ok, since pcb remains in CLOSED state and
> tcp_close() just drops the pcb from the bound list and frees the pcb.
What I get from reading these mails is that Per says that tcp_close() does
*not* remove a CLOSED pcb from the bound list. If so, this would be a bug, but
from reading the sources, it actually *does* remove it:
>>> snip <<<
if (pcb->local_port != 0) {
TCP_RMV(&tcp_bound_pcbs, pcb);
}
<<< snap <<<
Per, why does this not work for you? Can you debug it to sort this out?
Simon
Re: [lwip-devel] Closing connections with rawapi, Sergio R. Caprile, 2014/05/02
Re: [lwip-devel] Closing connections with rawapi, Sergio R. Caprile, 2014/05/05