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

remove the transport.AcceptTimeout #231

Merged
merged 1 commit into from
Dec 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package transport
import (
"context"
"net"
"time"

"github.com/libp2p/go-libp2p-core/mux"
"github.com/libp2p/go-libp2p-core/network"
Expand All @@ -14,11 +13,6 @@ import (
ma "github.com/multiformats/go-multiaddr"
)

// 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 = 15 * time.Second

// A CapableConn represents a connection that has offers the basic
// capabilities required by libp2p: stream multiplexing, encryption and
// peer authentication.
Expand Down