Online check failure does not downgrades service

Gabriel Sanches <[email protected]>
Newsgroups dev.linux.lists.connman
Message-ID <AM9PR10MB485454A9E0F1F672126EA4EFE1702@AM9PR10MB4854.EURPRD10.PROD.OUTLOOK.COM>
While testing the online check on continuous mode, I found out that it does not downgrades the service after the threshold is met.Seems like ipv6 being on state (ready) already prevents the downgrade. My assumption comes from inspecting

src/service.c:is_online_check_failure_threshold_met_predicate

Is this the correct behavior?

connman is on master@807ad961777ffffad36f53ea034583466a7073de

my main.conf file :
[General]
PreferredTechnologies=wifi,ethernet
DefaultAutoConnectTechnologies=wifi,ethernet
BackgroundScanning=true
EnableOnlineCheck=true
OnlineCheckConnectTimeout=10
OnlineCheckMode=continuous
OnlineCheckIntervalStyle=geometric
OnlineCheckInitialInterval=1
OnlineCheckMaxInterval=8
OnlineCheckFailuresThreshold=1

relevant log:
connmand[2065]: /usr/src/debug/connman/1.43-r0/src/service.c:online_check_counters_log() service 0x18f29b0 (wifi_e8fb1ccdfacb_6d7563686f626f6d3547_managed_psk) ipv4 state 5 (online) failure(s/es) 2 ipv6 state 4
(ready) failure(s/es) 0
connmand[2065]: /usr/src/debug/connman/1.43-r0/src/service.c:online_check_counter_threshold_is_met() service 0x18f29b0 (wifi_e8fb1ccdfacb_6d7563686f626f6d3547_managed_psk) failure threshold 1 failure(s) met 0
connmand[2065]: /usr/src/debug/connman/1.43-r0/src/service.c:handle_continuous_online_check_failure() failures threshold was met 0 failures threshold is met 0 default 1
connmand[2065]: /usr/src/debug/connman/1.43-r0/src/service.c:online_check_counters_log() service 0x18f29b0 (wifi_e8fb1ccdfacb_6d7563686f626f6d3547_managed_psk) ipv4 state 5 (online) failure(s/es) 2 ipv6 state 4
(ready) failure(s/es) 0
connmand[2065]: /usr/src/debug/connman/1.43-r0/src/service.c:online_check_counter_threshold_is_met() service 0x18f29b0 (wifi_e8fb1ccdfacb_6d7563686f626f6d3547_managed_psk) failure threshold 1 failure(s) met 0
connmand[2065]: /usr/src/debug/connman/1.43-r0/src/service.c:handle_continuous_online_check_failure() failures threshold was met 0, default 1
connmand[2065]: /usr/src/debug/connman/1.43-r0/src/service.c:complete_online_check() reschedule online check 1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.