Browse Source

remove the DialTimeout (#230)

The timeout should be a configuration option for the swarm, not a global
variable.
pull/1683/head
Marten Seemann 3 years ago
committed by GitHub
parent
commit
9b85293e62
  1. 5
      core/transport/transport.go

5
core/transport/transport.go

@ -14,11 +14,6 @@ import (
ma "github.com/multiformats/go-multiaddr"
)
// 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 = 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.

Loading…
Cancel
Save