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

Commit

Permalink
increase hole punching timeout to 5s
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Feb 22, 2021
1 parent 3c06cc9 commit 71724d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (t *transport) holePunch(ctx context.Context, p peer.ID, network string, ad
}
defer pconn.DecreaseCount()

ctx, cancel := context.WithTimeout(ctx, time.Second)
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
defer cancel()

connCh := make(chan tpt.CapableConn)
Expand Down

0 comments on commit 71724d9

Please sign in to comment.