Re: [lwip-users] how to handle multiple TCP socket simultaneously

2017-08-03 Thread Mohsin Madki
and TCP related defines : /* -- TCP options -- */ #define LWIP_TCP1 #define TCP_TTL 255 /* Controls if TCP should queue segments that arrive out of order. Define to 0 if your device is low on memory. */ #define TCP_QUEUE_OOSEQ 0 /* TCP

[lwip-users] how to handle multiple TCP socket simultaneously

2017-08-03 Thread Mohsin Madki
Hi, I am using STM32F107 with FreeRTOS+LWIP with Netconn APIs. I have created 4 tcp ports (server in listening mode) and trasfers data received to UARTS and viseversa. i.e. Ethernet to Serial converter (4 port). I works well for few hours but later it stops working. lwipopts defines are as follo

Re: [lwip-users] Limiting the number of connections: Possible bug with MEMP_NUM_TCP_PCB?

2017-08-03 Thread goldsi...@gmx.de
Tony wrote: The aim is to only allow n open TCP connection at a time, and reject all further connection requests. This worked reasonably well in 1.3.2, but now fails in 2.0.2. [..] HOWEVER: this n+1 connection terminates the very 1st connection (takes over the 1st PCB?). Although it's strang

Re: [lwip-users] Memory Limitation of lwIP?

2017-08-03 Thread goldsi...@gmx.de
nrichard wrote: I have been able to get these all running at the same time using the HEAP? method by setting both MEM_LIBC_MALLOC and MEMP_MEM_MALLOC to 1. However it is not consistent. Sometimes the system tells me "memp_malloc: out of memory in pool PBUF_POOL" even though I'm using the HEAP m

[lwip-users] Limiting the number of connections: Possible bug with MEMP_NUM_TCP_PCB?

2017-08-03 Thread Tony
Hello, I am trying to fix a strange behavior I have with LWIP... Quite possibly I am using the LWIP wrongly, but I am not sure. I took over the maintaining of a embedded project which includes LWIP, and unfortunately I have some problems with networking (and I now face a steep learning curve, as