devicehive / devicehive-cpp

* DEPRECATED *
Other
4 stars 6 forks source link

Connectivity Issues #7

Open J-L opened 7 years ago

J-L commented 7 years ago

I've noticed a couple issues with connectivity on the device hive. In particular there are cases where the library fails to rebuild connection with the server after network interrupts.

My current work around was to implement a watchdog timer of sorts using linux's timer_create, and exiting the application forcefully. We use a wrapper script around the application, so the app is restarted... but we cannot rely on state being stored in memory if the application can hang at any time.

*(not 100% sure on the underlying cause, but it looks like some time of blocking request)