1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-03 08:13:14 +02:00

relay/api: add automatic reconnection to remote (closes #2166)

New options:

- remote option "autoreconnect_delay"
- relay.api.remote_autoreconnect_delay_growing
- relay.api.remote_autoreconnect_delay_max
This commit is contained in:
Sébastien Helleu
2024-08-11 12:18:28 +02:00
parent fc6811341a
commit a317c785fb
26 changed files with 789 additions and 80 deletions
@@ -56,11 +56,11 @@ TEST_GROUP(RelayRemoteNetworkWithRemote)
/* create two relay remotes */
ptr_relay_remote = relay_remote_new ("remote",
"http://localhost:9000",
"off", NULL, "on",
NULL, "off", NULL, "on",
"secret", "secretbase32");
ptr_relay_remote2 = relay_remote_new ("remote2",
"https://localhost:9001/",
"off", "my_proxy", "off",
"30", "off", "my_proxy", "off",
"secret", "secretbase32");
}
+50 -20
View File
@@ -264,6 +264,56 @@ TEST(RelayRemote, Rename)
/* TODO: write tests */
}
/*
* Tests functions:
* relay_remote_disconnect
*/
TEST(RelayRemote, Disconnect)
{
/* TODO: write tests */
}
/*
* Tests functions:
* relay_remote_reconnect_schedule
*/
TEST(RelayRemote, ReconnectSchedule)
{
/* TODO: write tests */
}
/*
* Tests functions:
* relay_remote_reconnect
*/
TEST(RelayRemote, Reconnect)
{
/* TODO: write tests */
}
/*
* Tests functions:
* relay_remote_timer
*/
TEST(RelayRemote, Timer)
{
/* TODO: write tests */
}
/*
* Tests functions:
* relay_remote_disconnect_all
*/
TEST(RelayRemote, DisconnectAll)
{
/* TODO: write tests */
}
/*
* Tests functions:
* relay_remote_free
@@ -284,26 +334,6 @@ TEST(RelayRemote, FreeAll)
/* TODO: write tests */
}
/*
* Tests functions:
* relay_remote_disconnect
*/
TEST(RelayRemote, Disconnect)
{
/* TODO: write tests */
}
/*
* Tests functions:
* relay_remote_disconnect_all
*/
TEST(RelayRemote, DisconnectAll)
{
/* TODO: write tests */
}
/*
* Tests functions:
* relay_remote_add_to_infolist