]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
android: Increase lifetimes a bit
authorTobias Brunner <tobias@strongswan.org>
Fri, 8 May 2020 12:33:05 +0000 (14:33 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 2 Jun 2020 12:07:06 +0000 (14:07 +0200)
This should avoid clashes of soft and hard lifetimes even if the app is
not whitelisted.

src/frontends/android/app/src/main/jni/libandroidbridge/backend/android_service.c

index f37d99295dc2ce59a754326bb4def7fc6c1d497f..ba7a10ddb2ef1e86fa9344917c64d7ffb9616ddd 100644 (file)
@@ -754,13 +754,13 @@ static job_requeue_t initiate(private_android_service_t *this)
                .unique = UNIQUE_REPLACE,
                .rekey_time = 36000, /* 10h */
                .jitter_time = 600, /* 10min */
-               .over_time = 600, /* 10min */
+               .over_time = 1800, /* 30min */
        };
        child_cfg_create_t child = {
                .lifetime = {
                        .time = {
-                               .life = 3600, /* 1h */
-                               .rekey = 3000, /* 50min */
+                               .life = 9000, /* 2.5h */
+                               .rekey = 7200, /* 2h */
                                .jitter = 300 /* 5min */
                        },
                },