Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Commit

Permalink
reduce default timeouts to 15s (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Apr 5, 2021
1 parent becdcea commit 286b97a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport/transport.go
Expand Up @@ -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
Expand Down

0 comments on commit 286b97a

Please sign in to comment.