From fbf08b36699a2eeb6cb1ceffeab6ba6531ebbb78 Mon Sep 17 00:00:00 2001 From: Philip Kuryloski Date: Thu, 22 Oct 2020 14:43:27 +0200 Subject: [PATCH] Restore the default gen_server timeout around ssl:setopts/2 amqp_main_reader:post_init/1 is invoked within amqp_gen_connection:connect/1 with a timeout of ?CALL_TIMEOUT, so the same timeout interval cannot be reasonably for both --- deps/amqp_client/src/amqp_main_reader.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/amqp_client/src/amqp_main_reader.erl b/deps/amqp_client/src/amqp_main_reader.erl index 845ebccb74..60cd93d03b 100644 --- a/deps/amqp_client/src/amqp_main_reader.erl +++ b/deps/amqp_client/src/amqp_main_reader.erl @@ -34,7 +34,7 @@ start_link(Sock, Connection, ChMgr, AState, ConnName) -> post_init(Reader) -> try - gen_server:call(Reader, post_init, ?CALL_TIMEOUT) + gen_server:call(Reader, post_init) catch exit:{timeout, Timeout} -> {error, {timeout, Timeout}}