[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] BasicWeb.c behavior
From: |
Jonathan Larmour |
Subject: |
Re: [lwip-users] BasicWeb.c behavior |
Date: |
Fri, 08 Feb 2008 20:03:02 +0000 |
User-agent: |
Thunderbird 1.5.0.12 (X11/20070530) |
Bill Auerbach wrote:
>
> In tcp_alloc, if memp_malloc returns NULL then tcp_kill_timewait is used to
> kill an old PCB. I would think the error should be reversed when the next
> memp_malloc succeeds, or, we need a memp_malloc_try which doesn't count the
> error on a fail, but allocates one if it can.
I'm not sure what you mean here. The current code looks ok to me? It
retries the memp_malloc straight after killing off a socket in timewait.
Jifl
--
eCosCentric Limited http://www.eCosCentric.com/ The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
Visit us @ Embedded World 2008, Nürnberg, Germany, 26-28 Feb:Stand 11-336
------["Si fractum non sit, noli id reficere"]------ Opinions==mine