Skip to content

Commit

Permalink
Merge pull request #5540 from spacemeshos/backport-5533
Browse files Browse the repository at this point in the history
Backport #5533: p2p: fix request timeout
  • Loading branch information
ivan4th authored Feb 5, 2024
2 parents a997e1d + b189fa9 commit bac9f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ func (s *Server) Request(
}

func (s *Server) request(ctx context.Context, pid peer.ID, req []byte) (*Response, error) {
ctx, cancel := context.WithTimeout(ctx, s.timeout)
ctx, cancel := context.WithTimeout(ctx, s.hardTimeout)
defer cancel()

var stream network.Stream
Expand Down

0 comments on commit bac9f6a

Please sign in to comment.