Skip to content

Commit

Permalink
Fix missed tftp timeout (#49)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Shishkin <me@teran.dev>
  • Loading branch information
teran authored Jun 9, 2024
1 parent 5a507f6 commit 9dc527c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions checkers/tftp_rrq/tftp_rrq.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ func (t *tftp_rrq) check(context.Context) error {
return errors.Wrap(err, "error creating TFTP client")
}

c.SetTimeout(t.timeout)

wt, err := c.Receive(path, "octet")
if err != nil {
return errors.Wrap(err, "error receiving file")
Expand Down

0 comments on commit 9dc527c

Please sign in to comment.