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.