cancel
Showing results for 
Search instead for 
Did you mean: 

F767ZI+FreeRTOS+lwip can't support more than 2 clients?

SSRIN.1
Associate III

I require to run 3 clients. I start 3 lwip threads using sys_thread_new. Each thread will service 3 python clients via 3 distinct Ports. Everything seems to be working when running only 2 threads . However, when a third client is added things become weird. Only one client is able to connect . When a second or third client tries to connect, it returns connection reset by peer.

5 REPLIES 5
alister
Lead

MEMP_NUM_TCP_PCB_LISTEN?

Its marked as 8

HTTP/HTTPS?

LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED?

#if !defined LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED || defined __DOXYGEN__

#define LWIP_HTTPD_KILL_OLD_ON_CONNECTIONS_EXCEEDED 0

#endif

and HTTP/HTTPS define is not present in the code ?

>HTTP/HTTPS define is not present in the code ?

Asking if you're using HTTP and/or HTTPS.

I'm throwing guesses.

MEMP_NUM_TCP_PCB?

Lots of information on the web about lwIP.

Search https://lists.nongnu.org/mailman/listinfo/lwip-users too.