Socket Connection Lost with no Exception | Telit Cinterion IoT Developer Community
December 14, 2017 - 11:21am, 2108 views
Hello,
My application is behaving as a server-client and it is working normally most of the time.
However, probabily due to a mobile network failure, the socket dies, showing no exception. When I try to send information via http request it also shows no errors.
The issue is only solved when the system does the programmed Watchdog reset.
I've been trying to find a workaround about this issue but still have not been successful.
Hello,
Could you write more details about the application and the problem? So there is a server on the module which becomes unreachable? Or there is a client which cannot connect to the remote server? Or is there an open socket for a long time which dies? How frequently does it happen?
Does the application detect this state and does it try to perform any actions?
As I understand the application opens http connection and there is no error but is it possible to transmmit any data?
It might happen that the open socket is closed by server due to some error or timeout and the client might not know about this - it may take a long time then before the client detects it.
Please check the firmware version with ATI1 command.
To monitor the bearer state in the application you can use BearerControlListener or BearerControlListenerEx interface.
Regards,
Bartłomiej