lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] Freeing all pbufs on tcp_abort()


From: Kieran Mansley
Subject: RE: [lwip-users] Freeing all pbufs on tcp_abort()
Date: Thu, 03 Sep 2009 16:50:26 +0100

On Thu, 2009-09-03 at 11:46 -0400, Bill Auerbach wrote:
> >tcp_abort() should, I think, release all the pbufs in use by that
> >connection.  I guess if you're in the middle of receiving a stream of
> >data you might continue to get packets (which will consume pbufs for a
> >short while until they are dropped) until the other end spots your reset
> >and stops sending to you.
> 
> A problem I had with trying to use tcp_abort to do the same thing as the OP
> in that the listening pcb stopped listening.  So a reconnect from the peer
> was ignored.  I too wanted to abort the connection but not lose the ability
> to reconnect to the device.

If you tcp_abort() the data PCB that you get once the connection is
established it should not affect the listening PCB.  If it does, that's
a bug.

Kieran





reply via email to

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