From 0b3c55c053aa3ae09561768784b0d078f0c354c3 Mon Sep 17 00:00:00 2001 From: Matt Mullins Date: Sun, 1 Dec 2019 21:17:25 -0800 Subject: [PATCH] irc: bump the ping timeout to 26 seconds This should capture through the 7th retransmit timeout in case packet loss is abound; for reasons yet unknown, the Cognet/TAMU IRC servers are consistently failing to respond within 5 seconds. --- irc/ebin/irc.appup | 14 +++++--------- irc/src/irc.app.src | 2 +- irc/src/irc_conn.erl | 2 +- rebar.config | 2 +- 4 files changed, 8 insertions(+), 12 deletions(-) diff --git a/irc/ebin/irc.appup b/irc/ebin/irc.appup index 42b4553..05523bb 100644 --- a/irc/ebin/irc.appup +++ b/irc/ebin/irc.appup @@ -1,12 +1,8 @@ -{"13", - [{"12", - [{update, irc_amqp_listener}, - {update, irc_object_sup}, - {update, irc_conn, {advanced, ok}} +{"14", + [{"13", + [{update, irc_conn} ]}], - [{"12", - [{update, irc_amqp_listener}, - {update, irc_object_sup}, - {update, irc_conn, {advanced, ok}} + [{"13", + [{update, irc_conn} ]}] }. diff --git a/irc/src/irc.app.src b/irc/src/irc.app.src index 76ac740..516250a 100644 --- a/irc/src/irc.app.src +++ b/irc/src/irc.app.src @@ -1,6 +1,6 @@ {application, irc, [{description, "IRC protocol application"}, - {vsn, "13"}, + {vsn, "14"}, {modules, [irc_util, irc_app, irc_sup, irc_net_sup, irc_conn, irc_object_sup, irc_amqp_listener, irc_command]}, {registered, [irc_sup, irc_dummy]}, diff --git a/irc/src/irc_conn.erl b/irc/src/irc_conn.erl index 35bf092..14386b7 100644 --- a/irc/src/irc_conn.erl +++ b/irc/src/irc_conn.erl @@ -4,7 +4,7 @@ -define(RECONNECT_TIME, 30000). -define(PING_PERIOD, timer:seconds(30)). --define(PING_TIMEOUT, timer:seconds(5)). +-define(PING_TIMEOUT, timer:seconds(26)). -export([ start_link/3, diff --git a/rebar.config b/rebar.config index 9c24dbe..9ad936a 100644 --- a/rebar.config +++ b/rebar.config @@ -4,7 +4,7 @@ ] }. {relx, [{release, - {bot, "14rebar"}, + {bot, "15"}, [irc, amqp, core, amqp_client, sasl]} ] }. -- 2.11.0