[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [lwip-users] Freeing all pbufs on tcp_abort()
From: |
Bill Auerbach |
Subject: |
RE: [lwip-users] Freeing all pbufs on tcp_abort() |
Date: |
Thu, 3 Sep 2009 11:46:38 -0400 |
>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.
Bill