From 286b97aee37ee7da65a72fd9e80770c6fea9ec5b Mon Sep 17 00:00:00 2001 From: vyzo Date: Mon, 5 Apr 2021 22:45:14 +0300 Subject: [PATCH] reduce default timeouts to 15s (#192) --- transport/transport.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/transport.go b/transport/transport.go index 70acbc8..d3c69f9 100644 --- a/transport/transport.go +++ b/transport/transport.go @@ -17,12 +17,12 @@ import ( // DialTimeout is the maximum duration a Dial is allowed to take. // This includes the time between dialing the raw network connection, // protocol selection as well the handshake, if applicable. -var DialTimeout = 60 * time.Second +var DialTimeout = 15 * time.Second // AcceptTimeout is the maximum duration an Accept is allowed to take. // This includes the time between accepting the raw network connection, // protocol selection as well as the handshake, if applicable. -var AcceptTimeout = 60 * time.Second +var AcceptTimeout = 15 * time.Second // A CapableConn represents a connection that has offers the basic // capabilities required by libp2p: stream multiplexing, encryption and -- GitLab