[Top][All Lists]

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

Re: [lwip-devel] Closing connections with rawapi

From: Per Knytt
Subject: Re: [lwip-devel] Closing connections with rawapi
Date: Mon, 05 May 2014 10:39:50 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

"Simon Goldschmidt" <address@hidden> writes:

>> 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:

No, tcp_close() does that but tcp_abort() doesn't. Calling tcp_abort()
to cleanup a bound, non-connected socket causes memory corruption. At
least in 1.4.1.

Per Knytt

reply via email to

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