Skip to content

Commit

Permalink
Increase timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoPolo committed Nov 18, 2024
1 parent 6ee929c commit 5b834c7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions p2p/transport/tcpreuse/demultiplex.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ import (
manet "github.com/multiformats/go-multiaddr/net"
)

// This is reading the first 3 bytes of the packet. It should be instant.
// This is reading the first 3 bytes of the first packet after the handshake.
// It's set to the default TCP connect timeout in the TCP Transport.
//
// A var so we can change it in tests.
var identifyConnTimeout = 1 * time.Second
var identifyConnTimeout = 5 * time.Second

type DemultiplexedConnType int

Expand Down

0 comments on commit 5b834c7

Please sign in to comment.