lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] maximum lwip sockets limitation


From: Enrique Wellborn
Subject: Re: [lwip-users] maximum lwip sockets limitation
Date: Thu, 31 Oct 2013 09:46:14 +0200

Well, increasing MEMP_NUM_UDP_PCB is needed if you want to create more udp sockets(SOCK_DGRAM).
My question is whether increasing other macros(like PBUF_POOL_SIZE, MEMP_NUM_TCPIP_MSG_API, MEMP_NUM_TCPIP_MSG_INPKT) along with the above 3 is needed for lwip to be stable.

Thanks,
Enrique


On Wed, Oct 30, 2013 at 9:04 PM, Bill Auerbach <address@hidden> wrote:

I don’t use sockets, but I suspect that increasing MEMP_NUM_UD_PCB isn’t needed in which case you’ll save some memory.  Feel free to yell at me if I’m wrong. J

 

Bill

 

From: lwip-users-bounces+bauerbach=address@hidden [mailto:lwip-users-bounces+bauerbach=address@hidden] On Behalf Of Enrique Wellborn
Sent: Wednesday, October 30, 2013 12:34 PM
To: Mailing list for lwIP users
Subject: Re: [lwip-users] maximum lwip sockets limitation

 

OK, changing this macro alone didn't do it, but changing the MEMP_NUM_TCP_PCB and MEMP_NUM_UDP_PCB macros along solved it.

Is there any other macro that needs to be changed along with the above for lwip to function properly and stably?

Thank you very much!

 

On Wed, Oct 30, 2013 at 5:25 PM, Yafei Yan <address@hidden> wrote:

You can modify the marco as follow:

/* MEMP_NUM_NETCONN: the number of struct netconns. */

#define MEMP_NUM_NETCONN            8

It indicates that the number of sockets.

 

 

2013/10/30 Enrique Wellborn <address@hidden>

Hi,

I'm using the lwip_socket() api to create lwip sockets on linux and it works well, but only for 4 sockets.

When I try to create a fifth socket, the functions fails (returns -1).

When I call lwip_close() on one of the 4 existing sockets, it works, and then i can recreate the same socket (I get the same socket id) using lwip_socket().

Is there a way to remove this limitation?

Thank you very much!

 

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

 


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

 


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


reply via email to

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