twagner wrote:
> Her my mem and memp stats:
> mem = {name = 0x8042c7c "MEM", err = 0, avail = 10240, used = 0, max = 0,
> illegal = 0}
> memp = 
[..]
> name  const char *    0x8042e40 "TCP_PCB"     
> err   u16_t   0       
> avail mem_size_t      12      
> used  mem_size_t      8       
> max   mem_size_t      12      
> illegal       u16_t   0       

You say you have one modbus server but still 12 pcb connections? Is that 
correct?

Anyway, lwIP favored new connections over old connections. This was fixed in 
git,
but might not be fixed for you. You might still be running out of tcp pcbs.

If you have enough memory available, try setting MEMP_TCP_PCB really high.

Simon

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

Reply via email to