Skip to content

Commit

Permalink
Reduce ping/pong timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jkongie committed Aug 24, 2021
1 parent c0a1b06 commit 7442db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/transport/transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (
defaultWriteTimeout = 10 * time.Second

// Time allowed to read the next pong message from the peer.
pongWait = 60 * time.Second
pongWait = 20 * time.Second

// Send pings to peer with this period. Must be less than pongWait.
pingPeriod = (pongWait * 9) / 10
Expand Down

0 comments on commit 7442db8

Please sign in to comment.