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 11:30:42 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

On 11/04/2019 10:31, tirmalabenikasibeni wrote:
Hello Terry,


Terry Barnaby wrote
 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 can show you more. I think I am handling what you say. But I'm not sure.







--
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'm no expert on Lwip, but looks ok to me. Might be worth adding a printf or whatever method you have to debug to check that the connection is actually being closed. Not sure if you need a netconn_close() as well as netconn_delete() or not.

I don't think you want:

    newconn = NULL;
 }
 else netconn_delete(newconn);

in the listen thread.

reply via email to

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