Skip to content

Commit

Permalink
timeouts_test
Browse files Browse the repository at this point in the history
  • Loading branch information
Northa authored May 30, 2022
1 parent 80a354a commit 140ed81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/p2p/conn/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ const (
defaultSendRate = int64(512000) // 500KB/s
defaultRecvRate = int64(512000) // 500KB/s
defaultSendTimeout = 10 * time.Second
defaultPingInterval = 60 * time.Second
defaultPongTimeout = 270 * time.Second
defaultPingInterval = 90 * time.Second
defaultPongTimeout = 80 * time.Second
)

type receiveCbFunc func(chID byte, msgBytes []byte)
Expand Down Expand Up @@ -491,7 +491,7 @@ FOR_LOOP:
}

if time.Since(c.getLastMessageAt()) > c.config.PongTimeout {
err = errors.New("pong timeout")
err = errors.New("pong timeout_test", c.config.PongTimeout)
}

if err != nil {
Expand Down

0 comments on commit 140ed81

Please sign in to comment.