Hi Jeff, Thanks for your reply . Could you please share some sample code with the usage of setsockopt() if possible?
Thanks and Regards, Pratap Devsarkar. -----Original Message----- From: lwip-users <lwip-users-bounces+pratap.devsarkar=emerson....@nongnu.org> On Behalf Of Thompson, Jeff Sent: Tuesday, January 4, 2022 6:29 PM To: Mailing list for lwIP users <lwip-users@nongnu.org> Subject: [EXTERNAL] Re: [lwip-users] LPC1788 Ethernet Based Socket Communication Randomly Stops Working After Few Hours Sounds like you are not detecting that the connection has been lost. Try using setsockopt() to set an appropriate receive timeout value, then check the read function return value for EOF. Jeff Thompson | Senior Electrical Engineer - Firmware +1 704 752 6513 x1394 https://urldefense.com/v3/__http://www.invue.com__;!!OkyjEqkqqe9UhNQ!j2ztC5VD3MRMwrAs7HCDZfF3hfQWQmxclbiEJBZUMIkYBqo1MdVaKP3Mai3wOYFvKC40Dg$ -----Original Message----- From: lwip-users <lwip-users-bounces+jeffthompson=invue....@nongnu.org> On Behalf Of Giuseppe Modugno Sent: Tuesday, January 4, 2022 3:13 AM To: lwip-users@nongnu.org Subject: Re: [lwip-users] LPC1788 Ethernet Based Socket Communication Randomly Stops Working After Few Hours I'm using LPC1788 for a product that is in full production for a couple of years without many problems. Unfortunately I'm using now RTOS and raw API, so I don't think I can help you. Most probably, other users will reply with suggestions on how to track and identify your issue. Il 04/01/2022 06:16, Devsarkar, Pratap [AUTOSOL/BRSN/IN] ha scritto: > > Hi, > > We are using LPC1788 OEM Board REV E.of Embedded Artists. > We are using MCUXpresso IDE V11.3.0 and FreeRTOS Lwip stack. > > The FreeRTOS version is *"V7.5.3".* > > ** > > *The LWIP version is * > > This Board uses a socket communication to communicate with other board > at 1ms time interval. > Randomly after few hours the LPC1788 Board stops working so The socket > communication also stops. > > Please help us to resolve the issue. > > Thanks and Regards, > > Pratap Devsarkar. > > > _______________________________________________ > lwip-users mailing list > lwip-users@nongnu.org > https://urldefense.com/v3/__https://lists.nongnu.org/mailman/listinfo/ > lwip-users__;!!OkyjEqkqqe9UhNQ!j2ztC5VD3MRMwrAs7HCDZfF3hfQWQmxclbiEJBZ > UMIkYBqo1MdVaKP3Mai3wOYHSdOsjbg$ _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://urldefense.com/v3/__https://lists.nongnu.org/mailman/listinfo/lwip-users__;!!OkyjEqkqqe9UhNQ!j2ztC5VD3MRMwrAs7HCDZfF3hfQWQmxclbiEJBZUMIkYBqo1MdVaKP3Mai3wOYHSdOsjbg$ _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://urldefense.com/v3/__https://lists.nongnu.org/mailman/listinfo/lwip-users__;!!OkyjEqkqqe9UhNQ!j2ztC5VD3MRMwrAs7HCDZfF3hfQWQmxclbiEJBZUMIkYBqo1MdVaKP3Mai3wOYHSdOsjbg$ _______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users