When the client is offline, the server will register this as an idle period. Eventually the client will disconnect, but if the connection is flaky it might affect accuracy.
Ideas:
Indicate the first request of a session. Clear that flag after the first successful response. A request will always continue the previous record if that flag is not set, regardless of the time difference (maybe with a plausibility limit; Windows hibernation?).
Extend the grace period significantly.
Client could inform server about number of failed requests (or log those, and use that mechanism, cf. #72).
When the client is offline, the server will register this as an idle period. Eventually the client will disconnect, but if the connection is flaky it might affect accuracy.
Ideas: