lwip-users
[Top][All Lists]
Advanced

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

RE: [lwip-users] listening connection issue


From: JM
Subject: RE: [lwip-users] listening connection issue
Date: Tue, 16 Mar 2010 14:26:36 -0700 (PDT)

Ok, to be honest, I'm not sure if it was a lack of MEMP_NUM_TCP_PCB or MEMP_NUM_PBUF because I just decreased the former to 2, and it still works.  But, I'm still curious, why does it use all available pcbs?

--- On Tue, 3/16/10, JM <address@hidden> wrote:

From: JM <address@hidden>
Subject: RE: [lwip-users] listening connection issue
To: "Mailing list for lwIP users" <address@hidden>
Date: Tuesday, March 16, 2010, 5:03 PM

I fixed the tcp_close issue and it works fine, although the connection issue was a lack of  MEMP_NUM_TCP_PCB.  It seems that memp[1] in lwip_status is MEMP_NUM_TCP_PCB.

The interesting thing is that when accepting incoming connections, it will use all the MEMP_NUM_TCP_PCB available, whether 4, 8, or 15, but not show any errors if it's roughly 4 or higher.  And, I'm only maintaining one connection at a time, as it's via a web browser.  Why is this? 

--- On Tue, 3/16/10, Kieran Mansley <address@hidden> wrote:

From: Kieran Mansley <address@hidden>
Subject: RE: [lwip-users] listening connection issue
To: "Mailing list for lwIP users" <address@hidden>
Date: Tuesday, March 16, 2010, 10:44 AM

On Tue, 2010-03-16 at 07:35 -0700, JM wrote:
> Ok, I will make this change.  But, even if that memory was freed
> before it was sent, it should still accept a new incoming connection
> afterward, correct?  And should at least send whatever happens to be
> in that memory space?  I'm trying to figure out why it sometimes
> refuses to respond to a new connection attempt, even when there are
> currently no active connections.

Once you've fixed the handling of tcp_close() and tcp_sent() reproduce
the problem and check the LWIP_STATs figures at the time that you see
the problem.  These might explain why the stack is refusing to accept
the connection, as my guess is that there is some resource it has run
out of.

Kieran



_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


-----Inline Attachment Follows-----

_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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