lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] ERR_ABRT: Out of pcbs or netconns


From: Terry Barnaby
Subject: Re: [lwip-users] ERR_ABRT: Out of pcbs or netconns
Date: Thu, 11 Apr 2019 10:19:39 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 11/04/2019 08:33, tirmalabenikasibeni wrote:
Hi all,

I am developing a MODBUS Server which can serve multiple clients
simultaneously, using LwIP 2.0.3 & netconn and FreeRTOS 9.0.0 and
STM32H743BI.

A client (my pc in this case) can connect the server with no problem. When
disconnected and connected again there is no problem also, but if it tried
to connect 3. time, connection can't be established and netconn_accept
returns ERR_ABRT.

This is a part of my lwipopts.h:


And my thread and handler:



Please forgive me if I waste your time, but I am struggling for a couple of
days.

Thank you!



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

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

I know its pseudo code, but in your modbus_handler() thread function do you actually break out of the while(TRUE) loop and call netconn_close() and netconn_delete() when the remote client disconnects ? (I'm not sure if both netconn_close() and netconn_delete() are needed). If not the available connections will be used up after a time.




reply via email to

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