[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] TCP pcb's in ESTABLISHED hang around forever af
From: |
Adam Dunkels |
Subject: |
[lwip-users] Re: [lwip] TCP pcb's in ESTABLISHED hang around forever after close |
Date: |
Thu, 09 Jan 2003 00:00:45 -0000 |
On Fri, 2002-08-16 at 23:04, Paul Sheer wrote:
>
> >
> > > currently I am thinking of adding a new structure
> > > member pcb->die_timeout. This gives the calling app
> > > tighter control. You can set die_timeout at any time
> > > you think the tcp connection should *really* not hang
> > > around for longer than a given number of seconds.
> >
> > It is also possible to use the polling functionality. TCP will poll the
> > application with a specific interval when the connection is idle.
> >
>
> in any event I have added this new member, and i'm happy with
> the behavior. I think its the clean way to do things.
>
> generally, if you're are paranoid about hanging pcbs (and I am),
> then you want to drop any pcb that sits around for too long
> without receiving *any* packets.
That's when the polling functionality comes in handy - it calls the
application when the connection isn't receiving any packets.
/adam
--
Adam Dunkels <address@hidden>
http://www.dunkels.com/adam/
[This message was sent through the lwip discussion list.]