VancedMicroG/play-services-core/src/main/java/org/microg/gms/gcm
Torsten Grote b9b1ef6246 Detect missing heartbeat ACKs and broken connections faster
Waiting twice the heartbeat interval since the last ACK can make us miss dead connections for more than 10min in which no push messages get received.

This change requires the ACK to come within 90 seconds of sending the heartbeat ping, otherwise the connection is considered dead which will trigger a re-connect.

We use a high timeout of 90 seconds, because in some mobile networks (like in trains) ping times of more than 60 seconds have been observed in practice.

Change-Id: I8e63843400b47e1a6d23faf180f9446bcb5e0cd8
2022-01-25 12:37:08 +01:00
..
GcmDatabase.java Use Cursor.getColumnIndexOrThrow() 2021-03-17 19:38:34 +01:00
GcmLegacyData.java Increase version code, update sublib and copyright header 2017-06-13 00:34:09 +02:00
McsConstants.java GCM: Add support for message acking, deliver to all receivers of package when working permissionless 2020-08-22 23:43:14 +02:00
McsInputStream.java Migrate to latest Wire library, build directly from proto 2020-08-01 22:34:53 +02:00
McsOutputStream.java Migrate to latest Wire library, build directly from proto 2020-08-01 22:34:53 +02:00
McsService.java Detect missing heartbeat ACKs and broken connections faster 2022-01-25 12:37:08 +01:00
PushRegisterManager.java Add profile manager 2022-01-14 10:39:10 +01:00
RegisterRequest.java Add profile manager 2022-01-14 10:39:10 +01:00
RegisterResponse.java Increase version code, update sublib and copyright header 2017-06-13 00:34:09 +02:00
SendReceiver.java Huge merge/refactor/update 2020-07-08 22:49:27 +02:00
TriggerReceiver.java Do a check-in if we are not actually checked in, but should be, e.g. cleared app data 2021-11-03 13:02:51 +01:00
UnregisterReceiver.java Unregister app if fully removed or data is cleared 2019-04-13 10:44:41 +02:00