Warn on server connection if autoping is disabled, but supported #1

Closed
opened 2025-06-16 08:11:19 +00:00 by admin · 2 comments
Owner

/autoping is an essential functionality that allows to detect silent disconnect due to IP switch on exit node. It has to be enabled by default.

  • Ensure that /autoping defaults values enable it
  • make a switchable warning on connection if autoping is disabled
/autoping is an essential functionality that allows to detect silent disconnect due to IP switch on exit node. It has to be enabled by default. - [x] Ensure that `/autoping` defaults values enable it - [x] make a switchable warning on connection if autoping is disabled

Update: autoping defaults seems to be fine.

gint
prefs_get_autoping(void)
{
    if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "autoping", NULL)) {
        return 60;
    } else {
        return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "autoping", NULL);
    }
}

gint
prefs_get_autoping_timeout(void)
{
    if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "autoping.timeout", NULL)) {
        return 20;
    } else {
        return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "autoping.timeout", NULL);
    }
}

Update: `autoping` defaults seems to be fine. ```c gint prefs_get_autoping(void) { if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "autoping", NULL)) { return 60; } else { return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "autoping", NULL); } } gint prefs_get_autoping_timeout(void) { if (!g_key_file_has_key(prefs, PREF_GROUP_CONNECTION, "autoping.timeout", NULL)) { return 20; } else { return g_key_file_get_integer(prefs, PREF_GROUP_CONNECTION, "autoping.timeout", NULL); } } ```
jabber.developer self-assigned this 2025-09-01 22:23:46 +00:00
jabber.developer added the
Kind/Enhancement
label 2025-09-01 22:25:26 +00:00
jabber.developer added this to the Plans (2025-2026) project 2025-10-11 10:52:55 +00:00
jabber.developer moved this to In Progress in Plans (2025-2026) on 2025-10-11 10:53:03 +00:00
jabber.developer changed title from Check autoping defaults to Warn on server connection if autoping is disabled, but supported 2025-10-14 09:46:28 +00:00

Related commit: 3738be4af1

Related commit: 3738be4af13bab069b979d6c68458e31404bc47e
jabber.developer added the
Priority
Medium
3
Reviewed
Confirmed
1
labels 2026-01-21 17:17:50 +00:00
jabber.developer added a new dependency 2026-01-28 13:31:16 +00:00
jabber.developer added the
Status
Blocked
1
label 2026-01-28 13:31:23 +00:00
jabber.developer moved this to Done in Plans (2025-2026) on 2026-06-23 11:12:36 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Reference: devs/cproof#1
No description provided.